[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
autoconf 2.59 - errors in configure script
From: |
Anthon |
Subject: |
autoconf 2.59 - errors in configure script |
Date: |
Sat, 11 Sep 2004 23:59:45 -0700 |
User-agent: |
Internet Messaging Program (IMP) 3.2.3 |
------------------
Software
------------------
OS: GNU Linux (Red Hat 8)
m4: 1.4.2
libtool: 1.5.8
automake: 1.9.1
autoconf: 2.59
------------------
Problem
------------------
./configure-broken: line 4047: syntax error near unexpected token `newline'
./configure-broken: line 4047: ` yes:no:'
------------------
Observations
------------------
There are a couple problems with the configure script generated by this (latest)
software combination:
1) "fi" and ")" are swapped in a couple of places
2) there is a nested "cat >>conftest.$ac_ext <<_ACEOF"..."_ACEOF" block
[The complete configure script is available on request.]
------------------
Steps to Reproduce
------------------
1) aclocal
2) autoconf
3) ./configure
------------------
File: configure.in
------------------
dnl Process this file with autoconf to produce a configure script.
AC_INIT
dnl Set initial values
AC_PREFIX_DEFAULT(/usr/local/example)
dnl Checks for programs.
AC_PROG_INSTALL
AC_PROG_YACC
AC_PROG_CPP
AC_PROG_CXX
AC_PROG_MAKE_SET
AC_PROG_RANLIB
AC_PROG_LEX
dnl Checks for header files.
AC_HEADER_STDC
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_C_INLINE
dnl Checks for library functions.
AC_CHECK_FUNCS(strdup)
THREAD_LIBS=
AC_CHECK_LIB(pthread, pthread_create,
AC_CHECK_HEADERS(pthread.h, [
CFLAGS="$CFLAGS -D_REENTRANT"
THREAD_LIBS="$THREAD_LIBS -lpthread"])
)
AC_SUBST(THREAD_LIBS)
------------------
configure (diffs between generated and manually tweaked files)
------------------
--- configure-broken 2004-09-12 02:31:36.000000000 -0400
+++ configure 2004-09-12 02:35:27.000000000 -0400
@@ -3862,6 +3862,7 @@
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
+_ACEOF
# Factoring default headers for most tests.
ac_includes_default="\
#include <stdio.h>
@@ -3901,6 +3902,12 @@
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+
+#include <$ac_header>
+_ACEOF
@@ -3971,9 +3978,6 @@
done
-$ac_includes_default
-#include <$ac_header>
-_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
@@ -4049,8 +4053,7 @@
# So? What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
- yes:no:
-fi
+ yes:no: )
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler,
rejected by
the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the
preprocessor!" >&2;}
@@ -4103,5 +4106,5 @@
done
-)
+fi
- autoconf 2.59 - errors in configure script,
Anthon <=