|
|
1 | dnl configure.ac: Process this file with autoconf to produce a configure script. |
|
|
2 | dnl |
1 | dnl Copyright © 2007 Pippijn van Steenhoven / The Ermyth Team |
3 | dnl Copyright © 2007 Pippijn van Steenhoven / The Ermyth Team |
2 | dnl Copyright © 2005 Atheme Development Group |
4 | dnl Rights to this code are as documented in COPYING. |
|
|
5 | dnl |
|
|
6 | dnl |
|
|
7 | dnl Portions of this file were derived from sources bearing the following license: |
|
|
8 | dnl Copyright © 2003-2004 E. Will et al. |
3 | dnl Rights to this code are documented in doc/pod/license.pod. |
9 | dnl Rights to this code are documented in doc/pod/license.pod. |
4 | dnl |
10 | dnl |
5 | dnl $Id: configure.ac,v 1.8 2007/08/28 17:08:06 pippijn Exp $ |
11 | dnl $Id: configure.ac,v 1.12 2007/09/22 14:27:25 pippijn Exp $ |
6 | |
12 | dnl |
7 | dnl Process this file with autoconf to produce a configure script. |
|
|
8 | |
13 | |
9 | AC_PREREQ(2.59) |
14 | AC_PREREQ(2.59) |
10 | AC_INIT([ermyth], [2.3], [ermyth@one09.net]) |
15 | AC_INIT([ermyth], [2.3], [ermyth@one09.net]) |
11 | AC_CONFIG_HEADER(include/sysconf.h) |
16 | AC_CONFIG_HEADER(include/sysconf.h) |
12 | AC_CONFIG_AUX_DIR(autoconf) |
17 | AC_CONFIG_AUX_DIR(autoconf) |
13 | |
18 | |
14 | AC_COPYRIGHT([$Id: configure.ac,v 1.8 2007/08/28 17:08:06 pippijn Exp $]) |
19 | AC_COPYRIGHT([$Id: configure.ac,v 1.12 2007/09/22 14:27:25 pippijn Exp $]) |
15 | |
20 | |
16 | AC_PREFIX_DEFAULT(~/PACKAGE) |
21 | AC_PREFIX_DEFAULT(~/PACKAGE) |
17 | |
22 | |
18 | dnl Automake compatibility. |
23 | dnl Automake compatibility. |
19 | AC_SUBST([PACKAGE], [AC_PACKAGE_TARNAME]) |
24 | AC_SUBST([PACKAGE], [AC_PACKAGE_TARNAME]) |
… | |
… | |
105 | |
110 | |
106 | dnl |
111 | dnl |
107 | dnl Checks for header files. |
112 | dnl Checks for header files. |
108 | dnl |
113 | dnl |
109 | |
114 | |
110 | AC_CHECK_HEADERS(getopt.h link.h valgrind/memcheck.h) |
115 | AC_CHECK_HEADERS(valgrind/memcheck.h) |
111 | AC_CHECK_HEADER(tr1/unordered_map, [], [AC_MSG_ERROR([Your compiler must support the Library Technical Report 1 extensions.])]) |
116 | AC_CHECK_HEADER(tr1/unordered_map, [], [AC_MSG_ERROR([Your compiler must support the Library Technical Report 1 extensions.])]) |
112 | |
117 | |
113 | AC_DEFINE(_REENTRANT, [1], [Define this]) |
118 | AC_DEFINE(_REENTRANT, [1], [Define this]) |
114 | |
119 | |
115 | #-------------------------------------------------- |
120 | #-------------------------------------------------- |
… | |
… | |
311 | srcdir="`cd \"$srcdir\";pwd`" |
316 | srcdir="`cd \"$srcdir\";pwd`" |
312 | ;; |
317 | ;; |
313 | esac |
318 | esac |
314 | fi |
319 | fi |
315 | SRCDIR="$srcdir" |
320 | SRCDIR="$srcdir" |
|
|
321 | BUILDROOT=`pwd` |
316 | |
322 | |
317 | AC_SUBST(ABSPATHS) |
323 | AC_SUBST(ABSPATHS) |
318 | AC_SUBST(SRCDIR) |
324 | AC_SUBST(SRCDIR) |
|
|
325 | AC_SUBST(BUILDROOT) |
319 | |
326 | |
320 | dnl |
327 | dnl |
321 | dnl Filesystem Hierarchy Standard |
328 | dnl Filesystem Hierarchy Standard |
322 | dnl |
329 | dnl |
323 | |
330 | |
… | |
… | |
570 | ERMYTH_C_GCC_TRY_FLAGS([-Wcast-align], ermyth_cv_c_gcc_w_cast_align) |
577 | ERMYTH_C_GCC_TRY_FLAGS([-Wcast-align], ermyth_cv_c_gcc_w_cast_align) |
571 | ERMYTH_C_GCC_TRY_FLAGS([-Wcast-qual], ermyth_cv_c_gcc_w_cast_qual) |
578 | ERMYTH_C_GCC_TRY_FLAGS([-Wcast-qual], ermyth_cv_c_gcc_w_cast_qual) |
572 | ERMYTH_C_GCC_TRY_FLAGS([-Wextra], ermyth_cv_c_gcc_w_extra) |
579 | ERMYTH_C_GCC_TRY_FLAGS([-Wextra], ermyth_cv_c_gcc_w_extra) |
573 | ERMYTH_C_GCC_TRY_FLAGS([-W -Wno-unused-parameter], ermyth_cv_c_gcc_w) |
580 | ERMYTH_C_GCC_TRY_FLAGS([-W -Wno-unused-parameter], ermyth_cv_c_gcc_w) |
574 | ERMYTH_C_GCC_TRY_FLAGS([-Wshadow], ermyth_cv_c_gcc_w_shadow) |
581 | ERMYTH_C_GCC_TRY_FLAGS([-Wshadow], ermyth_cv_c_gcc_w_shadow) |
575 | ERMYTH_C_GCC_TRY_FLAGS([-Wmissing-noreturn], ermyth_cv_c_gcc_w_missing_noreturn) |
582 | dnl ERMYTH_C_GCC_TRY_FLAGS([-Wmissing-noreturn], ermyth_cv_c_gcc_w_missing_noreturn) |
576 | ERMYTH_C_GCC_TRY_FLAGS([-Wundef], ermyth_cv_c_gcc_w_undef) |
583 | ERMYTH_C_GCC_TRY_FLAGS([-Wundef], ermyth_cv_c_gcc_w_undef) |
577 | ERMYTH_C_GCC_TRY_FLAGS([-Wpacked], ermyth_cv_c_gcc_w_packed) |
584 | ERMYTH_C_GCC_TRY_FLAGS([-Wpacked], ermyth_cv_c_gcc_w_packed) |
578 | ERMYTH_C_GCC_TRY_FLAGS([-Wunused-function -Wunused-label -Wunused-value -Wunused-variable], ermyth_cv_c_gcc_w_unused) |
585 | ERMYTH_C_GCC_TRY_FLAGS([-Wunused-function -Wunused-label -Wunused-value -Wunused-variable], ermyth_cv_c_gcc_w_unused) |
579 | ERMYTH_C_GCC_TRY_FLAGS([-Wredundant-decls], ermyth_cv_c_gcc_w_redundant_decls) |
586 | ERMYTH_C_GCC_TRY_FLAGS([-Wredundant-decls], ermyth_cv_c_gcc_w_redundant_decls) |
580 | ERMYTH_C_GCC_TRY_FLAGS([-Wfloat-equal], ermyth_cv_c_gcc_w_float_equal) |
587 | ERMYTH_C_GCC_TRY_FLAGS([-Wfloat-equal], ermyth_cv_c_gcc_w_float_equal) |
… | |
… | |
669 | |
676 | |
670 | dnl include/common/callback.h |
677 | dnl include/common/callback.h |
671 | AC_OUTPUT([ |
678 | AC_OUTPUT([ |
672 | Makefile |
679 | Makefile |
673 | doc/Makefile |
680 | doc/Makefile |
|
|
681 | libermyth/Makefile |
|
|
682 | libermyth/Makefile.common |
|
|
683 | libermyth/Makefile.defs |
|
|
684 | libermyth/util/Makefile |
674 | modules/Makefile |
685 | modules/Makefile |
675 | modules/Makefile.common |
686 | modules/Makefile.common |
676 | modules/Makefile.defs |
687 | modules/Makefile.defs |
677 | modules/backend/Makefile |
688 | modules/backend/Makefile |
678 | modules/chanserv/Makefile |
689 | modules/chanserv/Makefile |