-dnl $Id: configure.in,v 1.179.2.3.2.14 2003-12-12 19:29:55 didg Exp $
+dnl $Id: configure.in,v 1.179.2.3.2.15 2004-01-03 01:49:54 bfernhomberg Exp $
dnl configure.in for netatalk
AC_INIT(etc/afpd/main.c)
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_LIBTOOL_DLOPEN
-AM_PROG_LIBTOOL
+AC_PROG_LIBTOOL
AC_PROG_PERL
AC_PROG_GREP
AC_PROG_PS
AC_SYS_LARGEFILE([
AC_DEFINE(AFP3x, 1, [Define to enable AFP 3.x support])
],[
- if test x"$afp3set" == x"yes"; then
+ if test x"$afp3set" = x"yes"; then
AC_MSG_ERROR([AFP 3.x support requires Large File Support.])
else
AC_MSG_WARN([AFP 3.x support requires Large File Support. AFP3.x support disabled])
])
fi
-AM_ICONV
+AC_CHECK_ICONV
dnl ----------- A NOTE ABOUT DROPKLUDGE
dnl The trouble with this fix is that if you know what the file is called, it
fi
AC_MSG_CHECKING([whether shadow support should be enabled])
-if test "x$netatalk_cv_use_shadowpw" == "xyes"; then
+if test "x$netatalk_cv_use_shadowpw" = "xyes"; then
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no])
dnl ----- kernel 2.6 changed struct at_addr to atalk_addr
AC_MSG_CHECKING([for struct atalk_addr])
- AC_COMPILE_IFELSE([
+dnl AC_COMPILE_IFELSE([
+ AC_TRY_COMPILE([
#include <sys/socket.h>
#include <asm/types.h>
#include <linux/atalk.h>
-
+],
+[
int main() {
struct atalk_addr foo;
-dnl $Id: db3-check.m4,v 1.11.6.2 2003-11-24 17:16:51 bfernhomberg Exp $
+dnl $Id: db3-check.m4,v 1.11.6.3 2004-01-03 01:49:54 bfernhomberg Exp $
dnl Autoconf macro to check for the Berkeley DB library
-AC_DEFUN([AC_PATH_BDB], [
+AC_DEFUN([AC_PATH_BDB],
+[
trybdbdir=""
dobdbsearch=yes
bdb_search_dirs="/usr/local/include/db4 /usr/local/include /usr/include/db4 /usr/include"
AC_ARG_WITH(bdb,
[ --with-bdb=PATH specify path to Berkeley DB installation[[auto]]],
- if test "x$withval" == "xno"; then
+ if test "x$withval" = "xno"; then
dobdbsearch=no
- elif test "x$withval" == "xyes"; then
+ elif test "x$withval" = "xyes"; then
dobdbsearch=yes
else
bdb_search_dirs="$withval/include/db4 $withval/include $withval"
)
bdbfound=no
- if test "x$dobdbsearch" != "xno"; then
- for bdbdir in $bdb_search_dirs ; do
+ if test "x$dobdbsearch" = "xyes"; then
+ for bdbdir in $bdb_search_dirs; do
AC_MSG_CHECKING([for Berkeley DB headers in $bdbdir])
if test -f "$bdbdir/db.h" ; then
AC_MSG_RESULT([yes])
CFLAGS=""
LDFLAGS="-L$bdblibdir $LDFLAGS"
- dnl db_create is BDB >3 specific
- AC_CHECK_LIB(db, db_create, [
- bdbfound=yes
- LIBS="$LIBS -ldb"
- BDB_LIBS="-ldb"], [
- AC_CHECK_LIB(db4, db_create, [
- bdbfound=yes
- LIBS="$LIBS -ldb4"
- BDB_LIBS="-ldb4"])
- ])
+dnl This check breaks if bdb was configured with --with-uniquename, removed for now
+dnl dnl db_create is BDB >3 specific
+dnl AC_CHECK_LIB(db, db_create, [
+dnl bdbfound=yes
+dnl LIBS="$LIBS -ldb"
+dnl BDB_LIBS="-ldb"], [
+dnl AC_CHECK_LIB(db4, db_create, [
+dnl bdbfound=yes
+dnl LIBS="$LIBS -ldb4"
+dnl BDB_LIBS="-ldb4"])
+dnl ])
+
+ bdbfound=yes
+ LIBS="$LIBS -ldb"
+ BDB_LIBS="-ldb"
dnl check for header ... should only fail if the header cannot be compiled
dnl it does exist, otherwise we wouldn't be here
if test "x$bdbfound" = "xyes"; then
- AC_CHECK_HEADERS([db.h],[
- dnl check we have the correct bdb version
- AC_MSG_CHECKING(Berkeley DB version >= 4.0)
- AC_TRY_RUN([
+ AC_CHECK_HEADERS(db.h, bdbfound=yes, bdbfound=no)
+ fi
+
+ if test "x$bdbfound" = "xno"; then
+ AC_MSG_WARN([Berkeley DB libraries found, but required header files cannot be used!!!])
+ fi
+
+ dnl check we have the correct bdb version
+ AC_MSG_CHECKING([Berkeley DB version >= 4.0])
+ AC_TRY_RUN([
#if STDC_HEADERS
#include <stdlib.h>
#endif
exit (0);
}
-],
- atalk_cv_bdbversion="yes",
- atalk_cv_bdbversion="no",
- atalk_cv_bdbversion="cross")
-
- if test ${atalk_cv_bdbversion} = "yes"; then
- AC_MSG_RESULT(yes)
- else
- AC_MSG_RESULT(no)
- bdbfound=no
- fi
- ],[
+], atalk_cv_bdbversion="yes", atalk_cv_bdbversion="no", atalk_cv_bdbversion="cross")
+
+
+ if test ${atalk_cv_bdbversion} = "yes"; then
+ AC_MSG_RESULT(yes)
+ else
+ AC_MSG_RESULT(no)
bdbfound=no
- AC_MSG_WARN([Berkeley DB libraries found, but required header files cannot be used!!!])
- ])
fi
if test "x$bdbfound" = "xyes"; then
else
AC_MSG_RESULT([no])
fi
- done
+ done
fi
if test "x$bdbfound" = "xyes"; then
AC_SUBST(BDB_BIN)
AC_SUBST(BDB_PATH)
])
+
+
-dnl $Id: gssapi-check.m4,v 1.1.2.2 2003-10-29 23:53:24 bfernhomberg Exp $
+dnl $Id: gssapi-check.m4,v 1.1.2.3 2004-01-03 01:49:54 bfernhomberg Exp $
dnl Autoconf macro to check for kerberos
AC_DEFUN([NETATALK_GSSAPI_CHECK],
GSSAPI_LIBS="$LIBS $LDLAGS"
else
AC_MSG_RESULT([no])
- if test x"$compilegssapi" == x"yes"; then
+ if test x"$compilegssapi" = x"yes"; then
AC_MSG_ERROR([GSSAPI installation not found])
fi
GSSAPI_LIBS=""
-AC_DEFUN([AM_ICONV],
+AC_DEFUN([AC_CHECK_ICONV],
[
dnl #################################################
if test x"$netatalk_cv_use_pam" != x"no"; then
uams_using_options="PAM"
fi
- if test "x$netatalk_cv_use_shadowpw" == "xyes"; then
+ if test "x$netatalk_cv_use_shadowpw" = "xyes"; then
uams_using_options="$uams_using_options SHADOW"
fi
- if test "x$compile_ssl" == "xyes"; then
+ if test "x$compile_ssl" = "xyes"; then
AC_MSG_RESULT([ DHX ($uams_using_options)])
AC_MSG_RESULT([ RANDNUM ($uams_using_options)])
fi
-dnl $Id: tcp-wrappers.m4,v 1.1.4.2 2003-10-29 23:53:24 bfernhomberg Exp $
+dnl $Id: tcp-wrappers.m4,v 1.1.4.3 2004-01-03 01:49:54 bfernhomberg Exp $
AC_DEFUN([NETATALK_TCP_WRAPPERS], [
check=maybe
AC_ARG_ENABLE(tcp-wrappers,
[ --disable-tcp-wrappers disable TCP wrappers support],
[
- if test "x$enableval" == "xno"; then
+ if test "x$enableval" = "xno"; then
check=no
else
check=yes
if test "x$check" != "xno"; then
AC_CHECK_LIB(wrap, tcpd_warn, enable=yes)
fi
- if test "x$enable" == "xyes"; then
+ if test "x$enable" = "xyes"; then
AC_CHECK_HEADERS(tcpd.h)
if test "x$ac_cv_header_tcpd_h" != "xyes"; then
enable=no
netatalk_cv_tcpwrap=no
AC_MSG_CHECKING([whether to enable the TCP wrappers])
- if test "x$enable" == "xyes"; then
+ if test "x$enable" = "xyes"; then
AC_DEFINE(TCPWRAP, 1, [Define if TCP wrappers should be used])
WRAP_LIBS="-lwrap"
netatalk_cv_tcpwrap=yes
AC_MSG_RESULT([yes])
else
- if test "x$check" == "xyes"; then
+ if test "x$check" = "xyes"; then
AC_MSG_ERROR([libwrap not found])
else
AC_MSG_RESULT([no])