home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 20 / AACD20.BIN / AACD / Programming / Jikes / Source / configure < prev    next >
Encoding:
Text File  |  2001-03-03  |  158.9 KB  |  5,843 lines

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