Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for achilles 3.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 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 as_nop=:
19 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20 then :
21 emulate sh
22 NULLCMD=:
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else $as_nop
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
32 ;;
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="as_nop=:
142 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
143 then :
144 emulate sh
145 NULLCMD=:
146 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
147 # is contrary to our usage. Disable this feature.
148 alias -g '\${1+\"\$@\"}'='\"\$@\"'
149 setopt NO_GLOB_SUBST
150 else \$as_nop
151 case \`(set -o) 2>/dev/null\` in #(
152 *posix*) :
153 set -o posix ;; #(
154 *) :
155 ;;
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 \$as_nop
174 exitcode=1; echo positional parameters were not saved.
175 fi
176 test x\$exitcode = x0 || exit 1
177 blah=\$(echo \$(echo blah))
178 test x\"\$blah\" = xblah || exit 1
179 test -x / || exit 1"
180 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
181 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
182 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
183 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
184 test \$(( 1 + 1 )) = 2 || exit 1"
185 if (eval "$as_required") 2>/dev/null
186 then :
187 as_have_required=yes
188 else $as_nop
189 as_have_required=no
190 fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
192 then :
193
194 else $as_nop
195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 as_found=false
197 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
198 do
199 IFS=$as_save_IFS
200 case $as_dir in #(((
201 '') as_dir=./ ;;
202 */) ;;
203 *) as_dir=$as_dir/ ;;
204 esac
205 as_found=:
206 case $as_dir in #(
207 /*)
208 for as_base in sh bash ksh sh5; do
209 # Try only shells that exist, to save several forks.
210 as_shell=$as_dir$as_base
211 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
212 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
213 then :
214 CONFIG_SHELL=$as_shell as_have_required=yes
215 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
216 then :
217 break 2
218 fi
219 fi
220 done;;
221 esac
222 as_found=false
223 done
224 IFS=$as_save_IFS
225 if $as_found
226 then :
227
228 else $as_nop
229 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
230 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
231 then :
232 CONFIG_SHELL=$SHELL as_have_required=yes
233 fi
234 fi
235
236
237 if test "x$CONFIG_SHELL" != x
238 then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260 if test x$as_have_required = xno
261 then :
262 printf "%s\n" "$0: This script requires a shell more modern than all"
263 printf "%s\n" "$0: the shells that I found on your system."
264 if test ${ZSH_VERSION+y} ; then
265 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
266 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
267 else
268 printf "%s\n" "$0: Please tell [email protected] about your system,
269 $0: including any error possibly output before this
270 $0: message. Then install a modern shell, or manually run
271 $0: the script under such a shell if you do have one."
272 fi
273 exit 1
274 fi
275 fi
276 fi
277 SHELL=${CONFIG_SHELL-/bin/sh}
278 export SHELL
279 # Unset more variables known to interfere with behavior of common tools.
280 CLICOLOR_FORCE= GREP_OPTIONS=
281 unset CLICOLOR_FORCE GREP_OPTIONS
282
283 ## --------------------- ##
284 ## M4sh Shell Functions. ##
285 ## --------------------- ##
286 # as_fn_unset VAR
287 # ---------------
288 # Portably unset VAR.
289 as_fn_unset ()
290 {
291 { eval $1=; unset $1;}
292 }
293 as_unset=as_fn_unset
294
295
296 # as_fn_set_status STATUS
297 # -----------------------
298 # Set $? to STATUS, without forking.
299 as_fn_set_status ()
300 {
301 return $1
302 } # as_fn_set_status
303
304 # as_fn_exit STATUS
305 # -----------------
306 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
307 as_fn_exit ()
308 {
309 set +e
310 as_fn_set_status $1
311 exit $1
312 } # as_fn_exit
313 # as_fn_nop
314 # ---------
315 # Do nothing but, unlike ":", preserve the value of $?.
316 as_fn_nop ()
317 {
318 return $?
319 }
320 as_nop=as_fn_nop
321
322 # as_fn_mkdir_p
323 # -------------
324 # Create "$as_dir" as a directory, including parents if necessary.
325 as_fn_mkdir_p ()
326 {
327
328 case $as_dir in #(
329 -*) as_dir=./$as_dir;;
330 esac
331 test -d "$as_dir" || eval $as_mkdir_p || {
332 as_dirs=
333 while :; do
334 case $as_dir in #(
335 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 *) as_qdir=$as_dir;;
337 esac
338 as_dirs="'$as_qdir' $as_dirs"
339 as_dir=`$as_dirname -- "$as_dir" ||
340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341 X"$as_dir" : 'X\(//\)[^/]' \| \
342 X"$as_dir" : 'X\(//\)$' \| \
343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344 printf "%s\n" X"$as_dir" |
345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
346 s//\1/
347 q
348 }
349 /^X\(\/\/\)[^/].*/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)$/{
354 s//\1/
355 q
356 }
357 /^X\(\/\).*/{
358 s//\1/
359 q
360 }
361 s/.*/./; q'`
362 test -d "$as_dir" && break
363 done
364 test -z "$as_dirs" || eval "mkdir $as_dirs"
365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366
367
368 } # as_fn_mkdir_p
369
370 # as_fn_executable_p FILE
371 # -----------------------
372 # Test if FILE is an executable regular file.
373 as_fn_executable_p ()
374 {
375 test -f "$1" && test -x "$1"
376 } # as_fn_executable_p
377 # as_fn_append VAR VALUE
378 # ----------------------
379 # Append the text in VALUE to the end of the definition contained in VAR. Take
380 # advantage of any shell optimizations that allow amortized linear growth over
381 # repeated appends, instead of the typical quadratic growth present in naive
382 # implementations.
383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
384 then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else $as_nop
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
402 then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else $as_nop
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414 # as_fn_nop
415 # ---------
416 # Do nothing but, unlike ":", preserve the value of $?.
417 as_fn_nop ()
418 {
419 return $?
420 }
421 as_nop=as_fn_nop
422
423 # as_fn_error STATUS ERROR [LINENO LOG_FD]
424 # ----------------------------------------
425 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
426 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
427 # script with STATUS, using 1 if that was 0.
428 as_fn_error ()
429 {
430 as_status=$1; test $as_status -eq 0 && as_status=1
431 if test "$4"; then
432 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
433 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
434 fi
435 printf "%s\n" "$as_me: error: $2" >&2
436 as_fn_exit $as_status
437 } # as_fn_error
438
439 if expr a : '\(a\)' >/dev/null 2>&1 &&
440 test "X`expr 00001 : '.*\(...\)'`" = X001; then
441 as_expr=expr
442 else
443 as_expr=false
444 fi
445
446 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
447 as_basename=basename
448 else
449 as_basename=false
450 fi
451
452 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
453 as_dirname=dirname
454 else
455 as_dirname=false
456 fi
457
458 as_me=`$as_basename -- "$0" ||
459 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
460 X"$0" : 'X\(//\)$' \| \
461 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
462 printf "%s\n" X/"$0" |
463 sed '/^.*\/\([^/][^/]*\)\/*$/{
464 s//\1/
465 q
466 }
467 /^X\/\(\/\/\)$/{
468 s//\1/
469 q
470 }
471 /^X\/\(\/\).*/{
472 s//\1/
473 q
474 }
475 s/.*/./; q'`
476
477 # Avoid depending upon Character Ranges.
478 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
479 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
480 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
481 as_cr_digits='0123456789'
482 as_cr_alnum=$as_cr_Letters$as_cr_digits
483
484
485 as_lineno_1=$LINENO as_lineno_1a=$LINENO
486 as_lineno_2=$LINENO as_lineno_2a=$LINENO
487 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
488 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
489 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
490 sed -n '
491 p
492 /[$]LINENO/=
493 ' <$as_myself |
494 sed '
495 s/[$]LINENO.*/&-/
496 t lineno
497 b
498 :lineno
499 N
500 :loop
501 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
502 t loop
503 s/-\n.*//
504 ' >$as_me.lineno &&
505 chmod +x "$as_me.lineno" ||
506 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
507
508 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
509 # already done that, so ensure we don't try to do so again and fall
510 # in an infinite loop. This has already happened in practice.
511 _as_can_reexec=no; export _as_can_reexec
512 # Don't try to exec as it changes $[0], causing all sort of problems
513 # (the dirname of $[0] is not the place where we might find the
514 # original and so on. Autoconf is especially sensitive to this).
515 . "./$as_me.lineno"
516 # Exit status is that of the last command.
517 exit
518 }
519
520
521 # Determine whether it's possible to make 'echo' print without a newline.
522 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
523 # for compatibility with existing Makefiles.
524 ECHO_C= ECHO_N= ECHO_T=
525 case `echo -n x` in #(((((
526 -n*)
527 case `echo 'xy\c'` in
528 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
529 xy) ECHO_C='\c';;
530 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
531 ECHO_T=' ';;
532 esac;;
533 *)
534 ECHO_N='-n';;
535 esac
536
537 # For backward compatibility with old third-party macros, we provide
538 # the shell variables $as_echo and $as_echo_n. New code should use
539 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
540 as_echo='printf %s\n'
541 as_echo_n='printf %s'
542
543
544 rm -f conf$$ conf$$.exe conf$$.file
545 if test -d conf$$.dir; then
546 rm -f conf$$.dir/conf$$.file
547 else
548 rm -f conf$$.dir
549 mkdir conf$$.dir 2>/dev/null
550 fi
551 if (echo >conf$$.file) 2>/dev/null; then
552 if ln -s conf$$.file conf$$ 2>/dev/null; then
553 as_ln_s='ln -s'
554 # ... but there are two gotchas:
555 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
556 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
557 # In both cases, we have to default to `cp -pR'.
558 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
559 as_ln_s='cp -pR'
560 elif ln conf$$.file conf$$ 2>/dev/null; then
561 as_ln_s=ln
562 else
563 as_ln_s='cp -pR'
564 fi
565 else
566 as_ln_s='cp -pR'
567 fi
568 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
569 rmdir conf$$.dir 2>/dev/null
570
571 if mkdir -p . 2>/dev/null; then
572 as_mkdir_p='mkdir -p "$as_dir"'
573 else
574 test -d ./-p && rmdir ./-p
575 as_mkdir_p=false
576 fi
577
578 as_test_x='test -x'
579 as_executable_p=as_fn_executable_p
580
581 # Sed expression to map a string onto a valid CPP name.
582 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
583
584 # Sed expression to map a string onto a valid variable name.
585 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
586
587
588 test -n "$DJDIR" || exec 7<&0 </dev/null
589 exec 6>&1
590
591 # Name of the host.
592 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
593 # so uname gets run too.
594 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
595
596 #
597 # Initializations.
598 #
599 ac_default_prefix=/usr/local
600 ac_clean_files=
601 ac_config_libobj_dir=.
602 LIBOBJS=
603 cross_compiling=no
604 subdirs=
605 MFLAGS=
606 MAKEFLAGS=
607
608 # Identity of this package.
609 PACKAGE_NAME='achilles'
610 PACKAGE_TARNAME='achilles'
611 PACKAGE_VERSION='3'
612 PACKAGE_STRING='achilles 3'
613 PACKAGE_BUGREPORT=''
614 PACKAGE_URL=''
615
616 ac_unique_file="hebbian.cc"
617 # Factoring default headers for most tests.
618 ac_includes_default="\
619 #include <stddef.h>
620 #ifdef HAVE_STDIO_H
621 # include <stdio.h>
622 #endif
623 #ifdef HAVE_STDLIB_H
624 # include <stdlib.h>
625 #endif
626 #ifdef HAVE_STRING_H
627 # include <string.h>
628 #endif
629 #ifdef HAVE_INTTYPES_H
630 # include <inttypes.h>
631 #endif
632 #ifdef HAVE_STDINT_H
633 # include <stdint.h>
634 #endif
635 #ifdef HAVE_STRINGS_H
636 # include <strings.h>
637 #endif
638 #ifdef HAVE_SYS_TYPES_H
639 # include <sys/types.h>
640 #endif
641 #ifdef HAVE_SYS_STAT_H
642 # include <sys/stat.h>
643 #endif
644 #ifdef HAVE_UNISTD_H
645 # include <unistd.h>
646 #endif"
647
648 ac_header_c_list=
649 ac_subst_vars='am__EXEEXT_FALSE
650 am__EXEEXT_TRUE
651 LTLIBOBJS
652 LIBOBJS
653 EGREP
654 GREP
655 X_EXTRA_LIBS
656 X_LIBS
657 X_PRE_LIBS
658 X_CFLAGS
659 CPP
660 XMKMF
661 am__fastdepCC_FALSE
662 am__fastdepCC_TRUE
663 CCDEPMODE
664 ac_ct_CC
665 CFLAGS
666 CC
667 am__fastdepCXX_FALSE
668 am__fastdepCXX_TRUE
669 CXXDEPMODE
670 am__nodep
671 AMDEPBACKSLASH
672 AMDEP_FALSE
673 AMDEP_TRUE
674 am__include
675 DEPDIR
676 OBJEXT
677 EXEEXT
678 ac_ct_CXX
679 CPPFLAGS
680 LDFLAGS
681 CXXFLAGS
682 CXX
683 AM_BACKSLASH
684 AM_DEFAULT_VERBOSITY
685 AM_DEFAULT_V
686 AM_V
687 CSCOPE
688 ETAGS
689 CTAGS
690 am__untar
691 am__tar
692 AMTAR
693 am__leading_dot
694 SET_MAKE
695 AWK
696 mkdir_p
697 MKDIR_P
698 INSTALL_STRIP_PROGRAM
699 STRIP
700 install_sh
701 MAKEINFO
702 AUTOHEADER
703 AUTOMAKE
704 AUTOCONF
705 ACLOCAL
706 VERSION
707 PACKAGE
708 CYGPATH_W
709 am__isrc
710 INSTALL_DATA
711 INSTALL_SCRIPT
712 INSTALL_PROGRAM
713 target_alias
714 host_alias
715 build_alias
716 LIBS
717 ECHO_T
718 ECHO_N
719 ECHO_C
720 DEFS
721 mandir
722 localedir
723 libdir
724 psdir
725 pdfdir
726 dvidir
727 htmldir
728 infodir
729 docdir
730 oldincludedir
731 includedir
732 runstatedir
733 localstatedir
734 sharedstatedir
735 sysconfdir
736 datadir
737 datarootdir
738 libexecdir
739 sbindir
740 bindir
741 program_transform_name
742 prefix
743 exec_prefix
744 PACKAGE_URL
745 PACKAGE_BUGREPORT
746 PACKAGE_STRING
747 PACKAGE_VERSION
748 PACKAGE_TARNAME
749 PACKAGE_NAME
750 PATH_SEPARATOR
751 SHELL
752 am__quote'
753 ac_subst_files=''
754 ac_user_opts='
755 enable_option_checking
756 enable_silent_rules
757 enable_dependency_tracking
758 with_x
759 '
760 ac_precious_vars='build_alias
761 host_alias
762 target_alias
763 CXX
764 CXXFLAGS
765 LDFLAGS
766 LIBS
767 CPPFLAGS
768 CCC
769 CC
770 CFLAGS
771 XMKMF
772 CPP'
773
774
775 # Initialize some variables set by options.
776 ac_init_help=
777 ac_init_version=false
778 ac_unrecognized_opts=
779 ac_unrecognized_sep=
780 # The variables have the same names as the options, with
781 # dashes changed to underlines.
782 cache_file=/dev/null
783 exec_prefix=NONE
784 no_create=
785 no_recursion=
786 prefix=NONE
787 program_prefix=NONE
788 program_suffix=NONE
789 program_transform_name=s,x,x,
790 silent=
791 site=
792 srcdir=
793 verbose=
794 x_includes=NONE
795 x_libraries=NONE
796
797 # Installation directory options.
798 # These are left unexpanded so users can "make install exec_prefix=/foo"
799 # and all the variables that are supposed to be based on exec_prefix
800 # by default will actually change.
801 # Use braces instead of parens because sh, perl, etc. also accept them.
802 # (The list follows the same order as the GNU Coding Standards.)
803 bindir='${exec_prefix}/bin'
804 sbindir='${exec_prefix}/sbin'
805 libexecdir='${exec_prefix}/libexec'
806 datarootdir='${prefix}/share'
807 datadir='${datarootdir}'
808 sysconfdir='${prefix}/etc'
809 sharedstatedir='${prefix}/com'
810 localstatedir='${prefix}/var'
811 runstatedir='${localstatedir}/run'
812 includedir='${prefix}/include'
813 oldincludedir='/usr/include'
814 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
815 infodir='${datarootdir}/info'
816 htmldir='${docdir}'
817 dvidir='${docdir}'
818 pdfdir='${docdir}'
819 psdir='${docdir}'
820 libdir='${exec_prefix}/lib'
821 localedir='${datarootdir}/locale'
822 mandir='${datarootdir}/man'
823
824 ac_prev=
825 ac_dashdash=
826 for ac_option
827 do
828 # If the previous option needs an argument, assign it.
829 if test -n "$ac_prev"; then
830 eval $ac_prev=\$ac_option
831 ac_prev=
832 continue
833 fi
834
835 case $ac_option in
836 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
837 *=) ac_optarg= ;;
838 *) ac_optarg=yes ;;
839 esac
840
841 case $ac_dashdash$ac_option in
842 --)
843 ac_dashdash=yes ;;
844
845 -bindir | --bindir | --bindi | --bind | --bin | --bi)
846 ac_prev=bindir ;;
847 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
848 bindir=$ac_optarg ;;
849
850 -build | --build | --buil | --bui | --bu)
851 ac_prev=build_alias ;;
852 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
853 build_alias=$ac_optarg ;;
854
855 -cache-file | --cache-file | --cache-fil | --cache-fi \
856 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
857 ac_prev=cache_file ;;
858 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
859 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
860 cache_file=$ac_optarg ;;
861
862 --config-cache | -C)
863 cache_file=config.cache ;;
864
865 -datadir | --datadir | --datadi | --datad)
866 ac_prev=datadir ;;
867 -datadir=* | --datadir=* | --datadi=* | --datad=*)
868 datadir=$ac_optarg ;;
869
870 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
871 | --dataroo | --dataro | --datar)
872 ac_prev=datarootdir ;;
873 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
874 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
875 datarootdir=$ac_optarg ;;
876
877 -disable-* | --disable-*)
878 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
879 # Reject names that are not valid shell variable names.
880 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
881 as_fn_error $? "invalid feature name: \`$ac_useropt'"
882 ac_useropt_orig=$ac_useropt
883 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
884 case $ac_user_opts in
885 *"
886 "enable_$ac_useropt"
887 "*) ;;
888 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
889 ac_unrecognized_sep=', ';;
890 esac
891 eval enable_$ac_useropt=no ;;
892
893 -docdir | --docdir | --docdi | --doc | --do)
894 ac_prev=docdir ;;
895 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
896 docdir=$ac_optarg ;;
897
898 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
899 ac_prev=dvidir ;;
900 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
901 dvidir=$ac_optarg ;;
902
903 -enable-* | --enable-*)
904 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
905 # Reject names that are not valid shell variable names.
906 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
907 as_fn_error $? "invalid feature name: \`$ac_useropt'"
908 ac_useropt_orig=$ac_useropt
909 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
910 case $ac_user_opts in
911 *"
912 "enable_$ac_useropt"
913 "*) ;;
914 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
915 ac_unrecognized_sep=', ';;
916 esac
917 eval enable_$ac_useropt=\$ac_optarg ;;
918
919 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
920 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
921 | --exec | --exe | --ex)
922 ac_prev=exec_prefix ;;
923 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
924 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
925 | --exec=* | --exe=* | --ex=*)
926 exec_prefix=$ac_optarg ;;
927
928 -gas | --gas | --ga | --g)
929 # Obsolete; use --with-gas.
930 with_gas=yes ;;
931
932 -help | --help | --hel | --he | -h)
933 ac_init_help=long ;;
934 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
935 ac_init_help=recursive ;;
936 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
937 ac_init_help=short ;;
938
939 -host | --host | --hos | --ho)
940 ac_prev=host_alias ;;
941 -host=* | --host=* | --hos=* | --ho=*)
942 host_alias=$ac_optarg ;;
943
944 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
945 ac_prev=htmldir ;;
946 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
947 | --ht=*)
948 htmldir=$ac_optarg ;;
949
950 -includedir | --includedir | --includedi | --included | --include \
951 | --includ | --inclu | --incl | --inc)
952 ac_prev=includedir ;;
953 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
954 | --includ=* | --inclu=* | --incl=* | --inc=*)
955 includedir=$ac_optarg ;;
956
957 -infodir | --infodir | --infodi | --infod | --info | --inf)
958 ac_prev=infodir ;;
959 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
960 infodir=$ac_optarg ;;
961
962 -libdir | --libdir | --libdi | --libd)
963 ac_prev=libdir ;;
964 -libdir=* | --libdir=* | --libdi=* | --libd=*)
965 libdir=$ac_optarg ;;
966
967 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
968 | --libexe | --libex | --libe)
969 ac_prev=libexecdir ;;
970 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
971 | --libexe=* | --libex=* | --libe=*)
972 libexecdir=$ac_optarg ;;
973
974 -localedir | --localedir | --localedi | --localed | --locale)
975 ac_prev=localedir ;;
976 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
977 localedir=$ac_optarg ;;
978
979 -localstatedir | --localstatedir | --localstatedi | --localstated \
980 | --localstate | --localstat | --localsta | --localst | --locals)
981 ac_prev=localstatedir ;;
982 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
983 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
984 localstatedir=$ac_optarg ;;
985
986 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
987 ac_prev=mandir ;;
988 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
989 mandir=$ac_optarg ;;
990
991 -nfp | --nfp | --nf)
992 # Obsolete; use --without-fp.
993 with_fp=no ;;
994
995 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
996 | --no-cr | --no-c | -n)
997 no_create=yes ;;
998
999 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1000 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1001 no_recursion=yes ;;
1002
1003 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1004 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1005 | --oldin | --oldi | --old | --ol | --o)
1006 ac_prev=oldincludedir ;;
1007 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1008 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1009 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1010 oldincludedir=$ac_optarg ;;
1011
1012 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1013 ac_prev=prefix ;;
1014 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1015 prefix=$ac_optarg ;;
1016
1017 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1018 | --program-pre | --program-pr | --program-p)
1019 ac_prev=program_prefix ;;
1020 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1021 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1022 program_prefix=$ac_optarg ;;
1023
1024 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1025 | --program-suf | --program-su | --program-s)
1026 ac_prev=program_suffix ;;
1027 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1028 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1029 program_suffix=$ac_optarg ;;
1030
1031 -program-transform-name | --program-transform-name \
1032 | --program-transform-nam | --program-transform-na \
1033 | --program-transform-n | --program-transform- \
1034 | --program-transform | --program-transfor \
1035 | --program-transfo | --program-transf \
1036 | --program-trans | --program-tran \
1037 | --progr-tra | --program-tr | --program-t)
1038 ac_prev=program_transform_name ;;
1039 -program-transform-name=* | --program-transform-name=* \
1040 | --program-transform-nam=* | --program-transform-na=* \
1041 | --program-transform-n=* | --program-transform-=* \
1042 | --program-transform=* | --program-transfor=* \
1043 | --program-transfo=* | --program-transf=* \
1044 | --program-trans=* | --program-tran=* \
1045 | --progr-tra=* | --program-tr=* | --program-t=*)
1046 program_transform_name=$ac_optarg ;;
1047
1048 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1049 ac_prev=pdfdir ;;
1050 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1051 pdfdir=$ac_optarg ;;
1052
1053 -psdir | --psdir | --psdi | --psd | --ps)
1054 ac_prev=psdir ;;
1055 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1056 psdir=$ac_optarg ;;
1057
1058 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1059 | -silent | --silent | --silen | --sile | --sil)
1060 silent=yes ;;
1061
1062 -runstatedir | --runstatedir | --runstatedi | --runstated \
1063 | --runstate | --runstat | --runsta | --runst | --runs \
1064 | --run | --ru | --r)
1065 ac_prev=runstatedir ;;
1066 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1067 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1068 | --run=* | --ru=* | --r=*)
1069 runstatedir=$ac_optarg ;;
1070
1071 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1072 ac_prev=sbindir ;;
1073 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1074 | --sbi=* | --sb=*)
1075 sbindir=$ac_optarg ;;
1076
1077 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1078 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1079 | --sharedst | --shareds | --shared | --share | --shar \
1080 | --sha | --sh)
1081 ac_prev=sharedstatedir ;;
1082 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1083 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1084 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1085 | --sha=* | --sh=*)
1086 sharedstatedir=$ac_optarg ;;
1087
1088 -site | --site | --sit)
1089 ac_prev=site ;;
1090 -site=* | --site=* | --sit=*)
1091 site=$ac_optarg ;;
1092
1093 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1094 ac_prev=srcdir ;;
1095 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1096 srcdir=$ac_optarg ;;
1097
1098 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1099 | --syscon | --sysco | --sysc | --sys | --sy)
1100 ac_prev=sysconfdir ;;
1101 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1102 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1103 sysconfdir=$ac_optarg ;;
1104
1105 -target | --target | --targe | --targ | --tar | --ta | --t)
1106 ac_prev=target_alias ;;
1107 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1108 target_alias=$ac_optarg ;;
1109
1110 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1111 verbose=yes ;;
1112
1113 -version | --version | --versio | --versi | --vers | -V)
1114 ac_init_version=: ;;
1115
1116 -with-* | --with-*)
1117 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1118 # Reject names that are not valid shell variable names.
1119 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1120 as_fn_error $? "invalid package name: \`$ac_useropt'"
1121 ac_useropt_orig=$ac_useropt
1122 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1123 case $ac_user_opts in
1124 *"
1125 "with_$ac_useropt"
1126 "*) ;;
1127 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1128 ac_unrecognized_sep=', ';;
1129 esac
1130 eval with_$ac_useropt=\$ac_optarg ;;
1131
1132 -without-* | --without-*)
1133 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1134 # Reject names that are not valid shell variable names.
1135 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136 as_fn_error $? "invalid package name: \`$ac_useropt'"
1137 ac_useropt_orig=$ac_useropt
1138 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1139 case $ac_user_opts in
1140 *"
1141 "with_$ac_useropt"
1142 "*) ;;
1143 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1144 ac_unrecognized_sep=', ';;
1145 esac
1146 eval with_$ac_useropt=no ;;
1147
1148 --x)
1149 # Obsolete; use --with-x.
1150 with_x=yes ;;
1151
1152 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1153 | --x-incl | --x-inc | --x-in | --x-i)
1154 ac_prev=x_includes ;;
1155 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1156 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1157 x_includes=$ac_optarg ;;
1158
1159 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1160 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1161 ac_prev=x_libraries ;;
1162 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1163 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1164 x_libraries=$ac_optarg ;;
1165
1166 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1167 Try \`$0 --help' for more information"
1168 ;;
1169
1170 *=*)
1171 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1172 # Reject names that are not valid shell variable names.
1173 case $ac_envvar in #(
1174 '' | [0-9]* | *[!_$as_cr_alnum]* )
1175 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1176 esac
1177 eval $ac_envvar=\$ac_optarg
1178 export $ac_envvar ;;
1179
1180 *)
1181 # FIXME: should be removed in autoconf 3.0.
1182 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1183 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1184 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1185 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1186 ;;
1187
1188 esac
1189 done
1190
1191 if test -n "$ac_prev"; then
1192 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1193 as_fn_error $? "missing argument to $ac_option"
1194 fi
1195
1196 if test -n "$ac_unrecognized_opts"; then
1197 case $enable_option_checking in
1198 no) ;;
1199 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1200 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1201 esac
1202 fi
1203
1204 # Check all directory arguments for consistency.
1205 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1206 datadir sysconfdir sharedstatedir localstatedir includedir \
1207 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1208 libdir localedir mandir runstatedir
1209 do
1210 eval ac_val=\$$ac_var
1211 # Remove trailing slashes.
1212 case $ac_val in
1213 */ )
1214 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1215 eval $ac_var=\$ac_val;;
1216 esac
1217 # Be sure to have absolute directory names.
1218 case $ac_val in
1219 [\\/$]* | ?:[\\/]* ) continue;;
1220 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1221 esac
1222 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1223 done
1224
1225 # There might be people who depend on the old broken behavior: `$host'
1226 # used to hold the argument of --host etc.
1227 # FIXME: To remove some day.
1228 build=$build_alias
1229 host=$host_alias
1230 target=$target_alias
1231
1232 # FIXME: To remove some day.
1233 if test "x$host_alias" != x; then
1234 if test "x$build_alias" = x; then
1235 cross_compiling=maybe
1236 elif test "x$build_alias" != "x$host_alias"; then
1237 cross_compiling=yes
1238 fi
1239 fi
1240
1241 ac_tool_prefix=
1242 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1243
1244 test "$silent" = yes && exec 6>/dev/null
1245
1246
1247 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1248 ac_ls_di=`ls -di .` &&
1249 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1250 as_fn_error $? "working directory cannot be determined"
1251 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1252 as_fn_error $? "pwd does not report name of working directory"
1253
1254
1255 # Find the source files, if location was not specified.
1256 if test -z "$srcdir"; then
1257 ac_srcdir_defaulted=yes
1258 # Try the directory containing this script, then the parent directory.
1259 ac_confdir=`$as_dirname -- "$as_myself" ||
1260 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1261 X"$as_myself" : 'X\(//\)[^/]' \| \
1262 X"$as_myself" : 'X\(//\)$' \| \
1263 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1264 printf "%s\n" X"$as_myself" |
1265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1266 s//\1/
1267 q
1268 }
1269 /^X\(\/\/\)[^/].*/{
1270 s//\1/
1271 q
1272 }
1273 /^X\(\/\/\)$/{
1274 s//\1/
1275 q
1276 }
1277 /^X\(\/\).*/{
1278 s//\1/
1279 q
1280 }
1281 s/.*/./; q'`
1282 srcdir=$ac_confdir
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1284 srcdir=..
1285 fi
1286 else
1287 ac_srcdir_defaulted=no
1288 fi
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1290 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1291 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1292 fi
1293 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1294 ac_abs_confdir=`(
1295 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1296 pwd)`
1297 # When building in place, set srcdir=.
1298 if test "$ac_abs_confdir" = "$ac_pwd"; then
1299 srcdir=.
1300 fi
1301 # Remove unnecessary trailing slashes from srcdir.
1302 # Double slashes in file names in object file debugging info
1303 # mess up M-x gdb in Emacs.
1304 case $srcdir in
1305 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306 esac
1307 for ac_var in $ac_precious_vars; do
1308 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_env_${ac_var}_value=\$${ac_var}
1310 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1312 done
1313
1314 #
1315 # Report the --help message.
1316 #
1317 if test "$ac_init_help" = "long"; then
1318 # Omit some internal or obsolete options to make the list less imposing.
1319 # This message is too long to be a string in the A/UX 3.1 sh.
1320 cat <<_ACEOF
1321 \`configure' configures achilles 3 to adapt to many kinds of systems.
1322
1323 Usage: $0 [OPTION]... [VAR=VALUE]...
1324
1325 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326 VAR=VALUE. See below for descriptions of some of the useful variables.
1327
1328 Defaults for the options are specified in brackets.
1329
1330 Configuration:
1331 -h, --help display this help and exit
1332 --help=short display options specific to this package
1333 --help=recursive display the short help of all the included packages
1334 -V, --version display version information and exit
1335 -q, --quiet, --silent do not print \`checking ...' messages
1336 --cache-file=FILE cache test results in FILE [disabled]
1337 -C, --config-cache alias for \`--cache-file=config.cache'
1338 -n, --no-create do not create output files
1339 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1340
1341 Installation directories:
1342 --prefix=PREFIX install architecture-independent files in PREFIX
1343 [$ac_default_prefix]
1344 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1345 [PREFIX]
1346
1347 By default, \`make install' will install all the files in
1348 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1349 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350 for instance \`--prefix=\$HOME'.
1351
1352 For better control, use the options below.
1353
1354 Fine tuning of the installation directories:
1355 --bindir=DIR user executables [EPREFIX/bin]
1356 --sbindir=DIR system admin executables [EPREFIX/sbin]
1357 --libexecdir=DIR program executables [EPREFIX/libexec]
1358 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1359 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1360 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1361 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1362 --libdir=DIR object code libraries [EPREFIX/lib]
1363 --includedir=DIR C header files [PREFIX/include]
1364 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1365 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1366 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1367 --infodir=DIR info documentation [DATAROOTDIR/info]
1368 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1369 --mandir=DIR man documentation [DATAROOTDIR/man]
1370 --docdir=DIR documentation root [DATAROOTDIR/doc/achilles]
1371 --htmldir=DIR html documentation [DOCDIR]
1372 --dvidir=DIR dvi documentation [DOCDIR]
1373 --pdfdir=DIR pdf documentation [DOCDIR]
1374 --psdir=DIR ps documentation [DOCDIR]
1375 _ACEOF
1376
1377 cat <<\_ACEOF
1378
1379 Program names:
1380 --program-prefix=PREFIX prepend PREFIX to installed program names
1381 --program-suffix=SUFFIX append SUFFIX to installed program names
1382 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1383
1384 X features:
1385 --x-includes=DIR X include files are in DIR
1386 --x-libraries=DIR X library files are in DIR
1387 _ACEOF
1388 fi
1389
1390 if test -n "$ac_init_help"; then
1391 case $ac_init_help in
1392 short | recursive ) echo "Configuration of achilles 3:";;
1393 esac
1394 cat <<\_ACEOF
1395
1396 Optional Features:
1397 --disable-option-checking ignore unrecognized --enable/--with options
1398 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1399 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1400 --enable-silent-rules less verbose build output (undo: "make V=1")
1401 --disable-silent-rules verbose build output (undo: "make V=0")
1402 --enable-dependency-tracking
1403 do not reject slow dependency extractors
1404 --disable-dependency-tracking
1405 speeds up one-time build
1406
1407 Optional Packages:
1408 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1409 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1410 --with-x use the X Window System
1411
1412 Some influential environment variables:
1413 CXX C++ compiler command
1414 CXXFLAGS C++ compiler flags
1415 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1416 nonstandard directory <lib dir>
1417 LIBS libraries to pass to the linker, e.g. -l<library>
1418 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1419 you have headers in a nonstandard directory <include dir>
1420 CC C compiler command
1421 CFLAGS C compiler flags
1422 XMKMF Path to xmkmf, Makefile generator for X Window System
1423 CPP C preprocessor
1424
1425 Use these variables to override the choices made by `configure' or to help
1426 it to find libraries and programs with nonstandard names/locations.
1427
1428 Report bugs to the package provider.
1429 _ACEOF
1430 ac_status=$?
1431 fi
1432
1433 if test "$ac_init_help" = "recursive"; then
1434 # If there are subdirs, report their specific --help.
1435 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1436 test -d "$ac_dir" ||
1437 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1438 continue
1439 ac_builddir=.
1440
1441 case "$ac_dir" in
1442 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1443 *)
1444 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1445 # A ".." for each directory in $ac_dir_suffix.
1446 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1447 case $ac_top_builddir_sub in
1448 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1449 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1450 esac ;;
1451 esac
1452 ac_abs_top_builddir=$ac_pwd
1453 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1454 # for backward compatibility:
1455 ac_top_builddir=$ac_top_build_prefix
1456
1457 case $srcdir in
1458 .) # We are building in place.
1459 ac_srcdir=.
1460 ac_top_srcdir=$ac_top_builddir_sub
1461 ac_abs_top_srcdir=$ac_pwd ;;
1462 [\\/]* | ?:[\\/]* ) # Absolute name.
1463 ac_srcdir=$srcdir$ac_dir_suffix;
1464 ac_top_srcdir=$srcdir
1465 ac_abs_top_srcdir=$srcdir ;;
1466 *) # Relative name.
1467 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1468 ac_top_srcdir=$ac_top_build_prefix$srcdir
1469 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1470 esac
1471 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1472
1473 cd "$ac_dir" || { ac_status=$?; continue; }
1474 # Check for configure.gnu first; this name is used for a wrapper for
1475 # Metaconfig's "Configure" on case-insensitive file systems.
1476 if test -f "$ac_srcdir/configure.gnu"; then
1477 echo &&
1478 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1479 elif test -f "$ac_srcdir/configure"; then
1480 echo &&
1481 $SHELL "$ac_srcdir/configure" --help=recursive
1482 else
1483 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1484 fi || ac_status=$?
1485 cd "$ac_pwd" || { ac_status=$?; break; }
1486 done
1487 fi
1488
1489 test -n "$ac_init_help" && exit $ac_status
1490 if $ac_init_version; then
1491 cat <<\_ACEOF
1492 achilles configure 3
1493 generated by GNU Autoconf 2.71
1494
1495 Copyright (C) 2021 Free Software Foundation, Inc.
1496 This configure script is free software; the Free Software Foundation
1497 gives unlimited permission to copy, distribute and modify it.
1498 _ACEOF
1499 exit
1500 fi
1501
1502 ## ------------------------ ##
1503 ## Autoconf initialization. ##
1504 ## ------------------------ ##
1505
1506 # ac_fn_cxx_try_compile LINENO
1507 # ----------------------------
1508 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1509 ac_fn_cxx_try_compile ()
1510 {
1511 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1512 rm -f conftest.$ac_objext conftest.beam
1513 if { { ac_try="$ac_compile"
1514 case "(($ac_try" in
1515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1516 *) ac_try_echo=$ac_try;;
1517 esac
1518 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1519 printf "%s\n" "$ac_try_echo"; } >&5
1520 (eval "$ac_compile") 2>conftest.err
1521 ac_status=$?
1522 if test -s conftest.err; then
1523 grep -v '^ *+' conftest.err >conftest.er1
1524 cat conftest.er1 >&5
1525 mv -f conftest.er1 conftest.err
1526 fi
1527 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1528 test $ac_status = 0; } && {
1529 test -z "$ac_cxx_werror_flag" ||
1530 test ! -s conftest.err
1531 } && test -s conftest.$ac_objext
1532 then :
1533 ac_retval=0
1534 else $as_nop
1535 printf "%s\n" "$as_me: failed program was:" >&5
1536 sed 's/^/| /' conftest.$ac_ext >&5
1537
1538 ac_retval=1
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_compile
1544
1545 # ac_fn_c_try_compile LINENO
1546 # --------------------------
1547 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1548 ac_fn_c_try_compile ()
1549 {
1550 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1551 rm -f conftest.$ac_objext conftest.beam
1552 if { { ac_try="$ac_compile"
1553 case "(($ac_try" in
1554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1555 *) ac_try_echo=$ac_try;;
1556 esac
1557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1558 printf "%s\n" "$ac_try_echo"; } >&5
1559 (eval "$ac_compile") 2>conftest.err
1560 ac_status=$?
1561 if test -s conftest.err; then
1562 grep -v '^ *+' conftest.err >conftest.er1
1563 cat conftest.er1 >&5
1564 mv -f conftest.er1 conftest.err
1565 fi
1566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1567 test $ac_status = 0; } && {
1568 test -z "$ac_c_werror_flag" ||
1569 test ! -s conftest.err
1570 } && test -s conftest.$ac_objext
1571 then :
1572 ac_retval=0
1573 else $as_nop
1574 printf "%s\n" "$as_me: failed program was:" >&5
1575 sed 's/^/| /' conftest.$ac_ext >&5
1576
1577 ac_retval=1
1578 fi
1579 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1580 as_fn_set_status $ac_retval
1581
1582 } # ac_fn_c_try_compile
1583
1584 # ac_fn_c_try_link LINENO
1585 # -----------------------
1586 # Try to link conftest.$ac_ext, and return whether this succeeded.
1587 ac_fn_c_try_link ()
1588 {
1589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1590 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1591 if { { ac_try="$ac_link"
1592 case "(($ac_try" in
1593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1594 *) ac_try_echo=$ac_try;;
1595 esac
1596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1597 printf "%s\n" "$ac_try_echo"; } >&5
1598 (eval "$ac_link") 2>conftest.err
1599 ac_status=$?
1600 if test -s conftest.err; then
1601 grep -v '^ *+' conftest.err >conftest.er1
1602 cat conftest.er1 >&5
1603 mv -f conftest.er1 conftest.err
1604 fi
1605 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1606 test $ac_status = 0; } && {
1607 test -z "$ac_c_werror_flag" ||
1608 test ! -s conftest.err
1609 } && test -s conftest$ac_exeext && {
1610 test "$cross_compiling" = yes ||
1611 test -x conftest$ac_exeext
1612 }
1613 then :
1614 ac_retval=0
1615 else $as_nop
1616 printf "%s\n" "$as_me: failed program was:" >&5
1617 sed 's/^/| /' conftest.$ac_ext >&5
1618
1619 ac_retval=1
1620 fi
1621 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1622 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1623 # interfere with the next link command; also delete a directory that is
1624 # left behind by Apple's compiler. We do this before executing the actions.
1625 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1626 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1627 as_fn_set_status $ac_retval
1628
1629 } # ac_fn_c_try_link
1630
1631 # ac_fn_c_try_cpp LINENO
1632 # ----------------------
1633 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1634 ac_fn_c_try_cpp ()
1635 {
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 if { { ac_try="$ac_cpp conftest.$ac_ext"
1638 case "(($ac_try" in
1639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1640 *) ac_try_echo=$ac_try;;
1641 esac
1642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1643 printf "%s\n" "$ac_try_echo"; } >&5
1644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1645 ac_status=$?
1646 if test -s conftest.err; then
1647 grep -v '^ *+' conftest.err >conftest.er1
1648 cat conftest.er1 >&5
1649 mv -f conftest.er1 conftest.err
1650 fi
1651 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1652 test $ac_status = 0; } > conftest.i && {
1653 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1654 test ! -s conftest.err
1655 }
1656 then :
1657 ac_retval=0
1658 else $as_nop
1659 printf "%s\n" "$as_me: failed program was:" >&5
1660 sed 's/^/| /' conftest.$ac_ext >&5
1661
1662 ac_retval=1
1663 fi
1664 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1665 as_fn_set_status $ac_retval
1666
1667 } # ac_fn_c_try_cpp
1668
1669 # ac_fn_c_check_func LINENO FUNC VAR
1670 # ----------------------------------
1671 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1672 ac_fn_c_check_func ()
1673 {
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1676 printf %s "checking for $2... " >&6; }
1677 if eval test \${$3+y}
1678 then :
1679 printf %s "(cached) " >&6
1680 else $as_nop
1681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1682 /* end confdefs.h. */
1683 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1685 #define $2 innocuous_$2
1686
1687 /* System header to define __stub macros and hopefully few prototypes,
1688 which can conflict with char $2 (); below. */
1689
1690 #include <limits.h>
1691 #undef $2
1692
1693 /* Override any GCC internal prototype to avoid an error.
1694 Use char because int might match the return type of a GCC
1695 builtin and then its argument prototype would still apply. */
1696 #ifdef __cplusplus
1697 extern "C"
1698 #endif
1699 char $2 ();
1700 /* The GNU C library defines this for functions which it implements
1701 to always fail with ENOSYS. Some functions are actually named
1702 something starting with __ and the normal name is an alias. */
1703 #if defined __stub_$2 || defined __stub___$2
1704 choke me
1705 #endif
1706
1707 int
1708 main (void)
1709 {
1710 return $2 ();
1711 ;
1712 return 0;
1713 }
1714 _ACEOF
1715 if ac_fn_c_try_link "$LINENO"
1716 then :
1717 eval "$3=yes"
1718 else $as_nop
1719 eval "$3=no"
1720 fi
1721 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1722 conftest$ac_exeext conftest.$ac_ext
1723 fi
1724 eval ac_res=\$$3
1725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1726 printf "%s\n" "$ac_res" >&6; }
1727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728
1729 } # ac_fn_c_check_func
1730
1731 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1732 # -------------------------------------------------------
1733 # Tests whether HEADER exists and can be compiled using the include files in
1734 # INCLUDES, setting the cache variable VAR accordingly.
1735 ac_fn_c_check_header_compile ()
1736 {
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739 printf %s "checking for $2... " >&6; }
1740 if eval test \${$3+y}
1741 then :
1742 printf %s "(cached) " >&6
1743 else $as_nop
1744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745 /* end confdefs.h. */
1746 $4
1747 #include <$2>
1748 _ACEOF
1749 if ac_fn_c_try_compile "$LINENO"
1750 then :
1751 eval "$3=yes"
1752 else $as_nop
1753 eval "$3=no"
1754 fi
1755 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1756 fi
1757 eval ac_res=\$$3
1758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1759 printf "%s\n" "$ac_res" >&6; }
1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761
1762 } # ac_fn_c_check_header_compile
1763 ac_configure_args_raw=
1764 for ac_arg
1765 do
1766 case $ac_arg in
1767 *\'*)
1768 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1769 esac
1770 as_fn_append ac_configure_args_raw " '$ac_arg'"
1771 done
1772
1773 case $ac_configure_args_raw in
1774 *$as_nl*)
1775 ac_safe_unquote= ;;
1776 *)
1777 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1778 ac_unsafe_a="$ac_unsafe_z#~"
1779 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1780 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1781 esac
1782
1783 cat >config.log <<_ACEOF
1784 This file contains any messages produced by compilers while
1785 running configure, to aid debugging if configure makes a mistake.
1786
1787 It was created by achilles $as_me 3, which was
1788 generated by GNU Autoconf 2.71. Invocation command line was
1789
1790 $ $0$ac_configure_args_raw
1791
1792 _ACEOF
1793 exec 5>>config.log
1794 {
1795 cat <<_ASUNAME
1796 ## --------- ##
1797 ## Platform. ##
1798 ## --------- ##
1799
1800 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1801 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1802 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1803 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1804 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1805
1806 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1807 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1808
1809 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1810 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1811 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1812 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1813 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1814 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1815 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1816
1817 _ASUNAME
1818
1819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1820 for as_dir in $PATH
1821 do
1822 IFS=$as_save_IFS
1823 case $as_dir in #(((
1824 '') as_dir=./ ;;
1825 */) ;;
1826 *) as_dir=$as_dir/ ;;
1827 esac
1828 printf "%s\n" "PATH: $as_dir"
1829 done
1830 IFS=$as_save_IFS
1831
1832 } >&5
1833
1834 cat >&5 <<_ACEOF
1835
1836
1837 ## ----------- ##
1838 ## Core tests. ##
1839 ## ----------- ##
1840
1841 _ACEOF
1842
1843
1844 # Keep a trace of the command line.
1845 # Strip out --no-create and --no-recursion so they do not pile up.
1846 # Strip out --silent because we don't want to record it for future runs.
1847 # Also quote any args containing shell meta-characters.
1848 # Make two passes to allow for proper duplicate-argument suppression.
1849 ac_configure_args=
1850 ac_configure_args0=
1851 ac_configure_args1=
1852 ac_must_keep_next=false
1853 for ac_pass in 1 2
1854 do
1855 for ac_arg
1856 do
1857 case $ac_arg in
1858 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1859 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1860 | -silent | --silent | --silen | --sile | --sil)
1861 continue ;;
1862 *\'*)
1863 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1864 esac
1865 case $ac_pass in
1866 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1867 2)
1868 as_fn_append ac_configure_args1 " '$ac_arg'"
1869 if test $ac_must_keep_next = true; then
1870 ac_must_keep_next=false # Got value, back to normal.
1871 else
1872 case $ac_arg in
1873 *=* | --config-cache | -C | -disable-* | --disable-* \
1874 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1875 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1876 | -with-* | --with-* | -without-* | --without-* | --x)
1877 case "$ac_configure_args0 " in
1878 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1879 esac
1880 ;;
1881 -* ) ac_must_keep_next=true ;;
1882 esac
1883 fi
1884 as_fn_append ac_configure_args " '$ac_arg'"
1885 ;;
1886 esac
1887 done
1888 done
1889 { ac_configure_args0=; unset ac_configure_args0;}
1890 { ac_configure_args1=; unset ac_configure_args1;}
1891
1892 # When interrupted or exit'd, cleanup temporary files, and complete
1893 # config.log. We remove comments because anyway the quotes in there
1894 # would cause problems or look ugly.
1895 # WARNING: Use '\'' to represent an apostrophe within the trap.
1896 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1897 trap 'exit_status=$?
1898 # Sanitize IFS.
1899 IFS=" "" $as_nl"
1900 # Save into config.log some information that might help in debugging.
1901 {
1902 echo
1903
1904 printf "%s\n" "## ---------------- ##
1905 ## Cache variables. ##
1906 ## ---------------- ##"
1907 echo
1908 # The following way of writing the cache mishandles newlines in values,
1909 (
1910 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1911 eval ac_val=\$$ac_var
1912 case $ac_val in #(
1913 *${as_nl}*)
1914 case $ac_var in #(
1915 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1916 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1917 esac
1918 case $ac_var in #(
1919 _ | IFS | as_nl) ;; #(
1920 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1921 *) { eval $ac_var=; unset $ac_var;} ;;
1922 esac ;;
1923 esac
1924 done
1925 (set) 2>&1 |
1926 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1927 *${as_nl}ac_space=\ *)
1928 sed -n \
1929 "s/'\''/'\''\\\\'\'''\''/g;
1930 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1931 ;; #(
1932 *)
1933 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1934 ;;
1935 esac |
1936 sort
1937 )
1938 echo
1939
1940 printf "%s\n" "## ----------------- ##
1941 ## Output variables. ##
1942 ## ----------------- ##"
1943 echo
1944 for ac_var in $ac_subst_vars
1945 do
1946 eval ac_val=\$$ac_var
1947 case $ac_val in
1948 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1949 esac
1950 printf "%s\n" "$ac_var='\''$ac_val'\''"
1951 done | sort
1952 echo
1953
1954 if test -n "$ac_subst_files"; then
1955 printf "%s\n" "## ------------------- ##
1956 ## File substitutions. ##
1957 ## ------------------- ##"
1958 echo
1959 for ac_var in $ac_subst_files
1960 do
1961 eval ac_val=\$$ac_var
1962 case $ac_val in
1963 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1964 esac
1965 printf "%s\n" "$ac_var='\''$ac_val'\''"
1966 done | sort
1967 echo
1968 fi
1969
1970 if test -s confdefs.h; then
1971 printf "%s\n" "## ----------- ##
1972 ## confdefs.h. ##
1973 ## ----------- ##"
1974 echo
1975 cat confdefs.h
1976 echo
1977 fi
1978 test "$ac_signal" != 0 &&
1979 printf "%s\n" "$as_me: caught signal $ac_signal"
1980 printf "%s\n" "$as_me: exit $exit_status"
1981 } >&5
1982 rm -f core *.core core.conftest.* &&
1983 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1984 exit $exit_status
1985 ' 0
1986 for ac_signal in 1 2 13 15; do
1987 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1988 done
1989 ac_signal=0
1990
1991 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1992 rm -f -r conftest* confdefs.h
1993
1994 printf "%s\n" "/* confdefs.h */" > confdefs.h
1995
1996 # Predefined preprocessor variables.
1997
1998 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1999
2000 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2001
2002 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2003
2004 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2005
2006 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2007
2008 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2009
2010
2011 # Let the site file select an alternate cache file if it wants to.
2012 # Prefer an explicitly selected file to automatically selected ones.
2013 if test -n "$CONFIG_SITE"; then
2014 ac_site_files="$CONFIG_SITE"
2015 elif test "x$prefix" != xNONE; then
2016 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2017 else
2018 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2019 fi
2020
2021 for ac_site_file in $ac_site_files
2022 do
2023 case $ac_site_file in #(
2024 */*) :
2025 ;; #(
2026 *) :
2027 ac_site_file=./$ac_site_file ;;
2028 esac
2029 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2031 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2032 sed 's/^/| /' "$ac_site_file" >&5
2033 . "$ac_site_file" \
2034 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2035 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2036 as_fn_error $? "failed to load site script $ac_site_file
2037 See \`config.log' for more details" "$LINENO" 5; }
2038 fi
2039 done
2040
2041 if test -r "$cache_file"; then
2042 # Some versions of bash will fail to source /dev/null (special files
2043 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2044 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2046 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2047 case $cache_file in
2048 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2049 *) . "./$cache_file";;
2050 esac
2051 fi
2052 else
2053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2054 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2055 >$cache_file
2056 fi
2057
2058 # Test code for whether the C++ compiler supports C++98 (global declarations)
2059 ac_cxx_conftest_cxx98_globals='
2060 // Does the compiler advertise C++98 conformance?
2061 #if !defined __cplusplus || __cplusplus < 199711L
2062 # error "Compiler does not advertise C++98 conformance"
2063 #endif
2064
2065 // These inclusions are to reject old compilers that
2066 // lack the unsuffixed header files.
2067 #include <cstdlib>
2068 #include <exception>
2069
2070 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2071 extern void assert (int);
2072 namespace std {
2073 extern int strcmp (const char *, const char *);
2074 }
2075
2076 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2077 using std::exception;
2078 using std::strcmp;
2079
2080 namespace {
2081
2082 void test_exception_syntax()
2083 {
2084 try {
2085 throw "test";
2086 } catch (const char *s) {
2087 // Extra parentheses suppress a warning when building autoconf itself,
2088 // due to lint rules shared with more typical C programs.
2089 assert (!(strcmp) (s, "test"));
2090 }
2091 }
2092
2093 template <typename T> struct test_template
2094 {
2095 T const val;
2096 explicit test_template(T t) : val(t) {}
2097 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2098 };
2099
2100 } // anonymous namespace
2101 '
2102
2103 # Test code for whether the C++ compiler supports C++98 (body of main)
2104 ac_cxx_conftest_cxx98_main='
2105 assert (argc);
2106 assert (! argv[0]);
2107 {
2108 test_exception_syntax ();
2109 test_template<double> tt (2.0);
2110 assert (tt.add (4) == 6.0);
2111 assert (true && !false);
2112 }
2113 '
2114
2115 # Test code for whether the C++ compiler supports C++11 (global declarations)
2116 ac_cxx_conftest_cxx11_globals='
2117 // Does the compiler advertise C++ 2011 conformance?
2118 #if !defined __cplusplus || __cplusplus < 201103L
2119 # error "Compiler does not advertise C++11 conformance"
2120 #endif
2121
2122 namespace cxx11test
2123 {
2124 constexpr int get_val() { return 20; }
2125
2126 struct testinit
2127 {
2128 int i;
2129 double d;
2130 };
2131
2132 class delegate
2133 {
2134 public:
2135 delegate(int n) : n(n) {}
2136 delegate(): delegate(2354) {}
2137
2138 virtual int getval() { return this->n; };
2139 protected:
2140 int n;
2141 };
2142
2143 class overridden : public delegate
2144 {
2145 public:
2146 overridden(int n): delegate(n) {}
2147 virtual int getval() override final { return this->n * 2; }
2148 };
2149
2150 class nocopy
2151 {
2152 public:
2153 nocopy(int i): i(i) {}
2154 nocopy() = default;
2155 nocopy(const nocopy&) = delete;
2156 nocopy & operator=(const nocopy&) = delete;
2157 private:
2158 int i;
2159 };
2160
2161 // for testing lambda expressions
2162 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2163 {
2164 return f(v);
2165 }
2166
2167 // for testing variadic templates and trailing return types
2168 template <typename V> auto sum(V first) -> V
2169 {
2170 return first;
2171 }
2172 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2173 {
2174 return first + sum(rest...);
2175 }
2176 }
2177 '
2178
2179 # Test code for whether the C++ compiler supports C++11 (body of main)
2180 ac_cxx_conftest_cxx11_main='
2181 {
2182 // Test auto and decltype
2183 auto a1 = 6538;
2184 auto a2 = 48573953.4;
2185 auto a3 = "String literal";
2186
2187 int total = 0;
2188 for (auto i = a3; *i; ++i) { total += *i; }
2189
2190 decltype(a2) a4 = 34895.034;
2191 }
2192 {
2193 // Test constexpr
2194 short sa[cxx11test::get_val()] = { 0 };
2195 }
2196 {
2197 // Test initializer lists
2198 cxx11test::testinit il = { 4323, 435234.23544 };
2199 }
2200 {
2201 // Test range-based for
2202 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2203 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2204 for (auto &x : array) { x += 23; }
2205 }
2206 {
2207 // Test lambda expressions
2208 using cxx11test::eval;
2209 assert (eval ([](int x) { return x*2; }, 21) == 42);
2210 double d = 2.0;
2211 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2212 assert (d == 5.0);
2213 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2214 assert (d == 5.0);
2215 }
2216 {
2217 // Test use of variadic templates
2218 using cxx11test::sum;
2219 auto a = sum(1);
2220 auto b = sum(1, 2);
2221 auto c = sum(1.0, 2.0, 3.0);
2222 }
2223 {
2224 // Test constructor delegation
2225 cxx11test::delegate d1;
2226 cxx11test::delegate d2();
2227 cxx11test::delegate d3(45);
2228 }
2229 {
2230 // Test override and final
2231 cxx11test::overridden o1(55464);
2232 }
2233 {
2234 // Test nullptr
2235 char *c = nullptr;
2236 }
2237 {
2238 // Test template brackets
2239 test_template<::test_template<int>> v(test_template<int>(12));
2240 }
2241 {
2242 // Unicode literals
2243 char const *utf8 = u8"UTF-8 string \u2500";
2244 char16_t const *utf16 = u"UTF-8 string \u2500";
2245 char32_t const *utf32 = U"UTF-32 string \u2500";
2246 }
2247 '
2248
2249 # Test code for whether the C compiler supports C++11 (complete).
2250 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2251 ${ac_cxx_conftest_cxx11_globals}
2252
2253 int
2254 main (int argc, char **argv)
2255 {
2256 int ok = 0;
2257 ${ac_cxx_conftest_cxx98_main}
2258 ${ac_cxx_conftest_cxx11_main}
2259 return ok;
2260 }
2261 "
2262
2263 # Test code for whether the C compiler supports C++98 (complete).
2264 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2265 int
2266 main (int argc, char **argv)
2267 {
2268 int ok = 0;
2269 ${ac_cxx_conftest_cxx98_main}
2270 return ok;
2271 }
2272 "
2273
2274 # Test code for whether the C compiler supports C89 (global declarations)
2275 ac_c_conftest_c89_globals='
2276 /* Does the compiler advertise C89 conformance?
2277 Do not test the value of __STDC__, because some compilers set it to 0
2278 while being otherwise adequately conformant. */
2279 #if !defined __STDC__
2280 # error "Compiler does not advertise C89 conformance"
2281 #endif
2282
2283 #include <stddef.h>
2284 #include <stdarg.h>
2285 struct stat;
2286 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2287 struct buf { int x; };
2288 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2289 static char *e (p, i)
2290 char **p;
2291 int i;
2292 {
2293 return p[i];
2294 }
2295 static char *f (char * (*g) (char **, int), char **p, ...)
2296 {
2297 char *s;
2298 va_list v;
2299 va_start (v,p);
2300 s = g (p, va_arg (v,int));
2301 va_end (v);
2302 return s;
2303 }
2304
2305 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2306 function prototypes and stuff, but not \xHH hex character constants.
2307 These do not provoke an error unfortunately, instead are silently treated
2308 as an "x". The following induces an error, until -std is added to get
2309 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2310 array size at least. It is necessary to write \x00 == 0 to get something
2311 that is true only with -std. */
2312 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2313
2314 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2315 inside strings and character constants. */
2316 #define FOO(x) '\''x'\''
2317 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2318
2319 int test (int i, double x);
2320 struct s1 {int (*f) (int a);};
2321 struct s2 {int (*f) (double a);};
2322 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2323 int, int);'
2324
2325 # Test code for whether the C compiler supports C89 (body of main).
2326 ac_c_conftest_c89_main='
2327 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2328 '
2329
2330 # Test code for whether the C compiler supports C99 (global declarations)
2331 ac_c_conftest_c99_globals='
2332 // Does the compiler advertise C99 conformance?
2333 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2334 # error "Compiler does not advertise C99 conformance"
2335 #endif
2336
2337 #include <stdbool.h>
2338 extern int puts (const char *);
2339 extern int printf (const char *, ...);
2340 extern int dprintf (int, const char *, ...);
2341 extern void *malloc (size_t);
2342
2343 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2344 // dprintf is used instead of fprintf to avoid needing to declare
2345 // FILE and stderr.
2346 #define debug(...) dprintf (2, __VA_ARGS__)
2347 #define showlist(...) puts (#__VA_ARGS__)
2348 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2349 static void
2350 test_varargs_macros (void)
2351 {
2352 int x = 1234;
2353 int y = 5678;
2354 debug ("Flag");
2355 debug ("X = %d\n", x);
2356 showlist (The first, second, and third items.);
2357 report (x>y, "x is %d but y is %d", x, y);
2358 }
2359
2360 // Check long long types.
2361 #define BIG64 18446744073709551615ull
2362 #define BIG32 4294967295ul
2363 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2364 #if !BIG_OK
2365 #error "your preprocessor is broken"
2366 #endif
2367 #if BIG_OK
2368 #else
2369 #error "your preprocessor is broken"
2370 #endif
2371 static long long int bignum = -9223372036854775807LL;
2372 static unsigned long long int ubignum = BIG64;
2373
2374 struct incomplete_array
2375 {
2376 int datasize;
2377 double data[];
2378 };
2379
2380 struct named_init {
2381 int number;
2382 const wchar_t *name;
2383 double average;
2384 };
2385
2386 typedef const char *ccp;
2387
2388 static inline int
2389 test_restrict (ccp restrict text)
2390 {
2391 // See if C++-style comments work.
2392 // Iterate through items via the restricted pointer.
2393 // Also check for declarations in for loops.
2394 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2395 continue;
2396 return 0;
2397 }
2398
2399 // Check varargs and va_copy.
2400 static bool
2401 test_varargs (const char *format, ...)
2402 {
2403 va_list args;
2404 va_start (args, format);
2405 va_list args_copy;
2406 va_copy (args_copy, args);
2407
2408 const char *str = "";
2409 int number = 0;
2410 float fnumber = 0;
2411
2412 while (*format)
2413 {
2414 switch (*format++)
2415 {
2416 case '\''s'\'': // string
2417 str = va_arg (args_copy, const char *);
2418 break;
2419 case '\''d'\'': // int
2420 number = va_arg (args_copy, int);
2421 break;
2422 case '\''f'\'': // float
2423 fnumber = va_arg (args_copy, double);
2424 break;
2425 default:
2426 break;
2427 }
2428 }
2429 va_end (args_copy);
2430 va_end (args);
2431
2432 return *str && number && fnumber;
2433 }
2434 '
2435
2436 # Test code for whether the C compiler supports C99 (body of main).
2437 ac_c_conftest_c99_main='
2438 // Check bool.
2439 _Bool success = false;
2440 success |= (argc != 0);
2441
2442 // Check restrict.
2443 if (test_restrict ("String literal") == 0)
2444 success = true;
2445 char *restrict newvar = "Another string";
2446
2447 // Check varargs.
2448 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2449 test_varargs_macros ();
2450
2451 // Check flexible array members.
2452 struct incomplete_array *ia =
2453 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2454 ia->datasize = 10;
2455 for (int i = 0; i < ia->datasize; ++i)
2456 ia->data[i] = i * 1.234;
2457
2458 // Check named initializers.
2459 struct named_init ni = {
2460 .number = 34,
2461 .name = L"Test wide string",
2462 .average = 543.34343,
2463 };
2464
2465 ni.number = 58;
2466
2467 int dynamic_array[ni.number];
2468 dynamic_array[0] = argv[0][0];
2469 dynamic_array[ni.number - 1] = 543;
2470
2471 // work around unused variable warnings
2472 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2473 || dynamic_array[ni.number - 1] != 543);
2474 '
2475
2476 # Test code for whether the C compiler supports C11 (global declarations)
2477 ac_c_conftest_c11_globals='
2478 // Does the compiler advertise C11 conformance?
2479 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2480 # error "Compiler does not advertise C11 conformance"
2481 #endif
2482
2483 // Check _Alignas.
2484 char _Alignas (double) aligned_as_double;
2485 char _Alignas (0) no_special_alignment;
2486 extern char aligned_as_int;
2487 char _Alignas (0) _Alignas (int) aligned_as_int;
2488
2489 // Check _Alignof.
2490 enum
2491 {
2492 int_alignment = _Alignof (int),
2493 int_array_alignment = _Alignof (int[100]),
2494 char_alignment = _Alignof (char)
2495 };
2496 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2497
2498 // Check _Noreturn.
2499 int _Noreturn does_not_return (void) { for (;;) continue; }
2500
2501 // Check _Static_assert.
2502 struct test_static_assert
2503 {
2504 int x;
2505 _Static_assert (sizeof (int) <= sizeof (long int),
2506 "_Static_assert does not work in struct");
2507 long int y;
2508 };
2509
2510 // Check UTF-8 literals.
2511 #define u8 syntax error!
2512 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2513
2514 // Check duplicate typedefs.
2515 typedef long *long_ptr;
2516 typedef long int *long_ptr;
2517 typedef long_ptr long_ptr;
2518
2519 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2520 struct anonymous
2521 {
2522 union {
2523 struct { int i; int j; };
2524 struct { int k; long int l; } w;
2525 };
2526 int m;
2527 } v1;
2528 '
2529
2530 # Test code for whether the C compiler supports C11 (body of main).
2531 ac_c_conftest_c11_main='
2532 _Static_assert ((offsetof (struct anonymous, i)
2533 == offsetof (struct anonymous, w.k)),
2534 "Anonymous union alignment botch");
2535 v1.i = 2;
2536 v1.w.k = 5;
2537 ok |= v1.i != 5;
2538 '
2539
2540 # Test code for whether the C compiler supports C11 (complete).
2541 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2542 ${ac_c_conftest_c99_globals}
2543 ${ac_c_conftest_c11_globals}
2544
2545 int
2546 main (int argc, char **argv)
2547 {
2548 int ok = 0;
2549 ${ac_c_conftest_c89_main}
2550 ${ac_c_conftest_c99_main}
2551 ${ac_c_conftest_c11_main}
2552 return ok;
2553 }
2554 "
2555
2556 # Test code for whether the C compiler supports C99 (complete).
2557 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2558 ${ac_c_conftest_c99_globals}
2559
2560 int
2561 main (int argc, char **argv)
2562 {
2563 int ok = 0;
2564 ${ac_c_conftest_c89_main}
2565 ${ac_c_conftest_c99_main}
2566 return ok;
2567 }
2568 "
2569
2570 # Test code for whether the C compiler supports C89 (complete).
2571 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2572
2573 int
2574 main (int argc, char **argv)
2575 {
2576 int ok = 0;
2577 ${ac_c_conftest_c89_main}
2578 return ok;
2579 }
2580 "
2581
2582 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2583 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2584 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2585 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2586 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2587 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2588 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2589 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2590 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2591
2592 # Auxiliary files required by this configure script.
2593 ac_aux_files="compile missing install-sh"
2594
2595 # Locations in which to look for auxiliary files.
2596 ac_aux_dir_candidates="${srcdir}/config"
2597
2598 # Search for a directory containing all of the required auxiliary files,
2599 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2600 # If we don't find one directory that contains all the files we need,
2601 # we report the set of missing files from the *first* directory in
2602 # $ac_aux_dir_candidates and give up.
2603 ac_missing_aux_files=""
2604 ac_first_candidate=:
2605 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607 as_found=false
2608 for as_dir in $ac_aux_dir_candidates
2609 do
2610 IFS=$as_save_IFS
2611 case $as_dir in #(((
2612 '') as_dir=./ ;;
2613 */) ;;
2614 *) as_dir=$as_dir/ ;;
2615 esac
2616 as_found=:
2617
2618 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2619 ac_aux_dir_found=yes
2620 ac_install_sh=
2621 for ac_aux in $ac_aux_files
2622 do
2623 # As a special case, if "install-sh" is required, that requirement
2624 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2625 # and $ac_install_sh is set appropriately for whichever one is found.
2626 if test x"$ac_aux" = x"install-sh"
2627 then
2628 if test -f "${as_dir}install-sh"; then
2629 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2630 ac_install_sh="${as_dir}install-sh -c"
2631 elif test -f "${as_dir}install.sh"; then
2632 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2633 ac_install_sh="${as_dir}install.sh -c"
2634 elif test -f "${as_dir}shtool"; then
2635 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2636 ac_install_sh="${as_dir}shtool install -c"
2637 else
2638 ac_aux_dir_found=no
2639 if $ac_first_candidate; then
2640 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2641 else
2642 break
2643 fi
2644 fi
2645 else
2646 if test -f "${as_dir}${ac_aux}"; then
2647 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2648 else
2649 ac_aux_dir_found=no
2650 if $ac_first_candidate; then
2651 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2652 else
2653 break
2654 fi
2655 fi
2656 fi
2657 done
2658 if test "$ac_aux_dir_found" = yes; then
2659 ac_aux_dir="$as_dir"
2660 break
2661 fi
2662 ac_first_candidate=false
2663
2664 as_found=false
2665 done
2666 IFS=$as_save_IFS
2667 if $as_found
2668 then :
2669
2670 else $as_nop
2671 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2672 fi
2673
2674
2675 # These three variables are undocumented and unsupported,
2676 # and are intended to be withdrawn in a future Autoconf release.
2677 # They can cause serious problems if a builder's source tree is in a directory
2678 # whose full name contains unusual characters.
2679 if test -f "${ac_aux_dir}config.guess"; then
2680 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2681 fi
2682 if test -f "${ac_aux_dir}config.sub"; then
2683 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2684 fi
2685 if test -f "$ac_aux_dir/configure"; then
2686 ac_configure="$SHELL ${ac_aux_dir}configure"
2687 fi
2688
2689 # Check that the precious variables saved in the cache have kept the same
2690 # value.
2691 ac_cache_corrupted=false
2692 for ac_var in $ac_precious_vars; do
2693 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2694 eval ac_new_set=\$ac_env_${ac_var}_set
2695 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2696 eval ac_new_val=\$ac_env_${ac_var}_value
2697 case $ac_old_set,$ac_new_set in
2698 set,)
2699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2700 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2701 ac_cache_corrupted=: ;;
2702 ,set)
2703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2704 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2705 ac_cache_corrupted=: ;;
2706 ,);;
2707 *)
2708 if test "x$ac_old_val" != "x$ac_new_val"; then
2709 # differences in whitespace do not lead to failure.
2710 ac_old_val_w=`echo x $ac_old_val`
2711 ac_new_val_w=`echo x $ac_new_val`
2712 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2714 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2715 ac_cache_corrupted=:
2716 else
2717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2718 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2719 eval $ac_var=\$ac_old_val
2720 fi
2721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2722 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2724 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2725 fi;;
2726 esac
2727 # Pass precious variables to config.status.
2728 if test "$ac_new_set" = set; then
2729 case $ac_new_val in
2730 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2731 *) ac_arg=$ac_var=$ac_new_val ;;
2732 esac
2733 case " $ac_configure_args " in
2734 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2735 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2736 esac
2737 fi
2738 done
2739 if $ac_cache_corrupted; then
2740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2741 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2743 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2744 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2745 and start over" "$LINENO" 5
2746 fi
2747 ## -------------------- ##
2748 ## Main body of script. ##
2749 ## -------------------- ##
2750
2751 ac_ext=c
2752 ac_cpp='$CPP $CPPFLAGS'
2753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2756
2757
2758
2759
2760 ac_config_headers="$ac_config_headers config.h"
2761
2762 am__api_version='1.16'
2763
2764
2765
2766 # Find a good install program. We prefer a C program (faster),
2767 # so one script is as good as another. But avoid the broken or
2768 # incompatible versions:
2769 # SysV /etc/install, /usr/sbin/install
2770 # SunOS /usr/etc/install
2771 # IRIX /sbin/install
2772 # AIX /bin/install
2773 # AmigaOS /C/install, which installs bootblocks on floppy discs
2774 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2775 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2776 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2777 # OS/2's system install, which has a completely different semantic
2778 # ./install, which can be erroneously created by make from ./install.sh.
2779 # Reject install programs that cannot install multiple files.
2780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2781 printf %s "checking for a BSD-compatible install... " >&6; }
2782 if test -z "$INSTALL"; then
2783 if test ${ac_cv_path_install+y}
2784 then :
2785 printf %s "(cached) " >&6
2786 else $as_nop
2787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788 for as_dir in $PATH
2789 do
2790 IFS=$as_save_IFS
2791 case $as_dir in #(((
2792 '') as_dir=./ ;;
2793 */) ;;
2794 *) as_dir=$as_dir/ ;;
2795 esac
2796 # Account for fact that we put trailing slashes in our PATH walk.
2797 case $as_dir in #((
2798 ./ | /[cC]/* | \
2799 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2800 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2801 /usr/ucb/* ) ;;
2802 *)
2803 # OSF1 and SCO ODT 3.0 have their own names for install.
2804 # Don't use installbsd from OSF since it installs stuff as root
2805 # by default.
2806 for ac_prog in ginstall scoinst install; do
2807 for ac_exec_ext in '' $ac_executable_extensions; do
2808 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2809 if test $ac_prog = install &&
2810 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2811 # AIX install. It has an incompatible calling convention.
2812 :
2813 elif test $ac_prog = install &&
2814 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2815 # program-specific install script used by HP pwplus--don't use.
2816 :
2817 else
2818 rm -rf conftest.one conftest.two conftest.dir
2819 echo one > conftest.one
2820 echo two > conftest.two
2821 mkdir conftest.dir
2822 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2823 test -s conftest.one && test -s conftest.two &&
2824 test -s conftest.dir/conftest.one &&
2825 test -s conftest.dir/conftest.two
2826 then
2827 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2828 break 3
2829 fi
2830 fi
2831 fi
2832 done
2833 done
2834 ;;
2835 esac
2836
2837 done
2838 IFS=$as_save_IFS
2839
2840 rm -rf conftest.one conftest.two conftest.dir
2841
2842 fi
2843 if test ${ac_cv_path_install+y}; then
2844 INSTALL=$ac_cv_path_install
2845 else
2846 # As a last resort, use the slow shell script. Don't cache a
2847 # value for INSTALL within a source directory, because that will
2848 # break other packages using the cache if that directory is
2849 # removed, or if the value is a relative name.
2850 INSTALL=$ac_install_sh
2851 fi
2852 fi
2853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2854 printf "%s\n" "$INSTALL" >&6; }
2855
2856 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2857 # It thinks the first close brace ends the variable substitution.
2858 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2859
2860 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2861
2862 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2863
2864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2865 printf %s "checking whether build environment is sane... " >&6; }
2866 # Reject unsafe characters in $srcdir or the absolute working directory
2867 # name. Accept space and tab only in the latter.
2868 am_lf='
2869 '
2870 case `pwd` in
2871 *[\\\"\#\$\&\'\`$am_lf]*)
2872 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2873 esac
2874 case $srcdir in
2875 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2876 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2877 esac
2878
2879 # Do 'set' in a subshell so we don't clobber the current shell's
2880 # arguments. Must try -L first in case configure is actually a
2881 # symlink; some systems play weird games with the mod time of symlinks
2882 # (eg FreeBSD returns the mod time of the symlink's containing
2883 # directory).
2884 if (
2885 am_has_slept=no
2886 for am_try in 1 2; do
2887 echo "timestamp, slept: $am_has_slept" > conftest.file
2888 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2889 if test "$*" = "X"; then
2890 # -L didn't work.
2891 set X `ls -t "$srcdir/configure" conftest.file`
2892 fi
2893 if test "$*" != "X $srcdir/configure conftest.file" \
2894 && test "$*" != "X conftest.file $srcdir/configure"; then
2895
2896 # If neither matched, then we have a broken ls. This can happen
2897 # if, for instance, CONFIG_SHELL is bash and it inherits a
2898 # broken ls alias from the environment. This has actually
2899 # happened. Such a system could not be considered "sane".
2900 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2901 alias in your environment" "$LINENO" 5
2902 fi
2903 if test "$2" = conftest.file || test $am_try -eq 2; then
2904 break
2905 fi
2906 # Just in case.
2907 sleep 1
2908 am_has_slept=yes
2909 done
2910 test "$2" = conftest.file
2911 )
2912 then
2913 # Ok.
2914 :
2915 else
2916 as_fn_error $? "newly created file is older than distributed files!
2917 Check your system clock" "$LINENO" 5
2918 fi
2919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2920 printf "%s\n" "yes" >&6; }
2921 # If we didn't sleep, we still need to ensure time stamps of config.status and
2922 # generated files are strictly newer.
2923 am_sleep_pid=
2924 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2925 ( sleep 1 ) &
2926 am_sleep_pid=$!
2927 fi
2928
2929 rm -f conftest.file
2930
2931 test "$program_prefix" != NONE &&
2932 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2933 # Use a double $ so make ignores it.
2934 test "$program_suffix" != NONE &&
2935 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2936 # Double any \ or $.
2937 # By default was `s,x,x', remove it if useless.
2938 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2939 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2940
2941
2942 # Expand $ac_aux_dir to an absolute path.
2943 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2944
2945
2946 if test x"${MISSING+set}" != xset; then
2947 MISSING="\${SHELL} '$am_aux_dir/missing'"
2948 fi
2949 # Use eval to expand $SHELL
2950 if eval "$MISSING --is-lightweight"; then
2951 am_missing_run="$MISSING "
2952 else
2953 am_missing_run=
2954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2955 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2956 fi
2957
2958 if test x"${install_sh+set}" != xset; then
2959 case $am_aux_dir in
2960 *\ * | *\ *)
2961 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2962 *)
2963 install_sh="\${SHELL} $am_aux_dir/install-sh"
2964 esac
2965 fi
2966
2967 # Installed binaries are usually stripped using 'strip' when the user
2968 # run "make install-strip". However 'strip' might not be the right
2969 # tool to use in cross-compilation environments, therefore Automake
2970 # will honor the 'STRIP' environment variable to overrule this program.
2971 if test "$cross_compiling" != no; then
2972 if test -n "$ac_tool_prefix"; then
2973 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2974 set dummy ${ac_tool_prefix}strip; ac_word=$2
2975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2976 printf %s "checking for $ac_word... " >&6; }
2977 if test ${ac_cv_prog_STRIP+y}
2978 then :
2979 printf %s "(cached) " >&6
2980 else $as_nop
2981 if test -n "$STRIP"; then
2982 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2983 else
2984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985 for as_dir in $PATH
2986 do
2987 IFS=$as_save_IFS
2988 case $as_dir in #(((
2989 '') as_dir=./ ;;
2990 */) ;;
2991 *) as_dir=$as_dir/ ;;
2992 esac
2993 for ac_exec_ext in '' $ac_executable_extensions; do
2994 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2995 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2996 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2997 break 2
2998 fi
2999 done
3000 done
3001 IFS=$as_save_IFS
3002
3003 fi
3004 fi
3005 STRIP=$ac_cv_prog_STRIP
3006 if test -n "$STRIP"; then
3007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3008 printf "%s\n" "$STRIP" >&6; }
3009 else
3010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3011 printf "%s\n" "no" >&6; }
3012 fi
3013
3014
3015 fi
3016 if test -z "$ac_cv_prog_STRIP"; then
3017 ac_ct_STRIP=$STRIP
3018 # Extract the first word of "strip", so it can be a program name with args.
3019 set dummy strip; ac_word=$2
3020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3021 printf %s "checking for $ac_word... " >&6; }
3022 if test ${ac_cv_prog_ac_ct_STRIP+y}
3023 then :
3024 printf %s "(cached) " >&6
3025 else $as_nop
3026 if test -n "$ac_ct_STRIP"; then
3027 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3028 else
3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030 for as_dir in $PATH
3031 do
3032 IFS=$as_save_IFS
3033 case $as_dir in #(((
3034 '') as_dir=./ ;;
3035 */) ;;
3036 *) as_dir=$as_dir/ ;;
3037 esac
3038 for ac_exec_ext in '' $ac_executable_extensions; do
3039 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3040 ac_cv_prog_ac_ct_STRIP="strip"
3041 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3042 break 2
3043 fi
3044 done
3045 done
3046 IFS=$as_save_IFS
3047
3048 fi
3049 fi
3050 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3051 if test -n "$ac_ct_STRIP"; then
3052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3053 printf "%s\n" "$ac_ct_STRIP" >&6; }
3054 else
3055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3056 printf "%s\n" "no" >&6; }
3057 fi
3058
3059 if test "x$ac_ct_STRIP" = x; then
3060 STRIP=":"
3061 else
3062 case $cross_compiling:$ac_tool_warned in
3063 yes:)
3064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3065 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3066 ac_tool_warned=yes ;;
3067 esac
3068 STRIP=$ac_ct_STRIP
3069 fi
3070 else
3071 STRIP="$ac_cv_prog_STRIP"
3072 fi
3073
3074 fi
3075 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3076
3077
3078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3079 printf %s "checking for a race-free mkdir -p... " >&6; }
3080 if test -z "$MKDIR_P"; then
3081 if test ${ac_cv_path_mkdir+y}
3082 then :
3083 printf %s "(cached) " >&6
3084 else $as_nop
3085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3087 do
3088 IFS=$as_save_IFS
3089 case $as_dir in #(((
3090 '') as_dir=./ ;;
3091 */) ;;
3092 *) as_dir=$as_dir/ ;;
3093 esac
3094 for ac_prog in mkdir gmkdir; do
3095 for ac_exec_ext in '' $ac_executable_extensions; do
3096 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3097 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3098 'mkdir ('*'coreutils) '* | \
3099 'BusyBox '* | \
3100 'mkdir (fileutils) '4.1*)
3101 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3102 break 3;;
3103 esac
3104 done
3105 done
3106 done
3107 IFS=$as_save_IFS
3108
3109 fi
3110
3111 test -d ./--version && rmdir ./--version
3112 if test ${ac_cv_path_mkdir+y}; then
3113 MKDIR_P="$ac_cv_path_mkdir -p"
3114 else
3115 # As a last resort, use the slow shell script. Don't cache a
3116 # value for MKDIR_P within a source directory, because that will
3117 # break other packages using the cache if that directory is
3118 # removed, or if the value is a relative name.
3119 MKDIR_P="$ac_install_sh -d"
3120 fi
3121 fi
3122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3123 printf "%s\n" "$MKDIR_P" >&6; }
3124
3125 for ac_prog in gawk mawk nawk awk
3126 do
3127 # Extract the first word of "$ac_prog", so it can be a program name with args.
3128 set dummy $ac_prog; ac_word=$2
3129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3130 printf %s "checking for $ac_word... " >&6; }
3131 if test ${ac_cv_prog_AWK+y}
3132 then :
3133 printf %s "(cached) " >&6
3134 else $as_nop
3135 if test -n "$AWK"; then
3136 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3137 else
3138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3139 for as_dir in $PATH
3140 do
3141 IFS=$as_save_IFS
3142 case $as_dir in #(((
3143 '') as_dir=./ ;;
3144 */) ;;
3145 *) as_dir=$as_dir/ ;;
3146 esac
3147 for ac_exec_ext in '' $ac_executable_extensions; do
3148 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3149 ac_cv_prog_AWK="$ac_prog"
3150 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3151 break 2
3152 fi
3153 done
3154 done
3155 IFS=$as_save_IFS
3156
3157 fi
3158 fi
3159 AWK=$ac_cv_prog_AWK
3160 if test -n "$AWK"; then
3161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3162 printf "%s\n" "$AWK" >&6; }
3163 else
3164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3165 printf "%s\n" "no" >&6; }
3166 fi
3167
3168
3169 test -n "$AWK" && break
3170 done
3171
3172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3173 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3174 set x ${MAKE-make}
3175 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3176 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3177 then :
3178 printf %s "(cached) " >&6
3179 else $as_nop
3180 cat >conftest.make <<\_ACEOF
3181 SHELL = /bin/sh
3182 all:
3183 @echo '@@@%%%=$(MAKE)=@@@%%%'
3184 _ACEOF
3185 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3186 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3187 *@@@%%%=?*=@@@%%%*)
3188 eval ac_cv_prog_make_${ac_make}_set=yes;;
3189 *)
3190 eval ac_cv_prog_make_${ac_make}_set=no;;
3191 esac
3192 rm -f conftest.make
3193 fi
3194 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3196 printf "%s\n" "yes" >&6; }
3197 SET_MAKE=
3198 else
3199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3200 printf "%s\n" "no" >&6; }
3201 SET_MAKE="MAKE=${MAKE-make}"
3202 fi
3203
3204 rm -rf .tst 2>/dev/null
3205 mkdir .tst 2>/dev/null
3206 if test -d .tst; then
3207 am__leading_dot=.
3208 else
3209 am__leading_dot=_
3210 fi
3211 rmdir .tst 2>/dev/null
3212
3213 # Check whether --enable-silent-rules was given.
3214 if test ${enable_silent_rules+y}
3215 then :
3216 enableval=$enable_silent_rules;
3217 fi
3218
3219 case $enable_silent_rules in # (((
3220 yes) AM_DEFAULT_VERBOSITY=0;;
3221 no) AM_DEFAULT_VERBOSITY=1;;
3222 *) AM_DEFAULT_VERBOSITY=1;;
3223 esac
3224 am_make=${MAKE-make}
3225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3226 printf %s "checking whether $am_make supports nested variables... " >&6; }
3227 if test ${am_cv_make_support_nested_variables+y}
3228 then :
3229 printf %s "(cached) " >&6
3230 else $as_nop
3231 if printf "%s\n" 'TRUE=$(BAR$(V))
3232 BAR0=false
3233 BAR1=true
3234 V=1
3235 am__doit:
3236 @$(TRUE)
3237 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3238 am_cv_make_support_nested_variables=yes
3239 else
3240 am_cv_make_support_nested_variables=no
3241 fi
3242 fi
3243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3244 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3245 if test $am_cv_make_support_nested_variables = yes; then
3246 AM_V='$(V)'
3247 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3248 else
3249 AM_V=$AM_DEFAULT_VERBOSITY
3250 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3251 fi
3252 AM_BACKSLASH='\'
3253
3254 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3255 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3256 # is not polluted with repeated "-I."
3257 am__isrc=' -I$(srcdir)'
3258 # test to see if srcdir already configured
3259 if test -f $srcdir/config.status; then
3260 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3261 fi
3262 fi
3263
3264 # test whether we have cygpath
3265 if test -z "$CYGPATH_W"; then
3266 if (cygpath --version) >/dev/null 2>/dev/null; then
3267 CYGPATH_W='cygpath -w'
3268 else
3269 CYGPATH_W=echo
3270 fi
3271 fi
3272
3273
3274 # Define the identity of the package.
3275 PACKAGE='achilles'
3276 VERSION='3'
3277
3278
3279 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3280
3281
3282 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3283
3284 # Some tools Automake needs.
3285
3286 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3287
3288
3289 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3290
3291
3292 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3293
3294
3295 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3296
3297
3298 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3299
3300 # For better backward compatibility. To be removed once Automake 1.9.x
3301 # dies out for good. For more background, see:
3302 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3303 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3304 mkdir_p='$(MKDIR_P)'
3305
3306 # We need awk for the "check" target (and possibly the TAP driver). The
3307 # system "awk" is bad on some platforms.
3308 # Always define AMTAR for backward compatibility. Yes, it's still used
3309 # in the wild :-( We should find a proper way to deprecate it ...
3310 AMTAR='$${TAR-tar}'
3311
3312
3313 # We'll loop over all known methods to create a tar archive until one works.
3314 _am_tools='gnutar pax cpio none'
3315
3316 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3317
3318
3319
3320
3321
3322 # Variables for tags utilities; see am/tags.am
3323 if test -z "$CTAGS"; then
3324 CTAGS=ctags
3325 fi
3326
3327 if test -z "$ETAGS"; then
3328 ETAGS=etags
3329 fi
3330
3331 if test -z "$CSCOPE"; then
3332 CSCOPE=cscope
3333 fi
3334
3335
3336
3337 # POSIX will say in a future version that running "rm -f" with no argument
3338 # is OK; and we want to be able to make that assumption in our Makefile
3339 # recipes. So use an aggressive probe to check that the usage we want is
3340 # actually supported "in the wild" to an acceptable degree.
3341 # See automake bug#10828.
3342 # To make any issue more visible, cause the running configure to be aborted
3343 # by default if the 'rm' program in use doesn't match our expectations; the
3344 # user can still override this though.
3345 if rm -f && rm -fr && rm -rf; then : OK; else
3346 cat >&2 <<'END'
3347 Oops!
3348
3349 Your 'rm' program seems unable to run without file operands specified
3350 on the command line, even when the '-f' option is present. This is contrary
3351 to the behaviour of most rm programs out there, and not conforming with
3352 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3353
3354 Please tell [email protected] about your system, including the value
3355 of your $PATH and any error possibly output before this message. This
3356 can help us improve future automake versions.
3357
3358 END
3359 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3360 echo 'Configuration will proceed anyway, since you have set the' >&2
3361 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3362 echo >&2
3363 else
3364 cat >&2 <<'END'
3365 Aborting the configuration process, to ensure you take notice of the issue.
3366
3367 You can download and install GNU coreutils to get an 'rm' implementation
3368 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3369
3370 If you want to complete the configuration process using your problematic
3371 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3372 to "yes", and re-run configure.
3373
3374 END
3375 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3376 fi
3377 fi
3378
3379
3380
3381
3382
3383
3384
3385
3386 ac_ext=cpp
3387 ac_cpp='$CXXCPP $CPPFLAGS'
3388 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3389 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3390 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3391 if test -z "$CXX"; then
3392 if test -n "$CCC"; then
3393 CXX=$CCC
3394 else
3395 if test -n "$ac_tool_prefix"; then
3396 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
3397 do
3398 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3399 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3401 printf %s "checking for $ac_word... " >&6; }
3402 if test ${ac_cv_prog_CXX+y}
3403 then :
3404 printf %s "(cached) " >&6
3405 else $as_nop
3406 if test -n "$CXX"; then
3407 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3408 else
3409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3410 for as_dir in $PATH
3411 do
3412 IFS=$as_save_IFS
3413 case $as_dir in #(((
3414 '') as_dir=./ ;;
3415 */) ;;
3416 *) as_dir=$as_dir/ ;;
3417 esac
3418 for ac_exec_ext in '' $ac_executable_extensions; do
3419 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3420 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3421 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3422 break 2
3423 fi
3424 done
3425 done
3426 IFS=$as_save_IFS
3427
3428 fi
3429 fi
3430 CXX=$ac_cv_prog_CXX
3431 if test -n "$CXX"; then
3432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3433 printf "%s\n" "$CXX" >&6; }
3434 else
3435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3436 printf "%s\n" "no" >&6; }
3437 fi
3438
3439
3440 test -n "$CXX" && break
3441 done
3442 fi
3443 if test -z "$CXX"; then
3444 ac_ct_CXX=$CXX
3445 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
3446 do
3447 # Extract the first word of "$ac_prog", so it can be a program name with args.
3448 set dummy $ac_prog; ac_word=$2
3449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3450 printf %s "checking for $ac_word... " >&6; }
3451 if test ${ac_cv_prog_ac_ct_CXX+y}
3452 then :
3453 printf %s "(cached) " >&6
3454 else $as_nop
3455 if test -n "$ac_ct_CXX"; then
3456 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3457 else
3458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3459 for as_dir in $PATH
3460 do
3461 IFS=$as_save_IFS
3462 case $as_dir in #(((
3463 '') as_dir=./ ;;
3464 */) ;;
3465 *) as_dir=$as_dir/ ;;
3466 esac
3467 for ac_exec_ext in '' $ac_executable_extensions; do
3468 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3469 ac_cv_prog_ac_ct_CXX="$ac_prog"
3470 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3471 break 2
3472 fi
3473 done
3474 done
3475 IFS=$as_save_IFS
3476
3477 fi
3478 fi
3479 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3480 if test -n "$ac_ct_CXX"; then
3481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3482 printf "%s\n" "$ac_ct_CXX" >&6; }
3483 else
3484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3485 printf "%s\n" "no" >&6; }
3486 fi
3487
3488
3489 test -n "$ac_ct_CXX" && break
3490 done
3491
3492 if test "x$ac_ct_CXX" = x; then
3493 CXX="g++"
3494 else
3495 case $cross_compiling:$ac_tool_warned in
3496 yes:)
3497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3498 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3499 ac_tool_warned=yes ;;
3500 esac
3501 CXX=$ac_ct_CXX
3502 fi
3503 fi
3504
3505 fi
3506 fi
3507 # Provide some information about the compiler.
3508 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3509 set X $ac_compile
3510 ac_compiler=$2
3511 for ac_option in --version -v -V -qversion; do
3512 { { ac_try="$ac_compiler $ac_option >&5"
3513 case "(($ac_try" in
3514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515 *) ac_try_echo=$ac_try;;
3516 esac
3517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3518 printf "%s\n" "$ac_try_echo"; } >&5
3519 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3520 ac_status=$?
3521 if test -s conftest.err; then
3522 sed '10a\
3523 ... rest of stderr output deleted ...
3524 10q' conftest.err >conftest.er1
3525 cat conftest.er1 >&5
3526 fi
3527 rm -f conftest.er1 conftest.err
3528 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3529 test $ac_status = 0; }
3530 done
3531
3532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3533 /* end confdefs.h. */
3534
3535 int
3536 main (void)
3537 {
3538
3539 ;
3540 return 0;
3541 }
3542 _ACEOF
3543 ac_clean_files_save=$ac_clean_files
3544 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3545 # Try to create an executable without -o first, disregard a.out.
3546 # It will help us diagnose broken compilers, and finding out an intuition
3547 # of exeext.
3548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3549 printf %s "checking whether the C++ compiler works... " >&6; }
3550 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3551
3552 # The possible output files:
3553 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3554
3555 ac_rmfiles=
3556 for ac_file in $ac_files
3557 do
3558 case $ac_file in
3559 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3560 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3561 esac
3562 done
3563 rm -f $ac_rmfiles
3564
3565 if { { ac_try="$ac_link_default"
3566 case "(($ac_try" in
3567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568 *) ac_try_echo=$ac_try;;
3569 esac
3570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3571 printf "%s\n" "$ac_try_echo"; } >&5
3572 (eval "$ac_link_default") 2>&5
3573 ac_status=$?
3574 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3575 test $ac_status = 0; }
3576 then :
3577 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3578 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3579 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3580 # so that the user can short-circuit this test for compilers unknown to
3581 # Autoconf.
3582 for ac_file in $ac_files ''
3583 do
3584 test -f "$ac_file" || continue
3585 case $ac_file in
3586 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3587 ;;
3588 [ab].out )
3589 # We found the default executable, but exeext='' is most
3590 # certainly right.
3591 break;;
3592 *.* )
3593 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3594 then :; else
3595 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3596 fi
3597 # We set ac_cv_exeext here because the later test for it is not
3598 # safe: cross compilers may not add the suffix if given an `-o'
3599 # argument, so we may need to know it at that point already.
3600 # Even if this section looks crufty: it has the advantage of
3601 # actually working.
3602 break;;
3603 * )
3604 break;;
3605 esac
3606 done
3607 test "$ac_cv_exeext" = no && ac_cv_exeext=
3608
3609 else $as_nop
3610 ac_file=''
3611 fi
3612 if test -z "$ac_file"
3613 then :
3614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3615 printf "%s\n" "no" >&6; }
3616 printf "%s\n" "$as_me: failed program was:" >&5
3617 sed 's/^/| /' conftest.$ac_ext >&5
3618
3619 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3620 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3621 as_fn_error 77 "C++ compiler cannot create executables
3622 See \`config.log' for more details" "$LINENO" 5; }
3623 else $as_nop
3624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3625 printf "%s\n" "yes" >&6; }
3626 fi
3627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3628 printf %s "checking for C++ compiler default output file name... " >&6; }
3629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3630 printf "%s\n" "$ac_file" >&6; }
3631 ac_exeext=$ac_cv_exeext
3632
3633 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3634 ac_clean_files=$ac_clean_files_save
3635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3636 printf %s "checking for suffix of executables... " >&6; }
3637 if { { ac_try="$ac_link"
3638 case "(($ac_try" in
3639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3640 *) ac_try_echo=$ac_try;;
3641 esac
3642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3643 printf "%s\n" "$ac_try_echo"; } >&5
3644 (eval "$ac_link") 2>&5
3645 ac_status=$?
3646 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3647 test $ac_status = 0; }
3648 then :
3649 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3650 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3651 # work properly (i.e., refer to `conftest.exe'), while it won't with
3652 # `rm'.
3653 for ac_file in conftest.exe conftest conftest.*; do
3654 test -f "$ac_file" || continue
3655 case $ac_file in
3656 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3657 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3658 break;;
3659 * ) break;;
3660 esac
3661 done
3662 else $as_nop
3663 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3664 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3665 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3666 See \`config.log' for more details" "$LINENO" 5; }
3667 fi
3668 rm -f conftest conftest$ac_cv_exeext
3669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3670 printf "%s\n" "$ac_cv_exeext" >&6; }
3671
3672 rm -f conftest.$ac_ext
3673 EXEEXT=$ac_cv_exeext
3674 ac_exeext=$EXEEXT
3675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3676 /* end confdefs.h. */
3677 #include <stdio.h>
3678 int
3679 main (void)
3680 {
3681 FILE *f = fopen ("conftest.out", "w");
3682 return ferror (f) || fclose (f) != 0;
3683
3684 ;
3685 return 0;
3686 }
3687 _ACEOF
3688 ac_clean_files="$ac_clean_files conftest.out"
3689 # Check that the compiler produces executables we can run. If not, either
3690 # the compiler is broken, or we cross compile.
3691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3692 printf %s "checking whether we are cross compiling... " >&6; }
3693 if test "$cross_compiling" != yes; then
3694 { { ac_try="$ac_link"
3695 case "(($ac_try" in
3696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3697 *) ac_try_echo=$ac_try;;
3698 esac
3699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3700 printf "%s\n" "$ac_try_echo"; } >&5
3701 (eval "$ac_link") 2>&5
3702 ac_status=$?
3703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3704 test $ac_status = 0; }
3705 if { ac_try='./conftest$ac_cv_exeext'
3706 { { case "(($ac_try" in
3707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3708 *) ac_try_echo=$ac_try;;
3709 esac
3710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3711 printf "%s\n" "$ac_try_echo"; } >&5
3712 (eval "$ac_try") 2>&5
3713 ac_status=$?
3714 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3715 test $ac_status = 0; }; }; then
3716 cross_compiling=no
3717 else
3718 if test "$cross_compiling" = maybe; then
3719 cross_compiling=yes
3720 else
3721 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3722 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3723 as_fn_error 77 "cannot run C++ compiled programs.
3724 If you meant to cross compile, use \`--host'.
3725 See \`config.log' for more details" "$LINENO" 5; }
3726 fi
3727 fi
3728 fi
3729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3730 printf "%s\n" "$cross_compiling" >&6; }
3731
3732 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3733 ac_clean_files=$ac_clean_files_save
3734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3735 printf %s "checking for suffix of object files... " >&6; }
3736 if test ${ac_cv_objext+y}
3737 then :
3738 printf %s "(cached) " >&6
3739 else $as_nop
3740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3741 /* end confdefs.h. */
3742
3743 int
3744 main (void)
3745 {
3746
3747 ;
3748 return 0;
3749 }
3750 _ACEOF
3751 rm -f conftest.o conftest.obj
3752 if { { ac_try="$ac_compile"
3753 case "(($ac_try" in
3754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3755 *) ac_try_echo=$ac_try;;
3756 esac
3757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3758 printf "%s\n" "$ac_try_echo"; } >&5
3759 (eval "$ac_compile") 2>&5
3760 ac_status=$?
3761 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3762 test $ac_status = 0; }
3763 then :
3764 for ac_file in conftest.o conftest.obj conftest.*; do
3765 test -f "$ac_file" || continue;
3766 case $ac_file in
3767 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3768 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3769 break;;
3770 esac
3771 done
3772 else $as_nop
3773 printf "%s\n" "$as_me: failed program was:" >&5
3774 sed 's/^/| /' conftest.$ac_ext >&5
3775
3776 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3777 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3778 as_fn_error $? "cannot compute suffix of object files: cannot compile
3779 See \`config.log' for more details" "$LINENO" 5; }
3780 fi
3781 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3782 fi
3783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3784 printf "%s\n" "$ac_cv_objext" >&6; }
3785 OBJEXT=$ac_cv_objext
3786 ac_objext=$OBJEXT
3787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
3788 printf %s "checking whether the compiler supports GNU C++... " >&6; }
3789 if test ${ac_cv_cxx_compiler_gnu+y}
3790 then :
3791 printf %s "(cached) " >&6
3792 else $as_nop
3793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3794 /* end confdefs.h. */
3795
3796 int
3797 main (void)
3798 {
3799 #ifndef __GNUC__
3800 choke me
3801 #endif
3802
3803 ;
3804 return 0;
3805 }
3806 _ACEOF
3807 if ac_fn_cxx_try_compile "$LINENO"
3808 then :
3809 ac_compiler_gnu=yes
3810 else $as_nop
3811 ac_compiler_gnu=no
3812 fi
3813 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3814 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3815
3816 fi
3817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3818 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
3819 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3820
3821 if test $ac_compiler_gnu = yes; then
3822 GXX=yes
3823 else
3824 GXX=
3825 fi
3826 ac_test_CXXFLAGS=${CXXFLAGS+y}
3827 ac_save_CXXFLAGS=$CXXFLAGS
3828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3829 printf %s "checking whether $CXX accepts -g... " >&6; }
3830 if test ${ac_cv_prog_cxx_g+y}
3831 then :
3832 printf %s "(cached) " >&6
3833 else $as_nop
3834 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3835 ac_cxx_werror_flag=yes
3836 ac_cv_prog_cxx_g=no
3837 CXXFLAGS="-g"
3838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3839 /* end confdefs.h. */
3840
3841 int
3842 main (void)
3843 {
3844
3845 ;
3846 return 0;
3847 }
3848 _ACEOF
3849 if ac_fn_cxx_try_compile "$LINENO"
3850 then :
3851 ac_cv_prog_cxx_g=yes
3852 else $as_nop
3853 CXXFLAGS=""
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
3868 else $as_nop
3869 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3870 CXXFLAGS="-g"
3871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3872 /* end confdefs.h. */
3873
3874 int
3875 main (void)
3876 {
3877
3878 ;
3879 return 0;
3880 }
3881 _ACEOF
3882 if ac_fn_cxx_try_compile "$LINENO"
3883 then :
3884 ac_cv_prog_cxx_g=yes
3885 fi
3886 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3887 fi
3888 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3889 fi
3890 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3891 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3892 fi
3893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3894 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
3895 if test $ac_test_CXXFLAGS; then
3896 CXXFLAGS=$ac_save_CXXFLAGS
3897 elif test $ac_cv_prog_cxx_g = yes; then
3898 if test "$GXX" = yes; then
3899 CXXFLAGS="-g -O2"
3900 else
3901 CXXFLAGS="-g"
3902 fi
3903 else
3904 if test "$GXX" = yes; then
3905 CXXFLAGS="-O2"
3906 else
3907 CXXFLAGS=
3908 fi
3909 fi
3910 ac_prog_cxx_stdcxx=no
3911 if test x$ac_prog_cxx_stdcxx = xno
3912 then :
3913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
3914 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
3915 if test ${ac_cv_prog_cxx_cxx11+y}
3916 then :
3917 printf %s "(cached) " >&6
3918 else $as_nop
3919 ac_cv_prog_cxx_cxx11=no
3920 ac_save_CXX=$CXX
3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922 /* end confdefs.h. */
3923 $ac_cxx_conftest_cxx11_program
3924 _ACEOF
3925 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
3926 do
3927 CXX="$ac_save_CXX $ac_arg"
3928 if ac_fn_cxx_try_compile "$LINENO"
3929 then :
3930 ac_cv_prog_cxx_cxx11=$ac_arg
3931 fi
3932 rm -f core conftest.err conftest.$ac_objext conftest.beam
3933 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
3934 done
3935 rm -f conftest.$ac_ext
3936 CXX=$ac_save_CXX
3937 fi
3938
3939 if test "x$ac_cv_prog_cxx_cxx11" = xno
3940 then :
3941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3942 printf "%s\n" "unsupported" >&6; }
3943 else $as_nop
3944 if test "x$ac_cv_prog_cxx_cxx11" = x
3945 then :
3946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3947 printf "%s\n" "none needed" >&6; }
3948 else $as_nop
3949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
3950 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
3951 CXX="$CXX $ac_cv_prog_cxx_cxx11"
3952 fi
3953 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
3954 ac_prog_cxx_stdcxx=cxx11
3955 fi
3956 fi
3957 if test x$ac_prog_cxx_stdcxx = xno
3958 then :
3959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
3960 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
3961 if test ${ac_cv_prog_cxx_cxx98+y}
3962 then :
3963 printf %s "(cached) " >&6
3964 else $as_nop
3965 ac_cv_prog_cxx_cxx98=no
3966 ac_save_CXX=$CXX
3967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3968 /* end confdefs.h. */
3969 $ac_cxx_conftest_cxx98_program
3970 _ACEOF
3971 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
3972 do
3973 CXX="$ac_save_CXX $ac_arg"
3974 if ac_fn_cxx_try_compile "$LINENO"
3975 then :
3976 ac_cv_prog_cxx_cxx98=$ac_arg
3977 fi
3978 rm -f core conftest.err conftest.$ac_objext conftest.beam
3979 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
3980 done
3981 rm -f conftest.$ac_ext
3982 CXX=$ac_save_CXX
3983 fi
3984
3985 if test "x$ac_cv_prog_cxx_cxx98" = xno
3986 then :
3987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3988 printf "%s\n" "unsupported" >&6; }
3989 else $as_nop
3990 if test "x$ac_cv_prog_cxx_cxx98" = x
3991 then :
3992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3993 printf "%s\n" "none needed" >&6; }
3994 else $as_nop
3995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
3996 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
3997 CXX="$CXX $ac_cv_prog_cxx_cxx98"
3998 fi
3999 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
4000 ac_prog_cxx_stdcxx=cxx98
4001 fi
4002 fi
4003
4004 ac_ext=c
4005 ac_cpp='$CPP $CPPFLAGS'
4006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4009 DEPDIR="${am__leading_dot}deps"
4010
4011 ac_config_commands="$ac_config_commands depfiles"
4012
4013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4014 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4015 cat > confinc.mk << 'END'
4016 am__doit:
4017 @echo this is the am__doit target >confinc.out
4018 .PHONY: am__doit
4019 END
4020 am__include="#"
4021 am__quote=
4022 # BSD make does it like this.
4023 echo '.include "confinc.mk" # ignored' > confmf.BSD
4024 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4025 echo 'include confinc.mk # ignored' > confmf.GNU
4026 _am_result=no
4027 for s in GNU BSD; do
4028 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4029 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4030 ac_status=$?
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); }
4033 case $?:`cat confinc.out 2>/dev/null` in #(
4034 '0:this is the am__doit target') :
4035 case $s in #(
4036 BSD) :
4037 am__include='.include' am__quote='"' ;; #(
4038 *) :
4039 am__include='include' am__quote='' ;;
4040 esac ;; #(
4041 *) :
4042 ;;
4043 esac
4044 if test "$am__include" != "#"; then
4045 _am_result="yes ($s style)"
4046 break
4047 fi
4048 done
4049 rm -f confinc.* confmf.*
4050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4051 printf "%s\n" "${_am_result}" >&6; }
4052
4053 # Check whether --enable-dependency-tracking was given.
4054 if test ${enable_dependency_tracking+y}
4055 then :
4056 enableval=$enable_dependency_tracking;
4057 fi
4058
4059 if test "x$enable_dependency_tracking" != xno; then
4060 am_depcomp="$ac_aux_dir/depcomp"
4061 AMDEPBACKSLASH='\'
4062 am__nodep='_no'
4063 fi
4064 if test "x$enable_dependency_tracking" != xno; then
4065 AMDEP_TRUE=
4066 AMDEP_FALSE='#'
4067 else
4068 AMDEP_TRUE='#'
4069 AMDEP_FALSE=
4070 fi
4071
4072
4073
4074 depcc="$CXX" am_compiler_list=
4075
4076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4077 printf %s "checking dependency style of $depcc... " >&6; }
4078 if test ${am_cv_CXX_dependencies_compiler_type+y}
4079 then :
4080 printf %s "(cached) " >&6
4081 else $as_nop
4082 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4083 # We make a subdir and do the tests there. Otherwise we can end up
4084 # making bogus files that we don't know about and never remove. For
4085 # instance it was reported that on HP-UX the gcc test will end up
4086 # making a dummy file named 'D' -- because '-MD' means "put the output
4087 # in D".
4088 rm -rf conftest.dir
4089 mkdir conftest.dir
4090 # Copy depcomp to subdir because otherwise we won't find it if we're
4091 # using a relative directory.
4092 cp "$am_depcomp" conftest.dir
4093 cd conftest.dir
4094 # We will build objects and dependencies in a subdirectory because
4095 # it helps to detect inapplicable dependency modes. For instance
4096 # both Tru64's cc and ICC support -MD to output dependencies as a
4097 # side effect of compilation, but ICC will put the dependencies in
4098 # the current directory while Tru64 will put them in the object
4099 # directory.
4100 mkdir sub
4101
4102 am_cv_CXX_dependencies_compiler_type=none
4103 if test "$am_compiler_list" = ""; then
4104 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4105 fi
4106 am__universal=false
4107 case " $depcc " in #(
4108 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4109 esac
4110
4111 for depmode in $am_compiler_list; do
4112 # Setup a source with many dependencies, because some compilers
4113 # like to wrap large dependency lists on column 80 (with \), and
4114 # we should not choose a depcomp mode which is confused by this.
4115 #
4116 # We need to recreate these files for each test, as the compiler may
4117 # overwrite some of them when testing with obscure command lines.
4118 # This happens at least with the AIX C compiler.
4119 : > sub/conftest.c
4120 for i in 1 2 3 4 5 6; do
4121 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4122 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4123 # Solaris 10 /bin/sh.
4124 echo '/* dummy */' > sub/conftst$i.h
4125 done
4126 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4127
4128 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4129 # mode. It turns out that the SunPro C++ compiler does not properly
4130 # handle '-M -o', and we need to detect this. Also, some Intel
4131 # versions had trouble with output in subdirs.
4132 am__obj=sub/conftest.${OBJEXT-o}
4133 am__minus_obj="-o $am__obj"
4134 case $depmode in
4135 gcc)
4136 # This depmode causes a compiler race in universal mode.
4137 test "$am__universal" = false || continue
4138 ;;
4139 nosideeffect)
4140 # After this tag, mechanisms are not by side-effect, so they'll
4141 # only be used when explicitly requested.
4142 if test "x$enable_dependency_tracking" = xyes; then
4143 continue
4144 else
4145 break
4146 fi
4147 ;;
4148 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4149 # This compiler won't grok '-c -o', but also, the minuso test has
4150 # not run yet. These depmodes are late enough in the game, and
4151 # so weak that their functioning should not be impacted.
4152 am__obj=conftest.${OBJEXT-o}
4153 am__minus_obj=
4154 ;;
4155 none) break ;;
4156 esac
4157 if depmode=$depmode \
4158 source=sub/conftest.c object=$am__obj \
4159 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4160 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4161 >/dev/null 2>conftest.err &&
4162 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4163 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4164 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4165 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4166 # icc doesn't choke on unknown options, it will just issue warnings
4167 # or remarks (even with -Werror). So we grep stderr for any message
4168 # that says an option was ignored or not supported.
4169 # When given -MP, icc 7.0 and 7.1 complain thusly:
4170 # icc: Command line warning: ignoring option '-M'; no argument required
4171 # The diagnosis changed in icc 8.0:
4172 # icc: Command line remark: option '-MP' not supported
4173 if (grep 'ignoring option' conftest.err ||
4174 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4175 am_cv_CXX_dependencies_compiler_type=$depmode
4176 break
4177 fi
4178 fi
4179 done
4180
4181 cd ..
4182 rm -rf conftest.dir
4183 else
4184 am_cv_CXX_dependencies_compiler_type=none
4185 fi
4186
4187 fi
4188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4189 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
4190 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4191
4192 if
4193 test "x$enable_dependency_tracking" != xno \
4194 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4195 am__fastdepCXX_TRUE=
4196 am__fastdepCXX_FALSE='#'
4197 else
4198 am__fastdepCXX_TRUE='#'
4199 am__fastdepCXX_FALSE=
4200 fi
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213 ac_ext=c
4214 ac_cpp='$CPP $CPPFLAGS'
4215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4218 if test -n "$ac_tool_prefix"; then
4219 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4220 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4222 printf %s "checking for $ac_word... " >&6; }
4223 if test ${ac_cv_prog_CC+y}
4224 then :
4225 printf %s "(cached) " >&6
4226 else $as_nop
4227 if test -n "$CC"; then
4228 ac_cv_prog_CC="$CC" # Let the user override the test.
4229 else
4230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231 for as_dir in $PATH
4232 do
4233 IFS=$as_save_IFS
4234 case $as_dir in #(((
4235 '') as_dir=./ ;;
4236 */) ;;
4237 *) as_dir=$as_dir/ ;;
4238 esac
4239 for ac_exec_ext in '' $ac_executable_extensions; do
4240 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4241 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4242 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4243 break 2
4244 fi
4245 done
4246 done
4247 IFS=$as_save_IFS
4248
4249 fi
4250 fi
4251 CC=$ac_cv_prog_CC
4252 if test -n "$CC"; then
4253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4254 printf "%s\n" "$CC" >&6; }
4255 else
4256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4257 printf "%s\n" "no" >&6; }
4258 fi
4259
4260
4261 fi
4262 if test -z "$ac_cv_prog_CC"; then
4263 ac_ct_CC=$CC
4264 # Extract the first word of "gcc", so it can be a program name with args.
4265 set dummy gcc; ac_word=$2
4266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4267 printf %s "checking for $ac_word... " >&6; }
4268 if test ${ac_cv_prog_ac_ct_CC+y}
4269 then :
4270 printf %s "(cached) " >&6
4271 else $as_nop
4272 if test -n "$ac_ct_CC"; then
4273 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4274 else
4275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4276 for as_dir in $PATH
4277 do
4278 IFS=$as_save_IFS
4279 case $as_dir in #(((
4280 '') as_dir=./ ;;
4281 */) ;;
4282 *) as_dir=$as_dir/ ;;
4283 esac
4284 for ac_exec_ext in '' $ac_executable_extensions; do
4285 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4286 ac_cv_prog_ac_ct_CC="gcc"
4287 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4288 break 2
4289 fi
4290 done
4291 done
4292 IFS=$as_save_IFS
4293
4294 fi
4295 fi
4296 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4297 if test -n "$ac_ct_CC"; then
4298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4299 printf "%s\n" "$ac_ct_CC" >&6; }
4300 else
4301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4302 printf "%s\n" "no" >&6; }
4303 fi
4304
4305 if test "x$ac_ct_CC" = x; then
4306 CC=""
4307 else
4308 case $cross_compiling:$ac_tool_warned in
4309 yes:)
4310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4311 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4312 ac_tool_warned=yes ;;
4313 esac
4314 CC=$ac_ct_CC
4315 fi
4316 else
4317 CC="$ac_cv_prog_CC"
4318 fi
4319
4320 if test -z "$CC"; then
4321 if test -n "$ac_tool_prefix"; then
4322 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4323 set dummy ${ac_tool_prefix}cc; ac_word=$2
4324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4325 printf %s "checking for $ac_word... " >&6; }
4326 if test ${ac_cv_prog_CC+y}
4327 then :
4328 printf %s "(cached) " >&6
4329 else $as_nop
4330 if test -n "$CC"; then
4331 ac_cv_prog_CC="$CC" # Let the user override the test.
4332 else
4333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4334 for as_dir in $PATH
4335 do
4336 IFS=$as_save_IFS
4337 case $as_dir in #(((
4338 '') as_dir=./ ;;
4339 */) ;;
4340 *) as_dir=$as_dir/ ;;
4341 esac
4342 for ac_exec_ext in '' $ac_executable_extensions; do
4343 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4344 ac_cv_prog_CC="${ac_tool_prefix}cc"
4345 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4346 break 2
4347 fi
4348 done
4349 done
4350 IFS=$as_save_IFS
4351
4352 fi
4353 fi
4354 CC=$ac_cv_prog_CC
4355 if test -n "$CC"; then
4356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4357 printf "%s\n" "$CC" >&6; }
4358 else
4359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4360 printf "%s\n" "no" >&6; }
4361 fi
4362
4363
4364 fi
4365 fi
4366 if test -z "$CC"; then
4367 # Extract the first word of "cc", so it can be a program name with args.
4368 set dummy cc; ac_word=$2
4369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4370 printf %s "checking for $ac_word... " >&6; }
4371 if test ${ac_cv_prog_CC+y}
4372 then :
4373 printf %s "(cached) " >&6
4374 else $as_nop
4375 if test -n "$CC"; then
4376 ac_cv_prog_CC="$CC" # Let the user override the test.
4377 else
4378 ac_prog_rejected=no
4379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4380 for as_dir in $PATH
4381 do
4382 IFS=$as_save_IFS
4383 case $as_dir in #(((
4384 '') as_dir=./ ;;
4385 */) ;;
4386 *) as_dir=$as_dir/ ;;
4387 esac
4388 for ac_exec_ext in '' $ac_executable_extensions; do
4389 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4390 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4391 ac_prog_rejected=yes
4392 continue
4393 fi
4394 ac_cv_prog_CC="cc"
4395 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4396 break 2
4397 fi
4398 done
4399 done
4400 IFS=$as_save_IFS
4401
4402 if test $ac_prog_rejected = yes; then
4403 # We found a bogon in the path, so make sure we never use it.
4404 set dummy $ac_cv_prog_CC
4405 shift
4406 if test $# != 0; then
4407 # We chose a different compiler from the bogus one.
4408 # However, it has the same basename, so the bogon will be chosen
4409 # first if we set CC to just the basename; use the full file name.
4410 shift
4411 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4412 fi
4413 fi
4414 fi
4415 fi
4416 CC=$ac_cv_prog_CC
4417 if test -n "$CC"; then
4418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4419 printf "%s\n" "$CC" >&6; }
4420 else
4421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4422 printf "%s\n" "no" >&6; }
4423 fi
4424
4425
4426 fi
4427 if test -z "$CC"; then
4428 if test -n "$ac_tool_prefix"; then
4429 for ac_prog in cl.exe
4430 do
4431 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4432 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4434 printf %s "checking for $ac_word... " >&6; }
4435 if test ${ac_cv_prog_CC+y}
4436 then :
4437 printf %s "(cached) " >&6
4438 else $as_nop
4439 if test -n "$CC"; then
4440 ac_cv_prog_CC="$CC" # Let the user override the test.
4441 else
4442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443 for as_dir in $PATH
4444 do
4445 IFS=$as_save_IFS
4446 case $as_dir in #(((
4447 '') as_dir=./ ;;
4448 */) ;;
4449 *) as_dir=$as_dir/ ;;
4450 esac
4451 for ac_exec_ext in '' $ac_executable_extensions; do
4452 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4453 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4454 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4455 break 2
4456 fi
4457 done
4458 done
4459 IFS=$as_save_IFS
4460
4461 fi
4462 fi
4463 CC=$ac_cv_prog_CC
4464 if test -n "$CC"; then
4465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4466 printf "%s\n" "$CC" >&6; }
4467 else
4468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4469 printf "%s\n" "no" >&6; }
4470 fi
4471
4472
4473 test -n "$CC" && break
4474 done
4475 fi
4476 if test -z "$CC"; then
4477 ac_ct_CC=$CC
4478 for ac_prog in cl.exe
4479 do
4480 # Extract the first word of "$ac_prog", so it can be a program name with args.
4481 set dummy $ac_prog; ac_word=$2
4482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4483 printf %s "checking for $ac_word... " >&6; }
4484 if test ${ac_cv_prog_ac_ct_CC+y}
4485 then :
4486 printf %s "(cached) " >&6
4487 else $as_nop
4488 if test -n "$ac_ct_CC"; then
4489 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4490 else
4491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492 for as_dir in $PATH
4493 do
4494 IFS=$as_save_IFS
4495 case $as_dir in #(((
4496 '') as_dir=./ ;;
4497 */) ;;
4498 *) as_dir=$as_dir/ ;;
4499 esac
4500 for ac_exec_ext in '' $ac_executable_extensions; do
4501 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4502 ac_cv_prog_ac_ct_CC="$ac_prog"
4503 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4504 break 2
4505 fi
4506 done
4507 done
4508 IFS=$as_save_IFS
4509
4510 fi
4511 fi
4512 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4513 if test -n "$ac_ct_CC"; then
4514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4515 printf "%s\n" "$ac_ct_CC" >&6; }
4516 else
4517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4518 printf "%s\n" "no" >&6; }
4519 fi
4520
4521
4522 test -n "$ac_ct_CC" && break
4523 done
4524
4525 if test "x$ac_ct_CC" = x; then
4526 CC=""
4527 else
4528 case $cross_compiling:$ac_tool_warned in
4529 yes:)
4530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4531 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4532 ac_tool_warned=yes ;;
4533 esac
4534 CC=$ac_ct_CC
4535 fi
4536 fi
4537
4538 fi
4539 if test -z "$CC"; then
4540 if test -n "$ac_tool_prefix"; then
4541 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4542 set dummy ${ac_tool_prefix}clang; ac_word=$2
4543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4544 printf %s "checking for $ac_word... " >&6; }
4545 if test ${ac_cv_prog_CC+y}
4546 then :
4547 printf %s "(cached) " >&6
4548 else $as_nop
4549 if test -n "$CC"; then
4550 ac_cv_prog_CC="$CC" # Let the user override the test.
4551 else
4552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553 for as_dir in $PATH
4554 do
4555 IFS=$as_save_IFS
4556 case $as_dir in #(((
4557 '') as_dir=./ ;;
4558 */) ;;
4559 *) as_dir=$as_dir/ ;;
4560 esac
4561 for ac_exec_ext in '' $ac_executable_extensions; do
4562 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4563 ac_cv_prog_CC="${ac_tool_prefix}clang"
4564 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4565 break 2
4566 fi
4567 done
4568 done
4569 IFS=$as_save_IFS
4570
4571 fi
4572 fi
4573 CC=$ac_cv_prog_CC
4574 if test -n "$CC"; then
4575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4576 printf "%s\n" "$CC" >&6; }
4577 else
4578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4579 printf "%s\n" "no" >&6; }
4580 fi
4581
4582
4583 fi
4584 if test -z "$ac_cv_prog_CC"; then
4585 ac_ct_CC=$CC
4586 # Extract the first word of "clang", so it can be a program name with args.
4587 set dummy clang; ac_word=$2
4588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4589 printf %s "checking for $ac_word... " >&6; }
4590 if test ${ac_cv_prog_ac_ct_CC+y}
4591 then :
4592 printf %s "(cached) " >&6
4593 else $as_nop
4594 if test -n "$ac_ct_CC"; then
4595 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4596 else
4597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4598 for as_dir in $PATH
4599 do
4600 IFS=$as_save_IFS
4601 case $as_dir in #(((
4602 '') as_dir=./ ;;
4603 */) ;;
4604 *) as_dir=$as_dir/ ;;
4605 esac
4606 for ac_exec_ext in '' $ac_executable_extensions; do
4607 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4608 ac_cv_prog_ac_ct_CC="clang"
4609 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4610 break 2
4611 fi
4612 done
4613 done
4614 IFS=$as_save_IFS
4615
4616 fi
4617 fi
4618 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4619 if test -n "$ac_ct_CC"; then
4620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4621 printf "%s\n" "$ac_ct_CC" >&6; }
4622 else
4623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4624 printf "%s\n" "no" >&6; }
4625 fi
4626
4627 if test "x$ac_ct_CC" = x; then
4628 CC=""
4629 else
4630 case $cross_compiling:$ac_tool_warned in
4631 yes:)
4632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4633 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4634 ac_tool_warned=yes ;;
4635 esac
4636 CC=$ac_ct_CC
4637 fi
4638 else
4639 CC="$ac_cv_prog_CC"
4640 fi
4641
4642 fi
4643
4644
4645 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4646 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4647 as_fn_error $? "no acceptable C compiler found in \$PATH
4648 See \`config.log' for more details" "$LINENO" 5; }
4649
4650 # Provide some information about the compiler.
4651 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4652 set X $ac_compile
4653 ac_compiler=$2
4654 for ac_option in --version -v -V -qversion -version; do
4655 { { ac_try="$ac_compiler $ac_option >&5"
4656 case "(($ac_try" in
4657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4658 *) ac_try_echo=$ac_try;;
4659 esac
4660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4661 printf "%s\n" "$ac_try_echo"; } >&5
4662 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4663 ac_status=$?
4664 if test -s conftest.err; then
4665 sed '10a\
4666 ... rest of stderr output deleted ...
4667 10q' conftest.err >conftest.er1
4668 cat conftest.er1 >&5
4669 fi
4670 rm -f conftest.er1 conftest.err
4671 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4672 test $ac_status = 0; }
4673 done
4674
4675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4676 printf %s "checking whether the compiler supports GNU C... " >&6; }
4677 if test ${ac_cv_c_compiler_gnu+y}
4678 then :
4679 printf %s "(cached) " >&6
4680 else $as_nop
4681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4682 /* end confdefs.h. */
4683
4684 int
4685 main (void)
4686 {
4687 #ifndef __GNUC__
4688 choke me
4689 #endif
4690
4691 ;
4692 return 0;
4693 }
4694 _ACEOF
4695 if ac_fn_c_try_compile "$LINENO"
4696 then :
4697 ac_compiler_gnu=yes
4698 else $as_nop
4699 ac_compiler_gnu=no
4700 fi
4701 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4702 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4703
4704 fi
4705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4706 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4708
4709 if test $ac_compiler_gnu = yes; then
4710 GCC=yes
4711 else
4712 GCC=
4713 fi
4714 ac_test_CFLAGS=${CFLAGS+y}
4715 ac_save_CFLAGS=$CFLAGS
4716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4717 printf %s "checking whether $CC accepts -g... " >&6; }
4718 if test ${ac_cv_prog_cc_g+y}
4719 then :
4720 printf %s "(cached) " >&6
4721 else $as_nop
4722 ac_save_c_werror_flag=$ac_c_werror_flag
4723 ac_c_werror_flag=yes
4724 ac_cv_prog_cc_g=no
4725 CFLAGS="-g"
4726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4727 /* end confdefs.h. */
4728
4729 int
4730 main (void)
4731 {
4732
4733 ;
4734 return 0;
4735 }
4736 _ACEOF
4737 if ac_fn_c_try_compile "$LINENO"
4738 then :
4739 ac_cv_prog_cc_g=yes
4740 else $as_nop
4741 CFLAGS=""
4742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4743 /* end confdefs.h. */
4744
4745 int
4746 main (void)
4747 {
4748
4749 ;
4750 return 0;
4751 }
4752 _ACEOF
4753 if ac_fn_c_try_compile "$LINENO"
4754 then :
4755
4756 else $as_nop
4757 ac_c_werror_flag=$ac_save_c_werror_flag
4758 CFLAGS="-g"
4759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4760 /* end confdefs.h. */
4761
4762 int
4763 main (void)
4764 {
4765
4766 ;
4767 return 0;
4768 }
4769 _ACEOF
4770 if ac_fn_c_try_compile "$LINENO"
4771 then :
4772 ac_cv_prog_cc_g=yes
4773 fi
4774 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4775 fi
4776 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4777 fi
4778 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4779 ac_c_werror_flag=$ac_save_c_werror_flag
4780 fi
4781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4782 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4783 if test $ac_test_CFLAGS; then
4784 CFLAGS=$ac_save_CFLAGS
4785 elif test $ac_cv_prog_cc_g = yes; then
4786 if test "$GCC" = yes; then
4787 CFLAGS="-g -O2"
4788 else
4789 CFLAGS="-g"
4790 fi
4791 else
4792 if test "$GCC" = yes; then
4793 CFLAGS="-O2"
4794 else
4795 CFLAGS=
4796 fi
4797 fi
4798 ac_prog_cc_stdc=no
4799 if test x$ac_prog_cc_stdc = xno
4800 then :
4801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4802 printf %s "checking for $CC option to enable C11 features... " >&6; }
4803 if test ${ac_cv_prog_cc_c11+y}
4804 then :
4805 printf %s "(cached) " >&6
4806 else $as_nop
4807 ac_cv_prog_cc_c11=no
4808 ac_save_CC=$CC
4809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4810 /* end confdefs.h. */
4811 $ac_c_conftest_c11_program
4812 _ACEOF
4813 for ac_arg in '' -std=gnu11
4814 do
4815 CC="$ac_save_CC $ac_arg"
4816 if ac_fn_c_try_compile "$LINENO"
4817 then :
4818 ac_cv_prog_cc_c11=$ac_arg
4819 fi
4820 rm -f core conftest.err conftest.$ac_objext conftest.beam
4821 test "x$ac_cv_prog_cc_c11" != "xno" && break
4822 done
4823 rm -f conftest.$ac_ext
4824 CC=$ac_save_CC
4825 fi
4826
4827 if test "x$ac_cv_prog_cc_c11" = xno
4828 then :
4829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4830 printf "%s\n" "unsupported" >&6; }
4831 else $as_nop
4832 if test "x$ac_cv_prog_cc_c11" = x
4833 then :
4834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4835 printf "%s\n" "none needed" >&6; }
4836 else $as_nop
4837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4838 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4839 CC="$CC $ac_cv_prog_cc_c11"
4840 fi
4841 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4842 ac_prog_cc_stdc=c11
4843 fi
4844 fi
4845 if test x$ac_prog_cc_stdc = xno
4846 then :
4847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4848 printf %s "checking for $CC option to enable C99 features... " >&6; }
4849 if test ${ac_cv_prog_cc_c99+y}
4850 then :
4851 printf %s "(cached) " >&6
4852 else $as_nop
4853 ac_cv_prog_cc_c99=no
4854 ac_save_CC=$CC
4855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4856 /* end confdefs.h. */
4857 $ac_c_conftest_c99_program
4858 _ACEOF
4859 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4860 do
4861 CC="$ac_save_CC $ac_arg"
4862 if ac_fn_c_try_compile "$LINENO"
4863 then :
4864 ac_cv_prog_cc_c99=$ac_arg
4865 fi
4866 rm -f core conftest.err conftest.$ac_objext conftest.beam
4867 test "x$ac_cv_prog_cc_c99" != "xno" && break
4868 done
4869 rm -f conftest.$ac_ext
4870 CC=$ac_save_CC
4871 fi
4872
4873 if test "x$ac_cv_prog_cc_c99" = xno
4874 then :
4875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4876 printf "%s\n" "unsupported" >&6; }
4877 else $as_nop
4878 if test "x$ac_cv_prog_cc_c99" = x
4879 then :
4880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4881 printf "%s\n" "none needed" >&6; }
4882 else $as_nop
4883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4884 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4885 CC="$CC $ac_cv_prog_cc_c99"
4886 fi
4887 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4888 ac_prog_cc_stdc=c99
4889 fi
4890 fi
4891 if test x$ac_prog_cc_stdc = xno
4892 then :
4893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4894 printf %s "checking for $CC option to enable C89 features... " >&6; }
4895 if test ${ac_cv_prog_cc_c89+y}
4896 then :
4897 printf %s "(cached) " >&6
4898 else $as_nop
4899 ac_cv_prog_cc_c89=no
4900 ac_save_CC=$CC
4901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4902 /* end confdefs.h. */
4903 $ac_c_conftest_c89_program
4904 _ACEOF
4905 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4906 do
4907 CC="$ac_save_CC $ac_arg"
4908 if ac_fn_c_try_compile "$LINENO"
4909 then :
4910 ac_cv_prog_cc_c89=$ac_arg
4911 fi
4912 rm -f core conftest.err conftest.$ac_objext conftest.beam
4913 test "x$ac_cv_prog_cc_c89" != "xno" && break
4914 done
4915 rm -f conftest.$ac_ext
4916 CC=$ac_save_CC
4917 fi
4918
4919 if test "x$ac_cv_prog_cc_c89" = xno
4920 then :
4921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4922 printf "%s\n" "unsupported" >&6; }
4923 else $as_nop
4924 if test "x$ac_cv_prog_cc_c89" = x
4925 then :
4926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4927 printf "%s\n" "none needed" >&6; }
4928 else $as_nop
4929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4930 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4931 CC="$CC $ac_cv_prog_cc_c89"
4932 fi
4933 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4934 ac_prog_cc_stdc=c89
4935 fi
4936 fi
4937
4938 ac_ext=c
4939 ac_cpp='$CPP $CPPFLAGS'
4940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4943
4944
4945 ac_ext=c
4946 ac_cpp='$CPP $CPPFLAGS'
4947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4951 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4952 if test ${am_cv_prog_cc_c_o+y}
4953 then :
4954 printf %s "(cached) " >&6
4955 else $as_nop
4956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4957 /* end confdefs.h. */
4958
4959 int
4960 main (void)
4961 {
4962
4963 ;
4964 return 0;
4965 }
4966 _ACEOF
4967 # Make sure it works both with $CC and with simple cc.
4968 # Following AC_PROG_CC_C_O, we do the test twice because some
4969 # compilers refuse to overwrite an existing .o file with -o,
4970 # though they will create one.
4971 am_cv_prog_cc_c_o=yes
4972 for am_i in 1 2; do
4973 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4974 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4975 ac_status=$?
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); } \
4978 && test -f conftest2.$ac_objext; then
4979 : OK
4980 else
4981 am_cv_prog_cc_c_o=no
4982 break
4983 fi
4984 done
4985 rm -f core conftest*
4986 unset am_i
4987 fi
4988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4989 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4990 if test "$am_cv_prog_cc_c_o" != yes; then
4991 # Losing compiler, so override with the script.
4992 # FIXME: It is wrong to rewrite CC.
4993 # But if we don't then we get into trouble of one sort or another.
4994 # A longer-term fix would be to have automake use am__CC in this case,
4995 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4996 CC="$am_aux_dir/compile $CC"
4997 fi
4998 ac_ext=c
4999 ac_cpp='$CPP $CPPFLAGS'
5000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5003
5004
5005 depcc="$CC" am_compiler_list=
5006
5007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5008 printf %s "checking dependency style of $depcc... " >&6; }
5009 if test ${am_cv_CC_dependencies_compiler_type+y}
5010 then :
5011 printf %s "(cached) " >&6
5012 else $as_nop
5013 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5014 # We make a subdir and do the tests there. Otherwise we can end up
5015 # making bogus files that we don't know about and never remove. For
5016 # instance it was reported that on HP-UX the gcc test will end up
5017 # making a dummy file named 'D' -- because '-MD' means "put the output
5018 # in D".
5019 rm -rf conftest.dir
5020 mkdir conftest.dir
5021 # Copy depcomp to subdir because otherwise we won't find it if we're
5022 # using a relative directory.
5023 cp "$am_depcomp" conftest.dir
5024 cd conftest.dir
5025 # We will build objects and dependencies in a subdirectory because
5026 # it helps to detect inapplicable dependency modes. For instance
5027 # both Tru64's cc and ICC support -MD to output dependencies as a
5028 # side effect of compilation, but ICC will put the dependencies in
5029 # the current directory while Tru64 will put them in the object
5030 # directory.
5031 mkdir sub
5032
5033 am_cv_CC_dependencies_compiler_type=none
5034 if test "$am_compiler_list" = ""; then
5035 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5036 fi
5037 am__universal=false
5038 case " $depcc " in #(
5039 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5040 esac
5041
5042 for depmode in $am_compiler_list; do
5043 # Setup a source with many dependencies, because some compilers
5044 # like to wrap large dependency lists on column 80 (with \), and
5045 # we should not choose a depcomp mode which is confused by this.
5046 #
5047 # We need to recreate these files for each test, as the compiler may
5048 # overwrite some of them when testing with obscure command lines.
5049 # This happens at least with the AIX C compiler.
5050 : > sub/conftest.c
5051 for i in 1 2 3 4 5 6; do
5052 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5053 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5054 # Solaris 10 /bin/sh.
5055 echo '/* dummy */' > sub/conftst$i.h
5056 done
5057 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5058
5059 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5060 # mode. It turns out that the SunPro C++ compiler does not properly
5061 # handle '-M -o', and we need to detect this. Also, some Intel
5062 # versions had trouble with output in subdirs.
5063 am__obj=sub/conftest.${OBJEXT-o}
5064 am__minus_obj="-o $am__obj"
5065 case $depmode in
5066 gcc)
5067 # This depmode causes a compiler race in universal mode.
5068 test "$am__universal" = false || continue
5069 ;;
5070 nosideeffect)
5071 # After this tag, mechanisms are not by side-effect, so they'll
5072 # only be used when explicitly requested.
5073 if test "x$enable_dependency_tracking" = xyes; then
5074 continue
5075 else
5076 break
5077 fi
5078 ;;
5079 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5080 # This compiler won't grok '-c -o', but also, the minuso test has
5081 # not run yet. These depmodes are late enough in the game, and
5082 # so weak that their functioning should not be impacted.
5083 am__obj=conftest.${OBJEXT-o}
5084 am__minus_obj=
5085 ;;
5086 none) break ;;
5087 esac
5088 if depmode=$depmode \
5089 source=sub/conftest.c object=$am__obj \
5090 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5091 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5092 >/dev/null 2>conftest.err &&
5093 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5094 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5095 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5096 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5097 # icc doesn't choke on unknown options, it will just issue warnings
5098 # or remarks (even with -Werror). So we grep stderr for any message
5099 # that says an option was ignored or not supported.
5100 # When given -MP, icc 7.0 and 7.1 complain thusly:
5101 # icc: Command line warning: ignoring option '-M'; no argument required
5102 # The diagnosis changed in icc 8.0:
5103 # icc: Command line remark: option '-MP' not supported
5104 if (grep 'ignoring option' conftest.err ||
5105 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5106 am_cv_CC_dependencies_compiler_type=$depmode
5107 break
5108 fi
5109 fi
5110 done
5111
5112 cd ..
5113 rm -rf conftest.dir
5114 else
5115 am_cv_CC_dependencies_compiler_type=none
5116 fi
5117
5118 fi
5119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5120 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5121 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5122
5123 if
5124 test "x$enable_dependency_tracking" != xno \
5125 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5126 am__fastdepCC_TRUE=
5127 am__fastdepCC_FALSE='#'
5128 else
5129 am__fastdepCC_TRUE='#'
5130 am__fastdepCC_FALSE=
5131 fi
5132
5133
5134
5135 ac_ext=c
5136 ac_cpp='$CPP $CPPFLAGS'
5137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5141 printf %s "checking how to run the C preprocessor... " >&6; }
5142 # On Suns, sometimes $CPP names a directory.
5143 if test -n "$CPP" && test -d "$CPP"; then
5144 CPP=
5145 fi
5146 if test -z "$CPP"; then
5147 if test ${ac_cv_prog_CPP+y}
5148 then :
5149 printf %s "(cached) " >&6
5150 else $as_nop
5151 # Double quotes because $CC needs to be expanded
5152 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5153 do
5154 ac_preproc_ok=false
5155 for ac_c_preproc_warn_flag in '' yes
5156 do
5157 # Use a header file that comes with gcc, so configuring glibc
5158 # with a fresh cross-compiler works.
5159 # On the NeXT, cc -E runs the code through the compiler's parser,
5160 # not just through cpp. "Syntax error" is here to catch this case.
5161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5162 /* end confdefs.h. */
5163 #include <limits.h>
5164 Syntax error
5165 _ACEOF
5166 if ac_fn_c_try_cpp "$LINENO"
5167 then :
5168
5169 else $as_nop
5170 # Broken: fails on valid input.
5171 continue
5172 fi
5173 rm -f conftest.err conftest.i conftest.$ac_ext
5174
5175 # OK, works on sane cases. Now check whether nonexistent headers
5176 # can be detected and how.
5177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5178 /* end confdefs.h. */
5179 #include <ac_nonexistent.h>
5180 _ACEOF
5181 if ac_fn_c_try_cpp "$LINENO"
5182 then :
5183 # Broken: success on invalid input.
5184 continue
5185 else $as_nop
5186 # Passes both tests.
5187 ac_preproc_ok=:
5188 break
5189 fi
5190 rm -f conftest.err conftest.i conftest.$ac_ext
5191
5192 done
5193 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5194 rm -f conftest.i conftest.err conftest.$ac_ext
5195 if $ac_preproc_ok
5196 then :
5197 break
5198 fi
5199
5200 done
5201 ac_cv_prog_CPP=$CPP
5202
5203 fi
5204 CPP=$ac_cv_prog_CPP
5205 else
5206 ac_cv_prog_CPP=$CPP
5207 fi
5208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5209 printf "%s\n" "$CPP" >&6; }
5210 ac_preproc_ok=false
5211 for ac_c_preproc_warn_flag in '' yes
5212 do
5213 # Use a header file that comes with gcc, so configuring glibc
5214 # with a fresh cross-compiler works.
5215 # On the NeXT, cc -E runs the code through the compiler's parser,
5216 # not just through cpp. "Syntax error" is here to catch this case.
5217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5218 /* end confdefs.h. */
5219 #include <limits.h>
5220 Syntax error
5221 _ACEOF
5222 if ac_fn_c_try_cpp "$LINENO"
5223 then :
5224
5225 else $as_nop
5226 # Broken: fails on valid input.
5227 continue
5228 fi
5229 rm -f conftest.err conftest.i conftest.$ac_ext
5230
5231 # OK, works on sane cases. Now check whether nonexistent headers
5232 # can be detected and how.
5233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5234 /* end confdefs.h. */
5235 #include <ac_nonexistent.h>
5236 _ACEOF
5237 if ac_fn_c_try_cpp "$LINENO"
5238 then :
5239 # Broken: success on invalid input.
5240 continue
5241 else $as_nop
5242 # Passes both tests.
5243 ac_preproc_ok=:
5244 break
5245 fi
5246 rm -f conftest.err conftest.i conftest.$ac_ext
5247
5248 done
5249 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5250 rm -f conftest.i conftest.err conftest.$ac_ext
5251 if $ac_preproc_ok
5252 then :
5253
5254 else $as_nop
5255 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5256 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5257 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5258 See \`config.log' for more details" "$LINENO" 5; }
5259 fi
5260
5261 ac_ext=c
5262 ac_cpp='$CPP $CPPFLAGS'
5263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5266
5267
5268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
5269 printf %s "checking for X... " >&6; }
5270
5271
5272 # Check whether --with-x was given.
5273 if test ${with_x+y}
5274 then :
5275 withval=$with_x;
5276 fi
5277
5278 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5279 if test "x$with_x" = xno; then
5280 # The user explicitly disabled X.
5281 have_x=disabled
5282 else
5283 case $x_includes,$x_libraries in #(
5284 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
5285 *,NONE | NONE,*) if test ${ac_cv_have_x+y}
5286 then :
5287 printf %s "(cached) " >&6
5288 else $as_nop
5289 # One or both of the vars are not set, and there is no cached value.
5290 ac_x_includes=no
5291 ac_x_libraries=no
5292 # Do we need to do anything special at all?
5293 ac_save_LIBS=$LIBS
5294 LIBS="-lX11 $LIBS"
5295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5296 /* end confdefs.h. */
5297 #include <X11/Xlib.h>
5298 int
5299 main (void)
5300 {
5301 XrmInitialize ()
5302 ;
5303 return 0;
5304 }
5305 _ACEOF
5306 if ac_fn_c_try_link "$LINENO"
5307 then :
5308 # We can compile and link X programs with no special options.
5309 ac_x_includes=
5310 ac_x_libraries=
5311 fi
5312 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5313 conftest$ac_exeext conftest.$ac_ext
5314 LIBS="$ac_save_LIBS"
5315 # If that didn't work, only try xmkmf and file system searches
5316 # for native compilation.
5317 if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
5318 then :
5319 rm -f -r conftest.dir
5320 if mkdir conftest.dir; then
5321 cd conftest.dir
5322 cat >Imakefile <<'_ACEOF'
5323 incroot:
5324 @echo incroot='${INCROOT}'
5325 usrlibdir:
5326 @echo usrlibdir='${USRLIBDIR}'
5327 libdir:
5328 @echo libdir='${LIBDIR}'
5329 _ACEOF
5330 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
5331 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5332 for ac_var in incroot usrlibdir libdir; do
5333 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5334 done
5335 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5336 for ac_extension in a so sl dylib la dll; do
5337 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5338 test -f "$ac_im_libdir/libX11.$ac_extension"; then
5339 ac_im_usrlibdir=$ac_im_libdir; break
5340 fi
5341 done
5342 # Screen out bogus values from the imake configuration. They are
5343 # bogus both because they are the default anyway, and because
5344 # using them would break gcc on systems where it needs fixed includes.
5345 case $ac_im_incroot in
5346 /usr/include) ac_x_includes= ;;
5347 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5348 esac
5349 case $ac_im_usrlibdir in
5350 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
5351 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5352 esac
5353 fi
5354 cd ..
5355 rm -f -r conftest.dir
5356 fi
5357
5358 # Standard set of common directories for X headers.
5359 # Check X11 before X11Rn because it is often a symlink to the current release.
5360 ac_x_header_dirs='
5361 /usr/X11/include
5362 /usr/X11R7/include
5363 /usr/X11R6/include
5364 /usr/X11R5/include
5365 /usr/X11R4/include
5366
5367 /usr/include/X11
5368 /usr/include/X11R7
5369 /usr/include/X11R6
5370 /usr/include/X11R5
5371 /usr/include/X11R4
5372
5373 /usr/local/X11/include
5374 /usr/local/X11R7/include
5375 /usr/local/X11R6/include
5376 /usr/local/X11R5/include
5377 /usr/local/X11R4/include
5378
5379 /usr/local/include/X11
5380 /usr/local/include/X11R7
5381 /usr/local/include/X11R6
5382 /usr/local/include/X11R5
5383 /usr/local/include/X11R4
5384
5385 /opt/X11/include
5386
5387 /usr/X386/include
5388 /usr/x386/include
5389 /usr/XFree86/include/X11
5390
5391 /usr/include
5392 /usr/local/include
5393 /usr/unsupported/include
5394 /usr/athena/include
5395 /usr/local/x11r5/include
5396 /usr/lpp/Xamples/include
5397
5398 /usr/openwin/include
5399 /usr/openwin/share/include'
5400
5401 if test "$ac_x_includes" = no; then
5402 # Guess where to find include files, by looking for Xlib.h.
5403 # First, try using that file with no special directory specified.
5404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5405 /* end confdefs.h. */
5406 #include <X11/Xlib.h>
5407 _ACEOF
5408 if ac_fn_c_try_cpp "$LINENO"
5409 then :
5410 # We can compile using X headers with no special include directory.
5411 ac_x_includes=
5412 else $as_nop
5413 for ac_dir in $ac_x_header_dirs; do
5414 if test -r "$ac_dir/X11/Xlib.h"; then
5415 ac_x_includes=$ac_dir
5416 break
5417 fi
5418 done
5419 fi
5420 rm -f conftest.err conftest.i conftest.$ac_ext
5421 fi # $ac_x_includes = no
5422
5423 if test "$ac_x_libraries" = no; then
5424 # Check for the libraries.
5425 # See if we find them without any special options.
5426 # Don't add to $LIBS permanently.
5427 ac_save_LIBS=$LIBS
5428 LIBS="-lX11 $LIBS"
5429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5430 /* end confdefs.h. */
5431 #include <X11/Xlib.h>
5432 int
5433 main (void)
5434 {
5435 XrmInitialize ()
5436 ;
5437 return 0;
5438 }
5439 _ACEOF
5440 if ac_fn_c_try_link "$LINENO"
5441 then :
5442 LIBS=$ac_save_LIBS
5443 # We can link X programs with no special library path.
5444 ac_x_libraries=
5445 else $as_nop
5446 LIBS=$ac_save_LIBS
5447 for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5448 do
5449 # Don't even attempt the hair of trying to link an X program!
5450 for ac_extension in a so sl dylib la dll; do
5451 if test -r "$ac_dir/libX11.$ac_extension"; then
5452 ac_x_libraries=$ac_dir
5453 break 2
5454 fi
5455 done
5456 done
5457 fi
5458 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5459 conftest$ac_exeext conftest.$ac_ext
5460 fi # $ac_x_libraries = no
5461
5462 fi
5463 # Record the results.
5464 case $ac_x_includes,$ac_x_libraries in #(
5465 no,* | *,no | *\'*) :
5466 # Didn't find X, or a directory has "'" in its name.
5467 ac_cv_have_x="have_x=no" ;; #(
5468 *) :
5469 # Record where we found X for the cache.
5470 ac_cv_have_x="have_x=yes\
5471 ac_x_includes='$ac_x_includes'\
5472 ac_x_libraries='$ac_x_libraries'" ;;
5473 esac
5474 fi
5475 ;; #(
5476 *) have_x=yes;;
5477 esac
5478 eval "$ac_cv_have_x"
5479 fi # $with_x != no
5480
5481 if test "$have_x" != yes; then
5482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
5483 printf "%s\n" "$have_x" >&6; }
5484 no_x=yes
5485 else
5486 # If each of the values was on the command line, it overrides each guess.
5487 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5488 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5489 # Update the cache value to reflect the command line values.
5490 ac_cv_have_x="have_x=yes\
5491 ac_x_includes='$x_includes'\
5492 ac_x_libraries='$x_libraries'"
5493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
5494 printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; }
5495 fi
5496
5497 if test "$no_x" = yes; then
5498 # Not all programs may use this symbol, but it does not hurt to define it.
5499
5500 printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h
5501
5502 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5503 else
5504 if test -n "$x_includes"; then
5505 X_CFLAGS="$X_CFLAGS -I$x_includes"
5506 fi
5507
5508 # It would also be nice to do this for all -L options, not just this one.
5509 if test -n "$x_libraries"; then
5510 X_LIBS="$X_LIBS -L$x_libraries"
5511 # For Solaris; some versions of Sun CC require a space after -R and
5512 # others require no space. Words are not sufficient . . . .
5513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
5514 printf %s "checking whether -R must be followed by a space... " >&6; }
5515 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5516 ac_xsave_c_werror_flag=$ac_c_werror_flag
5517 ac_c_werror_flag=yes
5518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5519 /* end confdefs.h. */
5520
5521 int
5522 main (void)
5523 {
5524
5525 ;
5526 return 0;
5527 }
5528 _ACEOF
5529 if ac_fn_c_try_link "$LINENO"
5530 then :
5531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5532 printf "%s\n" "no" >&6; }
5533 X_LIBS="$X_LIBS -R$x_libraries"
5534 else $as_nop
5535 LIBS="$ac_xsave_LIBS -R $x_libraries"
5536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5537 /* end confdefs.h. */
5538
5539 int
5540 main (void)
5541 {
5542
5543 ;
5544 return 0;
5545 }
5546 _ACEOF
5547 if ac_fn_c_try_link "$LINENO"
5548 then :
5549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5550 printf "%s\n" "yes" >&6; }
5551 X_LIBS="$X_LIBS -R $x_libraries"
5552 else $as_nop
5553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
5554 printf "%s\n" "neither works" >&6; }
5555 fi
5556 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5557 conftest$ac_exeext conftest.$ac_ext
5558 fi
5559 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5560 conftest$ac_exeext conftest.$ac_ext
5561 ac_c_werror_flag=$ac_xsave_c_werror_flag
5562 LIBS=$ac_xsave_LIBS
5563 fi
5564
5565 # Check for system-dependent libraries X programs must link with.
5566 # Do this before checking for the system-independent R6 libraries
5567 # (-lICE), since we may need -lsocket or whatever for X linking.
5568
5569 if test "$ISC" = yes; then
5570 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5571 else
5572 # Martyn Johnson says this is needed for Ultrix, if the X
5573 # libraries were built with DECnet support. And Karl Berry says
5574 # the Alpha needs dnet_stub (dnet does not exist).
5575 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5577 /* end confdefs.h. */
5578
5579 /* Override any GCC internal prototype to avoid an error.
5580 Use char because int might match the return type of a GCC
5581 builtin and then its argument prototype would still apply. */
5582 char XOpenDisplay ();
5583 int
5584 main (void)
5585 {
5586 return XOpenDisplay ();
5587 ;
5588 return 0;
5589 }
5590 _ACEOF
5591 if ac_fn_c_try_link "$LINENO"
5592 then :
5593
5594 else $as_nop
5595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
5596 printf %s "checking for dnet_ntoa in -ldnet... " >&6; }
5597 if test ${ac_cv_lib_dnet_dnet_ntoa+y}
5598 then :
5599 printf %s "(cached) " >&6
5600 else $as_nop
5601 ac_check_lib_save_LIBS=$LIBS
5602 LIBS="-ldnet $LIBS"
5603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5604 /* end confdefs.h. */
5605
5606 /* Override any GCC internal prototype to avoid an error.
5607 Use char because int might match the return type of a GCC
5608 builtin and then its argument prototype would still apply. */
5609 char dnet_ntoa ();
5610 int
5611 main (void)
5612 {
5613 return dnet_ntoa ();
5614 ;
5615 return 0;
5616 }
5617 _ACEOF
5618 if ac_fn_c_try_link "$LINENO"
5619 then :
5620 ac_cv_lib_dnet_dnet_ntoa=yes
5621 else $as_nop
5622 ac_cv_lib_dnet_dnet_ntoa=no
5623 fi
5624 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5625 conftest$ac_exeext conftest.$ac_ext
5626 LIBS=$ac_check_lib_save_LIBS
5627 fi
5628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5629 printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
5630 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
5631 then :
5632 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5633 fi
5634
5635 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
5637 printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; }
5638 if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y}
5639 then :
5640 printf %s "(cached) " >&6
5641 else $as_nop
5642 ac_check_lib_save_LIBS=$LIBS
5643 LIBS="-ldnet_stub $LIBS"
5644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5645 /* end confdefs.h. */
5646
5647 /* Override any GCC internal prototype to avoid an error.
5648 Use char because int might match the return type of a GCC
5649 builtin and then its argument prototype would still apply. */
5650 char dnet_ntoa ();
5651 int
5652 main (void)
5653 {
5654 return dnet_ntoa ();
5655 ;
5656 return 0;
5657 }
5658 _ACEOF
5659 if ac_fn_c_try_link "$LINENO"
5660 then :
5661 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5662 else $as_nop
5663 ac_cv_lib_dnet_stub_dnet_ntoa=no
5664 fi
5665 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5666 conftest$ac_exeext conftest.$ac_ext
5667 LIBS=$ac_check_lib_save_LIBS
5668 fi
5669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5670 printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
5671 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
5672 then :
5673 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5674 fi
5675
5676 fi
5677 fi
5678 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5679 conftest$ac_exeext conftest.$ac_ext
5680 LIBS="$ac_xsave_LIBS"
5681
5682 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
5683 # to get the SysV transport functions.
5684 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5685 # needs -lnsl.
5686 # The nsl library prevents programs from opening the X display
5687 # on Irix 5.2, according to T.E. Dickey.
5688 # The functions gethostbyname, getservbyname, and inet_addr are
5689 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5690 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
5691 if test "x$ac_cv_func_gethostbyname" = xyes
5692 then :
5693
5694 fi
5695
5696 if test $ac_cv_func_gethostbyname = no; then
5697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
5698 printf %s "checking for gethostbyname in -lnsl... " >&6; }
5699 if test ${ac_cv_lib_nsl_gethostbyname+y}
5700 then :
5701 printf %s "(cached) " >&6
5702 else $as_nop
5703 ac_check_lib_save_LIBS=$LIBS
5704 LIBS="-lnsl $LIBS"
5705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5706 /* end confdefs.h. */
5707
5708 /* Override any GCC internal prototype to avoid an error.
5709 Use char because int might match the return type of a GCC
5710 builtin and then its argument prototype would still apply. */
5711 char gethostbyname ();
5712 int
5713 main (void)
5714 {
5715 return gethostbyname ();
5716 ;
5717 return 0;
5718 }
5719 _ACEOF
5720 if ac_fn_c_try_link "$LINENO"
5721 then :
5722 ac_cv_lib_nsl_gethostbyname=yes
5723 else $as_nop
5724 ac_cv_lib_nsl_gethostbyname=no
5725 fi
5726 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5727 conftest$ac_exeext conftest.$ac_ext
5728 LIBS=$ac_check_lib_save_LIBS
5729 fi
5730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
5731 printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
5732 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
5733 then :
5734 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5735 fi
5736
5737 if test $ac_cv_lib_nsl_gethostbyname = no; then
5738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
5739 printf %s "checking for gethostbyname in -lbsd... " >&6; }
5740 if test ${ac_cv_lib_bsd_gethostbyname+y}
5741 then :
5742 printf %s "(cached) " >&6
5743 else $as_nop
5744 ac_check_lib_save_LIBS=$LIBS
5745 LIBS="-lbsd $LIBS"
5746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5747 /* end confdefs.h. */
5748
5749 /* Override any GCC internal prototype to avoid an error.
5750 Use char because int might match the return type of a GCC
5751 builtin and then its argument prototype would still apply. */
5752 char gethostbyname ();
5753 int
5754 main (void)
5755 {
5756 return gethostbyname ();
5757 ;
5758 return 0;
5759 }
5760 _ACEOF
5761 if ac_fn_c_try_link "$LINENO"
5762 then :
5763 ac_cv_lib_bsd_gethostbyname=yes
5764 else $as_nop
5765 ac_cv_lib_bsd_gethostbyname=no
5766 fi
5767 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5768 conftest$ac_exeext conftest.$ac_ext
5769 LIBS=$ac_check_lib_save_LIBS
5770 fi
5771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
5772 printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; }
5773 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
5774 then :
5775 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5776 fi
5777
5778 fi
5779 fi
5780
5781 # [email protected] says without -lsocket,
5782 # socket/setsockopt and other routines are undefined under SCO ODT
5783 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5784 # on later versions), says Simon Leinen: it contains gethostby*
5785 # variants that don't use the name server (or something). -lsocket
5786 # must be given before -lnsl if both are needed. We assume that
5787 # if connect needs -lnsl, so does gethostbyname.
5788 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
5789 if test "x$ac_cv_func_connect" = xyes
5790 then :
5791
5792 fi
5793
5794 if test $ac_cv_func_connect = no; then
5795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
5796 printf %s "checking for connect in -lsocket... " >&6; }
5797 if test ${ac_cv_lib_socket_connect+y}
5798 then :
5799 printf %s "(cached) " >&6
5800 else $as_nop
5801 ac_check_lib_save_LIBS=$LIBS
5802 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5804 /* end confdefs.h. */
5805
5806 /* Override any GCC internal prototype to avoid an error.
5807 Use char because int might match the return type of a GCC
5808 builtin and then its argument prototype would still apply. */
5809 char connect ();
5810 int
5811 main (void)
5812 {
5813 return connect ();
5814 ;
5815 return 0;
5816 }
5817 _ACEOF
5818 if ac_fn_c_try_link "$LINENO"
5819 then :
5820 ac_cv_lib_socket_connect=yes
5821 else $as_nop
5822 ac_cv_lib_socket_connect=no
5823 fi
5824 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5825 conftest$ac_exeext conftest.$ac_ext
5826 LIBS=$ac_check_lib_save_LIBS
5827 fi
5828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
5829 printf "%s\n" "$ac_cv_lib_socket_connect" >&6; }
5830 if test "x$ac_cv_lib_socket_connect" = xyes
5831 then :
5832 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5833 fi
5834
5835 fi
5836
5837 # Guillermo Gomez says -lposix is necessary on A/UX.
5838 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
5839 if test "x$ac_cv_func_remove" = xyes
5840 then :
5841
5842 fi
5843
5844 if test $ac_cv_func_remove = no; then
5845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
5846 printf %s "checking for remove in -lposix... " >&6; }
5847 if test ${ac_cv_lib_posix_remove+y}
5848 then :
5849 printf %s "(cached) " >&6
5850 else $as_nop
5851 ac_check_lib_save_LIBS=$LIBS
5852 LIBS="-lposix $LIBS"
5853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5854 /* end confdefs.h. */
5855
5856 /* Override any GCC internal prototype to avoid an error.
5857 Use char because int might match the return type of a GCC
5858 builtin and then its argument prototype would still apply. */
5859 char remove ();
5860 int
5861 main (void)
5862 {
5863 return remove ();
5864 ;
5865 return 0;
5866 }
5867 _ACEOF
5868 if ac_fn_c_try_link "$LINENO"
5869 then :
5870 ac_cv_lib_posix_remove=yes
5871 else $as_nop
5872 ac_cv_lib_posix_remove=no
5873 fi
5874 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5875 conftest$ac_exeext conftest.$ac_ext
5876 LIBS=$ac_check_lib_save_LIBS
5877 fi
5878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
5879 printf "%s\n" "$ac_cv_lib_posix_remove" >&6; }
5880 if test "x$ac_cv_lib_posix_remove" = xyes
5881 then :
5882 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5883 fi
5884
5885 fi
5886
5887 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5888 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
5889 if test "x$ac_cv_func_shmat" = xyes
5890 then :
5891
5892 fi
5893
5894 if test $ac_cv_func_shmat = no; then
5895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
5896 printf %s "checking for shmat in -lipc... " >&6; }
5897 if test ${ac_cv_lib_ipc_shmat+y}
5898 then :
5899 printf %s "(cached) " >&6
5900 else $as_nop
5901 ac_check_lib_save_LIBS=$LIBS
5902 LIBS="-lipc $LIBS"
5903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5904 /* end confdefs.h. */
5905
5906 /* Override any GCC internal prototype to avoid an error.
5907 Use char because int might match the return type of a GCC
5908 builtin and then its argument prototype would still apply. */
5909 char shmat ();
5910 int
5911 main (void)
5912 {
5913 return shmat ();
5914 ;
5915 return 0;
5916 }
5917 _ACEOF
5918 if ac_fn_c_try_link "$LINENO"
5919 then :
5920 ac_cv_lib_ipc_shmat=yes
5921 else $as_nop
5922 ac_cv_lib_ipc_shmat=no
5923 fi
5924 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5925 conftest$ac_exeext conftest.$ac_ext
5926 LIBS=$ac_check_lib_save_LIBS
5927 fi
5928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
5929 printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; }
5930 if test "x$ac_cv_lib_ipc_shmat" = xyes
5931 then :
5932 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5933 fi
5934
5935 fi
5936 fi
5937
5938 # Check for libraries that X11R6 Xt/Xaw programs need.
5939 ac_save_LDFLAGS=$LDFLAGS
5940 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5941 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5942 # check for ICE first), but we must link in the order -lSM -lICE or
5943 # we get undefined symbols. So assume we have SM if we have ICE.
5944 # These have to be linked with before -lX11, unlike the other
5945 # libraries we check for below, so use a different variable.
5946 # John Interrante, Karl Berry
5947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
5948 printf %s "checking for IceConnectionNumber in -lICE... " >&6; }
5949 if test ${ac_cv_lib_ICE_IceConnectionNumber+y}
5950 then :
5951 printf %s "(cached) " >&6
5952 else $as_nop
5953 ac_check_lib_save_LIBS=$LIBS
5954 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5956 /* end confdefs.h. */
5957
5958 /* Override any GCC internal prototype to avoid an error.
5959 Use char because int might match the return type of a GCC
5960 builtin and then its argument prototype would still apply. */
5961 char IceConnectionNumber ();
5962 int
5963 main (void)
5964 {
5965 return IceConnectionNumber ();
5966 ;
5967 return 0;
5968 }
5969 _ACEOF
5970 if ac_fn_c_try_link "$LINENO"
5971 then :
5972 ac_cv_lib_ICE_IceConnectionNumber=yes
5973 else $as_nop
5974 ac_cv_lib_ICE_IceConnectionNumber=no
5975 fi
5976 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5977 conftest$ac_exeext conftest.$ac_ext
5978 LIBS=$ac_check_lib_save_LIBS
5979 fi
5980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5981 printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5982 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
5983 then :
5984 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5985 fi
5986
5987 LDFLAGS=$ac_save_LDFLAGS
5988
5989 fi
5990
5991
5992 LIBS=$X_LIBS
5993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lposix4" >&5
5994 printf %s "checking for main in -lposix4... " >&6; }
5995 if test ${ac_cv_lib_posix4_main+y}
5996 then :
5997 printf %s "(cached) " >&6
5998 else $as_nop
5999 ac_check_lib_save_LIBS=$LIBS
6000 LIBS="-lposix4 $LIBS"
6001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6002 /* end confdefs.h. */
6003
6004
6005 int
6006 main (void)
6007 {
6008 return main ();
6009 ;
6010 return 0;
6011 }
6012 _ACEOF
6013 if ac_fn_c_try_link "$LINENO"
6014 then :
6015 ac_cv_lib_posix4_main=yes
6016 else $as_nop
6017 ac_cv_lib_posix4_main=no
6018 fi
6019 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6020 conftest$ac_exeext conftest.$ac_ext
6021 LIBS=$ac_check_lib_save_LIBS
6022 fi
6023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_main" >&5
6024 printf "%s\n" "$ac_cv_lib_posix4_main" >&6; }
6025 if test "x$ac_cv_lib_posix4_main" = xyes
6026 then :
6027 printf "%s\n" "#define HAVE_LIBPOSIX4 1" >>confdefs.h
6028
6029 LIBS="-lposix4 $LIBS"
6030
6031 else $as_nop
6032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: If this is Solaris, you need libposix4" >&5
6033 printf "%s\n" "$as_me: WARNING: If this is Solaris, you need libposix4" >&2;}
6034 fi
6035
6036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lz" >&5
6037 printf %s "checking for main in -lz... " >&6; }
6038 if test ${ac_cv_lib_z_main+y}
6039 then :
6040 printf %s "(cached) " >&6
6041 else $as_nop
6042 ac_check_lib_save_LIBS=$LIBS
6043 LIBS="-lz $LIBS"
6044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6045 /* end confdefs.h. */
6046
6047
6048 int
6049 main (void)
6050 {
6051 return main ();
6052 ;
6053 return 0;
6054 }
6055 _ACEOF
6056 if ac_fn_c_try_link "$LINENO"
6057 then :
6058 ac_cv_lib_z_main=yes
6059 else $as_nop
6060 ac_cv_lib_z_main=no
6061 fi
6062 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6063 conftest$ac_exeext conftest.$ac_ext
6064 LIBS=$ac_check_lib_save_LIBS
6065 fi
6066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_main" >&5
6067 printf "%s\n" "$ac_cv_lib_z_main" >&6; }
6068 if test "x$ac_cv_lib_z_main" = xyes
6069 then :
6070 printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h
6071
6072 LIBS="-lz $LIBS"
6073
6074 fi
6075
6076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
6077 printf %s "checking for main in -lm... " >&6; }
6078 if test ${ac_cv_lib_m_main+y}
6079 then :
6080 printf %s "(cached) " >&6
6081 else $as_nop
6082 ac_check_lib_save_LIBS=$LIBS
6083 LIBS="-lm $LIBS"
6084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6085 /* end confdefs.h. */
6086
6087
6088 int
6089 main (void)
6090 {
6091 return main ();
6092 ;
6093 return 0;
6094 }
6095 _ACEOF
6096 if ac_fn_c_try_link "$LINENO"
6097 then :
6098 ac_cv_lib_m_main=yes
6099 else $as_nop
6100 ac_cv_lib_m_main=no
6101 fi
6102 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6103 conftest$ac_exeext conftest.$ac_ext
6104 LIBS=$ac_check_lib_save_LIBS
6105 fi
6106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
6107 printf "%s\n" "$ac_cv_lib_m_main" >&6; }
6108 if test "x$ac_cv_lib_m_main" = xyes
6109 then :
6110 printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h
6111
6112 LIBS="-lm $LIBS"
6113
6114 fi
6115
6116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lpng" >&5
6117 printf %s "checking for main in -lpng... " >&6; }
6118 if test ${ac_cv_lib_png_main+y}
6119 then :
6120 printf %s "(cached) " >&6
6121 else $as_nop
6122 ac_check_lib_save_LIBS=$LIBS
6123 LIBS="-lpng $LIBS"
6124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6125 /* end confdefs.h. */
6126
6127
6128 int
6129 main (void)
6130 {
6131 return main ();
6132 ;
6133 return 0;
6134 }
6135 _ACEOF
6136 if ac_fn_c_try_link "$LINENO"
6137 then :
6138 ac_cv_lib_png_main=yes
6139 else $as_nop
6140 ac_cv_lib_png_main=no
6141 fi
6142 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6143 conftest$ac_exeext conftest.$ac_ext
6144 LIBS=$ac_check_lib_save_LIBS
6145 fi
6146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_main" >&5
6147 printf "%s\n" "$ac_cv_lib_png_main" >&6; }
6148 if test "x$ac_cv_lib_png_main" = xyes
6149 then :
6150 printf "%s\n" "#define HAVE_LIBPNG 1" >>confdefs.h
6151
6152 LIBS="-lpng $LIBS"
6153
6154 fi
6155
6156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
6157 printf %s "checking for main in -lpthread... " >&6; }
6158 if test ${ac_cv_lib_pthread_main+y}
6159 then :
6160 printf %s "(cached) " >&6
6161 else $as_nop
6162 ac_check_lib_save_LIBS=$LIBS
6163 LIBS="-lpthread $LIBS"
6164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6165 /* end confdefs.h. */
6166
6167
6168 int
6169 main (void)
6170 {
6171 return main ();
6172 ;
6173 return 0;
6174 }
6175 _ACEOF
6176 if ac_fn_c_try_link "$LINENO"
6177 then :
6178 ac_cv_lib_pthread_main=yes
6179 else $as_nop
6180 ac_cv_lib_pthread_main=no
6181 fi
6182 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6183 conftest$ac_exeext conftest.$ac_ext
6184 LIBS=$ac_check_lib_save_LIBS
6185 fi
6186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
6187 printf "%s\n" "$ac_cv_lib_pthread_main" >&6; }
6188 if test "x$ac_cv_lib_pthread_main" = xyes
6189 then :
6190 printf "%s\n" "#define HAVE_LIBPTHREAD 1" >>confdefs.h
6191
6192 LIBS="-lpthread $LIBS"
6193
6194 fi
6195
6196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lX11" >&5
6197 printf %s "checking for main in -lX11... " >&6; }
6198 if test ${ac_cv_lib_X11_main+y}
6199 then :
6200 printf %s "(cached) " >&6
6201 else $as_nop
6202 ac_check_lib_save_LIBS=$LIBS
6203 LIBS="-lX11 $LIBS"
6204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6205 /* end confdefs.h. */
6206
6207
6208 int
6209 main (void)
6210 {
6211 return main ();
6212 ;
6213 return 0;
6214 }
6215 _ACEOF
6216 if ac_fn_c_try_link "$LINENO"
6217 then :
6218 ac_cv_lib_X11_main=yes
6219 else $as_nop
6220 ac_cv_lib_X11_main=no
6221 fi
6222 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6223 conftest$ac_exeext conftest.$ac_ext
6224 LIBS=$ac_check_lib_save_LIBS
6225 fi
6226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_main" >&5
6227 printf "%s\n" "$ac_cv_lib_X11_main" >&6; }
6228 if test "x$ac_cv_lib_X11_main" = xyes
6229 then :
6230 printf "%s\n" "#define HAVE_LIBX11 1" >>confdefs.h
6231
6232 LIBS="-lX11 $LIBS"
6233
6234 fi
6235
6236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lXi" >&5
6237 printf %s "checking for main in -lXi... " >&6; }
6238 if test ${ac_cv_lib_Xi_main+y}
6239 then :
6240 printf %s "(cached) " >&6
6241 else $as_nop
6242 ac_check_lib_save_LIBS=$LIBS
6243 LIBS="-lXi $LIBS"
6244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6245 /* end confdefs.h. */
6246
6247
6248 int
6249 main (void)
6250 {
6251 return main ();
6252 ;
6253 return 0;
6254 }
6255 _ACEOF
6256 if ac_fn_c_try_link "$LINENO"
6257 then :
6258 ac_cv_lib_Xi_main=yes
6259 else $as_nop
6260 ac_cv_lib_Xi_main=no
6261 fi
6262 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6263 conftest$ac_exeext conftest.$ac_ext
6264 LIBS=$ac_check_lib_save_LIBS
6265 fi
6266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_main" >&5
6267 printf "%s\n" "$ac_cv_lib_Xi_main" >&6; }
6268 if test "x$ac_cv_lib_Xi_main" = xyes
6269 then :
6270 printf "%s\n" "#define HAVE_LIBXI 1" >>confdefs.h
6271
6272 LIBS="-lXi $LIBS"
6273
6274 fi
6275
6276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lXmu" >&5
6277 printf %s "checking for main in -lXmu... " >&6; }
6278 if test ${ac_cv_lib_Xmu_main+y}
6279 then :
6280 printf %s "(cached) " >&6
6281 else $as_nop
6282 ac_check_lib_save_LIBS=$LIBS
6283 LIBS="-lXmu $LIBS"
6284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6285 /* end confdefs.h. */
6286
6287
6288 int
6289 main (void)
6290 {
6291 return main ();
6292 ;
6293 return 0;
6294 }
6295 _ACEOF
6296 if ac_fn_c_try_link "$LINENO"
6297 then :
6298 ac_cv_lib_Xmu_main=yes
6299 else $as_nop
6300 ac_cv_lib_Xmu_main=no
6301 fi
6302 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6303 conftest$ac_exeext conftest.$ac_ext
6304 LIBS=$ac_check_lib_save_LIBS
6305 fi
6306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_main" >&5
6307 printf "%s\n" "$ac_cv_lib_Xmu_main" >&6; }
6308 if test "x$ac_cv_lib_Xmu_main" = xyes
6309 then :
6310 printf "%s\n" "#define HAVE_LIBXMU 1" >>confdefs.h
6311
6312 LIBS="-lXmu $LIBS"
6313
6314 fi
6315
6316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for glEnable in -lopengl32" >&5
6317 printf %s "checking for glEnable in -lopengl32... " >&6; }
6318 if test ${ac_cv_lib_opengl32_glEnable+y}
6319 then :
6320 printf %s "(cached) " >&6
6321 else $as_nop
6322 ac_check_lib_save_LIBS=$LIBS
6323 LIBS="-lopengl32 $LIBS"
6324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6325 /* end confdefs.h. */
6326
6327 /* Override any GCC internal prototype to avoid an error.
6328 Use char because int might match the return type of a GCC
6329 builtin and then its argument prototype would still apply. */
6330 char glEnable ();
6331 int
6332 main (void)
6333 {
6334 return glEnable ();
6335 ;
6336 return 0;
6337 }
6338 _ACEOF
6339 if ac_fn_c_try_link "$LINENO"
6340 then :
6341 ac_cv_lib_opengl32_glEnable=yes
6342 else $as_nop
6343 ac_cv_lib_opengl32_glEnable=no
6344 fi
6345 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6346 conftest$ac_exeext conftest.$ac_ext
6347 LIBS=$ac_check_lib_save_LIBS
6348 fi
6349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opengl32_glEnable" >&5
6350 printf "%s\n" "$ac_cv_lib_opengl32_glEnable" >&6; }
6351 if test "x$ac_cv_lib_opengl32_glEnable" = xyes
6352 then :
6353 printf "%s\n" "#define HAVE_LIBOPENGL32 1" >>confdefs.h
6354
6355 LIBS="-lopengl32 $LIBS"
6356
6357 else $as_nop
6358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: If this is Win32, you need opengl32" >&5
6359 printf "%s\n" "$as_me: WARNING: If this is Win32, you need opengl32" >&2;}
6360 fi
6361
6362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gluPerspective in -lglu32" >&5
6363 printf %s "checking for gluPerspective in -lglu32... " >&6; }
6364 if test ${ac_cv_lib_glu32_gluPerspective+y}
6365 then :
6366 printf %s "(cached) " >&6
6367 else $as_nop
6368 ac_check_lib_save_LIBS=$LIBS
6369 LIBS="-lglu32 $LIBS"
6370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6371 /* end confdefs.h. */
6372
6373 /* Override any GCC internal prototype to avoid an error.
6374 Use char because int might match the return type of a GCC
6375 builtin and then its argument prototype would still apply. */
6376 char gluPerspective ();
6377 int
6378 main (void)
6379 {
6380 return gluPerspective ();
6381 ;
6382 return 0;
6383 }
6384 _ACEOF
6385 if ac_fn_c_try_link "$LINENO"
6386 then :
6387 ac_cv_lib_glu32_gluPerspective=yes
6388 else $as_nop
6389 ac_cv_lib_glu32_gluPerspective=no
6390 fi
6391 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6392 conftest$ac_exeext conftest.$ac_ext
6393 LIBS=$ac_check_lib_save_LIBS
6394 fi
6395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_glu32_gluPerspective" >&5
6396 printf "%s\n" "$ac_cv_lib_glu32_gluPerspective" >&6; }
6397 if test "x$ac_cv_lib_glu32_gluPerspective" = xyes
6398 then :
6399 printf "%s\n" "#define HAVE_LIBGLU32 1" >>confdefs.h
6400
6401 LIBS="-lglu32 $LIBS"
6402
6403 else $as_nop
6404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: If this is Win32, you need glu32" >&5
6405 printf "%s\n" "$as_me: WARNING: If this is Win32, you need glu32" >&2;}
6406 fi
6407
6408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for glEnable in -lGL" >&5
6409 printf %s "checking for glEnable in -lGL... " >&6; }
6410 if test ${ac_cv_lib_GL_glEnable+y}
6411 then :
6412 printf %s "(cached) " >&6
6413 else $as_nop
6414 ac_check_lib_save_LIBS=$LIBS
6415 LIBS="-lGL $LIBS"
6416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6417 /* end confdefs.h. */
6418
6419 /* Override any GCC internal prototype to avoid an error.
6420 Use char because int might match the return type of a GCC
6421 builtin and then its argument prototype would still apply. */
6422 char glEnable ();
6423 int
6424 main (void)
6425 {
6426 return glEnable ();
6427 ;
6428 return 0;
6429 }
6430 _ACEOF
6431 if ac_fn_c_try_link "$LINENO"
6432 then :
6433 ac_cv_lib_GL_glEnable=yes
6434 else $as_nop
6435 ac_cv_lib_GL_glEnable=no
6436 fi
6437 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6438 conftest$ac_exeext conftest.$ac_ext
6439 LIBS=$ac_check_lib_save_LIBS
6440 fi
6441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glEnable" >&5
6442 printf "%s\n" "$ac_cv_lib_GL_glEnable" >&6; }
6443 if test "x$ac_cv_lib_GL_glEnable" = xyes
6444 then :
6445 printf "%s\n" "#define HAVE_LIBGL 1" >>confdefs.h
6446
6447 LIBS="-lGL $LIBS"
6448
6449 else $as_nop
6450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: If this is Linux, you need libGL" >&5
6451 printf "%s\n" "$as_me: WARNING: If this is Linux, you need libGL" >&2;}
6452 fi
6453
6454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gluPerspective in -lGLU" >&5
6455 printf %s "checking for gluPerspective in -lGLU... " >&6; }
6456 if test ${ac_cv_lib_GLU_gluPerspective+y}
6457 then :
6458 printf %s "(cached) " >&6
6459 else $as_nop
6460 ac_check_lib_save_LIBS=$LIBS
6461 LIBS="-lGLU $LIBS"
6462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6463 /* end confdefs.h. */
6464
6465 /* Override any GCC internal prototype to avoid an error.
6466 Use char because int might match the return type of a GCC
6467 builtin and then its argument prototype would still apply. */
6468 char gluPerspective ();
6469 int
6470 main (void)
6471 {
6472 return gluPerspective ();
6473 ;
6474 return 0;
6475 }
6476 _ACEOF
6477 if ac_fn_c_try_link "$LINENO"
6478 then :
6479 ac_cv_lib_GLU_gluPerspective=yes
6480 else $as_nop
6481 ac_cv_lib_GLU_gluPerspective=no
6482 fi
6483 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6484 conftest$ac_exeext conftest.$ac_ext
6485 LIBS=$ac_check_lib_save_LIBS
6486 fi
6487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLU_gluPerspective" >&5
6488 printf "%s\n" "$ac_cv_lib_GLU_gluPerspective" >&6; }
6489 if test "x$ac_cv_lib_GLU_gluPerspective" = xyes
6490 then :
6491 printf "%s\n" "#define HAVE_LIBGLU 1" >>confdefs.h
6492
6493 LIBS="-lGLU $LIBS"
6494
6495 else $as_nop
6496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: If this is Linux, you need libGLU" >&5
6497 printf "%s\n" "$as_me: WARNING: If this is Linux, you need libGLU" >&2;}
6498 fi
6499
6500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XDGAOpenFramebuffer in -lXxf86dga" >&5
6501 printf %s "checking for XDGAOpenFramebuffer in -lXxf86dga... " >&6; }
6502 if test ${ac_cv_lib_Xxf86dga_XDGAOpenFramebuffer+y}
6503 then :
6504 printf %s "(cached) " >&6
6505 else $as_nop
6506 ac_check_lib_save_LIBS=$LIBS
6507 LIBS="-lXxf86dga $LIBS"
6508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6509 /* end confdefs.h. */
6510
6511 /* Override any GCC internal prototype to avoid an error.
6512 Use char because int might match the return type of a GCC
6513 builtin and then its argument prototype would still apply. */
6514 char XDGAOpenFramebuffer ();
6515 int
6516 main (void)
6517 {
6518 return XDGAOpenFramebuffer ();
6519 ;
6520 return 0;
6521 }
6522 _ACEOF
6523 if ac_fn_c_try_link "$LINENO"
6524 then :
6525 ac_cv_lib_Xxf86dga_XDGAOpenFramebuffer=yes
6526 else $as_nop
6527 ac_cv_lib_Xxf86dga_XDGAOpenFramebuffer=no
6528 fi
6529 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6530 conftest$ac_exeext conftest.$ac_ext
6531 LIBS=$ac_check_lib_save_LIBS
6532 fi
6533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86dga_XDGAOpenFramebuffer" >&5
6534 printf "%s\n" "$ac_cv_lib_Xxf86dga_XDGAOpenFramebuffer" >&6; }
6535 if test "x$ac_cv_lib_Xxf86dga_XDGAOpenFramebuffer" = xyes
6536 then :
6537 printf "%s\n" "#define HAVE_LIBXXF86DGA 1" >>confdefs.h
6538
6539 LIBS="-lXxf86dga $LIBS"
6540
6541 fi
6542
6543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
6544 printf %s "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
6545 if test ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+y}
6546 then :
6547 printf %s "(cached) " >&6
6548 else $as_nop
6549 ac_check_lib_save_LIBS=$LIBS
6550 LIBS="-lXxf86vm $LIBS"
6551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6552 /* end confdefs.h. */
6553
6554 /* Override any GCC internal prototype to avoid an error.
6555 Use char because int might match the return type of a GCC
6556 builtin and then its argument prototype would still apply. */
6557 char XF86VidModeQueryVersion ();
6558 int
6559 main (void)
6560 {
6561 return XF86VidModeQueryVersion ();
6562 ;
6563 return 0;
6564 }
6565 _ACEOF
6566 if ac_fn_c_try_link "$LINENO"
6567 then :
6568 ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
6569 else $as_nop
6570 ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
6571 fi
6572 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6573 conftest$ac_exeext conftest.$ac_ext
6574 LIBS=$ac_check_lib_save_LIBS
6575 fi
6576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
6577 printf "%s\n" "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
6578 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes
6579 then :
6580 printf "%s\n" "#define HAVE_LIBXXF86VM 1" >>confdefs.h
6581
6582 LIBS="-lXxf86vm $LIBS"
6583
6584 fi
6585
6586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XvQueryExtension in -lXv" >&5
6587 printf %s "checking for XvQueryExtension in -lXv... " >&6; }
6588 if test ${ac_cv_lib_Xv_XvQueryExtension+y}
6589 then :
6590 printf %s "(cached) " >&6
6591 else $as_nop
6592 ac_check_lib_save_LIBS=$LIBS
6593 LIBS="-lXv $LIBS"
6594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6595 /* end confdefs.h. */
6596
6597 /* Override any GCC internal prototype to avoid an error.
6598 Use char because int might match the return type of a GCC
6599 builtin and then its argument prototype would still apply. */
6600 char XvQueryExtension ();
6601 int
6602 main (void)
6603 {
6604 return XvQueryExtension ();
6605 ;
6606 return 0;
6607 }
6608 _ACEOF
6609 if ac_fn_c_try_link "$LINENO"
6610 then :
6611 ac_cv_lib_Xv_XvQueryExtension=yes
6612 else $as_nop
6613 ac_cv_lib_Xv_XvQueryExtension=no
6614 fi
6615 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6616 conftest$ac_exeext conftest.$ac_ext
6617 LIBS=$ac_check_lib_save_LIBS
6618 fi
6619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xv_XvQueryExtension" >&5
6620 printf "%s\n" "$ac_cv_lib_Xv_XvQueryExtension" >&6; }
6621 if test "x$ac_cv_lib_Xv_XvQueryExtension" = xyes
6622 then :
6623 printf "%s\n" "#define HAVE_LIBXV 1" >>confdefs.h
6624
6625 LIBS="-lXv $LIBS"
6626
6627 fi
6628
6629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SDL_SetVideoMode in -lSDL" >&5
6630 printf %s "checking for SDL_SetVideoMode in -lSDL... " >&6; }
6631 if test ${ac_cv_lib_SDL_SDL_SetVideoMode+y}
6632 then :
6633 printf %s "(cached) " >&6
6634 else $as_nop
6635 ac_check_lib_save_LIBS=$LIBS
6636 LIBS="-lSDL $LIBS"
6637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6638 /* end confdefs.h. */
6639
6640 /* Override any GCC internal prototype to avoid an error.
6641 Use char because int might match the return type of a GCC
6642 builtin and then its argument prototype would still apply. */
6643 char SDL_SetVideoMode ();
6644 int
6645 main (void)
6646 {
6647 return SDL_SetVideoMode ();
6648 ;
6649 return 0;
6650 }
6651 _ACEOF
6652 if ac_fn_c_try_link "$LINENO"
6653 then :
6654 ac_cv_lib_SDL_SDL_SetVideoMode=yes
6655 else $as_nop
6656 ac_cv_lib_SDL_SDL_SetVideoMode=no
6657 fi
6658 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6659 conftest$ac_exeext conftest.$ac_ext
6660 LIBS=$ac_check_lib_save_LIBS
6661 fi
6662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_SDL_SetVideoMode" >&5
6663 printf "%s\n" "$ac_cv_lib_SDL_SDL_SetVideoMode" >&6; }
6664 if test "x$ac_cv_lib_SDL_SDL_SetVideoMode" = xyes
6665 then :
6666 printf "%s\n" "#define HAVE_LIBSDL 1" >>confdefs.h
6667
6668 LIBS="-lSDL $LIBS"
6669
6670 fi
6671
6672
6673 ac_header= ac_cache=
6674 for ac_item in $ac_header_c_list
6675 do
6676 if test $ac_cache; then
6677 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
6678 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
6679 printf "%s\n" "#define $ac_item 1" >> confdefs.h
6680 fi
6681 ac_header= ac_cache=
6682 elif test $ac_header; then
6683 ac_cache=$ac_item
6684 else
6685 ac_header=$ac_item
6686 fi
6687 done
6688
6689
6690
6691
6692
6693
6694
6695
6696 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
6697 then :
6698
6699 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
6700
6701 fi
6702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6703 printf %s "checking for grep that handles long lines and -e... " >&6; }
6704 if test ${ac_cv_path_GREP+y}
6705 then :
6706 printf %s "(cached) " >&6
6707 else $as_nop
6708 if test -z "$GREP"; then
6709 ac_path_GREP_found=false
6710 # Loop through the user's path and test for each of PROGNAME-LIST
6711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6712 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6713 do
6714 IFS=$as_save_IFS
6715 case $as_dir in #(((
6716 '') as_dir=./ ;;
6717 */) ;;
6718 *) as_dir=$as_dir/ ;;
6719 esac
6720 for ac_prog in grep ggrep
6721 do
6722 for ac_exec_ext in '' $ac_executable_extensions; do
6723 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6724 as_fn_executable_p "$ac_path_GREP" || continue
6725 # Check for GNU ac_path_GREP and select it if it is found.
6726 # Check for GNU $ac_path_GREP
6727 case `"$ac_path_GREP" --version 2>&1` in
6728 *GNU*)
6729 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6730 *)
6731 ac_count=0
6732 printf %s 0123456789 >"conftest.in"
6733 while :
6734 do
6735 cat "conftest.in" "conftest.in" >"conftest.tmp"
6736 mv "conftest.tmp" "conftest.in"
6737 cp "conftest.in" "conftest.nl"
6738 printf "%s\n" 'GREP' >> "conftest.nl"
6739 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6740 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6741 as_fn_arith $ac_count + 1 && ac_count=$as_val
6742 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6743 # Best one so far, save it but keep looking for a better one
6744 ac_cv_path_GREP="$ac_path_GREP"
6745 ac_path_GREP_max=$ac_count
6746 fi
6747 # 10*(2^10) chars as input seems more than enough
6748 test $ac_count -gt 10 && break
6749 done
6750 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6751 esac
6752
6753 $ac_path_GREP_found && break 3
6754 done
6755 done
6756 done
6757 IFS=$as_save_IFS
6758 if test -z "$ac_cv_path_GREP"; then
6759 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6760 fi
6761 else
6762 ac_cv_path_GREP=$GREP
6763 fi
6764
6765 fi
6766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6767 printf "%s\n" "$ac_cv_path_GREP" >&6; }
6768 GREP="$ac_cv_path_GREP"
6769
6770
6771 # Autoupdate added the next two lines to ensure that your configure
6772 # script's behavior did not change. They are probably safe to remove.
6773
6774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6775 printf %s "checking for egrep... " >&6; }
6776 if test ${ac_cv_path_EGREP+y}
6777 then :
6778 printf %s "(cached) " >&6
6779 else $as_nop
6780 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6781 then ac_cv_path_EGREP="$GREP -E"
6782 else
6783 if test -z "$EGREP"; then
6784 ac_path_EGREP_found=false
6785 # Loop through the user's path and test for each of PROGNAME-LIST
6786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6788 do
6789 IFS=$as_save_IFS
6790 case $as_dir in #(((
6791 '') as_dir=./ ;;
6792 */) ;;
6793 *) as_dir=$as_dir/ ;;
6794 esac
6795 for ac_prog in egrep
6796 do
6797 for ac_exec_ext in '' $ac_executable_extensions; do
6798 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6799 as_fn_executable_p "$ac_path_EGREP" || continue
6800 # Check for GNU ac_path_EGREP and select it if it is found.
6801 # Check for GNU $ac_path_EGREP
6802 case `"$ac_path_EGREP" --version 2>&1` in
6803 *GNU*)
6804 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6805 *)
6806 ac_count=0
6807 printf %s 0123456789 >"conftest.in"
6808 while :
6809 do
6810 cat "conftest.in" "conftest.in" >"conftest.tmp"
6811 mv "conftest.tmp" "conftest.in"
6812 cp "conftest.in" "conftest.nl"
6813 printf "%s\n" 'EGREP' >> "conftest.nl"
6814 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6815 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6816 as_fn_arith $ac_count + 1 && ac_count=$as_val
6817 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6818 # Best one so far, save it but keep looking for a better one
6819 ac_cv_path_EGREP="$ac_path_EGREP"
6820 ac_path_EGREP_max=$ac_count
6821 fi
6822 # 10*(2^10) chars as input seems more than enough
6823 test $ac_count -gt 10 && break
6824 done
6825 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6826 esac
6827
6828 $ac_path_EGREP_found && break 3
6829 done
6830 done
6831 done
6832 IFS=$as_save_IFS
6833 if test -z "$ac_cv_path_EGREP"; then
6834 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6835 fi
6836 else
6837 ac_cv_path_EGREP=$EGREP
6838 fi
6839
6840 fi
6841 fi
6842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6843 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6844 EGREP="$ac_cv_path_EGREP"
6845
6846
6847
6848 ac_fn_c_check_header_compile "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" "$ac_includes_default"
6849 if test "x$ac_cv_header_GL_gl_h" = xyes
6850 then :
6851 printf "%s\n" "#define HAVE_GL_GL_H 1" >>confdefs.h
6852
6853 fi
6854 ac_fn_c_check_header_compile "$LINENO" "GL/glu.h" "ac_cv_header_GL_glu_h" "$ac_includes_default"
6855 if test "x$ac_cv_header_GL_glu_h" = xyes
6856 then :
6857 printf "%s\n" "#define HAVE_GL_GLU_H 1" >>confdefs.h
6858
6859 fi
6860 ac_fn_c_check_header_compile "$LINENO" "SDL/SDL.h" "ac_cv_header_SDL_SDL_h" "$ac_includes_default"
6861 if test "x$ac_cv_header_SDL_SDL_h" = xyes
6862 then :
6863 printf "%s\n" "#define HAVE_SDL_SDL_H 1" >>confdefs.h
6864
6865 fi
6866 ac_fn_c_check_header_compile "$LINENO" "SDL.h" "ac_cv_header_SDL_h" "$ac_includes_default"
6867 if test "x$ac_cv_header_SDL_h" = xyes
6868 then :
6869 printf "%s\n" "#define HAVE_SDL_H 1" >>confdefs.h
6870
6871 fi
6872 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
6873 if test "x$ac_cv_header_limits_h" = xyes
6874 then :
6875 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
6876
6877 fi
6878
6879
6880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6881 printf %s "checking for an ANSI C-conforming const... " >&6; }
6882 if test ${ac_cv_c_const+y}
6883 then :
6884 printf %s "(cached) " >&6
6885 else $as_nop
6886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6887 /* end confdefs.h. */
6888
6889 int
6890 main (void)
6891 {
6892
6893 #ifndef __cplusplus
6894 /* Ultrix mips cc rejects this sort of thing. */
6895 typedef int charset[2];
6896 const charset cs = { 0, 0 };
6897 /* SunOS 4.1.1 cc rejects this. */
6898 char const *const *pcpcc;
6899 char **ppc;
6900 /* NEC SVR4.0.2 mips cc rejects this. */
6901 struct point {int x, y;};
6902 static struct point const zero = {0,0};
6903 /* IBM XL C 1.02.0.0 rejects this.
6904 It does not let you subtract one const X* pointer from another in
6905 an arm of an if-expression whose if-part is not a constant
6906 expression */
6907 const char *g = "string";
6908 pcpcc = &g + (g ? g-g : 0);
6909 /* HPUX 7.0 cc rejects these. */
6910 ++pcpcc;
6911 ppc = (char**) pcpcc;
6912 pcpcc = (char const *const *) ppc;
6913 { /* SCO 3.2v4 cc rejects this sort of thing. */
6914 char tx;
6915 char *t = &tx;
6916 char const *s = 0 ? (char *) 0 : (char const *) 0;
6917
6918 *t++ = 0;
6919 if (s) return 0;
6920 }
6921 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6922 int x[] = {25, 17};
6923 const int *foo = &x[0];
6924 ++foo;
6925 }
6926 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6927 typedef const int *iptr;
6928 iptr p = 0;
6929 ++p;
6930 }
6931 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
6932 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6933 struct s { int j; const int *ap[3]; } bx;
6934 struct s *b = &bx; b->j = 5;
6935 }
6936 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6937 const int foo = 10;
6938 if (!foo) return 0;
6939 }
6940 return !cs[0] && !zero.x;
6941 #endif
6942
6943 ;
6944 return 0;
6945 }
6946 _ACEOF
6947 if ac_fn_c_try_compile "$LINENO"
6948 then :
6949 ac_cv_c_const=yes
6950 else $as_nop
6951 ac_cv_c_const=no
6952 fi
6953 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6954 fi
6955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6956 printf "%s\n" "$ac_cv_c_const" >&6; }
6957 if test $ac_cv_c_const = no; then
6958
6959 printf "%s\n" "#define const /**/" >>confdefs.h
6960
6961 fi
6962
6963
6964
6965
6966 ac_config_files="$ac_config_files Makefile"
6967
6968 cat >confcache <<\_ACEOF
6969 # This file is a shell script that caches the results of configure
6970 # tests run on this system so they can be shared between configure
6971 # scripts and configure runs, see configure's option --config-cache.
6972 # It is not useful on other systems. If it contains results you don't
6973 # want to keep, you may remove or edit it.
6974 #
6975 # config.status only pays attention to the cache file if you give it
6976 # the --recheck option to rerun configure.
6977 #
6978 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6979 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6980 # following values.
6981
6982 _ACEOF
6983
6984 # The following way of writing the cache mishandles newlines in values,
6985 # but we know of no workaround that is simple, portable, and efficient.
6986 # So, we kill variables containing newlines.
6987 # Ultrix sh set writes to stderr and can't be redirected directly,
6988 # and sets the high bit in the cache file unless we assign to the vars.
6989 (
6990 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6991 eval ac_val=\$$ac_var
6992 case $ac_val in #(
6993 *${as_nl}*)
6994 case $ac_var in #(
6995 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6996 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6997 esac
6998 case $ac_var in #(
6999 _ | IFS | as_nl) ;; #(
7000 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7001 *) { eval $ac_var=; unset $ac_var;} ;;
7002 esac ;;
7003 esac
7004 done
7005
7006 (set) 2>&1 |
7007 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7008 *${as_nl}ac_space=\ *)
7009 # `set' does not quote correctly, so add quotes: double-quote
7010 # substitution turns \\\\ into \\, and sed turns \\ into \.
7011 sed -n \
7012 "s/'/'\\\\''/g;
7013 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7014 ;; #(
7015 *)
7016 # `set' quotes correctly as required by POSIX, so do not add quotes.
7017 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7018 ;;
7019 esac |
7020 sort
7021 ) |
7022 sed '
7023 /^ac_cv_env_/b end
7024 t clear
7025 :clear
7026 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
7027 t end
7028 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7029 :end' >>confcache
7030 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7031 if test -w "$cache_file"; then
7032 if test "x$cache_file" != "x/dev/null"; then
7033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7034 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
7035 if test ! -f "$cache_file" || test -h "$cache_file"; then
7036 cat confcache >"$cache_file"
7037 else
7038 case $cache_file in #(
7039 */* | ?:*)
7040 mv -f confcache "$cache_file"$$ &&
7041 mv -f "$cache_file"$$ "$cache_file" ;; #(
7042 *)
7043 mv -f confcache "$cache_file" ;;
7044 esac
7045 fi
7046 fi
7047 else
7048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7049 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
7050 fi
7051 fi
7052 rm -f confcache
7053
7054 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7055 # Let make expand exec_prefix.
7056 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7057
7058 DEFS=-DHAVE_CONFIG_H
7059
7060 ac_libobjs=
7061 ac_ltlibobjs=
7062 U=
7063 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7064 # 1. Remove the extension, and $U if already installed.
7065 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7066 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
7067 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7068 # will be set to the directory where LIBOBJS objects are built.
7069 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7070 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7071 done
7072 LIBOBJS=$ac_libobjs
7073
7074 LTLIBOBJS=$ac_ltlibobjs
7075
7076
7077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
7078 printf %s "checking that generated files are newer than configure... " >&6; }
7079 if test -n "$am_sleep_pid"; then
7080 # Hide warnings about reused PIDs.
7081 wait $am_sleep_pid 2>/dev/null
7082 fi
7083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
7084 printf "%s\n" "done" >&6; }
7085 if test -n "$EXEEXT"; then
7086 am__EXEEXT_TRUE=
7087 am__EXEEXT_FALSE='#'
7088 else
7089 am__EXEEXT_TRUE='#'
7090 am__EXEEXT_FALSE=
7091 fi
7092
7093 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7094 as_fn_error $? "conditional \"AMDEP\" was never defined.
7095 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7096 fi
7097 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
7098 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
7099 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7100 fi
7101 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7102 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
7103 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7104 fi
7105
7106 : "${CONFIG_STATUS=./config.status}"
7107 ac_write_fail=0
7108 ac_clean_files_save=$ac_clean_files
7109 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7111 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
7112 as_write_fail=0
7113 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7114 #! $SHELL
7115 # Generated by $as_me.
7116 # Run this file to recreate the current configuration.
7117 # Compiler output produced by configure, useful for debugging
7118 # configure, is in config.log if it exists.
7119
7120 debug=false
7121 ac_cs_recheck=false
7122 ac_cs_silent=false
7123
7124 SHELL=\${CONFIG_SHELL-$SHELL}
7125 export SHELL
7126 _ASEOF
7127 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7128 ## -------------------- ##
7129 ## M4sh Initialization. ##
7130 ## -------------------- ##
7131
7132 # Be more Bourne compatible
7133 DUALCASE=1; export DUALCASE # for MKS sh
7134 as_nop=:
7135 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
7136 then :
7137 emulate sh
7138 NULLCMD=:
7139 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7140 # is contrary to our usage. Disable this feature.
7141 alias -g '${1+"$@"}'='"$@"'
7142 setopt NO_GLOB_SUBST
7143 else $as_nop
7144 case `(set -o) 2>/dev/null` in #(
7145 *posix*) :
7146 set -o posix ;; #(
7147 *) :
7148 ;;
7149 esac
7150 fi
7151
7152
7153
7154 # Reset variables that may have inherited troublesome values from
7155 # the environment.
7156
7157 # IFS needs to be set, to space, tab, and newline, in precisely that order.
7158 # (If _AS_PATH_WALK were called with IFS unset, it would have the
7159 # side effect of setting IFS to empty, thus disabling word splitting.)
7160 # Quoting is to prevent editors from complaining about space-tab.
7161 as_nl='
7162 '
7163 export as_nl
7164 IFS=" "" $as_nl"
7165
7166 PS1='$ '
7167 PS2='> '
7168 PS4='+ '
7169
7170 # Ensure predictable behavior from utilities with locale-dependent output.
7171 LC_ALL=C
7172 export LC_ALL
7173 LANGUAGE=C
7174 export LANGUAGE
7175
7176 # We cannot yet rely on "unset" to work, but we need these variables
7177 # to be unset--not just set to an empty or harmless value--now, to
7178 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
7179 # also avoids known problems related to "unset" and subshell syntax
7180 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
7181 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
7182 do eval test \${$as_var+y} \
7183 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7184 done
7185
7186 # Ensure that fds 0, 1, and 2 are open.
7187 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
7188 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
7189 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
7190
7191 # The user is always right.
7192 if ${PATH_SEPARATOR+false} :; then
7193 PATH_SEPARATOR=:
7194 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7195 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7196 PATH_SEPARATOR=';'
7197 }
7198 fi
7199
7200
7201 # Find who we are. Look in the path if we contain no directory separator.
7202 as_myself=
7203 case $0 in #((
7204 *[\\/]* ) as_myself=$0 ;;
7205 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7206 for as_dir in $PATH
7207 do
7208 IFS=$as_save_IFS
7209 case $as_dir in #(((
7210 '') as_dir=./ ;;
7211 */) ;;
7212 *) as_dir=$as_dir/ ;;
7213 esac
7214 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
7215 done
7216 IFS=$as_save_IFS
7217
7218 ;;
7219 esac
7220 # We did not find ourselves, most probably we were run as `sh COMMAND'
7221 # in which case we are not to be found in the path.
7222 if test "x$as_myself" = x; then
7223 as_myself=$0
7224 fi
7225 if test ! -f "$as_myself"; then
7226 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7227 exit 1
7228 fi
7229
7230
7231
7232 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7233 # ----------------------------------------
7234 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7235 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7236 # script with STATUS, using 1 if that was 0.
7237 as_fn_error ()
7238 {
7239 as_status=$1; test $as_status -eq 0 && as_status=1
7240 if test "$4"; then
7241 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7242 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7243 fi
7244 printf "%s\n" "$as_me: error: $2" >&2
7245 as_fn_exit $as_status
7246 } # as_fn_error
7247
7248
7249
7250 # as_fn_set_status STATUS
7251 # -----------------------
7252 # Set $? to STATUS, without forking.
7253 as_fn_set_status ()
7254 {
7255 return $1
7256 } # as_fn_set_status
7257
7258 # as_fn_exit STATUS
7259 # -----------------
7260 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7261 as_fn_exit ()
7262 {
7263 set +e
7264 as_fn_set_status $1
7265 exit $1
7266 } # as_fn_exit
7267
7268 # as_fn_unset VAR
7269 # ---------------
7270 # Portably unset VAR.
7271 as_fn_unset ()
7272 {
7273 { eval $1=; unset $1;}
7274 }
7275 as_unset=as_fn_unset
7276
7277 # as_fn_append VAR VALUE
7278 # ----------------------
7279 # Append the text in VALUE to the end of the definition contained in VAR. Take
7280 # advantage of any shell optimizations that allow amortized linear growth over
7281 # repeated appends, instead of the typical quadratic growth present in naive
7282 # implementations.
7283 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
7284 then :
7285 eval 'as_fn_append ()
7286 {
7287 eval $1+=\$2
7288 }'
7289 else $as_nop
7290 as_fn_append ()
7291 {
7292 eval $1=\$$1\$2
7293 }
7294 fi # as_fn_append
7295
7296 # as_fn_arith ARG...
7297 # ------------------
7298 # Perform arithmetic evaluation on the ARGs, and store the result in the
7299 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7300 # must be portable across $(()) and expr.
7301 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
7302 then :
7303 eval 'as_fn_arith ()
7304 {
7305 as_val=$(( $* ))
7306 }'
7307 else $as_nop
7308 as_fn_arith ()
7309 {
7310 as_val=`expr "$@" || test $? -eq 1`
7311 }
7312 fi # as_fn_arith
7313
7314
7315 if expr a : '\(a\)' >/dev/null 2>&1 &&
7316 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7317 as_expr=expr
7318 else
7319 as_expr=false
7320 fi
7321
7322 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7323 as_basename=basename
7324 else
7325 as_basename=false
7326 fi
7327
7328 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7329 as_dirname=dirname
7330 else
7331 as_dirname=false
7332 fi
7333
7334 as_me=`$as_basename -- "$0" ||
7335 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7336 X"$0" : 'X\(//\)$' \| \
7337 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7338 printf "%s\n" X/"$0" |
7339 sed '/^.*\/\([^/][^/]*\)\/*$/{
7340 s//\1/
7341 q
7342 }
7343 /^X\/\(\/\/\)$/{
7344 s//\1/
7345 q
7346 }
7347 /^X\/\(\/\).*/{
7348 s//\1/
7349 q
7350 }
7351 s/.*/./; q'`
7352
7353 # Avoid depending upon Character Ranges.
7354 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7355 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7356 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7357 as_cr_digits='0123456789'
7358 as_cr_alnum=$as_cr_Letters$as_cr_digits
7359
7360
7361 # Determine whether it's possible to make 'echo' print without a newline.
7362 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
7363 # for compatibility with existing Makefiles.
7364 ECHO_C= ECHO_N= ECHO_T=
7365 case `echo -n x` in #(((((
7366 -n*)
7367 case `echo 'xy\c'` in
7368 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7369 xy) ECHO_C='\c';;
7370 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7371 ECHO_T=' ';;
7372 esac;;
7373 *)
7374 ECHO_N='-n';;
7375 esac
7376
7377 # For backward compatibility with old third-party macros, we provide
7378 # the shell variables $as_echo and $as_echo_n. New code should use
7379 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
7380 as_echo='printf %s\n'
7381 as_echo_n='printf %s'
7382
7383 rm -f conf$$ conf$$.exe conf$$.file
7384 if test -d conf$$.dir; then
7385 rm -f conf$$.dir/conf$$.file
7386 else
7387 rm -f conf$$.dir
7388 mkdir conf$$.dir 2>/dev/null
7389 fi
7390 if (echo >conf$$.file) 2>/dev/null; then
7391 if ln -s conf$$.file conf$$ 2>/dev/null; then
7392 as_ln_s='ln -s'
7393 # ... but there are two gotchas:
7394 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7395 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7396 # In both cases, we have to default to `cp -pR'.
7397 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7398 as_ln_s='cp -pR'
7399 elif ln conf$$.file conf$$ 2>/dev/null; then
7400 as_ln_s=ln
7401 else
7402 as_ln_s='cp -pR'
7403 fi
7404 else
7405 as_ln_s='cp -pR'
7406 fi
7407 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7408 rmdir conf$$.dir 2>/dev/null
7409
7410
7411 # as_fn_mkdir_p
7412 # -------------
7413 # Create "$as_dir" as a directory, including parents if necessary.
7414 as_fn_mkdir_p ()
7415 {
7416
7417 case $as_dir in #(
7418 -*) as_dir=./$as_dir;;
7419 esac
7420 test -d "$as_dir" || eval $as_mkdir_p || {
7421 as_dirs=
7422 while :; do
7423 case $as_dir in #(
7424 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7425 *) as_qdir=$as_dir;;
7426 esac
7427 as_dirs="'$as_qdir' $as_dirs"
7428 as_dir=`$as_dirname -- "$as_dir" ||
7429 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7430 X"$as_dir" : 'X\(//\)[^/]' \| \
7431 X"$as_dir" : 'X\(//\)$' \| \
7432 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7433 printf "%s\n" X"$as_dir" |
7434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7435 s//\1/
7436 q
7437 }
7438 /^X\(\/\/\)[^/].*/{
7439 s//\1/
7440 q
7441 }
7442 /^X\(\/\/\)$/{
7443 s//\1/
7444 q
7445 }
7446 /^X\(\/\).*/{
7447 s//\1/
7448 q
7449 }
7450 s/.*/./; q'`
7451 test -d "$as_dir" && break
7452 done
7453 test -z "$as_dirs" || eval "mkdir $as_dirs"
7454 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7455
7456
7457 } # as_fn_mkdir_p
7458 if mkdir -p . 2>/dev/null; then
7459 as_mkdir_p='mkdir -p "$as_dir"'
7460 else
7461 test -d ./-p && rmdir ./-p
7462 as_mkdir_p=false
7463 fi
7464
7465
7466 # as_fn_executable_p FILE
7467 # -----------------------
7468 # Test if FILE is an executable regular file.
7469 as_fn_executable_p ()
7470 {
7471 test -f "$1" && test -x "$1"
7472 } # as_fn_executable_p
7473 as_test_x='test -x'
7474 as_executable_p=as_fn_executable_p
7475
7476 # Sed expression to map a string onto a valid CPP name.
7477 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7478
7479 # Sed expression to map a string onto a valid variable name.
7480 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7481
7482
7483 exec 6>&1
7484 ## ----------------------------------- ##
7485 ## Main body of $CONFIG_STATUS script. ##
7486 ## ----------------------------------- ##
7487 _ASEOF
7488 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7489
7490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7491 # Save the log message, to keep $0 and so on meaningful, and to
7492 # report actual input values of CONFIG_FILES etc. instead of their
7493 # values after options handling.
7494 ac_log="
7495 This file was extended by achilles $as_me 3, which was
7496 generated by GNU Autoconf 2.71. Invocation command line was
7497
7498 CONFIG_FILES = $CONFIG_FILES
7499 CONFIG_HEADERS = $CONFIG_HEADERS
7500 CONFIG_LINKS = $CONFIG_LINKS
7501 CONFIG_COMMANDS = $CONFIG_COMMANDS
7502 $ $0 $@
7503
7504 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7505 "
7506
7507 _ACEOF
7508
7509 case $ac_config_files in *"
7510 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7511 esac
7512
7513 case $ac_config_headers in *"
7514 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7515 esac
7516
7517
7518 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7519 # Files that config.status was made for.
7520 config_files="$ac_config_files"
7521 config_headers="$ac_config_headers"
7522 config_commands="$ac_config_commands"
7523
7524 _ACEOF
7525
7526 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7527 ac_cs_usage="\
7528 \`$as_me' instantiates files and other configuration actions
7529 from templates according to the current configuration. Unless the files
7530 and actions are specified as TAGs, all are instantiated by default.
7531
7532 Usage: $0 [OPTION]... [TAG]...
7533
7534 -h, --help print this help, then exit
7535 -V, --version print version number and configuration settings, then exit
7536 --config print configuration, then exit
7537 -q, --quiet, --silent
7538 do not print progress messages
7539 -d, --debug don't remove temporary files
7540 --recheck update $as_me by reconfiguring in the same conditions
7541 --file=FILE[:TEMPLATE]
7542 instantiate the configuration file FILE
7543 --header=FILE[:TEMPLATE]
7544 instantiate the configuration header FILE
7545
7546 Configuration files:
7547 $config_files
7548
7549 Configuration headers:
7550 $config_headers
7551
7552 Configuration commands:
7553 $config_commands
7554
7555 Report bugs to the package provider."
7556
7557 _ACEOF
7558 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
7559 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
7560 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7561 ac_cs_config='$ac_cs_config_escaped'
7562 ac_cs_version="\\
7563 achilles config.status 3
7564 configured by $0, generated by GNU Autoconf 2.71,
7565 with options \\"\$ac_cs_config\\"
7566
7567 Copyright (C) 2021 Free Software Foundation, Inc.
7568 This config.status script is free software; the Free Software Foundation
7569 gives unlimited permission to copy, distribute and modify it."
7570
7571 ac_pwd='$ac_pwd'
7572 srcdir='$srcdir'
7573 INSTALL='$INSTALL'
7574 MKDIR_P='$MKDIR_P'
7575 AWK='$AWK'
7576 test -n "\$AWK" || AWK=awk
7577 _ACEOF
7578
7579 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7580 # The default lists apply if the user does not specify any file.
7581 ac_need_defaults=:
7582 while test $# != 0
7583 do
7584 case $1 in
7585 --*=?*)
7586 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7587 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7588 ac_shift=:
7589 ;;
7590 --*=)
7591 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7592 ac_optarg=
7593 ac_shift=:
7594 ;;
7595 *)
7596 ac_option=$1
7597 ac_optarg=$2
7598 ac_shift=shift
7599 ;;
7600 esac
7601
7602 case $ac_option in
7603 # Handling of the options.
7604 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7605 ac_cs_recheck=: ;;
7606 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7607 printf "%s\n" "$ac_cs_version"; exit ;;
7608 --config | --confi | --conf | --con | --co | --c )
7609 printf "%s\n" "$ac_cs_config"; exit ;;
7610 --debug | --debu | --deb | --de | --d | -d )
7611 debug=: ;;
7612 --file | --fil | --fi | --f )
7613 $ac_shift
7614 case $ac_optarg in
7615 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7616 '') as_fn_error $? "missing file argument" ;;
7617 esac
7618 as_fn_append CONFIG_FILES " '$ac_optarg'"
7619 ac_need_defaults=false;;
7620 --header | --heade | --head | --hea )
7621 $ac_shift
7622 case $ac_optarg in
7623 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7624 esac
7625 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7626 ac_need_defaults=false;;
7627 --he | --h)
7628 # Conflict between --help and --header
7629 as_fn_error $? "ambiguous option: \`$1'
7630 Try \`$0 --help' for more information.";;
7631 --help | --hel | -h )
7632 printf "%s\n" "$ac_cs_usage"; exit ;;
7633 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7634 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7635 ac_cs_silent=: ;;
7636
7637 # This is an error.
7638 -*) as_fn_error $? "unrecognized option: \`$1'
7639 Try \`$0 --help' for more information." ;;
7640
7641 *) as_fn_append ac_config_targets " $1"
7642 ac_need_defaults=false ;;
7643
7644 esac
7645 shift
7646 done
7647
7648 ac_configure_extra_args=
7649
7650 if $ac_cs_silent; then
7651 exec 6>/dev/null
7652 ac_configure_extra_args="$ac_configure_extra_args --silent"
7653 fi
7654
7655 _ACEOF
7656 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7657 if \$ac_cs_recheck; then
7658 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7659 shift
7660 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
7661 CONFIG_SHELL='$SHELL'
7662 export CONFIG_SHELL
7663 exec "\$@"
7664 fi
7665
7666 _ACEOF
7667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7668 exec 5>>config.log
7669 {
7670 echo
7671 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7672 ## Running $as_me. ##
7673 _ASBOX
7674 printf "%s\n" "$ac_log"
7675 } >&5
7676
7677 _ACEOF
7678 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7679 #
7680 # INIT-COMMANDS
7681 #
7682 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
7683
7684 _ACEOF
7685
7686 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7687
7688 # Handling of arguments.
7689 for ac_config_target in $ac_config_targets
7690 do
7691 case $ac_config_target in
7692 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7693 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7694 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7695
7696 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7697 esac
7698 done
7699
7700
7701 # If the user did not use the arguments to specify the items to instantiate,
7702 # then the envvar interface is used. Set only those that are not.
7703 # We use the long form for the default assignment because of an extremely
7704 # bizarre bug on SunOS 4.1.3.
7705 if $ac_need_defaults; then
7706 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
7707 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
7708 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
7709 fi
7710
7711 # Have a temporary directory for convenience. Make it in the build tree
7712 # simply because there is no reason against having it here, and in addition,
7713 # creating and moving files from /tmp can sometimes cause problems.
7714 # Hook for its removal unless debugging.
7715 # Note that there is a small window in which the directory will not be cleaned:
7716 # after its creation but before its name has been assigned to `$tmp'.
7717 $debug ||
7718 {
7719 tmp= ac_tmp=
7720 trap 'exit_status=$?
7721 : "${ac_tmp:=$tmp}"
7722 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7723 ' 0
7724 trap 'as_fn_exit 1' 1 2 13 15
7725 }
7726 # Create a (secure) tmp directory for tmp files.
7727
7728 {
7729 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7730 test -d "$tmp"
7731 } ||
7732 {
7733 tmp=./conf$$-$RANDOM
7734 (umask 077 && mkdir "$tmp")
7735 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7736 ac_tmp=$tmp
7737
7738 # Set up the scripts for CONFIG_FILES section.
7739 # No need to generate them if there are no CONFIG_FILES.
7740 # This happens for instance with `./config.status config.h'.
7741 if test -n "$CONFIG_FILES"; then
7742
7743
7744 ac_cr=`echo X | tr X '\015'`
7745 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7746 # But we know of no other shell where ac_cr would be empty at this
7747 # point, so we can use a bashism as a fallback.
7748 if test "x$ac_cr" = x; then
7749 eval ac_cr=\$\'\\r\'
7750 fi
7751 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7752 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7753 ac_cs_awk_cr='\\r'
7754 else
7755 ac_cs_awk_cr=$ac_cr
7756 fi
7757
7758 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7759 _ACEOF
7760
7761
7762 {
7763 echo "cat >conf$$subs.awk <<_ACEOF" &&
7764 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7765 echo "_ACEOF"
7766 } >conf$$subs.sh ||
7767 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7768 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7769 ac_delim='%!_!# '
7770 for ac_last_try in false false false false false :; do
7771 . ./conf$$subs.sh ||
7772 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7773
7774 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7775 if test $ac_delim_n = $ac_delim_num; then
7776 break
7777 elif $ac_last_try; then
7778 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7779 else
7780 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7781 fi
7782 done
7783 rm -f conf$$subs.sh
7784
7785 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7786 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7787 _ACEOF
7788 sed -n '
7789 h
7790 s/^/S["/; s/!.*/"]=/
7791 p
7792 g
7793 s/^[^!]*!//
7794 :repl
7795 t repl
7796 s/'"$ac_delim"'$//
7797 t delim
7798 :nl
7799 h
7800 s/\(.\{148\}\)..*/\1/
7801 t more1
7802 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7803 p
7804 n
7805 b repl
7806 :more1
7807 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7808 p
7809 g
7810 s/.\{148\}//
7811 t nl
7812 :delim
7813 h
7814 s/\(.\{148\}\)..*/\1/
7815 t more2
7816 s/["\\]/\\&/g; s/^/"/; s/$/"/
7817 p
7818 b
7819 :more2
7820 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7821 p
7822 g
7823 s/.\{148\}//
7824 t delim
7825 ' <conf$$subs.awk | sed '
7826 /^[^""]/{
7827 N
7828 s/\n//
7829 }
7830 ' >>$CONFIG_STATUS || ac_write_fail=1
7831 rm -f conf$$subs.awk
7832 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7833 _ACAWK
7834 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7835 for (key in S) S_is_set[key] = 1
7836 FS = ""
7837
7838 }
7839 {
7840 line = $ 0
7841 nfields = split(line, field, "@")
7842 substed = 0
7843 len = length(field[1])
7844 for (i = 2; i < nfields; i++) {
7845 key = field[i]
7846 keylen = length(key)
7847 if (S_is_set[key]) {
7848 value = S[key]
7849 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7850 len += length(value) + length(field[++i])
7851 substed = 1
7852 } else
7853 len += 1 + keylen
7854 }
7855
7856 print line
7857 }
7858
7859 _ACAWK
7860 _ACEOF
7861 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7862 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7863 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7864 else
7865 cat
7866 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7867 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7868 _ACEOF
7869
7870 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7871 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7872 # trailing colons and then remove the whole line if VPATH becomes empty
7873 # (actually we leave an empty line to preserve line numbers).
7874 if test "x$srcdir" = x.; then
7875 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7876 h
7877 s///
7878 s/^/:/
7879 s/[ ]*$/:/
7880 s/:\$(srcdir):/:/g
7881 s/:\${srcdir}:/:/g
7882 s/:@srcdir@:/:/g
7883 s/^:*//
7884 s/:*$//
7885 x
7886 s/\(=[ ]*\).*/\1/
7887 G
7888 s/\n//
7889 s/^[^=]*=[ ]*$//
7890 }'
7891 fi
7892
7893 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7894 fi # test -n "$CONFIG_FILES"
7895
7896 # Set up the scripts for CONFIG_HEADERS section.
7897 # No need to generate them if there are no CONFIG_HEADERS.
7898 # This happens for instance with `./config.status Makefile'.
7899 if test -n "$CONFIG_HEADERS"; then
7900 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7901 BEGIN {
7902 _ACEOF
7903
7904 # Transform confdefs.h into an awk script `defines.awk', embedded as
7905 # here-document in config.status, that substitutes the proper values into
7906 # config.h.in to produce config.h.
7907
7908 # Create a delimiter string that does not exist in confdefs.h, to ease
7909 # handling of long lines.
7910 ac_delim='%!_!# '
7911 for ac_last_try in false false :; do
7912 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7913 if test -z "$ac_tt"; then
7914 break
7915 elif $ac_last_try; then
7916 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7917 else
7918 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7919 fi
7920 done
7921
7922 # For the awk script, D is an array of macro values keyed by name,
7923 # likewise P contains macro parameters if any. Preserve backslash
7924 # newline sequences.
7925
7926 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7927 sed -n '
7928 s/.\{148\}/&'"$ac_delim"'/g
7929 t rset
7930 :rset
7931 s/^[ ]*#[ ]*define[ ][ ]*/ /
7932 t def
7933 d
7934 :def
7935 s/\\$//
7936 t bsnl
7937 s/["\\]/\\&/g
7938 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7939 D["\1"]=" \3"/p
7940 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7941 d
7942 :bsnl
7943 s/["\\]/\\&/g
7944 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7945 D["\1"]=" \3\\\\\\n"\\/p
7946 t cont
7947 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7948 t cont
7949 d
7950 :cont
7951 n
7952 s/.\{148\}/&'"$ac_delim"'/g
7953 t clear
7954 :clear
7955 s/\\$//
7956 t bsnlc
7957 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7958 d
7959 :bsnlc
7960 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7961 b cont
7962 ' <confdefs.h | sed '
7963 s/'"$ac_delim"'/"\\\
7964 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7965
7966 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7967 for (key in D) D_is_set[key] = 1
7968 FS = ""
7969 }
7970 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7971 line = \$ 0
7972 split(line, arg, " ")
7973 if (arg[1] == "#") {
7974 defundef = arg[2]
7975 mac1 = arg[3]
7976 } else {
7977 defundef = substr(arg[1], 2)
7978 mac1 = arg[2]
7979 }
7980 split(mac1, mac2, "(") #)
7981 macro = mac2[1]
7982 prefix = substr(line, 1, index(line, defundef) - 1)
7983 if (D_is_set[macro]) {
7984 # Preserve the white space surrounding the "#".
7985 print prefix "define", macro P[macro] D[macro]
7986 next
7987 } else {
7988 # Replace #undef with comments. This is necessary, for example,
7989 # in the case of _POSIX_SOURCE, which is predefined and required
7990 # on some systems where configure will not decide to define it.
7991 if (defundef == "undef") {
7992 print "/*", prefix defundef, macro, "*/"
7993 next
7994 }
7995 }
7996 }
7997 { print }
7998 _ACAWK
7999 _ACEOF
8000 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8001 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8002 fi # test -n "$CONFIG_HEADERS"
8003
8004
8005 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8006 shift
8007 for ac_tag
8008 do
8009 case $ac_tag in
8010 :[FHLC]) ac_mode=$ac_tag; continue;;
8011 esac
8012 case $ac_mode$ac_tag in
8013 :[FHL]*:*);;
8014 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8015 :[FH]-) ac_tag=-:-;;
8016 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8017 esac
8018 ac_save_IFS=$IFS
8019 IFS=:
8020 set x $ac_tag
8021 IFS=$ac_save_IFS
8022 shift
8023 ac_file=$1
8024 shift
8025
8026 case $ac_mode in
8027 :L) ac_source=$1;;
8028 :[FH])
8029 ac_file_inputs=
8030 for ac_f
8031 do
8032 case $ac_f in
8033 -) ac_f="$ac_tmp/stdin";;
8034 *) # Look for the file first in the build tree, then in the source tree
8035 # (if the path is not absolute). The absolute path cannot be DOS-style,
8036 # because $ac_f cannot contain `:'.
8037 test -f "$ac_f" ||
8038 case $ac_f in
8039 [\\/$]*) false;;
8040 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8041 esac ||
8042 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8043 esac
8044 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8045 as_fn_append ac_file_inputs " '$ac_f'"
8046 done
8047
8048 # Let's still pretend it is `configure' which instantiates (i.e., don't
8049 # use $as_me), people would be surprised to read:
8050 # /* config.h. Generated by config.status. */
8051 configure_input='Generated from '`
8052 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8053 `' by configure.'
8054 if test x"$ac_file" != x-; then
8055 configure_input="$ac_file. $configure_input"
8056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8057 printf "%s\n" "$as_me: creating $ac_file" >&6;}
8058 fi
8059 # Neutralize special characters interpreted by sed in replacement strings.
8060 case $configure_input in #(
8061 *\&* | *\|* | *\\* )
8062 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
8063 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8064 *) ac_sed_conf_input=$configure_input;;
8065 esac
8066
8067 case $ac_tag in
8068 *:-:* | *:-) cat >"$ac_tmp/stdin" \
8069 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8070 esac
8071 ;;
8072 esac
8073
8074 ac_dir=`$as_dirname -- "$ac_file" ||
8075 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8076 X"$ac_file" : 'X\(//\)[^/]' \| \
8077 X"$ac_file" : 'X\(//\)$' \| \
8078 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8079 printf "%s\n" X"$ac_file" |
8080 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8081 s//\1/
8082 q
8083 }
8084 /^X\(\/\/\)[^/].*/{
8085 s//\1/
8086 q
8087 }
8088 /^X\(\/\/\)$/{
8089 s//\1/
8090 q
8091 }
8092 /^X\(\/\).*/{
8093 s//\1/
8094 q
8095 }
8096 s/.*/./; q'`
8097 as_dir="$ac_dir"; as_fn_mkdir_p
8098 ac_builddir=.
8099
8100 case "$ac_dir" in
8101 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8102 *)
8103 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
8104 # A ".." for each directory in $ac_dir_suffix.
8105 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8106 case $ac_top_builddir_sub in
8107 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8108 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8109 esac ;;
8110 esac
8111 ac_abs_top_builddir=$ac_pwd
8112 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8113 # for backward compatibility:
8114 ac_top_builddir=$ac_top_build_prefix
8115
8116 case $srcdir in
8117 .) # We are building in place.
8118 ac_srcdir=.
8119 ac_top_srcdir=$ac_top_builddir_sub
8120 ac_abs_top_srcdir=$ac_pwd ;;
8121 [\\/]* | ?:[\\/]* ) # Absolute name.
8122 ac_srcdir=$srcdir$ac_dir_suffix;
8123 ac_top_srcdir=$srcdir
8124 ac_abs_top_srcdir=$srcdir ;;
8125 *) # Relative name.
8126 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8127 ac_top_srcdir=$ac_top_build_prefix$srcdir
8128 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8129 esac
8130 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8131
8132
8133 case $ac_mode in
8134 :F)
8135 #
8136 # CONFIG_FILE
8137 #
8138
8139 case $INSTALL in
8140 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8141 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8142 esac
8143 ac_MKDIR_P=$MKDIR_P
8144 case $MKDIR_P in
8145 [\\/$]* | ?:[\\/]* ) ;;
8146 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8147 esac
8148 _ACEOF
8149
8150 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8151 # If the template does not know about datarootdir, expand it.
8152 # FIXME: This hack should be removed a few years after 2.60.
8153 ac_datarootdir_hack=; ac_datarootdir_seen=
8154 ac_sed_dataroot='
8155 /datarootdir/ {
8156 p
8157 q
8158 }
8159 /@datadir@/p
8160 /@docdir@/p
8161 /@infodir@/p
8162 /@localedir@/p
8163 /@mandir@/p'
8164 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8165 *datarootdir*) ac_datarootdir_seen=yes;;
8166 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8168 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8169 _ACEOF
8170 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8171 ac_datarootdir_hack='
8172 s&@datadir@&$datadir&g
8173 s&@docdir@&$docdir&g
8174 s&@infodir@&$infodir&g
8175 s&@localedir@&$localedir&g
8176 s&@mandir@&$mandir&g
8177 s&\\\${datarootdir}&$datarootdir&g' ;;
8178 esac
8179 _ACEOF
8180
8181 # Neutralize VPATH when `$srcdir' = `.'.
8182 # Shell code in configure.ac might set extrasub.
8183 # FIXME: do we really want to maintain this feature?
8184 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8185 ac_sed_extra="$ac_vpsub
8186 $extrasub
8187 _ACEOF
8188 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8189 :t
8190 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8191 s|@configure_input@|$ac_sed_conf_input|;t t
8192 s&@top_builddir@&$ac_top_builddir_sub&;t t
8193 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8194 s&@srcdir@&$ac_srcdir&;t t
8195 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8196 s&@top_srcdir@&$ac_top_srcdir&;t t
8197 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8198 s&@builddir@&$ac_builddir&;t t
8199 s&@abs_builddir@&$ac_abs_builddir&;t t
8200 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8201 s&@INSTALL@&$ac_INSTALL&;t t
8202 s&@MKDIR_P@&$ac_MKDIR_P&;t t
8203 $ac_datarootdir_hack
8204 "
8205 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8206 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8207
8208 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8209 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8210 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8211 "$ac_tmp/out"`; test -z "$ac_out"; } &&
8212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8213 which seems to be undefined. Please make sure it is defined" >&5
8214 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8215 which seems to be undefined. Please make sure it is defined" >&2;}
8216
8217 rm -f "$ac_tmp/stdin"
8218 case $ac_file in
8219 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8220 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8221 esac \
8222 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8223 ;;
8224 :H)
8225 #
8226 # CONFIG_HEADER
8227 #
8228 if test x"$ac_file" != x-; then
8229 {
8230 printf "%s\n" "/* $configure_input */" >&1 \
8231 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8232 } >"$ac_tmp/config.h" \
8233 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8234 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8236 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
8237 else
8238 rm -f "$ac_file"
8239 mv "$ac_tmp/config.h" "$ac_file" \
8240 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8241 fi
8242 else
8243 printf "%s\n" "/* $configure_input */" >&1 \
8244 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8245 || as_fn_error $? "could not create -" "$LINENO" 5
8246 fi
8247 # Compute "$ac_file"'s index in $config_headers.
8248 _am_arg="$ac_file"
8249 _am_stamp_count=1
8250 for _am_header in $config_headers :; do
8251 case $_am_header in
8252 $_am_arg | $_am_arg:* )
8253 break ;;
8254 * )
8255 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8256 esac
8257 done
8258 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
8259 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8260 X"$_am_arg" : 'X\(//\)[^/]' \| \
8261 X"$_am_arg" : 'X\(//\)$' \| \
8262 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
8263 printf "%s\n" X"$_am_arg" |
8264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8265 s//\1/
8266 q
8267 }
8268 /^X\(\/\/\)[^/].*/{
8269 s//\1/
8270 q
8271 }
8272 /^X\(\/\/\)$/{
8273 s//\1/
8274 q
8275 }
8276 /^X\(\/\).*/{
8277 s//\1/
8278 q
8279 }
8280 s/.*/./; q'`/stamp-h$_am_stamp_count
8281 ;;
8282
8283 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8284 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
8285 ;;
8286 esac
8287
8288
8289 case $ac_file$ac_mode in
8290 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
8291 # Older Autoconf quotes --file arguments for eval, but not when files
8292 # are listed without --file. Let's play safe and only enable the eval
8293 # if we detect the quoting.
8294 # TODO: see whether this extra hack can be removed once we start
8295 # requiring Autoconf 2.70 or later.
8296 case $CONFIG_FILES in #(
8297 *\'*) :
8298 eval set x "$CONFIG_FILES" ;; #(
8299 *) :
8300 set x $CONFIG_FILES ;; #(
8301 *) :
8302 ;;
8303 esac
8304 shift
8305 # Used to flag and report bootstrapping failures.
8306 am_rc=0
8307 for am_mf
8308 do
8309 # Strip MF so we end up with the name of the file.
8310 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
8311 # Check whether this is an Automake generated Makefile which includes
8312 # dependency-tracking related rules and includes.
8313 # Grep'ing the whole file directly is not great: AIX grep has a line
8314 # limit of 2048, but all sed's we know have understand at least 4000.
8315 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
8316 || continue
8317 am_dirpart=`$as_dirname -- "$am_mf" ||
8318 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8319 X"$am_mf" : 'X\(//\)[^/]' \| \
8320 X"$am_mf" : 'X\(//\)$' \| \
8321 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
8322 printf "%s\n" X"$am_mf" |
8323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8324 s//\1/
8325 q
8326 }
8327 /^X\(\/\/\)[^/].*/{
8328 s//\1/
8329 q
8330 }
8331 /^X\(\/\/\)$/{
8332 s//\1/
8333 q
8334 }
8335 /^X\(\/\).*/{
8336 s//\1/
8337 q
8338 }
8339 s/.*/./; q'`
8340 am_filepart=`$as_basename -- "$am_mf" ||
8341 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
8342 X"$am_mf" : 'X\(//\)$' \| \
8343 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
8344 printf "%s\n" X/"$am_mf" |
8345 sed '/^.*\/\([^/][^/]*\)\/*$/{
8346 s//\1/
8347 q
8348 }
8349 /^X\/\(\/\/\)$/{
8350 s//\1/
8351 q
8352 }
8353 /^X\/\(\/\).*/{
8354 s//\1/
8355 q
8356 }
8357 s/.*/./; q'`
8358 { echo "$as_me:$LINENO: cd "$am_dirpart" \
8359 && sed -e '/# am--include-marker/d' "$am_filepart" \
8360 | $MAKE -f - am--depfiles" >&5
8361 (cd "$am_dirpart" \
8362 && sed -e '/# am--include-marker/d' "$am_filepart" \
8363 | $MAKE -f - am--depfiles) >&5 2>&5
8364 ac_status=$?
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); } || am_rc=$?
8367 done
8368 if test $am_rc -ne 0; then
8369 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8370 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8371 as_fn_error $? "Something went wrong bootstrapping makefile fragments
8372 for automatic dependency tracking. If GNU make was not used, consider
8373 re-running the configure script with MAKE=\"gmake\" (or whatever is
8374 necessary). You can also try re-running configure with the
8375 '--disable-dependency-tracking' option to at least be able to build
8376 the package (albeit without support for automatic dependency tracking).
8377 See \`config.log' for more details" "$LINENO" 5; }
8378 fi
8379 { am_dirpart=; unset am_dirpart;}
8380 { am_filepart=; unset am_filepart;}
8381 { am_mf=; unset am_mf;}
8382 { am_rc=; unset am_rc;}
8383 rm -f conftest-deps.mk
8384 }
8385 ;;
8386
8387 esac
8388 done # for ac_tag
8389
8390
8391 as_fn_exit 0
8392 _ACEOF
8393 ac_clean_files=$ac_clean_files_save
8394
8395 test $ac_write_fail = 0 ||
8396 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8397
8398
8399 # configure is writing to config.log, and then calls config.status.
8400 # config.status does its own redirection, appending to config.log.
8401 # Unfortunately, on DOS this fails, as config.log is still kept open
8402 # by configure, so config.status won't be able to write to it; its
8403 # output is simply discarded. So we exec the FD to /dev/null,
8404 # effectively closing config.log, so it can be properly (re)opened and
8405 # appended to by config.status. When coming back to configure, we
8406 # need to make the FD available again.
8407 if test "$no_create" != yes; then
8408 ac_cs_success=:
8409 ac_config_status_args=
8410 test "$silent" = yes &&
8411 ac_config_status_args="$ac_config_status_args --quiet"
8412 exec 5>/dev/null
8413 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8414 exec 5>>config.log
8415 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8416 # would make configure fail if this is the last instruction.
8417 $ac_cs_success || as_fn_exit 1
8418 fi
8419 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8421 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8422 fi
8423
8424