Debian Codegraph @

gnattools/configure

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