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