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 (32 lines) | stat: -rw-r--r-- 788 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
# Process this file with autoconf to produce a configure script.

# Initilization
AC_INIT(iconv_hook.c)
AM_INIT_AUTOMAKE(libiconv_hook, 1.0.0)
AM_CONFIG_HEADER(config.h)

# mostly for developer
AM_MAINTAINER_MODE

# Checks for programs.
AC_PROG_CC
AC_PROG_MAKE_SET
AM_PROG_CC_STDC
AC_PROG_INSTALL
AM_PROG_LIBTOOL

# for --(with|without)-iconv
AC_ARG_WITH(iconv,
    [  --without-iconv         do not use iconv as a fallback converter])
AC_MSG_CHECKING(whether to use iconv(3) as a fallback converter)
if test x"$with_iconv" = "xno"; then
    AC_MSG_RESULT(no)
else
    AC_MSG_RESULT(yes)
    AC_DEFINE(WITH_ICONV)
    AC_CHECK_HEADERS(iconv.h)
    AC_CHECK_LIB(iconv,    iconv, [ LIBS="$LIBS -liconv" ])
    AC_CHECK_LIB(iconv, libiconv, [ LIBS="$LIBS -liconv" ])
fi

AC_OUTPUT(Makefile)