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