File: configure.in

package info (click to toggle)
libapache-mod-encoding 0.0.20021209-12
  • links: PTS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,700 kB
  • sloc: ansic: 94,406; sh: 6,693; makefile: 43
file content (53 lines) | stat: -rw-r--r-- 1,355 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Process this file with autoconf to produce a configure script.

# Initilization
AC_INIT(mod_encoding.c)
AM_INIT_AUTOMAKE(mod_encoding, 20020611a)
AM_CONFIG_HEADER(config.h)

# mostly for developer
AM_MAINTAINER_MODE

# for debugging
AC_MSG_CHECKING(whether to compile with debug code)
AC_ARG_ENABLE(debug,
[  --enable-debug           compile with debug code],
[
  AC_MSG_RESULT(yes)
  CPPFLAGS="-DMOD_ENCODING_DEBUG=1 $CPPFLAGS"
  APXSFLAGS="-Wc,-Wall $APXSFLAGS"
])

# for apxs
AC_ARG_WITH(apxs,
[  --with-apxs=FILE         path to apxs(1) - APache eXtenSion tool],
[
  if test x"$withval" = "xyes"; then
    AC_MSG_ERROR([Please specify location of apxs])
  fi
  APXS="$withval"
],
[ APXS=apxs ])

# for iconv_hook
AC_MSG_CHECKING(whether to wrap iconv with iconv_hook)
AC_ARG_WITH(iconv_hook,
[  --with-iconv-hook[=DIR]  use iconv.h from iconv_hook in DIR
                          (default is /usr/local/include/iconv_hook)],
[
  AC_MSG_RESULT(yes)
  if test x"$withval" = "xyes"; then
    APXSFLAGS="-I/usr/local/include/iconv_hook $APXSFLAGS"
  else
    APXSFLAGS="-I$withval $APXSFLAGS"
  fi
  AC_CHECK_LIB(iconv_hook, iconv_hook, [ LIBS="$LIBS -liconv_hook" ])
])

# for iconv
AC_CHECK_LIB(iconv, iconv,    [ LIBS="$LIBS -liconv" ])
AC_CHECK_LIB(iconv, libiconv, [ LIBS="$LIBS -liconv" ])

AC_SUBST(APXS)
AC_SUBST(APXSFLAGS)
AC_OUTPUT(Makefile)