]> granicus.if.org Git - apache/commitdiff
Configure creates config.nice now containing your configure options.
authorSascha Schumann <sascha@apache.org>
Wed, 3 May 2000 02:02:54 +0000 (02:02 +0000)
committerSascha Schumann <sascha@apache.org>
Wed, 3 May 2000 02:02:54 +0000 (02:02 +0000)
Syntax: ./config.nice [--more-options]

Obtained from: PHP

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85127 13f79535-47bb-0310-9956-ffa450edef68

acinclude.m4
configure.in

index fdd8c6a58b72dce9706d9fe4b747fbde62970f9c..8482f222cf1b8942502a6f19831a158a5ac4a3a3 100644 (file)
@@ -1,3 +1,19 @@
+AC_DEFUN(APACHE_CONFIG_NICE,[
+  rm -f $1
+  cat >$1<<EOF
+#! /bin/sh
+#
+# Created by configure
+
+EOF
+
+  for arg in [$]0 "[$]@"; do
+    echo "\"[$]arg\" \\" >> $1
+  done
+  echo '"[$]@"' >> $1
+  chmod +x $1
+])
 
 AC_DEFUN(APACHE_PASSTHRU,[
   unset ac_cv_pass_$1
index ca5ad57c9de1c4d83f8e857129bc9bf5de9a118a..b4c3633d361b7528c097f569c39db6437f098dbd 100644 (file)
@@ -20,6 +20,8 @@ dnl Absolute source/build directory
 abs_srcdir=`(cd $srcdir && pwd)`
 abs_builddir=`pwd`
 
+APACHE_CONFIG_NICE(config.nice)
+
 dnl If the source dir is not equal to the build dir, 
 dnl then we are running in VPATH mode.