Debian Codegraph @

libs/xpdf/configure

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