-
if test $ac_cv_c_compiler_gnu = yes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
$as_echo_n "checking whether $CC needs -traditional... " >&6; }
done
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
-$as_echo_n "checking return type of signal handlers... " >&6; }
-if ${ac_cv_type_signal+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-#include <sys/types.h>
-#include <signal.h>
-
-int
-main ()
-{
-return *(signal (0, 0)) (0) == 1;
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_type_signal=int
-else
- ac_cv_type_signal=void
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
-$as_echo "$ac_cv_type_signal" >&6; }
-
-cat >>confdefs.h <<_ACEOF
-#define RETSIGTYPE $ac_cv_type_signal
-_ACEOF
-
-
-
if test "x$ac_cv_header_utmpx_h" = "xyes"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_xtime in struct utmpx" >&5
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-$as_echo "yes" >&6; }
$as_echo "#define HAVE_HTONLLL 1" >>confdefs.h
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
-
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
gethostbyaddrrstyle=GNU
-
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
gethostbyaddrrstyle=SYSV
-
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
gethostbyaddrrstyle=BSD
-
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
gethostbynamerstyle=GNU
-
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
gethostbynamerstyle=SYSV
-
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
gethostbynamerstyle=BSD
-
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
-
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
-
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
ctimerstyle="SOLARIS"
-
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
ctimerstyle="POSIX"
-
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
dnl #
dnl # The recommended order is:
dnl #
-dnl # AC_INIT(file)
+dnl # AC_INIT
dnl # 0. checks for compiler, libtool, and command line options
dnl # 1. checks for programs
dnl # 2. checks for libraries
dnl # 6. checks for compiler characteristics
dnl # 7. checks for library functions
dnl # 8. checks for system services
-dnl # AC_OUTPUT([file...])
+dnl # AC_CONFIG_FILES([file...])
+dnl # AC_OUTPUT
dnl #
dnl #############################################################
AC_PREREQ([2.69])
export CFLAGS LIBS LDFLAGS CPPFLAGS
-AC_INIT([freeradius],[$]Id[$],[http://bugs.freeradius.org],,[http://www.freeradius.org])
+AC_INIT([freeradius],[$Id$],[http://bugs.freeradius.org],[],[http://www.freeradius.org])
AC_CONFIG_SRCDIR([src/bin/radiusd.c])
AC_CONFIG_HEADER([src/include/autoconf.h])
dnl # check for AIX, to allow us to use some BSD functions
dnl # must be before macros that call the compiler.
dnl #
-AC_AIX
+AC_USE_SYSTEM_EXTENSIONS
AC_PROG_GCC_TRADITIONAL
AC_PROG_CC_SUNPRO
vsnprintf
)
-AC_TYPE_SIGNAL
-
dnl #
dnl # Check if we have utmpx.h
dnl # if so, check if struct utmpx has entry ut_xtime
]]
)],
[
- AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_HTONLLL, 1, [Define if the function (or macro) htonlll exists.])
],
[
if test "x$ac_cv_header_execinfo_h" = "xyes"; then
dnl # Might be provided as part of libc
AC_MSG_CHECKING([if execinfo provided as part of libc])
- AC_TRY_LINK(
- [
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[
#include <execinfo.h>
- ],
- [
+ ]], [[
void *sym[1];
- backtrace_symbols(&sym, sizeof(sym)) ],
- [
+ backtrace_symbols(&sym, sizeof(sym)) ]])],[
AC_MSG_RESULT(yes)
ac_cv_lib_execinfo_backtrace_symbols="yes"
- ],
- [
+ ],[
AC_MSG_RESULT(no)
- ]
- )
+ ])
if test "x$ac_cv_lib_execinfo_backtrace_symbols" != "xyes"; then
smart_try_dir=$execinfo_lib_dir
FR_SMART_CHECK_LIB(execinfo, backtrace_symbols)
esac
if test "x$gethostbyaddrrstyle" = "x"; then
- AC_TRY_LINK(
- [
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[
#include <stdio.h>
#include <netdb.h>
- ],
- [ gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL) ],
- [
+ ]], [[ gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL) ]])],[
AC_DEFINE(GETHOSTBYADDRRSTYLE, GNUSTYLE, [style of gethostbyaddr_r functions ])
gethostbyaddrrstyle=GNU
- ]
- )
+ ],[])
fi
if test "x$gethostbyaddrrstyle" = "x"; then
- AC_TRY_LINK(
- [
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[
#include <stdio.h>
#include <netdb.h>
- ],
- [ gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL) ] ,
- [
+ ]], [[ gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL) ]])],[
AC_DEFINE(GETHOSTBYADDRRSTYLE, SYSVSTYLE, [style of gethostbyaddr_r functions ])
gethostbyaddrrstyle=SYSV
- ]
- )
+ ],[])
fi
if test "x$gethostbyaddrrstyle" = "x"; then
- AC_TRY_LINK(
- [
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[
#include <stdio.h>
#include <netdb.h>
- ],
- [ gethostbyaddr(NULL, 0, 0) ],
- [
+ ]], [[ gethostbyaddr(NULL, 0, 0) ]])],[
AC_DEFINE(GETHOSTBYADDRRSTYLE, BSDSTYLE, [style of gethostbyaddr_r functions ])
gethostbyaddrrstyle=BSD
- ]
- )
+ ],[])
fi
if test "x$gethostbyaddrrstyle" = "x"; then
dnl #
gethostbynamerstyle=""
AC_MSG_CHECKING([gethostbyname_r() syntax])
-AC_TRY_LINK(
- [
+AC_LINK_IFELSE([AC_LANG_PROGRAM([[
#include <stdio.h>
#include <netdb.h>
- ],
- [ gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL) ],
- [
+ ]], [[ gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL) ]])],[
AC_DEFINE(GETHOSTBYNAMERSTYLE, GNUSTYLE, [style of gethostbyname_r functions ])
gethostbynamerstyle=GNU
- ]
-)
+],[])
if test "x$gethostbynamerstyle" = "x"; then
- AC_TRY_LINK(
- [
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[
#include <stdio.h>
#include <netdb.h>
- ],
- [ gethostbyname_r(NULL, NULL, NULL, 0, NULL) ] ,
- [
+ ]], [[ gethostbyname_r(NULL, NULL, NULL, 0, NULL) ]])],[
AC_DEFINE(GETHOSTBYNAMERSTYLE, SYSVSTYLE, [style of gethostbyname_r functions ])
gethostbynamerstyle=SYSV
- ]
- )
+ ],[])
fi
if test "x$gethostbynamerstyle" = "x"; then
- AC_TRY_LINK(
- [
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[
#include <stdio.h>
#include <netdb.h>
- ],
- [ gethostbyname(NULL) ],
- [
+ ]], [[ gethostbyname(NULL) ]])],[
AC_DEFINE(GETHOSTBYNAMERSTYLE, BSDSTYLE, [style of gethostbyname_r functions ])
gethostbynamerstyle=BSD
- ]
- )
+ ],[])
fi
if test "x$gethostbynamerstyle" = "x"; then
dnl #
if test "x$ac_cv_header_pwd_h" = "xyes"; then
AC_MSG_CHECKING([getpwnam_r])
- AC_TRY_LINK(
- [
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[
#include <stdlib.h>
#include <sys/types.h>
#include <pwd.h>
- ],
- [ getpwnam_r(NULL, NULL, NULL, 0, NULL) ],
- [
+ ]], [[ getpwnam_r(NULL, NULL, NULL, 0, NULL) ]])],[
AC_MSG_RESULT([yes])
AC_DEFINE(HAVE_GETPWNAM_R, 1,
[Define to 1 if you have the getpwnam_r.]
)
- ],
- [
+ ],[
AC_MSG_RESULT(no)
- ]
- )
+ ])
fi
if test "x$ac_cv_header_grp_h" = "xyes"; then
AC_MSG_CHECKING([getgrnam_r])
- AC_TRY_LINK(
- [
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[
#include <stdlib.h>
#include <sys/types.h>
#include <grp.h>
- ],
- [ getgrnam_r(NULL, NULL, NULL, 0, NULL) ],
- [
+ ]], [[ getgrnam_r(NULL, NULL, NULL, 0, NULL) ]])],[
AC_MSG_RESULT([yes])
AC_DEFINE(HAVE_GETGRNAM_R, 1,
[Define to 1 if you have the getgrnam_r.]
)
- ],
- [
+ ],[
AC_MSG_RESULT(no)
- ]
- )
+ ])
fi
AC_DEFINE(SOLARISSTYLE, [2], [Solaris-Style ctime_r])
ctimerstyle=""
AC_MSG_CHECKING([ctime_r() syntax])
-AC_TRY_LINK(
- [
+AC_LINK_IFELSE([AC_LANG_PROGRAM([[
#include <time.h>
- ],
- [ ctime_r(NULL, NULL, 0) ],
- [
+ ]], [[ ctime_r(NULL, NULL, 0) ]])],[
AC_DEFINE(CTIMERSTYLE, SOLARISSTYLE, [style of ctime_r function])
ctimerstyle="SOLARIS"
- ]
-)
+],[])
if test "x$ctimerstyle" = "x"; then
- AC_TRY_LINK(
- [
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[
#include <time.h>
- ],
- [ ctime_r(NULL, NULL) ],
- [
+ ]], [[ ctime_r(NULL, NULL) ]])],[
AC_DEFINE(CTIMERSTYLE, POSIXSTYLE, [style of ctime_r function])
ctimerstyle="POSIX"
- ]
- )
+ ],[])
fi
if test "x$ctimerstyle" = "x"; then
AC_SUBST(LIBS)
AC_SUBST(INSTALLSTRIP)
-AC_OUTPUT(\
+AC_CONFIG_FILES([\
./Make.inc \
./src/include/build-radpaths-h \
./src/bin/checkrad \
./scripts/util/cryptpasswd \
./raddb/radrelay.conf \
./raddb/radiusd.conf
-)
+])
+AC_OUTPUT
/* Raw version string from VERSION file */
#undef RADIUSD_VERSION_STRING
-/* Define as the return type of signal handlers (`int' or `void'). */
-#undef RETSIGTYPE
-
/* Define if the compiler supports size_t has the same underlying type as
uint64 */
#undef SIZE_SAME_AS_UINT64
+
# Check whether --with-rlm_cache was given.
if test "${with_rlm_cache+set}" = set; then :
withval=$with_rlm_cache;
AC_PREREQ([2.69])
-AC_INIT(rlm_cache.c)
+AC_INIT
+AC_CONFIG_SRCDIR([rlm_cache.c])
AC_REVISION($Revision$)
FR_INIT_MODULE([rlm_cache])
fi
AC_SUBST(targetname)
-AC_OUTPUT(all.mk)
+AC_CONFIG_FILES([all.mk])
+AC_OUTPUT
+
# Check whether --with-rlm_cache_memcached was given.
if test "${with_rlm_cache_memcached+set}" = set; then :
withval=$with_rlm_cache_memcached;
AC_PREREQ([2.69])
-AC_INIT(rlm_cache_memcached.c)
+AC_INIT
+AC_CONFIG_SRCDIR([rlm_cache_memcached.c])
AC_REVISION($Revision$)
FR_INIT_MODULE([rlm_cache_memcached])
AC_SUBST(mod_ldflags)
AC_SUBST(targetname)
-AC_OUTPUT(all.mk)
+AC_CONFIG_FILES([all.mk])
+AC_OUTPUT
+
# Check whether --with-rlm_couchbase was given.
if test "${with_rlm_couchbase+set}" = set; then :
withval=$with_rlm_couchbase;
AC_PREREQ([2.69])
-AC_INIT(rlm_couchbase.c)
+AC_INIT
+AC_CONFIG_SRCDIR([rlm_couchbase.c])
AC_REVISION($Revision$)
FR_INIT_MODULE([rlm_couchbase])
AC_CONFIG_HEADER(config.h)
AC_SUBST(mod_ldflags)
AC_SUBST(targetname)
-AC_OUTPUT(all.mk)
+AC_CONFIG_FILES([all.mk])
+AC_OUTPUT
+
# Check whether --with-rlm_eap was given.
if test "${with_rlm_eap+set}" = set; then :
withval=$with_rlm_eap;
AC_PREREQ([2.69])
-AC_INIT(rlm_eap.c)
+AC_INIT
+AC_CONFIG_SRCDIR([rlm_eap.c])
AC_REVISION($Revision$)
FR_INIT_MODULE([rlm_eap])
AC_SUBST(mod_ldflags)
AC_SUBST(mod_cflags)
AC_SUBST(targetname)
-AC_OUTPUT()
+AC_OUTPUT
+
# Check whether --with-rlm_idn was given.
if test "${with_rlm_idn+set}" = set; then :
withval=$with_rlm_idn;
-AC_INIT(rlm_idn.c)
+AC_INIT
+AC_CONFIG_SRCDIR([rlm_idn.c])
AC_REVISION($Revision$)
FR_INIT_MODULE([rlm_idn])
AC_SUBST(mod_ldflags)
AC_SUBST(mod_cflags)
AC_SUBST(targetname)
-AC_OUTPUT(all.mk)
+AC_CONFIG_FILES([all.mk])
+AC_OUTPUT
+
# Check whether --with-rlm_krb5 was given.
if test "${with_rlm_krb5+set}" = set; then :
withval=$with_rlm_krb5;
AC_PREREQ([2.69])
-AC_INIT(rlm_krb5.c)
+AC_INIT
+AC_CONFIG_SRCDIR([rlm_krb5.c])
AC_REVISION($Revision$)
FR_INIT_MODULE([rlm_krb5])
AC_SUBST(mod_ldflags)
AC_SUBST(mod_cflags)
AC_SUBST(targetname)
-AC_OUTPUT(all.mk)
+AC_CONFIG_FILES([all.mk])
+AC_OUTPUT
+
# Check whether --with-rlm_lua was given.
if test "${with_rlm_lua+set}" = set; then :
withval=$with_rlm_lua;
AC_PREREQ([2.69])
-AC_INIT(rlm_lua.c)
+AC_INIT
+AC_CONFIG_SRCDIR([rlm_lua.c])
AC_REVISION($Revision$)
FR_INIT_MODULE([rlm_lua], [lua support])
AC_SUBST(targetname) # keep this! Don't change!
AC_CONFIG_HEADER(config.h)
-AC_OUTPUT([all.mk rlm_lua.mk libfreeradius-lua.mk]) # keep this! Don't change!
+AC_CONFIG_FILES([all.mk rlm_lua.mk libfreeradius-lua.mk])
+AC_OUTPUT # keep this! Don't change!
+
# Check whether --with-rlm_mruby was given.
if test "${with_rlm_mruby+set}" = set; then :
withval=$with_rlm_mruby;
-AC_INIT(rlm_mruby.c)
+AC_INIT
+AC_CONFIG_SRCDIR([rlm_mruby.c])
AC_REVISION($Revision$)
FR_INIT_MODULE([rlm_mruby])
AC_SUBST(mod_ldflags)
AC_SUBST(targetname)
-AC_OUTPUT(all.mk)
+AC_CONFIG_FILES([all.mk])
+AC_OUTPUT
+
# Check whether --with-rlm_mschap was given.
if test "${with_rlm_mschap+set}" = set; then :
withval=$with_rlm_mschap;
-AC_INIT(rlm_mschap.c)
+AC_INIT
+AC_CONFIG_SRCDIR([rlm_mschap.c])
AC_REVISION($Revision$)
FR_INIT_MODULE([rlm_mschap])
AC_SUBST(targetname)
AC_CONFIG_HEADER(config.h)
-AC_OUTPUT(rlm_mschap.mk)
+AC_CONFIG_FILES([rlm_mschap.mk])
+AC_OUTPUT
+
# Check whether --with-rlm_opendirectory was given.
if test "${with_rlm_opendirectory+set}" = set; then :
withval=$with_rlm_opendirectory;
-AC_INIT(rlm_opendirectory.c)
+AC_INIT
+AC_CONFIG_SRCDIR([rlm_opendirectory.c])
AC_REVISION($Revision$)
FR_INIT_MODULE([rlm_opendirectory])
AC_SUBST(mod_ldflags)
AC_SUBST(mod_cflags)
AC_SUBST(targetname)
-AC_OUTPUT(all.mk)
+AC_CONFIG_FILES([all.mk])
+AC_OUTPUT
+
# Check whether --with-rlm_pam was given.
if test "${with_rlm_pam+set}" = set; then :
withval=$with_rlm_pam;
AC_PREREQ([2.69])
-AC_INIT(rlm_pam.c)
+AC_INIT
+AC_CONFIG_SRCDIR([rlm_pam.c])
AC_REVISION($Revision$)
FR_INIT_MODULE([rlm_pam])
AC_DEFUN([modname_useropt],[m4_bpatsubst([]modname,[[-+.]],[_])])
AC_SUBST(mod_cflags)
AC_SUBST(targetname)
AC_CONFIG_HEADER(config.h)
-AC_OUTPUT(all.mk)
+AC_CONFIG_FILES([all.mk])
+AC_OUTPUT
+
# Check whether --with-rlm_perl was given.
if test "${with_rlm_perl+set}" = set; then :
withval=$with_rlm_perl;
AC_PREREQ([2.69])
-AC_INIT(rlm_perl.c)
+AC_INIT
+AC_CONFIG_SRCDIR([rlm_perl.c])
AC_REVISION($Revision$)
FR_INIT_MODULE([rlm_perl])
dnl # Link test functions
dnl ############################################################
AC_MSG_CHECKING([we can link to boot_DynaLoader])
- AC_TRY_LINK([],
- [
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[
extern char boot_DynaLoader();
boot_DynaLoader();
- ],
- [LINKS="yes"], [LINKS="no"])
+ ]])],[LINKS="yes"],[LINKS="no"])
AC_MSG_RESULT($LINKS)
if test "x$LINKS" = "xno"; then
fi
AC_MSG_CHECKING([we can link to Perl_hv_store()])
- AC_TRY_LINK([],
- [
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[
extern char Perl_hv_store();
Perl_hv_store();
- ],
- [LINKS="yes"], [LINKS="no"])
+ ]])],[LINKS="yes"],[LINKS="no"])
AC_MSG_RESULT($LINKS)
if test "x$LINKS" = "xno"; then
AC_CONFIG_HEADER(config.h)
AC_SUBST(targetname)
-AC_OUTPUT(all.mk)
+AC_CONFIG_FILES([all.mk])
+AC_OUTPUT
+
# Check whether --with-rlm_radutmp was given.
if test "${with_rlm_radutmp+set}" = set; then :
withval=$with_rlm_radutmp;
AC_PREREQ([2.69])
-AC_INIT(rlm_radutmp.c)
+AC_INIT
+AC_CONFIG_SRCDIR([rlm_radutmp.c])
AC_REVISION($Revision$)
FR_INIT_MODULE([rlm_radutmp])
AC_SUBST(mod_cflags)
AC_SUBST(targetname)
AC_CONFIG_HEADER(config.h)
-AC_OUTPUT(all.mk)
+AC_CONFIG_FILES([all.mk])
+AC_OUTPUT
+
# Check whether --with-rlm_sigtran was given.
if test "${with_rlm_sigtran+set}" = set; then :
withval=$with_rlm_sigtran;
AC_PREREQ([2.69])
-AC_INIT(rlm_sigtran.c)
+AC_INIT
+AC_CONFIG_SRCDIR([rlm_sigtran.c])
AC_REVISION($Revision$)
FR_INIT_MODULE([rlm_sigtran])
AC_SUBST(mod_ldflags)
AC_SUBST(mod_cflags)
AC_SUBST(targetname)
-AC_OUTPUT(all.mk)
+AC_CONFIG_FILES([all.mk])
+AC_OUTPUT
+
# Check whether --with-rlm_sql was given.
if test "${with_rlm_sql+set}" = set; then :
withval=$with_rlm_sql;
AC_PREREQ([2.69])
-AC_INIT(rlm_sql.c)
+AC_INIT
+AC_CONFIG_SRCDIR([rlm_sql.c])
AC_REVISION($Revision$)
FR_INIT_MODULE([rlm_sql])
AC_SUBST(mod_ldflags)
AC_SUBST(mod_cflags)
AC_SUBST(targetname)
-AC_OUTPUT(all.mk)
+AC_CONFIG_FILES([all.mk])
+AC_OUTPUT
+
# Check whether --with-rlm_sql_cassandra was given.
if test "${with_rlm_sql_cassandra+set}" = set; then :
withval=$with_rlm_sql_cassandra;
AC_PREREQ([2.69])
-AC_INIT(rlm_sql_cassandra.c)
+AC_INIT
+AC_CONFIG_SRCDIR([rlm_sql_cassandra.c])
AC_REVISION($Revision$)
FR_INIT_MODULE([rlm_sql_cassandra])
AC_SUBST(mod_cflags)
AC_SUBST(targetname)
-AC_OUTPUT(all.mk)
+AC_CONFIG_FILES([all.mk])
+AC_OUTPUT
+
# Check whether --with-rlm_sql_db2 was given.
if test "${with_rlm_sql_db2+set}" = set; then :
withval=$with_rlm_sql_db2;
AC_PREREQ([2.69])
-AC_INIT(rlm_sql_db2.c)
+AC_INIT
+AC_CONFIG_SRCDIR([rlm_sql_db2.c])
AC_REVISION($Revision$)
FR_INIT_MODULE([rlm_sql_db2])
AC_SUBST(sql_ibmdb2_ldflags)
AC_SUBST(sql_ibmdb2_cflags)
AC_SUBST(targetname)
-AC_OUTPUT(all.mk)
+AC_CONFIG_FILES([all.mk])
+AC_OUTPUT
+
# Check whether --with-rlm_sql_firebird was given.
if test "${with_rlm_sql_firebird+set}" = set; then :
withval=$with_rlm_sql_firebird;
AC_PREREQ([2.69])
-AC_INIT(rlm_sql_firebird.c)
+AC_INIT
+AC_CONFIG_SRCDIR([rlm_sql_firebird.c])
AC_REVISION($Revision$)
FR_INIT_MODULE([rlm_sql_firebird])
AC_SUBST(mod_ldflags)
AC_SUBST(mod_cflags)
AC_SUBST(targetname)
-AC_OUTPUT(all.mk)
+AC_CONFIG_FILES([all.mk])
+AC_OUTPUT
+
# Check whether --with-rlm_sql_freetds was given.
if test "${with_rlm_sql_freetds+set}" = set; then :
withval=$with_rlm_sql_freetds;
AC_PREREQ([2.69])
-AC_INIT(rlm_sql_freetds.c)
+AC_INIT
+AC_CONFIG_SRCDIR([rlm_sql_freetds.c])
AC_REVISION($Revision$)
FR_INIT_MODULE([rlm_sql_freetds])
AC_SUBST(mod_ldflags)
AC_SUBST(mod_cflags)
AC_SUBST(targetname)
-AC_OUTPUT(all.mk)
+AC_CONFIG_FILES([all.mk])
+AC_OUTPUT
+
# Check whether --with-rlm_sql_mysql was given.
if test "${with_rlm_sql_mysql+set}" = set; then :
withval=$with_rlm_sql_mysql;
AC_PREREQ([2.69])
-AC_INIT(rlm_sql_mysql.c)
+AC_INIT
+AC_CONFIG_SRCDIR([rlm_sql_mysql.c])
AC_REVISION($Revision$)
FR_INIT_MODULE([rlm_sql_mysql])
AC_CONFIG_HEADER(config.h)
old_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $mod_cflags"
AC_MSG_CHECKING([for mysql.h (using mysql_config --cflags)])
- AC_TRY_COMPILE([#include <mysql.h>], [int a = 1;], have_mysql_h=yes)
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <mysql.h>]], [[int a = 1;]])],[have_mysql_h=yes],[])
if test "x$have_mysql_h" = "xyes"; then
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_MYSQL_H, [], [Define if you have <mysql.h>])
mod_cflags="$(mysql_config --include)"
CFLAGS="$old_CFLAGS $mod_cflags"
AC_MSG_CHECKING([for mysql.h (using mysql_config --include)])
- AC_TRY_COMPILE([#include <mysql.h>], [int a = 1;], have_mysql_h=yes)
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <mysql.h>]], [[int a = 1;]])],[have_mysql_h=yes],[])
if test "x$have_mysql_h" = "xyes"; then
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_MYSQL_H, [], [Define if you have <mysql.h>])
AC_SUBST(mod_ldflags)
AC_SUBST(mod_cflags)
AC_SUBST(targetname)
-AC_OUTPUT(all.mk)
+AC_CONFIG_FILES([all.mk])
+AC_OUTPUT
+
# Check whether --with-rlm_sql_oracle was given.
if test "${with_rlm_sql_oracle+set}" = set; then :
withval=$with_rlm_sql_oracle;
-AC_INIT(rlm_sql_oracle.c)
+AC_INIT
+AC_CONFIG_SRCDIR([rlm_sql_oracle.c])
AC_REVISION($Revision: 1.10 $)
FR_INIT_MODULE([rlm_sql_oracle])
LIBS="$old_LIBS -L$path -Wl,-rpath,$path -lclntsh -lnnz${oracle_version}"
- AC_TRY_LINK([#include <oci.h>
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <oci.h>
static OCIEnv *p_env;
static OCIError *p_err;
static OCIStmt *p_sql;
static OCIDefine *p_dfn = (OCIDefine *) 0;
static OCIBind *p_bnd = (OCIBind *) 0;
- ],
- [
+ ]], [[
int p_bvi;
char p_sli[20];
int rc;
(dvoid * (*)(dvoid *, dvoid *, size_t))0,
(void (*)(dvoid *, dvoid *)) 0 );
- ],
- [mod_ldflags="$LIBS"],
- )
+ ]])],[mod_ldflags="$LIBS"],[])
if test "x$mod_ldflags" != "x"; then
AC_MSG_RESULT(yes)
break
AC_SUBST(mod_ldflags)
AC_SUBST(mod_cflags)
AC_SUBST(targetname)
-AC_OUTPUT(all.mk)
+AC_CONFIG_FILES([all.mk])
+AC_OUTPUT
+
# Check whether --with-rlm_sql_postgresql was given.
if test "${with_rlm_sql_postgresql+set}" = set; then :
withval=$with_rlm_sql_postgresql;
-AC_INIT(rlm_sql_postgresql.c)
+AC_INIT
+AC_CONFIG_SRCDIR([rlm_sql_postgresql.c])
AC_REVISION($Revision$)
FR_INIT_MODULE([rlm_sql_postgresql])
AC_SUBST(mod_cflags)
AC_SUBST(targetname)
AC_CONFIG_HEADER(config.h)
-AC_OUTPUT(all.mk)
+AC_CONFIG_FILES([all.mk])
+AC_OUTPUT
+
# Check whether --with-rlm_sql_sqlite was given.
if test "${with_rlm_sql_sqlite+set}" = set; then :
withval=$with_rlm_sql_sqlite;
AC_PREREQ([2.69])
-AC_INIT(rlm_sql_sqlite.c)
+AC_INIT
+AC_CONFIG_SRCDIR([rlm_sql_sqlite.c])
AC_REVISION($Revision$)
FR_INIT_MODULE([rlm_sql_sqlite])
AC_CONFIG_HEADER(config.h)
AC_SUBST(targetname)
-AC_OUTPUT(all.mk)
+AC_CONFIG_FILES([all.mk])
+AC_OUTPUT
+
# Check whether --with-rlm_sql_unixodbc was given.
if test "${with_rlm_sql_unixodbc+set}" = set; then :
withval=$with_rlm_sql_unixodbc;
AC_PREREQ([2.69])
-AC_INIT(rlm_sql_unixodbc.c)
+AC_INIT
+AC_CONFIG_SRCDIR([rlm_sql_unixodbc.c])
AC_REVISION($Revision$)
FR_INIT_MODULE([rlm_sql_unixodbc])
AC_SUBST(mod_ldflags)
AC_SUBST(mod_cflags)
AC_SUBST(targetname)
-AC_OUTPUT(all.mk)
+AC_CONFIG_FILES([all.mk])
+AC_OUTPUT
+
# Check whether --with-rlm_unbound was given.
if test "${with_rlm_unbound+set}" = set; then :
withval=$with_rlm_unbound;
AC_PREREQ([2.69])
-AC_INIT(rlm_unbound.c)
+AC_INIT
+AC_CONFIG_SRCDIR([rlm_unbound.c])
AC_REVISION($Revision$)
FR_INIT_MODULE([rlm_unbound])
AC_CONFIG_HEADER(config.h)
AC_SUBST(targetname)
-AC_OUTPUT(all.mk)
+AC_CONFIG_FILES([all.mk])
+AC_OUTPUT
+
# Check whether --with-rlm_unix was given.
if test "${with_rlm_unix+set}" = set; then :
withval=$with_rlm_unix;
AC_PREREQ([2.69])
-AC_INIT(rlm_unix.c)
+AC_INIT
+AC_CONFIG_SRCDIR([rlm_unix.c])
AC_REVISION($Revision$)
FR_INIT_MODULE([rlm_unix])
AC_SUBST(mod_cflags)
AC_SUBST(targetname)
AC_CONFIG_HEADER(config.h)
-AC_OUTPUT(all.mk)
+AC_CONFIG_FILES([all.mk])
+AC_OUTPUT
+
# Check whether --with-rlm_winbind was given.
if test "${with_rlm_winbind+set}" = set; then :
withval=$with_rlm_winbind;
-AC_INIT(rlm_winbind.c)
+AC_INIT
+AC_CONFIG_SRCDIR([rlm_winbind.c])
AC_REVISION($Revision$)
FR_INIT_MODULE([rlm_winbind])
AC_SUBST(mod_cflags)
AC_SUBST(targetname)
AC_CONFIG_HEADER(config.h)
-AC_OUTPUT(all.mk)
+AC_CONFIG_FILES([all.mk])
+AC_OUTPUT
+
# Check whether --with-rlm_yubikey was given.
if test "${with_rlm_yubikey+set}" = set; then :
withval=$with_rlm_yubikey;
AC_PREREQ([2.69])
-AC_INIT(rlm_yubikey.c)
+AC_INIT
+AC_CONFIG_SRCDIR([rlm_yubikey.c])
AC_REVISION($Revision$)
FR_INIT_MODULE([rlm_yubikey])
AC_SUBST(mod_ldflags)
AC_SUBST(targetname)
AC_CONFIG_HEADER(config.h)
-AC_OUTPUT(all.mk)
+AC_CONFIG_FILES([all.mk])
+AC_OUTPUT