diff options
author | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2006-01-07 17:19:10 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2006-01-07 17:19:10 +0000 |
commit | a29caad0be21fc475039ab06ad2dc6fd1b6ebc8f (patch) | |
tree | 9e71dae70a00d3c740c853324ef068256aaaee4f /src | |
parent | 0b3b86e1b0c4d164fd85b5437ba4148acfbdd564 (diff) |
use AC_CHECK_CFLAGS to check for -fPIC and -mms-bitfields
svn path=/trunk/externals/zexy/; revision=4375
Diffstat (limited to 'src')
-rw-r--r-- | src/configure.ac | 28 |
1 files changed, 2 insertions, 26 deletions
diff --git a/src/configure.ac b/src/configure.ac index d2781f9..d7e3bef 100644 --- a/src/configure.ac +++ b/src/configure.ac @@ -122,34 +122,10 @@ AC_CHECK_FUNCS(select socket strerror) dnl check for "-mms-bitfields" cflag dnl why is there no generic compiler-check for a given flag ? dnl it would make things so easy: AC_CHECK_FLAG([-mms-bitfields],,) -AC_MSG_CHECKING("ms-bitfields") -cat > conftest.c << EOF -int main(){ - return 0; -} -EOF -if ${CC} ${INCLUDES} ${DFLAGS} -o conftest.o conftest.c ${CFLAGS} -mms-bitfields > /dev/null 2>&1 -then - echo "yes" - CFLAGS="${CFLAGS} -mms-bitfields" -else - echo "no" -fi +AC_CHECK_CFLAGS([-mms-bitfields]) if test "x$enable_PIC" != "xno"; then -AC_MSG_CHECKING("PIC") -cat > conftest.c << EOF -int main(){ - return 0; -} -EOF -if ${CC} ${INCLUDES} ${DFLAGS} -o conftest.o conftest.c ${CFLAGS} -fPIC > /dev/null 2>&1 -then - echo "yes" - CFLAGS="${CFLAGS} -fPIC" -else - echo "no" -fi + AC_CHECK_CFLAGS([-fPIC]) fi |