]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Merge shiny.ad.hartbrothers.com:C:/ntp/ntp-stable-1157-1158
authorDave Hart <hart@ntp.org>
Wed, 15 Apr 2009 01:44:05 +0000 (01:44 +0000)
committerDave Hart <hart@ntp.org>
Wed, 15 Apr 2009 01:44:05 +0000 (01:44 +0000)
into  shiny.ad.hartbrothers.com:C:/ntp/ntp-dev-1152-1153-1157-1158

bk: 49e53be5NdkZ58geGxhxTmlyuLEb_Q

1  2 
configure.ac

diff --cc configure.ac
index db5b744562b68ed506ae5a3ba1e4abb328726824,4d7744c28327a9bd08dc5a97ffbec2f766f6f27f..123de5938be08c4a65016f5902ea6f3e5b727161
@@@ -30,13 -30,11 +30,15 @@@ AC_DISABLE_SHARE
  
  dnl  we need to check for cross compile tools for vxWorks here
  AC_PROG_CC
 +AC_PROG_CC_STDC
 +dnl AC_PROG_CC_C89
 +# We should make sure CC is *some* version of ANSI.
  # Ralf Wildenhues: With per-target flags we need CC_C_O
- AC_PROG_CC_C_O
+ # AM_PROG_CC_C_O supersets AC_PROG_CC_C_O
+ AM_PROG_CC_C_O
+ AC_PROG_CC_STDC
  AC_PROG_CPP
 +AC_PROG_YACC
  
  # HMS: These need to be moved to AM_CPPFLAGS and/or AM_CFLAGS
  case "$host" in
@@@ -368,16 -339,41 +370,15 @@@ case "$host" i
      ;;
  esac
  
- AC_CHECK_FUNC(gethostent, ,
-   AC_CHECK_LIB(nsl, gethostent, , , $libxnet -lsocket))
- AC_CHECK_FUNC(openlog, , 
-   AC_CHECK_LIB(gen, openlog, , 
-   AC_CHECK_LIB(syslog, openlog, , , $libxnet -lsocket)))
- AC_CHECK_LIB(md5, MD5Init, , 
-   AC_CHECK_LIB(md, MD5Init))
+ AC_CHECK_FUNC([gethostent], ,
+   AC_SEARCH_LIBS([gethostent], [nsl], , , [$libxnet -lsocket]))
+ AC_CHECK_FUNC([openlog], , 
+   AC_SEARCH_LIBS([openlog], [gen], , 
+   AC_SEARCH_LIBS([openlog], [syslog], , , [$libxnet -lsocket])))
+ AC_SEARCH_LIBS([MD5Init], [md5 md])
  AC_CHECK_FUNCS(MD5Init)
  
 -# following block becomes on 4.2.5: NTP_LINEEDITLIBS
 -dnl HMS: What a hack...
 -AC_CHECK_HEADERS(readline/history.h readline/readline.h)
 -case "$ac_cv_header_readline_history_h$ac_cv_header_readline_readline_h" in
 - *no*) ;;
 - *) save_LIBS=$LIBS
 -    LIBS=
 -    # Ralf Wildenhues: either unset ... or cache READLINE_LIBS
 -    unset ac_cv_lib_readline_readline
 -    AC_CHECK_LIB(readline, readline, ,
 -     AC_MSG_NOTICE([Trying again with -lcurses])
 -     unset ac_cv_lib_readline_readline
 -     AC_CHECK_LIB(readline, readline,
 -      LIBS="-lreadline -lcurses $LIBS"
 -      AC_DEFINE(HAVE_LIBREADLINE)
 -      AC_DEFINE(HAVE_LIBCURSES, , [Do we have the curses library?]),
 -      AC_CHECK_LIB(edit, readline,
 -       LIBS="-ledit -lcurses"
 -       AC_DEFINE(HAVE_LIBEDIT, , [Do we have the edit library?])
 -       AC_DEFINE(HAVE_LIBCURSES, , [Do we have the curses library?])
 -       , , -lcurses)
 -      , -lcurses))
 -    READLINE_LIBS=$LIBS
 -    AC_SUBST(READLINE_LIBS)
 -    LIBS=$save_LIBS
 -    ;;
 -esac
 +NTP_LINEEDITLIBS
  
  dnl Digital UNIX V4.0 and Solaris 7 have POSIX.1c functions in -lrt
  dnl Solaris 2.6 only has -lposix4; in Solaris 7, this is a symlink to -lrt,
@@@ -4488,12 -4453,6 +4488,7 @@@ AC_CONFIG_FILES(scripts/plot_summary,  [
  AC_CONFIG_FILES(scripts/summary,      [chmod +x scripts/summary])
  AC_CONFIG_FILES(util/Makefile)
  
- dnl  it is not safe to share configuration
- dnl  cache with sntp or gsoc_sntp as they use
- dnl  different headers in a different order
- dnl  and tests for different libraries.
- dnl 
- dnl AC_CONFIG_SUBDIRS(sntp)
- dnl AC_CONFIG_SUBDIRS(gsoc_sntp)
+ AC_CONFIG_SUBDIRS(sntp)
++AC_CONFIG_SUBDIRS(gsoc_sntp)
  
  AC_OUTPUT