1 dnl Process this file with autoconf to produce a configure script.
3 AC_INIT("chrpath", "0.13", pere@hungry.com)
7 AM_INIT_AUTOMAKE("chrpath", "0.13")
9 AC_CONFIG_SRCDIR(chrpath.c)
10 AM_CONFIG_HEADER(config.h)
14 CHRPATH_LDRPATH_OPTION
16 dnl Checks for programs.
20 dnl Checks for libraries.
22 dnl Checks for header files.
24 AC_CHECK_HEADERS([getopt.h elf.h fcntl.h unistd.h link.h sys/link.h])
26 dnl Checks for typedefs, structures, and compiler characteristics.
29 AC_CHECK_SIZEOF(void *)
31 dnl Checks for library functions.
32 AC_CHECK_FUNCS(getopt_long)
34 if eval "test x$GCC = xyes"; then
43 -Wmissing-declarations \
44 -Wmissing-prototypes \
49 JAPHAR_GREP_CFLAGS($flag, [ CFLAGS="$CFLAGS $flag" ])
53 AC_ARG_WITH(coverage, [Enable coverage testing],
55 JAPHAR_GREP_CFLAGS(-g, [ CFLAGS="$CFLAGS -g" ])
56 JAPHAR_GREP_CFLAGS(-fprofile-arcs, [ CFLAGS="$CFLAGS -fprofile-arcs" ])
57 JAPHAR_GREP_CFLAGS(-ftest-coverage, [ CFLAGS="$CFLAGS -ftest-coverage" ])
67 if test ! -d debian ; then
71 echo "Configure status:"
72 echo "-----------------"
74 echo " CFLAGS = $CFLAGS"
75 echo " LDRPATH= $LDRPATH"