]> granicus.if.org Git - php/commitdiff
Use install-sh (autoconf) script to install php. This automatically
authorSascha Schumann <sas@php.net>
Tue, 21 Sep 1999 08:37:27 +0000 (08:37 +0000)
committerSascha Schumann <sas@php.net>
Tue, 21 Sep 1999 08:37:27 +0000 (08:37 +0000)
    creates the bindir path, so that the effect described in #2304 disappears.

configure.in.in

index 11791d5994f458f14f815fc7b509d1f39160c905..709e43f3bc99b8a4891e017863ec68e0ecc4d67d 100644 (file)
@@ -560,13 +560,16 @@ AC_ARG_WITH(apache,
        else
          AC_MSG_RESULT(no)
          BINNAME=php
-         INSTALL_IT="cp $BINNAME \$(bindir)"
        fi
 ],[
        AC_MSG_RESULT(no)
        BINNAME=php
-       INSTALL_IT="cp $BINNAME \$(bindir)"
 ])
+
+if test "$BINNAME" = "php" ; then
+  INSTALL_IT="\$(SHELL) \$(srcdir)/install-sh -m 0755 $BINNAME \$(bindir)/$BINNAME"
+fi
+
 INCLUDES="$INCLUDES $APACHE_INCLUDE"
 dnl## AC_SUBST(APACHE_INCLUDE)
 AC_SUBST(APACHE_TARGET)