After (and before) applying patch I got:

~/src/kannel/gateway-cvshead/$ autoconf
configure.in:195: error: do not use LIBOBJS directly, use AC_LIBOBJ (see section 
`AC_LIBOBJ vs LIBOBJS'
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.

:( Humm I said.
I read info Autoconf (see section `AC_LIBOBJ vs LIBOBJS' as warning said)
made another change to configure.in
then autoconf ran okay but configure file generated had problems:
.......
checking for getopt... yes
./configure: line 6978: syntax error near unexpected token `done'
./configure: line 6978: `done'
./configure: eval: line 1: unexpected EOF while looking for matching `"'
./configure: eval: line 2: syntax error: unexpected end of file
./configure: eval: line 1: unexpected EOF while looking for matching `"'
./configure: eval: line 2: syntax error: unexpected end of file

Now I'm stuck :(

autoconf --version
autoconf (GNU Autoconf) 2.57

on redhat 9.1

attached patch with Rene's change & additional AC_LIBOBJ change

On Mon, Oct 04, 2004 at 01:47:13PM +0200, Rene Kluwen wrote:
> I came up for the same solution for the same problem. Great minds think
> alike, they say.
> 
> Attached is a patch for configure.in to solve this problem.
> 
> Can somebody patch configure.in for me and run autoconf?
> Unfortunately my autoconf gives me troubles (probably a RedHat thingy
> again), so I would appreciate it if configure and configure.in will be
> commited to CVS after that.
> 
> Rene Kluwen
> Chimit
> 
Index: configure.in
===================================================================
RCS file: /home/cvs/gateway/configure.in,v
retrieving revision 1.145
diff -u -r1.145 configure.in
--- configure.in        28 Aug 2004 13:29:10 -0000      1.145
+++ configure.in        5 Oct 2004 15:00:43 -0000
@@ -192,8 +192,8 @@
 dnl Checks for library functions.
 
 AC_CHECK_FUNCS(gettimeofday select socket strdup getopt_long localtime_r gmtime_r 
backtrace srandom)
-AC_CHECK_FUNC(getopt, , LIBOBJS="$LIBOBJS utils/attgetopt.o")
-AC_SUBST(LIBOBJS)
+AC_CHECK_FUNC(getopt, , AC_LIBOBJ([utils/attgetopt])
+AC_SUBST(AC_LIBOBJ)
 
 dnl Check if we have reentrant gethostbyname and which one
 AC_CHECK_FUNC(gethostbyname_r, [ AC_FUNC_WHICH_GETHOSTBYNAME_R ], [
@@ -873,7 +873,7 @@
             [ MYSQL_LIBS="" ], [ $MYSQL_LIBS ])
     fi
     if test -z "$MYSQL_LIBS" ; then
-        MYSQL_LIBS="$($MYSQL_CONFIG --libs)"
+        MYSQL_LIBS=`$MYSQL_CONFIG --libs | sed -e "s/\x27//g"`
         AC_MSG_CHECKING([mysql libs])
         AC_MSG_RESULT([ $MYSQL_LIBS ])
         AC_CHECK_LIB(mysqlclient, mysql_init, [ LIBS="$LIBS $MYSQL_LIBS" ],

Reply via email to