[BACK]Return to configure CVS log [TXT][DIR] Up to [local] / OpenXM / src / ox_toolkit

Annotation of OpenXM/src/ox_toolkit/configure, Revision 1.8

1.1       ohara       1: #! /bin/sh
                      2: # Guess values for system-dependent variables and create Makefiles.
1.4       takayama    3: # Generated by GNU Autoconf 2.53.
1.1       ohara       4: #
1.4       takayama    5: # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
                      6: # Free Software Foundation, Inc.
1.1       ohara       7: # This configure script is free software; the Free Software Foundation
                      8: # gives unlimited permission to copy, distribute and modify it.
                      9:
1.4       takayama   10: if expr a : '\(a\)' >/dev/null 2>&1; then
                     11:   as_expr=expr
                     12: else
                     13:   as_expr=false
                     14: fi
                     15:
                     16:
                     17: ## --------------------- ##
                     18: ## M4sh Initialization.  ##
                     19: ## --------------------- ##
                     20:
                     21: # Be Bourne compatible
                     22: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
                     23:   emulate sh
                     24:   NULLCMD=:
                     25: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
                     26:   set -o posix
                     27: fi
                     28:
                     29: # NLS nuisances.
                     30: # Support unset when possible.
                     31: if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
                     32:   as_unset=unset
                     33: else
                     34:   as_unset=false
                     35: fi
                     36:
                     37: (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
                     38:     { $as_unset LANG || test "${LANG+set}" != set; } ||
                     39:       { LANG=C; export LANG; }
                     40: (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
                     41:     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
                     42:       { LC_ALL=C; export LC_ALL; }
                     43: (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
                     44:     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
                     45:       { LC_TIME=C; export LC_TIME; }
                     46: (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
                     47:     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
                     48:       { LC_CTYPE=C; export LC_CTYPE; }
                     49: (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
                     50:     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
                     51:       { LANGUAGE=C; export LANGUAGE; }
                     52: (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
                     53:     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
                     54:       { LC_COLLATE=C; export LC_COLLATE; }
                     55: (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
                     56:     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
                     57:       { LC_NUMERIC=C; export LC_NUMERIC; }
                     58: (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
                     59:     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
                     60:       { LC_MESSAGES=C; export LC_MESSAGES; }
                     61:
                     62:
                     63: # Name of the executable.
                     64: as_me=`(basename "$0") 2>/dev/null ||
                     65: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
                     66:         X"$0" : 'X\(//\)$' \| \
                     67:         X"$0" : 'X\(/\)$' \| \
                     68:         .     : '\(.\)' 2>/dev/null ||
                     69: echo X/"$0" |
                     70:     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
                     71:          /^X\/\(\/\/\)$/{ s//\1/; q; }
                     72:          /^X\/\(\/\).*/{ s//\1/; q; }
                     73:          s/.*/./; q'`
                     74:
                     75: # PATH needs CR, and LINENO needs CR and PATH.
                     76: # Avoid depending upon Character Ranges.
                     77: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
                     78: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
                     79: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
                     80: as_cr_digits='0123456789'
                     81: as_cr_alnum=$as_cr_Letters$as_cr_digits
                     82:
                     83: # The user is always right.
                     84: if test "${PATH_SEPARATOR+set}" != set; then
                     85:   echo "#! /bin/sh" >conftest.sh
                     86:   echo  "exit 0"   >>conftest.sh
                     87:   chmod +x conftest.sh
                     88:   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
                     89:     PATH_SEPARATOR=';'
                     90:   else
                     91:     PATH_SEPARATOR=:
                     92:   fi
                     93:   rm -f conftest.sh
                     94: fi
                     95:
                     96:
                     97:   as_lineno_1=$LINENO
                     98:   as_lineno_2=$LINENO
                     99:   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
                    100:   test "x$as_lineno_1" != "x$as_lineno_2" &&
                    101:   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
                    102:   # Find who we are.  Look in the path if we contain no path at all
                    103:   # relative or not.
                    104:   case $0 in
                    105:     *[\\/]* ) as_myself=$0 ;;
                    106:     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                    107: for as_dir in $PATH
                    108: do
                    109:   IFS=$as_save_IFS
                    110:   test -z "$as_dir" && as_dir=.
                    111:   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
                    112: done
                    113:
                    114:        ;;
                    115:   esac
                    116:   # We did not find ourselves, most probably we were run as `sh COMMAND'
                    117:   # in which case we are not to be found in the path.
                    118:   if test "x$as_myself" = x; then
                    119:     as_myself=$0
                    120:   fi
                    121:   if test ! -f "$as_myself"; then
                    122:     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
                    123:    { (exit 1); exit 1; }; }
                    124:   fi
                    125:   case $CONFIG_SHELL in
                    126:   '')
                    127:     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                    128: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
                    129: do
                    130:   IFS=$as_save_IFS
                    131:   test -z "$as_dir" && as_dir=.
                    132:   for as_base in sh bash ksh sh5; do
                    133:         case $as_dir in
                    134:         /*)
                    135:           if ("$as_dir/$as_base" -c '
                    136:   as_lineno_1=$LINENO
                    137:   as_lineno_2=$LINENO
                    138:   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
                    139:   test "x$as_lineno_1" != "x$as_lineno_2" &&
                    140:   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
                    141:             CONFIG_SHELL=$as_dir/$as_base
                    142:             export CONFIG_SHELL
                    143:             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
                    144:           fi;;
                    145:         esac
                    146:        done
                    147: done
                    148: ;;
                    149:   esac
                    150:
                    151:   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
                    152:   # uniformly replaced by the line number.  The first 'sed' inserts a
                    153:   # line-number line before each line; the second 'sed' does the real
                    154:   # work.  The second script uses 'N' to pair each line-number line
                    155:   # with the numbered line, and appends trailing '-' during
                    156:   # substitution so that $LINENO is not a special case at line end.
                    157:   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
                    158:   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
                    159:   sed '=' <$as_myself |
                    160:     sed '
                    161:       N
                    162:       s,$,-,
                    163:       : loop
                    164:       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
                    165:       t loop
                    166:       s,-$,,
                    167:       s,^['$as_cr_digits']*\n,,
                    168:     ' >$as_me.lineno &&
                    169:   chmod +x $as_me.lineno ||
                    170:     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
                    171:    { (exit 1); exit 1; }; }
                    172:
                    173:   # Don't try to exec as it changes $[0], causing all sort of problems
                    174:   # (the dirname of $[0] is not the place where we might find the
                    175:   # original and so on.  Autoconf is especially sensible to this).
                    176:   . ./$as_me.lineno
                    177:   # Exit status is that of the last command.
                    178:   exit
                    179: }
                    180:
                    181:
                    182: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
                    183:   *c*,-n*) ECHO_N= ECHO_C='
                    184: ' ECHO_T='     ' ;;
                    185:   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
                    186:   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
                    187: esac
                    188:
                    189: if expr a : '\(a\)' >/dev/null 2>&1; then
                    190:   as_expr=expr
                    191: else
                    192:   as_expr=false
                    193: fi
                    194:
                    195: rm -f conf$$ conf$$.exe conf$$.file
                    196: echo >conf$$.file
                    197: if ln -s conf$$.file conf$$ 2>/dev/null; then
                    198:   # We could just check for DJGPP; but this test a) works b) is more generic
                    199:   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
                    200:   if test -f conf$$.exe; then
                    201:     # Don't use ln at all; we don't have any links
                    202:     as_ln_s='cp -p'
                    203:   else
                    204:     as_ln_s='ln -s'
                    205:   fi
                    206: elif ln conf$$.file conf$$ 2>/dev/null; then
                    207:   as_ln_s=ln
                    208: else
                    209:   as_ln_s='cp -p'
                    210: fi
                    211: rm -f conf$$ conf$$.exe conf$$.file
                    212:
                    213: as_executable_p="test -f"
                    214:
                    215: # Sed expression to map a string onto a valid CPP name.
                    216: as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
                    217:
                    218: # Sed expression to map a string onto a valid variable name.
                    219: as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
                    220:
                    221:
                    222: # IFS
                    223: # We need space, tab and new line, in precisely that order.
                    224: as_nl='
                    225: '
                    226: IFS="  $as_nl"
                    227:
                    228: # CDPATH.
                    229: $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
                    230:
                    231:
                    232: # Name of the host.
                    233: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
                    234: # so uname gets run too.
                    235: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
                    236:
                    237: exec 6>&1
                    238:
                    239: #
                    240: # Initializations.
                    241: #
1.1       ohara     242: ac_default_prefix=/usr/local
1.4       takayama  243: cross_compiling=no
                    244: subdirs=
                    245: MFLAGS=
                    246: MAKEFLAGS=
                    247: SHELL=${CONFIG_SHELL-/bin/sh}
                    248:
                    249: # Maximum number of lines to put in a shell here document.
                    250: # This variable seems obsolete.  It should probably be removed, and
                    251: # only ac_max_sed_lines should be used.
                    252: : ${ac_max_here_lines=38}
                    253:
                    254: # Identity of this package.
                    255: PACKAGE_NAME=
                    256: PACKAGE_TARNAME=
                    257: PACKAGE_VERSION=
                    258: PACKAGE_STRING=
                    259: PACKAGE_BUGREPORT=
                    260:
                    261: ac_unique_file="mysocket.c"
1.1       ohara     262:
                    263: # Initialize some variables set by options.
1.4       takayama  264: ac_init_help=
                    265: ac_init_version=false
1.1       ohara     266: # The variables have the same names as the options, with
                    267: # dashes changed to underlines.
1.4       takayama  268: cache_file=/dev/null
1.1       ohara     269: exec_prefix=NONE
                    270: no_create=
                    271: no_recursion=
                    272: prefix=NONE
                    273: program_prefix=NONE
                    274: program_suffix=NONE
                    275: program_transform_name=s,x,x,
                    276: silent=
                    277: site=
                    278: srcdir=
                    279: verbose=
                    280: x_includes=NONE
                    281: x_libraries=NONE
1.4       takayama  282:
                    283: # Installation directory options.
                    284: # These are left unexpanded so users can "make install exec_prefix=/foo"
                    285: # and all the variables that are supposed to be based on exec_prefix
                    286: # by default will actually change.
                    287: # Use braces instead of parens because sh, perl, etc. also accept them.
1.1       ohara     288: bindir='${exec_prefix}/bin'
                    289: sbindir='${exec_prefix}/sbin'
                    290: libexecdir='${exec_prefix}/libexec'
                    291: datadir='${prefix}/share'
                    292: sysconfdir='${prefix}/etc'
                    293: sharedstatedir='${prefix}/com'
                    294: localstatedir='${prefix}/var'
                    295: libdir='${exec_prefix}/lib'
                    296: includedir='${prefix}/include'
                    297: oldincludedir='/usr/include'
                    298: infodir='${prefix}/info'
                    299: mandir='${prefix}/man'
                    300:
                    301: ac_prev=
                    302: for ac_option
                    303: do
                    304:   # If the previous option needs an argument, assign it.
                    305:   if test -n "$ac_prev"; then
                    306:     eval "$ac_prev=\$ac_option"
                    307:     ac_prev=
                    308:     continue
                    309:   fi
                    310:
1.4       takayama  311:   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
1.1       ohara     312:
                    313:   # Accept the important Cygnus configure options, so we can diagnose typos.
                    314:
1.4       takayama  315:   case $ac_option in
1.1       ohara     316:
                    317:   -bindir | --bindir | --bindi | --bind | --bin | --bi)
                    318:     ac_prev=bindir ;;
                    319:   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.4       takayama  320:     bindir=$ac_optarg ;;
1.1       ohara     321:
                    322:   -build | --build | --buil | --bui | --bu)
1.4       takayama  323:     ac_prev=build_alias ;;
1.1       ohara     324:   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.4       takayama  325:     build_alias=$ac_optarg ;;
1.1       ohara     326:
                    327:   -cache-file | --cache-file | --cache-fil | --cache-fi \
                    328:   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
                    329:     ac_prev=cache_file ;;
                    330:   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
                    331:   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1.4       takayama  332:     cache_file=$ac_optarg ;;
                    333:
                    334:   --config-cache | -C)
                    335:     cache_file=config.cache ;;
1.1       ohara     336:
                    337:   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
                    338:     ac_prev=datadir ;;
                    339:   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
                    340:   | --da=*)
1.4       takayama  341:     datadir=$ac_optarg ;;
1.1       ohara     342:
                    343:   -disable-* | --disable-*)
1.4       takayama  344:     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1       ohara     345:     # Reject names that are not valid shell variable names.
1.4       takayama  346:     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
                    347:       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
                    348:    { (exit 1); exit 1; }; }
                    349:     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
                    350:     eval "enable_$ac_feature=no" ;;
1.1       ohara     351:
                    352:   -enable-* | --enable-*)
1.4       takayama  353:     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1       ohara     354:     # Reject names that are not valid shell variable names.
1.4       takayama  355:     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
                    356:       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
                    357:    { (exit 1); exit 1; }; }
                    358:     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
                    359:     case $ac_option in
                    360:       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1.1       ohara     361:       *) ac_optarg=yes ;;
                    362:     esac
1.4       takayama  363:     eval "enable_$ac_feature='$ac_optarg'" ;;
1.1       ohara     364:
                    365:   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
                    366:   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
                    367:   | --exec | --exe | --ex)
                    368:     ac_prev=exec_prefix ;;
                    369:   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
                    370:   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
                    371:   | --exec=* | --exe=* | --ex=*)
1.4       takayama  372:     exec_prefix=$ac_optarg ;;
1.1       ohara     373:
                    374:   -gas | --gas | --ga | --g)
                    375:     # Obsolete; use --with-gas.
                    376:     with_gas=yes ;;
                    377:
1.4       takayama  378:   -help | --help | --hel | --he | -h)
                    379:     ac_init_help=long ;;
                    380:   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
                    381:     ac_init_help=recursive ;;
                    382:   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
                    383:     ac_init_help=short ;;
1.1       ohara     384:
                    385:   -host | --host | --hos | --ho)
1.4       takayama  386:     ac_prev=host_alias ;;
1.1       ohara     387:   -host=* | --host=* | --hos=* | --ho=*)
1.4       takayama  388:     host_alias=$ac_optarg ;;
1.1       ohara     389:
                    390:   -includedir | --includedir | --includedi | --included | --include \
                    391:   | --includ | --inclu | --incl | --inc)
                    392:     ac_prev=includedir ;;
                    393:   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
                    394:   | --includ=* | --inclu=* | --incl=* | --inc=*)
1.4       takayama  395:     includedir=$ac_optarg ;;
1.1       ohara     396:
                    397:   -infodir | --infodir | --infodi | --infod | --info | --inf)
                    398:     ac_prev=infodir ;;
                    399:   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.4       takayama  400:     infodir=$ac_optarg ;;
1.1       ohara     401:
                    402:   -libdir | --libdir | --libdi | --libd)
                    403:     ac_prev=libdir ;;
                    404:   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.4       takayama  405:     libdir=$ac_optarg ;;
1.1       ohara     406:
                    407:   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
                    408:   | --libexe | --libex | --libe)
                    409:     ac_prev=libexecdir ;;
                    410:   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
                    411:   | --libexe=* | --libex=* | --libe=*)
1.4       takayama  412:     libexecdir=$ac_optarg ;;
1.1       ohara     413:
                    414:   -localstatedir | --localstatedir | --localstatedi | --localstated \
                    415:   | --localstate | --localstat | --localsta | --localst \
                    416:   | --locals | --local | --loca | --loc | --lo)
                    417:     ac_prev=localstatedir ;;
                    418:   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
                    419:   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
                    420:   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
1.4       takayama  421:     localstatedir=$ac_optarg ;;
1.1       ohara     422:
                    423:   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
                    424:     ac_prev=mandir ;;
                    425:   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.4       takayama  426:     mandir=$ac_optarg ;;
1.1       ohara     427:
                    428:   -nfp | --nfp | --nf)
                    429:     # Obsolete; use --without-fp.
                    430:     with_fp=no ;;
                    431:
                    432:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1.4       takayama  433:   | --no-cr | --no-c | -n)
1.1       ohara     434:     no_create=yes ;;
                    435:
                    436:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
                    437:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
                    438:     no_recursion=yes ;;
                    439:
                    440:   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
                    441:   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
                    442:   | --oldin | --oldi | --old | --ol | --o)
                    443:     ac_prev=oldincludedir ;;
                    444:   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
                    445:   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
                    446:   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1.4       takayama  447:     oldincludedir=$ac_optarg ;;
1.1       ohara     448:
                    449:   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
                    450:     ac_prev=prefix ;;
                    451:   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.4       takayama  452:     prefix=$ac_optarg ;;
1.1       ohara     453:
                    454:   -program-prefix | --program-prefix | --program-prefi | --program-pref \
                    455:   | --program-pre | --program-pr | --program-p)
                    456:     ac_prev=program_prefix ;;
                    457:   -program-prefix=* | --program-prefix=* | --program-prefi=* \
                    458:   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1.4       takayama  459:     program_prefix=$ac_optarg ;;
1.1       ohara     460:
                    461:   -program-suffix | --program-suffix | --program-suffi | --program-suff \
                    462:   | --program-suf | --program-su | --program-s)
                    463:     ac_prev=program_suffix ;;
                    464:   -program-suffix=* | --program-suffix=* | --program-suffi=* \
                    465:   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1.4       takayama  466:     program_suffix=$ac_optarg ;;
1.1       ohara     467:
                    468:   -program-transform-name | --program-transform-name \
                    469:   | --program-transform-nam | --program-transform-na \
                    470:   | --program-transform-n | --program-transform- \
                    471:   | --program-transform | --program-transfor \
                    472:   | --program-transfo | --program-transf \
                    473:   | --program-trans | --program-tran \
                    474:   | --progr-tra | --program-tr | --program-t)
                    475:     ac_prev=program_transform_name ;;
                    476:   -program-transform-name=* | --program-transform-name=* \
                    477:   | --program-transform-nam=* | --program-transform-na=* \
                    478:   | --program-transform-n=* | --program-transform-=* \
                    479:   | --program-transform=* | --program-transfor=* \
                    480:   | --program-transfo=* | --program-transf=* \
                    481:   | --program-trans=* | --program-tran=* \
                    482:   | --progr-tra=* | --program-tr=* | --program-t=*)
1.4       takayama  483:     program_transform_name=$ac_optarg ;;
1.1       ohara     484:
                    485:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                    486:   | -silent | --silent | --silen | --sile | --sil)
                    487:     silent=yes ;;
                    488:
                    489:   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
                    490:     ac_prev=sbindir ;;
                    491:   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
                    492:   | --sbi=* | --sb=*)
1.4       takayama  493:     sbindir=$ac_optarg ;;
1.1       ohara     494:
                    495:   -sharedstatedir | --sharedstatedir | --sharedstatedi \
                    496:   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
                    497:   | --sharedst | --shareds | --shared | --share | --shar \
                    498:   | --sha | --sh)
                    499:     ac_prev=sharedstatedir ;;
                    500:   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
                    501:   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
                    502:   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
                    503:   | --sha=* | --sh=*)
1.4       takayama  504:     sharedstatedir=$ac_optarg ;;
1.1       ohara     505:
                    506:   -site | --site | --sit)
                    507:     ac_prev=site ;;
                    508:   -site=* | --site=* | --sit=*)
1.4       takayama  509:     site=$ac_optarg ;;
1.2       ohara     510:
1.1       ohara     511:   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                    512:     ac_prev=srcdir ;;
                    513:   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.4       takayama  514:     srcdir=$ac_optarg ;;
1.1       ohara     515:
                    516:   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
                    517:   | --syscon | --sysco | --sysc | --sys | --sy)
                    518:     ac_prev=sysconfdir ;;
                    519:   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
                    520:   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1.4       takayama  521:     sysconfdir=$ac_optarg ;;
1.1       ohara     522:
                    523:   -target | --target | --targe | --targ | --tar | --ta | --t)
1.4       takayama  524:     ac_prev=target_alias ;;
1.1       ohara     525:   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.4       takayama  526:     target_alias=$ac_optarg ;;
1.1       ohara     527:
                    528:   -v | -verbose | --verbose | --verbos | --verbo | --verb)
                    529:     verbose=yes ;;
                    530:
1.4       takayama  531:   -version | --version | --versio | --versi | --vers | -V)
                    532:     ac_init_version=: ;;
1.1       ohara     533:
                    534:   -with-* | --with-*)
1.4       takayama  535:     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1       ohara     536:     # Reject names that are not valid shell variable names.
1.4       takayama  537:     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
                    538:       { echo "$as_me: error: invalid package name: $ac_package" >&2
                    539:    { (exit 1); exit 1; }; }
1.1       ohara     540:     ac_package=`echo $ac_package| sed 's/-/_/g'`
1.4       takayama  541:     case $ac_option in
                    542:       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1.1       ohara     543:       *) ac_optarg=yes ;;
                    544:     esac
1.4       takayama  545:     eval "with_$ac_package='$ac_optarg'" ;;
1.1       ohara     546:
                    547:   -without-* | --without-*)
1.4       takayama  548:     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1       ohara     549:     # Reject names that are not valid shell variable names.
1.4       takayama  550:     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
                    551:       { echo "$as_me: error: invalid package name: $ac_package" >&2
                    552:    { (exit 1); exit 1; }; }
                    553:     ac_package=`echo $ac_package | sed 's/-/_/g'`
                    554:     eval "with_$ac_package=no" ;;
1.1       ohara     555:
                    556:   --x)
                    557:     # Obsolete; use --with-x.
                    558:     with_x=yes ;;
                    559:
                    560:   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
                    561:   | --x-incl | --x-inc | --x-in | --x-i)
                    562:     ac_prev=x_includes ;;
                    563:   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
                    564:   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1.4       takayama  565:     x_includes=$ac_optarg ;;
1.1       ohara     566:
                    567:   -x-libraries | --x-libraries | --x-librarie | --x-librari \
                    568:   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
                    569:     ac_prev=x_libraries ;;
                    570:   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
                    571:   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1.4       takayama  572:     x_libraries=$ac_optarg ;;
1.1       ohara     573:
1.4       takayama  574:   -*) { echo "$as_me: error: unrecognized option: $ac_option
                    575: Try \`$0 --help' for more information." >&2
                    576:    { (exit 1); exit 1; }; }
1.1       ohara     577:     ;;
                    578:
1.4       takayama  579:   *=*)
                    580:     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
                    581:     # Reject names that are not valid shell variable names.
                    582:     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
                    583:       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
                    584:    { (exit 1); exit 1; }; }
                    585:     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
                    586:     eval "$ac_envvar='$ac_optarg'"
                    587:     export $ac_envvar ;;
                    588:
1.1       ohara     589:   *)
1.4       takayama  590:     # FIXME: should be removed in autoconf 3.0.
                    591:     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
                    592:     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
                    593:       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
                    594:     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1.1       ohara     595:     ;;
                    596:
                    597:   esac
                    598: done
                    599:
                    600: if test -n "$ac_prev"; then
1.4       takayama  601:   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
                    602:   { echo "$as_me: error: missing argument to $ac_option" >&2
                    603:    { (exit 1); exit 1; }; }
1.1       ohara     604: fi
                    605:
1.4       takayama  606: # Be sure to have absolute paths.
                    607: for ac_var in exec_prefix prefix
                    608: do
                    609:   eval ac_val=$`echo $ac_var`
                    610:   case $ac_val in
                    611:     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
                    612:     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
                    613:    { (exit 1); exit 1; }; };;
                    614:   esac
                    615: done
1.1       ohara     616:
1.4       takayama  617: # Be sure to have absolute paths.
                    618: for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
                    619:               localstatedir libdir includedir oldincludedir infodir mandir
1.1       ohara     620: do
1.4       takayama  621:   eval ac_val=$`echo $ac_var`
                    622:   case $ac_val in
                    623:     [\\/$]* | ?:[\\/]* ) ;;
                    624:     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
                    625:    { (exit 1); exit 1; }; };;
1.1       ohara     626:   esac
                    627: done
                    628:
1.4       takayama  629: # There might be people who depend on the old broken behavior: `$host'
                    630: # used to hold the argument of --host etc.
                    631: # FIXME: To remove some day.
                    632: build=$build_alias
                    633: host=$host_alias
                    634: target=$target_alias
                    635:
                    636: # FIXME: To remove some day.
                    637: if test "x$host_alias" != x; then
                    638:   if test "x$build_alias" = x; then
                    639:     cross_compiling=maybe
                    640:     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
                    641:     If a cross compiler is detected then cross compile mode will be used." >&2
                    642:   elif test "x$build_alias" != "x$host_alias"; then
                    643:     cross_compiling=yes
                    644:   fi
                    645: fi
                    646:
                    647: ac_tool_prefix=
                    648: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1.1       ohara     649:
1.4       takayama  650: test "$silent" = yes && exec 6>/dev/null
1.1       ohara     651:
                    652:
                    653: # Find the source files, if location was not specified.
                    654: if test -z "$srcdir"; then
                    655:   ac_srcdir_defaulted=yes
                    656:   # Try the directory containing this script, then its parent.
1.4       takayama  657:   ac_confdir=`(dirname "$0") 2>/dev/null ||
                    658: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                    659:          X"$0" : 'X\(//\)[^/]' \| \
                    660:          X"$0" : 'X\(//\)$' \| \
                    661:          X"$0" : 'X\(/\)' \| \
                    662:          .     : '\(.\)' 2>/dev/null ||
                    663: echo X"$0" |
                    664:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
                    665:          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
                    666:          /^X\(\/\/\)$/{ s//\1/; q; }
                    667:          /^X\(\/\).*/{ s//\1/; q; }
                    668:          s/.*/./; q'`
1.1       ohara     669:   srcdir=$ac_confdir
                    670:   if test ! -r $srcdir/$ac_unique_file; then
                    671:     srcdir=..
                    672:   fi
                    673: else
                    674:   ac_srcdir_defaulted=no
                    675: fi
                    676: if test ! -r $srcdir/$ac_unique_file; then
                    677:   if test "$ac_srcdir_defaulted" = yes; then
1.4       takayama  678:     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
                    679:    { (exit 1); exit 1; }; }
1.1       ohara     680:   else
1.4       takayama  681:     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
                    682:    { (exit 1); exit 1; }; }
1.1       ohara     683:   fi
                    684: fi
1.4       takayama  685: srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
                    686: ac_env_build_alias_set=${build_alias+set}
                    687: ac_env_build_alias_value=$build_alias
                    688: ac_cv_env_build_alias_set=${build_alias+set}
                    689: ac_cv_env_build_alias_value=$build_alias
                    690: ac_env_host_alias_set=${host_alias+set}
                    691: ac_env_host_alias_value=$host_alias
                    692: ac_cv_env_host_alias_set=${host_alias+set}
                    693: ac_cv_env_host_alias_value=$host_alias
                    694: ac_env_target_alias_set=${target_alias+set}
                    695: ac_env_target_alias_value=$target_alias
                    696: ac_cv_env_target_alias_set=${target_alias+set}
                    697: ac_cv_env_target_alias_value=$target_alias
                    698: ac_env_CC_set=${CC+set}
                    699: ac_env_CC_value=$CC
                    700: ac_cv_env_CC_set=${CC+set}
                    701: ac_cv_env_CC_value=$CC
                    702: ac_env_CFLAGS_set=${CFLAGS+set}
                    703: ac_env_CFLAGS_value=$CFLAGS
                    704: ac_cv_env_CFLAGS_set=${CFLAGS+set}
                    705: ac_cv_env_CFLAGS_value=$CFLAGS
                    706: ac_env_LDFLAGS_set=${LDFLAGS+set}
                    707: ac_env_LDFLAGS_value=$LDFLAGS
                    708: ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
                    709: ac_cv_env_LDFLAGS_value=$LDFLAGS
                    710: ac_env_CPPFLAGS_set=${CPPFLAGS+set}
                    711: ac_env_CPPFLAGS_value=$CPPFLAGS
                    712: ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
                    713: ac_cv_env_CPPFLAGS_value=$CPPFLAGS
                    714: ac_env_CPP_set=${CPP+set}
                    715: ac_env_CPP_value=$CPP
                    716: ac_cv_env_CPP_set=${CPP+set}
                    717: ac_cv_env_CPP_value=$CPP
                    718:
                    719: #
                    720: # Report the --help message.
                    721: #
                    722: if test "$ac_init_help" = "long"; then
                    723:   # Omit some internal or obsolete options to make the list less imposing.
                    724:   # This message is too long to be a string in the A/UX 3.1 sh.
                    725:   cat <<_ACEOF
                    726: \`configure' configures this package to adapt to many kinds of systems.
                    727:
                    728: Usage: $0 [OPTION]... [VAR=VALUE]...
                    729:
                    730: To assign environment variables (e.g., CC, CFLAGS...), specify them as
                    731: VAR=VALUE.  See below for descriptions of some of the useful variables.
                    732:
                    733: Defaults for the options are specified in brackets.
                    734:
                    735: Configuration:
                    736:   -h, --help              display this help and exit
                    737:       --help=short        display options specific to this package
                    738:       --help=recursive    display the short help of all the included packages
                    739:   -V, --version           display version information and exit
                    740:   -q, --quiet, --silent   do not print \`checking...' messages
                    741:       --cache-file=FILE   cache test results in FILE [disabled]
                    742:   -C, --config-cache      alias for \`--cache-file=config.cache'
                    743:   -n, --no-create         do not create output files
                    744:       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
                    745:
                    746: _ACEOF
                    747:
                    748:   cat <<_ACEOF
                    749: Installation directories:
                    750:   --prefix=PREFIX         install architecture-independent files in PREFIX
                    751:                           [$ac_default_prefix]
                    752:   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                    753:                           [PREFIX]
                    754:
                    755: By default, \`make install' will install all the files in
                    756: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
                    757: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
                    758: for instance \`--prefix=\$HOME'.
                    759:
                    760: For better control, use the options below.
                    761:
                    762: Fine tuning of the installation directories:
                    763:   --bindir=DIR           user executables [EPREFIX/bin]
                    764:   --sbindir=DIR          system admin executables [EPREFIX/sbin]
                    765:   --libexecdir=DIR       program executables [EPREFIX/libexec]
                    766:   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
                    767:   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
                    768:   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
                    769:   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
                    770:   --libdir=DIR           object code libraries [EPREFIX/lib]
                    771:   --includedir=DIR       C header files [PREFIX/include]
                    772:   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
                    773:   --infodir=DIR          info documentation [PREFIX/info]
                    774:   --mandir=DIR           man documentation [PREFIX/man]
                    775: _ACEOF
                    776:
                    777:   cat <<\_ACEOF
                    778:
1.7       ohara     779: Program names:
                    780:   --program-prefix=PREFIX            prepend PREFIX to installed program names
                    781:   --program-suffix=SUFFIX            append SUFFIX to installed program names
                    782:   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
                    783:
1.4       takayama  784: X features:
                    785:   --x-includes=DIR    X include files are in DIR
                    786:   --x-libraries=DIR   X library files are in DIR
1.5       ohara     787:
                    788: System types:
                    789:   --build=BUILD     configure for building on BUILD [guessed]
                    790:   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
                    791:   --target=TARGET   configure for building compilers for TARGET [HOST]
1.4       takayama  792: _ACEOF
                    793: fi
                    794:
                    795: if test -n "$ac_init_help"; then
                    796:
                    797:   cat <<\_ACEOF
1.1       ohara     798:
1.7       ohara     799: Optional Features:
                    800:   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
                    801:   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
                    802:   --disable-dependency-tracking Speeds up one-time builds
                    803:   --enable-dependency-tracking  Do not reject slow dependency extractors
                    804:   --enable-maintainer-mode enable make rules and dependencies not useful
                    805:                           (and sometimes confusing) to the casual installer
                    806:   --enable-shared=PKGS  build shared libraries default=yes
                    807:   --enable-static=PKGS  build static libraries default=yes
                    808:   --enable-fast-install=PKGS  optimize for fast installation default=yes
                    809:   --disable-libtool-lock  avoid locking (might break parallel builds)
                    810:
1.4       takayama  811: Optional Packages:
                    812:   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
                    813:   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1.7       ohara     814:   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1.4       takayama  815:   --with-x                use the X Window System
                    816:
                    817: Some influential environment variables:
                    818:   CC          C compiler command
                    819:   CFLAGS      C compiler flags
                    820:   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
                    821:               nonstandard directory <lib dir>
                    822:   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
                    823:               headers in a nonstandard directory <include dir>
                    824:   CPP         C preprocessor
                    825:
                    826: Use these variables to override the choices made by `configure' or to help
                    827: it to find libraries and programs with nonstandard names/locations.
                    828:
                    829: _ACEOF
                    830: fi
                    831:
                    832: if test "$ac_init_help" = "recursive"; then
                    833:   # If there are subdirs, report their specific --help.
                    834:   ac_popdir=`pwd`
                    835:   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
                    836:     test -d $ac_dir || continue
                    837:     ac_builddir=.
                    838:
                    839: if test "$ac_dir" != .; then
                    840:   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
                    841:   # A "../" for each directory in $ac_dir_suffix.
                    842:   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
                    843: else
                    844:   ac_dir_suffix= ac_top_builddir=
                    845: fi
                    846:
                    847: case $srcdir in
                    848:   .)  # No --srcdir option.  We are building in place.
                    849:     ac_srcdir=.
                    850:     if test -z "$ac_top_builddir"; then
                    851:        ac_top_srcdir=.
                    852:     else
                    853:        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
                    854:     fi ;;
                    855:   [\\/]* | ?:[\\/]* )  # Absolute path.
                    856:     ac_srcdir=$srcdir$ac_dir_suffix;
                    857:     ac_top_srcdir=$srcdir ;;
                    858:   *) # Relative path.
                    859:     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
                    860:     ac_top_srcdir=$ac_top_builddir$srcdir ;;
                    861: esac
                    862: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
                    863: # absolute.
                    864: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
                    865: ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
                    866: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
                    867: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
                    868:
                    869:     cd $ac_dir
                    870:     # Check for guested configure; otherwise get Cygnus style configure.
                    871:     if test -f $ac_srcdir/configure.gnu; then
                    872:       echo
                    873:       $SHELL $ac_srcdir/configure.gnu  --help=recursive
                    874:     elif test -f $ac_srcdir/configure; then
                    875:       echo
                    876:       $SHELL $ac_srcdir/configure  --help=recursive
                    877:     elif test -f $ac_srcdir/configure.ac ||
                    878:            test -f $ac_srcdir/configure.in; then
                    879:       echo
                    880:       $ac_configure --help
1.2       ohara     881:     else
1.4       takayama  882:       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
                    883:     fi
                    884:     cd $ac_popdir
                    885:   done
                    886: fi
                    887:
                    888: test -n "$ac_init_help" && exit 0
                    889: if $ac_init_version; then
                    890:   cat <<\_ACEOF
                    891:
                    892: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
                    893: Free Software Foundation, Inc.
                    894: This configure script is free software; the Free Software Foundation
                    895: gives unlimited permission to copy, distribute and modify it.
                    896: _ACEOF
                    897:   exit 0
                    898: fi
                    899: exec 5>config.log
                    900: cat >&5 <<_ACEOF
                    901: This file contains any messages produced by compilers while
                    902: running configure, to aid debugging if configure makes a mistake.
                    903:
                    904: It was created by $as_me, which was
                    905: generated by GNU Autoconf 2.53.  Invocation command line was
                    906:
                    907:   $ $0 $@
                    908:
                    909: _ACEOF
                    910: {
                    911: cat <<_ASUNAME
                    912: ## --------- ##
                    913: ## Platform. ##
                    914: ## --------- ##
                    915:
                    916: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
                    917: uname -m = `(uname -m) 2>/dev/null || echo unknown`
                    918: uname -r = `(uname -r) 2>/dev/null || echo unknown`
                    919: uname -s = `(uname -s) 2>/dev/null || echo unknown`
                    920: uname -v = `(uname -v) 2>/dev/null || echo unknown`
                    921:
                    922: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
                    923: /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
                    924:
                    925: /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
                    926: /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
                    927: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
                    928: hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
                    929: /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
                    930: /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
                    931: /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
                    932:
                    933: _ASUNAME
                    934:
                    935: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                    936: for as_dir in $PATH
                    937: do
                    938:   IFS=$as_save_IFS
                    939:   test -z "$as_dir" && as_dir=.
                    940:   echo "PATH: $as_dir"
                    941: done
                    942:
                    943: } >&5
                    944:
                    945: cat >&5 <<_ACEOF
                    946:
                    947:
                    948: ## ----------- ##
                    949: ## Core tests. ##
                    950: ## ----------- ##
                    951:
                    952: _ACEOF
                    953:
                    954:
                    955: # Keep a trace of the command line.
                    956: # Strip out --no-create and --no-recursion so they do not pile up.
                    957: # Also quote any args containing shell meta-characters.
                    958: ac_configure_args=
                    959: ac_sep=
                    960: for ac_arg
                    961: do
                    962:   case $ac_arg in
                    963:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
                    964:   | --no-cr | --no-c | -n ) continue ;;
                    965:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
                    966:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
                    967:     continue ;;
                    968:   *" "*|*"     "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
                    969:     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
                    970:   esac
                    971:   case " $ac_configure_args " in
                    972:     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
                    973:     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
                    974:        ac_sep=" " ;;
                    975:   esac
                    976:   # Get rid of the leading space.
                    977: done
                    978:
                    979: # When interrupted or exit'd, cleanup temporary files, and complete
                    980: # config.log.  We remove comments because anyway the quotes in there
                    981: # would cause problems or look ugly.
                    982: # WARNING: Be sure not to use single quotes in there, as some shells,
                    983: # such as our DU 5.0 friend, will then `close' the trap.
                    984: trap 'exit_status=$?
                    985:   # Save into config.log some information that might help in debugging.
                    986:   {
                    987:     echo
                    988:     cat <<\_ASBOX
                    989: ## ---------------- ##
                    990: ## Cache variables. ##
                    991: ## ---------------- ##
                    992: _ASBOX
                    993:     echo
                    994:     # The following way of writing the cache mishandles newlines in values,
                    995: {
                    996:   (set) 2>&1 |
                    997:     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
                    998:     *ac_space=\ *)
                    999:       sed -n \
                   1000:         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
                   1001:          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
                   1002:       ;;
                   1003:     *)
                   1004:       sed -n \
                   1005:         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
                   1006:       ;;
                   1007:     esac;
                   1008: }
                   1009:     echo
                   1010:     if test -s confdefs.h; then
                   1011:       cat <<\_ASBOX
                   1012: ## ----------- ##
                   1013: ## confdefs.h. ##
                   1014: ## ----------- ##
                   1015: _ASBOX
                   1016:       echo
                   1017:       sed "/^$/d" confdefs.h
                   1018:       echo
1.2       ohara    1019:     fi
1.4       takayama 1020:     test "$ac_signal" != 0 &&
                   1021:       echo "$as_me: caught signal $ac_signal"
                   1022:     echo "$as_me: exit $exit_status"
                   1023:   } >&5
                   1024:   rm -f core core.* *.core &&
                   1025:   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
                   1026:     exit $exit_status
                   1027:      ' 0
                   1028: for ac_signal in 1 2 13 15; do
                   1029:   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
                   1030: done
                   1031: ac_signal=0
                   1032:
                   1033: # confdefs.h avoids OS command line length limits that DEFS can exceed.
                   1034: rm -rf conftest* confdefs.h
                   1035: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
                   1036: echo >confdefs.h
                   1037:
                   1038: # Predefined preprocessor variables.
                   1039:
                   1040: cat >>confdefs.h <<_ACEOF
                   1041: #define PACKAGE_NAME "$PACKAGE_NAME"
                   1042: _ACEOF
                   1043:
                   1044:
                   1045: cat >>confdefs.h <<_ACEOF
                   1046: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
                   1047: _ACEOF
                   1048:
                   1049:
                   1050: cat >>confdefs.h <<_ACEOF
                   1051: #define PACKAGE_VERSION "$PACKAGE_VERSION"
                   1052: _ACEOF
                   1053:
                   1054:
                   1055: cat >>confdefs.h <<_ACEOF
                   1056: #define PACKAGE_STRING "$PACKAGE_STRING"
                   1057: _ACEOF
                   1058:
                   1059:
                   1060: cat >>confdefs.h <<_ACEOF
                   1061: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
                   1062: _ACEOF
                   1063:
                   1064:
                   1065: # Let the site file select an alternate cache file if it wants to.
                   1066: # Prefer explicitly selected file to automatically selected ones.
                   1067: if test -z "$CONFIG_SITE"; then
                   1068:   if test "x$prefix" != xNONE; then
                   1069:     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
                   1070:   else
                   1071:     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1.1       ohara    1072:   fi
                   1073: fi
                   1074: for ac_site_file in $CONFIG_SITE; do
                   1075:   if test -r "$ac_site_file"; then
1.4       takayama 1076:     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
                   1077: echo "$as_me: loading site script $ac_site_file" >&6;}
                   1078:     sed 's/^/| /' "$ac_site_file" >&5
1.1       ohara    1079:     . "$ac_site_file"
                   1080:   fi
                   1081: done
                   1082:
                   1083: if test -r "$cache_file"; then
1.4       takayama 1084:   # Some versions of bash will fail to source /dev/null (special
                   1085:   # files actually), so we avoid doing that.
                   1086:   if test -f "$cache_file"; then
                   1087:     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
                   1088: echo "$as_me: loading cache $cache_file" >&6;}
                   1089:     case $cache_file in
                   1090:       [\\/]* | ?:[\\/]* ) . $cache_file;;
                   1091:       *)                      . ./$cache_file;;
                   1092:     esac
                   1093:   fi
1.1       ohara    1094: else
1.4       takayama 1095:   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
                   1096: echo "$as_me: creating cache $cache_file" >&6;}
                   1097:   >$cache_file
                   1098: fi
                   1099:
                   1100: # Check that the precious variables saved in the cache have kept the same
                   1101: # value.
                   1102: ac_cache_corrupted=false
                   1103: for ac_var in `(set) 2>&1 |
                   1104:                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
                   1105:   eval ac_old_set=\$ac_cv_env_${ac_var}_set
                   1106:   eval ac_new_set=\$ac_env_${ac_var}_set
                   1107:   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
                   1108:   eval ac_new_val="\$ac_env_${ac_var}_value"
                   1109:   case $ac_old_set,$ac_new_set in
                   1110:     set,)
                   1111:       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
                   1112: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
                   1113:       ac_cache_corrupted=: ;;
                   1114:     ,set)
                   1115:       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
                   1116: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
                   1117:       ac_cache_corrupted=: ;;
                   1118:     ,);;
                   1119:     *)
                   1120:       if test "x$ac_old_val" != "x$ac_new_val"; then
                   1121:         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
                   1122: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
                   1123:         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
                   1124: echo "$as_me:   former value:  $ac_old_val" >&2;}
                   1125:         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
                   1126: echo "$as_me:   current value: $ac_new_val" >&2;}
                   1127:         ac_cache_corrupted=:
                   1128:       fi;;
                   1129:   esac
                   1130:   # Pass precious variables to config.status.
                   1131:   if test "$ac_new_set" = set; then
                   1132:     case $ac_new_val in
                   1133:     *" "*|*"   "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
                   1134:       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
                   1135:     *) ac_arg=$ac_var=$ac_new_val ;;
                   1136:     esac
                   1137:     case " $ac_configure_args " in
                   1138:       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
                   1139:       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
                   1140:     esac
                   1141:   fi
                   1142: done
                   1143: if $ac_cache_corrupted; then
                   1144:   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
                   1145: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
                   1146:   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
                   1147: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
                   1148:    { (exit 1); exit 1; }; }
1.1       ohara    1149: fi
                   1150:
                   1151: ac_ext=c
                   1152: ac_cpp='$CPP $CPPFLAGS'
1.4       takayama 1153: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   1154: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   1155: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   1156:
                   1157:
                   1158:
                   1159:
                   1160:
                   1161:
                   1162:
                   1163:
                   1164:
                   1165:
                   1166:
                   1167:
                   1168:
                   1169:
                   1170:
                   1171:
1.1       ohara    1172:
                   1173:
1.7       ohara    1174:
1.5       ohara    1175: ac_aux_dir=
                   1176: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
                   1177:   if test -f $ac_dir/install-sh; then
                   1178:     ac_aux_dir=$ac_dir
                   1179:     ac_install_sh="$ac_aux_dir/install-sh -c"
                   1180:     break
                   1181:   elif test -f $ac_dir/install.sh; then
                   1182:     ac_aux_dir=$ac_dir
                   1183:     ac_install_sh="$ac_aux_dir/install.sh -c"
                   1184:     break
                   1185:   elif test -f $ac_dir/shtool; then
                   1186:     ac_aux_dir=$ac_dir
                   1187:     ac_install_sh="$ac_aux_dir/shtool install -c"
                   1188:     break
                   1189:   fi
                   1190: done
                   1191: if test -z "$ac_aux_dir"; then
                   1192:   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
                   1193: echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
                   1194:    { (exit 1); exit 1; }; }
                   1195: fi
                   1196: ac_config_guess="$SHELL $ac_aux_dir/config.guess"
                   1197: ac_config_sub="$SHELL $ac_aux_dir/config.sub"
                   1198: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
                   1199:
1.7       ohara    1200: # Find a good install program.  We prefer a C program (faster),
                   1201: # so one script is as good as another.  But avoid the broken or
                   1202: # incompatible versions:
                   1203: # SysV /etc/install, /usr/sbin/install
                   1204: # SunOS /usr/etc/install
                   1205: # IRIX /sbin/install
                   1206: # AIX /bin/install
                   1207: # AmigaOS /C/install, which installs bootblocks on floppy discs
                   1208: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
                   1209: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
                   1210: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
                   1211: # ./install, which can be erroneously created by make from ./install.sh.
                   1212: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
                   1213: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
                   1214: if test -z "$INSTALL"; then
                   1215: if test "${ac_cv_path_install+set}" = set; then
                   1216:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   1217: else
                   1218:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   1219: for as_dir in $PATH
                   1220: do
                   1221:   IFS=$as_save_IFS
                   1222:   test -z "$as_dir" && as_dir=.
                   1223:   # Account for people who put trailing slashes in PATH elements.
                   1224: case $as_dir/ in
                   1225:   ./ | .// | /cC/* | \
                   1226:   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
                   1227:   /usr/ucb/* ) ;;
                   1228:   *)
                   1229:     # OSF1 and SCO ODT 3.0 have their own names for install.
                   1230:     # Don't use installbsd from OSF since it installs stuff as root
                   1231:     # by default.
                   1232:     for ac_prog in ginstall scoinst install; do
                   1233:       for ac_exec_ext in '' $ac_executable_extensions; do
                   1234:         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
                   1235:           if test $ac_prog = install &&
                   1236:             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
                   1237:             # AIX install.  It has an incompatible calling convention.
                   1238:             :
                   1239:           elif test $ac_prog = install &&
                   1240:             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
                   1241:             # program-specific install script used by HP pwplus--don't use.
                   1242:             :
                   1243:           else
                   1244:             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
                   1245:             break 3
                   1246:           fi
                   1247:         fi
                   1248:       done
                   1249:     done
                   1250:     ;;
                   1251: esac
                   1252: done
                   1253:
                   1254:
                   1255: fi
                   1256:   if test "${ac_cv_path_install+set}" = set; then
                   1257:     INSTALL=$ac_cv_path_install
                   1258:   else
                   1259:     # As a last resort, use the slow shell script.  We don't cache a
                   1260:     # path for INSTALL within a source directory, because that will
                   1261:     # break other packages using the cache if that directory is
                   1262:     # removed, or if the path is relative.
                   1263:     INSTALL=$ac_install_sh
                   1264:   fi
                   1265: fi
                   1266: echo "$as_me:$LINENO: result: $INSTALL" >&5
                   1267: echo "${ECHO_T}$INSTALL" >&6
                   1268:
                   1269: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
                   1270: # It thinks the first close brace ends the variable substitution.
                   1271: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
                   1272:
                   1273: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
                   1274:
                   1275: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
                   1276:
                   1277: echo "$as_me:$LINENO: checking whether build environment is sane" >&5
                   1278: echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
                   1279: # Just in case
                   1280: sleep 1
                   1281: echo timestamp > conftest.file
                   1282: # Do `set' in a subshell so we don't clobber the current shell's
                   1283: # arguments.  Must try -L first in case configure is actually a
                   1284: # symlink; some systems play weird games with the mod time of symlinks
                   1285: # (eg FreeBSD returns the mod time of the symlink's containing
                   1286: # directory).
                   1287: if (
                   1288:    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
                   1289:    if test "$*" = "X"; then
                   1290:       # -L didn't work.
                   1291:       set X `ls -t $srcdir/configure conftest.file`
                   1292:    fi
                   1293:    rm -f conftest.file
                   1294:    if test "$*" != "X $srcdir/configure conftest.file" \
                   1295:       && test "$*" != "X conftest.file $srcdir/configure"; then
                   1296:
                   1297:       # If neither matched, then we have a broken ls.  This can happen
                   1298:       # if, for instance, CONFIG_SHELL is bash and it inherits a
                   1299:       # broken ls alias from the environment.  This has actually
                   1300:       # happened.  Such a system could not be considered "sane".
                   1301:       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
                   1302: alias in your environment" >&5
                   1303: echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
                   1304: alias in your environment" >&2;}
                   1305:    { (exit 1); exit 1; }; }
                   1306:    fi
                   1307:
                   1308:    test "$2" = conftest.file
                   1309:    )
                   1310: then
                   1311:    # Ok.
                   1312:    :
                   1313: else
                   1314:    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
                   1315: Check your system clock" >&5
                   1316: echo "$as_me: error: newly created file is older than distributed files!
                   1317: Check your system clock" >&2;}
                   1318:    { (exit 1); exit 1; }; }
                   1319: fi
                   1320: echo "$as_me:$LINENO: result: yes" >&5
                   1321: echo "${ECHO_T}yes" >&6
                   1322: test "$program_prefix" != NONE &&
                   1323:   program_transform_name="s,^,$program_prefix,;$program_transform_name"
                   1324: # Use a double $ so make ignores it.
                   1325: test "$program_suffix" != NONE &&
                   1326:   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
                   1327: # Double any \ or $.  echo might interpret backslashes.
                   1328: # By default was `s,x,x', remove it if useless.
                   1329: cat <<\_ACEOF >conftest.sed
                   1330: s/[\\$]/&&/g;s/;s,x,x,$//
                   1331: _ACEOF
                   1332: program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
                   1333: rm conftest.sed
                   1334:
                   1335:
                   1336: # expand $ac_aux_dir to an absolute path
                   1337: am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd`
                   1338:
                   1339: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
                   1340: # Use eval to expand $SHELL
                   1341: if eval "$MISSING --run true"; then
                   1342:   am_missing_run="$MISSING --run "
                   1343: else
                   1344:   am_missing_run=
                   1345:   am_backtick='`'
                   1346:   { echo "$as_me:$LINENO: WARNING: ${am_backtick}missing' script is too old or missing" >&5
                   1347: echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
                   1348: fi
                   1349:
                   1350: for ac_prog in gawk mawk nawk awk
                   1351: do
                   1352:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   1353: set dummy $ac_prog; ac_word=$2
                   1354: echo "$as_me:$LINENO: checking for $ac_word" >&5
                   1355: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   1356: if test "${ac_cv_prog_AWK+set}" = set; then
                   1357:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   1358: else
                   1359:   if test -n "$AWK"; then
                   1360:   ac_cv_prog_AWK="$AWK" # Let the user override the test.
                   1361: else
                   1362: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   1363: for as_dir in $PATH
                   1364: do
                   1365:   IFS=$as_save_IFS
                   1366:   test -z "$as_dir" && as_dir=.
                   1367:   for ac_exec_ext in '' $ac_executable_extensions; do
                   1368:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
                   1369:     ac_cv_prog_AWK="$ac_prog"
                   1370:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   1371:     break 2
                   1372:   fi
                   1373: done
                   1374: done
                   1375:
                   1376: fi
                   1377: fi
                   1378: AWK=$ac_cv_prog_AWK
                   1379: if test -n "$AWK"; then
                   1380:   echo "$as_me:$LINENO: result: $AWK" >&5
                   1381: echo "${ECHO_T}$AWK" >&6
                   1382: else
                   1383:   echo "$as_me:$LINENO: result: no" >&5
                   1384: echo "${ECHO_T}no" >&6
                   1385: fi
                   1386:
                   1387:   test -n "$AWK" && break
                   1388: done
                   1389:
                   1390: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
                   1391: echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
                   1392: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
                   1393: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
                   1394:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   1395: else
                   1396:   cat >conftest.make <<\_ACEOF
                   1397: all:
                   1398:        @echo 'ac_maketemp="${MAKE}"'
                   1399: _ACEOF
                   1400: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
                   1401: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
                   1402: if test -n "$ac_maketemp"; then
                   1403:   eval ac_cv_prog_make_${ac_make}_set=yes
                   1404: else
                   1405:   eval ac_cv_prog_make_${ac_make}_set=no
                   1406: fi
                   1407: rm -f conftest.make
                   1408: fi
                   1409: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
                   1410:   echo "$as_me:$LINENO: result: yes" >&5
                   1411: echo "${ECHO_T}yes" >&6
                   1412:   SET_MAKE=
                   1413: else
                   1414:   echo "$as_me:$LINENO: result: no" >&5
                   1415: echo "${ECHO_T}no" >&6
                   1416:   SET_MAKE="MAKE=${MAKE-make}"
                   1417: fi
                   1418:
                   1419: # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
                   1420: if test "${enable_dependency_tracking+set}" = set; then
                   1421:   enableval="$enable_dependency_tracking"
                   1422:
                   1423: fi;
                   1424: if test "x$enable_dependency_tracking" != xno; then
                   1425:   am_depcomp="$ac_aux_dir/depcomp"
                   1426:   AMDEPBACKSLASH='\'
                   1427: fi
                   1428:
                   1429:
                   1430: if test "x$enable_dependency_tracking" != xno; then
                   1431:   AMDEP_TRUE=
                   1432:   AMDEP_FALSE='#'
                   1433: else
                   1434:   AMDEP_TRUE='#'
                   1435:   AMDEP_FALSE=
                   1436: fi
                   1437:
                   1438:
                   1439:
                   1440:
                   1441: rm -f .deps 2>/dev/null
                   1442: mkdir .deps 2>/dev/null
                   1443: if test -d .deps; then
                   1444:   DEPDIR=.deps
                   1445: else
                   1446:   # MS-DOS does not allow filenames that begin with a dot.
                   1447:   DEPDIR=_deps
                   1448: fi
                   1449: rmdir .deps 2>/dev/null
                   1450:
                   1451:
                   1452: # test to see if srcdir already configured
                   1453: if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
                   1454:    test -f $srcdir/config.status; then
                   1455:   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
                   1456: echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
                   1457:    { (exit 1); exit 1; }; }
                   1458: fi
                   1459:
                   1460: # Define the identity of the package.
                   1461: PACKAGE=ox_toolkit
                   1462: VERSION=20040628
                   1463:
                   1464: cat >>confdefs.h <<_ACEOF
                   1465: #define PACKAGE "$PACKAGE"
                   1466: _ACEOF
                   1467:
                   1468:
                   1469: cat >>confdefs.h <<_ACEOF
                   1470: #define VERSION "$VERSION"
                   1471: _ACEOF
                   1472:
                   1473:
                   1474: # Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
                   1475: # the ones we care about.
                   1476:
                   1477: # Autoconf 2.50 always computes EXEEXT.  However we need to be
                   1478: # compatible with 2.13, for now.  So we always define EXEEXT, but we
                   1479: # don't compute it.
                   1480:
                   1481: # Similar for OBJEXT -- only we only use OBJEXT if the user actually
                   1482: # requests that it be used.  This is a bit dumb.
                   1483: : ${OBJEXT=o}
                   1484:
                   1485:
                   1486: # Some tools Automake needs.
                   1487:
                   1488: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
                   1489:
                   1490:
                   1491: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
                   1492:
                   1493:
                   1494: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
                   1495:
                   1496:
                   1497: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
                   1498:
                   1499:
                   1500: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
                   1501:
                   1502:
                   1503: AMTAR=${AMTAR-"${am_missing_run}tar"}
                   1504:
                   1505: install_sh=${install_sh-"$am_aux_dir/install-sh"}
                   1506:
                   1507: INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
                   1508:
                   1509: # We need awk for the "check" target.  The system "awk" is bad on
                   1510: # some platforms.
                   1511:
                   1512: echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
                   1513: echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
                   1514:     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
                   1515: if test "${enable_maintainer_mode+set}" = set; then
                   1516:   enableval="$enable_maintainer_mode"
                   1517:   USE_MAINTAINER_MODE=$enableval
                   1518: else
                   1519:   USE_MAINTAINER_MODE=no
                   1520: fi;
                   1521:   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
                   1522: echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
                   1523:
                   1524:
                   1525: if test $USE_MAINTAINER_MODE = yes; then
                   1526:   MAINTAINER_MODE_TRUE=
                   1527:   MAINTAINER_MODE_FALSE='#'
                   1528: else
                   1529:   MAINTAINER_MODE_TRUE='#'
                   1530:   MAINTAINER_MODE_FALSE=
                   1531: fi
                   1532:   MAINT=$MAINTAINER_MODE_TRUE
                   1533:
                   1534:
1.5       ohara    1535: # Make sure we can run config.sub.
                   1536: $ac_config_sub sun4 >/dev/null 2>&1 ||
                   1537:   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
                   1538: echo "$as_me: error: cannot run $ac_config_sub" >&2;}
                   1539:    { (exit 1); exit 1; }; }
                   1540:
                   1541: echo "$as_me:$LINENO: checking build system type" >&5
                   1542: echo $ECHO_N "checking build system type... $ECHO_C" >&6
                   1543: if test "${ac_cv_build+set}" = set; then
                   1544:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   1545: else
                   1546:   ac_cv_build_alias=$build_alias
                   1547: test -z "$ac_cv_build_alias" &&
                   1548:   ac_cv_build_alias=`$ac_config_guess`
                   1549: test -z "$ac_cv_build_alias" &&
                   1550:   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
                   1551: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
                   1552:    { (exit 1); exit 1; }; }
                   1553: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
                   1554:   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
                   1555: echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
                   1556:    { (exit 1); exit 1; }; }
                   1557:
                   1558: fi
                   1559: echo "$as_me:$LINENO: result: $ac_cv_build" >&5
                   1560: echo "${ECHO_T}$ac_cv_build" >&6
                   1561: build=$ac_cv_build
                   1562: build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
                   1563: build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
                   1564: build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
                   1565:
                   1566:
                   1567: echo "$as_me:$LINENO: checking host system type" >&5
                   1568: echo $ECHO_N "checking host system type... $ECHO_C" >&6
                   1569: if test "${ac_cv_host+set}" = set; then
                   1570:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   1571: else
                   1572:   ac_cv_host_alias=$host_alias
                   1573: test -z "$ac_cv_host_alias" &&
                   1574:   ac_cv_host_alias=$ac_cv_build_alias
                   1575: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
                   1576:   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
                   1577: echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
                   1578:    { (exit 1); exit 1; }; }
                   1579:
                   1580: fi
                   1581: echo "$as_me:$LINENO: result: $ac_cv_host" >&5
                   1582: echo "${ECHO_T}$ac_cv_host" >&6
                   1583: host=$ac_cv_host
                   1584: host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
                   1585: host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
                   1586: host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
                   1587:
                   1588:
                   1589: echo "$as_me:$LINENO: checking target system type" >&5
                   1590: echo $ECHO_N "checking target system type... $ECHO_C" >&6
                   1591: if test "${ac_cv_target+set}" = set; then
                   1592:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   1593: else
                   1594:   ac_cv_target_alias=$target_alias
                   1595: test "x$ac_cv_target_alias" = "x" &&
                   1596:   ac_cv_target_alias=$ac_cv_host_alias
                   1597: ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
                   1598:   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
                   1599: echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
                   1600:    { (exit 1); exit 1; }; }
                   1601:
                   1602: fi
                   1603: echo "$as_me:$LINENO: result: $ac_cv_target" >&5
                   1604: echo "${ECHO_T}$ac_cv_target" >&6
                   1605: target=$ac_cv_target
                   1606: target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
                   1607: target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
                   1608: target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
                   1609:
                   1610:
                   1611: # The aliases save the names the user supplied, while $host etc.
                   1612: # will get canonicalized.
                   1613: test -n "$target_alias" &&
                   1614:   test "$program_prefix$program_suffix$program_transform_name" = \
                   1615:     NONENONEs,x,x, &&
                   1616:   program_prefix=${target_alias}-
1.4       takayama 1617: ac_ext=c
                   1618: ac_cpp='$CPP $CPPFLAGS'
                   1619: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   1620: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   1621: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   1622: if test -n "$ac_tool_prefix"; then
                   1623:   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
                   1624: set dummy ${ac_tool_prefix}gcc; ac_word=$2
                   1625: echo "$as_me:$LINENO: checking for $ac_word" >&5
                   1626: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   1627: if test "${ac_cv_prog_CC+set}" = set; then
                   1628:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       ohara    1629: else
                   1630:   if test -n "$CC"; then
                   1631:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   1632: else
1.4       takayama 1633: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   1634: for as_dir in $PATH
                   1635: do
                   1636:   IFS=$as_save_IFS
                   1637:   test -z "$as_dir" && as_dir=.
                   1638:   for ac_exec_ext in '' $ac_executable_extensions; do
                   1639:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
                   1640:     ac_cv_prog_CC="${ac_tool_prefix}gcc"
                   1641:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   1642:     break 2
                   1643:   fi
                   1644: done
                   1645: done
                   1646:
1.1       ohara    1647: fi
                   1648: fi
1.4       takayama 1649: CC=$ac_cv_prog_CC
1.1       ohara    1650: if test -n "$CC"; then
1.4       takayama 1651:   echo "$as_me:$LINENO: result: $CC" >&5
                   1652: echo "${ECHO_T}$CC" >&6
1.1       ohara    1653: else
1.4       takayama 1654:   echo "$as_me:$LINENO: result: no" >&5
                   1655: echo "${ECHO_T}no" >&6
1.1       ohara    1656: fi
                   1657:
1.4       takayama 1658: fi
                   1659: if test -z "$ac_cv_prog_CC"; then
                   1660:   ac_ct_CC=$CC
                   1661:   # Extract the first word of "gcc", so it can be a program name with args.
                   1662: set dummy gcc; ac_word=$2
                   1663: echo "$as_me:$LINENO: checking for $ac_word" >&5
                   1664: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   1665: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
                   1666:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       ohara    1667: else
1.4       takayama 1668:   if test -n "$ac_ct_CC"; then
                   1669:   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1       ohara    1670: else
1.4       takayama 1671: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   1672: for as_dir in $PATH
                   1673: do
                   1674:   IFS=$as_save_IFS
                   1675:   test -z "$as_dir" && as_dir=.
                   1676:   for ac_exec_ext in '' $ac_executable_extensions; do
                   1677:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
                   1678:     ac_cv_prog_ac_ct_CC="gcc"
                   1679:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   1680:     break 2
1.1       ohara    1681:   fi
1.4       takayama 1682: done
                   1683: done
                   1684:
1.1       ohara    1685: fi
                   1686: fi
1.4       takayama 1687: ac_ct_CC=$ac_cv_prog_ac_ct_CC
                   1688: if test -n "$ac_ct_CC"; then
                   1689:   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
                   1690: echo "${ECHO_T}$ac_ct_CC" >&6
                   1691: else
                   1692:   echo "$as_me:$LINENO: result: no" >&5
                   1693: echo "${ECHO_T}no" >&6
1.1       ohara    1694: fi
1.4       takayama 1695:
                   1696:   CC=$ac_ct_CC
1.1       ohara    1697: else
1.4       takayama 1698:   CC="$ac_cv_prog_CC"
1.1       ohara    1699: fi
                   1700:
1.4       takayama 1701: if test -z "$CC"; then
                   1702:   if test -n "$ac_tool_prefix"; then
                   1703:   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
                   1704: set dummy ${ac_tool_prefix}cc; ac_word=$2
                   1705: echo "$as_me:$LINENO: checking for $ac_word" >&5
                   1706: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   1707: if test "${ac_cv_prog_CC+set}" = set; then
                   1708:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       ohara    1709: else
                   1710:   if test -n "$CC"; then
                   1711:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   1712: else
1.4       takayama 1713: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   1714: for as_dir in $PATH
                   1715: do
                   1716:   IFS=$as_save_IFS
                   1717:   test -z "$as_dir" && as_dir=.
                   1718:   for ac_exec_ext in '' $ac_executable_extensions; do
                   1719:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
                   1720:     ac_cv_prog_CC="${ac_tool_prefix}cc"
                   1721:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   1722:     break 2
                   1723:   fi
                   1724: done
                   1725: done
                   1726:
1.1       ohara    1727: fi
                   1728: fi
1.4       takayama 1729: CC=$ac_cv_prog_CC
1.1       ohara    1730: if test -n "$CC"; then
1.4       takayama 1731:   echo "$as_me:$LINENO: result: $CC" >&5
                   1732: echo "${ECHO_T}$CC" >&6
1.1       ohara    1733: else
1.4       takayama 1734:   echo "$as_me:$LINENO: result: no" >&5
                   1735: echo "${ECHO_T}no" >&6
                   1736: fi
                   1737:
1.1       ohara    1738: fi
1.4       takayama 1739: if test -z "$ac_cv_prog_CC"; then
                   1740:   ac_ct_CC=$CC
                   1741:   # Extract the first word of "cc", so it can be a program name with args.
                   1742: set dummy cc; ac_word=$2
                   1743: echo "$as_me:$LINENO: checking for $ac_word" >&5
                   1744: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   1745: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
                   1746:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   1747: else
                   1748:   if test -n "$ac_ct_CC"; then
                   1749:   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
                   1750: else
                   1751: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   1752: for as_dir in $PATH
                   1753: do
                   1754:   IFS=$as_save_IFS
                   1755:   test -z "$as_dir" && as_dir=.
                   1756:   for ac_exec_ext in '' $ac_executable_extensions; do
                   1757:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
                   1758:     ac_cv_prog_ac_ct_CC="cc"
                   1759:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   1760:     break 2
1.1       ohara    1761:   fi
1.4       takayama 1762: done
                   1763: done
                   1764:
                   1765: fi
                   1766: fi
                   1767: ac_ct_CC=$ac_cv_prog_ac_ct_CC
                   1768: if test -n "$ac_ct_CC"; then
                   1769:   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
                   1770: echo "${ECHO_T}$ac_ct_CC" >&6
                   1771: else
                   1772:   echo "$as_me:$LINENO: result: no" >&5
                   1773: echo "${ECHO_T}no" >&6
1.1       ohara    1774: fi
                   1775:
1.4       takayama 1776:   CC=$ac_ct_CC
                   1777: else
                   1778:   CC="$ac_cv_prog_CC"
                   1779: fi
1.1       ohara    1780:
1.4       takayama 1781: fi
                   1782: if test -z "$CC"; then
                   1783:   # Extract the first word of "cc", so it can be a program name with args.
                   1784: set dummy cc; ac_word=$2
                   1785: echo "$as_me:$LINENO: checking for $ac_word" >&5
                   1786: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   1787: if test "${ac_cv_prog_CC+set}" = set; then
                   1788:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   1789: else
                   1790:   if test -n "$CC"; then
                   1791:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   1792: else
                   1793:   ac_prog_rejected=no
                   1794: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   1795: for as_dir in $PATH
                   1796: do
                   1797:   IFS=$as_save_IFS
                   1798:   test -z "$as_dir" && as_dir=.
                   1799:   for ac_exec_ext in '' $ac_executable_extensions; do
                   1800:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
                   1801:     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
                   1802:        ac_prog_rejected=yes
                   1803:        continue
                   1804:      fi
                   1805:     ac_cv_prog_CC="cc"
                   1806:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   1807:     break 2
                   1808:   fi
                   1809: done
                   1810: done
                   1811:
                   1812: if test $ac_prog_rejected = yes; then
                   1813:   # We found a bogon in the path, so make sure we never use it.
                   1814:   set dummy $ac_cv_prog_CC
                   1815:   shift
                   1816:   if test $# != 0; then
                   1817:     # We chose a different compiler from the bogus one.
                   1818:     # However, it has the same basename, so the bogon will be chosen
                   1819:     # first if we set CC to just the basename; use the full file name.
                   1820:     shift
                   1821:     set dummy "$as_dir/$ac_word" ${1+"$@"}
                   1822:     shift
                   1823:     ac_cv_prog_CC="$@"
1.1       ohara    1824:   fi
1.4       takayama 1825: fi
                   1826: fi
                   1827: fi
                   1828: CC=$ac_cv_prog_CC
                   1829: if test -n "$CC"; then
                   1830:   echo "$as_me:$LINENO: result: $CC" >&5
                   1831: echo "${ECHO_T}$CC" >&6
1.1       ohara    1832: else
1.4       takayama 1833:   echo "$as_me:$LINENO: result: no" >&5
                   1834: echo "${ECHO_T}no" >&6
                   1835: fi
                   1836:
1.1       ohara    1837: fi
1.4       takayama 1838: if test -z "$CC"; then
                   1839:   if test -n "$ac_tool_prefix"; then
                   1840:   for ac_prog in cl
                   1841:   do
                   1842:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   1843: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   1844: echo "$as_me:$LINENO: checking for $ac_word" >&5
                   1845: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   1846: if test "${ac_cv_prog_CC+set}" = set; then
                   1847:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   1848: else
                   1849:   if test -n "$CC"; then
                   1850:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   1851: else
                   1852: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   1853: for as_dir in $PATH
                   1854: do
                   1855:   IFS=$as_save_IFS
                   1856:   test -z "$as_dir" && as_dir=.
                   1857:   for ac_exec_ext in '' $ac_executable_extensions; do
                   1858:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
                   1859:     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
                   1860:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   1861:     break 2
                   1862:   fi
                   1863: done
                   1864: done
1.1       ohara    1865:
                   1866: fi
1.4       takayama 1867: fi
                   1868: CC=$ac_cv_prog_CC
                   1869: if test -n "$CC"; then
                   1870:   echo "$as_me:$LINENO: result: $CC" >&5
                   1871: echo "${ECHO_T}$CC" >&6
                   1872: else
                   1873:   echo "$as_me:$LINENO: result: no" >&5
                   1874: echo "${ECHO_T}no" >&6
                   1875: fi
1.1       ohara    1876:
1.4       takayama 1877:     test -n "$CC" && break
                   1878:   done
                   1879: fi
                   1880: if test -z "$CC"; then
                   1881:   ac_ct_CC=$CC
                   1882:   for ac_prog in cl
                   1883: do
                   1884:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   1885: set dummy $ac_prog; ac_word=$2
                   1886: echo "$as_me:$LINENO: checking for $ac_word" >&5
                   1887: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   1888: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
                   1889:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   1890: else
                   1891:   if test -n "$ac_ct_CC"; then
                   1892:   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1       ohara    1893: else
1.4       takayama 1894: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   1895: for as_dir in $PATH
                   1896: do
                   1897:   IFS=$as_save_IFS
                   1898:   test -z "$as_dir" && as_dir=.
                   1899:   for ac_exec_ext in '' $ac_executable_extensions; do
                   1900:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
                   1901:     ac_cv_prog_ac_ct_CC="$ac_prog"
                   1902:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   1903:     break 2
                   1904:   fi
                   1905: done
                   1906: done
                   1907:
                   1908: fi
                   1909: fi
                   1910: ac_ct_CC=$ac_cv_prog_ac_ct_CC
                   1911: if test -n "$ac_ct_CC"; then
                   1912:   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
                   1913: echo "${ECHO_T}$ac_ct_CC" >&6
1.1       ohara    1914: else
1.4       takayama 1915:   echo "$as_me:$LINENO: result: no" >&5
                   1916: echo "${ECHO_T}no" >&6
                   1917: fi
                   1918:
                   1919:   test -n "$ac_ct_CC" && break
                   1920: done
                   1921:
                   1922:   CC=$ac_ct_CC
1.1       ohara    1923: fi
1.4       takayama 1924:
1.1       ohara    1925: fi
                   1926:
                   1927:
1.4       takayama 1928: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
                   1929: echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
                   1930:    { (exit 1); exit 1; }; }
                   1931:
                   1932: # Provide some information about the compiler.
                   1933: echo "$as_me:$LINENO:" \
                   1934:      "checking for C compiler version" >&5
                   1935: ac_compiler=`set X $ac_compile; echo $2`
                   1936: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
                   1937:   (eval $ac_compiler --version </dev/null >&5) 2>&5
                   1938:   ac_status=$?
                   1939:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   1940:   (exit $ac_status); }
                   1941: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
                   1942:   (eval $ac_compiler -v </dev/null >&5) 2>&5
                   1943:   ac_status=$?
                   1944:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   1945:   (exit $ac_status); }
                   1946: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
                   1947:   (eval $ac_compiler -V </dev/null >&5) 2>&5
                   1948:   ac_status=$?
                   1949:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   1950:   (exit $ac_status); }
                   1951:
                   1952: cat >conftest.$ac_ext <<_ACEOF
                   1953: #line $LINENO "configure"
                   1954: #include "confdefs.h"
                   1955:
                   1956: #ifdef F77_DUMMY_MAIN
                   1957: #  ifdef __cplusplus
                   1958:      extern "C"
                   1959: #  endif
                   1960:    int F77_DUMMY_MAIN() { return 1; }
                   1961: #endif
                   1962: int
                   1963: main ()
                   1964: {
                   1965:
                   1966:   ;
                   1967:   return 0;
                   1968: }
                   1969: _ACEOF
                   1970: ac_clean_files_save=$ac_clean_files
                   1971: ac_clean_files="$ac_clean_files a.out a.exe"
                   1972: # Try to create an executable without -o first, disregard a.out.
                   1973: # It will help us diagnose broken compilers, and finding out an intuition
                   1974: # of exeext.
                   1975: echo "$as_me:$LINENO: checking for C compiler default output" >&5
                   1976: echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
                   1977: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
                   1978: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
                   1979:   (eval $ac_link_default) 2>&5
                   1980:   ac_status=$?
                   1981:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   1982:   (exit $ac_status); }; then
                   1983:   # Find the output, starting from the most likely.  This scheme is
                   1984: # not robust to junk in `.', hence go to wildcards (a.*) only as a last
                   1985: # resort.
                   1986:
                   1987: # Be careful to initialize this variable, since it used to be cached.
                   1988: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
                   1989: ac_cv_exeext=
                   1990: for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
                   1991:                 ls a.out conftest 2>/dev/null;
                   1992:                 ls a.* conftest.* 2>/dev/null`; do
                   1993:   case $ac_file in
                   1994:     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
                   1995:     a.out ) # We found the default executable, but exeext='' is most
                   1996:             # certainly right.
                   1997:             break;;
                   1998:     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
                   1999:           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
                   2000:           export ac_cv_exeext
                   2001:           break;;
                   2002:     * ) break;;
                   2003:   esac
                   2004: done
1.1       ohara    2005: else
1.4       takayama 2006:   echo "$as_me: failed program was:" >&5
                   2007: cat conftest.$ac_ext >&5
                   2008: { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
                   2009: echo "$as_me: error: C compiler cannot create executables" >&2;}
                   2010:    { (exit 77); exit 77; }; }
                   2011: fi
                   2012:
                   2013: ac_exeext=$ac_cv_exeext
                   2014: echo "$as_me:$LINENO: result: $ac_file" >&5
                   2015: echo "${ECHO_T}$ac_file" >&6
                   2016:
                   2017: # Check the compiler produces executables we can run.  If not, either
                   2018: # the compiler is broken, or we cross compile.
                   2019: echo "$as_me:$LINENO: checking whether the C compiler works" >&5
                   2020: echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
                   2021: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
                   2022: # If not cross compiling, check that we can run a simple program.
                   2023: if test "$cross_compiling" != yes; then
                   2024:   if { ac_try='./$ac_file'
                   2025:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   2026:   (eval $ac_try) 2>&5
                   2027:   ac_status=$?
                   2028:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   2029:   (exit $ac_status); }; }; then
                   2030:     cross_compiling=no
                   2031:   else
                   2032:     if test "$cross_compiling" = maybe; then
                   2033:        cross_compiling=yes
                   2034:     else
                   2035:        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
                   2036: If you meant to cross compile, use \`--host'." >&5
                   2037: echo "$as_me: error: cannot run C compiled programs.
                   2038: If you meant to cross compile, use \`--host'." >&2;}
                   2039:    { (exit 1); exit 1; }; }
                   2040:     fi
                   2041:   fi
1.1       ohara    2042: fi
1.4       takayama 2043: echo "$as_me:$LINENO: result: yes" >&5
                   2044: echo "${ECHO_T}yes" >&6
                   2045:
                   2046: rm -f a.out a.exe conftest$ac_cv_exeext
                   2047: ac_clean_files=$ac_clean_files_save
                   2048: # Check the compiler produces executables we can run.  If not, either
                   2049: # the compiler is broken, or we cross compile.
                   2050: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
                   2051: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
                   2052: echo "$as_me:$LINENO: result: $cross_compiling" >&5
                   2053: echo "${ECHO_T}$cross_compiling" >&6
                   2054:
                   2055: echo "$as_me:$LINENO: checking for suffix of executables" >&5
                   2056: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
                   2057: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   2058:   (eval $ac_link) 2>&5
                   2059:   ac_status=$?
                   2060:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   2061:   (exit $ac_status); }; then
                   2062:   # If both `conftest.exe' and `conftest' are `present' (well, observable)
                   2063: # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
                   2064: # work properly (i.e., refer to `conftest.exe'), while it won't with
                   2065: # `rm'.
                   2066: for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
                   2067:   case $ac_file in
                   2068:     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
                   2069:     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
                   2070:           export ac_cv_exeext
                   2071:           break;;
                   2072:     * ) break;;
                   2073:   esac
                   2074: done
                   2075: else
                   2076:   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
                   2077: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
                   2078:    { (exit 1); exit 1; }; }
                   2079: fi
                   2080:
                   2081: rm -f conftest$ac_cv_exeext
                   2082: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
                   2083: echo "${ECHO_T}$ac_cv_exeext" >&6
                   2084:
                   2085: rm -f conftest.$ac_ext
                   2086: EXEEXT=$ac_cv_exeext
                   2087: ac_exeext=$EXEEXT
                   2088: echo "$as_me:$LINENO: checking for suffix of object files" >&5
                   2089: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
                   2090: if test "${ac_cv_objext+set}" = set; then
                   2091:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   2092: else
                   2093:   cat >conftest.$ac_ext <<_ACEOF
                   2094: #line $LINENO "configure"
                   2095: #include "confdefs.h"
                   2096:
                   2097: #ifdef F77_DUMMY_MAIN
                   2098: #  ifdef __cplusplus
                   2099:      extern "C"
                   2100: #  endif
                   2101:    int F77_DUMMY_MAIN() { return 1; }
                   2102: #endif
                   2103: int
                   2104: main ()
                   2105: {
                   2106:
                   2107:   ;
                   2108:   return 0;
                   2109: }
                   2110: _ACEOF
                   2111: rm -f conftest.o conftest.obj
                   2112: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   2113:   (eval $ac_compile) 2>&5
                   2114:   ac_status=$?
                   2115:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   2116:   (exit $ac_status); }; then
                   2117:   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
                   2118:   case $ac_file in
                   2119:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
                   2120:     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
                   2121:        break;;
                   2122:   esac
                   2123: done
                   2124: else
                   2125:   echo "$as_me: failed program was:" >&5
                   2126: cat conftest.$ac_ext >&5
                   2127: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
                   2128: echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
                   2129:    { (exit 1); exit 1; }; }
                   2130: fi
                   2131:
                   2132: rm -f conftest.$ac_cv_objext conftest.$ac_ext
                   2133: fi
                   2134: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
                   2135: echo "${ECHO_T}$ac_cv_objext" >&6
                   2136: OBJEXT=$ac_cv_objext
                   2137: ac_objext=$OBJEXT
                   2138: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
                   2139: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
                   2140: if test "${ac_cv_c_compiler_gnu+set}" = set; then
                   2141:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   2142: else
                   2143:   cat >conftest.$ac_ext <<_ACEOF
                   2144: #line $LINENO "configure"
                   2145: #include "confdefs.h"
                   2146:
                   2147: #ifdef F77_DUMMY_MAIN
                   2148: #  ifdef __cplusplus
                   2149:      extern "C"
                   2150: #  endif
                   2151:    int F77_DUMMY_MAIN() { return 1; }
                   2152: #endif
                   2153: int
                   2154: main ()
                   2155: {
                   2156: #ifndef __GNUC__
                   2157:        choke me
                   2158: #endif
1.1       ohara    2159:
1.4       takayama 2160:   ;
                   2161:   return 0;
                   2162: }
                   2163: _ACEOF
                   2164: rm -f conftest.$ac_objext
                   2165: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   2166:   (eval $ac_compile) 2>&5
                   2167:   ac_status=$?
                   2168:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   2169:   (exit $ac_status); } &&
                   2170:          { ac_try='test -s conftest.$ac_objext'
                   2171:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   2172:   (eval $ac_try) 2>&5
                   2173:   ac_status=$?
                   2174:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   2175:   (exit $ac_status); }; }; then
                   2176:   ac_compiler_gnu=yes
                   2177: else
                   2178:   echo "$as_me: failed program was:" >&5
                   2179: cat conftest.$ac_ext >&5
                   2180: ac_compiler_gnu=no
                   2181: fi
                   2182: rm -f conftest.$ac_objext conftest.$ac_ext
                   2183: ac_cv_c_compiler_gnu=$ac_compiler_gnu
                   2184:
                   2185: fi
                   2186: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
                   2187: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
                   2188: GCC=`test $ac_compiler_gnu = yes && echo yes`
                   2189: ac_test_CFLAGS=${CFLAGS+set}
                   2190: ac_save_CFLAGS=$CFLAGS
                   2191: CFLAGS="-g"
                   2192: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
                   2193: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
                   2194: if test "${ac_cv_prog_cc_g+set}" = set; then
                   2195:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       ohara    2196: else
1.4       takayama 2197:   cat >conftest.$ac_ext <<_ACEOF
                   2198: #line $LINENO "configure"
                   2199: #include "confdefs.h"
                   2200:
                   2201: #ifdef F77_DUMMY_MAIN
                   2202: #  ifdef __cplusplus
                   2203:      extern "C"
                   2204: #  endif
                   2205:    int F77_DUMMY_MAIN() { return 1; }
                   2206: #endif
                   2207: int
                   2208: main ()
                   2209: {
                   2210:
                   2211:   ;
                   2212:   return 0;
                   2213: }
                   2214: _ACEOF
                   2215: rm -f conftest.$ac_objext
                   2216: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   2217:   (eval $ac_compile) 2>&5
                   2218:   ac_status=$?
                   2219:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   2220:   (exit $ac_status); } &&
                   2221:          { ac_try='test -s conftest.$ac_objext'
                   2222:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   2223:   (eval $ac_try) 2>&5
                   2224:   ac_status=$?
                   2225:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   2226:   (exit $ac_status); }; }; then
1.1       ohara    2227:   ac_cv_prog_cc_g=yes
                   2228: else
1.4       takayama 2229:   echo "$as_me: failed program was:" >&5
                   2230: cat conftest.$ac_ext >&5
                   2231: ac_cv_prog_cc_g=no
1.1       ohara    2232: fi
1.4       takayama 2233: rm -f conftest.$ac_objext conftest.$ac_ext
1.1       ohara    2234: fi
1.4       takayama 2235: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
                   2236: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1.1       ohara    2237: if test "$ac_test_CFLAGS" = set; then
1.4       takayama 2238:   CFLAGS=$ac_save_CFLAGS
1.1       ohara    2239: elif test $ac_cv_prog_cc_g = yes; then
                   2240:   if test "$GCC" = yes; then
                   2241:     CFLAGS="-g -O2"
                   2242:   else
                   2243:     CFLAGS="-g"
                   2244:   fi
                   2245: else
                   2246:   if test "$GCC" = yes; then
                   2247:     CFLAGS="-O2"
                   2248:   else
                   2249:     CFLAGS=
                   2250:   fi
                   2251: fi
1.4       takayama 2252: # Some people use a C++ compiler to compile C.  Since we use `exit',
                   2253: # in C++ we need to declare it.  In case someone uses the same compiler
                   2254: # for both compiling C and C++ we need to have the C++ compiler decide
                   2255: # the declaration of exit, since it's the most demanding environment.
                   2256: cat >conftest.$ac_ext <<_ACEOF
                   2257: #ifndef __cplusplus
                   2258:   choke me
                   2259: #endif
                   2260: _ACEOF
                   2261: rm -f conftest.$ac_objext
                   2262: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   2263:   (eval $ac_compile) 2>&5
                   2264:   ac_status=$?
                   2265:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   2266:   (exit $ac_status); } &&
                   2267:          { ac_try='test -s conftest.$ac_objext'
                   2268:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   2269:   (eval $ac_try) 2>&5
                   2270:   ac_status=$?
                   2271:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   2272:   (exit $ac_status); }; }; then
                   2273:   for ac_declaration in \
                   2274:    ''\
                   2275:    '#include <stdlib.h>' \
                   2276:    'extern "C" void std::exit (int) throw (); using std::exit;' \
                   2277:    'extern "C" void std::exit (int); using std::exit;' \
                   2278:    'extern "C" void exit (int) throw ();' \
                   2279:    'extern "C" void exit (int);' \
                   2280:    'void exit (int);'
                   2281: do
                   2282:   cat >conftest.$ac_ext <<_ACEOF
                   2283: #line $LINENO "configure"
                   2284: #include "confdefs.h"
                   2285: #include <stdlib.h>
                   2286: $ac_declaration
                   2287: #ifdef F77_DUMMY_MAIN
                   2288: #  ifdef __cplusplus
                   2289:      extern "C"
                   2290: #  endif
                   2291:    int F77_DUMMY_MAIN() { return 1; }
                   2292: #endif
                   2293: int
                   2294: main ()
                   2295: {
                   2296: exit (42);
                   2297:   ;
                   2298:   return 0;
                   2299: }
                   2300: _ACEOF
                   2301: rm -f conftest.$ac_objext
                   2302: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   2303:   (eval $ac_compile) 2>&5
                   2304:   ac_status=$?
                   2305:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   2306:   (exit $ac_status); } &&
                   2307:          { ac_try='test -s conftest.$ac_objext'
                   2308:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   2309:   (eval $ac_try) 2>&5
                   2310:   ac_status=$?
                   2311:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   2312:   (exit $ac_status); }; }; then
                   2313:   :
                   2314: else
                   2315:   echo "$as_me: failed program was:" >&5
                   2316: cat conftest.$ac_ext >&5
                   2317: continue
                   2318: fi
                   2319: rm -f conftest.$ac_objext conftest.$ac_ext
                   2320:   cat >conftest.$ac_ext <<_ACEOF
                   2321: #line $LINENO "configure"
                   2322: #include "confdefs.h"
                   2323: $ac_declaration
                   2324: #ifdef F77_DUMMY_MAIN
                   2325: #  ifdef __cplusplus
                   2326:      extern "C"
                   2327: #  endif
                   2328:    int F77_DUMMY_MAIN() { return 1; }
                   2329: #endif
                   2330: int
                   2331: main ()
                   2332: {
                   2333: exit (42);
                   2334:   ;
                   2335:   return 0;
                   2336: }
                   2337: _ACEOF
                   2338: rm -f conftest.$ac_objext
                   2339: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   2340:   (eval $ac_compile) 2>&5
                   2341:   ac_status=$?
                   2342:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   2343:   (exit $ac_status); } &&
                   2344:          { ac_try='test -s conftest.$ac_objext'
                   2345:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   2346:   (eval $ac_try) 2>&5
                   2347:   ac_status=$?
                   2348:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   2349:   (exit $ac_status); }; }; then
                   2350:   break
                   2351: else
                   2352:   echo "$as_me: failed program was:" >&5
                   2353: cat conftest.$ac_ext >&5
                   2354: fi
                   2355: rm -f conftest.$ac_objext conftest.$ac_ext
                   2356: done
                   2357: rm -f conftest*
                   2358: if test -n "$ac_declaration"; then
                   2359:   echo '#ifdef __cplusplus' >>confdefs.h
                   2360:   echo $ac_declaration      >>confdefs.h
                   2361:   echo '#endif'             >>confdefs.h
                   2362: fi
1.1       ohara    2363:
1.4       takayama 2364: else
                   2365:   echo "$as_me: failed program was:" >&5
                   2366: cat conftest.$ac_ext >&5
                   2367: fi
                   2368: rm -f conftest.$ac_objext conftest.$ac_ext
                   2369: ac_ext=c
                   2370: ac_cpp='$CPP $CPPFLAGS'
                   2371: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   2372: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   2373: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   2374:
1.7       ohara    2375: ac_config_commands="$ac_config_commands default-1"
                   2376:
                   2377: am_make=${MAKE-make}
                   2378: cat > confinc << 'END'
                   2379: doit:
                   2380:        @echo done
                   2381: END
                   2382: # If we don't find an include directive, just comment out the code.
                   2383: echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
                   2384: echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
                   2385: am__include='#'
                   2386: am__quote=
                   2387: _am_result=none
                   2388: # First try GNU make style include.
                   2389: echo "include confinc" > confmf
                   2390: # We grep out `Entering directory' and `Leaving directory'
                   2391: # messages which can occur if `w' ends up in MAKEFLAGS.
                   2392: # In particular we don't look at `^make:' because GNU make might
                   2393: # be invoked under some other name (usually "gmake"), in which
                   2394: # case it prints its new name instead of `make'.
                   2395: if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
                   2396:    am__include=include
                   2397:    am__quote=
                   2398:    _am_result=GNU
                   2399: fi
                   2400: # Now try BSD make style include.
                   2401: if test "$am__include" = "#"; then
                   2402:    echo '.include "confinc"' > confmf
                   2403:    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
                   2404:       am__include=.include
                   2405:       am__quote='"'
                   2406:       _am_result=BSD
                   2407:    fi
                   2408: fi
                   2409:
                   2410:
                   2411: echo "$as_me:$LINENO: result: $_am_result" >&5
                   2412: echo "${ECHO_T}$_am_result" >&6
                   2413: rm -f confinc confmf
                   2414:
                   2415:
                   2416: depcc="$CC"   am_compiler_list=
                   2417:
                   2418: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
                   2419: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
                   2420: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
                   2421:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   2422: else
                   2423:   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
                   2424:   # We make a subdir and do the tests there.  Otherwise we can end up
                   2425:   # making bogus files that we don't know about and never remove.  For
                   2426:   # instance it was reported that on HP-UX the gcc test will end up
                   2427:   # making a dummy file named `D' -- because `-MD' means `put the output
                   2428:   # in D'.
                   2429:   mkdir conftest.dir
                   2430:   # Copy depcomp to subdir because otherwise we won't find it if we're
                   2431:   # using a relative directory.
                   2432:   cp "$am_depcomp" conftest.dir
                   2433:   cd conftest.dir
                   2434:
                   2435:   am_cv_CC_dependencies_compiler_type=none
                   2436:   if test "$am_compiler_list" = ""; then
                   2437:      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
                   2438:   fi
                   2439:   for depmode in $am_compiler_list; do
                   2440:     # We need to recreate these files for each test, as the compiler may
                   2441:     # overwrite some of them when testing with obscure command lines.
                   2442:     # This happens at least with the AIX C compiler.
                   2443:     echo '#include "conftest.h"' > conftest.c
                   2444:     echo 'int i;' > conftest.h
                   2445:     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
                   2446:
                   2447:     case $depmode in
                   2448:     nosideeffect)
                   2449:       # after this tag, mechanisms are not by side-effect, so they'll
                   2450:       # only be used when explicitly requested
                   2451:       if test "x$enable_dependency_tracking" = xyes; then
                   2452:        continue
                   2453:       else
                   2454:        break
                   2455:       fi
                   2456:       ;;
                   2457:     none) break ;;
                   2458:     esac
                   2459:     # We check with `-c' and `-o' for the sake of the "dashmstdout"
                   2460:     # mode.  It turns out that the SunPro C++ compiler does not properly
                   2461:     # handle `-M -o', and we need to detect this.
                   2462:     if depmode=$depmode \
                   2463:        source=conftest.c object=conftest.o \
                   2464:        depfile=conftest.Po tmpdepfile=conftest.TPo \
                   2465:        $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
                   2466:        grep conftest.h conftest.Po > /dev/null 2>&1 &&
                   2467:        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
                   2468:       am_cv_CC_dependencies_compiler_type=$depmode
                   2469:       break
                   2470:     fi
                   2471:   done
                   2472:
                   2473:   cd ..
                   2474:   rm -rf conftest.dir
                   2475: else
                   2476:   am_cv_CC_dependencies_compiler_type=none
                   2477: fi
                   2478:
                   2479: fi
                   2480: echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
                   2481: echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
                   2482: CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
                   2483:
                   2484:
1.6       ohara    2485: # Find a good install program.  We prefer a C program (faster),
                   2486: # so one script is as good as another.  But avoid the broken or
                   2487: # incompatible versions:
                   2488: # SysV /etc/install, /usr/sbin/install
                   2489: # SunOS /usr/etc/install
                   2490: # IRIX /sbin/install
                   2491: # AIX /bin/install
                   2492: # AmigaOS /C/install, which installs bootblocks on floppy discs
                   2493: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
                   2494: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
                   2495: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
                   2496: # ./install, which can be erroneously created by make from ./install.sh.
                   2497: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
                   2498: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
                   2499: if test -z "$INSTALL"; then
                   2500: if test "${ac_cv_path_install+set}" = set; then
                   2501:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   2502: else
                   2503:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2504: for as_dir in $PATH
                   2505: do
                   2506:   IFS=$as_save_IFS
                   2507:   test -z "$as_dir" && as_dir=.
                   2508:   # Account for people who put trailing slashes in PATH elements.
                   2509: case $as_dir/ in
                   2510:   ./ | .// | /cC/* | \
                   2511:   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
                   2512:   /usr/ucb/* ) ;;
                   2513:   *)
                   2514:     # OSF1 and SCO ODT 3.0 have their own names for install.
                   2515:     # Don't use installbsd from OSF since it installs stuff as root
                   2516:     # by default.
                   2517:     for ac_prog in ginstall scoinst install; do
                   2518:       for ac_exec_ext in '' $ac_executable_extensions; do
                   2519:         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
                   2520:           if test $ac_prog = install &&
                   2521:             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
                   2522:             # AIX install.  It has an incompatible calling convention.
                   2523:             :
                   2524:           elif test $ac_prog = install &&
                   2525:             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
                   2526:             # program-specific install script used by HP pwplus--don't use.
                   2527:             :
                   2528:           else
                   2529:             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
                   2530:             break 3
                   2531:           fi
                   2532:         fi
                   2533:       done
                   2534:     done
                   2535:     ;;
                   2536: esac
                   2537: done
                   2538:
                   2539:
                   2540: fi
                   2541:   if test "${ac_cv_path_install+set}" = set; then
                   2542:     INSTALL=$ac_cv_path_install
                   2543:   else
                   2544:     # As a last resort, use the slow shell script.  We don't cache a
                   2545:     # path for INSTALL within a source directory, because that will
                   2546:     # break other packages using the cache if that directory is
                   2547:     # removed, or if the path is relative.
                   2548:     INSTALL=$ac_install_sh
                   2549:   fi
                   2550: fi
                   2551: echo "$as_me:$LINENO: result: $INSTALL" >&5
                   2552: echo "${ECHO_T}$INSTALL" >&6
                   2553:
                   2554: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
                   2555: # It thinks the first close brace ends the variable substitution.
                   2556: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
                   2557:
                   2558: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
                   2559:
                   2560: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
                   2561:
1.7       ohara    2562: # Check whether --enable-shared or --disable-shared was given.
                   2563: if test "${enable_shared+set}" = set; then
                   2564:   enableval="$enable_shared"
                   2565:   p=${PACKAGE-default}
                   2566: case "$enableval" in
                   2567: yes) enable_shared=yes ;;
                   2568: no) enable_shared=no ;;
                   2569: *)
                   2570:   enable_shared=no
                   2571:   # Look at the argument we got.  We use all the common list separators.
                   2572:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
                   2573:   for pkg in $enableval; do
                   2574:     if test "X$pkg" = "X$p"; then
                   2575:       enable_shared=yes
                   2576:     fi
                   2577:   done
                   2578:   IFS="$ac_save_ifs"
                   2579:   ;;
                   2580: esac
                   2581: else
                   2582:   enable_shared=yes
                   2583: fi;
                   2584: # Check whether --enable-static or --disable-static was given.
                   2585: if test "${enable_static+set}" = set; then
                   2586:   enableval="$enable_static"
                   2587:   p=${PACKAGE-default}
                   2588: case "$enableval" in
                   2589: yes) enable_static=yes ;;
                   2590: no) enable_static=no ;;
                   2591: *)
                   2592:   enable_static=no
                   2593:   # Look at the argument we got.  We use all the common list separators.
                   2594:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
                   2595:   for pkg in $enableval; do
                   2596:     if test "X$pkg" = "X$p"; then
                   2597:       enable_static=yes
                   2598:     fi
                   2599:   done
                   2600:   IFS="$ac_save_ifs"
                   2601:   ;;
                   2602: esac
                   2603: else
                   2604:   enable_static=yes
                   2605: fi;
                   2606: # Check whether --enable-fast-install or --disable-fast-install was given.
                   2607: if test "${enable_fast_install+set}" = set; then
                   2608:   enableval="$enable_fast_install"
                   2609:   p=${PACKAGE-default}
                   2610: case "$enableval" in
                   2611: yes) enable_fast_install=yes ;;
                   2612: no) enable_fast_install=no ;;
                   2613: *)
                   2614:   enable_fast_install=no
                   2615:   # Look at the argument we got.  We use all the common list separators.
                   2616:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
                   2617:   for pkg in $enableval; do
                   2618:     if test "X$pkg" = "X$p"; then
                   2619:       enable_fast_install=yes
                   2620:     fi
                   2621:   done
                   2622:   IFS="$ac_save_ifs"
                   2623:   ;;
                   2624: esac
                   2625: else
                   2626:   enable_fast_install=yes
                   2627: fi;
1.4       takayama 2628: if test -n "$ac_tool_prefix"; then
                   2629:   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
                   2630: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
                   2631: echo "$as_me:$LINENO: checking for $ac_word" >&5
                   2632: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   2633: if test "${ac_cv_prog_RANLIB+set}" = set; then
                   2634:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       ohara    2635: else
                   2636:   if test -n "$RANLIB"; then
                   2637:   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
                   2638: else
1.4       takayama 2639: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2640: for as_dir in $PATH
                   2641: do
                   2642:   IFS=$as_save_IFS
                   2643:   test -z "$as_dir" && as_dir=.
                   2644:   for ac_exec_ext in '' $ac_executable_extensions; do
                   2645:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
                   2646:     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
                   2647:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   2648:     break 2
                   2649:   fi
                   2650: done
                   2651: done
                   2652:
1.1       ohara    2653: fi
                   2654: fi
1.4       takayama 2655: RANLIB=$ac_cv_prog_RANLIB
1.1       ohara    2656: if test -n "$RANLIB"; then
1.4       takayama 2657:   echo "$as_me:$LINENO: result: $RANLIB" >&5
                   2658: echo "${ECHO_T}$RANLIB" >&6
                   2659: else
                   2660:   echo "$as_me:$LINENO: result: no" >&5
                   2661: echo "${ECHO_T}no" >&6
                   2662: fi
                   2663:
                   2664: fi
                   2665: if test -z "$ac_cv_prog_RANLIB"; then
                   2666:   ac_ct_RANLIB=$RANLIB
                   2667:   # Extract the first word of "ranlib", so it can be a program name with args.
                   2668: set dummy ranlib; ac_word=$2
                   2669: echo "$as_me:$LINENO: checking for $ac_word" >&5
                   2670: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   2671: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
                   2672:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   2673: else
                   2674:   if test -n "$ac_ct_RANLIB"; then
                   2675:   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
                   2676: else
                   2677: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2678: for as_dir in $PATH
                   2679: do
                   2680:   IFS=$as_save_IFS
                   2681:   test -z "$as_dir" && as_dir=.
                   2682:   for ac_exec_ext in '' $ac_executable_extensions; do
                   2683:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
                   2684:     ac_cv_prog_ac_ct_RANLIB="ranlib"
                   2685:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   2686:     break 2
                   2687:   fi
                   2688: done
                   2689: done
                   2690:
                   2691:   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
                   2692: fi
                   2693: fi
                   2694: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
                   2695: if test -n "$ac_ct_RANLIB"; then
                   2696:   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
                   2697: echo "${ECHO_T}$ac_ct_RANLIB" >&6
                   2698: else
                   2699:   echo "$as_me:$LINENO: result: no" >&5
                   2700: echo "${ECHO_T}no" >&6
                   2701: fi
                   2702:
                   2703:   RANLIB=$ac_ct_RANLIB
1.1       ohara    2704: else
1.4       takayama 2705:   RANLIB="$ac_cv_prog_RANLIB"
1.1       ohara    2706: fi
                   2707:
1.4       takayama 2708:
1.7       ohara    2709: # Check whether --with-gnu-ld or --without-gnu-ld was given.
                   2710: if test "${with_gnu_ld+set}" = set; then
                   2711:   withval="$with_gnu_ld"
                   2712:   test "$withval" = no || with_gnu_ld=yes
                   2713: else
                   2714:   with_gnu_ld=no
                   2715: fi;
                   2716: ac_prog=ld
                   2717: if test "$ac_cv_c_compiler_gnu" = yes; then
                   2718:   # Check if gcc -print-prog-name=ld gives a path.
                   2719:   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
                   2720: echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
                   2721:   ac_prog=`($CC -print-prog-name=ld) 2>&5`
                   2722:   case "$ac_prog" in
                   2723:     # Accept absolute paths.
                   2724:     [\\/]* | [A-Za-z]:[\\/]*)
                   2725:       re_direlt='/[^/][^/]*/\.\./'
                   2726:       # Canonicalize the path of ld
                   2727:       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
                   2728:       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
                   2729:        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
                   2730:       done
                   2731:       test -z "$LD" && LD="$ac_prog"
                   2732:       ;;
                   2733:   "")
                   2734:     # If it fails, then pretend we aren't using GCC.
                   2735:     ac_prog=ld
                   2736:     ;;
                   2737:   *)
                   2738:     # If it is relative, then search for the first ld in PATH.
                   2739:     with_gnu_ld=unknown
                   2740:     ;;
                   2741:   esac
                   2742: elif test "$with_gnu_ld" = yes; then
                   2743:   echo "$as_me:$LINENO: checking for GNU ld" >&5
                   2744: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
                   2745: else
                   2746:   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
                   2747: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
                   2748: fi
                   2749: if test "${ac_cv_path_LD+set}" = set; then
                   2750:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   2751: else
                   2752:   if test -z "$LD"; then
                   2753:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
                   2754:   for ac_dir in $PATH; do
                   2755:     test -z "$ac_dir" && ac_dir=.
                   2756:     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
                   2757:       ac_cv_path_LD="$ac_dir/$ac_prog"
                   2758:       # Check to see if the program is GNU ld.  I'd rather use --version,
                   2759:       # but apparently some GNU ld's only accept -v.
                   2760:       # Break only if it was the GNU/non-GNU ld that we prefer.
                   2761:       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
                   2762:        test "$with_gnu_ld" != no && break
                   2763:       else
                   2764:        test "$with_gnu_ld" != yes && break
                   2765:       fi
                   2766:     fi
                   2767:   done
                   2768:   IFS="$ac_save_ifs"
                   2769: else
                   2770:   ac_cv_path_LD="$LD" # Let the user override the test with a path.
                   2771: fi
                   2772: fi
                   2773:
                   2774: LD="$ac_cv_path_LD"
                   2775: if test -n "$LD"; then
                   2776:   echo "$as_me:$LINENO: result: $LD" >&5
                   2777: echo "${ECHO_T}$LD" >&6
                   2778: else
                   2779:   echo "$as_me:$LINENO: result: no" >&5
                   2780: echo "${ECHO_T}no" >&6
                   2781: fi
                   2782: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
                   2783: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
                   2784:    { (exit 1); exit 1; }; }
                   2785: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
                   2786: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
                   2787: if test "${ac_cv_prog_gnu_ld+set}" = set; then
                   2788:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   2789: else
                   2790:   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
                   2791: if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
                   2792:   ac_cv_prog_gnu_ld=yes
                   2793: else
                   2794:   ac_cv_prog_gnu_ld=no
                   2795: fi
                   2796: fi
                   2797: echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
                   2798: echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
                   2799:
                   2800:
                   2801: echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
                   2802: echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
                   2803: if test "${ac_cv_path_NM+set}" = set; then
                   2804:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   2805: else
                   2806:   if test -n "$NM"; then
                   2807:   # Let the user override the test.
                   2808:   ac_cv_path_NM="$NM"
                   2809: else
                   2810:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
                   2811:   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
                   2812:     test -z "$ac_dir" && ac_dir=.
                   2813:     if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
                   2814:       # Check to see if the nm accepts a BSD-compat flag.
                   2815:       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
                   2816:       #   nm: unknown option "B" ignored
                   2817:       if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
                   2818:        ac_cv_path_NM="$ac_dir/nm -B"
                   2819:        break
                   2820:       elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
                   2821:        ac_cv_path_NM="$ac_dir/nm -p"
                   2822:        break
                   2823:       else
                   2824:        ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
                   2825:        continue # so that we can try to find one that supports BSD flags
                   2826:       fi
                   2827:     fi
                   2828:   done
                   2829:   IFS="$ac_save_ifs"
                   2830:   test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
                   2831: fi
                   2832: fi
                   2833:
                   2834: NM="$ac_cv_path_NM"
                   2835: echo "$as_me:$LINENO: result: $NM" >&5
                   2836: echo "${ECHO_T}$NM" >&6
                   2837:
                   2838: echo "$as_me:$LINENO: checking whether ln -s works" >&5
                   2839: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
                   2840: LN_S=$as_ln_s
                   2841: if test "$LN_S" = "ln -s"; then
                   2842:   echo "$as_me:$LINENO: result: yes" >&5
                   2843: echo "${ECHO_T}yes" >&6
                   2844: else
                   2845:   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
                   2846: echo "${ECHO_T}no, using $LN_S" >&6
                   2847: fi
                   2848:
                   2849:
                   2850:
                   2851: case "$target" in
                   2852: NONE) lt_target="$host" ;;
                   2853: *) lt_target="$target" ;;
                   2854: esac
                   2855:
                   2856: # Check for any special flags to pass to ltconfig.
                   2857: libtool_flags="--cache-file=$cache_file"
                   2858: test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
                   2859: test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
                   2860: test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
                   2861: test "$ac_cv_c_compiler_gnu" = yes && libtool_flags="$libtool_flags --with-gcc"
                   2862: test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
                   2863:
                   2864:
                   2865: # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
                   2866: if test "${enable_libtool_lock+set}" = set; then
                   2867:   enableval="$enable_libtool_lock"
                   2868:
                   2869: fi;
                   2870: test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
                   2871: test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
                   2872:
                   2873: # Some flags need to be propagated to the compiler or linker for good
                   2874: # libtool support.
                   2875: case "$lt_target" in
                   2876: *-*-irix6*)
                   2877:   # Find out which ABI we are using.
1.8     ! ohara    2878:   echo '#line 2878 "configure"' > conftest.$ac_ext
1.7       ohara    2879:   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   2880:   (eval $ac_compile) 2>&5
                   2881:   ac_status=$?
                   2882:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   2883:   (exit $ac_status); }; then
                   2884:     case "`/usr/bin/file conftest.o`" in
                   2885:     *32-bit*)
                   2886:       LD="${LD-ld} -32"
                   2887:       ;;
                   2888:     *N32*)
                   2889:       LD="${LD-ld} -n32"
                   2890:       ;;
                   2891:     *64-bit*)
                   2892:       LD="${LD-ld} -64"
                   2893:       ;;
                   2894:     esac
                   2895:   fi
                   2896:   rm -rf conftest*
                   2897:   ;;
                   2898:
                   2899: *-*-sco3.2v5*)
                   2900:   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
                   2901:   SAVE_CFLAGS="$CFLAGS"
                   2902:   CFLAGS="$CFLAGS -belf"
                   2903:   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
                   2904: echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
                   2905: if test "${lt_cv_cc_needs_belf+set}" = set; then
                   2906:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   2907: else
                   2908:   cat >conftest.$ac_ext <<_ACEOF
                   2909: #line $LINENO "configure"
                   2910: #include "confdefs.h"
                   2911:
                   2912: #ifdef F77_DUMMY_MAIN
                   2913: #  ifdef __cplusplus
                   2914:      extern "C"
                   2915: #  endif
                   2916:    int F77_DUMMY_MAIN() { return 1; }
                   2917: #endif
                   2918: int
                   2919: main ()
                   2920: {
                   2921:
                   2922:   ;
                   2923:   return 0;
                   2924: }
                   2925: _ACEOF
                   2926: rm -f conftest.$ac_objext conftest$ac_exeext
                   2927: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   2928:   (eval $ac_link) 2>&5
                   2929:   ac_status=$?
                   2930:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   2931:   (exit $ac_status); } &&
                   2932:          { ac_try='test -s conftest$ac_exeext'
                   2933:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   2934:   (eval $ac_try) 2>&5
                   2935:   ac_status=$?
                   2936:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   2937:   (exit $ac_status); }; }; then
                   2938:   lt_cv_cc_needs_belf=yes
                   2939: else
                   2940:   echo "$as_me: failed program was:" >&5
                   2941: cat conftest.$ac_ext >&5
                   2942: lt_cv_cc_needs_belf=no
                   2943: fi
                   2944: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   2945: fi
                   2946: echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
                   2947: echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
                   2948:   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
                   2949:     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
                   2950:     CFLAGS="$SAVE_CFLAGS"
                   2951:   fi
                   2952:   ;;
                   2953:
                   2954:
                   2955: esac
                   2956:
                   2957:
                   2958: # Save cache, so that ltconfig can load it
                   2959: cat >confcache <<\_ACEOF
                   2960: # This file is a shell script that caches the results of configure
                   2961: # tests run on this system so they can be shared between configure
                   2962: # scripts and configure runs, see configure's option --config-cache.
                   2963: # It is not useful on other systems.  If it contains results you don't
                   2964: # want to keep, you may remove or edit it.
                   2965: #
                   2966: # config.status only pays attention to the cache file if you give it
                   2967: # the --recheck option to rerun configure.
                   2968: #
                   2969: # `ac_cv_env_foo' variables (set or unset) will be overriden when
                   2970: # loading this file, other *unset* `ac_cv_foo' will be assigned the
                   2971: # following values.
                   2972:
                   2973: _ACEOF
                   2974:
                   2975: # The following way of writing the cache mishandles newlines in values,
                   2976: # but we know of no workaround that is simple, portable, and efficient.
                   2977: # So, don't put newlines in cache variables' values.
                   2978: # Ultrix sh set writes to stderr and can't be redirected directly,
                   2979: # and sets the high bit in the cache file unless we assign to the vars.
                   2980: {
                   2981:   (set) 2>&1 |
                   2982:     case `(ac_space=' '; set | grep ac_space) 2>&1` in
                   2983:     *ac_space=\ *)
                   2984:       # `set' does not quote correctly, so add quotes (double-quote
                   2985:       # substitution turns \\\\ into \\, and sed turns \\ into \).
                   2986:       sed -n \
                   2987:         "s/'/'\\\\''/g;
                   2988:          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
                   2989:       ;;
                   2990:     *)
                   2991:       # `set' quotes correctly as required by POSIX, so do not add quotes.
                   2992:       sed -n \
                   2993:         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
                   2994:       ;;
                   2995:     esac;
                   2996: } |
                   2997:   sed '
                   2998:      t clear
                   2999:      : clear
                   3000:      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
                   3001:      t end
                   3002:      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
                   3003:      : end' >>confcache
                   3004: if cmp -s $cache_file confcache; then :; else
                   3005:   if test -w $cache_file; then
                   3006:     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
                   3007:     cat confcache >$cache_file
                   3008:   else
                   3009:     echo "not updating unwritable cache $cache_file"
                   3010:   fi
                   3011: fi
                   3012: rm -f confcache
                   3013:
                   3014: # Actually configure libtool.  ac_aux_dir is where install-sh is found.
                   3015: CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
                   3016: LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
                   3017: LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
                   3018: DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
                   3019: ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
                   3020: $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
                   3021: || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
                   3022: echo "$as_me: error: libtool configure failed" >&2;}
                   3023:    { (exit 1); exit 1; }; }
                   3024:
                   3025: # Reload cache, that may have been modified by ltconfig
                   3026: if test -r "$cache_file"; then
                   3027:   # Some versions of bash will fail to source /dev/null (special
                   3028:   # files actually), so we avoid doing that.
                   3029:   if test -f "$cache_file"; then
                   3030:     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
                   3031: echo "$as_me: loading cache $cache_file" >&6;}
                   3032:     case $cache_file in
                   3033:       [\\/]* | ?:[\\/]* ) . $cache_file;;
                   3034:       *)                      . ./$cache_file;;
                   3035:     esac
                   3036:   fi
                   3037: else
                   3038:   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
                   3039: echo "$as_me: creating cache $cache_file" >&6;}
                   3040:   >$cache_file
                   3041: fi
                   3042:
                   3043:
                   3044: # This can be used to rebuild libtool when needed
                   3045: LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
                   3046:
                   3047: # Always use our own libtool.
                   3048: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
                   3049:
                   3050: # Redirect the config.log output again, so that the ltconfig log is not
                   3051: # clobbered by the next message.
                   3052: exec 5>>./config.log
                   3053:
1.4       takayama 3054: ac_ext=c
                   3055: ac_cpp='$CPP $CPPFLAGS'
                   3056: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   3057: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   3058: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   3059: echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
                   3060: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1.1       ohara    3061: # On Suns, sometimes $CPP names a directory.
                   3062: if test -n "$CPP" && test -d "$CPP"; then
                   3063:   CPP=
                   3064: fi
                   3065: if test -z "$CPP"; then
1.4       takayama 3066:   if test "${ac_cv_prog_CPP+set}" = set; then
                   3067:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       ohara    3068: else
1.4       takayama 3069:       # Double quotes because CPP needs to be expanded
                   3070:     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
                   3071:     do
                   3072:       ac_preproc_ok=false
                   3073: for ac_c_preproc_warn_flag in '' yes
                   3074: do
                   3075:   # Use a header file that comes with gcc, so configuring glibc
                   3076:   # with a fresh cross-compiler works.
1.1       ohara    3077:   # On the NeXT, cc -E runs the code through the compiler's parser,
1.4       takayama 3078:   # not just through cpp. "Syntax error" is here to catch this case.
                   3079:   cat >conftest.$ac_ext <<_ACEOF
                   3080: #line $LINENO "configure"
1.1       ohara    3081: #include "confdefs.h"
                   3082: #include <assert.h>
1.4       takayama 3083:                      Syntax error
                   3084: _ACEOF
                   3085: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
                   3086:   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
                   3087:   ac_status=$?
                   3088:   egrep -v '^ *\+' conftest.er1 >conftest.err
                   3089:   rm -f conftest.er1
                   3090:   cat conftest.err >&5
                   3091:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   3092:   (exit $ac_status); } >/dev/null; then
                   3093:   if test -s conftest.err; then
                   3094:     ac_cpp_err=$ac_c_preproc_warn_flag
                   3095:   else
                   3096:     ac_cpp_err=
                   3097:   fi
                   3098: else
                   3099:   ac_cpp_err=yes
                   3100: fi
                   3101: if test -z "$ac_cpp_err"; then
1.1       ohara    3102:   :
                   3103: else
1.4       takayama 3104:   echo "$as_me: failed program was:" >&5
1.1       ohara    3105:   cat conftest.$ac_ext >&5
1.4       takayama 3106:   # Broken: fails on valid input.
                   3107: continue
                   3108: fi
                   3109: rm -f conftest.err conftest.$ac_ext
                   3110:
                   3111:   # OK, works on sane cases.  Now check whether non-existent headers
                   3112:   # can be detected and how.
                   3113:   cat >conftest.$ac_ext <<_ACEOF
                   3114: #line $LINENO "configure"
1.1       ohara    3115: #include "confdefs.h"
1.4       takayama 3116: #include <ac_nonexistent.h>
                   3117: _ACEOF
                   3118: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
                   3119:   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
                   3120:   ac_status=$?
                   3121:   egrep -v '^ *\+' conftest.er1 >conftest.err
                   3122:   rm -f conftest.er1
                   3123:   cat conftest.err >&5
                   3124:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   3125:   (exit $ac_status); } >/dev/null; then
                   3126:   if test -s conftest.err; then
                   3127:     ac_cpp_err=$ac_c_preproc_warn_flag
                   3128:   else
                   3129:     ac_cpp_err=
                   3130:   fi
                   3131: else
                   3132:   ac_cpp_err=yes
                   3133: fi
                   3134: if test -z "$ac_cpp_err"; then
                   3135:   # Broken: success on invalid input.
                   3136: continue
1.1       ohara    3137: else
1.4       takayama 3138:   echo "$as_me: failed program was:" >&5
1.1       ohara    3139:   cat conftest.$ac_ext >&5
1.4       takayama 3140:   # Passes both tests.
                   3141: ac_preproc_ok=:
                   3142: break
                   3143: fi
                   3144: rm -f conftest.err conftest.$ac_ext
                   3145:
                   3146: done
                   3147: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
                   3148: rm -f conftest.err conftest.$ac_ext
                   3149: if $ac_preproc_ok; then
                   3150:   break
                   3151: fi
                   3152:
                   3153:     done
                   3154:     ac_cv_prog_CPP=$CPP
                   3155:
                   3156: fi
                   3157:   CPP=$ac_cv_prog_CPP
                   3158: else
                   3159:   ac_cv_prog_CPP=$CPP
                   3160: fi
                   3161: echo "$as_me:$LINENO: result: $CPP" >&5
                   3162: echo "${ECHO_T}$CPP" >&6
                   3163: ac_preproc_ok=false
                   3164: for ac_c_preproc_warn_flag in '' yes
                   3165: do
                   3166:   # Use a header file that comes with gcc, so configuring glibc
                   3167:   # with a fresh cross-compiler works.
                   3168:   # On the NeXT, cc -E runs the code through the compiler's parser,
                   3169:   # not just through cpp. "Syntax error" is here to catch this case.
                   3170:   cat >conftest.$ac_ext <<_ACEOF
                   3171: #line $LINENO "configure"
1.1       ohara    3172: #include "confdefs.h"
                   3173: #include <assert.h>
1.4       takayama 3174:                      Syntax error
                   3175: _ACEOF
                   3176: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
                   3177:   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
                   3178:   ac_status=$?
                   3179:   egrep -v '^ *\+' conftest.er1 >conftest.err
                   3180:   rm -f conftest.er1
                   3181:   cat conftest.err >&5
                   3182:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   3183:   (exit $ac_status); } >/dev/null; then
                   3184:   if test -s conftest.err; then
                   3185:     ac_cpp_err=$ac_c_preproc_warn_flag
                   3186:   else
                   3187:     ac_cpp_err=
                   3188:   fi
                   3189: else
                   3190:   ac_cpp_err=yes
                   3191: fi
                   3192: if test -z "$ac_cpp_err"; then
1.1       ohara    3193:   :
                   3194: else
1.4       takayama 3195:   echo "$as_me: failed program was:" >&5
1.1       ohara    3196:   cat conftest.$ac_ext >&5
1.4       takayama 3197:   # Broken: fails on valid input.
                   3198: continue
1.1       ohara    3199: fi
1.4       takayama 3200: rm -f conftest.err conftest.$ac_ext
                   3201:
                   3202:   # OK, works on sane cases.  Now check whether non-existent headers
                   3203:   # can be detected and how.
                   3204:   cat >conftest.$ac_ext <<_ACEOF
                   3205: #line $LINENO "configure"
                   3206: #include "confdefs.h"
                   3207: #include <ac_nonexistent.h>
                   3208: _ACEOF
                   3209: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
                   3210:   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
                   3211:   ac_status=$?
                   3212:   egrep -v '^ *\+' conftest.er1 >conftest.err
                   3213:   rm -f conftest.er1
                   3214:   cat conftest.err >&5
                   3215:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   3216:   (exit $ac_status); } >/dev/null; then
                   3217:   if test -s conftest.err; then
                   3218:     ac_cpp_err=$ac_c_preproc_warn_flag
                   3219:   else
                   3220:     ac_cpp_err=
                   3221:   fi
                   3222: else
                   3223:   ac_cpp_err=yes
1.1       ohara    3224: fi
1.4       takayama 3225: if test -z "$ac_cpp_err"; then
                   3226:   # Broken: success on invalid input.
                   3227: continue
                   3228: else
                   3229:   echo "$as_me: failed program was:" >&5
                   3230:   cat conftest.$ac_ext >&5
                   3231:   # Passes both tests.
                   3232: ac_preproc_ok=:
                   3233: break
1.1       ohara    3234: fi
1.4       takayama 3235: rm -f conftest.err conftest.$ac_ext
                   3236:
                   3237: done
                   3238: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
                   3239: rm -f conftest.err conftest.$ac_ext
                   3240: if $ac_preproc_ok; then
                   3241:   :
1.1       ohara    3242: else
1.4       takayama 3243:   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
                   3244: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
                   3245:    { (exit 1); exit 1; }; }
1.1       ohara    3246: fi
                   3247:
1.4       takayama 3248: ac_ext=c
                   3249: ac_cpp='$CPP $CPPFLAGS'
                   3250: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   3251: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   3252: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   3253:
                   3254:
                   3255: echo "$as_me:$LINENO: checking for X" >&5
                   3256: echo $ECHO_N "checking for X... $ECHO_C" >&6
                   3257:
1.1       ohara    3258:
                   3259: # Check whether --with-x or --without-x was given.
                   3260: if test "${with_x+set}" = set; then
                   3261:   withval="$with_x"
                   3262:
1.4       takayama 3263: fi;
1.1       ohara    3264: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
                   3265: if test "x$with_x" = xno; then
                   3266:   # The user explicitly disabled X.
                   3267:   have_x=disabled
                   3268: else
                   3269:   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
                   3270:     # Both variables are already set.
                   3271:     have_x=yes
                   3272:   else
1.4       takayama 3273:     if test "${ac_cv_have_x+set}" = set; then
                   3274:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       ohara    3275: else
                   3276:   # One or both of the vars are not set, and there is no cached value.
1.4       takayama 3277: ac_x_includes=no ac_x_libraries=no
                   3278: rm -fr conftest.dir
                   3279: if mkdir conftest.dir; then
                   3280:   cd conftest.dir
1.1       ohara    3281:   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1.4       takayama 3282:   cat >Imakefile <<'_ACEOF'
1.1       ohara    3283: acfindx:
                   3284:        @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1.4       takayama 3285: _ACEOF
1.1       ohara    3286:   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
                   3287:     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
                   3288:     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
                   3289:     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
                   3290:     for ac_extension in a so sl; do
                   3291:       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
1.4       takayama 3292:          test -f $ac_im_libdir/libX11.$ac_extension; then
1.1       ohara    3293:         ac_im_usrlibdir=$ac_im_libdir; break
                   3294:       fi
                   3295:     done
                   3296:     # Screen out bogus values from the imake configuration.  They are
                   3297:     # bogus both because they are the default anyway, and because
                   3298:     # using them would break gcc on systems where it needs fixed includes.
1.4       takayama 3299:     case $ac_im_incroot in
1.1       ohara    3300:        /usr/include) ;;
1.4       takayama 3301:        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
1.1       ohara    3302:     esac
1.4       takayama 3303:     case $ac_im_usrlibdir in
1.1       ohara    3304:        /usr/lib | /lib) ;;
1.4       takayama 3305:        *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
1.1       ohara    3306:     esac
                   3307:   fi
                   3308:   cd ..
1.4       takayama 3309:   rm -fr conftest.dir
1.1       ohara    3310: fi
                   3311:
1.4       takayama 3312: # Standard set of common directories for X headers.
                   3313: # Check X11 before X11Rn because it is often a symlink to the current release.
                   3314: ac_x_header_dirs='
                   3315: /usr/X11/include
                   3316: /usr/X11R6/include
                   3317: /usr/X11R5/include
                   3318: /usr/X11R4/include
                   3319:
                   3320: /usr/include/X11
                   3321: /usr/include/X11R6
                   3322: /usr/include/X11R5
                   3323: /usr/include/X11R4
                   3324:
                   3325: /usr/local/X11/include
                   3326: /usr/local/X11R6/include
                   3327: /usr/local/X11R5/include
                   3328: /usr/local/X11R4/include
                   3329:
                   3330: /usr/local/include/X11
                   3331: /usr/local/include/X11R6
                   3332: /usr/local/include/X11R5
                   3333: /usr/local/include/X11R4
                   3334:
                   3335: /usr/X386/include
                   3336: /usr/x386/include
                   3337: /usr/XFree86/include/X11
                   3338:
                   3339: /usr/include
                   3340: /usr/local/include
                   3341: /usr/unsupported/include
                   3342: /usr/athena/include
                   3343: /usr/local/x11r5/include
                   3344: /usr/lpp/Xamples/include
                   3345:
                   3346: /usr/openwin/include
                   3347: /usr/openwin/share/include'
1.1       ohara    3348:
1.4       takayama 3349: if test "$ac_x_includes" = no; then
                   3350:   # Guess where to find include files, by looking for Intrinsic.h.
1.1       ohara    3351:   # First, try using that file with no special directory specified.
1.4       takayama 3352:   cat >conftest.$ac_ext <<_ACEOF
                   3353: #line $LINENO "configure"
1.1       ohara    3354: #include "confdefs.h"
1.4       takayama 3355: #include <X11/Intrinsic.h>
                   3356: _ACEOF
                   3357: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
                   3358:   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
                   3359:   ac_status=$?
                   3360:   egrep -v '^ *\+' conftest.er1 >conftest.err
                   3361:   rm -f conftest.er1
                   3362:   cat conftest.err >&5
                   3363:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   3364:   (exit $ac_status); } >/dev/null; then
                   3365:   if test -s conftest.err; then
                   3366:     ac_cpp_err=$ac_c_preproc_warn_flag
                   3367:   else
                   3368:     ac_cpp_err=
                   3369:   fi
                   3370: else
                   3371:   ac_cpp_err=yes
                   3372: fi
                   3373: if test -z "$ac_cpp_err"; then
1.1       ohara    3374:   # We can compile using X headers with no special include directory.
                   3375: ac_x_includes=
                   3376: else
1.4       takayama 3377:   echo "$as_me: failed program was:" >&5
1.1       ohara    3378:   cat conftest.$ac_ext >&5
1.4       takayama 3379:   for ac_dir in $ac_x_header_dirs; do
                   3380:   if test -r "$ac_dir/X11/Intrinsic.h"; then
                   3381:     ac_x_includes=$ac_dir
                   3382:     break
                   3383:   fi
                   3384: done
1.1       ohara    3385: fi
1.4       takayama 3386: rm -f conftest.err conftest.$ac_ext
                   3387: fi # $ac_x_includes = no
1.1       ohara    3388:
1.4       takayama 3389: if test "$ac_x_libraries" = no; then
1.1       ohara    3390:   # Check for the libraries.
                   3391:   # See if we find them without any special options.
                   3392:   # Don't add to $LIBS permanently.
1.4       takayama 3393:   ac_save_LIBS=$LIBS
                   3394:   LIBS="-lXt $LIBS"
                   3395:   cat >conftest.$ac_ext <<_ACEOF
                   3396: #line $LINENO "configure"
1.1       ohara    3397: #include "confdefs.h"
1.4       takayama 3398: #include <X11/Intrinsic.h>
                   3399: #ifdef F77_DUMMY_MAIN
                   3400: #  ifdef __cplusplus
                   3401:      extern "C"
                   3402: #  endif
                   3403:    int F77_DUMMY_MAIN() { return 1; }
                   3404: #endif
                   3405: int
                   3406: main ()
                   3407: {
                   3408: XtMalloc (0)
                   3409:   ;
                   3410:   return 0;
                   3411: }
                   3412: _ACEOF
                   3413: rm -f conftest.$ac_objext conftest$ac_exeext
                   3414: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   3415:   (eval $ac_link) 2>&5
                   3416:   ac_status=$?
                   3417:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   3418:   (exit $ac_status); } &&
                   3419:          { ac_try='test -s conftest$ac_exeext'
                   3420:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   3421:   (eval $ac_try) 2>&5
                   3422:   ac_status=$?
                   3423:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   3424:   (exit $ac_status); }; }; then
                   3425:   LIBS=$ac_save_LIBS
1.1       ohara    3426: # We can link X programs with no special library path.
                   3427: ac_x_libraries=
                   3428: else
1.4       takayama 3429:   echo "$as_me: failed program was:" >&5
                   3430: cat conftest.$ac_ext >&5
                   3431: LIBS=$ac_save_LIBS
                   3432: for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
1.1       ohara    3433: do
1.4       takayama 3434:   # Don't even attempt the hair of trying to link an X program!
1.1       ohara    3435:   for ac_extension in a so sl; do
1.4       takayama 3436:     if test -r $ac_dir/libXt.$ac_extension; then
1.1       ohara    3437:       ac_x_libraries=$ac_dir
                   3438:       break 2
                   3439:     fi
                   3440:   done
                   3441: done
                   3442: fi
1.4       takayama 3443: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   3444: fi # $ac_x_libraries = no
1.1       ohara    3445:
1.4       takayama 3446: if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
1.1       ohara    3447:   # Didn't find X anywhere.  Cache the known absence of X.
                   3448:   ac_cv_have_x="have_x=no"
                   3449: else
                   3450:   # Record where we found X for the cache.
                   3451:   ac_cv_have_x="have_x=yes \
                   3452:                ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
                   3453: fi
                   3454: fi
1.4       takayama 3455:
1.1       ohara    3456:   fi
                   3457:   eval "$ac_cv_have_x"
                   3458: fi # $with_x != no
                   3459:
                   3460: if test "$have_x" != yes; then
1.4       takayama 3461:   echo "$as_me:$LINENO: result: $have_x" >&5
                   3462: echo "${ECHO_T}$have_x" >&6
1.1       ohara    3463:   no_x=yes
                   3464: else
                   3465:   # If each of the values was on the command line, it overrides each guess.
                   3466:   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
                   3467:   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
                   3468:   # Update the cache value to reflect the command line values.
                   3469:   ac_cv_have_x="have_x=yes \
                   3470:                ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1.4       takayama 3471:   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
                   3472: echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
1.1       ohara    3473: fi
                   3474:
                   3475: if test "$no_x" = yes; then
                   3476:   # Not all programs may use this symbol, but it does not hurt to define it.
1.4       takayama 3477:
                   3478: cat >>confdefs.h <<\_ACEOF
1.1       ohara    3479: #define X_DISPLAY_MISSING 1
1.4       takayama 3480: _ACEOF
1.1       ohara    3481:
                   3482:   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
                   3483: else
                   3484:   if test -n "$x_includes"; then
                   3485:     X_CFLAGS="$X_CFLAGS -I$x_includes"
                   3486:   fi
                   3487:
                   3488:   # It would also be nice to do this for all -L options, not just this one.
                   3489:   if test -n "$x_libraries"; then
                   3490:     X_LIBS="$X_LIBS -L$x_libraries"
                   3491:     # For Solaris; some versions of Sun CC require a space after -R and
                   3492:     # others require no space.  Words are not sufficient . . . .
1.4       takayama 3493:     case `(uname -sr) 2>/dev/null` in
1.1       ohara    3494:     "SunOS 5"*)
1.4       takayama 3495:       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
                   3496: echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
                   3497:       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
                   3498:       cat >conftest.$ac_ext <<_ACEOF
                   3499: #line $LINENO "configure"
1.1       ohara    3500: #include "confdefs.h"
                   3501:
1.4       takayama 3502: #ifdef F77_DUMMY_MAIN
                   3503: #  ifdef __cplusplus
                   3504:      extern "C"
                   3505: #  endif
                   3506:    int F77_DUMMY_MAIN() { return 1; }
                   3507: #endif
                   3508: int
                   3509: main ()
                   3510: {
                   3511:
                   3512:   ;
                   3513:   return 0;
                   3514: }
                   3515: _ACEOF
                   3516: rm -f conftest.$ac_objext conftest$ac_exeext
                   3517: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   3518:   (eval $ac_link) 2>&5
                   3519:   ac_status=$?
                   3520:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   3521:   (exit $ac_status); } &&
                   3522:          { ac_try='test -s conftest$ac_exeext'
                   3523:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   3524:   (eval $ac_try) 2>&5
                   3525:   ac_status=$?
                   3526:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   3527:   (exit $ac_status); }; }; then
1.1       ohara    3528:   ac_R_nospace=yes
                   3529: else
1.4       takayama 3530:   echo "$as_me: failed program was:" >&5
                   3531: cat conftest.$ac_ext >&5
                   3532: ac_R_nospace=no
1.1       ohara    3533: fi
1.4       takayama 3534: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.1       ohara    3535:       if test $ac_R_nospace = yes; then
1.4       takayama 3536:        echo "$as_me:$LINENO: result: no" >&5
                   3537: echo "${ECHO_T}no" >&6
1.1       ohara    3538:        X_LIBS="$X_LIBS -R$x_libraries"
                   3539:       else
                   3540:        LIBS="$ac_xsave_LIBS -R $x_libraries"
1.4       takayama 3541:        cat >conftest.$ac_ext <<_ACEOF
                   3542: #line $LINENO "configure"
1.1       ohara    3543: #include "confdefs.h"
                   3544:
1.4       takayama 3545: #ifdef F77_DUMMY_MAIN
                   3546: #  ifdef __cplusplus
                   3547:      extern "C"
                   3548: #  endif
                   3549:    int F77_DUMMY_MAIN() { return 1; }
                   3550: #endif
                   3551: int
                   3552: main ()
                   3553: {
                   3554:
                   3555:   ;
                   3556:   return 0;
                   3557: }
                   3558: _ACEOF
                   3559: rm -f conftest.$ac_objext conftest$ac_exeext
                   3560: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   3561:   (eval $ac_link) 2>&5
                   3562:   ac_status=$?
                   3563:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   3564:   (exit $ac_status); } &&
                   3565:          { ac_try='test -s conftest$ac_exeext'
                   3566:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   3567:   (eval $ac_try) 2>&5
                   3568:   ac_status=$?
                   3569:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   3570:   (exit $ac_status); }; }; then
1.1       ohara    3571:   ac_R_space=yes
                   3572: else
1.4       takayama 3573:   echo "$as_me: failed program was:" >&5
                   3574: cat conftest.$ac_ext >&5
                   3575: ac_R_space=no
1.1       ohara    3576: fi
1.4       takayama 3577: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.1       ohara    3578:        if test $ac_R_space = yes; then
1.4       takayama 3579:          echo "$as_me:$LINENO: result: yes" >&5
                   3580: echo "${ECHO_T}yes" >&6
1.1       ohara    3581:          X_LIBS="$X_LIBS -R $x_libraries"
                   3582:        else
1.4       takayama 3583:          echo "$as_me:$LINENO: result: neither works" >&5
                   3584: echo "${ECHO_T}neither works" >&6
1.1       ohara    3585:        fi
                   3586:       fi
1.4       takayama 3587:       LIBS=$ac_xsave_LIBS
1.1       ohara    3588:     esac
                   3589:   fi
                   3590:
                   3591:   # Check for system-dependent libraries X programs must link with.
                   3592:   # Do this before checking for the system-independent R6 libraries
                   3593:   # (-lICE), since we may need -lsocket or whatever for X linking.
                   3594:
                   3595:   if test "$ISC" = yes; then
                   3596:     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
                   3597:   else
1.4       takayama 3598:     # Martyn Johnson says this is needed for Ultrix, if the X
                   3599:     # libraries were built with DECnet support.  And Karl Berry says
1.1       ohara    3600:     # the Alpha needs dnet_stub (dnet does not exist).
1.4       takayama 3601:     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
                   3602:     cat >conftest.$ac_ext <<_ACEOF
                   3603: #line $LINENO "configure"
                   3604: #include "confdefs.h"
                   3605:
                   3606: /* Override any gcc2 internal prototype to avoid an error.  */
                   3607: #ifdef __cplusplus
                   3608: extern "C"
                   3609: #endif
                   3610: /* We use char because int might match the return type of a gcc2
                   3611:    builtin and then its argument prototype would still apply.  */
                   3612: char XOpenDisplay ();
                   3613: #ifdef F77_DUMMY_MAIN
                   3614: #  ifdef __cplusplus
                   3615:      extern "C"
                   3616: #  endif
                   3617:    int F77_DUMMY_MAIN() { return 1; }
                   3618: #endif
                   3619: int
                   3620: main ()
                   3621: {
                   3622: XOpenDisplay ();
                   3623:   ;
                   3624:   return 0;
                   3625: }
                   3626: _ACEOF
                   3627: rm -f conftest.$ac_objext conftest$ac_exeext
                   3628: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   3629:   (eval $ac_link) 2>&5
                   3630:   ac_status=$?
                   3631:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   3632:   (exit $ac_status); } &&
                   3633:          { ac_try='test -s conftest$ac_exeext'
                   3634:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   3635:   (eval $ac_try) 2>&5
                   3636:   ac_status=$?
                   3637:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   3638:   (exit $ac_status); }; }; then
                   3639:   :
1.1       ohara    3640: else
1.4       takayama 3641:   echo "$as_me: failed program was:" >&5
                   3642: cat conftest.$ac_ext >&5
                   3643: echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
                   3644: echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
                   3645: if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
                   3646:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   3647: else
                   3648:   ac_check_lib_save_LIBS=$LIBS
1.1       ohara    3649: LIBS="-ldnet  $LIBS"
1.4       takayama 3650: cat >conftest.$ac_ext <<_ACEOF
                   3651: #line $LINENO "configure"
1.1       ohara    3652: #include "confdefs.h"
1.4       takayama 3653:
1.1       ohara    3654: /* Override any gcc2 internal prototype to avoid an error.  */
1.4       takayama 3655: #ifdef __cplusplus
                   3656: extern "C"
                   3657: #endif
1.1       ohara    3658: /* We use char because int might match the return type of a gcc2
1.4       takayama 3659:    builtin and then its argument prototype would still apply.  */
                   3660: char dnet_ntoa ();
                   3661: #ifdef F77_DUMMY_MAIN
                   3662: #  ifdef __cplusplus
                   3663:      extern "C"
                   3664: #  endif
                   3665:    int F77_DUMMY_MAIN() { return 1; }
                   3666: #endif
                   3667: int
                   3668: main ()
                   3669: {
                   3670: dnet_ntoa ();
                   3671:   ;
                   3672:   return 0;
                   3673: }
                   3674: _ACEOF
                   3675: rm -f conftest.$ac_objext conftest$ac_exeext
                   3676: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   3677:   (eval $ac_link) 2>&5
                   3678:   ac_status=$?
                   3679:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   3680:   (exit $ac_status); } &&
                   3681:          { ac_try='test -s conftest$ac_exeext'
                   3682:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   3683:   (eval $ac_try) 2>&5
                   3684:   ac_status=$?
                   3685:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   3686:   (exit $ac_status); }; }; then
                   3687:   ac_cv_lib_dnet_dnet_ntoa=yes
                   3688: else
                   3689:   echo "$as_me: failed program was:" >&5
                   3690: cat conftest.$ac_ext >&5
                   3691: ac_cv_lib_dnet_dnet_ntoa=no
                   3692: fi
                   3693: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   3694: LIBS=$ac_check_lib_save_LIBS
                   3695: fi
                   3696: echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
                   3697: echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
                   3698: if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
1.1       ohara    3699:   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
                   3700: fi
                   3701:
                   3702:     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1.4       takayama 3703:       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
                   3704: echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
                   3705: if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
                   3706:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       ohara    3707: else
1.4       takayama 3708:   ac_check_lib_save_LIBS=$LIBS
1.1       ohara    3709: LIBS="-ldnet_stub  $LIBS"
1.4       takayama 3710: cat >conftest.$ac_ext <<_ACEOF
                   3711: #line $LINENO "configure"
1.1       ohara    3712: #include "confdefs.h"
1.4       takayama 3713:
1.1       ohara    3714: /* Override any gcc2 internal prototype to avoid an error.  */
1.4       takayama 3715: #ifdef __cplusplus
                   3716: extern "C"
                   3717: #endif
1.1       ohara    3718: /* We use char because int might match the return type of a gcc2
1.4       takayama 3719:    builtin and then its argument prototype would still apply.  */
                   3720: char dnet_ntoa ();
                   3721: #ifdef F77_DUMMY_MAIN
                   3722: #  ifdef __cplusplus
                   3723:      extern "C"
                   3724: #  endif
                   3725:    int F77_DUMMY_MAIN() { return 1; }
                   3726: #endif
                   3727: int
                   3728: main ()
                   3729: {
                   3730: dnet_ntoa ();
                   3731:   ;
                   3732:   return 0;
                   3733: }
                   3734: _ACEOF
                   3735: rm -f conftest.$ac_objext conftest$ac_exeext
                   3736: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   3737:   (eval $ac_link) 2>&5
                   3738:   ac_status=$?
                   3739:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   3740:   (exit $ac_status); } &&
                   3741:          { ac_try='test -s conftest$ac_exeext'
                   3742:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   3743:   (eval $ac_try) 2>&5
                   3744:   ac_status=$?
                   3745:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   3746:   (exit $ac_status); }; }; then
                   3747:   ac_cv_lib_dnet_stub_dnet_ntoa=yes
                   3748: else
                   3749:   echo "$as_me: failed program was:" >&5
                   3750: cat conftest.$ac_ext >&5
                   3751: ac_cv_lib_dnet_stub_dnet_ntoa=no
                   3752: fi
                   3753: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   3754: LIBS=$ac_check_lib_save_LIBS
                   3755: fi
                   3756: echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
                   3757: echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
                   3758: if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
1.1       ohara    3759:   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
                   3760: fi
                   3761:
                   3762:     fi
1.4       takayama 3763: fi
                   3764: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   3765:     LIBS="$ac_xsave_LIBS"
1.1       ohara    3766:
                   3767:     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
                   3768:     # to get the SysV transport functions.
1.4       takayama 3769:     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
1.1       ohara    3770:     # needs -lnsl.
                   3771:     # The nsl library prevents programs from opening the X display
1.4       takayama 3772:     # on Irix 5.2, according to T.E. Dickey.
                   3773:     # The functions gethostbyname, getservbyname, and inet_addr are
                   3774:     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
                   3775:     echo "$as_me:$LINENO: checking for gethostbyname" >&5
                   3776: echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
                   3777: if test "${ac_cv_func_gethostbyname+set}" = set; then
                   3778:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       ohara    3779: else
1.4       takayama 3780:   cat >conftest.$ac_ext <<_ACEOF
                   3781: #line $LINENO "configure"
1.1       ohara    3782: #include "confdefs.h"
                   3783: /* System header to define __stub macros and hopefully few prototypes,
1.4       takayama 3784:     which can conflict with char gethostbyname (); below.  */
1.1       ohara    3785: #include <assert.h>
                   3786: /* Override any gcc2 internal prototype to avoid an error.  */
1.4       takayama 3787: #ifdef __cplusplus
                   3788: extern "C"
                   3789: #endif
1.1       ohara    3790: /* We use char because int might match the return type of a gcc2
1.4       takayama 3791:    builtin and then its argument prototype would still apply.  */
                   3792: char gethostbyname ();
                   3793: char (*f) ();
                   3794:
                   3795: #ifdef F77_DUMMY_MAIN
                   3796: #  ifdef __cplusplus
                   3797:      extern "C"
                   3798: #  endif
                   3799:    int F77_DUMMY_MAIN() { return 1; }
                   3800: #endif
                   3801: int
                   3802: main ()
                   3803: {
1.1       ohara    3804: /* The GNU C library defines this for functions which it implements
                   3805:     to always fail with ENOSYS.  Some functions are actually named
                   3806:     something starting with __ and the normal name is an alias.  */
                   3807: #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
                   3808: choke me
                   3809: #else
1.4       takayama 3810: f = gethostbyname;
1.1       ohara    3811: #endif
                   3812:
1.4       takayama 3813:   ;
                   3814:   return 0;
                   3815: }
                   3816: _ACEOF
                   3817: rm -f conftest.$ac_objext conftest$ac_exeext
                   3818: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   3819:   (eval $ac_link) 2>&5
                   3820:   ac_status=$?
                   3821:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   3822:   (exit $ac_status); } &&
                   3823:          { ac_try='test -s conftest$ac_exeext'
                   3824:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   3825:   (eval $ac_try) 2>&5
                   3826:   ac_status=$?
                   3827:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   3828:   (exit $ac_status); }; }; then
                   3829:   ac_cv_func_gethostbyname=yes
                   3830: else
                   3831:   echo "$as_me: failed program was:" >&5
                   3832: cat conftest.$ac_ext >&5
                   3833: ac_cv_func_gethostbyname=no
1.1       ohara    3834: fi
1.4       takayama 3835: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.1       ohara    3836: fi
1.4       takayama 3837: echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
                   3838: echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
1.1       ohara    3839:
                   3840:     if test $ac_cv_func_gethostbyname = no; then
1.4       takayama 3841:       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
                   3842: echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
                   3843: if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
                   3844:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       ohara    3845: else
1.4       takayama 3846:   ac_check_lib_save_LIBS=$LIBS
1.1       ohara    3847: LIBS="-lnsl  $LIBS"
1.4       takayama 3848: cat >conftest.$ac_ext <<_ACEOF
                   3849: #line $LINENO "configure"
1.1       ohara    3850: #include "confdefs.h"
1.4       takayama 3851:
1.1       ohara    3852: /* Override any gcc2 internal prototype to avoid an error.  */
1.4       takayama 3853: #ifdef __cplusplus
                   3854: extern "C"
                   3855: #endif
1.1       ohara    3856: /* We use char because int might match the return type of a gcc2
1.4       takayama 3857:    builtin and then its argument prototype would still apply.  */
                   3858: char gethostbyname ();
                   3859: #ifdef F77_DUMMY_MAIN
                   3860: #  ifdef __cplusplus
                   3861:      extern "C"
                   3862: #  endif
                   3863:    int F77_DUMMY_MAIN() { return 1; }
                   3864: #endif
                   3865: int
                   3866: main ()
                   3867: {
                   3868: gethostbyname ();
                   3869:   ;
                   3870:   return 0;
                   3871: }
                   3872: _ACEOF
                   3873: rm -f conftest.$ac_objext conftest$ac_exeext
                   3874: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   3875:   (eval $ac_link) 2>&5
                   3876:   ac_status=$?
                   3877:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   3878:   (exit $ac_status); } &&
                   3879:          { ac_try='test -s conftest$ac_exeext'
                   3880:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   3881:   (eval $ac_try) 2>&5
                   3882:   ac_status=$?
                   3883:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   3884:   (exit $ac_status); }; }; then
                   3885:   ac_cv_lib_nsl_gethostbyname=yes
                   3886: else
                   3887:   echo "$as_me: failed program was:" >&5
                   3888: cat conftest.$ac_ext >&5
                   3889: ac_cv_lib_nsl_gethostbyname=no
                   3890: fi
                   3891: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   3892: LIBS=$ac_check_lib_save_LIBS
                   3893: fi
                   3894: echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
                   3895: echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
                   3896: if test $ac_cv_lib_nsl_gethostbyname = yes; then
                   3897:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
                   3898: fi
1.1       ohara    3899:
1.4       takayama 3900:       if test $ac_cv_lib_nsl_gethostbyname = no; then
                   3901:         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
                   3902: echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
                   3903: if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
                   3904:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   3905: else
                   3906:   ac_check_lib_save_LIBS=$LIBS
                   3907: LIBS="-lbsd  $LIBS"
                   3908: cat >conftest.$ac_ext <<_ACEOF
                   3909: #line $LINENO "configure"
                   3910: #include "confdefs.h"
1.1       ohara    3911:
1.4       takayama 3912: /* Override any gcc2 internal prototype to avoid an error.  */
                   3913: #ifdef __cplusplus
                   3914: extern "C"
                   3915: #endif
                   3916: /* We use char because int might match the return type of a gcc2
                   3917:    builtin and then its argument prototype would still apply.  */
                   3918: char gethostbyname ();
                   3919: #ifdef F77_DUMMY_MAIN
                   3920: #  ifdef __cplusplus
                   3921:      extern "C"
                   3922: #  endif
                   3923:    int F77_DUMMY_MAIN() { return 1; }
                   3924: #endif
                   3925: int
                   3926: main ()
                   3927: {
                   3928: gethostbyname ();
                   3929:   ;
                   3930:   return 0;
                   3931: }
                   3932: _ACEOF
                   3933: rm -f conftest.$ac_objext conftest$ac_exeext
                   3934: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   3935:   (eval $ac_link) 2>&5
                   3936:   ac_status=$?
                   3937:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   3938:   (exit $ac_status); } &&
                   3939:          { ac_try='test -s conftest$ac_exeext'
                   3940:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   3941:   (eval $ac_try) 2>&5
                   3942:   ac_status=$?
                   3943:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   3944:   (exit $ac_status); }; }; then
                   3945:   ac_cv_lib_bsd_gethostbyname=yes
                   3946: else
                   3947:   echo "$as_me: failed program was:" >&5
                   3948: cat conftest.$ac_ext >&5
                   3949: ac_cv_lib_bsd_gethostbyname=no
                   3950: fi
                   3951: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   3952: LIBS=$ac_check_lib_save_LIBS
                   3953: fi
                   3954: echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
                   3955: echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
                   3956: if test $ac_cv_lib_bsd_gethostbyname = yes; then
                   3957:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
1.1       ohara    3958: fi
                   3959:
1.4       takayama 3960:       fi
1.1       ohara    3961:     fi
                   3962:
                   3963:     # lieder@skyler.mavd.honeywell.com says without -lsocket,
                   3964:     # socket/setsockopt and other routines are undefined under SCO ODT
                   3965:     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
1.4       takayama 3966:     # on later versions), says Simon Leinen: it contains gethostby*
                   3967:     # variants that don't use the nameserver (or something).  -lsocket
                   3968:     # must be given before -lnsl if both are needed.  We assume that
                   3969:     # if connect needs -lnsl, so does gethostbyname.
                   3970:     echo "$as_me:$LINENO: checking for connect" >&5
                   3971: echo $ECHO_N "checking for connect... $ECHO_C" >&6
                   3972: if test "${ac_cv_func_connect+set}" = set; then
                   3973:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       ohara    3974: else
1.4       takayama 3975:   cat >conftest.$ac_ext <<_ACEOF
                   3976: #line $LINENO "configure"
1.1       ohara    3977: #include "confdefs.h"
                   3978: /* System header to define __stub macros and hopefully few prototypes,
1.4       takayama 3979:     which can conflict with char connect (); below.  */
1.1       ohara    3980: #include <assert.h>
                   3981: /* Override any gcc2 internal prototype to avoid an error.  */
1.4       takayama 3982: #ifdef __cplusplus
                   3983: extern "C"
                   3984: #endif
1.1       ohara    3985: /* We use char because int might match the return type of a gcc2
1.4       takayama 3986:    builtin and then its argument prototype would still apply.  */
                   3987: char connect ();
                   3988: char (*f) ();
                   3989:
                   3990: #ifdef F77_DUMMY_MAIN
                   3991: #  ifdef __cplusplus
                   3992:      extern "C"
                   3993: #  endif
                   3994:    int F77_DUMMY_MAIN() { return 1; }
                   3995: #endif
                   3996: int
                   3997: main ()
                   3998: {
1.1       ohara    3999: /* The GNU C library defines this for functions which it implements
                   4000:     to always fail with ENOSYS.  Some functions are actually named
                   4001:     something starting with __ and the normal name is an alias.  */
                   4002: #if defined (__stub_connect) || defined (__stub___connect)
                   4003: choke me
                   4004: #else
1.4       takayama 4005: f = connect;
1.1       ohara    4006: #endif
                   4007:
1.4       takayama 4008:   ;
                   4009:   return 0;
                   4010: }
                   4011: _ACEOF
                   4012: rm -f conftest.$ac_objext conftest$ac_exeext
                   4013: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   4014:   (eval $ac_link) 2>&5
                   4015:   ac_status=$?
                   4016:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   4017:   (exit $ac_status); } &&
                   4018:          { ac_try='test -s conftest$ac_exeext'
                   4019:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   4020:   (eval $ac_try) 2>&5
                   4021:   ac_status=$?
                   4022:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   4023:   (exit $ac_status); }; }; then
                   4024:   ac_cv_func_connect=yes
                   4025: else
                   4026:   echo "$as_me: failed program was:" >&5
                   4027: cat conftest.$ac_ext >&5
                   4028: ac_cv_func_connect=no
1.1       ohara    4029: fi
1.4       takayama 4030: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.1       ohara    4031: fi
1.4       takayama 4032: echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
                   4033: echo "${ECHO_T}$ac_cv_func_connect" >&6
1.1       ohara    4034:
                   4035:     if test $ac_cv_func_connect = no; then
1.4       takayama 4036:       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
                   4037: echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
                   4038: if test "${ac_cv_lib_socket_connect+set}" = set; then
                   4039:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       ohara    4040: else
1.4       takayama 4041:   ac_check_lib_save_LIBS=$LIBS
1.1       ohara    4042: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
1.4       takayama 4043: cat >conftest.$ac_ext <<_ACEOF
                   4044: #line $LINENO "configure"
1.1       ohara    4045: #include "confdefs.h"
1.4       takayama 4046:
1.1       ohara    4047: /* Override any gcc2 internal prototype to avoid an error.  */
1.4       takayama 4048: #ifdef __cplusplus
                   4049: extern "C"
                   4050: #endif
1.1       ohara    4051: /* We use char because int might match the return type of a gcc2
1.4       takayama 4052:    builtin and then its argument prototype would still apply.  */
                   4053: char connect ();
                   4054: #ifdef F77_DUMMY_MAIN
                   4055: #  ifdef __cplusplus
                   4056:      extern "C"
                   4057: #  endif
                   4058:    int F77_DUMMY_MAIN() { return 1; }
                   4059: #endif
                   4060: int
                   4061: main ()
                   4062: {
                   4063: connect ();
                   4064:   ;
                   4065:   return 0;
                   4066: }
                   4067: _ACEOF
                   4068: rm -f conftest.$ac_objext conftest$ac_exeext
                   4069: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   4070:   (eval $ac_link) 2>&5
                   4071:   ac_status=$?
                   4072:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   4073:   (exit $ac_status); } &&
                   4074:          { ac_try='test -s conftest$ac_exeext'
                   4075:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   4076:   (eval $ac_try) 2>&5
                   4077:   ac_status=$?
                   4078:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   4079:   (exit $ac_status); }; }; then
                   4080:   ac_cv_lib_socket_connect=yes
                   4081: else
                   4082:   echo "$as_me: failed program was:" >&5
                   4083: cat conftest.$ac_ext >&5
                   4084: ac_cv_lib_socket_connect=no
                   4085: fi
                   4086: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   4087: LIBS=$ac_check_lib_save_LIBS
                   4088: fi
                   4089: echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
                   4090: echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
                   4091: if test $ac_cv_lib_socket_connect = yes; then
1.1       ohara    4092:   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
                   4093: fi
                   4094:
                   4095:     fi
                   4096:
1.4       takayama 4097:     # Guillermo Gomez says -lposix is necessary on A/UX.
                   4098:     echo "$as_me:$LINENO: checking for remove" >&5
                   4099: echo $ECHO_N "checking for remove... $ECHO_C" >&6
                   4100: if test "${ac_cv_func_remove+set}" = set; then
                   4101:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       ohara    4102: else
1.4       takayama 4103:   cat >conftest.$ac_ext <<_ACEOF
                   4104: #line $LINENO "configure"
1.1       ohara    4105: #include "confdefs.h"
                   4106: /* System header to define __stub macros and hopefully few prototypes,
1.4       takayama 4107:     which can conflict with char remove (); below.  */
1.1       ohara    4108: #include <assert.h>
                   4109: /* Override any gcc2 internal prototype to avoid an error.  */
1.4       takayama 4110: #ifdef __cplusplus
                   4111: extern "C"
                   4112: #endif
1.1       ohara    4113: /* We use char because int might match the return type of a gcc2
1.4       takayama 4114:    builtin and then its argument prototype would still apply.  */
                   4115: char remove ();
                   4116: char (*f) ();
                   4117:
                   4118: #ifdef F77_DUMMY_MAIN
                   4119: #  ifdef __cplusplus
                   4120:      extern "C"
                   4121: #  endif
                   4122:    int F77_DUMMY_MAIN() { return 1; }
                   4123: #endif
                   4124: int
                   4125: main ()
                   4126: {
1.1       ohara    4127: /* The GNU C library defines this for functions which it implements
                   4128:     to always fail with ENOSYS.  Some functions are actually named
                   4129:     something starting with __ and the normal name is an alias.  */
                   4130: #if defined (__stub_remove) || defined (__stub___remove)
                   4131: choke me
                   4132: #else
1.4       takayama 4133: f = remove;
1.1       ohara    4134: #endif
                   4135:
1.4       takayama 4136:   ;
                   4137:   return 0;
                   4138: }
                   4139: _ACEOF
                   4140: rm -f conftest.$ac_objext conftest$ac_exeext
                   4141: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   4142:   (eval $ac_link) 2>&5
                   4143:   ac_status=$?
                   4144:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   4145:   (exit $ac_status); } &&
                   4146:          { ac_try='test -s conftest$ac_exeext'
                   4147:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   4148:   (eval $ac_try) 2>&5
                   4149:   ac_status=$?
                   4150:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   4151:   (exit $ac_status); }; }; then
                   4152:   ac_cv_func_remove=yes
                   4153: else
                   4154:   echo "$as_me: failed program was:" >&5
                   4155: cat conftest.$ac_ext >&5
                   4156: ac_cv_func_remove=no
1.1       ohara    4157: fi
1.4       takayama 4158: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.1       ohara    4159: fi
1.4       takayama 4160: echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
                   4161: echo "${ECHO_T}$ac_cv_func_remove" >&6
1.1       ohara    4162:
                   4163:     if test $ac_cv_func_remove = no; then
1.4       takayama 4164:       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
                   4165: echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
                   4166: if test "${ac_cv_lib_posix_remove+set}" = set; then
                   4167:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       ohara    4168: else
1.4       takayama 4169:   ac_check_lib_save_LIBS=$LIBS
1.1       ohara    4170: LIBS="-lposix  $LIBS"
1.4       takayama 4171: cat >conftest.$ac_ext <<_ACEOF
                   4172: #line $LINENO "configure"
1.1       ohara    4173: #include "confdefs.h"
1.4       takayama 4174:
1.1       ohara    4175: /* Override any gcc2 internal prototype to avoid an error.  */
1.4       takayama 4176: #ifdef __cplusplus
                   4177: extern "C"
                   4178: #endif
1.1       ohara    4179: /* We use char because int might match the return type of a gcc2
1.4       takayama 4180:    builtin and then its argument prototype would still apply.  */
                   4181: char remove ();
                   4182: #ifdef F77_DUMMY_MAIN
                   4183: #  ifdef __cplusplus
                   4184:      extern "C"
                   4185: #  endif
                   4186:    int F77_DUMMY_MAIN() { return 1; }
                   4187: #endif
                   4188: int
                   4189: main ()
                   4190: {
                   4191: remove ();
                   4192:   ;
                   4193:   return 0;
                   4194: }
                   4195: _ACEOF
                   4196: rm -f conftest.$ac_objext conftest$ac_exeext
                   4197: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   4198:   (eval $ac_link) 2>&5
                   4199:   ac_status=$?
                   4200:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   4201:   (exit $ac_status); } &&
                   4202:          { ac_try='test -s conftest$ac_exeext'
                   4203:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   4204:   (eval $ac_try) 2>&5
                   4205:   ac_status=$?
                   4206:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   4207:   (exit $ac_status); }; }; then
                   4208:   ac_cv_lib_posix_remove=yes
                   4209: else
                   4210:   echo "$as_me: failed program was:" >&5
                   4211: cat conftest.$ac_ext >&5
                   4212: ac_cv_lib_posix_remove=no
                   4213: fi
                   4214: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   4215: LIBS=$ac_check_lib_save_LIBS
                   4216: fi
                   4217: echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
                   4218: echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
                   4219: if test $ac_cv_lib_posix_remove = yes; then
1.1       ohara    4220:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
                   4221: fi
                   4222:
                   4223:     fi
                   4224:
                   4225:     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1.4       takayama 4226:     echo "$as_me:$LINENO: checking for shmat" >&5
                   4227: echo $ECHO_N "checking for shmat... $ECHO_C" >&6
                   4228: if test "${ac_cv_func_shmat+set}" = set; then
                   4229:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       ohara    4230: else
1.4       takayama 4231:   cat >conftest.$ac_ext <<_ACEOF
                   4232: #line $LINENO "configure"
1.1       ohara    4233: #include "confdefs.h"
                   4234: /* System header to define __stub macros and hopefully few prototypes,
1.4       takayama 4235:     which can conflict with char shmat (); below.  */
1.1       ohara    4236: #include <assert.h>
                   4237: /* Override any gcc2 internal prototype to avoid an error.  */
1.4       takayama 4238: #ifdef __cplusplus
                   4239: extern "C"
                   4240: #endif
1.1       ohara    4241: /* We use char because int might match the return type of a gcc2
1.4       takayama 4242:    builtin and then its argument prototype would still apply.  */
                   4243: char shmat ();
                   4244: char (*f) ();
                   4245:
                   4246: #ifdef F77_DUMMY_MAIN
                   4247: #  ifdef __cplusplus
                   4248:      extern "C"
                   4249: #  endif
                   4250:    int F77_DUMMY_MAIN() { return 1; }
                   4251: #endif
                   4252: int
                   4253: main ()
                   4254: {
1.1       ohara    4255: /* The GNU C library defines this for functions which it implements
                   4256:     to always fail with ENOSYS.  Some functions are actually named
                   4257:     something starting with __ and the normal name is an alias.  */
                   4258: #if defined (__stub_shmat) || defined (__stub___shmat)
                   4259: choke me
                   4260: #else
1.4       takayama 4261: f = shmat;
1.1       ohara    4262: #endif
                   4263:
1.4       takayama 4264:   ;
                   4265:   return 0;
                   4266: }
                   4267: _ACEOF
                   4268: rm -f conftest.$ac_objext conftest$ac_exeext
                   4269: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   4270:   (eval $ac_link) 2>&5
                   4271:   ac_status=$?
                   4272:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   4273:   (exit $ac_status); } &&
                   4274:          { ac_try='test -s conftest$ac_exeext'
                   4275:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   4276:   (eval $ac_try) 2>&5
                   4277:   ac_status=$?
                   4278:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   4279:   (exit $ac_status); }; }; then
                   4280:   ac_cv_func_shmat=yes
                   4281: else
                   4282:   echo "$as_me: failed program was:" >&5
                   4283: cat conftest.$ac_ext >&5
                   4284: ac_cv_func_shmat=no
1.1       ohara    4285: fi
1.4       takayama 4286: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.1       ohara    4287: fi
1.4       takayama 4288: echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
                   4289: echo "${ECHO_T}$ac_cv_func_shmat" >&6
1.1       ohara    4290:
                   4291:     if test $ac_cv_func_shmat = no; then
1.4       takayama 4292:       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
                   4293: echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
                   4294: if test "${ac_cv_lib_ipc_shmat+set}" = set; then
                   4295:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       ohara    4296: else
1.4       takayama 4297:   ac_check_lib_save_LIBS=$LIBS
1.1       ohara    4298: LIBS="-lipc  $LIBS"
1.4       takayama 4299: cat >conftest.$ac_ext <<_ACEOF
                   4300: #line $LINENO "configure"
1.1       ohara    4301: #include "confdefs.h"
1.4       takayama 4302:
1.1       ohara    4303: /* Override any gcc2 internal prototype to avoid an error.  */
1.4       takayama 4304: #ifdef __cplusplus
                   4305: extern "C"
                   4306: #endif
1.1       ohara    4307: /* We use char because int might match the return type of a gcc2
1.4       takayama 4308:    builtin and then its argument prototype would still apply.  */
                   4309: char shmat ();
                   4310: #ifdef F77_DUMMY_MAIN
                   4311: #  ifdef __cplusplus
                   4312:      extern "C"
                   4313: #  endif
                   4314:    int F77_DUMMY_MAIN() { return 1; }
                   4315: #endif
                   4316: int
                   4317: main ()
                   4318: {
                   4319: shmat ();
                   4320:   ;
                   4321:   return 0;
                   4322: }
                   4323: _ACEOF
                   4324: rm -f conftest.$ac_objext conftest$ac_exeext
                   4325: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   4326:   (eval $ac_link) 2>&5
                   4327:   ac_status=$?
                   4328:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   4329:   (exit $ac_status); } &&
                   4330:          { ac_try='test -s conftest$ac_exeext'
                   4331:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   4332:   (eval $ac_try) 2>&5
                   4333:   ac_status=$?
                   4334:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   4335:   (exit $ac_status); }; }; then
                   4336:   ac_cv_lib_ipc_shmat=yes
                   4337: else
                   4338:   echo "$as_me: failed program was:" >&5
                   4339: cat conftest.$ac_ext >&5
                   4340: ac_cv_lib_ipc_shmat=no
                   4341: fi
                   4342: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   4343: LIBS=$ac_check_lib_save_LIBS
                   4344: fi
                   4345: echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
                   4346: echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
                   4347: if test $ac_cv_lib_ipc_shmat = yes; then
1.1       ohara    4348:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
                   4349: fi
                   4350:
                   4351:     fi
                   4352:   fi
                   4353:
                   4354:   # Check for libraries that X11R6 Xt/Xaw programs need.
1.4       takayama 4355:   ac_save_LDFLAGS=$LDFLAGS
1.1       ohara    4356:   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
                   4357:   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
                   4358:   # check for ICE first), but we must link in the order -lSM -lICE or
                   4359:   # we get undefined symbols.  So assume we have SM if we have ICE.
                   4360:   # These have to be linked with before -lX11, unlike the other
                   4361:   # libraries we check for below, so use a different variable.
1.4       takayama 4362:   # John Interrante, Karl Berry
                   4363:   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
                   4364: echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
                   4365: if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
                   4366:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       ohara    4367: else
1.4       takayama 4368:   ac_check_lib_save_LIBS=$LIBS
1.1       ohara    4369: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
1.4       takayama 4370: cat >conftest.$ac_ext <<_ACEOF
                   4371: #line $LINENO "configure"
1.1       ohara    4372: #include "confdefs.h"
1.4       takayama 4373:
1.1       ohara    4374: /* Override any gcc2 internal prototype to avoid an error.  */
1.4       takayama 4375: #ifdef __cplusplus
                   4376: extern "C"
                   4377: #endif
1.1       ohara    4378: /* We use char because int might match the return type of a gcc2
1.4       takayama 4379:    builtin and then its argument prototype would still apply.  */
                   4380: char IceConnectionNumber ();
                   4381: #ifdef F77_DUMMY_MAIN
                   4382: #  ifdef __cplusplus
                   4383:      extern "C"
                   4384: #  endif
                   4385:    int F77_DUMMY_MAIN() { return 1; }
                   4386: #endif
                   4387: int
                   4388: main ()
                   4389: {
                   4390: IceConnectionNumber ();
                   4391:   ;
                   4392:   return 0;
                   4393: }
                   4394: _ACEOF
                   4395: rm -f conftest.$ac_objext conftest$ac_exeext
                   4396: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   4397:   (eval $ac_link) 2>&5
                   4398:   ac_status=$?
                   4399:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   4400:   (exit $ac_status); } &&
                   4401:          { ac_try='test -s conftest$ac_exeext'
                   4402:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   4403:   (eval $ac_try) 2>&5
                   4404:   ac_status=$?
                   4405:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   4406:   (exit $ac_status); }; }; then
                   4407:   ac_cv_lib_ICE_IceConnectionNumber=yes
                   4408: else
                   4409:   echo "$as_me: failed program was:" >&5
                   4410: cat conftest.$ac_ext >&5
                   4411: ac_cv_lib_ICE_IceConnectionNumber=no
                   4412: fi
                   4413: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   4414: LIBS=$ac_check_lib_save_LIBS
                   4415: fi
                   4416: echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
                   4417: echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
                   4418: if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
1.1       ohara    4419:   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
                   4420: fi
                   4421:
1.4       takayama 4422:   LDFLAGS=$ac_save_LDFLAGS
1.1       ohara    4423:
                   4424: fi
                   4425:
                   4426:
1.7       ohara    4427: if test "${ac_test_CFLAGS}" != set -a "${GCC}" = yes ; then
                   4428:     CFLAGS="${CFLAGS} -finline-functions"
                   4429: fi
                   4430:
1.5       ohara    4431: case "${host}" in
                   4432: i[3-6]86-*-interix*)
                   4433:     cat >>confdefs.h <<\_ACEOF
                   4434: #define _ALL_SOURCE 1
                   4435: _ACEOF
                   4436:
                   4437:     ;;
                   4438: *)
                   4439:     ;;
                   4440: esac
                   4441:
1.4       takayama 4442: echo "$as_me:$LINENO: checking for socket" >&5
                   4443: echo $ECHO_N "checking for socket... $ECHO_C" >&6
                   4444: if test "${ac_cv_func_socket+set}" = set; then
                   4445:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       ohara    4446: else
1.4       takayama 4447:   cat >conftest.$ac_ext <<_ACEOF
                   4448: #line $LINENO "configure"
1.1       ohara    4449: #include "confdefs.h"
                   4450: /* System header to define __stub macros and hopefully few prototypes,
1.4       takayama 4451:     which can conflict with char socket (); below.  */
1.1       ohara    4452: #include <assert.h>
                   4453: /* Override any gcc2 internal prototype to avoid an error.  */
1.4       takayama 4454: #ifdef __cplusplus
                   4455: extern "C"
                   4456: #endif
1.1       ohara    4457: /* We use char because int might match the return type of a gcc2
1.4       takayama 4458:    builtin and then its argument prototype would still apply.  */
                   4459: char socket ();
                   4460: char (*f) ();
                   4461:
                   4462: #ifdef F77_DUMMY_MAIN
                   4463: #  ifdef __cplusplus
                   4464:      extern "C"
                   4465: #  endif
                   4466:    int F77_DUMMY_MAIN() { return 1; }
                   4467: #endif
                   4468: int
                   4469: main ()
                   4470: {
1.1       ohara    4471: /* The GNU C library defines this for functions which it implements
                   4472:     to always fail with ENOSYS.  Some functions are actually named
                   4473:     something starting with __ and the normal name is an alias.  */
                   4474: #if defined (__stub_socket) || defined (__stub___socket)
                   4475: choke me
                   4476: #else
1.4       takayama 4477: f = socket;
1.1       ohara    4478: #endif
                   4479:
1.4       takayama 4480:   ;
                   4481:   return 0;
                   4482: }
                   4483: _ACEOF
                   4484: rm -f conftest.$ac_objext conftest$ac_exeext
                   4485: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   4486:   (eval $ac_link) 2>&5
                   4487:   ac_status=$?
                   4488:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   4489:   (exit $ac_status); } &&
                   4490:          { ac_try='test -s conftest$ac_exeext'
                   4491:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   4492:   (eval $ac_try) 2>&5
                   4493:   ac_status=$?
                   4494:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   4495:   (exit $ac_status); }; }; then
                   4496:   ac_cv_func_socket=yes
                   4497: else
                   4498:   echo "$as_me: failed program was:" >&5
                   4499: cat conftest.$ac_ext >&5
                   4500: ac_cv_func_socket=no
                   4501: fi
                   4502: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   4503: fi
                   4504: echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
                   4505: echo "${ECHO_T}$ac_cv_func_socket" >&6
                   4506: if test $ac_cv_func_socket = yes; then
                   4507:   :
1.1       ohara    4508: else
                   4509:
1.4       takayama 4510: echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
                   4511: echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
                   4512: if test "${ac_cv_lib_socket_socket+set}" = set; then
                   4513:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       ohara    4514: else
1.4       takayama 4515:   ac_check_lib_save_LIBS=$LIBS
1.1       ohara    4516: LIBS="-lsocket  $LIBS"
1.4       takayama 4517: cat >conftest.$ac_ext <<_ACEOF
                   4518: #line $LINENO "configure"
1.1       ohara    4519: #include "confdefs.h"
1.4       takayama 4520:
1.1       ohara    4521: /* Override any gcc2 internal prototype to avoid an error.  */
1.4       takayama 4522: #ifdef __cplusplus
                   4523: extern "C"
                   4524: #endif
1.1       ohara    4525: /* We use char because int might match the return type of a gcc2
1.4       takayama 4526:    builtin and then its argument prototype would still apply.  */
                   4527: char socket ();
                   4528: #ifdef F77_DUMMY_MAIN
                   4529: #  ifdef __cplusplus
                   4530:      extern "C"
                   4531: #  endif
                   4532:    int F77_DUMMY_MAIN() { return 1; }
                   4533: #endif
                   4534: int
                   4535: main ()
                   4536: {
                   4537: socket ();
                   4538:   ;
                   4539:   return 0;
                   4540: }
                   4541: _ACEOF
                   4542: rm -f conftest.$ac_objext conftest$ac_exeext
                   4543: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   4544:   (eval $ac_link) 2>&5
                   4545:   ac_status=$?
                   4546:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   4547:   (exit $ac_status); } &&
                   4548:          { ac_try='test -s conftest$ac_exeext'
                   4549:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   4550:   (eval $ac_try) 2>&5
                   4551:   ac_status=$?
                   4552:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   4553:   (exit $ac_status); }; }; then
                   4554:   ac_cv_lib_socket_socket=yes
                   4555: else
                   4556:   echo "$as_me: failed program was:" >&5
                   4557: cat conftest.$ac_ext >&5
                   4558: ac_cv_lib_socket_socket=no
                   4559: fi
                   4560: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   4561: LIBS=$ac_check_lib_save_LIBS
                   4562: fi
                   4563: echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
                   4564: echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
                   4565: if test $ac_cv_lib_socket_socket = yes; then
                   4566:   cat >>confdefs.h <<_ACEOF
                   4567: #define HAVE_LIBSOCKET 1
                   4568: _ACEOF
1.1       ohara    4569:
                   4570:   LIBS="-lsocket $LIBS"
                   4571:
                   4572: fi
                   4573:
                   4574: fi
1.2       ohara    4575:
1.4       takayama 4576: echo "$as_me:$LINENO: checking for gethostbyname" >&5
                   4577: echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
                   4578: if test "${ac_cv_func_gethostbyname+set}" = set; then
                   4579:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       ohara    4580: else
1.4       takayama 4581:   cat >conftest.$ac_ext <<_ACEOF
                   4582: #line $LINENO "configure"
1.1       ohara    4583: #include "confdefs.h"
                   4584: /* System header to define __stub macros and hopefully few prototypes,
1.4       takayama 4585:     which can conflict with char gethostbyname (); below.  */
1.1       ohara    4586: #include <assert.h>
                   4587: /* Override any gcc2 internal prototype to avoid an error.  */
1.4       takayama 4588: #ifdef __cplusplus
                   4589: extern "C"
                   4590: #endif
1.1       ohara    4591: /* We use char because int might match the return type of a gcc2
1.4       takayama 4592:    builtin and then its argument prototype would still apply.  */
                   4593: char gethostbyname ();
                   4594: char (*f) ();
                   4595:
                   4596: #ifdef F77_DUMMY_MAIN
                   4597: #  ifdef __cplusplus
                   4598:      extern "C"
                   4599: #  endif
                   4600:    int F77_DUMMY_MAIN() { return 1; }
                   4601: #endif
                   4602: int
                   4603: main ()
                   4604: {
1.1       ohara    4605: /* The GNU C library defines this for functions which it implements
                   4606:     to always fail with ENOSYS.  Some functions are actually named
                   4607:     something starting with __ and the normal name is an alias.  */
                   4608: #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
                   4609: choke me
                   4610: #else
1.4       takayama 4611: f = gethostbyname;
1.1       ohara    4612: #endif
                   4613:
1.4       takayama 4614:   ;
                   4615:   return 0;
                   4616: }
                   4617: _ACEOF
                   4618: rm -f conftest.$ac_objext conftest$ac_exeext
                   4619: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   4620:   (eval $ac_link) 2>&5
                   4621:   ac_status=$?
                   4622:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   4623:   (exit $ac_status); } &&
                   4624:          { ac_try='test -s conftest$ac_exeext'
                   4625:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   4626:   (eval $ac_try) 2>&5
                   4627:   ac_status=$?
                   4628:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   4629:   (exit $ac_status); }; }; then
                   4630:   ac_cv_func_gethostbyname=yes
                   4631: else
                   4632:   echo "$as_me: failed program was:" >&5
                   4633: cat conftest.$ac_ext >&5
                   4634: ac_cv_func_gethostbyname=no
                   4635: fi
                   4636: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   4637: fi
                   4638: echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
                   4639: echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
                   4640: if test $ac_cv_func_gethostbyname = yes; then
                   4641:   :
1.1       ohara    4642: else
                   4643:
1.4       takayama 4644: echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
                   4645: echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
                   4646: if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
                   4647:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       ohara    4648: else
1.4       takayama 4649:   ac_check_lib_save_LIBS=$LIBS
1.1       ohara    4650: LIBS="-lnsl  $LIBS"
1.4       takayama 4651: cat >conftest.$ac_ext <<_ACEOF
                   4652: #line $LINENO "configure"
1.1       ohara    4653: #include "confdefs.h"
1.4       takayama 4654:
1.1       ohara    4655: /* Override any gcc2 internal prototype to avoid an error.  */
1.4       takayama 4656: #ifdef __cplusplus
                   4657: extern "C"
                   4658: #endif
1.1       ohara    4659: /* We use char because int might match the return type of a gcc2
1.4       takayama 4660:    builtin and then its argument prototype would still apply.  */
                   4661: char gethostbyname ();
                   4662: #ifdef F77_DUMMY_MAIN
                   4663: #  ifdef __cplusplus
                   4664:      extern "C"
                   4665: #  endif
                   4666:    int F77_DUMMY_MAIN() { return 1; }
                   4667: #endif
                   4668: int
                   4669: main ()
                   4670: {
                   4671: gethostbyname ();
                   4672:   ;
                   4673:   return 0;
                   4674: }
                   4675: _ACEOF
                   4676: rm -f conftest.$ac_objext conftest$ac_exeext
                   4677: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   4678:   (eval $ac_link) 2>&5
                   4679:   ac_status=$?
                   4680:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   4681:   (exit $ac_status); } &&
                   4682:          { ac_try='test -s conftest$ac_exeext'
                   4683:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   4684:   (eval $ac_try) 2>&5
                   4685:   ac_status=$?
                   4686:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   4687:   (exit $ac_status); }; }; then
                   4688:   ac_cv_lib_nsl_gethostbyname=yes
                   4689: else
                   4690:   echo "$as_me: failed program was:" >&5
                   4691: cat conftest.$ac_ext >&5
                   4692: ac_cv_lib_nsl_gethostbyname=no
                   4693: fi
                   4694: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   4695: LIBS=$ac_check_lib_save_LIBS
                   4696: fi
                   4697: echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
                   4698: echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
                   4699: if test $ac_cv_lib_nsl_gethostbyname = yes; then
                   4700:   cat >>confdefs.h <<_ACEOF
                   4701: #define HAVE_LIBNSL 1
                   4702: _ACEOF
                   4703:
                   4704:   LIBS="-lnsl $LIBS"
1.1       ohara    4705:
                   4706: fi
                   4707:
                   4708: fi
                   4709:
1.4       takayama 4710: echo "$as_me:$LINENO: checking for dlopen" >&5
                   4711: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
                   4712: if test "${ac_cv_func_dlopen+set}" = set; then
                   4713:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   4714: else
                   4715:   cat >conftest.$ac_ext <<_ACEOF
                   4716: #line $LINENO "configure"
                   4717: #include "confdefs.h"
                   4718: /* System header to define __stub macros and hopefully few prototypes,
                   4719:     which can conflict with char dlopen (); below.  */
                   4720: #include <assert.h>
                   4721: /* Override any gcc2 internal prototype to avoid an error.  */
                   4722: #ifdef __cplusplus
                   4723: extern "C"
                   4724: #endif
                   4725: /* We use char because int might match the return type of a gcc2
                   4726:    builtin and then its argument prototype would still apply.  */
                   4727: char dlopen ();
                   4728: char (*f) ();
                   4729:
                   4730: #ifdef F77_DUMMY_MAIN
                   4731: #  ifdef __cplusplus
                   4732:      extern "C"
                   4733: #  endif
                   4734:    int F77_DUMMY_MAIN() { return 1; }
                   4735: #endif
                   4736: int
                   4737: main ()
                   4738: {
                   4739: /* The GNU C library defines this for functions which it implements
                   4740:     to always fail with ENOSYS.  Some functions are actually named
                   4741:     something starting with __ and the normal name is an alias.  */
                   4742: #if defined (__stub_dlopen) || defined (__stub___dlopen)
                   4743: choke me
                   4744: #else
                   4745: f = dlopen;
                   4746: #endif
1.1       ohara    4747:
1.4       takayama 4748:   ;
                   4749:   return 0;
                   4750: }
                   4751: _ACEOF
                   4752: rm -f conftest.$ac_objext conftest$ac_exeext
                   4753: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   4754:   (eval $ac_link) 2>&5
                   4755:   ac_status=$?
                   4756:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   4757:   (exit $ac_status); } &&
                   4758:          { ac_try='test -s conftest$ac_exeext'
                   4759:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   4760:   (eval $ac_try) 2>&5
                   4761:   ac_status=$?
                   4762:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   4763:   (exit $ac_status); }; }; then
                   4764:   ac_cv_func_dlopen=yes
                   4765: else
                   4766:   echo "$as_me: failed program was:" >&5
                   4767: cat conftest.$ac_ext >&5
                   4768: ac_cv_func_dlopen=no
                   4769: fi
                   4770: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   4771: fi
                   4772: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
                   4773: echo "${ECHO_T}$ac_cv_func_dlopen" >&6
                   4774: if test $ac_cv_func_dlopen = yes; then
                   4775:   :
1.1       ohara    4776: else
1.4       takayama 4777:
                   4778: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
                   4779: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
                   4780: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
                   4781:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   4782: else
                   4783:   ac_check_lib_save_LIBS=$LIBS
                   4784: LIBS="-ldl  $LIBS"
                   4785: cat >conftest.$ac_ext <<_ACEOF
                   4786: #line $LINENO "configure"
                   4787: #include "confdefs.h"
                   4788:
                   4789: /* Override any gcc2 internal prototype to avoid an error.  */
                   4790: #ifdef __cplusplus
                   4791: extern "C"
                   4792: #endif
                   4793: /* We use char because int might match the return type of a gcc2
                   4794:    builtin and then its argument prototype would still apply.  */
                   4795: char dlopen ();
                   4796: #ifdef F77_DUMMY_MAIN
                   4797: #  ifdef __cplusplus
                   4798:      extern "C"
                   4799: #  endif
                   4800:    int F77_DUMMY_MAIN() { return 1; }
                   4801: #endif
                   4802: int
                   4803: main ()
                   4804: {
                   4805: dlopen ();
                   4806:   ;
                   4807:   return 0;
                   4808: }
                   4809: _ACEOF
                   4810: rm -f conftest.$ac_objext conftest$ac_exeext
                   4811: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   4812:   (eval $ac_link) 2>&5
                   4813:   ac_status=$?
                   4814:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   4815:   (exit $ac_status); } &&
                   4816:          { ac_try='test -s conftest$ac_exeext'
                   4817:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   4818:   (eval $ac_try) 2>&5
                   4819:   ac_status=$?
                   4820:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   4821:   (exit $ac_status); }; }; then
                   4822:   ac_cv_lib_dl_dlopen=yes
                   4823: else
                   4824:   echo "$as_me: failed program was:" >&5
                   4825: cat conftest.$ac_ext >&5
                   4826: ac_cv_lib_dl_dlopen=no
                   4827: fi
                   4828: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   4829: LIBS=$ac_check_lib_save_LIBS
                   4830: fi
                   4831: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
                   4832: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
                   4833: if test $ac_cv_lib_dl_dlopen = yes; then
                   4834:   cat >>confdefs.h <<_ACEOF
                   4835: #define HAVE_LIBDL 1
                   4836: _ACEOF
                   4837:
                   4838:   LIBS="-ldl $LIBS"
                   4839:
1.1       ohara    4840: fi
                   4841:
                   4842: fi
                   4843:
1.2       ohara    4844:
1.4       takayama 4845: ac_config_files="$ac_config_files Makefile"
                   4846: cat >confcache <<\_ACEOF
1.1       ohara    4847: # This file is a shell script that caches the results of configure
                   4848: # tests run on this system so they can be shared between configure
1.4       takayama 4849: # scripts and configure runs, see configure's option --config-cache.
                   4850: # It is not useful on other systems.  If it contains results you don't
                   4851: # want to keep, you may remove or edit it.
1.1       ohara    4852: #
1.4       takayama 4853: # config.status only pays attention to the cache file if you give it
                   4854: # the --recheck option to rerun configure.
1.1       ohara    4855: #
1.4       takayama 4856: # `ac_cv_env_foo' variables (set or unset) will be overriden when
                   4857: # loading this file, other *unset* `ac_cv_foo' will be assigned the
                   4858: # following values.
                   4859:
                   4860: _ACEOF
                   4861:
1.1       ohara    4862: # The following way of writing the cache mishandles newlines in values,
                   4863: # but we know of no workaround that is simple, portable, and efficient.
                   4864: # So, don't put newlines in cache variables' values.
                   4865: # Ultrix sh set writes to stderr and can't be redirected directly,
                   4866: # and sets the high bit in the cache file unless we assign to the vars.
1.4       takayama 4867: {
                   4868:   (set) 2>&1 |
                   4869:     case `(ac_space=' '; set | grep ac_space) 2>&1` in
                   4870:     *ac_space=\ *)
                   4871:       # `set' does not quote correctly, so add quotes (double-quote
                   4872:       # substitution turns \\\\ into \\, and sed turns \\ into \).
                   4873:       sed -n \
                   4874:         "s/'/'\\\\''/g;
                   4875:          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
                   4876:       ;;
                   4877:     *)
                   4878:       # `set' quotes correctly as required by POSIX, so do not add quotes.
                   4879:       sed -n \
                   4880:         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
                   4881:       ;;
                   4882:     esac;
                   4883: } |
                   4884:   sed '
                   4885:      t clear
                   4886:      : clear
                   4887:      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
                   4888:      t end
                   4889:      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
                   4890:      : end' >>confcache
                   4891: if cmp -s $cache_file confcache; then :; else
1.1       ohara    4892:   if test -w $cache_file; then
1.4       takayama 4893:     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
                   4894:     cat confcache >$cache_file
1.1       ohara    4895:   else
                   4896:     echo "not updating unwritable cache $cache_file"
                   4897:   fi
                   4898: fi
                   4899: rm -f confcache
                   4900:
                   4901: test "x$prefix" = xNONE && prefix=$ac_default_prefix
                   4902: # Let make expand exec_prefix.
                   4903: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
                   4904:
1.4       takayama 4905: # VPATH may cause trouble with some makes, so we remove $(srcdir),
                   4906: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
                   4907: # trailing colons and then remove the whole line if VPATH becomes empty
                   4908: # (actually we leave an empty line to preserve line numbers).
1.1       ohara    4909: if test "x$srcdir" = x.; then
1.4       takayama 4910:   ac_vpsub='/^[        ]*VPATH[        ]*=/{
                   4911: s/:*\$(srcdir):*/:/;
                   4912: s/:*\${srcdir}:*/:/;
                   4913: s/:*@srcdir@:*/:/;
                   4914: s/^\([^=]*=[   ]*\):*/\1/;
                   4915: s/:*$//;
                   4916: s/^[^=]*=[     ]*$//;
                   4917: }'
1.1       ohara    4918: fi
                   4919:
                   4920: # Transform confdefs.h into DEFS.
                   4921: # Protect against shell expansion while executing Makefile rules.
                   4922: # Protect against Makefile macro expansion.
1.4       takayama 4923: #
                   4924: # If the first sed substitution is executed (which looks for macros that
                   4925: # take arguments), then we branch to the quote section.  Otherwise,
                   4926: # look for a macro that doesn't take arguments.
                   4927: cat >confdef2opt.sed <<\_ACEOF
                   4928: t clear
                   4929: : clear
                   4930: s,^[   ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
                   4931: t quote
                   4932: s,^[   ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
                   4933: t quote
                   4934: d
                   4935: : quote
                   4936: s,[    `~#$^&*(){}\\|;'"<>?],\\&,g
                   4937: s,\[,\\&,g
                   4938: s,\],\\&,g
                   4939: s,\$,$$,g
                   4940: p
                   4941: _ACEOF
                   4942: # We use echo to avoid assuming a particular line-breaking character.
                   4943: # The extra dot is to prevent the shell from consuming trailing
                   4944: # line-breaks from the sub-command output.  A line-break within
                   4945: # single-quotes doesn't work because, if this script is created in a
                   4946: # platform that uses two characters for line-breaks (e.g., DOS), tr
                   4947: # would break.
                   4948: ac_LF_and_DOT=`echo; echo .`
                   4949: DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
                   4950: rm -f confdef2opt.sed
                   4951:
1.1       ohara    4952:
                   4953:
                   4954: : ${CONFIG_STATUS=./config.status}
1.4       takayama 4955: ac_clean_files_save=$ac_clean_files
                   4956: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
                   4957: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
                   4958: echo "$as_me: creating $CONFIG_STATUS" >&6;}
                   4959: cat >$CONFIG_STATUS <<_ACEOF
                   4960: #! $SHELL
                   4961: # Generated by $as_me.
1.1       ohara    4962: # Run this file to recreate the current configuration.
                   4963: # Compiler output produced by configure, useful for debugging
1.4       takayama 4964: # configure, is in config.log if it exists.
                   4965:
                   4966: debug=false
                   4967: SHELL=\${CONFIG_SHELL-$SHELL}
                   4968: _ACEOF
                   4969:
                   4970: cat >>$CONFIG_STATUS <<\_ACEOF
                   4971:
                   4972: ## --------------------- ##
                   4973: ## M4sh Initialization.  ##
                   4974: ## --------------------- ##
                   4975:
                   4976: # Be Bourne compatible
                   4977: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
                   4978:   emulate sh
                   4979:   NULLCMD=:
                   4980: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
                   4981:   set -o posix
                   4982: fi
                   4983:
                   4984: # NLS nuisances.
                   4985: # Support unset when possible.
                   4986: if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
                   4987:   as_unset=unset
                   4988: else
                   4989:   as_unset=false
                   4990: fi
                   4991:
                   4992: (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
                   4993:     { $as_unset LANG || test "${LANG+set}" != set; } ||
                   4994:       { LANG=C; export LANG; }
                   4995: (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
                   4996:     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
                   4997:       { LC_ALL=C; export LC_ALL; }
                   4998: (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
                   4999:     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
                   5000:       { LC_TIME=C; export LC_TIME; }
                   5001: (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
                   5002:     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
                   5003:       { LC_CTYPE=C; export LC_CTYPE; }
                   5004: (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
                   5005:     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
                   5006:       { LANGUAGE=C; export LANGUAGE; }
                   5007: (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
                   5008:     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
                   5009:       { LC_COLLATE=C; export LC_COLLATE; }
                   5010: (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
                   5011:     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
                   5012:       { LC_NUMERIC=C; export LC_NUMERIC; }
                   5013: (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
                   5014:     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
                   5015:       { LC_MESSAGES=C; export LC_MESSAGES; }
                   5016:
                   5017:
                   5018: # Name of the executable.
                   5019: as_me=`(basename "$0") 2>/dev/null ||
                   5020: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
                   5021:         X"$0" : 'X\(//\)$' \| \
                   5022:         X"$0" : 'X\(/\)$' \| \
                   5023:         .     : '\(.\)' 2>/dev/null ||
                   5024: echo X/"$0" |
                   5025:     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
                   5026:          /^X\/\(\/\/\)$/{ s//\1/; q; }
                   5027:          /^X\/\(\/\).*/{ s//\1/; q; }
                   5028:          s/.*/./; q'`
                   5029:
                   5030: # PATH needs CR, and LINENO needs CR and PATH.
                   5031: # Avoid depending upon Character Ranges.
                   5032: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
                   5033: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
                   5034: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
                   5035: as_cr_digits='0123456789'
                   5036: as_cr_alnum=$as_cr_Letters$as_cr_digits
                   5037:
                   5038: # The user is always right.
                   5039: if test "${PATH_SEPARATOR+set}" != set; then
                   5040:   echo "#! /bin/sh" >conftest.sh
                   5041:   echo  "exit 0"   >>conftest.sh
                   5042:   chmod +x conftest.sh
                   5043:   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
                   5044:     PATH_SEPARATOR=';'
                   5045:   else
                   5046:     PATH_SEPARATOR=:
                   5047:   fi
                   5048:   rm -f conftest.sh
                   5049: fi
                   5050:
1.1       ohara    5051:
1.4       takayama 5052:   as_lineno_1=$LINENO
                   5053:   as_lineno_2=$LINENO
                   5054:   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
                   5055:   test "x$as_lineno_1" != "x$as_lineno_2" &&
                   5056:   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
                   5057:   # Find who we are.  Look in the path if we contain no path at all
                   5058:   # relative or not.
                   5059:   case $0 in
                   5060:     *[\\/]* ) as_myself=$0 ;;
                   5061:     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   5062: for as_dir in $PATH
                   5063: do
                   5064:   IFS=$as_save_IFS
                   5065:   test -z "$as_dir" && as_dir=.
                   5066:   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
                   5067: done
                   5068:
                   5069:        ;;
                   5070:   esac
                   5071:   # We did not find ourselves, most probably we were run as `sh COMMAND'
                   5072:   # in which case we are not to be found in the path.
                   5073:   if test "x$as_myself" = x; then
                   5074:     as_myself=$0
                   5075:   fi
                   5076:   if test ! -f "$as_myself"; then
                   5077:     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
                   5078: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
                   5079:    { (exit 1); exit 1; }; }
                   5080:   fi
                   5081:   case $CONFIG_SHELL in
                   5082:   '')
                   5083:     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   5084: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
                   5085: do
                   5086:   IFS=$as_save_IFS
                   5087:   test -z "$as_dir" && as_dir=.
                   5088:   for as_base in sh bash ksh sh5; do
                   5089:         case $as_dir in
                   5090:         /*)
                   5091:           if ("$as_dir/$as_base" -c '
                   5092:   as_lineno_1=$LINENO
                   5093:   as_lineno_2=$LINENO
                   5094:   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
                   5095:   test "x$as_lineno_1" != "x$as_lineno_2" &&
                   5096:   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
                   5097:             CONFIG_SHELL=$as_dir/$as_base
                   5098:             export CONFIG_SHELL
                   5099:             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
                   5100:           fi;;
                   5101:         esac
                   5102:        done
                   5103: done
                   5104: ;;
                   5105:   esac
                   5106:
                   5107:   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
                   5108:   # uniformly replaced by the line number.  The first 'sed' inserts a
                   5109:   # line-number line before each line; the second 'sed' does the real
                   5110:   # work.  The second script uses 'N' to pair each line-number line
                   5111:   # with the numbered line, and appends trailing '-' during
                   5112:   # substitution so that $LINENO is not a special case at line end.
                   5113:   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
                   5114:   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
                   5115:   sed '=' <$as_myself |
                   5116:     sed '
                   5117:       N
                   5118:       s,$,-,
                   5119:       : loop
                   5120:       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
                   5121:       t loop
                   5122:       s,-$,,
                   5123:       s,^['$as_cr_digits']*\n,,
                   5124:     ' >$as_me.lineno &&
                   5125:   chmod +x $as_me.lineno ||
                   5126:     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
                   5127: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
                   5128:    { (exit 1); exit 1; }; }
                   5129:
                   5130:   # Don't try to exec as it changes $[0], causing all sort of problems
                   5131:   # (the dirname of $[0] is not the place where we might find the
                   5132:   # original and so on.  Autoconf is especially sensible to this).
                   5133:   . ./$as_me.lineno
                   5134:   # Exit status is that of the last command.
                   5135:   exit
                   5136: }
                   5137:
                   5138:
                   5139: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
                   5140:   *c*,-n*) ECHO_N= ECHO_C='
                   5141: ' ECHO_T='     ' ;;
                   5142:   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
                   5143:   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
                   5144: esac
                   5145:
                   5146: if expr a : '\(a\)' >/dev/null 2>&1; then
                   5147:   as_expr=expr
                   5148: else
                   5149:   as_expr=false
                   5150: fi
                   5151:
                   5152: rm -f conf$$ conf$$.exe conf$$.file
                   5153: echo >conf$$.file
                   5154: if ln -s conf$$.file conf$$ 2>/dev/null; then
                   5155:   # We could just check for DJGPP; but this test a) works b) is more generic
                   5156:   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
                   5157:   if test -f conf$$.exe; then
                   5158:     # Don't use ln at all; we don't have any links
                   5159:     as_ln_s='cp -p'
                   5160:   else
                   5161:     as_ln_s='ln -s'
                   5162:   fi
                   5163: elif ln conf$$.file conf$$ 2>/dev/null; then
                   5164:   as_ln_s=ln
                   5165: else
                   5166:   as_ln_s='cp -p'
                   5167: fi
                   5168: rm -f conf$$ conf$$.exe conf$$.file
                   5169:
                   5170: as_executable_p="test -f"
                   5171:
                   5172: # Sed expression to map a string onto a valid CPP name.
                   5173: as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
                   5174:
                   5175: # Sed expression to map a string onto a valid variable name.
                   5176: as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
                   5177:
                   5178:
                   5179: # IFS
                   5180: # We need space, tab and new line, in precisely that order.
                   5181: as_nl='
                   5182: '
                   5183: IFS="  $as_nl"
                   5184:
                   5185: # CDPATH.
                   5186: $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
                   5187:
                   5188: exec 6>&1
                   5189:
                   5190: # Open the log real soon, to keep \$[0] and so on meaningful, and to
                   5191: # report actual input values of CONFIG_FILES etc. instead of their
                   5192: # values after options handling.  Logging --version etc. is OK.
                   5193: exec 5>>config.log
                   5194: {
                   5195:   echo
                   5196:   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
                   5197: ## Running $as_me. ##
                   5198: _ASBOX
                   5199: } >&5
                   5200: cat >&5 <<_CSEOF
                   5201:
                   5202: This file was extended by $as_me, which was
                   5203: generated by GNU Autoconf 2.53.  Invocation command line was
                   5204:
                   5205:   CONFIG_FILES    = $CONFIG_FILES
                   5206:   CONFIG_HEADERS  = $CONFIG_HEADERS
                   5207:   CONFIG_LINKS    = $CONFIG_LINKS
                   5208:   CONFIG_COMMANDS = $CONFIG_COMMANDS
                   5209:   $ $0 $@
                   5210:
                   5211: _CSEOF
                   5212: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
                   5213: echo >&5
                   5214: _ACEOF
                   5215:
                   5216: # Files that config.status was made for.
                   5217: if test -n "$ac_config_files"; then
                   5218:   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
                   5219: fi
                   5220:
                   5221: if test -n "$ac_config_headers"; then
                   5222:   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
                   5223: fi
                   5224:
                   5225: if test -n "$ac_config_links"; then
                   5226:   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
                   5227: fi
                   5228:
                   5229: if test -n "$ac_config_commands"; then
                   5230:   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
                   5231: fi
                   5232:
                   5233: cat >>$CONFIG_STATUS <<\_ACEOF
                   5234:
                   5235: ac_cs_usage="\
                   5236: \`$as_me' instantiates files from templates according to the
                   5237: current configuration.
                   5238:
                   5239: Usage: $0 [OPTIONS] [FILE]...
                   5240:
                   5241:   -h, --help       print this help, then exit
                   5242:   -V, --version    print version number, then exit
                   5243:   -d, --debug      don't remove temporary files
                   5244:       --recheck    update $as_me by reconfiguring in the same conditions
                   5245:   --file=FILE[:TEMPLATE]
                   5246:                    instantiate the configuration file FILE
                   5247:
                   5248: Configuration files:
                   5249: $config_files
                   5250:
1.7       ohara    5251: Configuration commands:
                   5252: $config_commands
                   5253:
1.4       takayama 5254: Report bugs to <bug-autoconf@gnu.org>."
                   5255: _ACEOF
                   5256:
                   5257: cat >>$CONFIG_STATUS <<_ACEOF
                   5258: ac_cs_version="\\
                   5259: config.status
                   5260: configured by $0, generated by GNU Autoconf 2.53,
                   5261:   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
                   5262:
                   5263: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
                   5264: Free Software Foundation, Inc.
                   5265: This config.status script is free software; the Free Software Foundation
                   5266: gives unlimited permission to copy, distribute and modify it."
                   5267: srcdir=$srcdir
1.6       ohara    5268: INSTALL="$INSTALL"
1.4       takayama 5269: _ACEOF
                   5270:
                   5271: cat >>$CONFIG_STATUS <<\_ACEOF
                   5272: # If no file are specified by the user, then we need to provide default
                   5273: # value.  By we need to know if files were specified by the user.
                   5274: ac_need_defaults=:
                   5275: while test $# != 0
1.1       ohara    5276: do
1.4       takayama 5277:   case $1 in
                   5278:   --*=*)
                   5279:     ac_option=`expr "x$1" : 'x\([^=]*\)='`
                   5280:     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
                   5281:     shift
                   5282:     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
                   5283:     shift
                   5284:     ;;
                   5285:   -*);;
                   5286:   *) # This is not an option, so the user has probably given explicit
                   5287:      # arguments.
                   5288:      ac_need_defaults=false;;
                   5289:   esac
                   5290:
                   5291:   case $1 in
                   5292:   # Handling of the options.
                   5293: _ACEOF
                   5294: cat >>$CONFIG_STATUS <<_ACEOF
1.1       ohara    5295:   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1.4       takayama 5296:     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
                   5297:     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
                   5298: _ACEOF
                   5299: cat >>$CONFIG_STATUS <<\_ACEOF
                   5300:   --version | --vers* | -V )
                   5301:     echo "$ac_cs_version"; exit 0 ;;
                   5302:   --he | --h)
                   5303:     # Conflict between --help and --header
                   5304:     { { echo "$as_me:$LINENO: error: ambiguous option: $1
                   5305: Try \`$0 --help' for more information." >&5
                   5306: echo "$as_me: error: ambiguous option: $1
                   5307: Try \`$0 --help' for more information." >&2;}
                   5308:    { (exit 1); exit 1; }; };;
                   5309:   --help | --hel | -h )
                   5310:     echo "$ac_cs_usage"; exit 0 ;;
                   5311:   --debug | --d* | -d )
                   5312:     debug=: ;;
                   5313:   --file | --fil | --fi | --f )
                   5314:     shift
                   5315:     CONFIG_FILES="$CONFIG_FILES $1"
                   5316:     ac_need_defaults=false;;
                   5317:   --header | --heade | --head | --hea )
                   5318:     shift
                   5319:     CONFIG_HEADERS="$CONFIG_HEADERS $1"
                   5320:     ac_need_defaults=false;;
                   5321:
                   5322:   # This is an error.
                   5323:   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
                   5324: Try \`$0 --help' for more information." >&5
                   5325: echo "$as_me: error: unrecognized option: $1
                   5326: Try \`$0 --help' for more information." >&2;}
                   5327:    { (exit 1); exit 1; }; } ;;
                   5328:
                   5329:   *) ac_config_targets="$ac_config_targets $1" ;;
                   5330:
                   5331:   esac
                   5332:   shift
                   5333: done
                   5334:
                   5335: _ACEOF
                   5336:
1.7       ohara    5337: cat >>$CONFIG_STATUS <<_ACEOF
                   5338: #
                   5339: # INIT-COMMANDS section.
                   5340: #
                   5341:
                   5342: AMDEP_TRUE="$AMDEP_TRUE"
                   5343: ac_aux_dir="$ac_aux_dir"
1.4       takayama 5344:
1.7       ohara    5345: _ACEOF
1.4       takayama 5346:
                   5347:
                   5348:
                   5349: cat >>$CONFIG_STATUS <<\_ACEOF
                   5350: for ac_config_target in $ac_config_targets
                   5351: do
                   5352:   case "$ac_config_target" in
                   5353:   # Handling of arguments.
                   5354:   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1.7       ohara    5355:   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
1.4       takayama 5356:   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
                   5357: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
                   5358:    { (exit 1); exit 1; }; };;
1.1       ohara    5359:   esac
                   5360: done
                   5361:
1.4       takayama 5362: # If the user did not use the arguments to specify the items to instantiate,
                   5363: # then the envvar interface is used.  Set only those that are not.
                   5364: # We use the long form for the default assignment because of an extremely
                   5365: # bizarre bug on SunOS 4.1.3.
                   5366: if $ac_need_defaults; then
                   5367:   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
1.7       ohara    5368:   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
1.4       takayama 5369: fi
                   5370:
                   5371: # Create a temporary directory, and hook for its removal unless debugging.
                   5372: $debug ||
                   5373: {
                   5374:   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
                   5375:   trap '{ (exit 1); exit 1; }' 1 2 13 15
                   5376: }
                   5377:
                   5378: # Create a (secure) tmp directory for tmp files.
                   5379: : ${TMPDIR=/tmp}
                   5380: {
                   5381:   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
                   5382:   test -n "$tmp" && test -d "$tmp"
                   5383: }  ||
                   5384: {
                   5385:   tmp=$TMPDIR/cs$$-$RANDOM
                   5386:   (umask 077 && mkdir $tmp)
                   5387: } ||
                   5388: {
                   5389:    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
                   5390:    { (exit 1); exit 1; }
                   5391: }
                   5392:
                   5393: _ACEOF
1.1       ohara    5394:
1.4       takayama 5395: cat >>$CONFIG_STATUS <<_ACEOF
                   5396:
                   5397: #
                   5398: # CONFIG_FILES section.
                   5399: #
1.1       ohara    5400:
1.4       takayama 5401: # No need to generate the scripts if there are no CONFIG_FILES.
                   5402: # This happens for instance when ./config.status config.h
                   5403: if test -n "\$CONFIG_FILES"; then
                   5404:   # Protect against being on the right side of a sed subst in config.status.
                   5405:   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
                   5406:    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
                   5407: s,@SHELL@,$SHELL,;t t
                   5408: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
                   5409: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
                   5410: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
                   5411: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
                   5412: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
                   5413: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
                   5414: s,@exec_prefix@,$exec_prefix,;t t
                   5415: s,@prefix@,$prefix,;t t
                   5416: s,@program_transform_name@,$program_transform_name,;t t
                   5417: s,@bindir@,$bindir,;t t
                   5418: s,@sbindir@,$sbindir,;t t
                   5419: s,@libexecdir@,$libexecdir,;t t
                   5420: s,@datadir@,$datadir,;t t
                   5421: s,@sysconfdir@,$sysconfdir,;t t
                   5422: s,@sharedstatedir@,$sharedstatedir,;t t
                   5423: s,@localstatedir@,$localstatedir,;t t
                   5424: s,@libdir@,$libdir,;t t
                   5425: s,@includedir@,$includedir,;t t
                   5426: s,@oldincludedir@,$oldincludedir,;t t
                   5427: s,@infodir@,$infodir,;t t
                   5428: s,@mandir@,$mandir,;t t
                   5429: s,@build_alias@,$build_alias,;t t
                   5430: s,@host_alias@,$host_alias,;t t
                   5431: s,@target_alias@,$target_alias,;t t
                   5432: s,@DEFS@,$DEFS,;t t
                   5433: s,@ECHO_C@,$ECHO_C,;t t
                   5434: s,@ECHO_N@,$ECHO_N,;t t
                   5435: s,@ECHO_T@,$ECHO_T,;t t
                   5436: s,@LIBS@,$LIBS,;t t
1.7       ohara    5437: s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
                   5438: s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
                   5439: s,@INSTALL_DATA@,$INSTALL_DATA,;t t
                   5440: s,@PACKAGE@,$PACKAGE,;t t
                   5441: s,@VERSION@,$VERSION,;t t
                   5442: s,@EXEEXT@,$EXEEXT,;t t
                   5443: s,@OBJEXT@,$OBJEXT,;t t
                   5444: s,@ACLOCAL@,$ACLOCAL,;t t
                   5445: s,@AUTOCONF@,$AUTOCONF,;t t
                   5446: s,@AUTOMAKE@,$AUTOMAKE,;t t
                   5447: s,@AUTOHEADER@,$AUTOHEADER,;t t
                   5448: s,@MAKEINFO@,$MAKEINFO,;t t
                   5449: s,@AMTAR@,$AMTAR,;t t
                   5450: s,@install_sh@,$install_sh,;t t
                   5451: s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
                   5452: s,@AWK@,$AWK,;t t
                   5453: s,@SET_MAKE@,$SET_MAKE,;t t
                   5454: s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
                   5455: s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
                   5456: s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
                   5457: s,@DEPDIR@,$DEPDIR,;t t
                   5458: s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
                   5459: s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
                   5460: s,@MAINT@,$MAINT,;t t
1.5       ohara    5461: s,@build@,$build,;t t
                   5462: s,@build_cpu@,$build_cpu,;t t
                   5463: s,@build_vendor@,$build_vendor,;t t
                   5464: s,@build_os@,$build_os,;t t
                   5465: s,@host@,$host,;t t
                   5466: s,@host_cpu@,$host_cpu,;t t
                   5467: s,@host_vendor@,$host_vendor,;t t
                   5468: s,@host_os@,$host_os,;t t
                   5469: s,@target@,$target,;t t
                   5470: s,@target_cpu@,$target_cpu,;t t
                   5471: s,@target_vendor@,$target_vendor,;t t
                   5472: s,@target_os@,$target_os,;t t
1.4       takayama 5473: s,@CC@,$CC,;t t
                   5474: s,@CFLAGS@,$CFLAGS,;t t
                   5475: s,@LDFLAGS@,$LDFLAGS,;t t
                   5476: s,@CPPFLAGS@,$CPPFLAGS,;t t
                   5477: s,@ac_ct_CC@,$ac_ct_CC,;t t
1.7       ohara    5478: s,@am__include@,$am__include,;t t
                   5479: s,@am__quote@,$am__quote,;t t
                   5480: s,@CCDEPMODE@,$CCDEPMODE,;t t
1.4       takayama 5481: s,@RANLIB@,$RANLIB,;t t
                   5482: s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
1.7       ohara    5483: s,@LN_S@,$LN_S,;t t
                   5484: s,@LIBTOOL@,$LIBTOOL,;t t
1.4       takayama 5485: s,@CPP@,$CPP,;t t
                   5486: s,@X_CFLAGS@,$X_CFLAGS,;t t
                   5487: s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
                   5488: s,@X_LIBS@,$X_LIBS,;t t
                   5489: s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
1.1       ohara    5490: CEOF
                   5491:
1.4       takayama 5492: _ACEOF
1.1       ohara    5493:
1.4       takayama 5494:   cat >>$CONFIG_STATUS <<\_ACEOF
                   5495:   # Split the substitutions into bite-sized pieces for seds with
                   5496:   # small command number limits, like on Digital OSF/1 and HP-UX.
                   5497:   ac_max_sed_lines=48
                   5498:   ac_sed_frag=1 # Number of current file.
                   5499:   ac_beg=1 # First line for current file.
                   5500:   ac_end=$ac_max_sed_lines # Line after last line for current file.
                   5501:   ac_more_lines=:
                   5502:   ac_sed_cmds=
                   5503:   while $ac_more_lines; do
                   5504:     if test $ac_beg -gt 1; then
                   5505:       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
                   5506:     else
                   5507:       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
                   5508:     fi
                   5509:     if test ! -s $tmp/subs.frag; then
                   5510:       ac_more_lines=false
1.1       ohara    5511:     else
1.4       takayama 5512:       # The purpose of the label and of the branching condition is to
                   5513:       # speed up the sed processing (if there are no `@' at all, there
                   5514:       # is no need to browse any of the substitutions).
                   5515:       # These are the two extra sed commands mentioned above.
                   5516:       (echo ':t
                   5517:   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
                   5518:       if test -z "$ac_sed_cmds"; then
                   5519:        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
                   5520:       else
                   5521:        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
                   5522:       fi
                   5523:       ac_sed_frag=`expr $ac_sed_frag + 1`
                   5524:       ac_beg=$ac_end
                   5525:       ac_end=`expr $ac_end + $ac_max_sed_lines`
1.1       ohara    5526:     fi
1.4       takayama 5527:   done
                   5528:   if test -z "$ac_sed_cmds"; then
                   5529:     ac_sed_cmds=cat
1.1       ohara    5530:   fi
1.4       takayama 5531: fi # test -n "$CONFIG_FILES"
1.1       ohara    5532:
1.4       takayama 5533: _ACEOF
                   5534: cat >>$CONFIG_STATUS <<\_ACEOF
                   5535: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
                   5536:   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
                   5537:   case $ac_file in
                   5538:   - | *:- | *:-:* ) # input from stdin
                   5539:         cat >$tmp/stdin
                   5540:         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
                   5541:         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
                   5542:   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
                   5543:         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
                   5544:   * )   ac_file_in=$ac_file.in ;;
                   5545:   esac
1.1       ohara    5546:
1.4       takayama 5547:   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
                   5548:   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
                   5549: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   5550:          X"$ac_file" : 'X\(//\)[^/]' \| \
                   5551:          X"$ac_file" : 'X\(//\)$' \| \
                   5552:          X"$ac_file" : 'X\(/\)' \| \
                   5553:          .     : '\(.\)' 2>/dev/null ||
                   5554: echo X"$ac_file" |
                   5555:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
                   5556:          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
                   5557:          /^X\(\/\/\)$/{ s//\1/; q; }
                   5558:          /^X\(\/\).*/{ s//\1/; q; }
                   5559:          s/.*/./; q'`
                   5560:   { case "$ac_dir" in
                   5561:   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
                   5562:   *)                      as_incr_dir=.;;
                   5563: esac
                   5564: as_dummy="$ac_dir"
                   5565: for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
                   5566:   case $as_mkdir_dir in
                   5567:     # Skip DOS drivespec
                   5568:     ?:) as_incr_dir=$as_mkdir_dir ;;
                   5569:     *)
                   5570:       as_incr_dir=$as_incr_dir/$as_mkdir_dir
                   5571:       test -d "$as_incr_dir" ||
                   5572:         mkdir "$as_incr_dir" ||
                   5573:        { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
                   5574: echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
                   5575:    { (exit 1); exit 1; }; }
                   5576:     ;;
1.1       ohara    5577:   esac
1.4       takayama 5578: done; }
1.1       ohara    5579:
1.4       takayama 5580:   ac_builddir=.
1.1       ohara    5581:
1.4       takayama 5582: if test "$ac_dir" != .; then
                   5583:   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
                   5584:   # A "../" for each directory in $ac_dir_suffix.
                   5585:   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
                   5586: else
                   5587:   ac_dir_suffix= ac_top_builddir=
                   5588: fi
1.1       ohara    5589:
1.4       takayama 5590: case $srcdir in
                   5591:   .)  # No --srcdir option.  We are building in place.
                   5592:     ac_srcdir=.
                   5593:     if test -z "$ac_top_builddir"; then
                   5594:        ac_top_srcdir=.
                   5595:     else
                   5596:        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
                   5597:     fi ;;
                   5598:   [\\/]* | ?:[\\/]* )  # Absolute path.
                   5599:     ac_srcdir=$srcdir$ac_dir_suffix;
                   5600:     ac_top_srcdir=$srcdir ;;
1.1       ohara    5601:   *) # Relative path.
1.4       takayama 5602:     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
                   5603:     ac_top_srcdir=$ac_top_builddir$srcdir ;;
                   5604: esac
                   5605: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
                   5606: # absolute.
                   5607: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
                   5608: ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
                   5609: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
                   5610: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
                   5611:
1.1       ohara    5612:
1.6       ohara    5613:   case $INSTALL in
                   5614:   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
                   5615:   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
                   5616:   esac
1.1       ohara    5617:
1.4       takayama 5618:   if test x"$ac_file" != x-; then
                   5619:     { echo "$as_me:$LINENO: creating $ac_file" >&5
                   5620: echo "$as_me: creating $ac_file" >&6;}
                   5621:     rm -f "$ac_file"
                   5622:   fi
                   5623:   # Let's still pretend it is `configure' which instantiates (i.e., don't
                   5624:   # use $as_me), people would be surprised to read:
                   5625:   #    /* config.h.  Generated by config.status.  */
                   5626:   if test x"$ac_file" = x-; then
                   5627:     configure_input=
                   5628:   else
                   5629:     configure_input="$ac_file.  "
                   5630:   fi
                   5631:   configure_input=$configure_input"Generated from `echo $ac_file_in |
                   5632:                                      sed 's,.*/,,'` by configure."
1.1       ohara    5633:
1.4       takayama 5634:   # First look for the input files in the build tree, otherwise in the
                   5635:   # src tree.
                   5636:   ac_file_inputs=`IFS=:
                   5637:     for f in $ac_file_in; do
                   5638:       case $f in
                   5639:       -) echo $tmp/stdin ;;
                   5640:       [\\/$]*)
                   5641:          # Absolute (can't be DOS-style, as IFS=:)
                   5642:          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
                   5643: echo "$as_me: error: cannot find input file: $f" >&2;}
                   5644:    { (exit 1); exit 1; }; }
                   5645:          echo $f;;
                   5646:       *) # Relative
                   5647:          if test -f "$f"; then
                   5648:            # Build tree
                   5649:            echo $f
                   5650:          elif test -f "$srcdir/$f"; then
                   5651:            # Source tree
                   5652:            echo $srcdir/$f
                   5653:          else
                   5654:            # /dev/null tree
                   5655:            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
                   5656: echo "$as_me: error: cannot find input file: $f" >&2;}
                   5657:    { (exit 1); exit 1; }; }
                   5658:          fi;;
                   5659:       esac
                   5660:     done` || { (exit 1); exit 1; }
                   5661: _ACEOF
                   5662: cat >>$CONFIG_STATUS <<_ACEOF
                   5663:   sed "$ac_vpsub
                   5664: $extrasub
                   5665: _ACEOF
                   5666: cat >>$CONFIG_STATUS <<\_ACEOF
                   5667: :t
                   5668: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
                   5669: s,@configure_input@,$configure_input,;t t
                   5670: s,@srcdir@,$ac_srcdir,;t t
                   5671: s,@abs_srcdir@,$ac_abs_srcdir,;t t
                   5672: s,@top_srcdir@,$ac_top_srcdir,;t t
                   5673: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
                   5674: s,@builddir@,$ac_builddir,;t t
                   5675: s,@abs_builddir@,$ac_abs_builddir,;t t
                   5676: s,@top_builddir@,$ac_top_builddir,;t t
                   5677: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
1.6       ohara    5678: s,@INSTALL@,$ac_INSTALL,;t t
1.4       takayama 5679: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
                   5680:   rm -f $tmp/stdin
                   5681:   if test x"$ac_file" != x-; then
                   5682:     mv $tmp/out $ac_file
                   5683:   else
                   5684:     cat $tmp/out
                   5685:     rm -f $tmp/out
                   5686:   fi
1.1       ohara    5687:
1.7       ohara    5688: done
                   5689: _ACEOF
                   5690: cat >>$CONFIG_STATUS <<\_ACEOF
                   5691:
                   5692: #
                   5693: # CONFIG_COMMANDS section.
                   5694: #
                   5695: for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
                   5696:   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
                   5697:   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
                   5698:   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
                   5699: $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   5700:          X"$ac_dest" : 'X\(//\)[^/]' \| \
                   5701:          X"$ac_dest" : 'X\(//\)$' \| \
                   5702:          X"$ac_dest" : 'X\(/\)' \| \
                   5703:          .     : '\(.\)' 2>/dev/null ||
                   5704: echo X"$ac_dest" |
                   5705:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
                   5706:          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
                   5707:          /^X\(\/\/\)$/{ s//\1/; q; }
                   5708:          /^X\(\/\).*/{ s//\1/; q; }
                   5709:          s/.*/./; q'`
                   5710:   ac_builddir=.
                   5711:
                   5712: if test "$ac_dir" != .; then
                   5713:   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
                   5714:   # A "../" for each directory in $ac_dir_suffix.
                   5715:   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
                   5716: else
                   5717:   ac_dir_suffix= ac_top_builddir=
                   5718: fi
                   5719:
                   5720: case $srcdir in
                   5721:   .)  # No --srcdir option.  We are building in place.
                   5722:     ac_srcdir=.
                   5723:     if test -z "$ac_top_builddir"; then
                   5724:        ac_top_srcdir=.
                   5725:     else
                   5726:        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
                   5727:     fi ;;
                   5728:   [\\/]* | ?:[\\/]* )  # Absolute path.
                   5729:     ac_srcdir=$srcdir$ac_dir_suffix;
                   5730:     ac_top_srcdir=$srcdir ;;
                   5731:   *) # Relative path.
                   5732:     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
                   5733:     ac_top_srcdir=$ac_top_builddir$srcdir ;;
                   5734: esac
                   5735: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
                   5736: # absolute.
                   5737: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
                   5738: ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
                   5739: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
                   5740: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
                   5741:
                   5742:
                   5743:   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
                   5744: echo "$as_me: executing $ac_dest commands" >&6;}
                   5745:   case $ac_dest in
                   5746:     default-1 )
                   5747: test x"$AMDEP_TRUE" != x"" ||
                   5748: for mf in $CONFIG_FILES; do
                   5749:   case "$mf" in
                   5750:   Makefile) dirpart=.;;
                   5751:   */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
                   5752:   *) continue;;
                   5753:   esac
                   5754:   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
                   5755:   # Extract the definition of DEP_FILES from the Makefile without
                   5756:   # running `make'.
                   5757:   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
                   5758:   test -z "$DEPDIR" && continue
                   5759:   # When using ansi2knr, U may be empty or an underscore; expand it
                   5760:   U=`sed -n -e '/^U = / s///p' < "$mf"`
                   5761:   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
                   5762:   # We invoke sed twice because it is the simplest approach to
                   5763:   # changing $(DEPDIR) to its actual value in the expansion.
                   5764:   for file in `sed -n -e '
                   5765:     /^DEP_FILES = .*\\\\$/ {
                   5766:       s/^DEP_FILES = //
                   5767:       :loop
                   5768:        s/\\\\$//
                   5769:        p
                   5770:        n
                   5771:        /\\\\$/ b loop
                   5772:       p
                   5773:     }
                   5774:     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
                   5775:        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
                   5776:     # Make sure the directory exists.
                   5777:     test -f "$dirpart/$file" && continue
                   5778:     fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
                   5779:     $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
                   5780:     # echo "creating $dirpart/$file"
                   5781:     echo '# dummy' > "$dirpart/$file"
                   5782:   done
                   5783: done
                   5784:  ;;
                   5785:   esac
1.4       takayama 5786: done
                   5787: _ACEOF
1.1       ohara    5788:
1.4       takayama 5789: cat >>$CONFIG_STATUS <<\_ACEOF
1.1       ohara    5790:
1.4       takayama 5791: { (exit 0); exit 0; }
                   5792: _ACEOF
1.1       ohara    5793: chmod +x $CONFIG_STATUS
1.4       takayama 5794: ac_clean_files=$ac_clean_files_save
                   5795:
                   5796:
                   5797: # configure is writing to config.log, and then calls config.status.
                   5798: # config.status does its own redirection, appending to config.log.
                   5799: # Unfortunately, on DOS this fails, as config.log is still kept open
                   5800: # by configure, so config.status won't be able to write to it; its
                   5801: # output is simply discarded.  So we exec the FD to /dev/null,
                   5802: # effectively closing config.log, so it can be properly (re)opened and
                   5803: # appended to by config.status.  When coming back to configure, we
                   5804: # need to make the FD available again.
                   5805: if test "$no_create" != yes; then
                   5806:   ac_cs_success=:
                   5807:   exec 5>/dev/null
                   5808:   $SHELL $CONFIG_STATUS || ac_cs_success=false
                   5809:   exec 5>>config.log
                   5810:   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
                   5811:   # would make configure fail if this is the last instruction.
                   5812:   $ac_cs_success || { (exit 1); exit 1; }
                   5813: fi
1.2       ohara    5814:

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