From 0e693d0b0e5f5fb9a57846285cf6bdf4df5dca70 Mon Sep 17 00:00:00 2001 From: "K. Richard Pixley" Date: Wed, 25 Mar 1992 07:49:53 +0000 Subject: [PATCH] pass site_option to recursions --- ChangeLog | 4 ++++ configure | 11 +++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index fe1fbabebb1..439ac12661d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Mon Mar 23 19:43:35 1992 K. Richard Pixley (rich@cygnus.com) + + * configure: pass down site_option during recursion. + Thu Mar 19 16:49:36 1992 Stu Grossman (grossman at cygnus.com) * Makefile.in (all.cross): Add .stmp-bfd .stmp-readline. diff --git a/configure b/configure index b670b527107..2eebca5bc02 100755 --- a/configure +++ b/configure @@ -67,6 +67,8 @@ progname= program_prefix= program_prefix_option= silent= +site= +site_option= site_makefile_frag= srcdir= srctrigger= @@ -107,7 +109,7 @@ do exec_prefix=${arg} exec_prefixoption="-exec_prefix=${exec_prefix}" next_exec_prefix= - elif [ -n "${next_site}" ] ; then site=${arg} ; next_site= + elif [ -n "${next_site}" ] ; then site=${arg} ; site_option=-site=${site} ; next_site= # remove any possible trailing slash from srcdir. See note below. elif [ -n "${next_srcdir}" ] ; then srcdir=`echo ${arg} | sed -e 's:/$::'` ; next_srcdir= elif [ -n "${next_program_prefix}" ] ; then @@ -181,6 +183,7 @@ do arguments=`echo ${arguments} | sed "s:${arg}::"` ;; -site=* | --site=* | --sit=* | --si=*) + site_option=${arg} site=`echo ${arg} | sed 's/^[-a-z]*=//'` ;; -site | --site | --sit) @@ -347,14 +350,14 @@ case "${srcdir}" in ".") ;; *) if [ -f ${srcdir}/config.status ] ; then - echo '***' Cannot configure for ${PWD} when ${srcdir}/config.status exists. 1>&2 + echo '***' Cannot configure here in \"${PWD}\" when \"${srcdir}\" is currently configured. 1>&2 exit 1 fi esac # default exec_prefix case "${exec_prefix}" in -"") exec_prefix="${prefix}" ;; +"") exec_prefix="$(prefix)" ;; *) ;; esac @@ -691,7 +694,7 @@ if [ -z "${norecursion}" -a -n "${configdirs}" ] ; then ### The recursion line is here. if ${recprog} -s ${host_alias} -target=${target_alias} \ ${verbose} ${prefixoption} ${tmpdiroption} ${exec_prefixoption} \ - ${srcdiroption} ${program_prefixoption} ; then + ${srcdiroption} ${program_prefixoption} ${site_option} ; then true else exit 1 -- 2.30.2