[prev in list] [next in list] [prev in thread] [next in thread]
List: autoconf
Subject: AC_CHECK_LIBS (or AC_DEFINE) : possibly undefined macro
From: Vincent Torri <vtorri () univ-evry ! fr>
Date: 2008-10-08 6:53:12
Message-ID: Pine.LNX.4.64.0810080852560.24701 () grozny ! maths ! univ-evry ! fr
[Download RAW message or body]
Hey,
sometimes, when I run a script that executes the usual commands to configure
the autotools (aclocal, autoconf, etc...), or when I run autoreconf -f -i, I
get the error "possibly undefined macro" for AC_DEFINE. Today, it with
AC_CHECK_LIBS
The code that is related to that amcro is:
AC_CHECK_FUNCS([fnmatch],
[res="yes"],
[res="no"]
)
if test "x$res" = "xno" ; then
AC_CHECK_LIBS([fnmatch],
[fnmatch iberty],
[res="yes"],
[res="no"]
)
if test "x${}" = "xno" ; then
AC_MSG_ERROR([Cannot find fnmatch() in neither libc nor libfnmatch, nor
libiberty])
fi
fi
(note: iberty is for mingw)
But, when I run myself all the commands of my script, in the same order, in the
terminal, that is:
aclocal -I m4
autoheader
autoconf
libtoolize --copy --automake
automake --add-missing --copy --gnu
then, everything is fine, no error...
Does someone know what the problem is ?
thank you
Vincent Torri
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic