From: Tom Yu Date: Wed, 12 Jun 1996 23:34:35 +0000 (+0000) Subject: * acgeneral.m4 (AC_OUTPUT_FILES): allow for multiple files in X-Git-Tag: krb5-1.0-beta7~365 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=15e47291414a0ec73dfd4183492a3b6a8a295da4;p=krb5.git * acgeneral.m4 (AC_OUTPUT_FILES): allow for multiple files in AC_OUTPUT; this is done via AC_OUTPUT(outfile[:infile1[+infile2[+infile3...]]]). The source files are concatenated and substituted over. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8341 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/util/autoconf/acgeneral.m4 b/src/util/autoconf/acgeneral.m4 index f2ac545cd..4e3d2a870 100644 --- a/src/util/autoconf/acgeneral.m4 +++ b/src/util/autoconf/acgeneral.m4 @@ -1987,7 +1987,19 @@ changequote([, ])dnl ])dnl echo creating "$ac_file" rm -f "$ac_file" - configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." + # allow for outfile[:infile1[+infile2[+infile3...]]] syntax + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}+" + ac_files_in= + for ac_file_name in $ac_file_in + do + ac_files_in="$ac_files_in $ac_given_srcdir/$ac_file_name" + done + IFS="$ac_save_ifs" + configure_input=`echo $ac_files_in | sed 's%/./%/%g +s% *./%%g +s% *%+%g +s%^%Generated automatically from % +s%$% by configure.%'` case "$ac_file" in *Makefile*) ac_comsub="1i\\ # $configure_input" ;; @@ -1999,7 +2011,7 @@ s%@srcdir@%$srcdir%g s%@top_srcdir@%$top_srcdir%g ifdef([AC_PROVIDE_AC_PROG_INSTALL], [s%@INSTALL@%$INSTALL%g ])dnl -" -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file +" -f conftest.subs $ac_files_in > $ac_file dnl This would break Makefile dependencies. dnl if cmp -s $ac_file conftest.out 2>/dev/null; then dnl echo "$ac_file is unchanged"