[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AC_CHECK_SIZEOF: cannot compute sizeof (int)
From: |
Harald Servat |
Subject: |
Re: AC_CHECK_SIZEOF: cannot compute sizeof (int) |
Date: |
Thu, 05 Apr 2007 08:28:09 +0200 |
User-agent: |
Thunderbird 1.5.0.7 (X11/20061027) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Stephane,
well, my humble suggestion would be that you only use
- -L/house/bortz/lib conftest.c -lpopt when needed. On our recent
"configure.ac" we did as follows (in a m4 macro):
- save a copy of LIBS, CFLAGS, LDFLAGS (and so on),
- check for any library (popt in your case), check if it works, and
store the directories and files in their proper popt_LIBS,
popt_LDFLAGS, popt_INCLUDES (and so on),
- store the original LIBS, CFLAGS, LDFLAGS...
This will lead you to use these popt_* values in your Makefile.am and
let your compile environment clean when running configure.
Regards,
Stephane Bortzmeyer wrote:
> I have a configure.ac which calls:
>
> AC_CHECK_SIZEOF(int)
>
> This fails on a machine (a FreeBSD 6.1-RELEASE / Itanium) with:
>
> checking size of int... configure: error: cannot compute sizeof (int)
>
> And config.log contains:
>
> configure:22234: cc -o conftest -g -O2 -I/house/bortz/include
> -L/house/bortz/lib conftest.c -lpopt -lm >&5
> configure:22237: $? = 0
> configure:22243: ./conftest
> /libexec/ld-elf.so.1: Shared object "libpopt.so.0" not found, required by
> "conftest"
>
> [libpopt.so.0 is in /house/bortz/lib]
>
> Indeed, I need popt so I passed --with-popt=$HOME to configure. The
> code compiled through libtool seems fine with it but autoconf's tests
> like SIZEOF does not go through libtool and are not executable unless
> I manually set LD_LIBRARY_PATH, which is inconvenient.
>
> Any idea?
>
>
> _______________________________________________
> Autoconf mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/autoconf
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (FreeBSD)
iD8DBQFGFJb5wMPeuqUCg9wRAuHEAJ42/a3/muG08V2MoYro0Ey+8lCUEwCfSXoJ
+Ow+9JIKzJZnxUoRa5/MSPM=
=CUbY
-----END PGP SIGNATURE-----