diff --git a/libgloss/csky/configure.ac b/libgloss/csky/configure.ac index e24bd7d13..4b0baaeee 100644 --- a/libgloss/csky/configure.ac +++ b/libgloss/csky/configure.ac @@ -54,13 +54,13 @@ dnl an executable or not. dnl saved_LDFLAGS="$LDFLAGS" LDFLAGS="-nostdlib -e main" -AC_PREPROC_IFELSE([#ifndef __mcoldfire__ +AC_PREPROC_IFELSE([AC_LANG_PROGRAM([#ifndef __mcoldfire__ #error we are not coldfire - #endif], + #endif])], DO="cf",) -AC_PREPROC_IFELSE([#ifndef __mfido__ +AC_PREPROC_IFELSE([AC_LANG_PROGRAM([#ifndef __mfido__ #error we are not fido - #endif], + #endif])], DO="fido",) LDFLAGS=$saved_LDFLAGS AC_MSG_RESULT($DO) diff --git a/libgloss/m68k/configure.ac b/libgloss/m68k/configure.ac index 0ec586091..34ea86a73 100644 --- a/libgloss/m68k/configure.ac +++ b/libgloss/m68k/configure.ac @@ -54,13 +54,13 @@ dnl an executable or not. dnl saved_LDFLAGS="$LDFLAGS" LDFLAGS="-nostdlib -e main" -AC_PREPROC_IFELSE([#ifndef __mcoldfire__ +AC_PREPROC_IFELSE([AC_LANG_PROGRAM([#ifndef __mcoldfire__ #error we are not coldfire - #endif], + #endif])], DO="cf",) -AC_PREPROC_IFELSE([#ifndef __mfido__ +AC_PREPROC_IFELSE([AC_LANG_PROGRAM([#ifndef __mfido__ #error we are not fido - #endif], + #endif])], DO="fido",) LDFLAGS=$saved_LDFLAGS AC_MSG_RESULT($DO)