2010-08-19 06:01:43 +00:00
|
|
|
dnl silence automake about .r files
|
|
|
|
F77=touch
|
|
|
|
AC_SUBST(F77)
|
|
|
|
|
|
|
|
AC_ARG_WITH(cpp,
|
|
|
|
[ --with-cpp=CPP how qfcc should invoke cpp],
|
|
|
|
cpp_name="$withval", cpp_name=auto
|
|
|
|
)
|
|
|
|
if test "x$cpp_name" != xauto; then
|
|
|
|
CPP_NAME="$cpp_name"
|
|
|
|
else
|
|
|
|
CPP_NAME="cpp %d -o %o %i"
|
|
|
|
case "$host_os" in
|
|
|
|
*freebsd*)
|
|
|
|
CPP_NAME="cpp %d %i %o"
|
|
|
|
;;
|
2011-05-28 12:41:08 +00:00
|
|
|
*openbsd*)
|
|
|
|
# /usr/bin/cpp is a wrapper script to /usr/libexec/cpp.
|
|
|
|
# It parses incorrectly the options needed, so call the
|
|
|
|
# binary directly.
|
|
|
|
CPP_NAME="/usr/libexec/cpp %d -o %o %i"
|
|
|
|
;;
|
2010-08-19 06:01:43 +00:00
|
|
|
*qnx*)
|
|
|
|
CPP_NAME="gcc -E -x c++ %d -o %o %i"
|
|
|
|
;;
|
|
|
|
*darwin*)
|
|
|
|
CPP_NAME="/usr/libexec/gcc/darwin/`/usr/bin/arch`/default/cpp %d -o %o %i"
|
|
|
|
;;
|
|
|
|
*bsd*)
|
|
|
|
touch conftest.c
|
|
|
|
CPP_NAME="`(f=\`$CC -v -E -Dfoo conftest.c -o conftest.i 2>&1 | grep -e -Dfoo\`; set $f; echo "$1")` %d %i %o"
|
|
|
|
rm -f conftest.[ci]
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_DEFINE_UNQUOTED(PATH_SEPARATOR, '/',
|
|
|
|
[Define this to your operating system path separator character])
|
|
|
|
AC_DEFINE_UNQUOTED(CPP_NAME, "$CPP_NAME",
|
|
|
|
[Define this to the command line for the C preprocessor])
|
2010-12-24 10:39:12 +00:00
|
|
|
eval expanded_libdir="${libdir}"
|
2010-08-19 06:01:43 +00:00
|
|
|
eval expanded_libdir="${expanded_libdir}"
|
2010-12-24 10:39:12 +00:00
|
|
|
AC_DEFINE_UNQUOTED(QFCC_INCLUDE_PATH, "${expanded_libdir}/qfcc/include",
|
|
|
|
[Define this to where qfcc should look for header files])
|
|
|
|
AC_DEFINE_UNQUOTED(QFCC_LIB_PATH, "${expanded_libdir}/qfcc/lib",
|
2010-08-19 06:01:43 +00:00
|
|
|
[Define this to where qfcc should look for lib files])
|