3 AC_CONFIG_HEADER(config.h)
11 AC_CHECK_PROG(AR, ar, ar)
12 AC_PATH_PROG(PERL, perl)
14 AC_PATH_PROG(ENT, ent)
16 AC_PATH_PROGS(FILEPRIV, filepriv, true, /sbin:/usr/sbin)
18 # Use LOGIN_PROGRAM from environment if possible
19 if test ! -z "$LOGIN_PROGRAM" ; then
20 AC_DEFINE_UNQUOTED(LOGIN_PROGRAM_FALLBACK, "$LOGIN_PROGRAM")
23 AC_PATH_PROG(LOGIN_PROGRAM_FALLBACK, login)
24 if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
25 AC_DEFINE_UNQUOTED(LOGIN_PROGRAM_FALLBACK, "$LOGIN_PROGRAM_FALLBACK")
29 if test -z "$LD" ; then
36 if test "$GCC" = "yes"; then
37 CFLAGS="$CFLAGS -Wall"
40 CFLAGS="$CFLAGS -I. -I${srcdir-.}"
42 # Check for some target-specific stuff
46 CFLAGS="$CFLAGS -I/usr/local/include"
47 LDFLAGS="$LDFLAGS -L/usr/local/lib"
48 if (test "$LD" != "gcc" && test -z "$blibpath"); then
49 blibpath="/usr/lib:/lib:/usr/local/lib"
51 AC_CHECK_FUNC(authenticate, [AC_DEFINE(WITH_AIXAUTHENTICATE)])
52 AC_DEFINE(BROKEN_GETADDRINFO)
55 dnl AIX handles lastlog as part of its login message
56 AC_DEFINE(DISABLE_LASTLOG)
61 LIBS="$LIBS /usr/lib/textmode.o"
62 AC_DEFINE(HAVE_CYGWIN)
63 AC_DEFINE(DISABLE_PAM)
64 AC_DEFINE(DISABLE_SHADOW)
65 AC_DEFINE(IPV4_DEFAULT)
66 AC_DEFINE(IP_TOS_IS_BROKEN)
67 AC_DEFINE(BROKEN_VHANGUP)
73 if test -z "$GCC"; then
76 CFLAGS="$CFLAGS -D_HPUX_SOURCE"
79 AC_DEFINE(DISABLE_SHADOW)
80 AC_DEFINE(DISABLE_UTMP)
86 CFLAGS="$CFLAGS -D_HPUX_SOURCE"
89 AC_DEFINE(DISABLE_SHADOW)
90 AC_DEFINE(DISABLE_UTMP)
96 CFLAGS="$CFLAGS -I/usr/local/include"
101 AC_DEFINE(BROKEN_INET_NTOA)
104 CFLAGS="$CFLAGS -I/usr/local/include"
107 AC_DEFINE(WITH_IRIX_ARRAY)
108 AC_DEFINE(WITH_IRIX_PROJECT)
109 AC_DEFINE(WITH_IRIX_AUDIT)
112 AC_DEFINE(BROKEN_INET_NTOA)
116 AC_DEFINE(DONT_TRY_OTHER_AF)
117 AC_DEFINE(PAM_TTY_KLUDGE)
118 inet6_default_4in6=yes
124 conf_lastlog_location="/usr/adm/lastlog"
125 conf_utmp_location=/etc/utmp
126 conf_wtmp_location=/usr/adm/wtmp
129 CFLAGS="$CFLAGS -I/usr/local/include"
132 CFLAGS="$CFLAGS -I/usr/local/include"
133 LDFLAGS="$LDFLAGS -L/usr/local/lib -R/usr/local/lib -L/usr/ucblib -R/usr/ucblib"
135 # hardwire lastlog location (can't detect it on some versions)
136 conf_lastlog_location="/var/adm/lastlog"
137 AC_MSG_CHECKING(for obsolete utmp and wtmp in solaris2.x)
138 sol2ver=`echo "$host"| sed -e 's/.*[[0-9]]\.//'`
139 if test "$sol2ver" -ge 8; then
141 AC_DEFINE(DISABLE_UTMP)
142 AC_DEFINE(DISABLE_WTMP)
148 CFLAGS="$CFLAGS -DSUNOS4"
149 AC_CHECK_FUNCS(getpwanam)
150 conf_utmp_location=/etc/utmp
151 conf_wtmp_location=/var/adm/wtmp
152 conf_lastlog_location=/var/adm/lastlog
158 CFLAGS="$CFLAGS -I/usr/local/include"
159 LDFLAGS="$LDFLAGS -L/usr/local/lib -L/usr/ucblib"
161 AC_DEFINE(IP_TOS_IS_BROKEN)
163 LIBS="$LIBS -lgen -lnsl -lucb"
166 CFLAGS="$CFLAGS -I/usr/local/include"
167 LDFLAGS="$LDFLAGS -L/usr/local/lib"
170 LIBS="$LIBS -lgen -lsocket -lnsl -lresolv"
174 CFLAGS="$CFLAGS -I/usr/local/include"
175 LDFLAGS="$LDFLAGS -L/usr/local/lib"
178 LIBS="$LIBS -lgen -lsocket"
182 CFLAGS="$CFLAGS -I/usr/local/include"
183 LDFLAGS="$LDFLAGS -L/usr/local/lib"
186 LIBS="$LIBS -lgen -lsocket"
190 CFLAGS="$CFLAGS -Dftruncate=chsize -I/usr/local/include"
191 LDFLAGS="$LDFLAGS -L/usr/local/lib"
194 LIBS="$LIBS -lgen -lsocket -los -lprot -lx"
197 AC_DEFINE(BROKEN_SYS_TERMIO_H)
198 rsh_path="/usr/bin/rcmd"
199 AC_DEFINE(HAVE_SCO_PROTECTED_PW)
202 CFLAGS="$CFLAGS -I/usr/local/include"
203 LDFLAGS="$LDFLAGS -L/usr/local/lib"
206 LIBS="$LIBS -lgen -lsocket -lprot -lx"
208 rsh_path="/usr/bin/rcmd"
209 AC_DEFINE(HAVE_SCO_PROTECTED_PW)
213 if test ! -z "USE_SIA" ; then
214 AC_MSG_CHECKING(for Digital Unix Security Integration Architecture)
215 if test -f /etc/sia/matrix.conf; then
217 AC_DEFINE(HAVE_OSF_SIA)
218 AC_DEFINE(DISABLE_LOGIN)
219 LIBS="$LIBS -lsecurity -ldb -lm -laud"
227 # Allow user to specify flags
229 [ --with-cflags Specify additional flags to pass to compiler],
231 if test "x$withval" != "xno" ; then
232 CFLAGS="$CFLAGS $withval"
237 [ --with-ldlags Specify additional flags to pass to linker],
239 if test "x$withval" != "xno" ; then
240 LDFLAGS="$LDFLAGS $withval"
245 [ --with-libs Specify additional libraries to link with],
247 if test "x$withval" != "xno" ; then
248 LIBS="$LIBS $withval"
254 # Checks for libraries.
255 AC_CHECK_LIB(z, deflate, ,AC_MSG_ERROR([*** zlib missing - please install first ***]))
256 AC_CHECK_LIB(util, login, AC_DEFINE(HAVE_LIBUTIL_LOGIN) LIBS="$LIBS -lutil")
258 if test -z "$no_libsocket" ; then
259 AC_CHECK_LIB(nsl, yp_match, , )
261 if test -z "$no_libnsl" ; then
262 AC_CHECK_LIB(socket, main, , )
265 # Checks for header files.
266 AC_CHECK_HEADERS(bstring.h endian.h floatingpoint.h getopt.h lastlog.h limits.h login.h login_cap.h maillock.h netdb.h netgroup.h netinet/in_systm.h paths.h poll.h pty.h shadow.h security/pam_appl.h sys/bitypes.h sys/bsdtty.h sys/cdefs.h sys/poll.h sys/select.h sys/stat.h sys/stropts.h sys/sysmacros.h sys/time.h sys/ttcompat.h sys/un.h stddef.h time.h ttyent.h usersec.h util.h utmp.h utmpx.h)
268 dnl Checks for library functions.
269 AC_CHECK_FUNCS(arc4random atexit b64_ntop bcopy bindresvport_af clock fchmod freeaddrinfo futimes gai_strerror getaddrinfo getnameinfo getrusage getttyent inet_aton inet_ntoa innetgr login_getcapbool md5_crypt memmove mkdtemp on_exit openpty rresvport_af setenv seteuid setlogin setproctitle setreuid setrlimit sigaction sigvec snprintf strerror strlcat strlcpy strsep strtok_r vsnprintf vhangup _getpty __b64_ntop)
270 dnl Checks for time functions
271 AC_CHECK_FUNCS(gettimeofday time)
272 dnl Checks for libutil functions
273 AC_CHECK_FUNCS(login logout updwtmp logwtmp)
274 dnl Checks for utmp functions
275 AC_CHECK_FUNCS(entutent getutent getutid getutline pututline setutent)
276 AC_CHECK_FUNCS(utmpname)
277 dnl Checks for utmpx functions
278 AC_CHECK_FUNCS(entutxent getutxent getutxid getutxline pututxline )
279 AC_CHECK_FUNCS(setutxent utmpxname)
281 AC_CHECK_FUNC(getuserattr,
282 [AC_DEFINE(HAVE_GETUSERATTR)],
283 [AC_CHECK_LIB(s, getuserattr, [LIBS="$LIBS -ls"; AC_DEFINE(HAVE_GETUSERATTR)])]
287 [AC_DEFINE(HAVE_LOGIN)],
288 [AC_CHECK_LIB(bsd, login, [LIBS="$LIBS -lbsd"; AC_DEFINE(HAVE_LOGIN)])]
291 AC_CHECK_FUNC(daemon,
292 [AC_DEFINE(HAVE_DAEMON)],
293 [AC_CHECK_LIB(bsd, daemon, [LIBS="$LIBS -lbsd"; AC_DEFINE(HAVE_DAEMON)])]
296 AC_CHECK_FUNC(getpagesize,
297 [AC_DEFINE(HAVE_GETPAGESIZE)],
298 [AC_CHECK_LIB(ucb, getpagesize, [LIBS="$LIBS -lucb"; AC_DEFINE(HAVE_GETPAGESIZE)])]
301 # Check for broken snprintf
302 if test "x$ac_cv_func_snprintf" = "xyes" ; then
303 AC_MSG_CHECKING([whether snprintf correctly terminates long strings])
307 int main(void){char b[5];snprintf(b,5,"123456789");return(b[4]!='\0');}
309 [AC_MSG_RESULT(yes)],
312 AC_DEFINE(BROKEN_SNPRINTF)
313 AC_MSG_WARN([****** Your snprintf() function is broken, complain to your vendor])
322 [ --without-pam Disable PAM support ],
324 if test "x$withval" = "xno" ; then
326 AC_DEFINE(DISABLE_PAM)
331 if (test -z "$no_pam" && test "x$ac_cv_header_security_pam_appl_h" = "xyes") ; then
332 AC_CHECK_LIB(dl, dlopen, , )
335 AC_CHECK_FUNCS(pam_getenvlist)
341 # Check PAM strerror arguments (old PAM)
342 AC_MSG_CHECKING([whether pam_strerror takes only one argument])
346 #include <security/pam_appl.h>
348 [(void)pam_strerror((pam_handle_t *)NULL, -1);],
351 AC_DEFINE(HAVE_OLD_PAM)
353 PAM_MSG="yes (old library)"
358 # The big search for OpenSSL
360 [ --with-ssl-dir=PATH Specify path to OpenSSL installation ],
362 if test "x$withval" != "$xno" ; then
369 saved_LDFLAGS="$LDFLAGS"
370 saved_CFLAGS="$CFLAGS"
371 if test "x$prefix" != "xNONE" ; then
372 tryssldir="$tryssldir $prefix"
374 AC_CACHE_CHECK([for OpenSSL directory], ac_cv_openssldir, [
376 for ssldir in $tryssldir "" /usr/local/openssl /usr/lib/openssl /usr/local/ssl /usr/lib/ssl /usr/local /usr/pkg /opt /opt/openssl ; do
377 if test ! -z "$ssldir" ; then
378 LDFLAGS="$saved_LDFLAGS -L$ssldir/lib -L$ssldir"
379 CFLAGS="$saved_CFLAGS -I$ssldir/include"
380 if test ! -z "$need_dash_r" ; then
381 LDFLAGS="$LDFLAGS -R$ssldir/lib -R$ssldir"
384 LDFLAGS="$saved_LDFLAGS"
387 LIBS="$saved_LIBS -lcrypto"
389 # Basic test to check for compatible version and correct linking
390 # *does not* test for RSA - that comes later.
394 #include <openssl/rand.h>
398 memset(a, 0, sizeof(a));
399 RAND_add(a, sizeof(a), sizeof(a));
400 return(RAND_status() <= 0);
409 if test ! -z "$found_crypto" ; then
414 if test -z "$found_crypto" ; then
415 AC_MSG_ERROR([Could not find working SSLeay / OpenSSL libraries, please install])
417 if test -z "$ssldir" ; then
421 ac_cv_openssldir=$ssldir
424 if (test ! -z "$ac_cv_openssldir" && test "x$ac_cv_openssldir" != "x(system)") ; then
425 AC_DEFINE(HAVE_OPENSSL)
426 dnl Need to recover ssldir - test above runs in subshell
427 ssldir=$ac_cv_openssldir
428 CFLAGS="$saved_CFLAGS -I$ssldir/include"
429 LDFLAGS="$saved_LDFLAGS -L$ssldir/lib -L$ssldir"
430 if test ! -z "$need_dash_r" ; then
431 LDFLAGS="$LDFLAGS -R$ssldir/lib -R$ssldir"
433 if test ! -z "$blibpath" ; then
434 blibpath="$blibpath:$ssldir:$ssldir/lib"
437 LIBS="$saved_LIBS -lcrypto"
439 # Now test RSA support
441 AC_MSG_CHECKING([for RSA support])
442 for WANTS_RSAREF in "" 1 ; do
443 if test -z "$WANTS_RSAREF" ; then
446 LIBS="$saved_LIBS -lRSAglue -lrsaref"
450 #include <openssl/rand.h>
451 #include <openssl/rsa.h>
452 #include <openssl/bn.h>
453 #include <openssl/sha.h>
456 int num; RSA *key; static unsigned char p_in[] = "blahblah";
457 unsigned char c[256], p[256];
458 memset(c, 0, sizeof(c)); RAND_add(c, sizeof(c), sizeof(c));
459 if ((key=RSA_generate_key(512, 3, NULL, NULL))==NULL) return(1);
460 num = RSA_public_encrypt(sizeof(p_in) - 1, p_in, c, key, RSA_PKCS1_PADDING);
461 return(-1 == RSA_private_decrypt(num, c, p, key, RSA_PKCS1_PADDING));
470 if test ! -z "$no_rsa" ; then
471 AC_MSG_RESULT(disabled)
474 if test -z "$rsa_works" ; then
475 AC_MSG_WARN([*** No RSA support found *** ])
478 if test -z "$WANTS_RSAREF" ; then
482 RSA_MSG="yes (using RSAref)"
483 AC_MSG_RESULT(using RSAref)
484 LIBS="$saved_LIBS -lcrypto -lRSAglue -lrsaref"
489 # Checks for data types
490 AC_CHECK_SIZEOF(char, 1)
491 AC_CHECK_SIZEOF(short int, 2)
492 AC_CHECK_SIZEOF(int, 4)
493 AC_CHECK_SIZEOF(long int, 4)
494 AC_CHECK_SIZEOF(long long int, 8)
496 # More checks for data types
497 AC_CACHE_CHECK([for u_int type], ac_cv_have_u_int, [
499 [ #include <sys/types.h> ],
501 [ ac_cv_have_u_int="yes" ],
502 [ ac_cv_have_u_int="no" ]
505 if test "x$ac_cv_have_u_int" = "xyes" ; then
506 AC_DEFINE(HAVE_U_INT)
510 AC_CACHE_CHECK([for intXX_t types], ac_cv_have_intxx_t, [
512 [ #include <sys/types.h> ],
513 [ int8_t a; int16_t b; int32_t c; a = b = c = 1;],
514 [ ac_cv_have_intxx_t="yes" ],
515 [ ac_cv_have_intxx_t="no" ]
518 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
519 AC_DEFINE(HAVE_INTXX_T)
523 AC_CACHE_CHECK([for int64_t type], ac_cv_have_int64_t, [
525 [ #include <sys/types.h> ],
526 [ int64_t a; a = 1;],
527 [ ac_cv_have_int64_t="yes" ],
528 [ ac_cv_have_int64_t="no" ]
531 if test "x$ac_cv_have_int64_t" = "xyes" ; then
532 AC_DEFINE(HAVE_INT64_T)
536 AC_CACHE_CHECK([for u_intXX_t types], ac_cv_have_u_intxx_t, [
538 [ #include <sys/types.h> ],
539 [ u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;],
540 [ ac_cv_have_u_intxx_t="yes" ],
541 [ ac_cv_have_u_intxx_t="no" ]
544 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
545 AC_DEFINE(HAVE_U_INTXX_T)
549 AC_CACHE_CHECK([for u_int64_t types], ac_cv_have_u_int64_t, [
551 [ #include <sys/types.h> ],
552 [ u_int64_t a; a = 1;],
553 [ ac_cv_have_u_int64_t="yes" ],
554 [ ac_cv_have_u_int64_t="no" ]
557 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
558 AC_DEFINE(HAVE_U_INT64_T)
562 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
563 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
565 AC_MSG_CHECKING([for intXX_t and u_intXX_t types in sys/bitypes.h])
568 #include <sys/bitypes.h>
571 int8_t a; int16_t b; int32_t c;
572 u_int8_t e; u_int16_t f; u_int32_t g;
573 a = b = c = e = f = g = 1;
576 AC_DEFINE(HAVE_U_INTXX_T)
577 AC_DEFINE(HAVE_INTXX_T)
584 if test -z "$have_u_intxx_t" ; then
585 AC_CACHE_CHECK([for uintXX_t types], ac_cv_have_uintxx_t, [
588 #include <sys/types.h>
590 [ uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; ],
591 [ ac_cv_have_uintxx_t="yes" ],
592 [ ac_cv_have_uintxx_t="no" ]
595 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
596 AC_DEFINE(HAVE_UINTXX_T)
600 AC_CACHE_CHECK([for socklen_t], ac_cv_have_socklen_t, [
603 #include <sys/types.h>
604 #include <sys/socket.h>
606 [socklen_t foo; foo = 1235;],
607 [ ac_cv_have_socklen_t="yes" ],
608 [ ac_cv_have_socklen_t="no" ]
611 if test "x$ac_cv_have_socklen_t" = "xyes" ; then
612 AC_DEFINE(HAVE_SOCKLEN_T)
615 AC_CACHE_CHECK([for size_t], ac_cv_have_size_t, [
618 #include <sys/types.h>
620 [ size_t foo; foo = 1235; ],
621 [ ac_cv_have_size_t="yes" ],
622 [ ac_cv_have_size_t="no" ]
625 if test "x$ac_cv_have_size_t" = "xyes" ; then
626 AC_DEFINE(HAVE_SIZE_T)
629 AC_CACHE_CHECK([for ssize_t], ac_cv_have_ssize_t, [
632 #include <sys/types.h>
634 [ ssize_t foo; foo = 1235; ],
635 [ ac_cv_have_ssize_t="yes" ],
636 [ ac_cv_have_ssize_t="no" ]
639 if test "x$ac_cv_have_ssize_t" = "xyes" ; then
640 AC_DEFINE(HAVE_SSIZE_T)
643 AC_CACHE_CHECK([for sa_family_t], ac_cv_have_sa_family_t, [
646 #include <sys/types.h>
647 #include <sys/socket.h>
649 [ sa_family_t foo; foo = 1235; ],
650 [ ac_cv_have_sa_family_t="yes" ],
653 #include <sys/types.h>
654 #include <sys/socket.h>
655 #include <netinet/in.h>
657 [ sa_family_t foo; foo = 1235; ],
658 [ ac_cv_have_sa_family_t="yes" ],
660 [ ac_cv_have_sa_family_t="no" ]
664 if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
665 AC_DEFINE(HAVE_SA_FAMILY_T)
668 AC_CACHE_CHECK([for pid_t], ac_cv_have_pid_t, [
671 #include <sys/types.h>
673 [ pid_t foo; foo = 1235; ],
674 [ ac_cv_have_pid_t="yes" ],
675 [ ac_cv_have_pid_t="no" ]
678 if test "x$ac_cv_have_pid_t" = "xyes" ; then
679 AC_DEFINE(HAVE_PID_T)
682 AC_CACHE_CHECK([for mode_t], ac_cv_have_mode_t, [
685 #include <sys/types.h>
687 [ mode_t foo; foo = 1235; ],
688 [ ac_cv_have_mode_t="yes" ],
689 [ ac_cv_have_mode_t="no" ]
692 if test "x$ac_cv_have_mode_t" = "xyes" ; then
693 AC_DEFINE(HAVE_MODE_T)
697 AC_CACHE_CHECK([for struct sockaddr_storage], ac_cv_have_struct_sockaddr_storage, [
700 #include <sys/types.h>
701 #include <sys/socket.h>
703 [ struct sockaddr_storage s; ],
704 [ ac_cv_have_struct_sockaddr_storage="yes" ],
705 [ ac_cv_have_struct_sockaddr_storage="no" ]
708 if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
709 AC_DEFINE(HAVE_STRUCT_SOCKADDR_STORAGE)
712 AC_CACHE_CHECK([for struct sockaddr_in6], ac_cv_have_struct_sockaddr_in6, [
715 #include <sys/types.h>
716 #include <netinet/in.h>
718 [ struct sockaddr_in6 s; s.sin6_family = 0; ],
719 [ ac_cv_have_struct_sockaddr_in6="yes" ],
720 [ ac_cv_have_struct_sockaddr_in6="no" ]
723 if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
724 AC_DEFINE(HAVE_STRUCT_SOCKADDR_IN6)
727 AC_CACHE_CHECK([for struct in6_addr], ac_cv_have_struct_in6_addr, [
730 #include <sys/types.h>
731 #include <netinet/in.h>
733 [ struct in6_addr s; s.s6_addr[0] = 0; ],
734 [ ac_cv_have_struct_in6_addr="yes" ],
735 [ ac_cv_have_struct_in6_addr="no" ]
738 if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
739 AC_DEFINE(HAVE_STRUCT_IN6_ADDR)
742 AC_CACHE_CHECK([for struct addrinfo], ac_cv_have_struct_addrinfo, [
745 #include <sys/types.h>
746 #include <sys/socket.h>
749 [ struct addrinfo s; s.ai_flags = AI_PASSIVE; ],
750 [ ac_cv_have_struct_addrinfo="yes" ],
751 [ ac_cv_have_struct_addrinfo="no" ]
754 if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
755 AC_DEFINE(HAVE_STRUCT_ADDRINFO)
758 dnl Checks for structure members
759 OSSH_CHECK_HEADER_FOR_FIELD(ut_host, utmp.h, HAVE_HOST_IN_UTMP)
760 OSSH_CHECK_HEADER_FOR_FIELD(ut_host, utmpx.h, HAVE_HOST_IN_UTMPX)
761 OSSH_CHECK_HEADER_FOR_FIELD(syslen, utmpx.h, HAVE_SYSLEN_IN_UTMPX)
762 OSSH_CHECK_HEADER_FOR_FIELD(ut_pid, utmp.h, HAVE_PID_IN_UTMP)
763 OSSH_CHECK_HEADER_FOR_FIELD(ut_type, utmp.h, HAVE_TYPE_IN_UTMP)
764 OSSH_CHECK_HEADER_FOR_FIELD(ut_type, utmpx.h, HAVE_TYPE_IN_UTMPX)
765 OSSH_CHECK_HEADER_FOR_FIELD(ut_tv, utmp.h, HAVE_TV_IN_UTMP)
766 OSSH_CHECK_HEADER_FOR_FIELD(ut_id, utmp.h, HAVE_ID_IN_UTMP)
767 OSSH_CHECK_HEADER_FOR_FIELD(ut_id, utmpx.h, HAVE_ID_IN_UTMPX)
768 OSSH_CHECK_HEADER_FOR_FIELD(ut_addr, utmp.h, HAVE_ADDR_IN_UTMP)
769 OSSH_CHECK_HEADER_FOR_FIELD(ut_addr, utmpx.h, HAVE_ADDR_IN_UTMPX)
770 OSSH_CHECK_HEADER_FOR_FIELD(ut_addr_v6, utmp.h, HAVE_ADDR_V6_IN_UTMP)
771 OSSH_CHECK_HEADER_FOR_FIELD(ut_addr_v6, utmpx.h, HAVE_ADDR_V6_IN_UTMPX)
772 OSSH_CHECK_HEADER_FOR_FIELD(ut_exit, utmp.h, HAVE_EXIT_IN_UTMP)
773 OSSH_CHECK_HEADER_FOR_FIELD(ut_time, utmp.h, HAVE_TIME_IN_UTMP)
774 OSSH_CHECK_HEADER_FOR_FIELD(ut_time, utmpx.h, HAVE_TIME_IN_UTMPX)
775 OSSH_CHECK_HEADER_FOR_FIELD(ut_tv, utmpx.h, HAVE_TV_IN_UTMPX)
778 AC_CACHE_CHECK([for sun_len field in struct sockaddr_un],
779 ac_cv_have_sun_len_in_struct_sockaddr_un, [
782 #include <sys/types.h>
783 #include <sys/socket.h>
785 [ struct sockaddr_un s; s.sun_len = 1; ],
786 [ ac_cv_have_sun_len_in_struct_sockaddr_un="yes" ],
787 [ ac_cv_have_sun_len_in_struct_sockaddr_un="no" ],
790 if test "x$ac_cv_have_sun_len_in_struct_sockaddr_un" = "xyes" ; then
791 AC_DEFINE(HAVE_SUN_LEN_IN_SOCKADDR_UN)
794 AC_CACHE_CHECK([for ss_family field in struct sockaddr_storage],
795 ac_cv_have_ss_family_in_struct_ss, [
798 #include <sys/types.h>
799 #include <sys/socket.h>
801 [ struct sockaddr_storage s; s.ss_family = 1; ],
802 [ ac_cv_have_ss_family_in_struct_ss="yes" ],
803 [ ac_cv_have_ss_family_in_struct_ss="no" ],
806 if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
807 AC_DEFINE(HAVE_SS_FAMILY_IN_SS)
810 AC_CACHE_CHECK([for __ss_family field in struct sockaddr_storage],
811 ac_cv_have___ss_family_in_struct_ss, [
814 #include <sys/types.h>
815 #include <sys/socket.h>
817 [ struct sockaddr_storage s; s.__ss_family = 1; ],
818 [ ac_cv_have___ss_family_in_struct_ss="yes" ],
819 [ ac_cv_have___ss_family_in_struct_ss="no" ]
822 if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
823 AC_DEFINE(HAVE___SS_FAMILY_IN_SS)
826 AC_CACHE_CHECK([for pw_class field in struct passwd],
827 ac_cv_have_pw_class_in_struct_passwd, [
830 #include <sys/types.h>
833 [ struct passwd p s; p.pw_class = NULL; ],
834 [ ac_cv_have_pw_class_in_struct_passwd="yes" ],
835 [ ac_cv_have_pw_class_in_struct_passwd="no" ]
838 if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then
839 AC_DEFINE(HAVE_PW_CLASS_IN_PASSWD)
843 AC_CACHE_CHECK([if libc defines __progname], ac_cv_libc_defines___progname, [
845 [ extern char *__progname; printf("%s", __progname); ],
846 [ ac_cv_libc_defines___progname="yes" ],
847 [ ac_cv_libc_defines___progname="no" ]
850 if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
851 AC_DEFINE(HAVE___PROGNAME)
855 AC_CACHE_CHECK([if libc defines sys_errlist], ac_cv_libc_defines_sys_errlist, [
857 [ extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);],
858 [ ac_cv_libc_defines_sys_errlist="yes" ],
859 [ ac_cv_libc_defines_sys_errlist="no" ]
862 if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
863 AC_DEFINE(HAVE_SYS_ERRLIST)
867 AC_CACHE_CHECK([if libc defines sys_nerr], ac_cv_libc_defines_sys_nerr, [
869 [ extern int sys_nerr; printf("%i", sys_nerr);],
870 [ ac_cv_libc_defines_sys_nerr="yes" ],
871 [ ac_cv_libc_defines_sys_nerr="no" ]
874 if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
875 AC_DEFINE(HAVE_SYS_NERR)
879 # Looking for programs, paths and files
881 [ --with-rsh=PATH Specify path to remote shell program ],
883 if test "x$withval" != "$no" ; then
888 AC_PATH_PROG(rsh_path, rsh)
893 [ --with-xauth=PATH Specify path to xauth program ],
895 if test "x$withval" != "$xno" ; then
900 AC_PATH_PROG(xauth_path, xauth,,$PATH:/usr/X/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/openwin/bin)
901 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
902 xauth_path="/usr/openwin/bin/xauth"
907 if test ! -z "$xauth_path" ; then
908 AC_DEFINE_UNQUOTED(XAUTH_PATH, "$xauth_path")
910 if test ! -z "$rsh_path" ; then
911 AC_DEFINE_UNQUOTED(RSH_PATH, "$rsh_path")
914 # Check for mail directory (last resort if we cannot get it from headers)
915 if test ! -z "$MAIL" ; then
916 maildir=`dirname $MAIL`
917 AC_DEFINE_UNQUOTED(MAIL_DIRECTORY, "$maildir")
920 if test -z "$no_dev_ptmx" ; then
921 AC_CHECK_FILE("/dev/ptmx",
923 AC_DEFINE_UNQUOTED(HAVE_DEV_PTMX)
928 AC_CHECK_FILE("/dev/ptc",
930 AC_DEFINE_UNQUOTED(HAVE_DEV_PTS_AND_PTC)
935 # Options from here on. Some of these are preset by platform above
937 # Check for user-specified random device, otherwise check /dev/urandom
939 [ --with-random=FILE read randomness from FILE (default=/dev/urandom)],
941 if test "x$withval" != "xno" ; then
942 RANDOM_POOL="$withval";
943 AC_DEFINE_UNQUOTED(RANDOM_POOL, "$RANDOM_POOL")
947 # Check for random device
948 AC_CHECK_FILE("/dev/urandom",
950 RANDOM_POOL="/dev/urandom";
951 AC_SUBST(RANDOM_POOL)
952 AC_DEFINE_UNQUOTED(RANDOM_POOL, "$RANDOM_POOL")
958 # Check for EGD pool file
959 AC_ARG_WITH(egd-pool,
960 [ --with-egd-pool=FILE read randomness from EGD pool FILE (default none)],
962 if test "x$withval" != "xno" ; then
963 EGD_SOCKET="$withval";
964 AC_DEFINE_UNQUOTED(EGD_SOCKET, "$EGD_SOCKET")
969 # detect pathnames for entropy gathering commands, if we need them
970 INSTALL_SSH_PRNG_CMDS=""
972 if (test -z "$RANDOM_POOL" && test -z "$EGD_SOCKET") ; then
973 # Use these commands to collect entropy
974 OSSH_PATH_ENTROPY_PROG(PROG_LS, ls)
975 OSSH_PATH_ENTROPY_PROG(PROG_NETSTAT, netstat)
976 OSSH_PATH_ENTROPY_PROG(PROG_ARP, arp)
977 OSSH_PATH_ENTROPY_PROG(PROG_IFCONFIG, ifconfig)
978 OSSH_PATH_ENTROPY_PROG(PROG_PS, ps)
979 OSSH_PATH_ENTROPY_PROG(PROG_W, w)
980 OSSH_PATH_ENTROPY_PROG(PROG_WHO, who)
981 OSSH_PATH_ENTROPY_PROG(PROG_LAST, last)
982 OSSH_PATH_ENTROPY_PROG(PROG_LASTLOG, lastlog)
983 OSSH_PATH_ENTROPY_PROG(PROG_DF, df)
984 OSSH_PATH_ENTROPY_PROG(PROG_VMSTAT, vmstat)
985 OSSH_PATH_ENTROPY_PROG(PROG_UPTIME, uptime)
986 OSSH_PATH_ENTROPY_PROG(PROG_IPCS, ipcs)
987 OSSH_PATH_ENTROPY_PROG(PROG_TAIL, tail)
988 OSSH_PATH_ENTROPY_PROG(PROG_LS, ls)
990 INSTALL_SSH_PRNG_CMDS="yes"
992 AC_SUBST(INSTALL_SSH_PRNG_CMDS)
996 [ --with-catman=man|cat Install preformatted manpages[no]],
999 if test x"$withval" != x"yes" ; then
1005 if test -z "$MANTYPE" ; then
1006 MANTYPE='$(TROFFMAN)'
1014 # Check whether user wants Kerberos support
1016 AC_ARG_WITH(kerberos4,
1017 [ --with-kerberos4=PATH Enable Kerberos 4 support],
1019 if test "x$withval" != "xno" ; then
1021 if test "x$withval" != "$xyes" ; then
1022 CFLAGS="$CFLAGS -I${withval}/include"
1023 LDFLAGS="$LDFLAGS -L${withval}/lib"
1024 if test ! -z "$need_dash_r" ; then
1025 LDFLAGS="$LDFLAGS -R${withval}/lib"
1027 if test ! -z "$blibpath" ; then
1028 blibpath="$blibpath:${withval}/lib"
1031 if test -d /usr/include/kerberosIV ; then
1032 CFLAGS="$CFLAGS -I/usr/include/kerberosIV"
1036 AC_CHECK_HEADERS(krb.h)
1037 AC_CHECK_LIB(krb, main)
1038 if test "$ac_cv_header_krb_h" != yes; then
1039 AC_MSG_WARN([Cannot find krb.h, build may fail])
1041 if test "$ac_cv_lib_krb_main" != yes; then
1042 AC_MSG_WARN([Cannot find libkrb, build may fail])
1046 AC_CHECK_LIB(resolv, dn_expand, , )
1054 # Check whether user wants AFS support
1057 [ --with-afs=PATH Enable AFS support],
1059 if test "x$withval" != "xno" ; then
1061 if test "x$withval" != "$xyes" ; then
1062 CFLAGS="$CFLAGS -I${withval}/include"
1063 LFLAGS="$LFLAGS -L${withval}/lib"
1066 if test -z "$KRB4" ; then
1067 AC_MSG_WARN([AFS requires Kerberos IV support, build may fail])
1071 if test ! -z "$AFS_LIBS" ; then
1072 LIBS="$LIBS $AFS_LIBS"
1081 # Check whether user wants S/Key support
1084 [ --with-skey Enable S/Key support],
1086 if test "x$withval" != "xno" ; then
1094 # Check whether user wants TCP wrappers support
1096 AC_ARG_WITH(tcp-wrappers,
1097 [ --with-tcp-wrappers Enable tcpwrappers support],
1099 if test "x$withval" != "xno" ; then
1102 AC_MSG_CHECKING(for libwrap)
1106 int deny_severity = 0, allow_severity = 0;
1115 AC_MSG_ERROR([*** libwrap missing])
1122 # Check whether to enable MD5 passwords
1124 AC_ARG_WITH(md5-passwords,
1125 [ --with-md5-passwords Enable use of MD5 passwords],
1127 if test "x$withval" != "xno" ; then
1128 AC_DEFINE(HAVE_MD5_PASSWORDS)
1134 # Whether to disable shadow password support
1136 [ --without-shadow Disable shadow password support],
1138 if test "x$withval" = "xno" ; then
1139 AC_DEFINE(DISABLE_SHADOW)
1145 if test -z "$disable_shadow" ; then
1146 AC_MSG_CHECKING([if the systems has expire shadow information])
1149 #include <sys/types.h>
1152 ],[ sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0; ],
1153 [ sp_expire_available=yes ], []
1156 if test "x$sp_expire_available" = "xyes" ; then
1158 AC_DEFINE(HAS_SHADOW_EXPIRE)
1164 # Use ip address instead of hostname in $DISPLAY
1165 if test ! -z "$IPADDR_IN_DISPLAY" ; then
1166 DISPLAY_HACK_MSG="yes"
1167 AC_DEFINE(IPADDR_IN_DISPLAY)
1169 DISPLAY_HACK_MSG="no"
1170 AC_ARG_WITH(ipaddr-display,
1171 [ --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY],
1173 if test "x$withval" != "xno" ; then
1174 AC_DEFINE(IPADDR_IN_DISPLAY)
1175 DISPLAY_HACK_MSG="yes"
1181 # Whether to mess with the default path
1182 SERVER_PATH_MSG="(default)"
1183 AC_ARG_WITH(default-path,
1184 [ --with-default-path=PATH Specify default \$PATH environment for server],
1186 if test "x$withval" != "xno" ; then
1187 user_path="$withval"
1188 SERVER_PATH_MSG="$withval"
1193 # Whether to force IPv4 by default (needed on broken glibc Linux)
1195 AC_ARG_WITH(ipv4-default,
1196 [ --with-ipv4-default Use IPv4 by connections unless '-6' specified],
1198 if test "x$withval" != "xno" ; then
1199 AC_DEFINE(IPV4_DEFAULT)
1205 AC_MSG_CHECKING([if we need to convert IPv4 in IPv6-mapped addresses])
1206 IPV4_IN6_HACK_MSG="no"
1208 [ --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses],
1210 if test "x$withval" != "xno" ; then
1212 AC_DEFINE(IPV4_IN_IPV6)
1213 IPV4_IN6_HACK_MSG="yes"
1218 if test "x$inet6_default_4in6" = "xyes"; then
1219 AC_MSG_RESULT([yes (default)])
1220 AC_DEFINE(IPV4_IN_IPV6)
1221 IPV4_IN6_HACK_MSG="yes"
1223 AC_MSG_RESULT([no (default)])
1228 AC_MSG_CHECKING(whether to install ssh as suid root)
1229 AC_ARG_ENABLE(suid-ssh,
1230 [ --enable-suid-ssh Install ssh as suid root (default)
1231 --disable-suid-ssh Install ssh without suid bit],
1232 [ case "$enableval" in
1237 *) AC_MSG_RESULT(yes)
1247 # Where to place sshd.pid
1249 AC_ARG_WITH(pid-dir,
1250 [ --with-pid-dir=PATH Specify location of ssh.pid file],
1252 if test "x$withval" != "xno" ; then
1258 # make sure the directory exists
1259 if test ! -d $piddir ; then
1260 piddir=`eval echo ${sysconfdir}`
1262 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
1266 AC_DEFINE_UNQUOTED(PIDDIR, "$piddir")
1269 dnl allow user to disable some login recording features
1270 AC_ARG_ENABLE(lastlog,
1271 [ --disable-lastlog disable use of lastlog even if detected [no]],
1272 [ AC_DEFINE(DISABLE_LASTLOG) ]
1275 [ --disable-utmp disable use of utmp even if detected [no]],
1276 [ AC_DEFINE(DISABLE_UTMP) ]
1278 AC_ARG_ENABLE(utmpx,
1279 [ --disable-utmpx disable use of utmpx even if detected [no]],
1280 [ AC_DEFINE(DISABLE_UTMPX) ]
1283 [ --disable-wtmp disable use of wtmp even if detected [no]],
1284 [ AC_DEFINE(DISABLE_WTMP) ]
1286 AC_ARG_ENABLE(wtmpx,
1287 [ --disable-wtmpx disable use of wtmpx even if detected [no]],
1288 [ AC_DEFINE(DISABLE_WTMPX) ]
1290 AC_ARG_ENABLE(libutil,
1291 [ --disable-libutil disable use of libutil (login() etc.) [no]],
1292 [ AC_DEFINE(DISABLE_LOGIN) ]
1294 AC_ARG_ENABLE(pututline,
1295 [ --disable-pututline disable use of pututline() etc. ([uw]tmp) [no]],
1296 [ AC_DEFINE(DISABLE_PUTUTLINE) ]
1298 AC_ARG_ENABLE(pututxline,
1299 [ --disable-pututxline disable use of pututxline() etc. ([uw]tmpx) [no]],
1300 [ AC_DEFINE(DISABLE_PUTUTXLINE) ]
1302 AC_ARG_WITH(lastlog,
1303 [ --with-lastlog=FILE|DIR specify lastlog location [common locations]],
1304 [ conf_lastlog_location="$withval"; ],)
1306 dnl lastlog, [uw]tmpx? detection
1307 dnl NOTE: set the paths in the platform section to avoid the
1308 dnl need for command-line parameters
1309 dnl lastlog and [uw]tmp are subject to a file search if all else fails
1311 dnl lastlog detection
1312 dnl NOTE: the code itself will detect if lastlog is a directory
1313 AC_MSG_CHECKING([if your system defines LASTLOG_FILE])
1315 #include <sys/types.h>
1317 #ifdef HAVE_LASTLOG_H
1318 # include <lastlog.h>
1324 [ char *lastlog = LASTLOG_FILE; ],
1325 [ AC_MSG_RESULT(yes) ],
1328 AC_MSG_CHECKING([if your system defines _PATH_LASTLOG])
1330 #include <sys/types.h>
1332 #ifdef HAVE_LASTLOG_H
1333 # include <lastlog.h>
1339 [ char *lastlog = _PATH_LASTLOG; ],
1340 [ AC_MSG_RESULT(yes) ],
1343 system_lastlog_path=no
1348 if test -z "$conf_lastlog_location"; then
1349 if test x"$system_lastlog_path" = x"no" ; then
1350 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
1351 if (test -d "$f" || test -f "$f") ; then
1352 conf_lastlog_location=$f
1355 if test -z "$conf_lastlog_location"; then
1356 AC_MSG_WARN([** Cannot find lastlog **])
1357 dnl Don't define DISABLE_LASTLOG - that means we don't try wtmp/wtmpx
1362 if test -n "$conf_lastlog_location"; then
1363 AC_DEFINE_UNQUOTED(CONF_LASTLOG_FILE, "$conf_lastlog_location")
1367 AC_MSG_CHECKING([if your system defines UTMP_FILE])
1369 #include <sys/types.h>
1375 [ char *utmp = UTMP_FILE; ],
1376 [ AC_MSG_RESULT(yes) ],
1378 system_utmp_path=no ]
1380 if test -z "$conf_utmp_location"; then
1381 if test x"$system_utmp_path" = x"no" ; then
1382 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
1383 if test -f $f ; then
1384 conf_utmp_location=$f
1387 if test -z "$conf_utmp_location"; then
1388 AC_DEFINE(DISABLE_UTMP)
1392 if test -n "$conf_utmp_location"; then
1393 AC_DEFINE_UNQUOTED(CONF_UTMP_FILE, "$conf_utmp_location")
1397 AC_MSG_CHECKING([if your system defines WTMP_FILE])
1399 #include <sys/types.h>
1405 [ char *wtmp = WTMP_FILE; ],
1406 [ AC_MSG_RESULT(yes) ],
1408 system_wtmp_path=no ]
1410 if test -z "$conf_wtmp_location"; then
1411 if test x"$system_wtmp_path" = x"no" ; then
1412 for f in /usr/adm/wtmp /var/log/wtmp; do
1413 if test -f $f ; then
1414 conf_wtmp_location=$f
1417 if test -z "$conf_wtmp_location"; then
1418 AC_DEFINE(DISABLE_WTMP)
1422 if test -n "$conf_wtmp_location"; then
1423 AC_DEFINE_UNQUOTED(CONF_WTMP_FILE, "$conf_wtmp_location")
1427 dnl utmpx detection - I don't know any system so perverse as to require
1428 dnl utmpx, but not define UTMPX_FILE (ditto wtmpx.) No doubt it's out
1430 AC_MSG_CHECKING([if your system defines UTMPX_FILE])
1432 #include <sys/types.h>
1441 [ char *utmpx = UTMPX_FILE; ],
1442 [ AC_MSG_RESULT(yes) ],
1444 system_utmpx_path=no ]
1446 if test -z "$conf_utmpx_location"; then
1447 if test x"$system_utmpx_path" = x"no" ; then
1448 AC_DEFINE(DISABLE_UTMPX)
1451 AC_DEFINE_UNQUOTED(CONF_UTMPX_FILE, "$conf_utmpx_location")
1455 AC_MSG_CHECKING([if your system defines WTMPX_FILE])
1457 #include <sys/types.h>
1466 [ char *wtmpx = WTMPX_FILE; ],
1467 [ AC_MSG_RESULT(yes) ],
1469 system_wtmpx_path=no ]
1471 if test -z "$conf_wtmpx_location"; then
1472 if test x"$system_wtmpx_path" = x"no" ; then
1473 AC_DEFINE(DISABLE_WTMPX)
1476 AC_DEFINE_UNQUOTED(CONF_WTMPX_FILE, "$conf_wtmpx_location")
1480 # Change default command timeout for builtin PRNG
1482 AC_ARG_WITH(entropy-timeout,
1483 [ --with-entropy-timeout Specify entropy gathering command timeout (msec)],
1485 if test "x$withval" != "xno" ; then
1486 entropy_timeout=$withval
1490 AC_DEFINE_UNQUOTED(ENTROPY_TIMEOUT_MSEC, $entropy_timeout)
1493 if test ! -z "$blibpath" ; then
1494 LDFLAGS="$LDFLAGS -blibpath:$blibpath"
1495 AC_MSG_WARN([Please check and edit -blibpath in LDFLAGS in Makefile])
1500 AC_OUTPUT(Makefile ssh_prng_cmds)
1502 # Print summary of options
1504 if test x$MANTYPE = x'$(CATMAN)' ; then
1509 if test ! -z "$RANDOM_POOL" ; then
1510 RAND_MSG="Device ($RANDOM_POOL)"
1512 if test ! -z "$EGD_SOCKET" ; then
1513 RAND_MSG="EGD ($EGD_SOCKET)"
1515 RAND_MSG="Builtin (timeout $entropy_timeout)"
1519 # Someone please show me a better way :)
1520 A=`eval echo ${prefix}` ; A=`eval echo ${A}`
1521 B=`eval echo ${bindir}` ; B=`eval echo ${B}`
1522 C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
1523 D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
1524 E=`eval echo ${libexecdir}/ssh/ssh-askpass` ; E=`eval echo ${E}`
1525 F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
1526 G=`eval echo ${piddir}` ; G=`eval echo ${G}`
1529 echo "OpenSSH configured has been configured with the following options."
1530 echo " User binaries: $B"
1531 echo " System binaries: $C"
1532 echo " Configuration files: $D"
1533 echo " Askpass program: $E"
1534 echo " Manual pages: $F"
1535 echo " PID file: $G"
1536 echo " Random number collection: $RAND_MSG"
1537 echo " Manpage format: $MAN_MSG"
1538 echo " PAM support: ${PAM_MSG}"
1539 echo " KerberosIV support: $KRB4_MSG"
1540 echo " AFS support: $AFS_MSG"
1541 echo " S/KEY support: $SKEY_MSG"
1542 echo " TCP Wrappers support: $TCPW_MSG"
1543 echo " MD5 password support: $MD5_MSG"
1544 echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
1545 echo " Use IPv4 by default hack: $IPV4_HACK_MSG"
1546 echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
1550 echo "Compiler flags: ${CFLAGS}"
1551 echo "Linker flags: ${LDFLAGS}"
1552 echo "Libraries: ${LIBS}"