Debian Codegraph @

recorder/configure

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