run autoupdate to fix autoconf warnings: The macro `AC_CONFIG_HEADER' is obsolete.
autoconf warnings
configure.ac:14: warning: The macro `AC_CONFIG_HEADER' is obsolete.
configure.ac:14: You should run autoupdate.
./lib/autoconf/status.m4:719: AC_CONFIG_HEADER is expanded from...
configure.ac:14: the top level
configure.ac:38: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:38: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
configure.ac:38: the top level
configure.ac:47: warning: The macro `AC_HEADER_STDC' is obsolete.
configure.ac:47: You should run autoupdate.
./lib/autoconf/headers.m4:704: AC_HEADER_STDC is expanded from...
configure.ac:47: the top level
configure.ac:158: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:158: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
configure.ac:158: the top level
configure.ac:179: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:179: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
configure.ac:179: the top level
configure.ac:232: warning: The macro `AC_LANG_C' is obsolete.
configure.ac:232: You should run autoupdate.
./lib/autoconf/c.m4:72: AC_LANG_C is expanded from...
configure.ac:232: the top level
configure.ac:234: warning: The macro `AC_LIBTOOL_DLOPEN' is obsolete.
configure.ac:234: You should run autoupdate.
config/ltoptions.m4:113: AC_LIBTOOL_DLOPEN is expanded from...
configure.ac:234: the top level
configure.ac:234: warning: AC_LIBTOOL_DLOPEN: Remove this warning and the call to _LT_SET_OPTION when you
configure.ac:234: put the 'dlopen' option into LT_INIT's first parameter.
./lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from...
config/ltoptions.m4:113: AC_LIBTOOL_DLOPEN is expanded from...
configure.ac:234: the top level
configure.ac:235: warning: The macro `AC_PROG_LIBTOOL' is obsolete.
configure.ac:235: You should run autoupdate.
fixed by running autoupdate
diff --git a/configure.ac b/configure.ac
index db11118..fbcbc72 100644
--- a/configure.ac
+++ b/configure.ac
@@ -11,7 +11,7 @@ AC_CANONICAL_HOST
AC_CONFIG_MACRO_DIR([config])
# Create a config.h file to store defines generated by configure
-AC_CONFIG_HEADER([include/config.h])
+AC_CONFIG_HEADERS([include/config.h])
# Try to enable the POSIX extensions.
AC_USE_SYSTEM_EXTENSIONS
@@ -35,8 +35,7 @@ dnl Check if the C compiler accepts -Wall
AC_MSG_CHECKING(if the C compiler accepts -Wall)
OLDCFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -Wall"
-AC_TRY_COMPILE(,,
- [AC_MSG_RESULT(yes)],
+AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])], [AC_MSG_RESULT(yes)],
[
CFLAGS="$OLDCFLAGS"
AC_MSG_RESULT(no)
@@ -44,7 +43,11 @@ AC_TRY_COMPILE(,,
)
dnl Checks for standard header files.
-AC_HEADER_STDC
+# STDC_HEADERS is obsolete.
+# Autoupdate added the next two lines to ensure that your configure
+# script's behavior did not change. They are probably safe to remove.
+AC_CHECK_INCLUDES_DEFAULT
+AC_PROG_EGREP
AC_CHECK_HEADERS(dlfcn.h sys/syscall.h sys/socket.h arpa/inet.h \
assert.h netdb.h errno.h stdarg.h time.h,,
@@ -155,7 +158,7 @@ darwin*)
AC_MSG_CHECKING(if the linker accepts -dynamiclib)
OLDLDFLAGS="$TORSOCKSLDFLAGS"
TORSOCKSLDFLAGS="$TORSOCKSLDFLAGS -dynamiclib"
- AC_TRY_COMPILE(,, [AC_MSG_RESULT(yes)],
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])], [AC_MSG_RESULT(yes)],
[
TORSOCKSLDFLAGS="$OLDLDFLAGS"
AC_MSG_RESULT(no)
@@ -166,7 +169,7 @@ darwin*)
# AC_MSG_CHECKING(if the linker accepts -multiply_defined suppress)
# OLDLDFLAGS="$LDFLAGS"
# LDFLAGS="$LDFLAGS -multiply_defined suppress"
- # AC_TRY_COMPILE(,,AC_MSG_RESULT(yes),[
+ # AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])],[AC_MSG_RESULT(yes)],[
# LDFLAGS="$OLDLDFLAGS"
# AC_MSG_RESULT(no)])
@@ -176,7 +179,7 @@ darwin*)
SHLIB_EXT="so"
LDPRELOAD="LD_PRELOAD"
TORSOCKSLDFLAGS="$TORSOCKSLDFLAGS -single_module"
- AC_TRY_COMPILE(,,
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])],
[
SHLIB_EXT="dylib"
LDPRELOAD="DYLD_INSERT_LIBRARIES"
@@ -229,7 +232,7 @@ fi
# 8. Clean up and create some supporting scripts from their *.in files
##############################################################################
-AC_LANG_C
+AC_LANG([C])
AC_PROG_CC
AC_LIBTOOL_DLOPEN
AC_PROG_LIBTOOL