summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac37
1 files changed, 21 insertions, 16 deletions
diff --git a/configure.ac b/configure.ac
index 47fef0cbe..e5a8d6f05 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,4 +1,4 @@
1# $Id: configure.ac,v 1.113 2003/03/21 01:18:09 mouring Exp $ 1# $Id: configure.ac,v 1.113.2.1 2003/04/29 09:12:08 djm Exp $
2 2
3AC_INIT 3AC_INIT
4AC_CONFIG_SRCDIR([ssh.c]) 4AC_CONFIG_SRCDIR([ssh.c])
@@ -57,20 +57,24 @@ case "$host" in
57 AFS_LIBS="-lld" 57 AFS_LIBS="-lld"
58 CPPFLAGS="$CPPFLAGS -I/usr/local/include" 58 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
59 LDFLAGS="$LDFLAGS -L/usr/local/lib" 59 LDFLAGS="$LDFLAGS -L/usr/local/lib"
60 if (test "$LD" != "gcc" && test -z "$blibpath"); then 60 AC_MSG_CHECKING([how to specify blibpath for linker ($LD)])
61 AC_MSG_CHECKING([if linkage editor ($LD) accepts -blibpath]) 61 if (test -z "$blibpath"); then
62 saved_LDFLAGS="$LDFLAGS" 62 blibpath="/usr/lib:/lib:/usr/local/lib"
63 LDFLAGS="$LDFLAGS -blibpath:/usr/lib:/lib:/usr/local/lib" 63 fi
64 AC_TRY_LINK([], 64 saved_LDFLAGS="$LDFLAGS"
65 [], 65 for tryflags in -blibpath: -Wl,-blibpath: -Wl,-rpath, ;do
66 [ 66 if (test -z "$blibflags"); then
67 AC_MSG_RESULT(yes) 67 LDFLAGS="$saved_LDFLAGS $tryflags$blibpath"
68 blibpath="/usr/lib:/lib:/usr/local/lib" 68 AC_TRY_LINK([], [], [blibflags=$tryflags])
69 ], 69 fi
70 [ AC_MSG_RESULT(no) ] 70 done
71 ) 71 if (test -z "$blibflags"); then
72 LDFLAGS="$saved_LDFLAGS" 72 AC_MSG_RESULT(not found)
73 AC_MSG_ERROR([*** must be able to specify blibpath on AIX - check config.log])
74 else
75 AC_MSG_RESULT($blibflags)
73 fi 76 fi
77 LDFLAGS="$saved_LDFLAGS"
74 AC_CHECK_FUNC(authenticate, [AC_DEFINE(WITH_AIXAUTHENTICATE)], 78 AC_CHECK_FUNC(authenticate, [AC_DEFINE(WITH_AIXAUTHENTICATE)],
75 [AC_CHECK_LIB(s,authenticate, 79 [AC_CHECK_LIB(s,authenticate,
76 [ AC_DEFINE(WITH_AIXAUTHENTICATE) 80 [ AC_DEFINE(WITH_AIXAUTHENTICATE)
@@ -618,6 +622,7 @@ AC_CHECK_FUNCS(\
618) 622)
619 623
620AC_SEARCH_LIBS(nanosleep, rt posix4, AC_DEFINE(HAVE_NANOSLEEP)) 624AC_SEARCH_LIBS(nanosleep, rt posix4, AC_DEFINE(HAVE_NANOSLEEP))
625AC_SEARCH_LIBS(basename, gen, AC_DEFINE(HAVE_BASENAME))
621 626
622dnl Make sure strsep prototype is defined before defining HAVE_STRSEP 627dnl Make sure strsep prototype is defined before defining HAVE_STRSEP
623AC_CHECK_DECL(strsep, [AC_CHECK_FUNCS(strsep)]) 628AC_CHECK_DECL(strsep, [AC_CHECK_FUNCS(strsep)])
@@ -2473,8 +2478,8 @@ fi
2473 2478
2474 2479
2475if test ! -z "$blibpath" ; then 2480if test ! -z "$blibpath" ; then
2476 LDFLAGS="$LDFLAGS -blibpath:$blibpath" 2481 LDFLAGS="$LDFLAGS $blibflags$blibpath"
2477 AC_MSG_WARN([Please check and edit -blibpath in LDFLAGS in Makefile]) 2482 AC_MSG_WARN([Please check and edit blibpath in LDFLAGS in Makefile])
2478fi 2483fi
2479 2484
2480dnl remove pam and dl because they are in $LIBPAM 2485dnl remove pam and dl because they are in $LIBPAM