diff options
Diffstat (limited to 'contrib/ntp/sntp/m4/ntp_prog_cc.m4')
-rw-r--r-- | contrib/ntp/sntp/m4/ntp_prog_cc.m4 | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/contrib/ntp/sntp/m4/ntp_prog_cc.m4 b/contrib/ntp/sntp/m4/ntp_prog_cc.m4 index c6b4e03..19df577 100644 --- a/contrib/ntp/sntp/m4/ntp_prog_cc.m4 +++ b/contrib/ntp/sntp/m4/ntp_prog_cc.m4 @@ -2,20 +2,21 @@ dnl ###################################################################### dnl NTP compiler basics dnl AC_DEFUN([NTP_PROG_CC], [ +case "$build" in + *-*-freebsd1?.*) + cclist=cc + ;; + *) + cclist="cc gcc" + ;; +esac + +dnl we need to check for cross compile tools for vxWorks here dnl must come before AC_PROG_CC or similar -AC_USE_SYSTEM_EXTENSIONS +#AC_USE_SYSTEM_EXTENSIONS -dnl we need to check for cross compile tools for vxWorks here -AC_PROG_CC -# Ralf Wildenhues: With per-target flags we need CC_C_O -# AM_PROG_CC_C_O supersets AC_PROG_CC_C_O -AM_PROG_CC_C_O -AC_PROG_GCC_TRADITIONAL -NTP_COMPILER -AC_C_BIGENDIAN -AC_C_VOLATILE -AC_PROG_CPP +AC_PROG_CC([$cclist]) ])dnl dnl ====================================================================== |