bug-autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: autoheader problem


From: Bobby Wintemberg
Subject: Re: autoheader problem
Date: Wed, 13 Jun 2001 17:23:11 -0400
User-agent: Mozilla/5.0 (X11; U; Linux 2.4.5 i586; en-US; rv:0.9) Gecko/20010522

Hello,

Sorry about the HTML post. I was in *cough* windows at the time using outlook express when I sent the e-mail. Didn't know HTML was on.

My configure.in is created by kdevelop. I did autoheader -d and looked at traces.sh. Here is what it said:

./aclocal.m4:549: error: m4_defn: undefined: _m4_divert_diversion
aclang.m4:173: AC_LANG_RESTORE is expanded from...
./aclocal.m4:549: the top level

I have no clue what that means.  Here is my configure.in:

dnl without this order in this file, autoconf will not work!
dnl the argument is a source file out of your sources. But
dnl acinclude.m4 makes the job for all programs ;-)
AC_INIT(acinclude.m4)

dnl enable the following if you want to use autoconf/automake
dnl framework from a certain directory (like kde-common)
dnl AC_CONFIG_AUX_DIR(admin)

AC_CANONICAL_SYSTEM
AC_ARG_PROGRAM

AM_INIT_AUTOMAKE(syndor3d,0.1)

AC_PREFIX_DEFAULT(/usr/local)
if test "x$prefix" = "xNONE"; then
 prefix=$ac_default_prefix
 ac_configure_args="$ac_configure_args --prefix $prefix"
fi

dnl without this order in this file, automake will be confused!
dnl
AM_CONFIG_HEADER(config.h)

dnl checks for programs.
dnl first check for c compiler
AC_CHECK_C_COMPILER

dnl create only shared libtool-libraries
AC_ENABLE_SHARED(yes)

dnl set the following to yes, if you want to create static
dnl libtool-libraries
AC_ENABLE_STATIC(no)

dnl create a working libtool-script
if test -z "$LIBTOOL"; then
 AC_LANG_SAVE
 AC_LANG_C
 AC_LIBTOOL_DLOPEN
 AM_PROG_LIBTOOL
 dnl LIBTOOL="$LIBTOOL --silent"
 dnl AC_SUBST(LIBTOOL)
 AC_LANG_RESTORE
 LIBTOOL_SHELL='/bin/sh ./libtool'
else
 LIBTOOL_SHELL=$LIBTOOL
fi

dnl check for presence of dynamic-loading-library functions
KDE_CHECK_LIBDL

dnl activate the following for some additional tests
dnl   (compat, crypt, socket, nsl, ...)
dnl KDE_MISC_TESTS

dnl add --with-extra-includes and --with-extra-libs switch to ./configure
dnl
AC_REQUIRE([KDE_CHECK_EXTRA_LIBS])
all_libraries="$all_libraries $USER_LDFLAGS"
all_includes="$all_includes $USER_INCLUDES"
AC_SUBST(all_includes)
AC_SUBST(all_libraries)

AC_SUBST(AUTODIRS)

dnl in this space add everything you want to check for
dnl examples are specific headers, libraries, etc.



dnl perform program name transformation
AC_ARG_PROGRAM

dnl add here all your Makefiles. These will be created by configure
AC_OUTPUT(Makefile src/Makefile src/docs/Makefile src/docs/en/Makefile include/Makefile )

Like I said, I have no clue what this means.

Thanks,
Bobby Wintemberg




reply via email to

[Prev in Thread] Current Thread [Next in Thread]