This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
AC_CANONICAL_SYSTEM woes
- To: automake@gnu.org
- Subject: AC_CANONICAL_SYSTEM woes
- From: Feiyi Wang <fwang2@picard.mcnc.org>
- Date: Tue, 25 May 1999 23:26:37 -0400
- Organization: Advanced Networking Research, MCNC
Hi,
I am quite new with automake, please bear with me ...
o I have a simple configure.in, the first thing I want to do is check
system type, so I called AC_CANONICAL_SYSTEM like the following ...
AC_INIT(something)
AM_INIT_AUTOMAKE(common, 1.1)
AM_CONFIG_HEADER(config.h)
dnl Checks for system type
AC_CANONICAL_SYSTEM
but it always returns "configure.in:9: AC_ARG_PROGRAM was called before
AC_CANONICAL_SYSTEM", have no clue what does it mean?
o A related question is: if I want to deal with some source code with
"#ifdef LINUX...#include..." or "ifdef FREEBSD ...#include ...", and I
want to do run time checking of OS type, then compile it with different
setting, what is the best way? is AC_CANONICAL_SYSTEM the only way?
system info: autoconf 2.13, automake 1.4, Linux 5.1/FreeBSD, source
package is a "deep" one (all source code is in subdir).
Thanks for help
/Feiyi