OSDN Git Service

* mips-linux-tdep.c (mips_linux_o32_sigframe_init): Adjust
[pf3gnuchains/pf3gnuchains3x.git] / sim / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="Makefile.in"
275 ac_subdirs_all="$ac_subdirs_all arm"
276 ac_subdirs_all="$ac_subdirs_all cris"
277 ac_subdirs_all="$ac_subdirs_all d10v"
278 ac_subdirs_all="$ac_subdirs_all frv"
279 ac_subdirs_all="$ac_subdirs_all h8300"
280 ac_subdirs_all="$ac_subdirs_all iq2000"
281 ac_subdirs_all="$ac_subdirs_all m32r"
282 ac_subdirs_all="$ac_subdirs_all m68hc11"
283 ac_subdirs_all="$ac_subdirs_all mcore"
284 ac_subdirs_all="$ac_subdirs_all mips"
285 ac_subdirs_all="$ac_subdirs_all mn10300"
286 ac_subdirs_all="$ac_subdirs_all sh"
287 ac_subdirs_all="$ac_subdirs_all ppc"
288 ac_subdirs_all="$ac_subdirs_all v850"
289 ac_subdirs_all="$ac_subdirs_all testsuite"
290 ac_subdirs_all="$ac_subdirs_all common"
291 ac_subdirs_all="$ac_subdirs_all igen"
292 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AR ac_ct_AR RANLIB ac_ct_RANLIB build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os HDEFINES CC_FOR_BUILD subdirs LIBOBJS LTLIBOBJS'
293 ac_subst_files=''
294
295 # Initialize some variables set by options.
296 ac_init_help=
297 ac_init_version=false
298 # The variables have the same names as the options, with
299 # dashes changed to underlines.
300 cache_file=/dev/null
301 exec_prefix=NONE
302 no_create=
303 no_recursion=
304 prefix=NONE
305 program_prefix=NONE
306 program_suffix=NONE
307 program_transform_name=s,x,x,
308 silent=
309 site=
310 srcdir=
311 verbose=
312 x_includes=NONE
313 x_libraries=NONE
314
315 # Installation directory options.
316 # These are left unexpanded so users can "make install exec_prefix=/foo"
317 # and all the variables that are supposed to be based on exec_prefix
318 # by default will actually change.
319 # Use braces instead of parens because sh, perl, etc. also accept them.
320 bindir='${exec_prefix}/bin'
321 sbindir='${exec_prefix}/sbin'
322 libexecdir='${exec_prefix}/libexec'
323 datadir='${prefix}/share'
324 sysconfdir='${prefix}/etc'
325 sharedstatedir='${prefix}/com'
326 localstatedir='${prefix}/var'
327 libdir='${exec_prefix}/lib'
328 includedir='${prefix}/include'
329 oldincludedir='/usr/include'
330 infodir='${prefix}/info'
331 mandir='${prefix}/man'
332
333 ac_prev=
334 for ac_option
335 do
336   # If the previous option needs an argument, assign it.
337   if test -n "$ac_prev"; then
338     eval "$ac_prev=\$ac_option"
339     ac_prev=
340     continue
341   fi
342
343   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
344
345   # Accept the important Cygnus configure options, so we can diagnose typos.
346
347   case $ac_option in
348
349   -bindir | --bindir | --bindi | --bind | --bin | --bi)
350     ac_prev=bindir ;;
351   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
352     bindir=$ac_optarg ;;
353
354   -build | --build | --buil | --bui | --bu)
355     ac_prev=build_alias ;;
356   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
357     build_alias=$ac_optarg ;;
358
359   -cache-file | --cache-file | --cache-fil | --cache-fi \
360   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
361     ac_prev=cache_file ;;
362   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
363   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
364     cache_file=$ac_optarg ;;
365
366   --config-cache | -C)
367     cache_file=config.cache ;;
368
369   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
370     ac_prev=datadir ;;
371   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
372   | --da=*)
373     datadir=$ac_optarg ;;
374
375   -disable-* | --disable-*)
376     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
377     # Reject names that are not valid shell variable names.
378     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
379       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
380    { (exit 1); exit 1; }; }
381     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
382     eval "enable_$ac_feature=no" ;;
383
384   -enable-* | --enable-*)
385     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
386     # Reject names that are not valid shell variable names.
387     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
388       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
389    { (exit 1); exit 1; }; }
390     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
391     case $ac_option in
392       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
393       *) ac_optarg=yes ;;
394     esac
395     eval "enable_$ac_feature='$ac_optarg'" ;;
396
397   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
398   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
399   | --exec | --exe | --ex)
400     ac_prev=exec_prefix ;;
401   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
402   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
403   | --exec=* | --exe=* | --ex=*)
404     exec_prefix=$ac_optarg ;;
405
406   -gas | --gas | --ga | --g)
407     # Obsolete; use --with-gas.
408     with_gas=yes ;;
409
410   -help | --help | --hel | --he | -h)
411     ac_init_help=long ;;
412   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
413     ac_init_help=recursive ;;
414   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
415     ac_init_help=short ;;
416
417   -host | --host | --hos | --ho)
418     ac_prev=host_alias ;;
419   -host=* | --host=* | --hos=* | --ho=*)
420     host_alias=$ac_optarg ;;
421
422   -includedir | --includedir | --includedi | --included | --include \
423   | --includ | --inclu | --incl | --inc)
424     ac_prev=includedir ;;
425   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
426   | --includ=* | --inclu=* | --incl=* | --inc=*)
427     includedir=$ac_optarg ;;
428
429   -infodir | --infodir | --infodi | --infod | --info | --inf)
430     ac_prev=infodir ;;
431   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
432     infodir=$ac_optarg ;;
433
434   -libdir | --libdir | --libdi | --libd)
435     ac_prev=libdir ;;
436   -libdir=* | --libdir=* | --libdi=* | --libd=*)
437     libdir=$ac_optarg ;;
438
439   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
440   | --libexe | --libex | --libe)
441     ac_prev=libexecdir ;;
442   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
443   | --libexe=* | --libex=* | --libe=*)
444     libexecdir=$ac_optarg ;;
445
446   -localstatedir | --localstatedir | --localstatedi | --localstated \
447   | --localstate | --localstat | --localsta | --localst \
448   | --locals | --local | --loca | --loc | --lo)
449     ac_prev=localstatedir ;;
450   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
451   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
452   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
453     localstatedir=$ac_optarg ;;
454
455   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
456     ac_prev=mandir ;;
457   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
458     mandir=$ac_optarg ;;
459
460   -nfp | --nfp | --nf)
461     # Obsolete; use --without-fp.
462     with_fp=no ;;
463
464   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
465   | --no-cr | --no-c | -n)
466     no_create=yes ;;
467
468   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
469   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
470     no_recursion=yes ;;
471
472   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
473   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
474   | --oldin | --oldi | --old | --ol | --o)
475     ac_prev=oldincludedir ;;
476   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
477   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
478   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
479     oldincludedir=$ac_optarg ;;
480
481   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
482     ac_prev=prefix ;;
483   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
484     prefix=$ac_optarg ;;
485
486   -program-prefix | --program-prefix | --program-prefi | --program-pref \
487   | --program-pre | --program-pr | --program-p)
488     ac_prev=program_prefix ;;
489   -program-prefix=* | --program-prefix=* | --program-prefi=* \
490   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
491     program_prefix=$ac_optarg ;;
492
493   -program-suffix | --program-suffix | --program-suffi | --program-suff \
494   | --program-suf | --program-su | --program-s)
495     ac_prev=program_suffix ;;
496   -program-suffix=* | --program-suffix=* | --program-suffi=* \
497   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
498     program_suffix=$ac_optarg ;;
499
500   -program-transform-name | --program-transform-name \
501   | --program-transform-nam | --program-transform-na \
502   | --program-transform-n | --program-transform- \
503   | --program-transform | --program-transfor \
504   | --program-transfo | --program-transf \
505   | --program-trans | --program-tran \
506   | --progr-tra | --program-tr | --program-t)
507     ac_prev=program_transform_name ;;
508   -program-transform-name=* | --program-transform-name=* \
509   | --program-transform-nam=* | --program-transform-na=* \
510   | --program-transform-n=* | --program-transform-=* \
511   | --program-transform=* | --program-transfor=* \
512   | --program-transfo=* | --program-transf=* \
513   | --program-trans=* | --program-tran=* \
514   | --progr-tra=* | --program-tr=* | --program-t=*)
515     program_transform_name=$ac_optarg ;;
516
517   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
518   | -silent | --silent | --silen | --sile | --sil)
519     silent=yes ;;
520
521   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
522     ac_prev=sbindir ;;
523   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
524   | --sbi=* | --sb=*)
525     sbindir=$ac_optarg ;;
526
527   -sharedstatedir | --sharedstatedir | --sharedstatedi \
528   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
529   | --sharedst | --shareds | --shared | --share | --shar \
530   | --sha | --sh)
531     ac_prev=sharedstatedir ;;
532   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
533   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
534   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
535   | --sha=* | --sh=*)
536     sharedstatedir=$ac_optarg ;;
537
538   -site | --site | --sit)
539     ac_prev=site ;;
540   -site=* | --site=* | --sit=*)
541     site=$ac_optarg ;;
542
543   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
544     ac_prev=srcdir ;;
545   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
546     srcdir=$ac_optarg ;;
547
548   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
549   | --syscon | --sysco | --sysc | --sys | --sy)
550     ac_prev=sysconfdir ;;
551   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
552   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
553     sysconfdir=$ac_optarg ;;
554
555   -target | --target | --targe | --targ | --tar | --ta | --t)
556     ac_prev=target_alias ;;
557   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
558     target_alias=$ac_optarg ;;
559
560   -v | -verbose | --verbose | --verbos | --verbo | --verb)
561     verbose=yes ;;
562
563   -version | --version | --versio | --versi | --vers | -V)
564     ac_init_version=: ;;
565
566   -with-* | --with-*)
567     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
568     # Reject names that are not valid shell variable names.
569     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
570       { echo "$as_me: error: invalid package name: $ac_package" >&2
571    { (exit 1); exit 1; }; }
572     ac_package=`echo $ac_package| sed 's/-/_/g'`
573     case $ac_option in
574       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
575       *) ac_optarg=yes ;;
576     esac
577     eval "with_$ac_package='$ac_optarg'" ;;
578
579   -without-* | --without-*)
580     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
581     # Reject names that are not valid shell variable names.
582     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
583       { echo "$as_me: error: invalid package name: $ac_package" >&2
584    { (exit 1); exit 1; }; }
585     ac_package=`echo $ac_package | sed 's/-/_/g'`
586     eval "with_$ac_package=no" ;;
587
588   --x)
589     # Obsolete; use --with-x.
590     with_x=yes ;;
591
592   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
593   | --x-incl | --x-inc | --x-in | --x-i)
594     ac_prev=x_includes ;;
595   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
596   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
597     x_includes=$ac_optarg ;;
598
599   -x-libraries | --x-libraries | --x-librarie | --x-librari \
600   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
601     ac_prev=x_libraries ;;
602   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
603   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
604     x_libraries=$ac_optarg ;;
605
606   -*) { echo "$as_me: error: unrecognized option: $ac_option
607 Try \`$0 --help' for more information." >&2
608    { (exit 1); exit 1; }; }
609     ;;
610
611   *=*)
612     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
613     # Reject names that are not valid shell variable names.
614     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
615       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
616    { (exit 1); exit 1; }; }
617     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
618     eval "$ac_envvar='$ac_optarg'"
619     export $ac_envvar ;;
620
621   *)
622     # FIXME: should be removed in autoconf 3.0.
623     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
624     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
625       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
626     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
627     ;;
628
629   esac
630 done
631
632 if test -n "$ac_prev"; then
633   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
634   { echo "$as_me: error: missing argument to $ac_option" >&2
635    { (exit 1); exit 1; }; }
636 fi
637
638 # Be sure to have absolute paths.
639 for ac_var in exec_prefix prefix
640 do
641   eval ac_val=$`echo $ac_var`
642   case $ac_val in
643     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
644     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
645    { (exit 1); exit 1; }; };;
646   esac
647 done
648
649 # Be sure to have absolute paths.
650 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
651               localstatedir libdir includedir oldincludedir infodir mandir
652 do
653   eval ac_val=$`echo $ac_var`
654   case $ac_val in
655     [\\/$]* | ?:[\\/]* ) ;;
656     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
657    { (exit 1); exit 1; }; };;
658   esac
659 done
660
661 # There might be people who depend on the old broken behavior: `$host'
662 # used to hold the argument of --host etc.
663 # FIXME: To remove some day.
664 build=$build_alias
665 host=$host_alias
666 target=$target_alias
667
668 # FIXME: To remove some day.
669 if test "x$host_alias" != x; then
670   if test "x$build_alias" = x; then
671     cross_compiling=maybe
672     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
673     If a cross compiler is detected then cross compile mode will be used." >&2
674   elif test "x$build_alias" != "x$host_alias"; then
675     cross_compiling=yes
676   fi
677 fi
678
679 ac_tool_prefix=
680 test -n "$host_alias" && ac_tool_prefix=$host_alias-
681
682 test "$silent" = yes && exec 6>/dev/null
683
684
685 # Find the source files, if location was not specified.
686 if test -z "$srcdir"; then
687   ac_srcdir_defaulted=yes
688   # Try the directory containing this script, then its parent.
689   ac_confdir=`(dirname "$0") 2>/dev/null ||
690 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
691          X"$0" : 'X\(//\)[^/]' \| \
692          X"$0" : 'X\(//\)$' \| \
693          X"$0" : 'X\(/\)' \| \
694          .     : '\(.\)' 2>/dev/null ||
695 echo X"$0" |
696     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
697           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
698           /^X\(\/\/\)$/{ s//\1/; q; }
699           /^X\(\/\).*/{ s//\1/; q; }
700           s/.*/./; q'`
701   srcdir=$ac_confdir
702   if test ! -r $srcdir/$ac_unique_file; then
703     srcdir=..
704   fi
705 else
706   ac_srcdir_defaulted=no
707 fi
708 if test ! -r $srcdir/$ac_unique_file; then
709   if test "$ac_srcdir_defaulted" = yes; then
710     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
711    { (exit 1); exit 1; }; }
712   else
713     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
714    { (exit 1); exit 1; }; }
715   fi
716 fi
717 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
718   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
719    { (exit 1); exit 1; }; }
720 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
721 ac_env_build_alias_set=${build_alias+set}
722 ac_env_build_alias_value=$build_alias
723 ac_cv_env_build_alias_set=${build_alias+set}
724 ac_cv_env_build_alias_value=$build_alias
725 ac_env_host_alias_set=${host_alias+set}
726 ac_env_host_alias_value=$host_alias
727 ac_cv_env_host_alias_set=${host_alias+set}
728 ac_cv_env_host_alias_value=$host_alias
729 ac_env_target_alias_set=${target_alias+set}
730 ac_env_target_alias_value=$target_alias
731 ac_cv_env_target_alias_set=${target_alias+set}
732 ac_cv_env_target_alias_value=$target_alias
733 ac_env_CC_set=${CC+set}
734 ac_env_CC_value=$CC
735 ac_cv_env_CC_set=${CC+set}
736 ac_cv_env_CC_value=$CC
737 ac_env_CFLAGS_set=${CFLAGS+set}
738 ac_env_CFLAGS_value=$CFLAGS
739 ac_cv_env_CFLAGS_set=${CFLAGS+set}
740 ac_cv_env_CFLAGS_value=$CFLAGS
741 ac_env_LDFLAGS_set=${LDFLAGS+set}
742 ac_env_LDFLAGS_value=$LDFLAGS
743 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
744 ac_cv_env_LDFLAGS_value=$LDFLAGS
745 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
746 ac_env_CPPFLAGS_value=$CPPFLAGS
747 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
748 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
749
750 #
751 # Report the --help message.
752 #
753 if test "$ac_init_help" = "long"; then
754   # Omit some internal or obsolete options to make the list less imposing.
755   # This message is too long to be a string in the A/UX 3.1 sh.
756   cat <<_ACEOF
757 \`configure' configures this package to adapt to many kinds of systems.
758
759 Usage: $0 [OPTION]... [VAR=VALUE]...
760
761 To assign environment variables (e.g., CC, CFLAGS...), specify them as
762 VAR=VALUE.  See below for descriptions of some of the useful variables.
763
764 Defaults for the options are specified in brackets.
765
766 Configuration:
767   -h, --help              display this help and exit
768       --help=short        display options specific to this package
769       --help=recursive    display the short help of all the included packages
770   -V, --version           display version information and exit
771   -q, --quiet, --silent   do not print \`checking...' messages
772       --cache-file=FILE   cache test results in FILE [disabled]
773   -C, --config-cache      alias for \`--cache-file=config.cache'
774   -n, --no-create         do not create output files
775       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
776
777 _ACEOF
778
779   cat <<_ACEOF
780 Installation directories:
781   --prefix=PREFIX         install architecture-independent files in PREFIX
782                           [$ac_default_prefix]
783   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
784                           [PREFIX]
785
786 By default, \`make install' will install all the files in
787 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
788 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
789 for instance \`--prefix=\$HOME'.
790
791 For better control, use the options below.
792
793 Fine tuning of the installation directories:
794   --bindir=DIR           user executables [EPREFIX/bin]
795   --sbindir=DIR          system admin executables [EPREFIX/sbin]
796   --libexecdir=DIR       program executables [EPREFIX/libexec]
797   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
798   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
799   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
800   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
801   --libdir=DIR           object code libraries [EPREFIX/lib]
802   --includedir=DIR       C header files [PREFIX/include]
803   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
804   --infodir=DIR          info documentation [PREFIX/info]
805   --mandir=DIR           man documentation [PREFIX/man]
806 _ACEOF
807
808   cat <<\_ACEOF
809
810 Program names:
811   --program-prefix=PREFIX            prepend PREFIX to installed program names
812   --program-suffix=SUFFIX            append SUFFIX to installed program names
813   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
814
815 System types:
816   --build=BUILD     configure for building on BUILD [guessed]
817   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
818   --target=TARGET   configure for building compilers for TARGET [HOST]
819 _ACEOF
820 fi
821
822 if test -n "$ac_init_help"; then
823
824   cat <<\_ACEOF
825
826 Optional Features:
827   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
828   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
829   --enable-sim
830
831 Some influential environment variables:
832   CC          C compiler command
833   CFLAGS      C compiler flags
834   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
835               nonstandard directory <lib dir>
836   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
837               headers in a nonstandard directory <include dir>
838
839 Use these variables to override the choices made by `configure' or to help
840 it to find libraries and programs with nonstandard names/locations.
841
842 _ACEOF
843 fi
844
845 if test "$ac_init_help" = "recursive"; then
846   # If there are subdirs, report their specific --help.
847   ac_popdir=`pwd`
848   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
849     test -d $ac_dir || continue
850     ac_builddir=.
851
852 if test "$ac_dir" != .; then
853   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
854   # A "../" for each directory in $ac_dir_suffix.
855   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
856 else
857   ac_dir_suffix= ac_top_builddir=
858 fi
859
860 case $srcdir in
861   .)  # No --srcdir option.  We are building in place.
862     ac_srcdir=.
863     if test -z "$ac_top_builddir"; then
864        ac_top_srcdir=.
865     else
866        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
867     fi ;;
868   [\\/]* | ?:[\\/]* )  # Absolute path.
869     ac_srcdir=$srcdir$ac_dir_suffix;
870     ac_top_srcdir=$srcdir ;;
871   *) # Relative path.
872     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
873     ac_top_srcdir=$ac_top_builddir$srcdir ;;
874 esac
875
876 # Do not use `cd foo && pwd` to compute absolute paths, because
877 # the directories may not exist.
878 case `pwd` in
879 .) ac_abs_builddir="$ac_dir";;
880 *)
881   case "$ac_dir" in
882   .) ac_abs_builddir=`pwd`;;
883   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
884   *) ac_abs_builddir=`pwd`/"$ac_dir";;
885   esac;;
886 esac
887 case $ac_abs_builddir in
888 .) ac_abs_top_builddir=${ac_top_builddir}.;;
889 *)
890   case ${ac_top_builddir}. in
891   .) ac_abs_top_builddir=$ac_abs_builddir;;
892   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
893   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
894   esac;;
895 esac
896 case $ac_abs_builddir in
897 .) ac_abs_srcdir=$ac_srcdir;;
898 *)
899   case $ac_srcdir in
900   .) ac_abs_srcdir=$ac_abs_builddir;;
901   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
902   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
903   esac;;
904 esac
905 case $ac_abs_builddir in
906 .) ac_abs_top_srcdir=$ac_top_srcdir;;
907 *)
908   case $ac_top_srcdir in
909   .) ac_abs_top_srcdir=$ac_abs_builddir;;
910   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
911   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
912   esac;;
913 esac
914
915     cd $ac_dir
916     # Check for guested configure; otherwise get Cygnus style configure.
917     if test -f $ac_srcdir/configure.gnu; then
918       echo
919       $SHELL $ac_srcdir/configure.gnu  --help=recursive
920     elif test -f $ac_srcdir/configure; then
921       echo
922       $SHELL $ac_srcdir/configure  --help=recursive
923     elif test -f $ac_srcdir/configure.ac ||
924            test -f $ac_srcdir/configure.in; then
925       echo
926       $ac_configure --help
927     else
928       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
929     fi
930     cd $ac_popdir
931   done
932 fi
933
934 test -n "$ac_init_help" && exit 0
935 if $ac_init_version; then
936   cat <<\_ACEOF
937
938 Copyright (C) 2003 Free Software Foundation, Inc.
939 This configure script is free software; the Free Software Foundation
940 gives unlimited permission to copy, distribute and modify it.
941 _ACEOF
942   exit 0
943 fi
944 exec 5>config.log
945 cat >&5 <<_ACEOF
946 This file contains any messages produced by compilers while
947 running configure, to aid debugging if configure makes a mistake.
948
949 It was created by $as_me, which was
950 generated by GNU Autoconf 2.59.  Invocation command line was
951
952   $ $0 $@
953
954 _ACEOF
955 {
956 cat <<_ASUNAME
957 ## --------- ##
958 ## Platform. ##
959 ## --------- ##
960
961 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
962 uname -m = `(uname -m) 2>/dev/null || echo unknown`
963 uname -r = `(uname -r) 2>/dev/null || echo unknown`
964 uname -s = `(uname -s) 2>/dev/null || echo unknown`
965 uname -v = `(uname -v) 2>/dev/null || echo unknown`
966
967 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
968 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
969
970 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
971 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
972 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
973 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
974 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
975 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
976 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
977
978 _ASUNAME
979
980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
981 for as_dir in $PATH
982 do
983   IFS=$as_save_IFS
984   test -z "$as_dir" && as_dir=.
985   echo "PATH: $as_dir"
986 done
987
988 } >&5
989
990 cat >&5 <<_ACEOF
991
992
993 ## ----------- ##
994 ## Core tests. ##
995 ## ----------- ##
996
997 _ACEOF
998
999
1000 # Keep a trace of the command line.
1001 # Strip out --no-create and --no-recursion so they do not pile up.
1002 # Strip out --silent because we don't want to record it for future runs.
1003 # Also quote any args containing shell meta-characters.
1004 # Make two passes to allow for proper duplicate-argument suppression.
1005 ac_configure_args=
1006 ac_configure_args0=
1007 ac_configure_args1=
1008 ac_sep=
1009 ac_must_keep_next=false
1010 for ac_pass in 1 2
1011 do
1012   for ac_arg
1013   do
1014     case $ac_arg in
1015     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1016     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1017     | -silent | --silent | --silen | --sile | --sil)
1018       continue ;;
1019     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1020       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1021     esac
1022     case $ac_pass in
1023     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1024     2)
1025       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1026       if test $ac_must_keep_next = true; then
1027         ac_must_keep_next=false # Got value, back to normal.
1028       else
1029         case $ac_arg in
1030           *=* | --config-cache | -C | -disable-* | --disable-* \
1031           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1032           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1033           | -with-* | --with-* | -without-* | --without-* | --x)
1034             case "$ac_configure_args0 " in
1035               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1036             esac
1037             ;;
1038           -* ) ac_must_keep_next=true ;;
1039         esac
1040       fi
1041       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1042       # Get rid of the leading space.
1043       ac_sep=" "
1044       ;;
1045     esac
1046   done
1047 done
1048 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1049 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1050
1051 # When interrupted or exit'd, cleanup temporary files, and complete
1052 # config.log.  We remove comments because anyway the quotes in there
1053 # would cause problems or look ugly.
1054 # WARNING: Be sure not to use single quotes in there, as some shells,
1055 # such as our DU 5.0 friend, will then `close' the trap.
1056 trap 'exit_status=$?
1057   # Save into config.log some information that might help in debugging.
1058   {
1059     echo
1060
1061     cat <<\_ASBOX
1062 ## ---------------- ##
1063 ## Cache variables. ##
1064 ## ---------------- ##
1065 _ASBOX
1066     echo
1067     # The following way of writing the cache mishandles newlines in values,
1068 {
1069   (set) 2>&1 |
1070     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1071     *ac_space=\ *)
1072       sed -n \
1073         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1074           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1075       ;;
1076     *)
1077       sed -n \
1078         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1079       ;;
1080     esac;
1081 }
1082     echo
1083
1084     cat <<\_ASBOX
1085 ## ----------------- ##
1086 ## Output variables. ##
1087 ## ----------------- ##
1088 _ASBOX
1089     echo
1090     for ac_var in $ac_subst_vars
1091     do
1092       eval ac_val=$`echo $ac_var`
1093       echo "$ac_var='"'"'$ac_val'"'"'"
1094     done | sort
1095     echo
1096
1097     if test -n "$ac_subst_files"; then
1098       cat <<\_ASBOX
1099 ## ------------- ##
1100 ## Output files. ##
1101 ## ------------- ##
1102 _ASBOX
1103       echo
1104       for ac_var in $ac_subst_files
1105       do
1106         eval ac_val=$`echo $ac_var`
1107         echo "$ac_var='"'"'$ac_val'"'"'"
1108       done | sort
1109       echo
1110     fi
1111
1112     if test -s confdefs.h; then
1113       cat <<\_ASBOX
1114 ## ----------- ##
1115 ## confdefs.h. ##
1116 ## ----------- ##
1117 _ASBOX
1118       echo
1119       sed "/^$/d" confdefs.h | sort
1120       echo
1121     fi
1122     test "$ac_signal" != 0 &&
1123       echo "$as_me: caught signal $ac_signal"
1124     echo "$as_me: exit $exit_status"
1125   } >&5
1126   rm -f core *.core &&
1127   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1128     exit $exit_status
1129      ' 0
1130 for ac_signal in 1 2 13 15; do
1131   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1132 done
1133 ac_signal=0
1134
1135 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1136 rm -rf conftest* confdefs.h
1137 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1138 echo >confdefs.h
1139
1140 # Predefined preprocessor variables.
1141
1142 cat >>confdefs.h <<_ACEOF
1143 #define PACKAGE_NAME "$PACKAGE_NAME"
1144 _ACEOF
1145
1146
1147 cat >>confdefs.h <<_ACEOF
1148 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1149 _ACEOF
1150
1151
1152 cat >>confdefs.h <<_ACEOF
1153 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1154 _ACEOF
1155
1156
1157 cat >>confdefs.h <<_ACEOF
1158 #define PACKAGE_STRING "$PACKAGE_STRING"
1159 _ACEOF
1160
1161
1162 cat >>confdefs.h <<_ACEOF
1163 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1164 _ACEOF
1165
1166
1167 # Let the site file select an alternate cache file if it wants to.
1168 # Prefer explicitly selected file to automatically selected ones.
1169 if test -z "$CONFIG_SITE"; then
1170   if test "x$prefix" != xNONE; then
1171     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1172   else
1173     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1174   fi
1175 fi
1176 for ac_site_file in $CONFIG_SITE; do
1177   if test -r "$ac_site_file"; then
1178     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1179 echo "$as_me: loading site script $ac_site_file" >&6;}
1180     sed 's/^/| /' "$ac_site_file" >&5
1181     . "$ac_site_file"
1182   fi
1183 done
1184
1185 if test -r "$cache_file"; then
1186   # Some versions of bash will fail to source /dev/null (special
1187   # files actually), so we avoid doing that.
1188   if test -f "$cache_file"; then
1189     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1190 echo "$as_me: loading cache $cache_file" >&6;}
1191     case $cache_file in
1192       [\\/]* | ?:[\\/]* ) . $cache_file;;
1193       *)                      . ./$cache_file;;
1194     esac
1195   fi
1196 else
1197   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1198 echo "$as_me: creating cache $cache_file" >&6;}
1199   >$cache_file
1200 fi
1201
1202 # Check that the precious variables saved in the cache have kept the same
1203 # value.
1204 ac_cache_corrupted=false
1205 for ac_var in `(set) 2>&1 |
1206                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1207   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1208   eval ac_new_set=\$ac_env_${ac_var}_set
1209   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1210   eval ac_new_val="\$ac_env_${ac_var}_value"
1211   case $ac_old_set,$ac_new_set in
1212     set,)
1213       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1214 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1215       ac_cache_corrupted=: ;;
1216     ,set)
1217       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1218 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1219       ac_cache_corrupted=: ;;
1220     ,);;
1221     *)
1222       if test "x$ac_old_val" != "x$ac_new_val"; then
1223         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1224 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1225         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1226 echo "$as_me:   former value:  $ac_old_val" >&2;}
1227         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1228 echo "$as_me:   current value: $ac_new_val" >&2;}
1229         ac_cache_corrupted=:
1230       fi;;
1231   esac
1232   # Pass precious variables to config.status.
1233   if test "$ac_new_set" = set; then
1234     case $ac_new_val in
1235     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1236       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1237     *) ac_arg=$ac_var=$ac_new_val ;;
1238     esac
1239     case " $ac_configure_args " in
1240       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1241       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1242     esac
1243   fi
1244 done
1245 if $ac_cache_corrupted; then
1246   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1247 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1248   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1249 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1250    { (exit 1); exit 1; }; }
1251 fi
1252
1253 ac_ext=c
1254 ac_cpp='$CPP $CPPFLAGS'
1255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278 ac_ext=c
1279 ac_cpp='$CPP $CPPFLAGS'
1280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1283 if test -n "$ac_tool_prefix"; then
1284   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1285 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1286 echo "$as_me:$LINENO: checking for $ac_word" >&5
1287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1288 if test "${ac_cv_prog_CC+set}" = set; then
1289   echo $ECHO_N "(cached) $ECHO_C" >&6
1290 else
1291   if test -n "$CC"; then
1292   ac_cv_prog_CC="$CC" # Let the user override the test.
1293 else
1294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1295 for as_dir in $PATH
1296 do
1297   IFS=$as_save_IFS
1298   test -z "$as_dir" && as_dir=.
1299   for ac_exec_ext in '' $ac_executable_extensions; do
1300   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1301     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1302     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1303     break 2
1304   fi
1305 done
1306 done
1307
1308 fi
1309 fi
1310 CC=$ac_cv_prog_CC
1311 if test -n "$CC"; then
1312   echo "$as_me:$LINENO: result: $CC" >&5
1313 echo "${ECHO_T}$CC" >&6
1314 else
1315   echo "$as_me:$LINENO: result: no" >&5
1316 echo "${ECHO_T}no" >&6
1317 fi
1318
1319 fi
1320 if test -z "$ac_cv_prog_CC"; then
1321   ac_ct_CC=$CC
1322   # Extract the first word of "gcc", so it can be a program name with args.
1323 set dummy gcc; ac_word=$2
1324 echo "$as_me:$LINENO: checking for $ac_word" >&5
1325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1326 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1327   echo $ECHO_N "(cached) $ECHO_C" >&6
1328 else
1329   if test -n "$ac_ct_CC"; then
1330   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1331 else
1332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1333 for as_dir in $PATH
1334 do
1335   IFS=$as_save_IFS
1336   test -z "$as_dir" && as_dir=.
1337   for ac_exec_ext in '' $ac_executable_extensions; do
1338   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1339     ac_cv_prog_ac_ct_CC="gcc"
1340     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1341     break 2
1342   fi
1343 done
1344 done
1345
1346 fi
1347 fi
1348 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1349 if test -n "$ac_ct_CC"; then
1350   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1351 echo "${ECHO_T}$ac_ct_CC" >&6
1352 else
1353   echo "$as_me:$LINENO: result: no" >&5
1354 echo "${ECHO_T}no" >&6
1355 fi
1356
1357   CC=$ac_ct_CC
1358 else
1359   CC="$ac_cv_prog_CC"
1360 fi
1361
1362 if test -z "$CC"; then
1363   if test -n "$ac_tool_prefix"; then
1364   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1365 set dummy ${ac_tool_prefix}cc; ac_word=$2
1366 echo "$as_me:$LINENO: checking for $ac_word" >&5
1367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1368 if test "${ac_cv_prog_CC+set}" = set; then
1369   echo $ECHO_N "(cached) $ECHO_C" >&6
1370 else
1371   if test -n "$CC"; then
1372   ac_cv_prog_CC="$CC" # Let the user override the test.
1373 else
1374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1375 for as_dir in $PATH
1376 do
1377   IFS=$as_save_IFS
1378   test -z "$as_dir" && as_dir=.
1379   for ac_exec_ext in '' $ac_executable_extensions; do
1380   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1381     ac_cv_prog_CC="${ac_tool_prefix}cc"
1382     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1383     break 2
1384   fi
1385 done
1386 done
1387
1388 fi
1389 fi
1390 CC=$ac_cv_prog_CC
1391 if test -n "$CC"; then
1392   echo "$as_me:$LINENO: result: $CC" >&5
1393 echo "${ECHO_T}$CC" >&6
1394 else
1395   echo "$as_me:$LINENO: result: no" >&5
1396 echo "${ECHO_T}no" >&6
1397 fi
1398
1399 fi
1400 if test -z "$ac_cv_prog_CC"; then
1401   ac_ct_CC=$CC
1402   # Extract the first word of "cc", so it can be a program name with args.
1403 set dummy cc; ac_word=$2
1404 echo "$as_me:$LINENO: checking for $ac_word" >&5
1405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1406 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1407   echo $ECHO_N "(cached) $ECHO_C" >&6
1408 else
1409   if test -n "$ac_ct_CC"; then
1410   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1411 else
1412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1413 for as_dir in $PATH
1414 do
1415   IFS=$as_save_IFS
1416   test -z "$as_dir" && as_dir=.
1417   for ac_exec_ext in '' $ac_executable_extensions; do
1418   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1419     ac_cv_prog_ac_ct_CC="cc"
1420     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1421     break 2
1422   fi
1423 done
1424 done
1425
1426 fi
1427 fi
1428 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1429 if test -n "$ac_ct_CC"; then
1430   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1431 echo "${ECHO_T}$ac_ct_CC" >&6
1432 else
1433   echo "$as_me:$LINENO: result: no" >&5
1434 echo "${ECHO_T}no" >&6
1435 fi
1436
1437   CC=$ac_ct_CC
1438 else
1439   CC="$ac_cv_prog_CC"
1440 fi
1441
1442 fi
1443 if test -z "$CC"; then
1444   # Extract the first word of "cc", so it can be a program name with args.
1445 set dummy cc; ac_word=$2
1446 echo "$as_me:$LINENO: checking for $ac_word" >&5
1447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1448 if test "${ac_cv_prog_CC+set}" = set; then
1449   echo $ECHO_N "(cached) $ECHO_C" >&6
1450 else
1451   if test -n "$CC"; then
1452   ac_cv_prog_CC="$CC" # Let the user override the test.
1453 else
1454   ac_prog_rejected=no
1455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1456 for as_dir in $PATH
1457 do
1458   IFS=$as_save_IFS
1459   test -z "$as_dir" && as_dir=.
1460   for ac_exec_ext in '' $ac_executable_extensions; do
1461   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1462     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1463        ac_prog_rejected=yes
1464        continue
1465      fi
1466     ac_cv_prog_CC="cc"
1467     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1468     break 2
1469   fi
1470 done
1471 done
1472
1473 if test $ac_prog_rejected = yes; then
1474   # We found a bogon in the path, so make sure we never use it.
1475   set dummy $ac_cv_prog_CC
1476   shift
1477   if test $# != 0; then
1478     # We chose a different compiler from the bogus one.
1479     # However, it has the same basename, so the bogon will be chosen
1480     # first if we set CC to just the basename; use the full file name.
1481     shift
1482     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1483   fi
1484 fi
1485 fi
1486 fi
1487 CC=$ac_cv_prog_CC
1488 if test -n "$CC"; then
1489   echo "$as_me:$LINENO: result: $CC" >&5
1490 echo "${ECHO_T}$CC" >&6
1491 else
1492   echo "$as_me:$LINENO: result: no" >&5
1493 echo "${ECHO_T}no" >&6
1494 fi
1495
1496 fi
1497 if test -z "$CC"; then
1498   if test -n "$ac_tool_prefix"; then
1499   for ac_prog in cl
1500   do
1501     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1502 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1503 echo "$as_me:$LINENO: checking for $ac_word" >&5
1504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1505 if test "${ac_cv_prog_CC+set}" = set; then
1506   echo $ECHO_N "(cached) $ECHO_C" >&6
1507 else
1508   if test -n "$CC"; then
1509   ac_cv_prog_CC="$CC" # Let the user override the test.
1510 else
1511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1512 for as_dir in $PATH
1513 do
1514   IFS=$as_save_IFS
1515   test -z "$as_dir" && as_dir=.
1516   for ac_exec_ext in '' $ac_executable_extensions; do
1517   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1518     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1519     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1520     break 2
1521   fi
1522 done
1523 done
1524
1525 fi
1526 fi
1527 CC=$ac_cv_prog_CC
1528 if test -n "$CC"; then
1529   echo "$as_me:$LINENO: result: $CC" >&5
1530 echo "${ECHO_T}$CC" >&6
1531 else
1532   echo "$as_me:$LINENO: result: no" >&5
1533 echo "${ECHO_T}no" >&6
1534 fi
1535
1536     test -n "$CC" && break
1537   done
1538 fi
1539 if test -z "$CC"; then
1540   ac_ct_CC=$CC
1541   for ac_prog in cl
1542 do
1543   # Extract the first word of "$ac_prog", so it can be a program name with args.
1544 set dummy $ac_prog; ac_word=$2
1545 echo "$as_me:$LINENO: checking for $ac_word" >&5
1546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1547 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1548   echo $ECHO_N "(cached) $ECHO_C" >&6
1549 else
1550   if test -n "$ac_ct_CC"; then
1551   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1552 else
1553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1554 for as_dir in $PATH
1555 do
1556   IFS=$as_save_IFS
1557   test -z "$as_dir" && as_dir=.
1558   for ac_exec_ext in '' $ac_executable_extensions; do
1559   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1560     ac_cv_prog_ac_ct_CC="$ac_prog"
1561     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1562     break 2
1563   fi
1564 done
1565 done
1566
1567 fi
1568 fi
1569 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1570 if test -n "$ac_ct_CC"; then
1571   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1572 echo "${ECHO_T}$ac_ct_CC" >&6
1573 else
1574   echo "$as_me:$LINENO: result: no" >&5
1575 echo "${ECHO_T}no" >&6
1576 fi
1577
1578   test -n "$ac_ct_CC" && break
1579 done
1580
1581   CC=$ac_ct_CC
1582 fi
1583
1584 fi
1585
1586
1587 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1588 See \`config.log' for more details." >&5
1589 echo "$as_me: error: no acceptable C compiler found in \$PATH
1590 See \`config.log' for more details." >&2;}
1591    { (exit 1); exit 1; }; }
1592
1593 # Provide some information about the compiler.
1594 echo "$as_me:$LINENO:" \
1595      "checking for C compiler version" >&5
1596 ac_compiler=`set X $ac_compile; echo $2`
1597 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1598   (eval $ac_compiler --version </dev/null >&5) 2>&5
1599   ac_status=$?
1600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1601   (exit $ac_status); }
1602 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1603   (eval $ac_compiler -v </dev/null >&5) 2>&5
1604   ac_status=$?
1605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1606   (exit $ac_status); }
1607 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1608   (eval $ac_compiler -V </dev/null >&5) 2>&5
1609   ac_status=$?
1610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1611   (exit $ac_status); }
1612
1613 cat >conftest.$ac_ext <<_ACEOF
1614 /* confdefs.h.  */
1615 _ACEOF
1616 cat confdefs.h >>conftest.$ac_ext
1617 cat >>conftest.$ac_ext <<_ACEOF
1618 /* end confdefs.h.  */
1619
1620 int
1621 main ()
1622 {
1623
1624   ;
1625   return 0;
1626 }
1627 _ACEOF
1628 ac_clean_files_save=$ac_clean_files
1629 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1630 # Try to create an executable without -o first, disregard a.out.
1631 # It will help us diagnose broken compilers, and finding out an intuition
1632 # of exeext.
1633 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1634 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1635 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1636 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1637   (eval $ac_link_default) 2>&5
1638   ac_status=$?
1639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1640   (exit $ac_status); }; then
1641   # Find the output, starting from the most likely.  This scheme is
1642 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1643 # resort.
1644
1645 # Be careful to initialize this variable, since it used to be cached.
1646 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1647 ac_cv_exeext=
1648 # b.out is created by i960 compilers.
1649 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1650 do
1651   test -f "$ac_file" || continue
1652   case $ac_file in
1653     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1654         ;;
1655     conftest.$ac_ext )
1656         # This is the source file.
1657         ;;
1658     [ab].out )
1659         # We found the default executable, but exeext='' is most
1660         # certainly right.
1661         break;;
1662     *.* )
1663         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1664         # FIXME: I believe we export ac_cv_exeext for Libtool,
1665         # but it would be cool to find out if it's true.  Does anybody
1666         # maintain Libtool? --akim.
1667         export ac_cv_exeext
1668         break;;
1669     * )
1670         break;;
1671   esac
1672 done
1673 else
1674   echo "$as_me: failed program was:" >&5
1675 sed 's/^/| /' conftest.$ac_ext >&5
1676
1677 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1678 See \`config.log' for more details." >&5
1679 echo "$as_me: error: C compiler cannot create executables
1680 See \`config.log' for more details." >&2;}
1681    { (exit 77); exit 77; }; }
1682 fi
1683
1684 ac_exeext=$ac_cv_exeext
1685 echo "$as_me:$LINENO: result: $ac_file" >&5
1686 echo "${ECHO_T}$ac_file" >&6
1687
1688 # Check the compiler produces executables we can run.  If not, either
1689 # the compiler is broken, or we cross compile.
1690 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1691 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1692 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1693 # If not cross compiling, check that we can run a simple program.
1694 if test "$cross_compiling" != yes; then
1695   if { ac_try='./$ac_file'
1696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1697   (eval $ac_try) 2>&5
1698   ac_status=$?
1699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1700   (exit $ac_status); }; }; then
1701     cross_compiling=no
1702   else
1703     if test "$cross_compiling" = maybe; then
1704         cross_compiling=yes
1705     else
1706         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1707 If you meant to cross compile, use \`--host'.
1708 See \`config.log' for more details." >&5
1709 echo "$as_me: error: cannot run C compiled programs.
1710 If you meant to cross compile, use \`--host'.
1711 See \`config.log' for more details." >&2;}
1712    { (exit 1); exit 1; }; }
1713     fi
1714   fi
1715 fi
1716 echo "$as_me:$LINENO: result: yes" >&5
1717 echo "${ECHO_T}yes" >&6
1718
1719 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1720 ac_clean_files=$ac_clean_files_save
1721 # Check the compiler produces executables we can run.  If not, either
1722 # the compiler is broken, or we cross compile.
1723 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1724 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1725 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1726 echo "${ECHO_T}$cross_compiling" >&6
1727
1728 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1729 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1731   (eval $ac_link) 2>&5
1732   ac_status=$?
1733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1734   (exit $ac_status); }; then
1735   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1736 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1737 # work properly (i.e., refer to `conftest.exe'), while it won't with
1738 # `rm'.
1739 for ac_file in conftest.exe conftest conftest.*; do
1740   test -f "$ac_file" || continue
1741   case $ac_file in
1742     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1743     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1744           export ac_cv_exeext
1745           break;;
1746     * ) break;;
1747   esac
1748 done
1749 else
1750   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1751 See \`config.log' for more details." >&5
1752 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1753 See \`config.log' for more details." >&2;}
1754    { (exit 1); exit 1; }; }
1755 fi
1756
1757 rm -f conftest$ac_cv_exeext
1758 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1759 echo "${ECHO_T}$ac_cv_exeext" >&6
1760
1761 rm -f conftest.$ac_ext
1762 EXEEXT=$ac_cv_exeext
1763 ac_exeext=$EXEEXT
1764 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1765 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1766 if test "${ac_cv_objext+set}" = set; then
1767   echo $ECHO_N "(cached) $ECHO_C" >&6
1768 else
1769   cat >conftest.$ac_ext <<_ACEOF
1770 /* confdefs.h.  */
1771 _ACEOF
1772 cat confdefs.h >>conftest.$ac_ext
1773 cat >>conftest.$ac_ext <<_ACEOF
1774 /* end confdefs.h.  */
1775
1776 int
1777 main ()
1778 {
1779
1780   ;
1781   return 0;
1782 }
1783 _ACEOF
1784 rm -f conftest.o conftest.obj
1785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1786   (eval $ac_compile) 2>&5
1787   ac_status=$?
1788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1789   (exit $ac_status); }; then
1790   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1791   case $ac_file in
1792     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1793     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1794        break;;
1795   esac
1796 done
1797 else
1798   echo "$as_me: failed program was:" >&5
1799 sed 's/^/| /' conftest.$ac_ext >&5
1800
1801 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1802 See \`config.log' for more details." >&5
1803 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1804 See \`config.log' for more details." >&2;}
1805    { (exit 1); exit 1; }; }
1806 fi
1807
1808 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1809 fi
1810 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1811 echo "${ECHO_T}$ac_cv_objext" >&6
1812 OBJEXT=$ac_cv_objext
1813 ac_objext=$OBJEXT
1814 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1815 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1816 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1817   echo $ECHO_N "(cached) $ECHO_C" >&6
1818 else
1819   cat >conftest.$ac_ext <<_ACEOF
1820 /* confdefs.h.  */
1821 _ACEOF
1822 cat confdefs.h >>conftest.$ac_ext
1823 cat >>conftest.$ac_ext <<_ACEOF
1824 /* end confdefs.h.  */
1825
1826 int
1827 main ()
1828 {
1829 #ifndef __GNUC__
1830        choke me
1831 #endif
1832
1833   ;
1834   return 0;
1835 }
1836 _ACEOF
1837 rm -f conftest.$ac_objext
1838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1839   (eval $ac_compile) 2>conftest.er1
1840   ac_status=$?
1841   grep -v '^ *+' conftest.er1 >conftest.err
1842   rm -f conftest.er1
1843   cat conftest.err >&5
1844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1845   (exit $ac_status); } &&
1846          { ac_try='test -z "$ac_c_werror_flag"
1847                          || test ! -s conftest.err'
1848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1849   (eval $ac_try) 2>&5
1850   ac_status=$?
1851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1852   (exit $ac_status); }; } &&
1853          { ac_try='test -s conftest.$ac_objext'
1854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1855   (eval $ac_try) 2>&5
1856   ac_status=$?
1857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1858   (exit $ac_status); }; }; then
1859   ac_compiler_gnu=yes
1860 else
1861   echo "$as_me: failed program was:" >&5
1862 sed 's/^/| /' conftest.$ac_ext >&5
1863
1864 ac_compiler_gnu=no
1865 fi
1866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1867 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1868
1869 fi
1870 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1871 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1872 GCC=`test $ac_compiler_gnu = yes && echo yes`
1873 ac_test_CFLAGS=${CFLAGS+set}
1874 ac_save_CFLAGS=$CFLAGS
1875 CFLAGS="-g"
1876 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1877 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1878 if test "${ac_cv_prog_cc_g+set}" = set; then
1879   echo $ECHO_N "(cached) $ECHO_C" >&6
1880 else
1881   cat >conftest.$ac_ext <<_ACEOF
1882 /* confdefs.h.  */
1883 _ACEOF
1884 cat confdefs.h >>conftest.$ac_ext
1885 cat >>conftest.$ac_ext <<_ACEOF
1886 /* end confdefs.h.  */
1887
1888 int
1889 main ()
1890 {
1891
1892   ;
1893   return 0;
1894 }
1895 _ACEOF
1896 rm -f conftest.$ac_objext
1897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1898   (eval $ac_compile) 2>conftest.er1
1899   ac_status=$?
1900   grep -v '^ *+' conftest.er1 >conftest.err
1901   rm -f conftest.er1
1902   cat conftest.err >&5
1903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1904   (exit $ac_status); } &&
1905          { ac_try='test -z "$ac_c_werror_flag"
1906                          || test ! -s conftest.err'
1907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1908   (eval $ac_try) 2>&5
1909   ac_status=$?
1910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1911   (exit $ac_status); }; } &&
1912          { ac_try='test -s conftest.$ac_objext'
1913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1914   (eval $ac_try) 2>&5
1915   ac_status=$?
1916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1917   (exit $ac_status); }; }; then
1918   ac_cv_prog_cc_g=yes
1919 else
1920   echo "$as_me: failed program was:" >&5
1921 sed 's/^/| /' conftest.$ac_ext >&5
1922
1923 ac_cv_prog_cc_g=no
1924 fi
1925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1926 fi
1927 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1928 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1929 if test "$ac_test_CFLAGS" = set; then
1930   CFLAGS=$ac_save_CFLAGS
1931 elif test $ac_cv_prog_cc_g = yes; then
1932   if test "$GCC" = yes; then
1933     CFLAGS="-g -O2"
1934   else
1935     CFLAGS="-g"
1936   fi
1937 else
1938   if test "$GCC" = yes; then
1939     CFLAGS="-O2"
1940   else
1941     CFLAGS=
1942   fi
1943 fi
1944 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1945 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1946 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1947   echo $ECHO_N "(cached) $ECHO_C" >&6
1948 else
1949   ac_cv_prog_cc_stdc=no
1950 ac_save_CC=$CC
1951 cat >conftest.$ac_ext <<_ACEOF
1952 /* confdefs.h.  */
1953 _ACEOF
1954 cat confdefs.h >>conftest.$ac_ext
1955 cat >>conftest.$ac_ext <<_ACEOF
1956 /* end confdefs.h.  */
1957 #include <stdarg.h>
1958 #include <stdio.h>
1959 #include <sys/types.h>
1960 #include <sys/stat.h>
1961 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
1962 struct buf { int x; };
1963 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1964 static char *e (p, i)
1965      char **p;
1966      int i;
1967 {
1968   return p[i];
1969 }
1970 static char *f (char * (*g) (char **, int), char **p, ...)
1971 {
1972   char *s;
1973   va_list v;
1974   va_start (v,p);
1975   s = g (p, va_arg (v,int));
1976   va_end (v);
1977   return s;
1978 }
1979
1980 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
1981    function prototypes and stuff, but not '\xHH' hex character constants.
1982    These don't provoke an error unfortunately, instead are silently treated
1983    as 'x'.  The following induces an error, until -std1 is added to get
1984    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
1985    array size at least.  It's necessary to write '\x00'==0 to get something
1986    that's true only with -std1.  */
1987 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1988
1989 int test (int i, double x);
1990 struct s1 {int (*f) (int a);};
1991 struct s2 {int (*f) (double a);};
1992 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1993 int argc;
1994 char **argv;
1995 int
1996 main ()
1997 {
1998 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
1999   ;
2000   return 0;
2001 }
2002 _ACEOF
2003 # Don't try gcc -ansi; that turns off useful extensions and
2004 # breaks some systems' header files.
2005 # AIX                   -qlanglvl=ansi
2006 # Ultrix and OSF/1      -std1
2007 # HP-UX 10.20 and later -Ae
2008 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2009 # SVR4                  -Xc -D__EXTENSIONS__
2010 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2011 do
2012   CC="$ac_save_CC $ac_arg"
2013   rm -f conftest.$ac_objext
2014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2015   (eval $ac_compile) 2>conftest.er1
2016   ac_status=$?
2017   grep -v '^ *+' conftest.er1 >conftest.err
2018   rm -f conftest.er1
2019   cat conftest.err >&5
2020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2021   (exit $ac_status); } &&
2022          { ac_try='test -z "$ac_c_werror_flag"
2023                          || test ! -s conftest.err'
2024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2025   (eval $ac_try) 2>&5
2026   ac_status=$?
2027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2028   (exit $ac_status); }; } &&
2029          { ac_try='test -s conftest.$ac_objext'
2030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2031   (eval $ac_try) 2>&5
2032   ac_status=$?
2033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034   (exit $ac_status); }; }; then
2035   ac_cv_prog_cc_stdc=$ac_arg
2036 break
2037 else
2038   echo "$as_me: failed program was:" >&5
2039 sed 's/^/| /' conftest.$ac_ext >&5
2040
2041 fi
2042 rm -f conftest.err conftest.$ac_objext
2043 done
2044 rm -f conftest.$ac_ext conftest.$ac_objext
2045 CC=$ac_save_CC
2046
2047 fi
2048
2049 case "x$ac_cv_prog_cc_stdc" in
2050   x|xno)
2051     echo "$as_me:$LINENO: result: none needed" >&5
2052 echo "${ECHO_T}none needed" >&6 ;;
2053   *)
2054     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2055 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2056     CC="$CC $ac_cv_prog_cc_stdc" ;;
2057 esac
2058
2059 # Some people use a C++ compiler to compile C.  Since we use `exit',
2060 # in C++ we need to declare it.  In case someone uses the same compiler
2061 # for both compiling C and C++ we need to have the C++ compiler decide
2062 # the declaration of exit, since it's the most demanding environment.
2063 cat >conftest.$ac_ext <<_ACEOF
2064 #ifndef __cplusplus
2065   choke me
2066 #endif
2067 _ACEOF
2068 rm -f conftest.$ac_objext
2069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2070   (eval $ac_compile) 2>conftest.er1
2071   ac_status=$?
2072   grep -v '^ *+' conftest.er1 >conftest.err
2073   rm -f conftest.er1
2074   cat conftest.err >&5
2075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2076   (exit $ac_status); } &&
2077          { ac_try='test -z "$ac_c_werror_flag"
2078                          || test ! -s conftest.err'
2079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2080   (eval $ac_try) 2>&5
2081   ac_status=$?
2082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083   (exit $ac_status); }; } &&
2084          { ac_try='test -s conftest.$ac_objext'
2085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2086   (eval $ac_try) 2>&5
2087   ac_status=$?
2088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089   (exit $ac_status); }; }; then
2090   for ac_declaration in \
2091    '' \
2092    'extern "C" void std::exit (int) throw (); using std::exit;' \
2093    'extern "C" void std::exit (int); using std::exit;' \
2094    'extern "C" void exit (int) throw ();' \
2095    'extern "C" void exit (int);' \
2096    'void exit (int);'
2097 do
2098   cat >conftest.$ac_ext <<_ACEOF
2099 /* confdefs.h.  */
2100 _ACEOF
2101 cat confdefs.h >>conftest.$ac_ext
2102 cat >>conftest.$ac_ext <<_ACEOF
2103 /* end confdefs.h.  */
2104 $ac_declaration
2105 #include <stdlib.h>
2106 int
2107 main ()
2108 {
2109 exit (42);
2110   ;
2111   return 0;
2112 }
2113 _ACEOF
2114 rm -f conftest.$ac_objext
2115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2116   (eval $ac_compile) 2>conftest.er1
2117   ac_status=$?
2118   grep -v '^ *+' conftest.er1 >conftest.err
2119   rm -f conftest.er1
2120   cat conftest.err >&5
2121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122   (exit $ac_status); } &&
2123          { ac_try='test -z "$ac_c_werror_flag"
2124                          || test ! -s conftest.err'
2125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2126   (eval $ac_try) 2>&5
2127   ac_status=$?
2128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129   (exit $ac_status); }; } &&
2130          { ac_try='test -s conftest.$ac_objext'
2131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2132   (eval $ac_try) 2>&5
2133   ac_status=$?
2134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135   (exit $ac_status); }; }; then
2136   :
2137 else
2138   echo "$as_me: failed program was:" >&5
2139 sed 's/^/| /' conftest.$ac_ext >&5
2140
2141 continue
2142 fi
2143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2144   cat >conftest.$ac_ext <<_ACEOF
2145 /* confdefs.h.  */
2146 _ACEOF
2147 cat confdefs.h >>conftest.$ac_ext
2148 cat >>conftest.$ac_ext <<_ACEOF
2149 /* end confdefs.h.  */
2150 $ac_declaration
2151 int
2152 main ()
2153 {
2154 exit (42);
2155   ;
2156   return 0;
2157 }
2158 _ACEOF
2159 rm -f conftest.$ac_objext
2160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2161   (eval $ac_compile) 2>conftest.er1
2162   ac_status=$?
2163   grep -v '^ *+' conftest.er1 >conftest.err
2164   rm -f conftest.er1
2165   cat conftest.err >&5
2166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167   (exit $ac_status); } &&
2168          { ac_try='test -z "$ac_c_werror_flag"
2169                          || test ! -s conftest.err'
2170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2171   (eval $ac_try) 2>&5
2172   ac_status=$?
2173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174   (exit $ac_status); }; } &&
2175          { ac_try='test -s conftest.$ac_objext'
2176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2177   (eval $ac_try) 2>&5
2178   ac_status=$?
2179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180   (exit $ac_status); }; }; then
2181   break
2182 else
2183   echo "$as_me: failed program was:" >&5
2184 sed 's/^/| /' conftest.$ac_ext >&5
2185
2186 fi
2187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2188 done
2189 rm -f conftest*
2190 if test -n "$ac_declaration"; then
2191   echo '#ifdef __cplusplus' >>confdefs.h
2192   echo $ac_declaration      >>confdefs.h
2193   echo '#endif'             >>confdefs.h
2194 fi
2195
2196 else
2197   echo "$as_me: failed program was:" >&5
2198 sed 's/^/| /' conftest.$ac_ext >&5
2199
2200 fi
2201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2202 ac_ext=c
2203 ac_cpp='$CPP $CPPFLAGS'
2204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2207
2208 ac_aux_dir=
2209 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2210   if test -f $ac_dir/install-sh; then
2211     ac_aux_dir=$ac_dir
2212     ac_install_sh="$ac_aux_dir/install-sh -c"
2213     break
2214   elif test -f $ac_dir/install.sh; then
2215     ac_aux_dir=$ac_dir
2216     ac_install_sh="$ac_aux_dir/install.sh -c"
2217     break
2218   elif test -f $ac_dir/shtool; then
2219     ac_aux_dir=$ac_dir
2220     ac_install_sh="$ac_aux_dir/shtool install -c"
2221     break
2222   fi
2223 done
2224 if test -z "$ac_aux_dir"; then
2225   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2226 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2227    { (exit 1); exit 1; }; }
2228 fi
2229 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2230 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2231 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2232
2233 # Find a good install program.  We prefer a C program (faster),
2234 # so one script is as good as another.  But avoid the broken or
2235 # incompatible versions:
2236 # SysV /etc/install, /usr/sbin/install
2237 # SunOS /usr/etc/install
2238 # IRIX /sbin/install
2239 # AIX /bin/install
2240 # AmigaOS /C/install, which installs bootblocks on floppy discs
2241 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2242 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2243 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2244 # OS/2's system install, which has a completely different semantic
2245 # ./install, which can be erroneously created by make from ./install.sh.
2246 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2247 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2248 if test -z "$INSTALL"; then
2249 if test "${ac_cv_path_install+set}" = set; then
2250   echo $ECHO_N "(cached) $ECHO_C" >&6
2251 else
2252   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2253 for as_dir in $PATH
2254 do
2255   IFS=$as_save_IFS
2256   test -z "$as_dir" && as_dir=.
2257   # Account for people who put trailing slashes in PATH elements.
2258 case $as_dir/ in
2259   ./ | .// | /cC/* | \
2260   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2261   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2262   /usr/ucb/* ) ;;
2263   *)
2264     # OSF1 and SCO ODT 3.0 have their own names for install.
2265     # Don't use installbsd from OSF since it installs stuff as root
2266     # by default.
2267     for ac_prog in ginstall scoinst install; do
2268       for ac_exec_ext in '' $ac_executable_extensions; do
2269         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2270           if test $ac_prog = install &&
2271             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2272             # AIX install.  It has an incompatible calling convention.
2273             :
2274           elif test $ac_prog = install &&
2275             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2276             # program-specific install script used by HP pwplus--don't use.
2277             :
2278           else
2279             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2280             break 3
2281           fi
2282         fi
2283       done
2284     done
2285     ;;
2286 esac
2287 done
2288
2289
2290 fi
2291   if test "${ac_cv_path_install+set}" = set; then
2292     INSTALL=$ac_cv_path_install
2293   else
2294     # As a last resort, use the slow shell script.  We don't cache a
2295     # path for INSTALL within a source directory, because that will
2296     # break other packages using the cache if that directory is
2297     # removed, or if the path is relative.
2298     INSTALL=$ac_install_sh
2299   fi
2300 fi
2301 echo "$as_me:$LINENO: result: $INSTALL" >&5
2302 echo "${ECHO_T}$INSTALL" >&6
2303
2304 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2305 # It thinks the first close brace ends the variable substitution.
2306 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2307
2308 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2309
2310 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2311
2312 if test -n "$ac_tool_prefix"; then
2313   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2314 set dummy ${ac_tool_prefix}ar; ac_word=$2
2315 echo "$as_me:$LINENO: checking for $ac_word" >&5
2316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2317 if test "${ac_cv_prog_AR+set}" = set; then
2318   echo $ECHO_N "(cached) $ECHO_C" >&6
2319 else
2320   if test -n "$AR"; then
2321   ac_cv_prog_AR="$AR" # Let the user override the test.
2322 else
2323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2324 for as_dir in $PATH
2325 do
2326   IFS=$as_save_IFS
2327   test -z "$as_dir" && as_dir=.
2328   for ac_exec_ext in '' $ac_executable_extensions; do
2329   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2330     ac_cv_prog_AR="${ac_tool_prefix}ar"
2331     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2332     break 2
2333   fi
2334 done
2335 done
2336
2337 fi
2338 fi
2339 AR=$ac_cv_prog_AR
2340 if test -n "$AR"; then
2341   echo "$as_me:$LINENO: result: $AR" >&5
2342 echo "${ECHO_T}$AR" >&6
2343 else
2344   echo "$as_me:$LINENO: result: no" >&5
2345 echo "${ECHO_T}no" >&6
2346 fi
2347
2348 fi
2349 if test -z "$ac_cv_prog_AR"; then
2350   ac_ct_AR=$AR
2351   # Extract the first word of "ar", so it can be a program name with args.
2352 set dummy ar; ac_word=$2
2353 echo "$as_me:$LINENO: checking for $ac_word" >&5
2354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2355 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2356   echo $ECHO_N "(cached) $ECHO_C" >&6
2357 else
2358   if test -n "$ac_ct_AR"; then
2359   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2360 else
2361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2362 for as_dir in $PATH
2363 do
2364   IFS=$as_save_IFS
2365   test -z "$as_dir" && as_dir=.
2366   for ac_exec_ext in '' $ac_executable_extensions; do
2367   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2368     ac_cv_prog_ac_ct_AR="ar"
2369     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2370     break 2
2371   fi
2372 done
2373 done
2374
2375 fi
2376 fi
2377 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2378 if test -n "$ac_ct_AR"; then
2379   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2380 echo "${ECHO_T}$ac_ct_AR" >&6
2381 else
2382   echo "$as_me:$LINENO: result: no" >&5
2383 echo "${ECHO_T}no" >&6
2384 fi
2385
2386   AR=$ac_ct_AR
2387 else
2388   AR="$ac_cv_prog_AR"
2389 fi
2390
2391 if test -n "$ac_tool_prefix"; then
2392   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2393 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2394 echo "$as_me:$LINENO: checking for $ac_word" >&5
2395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2396 if test "${ac_cv_prog_RANLIB+set}" = set; then
2397   echo $ECHO_N "(cached) $ECHO_C" >&6
2398 else
2399   if test -n "$RANLIB"; then
2400   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2401 else
2402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403 for as_dir in $PATH
2404 do
2405   IFS=$as_save_IFS
2406   test -z "$as_dir" && as_dir=.
2407   for ac_exec_ext in '' $ac_executable_extensions; do
2408   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2409     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2410     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2411     break 2
2412   fi
2413 done
2414 done
2415
2416 fi
2417 fi
2418 RANLIB=$ac_cv_prog_RANLIB
2419 if test -n "$RANLIB"; then
2420   echo "$as_me:$LINENO: result: $RANLIB" >&5
2421 echo "${ECHO_T}$RANLIB" >&6
2422 else
2423   echo "$as_me:$LINENO: result: no" >&5
2424 echo "${ECHO_T}no" >&6
2425 fi
2426
2427 fi
2428 if test -z "$ac_cv_prog_RANLIB"; then
2429   ac_ct_RANLIB=$RANLIB
2430   # Extract the first word of "ranlib", so it can be a program name with args.
2431 set dummy ranlib; ac_word=$2
2432 echo "$as_me:$LINENO: checking for $ac_word" >&5
2433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2434 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2435   echo $ECHO_N "(cached) $ECHO_C" >&6
2436 else
2437   if test -n "$ac_ct_RANLIB"; then
2438   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2439 else
2440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2441 for as_dir in $PATH
2442 do
2443   IFS=$as_save_IFS
2444   test -z "$as_dir" && as_dir=.
2445   for ac_exec_ext in '' $ac_executable_extensions; do
2446   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2447     ac_cv_prog_ac_ct_RANLIB="ranlib"
2448     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2449     break 2
2450   fi
2451 done
2452 done
2453
2454   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2455 fi
2456 fi
2457 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2458 if test -n "$ac_ct_RANLIB"; then
2459   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2460 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2461 else
2462   echo "$as_me:$LINENO: result: no" >&5
2463 echo "${ECHO_T}no" >&6
2464 fi
2465
2466   RANLIB=$ac_ct_RANLIB
2467 else
2468   RANLIB="$ac_cv_prog_RANLIB"
2469 fi
2470
2471
2472 # Make sure we can run config.sub.
2473 $ac_config_sub sun4 >/dev/null 2>&1 ||
2474   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2475 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2476    { (exit 1); exit 1; }; }
2477
2478 echo "$as_me:$LINENO: checking build system type" >&5
2479 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2480 if test "${ac_cv_build+set}" = set; then
2481   echo $ECHO_N "(cached) $ECHO_C" >&6
2482 else
2483   ac_cv_build_alias=$build_alias
2484 test -z "$ac_cv_build_alias" &&
2485   ac_cv_build_alias=`$ac_config_guess`
2486 test -z "$ac_cv_build_alias" &&
2487   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2488 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2489    { (exit 1); exit 1; }; }
2490 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2491   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2492 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2493    { (exit 1); exit 1; }; }
2494
2495 fi
2496 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2497 echo "${ECHO_T}$ac_cv_build" >&6
2498 build=$ac_cv_build
2499 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2500 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2501 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2502
2503
2504 echo "$as_me:$LINENO: checking host system type" >&5
2505 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2506 if test "${ac_cv_host+set}" = set; then
2507   echo $ECHO_N "(cached) $ECHO_C" >&6
2508 else
2509   ac_cv_host_alias=$host_alias
2510 test -z "$ac_cv_host_alias" &&
2511   ac_cv_host_alias=$ac_cv_build_alias
2512 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2513   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2514 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2515    { (exit 1); exit 1; }; }
2516
2517 fi
2518 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2519 echo "${ECHO_T}$ac_cv_host" >&6
2520 host=$ac_cv_host
2521 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2522 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2523 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2524
2525
2526 echo "$as_me:$LINENO: checking target system type" >&5
2527 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2528 if test "${ac_cv_target+set}" = set; then
2529   echo $ECHO_N "(cached) $ECHO_C" >&6
2530 else
2531   ac_cv_target_alias=$target_alias
2532 test "x$ac_cv_target_alias" = "x" &&
2533   ac_cv_target_alias=$ac_cv_host_alias
2534 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2535   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2536 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2537    { (exit 1); exit 1; }; }
2538
2539 fi
2540 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2541 echo "${ECHO_T}$ac_cv_target" >&6
2542 target=$ac_cv_target
2543 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2544 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2545 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2546
2547
2548 # The aliases save the names the user supplied, while $host etc.
2549 # will get canonicalized.
2550 test -n "$target_alias" &&
2551   test "$program_prefix$program_suffix$program_transform_name" = \
2552     NONENONEs,x,x, &&
2553   program_prefix=${target_alias}-
2554 test "$program_prefix" != NONE &&
2555   program_transform_name="s,^,$program_prefix,;$program_transform_name"
2556 # Use a double $ so make ignores it.
2557 test "$program_suffix" != NONE &&
2558   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2559 # Double any \ or $.  echo might interpret backslashes.
2560 # By default was `s,x,x', remove it if useless.
2561 cat <<\_ACEOF >conftest.sed
2562 s/[\\$]/&&/g;s/;s,x,x,$//
2563 _ACEOF
2564 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2565 rm conftest.sed
2566
2567 ac_ext=c
2568 ac_cpp='$CPP $CPPFLAGS'
2569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2572 if test -n "$ac_tool_prefix"; then
2573   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2574 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2575 echo "$as_me:$LINENO: checking for $ac_word" >&5
2576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2577 if test "${ac_cv_prog_CC+set}" = set; then
2578   echo $ECHO_N "(cached) $ECHO_C" >&6
2579 else
2580   if test -n "$CC"; then
2581   ac_cv_prog_CC="$CC" # Let the user override the test.
2582 else
2583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584 for as_dir in $PATH
2585 do
2586   IFS=$as_save_IFS
2587   test -z "$as_dir" && as_dir=.
2588   for ac_exec_ext in '' $ac_executable_extensions; do
2589   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2590     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2591     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2592     break 2
2593   fi
2594 done
2595 done
2596
2597 fi
2598 fi
2599 CC=$ac_cv_prog_CC
2600 if test -n "$CC"; then
2601   echo "$as_me:$LINENO: result: $CC" >&5
2602 echo "${ECHO_T}$CC" >&6
2603 else
2604   echo "$as_me:$LINENO: result: no" >&5
2605 echo "${ECHO_T}no" >&6
2606 fi
2607
2608 fi
2609 if test -z "$ac_cv_prog_CC"; then
2610   ac_ct_CC=$CC
2611   # Extract the first word of "gcc", so it can be a program name with args.
2612 set dummy gcc; ac_word=$2
2613 echo "$as_me:$LINENO: checking for $ac_word" >&5
2614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2615 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2616   echo $ECHO_N "(cached) $ECHO_C" >&6
2617 else
2618   if test -n "$ac_ct_CC"; then
2619   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2620 else
2621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622 for as_dir in $PATH
2623 do
2624   IFS=$as_save_IFS
2625   test -z "$as_dir" && as_dir=.
2626   for ac_exec_ext in '' $ac_executable_extensions; do
2627   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2628     ac_cv_prog_ac_ct_CC="gcc"
2629     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2630     break 2
2631   fi
2632 done
2633 done
2634
2635 fi
2636 fi
2637 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2638 if test -n "$ac_ct_CC"; then
2639   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2640 echo "${ECHO_T}$ac_ct_CC" >&6
2641 else
2642   echo "$as_me:$LINENO: result: no" >&5
2643 echo "${ECHO_T}no" >&6
2644 fi
2645
2646   CC=$ac_ct_CC
2647 else
2648   CC="$ac_cv_prog_CC"
2649 fi
2650
2651 if test -z "$CC"; then
2652   if test -n "$ac_tool_prefix"; then
2653   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2654 set dummy ${ac_tool_prefix}cc; ac_word=$2
2655 echo "$as_me:$LINENO: checking for $ac_word" >&5
2656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2657 if test "${ac_cv_prog_CC+set}" = set; then
2658   echo $ECHO_N "(cached) $ECHO_C" >&6
2659 else
2660   if test -n "$CC"; then
2661   ac_cv_prog_CC="$CC" # Let the user override the test.
2662 else
2663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2664 for as_dir in $PATH
2665 do
2666   IFS=$as_save_IFS
2667   test -z "$as_dir" && as_dir=.
2668   for ac_exec_ext in '' $ac_executable_extensions; do
2669   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2670     ac_cv_prog_CC="${ac_tool_prefix}cc"
2671     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2672     break 2
2673   fi
2674 done
2675 done
2676
2677 fi
2678 fi
2679 CC=$ac_cv_prog_CC
2680 if test -n "$CC"; then
2681   echo "$as_me:$LINENO: result: $CC" >&5
2682 echo "${ECHO_T}$CC" >&6
2683 else
2684   echo "$as_me:$LINENO: result: no" >&5
2685 echo "${ECHO_T}no" >&6
2686 fi
2687
2688 fi
2689 if test -z "$ac_cv_prog_CC"; then
2690   ac_ct_CC=$CC
2691   # Extract the first word of "cc", so it can be a program name with args.
2692 set dummy cc; ac_word=$2
2693 echo "$as_me:$LINENO: checking for $ac_word" >&5
2694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2695 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2696   echo $ECHO_N "(cached) $ECHO_C" >&6
2697 else
2698   if test -n "$ac_ct_CC"; then
2699   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2700 else
2701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702 for as_dir in $PATH
2703 do
2704   IFS=$as_save_IFS
2705   test -z "$as_dir" && as_dir=.
2706   for ac_exec_ext in '' $ac_executable_extensions; do
2707   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2708     ac_cv_prog_ac_ct_CC="cc"
2709     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2710     break 2
2711   fi
2712 done
2713 done
2714
2715 fi
2716 fi
2717 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2718 if test -n "$ac_ct_CC"; then
2719   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2720 echo "${ECHO_T}$ac_ct_CC" >&6
2721 else
2722   echo "$as_me:$LINENO: result: no" >&5
2723 echo "${ECHO_T}no" >&6
2724 fi
2725
2726   CC=$ac_ct_CC
2727 else
2728   CC="$ac_cv_prog_CC"
2729 fi
2730
2731 fi
2732 if test -z "$CC"; then
2733   # Extract the first word of "cc", so it can be a program name with args.
2734 set dummy cc; ac_word=$2
2735 echo "$as_me:$LINENO: checking for $ac_word" >&5
2736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2737 if test "${ac_cv_prog_CC+set}" = set; then
2738   echo $ECHO_N "(cached) $ECHO_C" >&6
2739 else
2740   if test -n "$CC"; then
2741   ac_cv_prog_CC="$CC" # Let the user override the test.
2742 else
2743   ac_prog_rejected=no
2744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745 for as_dir in $PATH
2746 do
2747   IFS=$as_save_IFS
2748   test -z "$as_dir" && as_dir=.
2749   for ac_exec_ext in '' $ac_executable_extensions; do
2750   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2751     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2752        ac_prog_rejected=yes
2753        continue
2754      fi
2755     ac_cv_prog_CC="cc"
2756     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2757     break 2
2758   fi
2759 done
2760 done
2761
2762 if test $ac_prog_rejected = yes; then
2763   # We found a bogon in the path, so make sure we never use it.
2764   set dummy $ac_cv_prog_CC
2765   shift
2766   if test $# != 0; then
2767     # We chose a different compiler from the bogus one.
2768     # However, it has the same basename, so the bogon will be chosen
2769     # first if we set CC to just the basename; use the full file name.
2770     shift
2771     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2772   fi
2773 fi
2774 fi
2775 fi
2776 CC=$ac_cv_prog_CC
2777 if test -n "$CC"; then
2778   echo "$as_me:$LINENO: result: $CC" >&5
2779 echo "${ECHO_T}$CC" >&6
2780 else
2781   echo "$as_me:$LINENO: result: no" >&5
2782 echo "${ECHO_T}no" >&6
2783 fi
2784
2785 fi
2786 if test -z "$CC"; then
2787   if test -n "$ac_tool_prefix"; then
2788   for ac_prog in cl
2789   do
2790     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2791 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2792 echo "$as_me:$LINENO: checking for $ac_word" >&5
2793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2794 if test "${ac_cv_prog_CC+set}" = set; then
2795   echo $ECHO_N "(cached) $ECHO_C" >&6
2796 else
2797   if test -n "$CC"; then
2798   ac_cv_prog_CC="$CC" # Let the user override the test.
2799 else
2800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801 for as_dir in $PATH
2802 do
2803   IFS=$as_save_IFS
2804   test -z "$as_dir" && as_dir=.
2805   for ac_exec_ext in '' $ac_executable_extensions; do
2806   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2807     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2808     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2809     break 2
2810   fi
2811 done
2812 done
2813
2814 fi
2815 fi
2816 CC=$ac_cv_prog_CC
2817 if test -n "$CC"; then
2818   echo "$as_me:$LINENO: result: $CC" >&5
2819 echo "${ECHO_T}$CC" >&6
2820 else
2821   echo "$as_me:$LINENO: result: no" >&5
2822 echo "${ECHO_T}no" >&6
2823 fi
2824
2825     test -n "$CC" && break
2826   done
2827 fi
2828 if test -z "$CC"; then
2829   ac_ct_CC=$CC
2830   for ac_prog in cl
2831 do
2832   # Extract the first word of "$ac_prog", so it can be a program name with args.
2833 set dummy $ac_prog; ac_word=$2
2834 echo "$as_me:$LINENO: checking for $ac_word" >&5
2835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2836 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2837   echo $ECHO_N "(cached) $ECHO_C" >&6
2838 else
2839   if test -n "$ac_ct_CC"; then
2840   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2841 else
2842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2843 for as_dir in $PATH
2844 do
2845   IFS=$as_save_IFS
2846   test -z "$as_dir" && as_dir=.
2847   for ac_exec_ext in '' $ac_executable_extensions; do
2848   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2849     ac_cv_prog_ac_ct_CC="$ac_prog"
2850     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2851     break 2
2852   fi
2853 done
2854 done
2855
2856 fi
2857 fi
2858 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2859 if test -n "$ac_ct_CC"; then
2860   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2861 echo "${ECHO_T}$ac_ct_CC" >&6
2862 else
2863   echo "$as_me:$LINENO: result: no" >&5
2864 echo "${ECHO_T}no" >&6
2865 fi
2866
2867   test -n "$ac_ct_CC" && break
2868 done
2869
2870   CC=$ac_ct_CC
2871 fi
2872
2873 fi
2874
2875
2876 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2877 See \`config.log' for more details." >&5
2878 echo "$as_me: error: no acceptable C compiler found in \$PATH
2879 See \`config.log' for more details." >&2;}
2880    { (exit 1); exit 1; }; }
2881
2882 # Provide some information about the compiler.
2883 echo "$as_me:$LINENO:" \
2884      "checking for C compiler version" >&5
2885 ac_compiler=`set X $ac_compile; echo $2`
2886 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2887   (eval $ac_compiler --version </dev/null >&5) 2>&5
2888   ac_status=$?
2889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890   (exit $ac_status); }
2891 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2892   (eval $ac_compiler -v </dev/null >&5) 2>&5
2893   ac_status=$?
2894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895   (exit $ac_status); }
2896 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2897   (eval $ac_compiler -V </dev/null >&5) 2>&5
2898   ac_status=$?
2899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900   (exit $ac_status); }
2901
2902 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2903 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2904 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2905   echo $ECHO_N "(cached) $ECHO_C" >&6
2906 else
2907   cat >conftest.$ac_ext <<_ACEOF
2908 /* confdefs.h.  */
2909 _ACEOF
2910 cat confdefs.h >>conftest.$ac_ext
2911 cat >>conftest.$ac_ext <<_ACEOF
2912 /* end confdefs.h.  */
2913
2914 int
2915 main ()
2916 {
2917 #ifndef __GNUC__
2918        choke me
2919 #endif
2920
2921   ;
2922   return 0;
2923 }
2924 _ACEOF
2925 rm -f conftest.$ac_objext
2926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2927   (eval $ac_compile) 2>conftest.er1
2928   ac_status=$?
2929   grep -v '^ *+' conftest.er1 >conftest.err
2930   rm -f conftest.er1
2931   cat conftest.err >&5
2932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933   (exit $ac_status); } &&
2934          { ac_try='test -z "$ac_c_werror_flag"
2935                          || test ! -s conftest.err'
2936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2937   (eval $ac_try) 2>&5
2938   ac_status=$?
2939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940   (exit $ac_status); }; } &&
2941          { ac_try='test -s conftest.$ac_objext'
2942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2943   (eval $ac_try) 2>&5
2944   ac_status=$?
2945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946   (exit $ac_status); }; }; then
2947   ac_compiler_gnu=yes
2948 else
2949   echo "$as_me: failed program was:" >&5
2950 sed 's/^/| /' conftest.$ac_ext >&5
2951
2952 ac_compiler_gnu=no
2953 fi
2954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2955 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2956
2957 fi
2958 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2959 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2960 GCC=`test $ac_compiler_gnu = yes && echo yes`
2961 ac_test_CFLAGS=${CFLAGS+set}
2962 ac_save_CFLAGS=$CFLAGS
2963 CFLAGS="-g"
2964 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2965 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2966 if test "${ac_cv_prog_cc_g+set}" = set; then
2967   echo $ECHO_N "(cached) $ECHO_C" >&6
2968 else
2969   cat >conftest.$ac_ext <<_ACEOF
2970 /* confdefs.h.  */
2971 _ACEOF
2972 cat confdefs.h >>conftest.$ac_ext
2973 cat >>conftest.$ac_ext <<_ACEOF
2974 /* end confdefs.h.  */
2975
2976 int
2977 main ()
2978 {
2979
2980   ;
2981   return 0;
2982 }
2983 _ACEOF
2984 rm -f conftest.$ac_objext
2985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2986   (eval $ac_compile) 2>conftest.er1
2987   ac_status=$?
2988   grep -v '^ *+' conftest.er1 >conftest.err
2989   rm -f conftest.er1
2990   cat conftest.err >&5
2991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992   (exit $ac_status); } &&
2993          { ac_try='test -z "$ac_c_werror_flag"
2994                          || test ! -s conftest.err'
2995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2996   (eval $ac_try) 2>&5
2997   ac_status=$?
2998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999   (exit $ac_status); }; } &&
3000          { ac_try='test -s conftest.$ac_objext'
3001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3002   (eval $ac_try) 2>&5
3003   ac_status=$?
3004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005   (exit $ac_status); }; }; then
3006   ac_cv_prog_cc_g=yes
3007 else
3008   echo "$as_me: failed program was:" >&5
3009 sed 's/^/| /' conftest.$ac_ext >&5
3010
3011 ac_cv_prog_cc_g=no
3012 fi
3013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3014 fi
3015 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3016 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3017 if test "$ac_test_CFLAGS" = set; then
3018   CFLAGS=$ac_save_CFLAGS
3019 elif test $ac_cv_prog_cc_g = yes; then
3020   if test "$GCC" = yes; then
3021     CFLAGS="-g -O2"
3022   else
3023     CFLAGS="-g"
3024   fi
3025 else
3026   if test "$GCC" = yes; then
3027     CFLAGS="-O2"
3028   else
3029     CFLAGS=
3030   fi
3031 fi
3032 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3033 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3034 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3035   echo $ECHO_N "(cached) $ECHO_C" >&6
3036 else
3037   ac_cv_prog_cc_stdc=no
3038 ac_save_CC=$CC
3039 cat >conftest.$ac_ext <<_ACEOF
3040 /* confdefs.h.  */
3041 _ACEOF
3042 cat confdefs.h >>conftest.$ac_ext
3043 cat >>conftest.$ac_ext <<_ACEOF
3044 /* end confdefs.h.  */
3045 #include <stdarg.h>
3046 #include <stdio.h>
3047 #include <sys/types.h>
3048 #include <sys/stat.h>
3049 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3050 struct buf { int x; };
3051 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3052 static char *e (p, i)
3053      char **p;
3054      int i;
3055 {
3056   return p[i];
3057 }
3058 static char *f (char * (*g) (char **, int), char **p, ...)
3059 {
3060   char *s;
3061   va_list v;
3062   va_start (v,p);
3063   s = g (p, va_arg (v,int));
3064   va_end (v);
3065   return s;
3066 }
3067
3068 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3069    function prototypes and stuff, but not '\xHH' hex character constants.
3070    These don't provoke an error unfortunately, instead are silently treated
3071    as 'x'.  The following induces an error, until -std1 is added to get
3072    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3073    array size at least.  It's necessary to write '\x00'==0 to get something
3074    that's true only with -std1.  */
3075 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3076
3077 int test (int i, double x);
3078 struct s1 {int (*f) (int a);};
3079 struct s2 {int (*f) (double a);};
3080 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3081 int argc;
3082 char **argv;
3083 int
3084 main ()
3085 {
3086 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3087   ;
3088   return 0;
3089 }
3090 _ACEOF
3091 # Don't try gcc -ansi; that turns off useful extensions and
3092 # breaks some systems' header files.
3093 # AIX                   -qlanglvl=ansi
3094 # Ultrix and OSF/1      -std1
3095 # HP-UX 10.20 and later -Ae
3096 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3097 # SVR4                  -Xc -D__EXTENSIONS__
3098 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3099 do
3100   CC="$ac_save_CC $ac_arg"
3101   rm -f conftest.$ac_objext
3102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3103   (eval $ac_compile) 2>conftest.er1
3104   ac_status=$?
3105   grep -v '^ *+' conftest.er1 >conftest.err
3106   rm -f conftest.er1
3107   cat conftest.err >&5
3108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109   (exit $ac_status); } &&
3110          { ac_try='test -z "$ac_c_werror_flag"
3111                          || test ! -s conftest.err'
3112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3113   (eval $ac_try) 2>&5
3114   ac_status=$?
3115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116   (exit $ac_status); }; } &&
3117          { ac_try='test -s conftest.$ac_objext'
3118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3119   (eval $ac_try) 2>&5
3120   ac_status=$?
3121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122   (exit $ac_status); }; }; then
3123   ac_cv_prog_cc_stdc=$ac_arg
3124 break
3125 else
3126   echo "$as_me: failed program was:" >&5
3127 sed 's/^/| /' conftest.$ac_ext >&5
3128
3129 fi
3130 rm -f conftest.err conftest.$ac_objext
3131 done
3132 rm -f conftest.$ac_ext conftest.$ac_objext
3133 CC=$ac_save_CC
3134
3135 fi
3136
3137 case "x$ac_cv_prog_cc_stdc" in
3138   x|xno)
3139     echo "$as_me:$LINENO: result: none needed" >&5
3140 echo "${ECHO_T}none needed" >&6 ;;
3141   *)
3142     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3143 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3144     CC="$CC $ac_cv_prog_cc_stdc" ;;
3145 esac
3146
3147 # Some people use a C++ compiler to compile C.  Since we use `exit',
3148 # in C++ we need to declare it.  In case someone uses the same compiler
3149 # for both compiling C and C++ we need to have the C++ compiler decide
3150 # the declaration of exit, since it's the most demanding environment.
3151 cat >conftest.$ac_ext <<_ACEOF
3152 #ifndef __cplusplus
3153   choke me
3154 #endif
3155 _ACEOF
3156 rm -f conftest.$ac_objext
3157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3158   (eval $ac_compile) 2>conftest.er1
3159   ac_status=$?
3160   grep -v '^ *+' conftest.er1 >conftest.err
3161   rm -f conftest.er1
3162   cat conftest.err >&5
3163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164   (exit $ac_status); } &&
3165          { ac_try='test -z "$ac_c_werror_flag"
3166                          || test ! -s conftest.err'
3167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3168   (eval $ac_try) 2>&5
3169   ac_status=$?
3170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171   (exit $ac_status); }; } &&
3172          { ac_try='test -s conftest.$ac_objext'
3173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3174   (eval $ac_try) 2>&5
3175   ac_status=$?
3176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177   (exit $ac_status); }; }; then
3178   for ac_declaration in \
3179    '' \
3180    'extern "C" void std::exit (int) throw (); using std::exit;' \
3181    'extern "C" void std::exit (int); using std::exit;' \
3182    'extern "C" void exit (int) throw ();' \
3183    'extern "C" void exit (int);' \
3184    'void exit (int);'
3185 do
3186   cat >conftest.$ac_ext <<_ACEOF
3187 /* confdefs.h.  */
3188 _ACEOF
3189 cat confdefs.h >>conftest.$ac_ext
3190 cat >>conftest.$ac_ext <<_ACEOF
3191 /* end confdefs.h.  */
3192 $ac_declaration
3193 #include <stdlib.h>
3194 int
3195 main ()
3196 {
3197 exit (42);
3198   ;
3199   return 0;
3200 }
3201 _ACEOF
3202 rm -f conftest.$ac_objext
3203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3204   (eval $ac_compile) 2>conftest.er1
3205   ac_status=$?
3206   grep -v '^ *+' conftest.er1 >conftest.err
3207   rm -f conftest.er1
3208   cat conftest.err >&5
3209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210   (exit $ac_status); } &&
3211          { ac_try='test -z "$ac_c_werror_flag"
3212                          || test ! -s conftest.err'
3213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3214   (eval $ac_try) 2>&5
3215   ac_status=$?
3216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217   (exit $ac_status); }; } &&
3218          { ac_try='test -s conftest.$ac_objext'
3219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3220   (eval $ac_try) 2>&5
3221   ac_status=$?
3222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223   (exit $ac_status); }; }; then
3224   :
3225 else
3226   echo "$as_me: failed program was:" >&5
3227 sed 's/^/| /' conftest.$ac_ext >&5
3228
3229 continue
3230 fi
3231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3232   cat >conftest.$ac_ext <<_ACEOF
3233 /* confdefs.h.  */
3234 _ACEOF
3235 cat confdefs.h >>conftest.$ac_ext
3236 cat >>conftest.$ac_ext <<_ACEOF
3237 /* end confdefs.h.  */
3238 $ac_declaration
3239 int
3240 main ()
3241 {
3242 exit (42);
3243   ;
3244   return 0;
3245 }
3246 _ACEOF
3247 rm -f conftest.$ac_objext
3248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3249   (eval $ac_compile) 2>conftest.er1
3250   ac_status=$?
3251   grep -v '^ *+' conftest.er1 >conftest.err
3252   rm -f conftest.er1
3253   cat conftest.err >&5
3254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255   (exit $ac_status); } &&
3256          { ac_try='test -z "$ac_c_werror_flag"
3257                          || test ! -s conftest.err'
3258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3259   (eval $ac_try) 2>&5
3260   ac_status=$?
3261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262   (exit $ac_status); }; } &&
3263          { ac_try='test -s conftest.$ac_objext'
3264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3265   (eval $ac_try) 2>&5
3266   ac_status=$?
3267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268   (exit $ac_status); }; }; then
3269   break
3270 else
3271   echo "$as_me: failed program was:" >&5
3272 sed 's/^/| /' conftest.$ac_ext >&5
3273
3274 fi
3275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3276 done
3277 rm -f conftest*
3278 if test -n "$ac_declaration"; then
3279   echo '#ifdef __cplusplus' >>confdefs.h
3280   echo $ac_declaration      >>confdefs.h
3281   echo '#endif'             >>confdefs.h
3282 fi
3283
3284 else
3285   echo "$as_me: failed program was:" >&5
3286 sed 's/^/| /' conftest.$ac_ext >&5
3287
3288 fi
3289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3290 ac_ext=c
3291 ac_cpp='$CPP $CPPFLAGS'
3292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3295
3296
3297
3298 AR=${AR-ar}
3299
3300 if test -n "$ac_tool_prefix"; then
3301   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3302 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3303 echo "$as_me:$LINENO: checking for $ac_word" >&5
3304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3305 if test "${ac_cv_prog_RANLIB+set}" = set; then
3306   echo $ECHO_N "(cached) $ECHO_C" >&6
3307 else
3308   if test -n "$RANLIB"; then
3309   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3310 else
3311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3312 for as_dir in $PATH
3313 do
3314   IFS=$as_save_IFS
3315   test -z "$as_dir" && as_dir=.
3316   for ac_exec_ext in '' $ac_executable_extensions; do
3317   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3318     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3319     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3320     break 2
3321   fi
3322 done
3323 done
3324
3325 fi
3326 fi
3327 RANLIB=$ac_cv_prog_RANLIB
3328 if test -n "$RANLIB"; then
3329   echo "$as_me:$LINENO: result: $RANLIB" >&5
3330 echo "${ECHO_T}$RANLIB" >&6
3331 else
3332   echo "$as_me:$LINENO: result: no" >&5
3333 echo "${ECHO_T}no" >&6
3334 fi
3335
3336 fi
3337 if test -z "$ac_cv_prog_RANLIB"; then
3338   ac_ct_RANLIB=$RANLIB
3339   # Extract the first word of "ranlib", so it can be a program name with args.
3340 set dummy ranlib; ac_word=$2
3341 echo "$as_me:$LINENO: checking for $ac_word" >&5
3342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3343 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3344   echo $ECHO_N "(cached) $ECHO_C" >&6
3345 else
3346   if test -n "$ac_ct_RANLIB"; then
3347   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3348 else
3349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350 for as_dir in $PATH
3351 do
3352   IFS=$as_save_IFS
3353   test -z "$as_dir" && as_dir=.
3354   for ac_exec_ext in '' $ac_executable_extensions; do
3355   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3356     ac_cv_prog_ac_ct_RANLIB="ranlib"
3357     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3358     break 2
3359   fi
3360 done
3361 done
3362
3363   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3364 fi
3365 fi
3366 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3367 if test -n "$ac_ct_RANLIB"; then
3368   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3369 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3370 else
3371   echo "$as_me:$LINENO: result: no" >&5
3372 echo "${ECHO_T}no" >&6
3373 fi
3374
3375   RANLIB=$ac_ct_RANLIB
3376 else
3377   RANLIB="$ac_cv_prog_RANLIB"
3378 fi
3379
3380
3381 # Put a plausible default for CC_FOR_BUILD in Makefile.
3382 if test "x$cross_compiling" = "xno"; then
3383   CC_FOR_BUILD='$(CC)'
3384 else
3385   CC_FOR_BUILD=gcc
3386 fi
3387
3388
3389 # If a cpu ever has more than one simulator to choose from, use
3390 # --enable-sim=... to choose.
3391 # Check whether --enable-sim or --disable-sim was given.
3392 if test "${enable_sim+set}" = set; then
3393   enableval="$enable_sim"
3394   case "${enableval}" in
3395 yes | no) ;;
3396 *)      { { echo "$as_me:$LINENO: error: bad value ${enableval} given for --enable-sim option" >&5
3397 echo "$as_me: error: bad value ${enableval} given for --enable-sim option" >&2;}
3398    { (exit 1); exit 1; }; } ;;
3399 esac
3400 fi;
3401
3402 # WHEN ADDING ENTRIES TO THIS MATRIX:
3403
3404 # Make sure that the left side always has two dashes.  Otherwise you
3405 # can get spurious matches.  Even for unambiguous cases, do this as a
3406 # convention, else the table becomes a real mess to understand and
3407 # maintain.
3408
3409 if test "${enable_sim}" != no; then
3410    testsuite=no
3411    common=no
3412    igen=no
3413    case "${target}" in
3414        arm*-*-* | thumb*-*-* | strongarm*-*-* | xscale-*-*)
3415
3416
3417 subdirs="$subdirs arm"
3418
3419            testsuite=yes
3420            common=yes
3421            ;;
3422        cris-*-* | crisv32-*-*)
3423
3424
3425 subdirs="$subdirs cris"
3426
3427            testsuite=yes
3428            common=yes
3429            ;;
3430        d10v-*-*)
3431
3432
3433 subdirs="$subdirs d10v"
3434
3435            ;;
3436        frv-*-*)
3437
3438
3439 subdirs="$subdirs frv"
3440
3441            testsuite=yes
3442            common=yes
3443            ;;
3444        h8300*-*-*)
3445
3446
3447 subdirs="$subdirs h8300"
3448
3449            testsuite=yes
3450            common=yes
3451            ;;
3452        iq2000-*-*)
3453
3454
3455 subdirs="$subdirs iq2000"
3456
3457            testsuite=yes
3458            common=yes
3459            ;;
3460        m32r-*-*)
3461
3462
3463 subdirs="$subdirs m32r"
3464
3465            testsuite=yes
3466            common=yes
3467            ;;
3468        m68hc11-*-*|m6811-*-*)
3469
3470
3471 subdirs="$subdirs m68hc11"
3472
3473            testsuite=yes
3474            common=yes
3475            ;;
3476        mcore-*-*)
3477
3478
3479 subdirs="$subdirs mcore"
3480
3481            testsuite=yes
3482            common=yes
3483            ;;
3484        mips*-*-*)
3485
3486
3487 subdirs="$subdirs mips"
3488
3489            testsuite=yes
3490            common=yes
3491            igen=yes
3492            ;;
3493        mn10300*-*-*)
3494
3495
3496 subdirs="$subdirs mn10300"
3497
3498            common=yes
3499            igen=yes
3500            ;;
3501        sh*-*-*)
3502
3503
3504 subdirs="$subdirs sh"
3505
3506            testsuite=yes
3507            common=yes
3508            ;;
3509        powerpc*-*-* )
3510
3511
3512 subdirs="$subdirs ppc"
3513
3514            common=yes
3515            ;;
3516        v850*-*-* )
3517
3518
3519 subdirs="$subdirs v850"
3520
3521            common=yes
3522            ;;
3523    esac
3524    if test "$testsuite" = yes; then
3525
3526
3527 subdirs="$subdirs testsuite"
3528
3529    fi
3530    if test "$common" = yes; then
3531
3532
3533 subdirs="$subdirs common"
3534
3535    fi
3536    if test "$igen" = yes; then
3537
3538
3539 subdirs="$subdirs igen"
3540
3541    fi
3542 fi
3543
3544           ac_config_files="$ac_config_files Makefile"
3545 cat >confcache <<\_ACEOF
3546 # This file is a shell script that caches the results of configure
3547 # tests run on this system so they can be shared between configure
3548 # scripts and configure runs, see configure's option --config-cache.
3549 # It is not useful on other systems.  If it contains results you don't
3550 # want to keep, you may remove or edit it.
3551 #
3552 # config.status only pays attention to the cache file if you give it
3553 # the --recheck option to rerun configure.
3554 #
3555 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3556 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3557 # following values.
3558
3559 _ACEOF
3560
3561 # The following way of writing the cache mishandles newlines in values,
3562 # but we know of no workaround that is simple, portable, and efficient.
3563 # So, don't put newlines in cache variables' values.
3564 # Ultrix sh set writes to stderr and can't be redirected directly,
3565 # and sets the high bit in the cache file unless we assign to the vars.
3566 {
3567   (set) 2>&1 |
3568     case `(ac_space=' '; set | grep ac_space) 2>&1` in
3569     *ac_space=\ *)
3570       # `set' does not quote correctly, so add quotes (double-quote
3571       # substitution turns \\\\ into \\, and sed turns \\ into \).
3572       sed -n \
3573         "s/'/'\\\\''/g;
3574           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3575       ;;
3576     *)
3577       # `set' quotes correctly as required by POSIX, so do not add quotes.
3578       sed -n \
3579         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3580       ;;
3581     esac;
3582 } |
3583   sed '
3584      t clear
3585      : clear
3586      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3587      t end
3588      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3589      : end' >>confcache
3590 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3591   if test -w $cache_file; then
3592     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3593     cat confcache >$cache_file
3594   else
3595     echo "not updating unwritable cache $cache_file"
3596   fi
3597 fi
3598 rm -f confcache
3599
3600 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3601 # Let make expand exec_prefix.
3602 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3603
3604 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3605 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3606 # trailing colons and then remove the whole line if VPATH becomes empty
3607 # (actually we leave an empty line to preserve line numbers).
3608 if test "x$srcdir" = x.; then
3609   ac_vpsub='/^[  ]*VPATH[        ]*=/{
3610 s/:*\$(srcdir):*/:/;
3611 s/:*\${srcdir}:*/:/;
3612 s/:*@srcdir@:*/:/;
3613 s/^\([^=]*=[     ]*\):*/\1/;
3614 s/:*$//;
3615 s/^[^=]*=[       ]*$//;
3616 }'
3617 fi
3618
3619 # Transform confdefs.h into DEFS.
3620 # Protect against shell expansion while executing Makefile rules.
3621 # Protect against Makefile macro expansion.
3622 #
3623 # If the first sed substitution is executed (which looks for macros that
3624 # take arguments), then we branch to the quote section.  Otherwise,
3625 # look for a macro that doesn't take arguments.
3626 cat >confdef2opt.sed <<\_ACEOF
3627 t clear
3628 : clear
3629 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
3630 t quote
3631 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
3632 t quote
3633 d
3634 : quote
3635 s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
3636 s,\[,\\&,g
3637 s,\],\\&,g
3638 s,\$,$$,g
3639 p
3640 _ACEOF
3641 # We use echo to avoid assuming a particular line-breaking character.
3642 # The extra dot is to prevent the shell from consuming trailing
3643 # line-breaks from the sub-command output.  A line-break within
3644 # single-quotes doesn't work because, if this script is created in a
3645 # platform that uses two characters for line-breaks (e.g., DOS), tr
3646 # would break.
3647 ac_LF_and_DOT=`echo; echo .`
3648 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
3649 rm -f confdef2opt.sed
3650
3651
3652 ac_libobjs=
3653 ac_ltlibobjs=
3654 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3655   # 1. Remove the extension, and $U if already installed.
3656   ac_i=`echo "$ac_i" |
3657          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3658   # 2. Add them.
3659   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3660   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3661 done
3662 LIBOBJS=$ac_libobjs
3663
3664 LTLIBOBJS=$ac_ltlibobjs
3665
3666
3667
3668 : ${CONFIG_STATUS=./config.status}
3669 ac_clean_files_save=$ac_clean_files
3670 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3671 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3672 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3673 cat >$CONFIG_STATUS <<_ACEOF
3674 #! $SHELL
3675 # Generated by $as_me.
3676 # Run this file to recreate the current configuration.
3677 # Compiler output produced by configure, useful for debugging
3678 # configure, is in config.log if it exists.
3679
3680 debug=false
3681 ac_cs_recheck=false
3682 ac_cs_silent=false
3683 SHELL=\${CONFIG_SHELL-$SHELL}
3684 _ACEOF
3685
3686 cat >>$CONFIG_STATUS <<\_ACEOF
3687 ## --------------------- ##
3688 ## M4sh Initialization.  ##
3689 ## --------------------- ##
3690
3691 # Be Bourne compatible
3692 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3693   emulate sh
3694   NULLCMD=:
3695   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3696   # is contrary to our usage.  Disable this feature.
3697   alias -g '${1+"$@"}'='"$@"'
3698 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3699   set -o posix
3700 fi
3701 DUALCASE=1; export DUALCASE # for MKS sh
3702
3703 # Support unset when possible.
3704 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3705   as_unset=unset
3706 else
3707   as_unset=false
3708 fi
3709
3710
3711 # Work around bugs in pre-3.0 UWIN ksh.
3712 $as_unset ENV MAIL MAILPATH
3713 PS1='$ '
3714 PS2='> '
3715 PS4='+ '
3716
3717 # NLS nuisances.
3718 for as_var in \
3719   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3720   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3721   LC_TELEPHONE LC_TIME
3722 do
3723   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3724     eval $as_var=C; export $as_var
3725   else
3726     $as_unset $as_var
3727   fi
3728 done
3729
3730 # Required to use basename.
3731 if expr a : '\(a\)' >/dev/null 2>&1; then
3732   as_expr=expr
3733 else
3734   as_expr=false
3735 fi
3736
3737 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3738   as_basename=basename
3739 else
3740   as_basename=false
3741 fi
3742
3743
3744 # Name of the executable.
3745 as_me=`$as_basename "$0" ||
3746 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3747          X"$0" : 'X\(//\)$' \| \
3748          X"$0" : 'X\(/\)$' \| \
3749          .     : '\(.\)' 2>/dev/null ||
3750 echo X/"$0" |
3751     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3752           /^X\/\(\/\/\)$/{ s//\1/; q; }
3753           /^X\/\(\/\).*/{ s//\1/; q; }
3754           s/.*/./; q'`
3755
3756
3757 # PATH needs CR, and LINENO needs CR and PATH.
3758 # Avoid depending upon Character Ranges.
3759 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3760 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3761 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3762 as_cr_digits='0123456789'
3763 as_cr_alnum=$as_cr_Letters$as_cr_digits
3764
3765 # The user is always right.
3766 if test "${PATH_SEPARATOR+set}" != set; then
3767   echo "#! /bin/sh" >conf$$.sh
3768   echo  "exit 0"   >>conf$$.sh
3769   chmod +x conf$$.sh
3770   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3771     PATH_SEPARATOR=';'
3772   else
3773     PATH_SEPARATOR=:
3774   fi
3775   rm -f conf$$.sh
3776 fi
3777
3778
3779   as_lineno_1=$LINENO
3780   as_lineno_2=$LINENO
3781   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3782   test "x$as_lineno_1" != "x$as_lineno_2" &&
3783   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
3784   # Find who we are.  Look in the path if we contain no path at all
3785   # relative or not.
3786   case $0 in
3787     *[\\/]* ) as_myself=$0 ;;
3788     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3789 for as_dir in $PATH
3790 do
3791   IFS=$as_save_IFS
3792   test -z "$as_dir" && as_dir=.
3793   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3794 done
3795
3796        ;;
3797   esac
3798   # We did not find ourselves, most probably we were run as `sh COMMAND'
3799   # in which case we are not to be found in the path.
3800   if test "x$as_myself" = x; then
3801     as_myself=$0
3802   fi
3803   if test ! -f "$as_myself"; then
3804     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3805 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3806    { (exit 1); exit 1; }; }
3807   fi
3808   case $CONFIG_SHELL in
3809   '')
3810     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3811 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3812 do
3813   IFS=$as_save_IFS
3814   test -z "$as_dir" && as_dir=.
3815   for as_base in sh bash ksh sh5; do
3816          case $as_dir in
3817          /*)
3818            if ("$as_dir/$as_base" -c '
3819   as_lineno_1=$LINENO
3820   as_lineno_2=$LINENO
3821   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3822   test "x$as_lineno_1" != "x$as_lineno_2" &&
3823   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
3824              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3825              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3826              CONFIG_SHELL=$as_dir/$as_base
3827              export CONFIG_SHELL
3828              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3829            fi;;
3830          esac
3831        done
3832 done
3833 ;;
3834   esac
3835
3836   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3837   # uniformly replaced by the line number.  The first 'sed' inserts a
3838   # line-number line before each line; the second 'sed' does the real
3839   # work.  The second script uses 'N' to pair each line-number line
3840   # with the numbered line, and appends trailing '-' during
3841   # substitution so that $LINENO is not a special case at line end.
3842   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3843   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
3844   sed '=' <$as_myself |
3845     sed '
3846       N
3847       s,$,-,
3848       : loop
3849       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3850       t loop
3851       s,-$,,
3852       s,^['$as_cr_digits']*\n,,
3853     ' >$as_me.lineno &&
3854   chmod +x $as_me.lineno ||
3855     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3856 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3857    { (exit 1); exit 1; }; }
3858
3859   # Don't try to exec as it changes $[0], causing all sort of problems
3860   # (the dirname of $[0] is not the place where we might find the
3861   # original and so on.  Autoconf is especially sensible to this).
3862   . ./$as_me.lineno
3863   # Exit status is that of the last command.
3864   exit
3865 }
3866
3867
3868 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3869   *c*,-n*) ECHO_N= ECHO_C='
3870 ' ECHO_T='      ' ;;
3871   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3872   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
3873 esac
3874
3875 if expr a : '\(a\)' >/dev/null 2>&1; then
3876   as_expr=expr
3877 else
3878   as_expr=false
3879 fi
3880
3881 rm -f conf$$ conf$$.exe conf$$.file
3882 echo >conf$$.file
3883 if ln -s conf$$.file conf$$ 2>/dev/null; then
3884   # We could just check for DJGPP; but this test a) works b) is more generic
3885   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3886   if test -f conf$$.exe; then
3887     # Don't use ln at all; we don't have any links
3888     as_ln_s='cp -p'
3889   else
3890     as_ln_s='ln -s'
3891   fi
3892 elif ln conf$$.file conf$$ 2>/dev/null; then
3893   as_ln_s=ln
3894 else
3895   as_ln_s='cp -p'
3896 fi
3897 rm -f conf$$ conf$$.exe conf$$.file
3898
3899 if mkdir -p . 2>/dev/null; then
3900   as_mkdir_p=:
3901 else
3902   test -d ./-p && rmdir ./-p
3903   as_mkdir_p=false
3904 fi
3905
3906 as_executable_p="test -f"
3907
3908 # Sed expression to map a string onto a valid CPP name.
3909 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3910
3911 # Sed expression to map a string onto a valid variable name.
3912 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3913
3914
3915 # IFS
3916 # We need space, tab and new line, in precisely that order.
3917 as_nl='
3918 '
3919 IFS="   $as_nl"
3920
3921 # CDPATH.
3922 $as_unset CDPATH
3923
3924 exec 6>&1
3925
3926 # Open the log real soon, to keep \$[0] and so on meaningful, and to
3927 # report actual input values of CONFIG_FILES etc. instead of their
3928 # values after options handling.  Logging --version etc. is OK.
3929 exec 5>>config.log
3930 {
3931   echo
3932   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3933 ## Running $as_me. ##
3934 _ASBOX
3935 } >&5
3936 cat >&5 <<_CSEOF
3937
3938 This file was extended by $as_me, which was
3939 generated by GNU Autoconf 2.59.  Invocation command line was
3940
3941   CONFIG_FILES    = $CONFIG_FILES
3942   CONFIG_HEADERS  = $CONFIG_HEADERS
3943   CONFIG_LINKS    = $CONFIG_LINKS
3944   CONFIG_COMMANDS = $CONFIG_COMMANDS
3945   $ $0 $@
3946
3947 _CSEOF
3948 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3949 echo >&5
3950 _ACEOF
3951
3952 # Files that config.status was made for.
3953 if test -n "$ac_config_files"; then
3954   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3955 fi
3956
3957 if test -n "$ac_config_headers"; then
3958   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3959 fi
3960
3961 if test -n "$ac_config_links"; then
3962   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3963 fi
3964
3965 if test -n "$ac_config_commands"; then
3966   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3967 fi
3968
3969 cat >>$CONFIG_STATUS <<\_ACEOF
3970
3971 ac_cs_usage="\
3972 \`$as_me' instantiates files from templates according to the
3973 current configuration.
3974
3975 Usage: $0 [OPTIONS] [FILE]...
3976
3977   -h, --help       print this help, then exit
3978   -V, --version    print version number, then exit
3979   -q, --quiet      do not print progress messages
3980   -d, --debug      don't remove temporary files
3981       --recheck    update $as_me by reconfiguring in the same conditions
3982   --file=FILE[:TEMPLATE]
3983                    instantiate the configuration file FILE
3984
3985 Configuration files:
3986 $config_files
3987
3988 Report bugs to <bug-autoconf@gnu.org>."
3989 _ACEOF
3990
3991 cat >>$CONFIG_STATUS <<_ACEOF
3992 ac_cs_version="\\
3993 config.status
3994 configured by $0, generated by GNU Autoconf 2.59,
3995   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3996
3997 Copyright (C) 2003 Free Software Foundation, Inc.
3998 This config.status script is free software; the Free Software Foundation
3999 gives unlimited permission to copy, distribute and modify it."
4000 srcdir=$srcdir
4001 INSTALL="$INSTALL"
4002 _ACEOF
4003
4004 cat >>$CONFIG_STATUS <<\_ACEOF
4005 # If no file are specified by the user, then we need to provide default
4006 # value.  By we need to know if files were specified by the user.
4007 ac_need_defaults=:
4008 while test $# != 0
4009 do
4010   case $1 in
4011   --*=*)
4012     ac_option=`expr "x$1" : 'x\([^=]*\)='`
4013     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4014     ac_shift=:
4015     ;;
4016   -*)
4017     ac_option=$1
4018     ac_optarg=$2
4019     ac_shift=shift
4020     ;;
4021   *) # This is not an option, so the user has probably given explicit
4022      # arguments.
4023      ac_option=$1
4024      ac_need_defaults=false;;
4025   esac
4026
4027   case $ac_option in
4028   # Handling of the options.
4029 _ACEOF
4030 cat >>$CONFIG_STATUS <<\_ACEOF
4031   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4032     ac_cs_recheck=: ;;
4033   --version | --vers* | -V )
4034     echo "$ac_cs_version"; exit 0 ;;
4035   --he | --h)
4036     # Conflict between --help and --header
4037     { { echo "$as_me:$LINENO: error: ambiguous option: $1
4038 Try \`$0 --help' for more information." >&5
4039 echo "$as_me: error: ambiguous option: $1
4040 Try \`$0 --help' for more information." >&2;}
4041    { (exit 1); exit 1; }; };;
4042   --help | --hel | -h )
4043     echo "$ac_cs_usage"; exit 0 ;;
4044   --debug | --d* | -d )
4045     debug=: ;;
4046   --file | --fil | --fi | --f )
4047     $ac_shift
4048     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4049     ac_need_defaults=false;;
4050   --header | --heade | --head | --hea )
4051     $ac_shift
4052     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4053     ac_need_defaults=false;;
4054   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4055   | -silent | --silent | --silen | --sile | --sil | --si | --s)
4056     ac_cs_silent=: ;;
4057
4058   # This is an error.
4059   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4060 Try \`$0 --help' for more information." >&5
4061 echo "$as_me: error: unrecognized option: $1
4062 Try \`$0 --help' for more information." >&2;}
4063    { (exit 1); exit 1; }; } ;;
4064
4065   *) ac_config_targets="$ac_config_targets $1" ;;
4066
4067   esac
4068   shift
4069 done
4070
4071 ac_configure_extra_args=
4072
4073 if $ac_cs_silent; then
4074   exec 6>/dev/null
4075   ac_configure_extra_args="$ac_configure_extra_args --silent"
4076 fi
4077
4078 _ACEOF
4079 cat >>$CONFIG_STATUS <<_ACEOF
4080 if \$ac_cs_recheck; then
4081   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4082   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4083 fi
4084
4085 _ACEOF
4086
4087
4088
4089
4090
4091 cat >>$CONFIG_STATUS <<\_ACEOF
4092 for ac_config_target in $ac_config_targets
4093 do
4094   case "$ac_config_target" in
4095   # Handling of arguments.
4096   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4097   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4098 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4099    { (exit 1); exit 1; }; };;
4100   esac
4101 done
4102
4103 # If the user did not use the arguments to specify the items to instantiate,
4104 # then the envvar interface is used.  Set only those that are not.
4105 # We use the long form for the default assignment because of an extremely
4106 # bizarre bug on SunOS 4.1.3.
4107 if $ac_need_defaults; then
4108   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4109 fi
4110
4111 # Have a temporary directory for convenience.  Make it in the build tree
4112 # simply because there is no reason to put it here, and in addition,
4113 # creating and moving files from /tmp can sometimes cause problems.
4114 # Create a temporary directory, and hook for its removal unless debugging.
4115 $debug ||
4116 {
4117   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4118   trap '{ (exit 1); exit 1; }' 1 2 13 15
4119 }
4120
4121 # Create a (secure) tmp directory for tmp files.
4122
4123 {
4124   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4125   test -n "$tmp" && test -d "$tmp"
4126 }  ||
4127 {
4128   tmp=./confstat$$-$RANDOM
4129   (umask 077 && mkdir $tmp)
4130 } ||
4131 {
4132    echo "$me: cannot create a temporary directory in ." >&2
4133    { (exit 1); exit 1; }
4134 }
4135
4136 _ACEOF
4137
4138 cat >>$CONFIG_STATUS <<_ACEOF
4139
4140 #
4141 # CONFIG_FILES section.
4142 #
4143
4144 # No need to generate the scripts if there are no CONFIG_FILES.
4145 # This happens for instance when ./config.status config.h
4146 if test -n "\$CONFIG_FILES"; then
4147   # Protect against being on the right side of a sed subst in config.status.
4148   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4149    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4150 s,@SHELL@,$SHELL,;t t
4151 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4152 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4153 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4154 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4155 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4156 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4157 s,@exec_prefix@,$exec_prefix,;t t
4158 s,@prefix@,$prefix,;t t
4159 s,@program_transform_name@,$program_transform_name,;t t
4160 s,@bindir@,$bindir,;t t
4161 s,@sbindir@,$sbindir,;t t
4162 s,@libexecdir@,$libexecdir,;t t
4163 s,@datadir@,$datadir,;t t
4164 s,@sysconfdir@,$sysconfdir,;t t
4165 s,@sharedstatedir@,$sharedstatedir,;t t
4166 s,@localstatedir@,$localstatedir,;t t
4167 s,@libdir@,$libdir,;t t
4168 s,@includedir@,$includedir,;t t
4169 s,@oldincludedir@,$oldincludedir,;t t
4170 s,@infodir@,$infodir,;t t
4171 s,@mandir@,$mandir,;t t
4172 s,@build_alias@,$build_alias,;t t
4173 s,@host_alias@,$host_alias,;t t
4174 s,@target_alias@,$target_alias,;t t
4175 s,@DEFS@,$DEFS,;t t
4176 s,@ECHO_C@,$ECHO_C,;t t
4177 s,@ECHO_N@,$ECHO_N,;t t
4178 s,@ECHO_T@,$ECHO_T,;t t
4179 s,@LIBS@,$LIBS,;t t
4180 s,@CC@,$CC,;t t
4181 s,@CFLAGS@,$CFLAGS,;t t
4182 s,@LDFLAGS@,$LDFLAGS,;t t
4183 s,@CPPFLAGS@,$CPPFLAGS,;t t
4184 s,@ac_ct_CC@,$ac_ct_CC,;t t
4185 s,@EXEEXT@,$EXEEXT,;t t
4186 s,@OBJEXT@,$OBJEXT,;t t
4187 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4188 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4189 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4190 s,@AR@,$AR,;t t
4191 s,@ac_ct_AR@,$ac_ct_AR,;t t
4192 s,@RANLIB@,$RANLIB,;t t
4193 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
4194 s,@build@,$build,;t t
4195 s,@build_cpu@,$build_cpu,;t t
4196 s,@build_vendor@,$build_vendor,;t t
4197 s,@build_os@,$build_os,;t t
4198 s,@host@,$host,;t t
4199 s,@host_cpu@,$host_cpu,;t t
4200 s,@host_vendor@,$host_vendor,;t t
4201 s,@host_os@,$host_os,;t t
4202 s,@target@,$target,;t t
4203 s,@target_cpu@,$target_cpu,;t t
4204 s,@target_vendor@,$target_vendor,;t t
4205 s,@target_os@,$target_os,;t t
4206 s,@HDEFINES@,$HDEFINES,;t t
4207 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
4208 s,@subdirs@,$subdirs,;t t
4209 s,@LIBOBJS@,$LIBOBJS,;t t
4210 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4211 CEOF
4212
4213 _ACEOF
4214
4215   cat >>$CONFIG_STATUS <<\_ACEOF
4216   # Split the substitutions into bite-sized pieces for seds with
4217   # small command number limits, like on Digital OSF/1 and HP-UX.
4218   ac_max_sed_lines=48
4219   ac_sed_frag=1 # Number of current file.
4220   ac_beg=1 # First line for current file.
4221   ac_end=$ac_max_sed_lines # Line after last line for current file.
4222   ac_more_lines=:
4223   ac_sed_cmds=
4224   while $ac_more_lines; do
4225     if test $ac_beg -gt 1; then
4226       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4227     else
4228       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4229     fi
4230     if test ! -s $tmp/subs.frag; then
4231       ac_more_lines=false
4232     else
4233       # The purpose of the label and of the branching condition is to
4234       # speed up the sed processing (if there are no `@' at all, there
4235       # is no need to browse any of the substitutions).
4236       # These are the two extra sed commands mentioned above.
4237       (echo ':t
4238   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4239       if test -z "$ac_sed_cmds"; then
4240         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4241       else
4242         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4243       fi
4244       ac_sed_frag=`expr $ac_sed_frag + 1`
4245       ac_beg=$ac_end
4246       ac_end=`expr $ac_end + $ac_max_sed_lines`
4247     fi
4248   done
4249   if test -z "$ac_sed_cmds"; then
4250     ac_sed_cmds=cat
4251   fi
4252 fi # test -n "$CONFIG_FILES"
4253
4254 _ACEOF
4255 cat >>$CONFIG_STATUS <<\_ACEOF
4256 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4257   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4258   case $ac_file in
4259   - | *:- | *:-:* ) # input from stdin
4260         cat >$tmp/stdin
4261         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4262         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4263   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4264         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4265   * )   ac_file_in=$ac_file.in ;;
4266   esac
4267
4268   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4269   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4270 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4271          X"$ac_file" : 'X\(//\)[^/]' \| \
4272          X"$ac_file" : 'X\(//\)$' \| \
4273          X"$ac_file" : 'X\(/\)' \| \
4274          .     : '\(.\)' 2>/dev/null ||
4275 echo X"$ac_file" |
4276     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4277           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4278           /^X\(\/\/\)$/{ s//\1/; q; }
4279           /^X\(\/\).*/{ s//\1/; q; }
4280           s/.*/./; q'`
4281   { if $as_mkdir_p; then
4282     mkdir -p "$ac_dir"
4283   else
4284     as_dir="$ac_dir"
4285     as_dirs=
4286     while test ! -d "$as_dir"; do
4287       as_dirs="$as_dir $as_dirs"
4288       as_dir=`(dirname "$as_dir") 2>/dev/null ||
4289 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4290          X"$as_dir" : 'X\(//\)[^/]' \| \
4291          X"$as_dir" : 'X\(//\)$' \| \
4292          X"$as_dir" : 'X\(/\)' \| \
4293          .     : '\(.\)' 2>/dev/null ||
4294 echo X"$as_dir" |
4295     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4296           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4297           /^X\(\/\/\)$/{ s//\1/; q; }
4298           /^X\(\/\).*/{ s//\1/; q; }
4299           s/.*/./; q'`
4300     done
4301     test ! -n "$as_dirs" || mkdir $as_dirs
4302   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4303 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4304    { (exit 1); exit 1; }; }; }
4305
4306   ac_builddir=.
4307
4308 if test "$ac_dir" != .; then
4309   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4310   # A "../" for each directory in $ac_dir_suffix.
4311   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4312 else
4313   ac_dir_suffix= ac_top_builddir=
4314 fi
4315
4316 case $srcdir in
4317   .)  # No --srcdir option.  We are building in place.
4318     ac_srcdir=.
4319     if test -z "$ac_top_builddir"; then
4320        ac_top_srcdir=.
4321     else
4322        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4323     fi ;;
4324   [\\/]* | ?:[\\/]* )  # Absolute path.
4325     ac_srcdir=$srcdir$ac_dir_suffix;
4326     ac_top_srcdir=$srcdir ;;
4327   *) # Relative path.
4328     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4329     ac_top_srcdir=$ac_top_builddir$srcdir ;;
4330 esac
4331
4332 # Do not use `cd foo && pwd` to compute absolute paths, because
4333 # the directories may not exist.
4334 case `pwd` in
4335 .) ac_abs_builddir="$ac_dir";;
4336 *)
4337   case "$ac_dir" in
4338   .) ac_abs_builddir=`pwd`;;
4339   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4340   *) ac_abs_builddir=`pwd`/"$ac_dir";;
4341   esac;;
4342 esac
4343 case $ac_abs_builddir in
4344 .) ac_abs_top_builddir=${ac_top_builddir}.;;
4345 *)
4346   case ${ac_top_builddir}. in
4347   .) ac_abs_top_builddir=$ac_abs_builddir;;
4348   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4349   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4350   esac;;
4351 esac
4352 case $ac_abs_builddir in
4353 .) ac_abs_srcdir=$ac_srcdir;;
4354 *)
4355   case $ac_srcdir in
4356   .) ac_abs_srcdir=$ac_abs_builddir;;
4357   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4358   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4359   esac;;
4360 esac
4361 case $ac_abs_builddir in
4362 .) ac_abs_top_srcdir=$ac_top_srcdir;;
4363 *)
4364   case $ac_top_srcdir in
4365   .) ac_abs_top_srcdir=$ac_abs_builddir;;
4366   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4367   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4368   esac;;
4369 esac
4370
4371
4372   case $INSTALL in
4373   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4374   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
4375   esac
4376
4377   if test x"$ac_file" != x-; then
4378     { echo "$as_me:$LINENO: creating $ac_file" >&5
4379 echo "$as_me: creating $ac_file" >&6;}
4380     rm -f "$ac_file"
4381   fi
4382   # Let's still pretend it is `configure' which instantiates (i.e., don't
4383   # use $as_me), people would be surprised to read:
4384   #    /* config.h.  Generated by config.status.  */
4385   if test x"$ac_file" = x-; then
4386     configure_input=
4387   else
4388     configure_input="$ac_file.  "
4389   fi
4390   configure_input=$configure_input"Generated from `echo $ac_file_in |
4391                                      sed 's,.*/,,'` by configure."
4392
4393   # First look for the input files in the build tree, otherwise in the
4394   # src tree.
4395   ac_file_inputs=`IFS=:
4396     for f in $ac_file_in; do
4397       case $f in
4398       -) echo $tmp/stdin ;;
4399       [\\/$]*)
4400          # Absolute (can't be DOS-style, as IFS=:)
4401          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4402 echo "$as_me: error: cannot find input file: $f" >&2;}
4403    { (exit 1); exit 1; }; }
4404          echo "$f";;
4405       *) # Relative
4406          if test -f "$f"; then
4407            # Build tree
4408            echo "$f"
4409          elif test -f "$srcdir/$f"; then
4410            # Source tree
4411            echo "$srcdir/$f"
4412          else
4413            # /dev/null tree
4414            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4415 echo "$as_me: error: cannot find input file: $f" >&2;}
4416    { (exit 1); exit 1; }; }
4417          fi;;
4418       esac
4419     done` || { (exit 1); exit 1; }
4420 _ACEOF
4421 cat >>$CONFIG_STATUS <<_ACEOF
4422   sed "$ac_vpsub
4423 $extrasub
4424 _ACEOF
4425 cat >>$CONFIG_STATUS <<\_ACEOF
4426 :t
4427 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4428 s,@configure_input@,$configure_input,;t t
4429 s,@srcdir@,$ac_srcdir,;t t
4430 s,@abs_srcdir@,$ac_abs_srcdir,;t t
4431 s,@top_srcdir@,$ac_top_srcdir,;t t
4432 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4433 s,@builddir@,$ac_builddir,;t t
4434 s,@abs_builddir@,$ac_abs_builddir,;t t
4435 s,@top_builddir@,$ac_top_builddir,;t t
4436 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4437 s,@INSTALL@,$ac_INSTALL,;t t
4438 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4439   rm -f $tmp/stdin
4440   if test x"$ac_file" != x-; then
4441     mv $tmp/out $ac_file
4442   else
4443     cat $tmp/out
4444     rm -f $tmp/out
4445   fi
4446
4447 done
4448 _ACEOF
4449
4450 cat >>$CONFIG_STATUS <<\_ACEOF
4451
4452 { (exit 0); exit 0; }
4453 _ACEOF
4454 chmod +x $CONFIG_STATUS
4455 ac_clean_files=$ac_clean_files_save
4456
4457
4458 # configure is writing to config.log, and then calls config.status.
4459 # config.status does its own redirection, appending to config.log.
4460 # Unfortunately, on DOS this fails, as config.log is still kept open
4461 # by configure, so config.status won't be able to write to it; its
4462 # output is simply discarded.  So we exec the FD to /dev/null,
4463 # effectively closing config.log, so it can be properly (re)opened and
4464 # appended to by config.status.  When coming back to configure, we
4465 # need to make the FD available again.
4466 if test "$no_create" != yes; then
4467   ac_cs_success=:
4468   ac_config_status_args=
4469   test "$silent" = yes &&
4470     ac_config_status_args="$ac_config_status_args --quiet"
4471   exec 5>/dev/null
4472   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4473   exec 5>>config.log
4474   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4475   # would make configure fail if this is the last instruction.
4476   $ac_cs_success || { (exit 1); exit 1; }
4477 fi
4478
4479 #
4480 # CONFIG_SUBDIRS section.
4481 #
4482 if test "$no_recursion" != yes; then
4483
4484   # Remove --cache-file and --srcdir arguments so they do not pile up.
4485   ac_sub_configure_args=
4486   ac_prev=
4487   for ac_arg in $ac_configure_args; do
4488     if test -n "$ac_prev"; then
4489       ac_prev=
4490       continue
4491     fi
4492     case $ac_arg in
4493     -cache-file | --cache-file | --cache-fil | --cache-fi \
4494     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
4495       ac_prev=cache_file ;;
4496     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
4497     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
4498     | --c=*)
4499       ;;
4500     --config-cache | -C)
4501       ;;
4502     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
4503       ac_prev=srcdir ;;
4504     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
4505       ;;
4506     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
4507       ac_prev=prefix ;;
4508     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
4509       ;;
4510     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
4511     esac
4512   done
4513
4514   # Always prepend --prefix to ensure using the same prefix
4515   # in subdir configurations.
4516   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
4517
4518   ac_popdir=`pwd`
4519   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
4520
4521     # Do not complain, so a configure script can configure whichever
4522     # parts of a large source tree are present.
4523     test -d $srcdir/$ac_dir || continue
4524
4525     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
4526 echo "$as_me: configuring in $ac_dir" >&6;}
4527     { if $as_mkdir_p; then
4528     mkdir -p "$ac_dir"
4529   else
4530     as_dir="$ac_dir"
4531     as_dirs=
4532     while test ! -d "$as_dir"; do
4533       as_dirs="$as_dir $as_dirs"
4534       as_dir=`(dirname "$as_dir") 2>/dev/null ||
4535 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4536          X"$as_dir" : 'X\(//\)[^/]' \| \
4537          X"$as_dir" : 'X\(//\)$' \| \
4538          X"$as_dir" : 'X\(/\)' \| \
4539          .     : '\(.\)' 2>/dev/null ||
4540 echo X"$as_dir" |
4541     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4542           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4543           /^X\(\/\/\)$/{ s//\1/; q; }
4544           /^X\(\/\).*/{ s//\1/; q; }
4545           s/.*/./; q'`
4546     done
4547     test ! -n "$as_dirs" || mkdir $as_dirs
4548   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4549 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4550    { (exit 1); exit 1; }; }; }
4551
4552     ac_builddir=.
4553
4554 if test "$ac_dir" != .; then
4555   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4556   # A "../" for each directory in $ac_dir_suffix.
4557   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4558 else
4559   ac_dir_suffix= ac_top_builddir=
4560 fi
4561
4562 case $srcdir in
4563   .)  # No --srcdir option.  We are building in place.
4564     ac_srcdir=.
4565     if test -z "$ac_top_builddir"; then
4566        ac_top_srcdir=.
4567     else
4568        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4569     fi ;;
4570   [\\/]* | ?:[\\/]* )  # Absolute path.
4571     ac_srcdir=$srcdir$ac_dir_suffix;
4572     ac_top_srcdir=$srcdir ;;
4573   *) # Relative path.
4574     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4575     ac_top_srcdir=$ac_top_builddir$srcdir ;;
4576 esac
4577
4578 # Do not use `cd foo && pwd` to compute absolute paths, because
4579 # the directories may not exist.
4580 case `pwd` in
4581 .) ac_abs_builddir="$ac_dir";;
4582 *)
4583   case "$ac_dir" in
4584   .) ac_abs_builddir=`pwd`;;
4585   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4586   *) ac_abs_builddir=`pwd`/"$ac_dir";;
4587   esac;;
4588 esac
4589 case $ac_abs_builddir in
4590 .) ac_abs_top_builddir=${ac_top_builddir}.;;
4591 *)
4592   case ${ac_top_builddir}. in
4593   .) ac_abs_top_builddir=$ac_abs_builddir;;
4594   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4595   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4596   esac;;
4597 esac
4598 case $ac_abs_builddir in
4599 .) ac_abs_srcdir=$ac_srcdir;;
4600 *)
4601   case $ac_srcdir in
4602   .) ac_abs_srcdir=$ac_abs_builddir;;
4603   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4604   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4605   esac;;
4606 esac
4607 case $ac_abs_builddir in
4608 .) ac_abs_top_srcdir=$ac_top_srcdir;;
4609 *)
4610   case $ac_top_srcdir in
4611   .) ac_abs_top_srcdir=$ac_abs_builddir;;
4612   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4613   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4614   esac;;
4615 esac
4616
4617
4618     cd $ac_dir
4619
4620     # Check for guested configure; otherwise get Cygnus style configure.
4621     if test -f $ac_srcdir/configure.gnu; then
4622       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
4623     elif test -f $ac_srcdir/configure; then
4624       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
4625     elif test -f $ac_srcdir/configure.in; then
4626       ac_sub_configure=$ac_configure
4627     else
4628       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
4629 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
4630       ac_sub_configure=
4631     fi
4632
4633     # The recursion is here.
4634     if test -n "$ac_sub_configure"; then
4635       # Make the cache file name correct relative to the subdirectory.
4636       case $cache_file in
4637       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
4638       *) # Relative path.
4639         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
4640       esac
4641
4642       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
4643 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
4644       # The eval makes quoting arguments work.
4645       eval $ac_sub_configure $ac_sub_configure_args \
4646            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
4647         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
4648 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
4649    { (exit 1); exit 1; }; }
4650     fi
4651
4652     cd $ac_popdir
4653   done
4654 fi
4655
4656
4657 exit 0