Annotation of gforth/configure, revision 1.10

1.1       pazsan      1: #!/bin/sh
                      2: 
1.6       anton       3: # Guess values for system-dependent variables and create Makefiles.
                      4: # Generated automatically using autoconf version 2.1 
                      5: # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
                      6: #
                      7: # This configure script is free software; the Free Software Foundation
                      8: # gives unlimited permission to copy, distribute and modify it.
                      9: 
                     10: # Defaults:
                     11: ac_help=
                     12: ac_default_prefix=/usr/local
                     13: # Any additions from configure.in:
                     14: ac_help="$ac_help
                     15:   --enable-force-reg     Use explicit register declarations if they appear in
                     16:                          the machine.h file. This can cause a good speedup,
                     17:                          but also incorrect code with some gcc versions on
                     18:                          some processors (default disabled)."
                     19: ac_help="$ac_help
                     20:   --enable-direct-threaded     Force direct threading. This may not work on
                     21:                                some machines and may cause slowdown on others.
                     22:                                (default processor-dependent)"
                     23: ac_help="$ac_help
                     24:   --enable-indirect-threaded   Force indirect threading. This can cause a
                     25:                                slowdown on some machines.
                     26:                                (default processor-dependent)"
                     27: 
                     28: # Initialize some variables set by options.
                     29: # The variables have the same names as the options, with
                     30: # dashes changed to underlines.
                     31: build=NONE
                     32: cache_file=./config.cache
                     33: exec_prefix=NONE
                     34: host=NONE
                     35: no_create=
                     36: nonopt=NONE
                     37: no_recursion=
                     38: prefix=NONE
                     39: program_prefix=NONE
                     40: program_suffix=NONE
                     41: program_transform_name=s,x,x,
                     42: silent=
                     43: site=
                     44: srcdir=
                     45: target=NONE
                     46: verbose=
                     47: x_includes=NONE
                     48: x_libraries=NONE
                     49: 
                     50: # Initialize some other variables.
                     51: subdirs=
1.1       pazsan     52: 
1.6       anton      53: ac_prev=
                     54: for ac_option
                     55: do
                     56: 
                     57:   # If the previous option needs an argument, assign it.
                     58:   if test -n "$ac_prev"; then
                     59:     eval "$ac_prev=\$ac_option"
                     60:     ac_prev=
                     61:     continue
                     62:   fi
                     63: 
                     64:   case "$ac_option" in
                     65:   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
                     66:   *) ac_optarg= ;;
                     67:   esac
1.5       pazsan     68: 
1.6       anton      69:   # Accept the important Cygnus configure options, so we can diagnose typos.
1.1       pazsan     70: 
1.6       anton      71:   case "$ac_option" in
1.1       pazsan     72: 
1.6       anton      73:   -build | --build | --buil | --bui | --bu | --b)
                     74:     ac_prev=build ;;
                     75:   -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
                     76:     build="$ac_optarg" ;;
                     77: 
                     78:   -cache-file | --cache-file | --cache-fil | --cache-fi \
                     79:   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
                     80:     ac_prev=cache_file ;;
                     81:   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
                     82:   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
                     83:     cache_file="$ac_optarg" ;;
                     84: 
                     85:   -disable-* | --disable-*)
                     86:     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
                     87:     # Reject names that are not valid shell variable names.
                     88:     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
                     89:       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
                     90:     fi
                     91:     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
                     92:     eval "enable_${ac_feature}=no" ;;
                     93: 
                     94:   -enable-* | --enable-*)
                     95:     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
                     96:     # Reject names that are not valid shell variable names.
                     97:     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
                     98:       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
                     99:     fi
                    100:     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
                    101:     case "$ac_option" in
                    102:       *=*) ;;
                    103:       *) ac_optarg=yes ;;
                    104:     esac
                    105:     eval "enable_${ac_feature}='$ac_optarg'" ;;
1.1       pazsan    106: 
1.6       anton     107:   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
                    108:   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
                    109:   | --exec | --exe | --ex)
                    110:     ac_prev=exec_prefix ;;
                    111:   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
                    112:   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
                    113:   | --exec=* | --exe=* | --ex=*)
                    114:     exec_prefix="$ac_optarg" ;;
                    115: 
                    116:   -gas | --gas | --ga | --g)
                    117:     # Obsolete; use --with-gas.
                    118:     with_gas=yes ;;
                    119: 
                    120:   -help | --help | --hel | --he)
                    121:     # Omit some internal or obsolete options to make the list less imposing.
                    122:     # This message is too long to be a string in the A/UX 3.1 sh.
                    123:     cat << EOF
                    124: Usage: configure [options] [host]
                    125: Options: [defaults in brackets after descriptions]
                    126: Configuration:
                    127:   --cache-file=FILE       cache test results in FILE
                    128:   --help                  print this message
                    129:   --no-create             do not create output files
                    130:   --quiet, --silent       do not print \`checking...' messages
                    131:   --version               print the version of autoconf that created configure
                    132: Directory and file names:
                    133:   --prefix=PREFIX         install architecture-independent files in PREFIX
                    134:                           [$ac_default_prefix]
                    135:   --exec-prefix=PREFIX    install architecture-dependent files in PREFIX
                    136:                           [same as prefix]
                    137:   --srcdir=DIR            find the sources in DIR [configure dir or ..]
                    138:   --program-prefix=PREFIX prepend PREFIX to installed program names
                    139:   --program-suffix=SUFFIX append SUFFIX to installed program names
                    140:   --program-transform-name=PROGRAM run sed PROGRAM on installed program names
                    141: Host type:
                    142:   --build=BUILD           configure for building on BUILD [BUILD=HOST]
                    143:   --host=HOST             configure for HOST [guessed]
                    144:   --target=TARGET         configure for TARGET [TARGET=HOST]
                    145: Features and packages:
                    146:   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
                    147:   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
                    148:   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
                    149:   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
                    150:   --x-includes=DIR        X include files are in DIR
                    151:   --x-libraries=DIR       X library files are in DIR
                    152: --enable and --with options recognized:$ac_help
                    153: EOF
                    154:     exit 0 ;;
                    155: 
                    156:   -host | --host | --hos | --ho)
                    157:     ac_prev=host ;;
                    158:   -host=* | --host=* | --hos=* | --ho=*)
                    159:     host="$ac_optarg" ;;
                    160: 
                    161:   -nfp | --nfp | --nf)
                    162:     # Obsolete; use --without-fp.
                    163:     with_fp=no ;;
                    164: 
                    165:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
                    166:   | --no-cr | --no-c)
                    167:     no_create=yes ;;
                    168: 
                    169:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
                    170:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
                    171:     no_recursion=yes ;;
                    172: 
                    173:   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
                    174:     ac_prev=prefix ;;
                    175:   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
                    176:     prefix="$ac_optarg" ;;
                    177: 
                    178:   -program-prefix | --program-prefix | --program-prefi | --program-pref \
                    179:   | --program-pre | --program-pr | --program-p)
                    180:     ac_prev=program_prefix ;;
                    181:   -program-prefix=* | --program-prefix=* | --program-prefi=* \
                    182:   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
                    183:     program_prefix="$ac_optarg" ;;
                    184: 
                    185:   -program-suffix | --program-suffix | --program-suffi | --program-suff \
                    186:   | --program-suf | --program-su | --program-s)
                    187:     ac_prev=program_suffix ;;
                    188:   -program-suffix=* | --program-suffix=* | --program-suffi=* \
                    189:   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
                    190:     program_suffix="$ac_optarg" ;;
                    191: 
                    192:   -program-transform-name | --program-transform-name \
                    193:   | --program-transform-nam | --program-transform-na \
                    194:   | --program-transform-n | --program-transform- \
                    195:   | --program-transform | --program-transfor \
                    196:   | --program-transfo | --program-transf \
                    197:   | --program-trans | --program-tran \
                    198:   | --progr-tra | --program-tr | --program-t)
                    199:     ac_prev=program_transform_name ;;
                    200:   -program-transform-name=* | --program-transform-name=* \
                    201:   | --program-transform-nam=* | --program-transform-na=* \
                    202:   | --program-transform-n=* | --program-transform-=* \
                    203:   | --program-transform=* | --program-transfor=* \
                    204:   | --program-transfo=* | --program-transf=* \
                    205:   | --program-trans=* | --program-tran=* \
                    206:   | --progr-tra=* | --program-tr=* | --program-t=*)
                    207:     program_transform_name="$ac_optarg" ;;
                    208: 
                    209:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                    210:   | -silent | --silent | --silen | --sile | --sil)
                    211:     silent=yes ;;
                    212: 
                    213:   -site | --site | --sit)
                    214:     ac_prev=site ;;
                    215:   -site=* | --site=* | --sit=*)
                    216:     site="$ac_optarg" ;;
                    217: 
                    218:   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                    219:     ac_prev=srcdir ;;
                    220:   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
                    221:     srcdir="$ac_optarg" ;;
                    222: 
                    223:   -target | --target | --targe | --targ | --tar | --ta | --t)
                    224:     ac_prev=target ;;
                    225:   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
                    226:     target="$ac_optarg" ;;
                    227: 
                    228:   -v | -verbose | --verbose | --verbos | --verbo | --verb)
                    229:     verbose=yes ;;
                    230: 
                    231:   -version | --version | --versio | --versi | --vers)
                    232:     echo "configure generated by autoconf version 2.1"
                    233:     exit 0 ;;
                    234: 
                    235:   -with-* | --with-*)
                    236:     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
                    237:     # Reject names that are not valid shell variable names.
                    238:     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
                    239:       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
                    240:     fi
                    241:     ac_package=`echo $ac_package| sed 's/-/_/g'`
                    242:     case "$ac_option" in
                    243:       *=*) ;;
                    244:       *) ac_optarg=yes ;;
                    245:     esac
                    246:     eval "with_${ac_package}='$ac_optarg'" ;;
1.1       pazsan    247: 
1.6       anton     248:   -without-* | --without-*)
                    249:     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
                    250:     # Reject names that are not valid shell variable names.
                    251:     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
                    252:       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
                    253:     fi
                    254:     ac_package=`echo $ac_package| sed 's/-/_/g'`
                    255:     eval "with_${ac_package}=no" ;;
                    256: 
                    257:   --x)
                    258:     # Obsolete; use --with-x.
                    259:     with_x=yes ;;
                    260: 
                    261:   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
                    262:   | --x-incl | --x-inc | --x-in | --x-i)
                    263:     ac_prev=x_includes ;;
                    264:   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
                    265:   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
                    266:     x_includes="$ac_optarg" ;;
                    267: 
                    268:   -x-libraries | --x-libraries | --x-librarie | --x-librari \
                    269:   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
                    270:     ac_prev=x_libraries ;;
                    271:   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
                    272:   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
                    273:     x_libraries="$ac_optarg" ;;
1.1       pazsan    274: 
1.6       anton     275:   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
                    276:     ;;
1.1       pazsan    277: 
1.6       anton     278:   *) 
                    279:     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
                    280:       echo "configure: warning: $ac_option: invalid host type" 1>&2
                    281:     fi
                    282:     if test "x$nonopt" != xNONE; then
                    283:       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
                    284:     fi
                    285:     nonopt="$ac_option"
                    286:     ;;
1.1       pazsan    287: 
1.6       anton     288:   esac
                    289: done
1.1       pazsan    290: 
1.6       anton     291: if test -n "$ac_prev"; then
                    292:   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
                    293: fi
1.1       pazsan    294: 
1.6       anton     295: trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
1.1       pazsan    296: 
1.6       anton     297: # File descriptor usage:
                    298: # 0 unused; standard input
                    299: # 1 file creation
                    300: # 2 errors and warnings
                    301: # 3 unused; some systems may open it to /dev/tty
                    302: # 4 checking for... messages and results
                    303: # 5 compiler messages saved in config.log
                    304: if test "$silent" = yes; then
                    305:   exec 4>/dev/null
                    306: else
                    307:   exec 4>&1
                    308: fi
                    309: exec 5>./config.log
1.1       pazsan    310: 
1.6       anton     311: echo "\
                    312: This file contains any messages produced by compilers while
                    313: running configure, to aid debugging if configure makes a mistake.
                    314: " 1>&5
                    315: 
                    316: # Strip out --no-create and --no-recursion so they do not pile up.
                    317: # Also quote any args containing shell metacharacters.
                    318: ac_configure_args=
                    319: for ac_arg
1.1       pazsan    320: do
1.6       anton     321:   case "$ac_arg" in
                    322:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
                    323:   | --no-cr | --no-c) ;;
                    324:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
                    325:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
                    326:   *" "*|*"     "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
                    327:   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
                    328:   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
1.1       pazsan    329:   esac
                    330: done
                    331: 
1.6       anton     332: # NLS nuisances.
                    333: # Only set LANG and LC_ALL to C if already set.
                    334: # These must not be set unconditionally because not all systems understand
                    335: # e.g. LANG=C (notably SCO).
                    336: if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
                    337: if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
                    338: 
                    339: # confdefs.h avoids OS command line length limits that DEFS can exceed.
                    340: rm -rf conftest* confdefs.h
                    341: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
                    342: echo > confdefs.h
                    343: 
                    344: # A filename unique to this package, relative to the directory that
                    345: # configure is in, which we can look for to find out if srcdir is correct.
                    346: ac_unique_file=engine.c
1.1       pazsan    347: 
1.6       anton     348: # Find the source files, if location was not specified.
                    349: if test -z "$srcdir"; then
                    350:   ac_srcdir_defaulted=yes
                    351:   # Try the directory containing this script, then its parent.
                    352:   ac_prog=$0
                    353:   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
                    354:   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
                    355:   srcdir=$ac_confdir
                    356:   if test ! -r $srcdir/$ac_unique_file; then
                    357:     srcdir=..
                    358:   fi
                    359: else
                    360:   ac_srcdir_defaulted=no
                    361: fi
                    362: if test ! -r $srcdir/$ac_unique_file; then
                    363:   if test "$ac_srcdir_defaulted" = yes; then
                    364:     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
                    365:   else
                    366:     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
                    367:   fi
                    368: fi
                    369: srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
1.1       pazsan    370: 
1.6       anton     371: # Prefer explicitly selected file to automatically selected ones.
                    372: if test -z "$CONFIG_SITE"; then
                    373:   if test "x$prefix" != xNONE; then
                    374:     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
                    375:   else
                    376:     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
                    377:   fi
                    378: fi
                    379: for ac_site_file in $CONFIG_SITE; do
                    380:   if test -r "$ac_site_file"; then
                    381:     echo "loading site script $ac_site_file"
                    382:     . "$ac_site_file"
                    383:   fi
                    384: done
1.1       pazsan    385: 
1.6       anton     386: if test -r "$cache_file"; then
                    387:   echo "loading cache $cache_file"
                    388:   . $cache_file
                    389: else
                    390:   echo "creating cache $cache_file"
                    391:   > $cache_file
1.1       pazsan    392: fi
                    393: 
1.6       anton     394: ac_ext=c
                    395: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                    396: ac_cpp='$CPP $CPPFLAGS'
                    397: ac_compile='${CC-cc} $CFLAGS $CPPFLAGS conftest.$ac_ext -c 1>&5 2>&5'
                    398: ac_link='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext -o conftest $LIBS 1>&5 2>&5'
                    399: 
                    400: if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
                    401:   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
                    402:   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
                    403:     ac_n= ac_c='
                    404: ' ac_t='       '
                    405:   else
                    406:     ac_n=-n ac_c= ac_t=
                    407:   fi
                    408: else
                    409:   ac_n= ac_c='\c' ac_t=
1.1       pazsan    410: fi
                    411: 
1.6       anton     412: 
                    413: 
                    414: # Check whether --enable-force-reg or --disable-force-reg was given.
                    415: enableval="$enable_force_reg"
                    416: if test -n "$enableval"; then
                    417:   cat >> confdefs.h <<\EOF
                    418: #define FORCE_REG 1
                    419: EOF
                    420: 
1.1       pazsan    421: fi
                    422: 
1.6       anton     423: # Check whether --enable-direct-threaded or --disable-direct-threaded was given.
                    424: enableval="$enable_direct_threaded"
                    425: if test -n "$enableval"; then
                    426:   cat >> confdefs.h <<\EOF
                    427: #define DIRECT_THREADED 1
                    428: EOF
                    429: 
1.1       pazsan    430: fi
                    431: 
1.6       anton     432: # Check whether --enable-indirect-threaded or --disable-indirect-threaded was given.
                    433: enableval="$enable_indirect_threaded"
                    434: if test -n "$enableval"; then
                    435:   cat >> confdefs.h <<\EOF
                    436: #define INDIRECT_THREADED 1
                    437: EOF
                    438: 
1.1       pazsan    439: fi
                    440: 
1.6       anton     441: 
                    442: #terminology is a bit unusual here: The host is the system on which
                    443: #gforth will run; the system on which configure will run is the `build'
                    444: ac_aux_dir=
                    445: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
                    446:   if test -f $ac_dir/install-sh; then
                    447:     ac_aux_dir=$ac_dir
                    448:     ac_install_sh="$ac_aux_dir/install-sh -c"
                    449:     break
                    450:   elif test -f $ac_dir/install.sh; then
                    451:     ac_aux_dir=$ac_dir
                    452:     ac_install_sh="$ac_aux_dir/install.sh -c"
                    453:     break
                    454:   fi
                    455: done
                    456: if test -z "$ac_aux_dir"; then
                    457:   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1.1       pazsan    458: fi
1.6       anton     459: ac_config_guess=$ac_aux_dir/config.guess
                    460: ac_config_sub=$ac_aux_dir/config.sub
                    461: ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
                    462: 
1.1       pazsan    463: 
1.6       anton     464: # Make sure we can run config.sub.
                    465: if $ac_config_sub sun4 >/dev/null 2>&1; then :
                    466: else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1.1       pazsan    467: fi
                    468: 
1.6       anton     469: echo $ac_n "checking host system type""... $ac_c" 1>&4
                    470: 
                    471: host_alias=$host
                    472: case "$host_alias" in
                    473: NONE)
                    474:   case $nonopt in
                    475:   NONE)
                    476:     if host_alias=`$ac_config_guess`; then :
                    477:     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
                    478:     fi ;;
                    479:   *) host_alias=$nonopt ;;
                    480:   esac ;;
                    481: esac
                    482: 
                    483: host=`$ac_config_sub $host_alias`
                    484: host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
                    485: host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
                    486: host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
                    487: echo "$ac_t""$host" 1>&4
1.1       pazsan    488: 
1.6       anton     489: case "$host_cpu" in
1.1       pazsan    490:        hppa*)
1.6       anton     491:                mach_h=hppa
1.8       pazsan    492:                LIBOBJS="cache.o"
1.1       pazsan    493:                ;;
                    494:        sparc*)
1.6       anton     495:                mach_h=sparc
1.1       pazsan    496:                ;;
1.6       anton     497:        i386|i486|i586)
                    498:                mach_h=386
                    499:                #!! direct/indirect threading switch
                    500:                #!! -m486 flag
1.5       pazsan    501:                ;;
1.6       anton     502:        m68*)
                    503:                mach_h=m68k
1.1       pazsan    504:                ;;
1.6       anton     505:        mips*)
                    506:                mach_h=mips
                    507:                #!! link text and data segment into the same 256M region!
                    508:                #!! does cacheflush work on OSs other than Ultrix?
1.1       pazsan    509:                ;;
                    510:        *)
1.6       anton     511:                echo "No direct threading support for $host_cpu, using indirect threading."
                    512:                echo "Using a generic 32-bit machine description. It will only work if char * AND"
                    513:                echo "long values have 32 bits."
                    514:                echo "I'll assume that C floats and doubles are represented by IEEE single and"
                    515:                echo "double numbers. If this is not so, SF@ etc. will not work correctly."
                    516:                mach_h=32bit
1.1       pazsan    517: esac
                    518: 
1.6       anton     519: 
                    520: MAKE_EXE=""
                    521: 
                    522: 
                    523: LINK_KERNL32L=""
                    524: 
                    525: LINK_KERNL32B=""
                    526: 
                    527: #if test $host_os=dos
                    528: #then
                    529: #  echo Configuring for DOS!!!
                    530: #  MAKE_EXE="coff2exe gforth"
                    531: #  LINK_KERNL32L='$(CP) kernl32l.fi gforth.fi'
                    532: #fi
                    533: 
                    534: # If we cannot run a trivial program, we must be cross compiling.
                    535: echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&4
                    536: if eval "test \"`echo '${'ac_cv_c_cross'+set}'`\" = set"; then
                    537:   echo $ac_n "(cached) $ac_c" 1>&4
                    538: else
                    539:   if test "$cross_compiling" = yes; then
                    540:   ac_cv_cross=yes
                    541: else
                    542: cat > conftest.$ac_ext <<EOF
1.8       pazsan    543: #line 544 "configure"
1.6       anton     544: #include "confdefs.h"
                    545: main(){return(0);}
                    546: EOF
                    547: eval $ac_link
                    548: if test -s conftest && (./conftest; exit) 2>/dev/null; then
                    549:   ac_cv_c_cross=no
                    550: else
                    551:   ac_cv_c_cross=yes
                    552: fi
                    553: fi
                    554: rm -fr conftest*
                    555: fi
                    556: cross_compiling=$ac_cv_c_cross
                    557: echo "$ac_t""$ac_cv_c_cross" 1>&4
                    558: 
                    559: echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&4
                    560: if eval "test \"`echo '${'ac_cv_c_bigendian'+set}'`\" = set"; then
                    561:   echo $ac_n "(cached) $ac_c" 1>&4
                    562: else
                    563:   if test "$cross_compiling" = yes; then
                    564:     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
                    565: else
                    566: cat > conftest.$ac_ext <<EOF
1.8       pazsan    567: #line 568 "configure"
1.6       anton     568: #include "confdefs.h"
                    569: main () {
                    570:   /* Are we little or big endian?  From Harbison&Steele.  */
                    571:   union
                    572:   {
                    573:     long l;
                    574:     char c[sizeof (long)];
                    575:   } u;
                    576:   u.l = 1;
                    577:   exit (u.c[sizeof (long) - 1] == 1);
                    578: }
                    579: EOF
                    580: eval $ac_link
                    581: if test -s conftest && (./conftest; exit) 2>/dev/null; then
                    582:   ac_cv_c_bigendian=no
                    583: else
                    584:   ac_cv_c_bigendian=yes
                    585: fi
                    586: fi
                    587: rm -fr conftest*
                    588: fi
                    589: echo "$ac_t""$ac_cv_c_bigendian" 1>&4
                    590: if test $ac_cv_c_bigendian = yes; then
                    591:   cat >> confdefs.h <<\EOF
                    592: #define WORDS_BIGENDIAN 1
                    593: EOF
                    594: 
                    595: fi
                    596: 
1.9       anton     597: 
1.6       anton     598: if test $ac_cv_c_bigendian = yes; then
                    599:   bytesex=b
1.9       anton     600:   KERNAL="kernl32b.fi kernl32l.fi"
1.6       anton     601: else
                    602:   bytesex=l
1.9       anton     603:   KERNAL="kernl32l.fi kernl32b.fi"
1.6       anton     604: fi
                    605: 
                    606: echo $ac_n "checking whether ln -s works""... $ac_c" 1>&4
                    607: if eval "test \"`echo '${'ac_cv_prog_LN_S'+set}'`\" = set"; then
                    608:   echo $ac_n "(cached) $ac_c" 1>&4
                    609: else
                    610:   rm -f conftestdata
                    611: if ln -s X conftestdata 2>/dev/null
1.1       pazsan    612: then
1.6       anton     613:   rm -f conftestdata
                    614:   ac_cv_prog_LN_S="ln -s"
                    615: else
                    616:   ac_cv_prog_LN_S=ln
                    617: fi
1.1       pazsan    618: fi
1.6       anton     619: LN_S="$ac_cv_prog_LN_S"
                    620: if test "$ac_cv_prog_LN_S" = "ln -s"; then
                    621:   echo "$ac_t""yes" 1>&4
                    622: else
                    623:   echo "$ac_t""no" 1>&4
                    624: fi
                    625: 
                    626: # Find a good install program.  We prefer a C program (faster),
                    627: # so one script is as good as another.  But avoid the broken or
                    628: # incompatible versions:
                    629: # SysV /etc/install, /usr/sbin/install
                    630: # SunOS /usr/etc/install
                    631: # IRIX /sbin/install
                    632: # AIX /bin/install
                    633: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
                    634: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
                    635: # ./install, which can be erroneously created by make from ./install.sh.
                    636: echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&4
                    637: if test -z "$INSTALL"; then
                    638: if eval "test \"`echo '${'ac_cv_path_install'+set}'`\" = set"; then
                    639:   echo $ac_n "(cached) $ac_c" 1>&4
                    640: else
                    641:     IFS="${IFS=        }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
                    642:   for ac_dir in $PATH; do
                    643:     case "$ac_dir" in
                    644:     ''|.|/etc|/usr/sbin|/usr/etc|/sbin|/usr/afsws/bin|/usr/ucb) ;;
                    645:     *)
                    646:       # OSF1 and SCO ODT 3.0 have their own names for install.
                    647:       for ac_prog in ginstall installbsd scoinst install; do
                    648:         if test -f $ac_dir/$ac_prog; then
                    649:          if test $ac_prog = install &&
                    650:             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
                    651:            # AIX install.  It has an incompatible calling convention.
                    652:            # OSF/1 installbsd also uses dspmsg, but is usable.
                    653:            :
                    654:          else
                    655:            ac_cv_path_install="$ac_dir/$ac_prog -c"
                    656:            break 2
                    657:          fi
                    658:        fi
                    659:       done
                    660:       ;;
                    661:     esac
                    662:   done
                    663:   IFS="$ac_save_ifs"
                    664:   # As a last resort, use the slow shell script.
                    665:   test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
                    666: fi
                    667:   INSTALL="$ac_cv_path_install"
                    668: fi
                    669: echo "$ac_t""$INSTALL" 1>&4
                    670: 
                    671: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
                    672: # It thinks the first close brace ends the variable substitution.
                    673: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
                    674: 
                    675: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
                    676: 
                    677: 
1.7       anton     678: echo $ac_n "checking for -lm""... $ac_c" 1>&4
                    679: if eval "test \"`echo '${'ac_cv_lib_m'+set}'`\" = set"; then
                    680:   echo $ac_n "(cached) $ac_c" 1>&4
                    681: else
                    682:   ac_save_LIBS="$LIBS"
                    683: LIBS="$LIBS -lm "
                    684: cat > conftest.$ac_ext <<EOF
1.9       anton     685: #line 686 "configure"
1.7       anton     686: #include "confdefs.h"
                    687: 
                    688: int main() { return 0; }
                    689: int t() {
                    690: asin()
                    691: ; return 0; }
                    692: EOF
                    693: if eval $ac_link; then
                    694:   rm -rf conftest*
                    695:   eval "ac_cv_lib_m=yes"
                    696: else
                    697:   rm -rf conftest*
                    698:   eval "ac_cv_lib_m=no"
                    699: fi
                    700: rm -f conftest*
                    701: LIBS="$ac_save_LIBS"
                    702: 
                    703: fi
                    704: if eval "test \"`echo '$ac_cv_lib_'m`\" = yes"; then
                    705:   echo "$ac_t""yes" 1>&4
                    706:     ac_tr_lib=HAVE_LIB`echo m | tr '[a-z]' '[A-Z]'`
                    707:   cat >> confdefs.h <<EOF
                    708: #define $ac_tr_lib 1
                    709: EOF
                    710: 
                    711:   LIBS="$LIBS -lm"
                    712: 
                    713: else
                    714:   echo "$ac_t""no" 1>&4
                    715: fi
                    716: 
1.6       anton     717: echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&4
                    718: if eval "test \"`echo '${'ac_cv_func_memcmp'+set}'`\" = set"; then
                    719:   echo $ac_n "(cached) $ac_c" 1>&4
                    720: else
                    721:   if test "$cross_compiling" = yes; then
                    722:   ac_cv_func_memcmp=no
                    723: else
                    724: cat > conftest.$ac_ext <<EOF
1.9       anton     725: #line 726 "configure"
1.6       anton     726: #include "confdefs.h"
                    727: 
                    728: main()
                    729: {
                    730:   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
                    731:   exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
                    732: }
                    733: 
                    734: EOF
                    735: eval $ac_link
                    736: if test -s conftest && (./conftest; exit) 2>/dev/null; then
                    737:   ac_cv_func_memcmp=yes
                    738: else
                    739:   ac_cv_func_memcmp=no
                    740: fi
                    741: fi
                    742: rm -fr conftest*
                    743: fi
                    744: echo "$ac_t""$ac_cv_func_memcmp" 1>&4
                    745: test $ac_cv_func_memcmp = no && LIBOBJS="$LIBOBJS memcmp.o"
                    746: 
                    747: for ac_func in memmove strtoul
                    748: do
                    749: echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
                    750: if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
                    751:   echo $ac_n "(cached) $ac_c" 1>&4
                    752: else
                    753:   cat > conftest.$ac_ext <<EOF
1.9       anton     754: #line 755 "configure"
1.6       anton     755: #include "confdefs.h"
                    756: #include <ctype.h> /* Arbitrary system header to define __stub macros. */
                    757: /* Override any gcc2 internal prototype to avoid an error.  */
                    758: char $ac_func(); 
                    759: 
                    760: int main() { return 0; }
                    761: int t() {
                    762: 
                    763: /* The GNU C library defines this for functions which it implements
                    764:     to always fail with ENOSYS.  Some functions are actually named
                    765:     something starting with __ and the normal name is an alias.  */
                    766: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                    767: choke me
                    768: #else
                    769: $ac_func();
                    770: #endif
                    771: 
                    772: ; return 0; }
                    773: EOF
                    774: if eval $ac_link; then
                    775:   rm -rf conftest*
                    776:   eval "ac_cv_func_$ac_func=yes"
                    777: else
                    778:   rm -rf conftest*
                    779:   eval "ac_cv_func_$ac_func=no"
                    780: fi
                    781: rm -f conftest*
                    782: 
                    783: fi
                    784: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                    785:   echo "$ac_t""yes" 1>&4
                    786:   :
                    787: else
                    788:   echo "$ac_t""no" 1>&4
                    789: LIBOBJS="$LIBOBJS ${ac_func}.o"
                    790: fi
                    791: 
                    792: done
                    793: 
                    794: echo $ac_n "checking for getopt_long""... $ac_c" 1>&4
                    795: if eval "test \"`echo '${'ac_cv_func_getopt_long'+set}'`\" = set"; then
                    796:   echo $ac_n "(cached) $ac_c" 1>&4
                    797: else
                    798:   cat > conftest.$ac_ext <<EOF
1.9       anton     799: #line 800 "configure"
1.6       anton     800: #include "confdefs.h"
                    801: #include <ctype.h> /* Arbitrary system header to define __stub macros. */
                    802: /* Override any gcc2 internal prototype to avoid an error.  */
                    803: char getopt_long(); 
                    804: 
                    805: int main() { return 0; }
                    806: int t() {
                    807: 
                    808: /* The GNU C library defines this for functions which it implements
                    809:     to always fail with ENOSYS.  Some functions are actually named
                    810:     something starting with __ and the normal name is an alias.  */
                    811: #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
                    812: choke me
                    813: #else
                    814: getopt_long();
                    815: #endif
                    816: 
                    817: ; return 0; }
                    818: EOF
                    819: if eval $ac_link; then
                    820:   rm -rf conftest*
                    821:   eval "ac_cv_func_getopt_long=yes"
                    822: else
                    823:   rm -rf conftest*
                    824:   eval "ac_cv_func_getopt_long=no"
                    825: fi
                    826: rm -f conftest*
                    827: 
                    828: fi
                    829: if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
                    830:   echo "$ac_t""yes" 1>&4
                    831:   getop_long=""
                    832: else
                    833:   echo "$ac_t""no" 1>&4
                    834: getopt_long="getopt.o getopt1.o"
                    835: fi
                    836: 
                    837: 
1.10    ! anton     838: for ac_func in rint expm1 log1p pow10
1.6       anton     839: do
                    840: echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
                    841: if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
                    842:   echo $ac_n "(cached) $ac_c" 1>&4
                    843: else
                    844:   cat > conftest.$ac_ext <<EOF
1.9       anton     845: #line 846 "configure"
1.6       anton     846: #include "confdefs.h"
                    847: #include <ctype.h> /* Arbitrary system header to define __stub macros. */
                    848: /* Override any gcc2 internal prototype to avoid an error.  */
                    849: char $ac_func(); 
                    850: 
                    851: int main() { return 0; }
                    852: int t() {
                    853: 
                    854: /* The GNU C library defines this for functions which it implements
                    855:     to always fail with ENOSYS.  Some functions are actually named
                    856:     something starting with __ and the normal name is an alias.  */
                    857: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                    858: choke me
                    859: #else
                    860: $ac_func();
                    861: #endif
                    862: 
                    863: ; return 0; }
                    864: EOF
                    865: if eval $ac_link; then
                    866:   rm -rf conftest*
                    867:   eval "ac_cv_func_$ac_func=yes"
                    868: else
                    869:   rm -rf conftest*
                    870:   eval "ac_cv_func_$ac_func=no"
                    871: fi
                    872: rm -f conftest*
                    873: 
                    874: fi
                    875: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                    876:   echo "$ac_t""yes" 1>&4
                    877:     ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
                    878:   cat >> confdefs.h <<EOF
                    879: #define $ac_tr_func 1
                    880: EOF
                    881:  
                    882: else
                    883:   echo "$ac_t""no" 1>&4
                    884: fi
                    885: done
                    886: 
                    887: for ac_func in ecvt
                    888: do
                    889: echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
                    890: if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
                    891:   echo $ac_n "(cached) $ac_c" 1>&4
                    892: else
                    893:   cat > conftest.$ac_ext <<EOF
1.9       anton     894: #line 895 "configure"
1.6       anton     895: #include "confdefs.h"
                    896: #include <ctype.h> /* Arbitrary system header to define __stub macros. */
                    897: /* Override any gcc2 internal prototype to avoid an error.  */
                    898: char $ac_func(); 
                    899: 
                    900: int main() { return 0; }
                    901: int t() {
                    902: 
                    903: /* The GNU C library defines this for functions which it implements
                    904:     to always fail with ENOSYS.  Some functions are actually named
                    905:     something starting with __ and the normal name is an alias.  */
                    906: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                    907: choke me
                    908: #else
                    909: $ac_func();
                    910: #endif
                    911: 
                    912: ; return 0; }
                    913: EOF
                    914: if eval $ac_link; then
                    915:   rm -rf conftest*
                    916:   eval "ac_cv_func_$ac_func=yes"
                    917: else
                    918:   rm -rf conftest*
                    919:   eval "ac_cv_func_$ac_func=no"
                    920: fi
                    921: rm -f conftest*
1.1       pazsan    922: 
1.6       anton     923: fi
                    924: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                    925:   echo "$ac_t""yes" 1>&4
                    926:   :
1.1       pazsan    927: else
1.6       anton     928:   echo "$ac_t""no" 1>&4
                    929: LIBOBJS="$LIBOBJS ${ac_func}.o"
1.1       pazsan    930: fi
                    931: 
1.6       anton     932: done
                    933: 
                    934: 
                    935: 
                    936: trap '' 1 2 15
                    937: if test -w $cache_file; then
                    938: echo "updating cache $cache_file"
                    939: cat > $cache_file <<\EOF
                    940: # This file is a shell script that caches the results of configure
                    941: # tests run on this system so they can be shared between configure
                    942: # scripts and configure runs.  It is not useful on other systems.
                    943: # If it contains results you don't want to keep, you may remove or edit it.
                    944: #
                    945: # By default, configure uses ./config.cache as the cache file,
                    946: # creating it if it does not exist already.  You can give configure
                    947: # the --cache-file=FILE option to use a different cache file; that is
                    948: # what configure does when it calls configure scripts in
                    949: # subdirectories, so they share the cache.
                    950: # Giving --cache-file=/dev/null disables caching, for debugging configure.
                    951: # config.status only pays attention to the cache file if you give it the
                    952: # --recheck option to rerun configure.
                    953: #
                    954: EOF
                    955: # Ultrix sh set writes to stderr and can't be redirected directly.
                    956: (set) 2>&1 |
                    957:   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/: \${\1='\2'}/p" \
                    958:   >> $cache_file
                    959: else
                    960: echo "not updating unwritable cache $cache_file"
1.3       pazsan    961: fi
                    962: 
1.6       anton     963: trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
                    964: 
                    965: test "x$prefix" = xNONE && prefix=$ac_default_prefix
                    966: # Let make expand exec_prefix.
                    967: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
                    968: 
                    969: # Any assignment to VPATH causes Sun make to only execute
                    970: # the first set of double-colon rules, so remove it if not needed.
                    971: # If there is a colon in the path, we need to keep it.
                    972: if test "x$srcdir" = x.; then
                    973:   ac_vpsub='/^[        ]*VPATH[        ]*=[^:]*$/d'
1.5       pazsan    974: fi
1.1       pazsan    975: 
1.6       anton     976: trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
                    977: 
                    978: # Transform confdefs.h into DEFS.
                    979: # Protect against shell expansion while executing Makefile rules.
                    980: # Protect against Makefile macro expansion.
                    981: cat > conftest.defs <<\EOF
                    982: s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%-D\1=\2%g
                    983: s%[    `~#$^&*(){}\\|;'"<>?]%\\&%g
                    984: s%\[%\\&%g
                    985: s%\]%\\&%g
                    986: s%\$%$$%g
                    987: EOF
                    988: DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
                    989: rm -f conftest.defs
                    990: 
                    991: 
                    992: # Without the "./", some shells look in PATH for config.status.
                    993: : ${CONFIG_STATUS=./config.status}
                    994: 
                    995: echo creating $CONFIG_STATUS
                    996: rm -f $CONFIG_STATUS
                    997: cat > $CONFIG_STATUS <<EOF
                    998: #!/bin/sh
                    999: # Generated automatically by configure.
                   1000: # Run this file to recreate the current configuration.
                   1001: # This directory was configured as follows,
                   1002: # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
                   1003: #
                   1004: # $0 $ac_configure_args
                   1005: #
                   1006: # Compiler output produced by configure, useful for debugging
                   1007: # configure, is in ./config.log if it exists.
                   1008: 
                   1009: ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
                   1010: for ac_option
                   1011: do
                   1012:   case "\$ac_option" in
                   1013:   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
                   1014:     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
                   1015:     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
                   1016:   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
                   1017:     echo "$CONFIG_STATUS generated by autoconf version 2.1"
                   1018:     exit 0 ;;
                   1019:   -help | --help | --hel | --he | --h)
                   1020:     echo "\$ac_cs_usage"; exit 0 ;;
                   1021:   *) echo "\$ac_cs_usage"; exit 1 ;;
                   1022:   esac
                   1023: done
                   1024: 
                   1025: ac_given_srcdir=$srcdir
                   1026: ac_given_INSTALL="$INSTALL"
                   1027: 
                   1028: trap 'rm -f Makefile; exit 1' 1 2 15
                   1029: 
                   1030: # Protect against being on the right side of a sed subst in config.status. 
                   1031: sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g; 
                   1032:  s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
                   1033: $ac_vpsub
                   1034: $extrasub
                   1035: s%@CFLAGS@%$CFLAGS%g
                   1036: s%@CPPFLAGS@%$CPPFLAGS%g
                   1037: s%@CXXFLAGS@%$CXXFLAGS%g
                   1038: s%@DEFS@%$DEFS%g
                   1039: s%@LDFLAGS@%$LDFLAGS%g
                   1040: s%@LIBS@%$LIBS%g
                   1041: s%@exec_prefix@%$exec_prefix%g
                   1042: s%@prefix@%$prefix%g
                   1043: s%@program_transform_name@%$program_transform_name%g
                   1044: s%@host@%$host%g
                   1045: s%@host_alias@%$host_alias%g
                   1046: s%@host_cpu@%$host_cpu%g
                   1047: s%@host_vendor@%$host_vendor%g
                   1048: s%@host_os@%$host_os%g
                   1049: s%@MAKE_EXE@%$MAKE_EXE%g
                   1050: s%@LINK_KERNL32L@%$LINK_KERNL32L%g
                   1051: s%@LINK_KERNL32B@%$LINK_KERNL32B%g
1.9       anton    1052: s%@KERNAL@%$KERNAL%g
1.6       anton    1053: s%@LN_S@%$LN_S%g
                   1054: s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
                   1055: s%@INSTALL_DATA@%$INSTALL_DATA%g
                   1056: s%@LIBOBJS@%$LIBOBJS%g
                   1057: s%@getopt_long@%$getopt_long%g
                   1058: 
                   1059: CEOF
                   1060: EOF
                   1061: cat >> $CONFIG_STATUS <<EOF
                   1062: 
                   1063: CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
                   1064: EOF
                   1065: cat >> $CONFIG_STATUS <<\EOF
                   1066: for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
                   1067:   # Support "outfile[:infile]", defaulting infile="outfile.in".
                   1068:   case "$ac_file" in
                   1069:   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
                   1070:        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
                   1071:   *) ac_file_in="${ac_file}.in" ;;
                   1072:   esac
                   1073: 
                   1074:   # Adjust relative srcdir, etc. for subdirectories.
                   1075: 
                   1076:   # Remove last slash and all that follows it.  Not all systems have dirname.
                   1077:   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
                   1078:   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
                   1079:     # The file is in a subdirectory.
                   1080:     test ! -d "$ac_dir" && mkdir "$ac_dir"
                   1081:     ac_dir_suffix="/$ac_dir"
                   1082:     # A "../" for each directory in $ac_dir_suffix.
                   1083:     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
                   1084:   else
                   1085:     ac_dir_suffix= ac_dots=
                   1086:   fi
                   1087: 
                   1088:   case "$ac_given_srcdir" in
                   1089:   .)  srcdir=.
                   1090:       if test -z "$ac_dots"; then top_srcdir=.
                   1091:       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
                   1092:   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
                   1093:   *) # Relative path.
                   1094:     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
                   1095:     top_srcdir="$ac_dots$ac_given_srcdir" ;;
                   1096:   esac
                   1097: 
                   1098:   case "$ac_given_INSTALL" in
                   1099:   [/$]*) INSTALL="$ac_given_INSTALL" ;;
                   1100:   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
                   1101:   esac
                   1102:   echo creating "$ac_file"
                   1103:   rm -f "$ac_file"
                   1104:   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
                   1105:   case "$ac_file" in
                   1106:   *Makefile*) ac_comsub="1i\\
                   1107: # $configure_input" ;;
                   1108:   *) ac_comsub= ;;
                   1109:   esac
                   1110:   sed -e "$ac_comsub
                   1111: s%@configure_input@%$configure_input%g
                   1112: s%@srcdir@%$srcdir%g
                   1113: s%@top_srcdir@%$top_srcdir%g
                   1114: s%@INSTALL@%$INSTALL%g
                   1115: " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
                   1116: fi; done
                   1117: rm -f conftest.subs
                   1118: 
                   1119: EOF
                   1120: 
                   1121: cat >> $CONFIG_STATUS <<EOF
                   1122: ac_sources="${mach_h}.h kernl32${bytesex}.fi"
                   1123: ac_dests="machine.h gforth.fi"
                   1124: EOF
                   1125: 
                   1126: cat >> $CONFIG_STATUS <<\EOF
                   1127: srcdir=$ac_given_srcdir
                   1128: while test -n "$ac_sources"; do
                   1129:   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
                   1130:   set $ac_sources; ac_source=$1; shift; ac_sources=$*
                   1131: 
                   1132:   echo "linking $srcdir/$ac_source to $ac_dest"
                   1133: 
                   1134:   if test ! -r $srcdir/$ac_source; then
                   1135:     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
                   1136:   fi
                   1137:   rm -f $ac_dest
                   1138: 
                   1139:   # Make relative symlinks.
                   1140:   # Remove last slash and all that follows it.  Not all systems have dirname.
                   1141:   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
                   1142:   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
                   1143:     # The dest file is in a subdirectory.
                   1144:     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
                   1145:     ac_dest_dir_suffix="/$ac_dest_dir"
                   1146:     # A "../" for each directory in $ac_dest_dir_suffix.
                   1147:     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
                   1148:   else
                   1149:     ac_dest_dir_suffix= ac_dots=
                   1150:   fi
                   1151: 
                   1152:   case "$srcdir" in
                   1153:   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
                   1154:   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
                   1155:   esac
                   1156: 
                   1157:   # Make a symlink if possible; otherwise try a hard link.
                   1158:   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
                   1159:     ln $srcdir/$ac_source $ac_dest; then :
                   1160:   else
                   1161:     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
                   1162:   fi
                   1163: done
                   1164: 
                   1165: 
1.1       pazsan   1166: exit 0
1.6       anton    1167: EOF
                   1168: chmod +x $CONFIG_STATUS
                   1169: rm -fr confdefs* $ac_clean_files
                   1170: test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS
                   1171: 
1.1       pazsan   1172: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>