| 5 |
|
dnl the most major changes have already been made and it looks like |
| 6 |
|
dnl said functions need to be just about as complex as they already are. |
| 7 |
|
|
| 8 |
< |
AC_PREREQ(2.57) |
| 8 |
> |
AC_PREREQ(2.61) |
| 9 |
|
|
| 10 |
|
dnl Sneaky way to get an Id tag into the configure script |
| 11 |
|
AC_COPYRIGHT([$Id$]) |
| 12 |
|
|
| 13 |
< |
AC_INIT([ircd-hybrid],[7.2]) |
| 13 |
> |
AC_INIT([ircd-hybrid],[7.2.4]) |
| 14 |
|
|
| 15 |
|
AC_CONFIG_HEADER(include/setup.h) |
| 16 |
|
|
| 214 |
|
dnl Checks for header files. |
| 215 |
|
AC_HEADER_STDC |
| 216 |
|
|
| 217 |
< |
AC_CHECK_HEADERS([crypt.h inttypes.h stdint.h sys/resource.h sys/param.h errno.h sys/syslog.h stddef.h libgen.h sys/wait.h wait.h]) |
| 217 |
> |
AC_CHECK_HEADERS([crypt.h inttypes.h stdint.h sys/resource.h sys/param.h errno.h sys/syslog.h stddef.h libgen.h sys/wait.h wait.h link.h]) |
| 218 |
|
|
| 219 |
|
dnl Networking Functions |
| 220 |
|
dnl ==================== |
| 513 |
|
AC_LANG_PROGRAM( |
| 514 |
|
[#include <openssl/opensslv.h> |
| 515 |
|
#include <stdlib.h>], |
| 516 |
< |
[[if ( (OPENSSL_VERSION_NUMBER & 0x00906000) == 0x00906000) |
| 516 |
> |
[[if (OPENSSL_VERSION_NUMBER >= 0x00906000) |
| 517 |
|
exit(0); else exit(1);]]), |
| 518 |
|
cf_openssl_version_ok=yes, |
| 519 |
|
cf_openssl_version_ok=no, |
| 729 |
|
if test "$profile" = yes; then |
| 730 |
|
if test "$ac_cv_c_compiler_gnu" = yes; then |
| 731 |
|
IRC_CFLAGS="$IRC_CFLAGS -pg -static" |
| 732 |
< |
AC_MSG_RESULT="yes, adding -pg -static" |
| 732 |
> |
AC_MSG_RESULT([yes, adding -pg -static]) |
| 733 |
|
else |
| 734 |
|
AC_MSG_RESULT([no, profile builds only work with gcc]) |
| 735 |
|
fi |
| 775 |
|
|
| 776 |
|
AC_ARG_ENABLE(warnings, |
| 777 |
|
AC_HELP_STRING([--enable-warnings],[Enable all sorts of warnings for debugging.]), |
| 778 |
< |
[IRC_CFLAGS="$IRC_CFLAGS -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -W -Wno-unused"],[]) |
| 778 |
> |
[IRC_CFLAGS="$IRC_CFLAGS -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -W -Wextra"],[]) |
| 779 |
|
|
| 780 |
|
dnl Server Tweaks |
| 781 |
|
dnl ============= |
| 976 |
|
AC_MSG_WARN([dlsym is not available, shared modules disabled]) |
| 977 |
|
shared_modules=no |
| 978 |
|
]) |
| 979 |
< |
AC_CHECK_FUNCS(dlfunc) |
| 979 |
> |
AC_CHECK_FUNCS(dlfunc dlinfo) |
| 980 |
|
], |
| 981 |
|
[ |
| 982 |
|
shared_modules=no |
| 1089 |
|
|
| 1090 |
|
prefix=`echo $prefix | sed 's/\/$//'` |
| 1091 |
|
AC_DEFINE_UNQUOTED(IRCD_PREFIX, "$prefix", [Prefix where the ircd is installed.]) |
| 1092 |
< |
|
| 1092 |
> |
|
| 1093 |
> |
fi |
| 1094 |
> |
|
| 1095 |
> |
if test "$datadir" != "NONE"; then |
| 1096 |
> |
AC_DEFINE_UNQUOTED(IRCD_DATADIR, "$datadir", [Prefix where the help files and modules go.]) |
| 1097 |
> |
AC_SUBST(MODULEDIR, "${datadir}/modules") |
| 1098 |
> |
AC_SUBST(AUTOMODULEDIR, "${datadir}/modules/autoload") |
| 1099 |
> |
else |
| 1100 |
> |
AC_SUBST(MODULEDIR, "${prefix}/modules") |
| 1101 |
> |
AC_SUBST(AUTOMODULEDIR, "${prefix}/modules/autoload") |
| 1102 |
> |
fi |
| 1103 |
> |
|
| 1104 |
> |
AC_DEFINE_UNQUOTED(IRCD_LOCALSTATEDIR, "$localstatedir", [Prefix where logs and pidfile go.]) |
| 1105 |
> |
|
| 1106 |
> |
if test "$sysconfdir" != "NONE"; then |
| 1107 |
> |
AC_DEFINE_UNQUOTED(IRCD_SYSCONFDIR, "$sysconfdir", [Prefix where etc files go i.e. ircd.conf.]) |
| 1108 |
|
fi |
| 1109 |
|
|
| 1110 |
|
AC_CONFIG_FILES( \ |
| 1111 |
|
Makefile \ |
| 1112 |
|
etc/Makefile \ |
| 1113 |
+ |
etc/example.conf \ |
| 1114 |
+ |
etc/example.conf.quick \ |
| 1115 |
+ |
etc/example.efnet.conf \ |
| 1116 |
|
servlink/Makefile \ |
| 1117 |
|
contrib/Makefile \ |
| 1118 |
|
contrib/help/Makefile \ |