Changes in configure.ac [c08a725:4097723]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
configure.ac
rc08a725 r4097723 1 1 dnl $Id$ 2 2 dnl Process this file with autoconf to produce a configure script. 3 AC_INIT([BarnOwl],[1.1.2],[bug-barnowl@mit.edu]) 4 AM_INIT_AUTOMAKE([-Wall foreign]) 3 AC_INIT(owl.c) 5 4 6 AC_CONFIG_HEADER( [config.h])5 AC_CONFIG_HEADER(config.h) 7 6 8 7 AC_PROG_CC 8 9 dnl If we're using GCC, enable all warnings 10 if test "$GCC" = yes; then 11 CFLAGS="$CFLAGS -Wall -g"; 12 fi 9 13 10 14 dnl Check for Athena … … 42 46 AC_MSG_RESULT(no) 43 47 fi 44 PROTECT_CFLAGS=${PROTECT_CFLAGS-"-fstack-protector"}45 SAVE_CFLAGS=$CFLAGS46 CFLAGS="$CFLAGS $PROTECT_CFLAGS"47 AC_MSG_CHECKING(whether protection cflags work)48 AC_COMPILE_IFELSE(int i;,49 [AC_MSG_RESULT(yes)],50 [AC_MSG_RESULT(no)51 CFLAGS=$SAVE_CFLAGS])52 48 49 AC_ARG_WITH([stack-protector], 50 [AS_HELP_STRING([--with-stack-protector], 51 [Enable gcc -fstack-protector])], 52 [], 53 [with_stack_protector=check]) 53 54 54 AC_CHECK_LIB(ssp, __stack_chk_guard) 55 AS_IF([test "x$with_stack_protector" != xno], 56 [ 57 SAVE_CFLAGS=$CFLAGS 58 CFLAGS="$CFLAGS -fstack-protector" 59 AC_MSG_CHECKING(whether protection cflags work) 60 AC_COMPILE_IFELSE(int i;, 61 [AC_MSG_RESULT(yes)], 62 [AC_MSG_RESULT(no) 63 CFLAGS=$SAVE_CFLAGS 64 if test "x$with_stack_protector" != xcheck; then 65 AC_MSG_FAILURE([--with-stack-protector selected, but gcc does support it.]) 66 fi]) 67 AC_CHECK_LIB(ssp, __stack_chk_guard) 68 ]) 69 55 70 AC_CHECK_LIB(ncursesw, initscr,, AC_MSG_ERROR(No libncursesw found.)) 56 71 AC_CHECK_LIB(com_err, com_err) … … 60 75 AC_CHECK_LIB(des425, des_cbc_encrypt,,AC_CHECK_LIB(crypto,DES_cbc_encrypt)) 61 76 AC_CHECK_LIB(resolv, res_search) 62 dnl AC_CHECK_LIB(zephyr, ZGetSender,, AC_MSG_ERROR(No zephyr library found.)) 63 AC_CHECK_LIB(zephyr, ZGetSender) 64 AC_CHECK_LIB(zephyr, ZInitLocationInfo, AC_DEFINE([HAVE_LIBZEPHYR_ZINITLOCATIONINFO], [], [Have ZInitLocationInfo]),) 77 78 AC_ARG_WITH([zephyr], 79 [AS_HELP_STRING([--with-libzephyr], 80 [Disable Zephyr support])], 81 [], 82 [with_zephyr=check]) 83 84 AS_IF([test "x$with_zephyr" != xno], 85 [AC_CHECK_LIB([zephyr], [ZGetSender], 86 [LIBS="$LIBS -lzephyr" 87 AC_DEFINE([HAVE_LIBZEPHYR], [1], 88 [Define if you have libzephyr]) 89 AC_CHECK_LIB([zephyr], [ZInitLocationInfo], 90 AC_DEFINE([HAVE_LIBZEPHYR_ZINITLOCATIONINFO], [1], 91 [Have ZInitLocationInfo]),) 92 ], 93 [if test "x$with_zephyr" != xcheck; then 94 AC_MSG_FAILURE( 95 [--with-libzephyr was given, but libzephyr does not seem to be available.]) 96 fi 97 ])]) 98 99 AC_ARG_ENABLE([athstatic], AS_HELP_STRING([--enable-athstatic], 100 [Statically link libraries in /usr/athena/lib]), 101 [ATHSTATIC=./athstatic], 102 [ATHSTATIC=]) 65 103 66 104 AC_CHECK_FUNCS(use_default_colors resizeterm des_string_to_key des_key_sched des_ecb_encrypt) … … 105 143 dnl Add LDFLAGS for embedded perl 106 144 FOO=`perl -MExtUtils::Embed -e ldopts` 107 AC_MSG_NOTICE([Adding perl L IBS ${FOO}])108 L IBS=${LIBS}\ ${FOO}145 AC_MSG_NOTICE([Adding perl LDFLAGS ${FOO}]) 146 LDFLAGS=${LDFLAGS}\ ${FOO} 109 147 110 148 dnl Add CFLAGS and LDFLAGS for glib-2.0 … … 116 154 LDFLAGS="${GLIB_LIBS} ${LDFLAGS}" 117 155 118 if test "x${prefix}" = "xNONE"; then 119 prefix="${ac_default_prefix}" 120 fi 156 dnl Checks for typedefs, structures, and compiler characteristics. 121 157 122 AC_DEFINE_UNQUOTED([DATADIR],["${prefix}/share/${PACKAGE}"], 123 [Package data directory]) 124 125 dnl Checks for typedefs, structures, and compiler characteristics. 158 dnl Support --program-{prefix,suffix,transform} 159 AC_ARG_PROGRAM 126 160 127 161 AC_SUBST(XSUBPPDIR) 128 162 AC_SUBST(XSUBPPFLAGS) 163 AC_SUBST(ATHSTATIC) 129 164 130 165 AC_PROG_INSTALL 131 AC_PROG_RANLIB132 166 133 AC_CONFIG_FILES([Makefile libfaim/Makefile]) 134 AC_OUTPUT([perl/modules/Makefile]) 167 AC_CONFIG_SUBDIRS(libfaim) 168 169 AC_OUTPUT(Makefile)
Note: See TracChangeset
for help on using the changeset viewer.