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 ltris2 2.0.4.
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='ltris2'
610 PACKAGE_TARNAME='ltris2'
611 PACKAGE_VERSION='2.0.4'
612 PACKAGE_STRING='ltris2 2.0.4'
613 PACKAGE_BUGREPORT=''
614 PACKAGE_URL=''
615
616 ac_unique_file="src/main.cpp"
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 gt_needs=
650 ac_subst_vars='am__EXEEXT_FALSE
651 am__EXEEXT_TRUE
652 LTLIBOBJS
653 hiscoredir
654 datdir
655 POW_LIB
656 LIBOBJS
657 ALLOCA
658 RANLIB
659 am__fastdepCXX_FALSE
660 am__fastdepCXX_TRUE
661 CXXDEPMODE
662 ac_ct_CXX
663 CXXFLAGS
664 CXX
665 POSUB
666 LTLIBINTL
667 LIBINTL
668 INTLLIBS
669 LTLIBICONV
670 LIBICONV
671 INTL_MACOSX_LIBS
672 EGREP
673 GREP
674 CPP
675 host_os
676 host_vendor
677 host_cpu
678 host
679 build_os
680 build_vendor
681 build_cpu
682 build
683 XGETTEXT_EXTRA_OPTIONS
684 MSGMERGE_FOR_MSGFMT_OPTION
685 MSGMERGE
686 XGETTEXT_015
687 XGETTEXT
688 GMSGFMT_015
689 GMSGFMT
690 MSGFMT
691 GETTEXT_MACRO_VERSION
692 USE_NLS
693 SED
694 am__fastdepCC_FALSE
695 am__fastdepCC_TRUE
696 CCDEPMODE
697 am__nodep
698 AMDEPBACKSLASH
699 AMDEP_FALSE
700 AMDEP_TRUE
701 am__include
702 DEPDIR
703 OBJEXT
704 EXEEXT
705 ac_ct_CC
706 CPPFLAGS
707 LDFLAGS
708 CFLAGS
709 CC
710 AM_BACKSLASH
711 AM_DEFAULT_VERBOSITY
712 AM_DEFAULT_V
713 AM_V
714 CSCOPE
715 ETAGS
716 CTAGS
717 am__untar
718 am__tar
719 AMTAR
720 am__leading_dot
721 SET_MAKE
722 AWK
723 mkdir_p
724 MKDIR_P
725 INSTALL_STRIP_PROGRAM
726 STRIP
727 install_sh
728 MAKEINFO
729 AUTOHEADER
730 AUTOMAKE
731 AUTOCONF
732 ACLOCAL
733 VERSION
734 PACKAGE
735 CYGPATH_W
736 am__isrc
737 INSTALL_DATA
738 INSTALL_SCRIPT
739 INSTALL_PROGRAM
740 target_alias
741 host_alias
742 build_alias
743 LIBS
744 ECHO_T
745 ECHO_N
746 ECHO_C
747 DEFS
748 mandir
749 localedir
750 libdir
751 psdir
752 pdfdir
753 dvidir
754 htmldir
755 infodir
756 docdir
757 oldincludedir
758 includedir
759 runstatedir
760 localstatedir
761 sharedstatedir
762 sysconfdir
763 datadir
764 datarootdir
765 libexecdir
766 sbindir
767 bindir
768 program_transform_name
769 prefix
770 exec_prefix
771 PACKAGE_URL
772 PACKAGE_BUGREPORT
773 PACKAGE_STRING
774 PACKAGE_VERSION
775 PACKAGE_TARNAME
776 PACKAGE_NAME
777 PATH_SEPARATOR
778 SHELL
779 am__quote'
780 ac_subst_files=''
781 ac_user_opts='
782 enable_option_checking
783 enable_silent_rules
784 enable_dependency_tracking
785 enable_nls
786 with_gnu_ld
787 enable_rpath
788 with_libiconv_prefix
789 with_libintl_prefix
790 with_configdir
791 enable_debug
792 enable_install
793 '
794 ac_precious_vars='build_alias
795 host_alias
796 target_alias
797 CC
798 CFLAGS
799 LDFLAGS
800 LIBS
801 CPPFLAGS
802 CPP
803 CXX
804 CXXFLAGS
805 CCC'
806
807
808 # Initialize some variables set by options.
809 ac_init_help=
810 ac_init_version=false
811 ac_unrecognized_opts=
812 ac_unrecognized_sep=
813 # The variables have the same names as the options, with
814 # dashes changed to underlines.
815 cache_file=/dev/null
816 exec_prefix=NONE
817 no_create=
818 no_recursion=
819 prefix=NONE
820 program_prefix=NONE
821 program_suffix=NONE
822 program_transform_name=s,x,x,
823 silent=
824 site=
825 srcdir=
826 verbose=
827 x_includes=NONE
828 x_libraries=NONE
829
830 # Installation directory options.
831 # These are left unexpanded so users can "make install exec_prefix=/foo"
832 # and all the variables that are supposed to be based on exec_prefix
833 # by default will actually change.
834 # Use braces instead of parens because sh, perl, etc. also accept them.
835 # (The list follows the same order as the GNU Coding Standards.)
836 bindir='${exec_prefix}/bin'
837 sbindir='${exec_prefix}/sbin'
838 libexecdir='${exec_prefix}/libexec'
839 datarootdir='${prefix}/share'
840 datadir='${datarootdir}'
841 sysconfdir='${prefix}/etc'
842 sharedstatedir='${prefix}/com'
843 localstatedir='${prefix}/var'
844 runstatedir='${localstatedir}/run'
845 includedir='${prefix}/include'
846 oldincludedir='/usr/include'
847 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
848 infodir='${datarootdir}/info'
849 htmldir='${docdir}'
850 dvidir='${docdir}'
851 pdfdir='${docdir}'
852 psdir='${docdir}'
853 libdir='${exec_prefix}/lib'
854 localedir='${datarootdir}/locale'
855 mandir='${datarootdir}/man'
856
857 ac_prev=
858 ac_dashdash=
859 for ac_option
860 do
861 # If the previous option needs an argument, assign it.
862 if test -n "$ac_prev"; then
863 eval $ac_prev=\$ac_option
864 ac_prev=
865 continue
866 fi
867
868 case $ac_option in
869 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
870 *=) ac_optarg= ;;
871 *) ac_optarg=yes ;;
872 esac
873
874 case $ac_dashdash$ac_option in
875 --)
876 ac_dashdash=yes ;;
877
878 -bindir | --bindir | --bindi | --bind | --bin | --bi)
879 ac_prev=bindir ;;
880 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
881 bindir=$ac_optarg ;;
882
883 -build | --build | --buil | --bui | --bu)
884 ac_prev=build_alias ;;
885 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
886 build_alias=$ac_optarg ;;
887
888 -cache-file | --cache-file | --cache-fil | --cache-fi \
889 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
890 ac_prev=cache_file ;;
891 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
892 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
893 cache_file=$ac_optarg ;;
894
895 --config-cache | -C)
896 cache_file=config.cache ;;
897
898 -datadir | --datadir | --datadi | --datad)
899 ac_prev=datadir ;;
900 -datadir=* | --datadir=* | --datadi=* | --datad=*)
901 datadir=$ac_optarg ;;
902
903 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
904 | --dataroo | --dataro | --datar)
905 ac_prev=datarootdir ;;
906 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
907 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
908 datarootdir=$ac_optarg ;;
909
910 -disable-* | --disable-*)
911 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
912 # Reject names that are not valid shell variable names.
913 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
914 as_fn_error $? "invalid feature name: \`$ac_useropt'"
915 ac_useropt_orig=$ac_useropt
916 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
917 case $ac_user_opts in
918 *"
919 "enable_$ac_useropt"
920 "*) ;;
921 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
922 ac_unrecognized_sep=', ';;
923 esac
924 eval enable_$ac_useropt=no ;;
925
926 -docdir | --docdir | --docdi | --doc | --do)
927 ac_prev=docdir ;;
928 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
929 docdir=$ac_optarg ;;
930
931 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
932 ac_prev=dvidir ;;
933 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
934 dvidir=$ac_optarg ;;
935
936 -enable-* | --enable-*)
937 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
938 # Reject names that are not valid shell variable names.
939 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
940 as_fn_error $? "invalid feature name: \`$ac_useropt'"
941 ac_useropt_orig=$ac_useropt
942 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
943 case $ac_user_opts in
944 *"
945 "enable_$ac_useropt"
946 "*) ;;
947 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
948 ac_unrecognized_sep=', ';;
949 esac
950 eval enable_$ac_useropt=\$ac_optarg ;;
951
952 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
953 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
954 | --exec | --exe | --ex)
955 ac_prev=exec_prefix ;;
956 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
957 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
958 | --exec=* | --exe=* | --ex=*)
959 exec_prefix=$ac_optarg ;;
960
961 -gas | --gas | --ga | --g)
962 # Obsolete; use --with-gas.
963 with_gas=yes ;;
964
965 -help | --help | --hel | --he | -h)
966 ac_init_help=long ;;
967 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
968 ac_init_help=recursive ;;
969 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
970 ac_init_help=short ;;
971
972 -host | --host | --hos | --ho)
973 ac_prev=host_alias ;;
974 -host=* | --host=* | --hos=* | --ho=*)
975 host_alias=$ac_optarg ;;
976
977 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
978 ac_prev=htmldir ;;
979 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
980 | --ht=*)
981 htmldir=$ac_optarg ;;
982
983 -includedir | --includedir | --includedi | --included | --include \
984 | --includ | --inclu | --incl | --inc)
985 ac_prev=includedir ;;
986 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
987 | --includ=* | --inclu=* | --incl=* | --inc=*)
988 includedir=$ac_optarg ;;
989
990 -infodir | --infodir | --infodi | --infod | --info | --inf)
991 ac_prev=infodir ;;
992 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
993 infodir=$ac_optarg ;;
994
995 -libdir | --libdir | --libdi | --libd)
996 ac_prev=libdir ;;
997 -libdir=* | --libdir=* | --libdi=* | --libd=*)
998 libdir=$ac_optarg ;;
999
1000 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1001 | --libexe | --libex | --libe)
1002 ac_prev=libexecdir ;;
1003 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1004 | --libexe=* | --libex=* | --libe=*)
1005 libexecdir=$ac_optarg ;;
1006
1007 -localedir | --localedir | --localedi | --localed | --locale)
1008 ac_prev=localedir ;;
1009 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1010 localedir=$ac_optarg ;;
1011
1012 -localstatedir | --localstatedir | --localstatedi | --localstated \
1013 | --localstate | --localstat | --localsta | --localst | --locals)
1014 ac_prev=localstatedir ;;
1015 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1016 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1017 localstatedir=$ac_optarg ;;
1018
1019 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1020 ac_prev=mandir ;;
1021 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1022 mandir=$ac_optarg ;;
1023
1024 -nfp | --nfp | --nf)
1025 # Obsolete; use --without-fp.
1026 with_fp=no ;;
1027
1028 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1029 | --no-cr | --no-c | -n)
1030 no_create=yes ;;
1031
1032 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1033 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1034 no_recursion=yes ;;
1035
1036 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1037 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1038 | --oldin | --oldi | --old | --ol | --o)
1039 ac_prev=oldincludedir ;;
1040 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1041 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1042 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1043 oldincludedir=$ac_optarg ;;
1044
1045 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1046 ac_prev=prefix ;;
1047 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1048 prefix=$ac_optarg ;;
1049
1050 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1051 | --program-pre | --program-pr | --program-p)
1052 ac_prev=program_prefix ;;
1053 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1054 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1055 program_prefix=$ac_optarg ;;
1056
1057 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1058 | --program-suf | --program-su | --program-s)
1059 ac_prev=program_suffix ;;
1060 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1061 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1062 program_suffix=$ac_optarg ;;
1063
1064 -program-transform-name | --program-transform-name \
1065 | --program-transform-nam | --program-transform-na \
1066 | --program-transform-n | --program-transform- \
1067 | --program-transform | --program-transfor \
1068 | --program-transfo | --program-transf \
1069 | --program-trans | --program-tran \
1070 | --progr-tra | --program-tr | --program-t)
1071 ac_prev=program_transform_name ;;
1072 -program-transform-name=* | --program-transform-name=* \
1073 | --program-transform-nam=* | --program-transform-na=* \
1074 | --program-transform-n=* | --program-transform-=* \
1075 | --program-transform=* | --program-transfor=* \
1076 | --program-transfo=* | --program-transf=* \
1077 | --program-trans=* | --program-tran=* \
1078 | --progr-tra=* | --program-tr=* | --program-t=*)
1079 program_transform_name=$ac_optarg ;;
1080
1081 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1082 ac_prev=pdfdir ;;
1083 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1084 pdfdir=$ac_optarg ;;
1085
1086 -psdir | --psdir | --psdi | --psd | --ps)
1087 ac_prev=psdir ;;
1088 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1089 psdir=$ac_optarg ;;
1090
1091 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1092 | -silent | --silent | --silen | --sile | --sil)
1093 silent=yes ;;
1094
1095 -runstatedir | --runstatedir | --runstatedi | --runstated \
1096 | --runstate | --runstat | --runsta | --runst | --runs \
1097 | --run | --ru | --r)
1098 ac_prev=runstatedir ;;
1099 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1100 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1101 | --run=* | --ru=* | --r=*)
1102 runstatedir=$ac_optarg ;;
1103
1104 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1105 ac_prev=sbindir ;;
1106 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1107 | --sbi=* | --sb=*)
1108 sbindir=$ac_optarg ;;
1109
1110 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1111 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1112 | --sharedst | --shareds | --shared | --share | --shar \
1113 | --sha | --sh)
1114 ac_prev=sharedstatedir ;;
1115 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1116 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1117 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1118 | --sha=* | --sh=*)
1119 sharedstatedir=$ac_optarg ;;
1120
1121 -site | --site | --sit)
1122 ac_prev=site ;;
1123 -site=* | --site=* | --sit=*)
1124 site=$ac_optarg ;;
1125
1126 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1127 ac_prev=srcdir ;;
1128 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1129 srcdir=$ac_optarg ;;
1130
1131 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1132 | --syscon | --sysco | --sysc | --sys | --sy)
1133 ac_prev=sysconfdir ;;
1134 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1135 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1136 sysconfdir=$ac_optarg ;;
1137
1138 -target | --target | --targe | --targ | --tar | --ta | --t)
1139 ac_prev=target_alias ;;
1140 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1141 target_alias=$ac_optarg ;;
1142
1143 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1144 verbose=yes ;;
1145
1146 -version | --version | --versio | --versi | --vers | -V)
1147 ac_init_version=: ;;
1148
1149 -with-* | --with-*)
1150 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1151 # Reject names that are not valid shell variable names.
1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153 as_fn_error $? "invalid package name: \`$ac_useropt'"
1154 ac_useropt_orig=$ac_useropt
1155 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1156 case $ac_user_opts in
1157 *"
1158 "with_$ac_useropt"
1159 "*) ;;
1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1161 ac_unrecognized_sep=', ';;
1162 esac
1163 eval with_$ac_useropt=\$ac_optarg ;;
1164
1165 -without-* | --without-*)
1166 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1167 # Reject names that are not valid shell variable names.
1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169 as_fn_error $? "invalid package name: \`$ac_useropt'"
1170 ac_useropt_orig=$ac_useropt
1171 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1172 case $ac_user_opts in
1173 *"
1174 "with_$ac_useropt"
1175 "*) ;;
1176 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1177 ac_unrecognized_sep=', ';;
1178 esac
1179 eval with_$ac_useropt=no ;;
1180
1181 --x)
1182 # Obsolete; use --with-x.
1183 with_x=yes ;;
1184
1185 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1186 | --x-incl | --x-inc | --x-in | --x-i)
1187 ac_prev=x_includes ;;
1188 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1189 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1190 x_includes=$ac_optarg ;;
1191
1192 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1193 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1194 ac_prev=x_libraries ;;
1195 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1196 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1197 x_libraries=$ac_optarg ;;
1198
1199 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1200 Try \`$0 --help' for more information"
1201 ;;
1202
1203 *=*)
1204 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1205 # Reject names that are not valid shell variable names.
1206 case $ac_envvar in #(
1207 '' | [0-9]* | *[!_$as_cr_alnum]* )
1208 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1209 esac
1210 eval $ac_envvar=\$ac_optarg
1211 export $ac_envvar ;;
1212
1213 *)
1214 # FIXME: should be removed in autoconf 3.0.
1215 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1216 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1217 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1218 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1219 ;;
1220
1221 esac
1222 done
1223
1224 if test -n "$ac_prev"; then
1225 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1226 as_fn_error $? "missing argument to $ac_option"
1227 fi
1228
1229 if test -n "$ac_unrecognized_opts"; then
1230 case $enable_option_checking in
1231 no) ;;
1232 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1233 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1234 esac
1235 fi
1236
1237 # Check all directory arguments for consistency.
1238 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1239 datadir sysconfdir sharedstatedir localstatedir includedir \
1240 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1241 libdir localedir mandir runstatedir
1242 do
1243 eval ac_val=\$$ac_var
1244 # Remove trailing slashes.
1245 case $ac_val in
1246 */ )
1247 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1248 eval $ac_var=\$ac_val;;
1249 esac
1250 # Be sure to have absolute directory names.
1251 case $ac_val in
1252 [\\/$]* | ?:[\\/]* ) continue;;
1253 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1254 esac
1255 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1256 done
1257
1258 # There might be people who depend on the old broken behavior: `$host'
1259 # used to hold the argument of --host etc.
1260 # FIXME: To remove some day.
1261 build=$build_alias
1262 host=$host_alias
1263 target=$target_alias
1264
1265 # FIXME: To remove some day.
1266 if test "x$host_alias" != x; then
1267 if test "x$build_alias" = x; then
1268 cross_compiling=maybe
1269 elif test "x$build_alias" != "x$host_alias"; then
1270 cross_compiling=yes
1271 fi
1272 fi
1273
1274 ac_tool_prefix=
1275 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1276
1277 test "$silent" = yes && exec 6>/dev/null
1278
1279
1280 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1281 ac_ls_di=`ls -di .` &&
1282 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1283 as_fn_error $? "working directory cannot be determined"
1284 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1285 as_fn_error $? "pwd does not report name of working directory"
1286
1287
1288 # Find the source files, if location was not specified.
1289 if test -z "$srcdir"; then
1290 ac_srcdir_defaulted=yes
1291 # Try the directory containing this script, then the parent directory.
1292 ac_confdir=`$as_dirname -- "$as_myself" ||
1293 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1294 X"$as_myself" : 'X\(//\)[^/]' \| \
1295 X"$as_myself" : 'X\(//\)$' \| \
1296 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1297 printf "%s\n" X"$as_myself" |
1298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1299 s//\1/
1300 q
1301 }
1302 /^X\(\/\/\)[^/].*/{
1303 s//\1/
1304 q
1305 }
1306 /^X\(\/\/\)$/{
1307 s//\1/
1308 q
1309 }
1310 /^X\(\/\).*/{
1311 s//\1/
1312 q
1313 }
1314 s/.*/./; q'`
1315 srcdir=$ac_confdir
1316 if test ! -r "$srcdir/$ac_unique_file"; then
1317 srcdir=..
1318 fi
1319 else
1320 ac_srcdir_defaulted=no
1321 fi
1322 if test ! -r "$srcdir/$ac_unique_file"; then
1323 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1324 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1325 fi
1326 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1327 ac_abs_confdir=`(
1328 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1329 pwd)`
1330 # When building in place, set srcdir=.
1331 if test "$ac_abs_confdir" = "$ac_pwd"; then
1332 srcdir=.
1333 fi
1334 # Remove unnecessary trailing slashes from srcdir.
1335 # Double slashes in file names in object file debugging info
1336 # mess up M-x gdb in Emacs.
1337 case $srcdir in
1338 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1339 esac
1340 for ac_var in $ac_precious_vars; do
1341 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1342 eval ac_env_${ac_var}_value=\$${ac_var}
1343 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1344 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1345 done
1346
1347 #
1348 # Report the --help message.
1349 #
1350 if test "$ac_init_help" = "long"; then
1351 # Omit some internal or obsolete options to make the list less imposing.
1352 # This message is too long to be a string in the A/UX 3.1 sh.
1353 cat <<_ACEOF
1354 \`configure' configures ltris2 2.0.4 to adapt to many kinds of systems.
1355
1356 Usage: $0 [OPTION]... [VAR=VALUE]...
1357
1358 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1359 VAR=VALUE. See below for descriptions of some of the useful variables.
1360
1361 Defaults for the options are specified in brackets.
1362
1363 Configuration:
1364 -h, --help display this help and exit
1365 --help=short display options specific to this package
1366 --help=recursive display the short help of all the included packages
1367 -V, --version display version information and exit
1368 -q, --quiet, --silent do not print \`checking ...' messages
1369 --cache-file=FILE cache test results in FILE [disabled]
1370 -C, --config-cache alias for \`--cache-file=config.cache'
1371 -n, --no-create do not create output files
1372 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1373
1374 Installation directories:
1375 --prefix=PREFIX install architecture-independent files in PREFIX
1376 [$ac_default_prefix]
1377 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1378 [PREFIX]
1379
1380 By default, \`make install' will install all the files in
1381 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1382 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1383 for instance \`--prefix=\$HOME'.
1384
1385 For better control, use the options below.
1386
1387 Fine tuning of the installation directories:
1388 --bindir=DIR user executables [EPREFIX/bin]
1389 --sbindir=DIR system admin executables [EPREFIX/sbin]
1390 --libexecdir=DIR program executables [EPREFIX/libexec]
1391 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1392 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1393 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1394 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1395 --libdir=DIR object code libraries [EPREFIX/lib]
1396 --includedir=DIR C header files [PREFIX/include]
1397 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1398 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1399 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1400 --infodir=DIR info documentation [DATAROOTDIR/info]
1401 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1402 --mandir=DIR man documentation [DATAROOTDIR/man]
1403 --docdir=DIR documentation root [DATAROOTDIR/doc/ltris2]
1404 --htmldir=DIR html documentation [DOCDIR]
1405 --dvidir=DIR dvi documentation [DOCDIR]
1406 --pdfdir=DIR pdf documentation [DOCDIR]
1407 --psdir=DIR ps documentation [DOCDIR]
1408 _ACEOF
1409
1410 cat <<\_ACEOF
1411
1412 Program names:
1413 --program-prefix=PREFIX prepend PREFIX to installed program names
1414 --program-suffix=SUFFIX append SUFFIX to installed program names
1415 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1416
1417 System types:
1418 --build=BUILD configure for building on BUILD [guessed]
1419 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1420 _ACEOF
1421 fi
1422
1423 if test -n "$ac_init_help"; then
1424 case $ac_init_help in
1425 short | recursive ) echo "Configuration of ltris2 2.0.4:";;
1426 esac
1427 cat <<\_ACEOF
1428
1429 Optional Features:
1430 --disable-option-checking ignore unrecognized --enable/--with options
1431 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1432 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1433 --enable-silent-rules less verbose build output (undo: "make V=1")
1434 --disable-silent-rules verbose build output (undo: "make V=0")
1435 --enable-dependency-tracking
1436 do not reject slow dependency extractors
1437 --disable-dependency-tracking
1438 speeds up one-time build
1439 --disable-nls do not use Native Language Support
1440 --disable-rpath do not hardcode runtime library paths
1441 --enable-debug Add debug symbols, no optimization.
1442 --disable-install No installation. Start from source directory.
1443
1444 Optional Packages:
1445 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1446 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1447 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1448 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1449 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1450 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1451 --without-libintl-prefix don't search for libintl in includedir and libdir
1452 --with-configdir=CONFIGDIR Set config directory (default: ~/.local/share/ltris2).
1453
1454 Some influential environment variables:
1455 CC C compiler command
1456 CFLAGS C compiler flags
1457 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1458 nonstandard directory <lib dir>
1459 LIBS libraries to pass to the linker, e.g. -l<library>
1460 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1461 you have headers in a nonstandard directory <include dir>
1462 CPP C preprocessor
1463 CXX C++ compiler command
1464 CXXFLAGS C++ compiler flags
1465
1466 Use these variables to override the choices made by `configure' or to help
1467 it to find libraries and programs with nonstandard names/locations.
1468
1469 Report bugs to the package provider.
1470 _ACEOF
1471 ac_status=$?
1472 fi
1473
1474 if test "$ac_init_help" = "recursive"; then
1475 # If there are subdirs, report their specific --help.
1476 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1477 test -d "$ac_dir" ||
1478 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1479 continue
1480 ac_builddir=.
1481
1482 case "$ac_dir" in
1483 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1484 *)
1485 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1486 # A ".." for each directory in $ac_dir_suffix.
1487 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1488 case $ac_top_builddir_sub in
1489 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1491 esac ;;
1492 esac
1493 ac_abs_top_builddir=$ac_pwd
1494 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1495 # for backward compatibility:
1496 ac_top_builddir=$ac_top_build_prefix
1497
1498 case $srcdir in
1499 .) # We are building in place.
1500 ac_srcdir=.
1501 ac_top_srcdir=$ac_top_builddir_sub
1502 ac_abs_top_srcdir=$ac_pwd ;;
1503 [\\/]* | ?:[\\/]* ) # Absolute name.
1504 ac_srcdir=$srcdir$ac_dir_suffix;
1505 ac_top_srcdir=$srcdir
1506 ac_abs_top_srcdir=$srcdir ;;
1507 *) # Relative name.
1508 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1509 ac_top_srcdir=$ac_top_build_prefix$srcdir
1510 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1511 esac
1512 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1513
1514 cd "$ac_dir" || { ac_status=$?; continue; }
1515 # Check for configure.gnu first; this name is used for a wrapper for
1516 # Metaconfig's "Configure" on case-insensitive file systems.
1517 if test -f "$ac_srcdir/configure.gnu"; then
1518 echo &&
1519 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1520 elif test -f "$ac_srcdir/configure"; then
1521 echo &&
1522 $SHELL "$ac_srcdir/configure" --help=recursive
1523 else
1524 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1525 fi || ac_status=$?
1526 cd "$ac_pwd" || { ac_status=$?; break; }
1527 done
1528 fi
1529
1530 test -n "$ac_init_help" && exit $ac_status
1531 if $ac_init_version; then
1532 cat <<\_ACEOF
1533 ltris2 configure 2.0.4
1534 generated by GNU Autoconf 2.71
1535
1536 Copyright (C) 2021 Free Software Foundation, Inc.
1537 This configure script is free software; the Free Software Foundation
1538 gives unlimited permission to copy, distribute and modify it.
1539 _ACEOF
1540 exit
1541 fi
1542
1543 ## ------------------------ ##
1544 ## Autoconf initialization. ##
1545 ## ------------------------ ##
1546
1547 # ac_fn_c_try_compile LINENO
1548 # --------------------------
1549 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1550 ac_fn_c_try_compile ()
1551 {
1552 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1553 rm -f conftest.$ac_objext conftest.beam
1554 if { { ac_try="$ac_compile"
1555 case "(($ac_try" in
1556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1557 *) ac_try_echo=$ac_try;;
1558 esac
1559 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1560 printf "%s\n" "$ac_try_echo"; } >&5
1561 (eval "$ac_compile") 2>conftest.err
1562 ac_status=$?
1563 if test -s conftest.err; then
1564 grep -v '^ *+' conftest.err >conftest.er1
1565 cat conftest.er1 >&5
1566 mv -f conftest.er1 conftest.err
1567 fi
1568 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1569 test $ac_status = 0; } && {
1570 test -z "$ac_c_werror_flag" ||
1571 test ! -s conftest.err
1572 } && test -s conftest.$ac_objext
1573 then :
1574 ac_retval=0
1575 else $as_nop
1576 printf "%s\n" "$as_me: failed program was:" >&5
1577 sed 's/^/| /' conftest.$ac_ext >&5
1578
1579 ac_retval=1
1580 fi
1581 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1582 as_fn_set_status $ac_retval
1583
1584 } # ac_fn_c_try_compile
1585
1586 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1587 # -------------------------------------------------------
1588 # Tests whether HEADER exists and can be compiled using the include files in
1589 # INCLUDES, setting the cache variable VAR accordingly.
1590 ac_fn_c_check_header_compile ()
1591 {
1592 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1594 printf %s "checking for $2... " >&6; }
1595 if eval test \${$3+y}
1596 then :
1597 printf %s "(cached) " >&6
1598 else $as_nop
1599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1600 /* end confdefs.h. */
1601 $4
1602 #include <$2>
1603 _ACEOF
1604 if ac_fn_c_try_compile "$LINENO"
1605 then :
1606 eval "$3=yes"
1607 else $as_nop
1608 eval "$3=no"
1609 fi
1610 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1611 fi
1612 eval ac_res=\$$3
1613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1614 printf "%s\n" "$ac_res" >&6; }
1615 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1616
1617 } # ac_fn_c_check_header_compile
1618
1619 # ac_fn_c_try_cpp LINENO
1620 # ----------------------
1621 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1622 ac_fn_c_try_cpp ()
1623 {
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 if { { ac_try="$ac_cpp conftest.$ac_ext"
1626 case "(($ac_try" in
1627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1628 *) ac_try_echo=$ac_try;;
1629 esac
1630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1631 printf "%s\n" "$ac_try_echo"; } >&5
1632 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1633 ac_status=$?
1634 if test -s conftest.err; then
1635 grep -v '^ *+' conftest.err >conftest.er1
1636 cat conftest.er1 >&5
1637 mv -f conftest.er1 conftest.err
1638 fi
1639 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640 test $ac_status = 0; } > conftest.i && {
1641 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1642 test ! -s conftest.err
1643 }
1644 then :
1645 ac_retval=0
1646 else $as_nop
1647 printf "%s\n" "$as_me: failed program was:" >&5
1648 sed 's/^/| /' conftest.$ac_ext >&5
1649
1650 ac_retval=1
1651 fi
1652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1653 as_fn_set_status $ac_retval
1654
1655 } # ac_fn_c_try_cpp
1656
1657 # ac_fn_c_try_link LINENO
1658 # -----------------------
1659 # Try to link conftest.$ac_ext, and return whether this succeeded.
1660 ac_fn_c_try_link ()
1661 {
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1664 if { { ac_try="$ac_link"
1665 case "(($ac_try" in
1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667 *) ac_try_echo=$ac_try;;
1668 esac
1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670 printf "%s\n" "$ac_try_echo"; } >&5
1671 (eval "$ac_link") 2>conftest.err
1672 ac_status=$?
1673 if test -s conftest.err; then
1674 grep -v '^ *+' conftest.err >conftest.er1
1675 cat conftest.er1 >&5
1676 mv -f conftest.er1 conftest.err
1677 fi
1678 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; } && {
1680 test -z "$ac_c_werror_flag" ||
1681 test ! -s conftest.err
1682 } && test -s conftest$ac_exeext && {
1683 test "$cross_compiling" = yes ||
1684 test -x conftest$ac_exeext
1685 }
1686 then :
1687 ac_retval=0
1688 else $as_nop
1689 printf "%s\n" "$as_me: failed program was:" >&5
1690 sed 's/^/| /' conftest.$ac_ext >&5
1691
1692 ac_retval=1
1693 fi
1694 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1695 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1696 # interfere with the next link command; also delete a directory that is
1697 # left behind by Apple's compiler. We do this before executing the actions.
1698 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1699 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700 as_fn_set_status $ac_retval
1701
1702 } # ac_fn_c_try_link
1703
1704 # ac_fn_c_try_run LINENO
1705 # ----------------------
1706 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1707 # executables *can* be run.
1708 ac_fn_c_try_run ()
1709 {
1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711 if { { ac_try="$ac_link"
1712 case "(($ac_try" in
1713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714 *) ac_try_echo=$ac_try;;
1715 esac
1716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717 printf "%s\n" "$ac_try_echo"; } >&5
1718 (eval "$ac_link") 2>&5
1719 ac_status=$?
1720 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1722 { { case "(($ac_try" in
1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724 *) ac_try_echo=$ac_try;;
1725 esac
1726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727 printf "%s\n" "$ac_try_echo"; } >&5
1728 (eval "$ac_try") 2>&5
1729 ac_status=$?
1730 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; }; }
1732 then :
1733 ac_retval=0
1734 else $as_nop
1735 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1736 printf "%s\n" "$as_me: failed program was:" >&5
1737 sed 's/^/| /' conftest.$ac_ext >&5
1738
1739 ac_retval=$ac_status
1740 fi
1741 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743 as_fn_set_status $ac_retval
1744
1745 } # ac_fn_c_try_run
1746
1747 # ac_fn_cxx_try_compile LINENO
1748 # ----------------------------
1749 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1750 ac_fn_cxx_try_compile ()
1751 {
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753 rm -f conftest.$ac_objext conftest.beam
1754 if { { ac_try="$ac_compile"
1755 case "(($ac_try" in
1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757 *) ac_try_echo=$ac_try;;
1758 esac
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 printf "%s\n" "$ac_try_echo"; } >&5
1761 (eval "$ac_compile") 2>conftest.err
1762 ac_status=$?
1763 if test -s conftest.err; then
1764 grep -v '^ *+' conftest.err >conftest.er1
1765 cat conftest.er1 >&5
1766 mv -f conftest.er1 conftest.err
1767 fi
1768 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769 test $ac_status = 0; } && {
1770 test -z "$ac_cxx_werror_flag" ||
1771 test ! -s conftest.err
1772 } && test -s conftest.$ac_objext
1773 then :
1774 ac_retval=0
1775 else $as_nop
1776 printf "%s\n" "$as_me: failed program was:" >&5
1777 sed 's/^/| /' conftest.$ac_ext >&5
1778
1779 ac_retval=1
1780 fi
1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782 as_fn_set_status $ac_retval
1783
1784 } # ac_fn_cxx_try_compile
1785
1786 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1787 # -------------------------------------------
1788 # Tests whether TYPE exists after having included INCLUDES, setting cache
1789 # variable VAR accordingly.
1790 ac_fn_c_check_type ()
1791 {
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1794 printf %s "checking for $2... " >&6; }
1795 if eval test \${$3+y}
1796 then :
1797 printf %s "(cached) " >&6
1798 else $as_nop
1799 eval "$3=no"
1800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801 /* end confdefs.h. */
1802 $4
1803 int
1804 main (void)
1805 {
1806 if (sizeof ($2))
1807 return 0;
1808 ;
1809 return 0;
1810 }
1811 _ACEOF
1812 if ac_fn_c_try_compile "$LINENO"
1813 then :
1814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1815 /* end confdefs.h. */
1816 $4
1817 int
1818 main (void)
1819 {
1820 if (sizeof (($2)))
1821 return 0;
1822 ;
1823 return 0;
1824 }
1825 _ACEOF
1826 if ac_fn_c_try_compile "$LINENO"
1827 then :
1828
1829 else $as_nop
1830 eval "$3=yes"
1831 fi
1832 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1833 fi
1834 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1835 fi
1836 eval ac_res=\$$3
1837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1838 printf "%s\n" "$ac_res" >&6; }
1839 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840
1841 } # ac_fn_c_check_type
1842
1843 # ac_fn_c_check_func LINENO FUNC VAR
1844 # ----------------------------------
1845 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1846 ac_fn_c_check_func ()
1847 {
1848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1850 printf %s "checking for $2... " >&6; }
1851 if eval test \${$3+y}
1852 then :
1853 printf %s "(cached) " >&6
1854 else $as_nop
1855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1856 /* end confdefs.h. */
1857 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1859 #define $2 innocuous_$2
1860
1861 /* System header to define __stub macros and hopefully few prototypes,
1862 which can conflict with char $2 (); below. */
1863
1864 #include <limits.h>
1865 #undef $2
1866
1867 /* Override any GCC internal prototype to avoid an error.
1868 Use char because int might match the return type of a GCC
1869 builtin and then its argument prototype would still apply. */
1870 #ifdef __cplusplus
1871 extern "C"
1872 #endif
1873 char $2 ();
1874 /* The GNU C library defines this for functions which it implements
1875 to always fail with ENOSYS. Some functions are actually named
1876 something starting with __ and the normal name is an alias. */
1877 #if defined __stub_$2 || defined __stub___$2
1878 choke me
1879 #endif
1880
1881 int
1882 main (void)
1883 {
1884 return $2 ();
1885 ;
1886 return 0;
1887 }
1888 _ACEOF
1889 if ac_fn_c_try_link "$LINENO"
1890 then :
1891 eval "$3=yes"
1892 else $as_nop
1893 eval "$3=no"
1894 fi
1895 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1896 conftest$ac_exeext conftest.$ac_ext
1897 fi
1898 eval ac_res=\$$3
1899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1900 printf "%s\n" "$ac_res" >&6; }
1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902
1903 } # ac_fn_c_check_func
1904 ac_configure_args_raw=
1905 for ac_arg
1906 do
1907 case $ac_arg in
1908 *\'*)
1909 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1910 esac
1911 as_fn_append ac_configure_args_raw " '$ac_arg'"
1912 done
1913
1914 case $ac_configure_args_raw in
1915 *$as_nl*)
1916 ac_safe_unquote= ;;
1917 *)
1918 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1919 ac_unsafe_a="$ac_unsafe_z#~"
1920 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1921 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1922 esac
1923
1924 cat >config.log <<_ACEOF
1925 This file contains any messages produced by compilers while
1926 running configure, to aid debugging if configure makes a mistake.
1927
1928 It was created by ltris2 $as_me 2.0.4, which was
1929 generated by GNU Autoconf 2.71. Invocation command line was
1930
1931 $ $0$ac_configure_args_raw
1932
1933 _ACEOF
1934 exec 5>>config.log
1935 {
1936 cat <<_ASUNAME
1937 ## --------- ##
1938 ## Platform. ##
1939 ## --------- ##
1940
1941 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1942 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1943 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1944 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1945 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1946
1947 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1948 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1949
1950 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1951 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1952 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1953 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1954 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1955 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1956 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1957
1958 _ASUNAME
1959
1960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1961 for as_dir in $PATH
1962 do
1963 IFS=$as_save_IFS
1964 case $as_dir in #(((
1965 '') as_dir=./ ;;
1966 */) ;;
1967 *) as_dir=$as_dir/ ;;
1968 esac
1969 printf "%s\n" "PATH: $as_dir"
1970 done
1971 IFS=$as_save_IFS
1972
1973 } >&5
1974
1975 cat >&5 <<_ACEOF
1976
1977
1978 ## ----------- ##
1979 ## Core tests. ##
1980 ## ----------- ##
1981
1982 _ACEOF
1983
1984
1985 # Keep a trace of the command line.
1986 # Strip out --no-create and --no-recursion so they do not pile up.
1987 # Strip out --silent because we don't want to record it for future runs.
1988 # Also quote any args containing shell meta-characters.
1989 # Make two passes to allow for proper duplicate-argument suppression.
1990 ac_configure_args=
1991 ac_configure_args0=
1992 ac_configure_args1=
1993 ac_must_keep_next=false
1994 for ac_pass in 1 2
1995 do
1996 for ac_arg
1997 do
1998 case $ac_arg in
1999 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2000 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2001 | -silent | --silent | --silen | --sile | --sil)
2002 continue ;;
2003 *\'*)
2004 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2005 esac
2006 case $ac_pass in
2007 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2008 2)
2009 as_fn_append ac_configure_args1 " '$ac_arg'"
2010 if test $ac_must_keep_next = true; then
2011 ac_must_keep_next=false # Got value, back to normal.
2012 else
2013 case $ac_arg in
2014 *=* | --config-cache | -C | -disable-* | --disable-* \
2015 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2016 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2017 | -with-* | --with-* | -without-* | --without-* | --x)
2018 case "$ac_configure_args0 " in
2019 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2020 esac
2021 ;;
2022 -* ) ac_must_keep_next=true ;;
2023 esac
2024 fi
2025 as_fn_append ac_configure_args " '$ac_arg'"
2026 ;;
2027 esac
2028 done
2029 done
2030 { ac_configure_args0=; unset ac_configure_args0;}
2031 { ac_configure_args1=; unset ac_configure_args1;}
2032
2033 # When interrupted or exit'd, cleanup temporary files, and complete
2034 # config.log. We remove comments because anyway the quotes in there
2035 # would cause problems or look ugly.
2036 # WARNING: Use '\'' to represent an apostrophe within the trap.
2037 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2038 trap 'exit_status=$?
2039 # Sanitize IFS.
2040 IFS=" "" $as_nl"
2041 # Save into config.log some information that might help in debugging.
2042 {
2043 echo
2044
2045 printf "%s\n" "## ---------------- ##
2046 ## Cache variables. ##
2047 ## ---------------- ##"
2048 echo
2049 # The following way of writing the cache mishandles newlines in values,
2050 (
2051 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2052 eval ac_val=\$$ac_var
2053 case $ac_val in #(
2054 *${as_nl}*)
2055 case $ac_var in #(
2056 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2057 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2058 esac
2059 case $ac_var in #(
2060 _ | IFS | as_nl) ;; #(
2061 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2062 *) { eval $ac_var=; unset $ac_var;} ;;
2063 esac ;;
2064 esac
2065 done
2066 (set) 2>&1 |
2067 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2068 *${as_nl}ac_space=\ *)
2069 sed -n \
2070 "s/'\''/'\''\\\\'\'''\''/g;
2071 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2072 ;; #(
2073 *)
2074 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2075 ;;
2076 esac |
2077 sort
2078 )
2079 echo
2080
2081 printf "%s\n" "## ----------------- ##
2082 ## Output variables. ##
2083 ## ----------------- ##"
2084 echo
2085 for ac_var in $ac_subst_vars
2086 do
2087 eval ac_val=\$$ac_var
2088 case $ac_val in
2089 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2090 esac
2091 printf "%s\n" "$ac_var='\''$ac_val'\''"
2092 done | sort
2093 echo
2094
2095 if test -n "$ac_subst_files"; then
2096 printf "%s\n" "## ------------------- ##
2097 ## File substitutions. ##
2098 ## ------------------- ##"
2099 echo
2100 for ac_var in $ac_subst_files
2101 do
2102 eval ac_val=\$$ac_var
2103 case $ac_val in
2104 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2105 esac
2106 printf "%s\n" "$ac_var='\''$ac_val'\''"
2107 done | sort
2108 echo
2109 fi
2110
2111 if test -s confdefs.h; then
2112 printf "%s\n" "## ----------- ##
2113 ## confdefs.h. ##
2114 ## ----------- ##"
2115 echo
2116 cat confdefs.h
2117 echo
2118 fi
2119 test "$ac_signal" != 0 &&
2120 printf "%s\n" "$as_me: caught signal $ac_signal"
2121 printf "%s\n" "$as_me: exit $exit_status"
2122 } >&5
2123 rm -f core *.core core.conftest.* &&
2124 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2125 exit $exit_status
2126 ' 0
2127 for ac_signal in 1 2 13 15; do
2128 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2129 done
2130 ac_signal=0
2131
2132 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2133 rm -f -r conftest* confdefs.h
2134
2135 printf "%s\n" "/* confdefs.h */" > confdefs.h
2136
2137 # Predefined preprocessor variables.
2138
2139 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2140
2141 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2142
2143 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2144
2145 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2146
2147 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2148
2149 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2150
2151
2152 # Let the site file select an alternate cache file if it wants to.
2153 # Prefer an explicitly selected file to automatically selected ones.
2154 if test -n "$CONFIG_SITE"; then
2155 ac_site_files="$CONFIG_SITE"
2156 elif test "x$prefix" != xNONE; then
2157 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2158 else
2159 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2160 fi
2161
2162 for ac_site_file in $ac_site_files
2163 do
2164 case $ac_site_file in #(
2165 */*) :
2166 ;; #(
2167 *) :
2168 ac_site_file=./$ac_site_file ;;
2169 esac
2170 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2172 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2173 sed 's/^/| /' "$ac_site_file" >&5
2174 . "$ac_site_file" \
2175 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2176 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2177 as_fn_error $? "failed to load site script $ac_site_file
2178 See \`config.log' for more details" "$LINENO" 5; }
2179 fi
2180 done
2181
2182 if test -r "$cache_file"; then
2183 # Some versions of bash will fail to source /dev/null (special files
2184 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2185 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2187 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2188 case $cache_file in
2189 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2190 *) . "./$cache_file";;
2191 esac
2192 fi
2193 else
2194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2195 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2196 >$cache_file
2197 fi
2198
2199 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2200 # Test code for whether the C compiler supports C89 (global declarations)
2201 ac_c_conftest_c89_globals='
2202 /* Does the compiler advertise C89 conformance?
2203 Do not test the value of __STDC__, because some compilers set it to 0
2204 while being otherwise adequately conformant. */
2205 #if !defined __STDC__
2206 # error "Compiler does not advertise C89 conformance"
2207 #endif
2208
2209 #include <stddef.h>
2210 #include <stdarg.h>
2211 struct stat;
2212 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2213 struct buf { int x; };
2214 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2215 static char *e (p, i)
2216 char **p;
2217 int i;
2218 {
2219 return p[i];
2220 }
2221 static char *f (char * (*g) (char **, int), char **p, ...)
2222 {
2223 char *s;
2224 va_list v;
2225 va_start (v,p);
2226 s = g (p, va_arg (v,int));
2227 va_end (v);
2228 return s;
2229 }
2230
2231 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2232 function prototypes and stuff, but not \xHH hex character constants.
2233 These do not provoke an error unfortunately, instead are silently treated
2234 as an "x". The following induces an error, until -std is added to get
2235 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2236 array size at least. It is necessary to write \x00 == 0 to get something
2237 that is true only with -std. */
2238 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2239
2240 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2241 inside strings and character constants. */
2242 #define FOO(x) '\''x'\''
2243 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2244
2245 int test (int i, double x);
2246 struct s1 {int (*f) (int a);};
2247 struct s2 {int (*f) (double a);};
2248 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2249 int, int);'
2250
2251 # Test code for whether the C compiler supports C89 (body of main).
2252 ac_c_conftest_c89_main='
2253 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2254 '
2255
2256 # Test code for whether the C compiler supports C99 (global declarations)
2257 ac_c_conftest_c99_globals='
2258 // Does the compiler advertise C99 conformance?
2259 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2260 # error "Compiler does not advertise C99 conformance"
2261 #endif
2262
2263 #include <stdbool.h>
2264 extern int puts (const char *);
2265 extern int printf (const char *, ...);
2266 extern int dprintf (int, const char *, ...);
2267 extern void *malloc (size_t);
2268
2269 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2270 // dprintf is used instead of fprintf to avoid needing to declare
2271 // FILE and stderr.
2272 #define debug(...) dprintf (2, __VA_ARGS__)
2273 #define showlist(...) puts (#__VA_ARGS__)
2274 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2275 static void
2276 test_varargs_macros (void)
2277 {
2278 int x = 1234;
2279 int y = 5678;
2280 debug ("Flag");
2281 debug ("X = %d\n", x);
2282 showlist (The first, second, and third items.);
2283 report (x>y, "x is %d but y is %d", x, y);
2284 }
2285
2286 // Check long long types.
2287 #define BIG64 18446744073709551615ull
2288 #define BIG32 4294967295ul
2289 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2290 #if !BIG_OK
2291 #error "your preprocessor is broken"
2292 #endif
2293 #if BIG_OK
2294 #else
2295 #error "your preprocessor is broken"
2296 #endif
2297 static long long int bignum = -9223372036854775807LL;
2298 static unsigned long long int ubignum = BIG64;
2299
2300 struct incomplete_array
2301 {
2302 int datasize;
2303 double data[];
2304 };
2305
2306 struct named_init {
2307 int number;
2308 const wchar_t *name;
2309 double average;
2310 };
2311
2312 typedef const char *ccp;
2313
2314 static inline int
2315 test_restrict (ccp restrict text)
2316 {
2317 // See if C++-style comments work.
2318 // Iterate through items via the restricted pointer.
2319 // Also check for declarations in for loops.
2320 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2321 continue;
2322 return 0;
2323 }
2324
2325 // Check varargs and va_copy.
2326 static bool
2327 test_varargs (const char *format, ...)
2328 {
2329 va_list args;
2330 va_start (args, format);
2331 va_list args_copy;
2332 va_copy (args_copy, args);
2333
2334 const char *str = "";
2335 int number = 0;
2336 float fnumber = 0;
2337
2338 while (*format)
2339 {
2340 switch (*format++)
2341 {
2342 case '\''s'\'': // string
2343 str = va_arg (args_copy, const char *);
2344 break;
2345 case '\''d'\'': // int
2346 number = va_arg (args_copy, int);
2347 break;
2348 case '\''f'\'': // float
2349 fnumber = va_arg (args_copy, double);
2350 break;
2351 default:
2352 break;
2353 }
2354 }
2355 va_end (args_copy);
2356 va_end (args);
2357
2358 return *str && number && fnumber;
2359 }
2360 '
2361
2362 # Test code for whether the C compiler supports C99 (body of main).
2363 ac_c_conftest_c99_main='
2364 // Check bool.
2365 _Bool success = false;
2366 success |= (argc != 0);
2367
2368 // Check restrict.
2369 if (test_restrict ("String literal") == 0)
2370 success = true;
2371 char *restrict newvar = "Another string";
2372
2373 // Check varargs.
2374 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2375 test_varargs_macros ();
2376
2377 // Check flexible array members.
2378 struct incomplete_array *ia =
2379 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2380 ia->datasize = 10;
2381 for (int i = 0; i < ia->datasize; ++i)
2382 ia->data[i] = i * 1.234;
2383
2384 // Check named initializers.
2385 struct named_init ni = {
2386 .number = 34,
2387 .name = L"Test wide string",
2388 .average = 543.34343,
2389 };
2390
2391 ni.number = 58;
2392
2393 int dynamic_array[ni.number];
2394 dynamic_array[0] = argv[0][0];
2395 dynamic_array[ni.number - 1] = 543;
2396
2397 // work around unused variable warnings
2398 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2399 || dynamic_array[ni.number - 1] != 543);
2400 '
2401
2402 # Test code for whether the C compiler supports C11 (global declarations)
2403 ac_c_conftest_c11_globals='
2404 // Does the compiler advertise C11 conformance?
2405 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2406 # error "Compiler does not advertise C11 conformance"
2407 #endif
2408
2409 // Check _Alignas.
2410 char _Alignas (double) aligned_as_double;
2411 char _Alignas (0) no_special_alignment;
2412 extern char aligned_as_int;
2413 char _Alignas (0) _Alignas (int) aligned_as_int;
2414
2415 // Check _Alignof.
2416 enum
2417 {
2418 int_alignment = _Alignof (int),
2419 int_array_alignment = _Alignof (int[100]),
2420 char_alignment = _Alignof (char)
2421 };
2422 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2423
2424 // Check _Noreturn.
2425 int _Noreturn does_not_return (void) { for (;;) continue; }
2426
2427 // Check _Static_assert.
2428 struct test_static_assert
2429 {
2430 int x;
2431 _Static_assert (sizeof (int) <= sizeof (long int),
2432 "_Static_assert does not work in struct");
2433 long int y;
2434 };
2435
2436 // Check UTF-8 literals.
2437 #define u8 syntax error!
2438 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2439
2440 // Check duplicate typedefs.
2441 typedef long *long_ptr;
2442 typedef long int *long_ptr;
2443 typedef long_ptr long_ptr;
2444
2445 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2446 struct anonymous
2447 {
2448 union {
2449 struct { int i; int j; };
2450 struct { int k; long int l; } w;
2451 };
2452 int m;
2453 } v1;
2454 '
2455
2456 # Test code for whether the C compiler supports C11 (body of main).
2457 ac_c_conftest_c11_main='
2458 _Static_assert ((offsetof (struct anonymous, i)
2459 == offsetof (struct anonymous, w.k)),
2460 "Anonymous union alignment botch");
2461 v1.i = 2;
2462 v1.w.k = 5;
2463 ok |= v1.i != 5;
2464 '
2465
2466 # Test code for whether the C compiler supports C11 (complete).
2467 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2468 ${ac_c_conftest_c99_globals}
2469 ${ac_c_conftest_c11_globals}
2470
2471 int
2472 main (int argc, char **argv)
2473 {
2474 int ok = 0;
2475 ${ac_c_conftest_c89_main}
2476 ${ac_c_conftest_c99_main}
2477 ${ac_c_conftest_c11_main}
2478 return ok;
2479 }
2480 "
2481
2482 # Test code for whether the C compiler supports C99 (complete).
2483 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2484 ${ac_c_conftest_c99_globals}
2485
2486 int
2487 main (int argc, char **argv)
2488 {
2489 int ok = 0;
2490 ${ac_c_conftest_c89_main}
2491 ${ac_c_conftest_c99_main}
2492 return ok;
2493 }
2494 "
2495
2496 # Test code for whether the C compiler supports C89 (complete).
2497 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2498
2499 int
2500 main (int argc, char **argv)
2501 {
2502 int ok = 0;
2503 ${ac_c_conftest_c89_main}
2504 return ok;
2505 }
2506 "
2507
2508 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2509 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2510 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2511 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2512 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2513 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2514 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2515 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2516 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2517 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2518 gt_needs="$gt_needs "
2519 # Test code for whether the C++ compiler supports C++98 (global declarations)
2520 ac_cxx_conftest_cxx98_globals='
2521 // Does the compiler advertise C++98 conformance?
2522 #if !defined __cplusplus || __cplusplus < 199711L
2523 # error "Compiler does not advertise C++98 conformance"
2524 #endif
2525
2526 // These inclusions are to reject old compilers that
2527 // lack the unsuffixed header files.
2528 #include <cstdlib>
2529 #include <exception>
2530
2531 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2532 extern void assert (int);
2533 namespace std {
2534 extern int strcmp (const char *, const char *);
2535 }
2536
2537 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2538 using std::exception;
2539 using std::strcmp;
2540
2541 namespace {
2542
2543 void test_exception_syntax()
2544 {
2545 try {
2546 throw "test";
2547 } catch (const char *s) {
2548 // Extra parentheses suppress a warning when building autoconf itself,
2549 // due to lint rules shared with more typical C programs.
2550 assert (!(strcmp) (s, "test"));
2551 }
2552 }
2553
2554 template <typename T> struct test_template
2555 {
2556 T const val;
2557 explicit test_template(T t) : val(t) {}
2558 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2559 };
2560
2561 } // anonymous namespace
2562 '
2563
2564 # Test code for whether the C++ compiler supports C++98 (body of main)
2565 ac_cxx_conftest_cxx98_main='
2566 assert (argc);
2567 assert (! argv[0]);
2568 {
2569 test_exception_syntax ();
2570 test_template<double> tt (2.0);
2571 assert (tt.add (4) == 6.0);
2572 assert (true && !false);
2573 }
2574 '
2575
2576 # Test code for whether the C++ compiler supports C++11 (global declarations)
2577 ac_cxx_conftest_cxx11_globals='
2578 // Does the compiler advertise C++ 2011 conformance?
2579 #if !defined __cplusplus || __cplusplus < 201103L
2580 # error "Compiler does not advertise C++11 conformance"
2581 #endif
2582
2583 namespace cxx11test
2584 {
2585 constexpr int get_val() { return 20; }
2586
2587 struct testinit
2588 {
2589 int i;
2590 double d;
2591 };
2592
2593 class delegate
2594 {
2595 public:
2596 delegate(int n) : n(n) {}
2597 delegate(): delegate(2354) {}
2598
2599 virtual int getval() { return this->n; };
2600 protected:
2601 int n;
2602 };
2603
2604 class overridden : public delegate
2605 {
2606 public:
2607 overridden(int n): delegate(n) {}
2608 virtual int getval() override final { return this->n * 2; }
2609 };
2610
2611 class nocopy
2612 {
2613 public:
2614 nocopy(int i): i(i) {}
2615 nocopy() = default;
2616 nocopy(const nocopy&) = delete;
2617 nocopy & operator=(const nocopy&) = delete;
2618 private:
2619 int i;
2620 };
2621
2622 // for testing lambda expressions
2623 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2624 {
2625 return f(v);
2626 }
2627
2628 // for testing variadic templates and trailing return types
2629 template <typename V> auto sum(V first) -> V
2630 {
2631 return first;
2632 }
2633 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2634 {
2635 return first + sum(rest...);
2636 }
2637 }
2638 '
2639
2640 # Test code for whether the C++ compiler supports C++11 (body of main)
2641 ac_cxx_conftest_cxx11_main='
2642 {
2643 // Test auto and decltype
2644 auto a1 = 6538;
2645 auto a2 = 48573953.4;
2646 auto a3 = "String literal";
2647
2648 int total = 0;
2649 for (auto i = a3; *i; ++i) { total += *i; }
2650
2651 decltype(a2) a4 = 34895.034;
2652 }
2653 {
2654 // Test constexpr
2655 short sa[cxx11test::get_val()] = { 0 };
2656 }
2657 {
2658 // Test initializer lists
2659 cxx11test::testinit il = { 4323, 435234.23544 };
2660 }
2661 {
2662 // Test range-based for
2663 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2664 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2665 for (auto &x : array) { x += 23; }
2666 }
2667 {
2668 // Test lambda expressions
2669 using cxx11test::eval;
2670 assert (eval ([](int x) { return x*2; }, 21) == 42);
2671 double d = 2.0;
2672 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2673 assert (d == 5.0);
2674 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2675 assert (d == 5.0);
2676 }
2677 {
2678 // Test use of variadic templates
2679 using cxx11test::sum;
2680 auto a = sum(1);
2681 auto b = sum(1, 2);
2682 auto c = sum(1.0, 2.0, 3.0);
2683 }
2684 {
2685 // Test constructor delegation
2686 cxx11test::delegate d1;
2687 cxx11test::delegate d2();
2688 cxx11test::delegate d3(45);
2689 }
2690 {
2691 // Test override and final
2692 cxx11test::overridden o1(55464);
2693 }
2694 {
2695 // Test nullptr
2696 char *c = nullptr;
2697 }
2698 {
2699 // Test template brackets
2700 test_template<::test_template<int>> v(test_template<int>(12));
2701 }
2702 {
2703 // Unicode literals
2704 char const *utf8 = u8"UTF-8 string \u2500";
2705 char16_t const *utf16 = u"UTF-8 string \u2500";
2706 char32_t const *utf32 = U"UTF-32 string \u2500";
2707 }
2708 '
2709
2710 # Test code for whether the C compiler supports C++11 (complete).
2711 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2712 ${ac_cxx_conftest_cxx11_globals}
2713
2714 int
2715 main (int argc, char **argv)
2716 {
2717 int ok = 0;
2718 ${ac_cxx_conftest_cxx98_main}
2719 ${ac_cxx_conftest_cxx11_main}
2720 return ok;
2721 }
2722 "
2723
2724 # Test code for whether the C compiler supports C++98 (complete).
2725 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2726 int
2727 main (int argc, char **argv)
2728 {
2729 int ok = 0;
2730 ${ac_cxx_conftest_cxx98_main}
2731 return ok;
2732 }
2733 "
2734
2735
2736 # Auxiliary files required by this configure script.
2737 ac_aux_files="config.guess config.sub config.rpath compile missing install-sh"
2738
2739 # Locations in which to look for auxiliary files.
2740 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2741
2742 # Search for a directory containing all of the required auxiliary files,
2743 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2744 # If we don't find one directory that contains all the files we need,
2745 # we report the set of missing files from the *first* directory in
2746 # $ac_aux_dir_candidates and give up.
2747 ac_missing_aux_files=""
2748 ac_first_candidate=:
2749 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2751 as_found=false
2752 for as_dir in $ac_aux_dir_candidates
2753 do
2754 IFS=$as_save_IFS
2755 case $as_dir in #(((
2756 '') as_dir=./ ;;
2757 */) ;;
2758 *) as_dir=$as_dir/ ;;
2759 esac
2760 as_found=:
2761
2762 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2763 ac_aux_dir_found=yes
2764 ac_install_sh=
2765 for ac_aux in $ac_aux_files
2766 do
2767 # As a special case, if "install-sh" is required, that requirement
2768 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2769 # and $ac_install_sh is set appropriately for whichever one is found.
2770 if test x"$ac_aux" = x"install-sh"
2771 then
2772 if test -f "${as_dir}install-sh"; then
2773 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2774 ac_install_sh="${as_dir}install-sh -c"
2775 elif test -f "${as_dir}install.sh"; then
2776 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2777 ac_install_sh="${as_dir}install.sh -c"
2778 elif test -f "${as_dir}shtool"; then
2779 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2780 ac_install_sh="${as_dir}shtool install -c"
2781 else
2782 ac_aux_dir_found=no
2783 if $ac_first_candidate; then
2784 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2785 else
2786 break
2787 fi
2788 fi
2789 else
2790 if test -f "${as_dir}${ac_aux}"; then
2791 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2792 else
2793 ac_aux_dir_found=no
2794 if $ac_first_candidate; then
2795 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2796 else
2797 break
2798 fi
2799 fi
2800 fi
2801 done
2802 if test "$ac_aux_dir_found" = yes; then
2803 ac_aux_dir="$as_dir"
2804 break
2805 fi
2806 ac_first_candidate=false
2807
2808 as_found=false
2809 done
2810 IFS=$as_save_IFS
2811 if $as_found
2812 then :
2813
2814 else $as_nop
2815 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2816 fi
2817
2818
2819 # These three variables are undocumented and unsupported,
2820 # and are intended to be withdrawn in a future Autoconf release.
2821 # They can cause serious problems if a builder's source tree is in a directory
2822 # whose full name contains unusual characters.
2823 if test -f "${ac_aux_dir}config.guess"; then
2824 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2825 fi
2826 if test -f "${ac_aux_dir}config.sub"; then
2827 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2828 fi
2829 if test -f "$ac_aux_dir/configure"; then
2830 ac_configure="$SHELL ${ac_aux_dir}configure"
2831 fi
2832
2833 # Check that the precious variables saved in the cache have kept the same
2834 # value.
2835 ac_cache_corrupted=false
2836 for ac_var in $ac_precious_vars; do
2837 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2838 eval ac_new_set=\$ac_env_${ac_var}_set
2839 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2840 eval ac_new_val=\$ac_env_${ac_var}_value
2841 case $ac_old_set,$ac_new_set in
2842 set,)
2843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2844 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2845 ac_cache_corrupted=: ;;
2846 ,set)
2847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2848 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2849 ac_cache_corrupted=: ;;
2850 ,);;
2851 *)
2852 if test "x$ac_old_val" != "x$ac_new_val"; then
2853 # differences in whitespace do not lead to failure.
2854 ac_old_val_w=`echo x $ac_old_val`
2855 ac_new_val_w=`echo x $ac_new_val`
2856 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2858 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2859 ac_cache_corrupted=:
2860 else
2861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2862 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2863 eval $ac_var=\$ac_old_val
2864 fi
2865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2866 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2868 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2869 fi;;
2870 esac
2871 # Pass precious variables to config.status.
2872 if test "$ac_new_set" = set; then
2873 case $ac_new_val in
2874 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2875 *) ac_arg=$ac_var=$ac_new_val ;;
2876 esac
2877 case " $ac_configure_args " in
2878 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2879 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2880 esac
2881 fi
2882 done
2883 if $ac_cache_corrupted; then
2884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2885 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2887 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2888 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2889 and start over" "$LINENO" 5
2890 fi
2891 ## -------------------- ##
2892 ## Main body of script. ##
2893 ## -------------------- ##
2894
2895 ac_ext=c
2896 ac_cpp='$CPP $CPPFLAGS'
2897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2900
2901
2902
2903 ac_config_headers="$ac_config_headers config.h"
2904
2905 am__api_version='1.16'
2906
2907
2908
2909 # Find a good install program. We prefer a C program (faster),
2910 # so one script is as good as another. But avoid the broken or
2911 # incompatible versions:
2912 # SysV /etc/install, /usr/sbin/install
2913 # SunOS /usr/etc/install
2914 # IRIX /sbin/install
2915 # AIX /bin/install
2916 # AmigaOS /C/install, which installs bootblocks on floppy discs
2917 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2918 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2919 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2920 # OS/2's system install, which has a completely different semantic
2921 # ./install, which can be erroneously created by make from ./install.sh.
2922 # Reject install programs that cannot install multiple files.
2923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2924 printf %s "checking for a BSD-compatible install... " >&6; }
2925 if test -z "$INSTALL"; then
2926 if test ${ac_cv_path_install+y}
2927 then :
2928 printf %s "(cached) " >&6
2929 else $as_nop
2930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931 for as_dir in $PATH
2932 do
2933 IFS=$as_save_IFS
2934 case $as_dir in #(((
2935 '') as_dir=./ ;;
2936 */) ;;
2937 *) as_dir=$as_dir/ ;;
2938 esac
2939 # Account for fact that we put trailing slashes in our PATH walk.
2940 case $as_dir in #((
2941 ./ | /[cC]/* | \
2942 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2943 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2944 /usr/ucb/* ) ;;
2945 *)
2946 # OSF1 and SCO ODT 3.0 have their own names for install.
2947 # Don't use installbsd from OSF since it installs stuff as root
2948 # by default.
2949 for ac_prog in ginstall scoinst install; do
2950 for ac_exec_ext in '' $ac_executable_extensions; do
2951 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2952 if test $ac_prog = install &&
2953 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2954 # AIX install. It has an incompatible calling convention.
2955 :
2956 elif test $ac_prog = install &&
2957 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2958 # program-specific install script used by HP pwplus--don't use.
2959 :
2960 else
2961 rm -rf conftest.one conftest.two conftest.dir
2962 echo one > conftest.one
2963 echo two > conftest.two
2964 mkdir conftest.dir
2965 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2966 test -s conftest.one && test -s conftest.two &&
2967 test -s conftest.dir/conftest.one &&
2968 test -s conftest.dir/conftest.two
2969 then
2970 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2971 break 3
2972 fi
2973 fi
2974 fi
2975 done
2976 done
2977 ;;
2978 esac
2979
2980 done
2981 IFS=$as_save_IFS
2982
2983 rm -rf conftest.one conftest.two conftest.dir
2984
2985 fi
2986 if test ${ac_cv_path_install+y}; then
2987 INSTALL=$ac_cv_path_install
2988 else
2989 # As a last resort, use the slow shell script. Don't cache a
2990 # value for INSTALL within a source directory, because that will
2991 # break other packages using the cache if that directory is
2992 # removed, or if the value is a relative name.
2993 INSTALL=$ac_install_sh
2994 fi
2995 fi
2996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2997 printf "%s\n" "$INSTALL" >&6; }
2998
2999 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3000 # It thinks the first close brace ends the variable substitution.
3001 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3002
3003 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3004
3005 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3006
3007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3008 printf %s "checking whether build environment is sane... " >&6; }
3009 # Reject unsafe characters in $srcdir or the absolute working directory
3010 # name. Accept space and tab only in the latter.
3011 am_lf='
3012 '
3013 case `pwd` in
3014 *[\\\"\#\$\&\'\`$am_lf]*)
3015 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3016 esac
3017 case $srcdir in
3018 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3019 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3020 esac
3021
3022 # Do 'set' in a subshell so we don't clobber the current shell's
3023 # arguments. Must try -L first in case configure is actually a
3024 # symlink; some systems play weird games with the mod time of symlinks
3025 # (eg FreeBSD returns the mod time of the symlink's containing
3026 # directory).
3027 if (
3028 am_has_slept=no
3029 for am_try in 1 2; do
3030 echo "timestamp, slept: $am_has_slept" > conftest.file
3031 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3032 if test "$*" = "X"; then
3033 # -L didn't work.
3034 set X `ls -t "$srcdir/configure" conftest.file`
3035 fi
3036 if test "$*" != "X $srcdir/configure conftest.file" \
3037 && test "$*" != "X conftest.file $srcdir/configure"; then
3038
3039 # If neither matched, then we have a broken ls. This can happen
3040 # if, for instance, CONFIG_SHELL is bash and it inherits a
3041 # broken ls alias from the environment. This has actually
3042 # happened. Such a system could not be considered "sane".
3043 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3044 alias in your environment" "$LINENO" 5
3045 fi
3046 if test "$2" = conftest.file || test $am_try -eq 2; then
3047 break
3048 fi
3049 # Just in case.
3050 sleep 1
3051 am_has_slept=yes
3052 done
3053 test "$2" = conftest.file
3054 )
3055 then
3056 # Ok.
3057 :
3058 else
3059 as_fn_error $? "newly created file is older than distributed files!
3060 Check your system clock" "$LINENO" 5
3061 fi
3062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3063 printf "%s\n" "yes" >&6; }
3064 # If we didn't sleep, we still need to ensure time stamps of config.status and
3065 # generated files are strictly newer.
3066 am_sleep_pid=
3067 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3068 ( sleep 1 ) &
3069 am_sleep_pid=$!
3070 fi
3071
3072 rm -f conftest.file
3073
3074 test "$program_prefix" != NONE &&
3075 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3076 # Use a double $ so make ignores it.
3077 test "$program_suffix" != NONE &&
3078 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3079 # Double any \ or $.
3080 # By default was `s,x,x', remove it if useless.
3081 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3082 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3083
3084
3085 # Expand $ac_aux_dir to an absolute path.
3086 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3087
3088
3089 if test x"${MISSING+set}" != xset; then
3090 MISSING="\${SHELL} '$am_aux_dir/missing'"
3091 fi
3092 # Use eval to expand $SHELL
3093 if eval "$MISSING --is-lightweight"; then
3094 am_missing_run="$MISSING "
3095 else
3096 am_missing_run=
3097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3098 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3099 fi
3100
3101 if test x"${install_sh+set}" != xset; then
3102 case $am_aux_dir in
3103 *\ * | *\ *)
3104 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3105 *)
3106 install_sh="\${SHELL} $am_aux_dir/install-sh"
3107 esac
3108 fi
3109
3110 # Installed binaries are usually stripped using 'strip' when the user
3111 # run "make install-strip". However 'strip' might not be the right
3112 # tool to use in cross-compilation environments, therefore Automake
3113 # will honor the 'STRIP' environment variable to overrule this program.
3114 if test "$cross_compiling" != no; then
3115 if test -n "$ac_tool_prefix"; then
3116 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3117 set dummy ${ac_tool_prefix}strip; ac_word=$2
3118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3119 printf %s "checking for $ac_word... " >&6; }
3120 if test ${ac_cv_prog_STRIP+y}
3121 then :
3122 printf %s "(cached) " >&6
3123 else $as_nop
3124 if test -n "$STRIP"; then
3125 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3126 else
3127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128 for as_dir in $PATH
3129 do
3130 IFS=$as_save_IFS
3131 case $as_dir in #(((
3132 '') as_dir=./ ;;
3133 */) ;;
3134 *) as_dir=$as_dir/ ;;
3135 esac
3136 for ac_exec_ext in '' $ac_executable_extensions; do
3137 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3138 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3139 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3140 break 2
3141 fi
3142 done
3143 done
3144 IFS=$as_save_IFS
3145
3146 fi
3147 fi
3148 STRIP=$ac_cv_prog_STRIP
3149 if test -n "$STRIP"; then
3150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3151 printf "%s\n" "$STRIP" >&6; }
3152 else
3153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3154 printf "%s\n" "no" >&6; }
3155 fi
3156
3157
3158 fi
3159 if test -z "$ac_cv_prog_STRIP"; then
3160 ac_ct_STRIP=$STRIP
3161 # Extract the first word of "strip", so it can be a program name with args.
3162 set dummy strip; ac_word=$2
3163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3164 printf %s "checking for $ac_word... " >&6; }
3165 if test ${ac_cv_prog_ac_ct_STRIP+y}
3166 then :
3167 printf %s "(cached) " >&6
3168 else $as_nop
3169 if test -n "$ac_ct_STRIP"; then
3170 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3171 else
3172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173 for as_dir in $PATH
3174 do
3175 IFS=$as_save_IFS
3176 case $as_dir in #(((
3177 '') as_dir=./ ;;
3178 */) ;;
3179 *) as_dir=$as_dir/ ;;
3180 esac
3181 for ac_exec_ext in '' $ac_executable_extensions; do
3182 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3183 ac_cv_prog_ac_ct_STRIP="strip"
3184 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3185 break 2
3186 fi
3187 done
3188 done
3189 IFS=$as_save_IFS
3190
3191 fi
3192 fi
3193 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3194 if test -n "$ac_ct_STRIP"; then
3195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3196 printf "%s\n" "$ac_ct_STRIP" >&6; }
3197 else
3198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3199 printf "%s\n" "no" >&6; }
3200 fi
3201
3202 if test "x$ac_ct_STRIP" = x; then
3203 STRIP=":"
3204 else
3205 case $cross_compiling:$ac_tool_warned in
3206 yes:)
3207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3208 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3209 ac_tool_warned=yes ;;
3210 esac
3211 STRIP=$ac_ct_STRIP
3212 fi
3213 else
3214 STRIP="$ac_cv_prog_STRIP"
3215 fi
3216
3217 fi
3218 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3219
3220
3221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3222 printf %s "checking for a race-free mkdir -p... " >&6; }
3223 if test -z "$MKDIR_P"; then
3224 if test ${ac_cv_path_mkdir+y}
3225 then :
3226 printf %s "(cached) " >&6
3227 else $as_nop
3228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3229 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3230 do
3231 IFS=$as_save_IFS
3232 case $as_dir in #(((
3233 '') as_dir=./ ;;
3234 */) ;;
3235 *) as_dir=$as_dir/ ;;
3236 esac
3237 for ac_prog in mkdir gmkdir; do
3238 for ac_exec_ext in '' $ac_executable_extensions; do
3239 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3240 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3241 'mkdir ('*'coreutils) '* | \
3242 'BusyBox '* | \
3243 'mkdir (fileutils) '4.1*)
3244 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3245 break 3;;
3246 esac
3247 done
3248 done
3249 done
3250 IFS=$as_save_IFS
3251
3252 fi
3253
3254 test -d ./--version && rmdir ./--version
3255 if test ${ac_cv_path_mkdir+y}; then
3256 MKDIR_P="$ac_cv_path_mkdir -p"
3257 else
3258 # As a last resort, use the slow shell script. Don't cache a
3259 # value for MKDIR_P within a source directory, because that will
3260 # break other packages using the cache if that directory is
3261 # removed, or if the value is a relative name.
3262 MKDIR_P="$ac_install_sh -d"
3263 fi
3264 fi
3265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3266 printf "%s\n" "$MKDIR_P" >&6; }
3267
3268 for ac_prog in gawk mawk nawk awk
3269 do
3270 # Extract the first word of "$ac_prog", so it can be a program name with args.
3271 set dummy $ac_prog; ac_word=$2
3272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3273 printf %s "checking for $ac_word... " >&6; }
3274 if test ${ac_cv_prog_AWK+y}
3275 then :
3276 printf %s "(cached) " >&6
3277 else $as_nop
3278 if test -n "$AWK"; then
3279 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3280 else
3281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3282 for as_dir in $PATH
3283 do
3284 IFS=$as_save_IFS
3285 case $as_dir in #(((
3286 '') as_dir=./ ;;
3287 */) ;;
3288 *) as_dir=$as_dir/ ;;
3289 esac
3290 for ac_exec_ext in '' $ac_executable_extensions; do
3291 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3292 ac_cv_prog_AWK="$ac_prog"
3293 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3294 break 2
3295 fi
3296 done
3297 done
3298 IFS=$as_save_IFS
3299
3300 fi
3301 fi
3302 AWK=$ac_cv_prog_AWK
3303 if test -n "$AWK"; then
3304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3305 printf "%s\n" "$AWK" >&6; }
3306 else
3307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3308 printf "%s\n" "no" >&6; }
3309 fi
3310
3311
3312 test -n "$AWK" && break
3313 done
3314
3315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3316 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3317 set x ${MAKE-make}
3318 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3319 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3320 then :
3321 printf %s "(cached) " >&6
3322 else $as_nop
3323 cat >conftest.make <<\_ACEOF
3324 SHELL = /bin/sh
3325 all:
3326 @echo '@@@%%%=$(MAKE)=@@@%%%'
3327 _ACEOF
3328 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3329 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3330 *@@@%%%=?*=@@@%%%*)
3331 eval ac_cv_prog_make_${ac_make}_set=yes;;
3332 *)
3333 eval ac_cv_prog_make_${ac_make}_set=no;;
3334 esac
3335 rm -f conftest.make
3336 fi
3337 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3339 printf "%s\n" "yes" >&6; }
3340 SET_MAKE=
3341 else
3342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3343 printf "%s\n" "no" >&6; }
3344 SET_MAKE="MAKE=${MAKE-make}"
3345 fi
3346
3347 rm -rf .tst 2>/dev/null
3348 mkdir .tst 2>/dev/null
3349 if test -d .tst; then
3350 am__leading_dot=.
3351 else
3352 am__leading_dot=_
3353 fi
3354 rmdir .tst 2>/dev/null
3355
3356 # Check whether --enable-silent-rules was given.
3357 if test ${enable_silent_rules+y}
3358 then :
3359 enableval=$enable_silent_rules;
3360 fi
3361
3362 case $enable_silent_rules in # (((
3363 yes) AM_DEFAULT_VERBOSITY=0;;
3364 no) AM_DEFAULT_VERBOSITY=1;;
3365 *) AM_DEFAULT_VERBOSITY=1;;
3366 esac
3367 am_make=${MAKE-make}
3368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3369 printf %s "checking whether $am_make supports nested variables... " >&6; }
3370 if test ${am_cv_make_support_nested_variables+y}
3371 then :
3372 printf %s "(cached) " >&6
3373 else $as_nop
3374 if printf "%s\n" 'TRUE=$(BAR$(V))
3375 BAR0=false
3376 BAR1=true
3377 V=1
3378 am__doit:
3379 @$(TRUE)
3380 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3381 am_cv_make_support_nested_variables=yes
3382 else
3383 am_cv_make_support_nested_variables=no
3384 fi
3385 fi
3386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3387 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3388 if test $am_cv_make_support_nested_variables = yes; then
3389 AM_V='$(V)'
3390 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3391 else
3392 AM_V=$AM_DEFAULT_VERBOSITY
3393 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3394 fi
3395 AM_BACKSLASH='\'
3396
3397 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3398 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3399 # is not polluted with repeated "-I."
3400 am__isrc=' -I$(srcdir)'
3401 # test to see if srcdir already configured
3402 if test -f $srcdir/config.status; then
3403 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3404 fi
3405 fi
3406
3407 # test whether we have cygpath
3408 if test -z "$CYGPATH_W"; then
3409 if (cygpath --version) >/dev/null 2>/dev/null; then
3410 CYGPATH_W='cygpath -w'
3411 else
3412 CYGPATH_W=echo
3413 fi
3414 fi
3415
3416
3417 # Define the identity of the package.
3418 PACKAGE='ltris2'
3419 VERSION='2.0.4'
3420
3421
3422 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3423
3424
3425 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3426
3427 # Some tools Automake needs.
3428
3429 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3430
3431
3432 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3433
3434
3435 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3436
3437
3438 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3439
3440
3441 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3442
3443 # For better backward compatibility. To be removed once Automake 1.9.x
3444 # dies out for good. For more background, see:
3445 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3446 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3447 mkdir_p='$(MKDIR_P)'
3448
3449 # We need awk for the "check" target (and possibly the TAP driver). The
3450 # system "awk" is bad on some platforms.
3451 # Always define AMTAR for backward compatibility. Yes, it's still used
3452 # in the wild :-( We should find a proper way to deprecate it ...
3453 AMTAR='$${TAR-tar}'
3454
3455
3456 # We'll loop over all known methods to create a tar archive until one works.
3457 _am_tools='gnutar pax cpio none'
3458
3459 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3460
3461
3462
3463
3464
3465 # Variables for tags utilities; see am/tags.am
3466 if test -z "$CTAGS"; then
3467 CTAGS=ctags
3468 fi
3469
3470 if test -z "$ETAGS"; then
3471 ETAGS=etags
3472 fi
3473
3474 if test -z "$CSCOPE"; then
3475 CSCOPE=cscope
3476 fi
3477
3478
3479
3480 # POSIX will say in a future version that running "rm -f" with no argument
3481 # is OK; and we want to be able to make that assumption in our Makefile
3482 # recipes. So use an aggressive probe to check that the usage we want is
3483 # actually supported "in the wild" to an acceptable degree.
3484 # See automake bug#10828.
3485 # To make any issue more visible, cause the running configure to be aborted
3486 # by default if the 'rm' program in use doesn't match our expectations; the
3487 # user can still override this though.
3488 if rm -f && rm -fr && rm -rf; then : OK; else
3489 cat >&2 <<'END'
3490 Oops!
3491
3492 Your 'rm' program seems unable to run without file operands specified
3493 on the command line, even when the '-f' option is present. This is contrary
3494 to the behaviour of most rm programs out there, and not conforming with
3495 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3496
3497 Please tell [email protected] about your system, including the value
3498 of your $PATH and any error possibly output before this message. This
3499 can help us improve future automake versions.
3500
3501 END
3502 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3503 echo 'Configuration will proceed anyway, since you have set the' >&2
3504 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3505 echo >&2
3506 else
3507 cat >&2 <<'END'
3508 Aborting the configuration process, to ensure you take notice of the issue.
3509
3510 You can download and install GNU coreutils to get an 'rm' implementation
3511 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3512
3513 If you want to complete the configuration process using your problematic
3514 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3515 to "yes", and re-run configure.
3516
3517 END
3518 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3519 fi
3520 fi
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532 DEPDIR="${am__leading_dot}deps"
3533
3534 ac_config_commands="$ac_config_commands depfiles"
3535
3536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3537 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3538 cat > confinc.mk << 'END'
3539 am__doit:
3540 @echo this is the am__doit target >confinc.out
3541 .PHONY: am__doit
3542 END
3543 am__include="#"
3544 am__quote=
3545 # BSD make does it like this.
3546 echo '.include "confinc.mk" # ignored' > confmf.BSD
3547 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3548 echo 'include confinc.mk # ignored' > confmf.GNU
3549 _am_result=no
3550 for s in GNU BSD; do
3551 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3552 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3553 ac_status=$?
3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555 (exit $ac_status); }
3556 case $?:`cat confinc.out 2>/dev/null` in #(
3557 '0:this is the am__doit target') :
3558 case $s in #(
3559 BSD) :
3560 am__include='.include' am__quote='"' ;; #(
3561 *) :
3562 am__include='include' am__quote='' ;;
3563 esac ;; #(
3564 *) :
3565 ;;
3566 esac
3567 if test "$am__include" != "#"; then
3568 _am_result="yes ($s style)"
3569 break
3570 fi
3571 done
3572 rm -f confinc.* confmf.*
3573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3574 printf "%s\n" "${_am_result}" >&6; }
3575
3576 # Check whether --enable-dependency-tracking was given.
3577 if test ${enable_dependency_tracking+y}
3578 then :
3579 enableval=$enable_dependency_tracking;
3580 fi
3581
3582 if test "x$enable_dependency_tracking" != xno; then
3583 am_depcomp="$ac_aux_dir/depcomp"
3584 AMDEPBACKSLASH='\'
3585 am__nodep='_no'
3586 fi
3587 if test "x$enable_dependency_tracking" != xno; then
3588 AMDEP_TRUE=
3589 AMDEP_FALSE='#'
3590 else
3591 AMDEP_TRUE='#'
3592 AMDEP_FALSE=
3593 fi
3594
3595
3596 ac_ext=c
3597 ac_cpp='$CPP $CPPFLAGS'
3598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3601 if test -n "$ac_tool_prefix"; then
3602 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3603 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3605 printf %s "checking for $ac_word... " >&6; }
3606 if test ${ac_cv_prog_CC+y}
3607 then :
3608 printf %s "(cached) " >&6
3609 else $as_nop
3610 if test -n "$CC"; then
3611 ac_cv_prog_CC="$CC" # Let the user override the test.
3612 else
3613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3614 for as_dir in $PATH
3615 do
3616 IFS=$as_save_IFS
3617 case $as_dir in #(((
3618 '') as_dir=./ ;;
3619 */) ;;
3620 *) as_dir=$as_dir/ ;;
3621 esac
3622 for ac_exec_ext in '' $ac_executable_extensions; do
3623 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3624 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3625 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3626 break 2
3627 fi
3628 done
3629 done
3630 IFS=$as_save_IFS
3631
3632 fi
3633 fi
3634 CC=$ac_cv_prog_CC
3635 if test -n "$CC"; then
3636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3637 printf "%s\n" "$CC" >&6; }
3638 else
3639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3640 printf "%s\n" "no" >&6; }
3641 fi
3642
3643
3644 fi
3645 if test -z "$ac_cv_prog_CC"; then
3646 ac_ct_CC=$CC
3647 # Extract the first word of "gcc", so it can be a program name with args.
3648 set dummy gcc; ac_word=$2
3649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3650 printf %s "checking for $ac_word... " >&6; }
3651 if test ${ac_cv_prog_ac_ct_CC+y}
3652 then :
3653 printf %s "(cached) " >&6
3654 else $as_nop
3655 if test -n "$ac_ct_CC"; then
3656 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3657 else
3658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3659 for as_dir in $PATH
3660 do
3661 IFS=$as_save_IFS
3662 case $as_dir in #(((
3663 '') as_dir=./ ;;
3664 */) ;;
3665 *) as_dir=$as_dir/ ;;
3666 esac
3667 for ac_exec_ext in '' $ac_executable_extensions; do
3668 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3669 ac_cv_prog_ac_ct_CC="gcc"
3670 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3671 break 2
3672 fi
3673 done
3674 done
3675 IFS=$as_save_IFS
3676
3677 fi
3678 fi
3679 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3680 if test -n "$ac_ct_CC"; then
3681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3682 printf "%s\n" "$ac_ct_CC" >&6; }
3683 else
3684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3685 printf "%s\n" "no" >&6; }
3686 fi
3687
3688 if test "x$ac_ct_CC" = x; then
3689 CC=""
3690 else
3691 case $cross_compiling:$ac_tool_warned in
3692 yes:)
3693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3694 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3695 ac_tool_warned=yes ;;
3696 esac
3697 CC=$ac_ct_CC
3698 fi
3699 else
3700 CC="$ac_cv_prog_CC"
3701 fi
3702
3703 if test -z "$CC"; then
3704 if test -n "$ac_tool_prefix"; then
3705 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3706 set dummy ${ac_tool_prefix}cc; ac_word=$2
3707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3708 printf %s "checking for $ac_word... " >&6; }
3709 if test ${ac_cv_prog_CC+y}
3710 then :
3711 printf %s "(cached) " >&6
3712 else $as_nop
3713 if test -n "$CC"; then
3714 ac_cv_prog_CC="$CC" # Let the user override the test.
3715 else
3716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3717 for as_dir in $PATH
3718 do
3719 IFS=$as_save_IFS
3720 case $as_dir in #(((
3721 '') as_dir=./ ;;
3722 */) ;;
3723 *) as_dir=$as_dir/ ;;
3724 esac
3725 for ac_exec_ext in '' $ac_executable_extensions; do
3726 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3727 ac_cv_prog_CC="${ac_tool_prefix}cc"
3728 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3729 break 2
3730 fi
3731 done
3732 done
3733 IFS=$as_save_IFS
3734
3735 fi
3736 fi
3737 CC=$ac_cv_prog_CC
3738 if test -n "$CC"; then
3739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3740 printf "%s\n" "$CC" >&6; }
3741 else
3742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3743 printf "%s\n" "no" >&6; }
3744 fi
3745
3746
3747 fi
3748 fi
3749 if test -z "$CC"; then
3750 # Extract the first word of "cc", so it can be a program name with args.
3751 set dummy cc; ac_word=$2
3752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3753 printf %s "checking for $ac_word... " >&6; }
3754 if test ${ac_cv_prog_CC+y}
3755 then :
3756 printf %s "(cached) " >&6
3757 else $as_nop
3758 if test -n "$CC"; then
3759 ac_cv_prog_CC="$CC" # Let the user override the test.
3760 else
3761 ac_prog_rejected=no
3762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3763 for as_dir in $PATH
3764 do
3765 IFS=$as_save_IFS
3766 case $as_dir in #(((
3767 '') as_dir=./ ;;
3768 */) ;;
3769 *) as_dir=$as_dir/ ;;
3770 esac
3771 for ac_exec_ext in '' $ac_executable_extensions; do
3772 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3773 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3774 ac_prog_rejected=yes
3775 continue
3776 fi
3777 ac_cv_prog_CC="cc"
3778 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3779 break 2
3780 fi
3781 done
3782 done
3783 IFS=$as_save_IFS
3784
3785 if test $ac_prog_rejected = yes; then
3786 # We found a bogon in the path, so make sure we never use it.
3787 set dummy $ac_cv_prog_CC
3788 shift
3789 if test $# != 0; then
3790 # We chose a different compiler from the bogus one.
3791 # However, it has the same basename, so the bogon will be chosen
3792 # first if we set CC to just the basename; use the full file name.
3793 shift
3794 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3795 fi
3796 fi
3797 fi
3798 fi
3799 CC=$ac_cv_prog_CC
3800 if test -n "$CC"; then
3801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3802 printf "%s\n" "$CC" >&6; }
3803 else
3804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3805 printf "%s\n" "no" >&6; }
3806 fi
3807
3808
3809 fi
3810 if test -z "$CC"; then
3811 if test -n "$ac_tool_prefix"; then
3812 for ac_prog in cl.exe
3813 do
3814 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3815 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3817 printf %s "checking for $ac_word... " >&6; }
3818 if test ${ac_cv_prog_CC+y}
3819 then :
3820 printf %s "(cached) " >&6
3821 else $as_nop
3822 if test -n "$CC"; then
3823 ac_cv_prog_CC="$CC" # Let the user override the test.
3824 else
3825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3826 for as_dir in $PATH
3827 do
3828 IFS=$as_save_IFS
3829 case $as_dir in #(((
3830 '') as_dir=./ ;;
3831 */) ;;
3832 *) as_dir=$as_dir/ ;;
3833 esac
3834 for ac_exec_ext in '' $ac_executable_extensions; do
3835 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3836 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3837 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3838 break 2
3839 fi
3840 done
3841 done
3842 IFS=$as_save_IFS
3843
3844 fi
3845 fi
3846 CC=$ac_cv_prog_CC
3847 if test -n "$CC"; then
3848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3849 printf "%s\n" "$CC" >&6; }
3850 else
3851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3852 printf "%s\n" "no" >&6; }
3853 fi
3854
3855
3856 test -n "$CC" && break
3857 done
3858 fi
3859 if test -z "$CC"; then
3860 ac_ct_CC=$CC
3861 for ac_prog in cl.exe
3862 do
3863 # Extract the first word of "$ac_prog", so it can be a program name with args.
3864 set dummy $ac_prog; ac_word=$2
3865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3866 printf %s "checking for $ac_word... " >&6; }
3867 if test ${ac_cv_prog_ac_ct_CC+y}
3868 then :
3869 printf %s "(cached) " >&6
3870 else $as_nop
3871 if test -n "$ac_ct_CC"; then
3872 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3873 else
3874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3875 for as_dir in $PATH
3876 do
3877 IFS=$as_save_IFS
3878 case $as_dir in #(((
3879 '') as_dir=./ ;;
3880 */) ;;
3881 *) as_dir=$as_dir/ ;;
3882 esac
3883 for ac_exec_ext in '' $ac_executable_extensions; do
3884 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3885 ac_cv_prog_ac_ct_CC="$ac_prog"
3886 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3887 break 2
3888 fi
3889 done
3890 done
3891 IFS=$as_save_IFS
3892
3893 fi
3894 fi
3895 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3896 if test -n "$ac_ct_CC"; then
3897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3898 printf "%s\n" "$ac_ct_CC" >&6; }
3899 else
3900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3901 printf "%s\n" "no" >&6; }
3902 fi
3903
3904
3905 test -n "$ac_ct_CC" && break
3906 done
3907
3908 if test "x$ac_ct_CC" = x; then
3909 CC=""
3910 else
3911 case $cross_compiling:$ac_tool_warned in
3912 yes:)
3913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3914 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3915 ac_tool_warned=yes ;;
3916 esac
3917 CC=$ac_ct_CC
3918 fi
3919 fi
3920
3921 fi
3922 if test -z "$CC"; then
3923 if test -n "$ac_tool_prefix"; then
3924 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3925 set dummy ${ac_tool_prefix}clang; ac_word=$2
3926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3927 printf %s "checking for $ac_word... " >&6; }
3928 if test ${ac_cv_prog_CC+y}
3929 then :
3930 printf %s "(cached) " >&6
3931 else $as_nop
3932 if test -n "$CC"; then
3933 ac_cv_prog_CC="$CC" # Let the user override the test.
3934 else
3935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936 for as_dir in $PATH
3937 do
3938 IFS=$as_save_IFS
3939 case $as_dir in #(((
3940 '') as_dir=./ ;;
3941 */) ;;
3942 *) as_dir=$as_dir/ ;;
3943 esac
3944 for ac_exec_ext in '' $ac_executable_extensions; do
3945 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3946 ac_cv_prog_CC="${ac_tool_prefix}clang"
3947 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3948 break 2
3949 fi
3950 done
3951 done
3952 IFS=$as_save_IFS
3953
3954 fi
3955 fi
3956 CC=$ac_cv_prog_CC
3957 if test -n "$CC"; then
3958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3959 printf "%s\n" "$CC" >&6; }
3960 else
3961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3962 printf "%s\n" "no" >&6; }
3963 fi
3964
3965
3966 fi
3967 if test -z "$ac_cv_prog_CC"; then
3968 ac_ct_CC=$CC
3969 # Extract the first word of "clang", so it can be a program name with args.
3970 set dummy clang; ac_word=$2
3971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3972 printf %s "checking for $ac_word... " >&6; }
3973 if test ${ac_cv_prog_ac_ct_CC+y}
3974 then :
3975 printf %s "(cached) " >&6
3976 else $as_nop
3977 if test -n "$ac_ct_CC"; then
3978 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3979 else
3980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3981 for as_dir in $PATH
3982 do
3983 IFS=$as_save_IFS
3984 case $as_dir in #(((
3985 '') as_dir=./ ;;
3986 */) ;;
3987 *) as_dir=$as_dir/ ;;
3988 esac
3989 for ac_exec_ext in '' $ac_executable_extensions; do
3990 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3991 ac_cv_prog_ac_ct_CC="clang"
3992 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3993 break 2
3994 fi
3995 done
3996 done
3997 IFS=$as_save_IFS
3998
3999 fi
4000 fi
4001 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4002 if test -n "$ac_ct_CC"; then
4003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4004 printf "%s\n" "$ac_ct_CC" >&6; }
4005 else
4006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4007 printf "%s\n" "no" >&6; }
4008 fi
4009
4010 if test "x$ac_ct_CC" = x; then
4011 CC=""
4012 else
4013 case $cross_compiling:$ac_tool_warned in
4014 yes:)
4015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4016 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4017 ac_tool_warned=yes ;;
4018 esac
4019 CC=$ac_ct_CC
4020 fi
4021 else
4022 CC="$ac_cv_prog_CC"
4023 fi
4024
4025 fi
4026
4027
4028 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4029 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4030 as_fn_error $? "no acceptable C compiler found in \$PATH
4031 See \`config.log' for more details" "$LINENO" 5; }
4032
4033 # Provide some information about the compiler.
4034 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4035 set X $ac_compile
4036 ac_compiler=$2
4037 for ac_option in --version -v -V -qversion -version; do
4038 { { ac_try="$ac_compiler $ac_option >&5"
4039 case "(($ac_try" in
4040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4041 *) ac_try_echo=$ac_try;;
4042 esac
4043 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4044 printf "%s\n" "$ac_try_echo"; } >&5
4045 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4046 ac_status=$?
4047 if test -s conftest.err; then
4048 sed '10a\
4049 ... rest of stderr output deleted ...
4050 10q' conftest.err >conftest.er1
4051 cat conftest.er1 >&5
4052 fi
4053 rm -f conftest.er1 conftest.err
4054 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4055 test $ac_status = 0; }
4056 done
4057
4058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4059 /* end confdefs.h. */
4060
4061 int
4062 main (void)
4063 {
4064
4065 ;
4066 return 0;
4067 }
4068 _ACEOF
4069 ac_clean_files_save=$ac_clean_files
4070 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4071 # Try to create an executable without -o first, disregard a.out.
4072 # It will help us diagnose broken compilers, and finding out an intuition
4073 # of exeext.
4074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4075 printf %s "checking whether the C compiler works... " >&6; }
4076 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4077
4078 # The possible output files:
4079 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4080
4081 ac_rmfiles=
4082 for ac_file in $ac_files
4083 do
4084 case $ac_file in
4085 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4086 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4087 esac
4088 done
4089 rm -f $ac_rmfiles
4090
4091 if { { ac_try="$ac_link_default"
4092 case "(($ac_try" in
4093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094 *) ac_try_echo=$ac_try;;
4095 esac
4096 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4097 printf "%s\n" "$ac_try_echo"; } >&5
4098 (eval "$ac_link_default") 2>&5
4099 ac_status=$?
4100 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4101 test $ac_status = 0; }
4102 then :
4103 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4104 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4105 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4106 # so that the user can short-circuit this test for compilers unknown to
4107 # Autoconf.
4108 for ac_file in $ac_files ''
4109 do
4110 test -f "$ac_file" || continue
4111 case $ac_file in
4112 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4113 ;;
4114 [ab].out )
4115 # We found the default executable, but exeext='' is most
4116 # certainly right.
4117 break;;
4118 *.* )
4119 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4120 then :; else
4121 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4122 fi
4123 # We set ac_cv_exeext here because the later test for it is not
4124 # safe: cross compilers may not add the suffix if given an `-o'
4125 # argument, so we may need to know it at that point already.
4126 # Even if this section looks crufty: it has the advantage of
4127 # actually working.
4128 break;;
4129 * )
4130 break;;
4131 esac
4132 done
4133 test "$ac_cv_exeext" = no && ac_cv_exeext=
4134
4135 else $as_nop
4136 ac_file=''
4137 fi
4138 if test -z "$ac_file"
4139 then :
4140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4141 printf "%s\n" "no" >&6; }
4142 printf "%s\n" "$as_me: failed program was:" >&5
4143 sed 's/^/| /' conftest.$ac_ext >&5
4144
4145 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4146 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4147 as_fn_error 77 "C compiler cannot create executables
4148 See \`config.log' for more details" "$LINENO" 5; }
4149 else $as_nop
4150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4151 printf "%s\n" "yes" >&6; }
4152 fi
4153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4154 printf %s "checking for C compiler default output file name... " >&6; }
4155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4156 printf "%s\n" "$ac_file" >&6; }
4157 ac_exeext=$ac_cv_exeext
4158
4159 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4160 ac_clean_files=$ac_clean_files_save
4161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4162 printf %s "checking for suffix of executables... " >&6; }
4163 if { { ac_try="$ac_link"
4164 case "(($ac_try" in
4165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4166 *) ac_try_echo=$ac_try;;
4167 esac
4168 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4169 printf "%s\n" "$ac_try_echo"; } >&5
4170 (eval "$ac_link") 2>&5
4171 ac_status=$?
4172 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4173 test $ac_status = 0; }
4174 then :
4175 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4176 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4177 # work properly (i.e., refer to `conftest.exe'), while it won't with
4178 # `rm'.
4179 for ac_file in conftest.exe conftest conftest.*; do
4180 test -f "$ac_file" || continue
4181 case $ac_file in
4182 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4183 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4184 break;;
4185 * ) break;;
4186 esac
4187 done
4188 else $as_nop
4189 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4190 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4191 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4192 See \`config.log' for more details" "$LINENO" 5; }
4193 fi
4194 rm -f conftest conftest$ac_cv_exeext
4195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4196 printf "%s\n" "$ac_cv_exeext" >&6; }
4197
4198 rm -f conftest.$ac_ext
4199 EXEEXT=$ac_cv_exeext
4200 ac_exeext=$EXEEXT
4201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4202 /* end confdefs.h. */
4203 #include <stdio.h>
4204 int
4205 main (void)
4206 {
4207 FILE *f = fopen ("conftest.out", "w");
4208 return ferror (f) || fclose (f) != 0;
4209
4210 ;
4211 return 0;
4212 }
4213 _ACEOF
4214 ac_clean_files="$ac_clean_files conftest.out"
4215 # Check that the compiler produces executables we can run. If not, either
4216 # the compiler is broken, or we cross compile.
4217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4218 printf %s "checking whether we are cross compiling... " >&6; }
4219 if test "$cross_compiling" != yes; then
4220 { { ac_try="$ac_link"
4221 case "(($ac_try" in
4222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4223 *) ac_try_echo=$ac_try;;
4224 esac
4225 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4226 printf "%s\n" "$ac_try_echo"; } >&5
4227 (eval "$ac_link") 2>&5
4228 ac_status=$?
4229 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4230 test $ac_status = 0; }
4231 if { ac_try='./conftest$ac_cv_exeext'
4232 { { case "(($ac_try" in
4233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4234 *) ac_try_echo=$ac_try;;
4235 esac
4236 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4237 printf "%s\n" "$ac_try_echo"; } >&5
4238 (eval "$ac_try") 2>&5
4239 ac_status=$?
4240 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4241 test $ac_status = 0; }; }; then
4242 cross_compiling=no
4243 else
4244 if test "$cross_compiling" = maybe; then
4245 cross_compiling=yes
4246 else
4247 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4248 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4249 as_fn_error 77 "cannot run C compiled programs.
4250 If you meant to cross compile, use \`--host'.
4251 See \`config.log' for more details" "$LINENO" 5; }
4252 fi
4253 fi
4254 fi
4255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4256 printf "%s\n" "$cross_compiling" >&6; }
4257
4258 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4259 ac_clean_files=$ac_clean_files_save
4260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4261 printf %s "checking for suffix of object files... " >&6; }
4262 if test ${ac_cv_objext+y}
4263 then :
4264 printf %s "(cached) " >&6
4265 else $as_nop
4266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4267 /* end confdefs.h. */
4268
4269 int
4270 main (void)
4271 {
4272
4273 ;
4274 return 0;
4275 }
4276 _ACEOF
4277 rm -f conftest.o conftest.obj
4278 if { { ac_try="$ac_compile"
4279 case "(($ac_try" in
4280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281 *) ac_try_echo=$ac_try;;
4282 esac
4283 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4284 printf "%s\n" "$ac_try_echo"; } >&5
4285 (eval "$ac_compile") 2>&5
4286 ac_status=$?
4287 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4288 test $ac_status = 0; }
4289 then :
4290 for ac_file in conftest.o conftest.obj conftest.*; do
4291 test -f "$ac_file" || continue;
4292 case $ac_file in
4293 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4294 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4295 break;;
4296 esac
4297 done
4298 else $as_nop
4299 printf "%s\n" "$as_me: failed program was:" >&5
4300 sed 's/^/| /' conftest.$ac_ext >&5
4301
4302 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4303 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4304 as_fn_error $? "cannot compute suffix of object files: cannot compile
4305 See \`config.log' for more details" "$LINENO" 5; }
4306 fi
4307 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4308 fi
4309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4310 printf "%s\n" "$ac_cv_objext" >&6; }
4311 OBJEXT=$ac_cv_objext
4312 ac_objext=$OBJEXT
4313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4314 printf %s "checking whether the compiler supports GNU C... " >&6; }
4315 if test ${ac_cv_c_compiler_gnu+y}
4316 then :
4317 printf %s "(cached) " >&6
4318 else $as_nop
4319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4320 /* end confdefs.h. */
4321
4322 int
4323 main (void)
4324 {
4325 #ifndef __GNUC__
4326 choke me
4327 #endif
4328
4329 ;
4330 return 0;
4331 }
4332 _ACEOF
4333 if ac_fn_c_try_compile "$LINENO"
4334 then :
4335 ac_compiler_gnu=yes
4336 else $as_nop
4337 ac_compiler_gnu=no
4338 fi
4339 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4340 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4341
4342 fi
4343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4344 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4346
4347 if test $ac_compiler_gnu = yes; then
4348 GCC=yes
4349 else
4350 GCC=
4351 fi
4352 ac_test_CFLAGS=${CFLAGS+y}
4353 ac_save_CFLAGS=$CFLAGS
4354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4355 printf %s "checking whether $CC accepts -g... " >&6; }
4356 if test ${ac_cv_prog_cc_g+y}
4357 then :
4358 printf %s "(cached) " >&6
4359 else $as_nop
4360 ac_save_c_werror_flag=$ac_c_werror_flag
4361 ac_c_werror_flag=yes
4362 ac_cv_prog_cc_g=no
4363 CFLAGS="-g"
4364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4365 /* end confdefs.h. */
4366
4367 int
4368 main (void)
4369 {
4370
4371 ;
4372 return 0;
4373 }
4374 _ACEOF
4375 if ac_fn_c_try_compile "$LINENO"
4376 then :
4377 ac_cv_prog_cc_g=yes
4378 else $as_nop
4379 CFLAGS=""
4380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4381 /* end confdefs.h. */
4382
4383 int
4384 main (void)
4385 {
4386
4387 ;
4388 return 0;
4389 }
4390 _ACEOF
4391 if ac_fn_c_try_compile "$LINENO"
4392 then :
4393
4394 else $as_nop
4395 ac_c_werror_flag=$ac_save_c_werror_flag
4396 CFLAGS="-g"
4397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4398 /* end confdefs.h. */
4399
4400 int
4401 main (void)
4402 {
4403
4404 ;
4405 return 0;
4406 }
4407 _ACEOF
4408 if ac_fn_c_try_compile "$LINENO"
4409 then :
4410 ac_cv_prog_cc_g=yes
4411 fi
4412 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4413 fi
4414 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4415 fi
4416 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4417 ac_c_werror_flag=$ac_save_c_werror_flag
4418 fi
4419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4420 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4421 if test $ac_test_CFLAGS; then
4422 CFLAGS=$ac_save_CFLAGS
4423 elif test $ac_cv_prog_cc_g = yes; then
4424 if test "$GCC" = yes; then
4425 CFLAGS="-g -O2"
4426 else
4427 CFLAGS="-g"
4428 fi
4429 else
4430 if test "$GCC" = yes; then
4431 CFLAGS="-O2"
4432 else
4433 CFLAGS=
4434 fi
4435 fi
4436 ac_prog_cc_stdc=no
4437 if test x$ac_prog_cc_stdc = xno
4438 then :
4439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4440 printf %s "checking for $CC option to enable C11 features... " >&6; }
4441 if test ${ac_cv_prog_cc_c11+y}
4442 then :
4443 printf %s "(cached) " >&6
4444 else $as_nop
4445 ac_cv_prog_cc_c11=no
4446 ac_save_CC=$CC
4447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4448 /* end confdefs.h. */
4449 $ac_c_conftest_c11_program
4450 _ACEOF
4451 for ac_arg in '' -std=gnu11
4452 do
4453 CC="$ac_save_CC $ac_arg"
4454 if ac_fn_c_try_compile "$LINENO"
4455 then :
4456 ac_cv_prog_cc_c11=$ac_arg
4457 fi
4458 rm -f core conftest.err conftest.$ac_objext conftest.beam
4459 test "x$ac_cv_prog_cc_c11" != "xno" && break
4460 done
4461 rm -f conftest.$ac_ext
4462 CC=$ac_save_CC
4463 fi
4464
4465 if test "x$ac_cv_prog_cc_c11" = xno
4466 then :
4467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4468 printf "%s\n" "unsupported" >&6; }
4469 else $as_nop
4470 if test "x$ac_cv_prog_cc_c11" = x
4471 then :
4472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4473 printf "%s\n" "none needed" >&6; }
4474 else $as_nop
4475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4476 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4477 CC="$CC $ac_cv_prog_cc_c11"
4478 fi
4479 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4480 ac_prog_cc_stdc=c11
4481 fi
4482 fi
4483 if test x$ac_prog_cc_stdc = xno
4484 then :
4485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4486 printf %s "checking for $CC option to enable C99 features... " >&6; }
4487 if test ${ac_cv_prog_cc_c99+y}
4488 then :
4489 printf %s "(cached) " >&6
4490 else $as_nop
4491 ac_cv_prog_cc_c99=no
4492 ac_save_CC=$CC
4493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4494 /* end confdefs.h. */
4495 $ac_c_conftest_c99_program
4496 _ACEOF
4497 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4498 do
4499 CC="$ac_save_CC $ac_arg"
4500 if ac_fn_c_try_compile "$LINENO"
4501 then :
4502 ac_cv_prog_cc_c99=$ac_arg
4503 fi
4504 rm -f core conftest.err conftest.$ac_objext conftest.beam
4505 test "x$ac_cv_prog_cc_c99" != "xno" && break
4506 done
4507 rm -f conftest.$ac_ext
4508 CC=$ac_save_CC
4509 fi
4510
4511 if test "x$ac_cv_prog_cc_c99" = xno
4512 then :
4513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4514 printf "%s\n" "unsupported" >&6; }
4515 else $as_nop
4516 if test "x$ac_cv_prog_cc_c99" = x
4517 then :
4518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4519 printf "%s\n" "none needed" >&6; }
4520 else $as_nop
4521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4522 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4523 CC="$CC $ac_cv_prog_cc_c99"
4524 fi
4525 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4526 ac_prog_cc_stdc=c99
4527 fi
4528 fi
4529 if test x$ac_prog_cc_stdc = xno
4530 then :
4531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4532 printf %s "checking for $CC option to enable C89 features... " >&6; }
4533 if test ${ac_cv_prog_cc_c89+y}
4534 then :
4535 printf %s "(cached) " >&6
4536 else $as_nop
4537 ac_cv_prog_cc_c89=no
4538 ac_save_CC=$CC
4539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4540 /* end confdefs.h. */
4541 $ac_c_conftest_c89_program
4542 _ACEOF
4543 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4544 do
4545 CC="$ac_save_CC $ac_arg"
4546 if ac_fn_c_try_compile "$LINENO"
4547 then :
4548 ac_cv_prog_cc_c89=$ac_arg
4549 fi
4550 rm -f core conftest.err conftest.$ac_objext conftest.beam
4551 test "x$ac_cv_prog_cc_c89" != "xno" && break
4552 done
4553 rm -f conftest.$ac_ext
4554 CC=$ac_save_CC
4555 fi
4556
4557 if test "x$ac_cv_prog_cc_c89" = xno
4558 then :
4559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4560 printf "%s\n" "unsupported" >&6; }
4561 else $as_nop
4562 if test "x$ac_cv_prog_cc_c89" = x
4563 then :
4564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4565 printf "%s\n" "none needed" >&6; }
4566 else $as_nop
4567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4568 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4569 CC="$CC $ac_cv_prog_cc_c89"
4570 fi
4571 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4572 ac_prog_cc_stdc=c89
4573 fi
4574 fi
4575
4576 ac_ext=c
4577 ac_cpp='$CPP $CPPFLAGS'
4578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4581
4582
4583 ac_ext=c
4584 ac_cpp='$CPP $CPPFLAGS'
4585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4589 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4590 if test ${am_cv_prog_cc_c_o+y}
4591 then :
4592 printf %s "(cached) " >&6
4593 else $as_nop
4594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4595 /* end confdefs.h. */
4596
4597 int
4598 main (void)
4599 {
4600
4601 ;
4602 return 0;
4603 }
4604 _ACEOF
4605 # Make sure it works both with $CC and with simple cc.
4606 # Following AC_PROG_CC_C_O, we do the test twice because some
4607 # compilers refuse to overwrite an existing .o file with -o,
4608 # though they will create one.
4609 am_cv_prog_cc_c_o=yes
4610 for am_i in 1 2; do
4611 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4612 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4613 ac_status=$?
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); } \
4616 && test -f conftest2.$ac_objext; then
4617 : OK
4618 else
4619 am_cv_prog_cc_c_o=no
4620 break
4621 fi
4622 done
4623 rm -f core conftest*
4624 unset am_i
4625 fi
4626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4627 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4628 if test "$am_cv_prog_cc_c_o" != yes; then
4629 # Losing compiler, so override with the script.
4630 # FIXME: It is wrong to rewrite CC.
4631 # But if we don't then we get into trouble of one sort or another.
4632 # A longer-term fix would be to have automake use am__CC in this case,
4633 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4634 CC="$am_aux_dir/compile $CC"
4635 fi
4636 ac_ext=c
4637 ac_cpp='$CPP $CPPFLAGS'
4638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4641
4642
4643 depcc="$CC" am_compiler_list=
4644
4645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4646 printf %s "checking dependency style of $depcc... " >&6; }
4647 if test ${am_cv_CC_dependencies_compiler_type+y}
4648 then :
4649 printf %s "(cached) " >&6
4650 else $as_nop
4651 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4652 # We make a subdir and do the tests there. Otherwise we can end up
4653 # making bogus files that we don't know about and never remove. For
4654 # instance it was reported that on HP-UX the gcc test will end up
4655 # making a dummy file named 'D' -- because '-MD' means "put the output
4656 # in D".
4657 rm -rf conftest.dir
4658 mkdir conftest.dir
4659 # Copy depcomp to subdir because otherwise we won't find it if we're
4660 # using a relative directory.
4661 cp "$am_depcomp" conftest.dir
4662 cd conftest.dir
4663 # We will build objects and dependencies in a subdirectory because
4664 # it helps to detect inapplicable dependency modes. For instance
4665 # both Tru64's cc and ICC support -MD to output dependencies as a
4666 # side effect of compilation, but ICC will put the dependencies in
4667 # the current directory while Tru64 will put them in the object
4668 # directory.
4669 mkdir sub
4670
4671 am_cv_CC_dependencies_compiler_type=none
4672 if test "$am_compiler_list" = ""; then
4673 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4674 fi
4675 am__universal=false
4676 case " $depcc " in #(
4677 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4678 esac
4679
4680 for depmode in $am_compiler_list; do
4681 # Setup a source with many dependencies, because some compilers
4682 # like to wrap large dependency lists on column 80 (with \), and
4683 # we should not choose a depcomp mode which is confused by this.
4684 #
4685 # We need to recreate these files for each test, as the compiler may
4686 # overwrite some of them when testing with obscure command lines.
4687 # This happens at least with the AIX C compiler.
4688 : > sub/conftest.c
4689 for i in 1 2 3 4 5 6; do
4690 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4691 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4692 # Solaris 10 /bin/sh.
4693 echo '/* dummy */' > sub/conftst$i.h
4694 done
4695 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4696
4697 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4698 # mode. It turns out that the SunPro C++ compiler does not properly
4699 # handle '-M -o', and we need to detect this. Also, some Intel
4700 # versions had trouble with output in subdirs.
4701 am__obj=sub/conftest.${OBJEXT-o}
4702 am__minus_obj="-o $am__obj"
4703 case $depmode in
4704 gcc)
4705 # This depmode causes a compiler race in universal mode.
4706 test "$am__universal" = false || continue
4707 ;;
4708 nosideeffect)
4709 # After this tag, mechanisms are not by side-effect, so they'll
4710 # only be used when explicitly requested.
4711 if test "x$enable_dependency_tracking" = xyes; then
4712 continue
4713 else
4714 break
4715 fi
4716 ;;
4717 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4718 # This compiler won't grok '-c -o', but also, the minuso test has
4719 # not run yet. These depmodes are late enough in the game, and
4720 # so weak that their functioning should not be impacted.
4721 am__obj=conftest.${OBJEXT-o}
4722 am__minus_obj=
4723 ;;
4724 none) break ;;
4725 esac
4726 if depmode=$depmode \
4727 source=sub/conftest.c object=$am__obj \
4728 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4729 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4730 >/dev/null 2>conftest.err &&
4731 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4732 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4733 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4734 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4735 # icc doesn't choke on unknown options, it will just issue warnings
4736 # or remarks (even with -Werror). So we grep stderr for any message
4737 # that says an option was ignored or not supported.
4738 # When given -MP, icc 7.0 and 7.1 complain thusly:
4739 # icc: Command line warning: ignoring option '-M'; no argument required
4740 # The diagnosis changed in icc 8.0:
4741 # icc: Command line remark: option '-MP' not supported
4742 if (grep 'ignoring option' conftest.err ||
4743 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4744 am_cv_CC_dependencies_compiler_type=$depmode
4745 break
4746 fi
4747 fi
4748 done
4749
4750 cd ..
4751 rm -rf conftest.dir
4752 else
4753 am_cv_CC_dependencies_compiler_type=none
4754 fi
4755
4756 fi
4757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4758 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4759 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4760
4761 if
4762 test "x$enable_dependency_tracking" != xno \
4763 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4764 am__fastdepCC_TRUE=
4765 am__fastdepCC_FALSE='#'
4766 else
4767 am__fastdepCC_TRUE='#'
4768 am__fastdepCC_FALSE=
4769 fi
4770
4771
4772
4773 ac_header= ac_cache=
4774 for ac_item in $ac_header_c_list
4775 do
4776 if test $ac_cache; then
4777 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4778 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4779 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4780 fi
4781 ac_header= ac_cache=
4782 elif test $ac_header; then
4783 ac_cache=$ac_item
4784 else
4785 ac_header=$ac_item
4786 fi
4787 done
4788
4789
4790
4791
4792
4793
4794
4795
4796 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4797 then :
4798
4799 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4800
4801 fi
4802
4803
4804
4805
4806
4807
4808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4809 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4810 if test ${ac_cv_safe_to_define___extensions__+y}
4811 then :
4812 printf %s "(cached) " >&6
4813 else $as_nop
4814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4815 /* end confdefs.h. */
4816
4817 # define __EXTENSIONS__ 1
4818 $ac_includes_default
4819 int
4820 main (void)
4821 {
4822
4823 ;
4824 return 0;
4825 }
4826 _ACEOF
4827 if ac_fn_c_try_compile "$LINENO"
4828 then :
4829 ac_cv_safe_to_define___extensions__=yes
4830 else $as_nop
4831 ac_cv_safe_to_define___extensions__=no
4832 fi
4833 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4834 fi
4835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4836 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4837
4838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4839 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4840 if test ${ac_cv_should_define__xopen_source+y}
4841 then :
4842 printf %s "(cached) " >&6
4843 else $as_nop
4844 ac_cv_should_define__xopen_source=no
4845 if test $ac_cv_header_wchar_h = yes
4846 then :
4847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4848 /* end confdefs.h. */
4849
4850 #include <wchar.h>
4851 mbstate_t x;
4852 int
4853 main (void)
4854 {
4855
4856 ;
4857 return 0;
4858 }
4859 _ACEOF
4860 if ac_fn_c_try_compile "$LINENO"
4861 then :
4862
4863 else $as_nop
4864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4865 /* end confdefs.h. */
4866
4867 #define _XOPEN_SOURCE 500
4868 #include <wchar.h>
4869 mbstate_t x;
4870 int
4871 main (void)
4872 {
4873
4874 ;
4875 return 0;
4876 }
4877 _ACEOF
4878 if ac_fn_c_try_compile "$LINENO"
4879 then :
4880 ac_cv_should_define__xopen_source=yes
4881 fi
4882 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4883 fi
4884 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4885 fi
4886 fi
4887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4888 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4889
4890 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4891
4892 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4893
4894 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4895
4896 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4897
4898 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4899
4900 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4901
4902 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4903
4904 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4905
4906 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4907
4908 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4909
4910 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4911
4912 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4913
4914 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4915
4916 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4917
4918 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4919
4920 if test $ac_cv_header_minix_config_h = yes
4921 then :
4922 MINIX=yes
4923 printf "%s\n" "#define _MINIX 1" >>confdefs.h
4924
4925 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4926
4927 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4928
4929 else $as_nop
4930 MINIX=
4931 fi
4932 if test $ac_cv_safe_to_define___extensions__ = yes
4933 then :
4934 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4935
4936 fi
4937 if test $ac_cv_should_define__xopen_source = yes
4938 then :
4939 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4940
4941 fi
4942
4943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4944 printf %s "checking for a sed that does not truncate output... " >&6; }
4945 if test ${ac_cv_path_SED+y}
4946 then :
4947 printf %s "(cached) " >&6
4948 else $as_nop
4949 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4950 for ac_i in 1 2 3 4 5 6 7; do
4951 ac_script="$ac_script$as_nl$ac_script"
4952 done
4953 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4954 { ac_script=; unset ac_script;}
4955 if test -z "$SED"; then
4956 ac_path_SED_found=false
4957 # Loop through the user's path and test for each of PROGNAME-LIST
4958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959 for as_dir in $PATH
4960 do
4961 IFS=$as_save_IFS
4962 case $as_dir in #(((
4963 '') as_dir=./ ;;
4964 */) ;;
4965 *) as_dir=$as_dir/ ;;
4966 esac
4967 for ac_prog in sed gsed
4968 do
4969 for ac_exec_ext in '' $ac_executable_extensions; do
4970 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4971 as_fn_executable_p "$ac_path_SED" || continue
4972 # Check for GNU ac_path_SED and select it if it is found.
4973 # Check for GNU $ac_path_SED
4974 case `"$ac_path_SED" --version 2>&1` in
4975 *GNU*)
4976 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4977 *)
4978 ac_count=0
4979 printf %s 0123456789 >"conftest.in"
4980 while :
4981 do
4982 cat "conftest.in" "conftest.in" >"conftest.tmp"
4983 mv "conftest.tmp" "conftest.in"
4984 cp "conftest.in" "conftest.nl"
4985 printf "%s\n" '' >> "conftest.nl"
4986 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4987 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4988 as_fn_arith $ac_count + 1 && ac_count=$as_val
4989 if test $ac_count -gt ${ac_path_SED_max-0}; then
4990 # Best one so far, save it but keep looking for a better one
4991 ac_cv_path_SED="$ac_path_SED"
4992 ac_path_SED_max=$ac_count
4993 fi
4994 # 10*(2^10) chars as input seems more than enough
4995 test $ac_count -gt 10 && break
4996 done
4997 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4998 esac
4999
5000 $ac_path_SED_found && break 3
5001 done
5002 done
5003 done
5004 IFS=$as_save_IFS
5005 if test -z "$ac_cv_path_SED"; then
5006 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5007 fi
5008 else
5009 ac_cv_path_SED=$SED
5010 fi
5011
5012 fi
5013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5014 printf "%s\n" "$ac_cv_path_SED" >&6; }
5015 SED="$ac_cv_path_SED"
5016 rm -f conftest.sed
5017
5018
5019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5020 printf %s "checking whether NLS is requested... " >&6; }
5021 # Check whether --enable-nls was given.
5022 if test ${enable_nls+y}
5023 then :
5024 enableval=$enable_nls; USE_NLS=$enableval
5025 else $as_nop
5026 USE_NLS=yes
5027 fi
5028
5029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5030 printf "%s\n" "$USE_NLS" >&6; }
5031
5032
5033
5034
5035 GETTEXT_MACRO_VERSION=0.20
5036
5037
5038
5039
5040 # Prepare PATH_SEPARATOR.
5041 # The user is always right.
5042 if test "${PATH_SEPARATOR+set}" != set; then
5043 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5044 # contains only /bin. Note that ksh looks also at the FPATH variable,
5045 # so we have to set that as well for the test.
5046 PATH_SEPARATOR=:
5047 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5048 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5049 || PATH_SEPARATOR=';'
5050 }
5051 fi
5052
5053 # Find out how to test for executable files. Don't use a zero-byte file,
5054 # as systems may use methods other than mode bits to determine executability.
5055 cat >conf$$.file <<_ASEOF
5056 #! /bin/sh
5057 exit 0
5058 _ASEOF
5059 chmod +x conf$$.file
5060 if test -x conf$$.file >/dev/null 2>&1; then
5061 ac_executable_p="test -x"
5062 else
5063 ac_executable_p="test -f"
5064 fi
5065 rm -f conf$$.file
5066
5067 # Extract the first word of "msgfmt", so it can be a program name with args.
5068 set dummy msgfmt; ac_word=$2
5069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5070 printf %s "checking for $ac_word... " >&6; }
5071 if test ${ac_cv_path_MSGFMT+y}
5072 then :
5073 printf %s "(cached) " >&6
5074 else $as_nop
5075 case "$MSGFMT" in
5076 [\\/]* | ?:[\\/]*)
5077 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5078 ;;
5079 *)
5080 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5081 for ac_dir in $PATH; do
5082 IFS="$ac_save_IFS"
5083 test -z "$ac_dir" && ac_dir=.
5084 for ac_exec_ext in '' $ac_executable_extensions; do
5085 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5086 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5087 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5088 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5089 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5090 break 2
5091 fi
5092 fi
5093 done
5094 done
5095 IFS="$ac_save_IFS"
5096 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5097 ;;
5098 esac
5099 fi
5100 MSGFMT="$ac_cv_path_MSGFMT"
5101 if test "$MSGFMT" != ":"; then
5102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5103 printf "%s\n" "$MSGFMT" >&6; }
5104 else
5105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5106 printf "%s\n" "no" >&6; }
5107 fi
5108
5109 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5110 set dummy gmsgfmt; ac_word=$2
5111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5112 printf %s "checking for $ac_word... " >&6; }
5113 if test ${ac_cv_path_GMSGFMT+y}
5114 then :
5115 printf %s "(cached) " >&6
5116 else $as_nop
5117 case $GMSGFMT in
5118 [\\/]* | ?:[\\/]*)
5119 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5120 ;;
5121 *)
5122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5123 for as_dir in $PATH
5124 do
5125 IFS=$as_save_IFS
5126 case $as_dir in #(((
5127 '') as_dir=./ ;;
5128 */) ;;
5129 *) as_dir=$as_dir/ ;;
5130 esac
5131 for ac_exec_ext in '' $ac_executable_extensions; do
5132 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5133 ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
5134 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5135 break 2
5136 fi
5137 done
5138 done
5139 IFS=$as_save_IFS
5140
5141 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5142 ;;
5143 esac
5144 fi
5145 GMSGFMT=$ac_cv_path_GMSGFMT
5146 if test -n "$GMSGFMT"; then
5147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5148 printf "%s\n" "$GMSGFMT" >&6; }
5149 else
5150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5151 printf "%s\n" "no" >&6; }
5152 fi
5153
5154
5155
5156 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5157 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
5158 *) GMSGFMT_015=$GMSGFMT ;;
5159 esac
5160
5161
5162
5163 # Prepare PATH_SEPARATOR.
5164 # The user is always right.
5165 if test "${PATH_SEPARATOR+set}" != set; then
5166 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5167 # contains only /bin. Note that ksh looks also at the FPATH variable,
5168 # so we have to set that as well for the test.
5169 PATH_SEPARATOR=:
5170 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5171 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5172 || PATH_SEPARATOR=';'
5173 }
5174 fi
5175
5176 # Find out how to test for executable files. Don't use a zero-byte file,
5177 # as systems may use methods other than mode bits to determine executability.
5178 cat >conf$$.file <<_ASEOF
5179 #! /bin/sh
5180 exit 0
5181 _ASEOF
5182 chmod +x conf$$.file
5183 if test -x conf$$.file >/dev/null 2>&1; then
5184 ac_executable_p="test -x"
5185 else
5186 ac_executable_p="test -f"
5187 fi
5188 rm -f conf$$.file
5189
5190 # Extract the first word of "xgettext", so it can be a program name with args.
5191 set dummy xgettext; ac_word=$2
5192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5193 printf %s "checking for $ac_word... " >&6; }
5194 if test ${ac_cv_path_XGETTEXT+y}
5195 then :
5196 printf %s "(cached) " >&6
5197 else $as_nop
5198 case "$XGETTEXT" in
5199 [\\/]* | ?:[\\/]*)
5200 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5201 ;;
5202 *)
5203 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5204 for ac_dir in $PATH; do
5205 IFS="$ac_save_IFS"
5206 test -z "$ac_dir" && ac_dir=.
5207 for ac_exec_ext in '' $ac_executable_extensions; do
5208 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5209 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5210 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5211 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5212 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5213 break 2
5214 fi
5215 fi
5216 done
5217 done
5218 IFS="$ac_save_IFS"
5219 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5220 ;;
5221 esac
5222 fi
5223 XGETTEXT="$ac_cv_path_XGETTEXT"
5224 if test "$XGETTEXT" != ":"; then
5225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5226 printf "%s\n" "$XGETTEXT" >&6; }
5227 else
5228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5229 printf "%s\n" "no" >&6; }
5230 fi
5231
5232 rm -f messages.po
5233
5234 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5235 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
5236 *) XGETTEXT_015=$XGETTEXT ;;
5237 esac
5238
5239
5240
5241 # Prepare PATH_SEPARATOR.
5242 # The user is always right.
5243 if test "${PATH_SEPARATOR+set}" != set; then
5244 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5245 # contains only /bin. Note that ksh looks also at the FPATH variable,
5246 # so we have to set that as well for the test.
5247 PATH_SEPARATOR=:
5248 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5249 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5250 || PATH_SEPARATOR=';'
5251 }
5252 fi
5253
5254 # Find out how to test for executable files. Don't use a zero-byte file,
5255 # as systems may use methods other than mode bits to determine executability.
5256 cat >conf$$.file <<_ASEOF
5257 #! /bin/sh
5258 exit 0
5259 _ASEOF
5260 chmod +x conf$$.file
5261 if test -x conf$$.file >/dev/null 2>&1; then
5262 ac_executable_p="test -x"
5263 else
5264 ac_executable_p="test -f"
5265 fi
5266 rm -f conf$$.file
5267
5268 # Extract the first word of "msgmerge", so it can be a program name with args.
5269 set dummy msgmerge; ac_word=$2
5270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5271 printf %s "checking for $ac_word... " >&6; }
5272 if test ${ac_cv_path_MSGMERGE+y}
5273 then :
5274 printf %s "(cached) " >&6
5275 else $as_nop
5276 case "$MSGMERGE" in
5277 [\\/]* | ?:[\\/]*)
5278 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5279 ;;
5280 *)
5281 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5282 for ac_dir in $PATH; do
5283 IFS="$ac_save_IFS"
5284 test -z "$ac_dir" && ac_dir=.
5285 for ac_exec_ext in '' $ac_executable_extensions; do
5286 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5287 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5288 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5289 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5290 break 2
5291 fi
5292 fi
5293 done
5294 done
5295 IFS="$ac_save_IFS"
5296 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5297 ;;
5298 esac
5299 fi
5300 MSGMERGE="$ac_cv_path_MSGMERGE"
5301 if test "$MSGMERGE" != ":"; then
5302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5303 printf "%s\n" "$MSGMERGE" >&6; }
5304 else
5305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5306 printf "%s\n" "no" >&6; }
5307 fi
5308
5309
5310 if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then
5311 MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt'
5312 else
5313 if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then
5314 MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet'
5315 else
5316 MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet'
5317 fi
5318 fi
5319
5320
5321 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
5322
5323
5324 ac_config_commands="$ac_config_commands po-directories"
5325
5326
5327
5328 if test "X$prefix" = "XNONE"; then
5329 acl_final_prefix="$ac_default_prefix"
5330 else
5331 acl_final_prefix="$prefix"
5332 fi
5333 if test "X$exec_prefix" = "XNONE"; then
5334 acl_final_exec_prefix='${prefix}'
5335 else
5336 acl_final_exec_prefix="$exec_prefix"
5337 fi
5338 acl_save_prefix="$prefix"
5339 prefix="$acl_final_prefix"
5340 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5341 prefix="$acl_save_prefix"
5342
5343
5344
5345 # Make sure we can run config.sub.
5346 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5347 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5348
5349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5350 printf %s "checking build system type... " >&6; }
5351 if test ${ac_cv_build+y}
5352 then :
5353 printf %s "(cached) " >&6
5354 else $as_nop
5355 ac_build_alias=$build_alias
5356 test "x$ac_build_alias" = x &&
5357 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5358 test "x$ac_build_alias" = x &&
5359 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5360 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5361 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5362
5363 fi
5364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5365 printf "%s\n" "$ac_cv_build" >&6; }
5366 case $ac_cv_build in
5367 *-*-*) ;;
5368 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5369 esac
5370 build=$ac_cv_build
5371 ac_save_IFS=$IFS; IFS='-'
5372 set x $ac_cv_build
5373 shift
5374 build_cpu=$1
5375 build_vendor=$2
5376 shift; shift
5377 # Remember, the first character of IFS is used to create $*,
5378 # except with old shells:
5379 build_os=$*
5380 IFS=$ac_save_IFS
5381 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5382
5383
5384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5385 printf %s "checking host system type... " >&6; }
5386 if test ${ac_cv_host+y}
5387 then :
5388 printf %s "(cached) " >&6
5389 else $as_nop
5390 if test "x$host_alias" = x; then
5391 ac_cv_host=$ac_cv_build
5392 else
5393 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5394 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5395 fi
5396
5397 fi
5398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5399 printf "%s\n" "$ac_cv_host" >&6; }
5400 case $ac_cv_host in
5401 *-*-*) ;;
5402 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5403 esac
5404 host=$ac_cv_host
5405 ac_save_IFS=$IFS; IFS='-'
5406 set x $ac_cv_host
5407 shift
5408 host_cpu=$1
5409 host_vendor=$2
5410 shift; shift
5411 # Remember, the first character of IFS is used to create $*,
5412 # except with old shells:
5413 host_os=$*
5414 IFS=$ac_save_IFS
5415 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5416
5417
5418
5419
5420 # Check whether --with-gnu-ld was given.
5421 if test ${with_gnu_ld+y}
5422 then :
5423 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5424 else $as_nop
5425 with_gnu_ld=no
5426 fi
5427
5428 # Prepare PATH_SEPARATOR.
5429 # The user is always right.
5430 if test "${PATH_SEPARATOR+set}" != set; then
5431 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5432 # contains only /bin. Note that ksh looks also at the FPATH variable,
5433 # so we have to set that as well for the test.
5434 PATH_SEPARATOR=:
5435 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5436 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5437 || PATH_SEPARATOR=';'
5438 }
5439 fi
5440
5441 if test -n "$LD"; then
5442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
5443 printf %s "checking for ld... " >&6; }
5444 elif test "$GCC" = yes; then
5445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5446 printf %s "checking for ld used by $CC... " >&6; }
5447 elif test "$with_gnu_ld" = yes; then
5448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5449 printf %s "checking for GNU ld... " >&6; }
5450 else
5451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5452 printf %s "checking for non-GNU ld... " >&6; }
5453 fi
5454 if test -n "$LD"; then
5455 # Let the user override the test with a path.
5456 :
5457 else
5458 if test ${acl_cv_path_LD+y}
5459 then :
5460 printf %s "(cached) " >&6
5461 else $as_nop
5462
5463 acl_cv_path_LD= # Final result of this test
5464 ac_prog=ld # Program to search in $PATH
5465 if test "$GCC" = yes; then
5466 # Check if gcc -print-prog-name=ld gives a path.
5467 case $host in
5468 *-*-mingw*)
5469 # gcc leaves a trailing carriage return which upsets mingw
5470 acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5471 *)
5472 acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
5473 esac
5474 case $acl_output in
5475 # Accept absolute paths.
5476 [\\/]* | ?:[\\/]*)
5477 re_direlt='/[^/][^/]*/\.\./'
5478 # Canonicalize the pathname of ld
5479 acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
5480 while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
5481 acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
5482 done
5483 # Got the pathname. No search in PATH is needed.
5484 acl_cv_path_LD="$acl_output"
5485 ac_prog=
5486 ;;
5487 "")
5488 # If it fails, then pretend we aren't using GCC.
5489 ;;
5490 *)
5491 # If it is relative, then search for the first ld in PATH.
5492 with_gnu_ld=unknown
5493 ;;
5494 esac
5495 fi
5496 if test -n "$ac_prog"; then
5497 # Search for $ac_prog in $PATH.
5498 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5499 for ac_dir in $PATH; do
5500 IFS="$acl_save_ifs"
5501 test -z "$ac_dir" && ac_dir=.
5502 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5503 acl_cv_path_LD="$ac_dir/$ac_prog"
5504 # Check to see if the program is GNU ld. I'd rather use --version,
5505 # but apparently some variants of GNU ld only accept -v.
5506 # Break only if it was the GNU/non-GNU ld that we prefer.
5507 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
5508 *GNU* | *'with BFD'*)
5509 test "$with_gnu_ld" != no && break
5510 ;;
5511 *)
5512 test "$with_gnu_ld" != yes && break
5513 ;;
5514 esac
5515 fi
5516 done
5517 IFS="$acl_save_ifs"
5518 fi
5519 case $host in
5520 *-*-aix*)
5521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5522 /* end confdefs.h. */
5523 #if defined __powerpc64__ || defined _ARCH_PPC64
5524 int ok;
5525 #else
5526 error fail
5527 #endif
5528
5529 _ACEOF
5530 if ac_fn_c_try_compile "$LINENO"
5531 then :
5532 # The compiler produces 64-bit code. Add option '-b64' so that the
5533 # linker groks 64-bit object files.
5534 case "$acl_cv_path_LD " in
5535 *" -b64 "*) ;;
5536 *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
5537 esac
5538
5539 fi
5540 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5541 ;;
5542 sparc64-*-netbsd*)
5543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5544 /* end confdefs.h. */
5545 #if defined __sparcv9 || defined __arch64__
5546 int ok;
5547 #else
5548 error fail
5549 #endif
5550
5551 _ACEOF
5552 if ac_fn_c_try_compile "$LINENO"
5553 then :
5554
5555 else $as_nop
5556 # The compiler produces 32-bit code. Add option '-m elf32_sparc'
5557 # so that the linker groks 32-bit object files.
5558 case "$acl_cv_path_LD " in
5559 *" -m elf32_sparc "*) ;;
5560 *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
5561 esac
5562
5563 fi
5564 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5565 ;;
5566 esac
5567
5568 fi
5569
5570 LD="$acl_cv_path_LD"
5571 fi
5572 if test -n "$LD"; then
5573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5574 printf "%s\n" "$LD" >&6; }
5575 else
5576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5577 printf "%s\n" "no" >&6; }
5578 as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5579 fi
5580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5581 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5582 if test ${acl_cv_prog_gnu_ld+y}
5583 then :
5584 printf %s "(cached) " >&6
5585 else $as_nop
5586 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5587 case `$LD -v 2>&1 </dev/null` in
5588 *GNU* | *'with BFD'*)
5589 acl_cv_prog_gnu_ld=yes
5590 ;;
5591 *)
5592 acl_cv_prog_gnu_ld=no
5593 ;;
5594 esac
5595 fi
5596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5597 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
5598 with_gnu_ld=$acl_cv_prog_gnu_ld
5599
5600
5601
5602
5603
5604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5605 printf %s "checking for shared library run path origin... " >&6; }
5606 if test ${acl_cv_rpath+y}
5607 then :
5608 printf %s "(cached) " >&6
5609 else $as_nop
5610
5611 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5612 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5613 . ./conftest.sh
5614 rm -f ./conftest.sh
5615 acl_cv_rpath=done
5616
5617 fi
5618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5619 printf "%s\n" "$acl_cv_rpath" >&6; }
5620 wl="$acl_cv_wl"
5621 acl_libext="$acl_cv_libext"
5622 acl_shlibext="$acl_cv_shlibext"
5623 acl_libname_spec="$acl_cv_libname_spec"
5624 acl_library_names_spec="$acl_cv_library_names_spec"
5625 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5626 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5627 acl_hardcode_direct="$acl_cv_hardcode_direct"
5628 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5629 # Check whether --enable-rpath was given.
5630 if test ${enable_rpath+y}
5631 then :
5632 enableval=$enable_rpath; :
5633 else $as_nop
5634 enable_rpath=yes
5635 fi
5636
5637
5638
5639
5640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
5641 printf %s "checking 32-bit host C ABI... " >&6; }
5642 if test ${gl_cv_host_cpu_c_abi_32bit+y}
5643 then :
5644 printf %s "(cached) " >&6
5645 else $as_nop
5646 if test -n "$gl_cv_host_cpu_c_abi"; then
5647 case "$gl_cv_host_cpu_c_abi" in
5648 i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
5649 gl_cv_host_cpu_c_abi_32bit=yes ;;
5650 x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
5651 gl_cv_host_cpu_c_abi_32bit=no ;;
5652 *)
5653 gl_cv_host_cpu_c_abi_32bit=unknown ;;
5654 esac
5655 else
5656 case "$host_cpu" in
5657
5658 # CPUs that only support a 32-bit ABI.
5659 arc \
5660 | bfin \
5661 | cris* \
5662 | csky \
5663 | epiphany \
5664 | ft32 \
5665 | h8300 \
5666 | m68k \
5667 | microblaze | microblazeel \
5668 | nds32 | nds32le | nds32be \
5669 | nios2 | nios2eb | nios2el \
5670 | or1k* \
5671 | or32 \
5672 | sh | sh1234 | sh1234elb \
5673 | tic6x \
5674 | xtensa* )
5675 gl_cv_host_cpu_c_abi_32bit=yes
5676 ;;
5677
5678 # CPUs that only support a 64-bit ABI.
5679 alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
5680 | mmix )
5681 gl_cv_host_cpu_c_abi_32bit=no
5682 ;;
5683
5684 i[34567]86 )
5685 gl_cv_host_cpu_c_abi_32bit=yes
5686 ;;
5687
5688 x86_64 )
5689 # On x86_64 systems, the C compiler may be generating code in one of
5690 # these ABIs:
5691 # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
5692 # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
5693 # with native Windows (mingw, MSVC).
5694 # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
5695 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
5696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5697 /* end confdefs.h. */
5698 #if (defined __x86_64__ || defined __amd64__ \
5699 || defined _M_X64 || defined _M_AMD64) \
5700 && !(defined __ILP32__ || defined _ILP32)
5701 int ok;
5702 #else
5703 error fail
5704 #endif
5705
5706 _ACEOF
5707 if ac_fn_c_try_compile "$LINENO"
5708 then :
5709 gl_cv_host_cpu_c_abi_32bit=no
5710 else $as_nop
5711 gl_cv_host_cpu_c_abi_32bit=yes
5712 fi
5713 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5714 ;;
5715
5716 arm* | aarch64 )
5717 # Assume arm with EABI.
5718 # On arm64 systems, the C compiler may be generating code in one of
5719 # these ABIs:
5720 # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
5721 # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
5722 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
5723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5724 /* end confdefs.h. */
5725 #if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
5726 int ok;
5727 #else
5728 error fail
5729 #endif
5730
5731 _ACEOF
5732 if ac_fn_c_try_compile "$LINENO"
5733 then :
5734 gl_cv_host_cpu_c_abi_32bit=no
5735 else $as_nop
5736 gl_cv_host_cpu_c_abi_32bit=yes
5737 fi
5738 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5739 ;;
5740
5741 hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
5742 # On hppa, the C compiler may be generating 32-bit code or 64-bit
5743 # code. In the latter case, it defines _LP64 and __LP64__.
5744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5745 /* end confdefs.h. */
5746 #ifdef __LP64__
5747 int ok;
5748 #else
5749 error fail
5750 #endif
5751
5752 _ACEOF
5753 if ac_fn_c_try_compile "$LINENO"
5754 then :
5755 gl_cv_host_cpu_c_abi_32bit=no
5756 else $as_nop
5757 gl_cv_host_cpu_c_abi_32bit=yes
5758 fi
5759 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5760 ;;
5761
5762 ia64* )
5763 # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
5764 # 32-bit code. In the latter case, it defines _ILP32.
5765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5766 /* end confdefs.h. */
5767 #ifdef _ILP32
5768 int ok;
5769 #else
5770 error fail
5771 #endif
5772
5773 _ACEOF
5774 if ac_fn_c_try_compile "$LINENO"
5775 then :
5776 gl_cv_host_cpu_c_abi_32bit=yes
5777 else $as_nop
5778 gl_cv_host_cpu_c_abi_32bit=no
5779 fi
5780 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5781 ;;
5782
5783 mips* )
5784 # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
5785 # at 32.
5786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5787 /* end confdefs.h. */
5788 #if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
5789 int ok;
5790 #else
5791 error fail
5792 #endif
5793
5794 _ACEOF
5795 if ac_fn_c_try_compile "$LINENO"
5796 then :
5797 gl_cv_host_cpu_c_abi_32bit=no
5798 else $as_nop
5799 gl_cv_host_cpu_c_abi_32bit=yes
5800 fi
5801 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5802 ;;
5803
5804 powerpc* )
5805 # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
5806 # No need to distinguish them here; the caller may distinguish
5807 # them based on the OS.
5808 # On powerpc64 systems, the C compiler may still be generating
5809 # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
5810 # be generating 64-bit code.
5811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5812 /* end confdefs.h. */
5813 #if defined __powerpc64__ || defined _ARCH_PPC64
5814 int ok;
5815 #else
5816 error fail
5817 #endif
5818
5819 _ACEOF
5820 if ac_fn_c_try_compile "$LINENO"
5821 then :
5822 gl_cv_host_cpu_c_abi_32bit=no
5823 else $as_nop
5824 gl_cv_host_cpu_c_abi_32bit=yes
5825 fi
5826 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5827 ;;
5828
5829 rs6000 )
5830 gl_cv_host_cpu_c_abi_32bit=yes
5831 ;;
5832
5833 riscv32 | riscv64 )
5834 # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
5835 # Size of 'long' and 'void *':
5836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5837 /* end confdefs.h. */
5838 #if defined __LP64__
5839 int ok;
5840 #else
5841 error fail
5842 #endif
5843
5844 _ACEOF
5845 if ac_fn_c_try_compile "$LINENO"
5846 then :
5847 gl_cv_host_cpu_c_abi_32bit=no
5848 else $as_nop
5849 gl_cv_host_cpu_c_abi_32bit=yes
5850 fi
5851 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5852 ;;
5853
5854 s390* )
5855 # On s390x, the C compiler may be generating 64-bit (= s390x) code
5856 # or 31-bit (= s390) code.
5857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5858 /* end confdefs.h. */
5859 #if defined __LP64__ || defined __s390x__
5860 int ok;
5861 #else
5862 error fail
5863 #endif
5864
5865 _ACEOF
5866 if ac_fn_c_try_compile "$LINENO"
5867 then :
5868 gl_cv_host_cpu_c_abi_32bit=no
5869 else $as_nop
5870 gl_cv_host_cpu_c_abi_32bit=yes
5871 fi
5872 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5873 ;;
5874
5875 sparc | sparc64 )
5876 # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
5877 # C compiler still generates 32-bit code.
5878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5879 /* end confdefs.h. */
5880 #if defined __sparcv9 || defined __arch64__
5881 int ok;
5882 #else
5883 error fail
5884 #endif
5885
5886 _ACEOF
5887 if ac_fn_c_try_compile "$LINENO"
5888 then :
5889 gl_cv_host_cpu_c_abi_32bit=no
5890 else $as_nop
5891 gl_cv_host_cpu_c_abi_32bit=yes
5892 fi
5893 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5894 ;;
5895
5896 *)
5897 gl_cv_host_cpu_c_abi_32bit=unknown
5898 ;;
5899 esac
5900 fi
5901
5902 fi
5903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
5904 printf "%s\n" "$gl_cv_host_cpu_c_abi_32bit" >&6; }
5905
5906 HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
5907
5908 ac_ext=c
5909 ac_cpp='$CPP $CPPFLAGS'
5910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5914 printf %s "checking how to run the C preprocessor... " >&6; }
5915 # On Suns, sometimes $CPP names a directory.
5916 if test -n "$CPP" && test -d "$CPP"; then
5917 CPP=
5918 fi
5919 if test -z "$CPP"; then
5920 if test ${ac_cv_prog_CPP+y}
5921 then :
5922 printf %s "(cached) " >&6
5923 else $as_nop
5924 # Double quotes because $CC needs to be expanded
5925 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5926 do
5927 ac_preproc_ok=false
5928 for ac_c_preproc_warn_flag in '' yes
5929 do
5930 # Use a header file that comes with gcc, so configuring glibc
5931 # with a fresh cross-compiler works.
5932 # On the NeXT, cc -E runs the code through the compiler's parser,
5933 # not just through cpp. "Syntax error" is here to catch this case.
5934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5935 /* end confdefs.h. */
5936 #include <limits.h>
5937 Syntax error
5938 _ACEOF
5939 if ac_fn_c_try_cpp "$LINENO"
5940 then :
5941
5942 else $as_nop
5943 # Broken: fails on valid input.
5944 continue
5945 fi
5946 rm -f conftest.err conftest.i conftest.$ac_ext
5947
5948 # OK, works on sane cases. Now check whether nonexistent headers
5949 # can be detected and how.
5950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5951 /* end confdefs.h. */
5952 #include <ac_nonexistent.h>
5953 _ACEOF
5954 if ac_fn_c_try_cpp "$LINENO"
5955 then :
5956 # Broken: success on invalid input.
5957 continue
5958 else $as_nop
5959 # Passes both tests.
5960 ac_preproc_ok=:
5961 break
5962 fi
5963 rm -f conftest.err conftest.i conftest.$ac_ext
5964
5965 done
5966 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5967 rm -f conftest.i conftest.err conftest.$ac_ext
5968 if $ac_preproc_ok
5969 then :
5970 break
5971 fi
5972
5973 done
5974 ac_cv_prog_CPP=$CPP
5975
5976 fi
5977 CPP=$ac_cv_prog_CPP
5978 else
5979 ac_cv_prog_CPP=$CPP
5980 fi
5981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5982 printf "%s\n" "$CPP" >&6; }
5983 ac_preproc_ok=false
5984 for ac_c_preproc_warn_flag in '' yes
5985 do
5986 # Use a header file that comes with gcc, so configuring glibc
5987 # with a fresh cross-compiler works.
5988 # On the NeXT, cc -E runs the code through the compiler's parser,
5989 # not just through cpp. "Syntax error" is here to catch this case.
5990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5991 /* end confdefs.h. */
5992 #include <limits.h>
5993 Syntax error
5994 _ACEOF
5995 if ac_fn_c_try_cpp "$LINENO"
5996 then :
5997
5998 else $as_nop
5999 # Broken: fails on valid input.
6000 continue
6001 fi
6002 rm -f conftest.err conftest.i conftest.$ac_ext
6003
6004 # OK, works on sane cases. Now check whether nonexistent headers
6005 # can be detected and how.
6006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6007 /* end confdefs.h. */
6008 #include <ac_nonexistent.h>
6009 _ACEOF
6010 if ac_fn_c_try_cpp "$LINENO"
6011 then :
6012 # Broken: success on invalid input.
6013 continue
6014 else $as_nop
6015 # Passes both tests.
6016 ac_preproc_ok=:
6017 break
6018 fi
6019 rm -f conftest.err conftest.i conftest.$ac_ext
6020
6021 done
6022 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6023 rm -f conftest.i conftest.err conftest.$ac_ext
6024 if $ac_preproc_ok
6025 then :
6026
6027 else $as_nop
6028 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6029 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6030 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6031 See \`config.log' for more details" "$LINENO" 5; }
6032 fi
6033
6034 ac_ext=c
6035 ac_cpp='$CPP $CPPFLAGS'
6036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6039
6040
6041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6042 printf %s "checking for grep that handles long lines and -e... " >&6; }
6043 if test ${ac_cv_path_GREP+y}
6044 then :
6045 printf %s "(cached) " >&6
6046 else $as_nop
6047 if test -z "$GREP"; then
6048 ac_path_GREP_found=false
6049 # Loop through the user's path and test for each of PROGNAME-LIST
6050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6051 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6052 do
6053 IFS=$as_save_IFS
6054 case $as_dir in #(((
6055 '') as_dir=./ ;;
6056 */) ;;
6057 *) as_dir=$as_dir/ ;;
6058 esac
6059 for ac_prog in grep ggrep
6060 do
6061 for ac_exec_ext in '' $ac_executable_extensions; do
6062 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6063 as_fn_executable_p "$ac_path_GREP" || continue
6064 # Check for GNU ac_path_GREP and select it if it is found.
6065 # Check for GNU $ac_path_GREP
6066 case `"$ac_path_GREP" --version 2>&1` in
6067 *GNU*)
6068 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6069 *)
6070 ac_count=0
6071 printf %s 0123456789 >"conftest.in"
6072 while :
6073 do
6074 cat "conftest.in" "conftest.in" >"conftest.tmp"
6075 mv "conftest.tmp" "conftest.in"
6076 cp "conftest.in" "conftest.nl"
6077 printf "%s\n" 'GREP' >> "conftest.nl"
6078 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6079 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6080 as_fn_arith $ac_count + 1 && ac_count=$as_val
6081 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6082 # Best one so far, save it but keep looking for a better one
6083 ac_cv_path_GREP="$ac_path_GREP"
6084 ac_path_GREP_max=$ac_count
6085 fi
6086 # 10*(2^10) chars as input seems more than enough
6087 test $ac_count -gt 10 && break
6088 done
6089 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6090 esac
6091
6092 $ac_path_GREP_found && break 3
6093 done
6094 done
6095 done
6096 IFS=$as_save_IFS
6097 if test -z "$ac_cv_path_GREP"; then
6098 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6099 fi
6100 else
6101 ac_cv_path_GREP=$GREP
6102 fi
6103
6104 fi
6105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6106 printf "%s\n" "$ac_cv_path_GREP" >&6; }
6107 GREP="$ac_cv_path_GREP"
6108
6109
6110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6111 printf %s "checking for egrep... " >&6; }
6112 if test ${ac_cv_path_EGREP+y}
6113 then :
6114 printf %s "(cached) " >&6
6115 else $as_nop
6116 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6117 then ac_cv_path_EGREP="$GREP -E"
6118 else
6119 if test -z "$EGREP"; then
6120 ac_path_EGREP_found=false
6121 # Loop through the user's path and test for each of PROGNAME-LIST
6122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6123 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6124 do
6125 IFS=$as_save_IFS
6126 case $as_dir in #(((
6127 '') as_dir=./ ;;
6128 */) ;;
6129 *) as_dir=$as_dir/ ;;
6130 esac
6131 for ac_prog in egrep
6132 do
6133 for ac_exec_ext in '' $ac_executable_extensions; do
6134 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6135 as_fn_executable_p "$ac_path_EGREP" || continue
6136 # Check for GNU ac_path_EGREP and select it if it is found.
6137 # Check for GNU $ac_path_EGREP
6138 case `"$ac_path_EGREP" --version 2>&1` in
6139 *GNU*)
6140 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6141 *)
6142 ac_count=0
6143 printf %s 0123456789 >"conftest.in"
6144 while :
6145 do
6146 cat "conftest.in" "conftest.in" >"conftest.tmp"
6147 mv "conftest.tmp" "conftest.in"
6148 cp "conftest.in" "conftest.nl"
6149 printf "%s\n" 'EGREP' >> "conftest.nl"
6150 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6151 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6152 as_fn_arith $ac_count + 1 && ac_count=$as_val
6153 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6154 # Best one so far, save it but keep looking for a better one
6155 ac_cv_path_EGREP="$ac_path_EGREP"
6156 ac_path_EGREP_max=$ac_count
6157 fi
6158 # 10*(2^10) chars as input seems more than enough
6159 test $ac_count -gt 10 && break
6160 done
6161 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6162 esac
6163
6164 $ac_path_EGREP_found && break 3
6165 done
6166 done
6167 done
6168 IFS=$as_save_IFS
6169 if test -z "$ac_cv_path_EGREP"; then
6170 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6171 fi
6172 else
6173 ac_cv_path_EGREP=$EGREP
6174 fi
6175
6176 fi
6177 fi
6178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6179 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6180 EGREP="$ac_cv_path_EGREP"
6181
6182
6183
6184
6185
6186
6187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5
6188 printf %s "checking for ELF binary format... " >&6; }
6189 if test ${gl_cv_elf+y}
6190 then :
6191 printf %s "(cached) " >&6
6192 else $as_nop
6193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6194 /* end confdefs.h. */
6195 #ifdef __ELF__
6196 Extensible Linking Format
6197 #endif
6198
6199 _ACEOF
6200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6201 $EGREP "Extensible Linking Format" >/dev/null 2>&1
6202 then :
6203 gl_cv_elf=yes
6204 else $as_nop
6205 gl_cv_elf=no
6206 fi
6207 rm -rf conftest*
6208
6209
6210 fi
6211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5
6212 printf "%s\n" "$gl_cv_elf" >&6; }
6213 if test $gl_cv_elf; then
6214 # Extract the ELF class of a file (5th byte) in decimal.
6215 # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
6216 if od -A x < /dev/null >/dev/null 2>/dev/null; then
6217 # Use POSIX od.
6218 func_elfclass ()
6219 {
6220 od -A n -t d1 -j 4 -N 1
6221 }
6222 else
6223 # Use BSD hexdump.
6224 func_elfclass ()
6225 {
6226 dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
6227 echo
6228 }
6229 fi
6230 case $HOST_CPU_C_ABI_32BIT in
6231 yes)
6232 # 32-bit ABI.
6233 acl_is_expected_elfclass ()
6234 {
6235 test "`func_elfclass | sed -e 's/[ ]//g'`" = 1
6236 }
6237 ;;
6238 no)
6239 # 64-bit ABI.
6240 acl_is_expected_elfclass ()
6241 {
6242 test "`func_elfclass | sed -e 's/[ ]//g'`" = 2
6243 }
6244 ;;
6245 *)
6246 # Unknown.
6247 acl_is_expected_elfclass ()
6248 {
6249 :
6250 }
6251 ;;
6252 esac
6253 else
6254 acl_is_expected_elfclass ()
6255 {
6256 :
6257 }
6258 fi
6259
6260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
6261 printf %s "checking for the common suffixes of directories in the library search path... " >&6; }
6262 if test ${acl_cv_libdirstems+y}
6263 then :
6264 printf %s "(cached) " >&6
6265 else $as_nop
6266 acl_libdirstem=lib
6267 acl_libdirstem2=
6268 acl_libdirstem3=
6269 case "$host_os" in
6270 solaris*)
6271 if test $HOST_CPU_C_ABI_32BIT = no; then
6272 acl_libdirstem2=lib/64
6273 case "$host_cpu" in
6274 sparc*) acl_libdirstem3=lib/sparcv9 ;;
6275 i*86 | x86_64) acl_libdirstem3=lib/amd64 ;;
6276 esac
6277 fi
6278 ;;
6279 *)
6280 searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
6281 | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
6282 if test $HOST_CPU_C_ABI_32BIT != no; then
6283 # 32-bit or unknown ABI.
6284 if test -d /usr/lib32; then
6285 acl_libdirstem2=lib32
6286 fi
6287 fi
6288 if test $HOST_CPU_C_ABI_32BIT != yes; then
6289 # 64-bit or unknown ABI.
6290 if test -d /usr/lib64; then
6291 acl_libdirstem3=lib64
6292 fi
6293 fi
6294 if test -n "$searchpath"; then
6295 acl_save_IFS="${IFS= }"; IFS=":"
6296 for searchdir in $searchpath; do
6297 if test -d "$searchdir"; then
6298 case "$searchdir" in
6299 */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;;
6300 */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;;
6301 */../ | */.. )
6302 # Better ignore directories of this form. They are misleading.
6303 ;;
6304 *) searchdir=`cd "$searchdir" && pwd`
6305 case "$searchdir" in
6306 */lib32 ) acl_libdirstem2=lib32 ;;
6307 */lib64 ) acl_libdirstem3=lib64 ;;
6308 esac ;;
6309 esac
6310 fi
6311 done
6312 IFS="$acl_save_IFS"
6313 if test $HOST_CPU_C_ABI_32BIT = yes; then
6314 # 32-bit ABI.
6315 acl_libdirstem3=
6316 fi
6317 if test $HOST_CPU_C_ABI_32BIT = no; then
6318 # 64-bit ABI.
6319 acl_libdirstem2=
6320 fi
6321 fi
6322 ;;
6323 esac
6324 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
6325 test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
6326 acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3"
6327
6328 fi
6329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
6330 printf "%s\n" "$acl_cv_libdirstems" >&6; }
6331 acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
6332 acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
6333 acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345 use_additional=yes
6346
6347 acl_save_prefix="$prefix"
6348 prefix="$acl_final_prefix"
6349 acl_save_exec_prefix="$exec_prefix"
6350 exec_prefix="$acl_final_exec_prefix"
6351
6352 eval additional_includedir=\"$includedir\"
6353 eval additional_libdir=\"$libdir\"
6354 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
6355 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
6356
6357 exec_prefix="$acl_save_exec_prefix"
6358 prefix="$acl_save_prefix"
6359
6360
6361 # Check whether --with-libiconv-prefix was given.
6362 if test ${with_libiconv_prefix+y}
6363 then :
6364 withval=$with_libiconv_prefix;
6365 if test "X$withval" = "Xno"; then
6366 use_additional=no
6367 else
6368 if test "X$withval" = "X"; then
6369
6370 acl_save_prefix="$prefix"
6371 prefix="$acl_final_prefix"
6372 acl_save_exec_prefix="$exec_prefix"
6373 exec_prefix="$acl_final_exec_prefix"
6374
6375 eval additional_includedir=\"$includedir\"
6376 eval additional_libdir=\"$libdir\"
6377 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
6378 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
6379
6380 exec_prefix="$acl_save_exec_prefix"
6381 prefix="$acl_save_prefix"
6382
6383 else
6384 additional_includedir="$withval/include"
6385 additional_libdir="$withval/$acl_libdirstem"
6386 additional_libdir2="$withval/$acl_libdirstem2"
6387 additional_libdir3="$withval/$acl_libdirstem3"
6388 fi
6389 fi
6390
6391 fi
6392
6393 if test "X$additional_libdir2" = "X$additional_libdir"; then
6394 additional_libdir2=
6395 fi
6396 if test "X$additional_libdir3" = "X$additional_libdir"; then
6397 additional_libdir3=
6398 fi
6399 LIBICONV=
6400 LTLIBICONV=
6401 INCICONV=
6402 LIBICONV_PREFIX=
6403 HAVE_LIBICONV=
6404 rpathdirs=
6405 ltrpathdirs=
6406 names_already_handled=
6407 names_next_round='iconv '
6408 while test -n "$names_next_round"; do
6409 names_this_round="$names_next_round"
6410 names_next_round=
6411 for name in $names_this_round; do
6412 already_handled=
6413 for n in $names_already_handled; do
6414 if test "$n" = "$name"; then
6415 already_handled=yes
6416 break
6417 fi
6418 done
6419 if test -z "$already_handled"; then
6420 names_already_handled="$names_already_handled $name"
6421 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
6422 eval value=\"\$HAVE_LIB$uppername\"
6423 if test -n "$value"; then
6424 if test "$value" = yes; then
6425 eval value=\"\$LIB$uppername\"
6426 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6427 eval value=\"\$LTLIB$uppername\"
6428 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6429 else
6430 :
6431 fi
6432 else
6433 found_dir=
6434 found_la=
6435 found_so=
6436 found_a=
6437 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
6438 if test -n "$acl_shlibext"; then
6439 shrext=".$acl_shlibext" # typically: shrext=.so
6440 else
6441 shrext=
6442 fi
6443 if test $use_additional = yes; then
6444 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
6445 if test "X$found_dir" = "X"; then
6446 eval dir=\$$additional_libdir_variable
6447 if test -n "$dir"; then
6448 if test -n "$acl_shlibext"; then
6449 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
6450 found_dir="$dir"
6451 found_so="$dir/$libname$shrext"
6452 else
6453 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6454 ver=`(cd "$dir" && \
6455 for f in "$libname$shrext".*; do echo "$f"; done \
6456 | sed -e "s,^$libname$shrext\\\\.,," \
6457 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6458 | sed 1q ) 2>/dev/null`
6459 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
6460 found_dir="$dir"
6461 found_so="$dir/$libname$shrext.$ver"
6462 fi
6463 else
6464 eval library_names=\"$acl_library_names_spec\"
6465 for f in $library_names; do
6466 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
6467 found_dir="$dir"
6468 found_so="$dir/$f"
6469 break
6470 fi
6471 done
6472 fi
6473 fi
6474 fi
6475 if test "X$found_dir" = "X"; then
6476 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
6477 found_dir="$dir"
6478 found_a="$dir/$libname.$acl_libext"
6479 fi
6480 fi
6481 if test "X$found_dir" != "X"; then
6482 if test -f "$dir/$libname.la"; then
6483 found_la="$dir/$libname.la"
6484 fi
6485 fi
6486 fi
6487 fi
6488 done
6489 fi
6490 if test "X$found_dir" = "X"; then
6491 for x in $LDFLAGS $LTLIBICONV; do
6492
6493 acl_save_prefix="$prefix"
6494 prefix="$acl_final_prefix"
6495 acl_save_exec_prefix="$exec_prefix"
6496 exec_prefix="$acl_final_exec_prefix"
6497 eval x=\"$x\"
6498 exec_prefix="$acl_save_exec_prefix"
6499 prefix="$acl_save_prefix"
6500
6501 case "$x" in
6502 -L*)
6503 dir=`echo "X$x" | sed -e 's/^X-L//'`
6504 if test -n "$acl_shlibext"; then
6505 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
6506 found_dir="$dir"
6507 found_so="$dir/$libname$shrext"
6508 else
6509 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6510 ver=`(cd "$dir" && \
6511 for f in "$libname$shrext".*; do echo "$f"; done \
6512 | sed -e "s,^$libname$shrext\\\\.,," \
6513 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6514 | sed 1q ) 2>/dev/null`
6515 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
6516 found_dir="$dir"
6517 found_so="$dir/$libname$shrext.$ver"
6518 fi
6519 else
6520 eval library_names=\"$acl_library_names_spec\"
6521 for f in $library_names; do
6522 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
6523 found_dir="$dir"
6524 found_so="$dir/$f"
6525 break
6526 fi
6527 done
6528 fi
6529 fi
6530 fi
6531 if test "X$found_dir" = "X"; then
6532 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
6533 found_dir="$dir"
6534 found_a="$dir/$libname.$acl_libext"
6535 fi
6536 fi
6537 if test "X$found_dir" != "X"; then
6538 if test -f "$dir/$libname.la"; then
6539 found_la="$dir/$libname.la"
6540 fi
6541 fi
6542 ;;
6543 esac
6544 if test "X$found_dir" != "X"; then
6545 break
6546 fi
6547 done
6548 fi
6549 if test "X$found_dir" != "X"; then
6550 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6551 if test "X$found_so" != "X"; then
6552 if test "$enable_rpath" = no \
6553 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6554 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
6555 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
6556 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6557 else
6558 haveit=
6559 for x in $ltrpathdirs; do
6560 if test "X$x" = "X$found_dir"; then
6561 haveit=yes
6562 break
6563 fi
6564 done
6565 if test -z "$haveit"; then
6566 ltrpathdirs="$ltrpathdirs $found_dir"
6567 fi
6568 if test "$acl_hardcode_direct" = yes; then
6569 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6570 else
6571 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6572 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6573 haveit=
6574 for x in $rpathdirs; do
6575 if test "X$x" = "X$found_dir"; then
6576 haveit=yes
6577 break
6578 fi
6579 done
6580 if test -z "$haveit"; then
6581 rpathdirs="$rpathdirs $found_dir"
6582 fi
6583 else
6584 haveit=
6585 for x in $LDFLAGS $LIBICONV; do
6586
6587 acl_save_prefix="$prefix"
6588 prefix="$acl_final_prefix"
6589 acl_save_exec_prefix="$exec_prefix"
6590 exec_prefix="$acl_final_exec_prefix"
6591 eval x=\"$x\"
6592 exec_prefix="$acl_save_exec_prefix"
6593 prefix="$acl_save_prefix"
6594
6595 if test "X$x" = "X-L$found_dir"; then
6596 haveit=yes
6597 break
6598 fi
6599 done
6600 if test -z "$haveit"; then
6601 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6602 fi
6603 if test "$acl_hardcode_minus_L" != no; then
6604 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6605 else
6606 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6607 fi
6608 fi
6609 fi
6610 fi
6611 else
6612 if test "X$found_a" != "X"; then
6613 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6614 else
6615 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6616 fi
6617 fi
6618 additional_includedir=
6619 case "$found_dir" in
6620 */$acl_libdirstem | */$acl_libdirstem/)
6621 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6622 if test "$name" = 'iconv'; then
6623 LIBICONV_PREFIX="$basedir"
6624 fi
6625 additional_includedir="$basedir/include"
6626 ;;
6627 */$acl_libdirstem2 | */$acl_libdirstem2/)
6628 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6629 if test "$name" = 'iconv'; then
6630 LIBICONV_PREFIX="$basedir"
6631 fi
6632 additional_includedir="$basedir/include"
6633 ;;
6634 */$acl_libdirstem3 | */$acl_libdirstem3/)
6635 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
6636 if test "$name" = 'iconv'; then
6637 LIBICONV_PREFIX="$basedir"
6638 fi
6639 additional_includedir="$basedir/include"
6640 ;;
6641 esac
6642 if test "X$additional_includedir" != "X"; then
6643 if test "X$additional_includedir" != "X/usr/include"; then
6644 haveit=
6645 if test "X$additional_includedir" = "X/usr/local/include"; then
6646 if test -n "$GCC"; then
6647 case $host_os in
6648 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6649 esac
6650 fi
6651 fi
6652 if test -z "$haveit"; then
6653 for x in $CPPFLAGS $INCICONV; do
6654
6655 acl_save_prefix="$prefix"
6656 prefix="$acl_final_prefix"
6657 acl_save_exec_prefix="$exec_prefix"
6658 exec_prefix="$acl_final_exec_prefix"
6659 eval x=\"$x\"
6660 exec_prefix="$acl_save_exec_prefix"
6661 prefix="$acl_save_prefix"
6662
6663 if test "X$x" = "X-I$additional_includedir"; then
6664 haveit=yes
6665 break
6666 fi
6667 done
6668 if test -z "$haveit"; then
6669 if test -d "$additional_includedir"; then
6670 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6671 fi
6672 fi
6673 fi
6674 fi
6675 fi
6676 if test -n "$found_la"; then
6677 save_libdir="$libdir"
6678 case "$found_la" in
6679 */* | *\\*) . "$found_la" ;;
6680 *) . "./$found_la" ;;
6681 esac
6682 libdir="$save_libdir"
6683 for dep in $dependency_libs; do
6684 case "$dep" in
6685 -L*)
6686 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6687 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
6688 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
6689 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
6690 haveit=
6691 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
6692 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
6693 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
6694 if test -n "$GCC"; then
6695 case $host_os in
6696 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6697 esac
6698 fi
6699 fi
6700 if test -z "$haveit"; then
6701 haveit=
6702 for x in $LDFLAGS $LIBICONV; do
6703
6704 acl_save_prefix="$prefix"
6705 prefix="$acl_final_prefix"
6706 acl_save_exec_prefix="$exec_prefix"
6707 exec_prefix="$acl_final_exec_prefix"
6708 eval x=\"$x\"
6709 exec_prefix="$acl_save_exec_prefix"
6710 prefix="$acl_save_prefix"
6711
6712 if test "X$x" = "X-L$dependency_libdir"; then
6713 haveit=yes
6714 break
6715 fi
6716 done
6717 if test -z "$haveit"; then
6718 if test -d "$dependency_libdir"; then
6719 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir"
6720 fi
6721 fi
6722 haveit=
6723 for x in $LDFLAGS $LTLIBICONV; do
6724
6725 acl_save_prefix="$prefix"
6726 prefix="$acl_final_prefix"
6727 acl_save_exec_prefix="$exec_prefix"
6728 exec_prefix="$acl_final_exec_prefix"
6729 eval x=\"$x\"
6730 exec_prefix="$acl_save_exec_prefix"
6731 prefix="$acl_save_prefix"
6732
6733 if test "X$x" = "X-L$dependency_libdir"; then
6734 haveit=yes
6735 break
6736 fi
6737 done
6738 if test -z "$haveit"; then
6739 if test -d "$dependency_libdir"; then
6740 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir"
6741 fi
6742 fi
6743 fi
6744 fi
6745 ;;
6746 -R*)
6747 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6748 if test "$enable_rpath" != no; then
6749 haveit=
6750 for x in $rpathdirs; do
6751 if test "X$x" = "X$dir"; then
6752 haveit=yes
6753 break
6754 fi
6755 done
6756 if test -z "$haveit"; then
6757 rpathdirs="$rpathdirs $dir"
6758 fi
6759 haveit=
6760 for x in $ltrpathdirs; do
6761 if test "X$x" = "X$dir"; then
6762 haveit=yes
6763 break
6764 fi
6765 done
6766 if test -z "$haveit"; then
6767 ltrpathdirs="$ltrpathdirs $dir"
6768 fi
6769 fi
6770 ;;
6771 -l*)
6772 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6773 ;;
6774 *.la)
6775 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6776 ;;
6777 *)
6778 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6779 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6780 ;;
6781 esac
6782 done
6783 fi
6784 else
6785 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6786 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6787 fi
6788 fi
6789 fi
6790 done
6791 done
6792 if test "X$rpathdirs" != "X"; then
6793 if test -n "$acl_hardcode_libdir_separator"; then
6794 alldirs=
6795 for found_dir in $rpathdirs; do
6796 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6797 done
6798 acl_save_libdir="$libdir"
6799 libdir="$alldirs"
6800 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6801 libdir="$acl_save_libdir"
6802 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6803 else
6804 for found_dir in $rpathdirs; do
6805 acl_save_libdir="$libdir"
6806 libdir="$found_dir"
6807 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6808 libdir="$acl_save_libdir"
6809 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6810 done
6811 fi
6812 fi
6813 if test "X$ltrpathdirs" != "X"; then
6814 for found_dir in $ltrpathdirs; do
6815 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6816 done
6817 fi
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
6848 printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
6849 if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
6850 then :
6851 printf %s "(cached) " >&6
6852 else $as_nop
6853 gt_save_LIBS="$LIBS"
6854 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6856 /* end confdefs.h. */
6857 #include <CoreFoundation/CFPreferences.h>
6858 int
6859 main (void)
6860 {
6861 CFPreferencesCopyAppValue(NULL, NULL)
6862 ;
6863 return 0;
6864 }
6865 _ACEOF
6866 if ac_fn_c_try_link "$LINENO"
6867 then :
6868 gt_cv_func_CFPreferencesCopyAppValue=yes
6869 else $as_nop
6870 gt_cv_func_CFPreferencesCopyAppValue=no
6871 fi
6872 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6873 conftest$ac_exeext conftest.$ac_ext
6874 LIBS="$gt_save_LIBS"
6875 fi
6876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6877 printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6878 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6879
6880 printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
6881
6882 fi
6883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
6884 printf %s "checking for CFLocaleCopyPreferredLanguages... " >&6; }
6885 if test ${gt_cv_func_CFLocaleCopyPreferredLanguages+y}
6886 then :
6887 printf %s "(cached) " >&6
6888 else $as_nop
6889 gt_save_LIBS="$LIBS"
6890 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6892 /* end confdefs.h. */
6893 #include <CoreFoundation/CFLocale.h>
6894 int
6895 main (void)
6896 {
6897 CFLocaleCopyPreferredLanguages();
6898 ;
6899 return 0;
6900 }
6901 _ACEOF
6902 if ac_fn_c_try_link "$LINENO"
6903 then :
6904 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
6905 else $as_nop
6906 gt_cv_func_CFLocaleCopyPreferredLanguages=no
6907 fi
6908 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6909 conftest$ac_exeext conftest.$ac_ext
6910 LIBS="$gt_save_LIBS"
6911 fi
6912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
6913 printf "%s\n" "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
6914 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
6915
6916 printf "%s\n" "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
6917
6918 fi
6919 INTL_MACOSX_LIBS=
6920 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
6921 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
6922 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6923 fi
6924
6925
6926
6927
6928
6929
6930 LIBINTL=
6931 LTLIBINTL=
6932 POSUB=
6933
6934 case " $gt_needs " in
6935 *" need-formatstring-macros "*) gt_api_version=3 ;;
6936 *" need-ngettext "*) gt_api_version=2 ;;
6937 *) gt_api_version=1 ;;
6938 esac
6939 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
6940 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
6941
6942 if test "$USE_NLS" = "yes"; then
6943 gt_use_preinstalled_gnugettext=no
6944
6945
6946 if test $gt_api_version -ge 3; then
6947 gt_revision_test_code='
6948 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6949 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
6950 #endif
6951 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
6952 '
6953 else
6954 gt_revision_test_code=
6955 fi
6956 if test $gt_api_version -ge 2; then
6957 gt_expression_test_code=' + * ngettext ("", "", 0)'
6958 else
6959 gt_expression_test_code=
6960 fi
6961
6962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
6963 printf %s "checking for GNU gettext in libc... " >&6; }
6964 if eval test \${$gt_func_gnugettext_libc+y}
6965 then :
6966 printf %s "(cached) " >&6
6967 else $as_nop
6968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6969 /* end confdefs.h. */
6970
6971 #include <libintl.h>
6972 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6973 extern int _nl_msg_cat_cntr;
6974 extern int *_nl_domain_bindings;
6975 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
6976 #else
6977 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
6978 #endif
6979 $gt_revision_test_code
6980
6981 int
6982 main (void)
6983 {
6984
6985 bindtextdomain ("", "");
6986 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
6987
6988 ;
6989 return 0;
6990 }
6991 _ACEOF
6992 if ac_fn_c_try_link "$LINENO"
6993 then :
6994 eval "$gt_func_gnugettext_libc=yes"
6995 else $as_nop
6996 eval "$gt_func_gnugettext_libc=no"
6997 fi
6998 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6999 conftest$ac_exeext conftest.$ac_ext
7000 fi
7001 eval ac_res=\$$gt_func_gnugettext_libc
7002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7003 printf "%s\n" "$ac_res" >&6; }
7004
7005 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
7006
7007
7008
7009
7010
7011 am_save_CPPFLAGS="$CPPFLAGS"
7012
7013 for element in $INCICONV; do
7014 haveit=
7015 for x in $CPPFLAGS; do
7016
7017 acl_save_prefix="$prefix"
7018 prefix="$acl_final_prefix"
7019 acl_save_exec_prefix="$exec_prefix"
7020 exec_prefix="$acl_final_exec_prefix"
7021 eval x=\"$x\"
7022 exec_prefix="$acl_save_exec_prefix"
7023 prefix="$acl_save_prefix"
7024
7025 if test "X$x" = "X$element"; then
7026 haveit=yes
7027 break
7028 fi
7029 done
7030 if test -z "$haveit"; then
7031 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7032 fi
7033 done
7034
7035
7036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7037 printf %s "checking for iconv... " >&6; }
7038 if test ${am_cv_func_iconv+y}
7039 then :
7040 printf %s "(cached) " >&6
7041 else $as_nop
7042
7043 am_cv_func_iconv="no, consider installing GNU libiconv"
7044 am_cv_lib_iconv=no
7045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7046 /* end confdefs.h. */
7047
7048 #include <stdlib.h>
7049 #include <iconv.h>
7050
7051 int
7052 main (void)
7053 {
7054 iconv_t cd = iconv_open("","");
7055 iconv(cd,NULL,NULL,NULL,NULL);
7056 iconv_close(cd);
7057 ;
7058 return 0;
7059 }
7060 _ACEOF
7061 if ac_fn_c_try_link "$LINENO"
7062 then :
7063 am_cv_func_iconv=yes
7064 fi
7065 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7066 conftest$ac_exeext conftest.$ac_ext
7067 if test "$am_cv_func_iconv" != yes; then
7068 am_save_LIBS="$LIBS"
7069 LIBS="$LIBS $LIBICONV"
7070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7071 /* end confdefs.h. */
7072
7073 #include <stdlib.h>
7074 #include <iconv.h>
7075
7076 int
7077 main (void)
7078 {
7079 iconv_t cd = iconv_open("","");
7080 iconv(cd,NULL,NULL,NULL,NULL);
7081 iconv_close(cd);
7082 ;
7083 return 0;
7084 }
7085 _ACEOF
7086 if ac_fn_c_try_link "$LINENO"
7087 then :
7088 am_cv_lib_iconv=yes
7089 am_cv_func_iconv=yes
7090 fi
7091 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7092 conftest$ac_exeext conftest.$ac_ext
7093 LIBS="$am_save_LIBS"
7094 fi
7095
7096 fi
7097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7098 printf "%s\n" "$am_cv_func_iconv" >&6; }
7099 if test "$am_cv_func_iconv" = yes; then
7100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
7101 printf %s "checking for working iconv... " >&6; }
7102 if test ${am_cv_func_iconv_works+y}
7103 then :
7104 printf %s "(cached) " >&6
7105 else $as_nop
7106
7107 am_save_LIBS="$LIBS"
7108 if test $am_cv_lib_iconv = yes; then
7109 LIBS="$LIBS $LIBICONV"
7110 fi
7111 am_cv_func_iconv_works=no
7112 for ac_iconv_const in '' 'const'; do
7113 if test "$cross_compiling" = yes
7114 then :
7115 case "$host_os" in
7116 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
7117 *) am_cv_func_iconv_works="guessing yes" ;;
7118 esac
7119 else $as_nop
7120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7121 /* end confdefs.h. */
7122
7123 #include <iconv.h>
7124 #include <string.h>
7125
7126 #ifndef ICONV_CONST
7127 # define ICONV_CONST $ac_iconv_const
7128 #endif
7129
7130 int
7131 main (void)
7132 {
7133 int result = 0;
7134 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
7135 returns. */
7136 {
7137 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
7138 if (cd_utf8_to_88591 != (iconv_t)(-1))
7139 {
7140 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
7141 char buf[10];
7142 ICONV_CONST char *inptr = input;
7143 size_t inbytesleft = strlen (input);
7144 char *outptr = buf;
7145 size_t outbytesleft = sizeof (buf);
7146 size_t res = iconv (cd_utf8_to_88591,
7147 &inptr, &inbytesleft,
7148 &outptr, &outbytesleft);
7149 if (res == 0)
7150 result |= 1;
7151 iconv_close (cd_utf8_to_88591);
7152 }
7153 }
7154 /* Test against Solaris 10 bug: Failures are not distinguishable from
7155 successful returns. */
7156 {
7157 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
7158 if (cd_ascii_to_88591 != (iconv_t)(-1))
7159 {
7160 static ICONV_CONST char input[] = "\263";
7161 char buf[10];
7162 ICONV_CONST char *inptr = input;
7163 size_t inbytesleft = strlen (input);
7164 char *outptr = buf;
7165 size_t outbytesleft = sizeof (buf);
7166 size_t res = iconv (cd_ascii_to_88591,
7167 &inptr, &inbytesleft,
7168 &outptr, &outbytesleft);
7169 if (res == 0)
7170 result |= 2;
7171 iconv_close (cd_ascii_to_88591);
7172 }
7173 }
7174 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
7175 {
7176 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
7177 if (cd_88591_to_utf8 != (iconv_t)(-1))
7178 {
7179 static ICONV_CONST char input[] = "\304";
7180 static char buf[2] = { (char)0xDE, (char)0xAD };
7181 ICONV_CONST char *inptr = input;
7182 size_t inbytesleft = 1;
7183 char *outptr = buf;
7184 size_t outbytesleft = 1;
7185 size_t res = iconv (cd_88591_to_utf8,
7186 &inptr, &inbytesleft,
7187 &outptr, &outbytesleft);
7188 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
7189 result |= 4;
7190 iconv_close (cd_88591_to_utf8);
7191 }
7192 }
7193 #if 0 /* This bug could be worked around by the caller. */
7194 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
7195 {
7196 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
7197 if (cd_88591_to_utf8 != (iconv_t)(-1))
7198 {
7199 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
7200 char buf[50];
7201 ICONV_CONST char *inptr = input;
7202 size_t inbytesleft = strlen (input);
7203 char *outptr = buf;
7204 size_t outbytesleft = sizeof (buf);
7205 size_t res = iconv (cd_88591_to_utf8,
7206 &inptr, &inbytesleft,
7207 &outptr, &outbytesleft);
7208 if ((int)res > 0)
7209 result |= 8;
7210 iconv_close (cd_88591_to_utf8);
7211 }
7212 }
7213 #endif
7214 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
7215 provided. */
7216 {
7217 /* Try standardized names. */
7218 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
7219 /* Try IRIX, OSF/1 names. */
7220 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
7221 /* Try AIX names. */
7222 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
7223 /* Try HP-UX names. */
7224 iconv_t cd4 = iconv_open ("utf8", "eucJP");
7225 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
7226 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
7227 result |= 16;
7228 if (cd1 != (iconv_t)(-1))
7229 iconv_close (cd1);
7230 if (cd2 != (iconv_t)(-1))
7231 iconv_close (cd2);
7232 if (cd3 != (iconv_t)(-1))
7233 iconv_close (cd3);
7234 if (cd4 != (iconv_t)(-1))
7235 iconv_close (cd4);
7236 }
7237 return result;
7238
7239 ;
7240 return 0;
7241 }
7242 _ACEOF
7243 if ac_fn_c_try_run "$LINENO"
7244 then :
7245 am_cv_func_iconv_works=yes
7246 fi
7247 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7248 conftest.$ac_objext conftest.beam conftest.$ac_ext
7249 fi
7250
7251 test "$am_cv_func_iconv_works" = no || break
7252 done
7253 LIBS="$am_save_LIBS"
7254
7255 fi
7256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
7257 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
7258 case "$am_cv_func_iconv_works" in
7259 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
7260 *) am_func_iconv=yes ;;
7261 esac
7262 else
7263 am_func_iconv=no am_cv_lib_iconv=no
7264 fi
7265 if test "$am_func_iconv" = yes; then
7266
7267 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
7268
7269 fi
7270 if test "$am_cv_lib_iconv" = yes; then
7271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7272 printf %s "checking how to link with libiconv... " >&6; }
7273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7274 printf "%s\n" "$LIBICONV" >&6; }
7275 else
7276 CPPFLAGS="$am_save_CPPFLAGS"
7277 LIBICONV=
7278 LTLIBICONV=
7279 fi
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290 use_additional=yes
7291
7292 acl_save_prefix="$prefix"
7293 prefix="$acl_final_prefix"
7294 acl_save_exec_prefix="$exec_prefix"
7295 exec_prefix="$acl_final_exec_prefix"
7296
7297 eval additional_includedir=\"$includedir\"
7298 eval additional_libdir=\"$libdir\"
7299 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
7300 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
7301
7302 exec_prefix="$acl_save_exec_prefix"
7303 prefix="$acl_save_prefix"
7304
7305
7306 # Check whether --with-libintl-prefix was given.
7307 if test ${with_libintl_prefix+y}
7308 then :
7309 withval=$with_libintl_prefix;
7310 if test "X$withval" = "Xno"; then
7311 use_additional=no
7312 else
7313 if test "X$withval" = "X"; then
7314
7315 acl_save_prefix="$prefix"
7316 prefix="$acl_final_prefix"
7317 acl_save_exec_prefix="$exec_prefix"
7318 exec_prefix="$acl_final_exec_prefix"
7319
7320 eval additional_includedir=\"$includedir\"
7321 eval additional_libdir=\"$libdir\"
7322 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
7323 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
7324
7325 exec_prefix="$acl_save_exec_prefix"
7326 prefix="$acl_save_prefix"
7327
7328 else
7329 additional_includedir="$withval/include"
7330 additional_libdir="$withval/$acl_libdirstem"
7331 additional_libdir2="$withval/$acl_libdirstem2"
7332 additional_libdir3="$withval/$acl_libdirstem3"
7333 fi
7334 fi
7335
7336 fi
7337
7338 if test "X$additional_libdir2" = "X$additional_libdir"; then
7339 additional_libdir2=
7340 fi
7341 if test "X$additional_libdir3" = "X$additional_libdir"; then
7342 additional_libdir3=
7343 fi
7344 LIBINTL=
7345 LTLIBINTL=
7346 INCINTL=
7347 LIBINTL_PREFIX=
7348 HAVE_LIBINTL=
7349 rpathdirs=
7350 ltrpathdirs=
7351 names_already_handled=
7352 names_next_round='intl '
7353 while test -n "$names_next_round"; do
7354 names_this_round="$names_next_round"
7355 names_next_round=
7356 for name in $names_this_round; do
7357 already_handled=
7358 for n in $names_already_handled; do
7359 if test "$n" = "$name"; then
7360 already_handled=yes
7361 break
7362 fi
7363 done
7364 if test -z "$already_handled"; then
7365 names_already_handled="$names_already_handled $name"
7366 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
7367 eval value=\"\$HAVE_LIB$uppername\"
7368 if test -n "$value"; then
7369 if test "$value" = yes; then
7370 eval value=\"\$LIB$uppername\"
7371 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7372 eval value=\"\$LTLIB$uppername\"
7373 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7374 else
7375 :
7376 fi
7377 else
7378 found_dir=
7379 found_la=
7380 found_so=
7381 found_a=
7382 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
7383 if test -n "$acl_shlibext"; then
7384 shrext=".$acl_shlibext" # typically: shrext=.so
7385 else
7386 shrext=
7387 fi
7388 if test $use_additional = yes; then
7389 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
7390 if test "X$found_dir" = "X"; then
7391 eval dir=\$$additional_libdir_variable
7392 if test -n "$dir"; then
7393 if test -n "$acl_shlibext"; then
7394 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
7395 found_dir="$dir"
7396 found_so="$dir/$libname$shrext"
7397 else
7398 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7399 ver=`(cd "$dir" && \
7400 for f in "$libname$shrext".*; do echo "$f"; done \
7401 | sed -e "s,^$libname$shrext\\\\.,," \
7402 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7403 | sed 1q ) 2>/dev/null`
7404 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
7405 found_dir="$dir"
7406 found_so="$dir/$libname$shrext.$ver"
7407 fi
7408 else
7409 eval library_names=\"$acl_library_names_spec\"
7410 for f in $library_names; do
7411 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
7412 found_dir="$dir"
7413 found_so="$dir/$f"
7414 break
7415 fi
7416 done
7417 fi
7418 fi
7419 fi
7420 if test "X$found_dir" = "X"; then
7421 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
7422 found_dir="$dir"
7423 found_a="$dir/$libname.$acl_libext"
7424 fi
7425 fi
7426 if test "X$found_dir" != "X"; then
7427 if test -f "$dir/$libname.la"; then
7428 found_la="$dir/$libname.la"
7429 fi
7430 fi
7431 fi
7432 fi
7433 done
7434 fi
7435 if test "X$found_dir" = "X"; then
7436 for x in $LDFLAGS $LTLIBINTL; do
7437
7438 acl_save_prefix="$prefix"
7439 prefix="$acl_final_prefix"
7440 acl_save_exec_prefix="$exec_prefix"
7441 exec_prefix="$acl_final_exec_prefix"
7442 eval x=\"$x\"
7443 exec_prefix="$acl_save_exec_prefix"
7444 prefix="$acl_save_prefix"
7445
7446 case "$x" in
7447 -L*)
7448 dir=`echo "X$x" | sed -e 's/^X-L//'`
7449 if test -n "$acl_shlibext"; then
7450 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
7451 found_dir="$dir"
7452 found_so="$dir/$libname$shrext"
7453 else
7454 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7455 ver=`(cd "$dir" && \
7456 for f in "$libname$shrext".*; do echo "$f"; done \
7457 | sed -e "s,^$libname$shrext\\\\.,," \
7458 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7459 | sed 1q ) 2>/dev/null`
7460 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
7461 found_dir="$dir"
7462 found_so="$dir/$libname$shrext.$ver"
7463 fi
7464 else
7465 eval library_names=\"$acl_library_names_spec\"
7466 for f in $library_names; do
7467 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
7468 found_dir="$dir"
7469 found_so="$dir/$f"
7470 break
7471 fi
7472 done
7473 fi
7474 fi
7475 fi
7476 if test "X$found_dir" = "X"; then
7477 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
7478 found_dir="$dir"
7479 found_a="$dir/$libname.$acl_libext"
7480 fi
7481 fi
7482 if test "X$found_dir" != "X"; then
7483 if test -f "$dir/$libname.la"; then
7484 found_la="$dir/$libname.la"
7485 fi
7486 fi
7487 ;;
7488 esac
7489 if test "X$found_dir" != "X"; then
7490 break
7491 fi
7492 done
7493 fi
7494 if test "X$found_dir" != "X"; then
7495 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7496 if test "X$found_so" != "X"; then
7497 if test "$enable_rpath" = no \
7498 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
7499 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
7500 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
7501 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7502 else
7503 haveit=
7504 for x in $ltrpathdirs; do
7505 if test "X$x" = "X$found_dir"; then
7506 haveit=yes
7507 break
7508 fi
7509 done
7510 if test -z "$haveit"; then
7511 ltrpathdirs="$ltrpathdirs $found_dir"
7512 fi
7513 if test "$acl_hardcode_direct" = yes; then
7514 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7515 else
7516 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
7517 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7518 haveit=
7519 for x in $rpathdirs; do
7520 if test "X$x" = "X$found_dir"; then
7521 haveit=yes
7522 break
7523 fi
7524 done
7525 if test -z "$haveit"; then
7526 rpathdirs="$rpathdirs $found_dir"
7527 fi
7528 else
7529 haveit=
7530 for x in $LDFLAGS $LIBINTL; do
7531
7532 acl_save_prefix="$prefix"
7533 prefix="$acl_final_prefix"
7534 acl_save_exec_prefix="$exec_prefix"
7535 exec_prefix="$acl_final_exec_prefix"
7536 eval x=\"$x\"
7537 exec_prefix="$acl_save_exec_prefix"
7538 prefix="$acl_save_prefix"
7539
7540 if test "X$x" = "X-L$found_dir"; then
7541 haveit=yes
7542 break
7543 fi
7544 done
7545 if test -z "$haveit"; then
7546 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7547 fi
7548 if test "$acl_hardcode_minus_L" != no; then
7549 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7550 else
7551 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7552 fi
7553 fi
7554 fi
7555 fi
7556 else
7557 if test "X$found_a" != "X"; then
7558 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7559 else
7560 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7561 fi
7562 fi
7563 additional_includedir=
7564 case "$found_dir" in
7565 */$acl_libdirstem | */$acl_libdirstem/)
7566 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7567 if test "$name" = 'intl'; then
7568 LIBINTL_PREFIX="$basedir"
7569 fi
7570 additional_includedir="$basedir/include"
7571 ;;
7572 */$acl_libdirstem2 | */$acl_libdirstem2/)
7573 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
7574 if test "$name" = 'intl'; then
7575 LIBINTL_PREFIX="$basedir"
7576 fi
7577 additional_includedir="$basedir/include"
7578 ;;
7579 */$acl_libdirstem3 | */$acl_libdirstem3/)
7580 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
7581 if test "$name" = 'intl'; then
7582 LIBINTL_PREFIX="$basedir"
7583 fi
7584 additional_includedir="$basedir/include"
7585 ;;
7586 esac
7587 if test "X$additional_includedir" != "X"; then
7588 if test "X$additional_includedir" != "X/usr/include"; then
7589 haveit=
7590 if test "X$additional_includedir" = "X/usr/local/include"; then
7591 if test -n "$GCC"; then
7592 case $host_os in
7593 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7594 esac
7595 fi
7596 fi
7597 if test -z "$haveit"; then
7598 for x in $CPPFLAGS $INCINTL; do
7599
7600 acl_save_prefix="$prefix"
7601 prefix="$acl_final_prefix"
7602 acl_save_exec_prefix="$exec_prefix"
7603 exec_prefix="$acl_final_exec_prefix"
7604 eval x=\"$x\"
7605 exec_prefix="$acl_save_exec_prefix"
7606 prefix="$acl_save_prefix"
7607
7608 if test "X$x" = "X-I$additional_includedir"; then
7609 haveit=yes
7610 break
7611 fi
7612 done
7613 if test -z "$haveit"; then
7614 if test -d "$additional_includedir"; then
7615 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7616 fi
7617 fi
7618 fi
7619 fi
7620 fi
7621 if test -n "$found_la"; then
7622 save_libdir="$libdir"
7623 case "$found_la" in
7624 */* | *\\*) . "$found_la" ;;
7625 *) . "./$found_la" ;;
7626 esac
7627 libdir="$save_libdir"
7628 for dep in $dependency_libs; do
7629 case "$dep" in
7630 -L*)
7631 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7632 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
7633 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
7634 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
7635 haveit=
7636 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
7637 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
7638 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
7639 if test -n "$GCC"; then
7640 case $host_os in
7641 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7642 esac
7643 fi
7644 fi
7645 if test -z "$haveit"; then
7646 haveit=
7647 for x in $LDFLAGS $LIBINTL; do
7648
7649 acl_save_prefix="$prefix"
7650 prefix="$acl_final_prefix"
7651 acl_save_exec_prefix="$exec_prefix"
7652 exec_prefix="$acl_final_exec_prefix"
7653 eval x=\"$x\"
7654 exec_prefix="$acl_save_exec_prefix"
7655 prefix="$acl_save_prefix"
7656
7657 if test "X$x" = "X-L$dependency_libdir"; then
7658 haveit=yes
7659 break
7660 fi
7661 done
7662 if test -z "$haveit"; then
7663 if test -d "$dependency_libdir"; then
7664 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$dependency_libdir"
7665 fi
7666 fi
7667 haveit=
7668 for x in $LDFLAGS $LTLIBINTL; do
7669
7670 acl_save_prefix="$prefix"
7671 prefix="$acl_final_prefix"
7672 acl_save_exec_prefix="$exec_prefix"
7673 exec_prefix="$acl_final_exec_prefix"
7674 eval x=\"$x\"
7675 exec_prefix="$acl_save_exec_prefix"
7676 prefix="$acl_save_prefix"
7677
7678 if test "X$x" = "X-L$dependency_libdir"; then
7679 haveit=yes
7680 break
7681 fi
7682 done
7683 if test -z "$haveit"; then
7684 if test -d "$dependency_libdir"; then
7685 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$dependency_libdir"
7686 fi
7687 fi
7688 fi
7689 fi
7690 ;;
7691 -R*)
7692 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7693 if test "$enable_rpath" != no; then
7694 haveit=
7695 for x in $rpathdirs; do
7696 if test "X$x" = "X$dir"; then
7697 haveit=yes
7698 break
7699 fi
7700 done
7701 if test -z "$haveit"; then
7702 rpathdirs="$rpathdirs $dir"
7703 fi
7704 haveit=
7705 for x in $ltrpathdirs; do
7706 if test "X$x" = "X$dir"; then
7707 haveit=yes
7708 break
7709 fi
7710 done
7711 if test -z "$haveit"; then
7712 ltrpathdirs="$ltrpathdirs $dir"
7713 fi
7714 fi
7715 ;;
7716 -l*)
7717 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7718 ;;
7719 *.la)
7720 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7721 ;;
7722 *)
7723 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7724 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7725 ;;
7726 esac
7727 done
7728 fi
7729 else
7730 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7731 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7732 fi
7733 fi
7734 fi
7735 done
7736 done
7737 if test "X$rpathdirs" != "X"; then
7738 if test -n "$acl_hardcode_libdir_separator"; then
7739 alldirs=
7740 for found_dir in $rpathdirs; do
7741 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7742 done
7743 acl_save_libdir="$libdir"
7744 libdir="$alldirs"
7745 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7746 libdir="$acl_save_libdir"
7747 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7748 else
7749 for found_dir in $rpathdirs; do
7750 acl_save_libdir="$libdir"
7751 libdir="$found_dir"
7752 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7753 libdir="$acl_save_libdir"
7754 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7755 done
7756 fi
7757 fi
7758 if test "X$ltrpathdirs" != "X"; then
7759 for found_dir in $ltrpathdirs; do
7760 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7761 done
7762 fi
7763
7764
7765
7766
7767
7768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
7769 printf %s "checking for GNU gettext in libintl... " >&6; }
7770 if eval test \${$gt_func_gnugettext_libintl+y}
7771 then :
7772 printf %s "(cached) " >&6
7773 else $as_nop
7774 gt_save_CPPFLAGS="$CPPFLAGS"
7775 CPPFLAGS="$CPPFLAGS $INCINTL"
7776 gt_save_LIBS="$LIBS"
7777 LIBS="$LIBS $LIBINTL"
7778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7779 /* end confdefs.h. */
7780
7781 #include <libintl.h>
7782 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
7783 extern int _nl_msg_cat_cntr;
7784 extern
7785 #ifdef __cplusplus
7786 "C"
7787 #endif
7788 const char *_nl_expand_alias (const char *);
7789 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
7790 #else
7791 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
7792 #endif
7793 $gt_revision_test_code
7794
7795 int
7796 main (void)
7797 {
7798
7799 bindtextdomain ("", "");
7800 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
7801
7802 ;
7803 return 0;
7804 }
7805 _ACEOF
7806 if ac_fn_c_try_link "$LINENO"
7807 then :
7808 eval "$gt_func_gnugettext_libintl=yes"
7809 else $as_nop
7810 eval "$gt_func_gnugettext_libintl=no"
7811 fi
7812 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7813 conftest$ac_exeext conftest.$ac_ext
7814 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
7815 LIBS="$LIBS $LIBICONV"
7816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7817 /* end confdefs.h. */
7818
7819 #include <libintl.h>
7820 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
7821 extern int _nl_msg_cat_cntr;
7822 extern
7823 #ifdef __cplusplus
7824 "C"
7825 #endif
7826 const char *_nl_expand_alias (const char *);
7827 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
7828 #else
7829 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
7830 #endif
7831 $gt_revision_test_code
7832
7833 int
7834 main (void)
7835 {
7836
7837 bindtextdomain ("", "");
7838 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
7839
7840 ;
7841 return 0;
7842 }
7843 _ACEOF
7844 if ac_fn_c_try_link "$LINENO"
7845 then :
7846 LIBINTL="$LIBINTL $LIBICONV"
7847 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7848 eval "$gt_func_gnugettext_libintl=yes"
7849
7850 fi
7851 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7852 conftest$ac_exeext conftest.$ac_ext
7853 fi
7854 CPPFLAGS="$gt_save_CPPFLAGS"
7855 LIBS="$gt_save_LIBS"
7856 fi
7857 eval ac_res=\$$gt_func_gnugettext_libintl
7858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7859 printf "%s\n" "$ac_res" >&6; }
7860 fi
7861
7862 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
7863 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
7864 && test "$PACKAGE" != gettext-runtime \
7865 && test "$PACKAGE" != gettext-tools; }; then
7866 gt_use_preinstalled_gnugettext=yes
7867 else
7868 LIBINTL=
7869 LTLIBINTL=
7870 INCINTL=
7871 fi
7872
7873
7874
7875 if test -n "$INTL_MACOSX_LIBS"; then
7876 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7877 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7878 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7879 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7880 fi
7881 fi
7882
7883 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7884 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7885
7886 printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
7887
7888 else
7889 USE_NLS=no
7890 fi
7891 fi
7892
7893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
7894 printf %s "checking whether to use NLS... " >&6; }
7895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7896 printf "%s\n" "$USE_NLS" >&6; }
7897 if test "$USE_NLS" = "yes"; then
7898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
7899 printf %s "checking where the gettext function comes from... " >&6; }
7900 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7901 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7902 gt_source="external libintl"
7903 else
7904 gt_source="libc"
7905 fi
7906 else
7907 gt_source="included intl directory"
7908 fi
7909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
7910 printf "%s\n" "$gt_source" >&6; }
7911 fi
7912
7913 if test "$USE_NLS" = "yes"; then
7914
7915 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7916 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
7918 printf %s "checking how to link with libintl... " >&6; }
7919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
7920 printf "%s\n" "$LIBINTL" >&6; }
7921
7922 for element in $INCINTL; do
7923 haveit=
7924 for x in $CPPFLAGS; do
7925
7926 acl_save_prefix="$prefix"
7927 prefix="$acl_final_prefix"
7928 acl_save_exec_prefix="$exec_prefix"
7929 exec_prefix="$acl_final_exec_prefix"
7930 eval x=\"$x\"
7931 exec_prefix="$acl_save_exec_prefix"
7932 prefix="$acl_save_prefix"
7933
7934 if test "X$x" = "X$element"; then
7935 haveit=yes
7936 break
7937 fi
7938 done
7939 if test -z "$haveit"; then
7940 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7941 fi
7942 done
7943
7944 fi
7945
7946
7947 printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
7948
7949
7950 printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
7951
7952 fi
7953
7954 POSUB=po
7955 fi
7956
7957
7958
7959 INTLLIBS="$LIBINTL"
7960
7961
7962
7963
7964
7965
7966
7967 # Checks for programs.
7968
7969
7970
7971
7972
7973
7974 ac_ext=cpp
7975 ac_cpp='$CXXCPP $CPPFLAGS'
7976 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7977 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7978 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7979 if test -z "$CXX"; then
7980 if test -n "$CCC"; then
7981 CXX=$CCC
7982 else
7983 if test -n "$ac_tool_prefix"; then
7984 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
7985 do
7986 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7987 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7989 printf %s "checking for $ac_word... " >&6; }
7990 if test ${ac_cv_prog_CXX+y}
7991 then :
7992 printf %s "(cached) " >&6
7993 else $as_nop
7994 if test -n "$CXX"; then
7995 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7996 else
7997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7998 for as_dir in $PATH
7999 do
8000 IFS=$as_save_IFS
8001 case $as_dir in #(((
8002 '') as_dir=./ ;;
8003 */) ;;
8004 *) as_dir=$as_dir/ ;;
8005 esac
8006 for ac_exec_ext in '' $ac_executable_extensions; do
8007 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8008 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8009 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8010 break 2
8011 fi
8012 done
8013 done
8014 IFS=$as_save_IFS
8015
8016 fi
8017 fi
8018 CXX=$ac_cv_prog_CXX
8019 if test -n "$CXX"; then
8020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8021 printf "%s\n" "$CXX" >&6; }
8022 else
8023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8024 printf "%s\n" "no" >&6; }
8025 fi
8026
8027
8028 test -n "$CXX" && break
8029 done
8030 fi
8031 if test -z "$CXX"; then
8032 ac_ct_CXX=$CXX
8033 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
8034 do
8035 # Extract the first word of "$ac_prog", so it can be a program name with args.
8036 set dummy $ac_prog; ac_word=$2
8037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8038 printf %s "checking for $ac_word... " >&6; }
8039 if test ${ac_cv_prog_ac_ct_CXX+y}
8040 then :
8041 printf %s "(cached) " >&6
8042 else $as_nop
8043 if test -n "$ac_ct_CXX"; then
8044 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8045 else
8046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8047 for as_dir in $PATH
8048 do
8049 IFS=$as_save_IFS
8050 case $as_dir in #(((
8051 '') as_dir=./ ;;
8052 */) ;;
8053 *) as_dir=$as_dir/ ;;
8054 esac
8055 for ac_exec_ext in '' $ac_executable_extensions; do
8056 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8057 ac_cv_prog_ac_ct_CXX="$ac_prog"
8058 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8059 break 2
8060 fi
8061 done
8062 done
8063 IFS=$as_save_IFS
8064
8065 fi
8066 fi
8067 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8068 if test -n "$ac_ct_CXX"; then
8069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8070 printf "%s\n" "$ac_ct_CXX" >&6; }
8071 else
8072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8073 printf "%s\n" "no" >&6; }
8074 fi
8075
8076
8077 test -n "$ac_ct_CXX" && break
8078 done
8079
8080 if test "x$ac_ct_CXX" = x; then
8081 CXX="g++"
8082 else
8083 case $cross_compiling:$ac_tool_warned in
8084 yes:)
8085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8086 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8087 ac_tool_warned=yes ;;
8088 esac
8089 CXX=$ac_ct_CXX
8090 fi
8091 fi
8092
8093 fi
8094 fi
8095 # Provide some information about the compiler.
8096 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8097 set X $ac_compile
8098 ac_compiler=$2
8099 for ac_option in --version -v -V -qversion; do
8100 { { ac_try="$ac_compiler $ac_option >&5"
8101 case "(($ac_try" in
8102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8103 *) ac_try_echo=$ac_try;;
8104 esac
8105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8106 printf "%s\n" "$ac_try_echo"; } >&5
8107 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8108 ac_status=$?
8109 if test -s conftest.err; then
8110 sed '10a\
8111 ... rest of stderr output deleted ...
8112 10q' conftest.err >conftest.er1
8113 cat conftest.er1 >&5
8114 fi
8115 rm -f conftest.er1 conftest.err
8116 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8117 test $ac_status = 0; }
8118 done
8119
8120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
8121 printf %s "checking whether the compiler supports GNU C++... " >&6; }
8122 if test ${ac_cv_cxx_compiler_gnu+y}
8123 then :
8124 printf %s "(cached) " >&6
8125 else $as_nop
8126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8127 /* end confdefs.h. */
8128
8129 int
8130 main (void)
8131 {
8132 #ifndef __GNUC__
8133 choke me
8134 #endif
8135
8136 ;
8137 return 0;
8138 }
8139 _ACEOF
8140 if ac_fn_cxx_try_compile "$LINENO"
8141 then :
8142 ac_compiler_gnu=yes
8143 else $as_nop
8144 ac_compiler_gnu=no
8145 fi
8146 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8147 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8148
8149 fi
8150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8151 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
8152 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8153
8154 if test $ac_compiler_gnu = yes; then
8155 GXX=yes
8156 else
8157 GXX=
8158 fi
8159 ac_test_CXXFLAGS=${CXXFLAGS+y}
8160 ac_save_CXXFLAGS=$CXXFLAGS
8161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8162 printf %s "checking whether $CXX accepts -g... " >&6; }
8163 if test ${ac_cv_prog_cxx_g+y}
8164 then :
8165 printf %s "(cached) " >&6
8166 else $as_nop
8167 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8168 ac_cxx_werror_flag=yes
8169 ac_cv_prog_cxx_g=no
8170 CXXFLAGS="-g"
8171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8172 /* end confdefs.h. */
8173
8174 int
8175 main (void)
8176 {
8177
8178 ;
8179 return 0;
8180 }
8181 _ACEOF
8182 if ac_fn_cxx_try_compile "$LINENO"
8183 then :
8184 ac_cv_prog_cxx_g=yes
8185 else $as_nop
8186 CXXFLAGS=""
8187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8188 /* end confdefs.h. */
8189
8190 int
8191 main (void)
8192 {
8193
8194 ;
8195 return 0;
8196 }
8197 _ACEOF
8198 if ac_fn_cxx_try_compile "$LINENO"
8199 then :
8200
8201 else $as_nop
8202 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8203 CXXFLAGS="-g"
8204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8205 /* end confdefs.h. */
8206
8207 int
8208 main (void)
8209 {
8210
8211 ;
8212 return 0;
8213 }
8214 _ACEOF
8215 if ac_fn_cxx_try_compile "$LINENO"
8216 then :
8217 ac_cv_prog_cxx_g=yes
8218 fi
8219 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8220 fi
8221 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8222 fi
8223 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8224 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8225 fi
8226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8227 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
8228 if test $ac_test_CXXFLAGS; then
8229 CXXFLAGS=$ac_save_CXXFLAGS
8230 elif test $ac_cv_prog_cxx_g = yes; then
8231 if test "$GXX" = yes; then
8232 CXXFLAGS="-g -O2"
8233 else
8234 CXXFLAGS="-g"
8235 fi
8236 else
8237 if test "$GXX" = yes; then
8238 CXXFLAGS="-O2"
8239 else
8240 CXXFLAGS=
8241 fi
8242 fi
8243 ac_prog_cxx_stdcxx=no
8244 if test x$ac_prog_cxx_stdcxx = xno
8245 then :
8246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
8247 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
8248 if test ${ac_cv_prog_cxx_cxx11+y}
8249 then :
8250 printf %s "(cached) " >&6
8251 else $as_nop
8252 ac_cv_prog_cxx_cxx11=no
8253 ac_save_CXX=$CXX
8254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8255 /* end confdefs.h. */
8256 $ac_cxx_conftest_cxx11_program
8257 _ACEOF
8258 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
8259 do
8260 CXX="$ac_save_CXX $ac_arg"
8261 if ac_fn_cxx_try_compile "$LINENO"
8262 then :
8263 ac_cv_prog_cxx_cxx11=$ac_arg
8264 fi
8265 rm -f core conftest.err conftest.$ac_objext conftest.beam
8266 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
8267 done
8268 rm -f conftest.$ac_ext
8269 CXX=$ac_save_CXX
8270 fi
8271
8272 if test "x$ac_cv_prog_cxx_cxx11" = xno
8273 then :
8274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8275 printf "%s\n" "unsupported" >&6; }
8276 else $as_nop
8277 if test "x$ac_cv_prog_cxx_cxx11" = x
8278 then :
8279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8280 printf "%s\n" "none needed" >&6; }
8281 else $as_nop
8282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
8283 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
8284 CXX="$CXX $ac_cv_prog_cxx_cxx11"
8285 fi
8286 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
8287 ac_prog_cxx_stdcxx=cxx11
8288 fi
8289 fi
8290 if test x$ac_prog_cxx_stdcxx = xno
8291 then :
8292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
8293 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
8294 if test ${ac_cv_prog_cxx_cxx98+y}
8295 then :
8296 printf %s "(cached) " >&6
8297 else $as_nop
8298 ac_cv_prog_cxx_cxx98=no
8299 ac_save_CXX=$CXX
8300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8301 /* end confdefs.h. */
8302 $ac_cxx_conftest_cxx98_program
8303 _ACEOF
8304 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
8305 do
8306 CXX="$ac_save_CXX $ac_arg"
8307 if ac_fn_cxx_try_compile "$LINENO"
8308 then :
8309 ac_cv_prog_cxx_cxx98=$ac_arg
8310 fi
8311 rm -f core conftest.err conftest.$ac_objext conftest.beam
8312 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
8313 done
8314 rm -f conftest.$ac_ext
8315 CXX=$ac_save_CXX
8316 fi
8317
8318 if test "x$ac_cv_prog_cxx_cxx98" = xno
8319 then :
8320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8321 printf "%s\n" "unsupported" >&6; }
8322 else $as_nop
8323 if test "x$ac_cv_prog_cxx_cxx98" = x
8324 then :
8325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8326 printf "%s\n" "none needed" >&6; }
8327 else $as_nop
8328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
8329 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
8330 CXX="$CXX $ac_cv_prog_cxx_cxx98"
8331 fi
8332 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
8333 ac_prog_cxx_stdcxx=cxx98
8334 fi
8335 fi
8336
8337 ac_ext=c
8338 ac_cpp='$CPP $CPPFLAGS'
8339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8342
8343 depcc="$CXX" am_compiler_list=
8344
8345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8346 printf %s "checking dependency style of $depcc... " >&6; }
8347 if test ${am_cv_CXX_dependencies_compiler_type+y}
8348 then :
8349 printf %s "(cached) " >&6
8350 else $as_nop
8351 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8352 # We make a subdir and do the tests there. Otherwise we can end up
8353 # making bogus files that we don't know about and never remove. For
8354 # instance it was reported that on HP-UX the gcc test will end up
8355 # making a dummy file named 'D' -- because '-MD' means "put the output
8356 # in D".
8357 rm -rf conftest.dir
8358 mkdir conftest.dir
8359 # Copy depcomp to subdir because otherwise we won't find it if we're
8360 # using a relative directory.
8361 cp "$am_depcomp" conftest.dir
8362 cd conftest.dir
8363 # We will build objects and dependencies in a subdirectory because
8364 # it helps to detect inapplicable dependency modes. For instance
8365 # both Tru64's cc and ICC support -MD to output dependencies as a
8366 # side effect of compilation, but ICC will put the dependencies in
8367 # the current directory while Tru64 will put them in the object
8368 # directory.
8369 mkdir sub
8370
8371 am_cv_CXX_dependencies_compiler_type=none
8372 if test "$am_compiler_list" = ""; then
8373 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8374 fi
8375 am__universal=false
8376 case " $depcc " in #(
8377 *\ -arch\ *\ -arch\ *) am__universal=true ;;
8378 esac
8379
8380 for depmode in $am_compiler_list; do
8381 # Setup a source with many dependencies, because some compilers
8382 # like to wrap large dependency lists on column 80 (with \), and
8383 # we should not choose a depcomp mode which is confused by this.
8384 #
8385 # We need to recreate these files for each test, as the compiler may
8386 # overwrite some of them when testing with obscure command lines.
8387 # This happens at least with the AIX C compiler.
8388 : > sub/conftest.c
8389 for i in 1 2 3 4 5 6; do
8390 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8391 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
8392 # Solaris 10 /bin/sh.
8393 echo '/* dummy */' > sub/conftst$i.h
8394 done
8395 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8396
8397 # We check with '-c' and '-o' for the sake of the "dashmstdout"
8398 # mode. It turns out that the SunPro C++ compiler does not properly
8399 # handle '-M -o', and we need to detect this. Also, some Intel
8400 # versions had trouble with output in subdirs.
8401 am__obj=sub/conftest.${OBJEXT-o}
8402 am__minus_obj="-o $am__obj"
8403 case $depmode in
8404 gcc)
8405 # This depmode causes a compiler race in universal mode.
8406 test "$am__universal" = false || continue
8407 ;;
8408 nosideeffect)
8409 # After this tag, mechanisms are not by side-effect, so they'll
8410 # only be used when explicitly requested.
8411 if test "x$enable_dependency_tracking" = xyes; then
8412 continue
8413 else
8414 break
8415 fi
8416 ;;
8417 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
8418 # This compiler won't grok '-c -o', but also, the minuso test has
8419 # not run yet. These depmodes are late enough in the game, and
8420 # so weak that their functioning should not be impacted.
8421 am__obj=conftest.${OBJEXT-o}
8422 am__minus_obj=
8423 ;;
8424 none) break ;;
8425 esac
8426 if depmode=$depmode \
8427 source=sub/conftest.c object=$am__obj \
8428 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8429 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8430 >/dev/null 2>conftest.err &&
8431 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8432 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8433 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8434 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8435 # icc doesn't choke on unknown options, it will just issue warnings
8436 # or remarks (even with -Werror). So we grep stderr for any message
8437 # that says an option was ignored or not supported.
8438 # When given -MP, icc 7.0 and 7.1 complain thusly:
8439 # icc: Command line warning: ignoring option '-M'; no argument required
8440 # The diagnosis changed in icc 8.0:
8441 # icc: Command line remark: option '-MP' not supported
8442 if (grep 'ignoring option' conftest.err ||
8443 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8444 am_cv_CXX_dependencies_compiler_type=$depmode
8445 break
8446 fi
8447 fi
8448 done
8449
8450 cd ..
8451 rm -rf conftest.dir
8452 else
8453 am_cv_CXX_dependencies_compiler_type=none
8454 fi
8455
8456 fi
8457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8458 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
8459 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8460
8461 if
8462 test "x$enable_dependency_tracking" != xno \
8463 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8464 am__fastdepCXX_TRUE=
8465 am__fastdepCXX_FALSE='#'
8466 else
8467 am__fastdepCXX_TRUE='#'
8468 am__fastdepCXX_FALSE=
8469 fi
8470
8471
8472 ac_ext=c
8473 ac_cpp='$CPP $CPPFLAGS'
8474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8477 if test -n "$ac_tool_prefix"; then
8478 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
8479 set dummy ${ac_tool_prefix}gcc; ac_word=$2
8480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8481 printf %s "checking for $ac_word... " >&6; }
8482 if test ${ac_cv_prog_CC+y}
8483 then :
8484 printf %s "(cached) " >&6
8485 else $as_nop
8486 if test -n "$CC"; then
8487 ac_cv_prog_CC="$CC" # Let the user override the test.
8488 else
8489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8490 for as_dir in $PATH
8491 do
8492 IFS=$as_save_IFS
8493 case $as_dir in #(((
8494 '') as_dir=./ ;;
8495 */) ;;
8496 *) as_dir=$as_dir/ ;;
8497 esac
8498 for ac_exec_ext in '' $ac_executable_extensions; do
8499 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8500 ac_cv_prog_CC="${ac_tool_prefix}gcc"
8501 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8502 break 2
8503 fi
8504 done
8505 done
8506 IFS=$as_save_IFS
8507
8508 fi
8509 fi
8510 CC=$ac_cv_prog_CC
8511 if test -n "$CC"; then
8512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8513 printf "%s\n" "$CC" >&6; }
8514 else
8515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8516 printf "%s\n" "no" >&6; }
8517 fi
8518
8519
8520 fi
8521 if test -z "$ac_cv_prog_CC"; then
8522 ac_ct_CC=$CC
8523 # Extract the first word of "gcc", so it can be a program name with args.
8524 set dummy gcc; ac_word=$2
8525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8526 printf %s "checking for $ac_word... " >&6; }
8527 if test ${ac_cv_prog_ac_ct_CC+y}
8528 then :
8529 printf %s "(cached) " >&6
8530 else $as_nop
8531 if test -n "$ac_ct_CC"; then
8532 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
8533 else
8534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8535 for as_dir in $PATH
8536 do
8537 IFS=$as_save_IFS
8538 case $as_dir in #(((
8539 '') as_dir=./ ;;
8540 */) ;;
8541 *) as_dir=$as_dir/ ;;
8542 esac
8543 for ac_exec_ext in '' $ac_executable_extensions; do
8544 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8545 ac_cv_prog_ac_ct_CC="gcc"
8546 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8547 break 2
8548 fi
8549 done
8550 done
8551 IFS=$as_save_IFS
8552
8553 fi
8554 fi
8555 ac_ct_CC=$ac_cv_prog_ac_ct_CC
8556 if test -n "$ac_ct_CC"; then
8557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8558 printf "%s\n" "$ac_ct_CC" >&6; }
8559 else
8560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8561 printf "%s\n" "no" >&6; }
8562 fi
8563
8564 if test "x$ac_ct_CC" = x; then
8565 CC=""
8566 else
8567 case $cross_compiling:$ac_tool_warned in
8568 yes:)
8569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8570 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8571 ac_tool_warned=yes ;;
8572 esac
8573 CC=$ac_ct_CC
8574 fi
8575 else
8576 CC="$ac_cv_prog_CC"
8577 fi
8578
8579 if test -z "$CC"; then
8580 if test -n "$ac_tool_prefix"; then
8581 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
8582 set dummy ${ac_tool_prefix}cc; ac_word=$2
8583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8584 printf %s "checking for $ac_word... " >&6; }
8585 if test ${ac_cv_prog_CC+y}
8586 then :
8587 printf %s "(cached) " >&6
8588 else $as_nop
8589 if test -n "$CC"; then
8590 ac_cv_prog_CC="$CC" # Let the user override the test.
8591 else
8592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8593 for as_dir in $PATH
8594 do
8595 IFS=$as_save_IFS
8596 case $as_dir in #(((
8597 '') as_dir=./ ;;
8598 */) ;;
8599 *) as_dir=$as_dir/ ;;
8600 esac
8601 for ac_exec_ext in '' $ac_executable_extensions; do
8602 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8603 ac_cv_prog_CC="${ac_tool_prefix}cc"
8604 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8605 break 2
8606 fi
8607 done
8608 done
8609 IFS=$as_save_IFS
8610
8611 fi
8612 fi
8613 CC=$ac_cv_prog_CC
8614 if test -n "$CC"; then
8615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8616 printf "%s\n" "$CC" >&6; }
8617 else
8618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8619 printf "%s\n" "no" >&6; }
8620 fi
8621
8622
8623 fi
8624 fi
8625 if test -z "$CC"; then
8626 # Extract the first word of "cc", so it can be a program name with args.
8627 set dummy cc; ac_word=$2
8628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8629 printf %s "checking for $ac_word... " >&6; }
8630 if test ${ac_cv_prog_CC+y}
8631 then :
8632 printf %s "(cached) " >&6
8633 else $as_nop
8634 if test -n "$CC"; then
8635 ac_cv_prog_CC="$CC" # Let the user override the test.
8636 else
8637 ac_prog_rejected=no
8638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8639 for as_dir in $PATH
8640 do
8641 IFS=$as_save_IFS
8642 case $as_dir in #(((
8643 '') as_dir=./ ;;
8644 */) ;;
8645 *) as_dir=$as_dir/ ;;
8646 esac
8647 for ac_exec_ext in '' $ac_executable_extensions; do
8648 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8649 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
8650 ac_prog_rejected=yes
8651 continue
8652 fi
8653 ac_cv_prog_CC="cc"
8654 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8655 break 2
8656 fi
8657 done
8658 done
8659 IFS=$as_save_IFS
8660
8661 if test $ac_prog_rejected = yes; then
8662 # We found a bogon in the path, so make sure we never use it.
8663 set dummy $ac_cv_prog_CC
8664 shift
8665 if test $# != 0; then
8666 # We chose a different compiler from the bogus one.
8667 # However, it has the same basename, so the bogon will be chosen
8668 # first if we set CC to just the basename; use the full file name.
8669 shift
8670 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
8671 fi
8672 fi
8673 fi
8674 fi
8675 CC=$ac_cv_prog_CC
8676 if test -n "$CC"; then
8677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8678 printf "%s\n" "$CC" >&6; }
8679 else
8680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8681 printf "%s\n" "no" >&6; }
8682 fi
8683
8684
8685 fi
8686 if test -z "$CC"; then
8687 if test -n "$ac_tool_prefix"; then
8688 for ac_prog in cl.exe
8689 do
8690 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8691 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8693 printf %s "checking for $ac_word... " >&6; }
8694 if test ${ac_cv_prog_CC+y}
8695 then :
8696 printf %s "(cached) " >&6
8697 else $as_nop
8698 if test -n "$CC"; then
8699 ac_cv_prog_CC="$CC" # Let the user override the test.
8700 else
8701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8702 for as_dir in $PATH
8703 do
8704 IFS=$as_save_IFS
8705 case $as_dir in #(((
8706 '') as_dir=./ ;;
8707 */) ;;
8708 *) as_dir=$as_dir/ ;;
8709 esac
8710 for ac_exec_ext in '' $ac_executable_extensions; do
8711 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8712 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
8713 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8714 break 2
8715 fi
8716 done
8717 done
8718 IFS=$as_save_IFS
8719
8720 fi
8721 fi
8722 CC=$ac_cv_prog_CC
8723 if test -n "$CC"; then
8724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8725 printf "%s\n" "$CC" >&6; }
8726 else
8727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8728 printf "%s\n" "no" >&6; }
8729 fi
8730
8731
8732 test -n "$CC" && break
8733 done
8734 fi
8735 if test -z "$CC"; then
8736 ac_ct_CC=$CC
8737 for ac_prog in cl.exe
8738 do
8739 # Extract the first word of "$ac_prog", so it can be a program name with args.
8740 set dummy $ac_prog; ac_word=$2
8741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8742 printf %s "checking for $ac_word... " >&6; }
8743 if test ${ac_cv_prog_ac_ct_CC+y}
8744 then :
8745 printf %s "(cached) " >&6
8746 else $as_nop
8747 if test -n "$ac_ct_CC"; then
8748 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
8749 else
8750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8751 for as_dir in $PATH
8752 do
8753 IFS=$as_save_IFS
8754 case $as_dir in #(((
8755 '') as_dir=./ ;;
8756 */) ;;
8757 *) as_dir=$as_dir/ ;;
8758 esac
8759 for ac_exec_ext in '' $ac_executable_extensions; do
8760 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8761 ac_cv_prog_ac_ct_CC="$ac_prog"
8762 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8763 break 2
8764 fi
8765 done
8766 done
8767 IFS=$as_save_IFS
8768
8769 fi
8770 fi
8771 ac_ct_CC=$ac_cv_prog_ac_ct_CC
8772 if test -n "$ac_ct_CC"; then
8773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8774 printf "%s\n" "$ac_ct_CC" >&6; }
8775 else
8776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8777 printf "%s\n" "no" >&6; }
8778 fi
8779
8780
8781 test -n "$ac_ct_CC" && break
8782 done
8783
8784 if test "x$ac_ct_CC" = x; then
8785 CC=""
8786 else
8787 case $cross_compiling:$ac_tool_warned in
8788 yes:)
8789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8790 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8791 ac_tool_warned=yes ;;
8792 esac
8793 CC=$ac_ct_CC
8794 fi
8795 fi
8796
8797 fi
8798 if test -z "$CC"; then
8799 if test -n "$ac_tool_prefix"; then
8800 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
8801 set dummy ${ac_tool_prefix}clang; ac_word=$2
8802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8803 printf %s "checking for $ac_word... " >&6; }
8804 if test ${ac_cv_prog_CC+y}
8805 then :
8806 printf %s "(cached) " >&6
8807 else $as_nop
8808 if test -n "$CC"; then
8809 ac_cv_prog_CC="$CC" # Let the user override the test.
8810 else
8811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8812 for as_dir in $PATH
8813 do
8814 IFS=$as_save_IFS
8815 case $as_dir in #(((
8816 '') as_dir=./ ;;
8817 */) ;;
8818 *) as_dir=$as_dir/ ;;
8819 esac
8820 for ac_exec_ext in '' $ac_executable_extensions; do
8821 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8822 ac_cv_prog_CC="${ac_tool_prefix}clang"
8823 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8824 break 2
8825 fi
8826 done
8827 done
8828 IFS=$as_save_IFS
8829
8830 fi
8831 fi
8832 CC=$ac_cv_prog_CC
8833 if test -n "$CC"; then
8834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8835 printf "%s\n" "$CC" >&6; }
8836 else
8837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8838 printf "%s\n" "no" >&6; }
8839 fi
8840
8841
8842 fi
8843 if test -z "$ac_cv_prog_CC"; then
8844 ac_ct_CC=$CC
8845 # Extract the first word of "clang", so it can be a program name with args.
8846 set dummy clang; ac_word=$2
8847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8848 printf %s "checking for $ac_word... " >&6; }
8849 if test ${ac_cv_prog_ac_ct_CC+y}
8850 then :
8851 printf %s "(cached) " >&6
8852 else $as_nop
8853 if test -n "$ac_ct_CC"; then
8854 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
8855 else
8856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8857 for as_dir in $PATH
8858 do
8859 IFS=$as_save_IFS
8860 case $as_dir in #(((
8861 '') as_dir=./ ;;
8862 */) ;;
8863 *) as_dir=$as_dir/ ;;
8864 esac
8865 for ac_exec_ext in '' $ac_executable_extensions; do
8866 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8867 ac_cv_prog_ac_ct_CC="clang"
8868 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8869 break 2
8870 fi
8871 done
8872 done
8873 IFS=$as_save_IFS
8874
8875 fi
8876 fi
8877 ac_ct_CC=$ac_cv_prog_ac_ct_CC
8878 if test -n "$ac_ct_CC"; then
8879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8880 printf "%s\n" "$ac_ct_CC" >&6; }
8881 else
8882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8883 printf "%s\n" "no" >&6; }
8884 fi
8885
8886 if test "x$ac_ct_CC" = x; then
8887 CC=""
8888 else
8889 case $cross_compiling:$ac_tool_warned in
8890 yes:)
8891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8892 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8893 ac_tool_warned=yes ;;
8894 esac
8895 CC=$ac_ct_CC
8896 fi
8897 else
8898 CC="$ac_cv_prog_CC"
8899 fi
8900
8901 fi
8902
8903
8904 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8905 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8906 as_fn_error $? "no acceptable C compiler found in \$PATH
8907 See \`config.log' for more details" "$LINENO" 5; }
8908
8909 # Provide some information about the compiler.
8910 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
8911 set X $ac_compile
8912 ac_compiler=$2
8913 for ac_option in --version -v -V -qversion -version; do
8914 { { ac_try="$ac_compiler $ac_option >&5"
8915 case "(($ac_try" in
8916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8917 *) ac_try_echo=$ac_try;;
8918 esac
8919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8920 printf "%s\n" "$ac_try_echo"; } >&5
8921 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8922 ac_status=$?
8923 if test -s conftest.err; then
8924 sed '10a\
8925 ... rest of stderr output deleted ...
8926 10q' conftest.err >conftest.er1
8927 cat conftest.er1 >&5
8928 fi
8929 rm -f conftest.er1 conftest.err
8930 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8931 test $ac_status = 0; }
8932 done
8933
8934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
8935 printf %s "checking whether the compiler supports GNU C... " >&6; }
8936 if test ${ac_cv_c_compiler_gnu+y}
8937 then :
8938 printf %s "(cached) " >&6
8939 else $as_nop
8940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8941 /* end confdefs.h. */
8942
8943 int
8944 main (void)
8945 {
8946 #ifndef __GNUC__
8947 choke me
8948 #endif
8949
8950 ;
8951 return 0;
8952 }
8953 _ACEOF
8954 if ac_fn_c_try_compile "$LINENO"
8955 then :
8956 ac_compiler_gnu=yes
8957 else $as_nop
8958 ac_compiler_gnu=no
8959 fi
8960 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8961 ac_cv_c_compiler_gnu=$ac_compiler_gnu
8962
8963 fi
8964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
8965 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
8966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8967
8968 if test $ac_compiler_gnu = yes; then
8969 GCC=yes
8970 else
8971 GCC=
8972 fi
8973 ac_test_CFLAGS=${CFLAGS+y}
8974 ac_save_CFLAGS=$CFLAGS
8975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
8976 printf %s "checking whether $CC accepts -g... " >&6; }
8977 if test ${ac_cv_prog_cc_g+y}
8978 then :
8979 printf %s "(cached) " >&6
8980 else $as_nop
8981 ac_save_c_werror_flag=$ac_c_werror_flag
8982 ac_c_werror_flag=yes
8983 ac_cv_prog_cc_g=no
8984 CFLAGS="-g"
8985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8986 /* end confdefs.h. */
8987
8988 int
8989 main (void)
8990 {
8991
8992 ;
8993 return 0;
8994 }
8995 _ACEOF
8996 if ac_fn_c_try_compile "$LINENO"
8997 then :
8998 ac_cv_prog_cc_g=yes
8999 else $as_nop
9000 CFLAGS=""
9001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9002 /* end confdefs.h. */
9003
9004 int
9005 main (void)
9006 {
9007
9008 ;
9009 return 0;
9010 }
9011 _ACEOF
9012 if ac_fn_c_try_compile "$LINENO"
9013 then :
9014
9015 else $as_nop
9016 ac_c_werror_flag=$ac_save_c_werror_flag
9017 CFLAGS="-g"
9018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9019 /* end confdefs.h. */
9020
9021 int
9022 main (void)
9023 {
9024
9025 ;
9026 return 0;
9027 }
9028 _ACEOF
9029 if ac_fn_c_try_compile "$LINENO"
9030 then :
9031 ac_cv_prog_cc_g=yes
9032 fi
9033 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9034 fi
9035 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9036 fi
9037 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9038 ac_c_werror_flag=$ac_save_c_werror_flag
9039 fi
9040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
9041 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
9042 if test $ac_test_CFLAGS; then
9043 CFLAGS=$ac_save_CFLAGS
9044 elif test $ac_cv_prog_cc_g = yes; then
9045 if test "$GCC" = yes; then
9046 CFLAGS="-g -O2"
9047 else
9048 CFLAGS="-g"
9049 fi
9050 else
9051 if test "$GCC" = yes; then
9052 CFLAGS="-O2"
9053 else
9054 CFLAGS=
9055 fi
9056 fi
9057 ac_prog_cc_stdc=no
9058 if test x$ac_prog_cc_stdc = xno
9059 then :
9060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
9061 printf %s "checking for $CC option to enable C11 features... " >&6; }
9062 if test ${ac_cv_prog_cc_c11+y}
9063 then :
9064 printf %s "(cached) " >&6
9065 else $as_nop
9066 ac_cv_prog_cc_c11=no
9067 ac_save_CC=$CC
9068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9069 /* end confdefs.h. */
9070 $ac_c_conftest_c11_program
9071 _ACEOF
9072 for ac_arg in '' -std=gnu11
9073 do
9074 CC="$ac_save_CC $ac_arg"
9075 if ac_fn_c_try_compile "$LINENO"
9076 then :
9077 ac_cv_prog_cc_c11=$ac_arg
9078 fi
9079 rm -f core conftest.err conftest.$ac_objext conftest.beam
9080 test "x$ac_cv_prog_cc_c11" != "xno" && break
9081 done
9082 rm -f conftest.$ac_ext
9083 CC=$ac_save_CC
9084 fi
9085
9086 if test "x$ac_cv_prog_cc_c11" = xno
9087 then :
9088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
9089 printf "%s\n" "unsupported" >&6; }
9090 else $as_nop
9091 if test "x$ac_cv_prog_cc_c11" = x
9092 then :
9093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
9094 printf "%s\n" "none needed" >&6; }
9095 else $as_nop
9096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
9097 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
9098 CC="$CC $ac_cv_prog_cc_c11"
9099 fi
9100 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
9101 ac_prog_cc_stdc=c11
9102 fi
9103 fi
9104 if test x$ac_prog_cc_stdc = xno
9105 then :
9106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
9107 printf %s "checking for $CC option to enable C99 features... " >&6; }
9108 if test ${ac_cv_prog_cc_c99+y}
9109 then :
9110 printf %s "(cached) " >&6
9111 else $as_nop
9112 ac_cv_prog_cc_c99=no
9113 ac_save_CC=$CC
9114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9115 /* end confdefs.h. */
9116 $ac_c_conftest_c99_program
9117 _ACEOF
9118 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
9119 do
9120 CC="$ac_save_CC $ac_arg"
9121 if ac_fn_c_try_compile "$LINENO"
9122 then :
9123 ac_cv_prog_cc_c99=$ac_arg
9124 fi
9125 rm -f core conftest.err conftest.$ac_objext conftest.beam
9126 test "x$ac_cv_prog_cc_c99" != "xno" && break
9127 done
9128 rm -f conftest.$ac_ext
9129 CC=$ac_save_CC
9130 fi
9131
9132 if test "x$ac_cv_prog_cc_c99" = xno
9133 then :
9134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
9135 printf "%s\n" "unsupported" >&6; }
9136 else $as_nop
9137 if test "x$ac_cv_prog_cc_c99" = x
9138 then :
9139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
9140 printf "%s\n" "none needed" >&6; }
9141 else $as_nop
9142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
9143 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
9144 CC="$CC $ac_cv_prog_cc_c99"
9145 fi
9146 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
9147 ac_prog_cc_stdc=c99
9148 fi
9149 fi
9150 if test x$ac_prog_cc_stdc = xno
9151 then :
9152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
9153 printf %s "checking for $CC option to enable C89 features... " >&6; }
9154 if test ${ac_cv_prog_cc_c89+y}
9155 then :
9156 printf %s "(cached) " >&6
9157 else $as_nop
9158 ac_cv_prog_cc_c89=no
9159 ac_save_CC=$CC
9160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9161 /* end confdefs.h. */
9162 $ac_c_conftest_c89_program
9163 _ACEOF
9164 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
9165 do
9166 CC="$ac_save_CC $ac_arg"
9167 if ac_fn_c_try_compile "$LINENO"
9168 then :
9169 ac_cv_prog_cc_c89=$ac_arg
9170 fi
9171 rm -f core conftest.err conftest.$ac_objext conftest.beam
9172 test "x$ac_cv_prog_cc_c89" != "xno" && break
9173 done
9174 rm -f conftest.$ac_ext
9175 CC=$ac_save_CC
9176 fi
9177
9178 if test "x$ac_cv_prog_cc_c89" = xno
9179 then :
9180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
9181 printf "%s\n" "unsupported" >&6; }
9182 else $as_nop
9183 if test "x$ac_cv_prog_cc_c89" = x
9184 then :
9185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
9186 printf "%s\n" "none needed" >&6; }
9187 else $as_nop
9188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
9189 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
9190 CC="$CC $ac_cv_prog_cc_c89"
9191 fi
9192 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
9193 ac_prog_cc_stdc=c89
9194 fi
9195 fi
9196
9197 ac_ext=c
9198 ac_cpp='$CPP $CPPFLAGS'
9199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9202
9203
9204 ac_ext=c
9205 ac_cpp='$CPP $CPPFLAGS'
9206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
9210 printf %s "checking whether $CC understands -c and -o together... " >&6; }
9211 if test ${am_cv_prog_cc_c_o+y}
9212 then :
9213 printf %s "(cached) " >&6
9214 else $as_nop
9215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9216 /* end confdefs.h. */
9217
9218 int
9219 main (void)
9220 {
9221
9222 ;
9223 return 0;
9224 }
9225 _ACEOF
9226 # Make sure it works both with $CC and with simple cc.
9227 # Following AC_PROG_CC_C_O, we do the test twice because some
9228 # compilers refuse to overwrite an existing .o file with -o,
9229 # though they will create one.
9230 am_cv_prog_cc_c_o=yes
9231 for am_i in 1 2; do
9232 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
9233 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
9234 ac_status=$?
9235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236 (exit $ac_status); } \
9237 && test -f conftest2.$ac_objext; then
9238 : OK
9239 else
9240 am_cv_prog_cc_c_o=no
9241 break
9242 fi
9243 done
9244 rm -f core conftest*
9245 unset am_i
9246 fi
9247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
9248 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
9249 if test "$am_cv_prog_cc_c_o" != yes; then
9250 # Losing compiler, so override with the script.
9251 # FIXME: It is wrong to rewrite CC.
9252 # But if we don't then we get into trouble of one sort or another.
9253 # A longer-term fix would be to have automake use am__CC in this case,
9254 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
9255 CC="$am_aux_dir/compile $CC"
9256 fi
9257 ac_ext=c
9258 ac_cpp='$CPP $CPPFLAGS'
9259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9262
9263
9264 depcc="$CC" am_compiler_list=
9265
9266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9267 printf %s "checking dependency style of $depcc... " >&6; }
9268 if test ${am_cv_CC_dependencies_compiler_type+y}
9269 then :
9270 printf %s "(cached) " >&6
9271 else $as_nop
9272 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9273 # We make a subdir and do the tests there. Otherwise we can end up
9274 # making bogus files that we don't know about and never remove. For
9275 # instance it was reported that on HP-UX the gcc test will end up
9276 # making a dummy file named 'D' -- because '-MD' means "put the output
9277 # in D".
9278 rm -rf conftest.dir
9279 mkdir conftest.dir
9280 # Copy depcomp to subdir because otherwise we won't find it if we're
9281 # using a relative directory.
9282 cp "$am_depcomp" conftest.dir
9283 cd conftest.dir
9284 # We will build objects and dependencies in a subdirectory because
9285 # it helps to detect inapplicable dependency modes. For instance
9286 # both Tru64's cc and ICC support -MD to output dependencies as a
9287 # side effect of compilation, but ICC will put the dependencies in
9288 # the current directory while Tru64 will put them in the object
9289 # directory.
9290 mkdir sub
9291
9292 am_cv_CC_dependencies_compiler_type=none
9293 if test "$am_compiler_list" = ""; then
9294 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9295 fi
9296 am__universal=false
9297 case " $depcc " in #(
9298 *\ -arch\ *\ -arch\ *) am__universal=true ;;
9299 esac
9300
9301 for depmode in $am_compiler_list; do
9302 # Setup a source with many dependencies, because some compilers
9303 # like to wrap large dependency lists on column 80 (with \), and
9304 # we should not choose a depcomp mode which is confused by this.
9305 #
9306 # We need to recreate these files for each test, as the compiler may
9307 # overwrite some of them when testing with obscure command lines.
9308 # This happens at least with the AIX C compiler.
9309 : > sub/conftest.c
9310 for i in 1 2 3 4 5 6; do
9311 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9312 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
9313 # Solaris 10 /bin/sh.
9314 echo '/* dummy */' > sub/conftst$i.h
9315 done
9316 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9317
9318 # We check with '-c' and '-o' for the sake of the "dashmstdout"
9319 # mode. It turns out that the SunPro C++ compiler does not properly
9320 # handle '-M -o', and we need to detect this. Also, some Intel
9321 # versions had trouble with output in subdirs.
9322 am__obj=sub/conftest.${OBJEXT-o}
9323 am__minus_obj="-o $am__obj"
9324 case $depmode in
9325 gcc)
9326 # This depmode causes a compiler race in universal mode.
9327 test "$am__universal" = false || continue
9328 ;;
9329 nosideeffect)
9330 # After this tag, mechanisms are not by side-effect, so they'll
9331 # only be used when explicitly requested.
9332 if test "x$enable_dependency_tracking" = xyes; then
9333 continue
9334 else
9335 break
9336 fi
9337 ;;
9338 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
9339 # This compiler won't grok '-c -o', but also, the minuso test has
9340 # not run yet. These depmodes are late enough in the game, and
9341 # so weak that their functioning should not be impacted.
9342 am__obj=conftest.${OBJEXT-o}
9343 am__minus_obj=
9344 ;;
9345 none) break ;;
9346 esac
9347 if depmode=$depmode \
9348 source=sub/conftest.c object=$am__obj \
9349 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9350 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
9351 >/dev/null 2>conftest.err &&
9352 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9353 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9354 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
9355 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9356 # icc doesn't choke on unknown options, it will just issue warnings
9357 # or remarks (even with -Werror). So we grep stderr for any message
9358 # that says an option was ignored or not supported.
9359 # When given -MP, icc 7.0 and 7.1 complain thusly:
9360 # icc: Command line warning: ignoring option '-M'; no argument required
9361 # The diagnosis changed in icc 8.0:
9362 # icc: Command line remark: option '-MP' not supported
9363 if (grep 'ignoring option' conftest.err ||
9364 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9365 am_cv_CC_dependencies_compiler_type=$depmode
9366 break
9367 fi
9368 fi
9369 done
9370
9371 cd ..
9372 rm -rf conftest.dir
9373 else
9374 am_cv_CC_dependencies_compiler_type=none
9375 fi
9376
9377 fi
9378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
9379 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
9380 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
9381
9382 if
9383 test "x$enable_dependency_tracking" != xno \
9384 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
9385 am__fastdepCC_TRUE=
9386 am__fastdepCC_FALSE='#'
9387 else
9388 am__fastdepCC_TRUE='#'
9389 am__fastdepCC_FALSE=
9390 fi
9391
9392
9393 if test -n "$ac_tool_prefix"; then
9394 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9395 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9397 printf %s "checking for $ac_word... " >&6; }
9398 if test ${ac_cv_prog_RANLIB+y}
9399 then :
9400 printf %s "(cached) " >&6
9401 else $as_nop
9402 if test -n "$RANLIB"; then
9403 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9404 else
9405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9406 for as_dir in $PATH
9407 do
9408 IFS=$as_save_IFS
9409 case $as_dir in #(((
9410 '') as_dir=./ ;;
9411 */) ;;
9412 *) as_dir=$as_dir/ ;;
9413 esac
9414 for ac_exec_ext in '' $ac_executable_extensions; do
9415 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9416 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9417 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9418 break 2
9419 fi
9420 done
9421 done
9422 IFS=$as_save_IFS
9423
9424 fi
9425 fi
9426 RANLIB=$ac_cv_prog_RANLIB
9427 if test -n "$RANLIB"; then
9428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9429 printf "%s\n" "$RANLIB" >&6; }
9430 else
9431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9432 printf "%s\n" "no" >&6; }
9433 fi
9434
9435
9436 fi
9437 if test -z "$ac_cv_prog_RANLIB"; then
9438 ac_ct_RANLIB=$RANLIB
9439 # Extract the first word of "ranlib", so it can be a program name with args.
9440 set dummy ranlib; ac_word=$2
9441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9442 printf %s "checking for $ac_word... " >&6; }
9443 if test ${ac_cv_prog_ac_ct_RANLIB+y}
9444 then :
9445 printf %s "(cached) " >&6
9446 else $as_nop
9447 if test -n "$ac_ct_RANLIB"; then
9448 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9449 else
9450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9451 for as_dir in $PATH
9452 do
9453 IFS=$as_save_IFS
9454 case $as_dir in #(((
9455 '') as_dir=./ ;;
9456 */) ;;
9457 *) as_dir=$as_dir/ ;;
9458 esac
9459 for ac_exec_ext in '' $ac_executable_extensions; do
9460 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9461 ac_cv_prog_ac_ct_RANLIB="ranlib"
9462 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9463 break 2
9464 fi
9465 done
9466 done
9467 IFS=$as_save_IFS
9468
9469 fi
9470 fi
9471 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9472 if test -n "$ac_ct_RANLIB"; then
9473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9474 printf "%s\n" "$ac_ct_RANLIB" >&6; }
9475 else
9476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9477 printf "%s\n" "no" >&6; }
9478 fi
9479
9480 if test "x$ac_ct_RANLIB" = x; then
9481 RANLIB=":"
9482 else
9483 case $cross_compiling:$ac_tool_warned in
9484 yes:)
9485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9486 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9487 ac_tool_warned=yes ;;
9488 esac
9489 RANLIB=$ac_ct_RANLIB
9490 fi
9491 else
9492 RANLIB="$ac_cv_prog_RANLIB"
9493 fi
9494
9495
9496 # Checks for libraries.
9497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
9498 printf %s "checking for main in -lm... " >&6; }
9499 if test ${ac_cv_lib_m_main+y}
9500 then :
9501 printf %s "(cached) " >&6
9502 else $as_nop
9503 ac_check_lib_save_LIBS=$LIBS
9504 LIBS="-lm $LIBS"
9505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9506 /* end confdefs.h. */
9507
9508
9509 int
9510 main (void)
9511 {
9512 return main ();
9513 ;
9514 return 0;
9515 }
9516 _ACEOF
9517 if ac_fn_c_try_link "$LINENO"
9518 then :
9519 ac_cv_lib_m_main=yes
9520 else $as_nop
9521 ac_cv_lib_m_main=no
9522 fi
9523 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9524 conftest$ac_exeext conftest.$ac_ext
9525 LIBS=$ac_check_lib_save_LIBS
9526 fi
9527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
9528 printf "%s\n" "$ac_cv_lib_m_main" >&6; }
9529 if test "x$ac_cv_lib_m_main" = xyes
9530 then :
9531 printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h
9532
9533 LIBS="-lm $LIBS"
9534
9535 else $as_nop
9536 as_fn_error $? "lib math is needed" "$LINENO" 5
9537 fi
9538
9539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lSDL2" >&5
9540 printf %s "checking for main in -lSDL2... " >&6; }
9541 if test ${ac_cv_lib_SDL2_main+y}
9542 then :
9543 printf %s "(cached) " >&6
9544 else $as_nop
9545 ac_check_lib_save_LIBS=$LIBS
9546 LIBS="-lSDL2 $LIBS"
9547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9548 /* end confdefs.h. */
9549
9550
9551 int
9552 main (void)
9553 {
9554 return main ();
9555 ;
9556 return 0;
9557 }
9558 _ACEOF
9559 if ac_fn_c_try_link "$LINENO"
9560 then :
9561 ac_cv_lib_SDL2_main=yes
9562 else $as_nop
9563 ac_cv_lib_SDL2_main=no
9564 fi
9565 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9566 conftest$ac_exeext conftest.$ac_ext
9567 LIBS=$ac_check_lib_save_LIBS
9568 fi
9569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL2_main" >&5
9570 printf "%s\n" "$ac_cv_lib_SDL2_main" >&6; }
9571 if test "x$ac_cv_lib_SDL2_main" = xyes
9572 then :
9573 printf "%s\n" "#define HAVE_LIBSDL2 1" >>confdefs.h
9574
9575 LIBS="-lSDL2 $LIBS"
9576
9577 else $as_nop
9578 as_fn_error $? "lib SDL2 is needed" "$LINENO" 5
9579 fi
9580
9581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lSDL2_ttf" >&5
9582 printf %s "checking for main in -lSDL2_ttf... " >&6; }
9583 if test ${ac_cv_lib_SDL2_ttf_main+y}
9584 then :
9585 printf %s "(cached) " >&6
9586 else $as_nop
9587 ac_check_lib_save_LIBS=$LIBS
9588 LIBS="-lSDL2_ttf $LIBS"
9589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9590 /* end confdefs.h. */
9591
9592
9593 int
9594 main (void)
9595 {
9596 return main ();
9597 ;
9598 return 0;
9599 }
9600 _ACEOF
9601 if ac_fn_c_try_link "$LINENO"
9602 then :
9603 ac_cv_lib_SDL2_ttf_main=yes
9604 else $as_nop
9605 ac_cv_lib_SDL2_ttf_main=no
9606 fi
9607 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9608 conftest$ac_exeext conftest.$ac_ext
9609 LIBS=$ac_check_lib_save_LIBS
9610 fi
9611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL2_ttf_main" >&5
9612 printf "%s\n" "$ac_cv_lib_SDL2_ttf_main" >&6; }
9613 if test "x$ac_cv_lib_SDL2_ttf_main" = xyes
9614 then :
9615 printf "%s\n" "#define HAVE_LIBSDL2_TTF 1" >>confdefs.h
9616
9617 LIBS="-lSDL2_ttf $LIBS"
9618
9619 else $as_nop
9620 as_fn_error $? "lib SDL2 ttf is needed" "$LINENO" 5
9621 fi
9622
9623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lSDL2_image" >&5
9624 printf %s "checking for main in -lSDL2_image... " >&6; }
9625 if test ${ac_cv_lib_SDL2_image_main+y}
9626 then :
9627 printf %s "(cached) " >&6
9628 else $as_nop
9629 ac_check_lib_save_LIBS=$LIBS
9630 LIBS="-lSDL2_image $LIBS"
9631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9632 /* end confdefs.h. */
9633
9634
9635 int
9636 main (void)
9637 {
9638 return main ();
9639 ;
9640 return 0;
9641 }
9642 _ACEOF
9643 if ac_fn_c_try_link "$LINENO"
9644 then :
9645 ac_cv_lib_SDL2_image_main=yes
9646 else $as_nop
9647 ac_cv_lib_SDL2_image_main=no
9648 fi
9649 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9650 conftest$ac_exeext conftest.$ac_ext
9651 LIBS=$ac_check_lib_save_LIBS
9652 fi
9653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL2_image_main" >&5
9654 printf "%s\n" "$ac_cv_lib_SDL2_image_main" >&6; }
9655 if test "x$ac_cv_lib_SDL2_image_main" = xyes
9656 then :
9657 printf "%s\n" "#define HAVE_LIBSDL2_IMAGE 1" >>confdefs.h
9658
9659 LIBS="-lSDL2_image $LIBS"
9660
9661 else $as_nop
9662 as_fn_error $? "lib SDL2 image is needed" "$LINENO" 5
9663 fi
9664
9665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lSDL2_mixer" >&5
9666 printf %s "checking for main in -lSDL2_mixer... " >&6; }
9667 if test ${ac_cv_lib_SDL2_mixer_main+y}
9668 then :
9669 printf %s "(cached) " >&6
9670 else $as_nop
9671 ac_check_lib_save_LIBS=$LIBS
9672 LIBS="-lSDL2_mixer $LIBS"
9673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9674 /* end confdefs.h. */
9675
9676
9677 int
9678 main (void)
9679 {
9680 return main ();
9681 ;
9682 return 0;
9683 }
9684 _ACEOF
9685 if ac_fn_c_try_link "$LINENO"
9686 then :
9687 ac_cv_lib_SDL2_mixer_main=yes
9688 else $as_nop
9689 ac_cv_lib_SDL2_mixer_main=no
9690 fi
9691 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9692 conftest$ac_exeext conftest.$ac_ext
9693 LIBS=$ac_check_lib_save_LIBS
9694 fi
9695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL2_mixer_main" >&5
9696 printf "%s\n" "$ac_cv_lib_SDL2_mixer_main" >&6; }
9697 if test "x$ac_cv_lib_SDL2_mixer_main" = xyes
9698 then :
9699 printf "%s\n" "#define HAVE_LIBSDL2_MIXER 1" >>confdefs.h
9700
9701 LIBS="-lSDL2_mixer $LIBS"
9702
9703 else $as_nop
9704 as_fn_error $? "lib SDL2 mixer is needed" "$LINENO" 5
9705 fi
9706
9707
9708 # Checks for header files.
9709 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
9710 if test "x$ac_cv_header_stdlib_h" = xyes
9711 then :
9712 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
9713
9714 fi
9715 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
9716 if test "x$ac_cv_header_string_h" = xyes
9717 then :
9718 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
9719
9720 fi
9721
9722
9723 # Checks for typedefs, structures, and compiler characteristics.
9724 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
9725 if test "x$ac_cv_type__Bool" = xyes
9726 then :
9727
9728 printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h
9729
9730
9731 fi
9732
9733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
9734 printf %s "checking for stdbool.h that conforms to C99... " >&6; }
9735 if test ${ac_cv_header_stdbool_h+y}
9736 then :
9737 printf %s "(cached) " >&6
9738 else $as_nop
9739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9740 /* end confdefs.h. */
9741 #include <stdbool.h>
9742
9743 #ifndef __bool_true_false_are_defined
9744 #error "__bool_true_false_are_defined is not defined"
9745 #endif
9746 char a[__bool_true_false_are_defined == 1 ? 1 : -1];
9747
9748 /* Regardless of whether this is C++ or "_Bool" is a
9749 valid type name, "true" and "false" should be usable
9750 in #if expressions and integer constant expressions,
9751 and "bool" should be a valid type name. */
9752
9753 #if !true
9754 #error "'true' is not true"
9755 #endif
9756 #if true != 1
9757 #error "'true' is not equal to 1"
9758 #endif
9759 char b[true == 1 ? 1 : -1];
9760 char c[true];
9761
9762 #if false
9763 #error "'false' is not false"
9764 #endif
9765 #if false != 0
9766 #error "'false' is not equal to 0"
9767 #endif
9768 char d[false == 0 ? 1 : -1];
9769
9770 enum { e = false, f = true, g = false * true, h = true * 256 };
9771
9772 char i[(bool) 0.5 == true ? 1 : -1];
9773 char j[(bool) 0.0 == false ? 1 : -1];
9774 char k[sizeof (bool) > 0 ? 1 : -1];
9775
9776 struct sb { bool s: 1; bool t; } s;
9777 char l[sizeof s.t > 0 ? 1 : -1];
9778
9779 /* The following fails for
9780 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
9781 bool m[h];
9782 char n[sizeof m == h * sizeof m[0] ? 1 : -1];
9783 char o[-1 - (bool) 0 < 0 ? 1 : -1];
9784 /* Catch a bug in an HP-UX C compiler. See
9785 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
9786 https://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
9787 */
9788 bool p = true;
9789 bool *pp = &p;
9790
9791 /* C 1999 specifies that bool, true, and false are to be
9792 macros, but C++ 2011 and later overrule this. */
9793 #if __cplusplus < 201103
9794 #ifndef bool
9795 #error "bool is not defined"
9796 #endif
9797 #ifndef false
9798 #error "false is not defined"
9799 #endif
9800 #ifndef true
9801 #error "true is not defined"
9802 #endif
9803 #endif
9804
9805 /* If _Bool is available, repeat with it all the tests
9806 above that used bool. */
9807 #ifdef HAVE__BOOL
9808 struct sB { _Bool s: 1; _Bool t; } t;
9809
9810 char q[(_Bool) 0.5 == true ? 1 : -1];
9811 char r[(_Bool) 0.0 == false ? 1 : -1];
9812 char u[sizeof (_Bool) > 0 ? 1 : -1];
9813 char v[sizeof t.t > 0 ? 1 : -1];
9814
9815 _Bool w[h];
9816 char x[sizeof m == h * sizeof m[0] ? 1 : -1];
9817 char y[-1 - (_Bool) 0 < 0 ? 1 : -1];
9818 _Bool z = true;
9819 _Bool *pz = &p;
9820 #endif
9821
9822 int
9823 main (void)
9824 {
9825
9826 bool ps = &s;
9827 *pp |= p;
9828 *pp |= ! p;
9829
9830 #ifdef HAVE__BOOL
9831 _Bool pt = &t;
9832 *pz |= z;
9833 *pz |= ! z;
9834 #endif
9835
9836 /* Refer to every declared value, so they cannot be
9837 discarded as unused. */
9838 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k
9839 + !l + !m + !n + !o + !p + !pp + !ps
9840 #ifdef HAVE__BOOL
9841 + !q + !r + !u + !v + !w + !x + !y + !z + !pt
9842 #endif
9843 );
9844
9845 ;
9846 return 0;
9847 }
9848 _ACEOF
9849 if ac_fn_c_try_compile "$LINENO"
9850 then :
9851 ac_cv_header_stdbool_h=yes
9852 else $as_nop
9853 ac_cv_header_stdbool_h=no
9854 fi
9855 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9856 fi
9857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
9858 printf "%s\n" "$ac_cv_header_stdbool_h" >&6; }
9859
9860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
9861 printf %s "checking for inline... " >&6; }
9862 if test ${ac_cv_c_inline+y}
9863 then :
9864 printf %s "(cached) " >&6
9865 else $as_nop
9866 ac_cv_c_inline=no
9867 for ac_kw in inline __inline__ __inline; do
9868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9869 /* end confdefs.h. */
9870 #ifndef __cplusplus
9871 typedef int foo_t;
9872 static $ac_kw foo_t static_foo (void) {return 0; }
9873 $ac_kw foo_t foo (void) {return 0; }
9874 #endif
9875
9876 _ACEOF
9877 if ac_fn_c_try_compile "$LINENO"
9878 then :
9879 ac_cv_c_inline=$ac_kw
9880 fi
9881 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9882 test "$ac_cv_c_inline" != no && break
9883 done
9884
9885 fi
9886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
9887 printf "%s\n" "$ac_cv_c_inline" >&6; }
9888
9889 case $ac_cv_c_inline in
9890 inline | yes) ;;
9891 *)
9892 case $ac_cv_c_inline in
9893 no) ac_val=;;
9894 *) ac_val=$ac_cv_c_inline;;
9895 esac
9896 cat >>confdefs.h <<_ACEOF
9897 #ifndef __cplusplus
9898 #define inline $ac_val
9899 #endif
9900 _ACEOF
9901 ;;
9902 esac
9903
9904
9905 # Checks for library functions.
9906 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
9907 if test "x$ac_cv_type_size_t" = xyes
9908 then :
9909
9910 else $as_nop
9911
9912 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
9913
9914 fi
9915
9916 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9917 # for constant arguments. Useless!
9918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
9919 printf %s "checking for working alloca.h... " >&6; }
9920 if test ${ac_cv_working_alloca_h+y}
9921 then :
9922 printf %s "(cached) " >&6
9923 else $as_nop
9924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9925 /* end confdefs.h. */
9926 #include <alloca.h>
9927 int
9928 main (void)
9929 {
9930 char *p = (char *) alloca (2 * sizeof (int));
9931 if (p) return 0;
9932 ;
9933 return 0;
9934 }
9935 _ACEOF
9936 if ac_fn_c_try_link "$LINENO"
9937 then :
9938 ac_cv_working_alloca_h=yes
9939 else $as_nop
9940 ac_cv_working_alloca_h=no
9941 fi
9942 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9943 conftest$ac_exeext conftest.$ac_ext
9944 fi
9945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
9946 printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
9947 if test $ac_cv_working_alloca_h = yes; then
9948
9949 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
9950
9951 fi
9952
9953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
9954 printf %s "checking for alloca... " >&6; }
9955 if test ${ac_cv_func_alloca_works+y}
9956 then :
9957 printf %s "(cached) " >&6
9958 else $as_nop
9959 if test $ac_cv_working_alloca_h = yes; then
9960 ac_cv_func_alloca_works=yes
9961 else
9962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9963 /* end confdefs.h. */
9964 #include <stdlib.h>
9965 #include <stddef.h>
9966 #ifndef alloca
9967 # ifdef __GNUC__
9968 # define alloca __builtin_alloca
9969 # elif defined _MSC_VER
9970 # include <malloc.h>
9971 # define alloca _alloca
9972 # else
9973 # ifdef __cplusplus
9974 extern "C"
9975 # endif
9976 void *alloca (size_t);
9977 # endif
9978 #endif
9979
9980 int
9981 main (void)
9982 {
9983 char *p = (char *) alloca (1);
9984 if (p) return 0;
9985 ;
9986 return 0;
9987 }
9988 _ACEOF
9989 if ac_fn_c_try_link "$LINENO"
9990 then :
9991 ac_cv_func_alloca_works=yes
9992 else $as_nop
9993 ac_cv_func_alloca_works=no
9994 fi
9995 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9996 conftest$ac_exeext conftest.$ac_ext
9997 fi
9998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
9999 printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
10000 fi
10001
10002 if test $ac_cv_func_alloca_works = yes; then
10003
10004 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
10005
10006 else
10007 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10008 # that cause trouble. Some versions do not even contain alloca or
10009 # contain a buggy version. If you still want to use their alloca,
10010 # use ar to extract alloca.o from them instead of compiling alloca.c.
10011
10012 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
10013
10014 printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
10015
10016
10017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10018 printf %s "checking stack direction for C alloca... " >&6; }
10019 if test ${ac_cv_c_stack_direction+y}
10020 then :
10021 printf %s "(cached) " >&6
10022 else $as_nop
10023 if test "$cross_compiling" = yes
10024 then :
10025 ac_cv_c_stack_direction=0
10026 else $as_nop
10027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10028 /* end confdefs.h. */
10029 $ac_includes_default
10030 int
10031 find_stack_direction (int *addr, int depth)
10032 {
10033 int dir, dummy = 0;
10034 if (! addr)
10035 addr = &dummy;
10036 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
10037 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
10038 return dir + dummy;
10039 }
10040
10041 int
10042 main (int argc, char **argv)
10043 {
10044 return find_stack_direction (0, argc + !argv + 20) < 0;
10045 }
10046 _ACEOF
10047 if ac_fn_c_try_run "$LINENO"
10048 then :
10049 ac_cv_c_stack_direction=1
10050 else $as_nop
10051 ac_cv_c_stack_direction=-1
10052 fi
10053 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10054 conftest.$ac_objext conftest.beam conftest.$ac_ext
10055 fi
10056
10057 fi
10058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
10059 printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
10060 printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
10061
10062
10063 fi
10064
10065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
10066 printf %s "checking for GNU libc compatible malloc... " >&6; }
10067 if test ${ac_cv_func_malloc_0_nonnull+y}
10068 then :
10069 printf %s "(cached) " >&6
10070 else $as_nop
10071 if test "$cross_compiling" = yes
10072 then :
10073 case "$host_os" in # ((
10074 # Guess yes on platforms where we know the result.
10075 *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
10076 | hpux* | solaris* | cygwin* | mingw* | msys* )
10077 ac_cv_func_malloc_0_nonnull=yes ;;
10078 # If we don't know, assume the worst.
10079 *) ac_cv_func_malloc_0_nonnull=no ;;
10080 esac
10081 else $as_nop
10082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10083 /* end confdefs.h. */
10084 #include <stdlib.h>
10085
10086 int
10087 main (void)
10088 {
10089 void *p = malloc (0);
10090 int result = !p;
10091 free (p);
10092 return result;
10093 ;
10094 return 0;
10095 }
10096 _ACEOF
10097 if ac_fn_c_try_run "$LINENO"
10098 then :
10099 ac_cv_func_malloc_0_nonnull=yes
10100 else $as_nop
10101 ac_cv_func_malloc_0_nonnull=no
10102 fi
10103 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10104 conftest.$ac_objext conftest.beam conftest.$ac_ext
10105 fi
10106
10107 fi
10108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
10109 printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; }
10110 if test $ac_cv_func_malloc_0_nonnull = yes
10111 then :
10112
10113 printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
10114
10115 else $as_nop
10116 printf "%s\n" "#define HAVE_MALLOC 0" >>confdefs.h
10117
10118 case " $LIBOBJS " in
10119 *" malloc.$ac_objext "* ) ;;
10120 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
10121 ;;
10122 esac
10123
10124
10125 printf "%s\n" "#define malloc rpl_malloc" >>confdefs.h
10126
10127 fi
10128
10129
10130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
10131 printf %s "checking for GNU libc compatible realloc... " >&6; }
10132 if test ${ac_cv_func_realloc_0_nonnull+y}
10133 then :
10134 printf %s "(cached) " >&6
10135 else $as_nop
10136 if test "$cross_compiling" = yes
10137 then :
10138 case "$host_os" in # ((
10139 # Guess yes on platforms where we know the result.
10140 *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
10141 | hpux* | solaris* | cygwin* | mingw* | msys* )
10142 ac_cv_func_realloc_0_nonnull=yes ;;
10143 # If we don't know, assume the worst.
10144 *) ac_cv_func_realloc_0_nonnull=no ;;
10145 esac
10146 else $as_nop
10147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10148 /* end confdefs.h. */
10149 #include <stdlib.h>
10150
10151 int
10152 main (void)
10153 {
10154 void *p = realloc (0, 0);
10155 int result = !p;
10156 free (p);
10157 return result;
10158 ;
10159 return 0;
10160 }
10161 _ACEOF
10162 if ac_fn_c_try_run "$LINENO"
10163 then :
10164 ac_cv_func_realloc_0_nonnull=yes
10165 else $as_nop
10166 ac_cv_func_realloc_0_nonnull=no
10167 fi
10168 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10169 conftest.$ac_objext conftest.beam conftest.$ac_ext
10170 fi
10171
10172 fi
10173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
10174 printf "%s\n" "$ac_cv_func_realloc_0_nonnull" >&6; }
10175 if test $ac_cv_func_realloc_0_nonnull = yes
10176 then :
10177
10178 printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
10179
10180 else $as_nop
10181 printf "%s\n" "#define HAVE_REALLOC 0" >>confdefs.h
10182
10183 case " $LIBOBJS " in
10184 *" realloc.$ac_objext "* ) ;;
10185 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
10186 ;;
10187 esac
10188
10189
10190 printf "%s\n" "#define realloc rpl_realloc" >>confdefs.h
10191
10192 fi
10193
10194
10195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
10196 printf %s "checking for working strtod... " >&6; }
10197 if test ${ac_cv_func_strtod+y}
10198 then :
10199 printf %s "(cached) " >&6
10200 else $as_nop
10201 if test "$cross_compiling" = yes
10202 then :
10203 ac_cv_func_strtod=no
10204 else $as_nop
10205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10206 /* end confdefs.h. */
10207
10208 $ac_includes_default
10209 #ifndef strtod
10210 double strtod ();
10211 #endif
10212 int
10213 main (void)
10214 {
10215 {
10216 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
10217 char *string = " +69";
10218 char *term;
10219 double value;
10220 value = strtod (string, &term);
10221 if (value != 69 || term != (string + 4))
10222 return 1;
10223 }
10224
10225 {
10226 /* Under Solaris 2.4, strtod returns the wrong value for the
10227 terminating character under some conditions. */
10228 char *string = "NaN";
10229 char *term;
10230 strtod (string, &term);
10231 if (term != string && *(term - 1) == 0)
10232 return 1;
10233 }
10234 return 0;
10235 }
10236
10237 _ACEOF
10238 if ac_fn_c_try_run "$LINENO"
10239 then :
10240 ac_cv_func_strtod=yes
10241 else $as_nop
10242 ac_cv_func_strtod=no
10243 fi
10244 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10245 conftest.$ac_objext conftest.beam conftest.$ac_ext
10246 fi
10247
10248 fi
10249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
10250 printf "%s\n" "$ac_cv_func_strtod" >&6; }
10251 if test $ac_cv_func_strtod = no; then
10252 case " $LIBOBJS " in
10253 *" strtod.$ac_objext "* ) ;;
10254 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
10255 ;;
10256 esac
10257
10258 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
10259 if test "x$ac_cv_func_pow" = xyes
10260 then :
10261
10262 fi
10263
10264 if test $ac_cv_func_pow = no; then
10265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
10266 printf %s "checking for pow in -lm... " >&6; }
10267 if test ${ac_cv_lib_m_pow+y}
10268 then :
10269 printf %s "(cached) " >&6
10270 else $as_nop
10271 ac_check_lib_save_LIBS=$LIBS
10272 LIBS="-lm $LIBS"
10273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10274 /* end confdefs.h. */
10275
10276 /* Override any GCC internal prototype to avoid an error.
10277 Use char because int might match the return type of a GCC
10278 builtin and then its argument prototype would still apply. */
10279 char pow ();
10280 int
10281 main (void)
10282 {
10283 return pow ();
10284 ;
10285 return 0;
10286 }
10287 _ACEOF
10288 if ac_fn_c_try_link "$LINENO"
10289 then :
10290 ac_cv_lib_m_pow=yes
10291 else $as_nop
10292 ac_cv_lib_m_pow=no
10293 fi
10294 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10295 conftest$ac_exeext conftest.$ac_ext
10296 LIBS=$ac_check_lib_save_LIBS
10297 fi
10298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
10299 printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
10300 if test "x$ac_cv_lib_m_pow" = xyes
10301 then :
10302 POW_LIB=-lm
10303 else $as_nop
10304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
10305 printf "%s\n" "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
10306 fi
10307
10308 fi
10309
10310 fi
10311
10312 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
10313 if test "x$ac_cv_func_memset" = xyes
10314 then :
10315 printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
10316
10317 fi
10318 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
10319 if test "x$ac_cv_func_strchr" = xyes
10320 then :
10321 printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
10322
10323 fi
10324 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
10325 if test "x$ac_cv_func_strdup" = xyes
10326 then :
10327 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
10328
10329 fi
10330 ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
10331 if test "x$ac_cv_func_strrchr" = xyes
10332 then :
10333 printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
10334
10335 fi
10336
10337
10338 # config dir
10339 configdir="~/.local/share/ltris2"
10340
10341 # Check whether --with-configdir was given.
10342 if test ${with_configdir+y}
10343 then :
10344 withval=$with_configdir; configdir="$withval"
10345 fi
10346
10347
10348 # debug flags
10349 debugflags=""
10350 # Check whether --enable-debug was given.
10351 if test ${enable_debug+y}
10352 then :
10353 enableval=$enable_debug; debugflags="-O0 -g"
10354 fi
10355
10356
10357 # other flags
10358 datdir=$datadir/$PACKAGE
10359 hiscoredir=$localstatedir
10360 # Check whether --enable-install was given.
10361 if test ${enable_install+y}
10362 then :
10363 enableval=$enable_install; datdir="." hiscoredir="." configdir="."
10364 fi
10365
10366
10367
10368
10369 # set c/c++ flags
10370 CFLAGS="$CFLAGS -Wreturn-type -Wno-int-conversion -Wno-format -Wno-implicit-function-declaration"
10371 CFLAGS="$CFLAGS $debugflags -DSRC_DIR=\\\"$datdir\\\" -DCONFIG_DIR_NAME=\\\"$configdir\\\" -DHI_DIR=\\\"$hiscoredir\\\""
10372 CXXFLAGS="$CXXFLAGS -Wreturn-type -Wno-format"
10373 CXXFLAGS="$CXXFLAGS -std=c++11 -Wall $debugflags -DLOCALEDIR=\\\"$localedir\\\" -DCONFIGDIR=\\\"$configdir\\\" -DDATADIR=\\\"$datdir\\\" -DHISCOREDIR=\\\"$hiscoredir\\\""
10374
10375 # allow setting SDL2_CONFIG externally for crosscompiling
10376 if test "x$SDL2_CONFIG" = "x"; then
10377 SDL2_CONFIG="sdl2-config"
10378 fi
10379
10380 # add SDL/crosscompile flags
10381 if test "x$host" = "xx86_64-w64-mingw32"; then
10382 CFLAGS="$CFLAGS -DWIN32 -I/usr/$host/sys-root/mingw/include"
10383 CXXFLAGS="$CXXFLAGS -DWIN32 -I/usr/$host/sys-root/mingw/include"
10384 CXXFLAGS="$CXXFLAGS $(/usr/$host/sys-root/mingw/bin/sdl2-config --cflags)"
10385 # we can't use sdl2-config as we want to skip -mwindows as it
10386 # does funny things (not like a clown tho) also -lintl is needed
10387 LIBS="$LIBS -lintl -L/usr/$host/sys-root/mingw/lib -lmingw32 -lSDL2main -lSDL2"
10388 else
10389 CXXFLAGS="$CXXFLAGS $($SDL2_CONFIG --cflags)"
10390 LIBS="$LIBS $LIBINTL $($SDL2_CONFIG --libs)"
10391 fi
10392
10393 # Makefiles
10394 ac_config_files="$ac_config_files Makefile m4/Makefile po/Makefile.in libgame/Makefile src/Makefile src/themes/Makefile src/themes/Standard/Makefile"
10395
10396 cat >confcache <<\_ACEOF
10397 # This file is a shell script that caches the results of configure
10398 # tests run on this system so they can be shared between configure
10399 # scripts and configure runs, see configure's option --config-cache.
10400 # It is not useful on other systems. If it contains results you don't
10401 # want to keep, you may remove or edit it.
10402 #
10403 # config.status only pays attention to the cache file if you give it
10404 # the --recheck option to rerun configure.
10405 #
10406 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10407 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10408 # following values.
10409
10410 _ACEOF
10411
10412 # The following way of writing the cache mishandles newlines in values,
10413 # but we know of no workaround that is simple, portable, and efficient.
10414 # So, we kill variables containing newlines.
10415 # Ultrix sh set writes to stderr and can't be redirected directly,
10416 # and sets the high bit in the cache file unless we assign to the vars.
10417 (
10418 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10419 eval ac_val=\$$ac_var
10420 case $ac_val in #(
10421 *${as_nl}*)
10422 case $ac_var in #(
10423 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10424 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10425 esac
10426 case $ac_var in #(
10427 _ | IFS | as_nl) ;; #(
10428 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10429 *) { eval $ac_var=; unset $ac_var;} ;;
10430 esac ;;
10431 esac
10432 done
10433
10434 (set) 2>&1 |
10435 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10436 *${as_nl}ac_space=\ *)
10437 # `set' does not quote correctly, so add quotes: double-quote
10438 # substitution turns \\\\ into \\, and sed turns \\ into \.
10439 sed -n \
10440 "s/'/'\\\\''/g;
10441 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10442 ;; #(
10443 *)
10444 # `set' quotes correctly as required by POSIX, so do not add quotes.
10445 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10446 ;;
10447 esac |
10448 sort
10449 ) |
10450 sed '
10451 /^ac_cv_env_/b end
10452 t clear
10453 :clear
10454 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
10455 t end
10456 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10457 :end' >>confcache
10458 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10459 if test -w "$cache_file"; then
10460 if test "x$cache_file" != "x/dev/null"; then
10461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10462 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
10463 if test ! -f "$cache_file" || test -h "$cache_file"; then
10464 cat confcache >"$cache_file"
10465 else
10466 case $cache_file in #(
10467 */* | ?:*)
10468 mv -f confcache "$cache_file"$$ &&
10469 mv -f "$cache_file"$$ "$cache_file" ;; #(
10470 *)
10471 mv -f confcache "$cache_file" ;;
10472 esac
10473 fi
10474 fi
10475 else
10476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10477 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
10478 fi
10479 fi
10480 rm -f confcache
10481
10482 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10483 # Let make expand exec_prefix.
10484 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10485
10486 DEFS=-DHAVE_CONFIG_H
10487
10488 ac_libobjs=
10489 ac_ltlibobjs=
10490 U=
10491 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10492 # 1. Remove the extension, and $U if already installed.
10493 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10494 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
10495 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10496 # will be set to the directory where LIBOBJS objects are built.
10497 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10498 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10499 done
10500 LIBOBJS=$ac_libobjs
10501
10502 LTLIBOBJS=$ac_ltlibobjs
10503
10504
10505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
10506 printf %s "checking that generated files are newer than configure... " >&6; }
10507 if test -n "$am_sleep_pid"; then
10508 # Hide warnings about reused PIDs.
10509 wait $am_sleep_pid 2>/dev/null
10510 fi
10511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
10512 printf "%s\n" "done" >&6; }
10513 if test -n "$EXEEXT"; then
10514 am__EXEEXT_TRUE=
10515 am__EXEEXT_FALSE='#'
10516 else
10517 am__EXEEXT_TRUE='#'
10518 am__EXEEXT_FALSE=
10519 fi
10520
10521 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10522 as_fn_error $? "conditional \"AMDEP\" was never defined.
10523 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10524 fi
10525 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10526 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10527 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10528 fi
10529 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
10530 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
10531 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10532 fi
10533 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10534 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10535 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10536 fi
10537
10538 : "${CONFIG_STATUS=./config.status}"
10539 ac_write_fail=0
10540 ac_clean_files_save=$ac_clean_files
10541 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10543 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
10544 as_write_fail=0
10545 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10546 #! $SHELL
10547 # Generated by $as_me.
10548 # Run this file to recreate the current configuration.
10549 # Compiler output produced by configure, useful for debugging
10550 # configure, is in config.log if it exists.
10551
10552 debug=false
10553 ac_cs_recheck=false
10554 ac_cs_silent=false
10555
10556 SHELL=\${CONFIG_SHELL-$SHELL}
10557 export SHELL
10558 _ASEOF
10559 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10560 ## -------------------- ##
10561 ## M4sh Initialization. ##
10562 ## -------------------- ##
10563
10564 # Be more Bourne compatible
10565 DUALCASE=1; export DUALCASE # for MKS sh
10566 as_nop=:
10567 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
10568 then :
10569 emulate sh
10570 NULLCMD=:
10571 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10572 # is contrary to our usage. Disable this feature.
10573 alias -g '${1+"$@"}'='"$@"'
10574 setopt NO_GLOB_SUBST
10575 else $as_nop
10576 case `(set -o) 2>/dev/null` in #(
10577 *posix*) :
10578 set -o posix ;; #(
10579 *) :
10580 ;;
10581 esac
10582 fi
10583
10584
10585
10586 # Reset variables that may have inherited troublesome values from
10587 # the environment.
10588
10589 # IFS needs to be set, to space, tab, and newline, in precisely that order.
10590 # (If _AS_PATH_WALK were called with IFS unset, it would have the
10591 # side effect of setting IFS to empty, thus disabling word splitting.)
10592 # Quoting is to prevent editors from complaining about space-tab.
10593 as_nl='
10594 '
10595 export as_nl
10596 IFS=" "" $as_nl"
10597
10598 PS1='$ '
10599 PS2='> '
10600 PS4='+ '
10601
10602 # Ensure predictable behavior from utilities with locale-dependent output.
10603 LC_ALL=C
10604 export LC_ALL
10605 LANGUAGE=C
10606 export LANGUAGE
10607
10608 # We cannot yet rely on "unset" to work, but we need these variables
10609 # to be unset--not just set to an empty or harmless value--now, to
10610 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
10611 # also avoids known problems related to "unset" and subshell syntax
10612 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
10613 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
10614 do eval test \${$as_var+y} \
10615 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10616 done
10617
10618 # Ensure that fds 0, 1, and 2 are open.
10619 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
10620 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
10621 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
10622
10623 # The user is always right.
10624 if ${PATH_SEPARATOR+false} :; then
10625 PATH_SEPARATOR=:
10626 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10627 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10628 PATH_SEPARATOR=';'
10629 }
10630 fi
10631
10632
10633 # Find who we are. Look in the path if we contain no directory separator.
10634 as_myself=
10635 case $0 in #((
10636 *[\\/]* ) as_myself=$0 ;;
10637 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10638 for as_dir in $PATH
10639 do
10640 IFS=$as_save_IFS
10641 case $as_dir in #(((
10642 '') as_dir=./ ;;
10643 */) ;;
10644 *) as_dir=$as_dir/ ;;
10645 esac
10646 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
10647 done
10648 IFS=$as_save_IFS
10649
10650 ;;
10651 esac
10652 # We did not find ourselves, most probably we were run as `sh COMMAND'
10653 # in which case we are not to be found in the path.
10654 if test "x$as_myself" = x; then
10655 as_myself=$0
10656 fi
10657 if test ! -f "$as_myself"; then
10658 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10659 exit 1
10660 fi
10661
10662
10663
10664 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10665 # ----------------------------------------
10666 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10667 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10668 # script with STATUS, using 1 if that was 0.
10669 as_fn_error ()
10670 {
10671 as_status=$1; test $as_status -eq 0 && as_status=1
10672 if test "$4"; then
10673 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10674 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10675 fi
10676 printf "%s\n" "$as_me: error: $2" >&2
10677 as_fn_exit $as_status
10678 } # as_fn_error
10679
10680
10681
10682 # as_fn_set_status STATUS
10683 # -----------------------
10684 # Set $? to STATUS, without forking.
10685 as_fn_set_status ()
10686 {
10687 return $1
10688 } # as_fn_set_status
10689
10690 # as_fn_exit STATUS
10691 # -----------------
10692 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10693 as_fn_exit ()
10694 {
10695 set +e
10696 as_fn_set_status $1
10697 exit $1
10698 } # as_fn_exit
10699
10700 # as_fn_unset VAR
10701 # ---------------
10702 # Portably unset VAR.
10703 as_fn_unset ()
10704 {
10705 { eval $1=; unset $1;}
10706 }
10707 as_unset=as_fn_unset
10708
10709 # as_fn_append VAR VALUE
10710 # ----------------------
10711 # Append the text in VALUE to the end of the definition contained in VAR. Take
10712 # advantage of any shell optimizations that allow amortized linear growth over
10713 # repeated appends, instead of the typical quadratic growth present in naive
10714 # implementations.
10715 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
10716 then :
10717 eval 'as_fn_append ()
10718 {
10719 eval $1+=\$2
10720 }'
10721 else $as_nop
10722 as_fn_append ()
10723 {
10724 eval $1=\$$1\$2
10725 }
10726 fi # as_fn_append
10727
10728 # as_fn_arith ARG...
10729 # ------------------
10730 # Perform arithmetic evaluation on the ARGs, and store the result in the
10731 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10732 # must be portable across $(()) and expr.
10733 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
10734 then :
10735 eval 'as_fn_arith ()
10736 {
10737 as_val=$(( $* ))
10738 }'
10739 else $as_nop
10740 as_fn_arith ()
10741 {
10742 as_val=`expr "$@" || test $? -eq 1`
10743 }
10744 fi # as_fn_arith
10745
10746
10747 if expr a : '\(a\)' >/dev/null 2>&1 &&
10748 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10749 as_expr=expr
10750 else
10751 as_expr=false
10752 fi
10753
10754 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10755 as_basename=basename
10756 else
10757 as_basename=false
10758 fi
10759
10760 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10761 as_dirname=dirname
10762 else
10763 as_dirname=false
10764 fi
10765
10766 as_me=`$as_basename -- "$0" ||
10767 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10768 X"$0" : 'X\(//\)$' \| \
10769 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10770 printf "%s\n" X/"$0" |
10771 sed '/^.*\/\([^/][^/]*\)\/*$/{
10772 s//\1/
10773 q
10774 }
10775 /^X\/\(\/\/\)$/{
10776 s//\1/
10777 q
10778 }
10779 /^X\/\(\/\).*/{
10780 s//\1/
10781 q
10782 }
10783 s/.*/./; q'`
10784
10785 # Avoid depending upon Character Ranges.
10786 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10787 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10788 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10789 as_cr_digits='0123456789'
10790 as_cr_alnum=$as_cr_Letters$as_cr_digits
10791
10792
10793 # Determine whether it's possible to make 'echo' print without a newline.
10794 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
10795 # for compatibility with existing Makefiles.
10796 ECHO_C= ECHO_N= ECHO_T=
10797 case `echo -n x` in #(((((
10798 -n*)
10799 case `echo 'xy\c'` in
10800 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10801 xy) ECHO_C='\c';;
10802 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10803 ECHO_T=' ';;
10804 esac;;
10805 *)
10806 ECHO_N='-n';;
10807 esac
10808
10809 # For backward compatibility with old third-party macros, we provide
10810 # the shell variables $as_echo and $as_echo_n. New code should use
10811 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
10812 as_echo='printf %s\n'
10813 as_echo_n='printf %s'
10814
10815 rm -f conf$$ conf$$.exe conf$$.file
10816 if test -d conf$$.dir; then
10817 rm -f conf$$.dir/conf$$.file
10818 else
10819 rm -f conf$$.dir
10820 mkdir conf$$.dir 2>/dev/null
10821 fi
10822 if (echo >conf$$.file) 2>/dev/null; then
10823 if ln -s conf$$.file conf$$ 2>/dev/null; then
10824 as_ln_s='ln -s'
10825 # ... but there are two gotchas:
10826 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10827 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10828 # In both cases, we have to default to `cp -pR'.
10829 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10830 as_ln_s='cp -pR'
10831 elif ln conf$$.file conf$$ 2>/dev/null; then
10832 as_ln_s=ln
10833 else
10834 as_ln_s='cp -pR'
10835 fi
10836 else
10837 as_ln_s='cp -pR'
10838 fi
10839 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10840 rmdir conf$$.dir 2>/dev/null
10841
10842
10843 # as_fn_mkdir_p
10844 # -------------
10845 # Create "$as_dir" as a directory, including parents if necessary.
10846 as_fn_mkdir_p ()
10847 {
10848
10849 case $as_dir in #(
10850 -*) as_dir=./$as_dir;;
10851 esac
10852 test -d "$as_dir" || eval $as_mkdir_p || {
10853 as_dirs=
10854 while :; do
10855 case $as_dir in #(
10856 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10857 *) as_qdir=$as_dir;;
10858 esac
10859 as_dirs="'$as_qdir' $as_dirs"
10860 as_dir=`$as_dirname -- "$as_dir" ||
10861 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10862 X"$as_dir" : 'X\(//\)[^/]' \| \
10863 X"$as_dir" : 'X\(//\)$' \| \
10864 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10865 printf "%s\n" X"$as_dir" |
10866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10867 s//\1/
10868 q
10869 }
10870 /^X\(\/\/\)[^/].*/{
10871 s//\1/
10872 q
10873 }
10874 /^X\(\/\/\)$/{
10875 s//\1/
10876 q
10877 }
10878 /^X\(\/\).*/{
10879 s//\1/
10880 q
10881 }
10882 s/.*/./; q'`
10883 test -d "$as_dir" && break
10884 done
10885 test -z "$as_dirs" || eval "mkdir $as_dirs"
10886 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10887
10888
10889 } # as_fn_mkdir_p
10890 if mkdir -p . 2>/dev/null; then
10891 as_mkdir_p='mkdir -p "$as_dir"'
10892 else
10893 test -d ./-p && rmdir ./-p
10894 as_mkdir_p=false
10895 fi
10896
10897
10898 # as_fn_executable_p FILE
10899 # -----------------------
10900 # Test if FILE is an executable regular file.
10901 as_fn_executable_p ()
10902 {
10903 test -f "$1" && test -x "$1"
10904 } # as_fn_executable_p
10905 as_test_x='test -x'
10906 as_executable_p=as_fn_executable_p
10907
10908 # Sed expression to map a string onto a valid CPP name.
10909 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10910
10911 # Sed expression to map a string onto a valid variable name.
10912 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10913
10914
10915 exec 6>&1
10916 ## ----------------------------------- ##
10917 ## Main body of $CONFIG_STATUS script. ##
10918 ## ----------------------------------- ##
10919 _ASEOF
10920 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10921
10922 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10923 # Save the log message, to keep $0 and so on meaningful, and to
10924 # report actual input values of CONFIG_FILES etc. instead of their
10925 # values after options handling.
10926 ac_log="
10927 This file was extended by ltris2 $as_me 2.0.4, which was
10928 generated by GNU Autoconf 2.71. Invocation command line was
10929
10930 CONFIG_FILES = $CONFIG_FILES
10931 CONFIG_HEADERS = $CONFIG_HEADERS
10932 CONFIG_LINKS = $CONFIG_LINKS
10933 CONFIG_COMMANDS = $CONFIG_COMMANDS
10934 $ $0 $@
10935
10936 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10937 "
10938
10939 _ACEOF
10940
10941 case $ac_config_files in *"
10942 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10943 esac
10944
10945 case $ac_config_headers in *"
10946 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10947 esac
10948
10949
10950 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10951 # Files that config.status was made for.
10952 config_files="$ac_config_files"
10953 config_headers="$ac_config_headers"
10954 config_commands="$ac_config_commands"
10955
10956 _ACEOF
10957
10958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10959 ac_cs_usage="\
10960 \`$as_me' instantiates files and other configuration actions
10961 from templates according to the current configuration. Unless the files
10962 and actions are specified as TAGs, all are instantiated by default.
10963
10964 Usage: $0 [OPTION]... [TAG]...
10965
10966 -h, --help print this help, then exit
10967 -V, --version print version number and configuration settings, then exit
10968 --config print configuration, then exit
10969 -q, --quiet, --silent
10970 do not print progress messages
10971 -d, --debug don't remove temporary files
10972 --recheck update $as_me by reconfiguring in the same conditions
10973 --file=FILE[:TEMPLATE]
10974 instantiate the configuration file FILE
10975 --header=FILE[:TEMPLATE]
10976 instantiate the configuration header FILE
10977
10978 Configuration files:
10979 $config_files
10980
10981 Configuration headers:
10982 $config_headers
10983
10984 Configuration commands:
10985 $config_commands
10986
10987 Report bugs to the package provider."
10988
10989 _ACEOF
10990 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
10991 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
10992 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10993 ac_cs_config='$ac_cs_config_escaped'
10994 ac_cs_version="\\
10995 ltris2 config.status 2.0.4
10996 configured by $0, generated by GNU Autoconf 2.71,
10997 with options \\"\$ac_cs_config\\"
10998
10999 Copyright (C) 2021 Free Software Foundation, Inc.
11000 This config.status script is free software; the Free Software Foundation
11001 gives unlimited permission to copy, distribute and modify it."
11002
11003 ac_pwd='$ac_pwd'
11004 srcdir='$srcdir'
11005 INSTALL='$INSTALL'
11006 MKDIR_P='$MKDIR_P'
11007 AWK='$AWK'
11008 test -n "\$AWK" || AWK=awk
11009 _ACEOF
11010
11011 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11012 # The default lists apply if the user does not specify any file.
11013 ac_need_defaults=:
11014 while test $# != 0
11015 do
11016 case $1 in
11017 --*=?*)
11018 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11019 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11020 ac_shift=:
11021 ;;
11022 --*=)
11023 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11024 ac_optarg=
11025 ac_shift=:
11026 ;;
11027 *)
11028 ac_option=$1
11029 ac_optarg=$2
11030 ac_shift=shift
11031 ;;
11032 esac
11033
11034 case $ac_option in
11035 # Handling of the options.
11036 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11037 ac_cs_recheck=: ;;
11038 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11039 printf "%s\n" "$ac_cs_version"; exit ;;
11040 --config | --confi | --conf | --con | --co | --c )
11041 printf "%s\n" "$ac_cs_config"; exit ;;
11042 --debug | --debu | --deb | --de | --d | -d )
11043 debug=: ;;
11044 --file | --fil | --fi | --f )
11045 $ac_shift
11046 case $ac_optarg in
11047 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11048 '') as_fn_error $? "missing file argument" ;;
11049 esac
11050 as_fn_append CONFIG_FILES " '$ac_optarg'"
11051 ac_need_defaults=false;;
11052 --header | --heade | --head | --hea )
11053 $ac_shift
11054 case $ac_optarg in
11055 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11056 esac
11057 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11058 ac_need_defaults=false;;
11059 --he | --h)
11060 # Conflict between --help and --header
11061 as_fn_error $? "ambiguous option: \`$1'
11062 Try \`$0 --help' for more information.";;
11063 --help | --hel | -h )
11064 printf "%s\n" "$ac_cs_usage"; exit ;;
11065 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11066 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11067 ac_cs_silent=: ;;
11068
11069 # This is an error.
11070 -*) as_fn_error $? "unrecognized option: \`$1'
11071 Try \`$0 --help' for more information." ;;
11072
11073 *) as_fn_append ac_config_targets " $1"
11074 ac_need_defaults=false ;;
11075
11076 esac
11077 shift
11078 done
11079
11080 ac_configure_extra_args=
11081
11082 if $ac_cs_silent; then
11083 exec 6>/dev/null
11084 ac_configure_extra_args="$ac_configure_extra_args --silent"
11085 fi
11086
11087 _ACEOF
11088 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11089 if \$ac_cs_recheck; then
11090 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11091 shift
11092 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
11093 CONFIG_SHELL='$SHELL'
11094 export CONFIG_SHELL
11095 exec "\$@"
11096 fi
11097
11098 _ACEOF
11099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11100 exec 5>>config.log
11101 {
11102 echo
11103 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11104 ## Running $as_me. ##
11105 _ASBOX
11106 printf "%s\n" "$ac_log"
11107 } >&5
11108
11109 _ACEOF
11110 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11111 #
11112 # INIT-COMMANDS
11113 #
11114 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
11115 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
11116 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS.
11117 OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS"
11118 # Capture the value of LINGUAS because we need it to compute CATALOGS.
11119 LINGUAS="${LINGUAS-%UNSET%}"
11120
11121
11122 _ACEOF
11123
11124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11125
11126 # Handling of arguments.
11127 for ac_config_target in $ac_config_targets
11128 do
11129 case $ac_config_target in
11130 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11131 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11132 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
11133 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11134 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
11135 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
11136 "libgame/Makefile") CONFIG_FILES="$CONFIG_FILES libgame/Makefile" ;;
11137 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
11138 "src/themes/Makefile") CONFIG_FILES="$CONFIG_FILES src/themes/Makefile" ;;
11139 "src/themes/Standard/Makefile") CONFIG_FILES="$CONFIG_FILES src/themes/Standard/Makefile" ;;
11140
11141 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11142 esac
11143 done
11144
11145
11146 # If the user did not use the arguments to specify the items to instantiate,
11147 # then the envvar interface is used. Set only those that are not.
11148 # We use the long form for the default assignment because of an extremely
11149 # bizarre bug on SunOS 4.1.3.
11150 if $ac_need_defaults; then
11151 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
11152 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
11153 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
11154 fi
11155
11156 # Have a temporary directory for convenience. Make it in the build tree
11157 # simply because there is no reason against having it here, and in addition,
11158 # creating and moving files from /tmp can sometimes cause problems.
11159 # Hook for its removal unless debugging.
11160 # Note that there is a small window in which the directory will not be cleaned:
11161 # after its creation but before its name has been assigned to `$tmp'.
11162 $debug ||
11163 {
11164 tmp= ac_tmp=
11165 trap 'exit_status=$?
11166 : "${ac_tmp:=$tmp}"
11167 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11168 ' 0
11169 trap 'as_fn_exit 1' 1 2 13 15
11170 }
11171 # Create a (secure) tmp directory for tmp files.
11172
11173 {
11174 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11175 test -d "$tmp"
11176 } ||
11177 {
11178 tmp=./conf$$-$RANDOM
11179 (umask 077 && mkdir "$tmp")
11180 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11181 ac_tmp=$tmp
11182
11183 # Set up the scripts for CONFIG_FILES section.
11184 # No need to generate them if there are no CONFIG_FILES.
11185 # This happens for instance with `./config.status config.h'.
11186 if test -n "$CONFIG_FILES"; then
11187
11188
11189 ac_cr=`echo X | tr X '\015'`
11190 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11191 # But we know of no other shell where ac_cr would be empty at this
11192 # point, so we can use a bashism as a fallback.
11193 if test "x$ac_cr" = x; then
11194 eval ac_cr=\$\'\\r\'
11195 fi
11196 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11197 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11198 ac_cs_awk_cr='\\r'
11199 else
11200 ac_cs_awk_cr=$ac_cr
11201 fi
11202
11203 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11204 _ACEOF
11205
11206
11207 {
11208 echo "cat >conf$$subs.awk <<_ACEOF" &&
11209 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11210 echo "_ACEOF"
11211 } >conf$$subs.sh ||
11212 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11213 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11214 ac_delim='%!_!# '
11215 for ac_last_try in false false false false false :; do
11216 . ./conf$$subs.sh ||
11217 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11218
11219 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11220 if test $ac_delim_n = $ac_delim_num; then
11221 break
11222 elif $ac_last_try; then
11223 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11224 else
11225 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11226 fi
11227 done
11228 rm -f conf$$subs.sh
11229
11230 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11231 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11232 _ACEOF
11233 sed -n '
11234 h
11235 s/^/S["/; s/!.*/"]=/
11236 p
11237 g
11238 s/^[^!]*!//
11239 :repl
11240 t repl
11241 s/'"$ac_delim"'$//
11242 t delim
11243 :nl
11244 h
11245 s/\(.\{148\}\)..*/\1/
11246 t more1
11247 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11248 p
11249 n
11250 b repl
11251 :more1
11252 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11253 p
11254 g
11255 s/.\{148\}//
11256 t nl
11257 :delim
11258 h
11259 s/\(.\{148\}\)..*/\1/
11260 t more2
11261 s/["\\]/\\&/g; s/^/"/; s/$/"/
11262 p
11263 b
11264 :more2
11265 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11266 p
11267 g
11268 s/.\{148\}//
11269 t delim
11270 ' <conf$$subs.awk | sed '
11271 /^[^""]/{
11272 N
11273 s/\n//
11274 }
11275 ' >>$CONFIG_STATUS || ac_write_fail=1
11276 rm -f conf$$subs.awk
11277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11278 _ACAWK
11279 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11280 for (key in S) S_is_set[key] = 1
11281 FS = ""
11282
11283 }
11284 {
11285 line = $ 0
11286 nfields = split(line, field, "@")
11287 substed = 0
11288 len = length(field[1])
11289 for (i = 2; i < nfields; i++) {
11290 key = field[i]
11291 keylen = length(key)
11292 if (S_is_set[key]) {
11293 value = S[key]
11294 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11295 len += length(value) + length(field[++i])
11296 substed = 1
11297 } else
11298 len += 1 + keylen
11299 }
11300
11301 print line
11302 }
11303
11304 _ACAWK
11305 _ACEOF
11306 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11307 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11308 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11309 else
11310 cat
11311 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11312 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11313 _ACEOF
11314
11315 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11316 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11317 # trailing colons and then remove the whole line if VPATH becomes empty
11318 # (actually we leave an empty line to preserve line numbers).
11319 if test "x$srcdir" = x.; then
11320 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11321 h
11322 s///
11323 s/^/:/
11324 s/[ ]*$/:/
11325 s/:\$(srcdir):/:/g
11326 s/:\${srcdir}:/:/g
11327 s/:@srcdir@:/:/g
11328 s/^:*//
11329 s/:*$//
11330 x
11331 s/\(=[ ]*\).*/\1/
11332 G
11333 s/\n//
11334 s/^[^=]*=[ ]*$//
11335 }'
11336 fi
11337
11338 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11339 fi # test -n "$CONFIG_FILES"
11340
11341 # Set up the scripts for CONFIG_HEADERS section.
11342 # No need to generate them if there are no CONFIG_HEADERS.
11343 # This happens for instance with `./config.status Makefile'.
11344 if test -n "$CONFIG_HEADERS"; then
11345 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11346 BEGIN {
11347 _ACEOF
11348
11349 # Transform confdefs.h into an awk script `defines.awk', embedded as
11350 # here-document in config.status, that substitutes the proper values into
11351 # config.h.in to produce config.h.
11352
11353 # Create a delimiter string that does not exist in confdefs.h, to ease
11354 # handling of long lines.
11355 ac_delim='%!_!# '
11356 for ac_last_try in false false :; do
11357 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11358 if test -z "$ac_tt"; then
11359 break
11360 elif $ac_last_try; then
11361 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11362 else
11363 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11364 fi
11365 done
11366
11367 # For the awk script, D is an array of macro values keyed by name,
11368 # likewise P contains macro parameters if any. Preserve backslash
11369 # newline sequences.
11370
11371 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11372 sed -n '
11373 s/.\{148\}/&'"$ac_delim"'/g
11374 t rset
11375 :rset
11376 s/^[ ]*#[ ]*define[ ][ ]*/ /
11377 t def
11378 d
11379 :def
11380 s/\\$//
11381 t bsnl
11382 s/["\\]/\\&/g
11383 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11384 D["\1"]=" \3"/p
11385 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11386 d
11387 :bsnl
11388 s/["\\]/\\&/g
11389 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11390 D["\1"]=" \3\\\\\\n"\\/p
11391 t cont
11392 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11393 t cont
11394 d
11395 :cont
11396 n
11397 s/.\{148\}/&'"$ac_delim"'/g
11398 t clear
11399 :clear
11400 s/\\$//
11401 t bsnlc
11402 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11403 d
11404 :bsnlc
11405 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11406 b cont
11407 ' <confdefs.h | sed '
11408 s/'"$ac_delim"'/"\\\
11409 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11410
11411 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11412 for (key in D) D_is_set[key] = 1
11413 FS = ""
11414 }
11415 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11416 line = \$ 0
11417 split(line, arg, " ")
11418 if (arg[1] == "#") {
11419 defundef = arg[2]
11420 mac1 = arg[3]
11421 } else {
11422 defundef = substr(arg[1], 2)
11423 mac1 = arg[2]
11424 }
11425 split(mac1, mac2, "(") #)
11426 macro = mac2[1]
11427 prefix = substr(line, 1, index(line, defundef) - 1)
11428 if (D_is_set[macro]) {
11429 # Preserve the white space surrounding the "#".
11430 print prefix "define", macro P[macro] D[macro]
11431 next
11432 } else {
11433 # Replace #undef with comments. This is necessary, for example,
11434 # in the case of _POSIX_SOURCE, which is predefined and required
11435 # on some systems where configure will not decide to define it.
11436 if (defundef == "undef") {
11437 print "/*", prefix defundef, macro, "*/"
11438 next
11439 }
11440 }
11441 }
11442 { print }
11443 _ACAWK
11444 _ACEOF
11445 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11446 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11447 fi # test -n "$CONFIG_HEADERS"
11448
11449
11450 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11451 shift
11452 for ac_tag
11453 do
11454 case $ac_tag in
11455 :[FHLC]) ac_mode=$ac_tag; continue;;
11456 esac
11457 case $ac_mode$ac_tag in
11458 :[FHL]*:*);;
11459 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11460 :[FH]-) ac_tag=-:-;;
11461 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11462 esac
11463 ac_save_IFS=$IFS
11464 IFS=:
11465 set x $ac_tag
11466 IFS=$ac_save_IFS
11467 shift
11468 ac_file=$1
11469 shift
11470
11471 case $ac_mode in
11472 :L) ac_source=$1;;
11473 :[FH])
11474 ac_file_inputs=
11475 for ac_f
11476 do
11477 case $ac_f in
11478 -) ac_f="$ac_tmp/stdin";;
11479 *) # Look for the file first in the build tree, then in the source tree
11480 # (if the path is not absolute). The absolute path cannot be DOS-style,
11481 # because $ac_f cannot contain `:'.
11482 test -f "$ac_f" ||
11483 case $ac_f in
11484 [\\/$]*) false;;
11485 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11486 esac ||
11487 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11488 esac
11489 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11490 as_fn_append ac_file_inputs " '$ac_f'"
11491 done
11492
11493 # Let's still pretend it is `configure' which instantiates (i.e., don't
11494 # use $as_me), people would be surprised to read:
11495 # /* config.h. Generated by config.status. */
11496 configure_input='Generated from '`
11497 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11498 `' by configure.'
11499 if test x"$ac_file" != x-; then
11500 configure_input="$ac_file. $configure_input"
11501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11502 printf "%s\n" "$as_me: creating $ac_file" >&6;}
11503 fi
11504 # Neutralize special characters interpreted by sed in replacement strings.
11505 case $configure_input in #(
11506 *\&* | *\|* | *\\* )
11507 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
11508 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11509 *) ac_sed_conf_input=$configure_input;;
11510 esac
11511
11512 case $ac_tag in
11513 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11514 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11515 esac
11516 ;;
11517 esac
11518
11519 ac_dir=`$as_dirname -- "$ac_file" ||
11520 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11521 X"$ac_file" : 'X\(//\)[^/]' \| \
11522 X"$ac_file" : 'X\(//\)$' \| \
11523 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11524 printf "%s\n" X"$ac_file" |
11525 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11526 s//\1/
11527 q
11528 }
11529 /^X\(\/\/\)[^/].*/{
11530 s//\1/
11531 q
11532 }
11533 /^X\(\/\/\)$/{
11534 s//\1/
11535 q
11536 }
11537 /^X\(\/\).*/{
11538 s//\1/
11539 q
11540 }
11541 s/.*/./; q'`
11542 as_dir="$ac_dir"; as_fn_mkdir_p
11543 ac_builddir=.
11544
11545 case "$ac_dir" in
11546 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11547 *)
11548 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
11549 # A ".." for each directory in $ac_dir_suffix.
11550 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11551 case $ac_top_builddir_sub in
11552 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11553 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11554 esac ;;
11555 esac
11556 ac_abs_top_builddir=$ac_pwd
11557 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11558 # for backward compatibility:
11559 ac_top_builddir=$ac_top_build_prefix
11560
11561 case $srcdir in
11562 .) # We are building in place.
11563 ac_srcdir=.
11564 ac_top_srcdir=$ac_top_builddir_sub
11565 ac_abs_top_srcdir=$ac_pwd ;;
11566 [\\/]* | ?:[\\/]* ) # Absolute name.
11567 ac_srcdir=$srcdir$ac_dir_suffix;
11568 ac_top_srcdir=$srcdir
11569 ac_abs_top_srcdir=$srcdir ;;
11570 *) # Relative name.
11571 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11572 ac_top_srcdir=$ac_top_build_prefix$srcdir
11573 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11574 esac
11575 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11576
11577
11578 case $ac_mode in
11579 :F)
11580 #
11581 # CONFIG_FILE
11582 #
11583
11584 case $INSTALL in
11585 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11586 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11587 esac
11588 ac_MKDIR_P=$MKDIR_P
11589 case $MKDIR_P in
11590 [\\/$]* | ?:[\\/]* ) ;;
11591 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11592 esac
11593 _ACEOF
11594
11595 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11596 # If the template does not know about datarootdir, expand it.
11597 # FIXME: This hack should be removed a few years after 2.60.
11598 ac_datarootdir_hack=; ac_datarootdir_seen=
11599 ac_sed_dataroot='
11600 /datarootdir/ {
11601 p
11602 q
11603 }
11604 /@datadir@/p
11605 /@docdir@/p
11606 /@infodir@/p
11607 /@localedir@/p
11608 /@mandir@/p'
11609 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11610 *datarootdir*) ac_datarootdir_seen=yes;;
11611 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11613 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11614 _ACEOF
11615 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11616 ac_datarootdir_hack='
11617 s&@datadir@&$datadir&g
11618 s&@docdir@&$docdir&g
11619 s&@infodir@&$infodir&g
11620 s&@localedir@&$localedir&g
11621 s&@mandir@&$mandir&g
11622 s&\\\${datarootdir}&$datarootdir&g' ;;
11623 esac
11624 _ACEOF
11625
11626 # Neutralize VPATH when `$srcdir' = `.'.
11627 # Shell code in configure.ac might set extrasub.
11628 # FIXME: do we really want to maintain this feature?
11629 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11630 ac_sed_extra="$ac_vpsub
11631 $extrasub
11632 _ACEOF
11633 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11634 :t
11635 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11636 s|@configure_input@|$ac_sed_conf_input|;t t
11637 s&@top_builddir@&$ac_top_builddir_sub&;t t
11638 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11639 s&@srcdir@&$ac_srcdir&;t t
11640 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11641 s&@top_srcdir@&$ac_top_srcdir&;t t
11642 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11643 s&@builddir@&$ac_builddir&;t t
11644 s&@abs_builddir@&$ac_abs_builddir&;t t
11645 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11646 s&@INSTALL@&$ac_INSTALL&;t t
11647 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11648 $ac_datarootdir_hack
11649 "
11650 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11651 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11652
11653 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11654 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11655 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11656 "$ac_tmp/out"`; test -z "$ac_out"; } &&
11657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11658 which seems to be undefined. Please make sure it is defined" >&5
11659 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11660 which seems to be undefined. Please make sure it is defined" >&2;}
11661
11662 rm -f "$ac_tmp/stdin"
11663 case $ac_file in
11664 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11665 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11666 esac \
11667 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11668 ;;
11669 :H)
11670 #
11671 # CONFIG_HEADER
11672 #
11673 if test x"$ac_file" != x-; then
11674 {
11675 printf "%s\n" "/* $configure_input */" >&1 \
11676 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11677 } >"$ac_tmp/config.h" \
11678 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11679 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11681 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
11682 else
11683 rm -f "$ac_file"
11684 mv "$ac_tmp/config.h" "$ac_file" \
11685 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11686 fi
11687 else
11688 printf "%s\n" "/* $configure_input */" >&1 \
11689 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11690 || as_fn_error $? "could not create -" "$LINENO" 5
11691 fi
11692 # Compute "$ac_file"'s index in $config_headers.
11693 _am_arg="$ac_file"
11694 _am_stamp_count=1
11695 for _am_header in $config_headers :; do
11696 case $_am_header in
11697 $_am_arg | $_am_arg:* )
11698 break ;;
11699 * )
11700 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11701 esac
11702 done
11703 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11704 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11705 X"$_am_arg" : 'X\(//\)[^/]' \| \
11706 X"$_am_arg" : 'X\(//\)$' \| \
11707 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11708 printf "%s\n" X"$_am_arg" |
11709 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11710 s//\1/
11711 q
11712 }
11713 /^X\(\/\/\)[^/].*/{
11714 s//\1/
11715 q
11716 }
11717 /^X\(\/\/\)$/{
11718 s//\1/
11719 q
11720 }
11721 /^X\(\/\).*/{
11722 s//\1/
11723 q
11724 }
11725 s/.*/./; q'`/stamp-h$_am_stamp_count
11726 ;;
11727
11728 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11729 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
11730 ;;
11731 esac
11732
11733
11734 case $ac_file$ac_mode in
11735 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11736 # Older Autoconf quotes --file arguments for eval, but not when files
11737 # are listed without --file. Let's play safe and only enable the eval
11738 # if we detect the quoting.
11739 # TODO: see whether this extra hack can be removed once we start
11740 # requiring Autoconf 2.70 or later.
11741 case $CONFIG_FILES in #(
11742 *\'*) :
11743 eval set x "$CONFIG_FILES" ;; #(
11744 *) :
11745 set x $CONFIG_FILES ;; #(
11746 *) :
11747 ;;
11748 esac
11749 shift
11750 # Used to flag and report bootstrapping failures.
11751 am_rc=0
11752 for am_mf
11753 do
11754 # Strip MF so we end up with the name of the file.
11755 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
11756 # Check whether this is an Automake generated Makefile which includes
11757 # dependency-tracking related rules and includes.
11758 # Grep'ing the whole file directly is not great: AIX grep has a line
11759 # limit of 2048, but all sed's we know have understand at least 4000.
11760 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
11761 || continue
11762 am_dirpart=`$as_dirname -- "$am_mf" ||
11763 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11764 X"$am_mf" : 'X\(//\)[^/]' \| \
11765 X"$am_mf" : 'X\(//\)$' \| \
11766 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
11767 printf "%s\n" X"$am_mf" |
11768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11769 s//\1/
11770 q
11771 }
11772 /^X\(\/\/\)[^/].*/{
11773 s//\1/
11774 q
11775 }
11776 /^X\(\/\/\)$/{
11777 s//\1/
11778 q
11779 }
11780 /^X\(\/\).*/{
11781 s//\1/
11782 q
11783 }
11784 s/.*/./; q'`
11785 am_filepart=`$as_basename -- "$am_mf" ||
11786 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
11787 X"$am_mf" : 'X\(//\)$' \| \
11788 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
11789 printf "%s\n" X/"$am_mf" |
11790 sed '/^.*\/\([^/][^/]*\)\/*$/{
11791 s//\1/
11792 q
11793 }
11794 /^X\/\(\/\/\)$/{
11795 s//\1/
11796 q
11797 }
11798 /^X\/\(\/\).*/{
11799 s//\1/
11800 q
11801 }
11802 s/.*/./; q'`
11803 { echo "$as_me:$LINENO: cd "$am_dirpart" \
11804 && sed -e '/# am--include-marker/d' "$am_filepart" \
11805 | $MAKE -f - am--depfiles" >&5
11806 (cd "$am_dirpart" \
11807 && sed -e '/# am--include-marker/d' "$am_filepart" \
11808 | $MAKE -f - am--depfiles) >&5 2>&5
11809 ac_status=$?
11810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811 (exit $ac_status); } || am_rc=$?
11812 done
11813 if test $am_rc -ne 0; then
11814 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11815 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11816 as_fn_error $? "Something went wrong bootstrapping makefile fragments
11817 for automatic dependency tracking. If GNU make was not used, consider
11818 re-running the configure script with MAKE=\"gmake\" (or whatever is
11819 necessary). You can also try re-running configure with the
11820 '--disable-dependency-tracking' option to at least be able to build
11821 the package (albeit without support for automatic dependency tracking).
11822 See \`config.log' for more details" "$LINENO" 5; }
11823 fi
11824 { am_dirpart=; unset am_dirpart;}
11825 { am_filepart=; unset am_filepart;}
11826 { am_mf=; unset am_mf;}
11827 { am_rc=; unset am_rc;}
11828 rm -f conftest-deps.mk
11829 }
11830 ;;
11831 "po-directories":C)
11832 for ac_file in $CONFIG_FILES; do
11833 # Support "outfile[:infile[:infile...]]"
11834 case "$ac_file" in
11835 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11836 esac
11837 # PO directories have a Makefile.in generated from Makefile.in.in.
11838 case "$ac_file" in */Makefile.in)
11839 # Adjust a relative srcdir.
11840 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
11841 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
11842 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
11843 # In autoconf-2.13 it is called $ac_given_srcdir.
11844 # In autoconf-2.50 it is called $srcdir.
11845 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
11846 case "$ac_given_srcdir" in
11847 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
11848 /*) top_srcdir="$ac_given_srcdir" ;;
11849 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
11850 esac
11851 # Treat a directory as a PO directory if and only if it has a
11852 # POTFILES.in file. This allows packages to have multiple PO
11853 # directories under different names or in different locations.
11854 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
11855 rm -f "$ac_dir/POTFILES"
11856 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
11857 gt_tab=`printf '\t'`
11858 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
11859 POMAKEFILEDEPS="POTFILES.in"
11860 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
11861 # on $ac_dir but don't depend on user-specified configuration
11862 # parameters.
11863 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
11864 # The LINGUAS file contains the set of available languages.
11865 if test -n "$OBSOLETE_ALL_LINGUAS"; then
11866 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
11867 fi
11868 ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
11869 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
11870 else
11871 # The set of available languages was given in configure.in.
11872 ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS
11873 fi
11874 # Compute POFILES
11875 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
11876 # Compute UPDATEPOFILES
11877 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
11878 # Compute DUMMYPOFILES
11879 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
11880 # Compute GMOFILES
11881 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
11882 case "$ac_given_srcdir" in
11883 .) srcdirpre= ;;
11884 *) srcdirpre='$(srcdir)/' ;;
11885 esac
11886 POFILES=
11887 UPDATEPOFILES=
11888 DUMMYPOFILES=
11889 GMOFILES=
11890 for lang in $ALL_LINGUAS; do
11891 POFILES="$POFILES $srcdirpre$lang.po"
11892 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
11893 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
11894 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
11895 done
11896 # CATALOGS depends on both $ac_dir and the user's LINGUAS
11897 # environment variable.
11898 INST_LINGUAS=
11899 if test -n "$ALL_LINGUAS"; then
11900 for presentlang in $ALL_LINGUAS; do
11901 useit=no
11902 if test "%UNSET%" != "$LINGUAS"; then
11903 desiredlanguages="$LINGUAS"
11904 else
11905 desiredlanguages="$ALL_LINGUAS"
11906 fi
11907 for desiredlang in $desiredlanguages; do
11908 # Use the presentlang catalog if desiredlang is
11909 # a. equal to presentlang, or
11910 # b. a variant of presentlang (because in this case,
11911 # presentlang can be used as a fallback for messages
11912 # which are not translated in the desiredlang catalog).
11913 case "$desiredlang" in
11914 "$presentlang"*) useit=yes;;
11915 esac
11916 done
11917 if test $useit = yes; then
11918 INST_LINGUAS="$INST_LINGUAS $presentlang"
11919 fi
11920 done
11921 fi
11922 CATALOGS=
11923 if test -n "$INST_LINGUAS"; then
11924 for lang in $INST_LINGUAS; do
11925 CATALOGS="$CATALOGS $lang.gmo"
11926 done
11927 fi
11928 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
11929 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
11930 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
11931 if test -f "$f"; then
11932 case "$f" in
11933 *.orig | *.bak | *~) ;;
11934 *) cat "$f" >> "$ac_dir/Makefile" ;;
11935 esac
11936 fi
11937 done
11938 fi
11939 ;;
11940 esac
11941 done ;;
11942
11943 esac
11944 done # for ac_tag
11945
11946
11947 as_fn_exit 0
11948 _ACEOF
11949 ac_clean_files=$ac_clean_files_save
11950
11951 test $ac_write_fail = 0 ||
11952 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11953
11954
11955 # configure is writing to config.log, and then calls config.status.
11956 # config.status does its own redirection, appending to config.log.
11957 # Unfortunately, on DOS this fails, as config.log is still kept open
11958 # by configure, so config.status won't be able to write to it; its
11959 # output is simply discarded. So we exec the FD to /dev/null,
11960 # effectively closing config.log, so it can be properly (re)opened and
11961 # appended to by config.status. When coming back to configure, we
11962 # need to make the FD available again.
11963 if test "$no_create" != yes; then
11964 ac_cs_success=:
11965 ac_config_status_args=
11966 test "$silent" = yes &&
11967 ac_config_status_args="$ac_config_status_args --quiet"
11968 exec 5>/dev/null
11969 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11970 exec 5>>config.log
11971 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11972 # would make configure fail if this is the last instruction.
11973 $ac_cs_success || as_fn_exit 1
11974 fi
11975 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11977 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11978 fi
11979
11980
11981