1 | dnl Process this file with autoconf to produce a configure script. |
1 | dnl Process this file with autoconf to produce a configure script. |
2 | AC_INIT |
2 | AC_INIT |
3 | AC_CONFIG_SRCDIR([lib/psiconv]) |
3 | AC_CONFIG_SRCDIR([lib/psiconv]) |
4 | AM_INIT_AUTOMAKE(psiconv,0.8.4) |
4 | AM_INIT_AUTOMAKE(psiconv,0.9.0) |
5 | |
5 | |
6 | AM_CONFIG_HEADER(config.h) |
6 | AM_CONFIG_HEADER(config.h) |
7 | |
7 | |
8 | dnl Checks for programs. |
8 | dnl Checks for programs. |
9 | AM_PROG_LIBTOOL |
9 | AM_PROG_LIBTOOL |
… | |
… | |
187 | AC_SUBST(INT_32_BIT) |
187 | AC_SUBST(INT_32_BIT) |
188 | |
188 | |
189 | dnl Checks for library functions. |
189 | dnl Checks for library functions. |
190 | AC_FUNC_VPRINTF |
190 | AC_FUNC_VPRINTF |
191 | AC_REPLACE_FUNCS(strdup) |
191 | AC_REPLACE_FUNCS(strdup) |
192 | AC_CHECK_FUNCS(getopt_long,,AC_LIBOBJ([getopt]);AC_LIBOBJ([getopt1])) |
192 | AC_CHECK_FUNC(getopt_long,getopt=yes,getopt=no) |
|
|
193 | if test $getopt = no; then |
|
|
194 | AC_LIBOBJ([getopt]) |
|
|
195 | AC_LIBOBJ([getopt1]) |
|
|
196 | fi |
193 | |
197 | |
194 | AC_ARG_ENABLE(dmalloc, |
198 | AC_ARG_ENABLE(dmalloc, |
195 | [ --enable-dmalloc Enable dmalloc for developers (default:off)], |
199 | [ --enable-dmalloc Enable dmalloc for developers (default:off)], |
196 | [case "${enableval}" in |
200 | [case "${enableval}" in |
197 | yes) dmalloc=yes ;; |
201 | yes) dmalloc=yes ;; |