From 83e1c21f5a183cbd74d4f2d6363aa5e8dab9f167 Mon Sep 17 00:00:00 2001 From: Stephane Bortzmeyer Date: Thu, 5 Apr 2007 12:26:38 +0000 Subject: [PATCH] Fix an autoconf bug for systems where popt is not in the default path --- SRC/INSTALL | 9 --------- SRC/configure-common.ac | 2 +- SRC/configure.ac | 8 ++++---- 3 files changed, 5 insertions(+), 14 deletions(-) diff --git a/SRC/INSTALL b/SRC/INSTALL index 67ee4e4..99c8123 100644 --- a/SRC/INSTALL +++ b/SRC/INSTALL @@ -60,15 +60,6 @@ echoping in 32bits. With gcc: CFLAGS=-m32 ./configure --config-cache make -If you get a: - -checking size of int... configure: error: cannot compute sizeof (int) - -it probably means configure's test programs cannot find libpopt (read -config.log if you want a confirmation). Set LD_LIBRARY_PATH to include -the directory where libpopt resides (it is not necessary to run -echoping, just for the compilation). - Standard "autoconf/configure" options are supported such as --prefix to set the installation root directory. diff --git a/SRC/configure-common.ac b/SRC/configure-common.ac index 76393b7..0bea579 100644 --- a/SRC/configure-common.ac +++ b/SRC/configure-common.ac @@ -1,5 +1,5 @@ dnl $Id$ -AC_INIT(echoping, 6.0.1, bortz@users.sourceforge.net) +AC_INIT(echoping, 6.1-BETA, bortz@users.sourceforge.net) AC_CANONICAL_HOST AC_PROG_CC(cc gcc) AC_LIBTOOL_DLOPEN diff --git a/SRC/configure.ac b/SRC/configure.ac index eda8aed..6b79f45 100644 --- a/SRC/configure.ac +++ b/SRC/configure.ac @@ -6,6 +6,10 @@ m4_include(configure-common.ac) AM_INIT_AUTOMAKE AM_CONFIG_HEADER(config.h) +dnl Checking size of ints, we often need it for binary protocols like ICP +AC_CHECK_SIZEOF(int) +AC_CHECK_SIZEOF(long) + dnl User options dnl http://sources.redhat.com/ml/automake-prs/2001-q3/msg00033.html max_iterations_specified=0 @@ -174,10 +178,6 @@ AC_CHECK_FUNCS(dlopen, , [AC_CHECK_LIB(dl,dlopen, , [AC_MSG_ERROR([echoping requires dlopen (dynamic loading of libraries) for plugins])])]) -dnl Checking size of ints, we often need it for binary protocols like ICP -AC_CHECK_SIZEOF(int) -AC_CHECK_SIZEOF(long) - if test "$LIBIDN" = "1"; then CF_LIB_LIBIDN fi