]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Merge pogo.udel.edu:/pogo/users/stenn/ntp-dev
authorHarlan Stenn <stenn@ntp.org>
Sat, 5 Mar 2005 06:53:17 +0000 (01:53 -0500)
committerHarlan Stenn <stenn@ntp.org>
Sat, 5 Mar 2005 06:53:17 +0000 (01:53 -0500)
into pogo.udel.edu:/pogo/users/stenn/ntp-dev-ag

bk: 4229575dIec8-D-bTJGaZ58O5MwvOg

1  2 
configure.ac
ntpdc/Makefile.am

diff --cc configure.ac
index eea308636873c11f9749231967b2085ba8ea4892,4bbdf33d0f2ce8b6dd1fa65a3d26521f7c0ab281..066318da7c5f5a7ea73902e3eb8b5f9542619ac8
@@@ -49,43 -49,40 +49,76 @@@ case "$host" i
  esac
  
  AMU_OS_CFLAGS
 +LIBOPTS_CHECK
 +
 +AC_MSG_CHECKING(for bin subdirectory)
 +AC_ARG_WITH(binsubdir,
 +      AC_HELP_STRING([--with-binsubdir], [bin ={bin,sbin}]),
 +      use_binsubdir="$withval", use_binsubdir="bin")
 +
 +case "$use_binsubdir" in
 + bin)
 +    ;;
 + sbin)
 +    ;;
 + *)
 +    AC_MSG_ERROR([<$use_binsubdir> is illegal - must be "bin" or "sbin"])
 +    ;;
 +esac
 +AC_MSG_RESULT($use_binsubdir)
 +BINSUBDIR=$use_binsubdir
 +AC_SUBST(BINSUBDIR)
 +
 +AC_MSG_CHECKING(if we want to use arlib)
 +AC_ARG_WITH(arlib,
 +      AC_HELP_STRING([--with-arlib], [- Compile the async resolver library?]),
 +      [ans=$withval], [ans=no])
 +AC_MSG_RESULT($ans)
 +
 +if test -d $srcdir/arlib
 +then
 +    case "$ans" in
 +     yes)
 +      ARLIB_DIR=arlib
 +      AC_CONFIG_SUBDIRS(arlib)
 +      ;;
 +    esac
 +fi
 +AC_SUBST(ARLIB_DIR)
  
+ AC_MSG_CHECKING(for bin subdirectory)
+ AC_ARG_WITH(binsubdir,
+       AC_HELP_STRING([--with-binsubdir], [bin ={bin,sbin}]),
+       use_binsubdir="$withval", use_binsubdir="bin")
+ case "$use_binsubdir" in
+  bin)
+     ;;
+  sbin)
+     ;;
+  *)
+     AC_MSG_ERROR([<$use_binsubdir> is illegal - must be "bin" or "sbin"])
+     ;;
+ esac
+ AC_MSG_RESULT($use_binsubdir)
+ BINSUBDIR=$use_binsubdir
+ AC_SUBST(BINSUBDIR)
+ if test -d $srcdir/arlib
+ then
+     AC_ARG_WITH(arlib,
+       AC_HELP_STRING([--with-arlib], [- Compile the async resolver library?]),
+     [ans=$withval], [ans=no])
+     case "$ans" in
+      yes)
+       ARLIB_DIR=arlib
+       AC_CONFIG_SUBDIRS(arlib)
+       ;;
+     esac
+ fi
+ AC_SUBST(ARLIB_DIR)
  AC_ARG_WITH(rpath,
        AC_HELP_STRING([--without-rpath], [s Disable auto-added -R linker paths]),
  [ans=$withval], [ans=x])
index d0010af716da663eca175d31696a82f59b56a776,c6336a853dabb6d3bcac8001123595daf990ed33..ee585ed38d92f6e4def73555509b44a120a09ba8
@@@ -4,41 -4,20 +4,36 @@@ bindir=               ${exec_prefix}/${BINSUBDIR
  bin_PROGRAMS= ntpdc
  EXTRA_PROGRAMS=       ntpdc-layout
  EXTRA_DATA=   check-layout
- BUILT_SOURCES=        maybe-layout
+ BUILT_SOURCES=        @MAKE_CHECK_LAYOUT@
 -AM_CPPFLAGS=  -I$(top_srcdir)/include
 +AM_CPPFLAGS=  -I$(top_srcdir)/include $(LIBOPTS_CFLAGS)
  # LDADD might need RESLIB and ADJLIB
 -ntpdc_LDADD=  version.o ../libntp/libntp.a @READLINE_LIBS@
 +ntpdc_LDADD=  version.o ../libntp/libntp.a @READLINE_LIBS@ $(LIBOPTS_LDADD)
  # ntpdc-layout doesn't need any additional libraries at all
  ntpdc_layout_LDADD=
  DISTCLEANFILES=       .version version.c
  CLEANFILES=   check-layout layout.here nl.c ntpdc-layout
  noinst_HEADERS=       ntpdc.h
 -EXTRA_DIST=   nl_in.c nl.pl layout.std
  ETAGS_ARGS=   Makefile.am
 +EXTRA_DIST=   nl_in.c nl.pl layout.std        \
 +              ntpdc-opts.def ntpdc.1 ntpdc-opts.texi ntpdc-opts.menu
 +BUILT_SOURCES+=       ntpdc-opts.c ntpdc-opts.h ntpdc.1 ntpdc-opts.texi       \
 +              ntpdc-opts.menu
 +man_MANS=     ntpdc.1
  
 -ntpdc_SOURCES = ntpdc.c ntpdc_ops.c
 +
 +ntpdc-opts.h: ntpdc-opts.c
 +ntpdc-opts.c: ntpdc-opts.def
 +      cd $(srcdir) && autogen ntpdc-opts.def
 +
 +ntpdc.1: ntpdc-opts.def
 +      cd $(srcdir) && autogen -Tagman1.tpl -bntpdc ntpdc-opts.def
 +
 +ntpdc-opts.texi ntpdc-opts.menu: ntpdc-opts.def
 +      cd $(srcdir) && autogen -L ${prefix}/share/autogen \
 +              -Taginfo.tpl -DLEVEL=section ntpdc-opts.def
 +
 +ntpdc_SOURCES = ntpdc.c ntpdc_ops.c ntpdc-opts.c ntpdc-opts.h
  
- maybe-layout:
-       @case "${PATH_PERL}" in \
-           /*) ${MAKE} check-layout ;; \
-       esac
  ntpdc-layout.o: nl.c
  
  layout.here: ntpdc-layout