]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Simplify value of INSTALL (always 'cp').
authorGuido van Rossum <guido@python.org>
Fri, 19 Aug 1994 15:33:54 +0000 (15:33 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 19 Aug 1994 15:33:54 +0000 (15:33 +0000)
Pass value of OPT from configure environment to Makefile.
Add check for limits.h.
Use <directory>/libreadline.a instead of -lreadline.

Makefile.in
config.h.in
configure.in

index 66d05ec801e4f3950e05b659c07419baf1bd5142..04f7a47fdb2c9a7e11e58b056dde718d3fd44124 100644 (file)
@@ -51,7 +51,7 @@ SHELL=                /bin/sh
 WITH=          
 
 # Compiler options passed to subordinate makes
-OPT=           -O
+OPT=           @OPT@
 
 # Subdirectories where to run make recursively
 SUBDIRS=       Parser Objects Python Modules
index ff6490e2ce8eda589cdeaa7867e13bd94a744577..a3fc5062cdfdae456ce9c89b0adff2edbcd8bdd0 100644 (file)
 /* Define if you have the <fcntl.h> header file.  */
 #undef HAVE_FCNTL_H
 
+/* Define if you have the <limits.h> header file.  */
+#undef HAVE_LIMITS_H
+
 /* Define if you have the <signal.h> header file.  */
 #undef HAVE_SIGNAL_H
 
index 6eb0ec80904a8409026988d25d378bad98aef63d..67ae07a0841c1f13a6a819ad2e8fe84b7866185a 100644 (file)
@@ -17,10 +17,19 @@ AC_WITH(gcc, [
        esac
        CC=$withval])
 AC_PROG_CC
-AC_PROG_INSTALL
 AC_PROG_RANLIB
 AC_SUBST(AR)
 AC_PROGRAMS_CHECK(AR, ar aal, ar)
+AC_SUBST(INSTALL)
+# Install just never works :-(
+if test -z "$INSTALL"
+then INSTALL=cp
+fi
+AC_SUBST(OPT)
+# Optimizer/debugger flags passed between Makefiles
+if test -z "$OPT"
+then OPT=-O
+fi
 
 # checks for UNIX variants that set C preprocessor variables
 AC_AIX
@@ -62,14 +71,13 @@ AC_HAVE_LIBRARY(nsl)
 
 AC_CHECKING(for --with-readline)
 AC_WITH(readline, [AC_DEFINE(WITH_READLINE)
-if test -d "$withval"
-then LIBS="$LIBS -L$withval"
-else AC_ERROR(proper usage is --with-readline=DIRECTORY)
+if test ! -d "$withval"
+then AC_ERROR(proper usage is --with-readline=DIRECTORY)
 fi
 termcap=
 AC_HAVE_LIBRARY(termcap, [termcap=termcap], [AC_HAVE_LIBRARY(termlib, [termcap=termlib])])
 if test ! -z "$termcap"
-then LIBS="$LIBS -lreadline"
+then LIBS="$LIBS $withval/libreadline.a"
      # Avoid possible conflict between shared libraries termcap and gl
      # on IRIX 5: both contain a routine called clear.
      if test -f /usr/lib/lib$termcap.a