/[ascend]/trunk/base/unixAC213/configure
ViewVC logotype

Diff of /trunk/base/unixAC213/configure

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 71 by ben.allan, Thu Mar 3 07:19:05 2005 UTC revision 72 by johnpye, Fri Dec 2 14:27:44 2005 UTC
# Line 5900  if test ! "X$with_models" = "Xno" ; then Line 5900  if test ! "X$with_models" = "Xno" ; then
5900      subdir_output='      subdir_output='
5901      $subdir_target/Makefile:$subdir_root/Makefile.in      $subdir_target/Makefile:$subdir_root/Makefile.in
5902      $subdir_target/Makefile.Rules:$subdir_root/Makefile.Rules.in      $subdir_target/Makefile.Rules:$subdir_root/Makefile.Rules.in
5903          $subdir_target/ben/Makefile:$subdir_root/ben/Makefile.in      $subdir_target/ben/Makefile:$subdir_root/ben/Makefile.in
5904        $subdir_target/johnpye/Makefile:$subdir_root/johnpye/Makefile.in
5905      '      '
5906      ## $subdir_root/examples/Makefile      ## $subdir_root/examples/Makefile
5907      ## $subdir_root/examples/abbott/Makefile      ## $subdir_root/examples/abbott/Makefile
# Line 6037  trap 'rm -f $CONFIG_STATUS conftest*; ex Line 6038  trap 'rm -f $CONFIG_STATUS conftest*; ex
6038  # Transform confdefs.h into DEFS.  # Transform confdefs.h into DEFS.
6039  # Protect against shell expansion while executing Makefile rules.  # Protect against shell expansion while executing Makefile rules.
6040  # Protect against Makefile macro expansion.  # Protect against Makefile macro expansion.
6041  cat > conftest.defs <<\EOF  #
6042  s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g  # If the first sed substitution is executed (which looks for macros that
6043  s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g  # take arguments), then we branch to the quote section.  Otherwise,
6044  s%\[%\\&%g  # look for a macro that doesn't take arguments.
6045  s%\]%\\&%g  cat >confdef2opt.sed <<\_ACEOF
6046  s%\$%$$%g  t clear
6047  EOF  : clear
6048  DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`  s,^[    ]*#[    ]*define[   ][  ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
6049  rm -f conftest.defs  t quote
6050    s,^[    ]*#[    ]*define[   ][  ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
6051    t quote
6052    d
6053    : quote
6054    s,[     `~#$^&*(){}\\|;'"<>?],\\&,g
6055    s,\[,\\&,g
6056    s,\],\\&,g
6057    s,\$,$$,g
6058    p
6059    _ACEOF
6060    # We use echo to avoid assuming a particular line-breaking character.
6061    # The extra dot is to prevent the shell from consuming trailing
6062    # line-breaks from the sub-command output.  A line-break within
6063    # single-quotes doesn't work because, if this script is created in a
6064    # platform that uses two characters for line-breaks (e.g., DOS), tr
6065    # would break.
6066    ac_LF_and_DOT=`echo; echo .`
6067    DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
6068    rm -f confdef2opt.sed
6069    
6070    
6071  # Without the "./", some shells look in PATH for config.status.  # Without the "./", some shells look in PATH for config.status.

Legend:
Removed from v.71  
changed lines
  Added in v.72

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22