X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=configure.ac;h=1a61e2f325d3312c0da60554db95c902de5af7cd;hb=104fea1aa2c7fac5206249f88e3f906260538a6d;hp=7b455cd05ad731e090902c6aec9d3d1f57cbb063;hpb=f0ecda34fc6ad92793cf9d1e7fa3c5aa9165f9d0;p=portablexdr.git diff --git a/configure.ac b/configure.ac index 7b455cd..1a61e2f 100644 --- a/configure.ac +++ b/configure.ac @@ -1,14 +1,32 @@ -AC_INIT(portablexdr, 4.0.10) +AC_INIT(portablexdr, 4.9.1) AM_INIT_AUTOMAKE AC_CONFIG_HEADERS([config.h]) +AC_CONFIG_MACRO_DIR([m4]) + AC_CANONICAL_HOST AC_PROG_CC -AC_CHECK_PROGS(AR, ar) +AM_PROG_CC_C_O + AC_PROG_INSTALL AC_PROG_LIBTOOL +AC_PROG_LEX +AC_PROG_YACC + +AC_CHECK_PROGS(AR, ar) + +dnl Look for an external 'cpp' program which can run on a file with any +dnl extension. The normal CPP can only run on files with a '.c' +dnl extension, therefore we prefer to use /usr/bin/cpp if it exists. +AC_PATH_PROG([EXTCPP], [cpp], [no]) +if test "x$EXTCPP" = "xno"; then + AC_MSG_FAILURE([Cannot find a working 'cpp' (C preprocessor) program]) +fi +AC_DEFINE_UNQUOTED([EXTCPP], ["$EXTCPP"], + [The C preprocessor command (may include command line options).]) + MINGW_EXTRA_LDFLAGS= case "$host" in *-*-mingw*) @@ -17,7 +35,7 @@ case "$host" in esac AC_SUBST(MINGW_EXTRA_LDFLAGS) -AC_CHECK_HEADERS([arpa/inet.h]) +AC_CHECK_HEADERS([arpa/inet.h sys/param.h]) AC_CHECK_FUNCS([ntohl htonl ntohs htons]) AC_OUTPUT(Makefile)