Collapse all of lib/kadm5's configure scripts into a single top-level
authorTheodore Tso <tytso@mit.edu>
Sat, 28 Feb 1998 03:42:34 +0000 (03:42 +0000)
committerTheodore Tso <tytso@mit.edu>
Sat, 28 Feb 1998 03:42:34 +0000 (03:42 +0000)
configure script.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10479 dc483132-0cff-0310-8789-dd5450dbe970

12 files changed:
src/lib/kadm5/ChangeLog
src/lib/kadm5/Makefile.in
src/lib/kadm5/clnt/ChangeLog
src/lib/kadm5/clnt/Makefile.in
src/lib/kadm5/clnt/configure.in [deleted file]
src/lib/kadm5/configure.in
src/lib/kadm5/srv/ChangeLog
src/lib/kadm5/srv/Makefile.in
src/lib/kadm5/srv/configure.in [deleted file]
src/lib/kadm5/unit-test/ChangeLog
src/lib/kadm5/unit-test/Makefile.in
src/lib/kadm5/unit-test/configure.in [deleted file]

index d8b3e485ed01dbb866a3e5c83510292744c8ef51..301bfbfab6f330f28ee8e10a5de86cf6b9ae566e 100644 (file)
@@ -1,3 +1,12 @@
+Fri Feb 27 22:30:41 1998  Theodore Ts'o  <tytso@rsts-11.mit.edu>
+
+       * configure.in: Move tests from all of kadm5's subdirectories into
+               this configure.in, and make it generate makefiles for all
+               of the subdirectories.
+
+       * Makefile.in: Add a LOCAL_SUBDIRS macro for all subdirectories in
+               the kadm5 library.
+
 Wed Feb 18 16:13:56 1998  Tom Yu  <tlyu@mit.edu>
 
        * Makefile.in: Remove trailing slash from thisconfigdir.  Fix up
index 58e1f8872da55903016a57999c0cc8e1ee7a9668..f7a1ed5314f6b21adc72b979948ae0e8b61febb1 100644 (file)
@@ -1,6 +1,7 @@
 thisconfigdir=.
 BUILDTOP=$(REL)$(U)$(S)$(U)
 CFLAGS = $(CCOPTS) $(DEFS)
+LOCAL_SUBDIRS = clnt srv unit-test
 
 ##DOSBUILDTOP = ..\..
 
index 4f320ee0351a8a3e9c1177d60e834c83f1d947f9..ac8ea2f6c581ea803c6436b6bc916591fd6f88ae 100644 (file)
@@ -1,3 +1,9 @@
+Fri Feb 27 22:32:16 1998  Theodore Ts'o  <tytso@rsts-11.mit.edu>
+
+       * Makefile.in: Changed thisconfigdir to point at the lib/kadm5
+               directory, since we've moved all of the configure.in
+               tests to the toplevel lib/kadm5 configure.in
+
 Wed Feb 18 16:14:27 1998  Tom Yu  <tlyu@mit.edu>
 
        * Makefile.in: Remove trailing slash from thisconfigdir.  Fix up
index bee2f1a2891be94ed58f49e66f4291ae2586cce9..bccc4b16e878f28cdfcdf50ce669c45274912b32 100644 (file)
@@ -1,4 +1,4 @@
-thisconfigdir=.
+thisconfigdir=./..
 BUILDTOP=$(REL)$(U)$(S)$(U)$(S)$(U)
 CFLAGS = $(CCOPTS) $(DEFS) -I$(BUILDTOP)/include/kadm5
 
diff --git a/src/lib/kadm5/clnt/configure.in b/src/lib/kadm5/clnt/configure.in
deleted file mode 100644 (file)
index 7594455..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-AC_INIT(client_rpc.c)
-CONFIG_RULES
-AC_PROG_ARCHIVE
-AC_PROG_ARCHIVE_ADD
-AC_PROG_RANLIB
-AC_PROG_INSTALL
-KRB5_BUILD_LIBOBJS
-KRB5_BUILD_LIBRARY_WITH_DEPS
-V5_AC_OUTPUT_MAKEFILE
index 67fb8e75930547362671b8e0bfb0c2a1ccb2abf4..1225a09694d0cb940558a08915cec581a017a87d 100644 (file)
@@ -1,6 +1,5 @@
 AC_INIT(configure.in)
 CONFIG_RULES
-AC_CONFIG_SUBDIRS(clnt srv unit-test)
 AC_PROG_ARCHIVE
 AC_PROG_ARCHIVE_ADD
 AC_PROG_RANLIB
@@ -9,5 +8,37 @@ AC_PROG_LEX
 AC_PROG_AWK
 AC_CHECK_HEADERS(syslog.h)
 AC_CHECK_FUNCS(openlog syslog closelog strftime vsprintf)
+KRB5_AC_REGEX_FUNCS
+dnl
+dnl AIX is unusual in that it wants all symbols resolved at link time
+dnl  Fortunately, it will allow us to link the kdb library now, even if
+dnl it is linked again later.
+AIX_DB_LIB=''
+case $krb5_cv_host in
+*-*-aix*)
+       AIX_DB_LIB="-ldb"
+       ;;
+esac
+AC_SUBST(AIX_DB_LIB)
+dnl
+AC_CANONICAL_HOST
+dnl The following are tests for the presence of programs required for testing 
+AC_CHECK_PROG(RUNTEST,runtest,runtest)
+AC_CHECK_PROG(PERL,perl,perl)
+AC_CHECK_FUNCS(srand48 srand srandom)
+AC_KRB5_TCL    
+if test "$PERL" = perl -a "$RUNTEST" = runtest -a "$TCL_LIBS" != ""; then
+       DO_TEST=ok
+fi
+AC_SUBST(DO_TEST) 
+dnl
 KRB5_BUILD_LIBOBJS
-V5_AC_OUTPUT_MAKEFILE
+KRB5_BUILD_LIBRARY_WITH_DEPS
+KRB5_BUILD_PROGRAM
+dnl
+K5_GEN_MAKEFILE(., libobj)
+K5_GEN_MAKEFILE(clnt, lib libobj)
+K5_GEN_MAKEFILE(srv, lib libobj)
+K5_GEN_MAKEFILE(unit-test)
+K5_AC_OUTPUT
+
index 7db0652b294d71091a688de3f6fe3d775a6958d2..d5d7d422ecf48b43c22956c3044109c09728cf26 100644 (file)
@@ -1,3 +1,13 @@
+Fri Feb 27 22:33:05 1998  Theodore Ts'o  <tytso@rsts-11.mit.edu>
+
+       * Makefile.in: Changed thisconfigdir to point at the lib/kadm5
+               directory, since we've moved all of the configure.in
+               tests to the toplevel lib/kadm5 configure.in.
+               Instead of adding @LIBS@ to the list of libraries which
+               should be linked as shared library dependencies, add
+               @GEN_LIB@ and @AIX_DB_LIB@ which will get expanded if
+               necessary. 
+
 Wed Feb 18 16:15:22 1998  Tom Yu  <tlyu@mit.edu>
 
        * Makefile.in: Remove trailing slash from thisconfigdir.  Fix up
index 3b2ae5a5983865ab53f796649d7b5372c01d072a..7cfa585d8f60173090ebd80c49d5dffb21c4ec1e 100644 (file)
@@ -1,4 +1,4 @@
-thisconfigdir=.
+thisconfigdir=./..
 BUILDTOP=$(REL)$(U)$(S)$(U)$(S)$(U)
 CFLAGS = $(CCOPTS) $(DEFS) -I$(BUILDTOP)/include/kadm5 @HESIOD_DEFS@
 
@@ -17,7 +17,7 @@ SHLIB_EXPDEPS=\
        $(TOPLIBD)/libcrypto$(SHLIBEXT) \
        $(TOPLIBD)/libcom_err$(SHLIBEXT) \
        $(TOPLIBD)/libdyn$(SHLIBEXT)
-SHLIB_EXPLIBS=-lgssrpc -lgssapi_krb5 -lkdb5  -lkrb5 -lcrypto -lcom_err -ldyn @LIBS@
+SHLIB_EXPLIBS=-lgssrpc -lgssapi_krb5 -lkdb5  -lkrb5 -lcrypto -lcom_err -ldyn @GEN_LIB@ @AIX_DB_LIB@
 SHLIB_DIRS=-L$(TOPLIBD)
 SHLIB_RDIRS=$(KRB5_LIBDIR)
 RELDIR=kadm5/srv
diff --git a/src/lib/kadm5/srv/configure.in b/src/lib/kadm5/srv/configure.in
deleted file mode 100644 (file)
index 6730797..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-AC_INIT(server_kdb.c)
-CONFIG_RULES
-AC_PROG_ARCHIVE
-AC_PROG_ARCHIVE_ADD
-AC_PROG_RANLIB
-AC_PROG_INSTALL
-AC_PROG_LEX
-AC_PROG_AWK
-
-save_LIBS="$LIBS"
-LIBS=-lgen
-AC_CHECK_FUNCS(compile step)
-if test "$ac_cv_func_compile" = true ; then
-       LIBS="$save_LIBS -lgen"
-else
-       LIBS="$save_LIBS"
-fi
-
-AC_CHECK_FUNCS(re_comp re_exec regcomp regexec)
-dnl AIX is unusual in that it wants all symbols resolved at link time
-dnl  Fortunately, it will allow us to link the kdb library now, even if
-dnl it is linked again later.
-case $krb5_cv_host in
-*-*-aix*)
-       LIBS="$LIBS -ldb"
-       ;;
-esac
-
-KRB5_BUILD_LIBOBJS
-KRB5_BUILD_LIBRARY_WITH_DEPS
-V5_AC_OUTPUT_MAKEFILE
index 1f42f2f93dc58e6be7c2e7d4331ba5fd739b1744..32929cc294ade4612260078e40bbf6d95ecfa704 100644 (file)
@@ -1,3 +1,9 @@
+Fri Feb 27 22:32:54 1998  Theodore Ts'o  <tytso@rsts-11.mit.edu>
+
+       * Makefile.in: Changed thisconfigdir to point at the lib/kadm5
+               directory, since we've moved all of the configure.in
+               tests to the toplevel lib/kadm5 configure.in
+
 Wed Feb 18 16:15:53 1998  Tom Yu  <tlyu@mit.edu>
 
        * Makefile.in: Remove trailing slash from thisconfigdir.  Fix up
index 3916cd11cfb7dbd88327dafe2383919742ae5f49..9b01d49c99c1bf64f05ab9c9b66a0677186a2cff 100644 (file)
@@ -1,4 +1,4 @@
-thisconfigdir=.
+thisconfigdir=./..
 BUILDTOP=$(REL)$(U)$(S)$(U)$(S)$(U)
 CFLAGS  =      $(CCOPTS) $(DEFS) $(LOCALINCLUDE) -DUSE_KADM5_API_VERSION=1
 PROG_LIBPATH=-L$(TOPLIBD)
diff --git a/src/lib/kadm5/unit-test/configure.in b/src/lib/kadm5/unit-test/configure.in
deleted file mode 100644 (file)
index d49a2bb..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-AC_INIT(init-test.c)
-CONFIG_RULES
-AC_CANONICAL_HOST
-dnl The following are tests for the presence of programs required for testing 
-AC_CHECK_PROG(RUNTEST,runtest,runtest)
-AC_CHECK_PROG(PERL,perl,perl)
-AC_CHECK_FUNCS(srand48 srand srandom)
-AC_KRB5_TCL    
-if test "$PERL" = perl -a "$RUNTEST" = runtest -a "$TCL_LIBS" != ""; then
-       DO_TEST=ok
-fi
-AC_SUBST(DO_TEST) 
-dnl
-KRB5_BUILD_PROGRAM
-V5_AC_OUTPUT_MAKEFILE