"Fossies" - the Fresh Open Source Software Archive 
Member "authforce-0.9.9/configure.in" (13 May 2007, 2233 Bytes) of package /linux/www/old/authforce-0.9.9.tar.gz:
As a special service "Fossies" has tried to format the requested text file into HTML format (style:
standard) with prefixed line numbers.
Alternatively you can here
view or
download the uninterpreted source code file.
1 dnl Process this file with autoconf to produce a configure script.
2
3 AC_INIT([authforce],[0.9.9],[kapheine@divineinvasion.net])
4 AC_CANONICAL_TARGET
5 AM_INIT_AUTOMAKE([1.9 gnits dist-bzip2])
6
7 AC_CONFIG_HEADERS(config.h)
8
9 AM_WITH_DMALLOC
10 AM_GNU_GETTEXT([external])
11
12 dnl Add the languages which your application supports here.
13 ALL_LINGUAS="nl"
14
15
16 dnl Checks for programs.
17 AC_PROG_CC
18 AC_PROG_INSTALL
19
20
21 curl=yes
22 AC_ARG_WITH(curl,
23 [ --with-curl attempt compiling using CURL [default=yes]
24 CURL is available at http://curl.haxx.se/],
25 [
26 if test x$withval = xno; then
27 curl=no
28 fi
29 ]
30 )
31
32 if test x$curl = xyes; then
33 AC_CHECK_LIB(curl, curl_easy_init, curl=yes, [
34 echo ""
35 echo "WARNING: Configure tried to use the CURL library but couldn't"
36 echo "find it. Continuing with the dummy functions instead. You can"
37 echo "download the CURL library at: http://curl.haxx.se/"
38 echo ""
39 curl=no
40 ])
41 fi
42
43 if test x$curl = xyes; then
44 AC_DEFINE(USE_CURL, 1, [Define if you have the CURL library])
45 LIBS="$LIBS -lcurl"
46 else
47 AC_DEFINE(USE_DUMMY, 1, [Define if you don't have the CURL library])
48 fi
49
50
51 dnl Checks for libraries.
52 AC_CHECK_LIB(ncurses, initscr)
53 AC_CHECK_LIB(readline, readline)
54
55 dnl Checks for header files.
56 AC_HEADER_STDC
57 AC_CHECK_HEADERS(malloc.h unistd.h)
58
59 dnl Checks for typedefs, structures, and compiler characteristics.
60 AC_C_CONST
61 AC_TYPE_SIZE_T
62
63 dnl Checks for library functions.
64 AC_TYPE_SIGNAL
65 AC_CHECK_FUNCS(strdup strstr)
66
67 AUTHFORCE_PATH=".:/usr/local/share/authforce/data:../data"
68 AUTHFORCE_CONFIG="/usr/local/etc/authforcerc:~/.authforcerc"
69 dnl AC_DEFINE_UNQUOTED(DEFAULT_PATH, "${AUTHFORCE_PATH}")
70 AC_DEFINE_UNQUOTED(DEFAULT_CONFIG,"${AUTHFORCE_CONFIG}", [Authforce config files])
71
72 AC_ARG_WITH(path, [ --with-path=PATH change default path])
73
74 dnl AC_DEFINE_UNQUOTED(DEFAULT_PATH, "$with_path")
75
76 if test "x$with_path" != "x"
77 then
78 AC_DEFINE_UNQUOTED(DEFAULT_PATH, "$with_path", [Authforce path])
79 else
80 AC_DEFINE_UNQUOTED(DEFAULT_PATH, "${AUTHFORCE_PATH}")
81 fi
82
83 AC_OUTPUT(
84 Makefile
85 src/Makefile
86 doc/Makefile
87 po/Makefile.in
88 data/Makefile
89 authforce.spec
90 )
91
92 dnl echo "
93 dnl Configuration:
94
95 dnl Source code location: ${srcdir}
96 dnl Compiler: ${CC}
97 dnl Using CURL: ${curl}
98
99 dnl "