]> git.wh0rd.org - dump.git/blobdiff - configure.in
Fix the treatment for an interrupt signal when dump access the remote tape through...
[dump.git] / configure.in
index 5071e94642b6a5730f1c6be9703f47a6a7b0dcb1..fbc45e4eefe1e79b09c19f4f3113256d24493a9e 100644 (file)
@@ -1,5 +1,3 @@
-dnl $Id: configure.in,v 1.5 1999/10/11 13:31:04 stelian Exp $
-
 AC_INIT(dump/dump.h)
 
 MCONFIG=./MCONFIG
@@ -76,6 +74,23 @@ echo "Not compiling rmt by default"
 )
 AC_SUBST(RMTDIR)
 
+dnl
+dnl Handle --enable-kerberos
+dnl
+AC_ARG_ENABLE([kerberos],
+[  --enable-kerberos       compile kerberos extensions],
+if test "$enableval" = "yes"
+then
+       OPTDEFS="-DKERBEROS"
+else
+       OPTDEFS=""
+fi
+,
+OPTDEFS=""
+echo "Not compiling kerberos extensions by default"
+)
+AC_SUBST(OPTDEFS)
+
 dnl
 dnl set $(CC) from --with-cc=value
 dnl
@@ -217,7 +232,24 @@ fi
 dnl
 dnl Check for library functions
 dnl
-AC_CHECK_FUNCS(err errx verr verrx vwarn vwarnx warn warnx realpath glob)
+AC_CHECK_FUNCS(err errx verr verrx vwarn vwarnx warn warnx realpath lchown)
+AC_CHECK_FUNC(glob)
+
+dnl
+dnl Check for GLOB_ALTDIRFUNC
+dnl
+if test "$ac_cv_func_glob" = "yes"; then
+       AC_EGREP_CPP(yes, 
+       [
+#      include <glob.h>
+#      ifdef GLOB_ALTDIRFUNC
+       yes
+#      endif
+       ], AC_DEFINE(HAVE_GLOB), noglob=yes)
+       if test "$noglob" = "yes"; then
+               echo "Your system does not support extended glob, will use the internal routines"
+       fi
+fi
 
 dnl
 dnl Check for types