diff options
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 50 |
1 files changed, 39 insertions, 11 deletions
diff --git a/configure.in b/configure.in index 3b1f125c6..4e5bc602d 100644 --- a/configure.in +++ b/configure.in | |||
@@ -17,7 +17,9 @@ dnl Use ip address instead of hostname in $DISPLAY | |||
17 | AC_ARG_WITH(rsh, | 17 | AC_ARG_WITH(rsh, |
18 | [ --with-rsh=PATH Specify path to remote shell program ], | 18 | [ --with-rsh=PATH Specify path to remote shell program ], |
19 | [ | 19 | [ |
20 | AC_DEFINE_UNQUOTED(RSH_PATH, "$withval") | 20 | if test "x$withval" != "$xno" ; then |
21 | AC_DEFINE_UNQUOTED(RSH_PATH, "$withval") | ||
22 | fi | ||
21 | ], | 23 | ], |
22 | [ | 24 | [ |
23 | AC_PATH_PROG(rsh_path, rsh) | 25 | AC_PATH_PROG(rsh_path, rsh) |
@@ -367,6 +369,20 @@ if test ! -z "$nolastlog" ; then | |||
367 | AC_DEFINE(DISABLE_LASTLOG) | 369 | AC_DEFINE(DISABLE_LASTLOG) |
368 | fi | 370 | fi |
369 | 371 | ||
372 | dnl Compile with dante SOCKS library | ||
373 | AC_ARG_WITH(dante, | ||
374 | [ --with-dante=DIR Use Dante SOCKS lib (default is system library path)], | ||
375 | [ | ||
376 | AC_DEFINE(HAVE_DANTE) | ||
377 | if test "x$withval" != "xno" ; then | ||
378 | if test -n $withval ; then | ||
379 | LIBS="$LIBS -L$withval" | ||
380 | fi | ||
381 | LIBS="$LIBS -lsocks" | ||
382 | fi | ||
383 | ] | ||
384 | ) | ||
385 | |||
370 | AC_CHECK_FILE("/dev/ptmx", AC_DEFINE_UNQUOTED(HAVE_DEV_PTMX)) | 386 | AC_CHECK_FILE("/dev/ptmx", AC_DEFINE_UNQUOTED(HAVE_DEV_PTMX)) |
371 | AC_CHECK_FILE("/dev/ptc", AC_DEFINE_UNQUOTED(HAVE_DEV_PTS_AND_PTC)) | 387 | AC_CHECK_FILE("/dev/ptc", AC_DEFINE_UNQUOTED(HAVE_DEV_PTS_AND_PTC)) |
372 | 388 | ||
@@ -386,9 +402,11 @@ dnl Check whether user wants Kerberos support | |||
386 | AC_ARG_WITH(kerberos4, | 402 | AC_ARG_WITH(kerberos4, |
387 | [ --with-kerberos4 Enable Kerberos 4 support], | 403 | [ --with-kerberos4 Enable Kerberos 4 support], |
388 | [ | 404 | [ |
389 | AC_DEFINE(KRB4) | 405 | if test "x$withval" != "$xno" ; then |
390 | LIBS="$LIBS -lkrb" | 406 | AC_DEFINE(KRB4) |
391 | CFLAGS="$CFLAGS -I/usr/include/kerberosIV" | 407 | LIBS="$LIBS -lkrb" |
408 | CFLAGS="$CFLAGS -I/usr/include/kerberosIV" | ||
409 | fi | ||
392 | ] | 410 | ] |
393 | ) | 411 | ) |
394 | 412 | ||
@@ -396,8 +414,10 @@ dnl Check whether user wants AFS support | |||
396 | AC_ARG_WITH(afs, | 414 | AC_ARG_WITH(afs, |
397 | [ --with-afs Enable AFS support], | 415 | [ --with-afs Enable AFS support], |
398 | [ | 416 | [ |
399 | AC_DEFINE(AFS) | 417 | if test "x$withval" != "$xno" ; then |
400 | LIBS="$LIBS -lkafs" | 418 | AC_DEFINE(AFS) |
419 | LIBS="$LIBS -lkafs" | ||
420 | fi | ||
401 | ] | 421 | ] |
402 | ) | 422 | ) |
403 | 423 | ||
@@ -405,8 +425,10 @@ dnl Check whether user wants S/Key support | |||
405 | AC_ARG_WITH(skey, | 425 | AC_ARG_WITH(skey, |
406 | [ --with-skey Enable S/Key support], | 426 | [ --with-skey Enable S/Key support], |
407 | [ | 427 | [ |
408 | AC_DEFINE(SKEY) | 428 | if test "x$withval" != "$xno" ; then |
409 | LIBS="$LIBS -lskey" | 429 | AC_DEFINE(SKEY) |
430 | LIBS="$LIBS -lskey" | ||
431 | fi | ||
410 | ] | 432 | ] |
411 | ) | 433 | ) |
412 | 434 | ||
@@ -414,8 +436,10 @@ dnl Check whether user wants TCP wrappers support | |||
414 | AC_ARG_WITH(tcp-wrappers, | 436 | AC_ARG_WITH(tcp-wrappers, |
415 | [ --with-tcp-wrappers Enable tcpwrappers support], | 437 | [ --with-tcp-wrappers Enable tcpwrappers support], |
416 | [ | 438 | [ |
417 | AC_DEFINE(LIBWRAP) | 439 | if test "x$withval" != "$xno" ; then |
418 | LIBWRAP="-lwrap" | 440 | AC_DEFINE(LIBWRAP) |
441 | LIBWRAP="-lwrap" | ||
442 | fi | ||
419 | ] | 443 | ] |
420 | ) | 444 | ) |
421 | AC_SUBST(LIBWRAP) | 445 | AC_SUBST(LIBWRAP) |
@@ -423,7 +447,11 @@ AC_SUBST(LIBWRAP) | |||
423 | dnl Check whether to enable MD5 passwords | 447 | dnl Check whether to enable MD5 passwords |
424 | AC_ARG_WITH(md5-passwords, | 448 | AC_ARG_WITH(md5-passwords, |
425 | [ --with-md5-passwords Enable use of MD5 passwords], | 449 | [ --with-md5-passwords Enable use of MD5 passwords], |
426 | [AC_DEFINE(HAVE_MD5_PASSWORDS)] | 450 | [ |
451 | if test "x$withval" != "$xno" ; then | ||
452 | AC_DEFINE(HAVE_MD5_PASSWORDS) | ||
453 | fi | ||
454 | ] | ||
427 | ) | 455 | ) |
428 | 456 | ||
429 | dnl Check whether to enable utmpx support | 457 | dnl Check whether to enable utmpx support |