[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: confdefs.h not being included by AC_LANG_SOURCE()
From: |
Brian J. Murrell |
Subject: |
Re: confdefs.h not being included by AC_LANG_SOURCE() |
Date: |
Mon, 01 Mar 2010 17:03:26 -0500 |
On Sun, 2010-02-28 at 10:25 +0100, Ralf Wildenhues wrote:
> * Ralf Wildenhues wrote on Sat, Feb 20, 2010 at 10:57:04AM CET:
> > * Brian J. Murrell wrote on Thu, Feb 18, 2010 at 07:15:08PM CET:
> > > I am finding that the use of AC_LANG_SOURCE() is having different
> > > results on autoconf 2.64 vs. 2.59. On 2.59 it seems to have been
> > > including confdefs.h into generate programs but in 2.64 this seems to no
> > > longer be the case.
> >
> > Looks like a regression to me, from v2.63-153-g8e27cc7.
>
> Wait a moment. I can't reproduce this.
Oh? That's good news, I guess. :-)
I'm trying to build the smallest reproduction case I can and
unfortunately am running up against my autoconf ignorance.
I have a small test so far. It's certainly not complete but I am trying
to build it up gradually so as to include only what I need to reproduce
the problem:
----------
AC_INIT([pkg], [1.0])
#
# LB_LINUX_COMPILE_IFELSE
#
# like AC_COMPILE_IFELSE
#
AC_DEFUN([LB_LINUX_COMPILE_IFELSE],
[m4_ifvaln([$1], [LB_LINUX_CONFTEST([$1])])dnl
rm -f build/conftest.o build/conftest.mod.c build/conftest.ko
AS_IF([AC_TRY_COMMAND(cp conftest.c build && make -d [$2] ${LD:+"LD=$LD"}
CC="$CC" -f $PWD/build/Makefile LUSTRE_LINUX_CONFIG=$LINUX_CONFIG
LINUXINCLUDE="$EXTRA_LNET_INCLUDE -I$LINUX/arch/`uname -m|sed -e
's/ppc.*/powerpc/' -e 's/x86_64/x86/' -e 's/i.86/x86/'`/include
-I$LINUX/include -I$LINUX_OBJ/include -I$LINUX_OBJ/include2 -include
include/linux/autoconf.h" -o tmp_include_depends -o scripts -o
include/config/MARKER -C $LINUX_OBJ
EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM
$MODULE_TARGET=$PWD/build) >/dev/null && AC_TRY_COMMAND([$3])],
[$4],
[_AC_MSG_LOG_CONFTEST
m4_ifvaln([$5],[$5])dnl])
rm -f build/conftest.o build/conftest.mod.c build/conftest.mod.o
build/conftest.ko m4_ifval([$1], [build/conftest.c conftest.c])[]dnl
])
LB_LINUX_COMPILE_IFELSE([AC_LANG_SOURCE([[#include <linux/thread_info.h>
#if THREAD_SIZE < 8192
#error "stack size < 8192"
#endif
]],[],[echo foo])])
---------
As you can see it's similar to your test case but when I try to autoconf
it I get:
$ autoconf
configure.ac:18: error: possibly undefined macro: AC_LANG_SOURCE
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
Your test case autoconf's just fine.
Any idea what the problem is here?
b.
signature.asc
Description: This is a digitally signed message part
- Re: confdefs.h not being included by AC_LANG_SOURCE(),
Brian J. Murrell <=
- Re: confdefs.h not being included by AC_LANG_SOURCE(), Ralf Wildenhues, 2010/03/02
- Re: confdefs.h not being included by AC_LANG_SOURCE(), Ralf Wildenhues, 2010/03/02
- Re: confdefs.h not being included by AC_LANG_SOURCE(), Brian J. Murrell, 2010/03/02
- Re: confdefs.h not being included by AC_LANG_SOURCE(), Ralf Wildenhues, 2010/03/02
- Re: confdefs.h not being included by AC_LANG_SOURCE(), Brian J. Murrell, 2010/03/02
- Re: confdefs.h not being included by AC_LANG_SOURCE(), Eric Blake, 2010/03/02
- Re: confdefs.h not being included by AC_LANG_SOURCE(), Brian J. Murrell, 2010/03/02
- Re: confdefs.h not being included by AC_LANG_SOURCE(), Ralf Wildenhues, 2010/03/03