Debian Codegraph @

tests/configure

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