Ignore:
Timestamp:
Apr 22, 2007, 2:29:09 AM (18 years ago)
Author:
bird
Message:

Applied OS/2 patches.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/essentials/sys-devel/autoconf-2.13/acgeneral.m4

    r3157 r3159  
    588588AC_INIT_PARSE_ARGS
    589589AC_INIT_PREPARE($1)dnl
     590AC_PATHIFS
     591AC_DIVERT_POP()dnl to NORMAL
     592AC_DIVERT_PUSH(AC_DIVERSION_NORMAL_4)dnl
     593AC_EXEEXT
    590594AC_DIVERT_POP()dnl to NORMAL
    591595])
     
    13221326  ac_cv_prog_$1="[$]$1" # Let the user override the test.
    13231327else
    1324   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     1328  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
    13251329ifelse([$6], , , [  ac_prog_rejected=no
    13261330])dnl
     
    13281332dnl POSIX.2 word splitting is done only on the output of word expansions,
    13291333dnl not every word.  This closes a longstanding sh security hole.
    1330   ac_dummy="ifelse([$5], , $PATH, [$5])"
     1334  ac_dummy="ifelse([$5], , $PATH, AC_FORMAT_PATH([$5]))"
    13311335  for ac_dir in $ac_dummy; do
    13321336    test -z "$ac_dir" && ac_dir=.
    1333     if test -f $ac_dir/$ac_word; then
     1337    if test -f $ac_dir/$ac_word -o \
     1338            -f $ac_dir/$ac_word$ac_exeext ; then
    13341339ifelse([$6], , , dnl
    1335 [      if test "[$ac_dir/$ac_word]" = "$6"; then
     1340[      if test "[$ac_dir/$ac_word]" = "$6" -o \
     1341               "[$ac_dir/$ac_word$ac_exeext]" = "$6" ; then
    13361342        ac_prog_rejected=yes
    13371343        continue
     
    13591365    # Default is a loser.
    13601366    AC_MSG_ERROR([$1=$6 unacceptable, but no other $4 found in dnl
    1361 ifelse([$5], , [\$]PATH, [$5])])
     1367ifelse([$5], , [\$]PATH, AC_FORMAT_PATH([$5]))])
    13621368])dnl
    13631369  fi
     
    13851391AC_CACHE_VAL(ac_cv_path_$1,
    13861392[case "[$]$1" in
    1387   /*)
     1393changequote(, )dnl
     1394  [/\\]* | [a-zA-Z]:*)
     1395changequote([, ])dnl
    13881396  ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
    13891397  ;;
     
    13921400  ;;
    13931401  *)
    1394   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     1402  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
    13951403dnl $ac_dummy forces splitting on constant user-supplied paths.
    13961404dnl POSIX.2 word splitting is done only on the output of word expansions,
    13971405dnl not every word.  This closes a longstanding sh security hole.
    1398   ac_dummy="ifelse([$4], , $PATH, [$4])"
     1406  ac_dummy="ifelse([$4], , $PATH, AC_FORMAT_PATH([$4]))"
    13991407  for ac_dir in $ac_dummy; do
    14001408    test -z "$ac_dir" && ac_dir=.
    14011409    if test -f $ac_dir/$ac_word; then
    14021410      ac_cv_path_$1="$ac_dir/$ac_word"
     1411      break
     1412    fi
     1413    if test -f $ac_dir/$ac_word$ac_exeext; then
     1414      ac_cv_path_$1="$ac_dir/$ac_word$ac_exeext"
    14031415      break
    14041416    fi
     
    16601672[AC_REQUIRE_CPP()dnl
    16611673cat > conftest.$ac_ext <<EOF
     1674#include <sys/types.h>
    16621675[#]line __oline__ "configure"
    16631676#include "confdefs.h"
     
    20962109# Run this file to recreate the current configuration.
    20972110# This directory was configured as follows,
     2111EOF
     2112echo ': ${CONFIG_SHELL='"${CONFIG_SHELL-sh.exe}"'}' >> $CONFIG_STATUS
     2113cat >> $CONFIG_STATUS <<EOF
    20982114dnl hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
    20992115dnl so uname gets run too.
     
    21262142ifdef([AC_PROVIDE_AC_PROG_INSTALL], [ac_given_INSTALL="$INSTALL"
    21272143])dnl
     2144PATHIFS="$PATH_IFS"
    21282145
    21292146changequote(<<, >>)dnl
     
    21732190changequote([, ])dnl
    21742191EOF
    2175 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
     2192DEFS=`sed -f conftest.defs confdefs.h | tr '\012\015' ' '`
    21762193rm -f conftest.defs
    21772194])
     
    21922209$ac_vpsub
    21932210dnl Shell code in configure.in might set extrasub.
     2211dnl bird - May 1 2003 3:07pm:
     2212dnl     This replacement isn't safe. '/bin/sh' might be just a part of a path.
     2213dnl     The best example is on non-unix platforms where it might be a part of
     2214dnl     an already localized shell reference. Consider g:/unixroot/bin/sh.exe.
     2215dnl     It will cause two problems if CONFIG_SHELL is used. Both double .exe
     2216dnl     and a double path.
     2217dnl     So, in short, don't do this replacement if there not separate shell
     2218dnl     word. However, my skills as a SED scripter is limited so this fix is
     2219dnl     not the right one, but it solves my problems.
     2220dnl     old script: [s,/bin/sh,${CONFIG_SHELL-/bin/sh},g]
    21942221$extrasub
     2222[s,\([^a-zA-Z0-9:]\)/bin/sh\(.exe\),\1${CONFIG_SHELL-/bin/sh}\2,g]
    21952223dnl Insert the sed substitutions of variables.
    21962224undivert(AC_DIVERSION_SED)
     
    22682296      if test -z "$ac_dots"; then top_srcdir=.
    22692297      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
    2270   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
     2298changequote(, )dnl
     2299  [/\\]* | [a-zA-Z]:*)
     2300changequote([, ])dnl
     2301    srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
    22712302  *) # Relative path.
    22722303    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
     
    22772308[  case "$ac_given_INSTALL" in
    22782309changequote(, )dnl
    2279   [/$]*) INSTALL="$ac_given_INSTALL" ;;
     2310  [/$\\]* | [A-Za-z]:*) INSTALL="$ac_given_INSTALL" ;;
    22802311changequote([, ])dnl
    22812312  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
     
    22922323  esac
    22932324
    2294   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
     2325  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%$PATHIFS% $ac_given_srcdir/%g"`
    22952326  sed -e "$ac_comsub
    22962327s%@configure_input@%$configure_input%g
     
    23602391
    23612392  rm -f conftest.frag conftest.in conftest.out
    2362   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
     2393# kso the other way around might work better with drive letters and such.
     2394#  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
     2395  ac_file_inputs=`echo $ac_file_in|sed -e "s%:% $ac_given_srcdir/%g" -e "s%^%$ac_given_srcdir/%" `
    23632396  cat $ac_file_inputs > conftest.in
    23642397
     
    24842517  case "$srcdir" in
    24852518changequote(, )dnl
    2486   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
     2519  [/$\\]* | [A-Za-z]:*) ac_rel_source="$srcdir/$ac_source" ;;
    24872520changequote([, ])dnl
    24882521  *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
     
    24912524  # Make a symlink if possible; otherwise try a hard link.
    24922525  if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
    2493     ln $srcdir/$ac_source $ac_dest; then :
     2526    ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
     2527    cp $srcdir/$ac_source $ac_dest; then :
    24942528  else
    24952529    AC_MSG_ERROR(can not link $ac_dest to $srcdir/$ac_source)
     
    25592593    .) # No --srcdir option.  We are building in place.
    25602594      ac_sub_srcdir=$srcdir ;;
    2561     /*) # Absolute path.
     2595changequote(, )dnl
     2596    [/\\]* | [a-zA-Z]:*) # Absolute path.
     2597changequote([, ])dnl
    25622598      ac_sub_srcdir=$srcdir/$ac_config_dir ;;
    25632599    *) # Relative path.
     
    25692605      ac_sub_configure=$ac_sub_srcdir/configure
    25702606    elif test -f $ac_sub_srcdir/configure.in; then
    2571       ac_sub_configure=$ac_configure
     2607      ac_current_dir=`pwd`
     2608      cd $ac_sub_srcdir
     2609      autoconf
     2610      cd $ac_current_dir
     2611      ac_sub_configure=$ac_sub_srcdir/configure
    25722612    else
    25732613      AC_MSG_WARN(no configuration information is in $ac_config_dir)
     
    25802620      # Make the cache file name correct relative to the subdirectory.
    25812621      case "$cache_file" in
    2582       /*) ac_sub_cache_file=$cache_file ;;
     2622changequote(, )dnl
     2623      [/\\]* | [a-zA-Z]:*) ac_sub_cache_file=$cache_file ;;
     2624changequote([, ])dnl
    25832625      *) # Relative path.
    25842626        ac_sub_cache_file="$ac_dots$cache_file" ;;
     
    25872629      [  case "$ac_given_INSTALL" in
    25882630changequote(, )dnl
    2589         [/$]*) INSTALL="$ac_given_INSTALL" ;;
     2631        [/$\\]* | [A-Za-z]:*) INSTALL="$ac_given_INSTALL" ;;
    25902632changequote([, ])dnl
    25912633        *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
Note: See TracChangeset for help on using the changeset viewer.