Changeset bb9084db in rtems


Ignore:
Timestamp:
Jan 30, 1998, 8:57:43 PM (22 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
243ce5d
Parents:
b4767da
Message:

configure.in

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    rb4767da rbb9084db  
    19271927
    19281928
     1929
     1930
    19291931# try not to explicitly list a Makefile here
    19301932trap '' 1 2 15
     
    19911993trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
    19921994
    1993 # Transform confdefs.h into DEFS.
    1994 # Protect against shell expansion while executing Makefile rules.
    1995 # Protect against Makefile macro expansion.
    1996 cat > conftest.defs <<\EOF
    1997 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
    1998 s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
    1999 s%\[%\\&%g
    2000 s%\]%\\&%g
    2001 s%\$%$$%g
    2002 EOF
    2003 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
    2004 rm -f conftest.defs
    2005 
     1995DEFS=-DHAVE_CONFIG_H
    20061996
    20071997# Without the "./", some shells look in PATH for config.status.
     
    20732063make/target.cfg
    20742064make/Templates/Makefile.inc
    2075 c/build-tools/src/config.h
    2076 c/update-tools/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
     2065c/update-tools/Makefile c/build-tools/src/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
    20772066EOF
    20782067cat >> $CONFIG_STATUS <<EOF
     
    22202209make/target.cfg
    22212210make/Templates/Makefile.inc
    2222 c/build-tools/src/config.h
    22232211c/update-tools/Makefile"}
    22242212EOF
     
    22752263rm -f conftest.s*
    22762264
     2265# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
     2266# NAME is the cpp macro being defined and VALUE is the value it is being given.
     2267#
     2268# ac_d sets the value in "#define NAME VALUE" lines.
     2269ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
     2270ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
     2271ac_dC='\3'
     2272ac_dD='%g'
     2273# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
     2274ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
     2275ac_uB='\([      ]\)%\1#\2define\3'
     2276ac_uC=' '
     2277ac_uD='\4%g'
     2278# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
     2279ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
     2280ac_eB='$%\1#\2define\3'
     2281ac_eC=' '
     2282ac_eD='%g'
     2283
     2284if test "${CONFIG_HEADERS+set}" != set; then
     2285EOF
     2286cat >> $CONFIG_STATUS <<EOF
     2287  CONFIG_HEADERS="c/build-tools/src/config.h"
     2288EOF
     2289cat >> $CONFIG_STATUS <<\EOF
     2290fi
     2291for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
     2292  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
     2293  case "$ac_file" in
     2294  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
     2295       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
     2296  *) ac_file_in="${ac_file}.in" ;;
     2297  esac
     2298
     2299  echo creating $ac_file
     2300
     2301  rm -f conftest.frag conftest.in conftest.out
     2302  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
     2303  cat $ac_file_inputs > conftest.in
     2304
     2305EOF
     2306
     2307# Transform confdefs.h into a sed script conftest.vals that substitutes
     2308# the proper values into config.h.in to produce config.h.  And first:
     2309# Protect against being on the right side of a sed subst in config.status.
     2310# Protect against being in an unquoted here document in config.status.
     2311rm -f conftest.vals
     2312cat > conftest.hdr <<\EOF
     2313s/[\\&%]/\\&/g
     2314s%[\\$`]%\\&%g
     2315s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
     2316s%ac_d%ac_u%gp
     2317s%ac_u%ac_e%gp
     2318EOF
     2319sed -n -f conftest.hdr confdefs.h > conftest.vals
     2320rm -f conftest.hdr
     2321
     2322# This sed command replaces #undef with comments.  This is necessary, for
     2323# example, in the case of _POSIX_SOURCE, which is predefined and required
     2324# on some systems where configure will not decide to define it.
     2325cat >> conftest.vals <<\EOF
     2326s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
     2327EOF
     2328
     2329# Break up conftest.vals because some shells have a limit on
     2330# the size of here documents, and old seds have small limits too.
     2331
     2332rm -f conftest.tail
     2333while :
     2334do
     2335  ac_lines=`grep -c . conftest.vals`
     2336  # grep -c gives empty output for an empty file on some AIX systems.
     2337  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
     2338  # Write a limited-size here document to conftest.frag.
     2339  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
     2340  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
     2341  echo 'CEOF
     2342  sed -f conftest.frag conftest.in > conftest.out
     2343  rm -f conftest.in
     2344  mv conftest.out conftest.in
     2345' >> $CONFIG_STATUS
     2346  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
     2347  rm -f conftest.vals
     2348  mv conftest.tail conftest.vals
     2349done
     2350rm -f conftest.vals
     2351
     2352cat >> $CONFIG_STATUS <<\EOF
     2353  rm -f conftest.frag conftest.h
     2354  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
     2355  cat conftest.in >> conftest.h
     2356  rm -f conftest.in
     2357  if cmp -s $ac_file conftest.h 2>/dev/null; then
     2358    echo "$ac_file is unchanged"
     2359    rm -f conftest.h
     2360  else
     2361    # Remove last slash and all that follows it.  Not all systems have dirname.
     2362      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
     2363      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
     2364      # The file is in a subdirectory.
     2365      test ! -d "$ac_dir" && mkdir "$ac_dir"
     2366    fi
     2367    rm -f $ac_file
     2368    mv conftest.h $ac_file
     2369  fi
     2370fi; done
     2371
    22772372EOF
    22782373cat >> $CONFIG_STATUS <<EOF
Note: See TracChangeset for help on using the changeset viewer.