> $ ./configure 
> checking for gcc... gcc
> checking for C compiler default output file name... a.out
> checking whether the C compiler works... yes
> checking whether we are cross compiling... no
> checking for suffix of executables... 
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc accepts -g... yes
> checking for gcc option to accept ANSI C... none needed
> checking for signalfd... no
> ./configure: line 2303: syntax error near unexpected token
> `linux/types.h'
> ./configure: line 2303: `AC_CHECK_HEADERS_ONCE(linux/types.h)'

This is the nightmare which people were afraid of.


Look at following commit.

    [EMAIL PROTECTED] m4]$ git-log ltp-signalfd.m4 | cat
    ...
    commit 8d9911c6cf1dd957a57690eb6f95ac44660ebdbc
    Author: vapier <vapier>
    Date:   Wed Nov 12 19:29:11 2008 +0000

        use AC_CHECK_HEADERS_ONCE()

When you run autoconf, AC_CHECK_HEADERS_ONCE m4 macro is not expanded.
I guess AC_CHECK_HEADERS_ONCE is rather newer macro.
So your autoconf doesn't know about it.
Update the version of autoconf and try again:

       touch configure.ac; make configure; ./configure;

About my environment:

    [EMAIL PROTECTED] ltp-git]$  autoconf  --version
    autoconf (GNU Autoconf) 2.61

We should add AC_PREREQ to our configure.ac or ltp-signalfd.m4.
But I'm not sure which VERSION we specify.

     -- Macro: AC_PREREQ (VERSION)
         Ensure that a recent enough version of Autoconf is being used.  If
         the version of Autoconf being used to create `configure' is
         earlier than VERSION, print an error message to the standard error
         output and exit with failure (exit status is 63).  For example:

              AC_PREREQ([2.61])

         This macro is the only macro that may be used before `AC_INIT', but
         for consistency, you are invited not to do so.

Masatake YAMATO

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to