Debian Codegraph @

configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Open Yahtzee 1.9.3.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
206 fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227 fi
228 fi
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell [email protected] and
270 $0: [email protected] about your system, including any
271 $0: error possibly output before this message. Then install
272 $0: a modern shell, or manually run the script under such a
273 $0: shell if you do have one."
274 fi
275 exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293 { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302 return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\).*/{
351 s//\1/
352 q
353 }
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
378 {
379 eval $1+=\$2
380 }'
381 else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
395 {
396 as_val=$(( $* ))
397 }'
398 else
399 as_fn_arith ()
400 {
401 as_val=`expr "$@" || test $? -eq 1`
402 }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417 fi
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425 else
426 as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437 else
438 as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\/\)$/{
451 s//\1/
452 q
453 }
454 /^X\/\(\/\).*/{
455 s//\1/
456 q
457 }
458 s/.*/./; q'`
459
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
474 p
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
480 b
481 :lineno
482 N
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
512 *)
513 ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519 else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
536 fi
537 else
538 as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545 else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
562
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
579
580 # Identity of this package.
581 PACKAGE_NAME='Open Yahtzee'
582 PACKAGE_TARNAME='openyahtzee'
583 PACKAGE_VERSION='1.9.3'
584 PACKAGE_STRING='Open Yahtzee 1.9.3'
585 PACKAGE_BUGREPORT='[email protected]'
586 PACKAGE_URL=''
587
588 ac_unique_file="src/openyahtzee.cpp"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 # include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 # include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
624
625 ac_subst_vars='am__EXEEXT_FALSE
626 am__EXEEXT_TRUE
627 LTLIBOBJS
628 LIBOBJS
629 BOOST_LDFLAGS
630 BOOST_CPPFLAGS
631 host_os
632 host_vendor
633 host_cpu
634 host
635 build_os
636 build_vendor
637 build_cpu
638 build
639 WX_RESCOMP
640 WX_VERSION
641 WX_LIBS_STATIC
642 WX_LIBS
643 WX_CXXFLAGS_ONLY
644 WX_CFLAGS_ONLY
645 WX_CXXFLAGS
646 WX_CFLAGS
647 WX_CPPFLAGS
648 WX_CONFIG_PATH
649 EGREP
650 GREP
651 CPP
652 am__fastdepCC_FALSE
653 am__fastdepCC_TRUE
654 CCDEPMODE
655 ac_ct_CC
656 CFLAGS
657 CC
658 am__fastdepCXX_FALSE
659 am__fastdepCXX_TRUE
660 CXXDEPMODE
661 am__nodep
662 AMDEPBACKSLASH
663 AMDEP_FALSE
664 AMDEP_TRUE
665 am__quote
666 am__include
667 DEPDIR
668 OBJEXT
669 EXEEXT
670 ac_ct_CXX
671 CPPFLAGS
672 LDFLAGS
673 CXXFLAGS
674 CXX
675 AM_BACKSLASH
676 AM_DEFAULT_VERBOSITY
677 AM_DEFAULT_V
678 AM_V
679 am__untar
680 am__tar
681 AMTAR
682 am__leading_dot
683 SET_MAKE
684 AWK
685 mkdir_p
686 MKDIR_P
687 INSTALL_STRIP_PROGRAM
688 STRIP
689 install_sh
690 MAKEINFO
691 AUTOHEADER
692 AUTOMAKE
693 AUTOCONF
694 ACLOCAL
695 VERSION
696 PACKAGE
697 CYGPATH_W
698 am__isrc
699 INSTALL_DATA
700 INSTALL_SCRIPT
701 INSTALL_PROGRAM
702 target_alias
703 host_alias
704 build_alias
705 LIBS
706 ECHO_T
707 ECHO_N
708 ECHO_C
709 DEFS
710 mandir
711 localedir
712 libdir
713 psdir
714 pdfdir
715 dvidir
716 htmldir
717 infodir
718 docdir
719 oldincludedir
720 includedir
721 localstatedir
722 sharedstatedir
723 sysconfdir
724 datadir
725 datarootdir
726 libexecdir
727 sbindir
728 bindir
729 program_transform_name
730 prefix
731 exec_prefix
732 PACKAGE_URL
733 PACKAGE_BUGREPORT
734 PACKAGE_STRING
735 PACKAGE_VERSION
736 PACKAGE_TARNAME
737 PACKAGE_NAME
738 PATH_SEPARATOR
739 SHELL'
740 ac_subst_files=''
741 ac_user_opts='
742 enable_option_checking
743 enable_silent_rules
744 enable_dependency_tracking
745 with_wxdir
746 with_wx_config
747 with_wx_prefix
748 with_wx_exec_prefix
749 with_boost
750 with_boost_libdir
751 '
752 ac_precious_vars='build_alias
753 host_alias
754 target_alias
755 CXX
756 CXXFLAGS
757 LDFLAGS
758 LIBS
759 CPPFLAGS
760 CCC
761 CC
762 CFLAGS
763 CPP'
764
765
766 # Initialize some variables set by options.
767 ac_init_help=
768 ac_init_version=false
769 ac_unrecognized_opts=
770 ac_unrecognized_sep=
771 # The variables have the same names as the options, with
772 # dashes changed to underlines.
773 cache_file=/dev/null
774 exec_prefix=NONE
775 no_create=
776 no_recursion=
777 prefix=NONE
778 program_prefix=NONE
779 program_suffix=NONE
780 program_transform_name=s,x,x,
781 silent=
782 site=
783 srcdir=
784 verbose=
785 x_includes=NONE
786 x_libraries=NONE
787
788 # Installation directory options.
789 # These are left unexpanded so users can "make install exec_prefix=/foo"
790 # and all the variables that are supposed to be based on exec_prefix
791 # by default will actually change.
792 # Use braces instead of parens because sh, perl, etc. also accept them.
793 # (The list follows the same order as the GNU Coding Standards.)
794 bindir='${exec_prefix}/bin'
795 sbindir='${exec_prefix}/sbin'
796 libexecdir='${exec_prefix}/libexec'
797 datarootdir='${prefix}/share'
798 datadir='${datarootdir}'
799 sysconfdir='${prefix}/etc'
800 sharedstatedir='${prefix}/com'
801 localstatedir='${prefix}/var'
802 includedir='${prefix}/include'
803 oldincludedir='/usr/include'
804 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
805 infodir='${datarootdir}/info'
806 htmldir='${docdir}'
807 dvidir='${docdir}'
808 pdfdir='${docdir}'
809 psdir='${docdir}'
810 libdir='${exec_prefix}/lib'
811 localedir='${datarootdir}/locale'
812 mandir='${datarootdir}/man'
813
814 ac_prev=
815 ac_dashdash=
816 for ac_option
817 do
818 # If the previous option needs an argument, assign it.
819 if test -n "$ac_prev"; then
820 eval $ac_prev=\$ac_option
821 ac_prev=
822 continue
823 fi
824
825 case $ac_option in
826 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
827 *=) ac_optarg= ;;
828 *) ac_optarg=yes ;;
829 esac
830
831 # Accept the important Cygnus configure options, so we can diagnose typos.
832
833 case $ac_dashdash$ac_option in
834 --)
835 ac_dashdash=yes ;;
836
837 -bindir | --bindir | --bindi | --bind | --bin | --bi)
838 ac_prev=bindir ;;
839 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
840 bindir=$ac_optarg ;;
841
842 -build | --build | --buil | --bui | --bu)
843 ac_prev=build_alias ;;
844 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
845 build_alias=$ac_optarg ;;
846
847 -cache-file | --cache-file | --cache-fil | --cache-fi \
848 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
849 ac_prev=cache_file ;;
850 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
851 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
852 cache_file=$ac_optarg ;;
853
854 --config-cache | -C)
855 cache_file=config.cache ;;
856
857 -datadir | --datadir | --datadi | --datad)
858 ac_prev=datadir ;;
859 -datadir=* | --datadir=* | --datadi=* | --datad=*)
860 datadir=$ac_optarg ;;
861
862 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
863 | --dataroo | --dataro | --datar)
864 ac_prev=datarootdir ;;
865 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
866 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
867 datarootdir=$ac_optarg ;;
868
869 -disable-* | --disable-*)
870 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
871 # Reject names that are not valid shell variable names.
872 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
873 as_fn_error $? "invalid feature name: $ac_useropt"
874 ac_useropt_orig=$ac_useropt
875 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
876 case $ac_user_opts in
877 *"
878 "enable_$ac_useropt"
879 "*) ;;
880 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
881 ac_unrecognized_sep=', ';;
882 esac
883 eval enable_$ac_useropt=no ;;
884
885 -docdir | --docdir | --docdi | --doc | --do)
886 ac_prev=docdir ;;
887 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
888 docdir=$ac_optarg ;;
889
890 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
891 ac_prev=dvidir ;;
892 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
893 dvidir=$ac_optarg ;;
894
895 -enable-* | --enable-*)
896 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
897 # Reject names that are not valid shell variable names.
898 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
899 as_fn_error $? "invalid feature name: $ac_useropt"
900 ac_useropt_orig=$ac_useropt
901 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
902 case $ac_user_opts in
903 *"
904 "enable_$ac_useropt"
905 "*) ;;
906 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
907 ac_unrecognized_sep=', ';;
908 esac
909 eval enable_$ac_useropt=\$ac_optarg ;;
910
911 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
912 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
913 | --exec | --exe | --ex)
914 ac_prev=exec_prefix ;;
915 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
916 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
917 | --exec=* | --exe=* | --ex=*)
918 exec_prefix=$ac_optarg ;;
919
920 -gas | --gas | --ga | --g)
921 # Obsolete; use --with-gas.
922 with_gas=yes ;;
923
924 -help | --help | --hel | --he | -h)
925 ac_init_help=long ;;
926 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
927 ac_init_help=recursive ;;
928 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
929 ac_init_help=short ;;
930
931 -host | --host | --hos | --ho)
932 ac_prev=host_alias ;;
933 -host=* | --host=* | --hos=* | --ho=*)
934 host_alias=$ac_optarg ;;
935
936 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
937 ac_prev=htmldir ;;
938 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
939 | --ht=*)
940 htmldir=$ac_optarg ;;
941
942 -includedir | --includedir | --includedi | --included | --include \
943 | --includ | --inclu | --incl | --inc)
944 ac_prev=includedir ;;
945 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
946 | --includ=* | --inclu=* | --incl=* | --inc=*)
947 includedir=$ac_optarg ;;
948
949 -infodir | --infodir | --infodi | --infod | --info | --inf)
950 ac_prev=infodir ;;
951 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
952 infodir=$ac_optarg ;;
953
954 -libdir | --libdir | --libdi | --libd)
955 ac_prev=libdir ;;
956 -libdir=* | --libdir=* | --libdi=* | --libd=*)
957 libdir=$ac_optarg ;;
958
959 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
960 | --libexe | --libex | --libe)
961 ac_prev=libexecdir ;;
962 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
963 | --libexe=* | --libex=* | --libe=*)
964 libexecdir=$ac_optarg ;;
965
966 -localedir | --localedir | --localedi | --localed | --locale)
967 ac_prev=localedir ;;
968 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
969 localedir=$ac_optarg ;;
970
971 -localstatedir | --localstatedir | --localstatedi | --localstated \
972 | --localstate | --localstat | --localsta | --localst | --locals)
973 ac_prev=localstatedir ;;
974 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
975 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
976 localstatedir=$ac_optarg ;;
977
978 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
979 ac_prev=mandir ;;
980 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
981 mandir=$ac_optarg ;;
982
983 -nfp | --nfp | --nf)
984 # Obsolete; use --without-fp.
985 with_fp=no ;;
986
987 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
988 | --no-cr | --no-c | -n)
989 no_create=yes ;;
990
991 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
992 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
993 no_recursion=yes ;;
994
995 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
996 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
997 | --oldin | --oldi | --old | --ol | --o)
998 ac_prev=oldincludedir ;;
999 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1000 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1001 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1002 oldincludedir=$ac_optarg ;;
1003
1004 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1005 ac_prev=prefix ;;
1006 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1007 prefix=$ac_optarg ;;
1008
1009 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1010 | --program-pre | --program-pr | --program-p)
1011 ac_prev=program_prefix ;;
1012 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1013 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1014 program_prefix=$ac_optarg ;;
1015
1016 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1017 | --program-suf | --program-su | --program-s)
1018 ac_prev=program_suffix ;;
1019 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1020 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1021 program_suffix=$ac_optarg ;;
1022
1023 -program-transform-name | --program-transform-name \
1024 | --program-transform-nam | --program-transform-na \
1025 | --program-transform-n | --program-transform- \
1026 | --program-transform | --program-transfor \
1027 | --program-transfo | --program-transf \
1028 | --program-trans | --program-tran \
1029 | --progr-tra | --program-tr | --program-t)
1030 ac_prev=program_transform_name ;;
1031 -program-transform-name=* | --program-transform-name=* \
1032 | --program-transform-nam=* | --program-transform-na=* \
1033 | --program-transform-n=* | --program-transform-=* \
1034 | --program-transform=* | --program-transfor=* \
1035 | --program-transfo=* | --program-transf=* \
1036 | --program-trans=* | --program-tran=* \
1037 | --progr-tra=* | --program-tr=* | --program-t=*)
1038 program_transform_name=$ac_optarg ;;
1039
1040 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1041 ac_prev=pdfdir ;;
1042 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1043 pdfdir=$ac_optarg ;;
1044
1045 -psdir | --psdir | --psdi | --psd | --ps)
1046 ac_prev=psdir ;;
1047 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1048 psdir=$ac_optarg ;;
1049
1050 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1051 | -silent | --silent | --silen | --sile | --sil)
1052 silent=yes ;;
1053
1054 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1055 ac_prev=sbindir ;;
1056 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1057 | --sbi=* | --sb=*)
1058 sbindir=$ac_optarg ;;
1059
1060 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1061 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1062 | --sharedst | --shareds | --shared | --share | --shar \
1063 | --sha | --sh)
1064 ac_prev=sharedstatedir ;;
1065 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1066 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1067 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1068 | --sha=* | --sh=*)
1069 sharedstatedir=$ac_optarg ;;
1070
1071 -site | --site | --sit)
1072 ac_prev=site ;;
1073 -site=* | --site=* | --sit=*)
1074 site=$ac_optarg ;;
1075
1076 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1077 ac_prev=srcdir ;;
1078 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1079 srcdir=$ac_optarg ;;
1080
1081 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1082 | --syscon | --sysco | --sysc | --sys | --sy)
1083 ac_prev=sysconfdir ;;
1084 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1085 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1086 sysconfdir=$ac_optarg ;;
1087
1088 -target | --target | --targe | --targ | --tar | --ta | --t)
1089 ac_prev=target_alias ;;
1090 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1091 target_alias=$ac_optarg ;;
1092
1093 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1094 verbose=yes ;;
1095
1096 -version | --version | --versio | --versi | --vers | -V)
1097 ac_init_version=: ;;
1098
1099 -with-* | --with-*)
1100 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1101 # Reject names that are not valid shell variable names.
1102 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1103 as_fn_error $? "invalid package name: $ac_useropt"
1104 ac_useropt_orig=$ac_useropt
1105 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1106 case $ac_user_opts in
1107 *"
1108 "with_$ac_useropt"
1109 "*) ;;
1110 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1111 ac_unrecognized_sep=', ';;
1112 esac
1113 eval with_$ac_useropt=\$ac_optarg ;;
1114
1115 -without-* | --without-*)
1116 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1117 # Reject names that are not valid shell variable names.
1118 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1119 as_fn_error $? "invalid package name: $ac_useropt"
1120 ac_useropt_orig=$ac_useropt
1121 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1122 case $ac_user_opts in
1123 *"
1124 "with_$ac_useropt"
1125 "*) ;;
1126 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1127 ac_unrecognized_sep=', ';;
1128 esac
1129 eval with_$ac_useropt=no ;;
1130
1131 --x)
1132 # Obsolete; use --with-x.
1133 with_x=yes ;;
1134
1135 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1136 | --x-incl | --x-inc | --x-in | --x-i)
1137 ac_prev=x_includes ;;
1138 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1139 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1140 x_includes=$ac_optarg ;;
1141
1142 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1143 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1144 ac_prev=x_libraries ;;
1145 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1146 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1147 x_libraries=$ac_optarg ;;
1148
1149 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1150 Try \`$0 --help' for more information"
1151 ;;
1152
1153 *=*)
1154 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1155 # Reject names that are not valid shell variable names.
1156 case $ac_envvar in #(
1157 '' | [0-9]* | *[!_$as_cr_alnum]* )
1158 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1159 esac
1160 eval $ac_envvar=\$ac_optarg
1161 export $ac_envvar ;;
1162
1163 *)
1164 # FIXME: should be removed in autoconf 3.0.
1165 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1166 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1167 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1168 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1169 ;;
1170
1171 esac
1172 done
1173
1174 if test -n "$ac_prev"; then
1175 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1176 as_fn_error $? "missing argument to $ac_option"
1177 fi
1178
1179 if test -n "$ac_unrecognized_opts"; then
1180 case $enable_option_checking in
1181 no) ;;
1182 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1183 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1184 esac
1185 fi
1186
1187 # Check all directory arguments for consistency.
1188 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1189 datadir sysconfdir sharedstatedir localstatedir includedir \
1190 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1191 libdir localedir mandir
1192 do
1193 eval ac_val=\$$ac_var
1194 # Remove trailing slashes.
1195 case $ac_val in
1196 */ )
1197 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1198 eval $ac_var=\$ac_val;;
1199 esac
1200 # Be sure to have absolute directory names.
1201 case $ac_val in
1202 [\\/$]* | ?:[\\/]* ) continue;;
1203 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1204 esac
1205 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1206 done
1207
1208 # There might be people who depend on the old broken behavior: `$host'
1209 # used to hold the argument of --host etc.
1210 # FIXME: To remove some day.
1211 build=$build_alias
1212 host=$host_alias
1213 target=$target_alias
1214
1215 # FIXME: To remove some day.
1216 if test "x$host_alias" != x; then
1217 if test "x$build_alias" = x; then
1218 cross_compiling=maybe
1219 elif test "x$build_alias" != "x$host_alias"; then
1220 cross_compiling=yes
1221 fi
1222 fi
1223
1224 ac_tool_prefix=
1225 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1226
1227 test "$silent" = yes && exec 6>/dev/null
1228
1229
1230 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1231 ac_ls_di=`ls -di .` &&
1232 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1233 as_fn_error $? "working directory cannot be determined"
1234 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1235 as_fn_error $? "pwd does not report name of working directory"
1236
1237
1238 # Find the source files, if location was not specified.
1239 if test -z "$srcdir"; then
1240 ac_srcdir_defaulted=yes
1241 # Try the directory containing this script, then the parent directory.
1242 ac_confdir=`$as_dirname -- "$as_myself" ||
1243 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1244 X"$as_myself" : 'X\(//\)[^/]' \| \
1245 X"$as_myself" : 'X\(//\)$' \| \
1246 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1247 $as_echo X"$as_myself" |
1248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1249 s//\1/
1250 q
1251 }
1252 /^X\(\/\/\)[^/].*/{
1253 s//\1/
1254 q
1255 }
1256 /^X\(\/\/\)$/{
1257 s//\1/
1258 q
1259 }
1260 /^X\(\/\).*/{
1261 s//\1/
1262 q
1263 }
1264 s/.*/./; q'`
1265 srcdir=$ac_confdir
1266 if test ! -r "$srcdir/$ac_unique_file"; then
1267 srcdir=..
1268 fi
1269 else
1270 ac_srcdir_defaulted=no
1271 fi
1272 if test ! -r "$srcdir/$ac_unique_file"; then
1273 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1274 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1275 fi
1276 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1277 ac_abs_confdir=`(
1278 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1279 pwd)`
1280 # When building in place, set srcdir=.
1281 if test "$ac_abs_confdir" = "$ac_pwd"; then
1282 srcdir=.
1283 fi
1284 # Remove unnecessary trailing slashes from srcdir.
1285 # Double slashes in file names in object file debugging info
1286 # mess up M-x gdb in Emacs.
1287 case $srcdir in
1288 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1289 esac
1290 for ac_var in $ac_precious_vars; do
1291 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1292 eval ac_env_${ac_var}_value=\$${ac_var}
1293 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1294 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1295 done
1296
1297 #
1298 # Report the --help message.
1299 #
1300 if test "$ac_init_help" = "long"; then
1301 # Omit some internal or obsolete options to make the list less imposing.
1302 # This message is too long to be a string in the A/UX 3.1 sh.
1303 cat <<_ACEOF
1304 \`configure' configures Open Yahtzee 1.9.3 to adapt to many kinds of systems.
1305
1306 Usage: $0 [OPTION]... [VAR=VALUE]...
1307
1308 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1309 VAR=VALUE. See below for descriptions of some of the useful variables.
1310
1311 Defaults for the options are specified in brackets.
1312
1313 Configuration:
1314 -h, --help display this help and exit
1315 --help=short display options specific to this package
1316 --help=recursive display the short help of all the included packages
1317 -V, --version display version information and exit
1318 -q, --quiet, --silent do not print \`checking ...' messages
1319 --cache-file=FILE cache test results in FILE [disabled]
1320 -C, --config-cache alias for \`--cache-file=config.cache'
1321 -n, --no-create do not create output files
1322 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1323
1324 Installation directories:
1325 --prefix=PREFIX install architecture-independent files in PREFIX
1326 [$ac_default_prefix]
1327 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1328 [PREFIX]
1329
1330 By default, \`make install' will install all the files in
1331 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1332 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1333 for instance \`--prefix=\$HOME'.
1334
1335 For better control, use the options below.
1336
1337 Fine tuning of the installation directories:
1338 --bindir=DIR user executables [EPREFIX/bin]
1339 --sbindir=DIR system admin executables [EPREFIX/sbin]
1340 --libexecdir=DIR program executables [EPREFIX/libexec]
1341 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1342 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1343 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1344 --libdir=DIR object code libraries [EPREFIX/lib]
1345 --includedir=DIR C header files [PREFIX/include]
1346 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1347 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1348 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1349 --infodir=DIR info documentation [DATAROOTDIR/info]
1350 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1351 --mandir=DIR man documentation [DATAROOTDIR/man]
1352 --docdir=DIR documentation root [DATAROOTDIR/doc/openyahtzee]
1353 --htmldir=DIR html documentation [DOCDIR]
1354 --dvidir=DIR dvi documentation [DOCDIR]
1355 --pdfdir=DIR pdf documentation [DOCDIR]
1356 --psdir=DIR ps documentation [DOCDIR]
1357 _ACEOF
1358
1359 cat <<\_ACEOF
1360
1361 Program names:
1362 --program-prefix=PREFIX prepend PREFIX to installed program names
1363 --program-suffix=SUFFIX append SUFFIX to installed program names
1364 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1365
1366 System types:
1367 --build=BUILD configure for building on BUILD [guessed]
1368 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1369 _ACEOF
1370 fi
1371
1372 if test -n "$ac_init_help"; then
1373 case $ac_init_help in
1374 short | recursive ) echo "Configuration of Open Yahtzee 1.9.3:";;
1375 esac
1376 cat <<\_ACEOF
1377
1378 Optional Features:
1379 --disable-option-checking ignore unrecognized --enable/--with options
1380 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1381 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1382 --enable-silent-rules less verbose build output (undo: "make V=1")
1383 --disable-silent-rules verbose build output (undo: "make V=0")
1384 --enable-dependency-tracking
1385 do not reject slow dependency extractors
1386 --disable-dependency-tracking
1387 speeds up one-time build
1388
1389 Optional Packages:
1390 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1391 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1392 --with-wxdir=PATH Use uninstalled version of wxWidgets in PATH
1393 --with-wx-config=CONFIG wx-config script to use (optional)
1394 --with-wx-prefix=PREFIX Prefix where wxWidgets is installed (optional)
1395 --with-wx-exec-prefix=PREFIX
1396 Exec prefix where wxWidgets is installed (optional)
1397 --with-boost[=ARG] use Boost library from a standard location
1398 (ARG=yes), from the specified location (ARG=<path>),
1399 or disable it (ARG=no) [ARG=yes]
1400 --with-boost-libdir=LIB_DIR
1401 Force given directory for boost libraries. Note that
1402 this will override library path detection, so use
1403 this parameter only if default library detection
1404 fails and you know exactly where your boost
1405 libraries are located.
1406
1407 Some influential environment variables:
1408 CXX C++ compiler command
1409 CXXFLAGS C++ compiler flags
1410 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1411 nonstandard directory <lib dir>
1412 LIBS libraries to pass to the linker, e.g. -l<library>
1413 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1414 you have headers in a nonstandard directory <include dir>
1415 CC C compiler command
1416 CFLAGS C compiler flags
1417 CPP C preprocessor
1418
1419 Use these variables to override the choices made by `configure' or to help
1420 it to find libraries and programs with nonstandard names/locations.
1421
1422 Report bugs to <[email protected]>.
1423 _ACEOF
1424 ac_status=$?
1425 fi
1426
1427 if test "$ac_init_help" = "recursive"; then
1428 # If there are subdirs, report their specific --help.
1429 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1430 test -d "$ac_dir" ||
1431 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1432 continue
1433 ac_builddir=.
1434
1435 case "$ac_dir" in
1436 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1437 *)
1438 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1439 # A ".." for each directory in $ac_dir_suffix.
1440 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1441 case $ac_top_builddir_sub in
1442 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1443 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1444 esac ;;
1445 esac
1446 ac_abs_top_builddir=$ac_pwd
1447 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1448 # for backward compatibility:
1449 ac_top_builddir=$ac_top_build_prefix
1450
1451 case $srcdir in
1452 .) # We are building in place.
1453 ac_srcdir=.
1454 ac_top_srcdir=$ac_top_builddir_sub
1455 ac_abs_top_srcdir=$ac_pwd ;;
1456 [\\/]* | ?:[\\/]* ) # Absolute name.
1457 ac_srcdir=$srcdir$ac_dir_suffix;
1458 ac_top_srcdir=$srcdir
1459 ac_abs_top_srcdir=$srcdir ;;
1460 *) # Relative name.
1461 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1462 ac_top_srcdir=$ac_top_build_prefix$srcdir
1463 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1464 esac
1465 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1466
1467 cd "$ac_dir" || { ac_status=$?; continue; }
1468 # Check for guested configure.
1469 if test -f "$ac_srcdir/configure.gnu"; then
1470 echo &&
1471 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1472 elif test -f "$ac_srcdir/configure"; then
1473 echo &&
1474 $SHELL "$ac_srcdir/configure" --help=recursive
1475 else
1476 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1477 fi || ac_status=$?
1478 cd "$ac_pwd" || { ac_status=$?; break; }
1479 done
1480 fi
1481
1482 test -n "$ac_init_help" && exit $ac_status
1483 if $ac_init_version; then
1484 cat <<\_ACEOF
1485 Open Yahtzee configure 1.9.3
1486 generated by GNU Autoconf 2.69
1487
1488 Copyright (C) 2012 Free Software Foundation, Inc.
1489 This configure script is free software; the Free Software Foundation
1490 gives unlimited permission to copy, distribute and modify it.
1491 _ACEOF
1492 exit
1493 fi
1494
1495 ## ------------------------ ##
1496 ## Autoconf initialization. ##
1497 ## ------------------------ ##
1498
1499 # ac_fn_cxx_try_compile LINENO
1500 # ----------------------------
1501 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1502 ac_fn_cxx_try_compile ()
1503 {
1504 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1505 rm -f conftest.$ac_objext
1506 if { { ac_try="$ac_compile"
1507 case "(($ac_try" in
1508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1509 *) ac_try_echo=$ac_try;;
1510 esac
1511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1512 $as_echo "$ac_try_echo"; } >&5
1513 (eval "$ac_compile") 2>conftest.err
1514 ac_status=$?
1515 if test -s conftest.err; then
1516 grep -v '^ *+' conftest.err >conftest.er1
1517 cat conftest.er1 >&5
1518 mv -f conftest.er1 conftest.err
1519 fi
1520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1521 test $ac_status = 0; } && {
1522 test -z "$ac_cxx_werror_flag" ||
1523 test ! -s conftest.err
1524 } && test -s conftest.$ac_objext; then :
1525 ac_retval=0
1526 else
1527 $as_echo "$as_me: failed program was:" >&5
1528 sed 's/^/| /' conftest.$ac_ext >&5
1529
1530 ac_retval=1
1531 fi
1532 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1533 as_fn_set_status $ac_retval
1534
1535 } # ac_fn_cxx_try_compile
1536
1537 # ac_fn_c_try_compile LINENO
1538 # --------------------------
1539 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1540 ac_fn_c_try_compile ()
1541 {
1542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1543 rm -f conftest.$ac_objext
1544 if { { ac_try="$ac_compile"
1545 case "(($ac_try" in
1546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1547 *) ac_try_echo=$ac_try;;
1548 esac
1549 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1550 $as_echo "$ac_try_echo"; } >&5
1551 (eval "$ac_compile") 2>conftest.err
1552 ac_status=$?
1553 if test -s conftest.err; then
1554 grep -v '^ *+' conftest.err >conftest.er1
1555 cat conftest.er1 >&5
1556 mv -f conftest.er1 conftest.err
1557 fi
1558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1559 test $ac_status = 0; } && {
1560 test -z "$ac_c_werror_flag" ||
1561 test ! -s conftest.err
1562 } && test -s conftest.$ac_objext; then :
1563 ac_retval=0
1564 else
1565 $as_echo "$as_me: failed program was:" >&5
1566 sed 's/^/| /' conftest.$ac_ext >&5
1567
1568 ac_retval=1
1569 fi
1570 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1571 as_fn_set_status $ac_retval
1572
1573 } # ac_fn_c_try_compile
1574
1575 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1576 # -------------------------------------------
1577 # Tests whether TYPE exists after having included INCLUDES, setting cache
1578 # variable VAR accordingly.
1579 ac_fn_c_check_type ()
1580 {
1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1583 $as_echo_n "checking for $2... " >&6; }
1584 if eval \${$3+:} false; then :
1585 $as_echo_n "(cached) " >&6
1586 else
1587 eval "$3=no"
1588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1589 /* end confdefs.h. */
1590 $4
1591 int
1592 main ()
1593 {
1594 if (sizeof ($2))
1595 return 0;
1596 ;
1597 return 0;
1598 }
1599 _ACEOF
1600 if ac_fn_c_try_compile "$LINENO"; then :
1601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1602 /* end confdefs.h. */
1603 $4
1604 int
1605 main ()
1606 {
1607 if (sizeof (($2)))
1608 return 0;
1609 ;
1610 return 0;
1611 }
1612 _ACEOF
1613 if ac_fn_c_try_compile "$LINENO"; then :
1614
1615 else
1616 eval "$3=yes"
1617 fi
1618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1619 fi
1620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1621 fi
1622 eval ac_res=\$$3
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1624 $as_echo "$ac_res" >&6; }
1625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1626
1627 } # ac_fn_c_check_type
1628
1629 # ac_fn_c_try_cpp LINENO
1630 # ----------------------
1631 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1632 ac_fn_c_try_cpp ()
1633 {
1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635 if { { ac_try="$ac_cpp conftest.$ac_ext"
1636 case "(($ac_try" in
1637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1638 *) ac_try_echo=$ac_try;;
1639 esac
1640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641 $as_echo "$ac_try_echo"; } >&5
1642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1643 ac_status=$?
1644 if test -s conftest.err; then
1645 grep -v '^ *+' conftest.err >conftest.er1
1646 cat conftest.er1 >&5
1647 mv -f conftest.er1 conftest.err
1648 fi
1649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650 test $ac_status = 0; } > conftest.i && {
1651 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1652 test ! -s conftest.err
1653 }; then :
1654 ac_retval=0
1655 else
1656 $as_echo "$as_me: failed program was:" >&5
1657 sed 's/^/| /' conftest.$ac_ext >&5
1658
1659 ac_retval=1
1660 fi
1661 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1662 as_fn_set_status $ac_retval
1663
1664 } # ac_fn_c_try_cpp
1665
1666 # ac_fn_c_try_run LINENO
1667 # ----------------------
1668 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1669 # that executables *can* be run.
1670 ac_fn_c_try_run ()
1671 {
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 if { { ac_try="$ac_link"
1674 case "(($ac_try" in
1675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1676 *) ac_try_echo=$ac_try;;
1677 esac
1678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679 $as_echo "$ac_try_echo"; } >&5
1680 (eval "$ac_link") 2>&5
1681 ac_status=$?
1682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1684 { { case "(($ac_try" in
1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686 *) ac_try_echo=$ac_try;;
1687 esac
1688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689 $as_echo "$ac_try_echo"; } >&5
1690 (eval "$ac_try") 2>&5
1691 ac_status=$?
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; }; }; then :
1694 ac_retval=0
1695 else
1696 $as_echo "$as_me: program exited with status $ac_status" >&5
1697 $as_echo "$as_me: failed program was:" >&5
1698 sed 's/^/| /' conftest.$ac_ext >&5
1699
1700 ac_retval=$ac_status
1701 fi
1702 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704 as_fn_set_status $ac_retval
1705
1706 } # ac_fn_c_try_run
1707
1708 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1709 # -------------------------------------------------------
1710 # Tests whether HEADER exists and can be compiled using the include files in
1711 # INCLUDES, setting the cache variable VAR accordingly.
1712 ac_fn_c_check_header_compile ()
1713 {
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1716 $as_echo_n "checking for $2... " >&6; }
1717 if eval \${$3+:} false; then :
1718 $as_echo_n "(cached) " >&6
1719 else
1720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1721 /* end confdefs.h. */
1722 $4
1723 #include <$2>
1724 _ACEOF
1725 if ac_fn_c_try_compile "$LINENO"; then :
1726 eval "$3=yes"
1727 else
1728 eval "$3=no"
1729 fi
1730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1731 fi
1732 eval ac_res=\$$3
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1734 $as_echo "$ac_res" >&6; }
1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736
1737 } # ac_fn_c_check_header_compile
1738
1739 # ac_fn_c_try_link LINENO
1740 # -----------------------
1741 # Try to link conftest.$ac_ext, and return whether this succeeded.
1742 ac_fn_c_try_link ()
1743 {
1744 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1745 rm -f conftest.$ac_objext conftest$ac_exeext
1746 if { { ac_try="$ac_link"
1747 case "(($ac_try" in
1748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749 *) ac_try_echo=$ac_try;;
1750 esac
1751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752 $as_echo "$ac_try_echo"; } >&5
1753 (eval "$ac_link") 2>conftest.err
1754 ac_status=$?
1755 if test -s conftest.err; then
1756 grep -v '^ *+' conftest.err >conftest.er1
1757 cat conftest.er1 >&5
1758 mv -f conftest.er1 conftest.err
1759 fi
1760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1761 test $ac_status = 0; } && {
1762 test -z "$ac_c_werror_flag" ||
1763 test ! -s conftest.err
1764 } && test -s conftest$ac_exeext && {
1765 test "$cross_compiling" = yes ||
1766 test -x conftest$ac_exeext
1767 }; then :
1768 ac_retval=0
1769 else
1770 $as_echo "$as_me: failed program was:" >&5
1771 sed 's/^/| /' conftest.$ac_ext >&5
1772
1773 ac_retval=1
1774 fi
1775 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1776 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1777 # interfere with the next link command; also delete a directory that is
1778 # left behind by Apple's compiler. We do this before executing the actions.
1779 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781 as_fn_set_status $ac_retval
1782
1783 } # ac_fn_c_try_link
1784
1785 # ac_fn_c_check_func LINENO FUNC VAR
1786 # ----------------------------------
1787 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1788 ac_fn_c_check_func ()
1789 {
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1792 $as_echo_n "checking for $2... " >&6; }
1793 if eval \${$3+:} false; then :
1794 $as_echo_n "(cached) " >&6
1795 else
1796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797 /* end confdefs.h. */
1798 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1799 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1800 #define $2 innocuous_$2
1801
1802 /* System header to define __stub macros and hopefully few prototypes,
1803 which can conflict with char $2 (); below.
1804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1805 <limits.h> exists even on freestanding compilers. */
1806
1807 #ifdef __STDC__
1808 # include <limits.h>
1809 #else
1810 # include <assert.h>
1811 #endif
1812
1813 #undef $2
1814
1815 /* Override any GCC internal prototype to avoid an error.
1816 Use char because int might match the return type of a GCC
1817 builtin and then its argument prototype would still apply. */
1818 #ifdef __cplusplus
1819 extern "C"
1820 #endif
1821 char $2 ();
1822 /* The GNU C library defines this for functions which it implements
1823 to always fail with ENOSYS. Some functions are actually named
1824 something starting with __ and the normal name is an alias. */
1825 #if defined __stub_$2 || defined __stub___$2
1826 choke me
1827 #endif
1828
1829 int
1830 main ()
1831 {
1832 return $2 ();
1833 ;
1834 return 0;
1835 }
1836 _ACEOF
1837 if ac_fn_c_try_link "$LINENO"; then :
1838 eval "$3=yes"
1839 else
1840 eval "$3=no"
1841 fi
1842 rm -f core conftest.err conftest.$ac_objext \
1843 conftest$ac_exeext conftest.$ac_ext
1844 fi
1845 eval ac_res=\$$3
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1847 $as_echo "$ac_res" >&6; }
1848 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1849
1850 } # ac_fn_c_check_func
1851 cat >config.log <<_ACEOF
1852 This file contains any messages produced by compilers while
1853 running configure, to aid debugging if configure makes a mistake.
1854
1855 It was created by Open Yahtzee $as_me 1.9.3, which was
1856 generated by GNU Autoconf 2.69. Invocation command line was
1857
1858 $ $0 $@
1859
1860 _ACEOF
1861 exec 5>>config.log
1862 {
1863 cat <<_ASUNAME
1864 ## --------- ##
1865 ## Platform. ##
1866 ## --------- ##
1867
1868 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1869 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1870 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1871 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1872 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1873
1874 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1875 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1876
1877 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1878 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1879 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1880 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1881 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1882 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1883 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1884
1885 _ASUNAME
1886
1887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1888 for as_dir in $PATH
1889 do
1890 IFS=$as_save_IFS
1891 test -z "$as_dir" && as_dir=.
1892 $as_echo "PATH: $as_dir"
1893 done
1894 IFS=$as_save_IFS
1895
1896 } >&5
1897
1898 cat >&5 <<_ACEOF
1899
1900
1901 ## ----------- ##
1902 ## Core tests. ##
1903 ## ----------- ##
1904
1905 _ACEOF
1906
1907
1908 # Keep a trace of the command line.
1909 # Strip out --no-create and --no-recursion so they do not pile up.
1910 # Strip out --silent because we don't want to record it for future runs.
1911 # Also quote any args containing shell meta-characters.
1912 # Make two passes to allow for proper duplicate-argument suppression.
1913 ac_configure_args=
1914 ac_configure_args0=
1915 ac_configure_args1=
1916 ac_must_keep_next=false
1917 for ac_pass in 1 2
1918 do
1919 for ac_arg
1920 do
1921 case $ac_arg in
1922 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1923 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1924 | -silent | --silent | --silen | --sile | --sil)
1925 continue ;;
1926 *\'*)
1927 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1928 esac
1929 case $ac_pass in
1930 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1931 2)
1932 as_fn_append ac_configure_args1 " '$ac_arg'"
1933 if test $ac_must_keep_next = true; then
1934 ac_must_keep_next=false # Got value, back to normal.
1935 else
1936 case $ac_arg in
1937 *=* | --config-cache | -C | -disable-* | --disable-* \
1938 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1939 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1940 | -with-* | --with-* | -without-* | --without-* | --x)
1941 case "$ac_configure_args0 " in
1942 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1943 esac
1944 ;;
1945 -* ) ac_must_keep_next=true ;;
1946 esac
1947 fi
1948 as_fn_append ac_configure_args " '$ac_arg'"
1949 ;;
1950 esac
1951 done
1952 done
1953 { ac_configure_args0=; unset ac_configure_args0;}
1954 { ac_configure_args1=; unset ac_configure_args1;}
1955
1956 # When interrupted or exit'd, cleanup temporary files, and complete
1957 # config.log. We remove comments because anyway the quotes in there
1958 # would cause problems or look ugly.
1959 # WARNING: Use '\'' to represent an apostrophe within the trap.
1960 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1961 trap 'exit_status=$?
1962 # Save into config.log some information that might help in debugging.
1963 {
1964 echo
1965
1966 $as_echo "## ---------------- ##
1967 ## Cache variables. ##
1968 ## ---------------- ##"
1969 echo
1970 # The following way of writing the cache mishandles newlines in values,
1971 (
1972 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1973 eval ac_val=\$$ac_var
1974 case $ac_val in #(
1975 *${as_nl}*)
1976 case $ac_var in #(
1977 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1978 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1979 esac
1980 case $ac_var in #(
1981 _ | IFS | as_nl) ;; #(
1982 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1983 *) { eval $ac_var=; unset $ac_var;} ;;
1984 esac ;;
1985 esac
1986 done
1987 (set) 2>&1 |
1988 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1989 *${as_nl}ac_space=\ *)
1990 sed -n \
1991 "s/'\''/'\''\\\\'\'''\''/g;
1992 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1993 ;; #(
1994 *)
1995 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1996 ;;
1997 esac |
1998 sort
1999 )
2000 echo
2001
2002 $as_echo "## ----------------- ##
2003 ## Output variables. ##
2004 ## ----------------- ##"
2005 echo
2006 for ac_var in $ac_subst_vars
2007 do
2008 eval ac_val=\$$ac_var
2009 case $ac_val in
2010 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2011 esac
2012 $as_echo "$ac_var='\''$ac_val'\''"
2013 done | sort
2014 echo
2015
2016 if test -n "$ac_subst_files"; then
2017 $as_echo "## ------------------- ##
2018 ## File substitutions. ##
2019 ## ------------------- ##"
2020 echo
2021 for ac_var in $ac_subst_files
2022 do
2023 eval ac_val=\$$ac_var
2024 case $ac_val in
2025 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2026 esac
2027 $as_echo "$ac_var='\''$ac_val'\''"
2028 done | sort
2029 echo
2030 fi
2031
2032 if test -s confdefs.h; then
2033 $as_echo "## ----------- ##
2034 ## confdefs.h. ##
2035 ## ----------- ##"
2036 echo
2037 cat confdefs.h
2038 echo
2039 fi
2040 test "$ac_signal" != 0 &&
2041 $as_echo "$as_me: caught signal $ac_signal"
2042 $as_echo "$as_me: exit $exit_status"
2043 } >&5
2044 rm -f core *.core core.conftest.* &&
2045 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2046 exit $exit_status
2047 ' 0
2048 for ac_signal in 1 2 13 15; do
2049 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2050 done
2051 ac_signal=0
2052
2053 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2054 rm -f -r conftest* confdefs.h
2055
2056 $as_echo "/* confdefs.h */" > confdefs.h
2057
2058 # Predefined preprocessor variables.
2059
2060 cat >>confdefs.h <<_ACEOF
2061 #define PACKAGE_NAME "$PACKAGE_NAME"
2062 _ACEOF
2063
2064 cat >>confdefs.h <<_ACEOF
2065 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2066 _ACEOF
2067
2068 cat >>confdefs.h <<_ACEOF
2069 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2070 _ACEOF
2071
2072 cat >>confdefs.h <<_ACEOF
2073 #define PACKAGE_STRING "$PACKAGE_STRING"
2074 _ACEOF
2075
2076 cat >>confdefs.h <<_ACEOF
2077 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2078 _ACEOF
2079
2080 cat >>confdefs.h <<_ACEOF
2081 #define PACKAGE_URL "$PACKAGE_URL"
2082 _ACEOF
2083
2084
2085 # Let the site file select an alternate cache file if it wants to.
2086 # Prefer an explicitly selected file to automatically selected ones.
2087 ac_site_file1=NONE
2088 ac_site_file2=NONE
2089 if test -n "$CONFIG_SITE"; then
2090 # We do not want a PATH search for config.site.
2091 case $CONFIG_SITE in #((
2092 -*) ac_site_file1=./$CONFIG_SITE;;
2093 */*) ac_site_file1=$CONFIG_SITE;;
2094 *) ac_site_file1=./$CONFIG_SITE;;
2095 esac
2096 elif test "x$prefix" != xNONE; then
2097 ac_site_file1=$prefix/share/config.site
2098 ac_site_file2=$prefix/etc/config.site
2099 else
2100 ac_site_file1=$ac_default_prefix/share/config.site
2101 ac_site_file2=$ac_default_prefix/etc/config.site
2102 fi
2103 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2104 do
2105 test "x$ac_site_file" = xNONE && continue
2106 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2108 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2109 sed 's/^/| /' "$ac_site_file" >&5
2110 . "$ac_site_file" \
2111 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2112 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2113 as_fn_error $? "failed to load site script $ac_site_file
2114 See \`config.log' for more details" "$LINENO" 5; }
2115 fi
2116 done
2117
2118 if test -r "$cache_file"; then
2119 # Some versions of bash will fail to source /dev/null (special files
2120 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2121 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2123 $as_echo "$as_me: loading cache $cache_file" >&6;}
2124 case $cache_file in
2125 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2126 *) . "./$cache_file";;
2127 esac
2128 fi
2129 else
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2131 $as_echo "$as_me: creating cache $cache_file" >&6;}
2132 >$cache_file
2133 fi
2134
2135 # Check that the precious variables saved in the cache have kept the same
2136 # value.
2137 ac_cache_corrupted=false
2138 for ac_var in $ac_precious_vars; do
2139 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2140 eval ac_new_set=\$ac_env_${ac_var}_set
2141 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2142 eval ac_new_val=\$ac_env_${ac_var}_value
2143 case $ac_old_set,$ac_new_set in
2144 set,)
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2146 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2147 ac_cache_corrupted=: ;;
2148 ,set)
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2150 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2151 ac_cache_corrupted=: ;;
2152 ,);;
2153 *)
2154 if test "x$ac_old_val" != "x$ac_new_val"; then
2155 # differences in whitespace do not lead to failure.
2156 ac_old_val_w=`echo x $ac_old_val`
2157 ac_new_val_w=`echo x $ac_new_val`
2158 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2160 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2161 ac_cache_corrupted=:
2162 else
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2164 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2165 eval $ac_var=\$ac_old_val
2166 fi
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2168 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2170 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2171 fi;;
2172 esac
2173 # Pass precious variables to config.status.
2174 if test "$ac_new_set" = set; then
2175 case $ac_new_val in
2176 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2177 *) ac_arg=$ac_var=$ac_new_val ;;
2178 esac
2179 case " $ac_configure_args " in
2180 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2181 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2182 esac
2183 fi
2184 done
2185 if $ac_cache_corrupted; then
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2187 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2189 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2190 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2191 fi
2192 ## -------------------- ##
2193 ## Main body of script. ##
2194 ## -------------------- ##
2195
2196 ac_ext=c
2197 ac_cpp='$CPP $CPPFLAGS'
2198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2201
2202
2203
2204 am__api_version='1.14'
2205
2206 ac_aux_dir=
2207 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2208 if test -f "$ac_dir/install-sh"; then
2209 ac_aux_dir=$ac_dir
2210 ac_install_sh="$ac_aux_dir/install-sh -c"
2211 break
2212 elif test -f "$ac_dir/install.sh"; then
2213 ac_aux_dir=$ac_dir
2214 ac_install_sh="$ac_aux_dir/install.sh -c"
2215 break
2216 elif test -f "$ac_dir/shtool"; then
2217 ac_aux_dir=$ac_dir
2218 ac_install_sh="$ac_aux_dir/shtool install -c"
2219 break
2220 fi
2221 done
2222 if test -z "$ac_aux_dir"; then
2223 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2224 fi
2225
2226 # These three variables are undocumented and unsupported,
2227 # and are intended to be withdrawn in a future Autoconf release.
2228 # They can cause serious problems if a builder's source tree is in a directory
2229 # whose full name contains unusual characters.
2230 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2231 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2232 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2233
2234
2235 # Find a good install program. We prefer a C program (faster),
2236 # so one script is as good as another. But avoid the broken or
2237 # incompatible versions:
2238 # SysV /etc/install, /usr/sbin/install
2239 # SunOS /usr/etc/install
2240 # IRIX /sbin/install
2241 # AIX /bin/install
2242 # AmigaOS /C/install, which installs bootblocks on floppy discs
2243 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2244 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2245 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2246 # OS/2's system install, which has a completely different semantic
2247 # ./install, which can be erroneously created by make from ./install.sh.
2248 # Reject install programs that cannot install multiple files.
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2250 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2251 if test -z "$INSTALL"; then
2252 if ${ac_cv_path_install+:} false; then :
2253 $as_echo_n "(cached) " >&6
2254 else
2255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2256 for as_dir in $PATH
2257 do
2258 IFS=$as_save_IFS
2259 test -z "$as_dir" && as_dir=.
2260 # Account for people who put trailing slashes in PATH elements.
2261 case $as_dir/ in #((
2262 ./ | .// | /[cC]/* | \
2263 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2264 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2265 /usr/ucb/* ) ;;
2266 *)
2267 # OSF1 and SCO ODT 3.0 have their own names for install.
2268 # Don't use installbsd from OSF since it installs stuff as root
2269 # by default.
2270 for ac_prog in ginstall scoinst install; do
2271 for ac_exec_ext in '' $ac_executable_extensions; do
2272 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2273 if test $ac_prog = install &&
2274 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2275 # AIX install. It has an incompatible calling convention.
2276 :
2277 elif test $ac_prog = install &&
2278 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2279 # program-specific install script used by HP pwplus--don't use.
2280 :
2281 else
2282 rm -rf conftest.one conftest.two conftest.dir
2283 echo one > conftest.one
2284 echo two > conftest.two
2285 mkdir conftest.dir
2286 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2287 test -s conftest.one && test -s conftest.two &&
2288 test -s conftest.dir/conftest.one &&
2289 test -s conftest.dir/conftest.two
2290 then
2291 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2292 break 3
2293 fi
2294 fi
2295 fi
2296 done
2297 done
2298 ;;
2299 esac
2300
2301 done
2302 IFS=$as_save_IFS
2303
2304 rm -rf conftest.one conftest.two conftest.dir
2305
2306 fi
2307 if test "${ac_cv_path_install+set}" = set; then
2308 INSTALL=$ac_cv_path_install
2309 else
2310 # As a last resort, use the slow shell script. Don't cache a
2311 # value for INSTALL within a source directory, because that will
2312 # break other packages using the cache if that directory is
2313 # removed, or if the value is a relative name.
2314 INSTALL=$ac_install_sh
2315 fi
2316 fi
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2318 $as_echo "$INSTALL" >&6; }
2319
2320 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2321 # It thinks the first close brace ends the variable substitution.
2322 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2323
2324 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2325
2326 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2327
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2329 $as_echo_n "checking whether build environment is sane... " >&6; }
2330 # Reject unsafe characters in $srcdir or the absolute working directory
2331 # name. Accept space and tab only in the latter.
2332 am_lf='
2333 '
2334 case `pwd` in
2335 *[\\\"\#\$\&\'\`$am_lf]*)
2336 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2337 esac
2338 case $srcdir in
2339 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2340 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2341 esac
2342
2343 # Do 'set' in a subshell so we don't clobber the current shell's
2344 # arguments. Must try -L first in case configure is actually a
2345 # symlink; some systems play weird games with the mod time of symlinks
2346 # (eg FreeBSD returns the mod time of the symlink's containing
2347 # directory).
2348 if (
2349 am_has_slept=no
2350 for am_try in 1 2; do
2351 echo "timestamp, slept: $am_has_slept" > conftest.file
2352 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2353 if test "$*" = "X"; then
2354 # -L didn't work.
2355 set X `ls -t "$srcdir/configure" conftest.file`
2356 fi
2357 if test "$*" != "X $srcdir/configure conftest.file" \
2358 && test "$*" != "X conftest.file $srcdir/configure"; then
2359
2360 # If neither matched, then we have a broken ls. This can happen
2361 # if, for instance, CONFIG_SHELL is bash and it inherits a
2362 # broken ls alias from the environment. This has actually
2363 # happened. Such a system could not be considered "sane".
2364 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2365 alias in your environment" "$LINENO" 5
2366 fi
2367 if test "$2" = conftest.file || test $am_try -eq 2; then
2368 break
2369 fi
2370 # Just in case.
2371 sleep 1
2372 am_has_slept=yes
2373 done
2374 test "$2" = conftest.file
2375 )
2376 then
2377 # Ok.
2378 :
2379 else
2380 as_fn_error $? "newly created file is older than distributed files!
2381 Check your system clock" "$LINENO" 5
2382 fi
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2384 $as_echo "yes" >&6; }
2385 # If we didn't sleep, we still need to ensure time stamps of config.status and
2386 # generated files are strictly newer.
2387 am_sleep_pid=
2388 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2389 ( sleep 1 ) &
2390 am_sleep_pid=$!
2391 fi
2392
2393 rm -f conftest.file
2394
2395 test "$program_prefix" != NONE &&
2396 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2397 # Use a double $ so make ignores it.
2398 test "$program_suffix" != NONE &&
2399 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2400 # Double any \ or $.
2401 # By default was `s,x,x', remove it if useless.
2402 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2403 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2404
2405 # Expand $ac_aux_dir to an absolute path.
2406 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2407
2408 if test x"${MISSING+set}" != xset; then
2409 case $am_aux_dir in
2410 *\ * | *\ *)
2411 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2412 *)
2413 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2414 esac
2415 fi
2416 # Use eval to expand $SHELL
2417 if eval "$MISSING --is-lightweight"; then
2418 am_missing_run="$MISSING "
2419 else
2420 am_missing_run=
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2422 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2423 fi
2424
2425 if test x"${install_sh}" != xset; then
2426 case $am_aux_dir in
2427 *\ * | *\ *)
2428 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2429 *)
2430 install_sh="\${SHELL} $am_aux_dir/install-sh"
2431 esac
2432 fi
2433
2434 # Installed binaries are usually stripped using 'strip' when the user
2435 # run "make install-strip". However 'strip' might not be the right
2436 # tool to use in cross-compilation environments, therefore Automake
2437 # will honor the 'STRIP' environment variable to overrule this program.
2438 if test "$cross_compiling" != no; then
2439 if test -n "$ac_tool_prefix"; then
2440 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2441 set dummy ${ac_tool_prefix}strip; ac_word=$2
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2443 $as_echo_n "checking for $ac_word... " >&6; }
2444 if ${ac_cv_prog_STRIP+:} false; then :
2445 $as_echo_n "(cached) " >&6
2446 else
2447 if test -n "$STRIP"; then
2448 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2449 else
2450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2451 for as_dir in $PATH
2452 do
2453 IFS=$as_save_IFS
2454 test -z "$as_dir" && as_dir=.
2455 for ac_exec_ext in '' $ac_executable_extensions; do
2456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2457 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2459 break 2
2460 fi
2461 done
2462 done
2463 IFS=$as_save_IFS
2464
2465 fi
2466 fi
2467 STRIP=$ac_cv_prog_STRIP
2468 if test -n "$STRIP"; then
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2470 $as_echo "$STRIP" >&6; }
2471 else
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2473 $as_echo "no" >&6; }
2474 fi
2475
2476
2477 fi
2478 if test -z "$ac_cv_prog_STRIP"; then
2479 ac_ct_STRIP=$STRIP
2480 # Extract the first word of "strip", so it can be a program name with args.
2481 set dummy strip; ac_word=$2
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2483 $as_echo_n "checking for $ac_word... " >&6; }
2484 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2485 $as_echo_n "(cached) " >&6
2486 else
2487 if test -n "$ac_ct_STRIP"; then
2488 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2489 else
2490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491 for as_dir in $PATH
2492 do
2493 IFS=$as_save_IFS
2494 test -z "$as_dir" && as_dir=.
2495 for ac_exec_ext in '' $ac_executable_extensions; do
2496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2497 ac_cv_prog_ac_ct_STRIP="strip"
2498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2499 break 2
2500 fi
2501 done
2502 done
2503 IFS=$as_save_IFS
2504
2505 fi
2506 fi
2507 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2508 if test -n "$ac_ct_STRIP"; then
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2510 $as_echo "$ac_ct_STRIP" >&6; }
2511 else
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2513 $as_echo "no" >&6; }
2514 fi
2515
2516 if test "x$ac_ct_STRIP" = x; then
2517 STRIP=":"
2518 else
2519 case $cross_compiling:$ac_tool_warned in
2520 yes:)
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2523 ac_tool_warned=yes ;;
2524 esac
2525 STRIP=$ac_ct_STRIP
2526 fi
2527 else
2528 STRIP="$ac_cv_prog_STRIP"
2529 fi
2530
2531 fi
2532 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2533
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2535 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2536 if test -z "$MKDIR_P"; then
2537 if ${ac_cv_path_mkdir+:} false; then :
2538 $as_echo_n "(cached) " >&6
2539 else
2540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2542 do
2543 IFS=$as_save_IFS
2544 test -z "$as_dir" && as_dir=.
2545 for ac_prog in mkdir gmkdir; do
2546 for ac_exec_ext in '' $ac_executable_extensions; do
2547 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2548 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2549 'mkdir (GNU coreutils) '* | \
2550 'mkdir (coreutils) '* | \
2551 'mkdir (fileutils) '4.1*)
2552 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2553 break 3;;
2554 esac
2555 done
2556 done
2557 done
2558 IFS=$as_save_IFS
2559
2560 fi
2561
2562 test -d ./--version && rmdir ./--version
2563 if test "${ac_cv_path_mkdir+set}" = set; then
2564 MKDIR_P="$ac_cv_path_mkdir -p"
2565 else
2566 # As a last resort, use the slow shell script. Don't cache a
2567 # value for MKDIR_P within a source directory, because that will
2568 # break other packages using the cache if that directory is
2569 # removed, or if the value is a relative name.
2570 MKDIR_P="$ac_install_sh -d"
2571 fi
2572 fi
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2574 $as_echo "$MKDIR_P" >&6; }
2575
2576 for ac_prog in gawk mawk nawk awk
2577 do
2578 # Extract the first word of "$ac_prog", so it can be a program name with args.
2579 set dummy $ac_prog; ac_word=$2
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2581 $as_echo_n "checking for $ac_word... " >&6; }
2582 if ${ac_cv_prog_AWK+:} false; then :
2583 $as_echo_n "(cached) " >&6
2584 else
2585 if test -n "$AWK"; then
2586 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2587 else
2588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589 for as_dir in $PATH
2590 do
2591 IFS=$as_save_IFS
2592 test -z "$as_dir" && as_dir=.
2593 for ac_exec_ext in '' $ac_executable_extensions; do
2594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2595 ac_cv_prog_AWK="$ac_prog"
2596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2597 break 2
2598 fi
2599 done
2600 done
2601 IFS=$as_save_IFS
2602
2603 fi
2604 fi
2605 AWK=$ac_cv_prog_AWK
2606 if test -n "$AWK"; then
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2608 $as_echo "$AWK" >&6; }
2609 else
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2611 $as_echo "no" >&6; }
2612 fi
2613
2614
2615 test -n "$AWK" && break
2616 done
2617
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2619 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2620 set x ${MAKE-make}
2621 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2622 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2623 $as_echo_n "(cached) " >&6
2624 else
2625 cat >conftest.make <<\_ACEOF
2626 SHELL = /bin/sh
2627 all:
2628 @echo '@@@%%%=$(MAKE)=@@@%%%'
2629 _ACEOF
2630 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2631 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2632 *@@@%%%=?*=@@@%%%*)
2633 eval ac_cv_prog_make_${ac_make}_set=yes;;
2634 *)
2635 eval ac_cv_prog_make_${ac_make}_set=no;;
2636 esac
2637 rm -f conftest.make
2638 fi
2639 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2641 $as_echo "yes" >&6; }
2642 SET_MAKE=
2643 else
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2645 $as_echo "no" >&6; }
2646 SET_MAKE="MAKE=${MAKE-make}"
2647 fi
2648
2649 rm -rf .tst 2>/dev/null
2650 mkdir .tst 2>/dev/null
2651 if test -d .tst; then
2652 am__leading_dot=.
2653 else
2654 am__leading_dot=_
2655 fi
2656 rmdir .tst 2>/dev/null
2657
2658 # Check whether --enable-silent-rules was given.
2659 if test "${enable_silent_rules+set}" = set; then :
2660 enableval=$enable_silent_rules;
2661 fi
2662
2663 case $enable_silent_rules in # (((
2664 yes) AM_DEFAULT_VERBOSITY=0;;
2665 no) AM_DEFAULT_VERBOSITY=1;;
2666 *) AM_DEFAULT_VERBOSITY=1;;
2667 esac
2668 am_make=${MAKE-make}
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2670 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2671 if ${am_cv_make_support_nested_variables+:} false; then :
2672 $as_echo_n "(cached) " >&6
2673 else
2674 if $as_echo 'TRUE=$(BAR$(V))
2675 BAR0=false
2676 BAR1=true
2677 V=1
2678 am__doit:
2679 @$(TRUE)
2680 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2681 am_cv_make_support_nested_variables=yes
2682 else
2683 am_cv_make_support_nested_variables=no
2684 fi
2685 fi
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2687 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2688 if test $am_cv_make_support_nested_variables = yes; then
2689 AM_V='$(V)'
2690 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2691 else
2692 AM_V=$AM_DEFAULT_VERBOSITY
2693 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2694 fi
2695 AM_BACKSLASH='\'
2696
2697 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2698 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2699 # is not polluted with repeated "-I."
2700 am__isrc=' -I$(srcdir)'
2701 # test to see if srcdir already configured
2702 if test -f $srcdir/config.status; then
2703 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2704 fi
2705 fi
2706
2707 # test whether we have cygpath
2708 if test -z "$CYGPATH_W"; then
2709 if (cygpath --version) >/dev/null 2>/dev/null; then
2710 CYGPATH_W='cygpath -w'
2711 else
2712 CYGPATH_W=echo
2713 fi
2714 fi
2715
2716
2717 # Define the identity of the package.
2718 PACKAGE='openyahtzee'
2719 VERSION='1.9.3'
2720
2721
2722 cat >>confdefs.h <<_ACEOF
2723 #define PACKAGE "$PACKAGE"
2724 _ACEOF
2725
2726
2727 cat >>confdefs.h <<_ACEOF
2728 #define VERSION "$VERSION"
2729 _ACEOF
2730
2731 # Some tools Automake needs.
2732
2733 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2734
2735
2736 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2737
2738
2739 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2740
2741
2742 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2743
2744
2745 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2746
2747 # For better backward compatibility. To be removed once Automake 1.9.x
2748 # dies out for good. For more background, see:
2749 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2750 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2751 mkdir_p='$(MKDIR_P)'
2752
2753 # We need awk for the "check" target. The system "awk" is bad on
2754 # some platforms.
2755 # Always define AMTAR for backward compatibility. Yes, it's still used
2756 # in the wild :-( We should find a proper way to deprecate it ...
2757 AMTAR='$${TAR-tar}'
2758
2759
2760 # We'll loop over all known methods to create a tar archive until one works.
2761 _am_tools='gnutar pax cpio none'
2762
2763 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2764
2765
2766
2767
2768
2769
2770 # POSIX will say in a future version that running "rm -f" with no argument
2771 # is OK; and we want to be able to make that assumption in our Makefile
2772 # recipes. So use an aggressive probe to check that the usage we want is
2773 # actually supported "in the wild" to an acceptable degree.
2774 # See automake bug#10828.
2775 # To make any issue more visible, cause the running configure to be aborted
2776 # by default if the 'rm' program in use doesn't match our expectations; the
2777 # user can still override this though.
2778 if rm -f && rm -fr && rm -rf; then : OK; else
2779 cat >&2 <<'END'
2780 Oops!
2781
2782 Your 'rm' program seems unable to run without file operands specified
2783 on the command line, even when the '-f' option is present. This is contrary
2784 to the behaviour of most rm programs out there, and not conforming with
2785 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2786
2787 Please tell [email protected] about your system, including the value
2788 of your $PATH and any error possibly output before this message. This
2789 can help us improve future automake versions.
2790
2791 END
2792 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2793 echo 'Configuration will proceed anyway, since you have set the' >&2
2794 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2795 echo >&2
2796 else
2797 cat >&2 <<'END'
2798 Aborting the configuration process, to ensure you take notice of the issue.
2799
2800 You can download and install GNU coreutils to get an 'rm' implementation
2801 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2802
2803 If you want to complete the configuration process using your problematic
2804 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2805 to "yes", and re-run configure.
2806
2807 END
2808 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2809 fi
2810 fi
2811
2812
2813 ac_config_headers="$ac_config_headers config.h"
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831 # ===========================================================================
2832 # http://www.gnu.org/software/autoconf-archive/ax_check_compile_flag.html
2833 # ===========================================================================
2834 #
2835 # SYNOPSIS
2836 #
2837 # AX_CHECK_COMPILE_FLAG(FLAG, [ACTION-SUCCESS], [ACTION-FAILURE], [EXTRA-FLAGS])
2838 #
2839 # DESCRIPTION
2840 #
2841 # Check whether the given FLAG works with the current language's compiler
2842 # or gives an error. (Warnings, however, are ignored)
2843 #
2844 # ACTION-SUCCESS/ACTION-FAILURE are shell commands to execute on
2845 # success/failure.
2846 #
2847 # If EXTRA-FLAGS is defined, it is added to the current language's default
2848 # flags (e.g. CFLAGS) when the check is done. The check is thus made with
2849 # the flags: "CFLAGS EXTRA-FLAGS FLAG". This can for example be used to
2850 # force the compiler to issue an error when a bad flag is given.
2851 #
2852 # NOTE: Implementation based on AX_CFLAGS_GCC_OPTION. Please keep this
2853 # macro in sync with AX_CHECK_{PREPROC,LINK}_FLAG.
2854 #
2855 # LICENSE
2856 #
2857 # Copyright (c) 2008 Guido U. Draheim <[email protected]>
2858 # Copyright (c) 2011 Maarten Bosmans <[email protected]>
2859 #
2860 # This program is free software: you can redistribute it and/or modify it
2861 # under the terms of the GNU General Public License as published by the
2862 # Free Software Foundation, either version 3 of the License, or (at your
2863 # option) any later version.
2864 #
2865 # This program is distributed in the hope that it will be useful, but
2866 # WITHOUT ANY WARRANTY; without even the implied warranty of
2867 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
2868 # Public License for more details.
2869 #
2870 # You should have received a copy of the GNU General Public License along
2871 # with this program. If not, see <http://www.gnu.org/licenses/>.
2872 #
2873 # As a special exception, the respective Autoconf Macro's copyright owner
2874 # gives unlimited permission to copy, distribute and modify the configure
2875 # scripts that are the output of Autoconf when processing the Macro. You
2876 # need not follow the terms of the GNU General Public License when using
2877 # or distributing such scripts, even though portions of the text of the
2878 # Macro appear in them. The GNU General Public License (GPL) does govern
2879 # all other use of the material that constitutes the Autoconf Macro.
2880 #
2881 # This special exception to the GPL applies to versions of the Autoconf
2882 # Macro released by the Autoconf Archive. When you make and distribute a
2883 # modified version of the Autoconf Macro, you may extend this special
2884 # exception to the GPL to apply to your modified version as well.
2885
2886 #serial 2
2887
2888
2889 # ===========================================================================
2890 # http://www.gnu.org/software/autoconf-archive/ax_boost_base.html
2891 # ===========================================================================
2892 #
2893 # SYNOPSIS
2894 #
2895 # AX_BOOST_BASE([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
2896 #
2897 # DESCRIPTION
2898 #
2899 # Test for the Boost C++ libraries of a particular version (or newer)
2900 #
2901 # If no path to the installed boost library is given the macro searchs
2902 # under /usr, /usr/local, /opt and /opt/local and evaluates the
2903 # $BOOST_ROOT environment variable. Further documentation is available at
2904 # <http://randspringer.de/boost/index.html>.
2905 #
2906 # This macro calls:
2907 #
2908 # AC_SUBST(BOOST_CPPFLAGS) / AC_SUBST(BOOST_LDFLAGS)
2909 #
2910 # And sets:
2911 #
2912 # HAVE_BOOST
2913 #
2914 # LICENSE
2915 #
2916 # Copyright (c) 2008 Thomas Porschberg <[email protected]>
2917 # Copyright (c) 2009 Peter Adolphs
2918 #
2919 # Copying and distribution of this file, with or without modification, are
2920 # permitted in any medium without royalty provided the copyright notice
2921 # and this notice are preserved. This file is offered as-is, without any
2922 # warranty.
2923
2924 #serial 26
2925
2926
2927
2928
2929 # Checks for programs.
2930 ac_ext=cpp
2931 ac_cpp='$CXXCPP $CPPFLAGS'
2932 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2933 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2934 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2935 if test -z "$CXX"; then
2936 if test -n "$CCC"; then
2937 CXX=$CCC
2938 else
2939 if test -n "$ac_tool_prefix"; then
2940 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2941 do
2942 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2943 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2945 $as_echo_n "checking for $ac_word... " >&6; }
2946 if ${ac_cv_prog_CXX+:} false; then :
2947 $as_echo_n "(cached) " >&6
2948 else
2949 if test -n "$CXX"; then
2950 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2951 else
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 for as_dir in $PATH
2954 do
2955 IFS=$as_save_IFS
2956 test -z "$as_dir" && as_dir=.
2957 for ac_exec_ext in '' $ac_executable_extensions; do
2958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2959 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2961 break 2
2962 fi
2963 done
2964 done
2965 IFS=$as_save_IFS
2966
2967 fi
2968 fi
2969 CXX=$ac_cv_prog_CXX
2970 if test -n "$CXX"; then
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2972 $as_echo "$CXX" >&6; }
2973 else
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2975 $as_echo "no" >&6; }
2976 fi
2977
2978
2979 test -n "$CXX" && break
2980 done
2981 fi
2982 if test -z "$CXX"; then
2983 ac_ct_CXX=$CXX
2984 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2985 do
2986 # Extract the first word of "$ac_prog", so it can be a program name with args.
2987 set dummy $ac_prog; ac_word=$2
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2989 $as_echo_n "checking for $ac_word... " >&6; }
2990 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2991 $as_echo_n "(cached) " >&6
2992 else
2993 if test -n "$ac_ct_CXX"; then
2994 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2995 else
2996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997 for as_dir in $PATH
2998 do
2999 IFS=$as_save_IFS
3000 test -z "$as_dir" && as_dir=.
3001 for ac_exec_ext in '' $ac_executable_extensions; do
3002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3003 ac_cv_prog_ac_ct_CXX="$ac_prog"
3004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3005 break 2
3006 fi
3007 done
3008 done
3009 IFS=$as_save_IFS
3010
3011 fi
3012 fi
3013 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3014 if test -n "$ac_ct_CXX"; then
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3016 $as_echo "$ac_ct_CXX" >&6; }
3017 else
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3019 $as_echo "no" >&6; }
3020 fi
3021
3022
3023 test -n "$ac_ct_CXX" && break
3024 done
3025
3026 if test "x$ac_ct_CXX" = x; then
3027 CXX="g++"
3028 else
3029 case $cross_compiling:$ac_tool_warned in
3030 yes:)
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3032 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3033 ac_tool_warned=yes ;;
3034 esac
3035 CXX=$ac_ct_CXX
3036 fi
3037 fi
3038
3039 fi
3040 fi
3041 # Provide some information about the compiler.
3042 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3043 set X $ac_compile
3044 ac_compiler=$2
3045 for ac_option in --version -v -V -qversion; do
3046 { { ac_try="$ac_compiler $ac_option >&5"
3047 case "(($ac_try" in
3048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049 *) ac_try_echo=$ac_try;;
3050 esac
3051 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3052 $as_echo "$ac_try_echo"; } >&5
3053 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3054 ac_status=$?
3055 if test -s conftest.err; then
3056 sed '10a\
3057 ... rest of stderr output deleted ...
3058 10q' conftest.err >conftest.er1
3059 cat conftest.er1 >&5
3060 fi
3061 rm -f conftest.er1 conftest.err
3062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3063 test $ac_status = 0; }
3064 done
3065
3066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3067 /* end confdefs.h. */
3068
3069 int
3070 main ()
3071 {
3072
3073 ;
3074 return 0;
3075 }
3076 _ACEOF
3077 ac_clean_files_save=$ac_clean_files
3078 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3079 # Try to create an executable without -o first, disregard a.out.
3080 # It will help us diagnose broken compilers, and finding out an intuition
3081 # of exeext.
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3083 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3084 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3085
3086 # The possible output files:
3087 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3088
3089 ac_rmfiles=
3090 for ac_file in $ac_files
3091 do
3092 case $ac_file in
3093 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3094 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3095 esac
3096 done
3097 rm -f $ac_rmfiles
3098
3099 if { { ac_try="$ac_link_default"
3100 case "(($ac_try" in
3101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102 *) ac_try_echo=$ac_try;;
3103 esac
3104 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3105 $as_echo "$ac_try_echo"; } >&5
3106 (eval "$ac_link_default") 2>&5
3107 ac_status=$?
3108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3109 test $ac_status = 0; }; then :
3110 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3111 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3112 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3113 # so that the user can short-circuit this test for compilers unknown to
3114 # Autoconf.
3115 for ac_file in $ac_files ''
3116 do
3117 test -f "$ac_file" || continue
3118 case $ac_file in
3119 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3120 ;;
3121 [ab].out )
3122 # We found the default executable, but exeext='' is most
3123 # certainly right.
3124 break;;
3125 *.* )
3126 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3127 then :; else
3128 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3129 fi
3130 # We set ac_cv_exeext here because the later test for it is not
3131 # safe: cross compilers may not add the suffix if given an `-o'
3132 # argument, so we may need to know it at that point already.
3133 # Even if this section looks crufty: it has the advantage of
3134 # actually working.
3135 break;;
3136 * )
3137 break;;
3138 esac
3139 done
3140 test "$ac_cv_exeext" = no && ac_cv_exeext=
3141
3142 else
3143 ac_file=''
3144 fi
3145 if test -z "$ac_file"; then :
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3147 $as_echo "no" >&6; }
3148 $as_echo "$as_me: failed program was:" >&5
3149 sed 's/^/| /' conftest.$ac_ext >&5
3150
3151 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3152 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3153 as_fn_error 77 "C++ compiler cannot create executables
3154 See \`config.log' for more details" "$LINENO" 5; }
3155 else
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3157 $as_echo "yes" >&6; }
3158 fi
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3160 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3162 $as_echo "$ac_file" >&6; }
3163 ac_exeext=$ac_cv_exeext
3164
3165 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3166 ac_clean_files=$ac_clean_files_save
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3168 $as_echo_n "checking for suffix of executables... " >&6; }
3169 if { { ac_try="$ac_link"
3170 case "(($ac_try" in
3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172 *) ac_try_echo=$ac_try;;
3173 esac
3174 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3175 $as_echo "$ac_try_echo"; } >&5
3176 (eval "$ac_link") 2>&5
3177 ac_status=$?
3178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3179 test $ac_status = 0; }; then :
3180 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3181 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3182 # work properly (i.e., refer to `conftest.exe'), while it won't with
3183 # `rm'.
3184 for ac_file in conftest.exe conftest conftest.*; do
3185 test -f "$ac_file" || continue
3186 case $ac_file in
3187 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3188 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3189 break;;
3190 * ) break;;
3191 esac
3192 done
3193 else
3194 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3196 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3197 See \`config.log' for more details" "$LINENO" 5; }
3198 fi
3199 rm -f conftest conftest$ac_cv_exeext
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3201 $as_echo "$ac_cv_exeext" >&6; }
3202
3203 rm -f conftest.$ac_ext
3204 EXEEXT=$ac_cv_exeext
3205 ac_exeext=$EXEEXT
3206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3207 /* end confdefs.h. */
3208 #include <stdio.h>
3209 int
3210 main ()
3211 {
3212 FILE *f = fopen ("conftest.out", "w");
3213 return ferror (f) || fclose (f) != 0;
3214
3215 ;
3216 return 0;
3217 }
3218 _ACEOF
3219 ac_clean_files="$ac_clean_files conftest.out"
3220 # Check that the compiler produces executables we can run. If not, either
3221 # the compiler is broken, or we cross compile.
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3223 $as_echo_n "checking whether we are cross compiling... " >&6; }
3224 if test "$cross_compiling" != yes; then
3225 { { ac_try="$ac_link"
3226 case "(($ac_try" in
3227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228 *) ac_try_echo=$ac_try;;
3229 esac
3230 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3231 $as_echo "$ac_try_echo"; } >&5
3232 (eval "$ac_link") 2>&5
3233 ac_status=$?
3234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3235 test $ac_status = 0; }
3236 if { ac_try='./conftest$ac_cv_exeext'
3237 { { case "(($ac_try" in
3238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3239 *) ac_try_echo=$ac_try;;
3240 esac
3241 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3242 $as_echo "$ac_try_echo"; } >&5
3243 (eval "$ac_try") 2>&5
3244 ac_status=$?
3245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3246 test $ac_status = 0; }; }; then
3247 cross_compiling=no
3248 else
3249 if test "$cross_compiling" = maybe; then
3250 cross_compiling=yes
3251 else
3252 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3254 as_fn_error $? "cannot run C++ compiled programs.
3255 If you meant to cross compile, use \`--host'.
3256 See \`config.log' for more details" "$LINENO" 5; }
3257 fi
3258 fi
3259 fi
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3261 $as_echo "$cross_compiling" >&6; }
3262
3263 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3264 ac_clean_files=$ac_clean_files_save
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3266 $as_echo_n "checking for suffix of object files... " >&6; }
3267 if ${ac_cv_objext+:} false; then :
3268 $as_echo_n "(cached) " >&6
3269 else
3270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3271 /* end confdefs.h. */
3272
3273 int
3274 main ()
3275 {
3276
3277 ;
3278 return 0;
3279 }
3280 _ACEOF
3281 rm -f conftest.o conftest.obj
3282 if { { ac_try="$ac_compile"
3283 case "(($ac_try" in
3284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285 *) ac_try_echo=$ac_try;;
3286 esac
3287 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3288 $as_echo "$ac_try_echo"; } >&5
3289 (eval "$ac_compile") 2>&5
3290 ac_status=$?
3291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3292 test $ac_status = 0; }; then :
3293 for ac_file in conftest.o conftest.obj conftest.*; do
3294 test -f "$ac_file" || continue;
3295 case $ac_file in
3296 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3297 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3298 break;;
3299 esac
3300 done
3301 else
3302 $as_echo "$as_me: failed program was:" >&5
3303 sed 's/^/| /' conftest.$ac_ext >&5
3304
3305 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3306 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3307 as_fn_error $? "cannot compute suffix of object files: cannot compile
3308 See \`config.log' for more details" "$LINENO" 5; }
3309 fi
3310 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3311 fi
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3313 $as_echo "$ac_cv_objext" >&6; }
3314 OBJEXT=$ac_cv_objext
3315 ac_objext=$OBJEXT
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3317 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3318 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3319 $as_echo_n "(cached) " >&6
3320 else
3321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3322 /* end confdefs.h. */
3323
3324 int
3325 main ()
3326 {
3327 #ifndef __GNUC__
3328 choke me
3329 #endif
3330
3331 ;
3332 return 0;
3333 }
3334 _ACEOF
3335 if ac_fn_cxx_try_compile "$LINENO"; then :
3336 ac_compiler_gnu=yes
3337 else
3338 ac_compiler_gnu=no
3339 fi
3340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3341 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3342
3343 fi
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3345 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3346 if test $ac_compiler_gnu = yes; then
3347 GXX=yes
3348 else
3349 GXX=
3350 fi
3351 ac_test_CXXFLAGS=${CXXFLAGS+set}
3352 ac_save_CXXFLAGS=$CXXFLAGS
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3354 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3355 if ${ac_cv_prog_cxx_g+:} false; then :
3356 $as_echo_n "(cached) " >&6
3357 else
3358 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3359 ac_cxx_werror_flag=yes
3360 ac_cv_prog_cxx_g=no
3361 CXXFLAGS="-g"
3362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3363 /* end confdefs.h. */
3364
3365 int
3366 main ()
3367 {
3368
3369 ;
3370 return 0;
3371 }
3372 _ACEOF
3373 if ac_fn_cxx_try_compile "$LINENO"; then :
3374 ac_cv_prog_cxx_g=yes
3375 else
3376 CXXFLAGS=""
3377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3378 /* end confdefs.h. */
3379
3380 int
3381 main ()
3382 {
3383
3384 ;
3385 return 0;
3386 }
3387 _ACEOF
3388 if ac_fn_cxx_try_compile "$LINENO"; then :
3389
3390 else
3391 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3392 CXXFLAGS="-g"
3393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3394 /* end confdefs.h. */
3395
3396 int
3397 main ()
3398 {
3399
3400 ;
3401 return 0;
3402 }
3403 _ACEOF
3404 if ac_fn_cxx_try_compile "$LINENO"; then :
3405 ac_cv_prog_cxx_g=yes
3406 fi
3407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3408 fi
3409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3410 fi
3411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3412 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3413 fi
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3415 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3416 if test "$ac_test_CXXFLAGS" = set; then
3417 CXXFLAGS=$ac_save_CXXFLAGS
3418 elif test $ac_cv_prog_cxx_g = yes; then
3419 if test "$GXX" = yes; then
3420 CXXFLAGS="-g -O2"
3421 else
3422 CXXFLAGS="-g"
3423 fi
3424 else
3425 if test "$GXX" = yes; then
3426 CXXFLAGS="-O2"
3427 else
3428 CXXFLAGS=
3429 fi
3430 fi
3431 ac_ext=c
3432 ac_cpp='$CPP $CPPFLAGS'
3433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3436 DEPDIR="${am__leading_dot}deps"
3437
3438 ac_config_commands="$ac_config_commands depfiles"
3439
3440
3441 am_make=${MAKE-make}
3442 cat > confinc << 'END'
3443 am__doit:
3444 @echo this is the am__doit target
3445 .PHONY: am__doit
3446 END
3447 # If we don't find an include directive, just comment out the code.
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3449 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3450 am__include="#"
3451 am__quote=
3452 _am_result=none
3453 # First try GNU make style include.
3454 echo "include confinc" > confmf
3455 # Ignore all kinds of additional output from 'make'.
3456 case `$am_make -s -f confmf 2> /dev/null` in #(
3457 *the\ am__doit\ target*)
3458 am__include=include
3459 am__quote=
3460 _am_result=GNU
3461 ;;
3462 esac
3463 # Now try BSD make style include.
3464 if test "$am__include" = "#"; then
3465 echo '.include "confinc"' > confmf
3466 case `$am_make -s -f confmf 2> /dev/null` in #(
3467 *the\ am__doit\ target*)
3468 am__include=.include
3469 am__quote="\""
3470 _am_result=BSD
3471 ;;
3472 esac
3473 fi
3474
3475
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3477 $as_echo "$_am_result" >&6; }
3478 rm -f confinc confmf
3479
3480 # Check whether --enable-dependency-tracking was given.
3481 if test "${enable_dependency_tracking+set}" = set; then :
3482 enableval=$enable_dependency_tracking;
3483 fi
3484
3485 if test "x$enable_dependency_tracking" != xno; then
3486 am_depcomp="$ac_aux_dir/depcomp"
3487 AMDEPBACKSLASH='\'
3488 am__nodep='_no'
3489 fi
3490 if test "x$enable_dependency_tracking" != xno; then
3491 AMDEP_TRUE=
3492 AMDEP_FALSE='#'
3493 else
3494 AMDEP_TRUE='#'
3495 AMDEP_FALSE=
3496 fi
3497
3498
3499
3500 depcc="$CXX" am_compiler_list=
3501
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3503 $as_echo_n "checking dependency style of $depcc... " >&6; }
3504 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3505 $as_echo_n "(cached) " >&6
3506 else
3507 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3508 # We make a subdir and do the tests there. Otherwise we can end up
3509 # making bogus files that we don't know about and never remove. For
3510 # instance it was reported that on HP-UX the gcc test will end up
3511 # making a dummy file named 'D' -- because '-MD' means "put the output
3512 # in D".
3513 rm -rf conftest.dir
3514 mkdir conftest.dir
3515 # Copy depcomp to subdir because otherwise we won't find it if we're
3516 # using a relative directory.
3517 cp "$am_depcomp" conftest.dir
3518 cd conftest.dir
3519 # We will build objects and dependencies in a subdirectory because
3520 # it helps to detect inapplicable dependency modes. For instance
3521 # both Tru64's cc and ICC support -MD to output dependencies as a
3522 # side effect of compilation, but ICC will put the dependencies in
3523 # the current directory while Tru64 will put them in the object
3524 # directory.
3525 mkdir sub
3526
3527 am_cv_CXX_dependencies_compiler_type=none
3528 if test "$am_compiler_list" = ""; then
3529 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3530 fi
3531 am__universal=false
3532 case " $depcc " in #(
3533 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3534 esac
3535
3536 for depmode in $am_compiler_list; do
3537 # Setup a source with many dependencies, because some compilers
3538 # like to wrap large dependency lists on column 80 (with \), and
3539 # we should not choose a depcomp mode which is confused by this.
3540 #
3541 # We need to recreate these files for each test, as the compiler may
3542 # overwrite some of them when testing with obscure command lines.
3543 # This happens at least with the AIX C compiler.
3544 : > sub/conftest.c
3545 for i in 1 2 3 4 5 6; do
3546 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3547 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3548 # Solaris 10 /bin/sh.
3549 echo '/* dummy */' > sub/conftst$i.h
3550 done
3551 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3552
3553 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3554 # mode. It turns out that the SunPro C++ compiler does not properly
3555 # handle '-M -o', and we need to detect this. Also, some Intel
3556 # versions had trouble with output in subdirs.
3557 am__obj=sub/conftest.${OBJEXT-o}
3558 am__minus_obj="-o $am__obj"
3559 case $depmode in
3560 gcc)
3561 # This depmode causes a compiler race in universal mode.
3562 test "$am__universal" = false || continue
3563 ;;
3564 nosideeffect)
3565 # After this tag, mechanisms are not by side-effect, so they'll
3566 # only be used when explicitly requested.
3567 if test "x$enable_dependency_tracking" = xyes; then
3568 continue
3569 else
3570 break
3571 fi
3572 ;;
3573 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3574 # This compiler won't grok '-c -o', but also, the minuso test has
3575 # not run yet. These depmodes are late enough in the game, and
3576 # so weak that their functioning should not be impacted.
3577 am__obj=conftest.${OBJEXT-o}
3578 am__minus_obj=
3579 ;;
3580 none) break ;;
3581 esac
3582 if depmode=$depmode \
3583 source=sub/conftest.c object=$am__obj \
3584 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3585 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3586 >/dev/null 2>conftest.err &&
3587 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3588 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3589 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3590 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3591 # icc doesn't choke on unknown options, it will just issue warnings
3592 # or remarks (even with -Werror). So we grep stderr for any message
3593 # that says an option was ignored or not supported.
3594 # When given -MP, icc 7.0 and 7.1 complain thusly:
3595 # icc: Command line warning: ignoring option '-M'; no argument required
3596 # The diagnosis changed in icc 8.0:
3597 # icc: Command line remark: option '-MP' not supported
3598 if (grep 'ignoring option' conftest.err ||
3599 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3600 am_cv_CXX_dependencies_compiler_type=$depmode
3601 break
3602 fi
3603 fi
3604 done
3605
3606 cd ..
3607 rm -rf conftest.dir
3608 else
3609 am_cv_CXX_dependencies_compiler_type=none
3610 fi
3611
3612 fi
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3614 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3615 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3616
3617 if
3618 test "x$enable_dependency_tracking" != xno \
3619 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3620 am__fastdepCXX_TRUE=
3621 am__fastdepCXX_FALSE='#'
3622 else
3623 am__fastdepCXX_TRUE='#'
3624 am__fastdepCXX_FALSE=
3625 fi
3626
3627
3628
3629 ac_ext=c
3630 ac_cpp='$CPP $CPPFLAGS'
3631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3634 if test -n "$ac_tool_prefix"; then
3635 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3636 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3638 $as_echo_n "checking for $ac_word... " >&6; }
3639 if ${ac_cv_prog_CC+:} false; then :
3640 $as_echo_n "(cached) " >&6
3641 else
3642 if test -n "$CC"; then
3643 ac_cv_prog_CC="$CC" # Let the user override the test.
3644 else
3645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3646 for as_dir in $PATH
3647 do
3648 IFS=$as_save_IFS
3649 test -z "$as_dir" && as_dir=.
3650 for ac_exec_ext in '' $ac_executable_extensions; do
3651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3652 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3654 break 2
3655 fi
3656 done
3657 done
3658 IFS=$as_save_IFS
3659
3660 fi
3661 fi
3662 CC=$ac_cv_prog_CC
3663 if test -n "$CC"; then
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3665 $as_echo "$CC" >&6; }
3666 else
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3668 $as_echo "no" >&6; }
3669 fi
3670
3671
3672 fi
3673 if test -z "$ac_cv_prog_CC"; then
3674 ac_ct_CC=$CC
3675 # Extract the first word of "gcc", so it can be a program name with args.
3676 set dummy gcc; ac_word=$2
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3678 $as_echo_n "checking for $ac_word... " >&6; }
3679 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3680 $as_echo_n "(cached) " >&6
3681 else
3682 if test -n "$ac_ct_CC"; then
3683 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3684 else
3685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3686 for as_dir in $PATH
3687 do
3688 IFS=$as_save_IFS
3689 test -z "$as_dir" && as_dir=.
3690 for ac_exec_ext in '' $ac_executable_extensions; do
3691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3692 ac_cv_prog_ac_ct_CC="gcc"
3693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3694 break 2
3695 fi
3696 done
3697 done
3698 IFS=$as_save_IFS
3699
3700 fi
3701 fi
3702 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3703 if test -n "$ac_ct_CC"; then
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3705 $as_echo "$ac_ct_CC" >&6; }
3706 else
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3708 $as_echo "no" >&6; }
3709 fi
3710
3711 if test "x$ac_ct_CC" = x; then
3712 CC=""
3713 else
3714 case $cross_compiling:$ac_tool_warned in
3715 yes:)
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3717 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3718 ac_tool_warned=yes ;;
3719 esac
3720 CC=$ac_ct_CC
3721 fi
3722 else
3723 CC="$ac_cv_prog_CC"
3724 fi
3725
3726 if test -z "$CC"; then
3727 if test -n "$ac_tool_prefix"; then
3728 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3729 set dummy ${ac_tool_prefix}cc; ac_word=$2
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3731 $as_echo_n "checking for $ac_word... " >&6; }
3732 if ${ac_cv_prog_CC+:} false; then :
3733 $as_echo_n "(cached) " >&6
3734 else
3735 if test -n "$CC"; then
3736 ac_cv_prog_CC="$CC" # Let the user override the test.
3737 else
3738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3739 for as_dir in $PATH
3740 do
3741 IFS=$as_save_IFS
3742 test -z "$as_dir" && as_dir=.
3743 for ac_exec_ext in '' $ac_executable_extensions; do
3744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3745 ac_cv_prog_CC="${ac_tool_prefix}cc"
3746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3747 break 2
3748 fi
3749 done
3750 done
3751 IFS=$as_save_IFS
3752
3753 fi
3754 fi
3755 CC=$ac_cv_prog_CC
3756 if test -n "$CC"; then
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3758 $as_echo "$CC" >&6; }
3759 else
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3761 $as_echo "no" >&6; }
3762 fi
3763
3764
3765 fi
3766 fi
3767 if test -z "$CC"; then
3768 # Extract the first word of "cc", so it can be a program name with args.
3769 set dummy cc; ac_word=$2
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3771 $as_echo_n "checking for $ac_word... " >&6; }
3772 if ${ac_cv_prog_CC+:} false; then :
3773 $as_echo_n "(cached) " >&6
3774 else
3775 if test -n "$CC"; then
3776 ac_cv_prog_CC="$CC" # Let the user override the test.
3777 else
3778 ac_prog_rejected=no
3779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3780 for as_dir in $PATH
3781 do
3782 IFS=$as_save_IFS
3783 test -z "$as_dir" && as_dir=.
3784 for ac_exec_ext in '' $ac_executable_extensions; do
3785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3786 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3787 ac_prog_rejected=yes
3788 continue
3789 fi
3790 ac_cv_prog_CC="cc"
3791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3792 break 2
3793 fi
3794 done
3795 done
3796 IFS=$as_save_IFS
3797
3798 if test $ac_prog_rejected = yes; then
3799 # We found a bogon in the path, so make sure we never use it.
3800 set dummy $ac_cv_prog_CC
3801 shift
3802 if test $# != 0; then
3803 # We chose a different compiler from the bogus one.
3804 # However, it has the same basename, so the bogon will be chosen
3805 # first if we set CC to just the basename; use the full file name.
3806 shift
3807 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3808 fi
3809 fi
3810 fi
3811 fi
3812 CC=$ac_cv_prog_CC
3813 if test -n "$CC"; then
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3815 $as_echo "$CC" >&6; }
3816 else
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3818 $as_echo "no" >&6; }
3819 fi
3820
3821
3822 fi
3823 if test -z "$CC"; then
3824 if test -n "$ac_tool_prefix"; then
3825 for ac_prog in cl.exe
3826 do
3827 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3828 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3830 $as_echo_n "checking for $ac_word... " >&6; }
3831 if ${ac_cv_prog_CC+:} false; then :
3832 $as_echo_n "(cached) " >&6
3833 else
3834 if test -n "$CC"; then
3835 ac_cv_prog_CC="$CC" # Let the user override the test.
3836 else
3837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3838 for as_dir in $PATH
3839 do
3840 IFS=$as_save_IFS
3841 test -z "$as_dir" && as_dir=.
3842 for ac_exec_ext in '' $ac_executable_extensions; do
3843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3844 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3846 break 2
3847 fi
3848 done
3849 done
3850 IFS=$as_save_IFS
3851
3852 fi
3853 fi
3854 CC=$ac_cv_prog_CC
3855 if test -n "$CC"; then
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3857 $as_echo "$CC" >&6; }
3858 else
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3860 $as_echo "no" >&6; }
3861 fi
3862
3863
3864 test -n "$CC" && break
3865 done
3866 fi
3867 if test -z "$CC"; then
3868 ac_ct_CC=$CC
3869 for ac_prog in cl.exe
3870 do
3871 # Extract the first word of "$ac_prog", so it can be a program name with args.
3872 set dummy $ac_prog; ac_word=$2
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3874 $as_echo_n "checking for $ac_word... " >&6; }
3875 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3876 $as_echo_n "(cached) " >&6
3877 else
3878 if test -n "$ac_ct_CC"; then
3879 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3880 else
3881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3882 for as_dir in $PATH
3883 do
3884 IFS=$as_save_IFS
3885 test -z "$as_dir" && as_dir=.
3886 for ac_exec_ext in '' $ac_executable_extensions; do
3887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3888 ac_cv_prog_ac_ct_CC="$ac_prog"
3889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3890 break 2
3891 fi
3892 done
3893 done
3894 IFS=$as_save_IFS
3895
3896 fi
3897 fi
3898 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3899 if test -n "$ac_ct_CC"; then
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3901 $as_echo "$ac_ct_CC" >&6; }
3902 else
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3904 $as_echo "no" >&6; }
3905 fi
3906
3907
3908 test -n "$ac_ct_CC" && break
3909 done
3910
3911 if test "x$ac_ct_CC" = x; then
3912 CC=""
3913 else
3914 case $cross_compiling:$ac_tool_warned in
3915 yes:)
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3917 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3918 ac_tool_warned=yes ;;
3919 esac
3920 CC=$ac_ct_CC
3921 fi
3922 fi
3923
3924 fi
3925
3926
3927 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3929 as_fn_error $? "no acceptable C compiler found in \$PATH
3930 See \`config.log' for more details" "$LINENO" 5; }
3931
3932 # Provide some information about the compiler.
3933 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3934 set X $ac_compile
3935 ac_compiler=$2
3936 for ac_option in --version -v -V -qversion; do
3937 { { ac_try="$ac_compiler $ac_option >&5"
3938 case "(($ac_try" in
3939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3940 *) ac_try_echo=$ac_try;;
3941 esac
3942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3943 $as_echo "$ac_try_echo"; } >&5
3944 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3945 ac_status=$?
3946 if test -s conftest.err; then
3947 sed '10a\
3948 ... rest of stderr output deleted ...
3949 10q' conftest.err >conftest.er1
3950 cat conftest.er1 >&5
3951 fi
3952 rm -f conftest.er1 conftest.err
3953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3954 test $ac_status = 0; }
3955 done
3956
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3958 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3959 if ${ac_cv_c_compiler_gnu+:} false; then :
3960 $as_echo_n "(cached) " >&6
3961 else
3962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3963 /* end confdefs.h. */
3964
3965 int
3966 main ()
3967 {
3968 #ifndef __GNUC__
3969 choke me
3970 #endif
3971
3972 ;
3973 return 0;
3974 }
3975 _ACEOF
3976 if ac_fn_c_try_compile "$LINENO"; then :
3977 ac_compiler_gnu=yes
3978 else
3979 ac_compiler_gnu=no
3980 fi
3981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3982 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3983
3984 fi
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3986 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3987 if test $ac_compiler_gnu = yes; then
3988 GCC=yes
3989 else
3990 GCC=
3991 fi
3992 ac_test_CFLAGS=${CFLAGS+set}
3993 ac_save_CFLAGS=$CFLAGS
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3995 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3996 if ${ac_cv_prog_cc_g+:} false; then :
3997 $as_echo_n "(cached) " >&6
3998 else
3999 ac_save_c_werror_flag=$ac_c_werror_flag
4000 ac_c_werror_flag=yes
4001 ac_cv_prog_cc_g=no
4002 CFLAGS="-g"
4003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4004 /* end confdefs.h. */
4005
4006 int
4007 main ()
4008 {
4009
4010 ;
4011 return 0;
4012 }
4013 _ACEOF
4014 if ac_fn_c_try_compile "$LINENO"; then :
4015 ac_cv_prog_cc_g=yes
4016 else
4017 CFLAGS=""
4018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4019 /* end confdefs.h. */
4020
4021 int
4022 main ()
4023 {
4024
4025 ;
4026 return 0;
4027 }
4028 _ACEOF
4029 if ac_fn_c_try_compile "$LINENO"; then :
4030
4031 else
4032 ac_c_werror_flag=$ac_save_c_werror_flag
4033 CFLAGS="-g"
4034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035 /* end confdefs.h. */
4036
4037 int
4038 main ()
4039 {
4040
4041 ;
4042 return 0;
4043 }
4044 _ACEOF
4045 if ac_fn_c_try_compile "$LINENO"; then :
4046 ac_cv_prog_cc_g=yes
4047 fi
4048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4049 fi
4050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4051 fi
4052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4053 ac_c_werror_flag=$ac_save_c_werror_flag
4054 fi
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4056 $as_echo "$ac_cv_prog_cc_g" >&6; }
4057 if test "$ac_test_CFLAGS" = set; then
4058 CFLAGS=$ac_save_CFLAGS
4059 elif test $ac_cv_prog_cc_g = yes; then
4060 if test "$GCC" = yes; then
4061 CFLAGS="-g -O2"
4062 else
4063 CFLAGS="-g"
4064 fi
4065 else
4066 if test "$GCC" = yes; then
4067 CFLAGS="-O2"
4068 else
4069 CFLAGS=
4070 fi
4071 fi
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4073 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4074 if ${ac_cv_prog_cc_c89+:} false; then :
4075 $as_echo_n "(cached) " >&6
4076 else
4077 ac_cv_prog_cc_c89=no
4078 ac_save_CC=$CC
4079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4080 /* end confdefs.h. */
4081 #include <stdarg.h>
4082 #include <stdio.h>
4083 struct stat;
4084 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4085 struct buf { int x; };
4086 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4087 static char *e (p, i)
4088 char **p;
4089 int i;
4090 {
4091 return p[i];
4092 }
4093 static char *f (char * (*g) (char **, int), char **p, ...)
4094 {
4095 char *s;
4096 va_list v;
4097 va_start (v,p);
4098 s = g (p, va_arg (v,int));
4099 va_end (v);
4100 return s;
4101 }
4102
4103 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4104 function prototypes and stuff, but not '\xHH' hex character constants.
4105 These don't provoke an error unfortunately, instead are silently treated
4106 as 'x'. The following induces an error, until -std is added to get
4107 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4108 array size at least. It's necessary to write '\x00'==0 to get something
4109 that's true only with -std. */
4110 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4111
4112 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4113 inside strings and character constants. */
4114 #define FOO(x) 'x'
4115 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4116
4117 int test (int i, double x);
4118 struct s1 {int (*f) (int a);};
4119 struct s2 {int (*f) (double a);};
4120 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4121 int argc;
4122 char **argv;
4123 int
4124 main ()
4125 {
4126 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4127 ;
4128 return 0;
4129 }
4130 _ACEOF
4131 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4132 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4133 do
4134 CC="$ac_save_CC $ac_arg"
4135 if ac_fn_c_try_compile "$LINENO"; then :
4136 ac_cv_prog_cc_c89=$ac_arg
4137 fi
4138 rm -f core conftest.err conftest.$ac_objext
4139 test "x$ac_cv_prog_cc_c89" != "xno" && break
4140 done
4141 rm -f conftest.$ac_ext
4142 CC=$ac_save_CC
4143
4144 fi
4145 # AC_CACHE_VAL
4146 case "x$ac_cv_prog_cc_c89" in
4147 x)
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4149 $as_echo "none needed" >&6; } ;;
4150 xno)
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4152 $as_echo "unsupported" >&6; } ;;
4153 *)
4154 CC="$CC $ac_cv_prog_cc_c89"
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4156 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4157 esac
4158 if test "x$ac_cv_prog_cc_c89" != xno; then :
4159
4160 fi
4161
4162 ac_ext=c
4163 ac_cpp='$CPP $CPPFLAGS'
4164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4167
4168 ac_ext=c
4169 ac_cpp='$CPP $CPPFLAGS'
4170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4174 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4175 if ${am_cv_prog_cc_c_o+:} false; then :
4176 $as_echo_n "(cached) " >&6
4177 else
4178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4179 /* end confdefs.h. */
4180
4181 int
4182 main ()
4183 {
4184
4185 ;
4186 return 0;
4187 }
4188 _ACEOF
4189 # Make sure it works both with $CC and with simple cc.
4190 # Following AC_PROG_CC_C_O, we do the test twice because some
4191 # compilers refuse to overwrite an existing .o file with -o,
4192 # though they will create one.
4193 am_cv_prog_cc_c_o=yes
4194 for am_i in 1 2; do
4195 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4196 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4197 ac_status=$?
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); } \
4200 && test -f conftest2.$ac_objext; then
4201 : OK
4202 else
4203 am_cv_prog_cc_c_o=no
4204 break
4205 fi
4206 done
4207 rm -f core conftest*
4208 unset am_i
4209 fi
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4211 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4212 if test "$am_cv_prog_cc_c_o" != yes; then
4213 # Losing compiler, so override with the script.
4214 # FIXME: It is wrong to rewrite CC.
4215 # But if we don't then we get into trouble of one sort or another.
4216 # A longer-term fix would be to have automake use am__CC in this case,
4217 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4218 CC="$am_aux_dir/compile $CC"
4219 fi
4220 ac_ext=c
4221 ac_cpp='$CPP $CPPFLAGS'
4222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4225
4226
4227 depcc="$CC" am_compiler_list=
4228
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4230 $as_echo_n "checking dependency style of $depcc... " >&6; }
4231 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4232 $as_echo_n "(cached) " >&6
4233 else
4234 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4235 # We make a subdir and do the tests there. Otherwise we can end up
4236 # making bogus files that we don't know about and never remove. For
4237 # instance it was reported that on HP-UX the gcc test will end up
4238 # making a dummy file named 'D' -- because '-MD' means "put the output
4239 # in D".
4240 rm -rf conftest.dir
4241 mkdir conftest.dir
4242 # Copy depcomp to subdir because otherwise we won't find it if we're
4243 # using a relative directory.
4244 cp "$am_depcomp" conftest.dir
4245 cd conftest.dir
4246 # We will build objects and dependencies in a subdirectory because
4247 # it helps to detect inapplicable dependency modes. For instance
4248 # both Tru64's cc and ICC support -MD to output dependencies as a
4249 # side effect of compilation, but ICC will put the dependencies in
4250 # the current directory while Tru64 will put them in the object
4251 # directory.
4252 mkdir sub
4253
4254 am_cv_CC_dependencies_compiler_type=none
4255 if test "$am_compiler_list" = ""; then
4256 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4257 fi
4258 am__universal=false
4259 case " $depcc " in #(
4260 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4261 esac
4262
4263 for depmode in $am_compiler_list; do
4264 # Setup a source with many dependencies, because some compilers
4265 # like to wrap large dependency lists on column 80 (with \), and
4266 # we should not choose a depcomp mode which is confused by this.
4267 #
4268 # We need to recreate these files for each test, as the compiler may
4269 # overwrite some of them when testing with obscure command lines.
4270 # This happens at least with the AIX C compiler.
4271 : > sub/conftest.c
4272 for i in 1 2 3 4 5 6; do
4273 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4274 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4275 # Solaris 10 /bin/sh.
4276 echo '/* dummy */' > sub/conftst$i.h
4277 done
4278 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4279
4280 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4281 # mode. It turns out that the SunPro C++ compiler does not properly
4282 # handle '-M -o', and we need to detect this. Also, some Intel
4283 # versions had trouble with output in subdirs.
4284 am__obj=sub/conftest.${OBJEXT-o}
4285 am__minus_obj="-o $am__obj"
4286 case $depmode in
4287 gcc)
4288 # This depmode causes a compiler race in universal mode.
4289 test "$am__universal" = false || continue
4290 ;;
4291 nosideeffect)
4292 # After this tag, mechanisms are not by side-effect, so they'll
4293 # only be used when explicitly requested.
4294 if test "x$enable_dependency_tracking" = xyes; then
4295 continue
4296 else
4297 break
4298 fi
4299 ;;
4300 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4301 # This compiler won't grok '-c -o', but also, the minuso test has
4302 # not run yet. These depmodes are late enough in the game, and
4303 # so weak that their functioning should not be impacted.
4304 am__obj=conftest.${OBJEXT-o}
4305 am__minus_obj=
4306 ;;
4307 none) break ;;
4308 esac
4309 if depmode=$depmode \
4310 source=sub/conftest.c object=$am__obj \
4311 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4312 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4313 >/dev/null 2>conftest.err &&
4314 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4315 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4316 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4317 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4318 # icc doesn't choke on unknown options, it will just issue warnings
4319 # or remarks (even with -Werror). So we grep stderr for any message
4320 # that says an option was ignored or not supported.
4321 # When given -MP, icc 7.0 and 7.1 complain thusly:
4322 # icc: Command line warning: ignoring option '-M'; no argument required
4323 # The diagnosis changed in icc 8.0:
4324 # icc: Command line remark: option '-MP' not supported
4325 if (grep 'ignoring option' conftest.err ||
4326 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4327 am_cv_CC_dependencies_compiler_type=$depmode
4328 break
4329 fi
4330 fi
4331 done
4332
4333 cd ..
4334 rm -rf conftest.dir
4335 else
4336 am_cv_CC_dependencies_compiler_type=none
4337 fi
4338
4339 fi
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4341 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4342 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4343
4344 if
4345 test "x$enable_dependency_tracking" != xno \
4346 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4347 am__fastdepCC_TRUE=
4348 am__fastdepCC_FALSE='#'
4349 else
4350 am__fastdepCC_TRUE='#'
4351 am__fastdepCC_FALSE=
4352 fi
4353
4354
4355
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -std=c++0x" >&5
4357 $as_echo_n "checking whether C compiler accepts -std=c++0x... " >&6; }
4358 if ${ax_cv_check_cflags___std_cpp0x+:} false; then :
4359 $as_echo_n "(cached) " >&6
4360 else
4361
4362 ax_check_save_flags=$CFLAGS
4363 CFLAGS="$CFLAGS -std=c++0x"
4364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4365 /* end confdefs.h. */
4366
4367 int
4368 main ()
4369 {
4370
4371 ;
4372 return 0;
4373 }
4374 _ACEOF
4375 if ac_fn_c_try_compile "$LINENO"; then :
4376 ax_cv_check_cflags___std_cpp0x=yes
4377 else
4378 ax_cv_check_cflags___std_cpp0x=no
4379 fi
4380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4381 CFLAGS=$ax_check_save_flags
4382 fi
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___std_cpp0x" >&5
4384 $as_echo "$ax_cv_check_cflags___std_cpp0x" >&6; }
4385 if test x"$ax_cv_check_cflags___std_cpp0x" = xyes; then :
4386 CXXFLAGS="$CXXFLAGS -std=c++0x"
4387 else
4388 :
4389 fi
4390
4391
4392 # Checks for typedefs, structures, and compiler characteristics.
4393 ac_ext=c
4394 ac_cpp='$CPP $CPPFLAGS'
4395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4399 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4400 # On Suns, sometimes $CPP names a directory.
4401 if test -n "$CPP" && test -d "$CPP"; then
4402 CPP=
4403 fi
4404 if test -z "$CPP"; then
4405 if ${ac_cv_prog_CPP+:} false; then :
4406 $as_echo_n "(cached) " >&6
4407 else
4408 # Double quotes because CPP needs to be expanded
4409 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4410 do
4411 ac_preproc_ok=false
4412 for ac_c_preproc_warn_flag in '' yes
4413 do
4414 # Use a header file that comes with gcc, so configuring glibc
4415 # with a fresh cross-compiler works.
4416 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4417 # <limits.h> exists even on freestanding compilers.
4418 # On the NeXT, cc -E runs the code through the compiler's parser,
4419 # not just through cpp. "Syntax error" is here to catch this case.
4420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4421 /* end confdefs.h. */
4422 #ifdef __STDC__
4423 # include <limits.h>
4424 #else
4425 # include <assert.h>
4426 #endif
4427 Syntax error
4428 _ACEOF
4429 if ac_fn_c_try_cpp "$LINENO"; then :
4430
4431 else
4432 # Broken: fails on valid input.
4433 continue
4434 fi
4435 rm -f conftest.err conftest.i conftest.$ac_ext
4436
4437 # OK, works on sane cases. Now check whether nonexistent headers
4438 # can be detected and how.
4439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4440 /* end confdefs.h. */
4441 #include <ac_nonexistent.h>
4442 _ACEOF
4443 if ac_fn_c_try_cpp "$LINENO"; then :
4444 # Broken: success on invalid input.
4445 continue
4446 else
4447 # Passes both tests.
4448 ac_preproc_ok=:
4449 break
4450 fi
4451 rm -f conftest.err conftest.i conftest.$ac_ext
4452
4453 done
4454 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4455 rm -f conftest.i conftest.err conftest.$ac_ext
4456 if $ac_preproc_ok; then :
4457 break
4458 fi
4459
4460 done
4461 ac_cv_prog_CPP=$CPP
4462
4463 fi
4464 CPP=$ac_cv_prog_CPP
4465 else
4466 ac_cv_prog_CPP=$CPP
4467 fi
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4469 $as_echo "$CPP" >&6; }
4470 ac_preproc_ok=false
4471 for ac_c_preproc_warn_flag in '' yes
4472 do
4473 # Use a header file that comes with gcc, so configuring glibc
4474 # with a fresh cross-compiler works.
4475 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4476 # <limits.h> exists even on freestanding compilers.
4477 # On the NeXT, cc -E runs the code through the compiler's parser,
4478 # not just through cpp. "Syntax error" is here to catch this case.
4479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4480 /* end confdefs.h. */
4481 #ifdef __STDC__
4482 # include <limits.h>
4483 #else
4484 # include <assert.h>
4485 #endif
4486 Syntax error
4487 _ACEOF
4488 if ac_fn_c_try_cpp "$LINENO"; then :
4489
4490 else
4491 # Broken: fails on valid input.
4492 continue
4493 fi
4494 rm -f conftest.err conftest.i conftest.$ac_ext
4495
4496 # OK, works on sane cases. Now check whether nonexistent headers
4497 # can be detected and how.
4498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4499 /* end confdefs.h. */
4500 #include <ac_nonexistent.h>
4501 _ACEOF
4502 if ac_fn_c_try_cpp "$LINENO"; then :
4503 # Broken: success on invalid input.
4504 continue
4505 else
4506 # Passes both tests.
4507 ac_preproc_ok=:
4508 break
4509 fi
4510 rm -f conftest.err conftest.i conftest.$ac_ext
4511
4512 done
4513 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4514 rm -f conftest.i conftest.err conftest.$ac_ext
4515 if $ac_preproc_ok; then :
4516
4517 else
4518 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4520 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4521 See \`config.log' for more details" "$LINENO" 5; }
4522 fi
4523
4524 ac_ext=c
4525 ac_cpp='$CPP $CPPFLAGS'
4526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4529
4530
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4532 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4533 if ${ac_cv_path_GREP+:} false; then :
4534 $as_echo_n "(cached) " >&6
4535 else
4536 if test -z "$GREP"; then
4537 ac_path_GREP_found=false
4538 # Loop through the user's path and test for each of PROGNAME-LIST
4539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4541 do
4542 IFS=$as_save_IFS
4543 test -z "$as_dir" && as_dir=.
4544 for ac_prog in grep ggrep; do
4545 for ac_exec_ext in '' $ac_executable_extensions; do
4546 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4547 as_fn_executable_p "$ac_path_GREP" || continue
4548 # Check for GNU ac_path_GREP and select it if it is found.
4549 # Check for GNU $ac_path_GREP
4550 case `"$ac_path_GREP" --version 2>&1` in
4551 *GNU*)
4552 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4553 *)
4554 ac_count=0
4555 $as_echo_n 0123456789 >"conftest.in"
4556 while :
4557 do
4558 cat "conftest.in" "conftest.in" >"conftest.tmp"
4559 mv "conftest.tmp" "conftest.in"
4560 cp "conftest.in" "conftest.nl"
4561 $as_echo 'GREP' >> "conftest.nl"
4562 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4563 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4564 as_fn_arith $ac_count + 1 && ac_count=$as_val
4565 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4566 # Best one so far, save it but keep looking for a better one
4567 ac_cv_path_GREP="$ac_path_GREP"
4568 ac_path_GREP_max=$ac_count
4569 fi
4570 # 10*(2^10) chars as input seems more than enough
4571 test $ac_count -gt 10 && break
4572 done
4573 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4574 esac
4575
4576 $ac_path_GREP_found && break 3
4577 done
4578 done
4579 done
4580 IFS=$as_save_IFS
4581 if test -z "$ac_cv_path_GREP"; then
4582 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4583 fi
4584 else
4585 ac_cv_path_GREP=$GREP
4586 fi
4587
4588 fi
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4590 $as_echo "$ac_cv_path_GREP" >&6; }
4591 GREP="$ac_cv_path_GREP"
4592
4593
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4595 $as_echo_n "checking for egrep... " >&6; }
4596 if ${ac_cv_path_EGREP+:} false; then :
4597 $as_echo_n "(cached) " >&6
4598 else
4599 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4600 then ac_cv_path_EGREP="$GREP -E"
4601 else
4602 if test -z "$EGREP"; then
4603 ac_path_EGREP_found=false
4604 # Loop through the user's path and test for each of PROGNAME-LIST
4605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4607 do
4608 IFS=$as_save_IFS
4609 test -z "$as_dir" && as_dir=.
4610 for ac_prog in egrep; do
4611 for ac_exec_ext in '' $ac_executable_extensions; do
4612 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4613 as_fn_executable_p "$ac_path_EGREP" || continue
4614 # Check for GNU ac_path_EGREP and select it if it is found.
4615 # Check for GNU $ac_path_EGREP
4616 case `"$ac_path_EGREP" --version 2>&1` in
4617 *GNU*)
4618 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4619 *)
4620 ac_count=0
4621 $as_echo_n 0123456789 >"conftest.in"
4622 while :
4623 do
4624 cat "conftest.in" "conftest.in" >"conftest.tmp"
4625 mv "conftest.tmp" "conftest.in"
4626 cp "conftest.in" "conftest.nl"
4627 $as_echo 'EGREP' >> "conftest.nl"
4628 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4629 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4630 as_fn_arith $ac_count + 1 && ac_count=$as_val
4631 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4632 # Best one so far, save it but keep looking for a better one
4633 ac_cv_path_EGREP="$ac_path_EGREP"
4634 ac_path_EGREP_max=$ac_count
4635 fi
4636 # 10*(2^10) chars as input seems more than enough
4637 test $ac_count -gt 10 && break
4638 done
4639 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4640 esac
4641
4642 $ac_path_EGREP_found && break 3
4643 done
4644 done
4645 done
4646 IFS=$as_save_IFS
4647 if test -z "$ac_cv_path_EGREP"; then
4648 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4649 fi
4650 else
4651 ac_cv_path_EGREP=$EGREP
4652 fi
4653
4654 fi
4655 fi
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4657 $as_echo "$ac_cv_path_EGREP" >&6; }
4658 EGREP="$ac_cv_path_EGREP"
4659
4660
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4662 $as_echo_n "checking for ANSI C header files... " >&6; }
4663 if ${ac_cv_header_stdc+:} false; then :
4664 $as_echo_n "(cached) " >&6
4665 else
4666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4667 /* end confdefs.h. */
4668 #include <stdlib.h>
4669 #include <stdarg.h>
4670 #include <string.h>
4671 #include <float.h>
4672
4673 int
4674 main ()
4675 {
4676
4677 ;
4678 return 0;
4679 }
4680 _ACEOF
4681 if ac_fn_c_try_compile "$LINENO"; then :
4682 ac_cv_header_stdc=yes
4683 else
4684 ac_cv_header_stdc=no
4685 fi
4686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4687
4688 if test $ac_cv_header_stdc = yes; then
4689 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4691 /* end confdefs.h. */
4692 #include <string.h>
4693
4694 _ACEOF
4695 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4696 $EGREP "memchr" >/dev/null 2>&1; then :
4697
4698 else
4699 ac_cv_header_stdc=no
4700 fi
4701 rm -f conftest*
4702
4703 fi
4704
4705 if test $ac_cv_header_stdc = yes; then
4706 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4708 /* end confdefs.h. */
4709 #include <stdlib.h>
4710
4711 _ACEOF
4712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4713 $EGREP "free" >/dev/null 2>&1; then :
4714
4715 else
4716 ac_cv_header_stdc=no
4717 fi
4718 rm -f conftest*
4719
4720 fi
4721
4722 if test $ac_cv_header_stdc = yes; then
4723 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4724 if test "$cross_compiling" = yes; then :
4725 :
4726 else
4727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h. */
4729 #include <ctype.h>
4730 #include <stdlib.h>
4731 #if ((' ' & 0x0FF) == 0x020)
4732 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4733 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4734 #else
4735 # define ISLOWER(c) \
4736 (('a' <= (c) && (c) <= 'i') \
4737 || ('j' <= (c) && (c) <= 'r') \
4738 || ('s' <= (c) && (c) <= 'z'))
4739 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4740 #endif
4741
4742 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4743 int
4744 main ()
4745 {
4746 int i;
4747 for (i = 0; i < 256; i++)
4748 if (XOR (islower (i), ISLOWER (i))
4749 || toupper (i) != TOUPPER (i))
4750 return 2;
4751 return 0;
4752 }
4753 _ACEOF
4754 if ac_fn_c_try_run "$LINENO"; then :
4755
4756 else
4757 ac_cv_header_stdc=no
4758 fi
4759 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4760 conftest.$ac_objext conftest.beam conftest.$ac_ext
4761 fi
4762
4763 fi
4764 fi
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4766 $as_echo "$ac_cv_header_stdc" >&6; }
4767 if test $ac_cv_header_stdc = yes; then
4768
4769 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4770
4771 fi
4772
4773 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4774 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4775 inttypes.h stdint.h unistd.h
4776 do :
4777 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4778 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4779 "
4780 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4781 cat >>confdefs.h <<_ACEOF
4782 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4783 _ACEOF
4784
4785 fi
4786
4787 done
4788
4789
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
4791 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
4792 if ${ac_cv_header_stdbool_h+:} false; then :
4793 $as_echo_n "(cached) " >&6
4794 else
4795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4796 /* end confdefs.h. */
4797
4798 #include <stdbool.h>
4799 #ifndef bool
4800 "error: bool is not defined"
4801 #endif
4802 #ifndef false
4803 "error: false is not defined"
4804 #endif
4805 #if false
4806 "error: false is not 0"
4807 #endif
4808 #ifndef true
4809 "error: true is not defined"
4810 #endif
4811 #if true != 1
4812 "error: true is not 1"
4813 #endif
4814 #ifndef __bool_true_false_are_defined
4815 "error: __bool_true_false_are_defined is not defined"
4816 #endif
4817
4818 struct s { _Bool s: 1; _Bool t; } s;
4819
4820 char a[true == 1 ? 1 : -1];
4821 char b[false == 0 ? 1 : -1];
4822 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
4823 char d[(bool) 0.5 == true ? 1 : -1];
4824 /* See body of main program for 'e'. */
4825 char f[(_Bool) 0.0 == false ? 1 : -1];
4826 char g[true];
4827 char h[sizeof (_Bool)];
4828 char i[sizeof s.t];
4829 enum { j = false, k = true, l = false * true, m = true * 256 };
4830 /* The following fails for
4831 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
4832 _Bool n[m];
4833 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
4834 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
4835 /* Catch a bug in an HP-UX C compiler. See
4836 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
4837 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
4838 */
4839 _Bool q = true;
4840 _Bool *pq = &q;
4841
4842 int
4843 main ()
4844 {
4845
4846 bool e = &s;
4847 *pq |= q;
4848 *pq |= ! q;
4849 /* Refer to every declared value, to avoid compiler optimizations. */
4850 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
4851 + !m + !n + !o + !p + !q + !pq);
4852
4853 ;
4854 return 0;
4855 }
4856 _ACEOF
4857 if ac_fn_c_try_compile "$LINENO"; then :
4858 ac_cv_header_stdbool_h=yes
4859 else
4860 ac_cv_header_stdbool_h=no
4861 fi
4862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4863 fi
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
4865 $as_echo "$ac_cv_header_stdbool_h" >&6; }
4866 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
4867 if test "x$ac_cv_type__Bool" = xyes; then :
4868
4869 cat >>confdefs.h <<_ACEOF
4870 #define HAVE__BOOL 1
4871 _ACEOF
4872
4873
4874 fi
4875
4876
4877 if test $ac_cv_header_stdbool_h = yes; then
4878
4879 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
4880
4881 fi
4882
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4884 $as_echo_n "checking for inline... " >&6; }
4885 if ${ac_cv_c_inline+:} false; then :
4886 $as_echo_n "(cached) " >&6
4887 else
4888 ac_cv_c_inline=no
4889 for ac_kw in inline __inline__ __inline; do
4890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4891 /* end confdefs.h. */
4892 #ifndef __cplusplus
4893 typedef int foo_t;
4894 static $ac_kw foo_t static_foo () {return 0; }
4895 $ac_kw foo_t foo () {return 0; }
4896 #endif
4897
4898 _ACEOF
4899 if ac_fn_c_try_compile "$LINENO"; then :
4900 ac_cv_c_inline=$ac_kw
4901 fi
4902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4903 test "$ac_cv_c_inline" != no && break
4904 done
4905
4906 fi
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4908 $as_echo "$ac_cv_c_inline" >&6; }
4909
4910 case $ac_cv_c_inline in
4911 inline | yes) ;;
4912 *)
4913 case $ac_cv_c_inline in
4914 no) ac_val=;;
4915 *) ac_val=$ac_cv_c_inline;;
4916 esac
4917 cat >>confdefs.h <<_ACEOF
4918 #ifndef __cplusplus
4919 #define inline $ac_val
4920 #endif
4921 _ACEOF
4922 ;;
4923 esac
4924
4925 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4926 if test "x$ac_cv_type_size_t" = xyes; then :
4927
4928 else
4929
4930 cat >>confdefs.h <<_ACEOF
4931 #define size_t unsigned int
4932 _ACEOF
4933
4934 fi
4935
4936
4937 # Checks for library functions.
4938 for ac_func in sqrt
4939 do :
4940 ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt"
4941 if test "x$ac_cv_func_sqrt" = xyes; then :
4942 cat >>confdefs.h <<_ACEOF
4943 #define HAVE_SQRT 1
4944 _ACEOF
4945
4946 fi
4947 done
4948
4949
4950
4951
4952 # Check whether --with-wxdir was given.
4953 if test "${with_wxdir+set}" = set; then :
4954 withval=$with_wxdir; wx_config_name="$withval/wx-config"
4955 wx_config_args="--inplace"
4956 fi
4957
4958
4959 # Check whether --with-wx-config was given.
4960 if test "${with_wx_config+set}" = set; then :
4961 withval=$with_wx_config; wx_config_name="$withval"
4962 fi
4963
4964
4965 # Check whether --with-wx-prefix was given.
4966 if test "${with_wx_prefix+set}" = set; then :
4967 withval=$with_wx_prefix; wx_config_prefix="$withval"
4968 else
4969 wx_config_prefix=""
4970 fi
4971
4972
4973 # Check whether --with-wx-exec-prefix was given.
4974 if test "${with_wx_exec_prefix+set}" = set; then :
4975 withval=$with_wx_exec_prefix; wx_config_exec_prefix="$withval"
4976 else
4977 wx_config_exec_prefix=""
4978 fi
4979
4980
4981
4982 #Detect wxWidgets
4983 MIN_WX_VERSION="2.8.0"
4984
4985 if test x${WX_CONFIG_NAME+set} != xset ; then
4986 WX_CONFIG_NAME=wx-config
4987 fi
4988
4989 if test "x$wx_config_name" != x ; then
4990 WX_CONFIG_NAME="$wx_config_name"
4991 fi
4992
4993 if test x$wx_config_exec_prefix != x ; then
4994 wx_config_args="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
4995 WX_LOOKUP_PATH="$wx_config_exec_prefix/bin"
4996 fi
4997 if test x$wx_config_prefix != x ; then
4998 wx_config_args="$wx_config_args --prefix=$wx_config_prefix"
4999 WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
5000 fi
5001 if test "$cross_compiling" = "yes"; then
5002 wx_config_args="$wx_config_args --host=$host_alias"
5003 fi
5004
5005 if test -x "$WX_CONFIG_NAME" ; then
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wx-config" >&5
5007 $as_echo_n "checking for wx-config... " >&6; }
5008 WX_CONFIG_PATH="$WX_CONFIG_NAME"
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG_PATH" >&5
5010 $as_echo "$WX_CONFIG_PATH" >&6; }
5011 else
5012 # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
5013 set dummy $WX_CONFIG_NAME; ac_word=$2
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5015 $as_echo_n "checking for $ac_word... " >&6; }
5016 if ${ac_cv_path_WX_CONFIG_PATH+:} false; then :
5017 $as_echo_n "(cached) " >&6
5018 else
5019 case $WX_CONFIG_PATH in
5020 [\\/]* | ?:[\\/]*)
5021 ac_cv_path_WX_CONFIG_PATH="$WX_CONFIG_PATH" # Let the user override the test with a path.
5022 ;;
5023 *)
5024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5025 as_dummy=""$WX_LOOKUP_PATH:$PATH""
5026 for as_dir in $as_dummy
5027 do
5028 IFS=$as_save_IFS
5029 test -z "$as_dir" && as_dir=.
5030 for ac_exec_ext in '' $ac_executable_extensions; do
5031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5032 ac_cv_path_WX_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
5033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5034 break 2
5035 fi
5036 done
5037 done
5038 IFS=$as_save_IFS
5039
5040 test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH="no"
5041 ;;
5042 esac
5043 fi
5044 WX_CONFIG_PATH=$ac_cv_path_WX_CONFIG_PATH
5045 if test -n "$WX_CONFIG_PATH"; then
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG_PATH" >&5
5047 $as_echo "$WX_CONFIG_PATH" >&6; }
5048 else
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5050 $as_echo "no" >&6; }
5051 fi
5052
5053
5054 fi
5055
5056 if test "$WX_CONFIG_PATH" != "no" ; then
5057 WX_VERSION=""
5058
5059 min_wx_version=$MIN_WX_VERSION
5060 if test -z "" ; then
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version >= $min_wx_version" >&5
5062 $as_echo_n "checking for wxWidgets version >= $min_wx_version... " >&6; }
5063 else
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version >= $min_wx_version ()" >&5
5065 $as_echo_n "checking for wxWidgets version >= $min_wx_version ()... " >&6; }
5066 fi
5067
5068 WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args "
5069
5070 WX_VERSION=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
5071 wx_config_major_version=`echo $WX_VERSION | \
5072 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
5073 wx_config_minor_version=`echo $WX_VERSION | \
5074 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
5075 wx_config_micro_version=`echo $WX_VERSION | \
5076 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
5077
5078 wx_requested_major_version=`echo $min_wx_version | \
5079 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
5080 wx_requested_minor_version=`echo $min_wx_version | \
5081 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
5082 wx_requested_micro_version=`echo $min_wx_version | \
5083 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
5084
5085
5086 wx_ver_ok=""
5087 if test "x$WX_VERSION" != x ; then
5088 if test $wx_config_major_version -gt $wx_requested_major_version; then
5089 wx_ver_ok=yes
5090 else
5091 if test $wx_config_major_version -eq $wx_requested_major_version; then
5092 if test $wx_config_minor_version -gt $wx_requested_minor_version; then
5093 wx_ver_ok=yes
5094 else
5095 if test $wx_config_minor_version -eq $wx_requested_minor_version; then
5096 if test $wx_config_micro_version -ge $wx_requested_micro_version; then
5097 wx_ver_ok=yes
5098 fi
5099 fi
5100 fi
5101 fi
5102 fi
5103 fi
5104
5105
5106 if test -n "$wx_ver_ok"; then
5107
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $WX_VERSION)" >&5
5109 $as_echo "yes (version $WX_VERSION)" >&6; }
5110 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs`
5111
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets static library" >&5
5113 $as_echo_n "checking for wxWidgets static library... " >&6; }
5114 WX_LIBS_STATIC=`$WX_CONFIG_WITH_ARGS --static --libs 2>/dev/null`
5115 if test "x$WX_LIBS_STATIC" = "x"; then
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5117 $as_echo "no" >&6; }
5118 else
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5120 $as_echo "yes" >&6; }
5121 fi
5122
5123 wx_has_cppflags=""
5124 if test $wx_config_major_version -gt 2; then
5125 wx_has_cppflags=yes
5126 else
5127 if test $wx_config_major_version -eq 2; then
5128 if test $wx_config_minor_version -gt 2; then
5129 wx_has_cppflags=yes
5130 else
5131 if test $wx_config_minor_version -eq 2; then
5132 if test $wx_config_micro_version -ge 6; then
5133 wx_has_cppflags=yes
5134 fi
5135 fi
5136 fi
5137 fi
5138 fi
5139
5140 wx_has_rescomp=""
5141 if test $wx_config_major_version -gt 2; then
5142 wx_has_rescomp=yes
5143 else
5144 if test $wx_config_major_version -eq 2; then
5145 if test $wx_config_minor_version -ge 7; then
5146 wx_has_rescomp=yes
5147 fi
5148 fi
5149 fi
5150 if test "x$wx_has_rescomp" = x ; then
5151 WX_RESCOMP=
5152 else
5153 WX_RESCOMP=`$WX_CONFIG_WITH_ARGS --rescomp`
5154 fi
5155
5156 if test "x$wx_has_cppflags" = x ; then
5157 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
5158 WX_CPPFLAGS=$WX_CFLAGS
5159 WX_CXXFLAGS=$WX_CFLAGS
5160
5161 WX_CFLAGS_ONLY=$WX_CFLAGS
5162 WX_CXXFLAGS_ONLY=$WX_CFLAGS
5163 else
5164 WX_CPPFLAGS=`$WX_CONFIG_WITH_ARGS --cppflags`
5165 WX_CXXFLAGS=`$WX_CONFIG_WITH_ARGS --cxxflags`
5166 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
5167
5168 WX_CFLAGS_ONLY=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
5169 WX_CXXFLAGS_ONLY=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
5170 fi
5171
5172 wxWin=1
5173
5174 else
5175
5176 if test "x$WX_VERSION" = x; then
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5178 $as_echo "no" >&6; }
5179 else
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $WX_VERSION is not new enough)" >&5
5181 $as_echo "no (version $WX_VERSION is not new enough)" >&6; }
5182 fi
5183
5184 WX_CFLAGS=""
5185 WX_CPPFLAGS=""
5186 WX_CXXFLAGS=""
5187 WX_LIBS=""
5188 WX_LIBS_STATIC=""
5189 WX_RESCOMP=""
5190 :
5191
5192 fi
5193 else
5194
5195 WX_CFLAGS=""
5196 WX_CPPFLAGS=""
5197 WX_CXXFLAGS=""
5198 WX_LIBS=""
5199 WX_LIBS_STATIC=""
5200 WX_RESCOMP=""
5201
5202 :
5203
5204 fi
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216 if test "$wxWin" != 1; then
5217 as_fn_error $? "
5218 wxWidgets must be installed on your system
5219 but wx-config script couldn't be found.
5220
5221 Please check that wx-config is in path, the directory
5222 where wxWidgets libraries are installed (returned by
5223 'wx-config --libs' command) is in LD_LIBRARY_PATH or
5224 equivalent variable and wxWidgets version is $MIN_WX_VERSION or above.
5225 " "$LINENO" 5
5226 fi
5227
5228 # Make sure we can run config.sub.
5229 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5230 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5231
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5233 $as_echo_n "checking build system type... " >&6; }
5234 if ${ac_cv_build+:} false; then :
5235 $as_echo_n "(cached) " >&6
5236 else
5237 ac_build_alias=$build_alias
5238 test "x$ac_build_alias" = x &&
5239 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5240 test "x$ac_build_alias" = x &&
5241 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5242 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5243 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5244
5245 fi
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5247 $as_echo "$ac_cv_build" >&6; }
5248 case $ac_cv_build in
5249 *-*-*) ;;
5250 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5251 esac
5252 build=$ac_cv_build
5253 ac_save_IFS=$IFS; IFS='-'
5254 set x $ac_cv_build
5255 shift
5256 build_cpu=$1
5257 build_vendor=$2
5258 shift; shift
5259 # Remember, the first character of IFS is used to create $*,
5260 # except with old shells:
5261 build_os=$*
5262 IFS=$ac_save_IFS
5263 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5264
5265
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5267 $as_echo_n "checking host system type... " >&6; }
5268 if ${ac_cv_host+:} false; then :
5269 $as_echo_n "(cached) " >&6
5270 else
5271 if test "x$host_alias" = x; then
5272 ac_cv_host=$ac_cv_build
5273 else
5274 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5275 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5276 fi
5277
5278 fi
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5280 $as_echo "$ac_cv_host" >&6; }
5281 case $ac_cv_host in
5282 *-*-*) ;;
5283 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5284 esac
5285 host=$ac_cv_host
5286 ac_save_IFS=$IFS; IFS='-'
5287 set x $ac_cv_host
5288 shift
5289 host_cpu=$1
5290 host_vendor=$2
5291 shift; shift
5292 # Remember, the first character of IFS is used to create $*,
5293 # except with old shells:
5294 host_os=$*
5295 IFS=$ac_save_IFS
5296 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5297
5298
5299
5300
5301
5302 # Check whether --with-boost was given.
5303 if test "${with_boost+set}" = set; then :
5304 withval=$with_boost;
5305 if test "$withval" = "no"; then
5306 want_boost="no"
5307 elif test "$withval" = "yes"; then
5308 want_boost="yes"
5309 ac_boost_path=""
5310 else
5311 want_boost="yes"
5312 ac_boost_path="$withval"
5313 fi
5314
5315 else
5316 want_boost="yes"
5317 fi
5318
5319
5320
5321
5322 # Check whether --with-boost-libdir was given.
5323 if test "${with_boost_libdir+set}" = set; then :
5324 withval=$with_boost_libdir;
5325 if test -d "$withval"
5326 then
5327 ac_boost_lib_path="$withval"
5328 else
5329 as_fn_error $? "--with-boost-libdir expected directory name" "$LINENO" 5
5330 fi
5331
5332 else
5333 ac_boost_lib_path=""
5334
5335 fi
5336
5337
5338 if test "x$want_boost" = "xyes"; then
5339 boost_lib_version_req=1.32
5340 boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([0-9]*\.[0-9]*\)'`
5341 boost_lib_version_req_major=`expr $boost_lib_version_req : '\([0-9]*\)'`
5342 boost_lib_version_req_minor=`expr $boost_lib_version_req : '[0-9]*\.\([0-9]*\)'`
5343 boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
5344 if test "x$boost_lib_version_req_sub_minor" = "x" ; then
5345 boost_lib_version_req_sub_minor="0"
5346 fi
5347 WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+ $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= $boost_lib_version_req" >&5
5349 $as_echo_n "checking for boostlib >= $boost_lib_version_req... " >&6; }
5350 succeeded=no
5351
5352 libsubdirs="lib"
5353 ax_arch=`uname -m`
5354 case $ax_arch in
5355 x86_64)
5356 libsubdirs="lib64 libx32 lib lib64"
5357 ;;
5358 ppc64|s390x|sparc64|aarch64|ppc64le)
5359 libsubdirs="lib64 lib lib64 ppc64le"
5360 ;;
5361 esac
5362
5363
5364 libsubdirs="lib/${host_cpu}-${host_os} $libsubdirs"
5365
5366 case ${host_cpu} in
5367 i?86)
5368 libsubdirs="lib/i386-${host_os} $libsubdirs"
5369 ;;
5370 esac
5371
5372 if test "$ac_boost_path" != ""; then
5373 BOOST_CPPFLAGS="-I$ac_boost_path/include"
5374 for ac_boost_path_tmp in $libsubdirs; do
5375 if test -d "$ac_boost_path"/"$ac_boost_path_tmp" ; then
5376 BOOST_LDFLAGS="-L$ac_boost_path/$ac_boost_path_tmp"
5377 break
5378 fi
5379 done
5380 elif test "$cross_compiling" != yes; then
5381 for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
5382 if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
5383 for libsubdir in $libsubdirs ; do
5384 if ls "$ac_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
5385 done
5386 BOOST_LDFLAGS="-L$ac_boost_path_tmp/$libsubdir"
5387 BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
5388 break;
5389 fi
5390 done
5391 fi
5392
5393 if test "$ac_boost_lib_path" != ""; then
5394 BOOST_LDFLAGS="-L$ac_boost_lib_path"
5395 fi
5396
5397 CPPFLAGS_SAVED="$CPPFLAGS"
5398 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
5399 export CPPFLAGS
5400
5401 LDFLAGS_SAVED="$LDFLAGS"
5402 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
5403 export LDFLAGS
5404
5405
5406 ac_ext=cpp
5407 ac_cpp='$CXXCPP $CPPFLAGS'
5408 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5409 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5410 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5411
5412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5413 /* end confdefs.h. */
5414
5415 #include <boost/version.hpp>
5416
5417 int
5418 main ()
5419 {
5420
5421 #if BOOST_VERSION >= $WANT_BOOST_VERSION
5422 // Everything is okay
5423 #else
5424 # error Boost version is too old
5425 #endif
5426
5427 ;
5428 return 0;
5429 }
5430 _ACEOF
5431 if ac_fn_cxx_try_compile "$LINENO"; then :
5432
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5434 $as_echo "yes" >&6; }
5435 succeeded=yes
5436 found_system=yes
5437
5438 fi
5439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5440 ac_ext=c
5441 ac_cpp='$CPP $CPPFLAGS'
5442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5445
5446
5447
5448
5449 if test "x$succeeded" != "xyes"; then
5450 CPPFLAGS="$CPPFLAGS_SAVED"
5451 LDFLAGS="$LDFLAGS_SAVED"
5452 BOOST_CPPFLAGS=
5453 BOOST_LDFLAGS=
5454 _version=0
5455 if test "$ac_boost_path" != ""; then
5456 if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
5457 for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
5458 _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
5459 V_CHECK=`expr $_version_tmp \> $_version`
5460 if test "$V_CHECK" = "1" ; then
5461 _version=$_version_tmp
5462 fi
5463 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
5464 BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
5465 done
5466 if test -z "$BOOST_CPPFLAGS"; then
5467 if test -d "$ac_boost_path/boost" && test -r "$ac_boost_path/boost"; then
5468 BOOST_CPPFLAGS="-I$ac_boost_path"
5469 fi
5470 fi
5471 fi
5472 else
5473 if test "$cross_compiling" != yes; then
5474 for ac_boost_path in /usr /usr/local /opt /opt/local ; do
5475 if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
5476 for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
5477 _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
5478 V_CHECK=`expr $_version_tmp \> $_version`
5479 if test "$V_CHECK" = "1" ; then
5480 _version=$_version_tmp
5481 best_path=$ac_boost_path
5482 fi
5483 done
5484 fi
5485 done
5486
5487 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
5488 BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
5489 if test "$ac_boost_lib_path" = ""; then
5490 for libsubdir in $libsubdirs ; do
5491 if ls "$best_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
5492 done
5493 BOOST_LDFLAGS="-L$best_path/$libsubdir"
5494 fi
5495 fi
5496
5497 if test "x$BOOST_ROOT" != "x"; then
5498 for libsubdir in $libsubdirs ; do
5499 if ls "$BOOST_ROOT/stage/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
5500 done
5501 if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/$libsubdir" && test -r "$BOOST_ROOT/stage/$libsubdir"; then
5502 version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
5503 stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
5504 stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
5505 V_CHECK=`expr $stage_version_shorten \>\= $_version`
5506 if test "$V_CHECK" = "1" -a "$ac_boost_lib_path" = "" ; then
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: We will use a staged boost library from $BOOST_ROOT" >&5
5508 $as_echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
5509 BOOST_CPPFLAGS="-I$BOOST_ROOT"
5510 BOOST_LDFLAGS="-L$BOOST_ROOT/stage/$libsubdir"
5511 fi
5512 fi
5513 fi
5514 fi
5515
5516 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
5517 export CPPFLAGS
5518 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
5519 export LDFLAGS
5520
5521 ac_ext=cpp
5522 ac_cpp='$CXXCPP $CPPFLAGS'
5523 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5524 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5525 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5526
5527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5528 /* end confdefs.h. */
5529
5530 #include <boost/version.hpp>
5531
5532 int
5533 main ()
5534 {
5535
5536 #if BOOST_VERSION >= $WANT_BOOST_VERSION
5537 // Everything is okay
5538 #else
5539 # error Boost version is too old
5540 #endif
5541
5542 ;
5543 return 0;
5544 }
5545 _ACEOF
5546 if ac_fn_cxx_try_compile "$LINENO"; then :
5547
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5549 $as_echo "yes" >&6; }
5550 succeeded=yes
5551 found_system=yes
5552
5553 fi
5554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5555 ac_ext=c
5556 ac_cpp='$CPP $CPPFLAGS'
5557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5560
5561 fi
5562
5563 if test "$succeeded" != "yes" ; then
5564 if test "$_version" = "0" ; then
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&5
5566 $as_echo "$as_me: We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&6;}
5567 else
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5
5569 $as_echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
5570 fi
5571 # execute ACTION-IF-NOT-FOUND (if present):
5572 :
5573 else
5574
5575
5576
5577 $as_echo "#define HAVE_BOOST /**/" >>confdefs.h
5578
5579 # execute ACTION-IF-FOUND (if present):
5580 :
5581 fi
5582
5583 CPPFLAGS="$CPPFLAGS_SAVED"
5584 LDFLAGS="$LDFLAGS_SAVED"
5585 fi
5586
5587
5588
5589
5590 ac_config_files="$ac_config_files Makefile man/Makefile src/Makefile"
5591
5592 cat >confcache <<\_ACEOF
5593 # This file is a shell script that caches the results of configure
5594 # tests run on this system so they can be shared between configure
5595 # scripts and configure runs, see configure's option --config-cache.
5596 # It is not useful on other systems. If it contains results you don't
5597 # want to keep, you may remove or edit it.
5598 #
5599 # config.status only pays attention to the cache file if you give it
5600 # the --recheck option to rerun configure.
5601 #
5602 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5603 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5604 # following values.
5605
5606 _ACEOF
5607
5608 # The following way of writing the cache mishandles newlines in values,
5609 # but we know of no workaround that is simple, portable, and efficient.
5610 # So, we kill variables containing newlines.
5611 # Ultrix sh set writes to stderr and can't be redirected directly,
5612 # and sets the high bit in the cache file unless we assign to the vars.
5613 (
5614 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5615 eval ac_val=\$$ac_var
5616 case $ac_val in #(
5617 *${as_nl}*)
5618 case $ac_var in #(
5619 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5620 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5621 esac
5622 case $ac_var in #(
5623 _ | IFS | as_nl) ;; #(
5624 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5625 *) { eval $ac_var=; unset $ac_var;} ;;
5626 esac ;;
5627 esac
5628 done
5629
5630 (set) 2>&1 |
5631 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5632 *${as_nl}ac_space=\ *)
5633 # `set' does not quote correctly, so add quotes: double-quote
5634 # substitution turns \\\\ into \\, and sed turns \\ into \.
5635 sed -n \
5636 "s/'/'\\\\''/g;
5637 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5638 ;; #(
5639 *)
5640 # `set' quotes correctly as required by POSIX, so do not add quotes.
5641 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5642 ;;
5643 esac |
5644 sort
5645 ) |
5646 sed '
5647 /^ac_cv_env_/b end
5648 t clear
5649 :clear
5650 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5651 t end
5652 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5653 :end' >>confcache
5654 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5655 if test -w "$cache_file"; then
5656 if test "x$cache_file" != "x/dev/null"; then
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5658 $as_echo "$as_me: updating cache $cache_file" >&6;}
5659 if test ! -f "$cache_file" || test -h "$cache_file"; then
5660 cat confcache >"$cache_file"
5661 else
5662 case $cache_file in #(
5663 */* | ?:*)
5664 mv -f confcache "$cache_file"$$ &&
5665 mv -f "$cache_file"$$ "$cache_file" ;; #(
5666 *)
5667 mv -f confcache "$cache_file" ;;
5668 esac
5669 fi
5670 fi
5671 else
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5673 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5674 fi
5675 fi
5676 rm -f confcache
5677
5678 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5679 # Let make expand exec_prefix.
5680 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5681
5682 DEFS=-DHAVE_CONFIG_H
5683
5684 ac_libobjs=
5685 ac_ltlibobjs=
5686 U=
5687 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5688 # 1. Remove the extension, and $U if already installed.
5689 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5690 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5691 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5692 # will be set to the directory where LIBOBJS objects are built.
5693 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5694 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5695 done
5696 LIBOBJS=$ac_libobjs
5697
5698 LTLIBOBJS=$ac_ltlibobjs
5699
5700
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
5702 $as_echo_n "checking that generated files are newer than configure... " >&6; }
5703 if test -n "$am_sleep_pid"; then
5704 # Hide warnings about reused PIDs.
5705 wait $am_sleep_pid 2>/dev/null
5706 fi
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
5708 $as_echo "done" >&6; }
5709 if test -n "$EXEEXT"; then
5710 am__EXEEXT_TRUE=
5711 am__EXEEXT_FALSE='#'
5712 else
5713 am__EXEEXT_TRUE='#'
5714 am__EXEEXT_FALSE=
5715 fi
5716
5717 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5718 as_fn_error $? "conditional \"AMDEP\" was never defined.
5719 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5720 fi
5721 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
5722 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
5723 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5724 fi
5725 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5726 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
5727 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5728 fi
5729
5730 : "${CONFIG_STATUS=./config.status}"
5731 ac_write_fail=0
5732 ac_clean_files_save=$ac_clean_files
5733 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5735 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5736 as_write_fail=0
5737 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5738 #! $SHELL
5739 # Generated by $as_me.
5740 # Run this file to recreate the current configuration.
5741 # Compiler output produced by configure, useful for debugging
5742 # configure, is in config.log if it exists.
5743
5744 debug=false
5745 ac_cs_recheck=false
5746 ac_cs_silent=false
5747
5748 SHELL=\${CONFIG_SHELL-$SHELL}
5749 export SHELL
5750 _ASEOF
5751 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5752 ## -------------------- ##
5753 ## M4sh Initialization. ##
5754 ## -------------------- ##
5755
5756 # Be more Bourne compatible
5757 DUALCASE=1; export DUALCASE # for MKS sh
5758 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5759 emulate sh
5760 NULLCMD=:
5761 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5762 # is contrary to our usage. Disable this feature.
5763 alias -g '${1+"$@"}'='"$@"'
5764 setopt NO_GLOB_SUBST
5765 else
5766 case `(set -o) 2>/dev/null` in #(
5767 *posix*) :
5768 set -o posix ;; #(
5769 *) :
5770 ;;
5771 esac
5772 fi
5773
5774
5775 as_nl='
5776 '
5777 export as_nl
5778 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5779 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5780 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5781 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5782 # Prefer a ksh shell builtin over an external printf program on Solaris,
5783 # but without wasting forks for bash or zsh.
5784 if test -z "$BASH_VERSION$ZSH_VERSION" \
5785 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5786 as_echo='print -r --'
5787 as_echo_n='print -rn --'
5788 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5789 as_echo='printf %s\n'
5790 as_echo_n='printf %s'
5791 else
5792 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5793 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5794 as_echo_n='/usr/ucb/echo -n'
5795 else
5796 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5797 as_echo_n_body='eval
5798 arg=$1;
5799 case $arg in #(
5800 *"$as_nl"*)
5801 expr "X$arg" : "X\\(.*\\)$as_nl";
5802 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5803 esac;
5804 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5805 '
5806 export as_echo_n_body
5807 as_echo_n='sh -c $as_echo_n_body as_echo'
5808 fi
5809 export as_echo_body
5810 as_echo='sh -c $as_echo_body as_echo'
5811 fi
5812
5813 # The user is always right.
5814 if test "${PATH_SEPARATOR+set}" != set; then
5815 PATH_SEPARATOR=:
5816 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5817 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5818 PATH_SEPARATOR=';'
5819 }
5820 fi
5821
5822
5823 # IFS
5824 # We need space, tab and new line, in precisely that order. Quoting is
5825 # there to prevent editors from complaining about space-tab.
5826 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5827 # splitting by setting IFS to empty value.)
5828 IFS=" "" $as_nl"
5829
5830 # Find who we are. Look in the path if we contain no directory separator.
5831 as_myself=
5832 case $0 in #((
5833 *[\\/]* ) as_myself=$0 ;;
5834 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5835 for as_dir in $PATH
5836 do
5837 IFS=$as_save_IFS
5838 test -z "$as_dir" && as_dir=.
5839 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5840 done
5841 IFS=$as_save_IFS
5842
5843 ;;
5844 esac
5845 # We did not find ourselves, most probably we were run as `sh COMMAND'
5846 # in which case we are not to be found in the path.
5847 if test "x$as_myself" = x; then
5848 as_myself=$0
5849 fi
5850 if test ! -f "$as_myself"; then
5851 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5852 exit 1
5853 fi
5854
5855 # Unset variables that we do not need and which cause bugs (e.g. in
5856 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5857 # suppresses any "Segmentation fault" message there. '((' could
5858 # trigger a bug in pdksh 5.2.14.
5859 for as_var in BASH_ENV ENV MAIL MAILPATH
5860 do eval test x\${$as_var+set} = xset \
5861 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5862 done
5863 PS1='$ '
5864 PS2='> '
5865 PS4='+ '
5866
5867 # NLS nuisances.
5868 LC_ALL=C
5869 export LC_ALL
5870 LANGUAGE=C
5871 export LANGUAGE
5872
5873 # CDPATH.
5874 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5875
5876
5877 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5878 # ----------------------------------------
5879 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5880 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5881 # script with STATUS, using 1 if that was 0.
5882 as_fn_error ()
5883 {
5884 as_status=$1; test $as_status -eq 0 && as_status=1
5885 if test "$4"; then
5886 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5887 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5888 fi
5889 $as_echo "$as_me: error: $2" >&2
5890 as_fn_exit $as_status
5891 } # as_fn_error
5892
5893
5894 # as_fn_set_status STATUS
5895 # -----------------------
5896 # Set $? to STATUS, without forking.
5897 as_fn_set_status ()
5898 {
5899 return $1
5900 } # as_fn_set_status
5901
5902 # as_fn_exit STATUS
5903 # -----------------
5904 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5905 as_fn_exit ()
5906 {
5907 set +e
5908 as_fn_set_status $1
5909 exit $1
5910 } # as_fn_exit
5911
5912 # as_fn_unset VAR
5913 # ---------------
5914 # Portably unset VAR.
5915 as_fn_unset ()
5916 {
5917 { eval $1=; unset $1;}
5918 }
5919 as_unset=as_fn_unset
5920 # as_fn_append VAR VALUE
5921 # ----------------------
5922 # Append the text in VALUE to the end of the definition contained in VAR. Take
5923 # advantage of any shell optimizations that allow amortized linear growth over
5924 # repeated appends, instead of the typical quadratic growth present in naive
5925 # implementations.
5926 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5927 eval 'as_fn_append ()
5928 {
5929 eval $1+=\$2
5930 }'
5931 else
5932 as_fn_append ()
5933 {
5934 eval $1=\$$1\$2
5935 }
5936 fi # as_fn_append
5937
5938 # as_fn_arith ARG...
5939 # ------------------
5940 # Perform arithmetic evaluation on the ARGs, and store the result in the
5941 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5942 # must be portable across $(()) and expr.
5943 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5944 eval 'as_fn_arith ()
5945 {
5946 as_val=$(( $* ))
5947 }'
5948 else
5949 as_fn_arith ()
5950 {
5951 as_val=`expr "$@" || test $? -eq 1`
5952 }
5953 fi # as_fn_arith
5954
5955
5956 if expr a : '\(a\)' >/dev/null 2>&1 &&
5957 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5958 as_expr=expr
5959 else
5960 as_expr=false
5961 fi
5962
5963 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5964 as_basename=basename
5965 else
5966 as_basename=false
5967 fi
5968
5969 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5970 as_dirname=dirname
5971 else
5972 as_dirname=false
5973 fi
5974
5975 as_me=`$as_basename -- "$0" ||
5976 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5977 X"$0" : 'X\(//\)$' \| \
5978 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5979 $as_echo X/"$0" |
5980 sed '/^.*\/\([^/][^/]*\)\/*$/{
5981 s//\1/
5982 q
5983 }
5984 /^X\/\(\/\/\)$/{
5985 s//\1/
5986 q
5987 }
5988 /^X\/\(\/\).*/{
5989 s//\1/
5990 q
5991 }
5992 s/.*/./; q'`
5993
5994 # Avoid depending upon Character Ranges.
5995 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5996 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5997 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5998 as_cr_digits='0123456789'
5999 as_cr_alnum=$as_cr_Letters$as_cr_digits
6000
6001 ECHO_C= ECHO_N= ECHO_T=
6002 case `echo -n x` in #(((((
6003 -n*)
6004 case `echo 'xy\c'` in
6005 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6006 xy) ECHO_C='\c';;
6007 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6008 ECHO_T=' ';;
6009 esac;;
6010 *)
6011 ECHO_N='-n';;
6012 esac
6013
6014 rm -f conf$$ conf$$.exe conf$$.file
6015 if test -d conf$$.dir; then
6016 rm -f conf$$.dir/conf$$.file
6017 else
6018 rm -f conf$$.dir
6019 mkdir conf$$.dir 2>/dev/null
6020 fi
6021 if (echo >conf$$.file) 2>/dev/null; then
6022 if ln -s conf$$.file conf$$ 2>/dev/null; then
6023 as_ln_s='ln -s'
6024 # ... but there are two gotchas:
6025 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6026 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6027 # In both cases, we have to default to `cp -pR'.
6028 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6029 as_ln_s='cp -pR'
6030 elif ln conf$$.file conf$$ 2>/dev/null; then
6031 as_ln_s=ln
6032 else
6033 as_ln_s='cp -pR'
6034 fi
6035 else
6036 as_ln_s='cp -pR'
6037 fi
6038 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6039 rmdir conf$$.dir 2>/dev/null
6040
6041
6042 # as_fn_mkdir_p
6043 # -------------
6044 # Create "$as_dir" as a directory, including parents if necessary.
6045 as_fn_mkdir_p ()
6046 {
6047
6048 case $as_dir in #(
6049 -*) as_dir=./$as_dir;;
6050 esac
6051 test -d "$as_dir" || eval $as_mkdir_p || {
6052 as_dirs=
6053 while :; do
6054 case $as_dir in #(
6055 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6056 *) as_qdir=$as_dir;;
6057 esac
6058 as_dirs="'$as_qdir' $as_dirs"
6059 as_dir=`$as_dirname -- "$as_dir" ||
6060 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6061 X"$as_dir" : 'X\(//\)[^/]' \| \
6062 X"$as_dir" : 'X\(//\)$' \| \
6063 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6064 $as_echo X"$as_dir" |
6065 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6066 s//\1/
6067 q
6068 }
6069 /^X\(\/\/\)[^/].*/{
6070 s//\1/
6071 q
6072 }
6073 /^X\(\/\/\)$/{
6074 s//\1/
6075 q
6076 }
6077 /^X\(\/\).*/{
6078 s//\1/
6079 q
6080 }
6081 s/.*/./; q'`
6082 test -d "$as_dir" && break
6083 done
6084 test -z "$as_dirs" || eval "mkdir $as_dirs"
6085 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6086
6087
6088 } # as_fn_mkdir_p
6089 if mkdir -p . 2>/dev/null; then
6090 as_mkdir_p='mkdir -p "$as_dir"'
6091 else
6092 test -d ./-p && rmdir ./-p
6093 as_mkdir_p=false
6094 fi
6095
6096
6097 # as_fn_executable_p FILE
6098 # -----------------------
6099 # Test if FILE is an executable regular file.
6100 as_fn_executable_p ()
6101 {
6102 test -f "$1" && test -x "$1"
6103 } # as_fn_executable_p
6104 as_test_x='test -x'
6105 as_executable_p=as_fn_executable_p
6106
6107 # Sed expression to map a string onto a valid CPP name.
6108 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6109
6110 # Sed expression to map a string onto a valid variable name.
6111 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6112
6113
6114 exec 6>&1
6115 ## ----------------------------------- ##
6116 ## Main body of $CONFIG_STATUS script. ##
6117 ## ----------------------------------- ##
6118 _ASEOF
6119 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6120
6121 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6122 # Save the log message, to keep $0 and so on meaningful, and to
6123 # report actual input values of CONFIG_FILES etc. instead of their
6124 # values after options handling.
6125 ac_log="
6126 This file was extended by Open Yahtzee $as_me 1.9.3, which was
6127 generated by GNU Autoconf 2.69. Invocation command line was
6128
6129 CONFIG_FILES = $CONFIG_FILES
6130 CONFIG_HEADERS = $CONFIG_HEADERS
6131 CONFIG_LINKS = $CONFIG_LINKS
6132 CONFIG_COMMANDS = $CONFIG_COMMANDS
6133 $ $0 $@
6134
6135 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6136 "
6137
6138 _ACEOF
6139
6140 case $ac_config_files in *"
6141 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6142 esac
6143
6144 case $ac_config_headers in *"
6145 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6146 esac
6147
6148
6149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6150 # Files that config.status was made for.
6151 config_files="$ac_config_files"
6152 config_headers="$ac_config_headers"
6153 config_commands="$ac_config_commands"
6154
6155 _ACEOF
6156
6157 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6158 ac_cs_usage="\
6159 \`$as_me' instantiates files and other configuration actions
6160 from templates according to the current configuration. Unless the files
6161 and actions are specified as TAGs, all are instantiated by default.
6162
6163 Usage: $0 [OPTION]... [TAG]...
6164
6165 -h, --help print this help, then exit
6166 -V, --version print version number and configuration settings, then exit
6167 --config print configuration, then exit
6168 -q, --quiet, --silent
6169 do not print progress messages
6170 -d, --debug don't remove temporary files
6171 --recheck update $as_me by reconfiguring in the same conditions
6172 --file=FILE[:TEMPLATE]
6173 instantiate the configuration file FILE
6174 --header=FILE[:TEMPLATE]
6175 instantiate the configuration header FILE
6176
6177 Configuration files:
6178 $config_files
6179
6180 Configuration headers:
6181 $config_headers
6182
6183 Configuration commands:
6184 $config_commands
6185
6186 Report bugs to <[email protected]>."
6187
6188 _ACEOF
6189 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6190 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6191 ac_cs_version="\\
6192 Open Yahtzee config.status 1.9.3
6193 configured by $0, generated by GNU Autoconf 2.69,
6194 with options \\"\$ac_cs_config\\"
6195
6196 Copyright (C) 2012 Free Software Foundation, Inc.
6197 This config.status script is free software; the Free Software Foundation
6198 gives unlimited permission to copy, distribute and modify it."
6199
6200 ac_pwd='$ac_pwd'
6201 srcdir='$srcdir'
6202 INSTALL='$INSTALL'
6203 MKDIR_P='$MKDIR_P'
6204 AWK='$AWK'
6205 test -n "\$AWK" || AWK=awk
6206 _ACEOF
6207
6208 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6209 # The default lists apply if the user does not specify any file.
6210 ac_need_defaults=:
6211 while test $# != 0
6212 do
6213 case $1 in
6214 --*=?*)
6215 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6216 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6217 ac_shift=:
6218 ;;
6219 --*=)
6220 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6221 ac_optarg=
6222 ac_shift=:
6223 ;;
6224 *)
6225 ac_option=$1
6226 ac_optarg=$2
6227 ac_shift=shift
6228 ;;
6229 esac
6230
6231 case $ac_option in
6232 # Handling of the options.
6233 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6234 ac_cs_recheck=: ;;
6235 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6236 $as_echo "$ac_cs_version"; exit ;;
6237 --config | --confi | --conf | --con | --co | --c )
6238 $as_echo "$ac_cs_config"; exit ;;
6239 --debug | --debu | --deb | --de | --d | -d )
6240 debug=: ;;
6241 --file | --fil | --fi | --f )
6242 $ac_shift
6243 case $ac_optarg in
6244 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6245 '') as_fn_error $? "missing file argument" ;;
6246 esac
6247 as_fn_append CONFIG_FILES " '$ac_optarg'"
6248 ac_need_defaults=false;;
6249 --header | --heade | --head | --hea )
6250 $ac_shift
6251 case $ac_optarg in
6252 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6253 esac
6254 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6255 ac_need_defaults=false;;
6256 --he | --h)
6257 # Conflict between --help and --header
6258 as_fn_error $? "ambiguous option: \`$1'
6259 Try \`$0 --help' for more information.";;
6260 --help | --hel | -h )
6261 $as_echo "$ac_cs_usage"; exit ;;
6262 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6263 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6264 ac_cs_silent=: ;;
6265
6266 # This is an error.
6267 -*) as_fn_error $? "unrecognized option: \`$1'
6268 Try \`$0 --help' for more information." ;;
6269
6270 *) as_fn_append ac_config_targets " $1"
6271 ac_need_defaults=false ;;
6272
6273 esac
6274 shift
6275 done
6276
6277 ac_configure_extra_args=
6278
6279 if $ac_cs_silent; then
6280 exec 6>/dev/null
6281 ac_configure_extra_args="$ac_configure_extra_args --silent"
6282 fi
6283
6284 _ACEOF
6285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6286 if \$ac_cs_recheck; then
6287 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6288 shift
6289 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6290 CONFIG_SHELL='$SHELL'
6291 export CONFIG_SHELL
6292 exec "\$@"
6293 fi
6294
6295 _ACEOF
6296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6297 exec 5>>config.log
6298 {
6299 echo
6300 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6301 ## Running $as_me. ##
6302 _ASBOX
6303 $as_echo "$ac_log"
6304 } >&5
6305
6306 _ACEOF
6307 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6308 #
6309 # INIT-COMMANDS
6310 #
6311 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6312
6313 _ACEOF
6314
6315 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6316
6317 # Handling of arguments.
6318 for ac_config_target in $ac_config_targets
6319 do
6320 case $ac_config_target in
6321 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6322 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6323 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6324 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
6325 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
6326
6327 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6328 esac
6329 done
6330
6331
6332 # If the user did not use the arguments to specify the items to instantiate,
6333 # then the envvar interface is used. Set only those that are not.
6334 # We use the long form for the default assignment because of an extremely
6335 # bizarre bug on SunOS 4.1.3.
6336 if $ac_need_defaults; then
6337 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6338 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6339 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6340 fi
6341
6342 # Have a temporary directory for convenience. Make it in the build tree
6343 # simply because there is no reason against having it here, and in addition,
6344 # creating and moving files from /tmp can sometimes cause problems.
6345 # Hook for its removal unless debugging.
6346 # Note that there is a small window in which the directory will not be cleaned:
6347 # after its creation but before its name has been assigned to `$tmp'.
6348 $debug ||
6349 {
6350 tmp= ac_tmp=
6351 trap 'exit_status=$?
6352 : "${ac_tmp:=$tmp}"
6353 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6354 ' 0
6355 trap 'as_fn_exit 1' 1 2 13 15
6356 }
6357 # Create a (secure) tmp directory for tmp files.
6358
6359 {
6360 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6361 test -d "$tmp"
6362 } ||
6363 {
6364 tmp=./conf$$-$RANDOM
6365 (umask 077 && mkdir "$tmp")
6366 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6367 ac_tmp=$tmp
6368
6369 # Set up the scripts for CONFIG_FILES section.
6370 # No need to generate them if there are no CONFIG_FILES.
6371 # This happens for instance with `./config.status config.h'.
6372 if test -n "$CONFIG_FILES"; then
6373
6374
6375 ac_cr=`echo X | tr X '\015'`
6376 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6377 # But we know of no other shell where ac_cr would be empty at this
6378 # point, so we can use a bashism as a fallback.
6379 if test "x$ac_cr" = x; then
6380 eval ac_cr=\$\'\\r\'
6381 fi
6382 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6383 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6384 ac_cs_awk_cr='\\r'
6385 else
6386 ac_cs_awk_cr=$ac_cr
6387 fi
6388
6389 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6390 _ACEOF
6391
6392
6393 {
6394 echo "cat >conf$$subs.awk <<_ACEOF" &&
6395 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6396 echo "_ACEOF"
6397 } >conf$$subs.sh ||
6398 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6399 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6400 ac_delim='%!_!# '
6401 for ac_last_try in false false false false false :; do
6402 . ./conf$$subs.sh ||
6403 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6404
6405 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6406 if test $ac_delim_n = $ac_delim_num; then
6407 break
6408 elif $ac_last_try; then
6409 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6410 else
6411 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6412 fi
6413 done
6414 rm -f conf$$subs.sh
6415
6416 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6417 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6418 _ACEOF
6419 sed -n '
6420 h
6421 s/^/S["/; s/!.*/"]=/
6422 p
6423 g
6424 s/^[^!]*!//
6425 :repl
6426 t repl
6427 s/'"$ac_delim"'$//
6428 t delim
6429 :nl
6430 h
6431 s/\(.\{148\}\)..*/\1/
6432 t more1
6433 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6434 p
6435 n
6436 b repl
6437 :more1
6438 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6439 p
6440 g
6441 s/.\{148\}//
6442 t nl
6443 :delim
6444 h
6445 s/\(.\{148\}\)..*/\1/
6446 t more2
6447 s/["\\]/\\&/g; s/^/"/; s/$/"/
6448 p
6449 b
6450 :more2
6451 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6452 p
6453 g
6454 s/.\{148\}//
6455 t delim
6456 ' <conf$$subs.awk | sed '
6457 /^[^""]/{
6458 N
6459 s/\n//
6460 }
6461 ' >>$CONFIG_STATUS || ac_write_fail=1
6462 rm -f conf$$subs.awk
6463 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6464 _ACAWK
6465 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6466 for (key in S) S_is_set[key] = 1
6467 FS = ""
6468
6469 }
6470 {
6471 line = $ 0
6472 nfields = split(line, field, "@")
6473 substed = 0
6474 len = length(field[1])
6475 for (i = 2; i < nfields; i++) {
6476 key = field[i]
6477 keylen = length(key)
6478 if (S_is_set[key]) {
6479 value = S[key]
6480 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6481 len += length(value) + length(field[++i])
6482 substed = 1
6483 } else
6484 len += 1 + keylen
6485 }
6486
6487 print line
6488 }
6489
6490 _ACAWK
6491 _ACEOF
6492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6493 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6494 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6495 else
6496 cat
6497 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6498 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6499 _ACEOF
6500
6501 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6502 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6503 # trailing colons and then remove the whole line if VPATH becomes empty
6504 # (actually we leave an empty line to preserve line numbers).
6505 if test "x$srcdir" = x.; then
6506 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6507 h
6508 s///
6509 s/^/:/
6510 s/[ ]*$/:/
6511 s/:\$(srcdir):/:/g
6512 s/:\${srcdir}:/:/g
6513 s/:@srcdir@:/:/g
6514 s/^:*//
6515 s/:*$//
6516 x
6517 s/\(=[ ]*\).*/\1/
6518 G
6519 s/\n//
6520 s/^[^=]*=[ ]*$//
6521 }'
6522 fi
6523
6524 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6525 fi # test -n "$CONFIG_FILES"
6526
6527 # Set up the scripts for CONFIG_HEADERS section.
6528 # No need to generate them if there are no CONFIG_HEADERS.
6529 # This happens for instance with `./config.status Makefile'.
6530 if test -n "$CONFIG_HEADERS"; then
6531 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6532 BEGIN {
6533 _ACEOF
6534
6535 # Transform confdefs.h into an awk script `defines.awk', embedded as
6536 # here-document in config.status, that substitutes the proper values into
6537 # config.h.in to produce config.h.
6538
6539 # Create a delimiter string that does not exist in confdefs.h, to ease
6540 # handling of long lines.
6541 ac_delim='%!_!# '
6542 for ac_last_try in false false :; do
6543 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6544 if test -z "$ac_tt"; then
6545 break
6546 elif $ac_last_try; then
6547 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6548 else
6549 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6550 fi
6551 done
6552
6553 # For the awk script, D is an array of macro values keyed by name,
6554 # likewise P contains macro parameters if any. Preserve backslash
6555 # newline sequences.
6556
6557 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6558 sed -n '
6559 s/.\{148\}/&'"$ac_delim"'/g
6560 t rset
6561 :rset
6562 s/^[ ]*#[ ]*define[ ][ ]*/ /
6563 t def
6564 d
6565 :def
6566 s/\\$//
6567 t bsnl
6568 s/["\\]/\\&/g
6569 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6570 D["\1"]=" \3"/p
6571 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6572 d
6573 :bsnl
6574 s/["\\]/\\&/g
6575 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6576 D["\1"]=" \3\\\\\\n"\\/p
6577 t cont
6578 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6579 t cont
6580 d
6581 :cont
6582 n
6583 s/.\{148\}/&'"$ac_delim"'/g
6584 t clear
6585 :clear
6586 s/\\$//
6587 t bsnlc
6588 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6589 d
6590 :bsnlc
6591 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6592 b cont
6593 ' <confdefs.h | sed '
6594 s/'"$ac_delim"'/"\\\
6595 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6596
6597 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6598 for (key in D) D_is_set[key] = 1
6599 FS = ""
6600 }
6601 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6602 line = \$ 0
6603 split(line, arg, " ")
6604 if (arg[1] == "#") {
6605 defundef = arg[2]
6606 mac1 = arg[3]
6607 } else {
6608 defundef = substr(arg[1], 2)
6609 mac1 = arg[2]
6610 }
6611 split(mac1, mac2, "(") #)
6612 macro = mac2[1]
6613 prefix = substr(line, 1, index(line, defundef) - 1)
6614 if (D_is_set[macro]) {
6615 # Preserve the white space surrounding the "#".
6616 print prefix "define", macro P[macro] D[macro]
6617 next
6618 } else {
6619 # Replace #undef with comments. This is necessary, for example,
6620 # in the case of _POSIX_SOURCE, which is predefined and required
6621 # on some systems where configure will not decide to define it.
6622 if (defundef == "undef") {
6623 print "/*", prefix defundef, macro, "*/"
6624 next
6625 }
6626 }
6627 }
6628 { print }
6629 _ACAWK
6630 _ACEOF
6631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6632 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6633 fi # test -n "$CONFIG_HEADERS"
6634
6635
6636 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6637 shift
6638 for ac_tag
6639 do
6640 case $ac_tag in
6641 :[FHLC]) ac_mode=$ac_tag; continue;;
6642 esac
6643 case $ac_mode$ac_tag in
6644 :[FHL]*:*);;
6645 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6646 :[FH]-) ac_tag=-:-;;
6647 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6648 esac
6649 ac_save_IFS=$IFS
6650 IFS=:
6651 set x $ac_tag
6652 IFS=$ac_save_IFS
6653 shift
6654 ac_file=$1
6655 shift
6656
6657 case $ac_mode in
6658 :L) ac_source=$1;;
6659 :[FH])
6660 ac_file_inputs=
6661 for ac_f
6662 do
6663 case $ac_f in
6664 -) ac_f="$ac_tmp/stdin";;
6665 *) # Look for the file first in the build tree, then in the source tree
6666 # (if the path is not absolute). The absolute path cannot be DOS-style,
6667 # because $ac_f cannot contain `:'.
6668 test -f "$ac_f" ||
6669 case $ac_f in
6670 [\\/$]*) false;;
6671 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6672 esac ||
6673 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6674 esac
6675 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6676 as_fn_append ac_file_inputs " '$ac_f'"
6677 done
6678
6679 # Let's still pretend it is `configure' which instantiates (i.e., don't
6680 # use $as_me), people would be surprised to read:
6681 # /* config.h. Generated by config.status. */
6682 configure_input='Generated from '`
6683 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6684 `' by configure.'
6685 if test x"$ac_file" != x-; then
6686 configure_input="$ac_file. $configure_input"
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6688 $as_echo "$as_me: creating $ac_file" >&6;}
6689 fi
6690 # Neutralize special characters interpreted by sed in replacement strings.
6691 case $configure_input in #(
6692 *\&* | *\|* | *\\* )
6693 ac_sed_conf_input=`$as_echo "$configure_input" |
6694 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6695 *) ac_sed_conf_input=$configure_input;;
6696 esac
6697
6698 case $ac_tag in
6699 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6700 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6701 esac
6702 ;;
6703 esac
6704
6705 ac_dir=`$as_dirname -- "$ac_file" ||
6706 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6707 X"$ac_file" : 'X\(//\)[^/]' \| \
6708 X"$ac_file" : 'X\(//\)$' \| \
6709 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6710 $as_echo X"$ac_file" |
6711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6712 s//\1/
6713 q
6714 }
6715 /^X\(\/\/\)[^/].*/{
6716 s//\1/
6717 q
6718 }
6719 /^X\(\/\/\)$/{
6720 s//\1/
6721 q
6722 }
6723 /^X\(\/\).*/{
6724 s//\1/
6725 q
6726 }
6727 s/.*/./; q'`
6728 as_dir="$ac_dir"; as_fn_mkdir_p
6729 ac_builddir=.
6730
6731 case "$ac_dir" in
6732 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6733 *)
6734 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6735 # A ".." for each directory in $ac_dir_suffix.
6736 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6737 case $ac_top_builddir_sub in
6738 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6739 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6740 esac ;;
6741 esac
6742 ac_abs_top_builddir=$ac_pwd
6743 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6744 # for backward compatibility:
6745 ac_top_builddir=$ac_top_build_prefix
6746
6747 case $srcdir in
6748 .) # We are building in place.
6749 ac_srcdir=.
6750 ac_top_srcdir=$ac_top_builddir_sub
6751 ac_abs_top_srcdir=$ac_pwd ;;
6752 [\\/]* | ?:[\\/]* ) # Absolute name.
6753 ac_srcdir=$srcdir$ac_dir_suffix;
6754 ac_top_srcdir=$srcdir
6755 ac_abs_top_srcdir=$srcdir ;;
6756 *) # Relative name.
6757 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6758 ac_top_srcdir=$ac_top_build_prefix$srcdir
6759 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6760 esac
6761 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6762
6763
6764 case $ac_mode in
6765 :F)
6766 #
6767 # CONFIG_FILE
6768 #
6769
6770 case $INSTALL in
6771 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6772 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6773 esac
6774 ac_MKDIR_P=$MKDIR_P
6775 case $MKDIR_P in
6776 [\\/$]* | ?:[\\/]* ) ;;
6777 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6778 esac
6779 _ACEOF
6780
6781 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6782 # If the template does not know about datarootdir, expand it.
6783 # FIXME: This hack should be removed a few years after 2.60.
6784 ac_datarootdir_hack=; ac_datarootdir_seen=
6785 ac_sed_dataroot='
6786 /datarootdir/ {
6787 p
6788 q
6789 }
6790 /@datadir@/p
6791 /@docdir@/p
6792 /@infodir@/p
6793 /@localedir@/p
6794 /@mandir@/p'
6795 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6796 *datarootdir*) ac_datarootdir_seen=yes;;
6797 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6799 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6800 _ACEOF
6801 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6802 ac_datarootdir_hack='
6803 s&@datadir@&$datadir&g
6804 s&@docdir@&$docdir&g
6805 s&@infodir@&$infodir&g
6806 s&@localedir@&$localedir&g
6807 s&@mandir@&$mandir&g
6808 s&\\\${datarootdir}&$datarootdir&g' ;;
6809 esac
6810 _ACEOF
6811
6812 # Neutralize VPATH when `$srcdir' = `.'.
6813 # Shell code in configure.ac might set extrasub.
6814 # FIXME: do we really want to maintain this feature?
6815 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6816 ac_sed_extra="$ac_vpsub
6817 $extrasub
6818 _ACEOF
6819 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6820 :t
6821 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6822 s|@configure_input@|$ac_sed_conf_input|;t t
6823 s&@top_builddir@&$ac_top_builddir_sub&;t t
6824 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6825 s&@srcdir@&$ac_srcdir&;t t
6826 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6827 s&@top_srcdir@&$ac_top_srcdir&;t t
6828 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6829 s&@builddir@&$ac_builddir&;t t
6830 s&@abs_builddir@&$ac_abs_builddir&;t t
6831 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6832 s&@INSTALL@&$ac_INSTALL&;t t
6833 s&@MKDIR_P@&$ac_MKDIR_P&;t t
6834 $ac_datarootdir_hack
6835 "
6836 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6837 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6838
6839 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6840 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6841 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6842 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6844 which seems to be undefined. Please make sure it is defined" >&5
6845 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6846 which seems to be undefined. Please make sure it is defined" >&2;}
6847
6848 rm -f "$ac_tmp/stdin"
6849 case $ac_file in
6850 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6851 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6852 esac \
6853 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6854 ;;
6855 :H)
6856 #
6857 # CONFIG_HEADER
6858 #
6859 if test x"$ac_file" != x-; then
6860 {
6861 $as_echo "/* $configure_input */" \
6862 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6863 } >"$ac_tmp/config.h" \
6864 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6865 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6867 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6868 else
6869 rm -f "$ac_file"
6870 mv "$ac_tmp/config.h" "$ac_file" \
6871 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6872 fi
6873 else
6874 $as_echo "/* $configure_input */" \
6875 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6876 || as_fn_error $? "could not create -" "$LINENO" 5
6877 fi
6878 # Compute "$ac_file"'s index in $config_headers.
6879 _am_arg="$ac_file"
6880 _am_stamp_count=1
6881 for _am_header in $config_headers :; do
6882 case $_am_header in
6883 $_am_arg | $_am_arg:* )
6884 break ;;
6885 * )
6886 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6887 esac
6888 done
6889 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
6890 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6891 X"$_am_arg" : 'X\(//\)[^/]' \| \
6892 X"$_am_arg" : 'X\(//\)$' \| \
6893 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
6894 $as_echo X"$_am_arg" |
6895 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6896 s//\1/
6897 q
6898 }
6899 /^X\(\/\/\)[^/].*/{
6900 s//\1/
6901 q
6902 }
6903 /^X\(\/\/\)$/{
6904 s//\1/
6905 q
6906 }
6907 /^X\(\/\).*/{
6908 s//\1/
6909 q
6910 }
6911 s/.*/./; q'`/stamp-h$_am_stamp_count
6912 ;;
6913
6914 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6915 $as_echo "$as_me: executing $ac_file commands" >&6;}
6916 ;;
6917 esac
6918
6919
6920 case $ac_file$ac_mode in
6921 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
6922 # Older Autoconf quotes --file arguments for eval, but not when files
6923 # are listed without --file. Let's play safe and only enable the eval
6924 # if we detect the quoting.
6925 case $CONFIG_FILES in
6926 *\'*) eval set x "$CONFIG_FILES" ;;
6927 *) set x $CONFIG_FILES ;;
6928 esac
6929 shift
6930 for mf
6931 do
6932 # Strip MF so we end up with the name of the file.
6933 mf=`echo "$mf" | sed -e 's/:.*$//'`
6934 # Check whether this is an Automake generated Makefile or not.
6935 # We used to match only the files named 'Makefile.in', but
6936 # some people rename them; so instead we look at the file content.
6937 # Grep'ing the first line is not enough: some people post-process
6938 # each Makefile.in and add a new line on top of each file to say so.
6939 # Grep'ing the whole file is not good either: AIX grep has a line
6940 # limit of 2048, but all sed's we know have understand at least 4000.
6941 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
6942 dirpart=`$as_dirname -- "$mf" ||
6943 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6944 X"$mf" : 'X\(//\)[^/]' \| \
6945 X"$mf" : 'X\(//\)$' \| \
6946 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
6947 $as_echo X"$mf" |
6948 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6949 s//\1/
6950 q
6951 }
6952 /^X\(\/\/\)[^/].*/{
6953 s//\1/
6954 q
6955 }
6956 /^X\(\/\/\)$/{
6957 s//\1/
6958 q
6959 }
6960 /^X\(\/\).*/{
6961 s//\1/
6962 q
6963 }
6964 s/.*/./; q'`
6965 else
6966 continue
6967 fi
6968 # Extract the definition of DEPDIR, am__include, and am__quote
6969 # from the Makefile without running 'make'.
6970 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6971 test -z "$DEPDIR" && continue
6972 am__include=`sed -n 's/^am__include = //p' < "$mf"`
6973 test -z "$am__include" && continue
6974 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6975 # Find all dependency output files, they are included files with
6976 # $(DEPDIR) in their names. We invoke sed twice because it is the
6977 # simplest approach to changing $(DEPDIR) to its actual value in the
6978 # expansion.
6979 for file in `sed -n "
6980 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6981 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
6982 # Make sure the directory exists.
6983 test -f "$dirpart/$file" && continue
6984 fdir=`$as_dirname -- "$file" ||
6985 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6986 X"$file" : 'X\(//\)[^/]' \| \
6987 X"$file" : 'X\(//\)$' \| \
6988 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
6989 $as_echo X"$file" |
6990 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6991 s//\1/
6992 q
6993 }
6994 /^X\(\/\/\)[^/].*/{
6995 s//\1/
6996 q
6997 }
6998 /^X\(\/\/\)$/{
6999 s//\1/
7000 q
7001 }
7002 /^X\(\/\).*/{
7003 s//\1/
7004 q
7005 }
7006 s/.*/./; q'`
7007 as_dir=$dirpart/$fdir; as_fn_mkdir_p
7008 # echo "creating $dirpart/$file"
7009 echo '# dummy' > "$dirpart/$file"
7010 done
7011 done
7012 }
7013 ;;
7014
7015 esac
7016 done # for ac_tag
7017
7018
7019 as_fn_exit 0
7020 _ACEOF
7021 ac_clean_files=$ac_clean_files_save
7022
7023 test $ac_write_fail = 0 ||
7024 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7025
7026
7027 # configure is writing to config.log, and then calls config.status.
7028 # config.status does its own redirection, appending to config.log.
7029 # Unfortunately, on DOS this fails, as config.log is still kept open
7030 # by configure, so config.status won't be able to write to it; its
7031 # output is simply discarded. So we exec the FD to /dev/null,
7032 # effectively closing config.log, so it can be properly (re)opened and
7033 # appended to by config.status. When coming back to configure, we
7034 # need to make the FD available again.
7035 if test "$no_create" != yes; then
7036 ac_cs_success=:
7037 ac_config_status_args=
7038 test "$silent" = yes &&
7039 ac_config_status_args="$ac_config_status_args --quiet"
7040 exec 5>/dev/null
7041 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7042 exec 5>>config.log
7043 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7044 # would make configure fail if this is the last instruction.
7045 $ac_cs_success || as_fn_exit 1
7046 fi
7047 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7049 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7050 fi
7051