]> andersk Git - gssapi-openssh.git/commitdiff
fix for AIX build problems from
authorjbasney <jbasney>
Sat, 17 Feb 2007 00:03:02 +0000 (00:03 +0000)
committerjbasney <jbasney>
Sat, 17 Feb 2007 00:03:02 +0000 (00:03 +0000)
http://marc.theaimsgroup.com/?l=openssh-unix-dev&m=115762618401061&w=2

openssh/configure.ac
openssh/defines.h

index 153796735759aa0b4751aa5c32d4cc9dad97d68c..7ba06ddf8f9df4e6946dfa35e707405da07f39b1 100644 (file)
@@ -3529,6 +3529,32 @@ else
        AC_SUBST(XAUTH_PATH)
 fi
 
+AC_CHECK_DECL(_PATH_BSHELL, ,
+ AC_DEFINE_UNQUOTED(_PATH_BSHELL, "/bin/sh",
+ [Define to your C shell if not defined in paths.h])
+ [ #include <paths.h> ]
+)
+
+AC_CHECK_DECL(_PATH_CSHELL, ,
+ AC_DEFINE_UNQUOTED(_PATH_CSHELL, "/bin/csh",
+ [Define to your Bourne shell if not defined in paths.h])
+ [ #include <paths.h> ]
+)
+
+AC_CHECK_DECL(_PATH_SHELLS, ,
+ AC_DEFINE_UNQUOTED(_PATH_BSHELL, "/etc/shells",
+ [Define to your shells file if not defined in paths.h])
+ [ #include <paths.h> ]
+)
+
+# if _PATH_MAILDIR is in paths.h then we won't go hunting for it.
+AC_CHECK_DECL(_PATH_MAILDIR,
+ AC_DEFINE(PATH_MAILDIR_IN_PATHS_H, 1,
+ [Define if _PATH_MAILDIR is in paths.h]),
+ ,
+ [ #include <paths.h> ]
+)
+
 # Check for mail directory (last resort if we cannot get it from headers)
 if test ! -z "$MAIL" ; then
        maildir=`dirname $MAIL`
index 143ede9f36b9814aea3bc6896a48020a005752b1..c0710b11b94db6d9837fa5eae03c500257fd209b 100644 (file)
@@ -318,16 +318,6 @@ struct winsize {
 
 /* Paths */
 
-#ifndef _PATH_BSHELL
-# define _PATH_BSHELL "/bin/sh"
-#endif
-#ifndef _PATH_CSHELL
-# define _PATH_CSHELL "/bin/csh"
-#endif
-#ifndef _PATH_SHELLS
-# define _PATH_SHELLS "/etc/shells"
-#endif
-
 #ifdef USER_PATH
 # ifdef _PATH_STDPATH
 #  undef _PATH_STDPATH
@@ -347,6 +337,8 @@ struct winsize {
 # define _PATH_DEVNULL "/dev/null"
 #endif
 
+#ifndef PATH_MAILDIR_IN_PATHS_H
+
 #ifndef MAIL_DIRECTORY
 # define MAIL_DIRECTORY "/var/spool/mail"
 #endif
@@ -359,6 +351,8 @@ struct winsize {
 # define _PATH_MAILDIR MAILDIR
 #endif /* !defined(_PATH_MAILDIR) && defined(MAILDIR) */
 
+#endif /* PATH_MAILDIR_IN_PATHS_H */
+
 #ifndef _PATH_NOLOGIN
 # define _PATH_NOLOGIN "/etc/nologin"
 #endif
This page took 0.047572 seconds and 5 git commands to generate.