]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Cleanup autoconf macro ordering/dependencies
authorHarlan Stenn <stenn@ntp.org>
Mon, 11 Apr 2011 05:39:36 +0000 (22:39 -0700)
committerHarlan Stenn <stenn@ntp.org>
Mon, 11 Apr 2011 05:39:36 +0000 (22:39 -0700)
bk: 4da29418DJs1CpD7SNa-3MgvVDCDKA

configure.ac
sntp/configure.ac
sntp/m4/ntp_libntp.m4
sntp/m4/ntp_prog_cc.m4 [new file with mode: 0644]

index 98b853f30fcd77e0e25622aec46444da888251e3..b86f2d8387370de8ef91649061ded9fee9bc2ea0 100644 (file)
@@ -63,6 +63,7 @@ ntp_parse_ok=${ntp_parse_ok=no}
 ntp_ripe_ncc_ok=${ntp_parse_ok=no}
 ntp_jupiter_ok=${ntp_jupiter_ok=no}
 
+NTP_PROG_CC
 AC_PROG_CPP
 AC_PROG_CXX
 AC_PROG_YACC
index fcf356a2a4dfc3ecba093e9193129afa98c3d6dd..af8d1be66d8cb9d29cec0b3303b533f255a0f5ad 100644 (file)
@@ -53,6 +53,7 @@ AC_DEFINE_UNQUOTED([STR_SYSTEM], "$host", [canonical system (cpu-vendor-os) of w
 AC_CONFIG_HEADER([config.h])
 dnl AC_ARG_PROGRAM
 
+NTP_PROG_CC
 NTP_LIBNTP
 
 AC_DISABLE_SHARED
index a9e3bcfb662849dd28a2de420896d8f6e33f06d3..952b14016f420fcda28b92c8fc39ae23c67e9848 100644 (file)
@@ -18,19 +18,8 @@ AC_SUBST([LDADD_LIBNTP])
 __LIBS=$LIBS
 LIBS=
 
-dnl must come before AC_PROG_CC or similar
-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
+dnl The contents of NTP_PROG_CC used to be here...
+
 AC_PROG_INSTALL
 
 NTP_BINDIR
diff --git a/sntp/m4/ntp_prog_cc.m4 b/sntp/m4/ntp_prog_cc.m4
new file mode 100644 (file)
index 0000000..c6b4e03
--- /dev/null
@@ -0,0 +1,21 @@
+dnl ######################################################################
+dnl NTP compiler basics
+dnl
+AC_DEFUN([NTP_PROG_CC], [
+
+dnl must come before AC_PROG_CC or similar
+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
+
+])dnl
+dnl ======================================================================