diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2014-01-26 17:53:52 +0400 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2014-01-26 17:53:52 +0400 |
commit | 91300b65ffc4a288b9855727d4330f6c92bcf3ff (patch) | |
tree | e0f2da04d62288043400e99d09221260afbdb971 /configure.ac | |
parent | ff4fe416ab9362c6ce5c7d54033bb9bd7e99fb86 (diff) | |
download | libpcidb-91300b65ffc4a288b9855727d4330f6c92bcf3ff.tar.gz |
Autotoolized versionupstream/1.0
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..f5583f0 --- /dev/null +++ b/configure.ac @@ -0,0 +1,28 @@ +# -*- Autoconf -*- +# Process this file with autoconf to produce a configure script. + +AC_PREREQ([2.69]) +AC_INIT([libpcidb], [1.0], [pashev.igor@gmail.com]) +AC_CONFIG_MACRO_DIR([m4]) +AC_CONFIG_SRCDIR([usr/src/lib/libpcidb/common/pcidb.c]) +AM_INIT_AUTOMAKE([foreign dist-xz subdir-objects]) + + +# Checks for programs. +AC_PROG_CC_C99 +LT_INIT + +AC_MSG_CHECKING([how to pass version script to the linker ($LD)]) +VERSION_SCRIPT_FLAGS=none +if $LD --help 2>&1 | grep "version-script" >/dev/null 2>/dev/null; then + VERSION_SCRIPT_FLAGS=-Wl,--version-script= +elif $LD --help 2>&1 | grep "M mapfile" >/dev/null 2>/dev/null; then + VERSION_SCRIPT_FLAGS="-Wl,-M -Wl," +fi +AC_MSG_RESULT([$VERSION_SCRIPT_FLAGS]) +AC_SUBST(VERSION_SCRIPT_FLAGS) +AM_CONDITIONAL([USE_VERSION_SCRIPT], [test "$VERSION_SCRIPT_FLAGS" != none]) + +AC_CONFIG_FILES([Makefile]) +AC_OUTPUT + |