Debian Codegraph @

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