diff options
author | neonloop | 2021-10-20 14:54:27 +0000 |
---|---|---|
committer | neonloop | 2021-10-20 14:54:27 +0000 |
commit | ea1947ffcc606d757357398b24e74a3f4ecefa07 (patch) | |
tree | 2031b8d4fc4c61063c710a7148378f57e662efbd /tools/moddesc/configure.ac | |
download | bennugd-main.tar.gz bennugd-main.tar.bz2 bennugd-main.zip |
Initial commit from steward-fu releasemain
Diffstat (limited to 'tools/moddesc/configure.ac')
-rw-r--r-- | tools/moddesc/configure.ac | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/tools/moddesc/configure.ac b/tools/moddesc/configure.ac new file mode 100644 index 0000000..ecb929e --- /dev/null +++ b/tools/moddesc/configure.ac @@ -0,0 +1,67 @@ +# -*- Autoconf -*- +# Process this file with autoconf to produce a configure script. + +#AC_PREREQ(2.56) +AC_INIT(moddesc, 1.0) + +PKG_PROG_PKG_CONFIG() + +AC_CONFIG_SRCDIR([moddesc.c]) + +AC_CANONICAL_SYSTEM + +AM_INIT_AUTOMAKE + +# Checks for programs. +AC_PROG_CC +AC_PROG_MAKE_SET + +AC_DISABLE_STATIC +AC_LIBTOOL_DLOPEN + +AM_PROG_CC_C_O + +AM_MAINTAINER_MODE + +LT_INIT + +AC_CONFIG_MACRO_DIR([m4]) + +echo "You Machine: ${target_cpu} ${target_os}" + +AC_ARG_WITH(bennu-prefix,[ --with-bennu-prefix=PFX Prefix where Bennu is installed (optional)],bennu_prefix="$withval", bennu_prefix="`pwd`/../../core") + +case "$target_os" in + mingw32|mingw32msvc) + CFLAGS+=" -DWIN32 -D_WIN32 " + ;; + + linux-gnu*) + case "$target_cpu" in + i*86*) + CFLAGS+=" -Wall -m32 -DTARGET_LINUX" + LDFLAGS+=" -lc -ldl -m32" + ;; + + *) + CFLAGS+=" -Wall -DTARGET_LINUX" + LDFLAGS+=" -lc -ldl" + ;; + + esac + ;; + +esac + +COMMON_CFLAGS+="$CFLAGS -I${bennu_prefix}/include" +COMMON_LDFLAGS+="$LDFLAGS" + +# Checks for header files. +AC_HEADER_STDC +AC_CHECK_HEADERS([stdlib.h]) + +AC_SUBST(COMMON_CFLAGS) +AC_SUBST(COMMON_LDFLAGS) + +AC_CONFIG_FILES([Makefile]) +AC_OUTPUT |