More tweaks. Actually managed to get static libs compiled via ./configure; make..using separate objdir,of course. unlabeled-1.1.2
authorcls%seawood.org
Wed, 23 Jun 1999 09:57:55 +0000
branchunlabeled-1.1.2
changeset 671 3759696b5234d54b324bfea4fb1cb76370d5f380
parent 664 60c21900c2247f15c6805c866ab9ef970f00a58b
child 680 8d3c721ae3cf391eb1baac3ce0766149e34577ce
push idunknown
push userunknown
push dateunknown
More tweaks. Actually managed to get static libs compiled via ./configure; make..using separate objdir,of course.
configure.in
--- a/configure.in
+++ b/configure.in
@@ -51,17 +51,19 @@ AC_ARG_ENABLE(ipv6,
 
 dnl Checks for programs.
 AC_PROG_CC
 AC_PROG_CXX
 AC_PROG_CPP
 AC_PROG_CXXCPP
 AC_PROG_INSTALL
 AC_PROG_LN_S
+AC_PROG_RANLIB
 AC_PATH_PROGS(PERL, perl5 perl, :)
+AC_PATH_PROGS(AR, ar, :)
 
 if test "$cross_compiling" = "no"; then
     if test "$HOSTCC" = ""; then
 	HOSTCC=$CC
     fi
     if test "$HOSTCXX" = ""; then
 	HOSTCXX=$CXX
     fi
@@ -85,16 +87,17 @@ case "$host" in
 
 esac
 
 case "$target" in
 *-linux*)
     MDCPUCFG_H=_linux.cfg
     PR_MD_CSRCS=linux.c
     PR_MD_ASFILES=
+    PR_MD_ARCH_DIR=unix
     if test "$USE_PTHREADS" = 1 ; then
 	CFLAGS="$CFLAGS -D_REENTRANT"
     else
 	CFLAGS="$CFLAGS -D_PR_LOCAL_THREADS_ONLY"
     fi
     ;;
 
 *-mingw*)
@@ -190,18 +193,22 @@ AC_SUBST(HOSTCXXFLAGS)
 
 AC_SUBST(MDCPUCFG_H)
 AC_SUBST(USE_PTHREADS)
 AC_SUBST(USE_BTHREADS)
 AC_SUBST(USE_CPLUS)
 AC_SUBST(USE_IPV6)
 AC_SUBST(PR_MD_CSRCS)
 AC_SUBST(PR_MD_ASFILES)
+AC_SUBST(PR_MD_ARCH_DIR)
 
 AC_SUBST(DEFS)
+AC_SUBST(AR)
+AC_SUBST(RANLIB)
+AC_SUBST(PERL)
 
 AC_OUTPUT(
 Makefile 
 config/Makefile
 config/autoconf.mk
 lib/Makefile 
 lib/ds/Makefile 
 lib/libc/Makefile