# Process this file with autoconf to produce a configure script, like so: # # aclocal -I .. -I ../config && autoconf && autoheader && automake AC_PREREQ(2.59) AC_INIT(libdetect, 1.0) AC_CONFIG_SRCDIR(detect.c) AC_CANONICAL_SYSTEM ACX_NONCANONICAL_TARGET AM_INIT_AUTOMAKE AC_MSG_CHECKING([for --enable-version-specific-runtime-libs]) AC_ARG_ENABLE(version-specific-runtime-libs, [ --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory ], [case "$enableval" in yes) version_specific_libs=yes ;; no) version_specific_libs=no ;; *) AC_MSG_ERROR([Unknown argument to enable/disable version-specific libs]);; esac], [version_specific_libs=no]) AC_MSG_RESULT($version_specific_libs) AM_MAINTAINER_MODE GCC_NO_EXECUTABLES AM_ENABLE_MULTILIB(, ..) target_alias=${target_alias-$host_alias} AC_SUBST(target_alias) AC_CONFIG_HEADERS(config.h) AC_LANG_C # The same as in boehm-gc and libstdc++. Have to borrow it from there. # We must force CC to /not/ be precious variables; otherwise # the wrong, non-multilib-adjusted value will be used in multilibs. # As a side effect, we have to subst CFLAGS ourselves. m4_rename([_AC_ARG_VAR_PRECIOUS],[real_PRECIOUS]) m4_define([_AC_ARG_VAR_PRECIOUS],[]) AC_PROG_CC m4_rename([real_PRECIOUS],[_AC_ARG_VAR_PRECIOUS]) AC_SUBST(CFLAGS) if test "x$GCC" != "xyes"; then AC_MSG_ERROR([libdetect must be built with GCC]) fi AC_PROG_CPP AC_MSG_CHECKING([whether symbol versioning is supported]) cat > conftest.map <