Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for Linuxinfo 4.2.3.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19 then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else case e in #(
27 e) case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" "" $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # Find who we are. Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92 IFS=$as_save_IFS
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as 'sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed 'exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137 fi
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
142 then :
143 emulate sh
144 NULLCMD=:
145 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
146 # is contrary to our usage. Disable this feature.
147 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 setopt NO_GLOB_SUBST
149 else case e in #(
150 e) case \`(set -o) 2>/dev/null\` in #(
151 *posix*) :
152 set -o posix ;; #(
153 *) :
154 ;;
155 esac ;;
156 esac
157 fi
158 "
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else case e in #(
174 e) exitcode=1; echo positional parameters were not saved. ;;
175 esac
176 fi
177 test x\$exitcode = x0 || exit 1
178 blah=\$(echo \$(echo blah))
179 test x\"\$blah\" = xblah || exit 1
180 test -x / || exit 1"
181 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
182 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
183 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
184 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null
187 then :
188 as_have_required=yes
189 else case e in #(
190 e) as_have_required=no ;;
191 esac
192 fi
193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
194 then :
195
196 else case e in #(
197 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
198 as_found=false
199 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
200 do
201 IFS=$as_save_IFS
202 case $as_dir in #(((
203 '') as_dir=./ ;;
204 */) ;;
205 *) as_dir=$as_dir/ ;;
206 esac
207 as_found=:
208 case $as_dir in #(
209 /*)
210 for as_base in sh bash ksh sh5; do
211 # Try only shells that exist, to save several forks.
212 as_shell=$as_dir$as_base
213 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
214 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
215 then :
216 CONFIG_SHELL=$as_shell as_have_required=yes
217 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
218 then :
219 break 2
220 fi
221 fi
222 done;;
223 esac
224 as_found=false
225 done
226 IFS=$as_save_IFS
227 if $as_found
228 then :
229
230 else case e in #(
231 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
233 then :
234 CONFIG_SHELL=$SHELL as_have_required=yes
235 fi ;;
236 esac
237 fi
238
239
240 if test "x$CONFIG_SHELL" != x
241 then :
242 export CONFIG_SHELL
243 # We cannot yet assume a decent shell, so we have to provide a
244 # neutralization value for shells without unset; and this also
245 # works around shells that cannot unset nonexistent variables.
246 # Preserve -v and -x to the replacement shell.
247 BASH_ENV=/dev/null
248 ENV=/dev/null
249 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
250 case $- in # ((((
251 *v*x* | *x*v* ) as_opts=-vx ;;
252 *v* ) as_opts=-v ;;
253 *x* ) as_opts=-x ;;
254 * ) as_opts= ;;
255 esac
256 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
257 # Admittedly, this is quite paranoid, since all the known shells bail
258 # out after a failed 'exec'.
259 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
260 exit 255
261 fi
262
263 if test x$as_have_required = xno
264 then :
265 printf "%s\n" "$0: This script requires a shell more modern than all"
266 printf "%s\n" "$0: the shells that I found on your system."
267 if test ${ZSH_VERSION+y} ; then
268 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
269 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
270 else
271 printf "%s\n" "$0: Please tell [email protected] about your system,
272 $0: including any error possibly output before this
273 $0: message. Then install a modern shell, or manually run
274 $0: the script under such a shell if you do have one."
275 fi
276 exit 1
277 fi ;;
278 esac
279 fi
280 fi
281 SHELL=${CONFIG_SHELL-/bin/sh}
282 export SHELL
283 # Unset more variables known to interfere with behavior of common tools.
284 CLICOLOR_FORCE= GREP_OPTIONS=
285 unset CLICOLOR_FORCE GREP_OPTIONS
286
287 ## --------------------- ##
288 ## M4sh Shell Functions. ##
289 ## --------------------- ##
290 # as_fn_unset VAR
291 # ---------------
292 # Portably unset VAR.
293 as_fn_unset ()
294 {
295 { eval $1=; unset $1;}
296 }
297 as_unset=as_fn_unset
298
299
300 # as_fn_set_status STATUS
301 # -----------------------
302 # Set $? to STATUS, without forking.
303 as_fn_set_status ()
304 {
305 return $1
306 } # as_fn_set_status
307
308 # as_fn_exit STATUS
309 # -----------------
310 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
311 as_fn_exit ()
312 {
313 set +e
314 as_fn_set_status $1
315 exit $1
316 } # as_fn_exit
317
318 # as_fn_mkdir_p
319 # -------------
320 # Create "$as_dir" as a directory, including parents if necessary.
321 as_fn_mkdir_p ()
322 {
323
324 case $as_dir in #(
325 -*) as_dir=./$as_dir;;
326 esac
327 test -d "$as_dir" || eval $as_mkdir_p || {
328 as_dirs=
329 while :; do
330 case $as_dir in #(
331 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
332 *) as_qdir=$as_dir;;
333 esac
334 as_dirs="'$as_qdir' $as_dirs"
335 as_dir=`$as_dirname -- "$as_dir" ||
336 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
337 X"$as_dir" : 'X\(//\)[^/]' \| \
338 X"$as_dir" : 'X\(//\)$' \| \
339 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
340 printf "%s\n" X"$as_dir" |
341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
342 s//\1/
343 q
344 }
345 /^X\(\/\/\)[^/].*/{
346 s//\1/
347 q
348 }
349 /^X\(\/\/\)$/{
350 s//\1/
351 q
352 }
353 /^X\(\/\).*/{
354 s//\1/
355 q
356 }
357 s/.*/./; q'`
358 test -d "$as_dir" && break
359 done
360 test -z "$as_dirs" || eval "mkdir $as_dirs"
361 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
362
363
364 } # as_fn_mkdir_p
365
366 # as_fn_executable_p FILE
367 # -----------------------
368 # Test if FILE is an executable regular file.
369 as_fn_executable_p ()
370 {
371 test -f "$1" && test -x "$1"
372 } # as_fn_executable_p
373 # as_fn_append VAR VALUE
374 # ----------------------
375 # Append the text in VALUE to the end of the definition contained in VAR. Take
376 # advantage of any shell optimizations that allow amortized linear growth over
377 # repeated appends, instead of the typical quadratic growth present in naive
378 # implementations.
379 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
380 then :
381 eval 'as_fn_append ()
382 {
383 eval $1+=\$2
384 }'
385 else case e in #(
386 e) as_fn_append ()
387 {
388 eval $1=\$$1\$2
389 } ;;
390 esac
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
399 then :
400 eval 'as_fn_arith ()
401 {
402 as_val=$(( $* ))
403 }'
404 else case e in #(
405 e) as_fn_arith ()
406 {
407 as_val=`expr "$@" || test $? -eq 1`
408 } ;;
409 esac
410 fi # as_fn_arith
411
412
413 # as_fn_error STATUS ERROR [LINENO LOG_FD]
414 # ----------------------------------------
415 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
416 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
417 # script with STATUS, using 1 if that was 0.
418 as_fn_error ()
419 {
420 as_status=$1; test $as_status -eq 0 && as_status=1
421 if test "$4"; then
422 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
424 fi
425 printf "%s\n" "$as_me: error: $2" >&2
426 as_fn_exit $as_status
427 } # as_fn_error
428
429 if expr a : '\(a\)' >/dev/null 2>&1 &&
430 test "X`expr 00001 : '.*\(...\)'`" = X001; then
431 as_expr=expr
432 else
433 as_expr=false
434 fi
435
436 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
437 as_basename=basename
438 else
439 as_basename=false
440 fi
441
442 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
443 as_dirname=dirname
444 else
445 as_dirname=false
446 fi
447
448 as_me=`$as_basename -- "$0" ||
449 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
450 X"$0" : 'X\(//\)$' \| \
451 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
452 printf "%s\n" X/"$0" |
453 sed '/^.*\/\([^/][^/]*\)\/*$/{
454 s//\1/
455 q
456 }
457 /^X\/\(\/\/\)$/{
458 s//\1/
459 q
460 }
461 /^X\/\(\/\).*/{
462 s//\1/
463 q
464 }
465 s/.*/./; q'`
466
467 # Avoid depending upon Character Ranges.
468 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
469 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
470 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
471 as_cr_digits='0123456789'
472 as_cr_alnum=$as_cr_Letters$as_cr_digits
473
474
475 as_lineno_1=$LINENO as_lineno_1a=$LINENO
476 as_lineno_2=$LINENO as_lineno_2a=$LINENO
477 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
478 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
479 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
480 sed -n '
481 p
482 /[$]LINENO/=
483 ' <$as_myself |
484 sed '
485 t clear
486 :clear
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512
513 # Determine whether it's possible to make 'echo' print without a newline.
514 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
515 # for compatibility with existing Makefiles.
516 ECHO_C= ECHO_N= ECHO_T=
517 case `echo -n x` in #(((((
518 -n*)
519 case `echo 'xy\c'` in
520 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
521 xy) ECHO_C='\c';;
522 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
523 ECHO_T=' ';;
524 esac;;
525 *)
526 ECHO_N='-n';;
527 esac
528
529 # For backward compatibility with old third-party macros, we provide
530 # the shell variables $as_echo and $as_echo_n. New code should use
531 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
532 as_echo='printf %s\n'
533 as_echo_n='printf %s'
534
535 rm -f conf$$ conf$$.exe conf$$.file
536 if test -d conf$$.dir; then
537 rm -f conf$$.dir/conf$$.file
538 else
539 rm -f conf$$.dir
540 mkdir conf$$.dir 2>/dev/null
541 fi
542 if (echo >conf$$.file) 2>/dev/null; then
543 if ln -s conf$$.file conf$$ 2>/dev/null; then
544 as_ln_s='ln -s'
545 # ... but there are two gotchas:
546 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
547 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
548 # In both cases, we have to default to 'cp -pR'.
549 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
550 as_ln_s='cp -pR'
551 elif ln conf$$.file conf$$ 2>/dev/null; then
552 as_ln_s=ln
553 else
554 as_ln_s='cp -pR'
555 fi
556 else
557 as_ln_s='cp -pR'
558 fi
559 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
560 rmdir conf$$.dir 2>/dev/null
561
562 if mkdir -p . 2>/dev/null; then
563 as_mkdir_p='mkdir -p "$as_dir"'
564 else
565 test -d ./-p && rmdir ./-p
566 as_mkdir_p=false
567 fi
568
569 as_test_x='test -x'
570 as_executable_p=as_fn_executable_p
571
572 # Sed expression to map a string onto a valid CPP name.
573 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
574 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
575
576 # Sed expression to map a string onto a valid variable name.
577 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
578 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
579
580
581 test -n "$DJDIR" || exec 7<&0 </dev/null
582 exec 6>&1
583
584 # Name of the host.
585 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
586 # so uname gets run too.
587 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
588
589 #
590 # Initializations.
591 #
592 ac_default_prefix=/usr/local
593 ac_clean_files=
594 ac_config_libobj_dir=.
595 LIBOBJS=
596 cross_compiling=no
597 subdirs=
598 MFLAGS=
599 MAKEFLAGS=
600
601 # Identity of this package.
602 PACKAGE_NAME='Linuxinfo'
603 PACKAGE_TARNAME='linuxinfo'
604 PACKAGE_VERSION='4.2.3'
605 PACKAGE_STRING='Linuxinfo 4.2.3'
606 PACKAGE_BUGREPORT=''
607 PACKAGE_URL=''
608
609 ac_unique_file="linuxinfo.c"
610 # Factoring default headers for most tests.
611 ac_includes_default="\
612 #include <stddef.h>
613 #ifdef HAVE_STDIO_H
614 # include <stdio.h>
615 #endif
616 #ifdef HAVE_STDLIB_H
617 # include <stdlib.h>
618 #endif
619 #ifdef HAVE_STRING_H
620 # include <string.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_STRINGS_H
629 # include <strings.h>
630 #endif
631 #ifdef HAVE_SYS_TYPES_H
632 # include <sys/types.h>
633 #endif
634 #ifdef HAVE_SYS_STAT_H
635 # include <sys/stat.h>
636 #endif
637 #ifdef HAVE_UNISTD_H
638 # include <unistd.h>
639 #endif"
640
641 ac_header_c_list=
642 gt_needs=
643 ac_subst_vars='am__EXEEXT_FALSE
644 am__EXEEXT_TRUE
645 LTLIBOBJS
646 LIBOBJS
647 pcre_libdir
648 pcre_lib
649 pcre_inc
650 POSUB
651 LTLIBINTL
652 LIBINTL
653 INTLLIBS
654 LTLIBICONV
655 LIBICONV
656 INTL_MACOSX_LIBS
657 CPP
658 host_os
659 host_vendor
660 host_cpu
661 host
662 build_os
663 build_vendor
664 build_cpu
665 build
666 XGETTEXT_EXTRA_OPTIONS
667 MSGMERGE
668 XGETTEXT_015
669 XGETTEXT
670 GMSGFMT_015
671 MSGFMT_015
672 GMSGFMT
673 MSGFMT
674 GETTEXT_MACRO_VERSION
675 SED
676 EGREP
677 GREP
678 PKG_CONFIG
679 USE_PO4A
680 PO4A
681 USE_NLS
682 LN_S
683 am__fastdepCC_FALSE
684 am__fastdepCC_TRUE
685 CCDEPMODE
686 am__nodep
687 AMDEPBACKSLASH
688 AMDEP_FALSE
689 AMDEP_TRUE
690 am__include
691 DEPDIR
692 OBJEXT
693 EXEEXT
694 ac_ct_CC
695 CPPFLAGS
696 LDFLAGS
697 CFLAGS
698 CC
699 am__xargs_n
700 am__rm_f_notfound
701 AM_BACKSLASH
702 AM_DEFAULT_VERBOSITY
703 AM_DEFAULT_V
704 AM_V
705 CSCOPE
706 ETAGS
707 CTAGS
708 am__untar
709 am__tar
710 AMTAR
711 am__leading_dot
712 SET_MAKE
713 AWK
714 mkdir_p
715 MKDIR_P
716 INSTALL_STRIP_PROGRAM
717 STRIP
718 install_sh
719 MAKEINFO
720 AUTOHEADER
721 AUTOMAKE
722 AUTOCONF
723 ACLOCAL
724 VERSION
725 PACKAGE
726 CYGPATH_W
727 am__isrc
728 INSTALL_DATA
729 INSTALL_SCRIPT
730 INSTALL_PROGRAM
731 target_alias
732 host_alias
733 build_alias
734 LIBS
735 ECHO_T
736 ECHO_N
737 ECHO_C
738 DEFS
739 mandir
740 localedir
741 libdir
742 psdir
743 pdfdir
744 dvidir
745 htmldir
746 infodir
747 docdir
748 oldincludedir
749 includedir
750 runstatedir
751 localstatedir
752 sharedstatedir
753 sysconfdir
754 datadir
755 datarootdir
756 libexecdir
757 sbindir
758 bindir
759 program_transform_name
760 prefix
761 exec_prefix
762 PACKAGE_URL
763 PACKAGE_BUGREPORT
764 PACKAGE_STRING
765 PACKAGE_VERSION
766 PACKAGE_TARNAME
767 PACKAGE_NAME
768 PATH_SEPARATOR
769 SHELL
770 am__quote'
771 ac_subst_files=''
772 ac_user_opts='
773 enable_option_checking
774 enable_silent_rules
775 enable_dependency_tracking
776 enable_nls
777 with_pcre
778 with_gnu_ld
779 enable_rpath
780 with_libiconv_prefix
781 with_libintl_prefix
782 '
783 ac_precious_vars='build_alias
784 host_alias
785 target_alias
786 CC
787 CFLAGS
788 LDFLAGS
789 LIBS
790 CPPFLAGS
791 CPP'
792
793
794 # Initialize some variables set by options.
795 ac_init_help=
796 ac_init_version=false
797 ac_unrecognized_opts=
798 ac_unrecognized_sep=
799 # The variables have the same names as the options, with
800 # dashes changed to underlines.
801 cache_file=/dev/null
802 exec_prefix=NONE
803 no_create=
804 no_recursion=
805 prefix=NONE
806 program_prefix=NONE
807 program_suffix=NONE
808 program_transform_name=s,x,x,
809 silent=
810 site=
811 srcdir=
812 verbose=
813 x_includes=NONE
814 x_libraries=NONE
815
816 # Installation directory options.
817 # These are left unexpanded so users can "make install exec_prefix=/foo"
818 # and all the variables that are supposed to be based on exec_prefix
819 # by default will actually change.
820 # Use braces instead of parens because sh, perl, etc. also accept them.
821 # (The list follows the same order as the GNU Coding Standards.)
822 bindir='${exec_prefix}/bin'
823 sbindir='${exec_prefix}/sbin'
824 libexecdir='${exec_prefix}/libexec'
825 datarootdir='${prefix}/share'
826 datadir='${datarootdir}'
827 sysconfdir='${prefix}/etc'
828 sharedstatedir='${prefix}/com'
829 localstatedir='${prefix}/var'
830 runstatedir='${localstatedir}/run'
831 includedir='${prefix}/include'
832 oldincludedir='/usr/include'
833 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
834 infodir='${datarootdir}/info'
835 htmldir='${docdir}'
836 dvidir='${docdir}'
837 pdfdir='${docdir}'
838 psdir='${docdir}'
839 libdir='${exec_prefix}/lib'
840 localedir='${datarootdir}/locale'
841 mandir='${datarootdir}/man'
842
843 ac_prev=
844 ac_dashdash=
845 for ac_option
846 do
847 # If the previous option needs an argument, assign it.
848 if test -n "$ac_prev"; then
849 eval $ac_prev=\$ac_option
850 ac_prev=
851 continue
852 fi
853
854 case $ac_option in
855 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
856 *=) ac_optarg= ;;
857 *) ac_optarg=yes ;;
858 esac
859
860 case $ac_dashdash$ac_option in
861 --)
862 ac_dashdash=yes ;;
863
864 -bindir | --bindir | --bindi | --bind | --bin | --bi)
865 ac_prev=bindir ;;
866 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
867 bindir=$ac_optarg ;;
868
869 -build | --build | --buil | --bui | --bu)
870 ac_prev=build_alias ;;
871 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
872 build_alias=$ac_optarg ;;
873
874 -cache-file | --cache-file | --cache-fil | --cache-fi \
875 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
876 ac_prev=cache_file ;;
877 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
878 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
879 cache_file=$ac_optarg ;;
880
881 --config-cache | -C)
882 cache_file=config.cache ;;
883
884 -datadir | --datadir | --datadi | --datad)
885 ac_prev=datadir ;;
886 -datadir=* | --datadir=* | --datadi=* | --datad=*)
887 datadir=$ac_optarg ;;
888
889 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
890 | --dataroo | --dataro | --datar)
891 ac_prev=datarootdir ;;
892 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
893 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
894 datarootdir=$ac_optarg ;;
895
896 -disable-* | --disable-*)
897 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
898 # Reject names that are not valid shell variable names.
899 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
900 as_fn_error $? "invalid feature name: '$ac_useropt'"
901 ac_useropt_orig=$ac_useropt
902 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
903 case $ac_user_opts in
904 *"
905 "enable_$ac_useropt"
906 "*) ;;
907 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
908 ac_unrecognized_sep=', ';;
909 esac
910 eval enable_$ac_useropt=no ;;
911
912 -docdir | --docdir | --docdi | --doc | --do)
913 ac_prev=docdir ;;
914 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
915 docdir=$ac_optarg ;;
916
917 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
918 ac_prev=dvidir ;;
919 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
920 dvidir=$ac_optarg ;;
921
922 -enable-* | --enable-*)
923 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
924 # Reject names that are not valid shell variable names.
925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
926 as_fn_error $? "invalid feature name: '$ac_useropt'"
927 ac_useropt_orig=$ac_useropt
928 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
929 case $ac_user_opts in
930 *"
931 "enable_$ac_useropt"
932 "*) ;;
933 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
934 ac_unrecognized_sep=', ';;
935 esac
936 eval enable_$ac_useropt=\$ac_optarg ;;
937
938 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
939 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
940 | --exec | --exe | --ex)
941 ac_prev=exec_prefix ;;
942 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
943 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
944 | --exec=* | --exe=* | --ex=*)
945 exec_prefix=$ac_optarg ;;
946
947 -gas | --gas | --ga | --g)
948 # Obsolete; use --with-gas.
949 with_gas=yes ;;
950
951 -help | --help | --hel | --he | -h)
952 ac_init_help=long ;;
953 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
954 ac_init_help=recursive ;;
955 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
956 ac_init_help=short ;;
957
958 -host | --host | --hos | --ho)
959 ac_prev=host_alias ;;
960 -host=* | --host=* | --hos=* | --ho=*)
961 host_alias=$ac_optarg ;;
962
963 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
964 ac_prev=htmldir ;;
965 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
966 | --ht=*)
967 htmldir=$ac_optarg ;;
968
969 -includedir | --includedir | --includedi | --included | --include \
970 | --includ | --inclu | --incl | --inc)
971 ac_prev=includedir ;;
972 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
973 | --includ=* | --inclu=* | --incl=* | --inc=*)
974 includedir=$ac_optarg ;;
975
976 -infodir | --infodir | --infodi | --infod | --info | --inf)
977 ac_prev=infodir ;;
978 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
979 infodir=$ac_optarg ;;
980
981 -libdir | --libdir | --libdi | --libd)
982 ac_prev=libdir ;;
983 -libdir=* | --libdir=* | --libdi=* | --libd=*)
984 libdir=$ac_optarg ;;
985
986 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
987 | --libexe | --libex | --libe)
988 ac_prev=libexecdir ;;
989 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
990 | --libexe=* | --libex=* | --libe=*)
991 libexecdir=$ac_optarg ;;
992
993 -localedir | --localedir | --localedi | --localed | --locale)
994 ac_prev=localedir ;;
995 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
996 localedir=$ac_optarg ;;
997
998 -localstatedir | --localstatedir | --localstatedi | --localstated \
999 | --localstate | --localstat | --localsta | --localst | --locals)
1000 ac_prev=localstatedir ;;
1001 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1002 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1003 localstatedir=$ac_optarg ;;
1004
1005 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1006 ac_prev=mandir ;;
1007 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1008 mandir=$ac_optarg ;;
1009
1010 -nfp | --nfp | --nf)
1011 # Obsolete; use --without-fp.
1012 with_fp=no ;;
1013
1014 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1015 | --no-cr | --no-c | -n)
1016 no_create=yes ;;
1017
1018 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1019 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1020 no_recursion=yes ;;
1021
1022 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1023 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1024 | --oldin | --oldi | --old | --ol | --o)
1025 ac_prev=oldincludedir ;;
1026 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1027 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1028 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1029 oldincludedir=$ac_optarg ;;
1030
1031 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1032 ac_prev=prefix ;;
1033 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1034 prefix=$ac_optarg ;;
1035
1036 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1037 | --program-pre | --program-pr | --program-p)
1038 ac_prev=program_prefix ;;
1039 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1040 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1041 program_prefix=$ac_optarg ;;
1042
1043 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1044 | --program-suf | --program-su | --program-s)
1045 ac_prev=program_suffix ;;
1046 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1047 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1048 program_suffix=$ac_optarg ;;
1049
1050 -program-transform-name | --program-transform-name \
1051 | --program-transform-nam | --program-transform-na \
1052 | --program-transform-n | --program-transform- \
1053 | --program-transform | --program-transfor \
1054 | --program-transfo | --program-transf \
1055 | --program-trans | --program-tran \
1056 | --progr-tra | --program-tr | --program-t)
1057 ac_prev=program_transform_name ;;
1058 -program-transform-name=* | --program-transform-name=* \
1059 | --program-transform-nam=* | --program-transform-na=* \
1060 | --program-transform-n=* | --program-transform-=* \
1061 | --program-transform=* | --program-transfor=* \
1062 | --program-transfo=* | --program-transf=* \
1063 | --program-trans=* | --program-tran=* \
1064 | --progr-tra=* | --program-tr=* | --program-t=*)
1065 program_transform_name=$ac_optarg ;;
1066
1067 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1068 ac_prev=pdfdir ;;
1069 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1070 pdfdir=$ac_optarg ;;
1071
1072 -psdir | --psdir | --psdi | --psd | --ps)
1073 ac_prev=psdir ;;
1074 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1075 psdir=$ac_optarg ;;
1076
1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078 | -silent | --silent | --silen | --sile | --sil)
1079 silent=yes ;;
1080
1081 -runstatedir | --runstatedir | --runstatedi | --runstated \
1082 | --runstate | --runstat | --runsta | --runst | --runs \
1083 | --run | --ru | --r)
1084 ac_prev=runstatedir ;;
1085 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1086 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1087 | --run=* | --ru=* | --r=*)
1088 runstatedir=$ac_optarg ;;
1089
1090 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1091 ac_prev=sbindir ;;
1092 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1093 | --sbi=* | --sb=*)
1094 sbindir=$ac_optarg ;;
1095
1096 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1097 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1098 | --sharedst | --shareds | --shared | --share | --shar \
1099 | --sha | --sh)
1100 ac_prev=sharedstatedir ;;
1101 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1102 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1103 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1104 | --sha=* | --sh=*)
1105 sharedstatedir=$ac_optarg ;;
1106
1107 -site | --site | --sit)
1108 ac_prev=site ;;
1109 -site=* | --site=* | --sit=*)
1110 site=$ac_optarg ;;
1111
1112 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1113 ac_prev=srcdir ;;
1114 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1115 srcdir=$ac_optarg ;;
1116
1117 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1118 | --syscon | --sysco | --sysc | --sys | --sy)
1119 ac_prev=sysconfdir ;;
1120 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1121 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1122 sysconfdir=$ac_optarg ;;
1123
1124 -target | --target | --targe | --targ | --tar | --ta | --t)
1125 ac_prev=target_alias ;;
1126 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1127 target_alias=$ac_optarg ;;
1128
1129 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1130 verbose=yes ;;
1131
1132 -version | --version | --versio | --versi | --vers | -V)
1133 ac_init_version=: ;;
1134
1135 -with-* | --with-*)
1136 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139 as_fn_error $? "invalid package name: '$ac_useropt'"
1140 ac_useropt_orig=$ac_useropt
1141 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 case $ac_user_opts in
1143 *"
1144 "with_$ac_useropt"
1145 "*) ;;
1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1147 ac_unrecognized_sep=', ';;
1148 esac
1149 eval with_$ac_useropt=\$ac_optarg ;;
1150
1151 -without-* | --without-*)
1152 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1153 # Reject names that are not valid shell variable names.
1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155 as_fn_error $? "invalid package name: '$ac_useropt'"
1156 ac_useropt_orig=$ac_useropt
1157 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1158 case $ac_user_opts in
1159 *"
1160 "with_$ac_useropt"
1161 "*) ;;
1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1163 ac_unrecognized_sep=', ';;
1164 esac
1165 eval with_$ac_useropt=no ;;
1166
1167 --x)
1168 # Obsolete; use --with-x.
1169 with_x=yes ;;
1170
1171 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1172 | --x-incl | --x-inc | --x-in | --x-i)
1173 ac_prev=x_includes ;;
1174 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1175 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1176 x_includes=$ac_optarg ;;
1177
1178 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1179 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1180 ac_prev=x_libraries ;;
1181 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1182 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1183 x_libraries=$ac_optarg ;;
1184
1185 -*) as_fn_error $? "unrecognized option: '$ac_option'
1186 Try '$0 --help' for more information"
1187 ;;
1188
1189 *=*)
1190 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1191 # Reject names that are not valid shell variable names.
1192 case $ac_envvar in #(
1193 '' | [0-9]* | *[!_$as_cr_alnum]* )
1194 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1195 esac
1196 eval $ac_envvar=\$ac_optarg
1197 export $ac_envvar ;;
1198
1199 *)
1200 # FIXME: should be removed in autoconf 3.0.
1201 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1202 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1203 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1204 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1205 ;;
1206
1207 esac
1208 done
1209
1210 if test -n "$ac_prev"; then
1211 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1212 as_fn_error $? "missing argument to $ac_option"
1213 fi
1214
1215 if test -n "$ac_unrecognized_opts"; then
1216 case $enable_option_checking in
1217 no) ;;
1218 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1219 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1220 esac
1221 fi
1222
1223 # Check all directory arguments for consistency.
1224 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1225 datadir sysconfdir sharedstatedir localstatedir includedir \
1226 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1227 libdir localedir mandir runstatedir
1228 do
1229 eval ac_val=\$$ac_var
1230 # Remove trailing slashes.
1231 case $ac_val in
1232 */ )
1233 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1234 eval $ac_var=\$ac_val;;
1235 esac
1236 # Be sure to have absolute directory names.
1237 case $ac_val in
1238 [\\/$]* | ?:[\\/]* ) continue;;
1239 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1240 esac
1241 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1242 done
1243
1244 # There might be people who depend on the old broken behavior: '$host'
1245 # used to hold the argument of --host etc.
1246 # FIXME: To remove some day.
1247 build=$build_alias
1248 host=$host_alias
1249 target=$target_alias
1250
1251 # FIXME: To remove some day.
1252 if test "x$host_alias" != x; then
1253 if test "x$build_alias" = x; then
1254 cross_compiling=maybe
1255 elif test "x$build_alias" != "x$host_alias"; then
1256 cross_compiling=yes
1257 fi
1258 fi
1259
1260 ac_tool_prefix=
1261 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1262
1263 test "$silent" = yes && exec 6>/dev/null
1264
1265
1266 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1267 ac_ls_di=`ls -di .` &&
1268 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1269 as_fn_error $? "working directory cannot be determined"
1270 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1271 as_fn_error $? "pwd does not report name of working directory"
1272
1273
1274 # Find the source files, if location was not specified.
1275 if test -z "$srcdir"; then
1276 ac_srcdir_defaulted=yes
1277 # Try the directory containing this script, then the parent directory.
1278 ac_confdir=`$as_dirname -- "$as_myself" ||
1279 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1280 X"$as_myself" : 'X\(//\)[^/]' \| \
1281 X"$as_myself" : 'X\(//\)$' \| \
1282 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1283 printf "%s\n" X"$as_myself" |
1284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1285 s//\1/
1286 q
1287 }
1288 /^X\(\/\/\)[^/].*/{
1289 s//\1/
1290 q
1291 }
1292 /^X\(\/\/\)$/{
1293 s//\1/
1294 q
1295 }
1296 /^X\(\/\).*/{
1297 s//\1/
1298 q
1299 }
1300 s/.*/./; q'`
1301 srcdir=$ac_confdir
1302 if test ! -r "$srcdir/$ac_unique_file"; then
1303 srcdir=..
1304 fi
1305 else
1306 ac_srcdir_defaulted=no
1307 fi
1308 if test ! -r "$srcdir/$ac_unique_file"; then
1309 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1310 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1311 fi
1312 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1313 ac_abs_confdir=`(
1314 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1315 pwd)`
1316 # When building in place, set srcdir=.
1317 if test "$ac_abs_confdir" = "$ac_pwd"; then
1318 srcdir=.
1319 fi
1320 # Remove unnecessary trailing slashes from srcdir.
1321 # Double slashes in file names in object file debugging info
1322 # mess up M-x gdb in Emacs.
1323 case $srcdir in
1324 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1325 esac
1326 for ac_var in $ac_precious_vars; do
1327 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1328 eval ac_env_${ac_var}_value=\$${ac_var}
1329 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1330 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1331 done
1332
1333 #
1334 # Report the --help message.
1335 #
1336 if test "$ac_init_help" = "long"; then
1337 # Omit some internal or obsolete options to make the list less imposing.
1338 # This message is too long to be a string in the A/UX 3.1 sh.
1339 cat <<_ACEOF
1340 'configure' configures Linuxinfo 4.2.3 to adapt to many kinds of systems.
1341
1342 Usage: $0 [OPTION]... [VAR=VALUE]...
1343
1344 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1345 VAR=VALUE. See below for descriptions of some of the useful variables.
1346
1347 Defaults for the options are specified in brackets.
1348
1349 Configuration:
1350 -h, --help display this help and exit
1351 --help=short display options specific to this package
1352 --help=recursive display the short help of all the included packages
1353 -V, --version display version information and exit
1354 -q, --quiet, --silent do not print 'checking ...' messages
1355 --cache-file=FILE cache test results in FILE [disabled]
1356 -C, --config-cache alias for '--cache-file=config.cache'
1357 -n, --no-create do not create output files
1358 --srcdir=DIR find the sources in DIR [configure dir or '..']
1359
1360 Installation directories:
1361 --prefix=PREFIX install architecture-independent files in PREFIX
1362 [$ac_default_prefix]
1363 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1364 [PREFIX]
1365
1366 By default, 'make install' will install all the files in
1367 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1368 an installation prefix other than '$ac_default_prefix' using '--prefix',
1369 for instance '--prefix=\$HOME'.
1370
1371 For better control, use the options below.
1372
1373 Fine tuning of the installation directories:
1374 --bindir=DIR user executables [EPREFIX/bin]
1375 --sbindir=DIR system admin executables [EPREFIX/sbin]
1376 --libexecdir=DIR program executables [EPREFIX/libexec]
1377 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1378 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1379 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1380 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1381 --libdir=DIR object code libraries [EPREFIX/lib]
1382 --includedir=DIR C header files [PREFIX/include]
1383 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1384 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1385 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1386 --infodir=DIR info documentation [DATAROOTDIR/info]
1387 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1388 --mandir=DIR man documentation [DATAROOTDIR/man]
1389 --docdir=DIR documentation root [DATAROOTDIR/doc/linuxinfo]
1390 --htmldir=DIR html documentation [DOCDIR]
1391 --dvidir=DIR dvi documentation [DOCDIR]
1392 --pdfdir=DIR pdf documentation [DOCDIR]
1393 --psdir=DIR ps documentation [DOCDIR]
1394 _ACEOF
1395
1396 cat <<\_ACEOF
1397
1398 Program names:
1399 --program-prefix=PREFIX prepend PREFIX to installed program names
1400 --program-suffix=SUFFIX append SUFFIX to installed program names
1401 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1402
1403 System types:
1404 --build=BUILD configure for building on BUILD [guessed]
1405 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1406 _ACEOF
1407 fi
1408
1409 if test -n "$ac_init_help"; then
1410 case $ac_init_help in
1411 short | recursive ) echo "Configuration of Linuxinfo 4.2.3:";;
1412 esac
1413 cat <<\_ACEOF
1414
1415 Optional Features:
1416 --disable-option-checking ignore unrecognized --enable/--with options
1417 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1418 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1419 --enable-silent-rules less verbose build output (undo: "make V=1")
1420 --disable-silent-rules verbose build output (undo: "make V=0")
1421 --enable-dependency-tracking
1422 do not reject slow dependency extractors
1423 --disable-dependency-tracking
1424 speeds up one-time build
1425 --disable-nls do not use Native Language Support
1426 --disable-rpath do not hardcode runtime library paths
1427
1428 Optional Packages:
1429 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1430 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1431 --with-pcre[=PATH] Perl Compatible Regular Expression directory
1432 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1433 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1434 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1435 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1436 --without-libintl-prefix don't search for libintl in includedir and libdir
1437
1438 Some influential environment variables:
1439 CC C compiler command
1440 CFLAGS C compiler flags
1441 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1442 nonstandard directory <lib dir>
1443 LIBS libraries to pass to the linker, e.g. -l<library>
1444 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1445 you have headers in a nonstandard directory <include dir>
1446 CPP C preprocessor
1447
1448 Use these variables to override the choices made by 'configure' or to help
1449 it to find libraries and programs with nonstandard names/locations.
1450
1451 Report bugs to the package provider.
1452 _ACEOF
1453 ac_status=$?
1454 fi
1455
1456 if test "$ac_init_help" = "recursive"; then
1457 # If there are subdirs, report their specific --help.
1458 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1459 test -d "$ac_dir" ||
1460 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1461 continue
1462 ac_builddir=.
1463
1464 case "$ac_dir" in
1465 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466 *)
1467 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1468 # A ".." for each directory in $ac_dir_suffix.
1469 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1470 case $ac_top_builddir_sub in
1471 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1473 esac ;;
1474 esac
1475 ac_abs_top_builddir=$ac_pwd
1476 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1477 # for backward compatibility:
1478 ac_top_builddir=$ac_top_build_prefix
1479
1480 case $srcdir in
1481 .) # We are building in place.
1482 ac_srcdir=.
1483 ac_top_srcdir=$ac_top_builddir_sub
1484 ac_abs_top_srcdir=$ac_pwd ;;
1485 [\\/]* | ?:[\\/]* ) # Absolute name.
1486 ac_srcdir=$srcdir$ac_dir_suffix;
1487 ac_top_srcdir=$srcdir
1488 ac_abs_top_srcdir=$srcdir ;;
1489 *) # Relative name.
1490 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1491 ac_top_srcdir=$ac_top_build_prefix$srcdir
1492 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1493 esac
1494 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1495
1496 cd "$ac_dir" || { ac_status=$?; continue; }
1497 # Check for configure.gnu first; this name is used for a wrapper for
1498 # Metaconfig's "Configure" on case-insensitive file systems.
1499 if test -f "$ac_srcdir/configure.gnu"; then
1500 echo &&
1501 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1502 elif test -f "$ac_srcdir/configure"; then
1503 echo &&
1504 $SHELL "$ac_srcdir/configure" --help=recursive
1505 else
1506 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1507 fi || ac_status=$?
1508 cd "$ac_pwd" || { ac_status=$?; break; }
1509 done
1510 fi
1511
1512 test -n "$ac_init_help" && exit $ac_status
1513 if $ac_init_version; then
1514 cat <<\_ACEOF
1515 Linuxinfo configure 4.2.3
1516 generated by GNU Autoconf 2.72
1517
1518 Copyright (C) 2023 Free Software Foundation, Inc.
1519 This configure script is free software; the Free Software Foundation
1520 gives unlimited permission to copy, distribute and modify it.
1521 _ACEOF
1522 exit
1523 fi
1524
1525 ## ------------------------ ##
1526 ## Autoconf initialization. ##
1527 ## ------------------------ ##
1528
1529 # ac_fn_c_try_compile LINENO
1530 # --------------------------
1531 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1532 ac_fn_c_try_compile ()
1533 {
1534 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1535 rm -f conftest.$ac_objext conftest.beam
1536 if { { ac_try="$ac_compile"
1537 case "(($ac_try" in
1538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1539 *) ac_try_echo=$ac_try;;
1540 esac
1541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1542 printf "%s\n" "$ac_try_echo"; } >&5
1543 (eval "$ac_compile") 2>conftest.err
1544 ac_status=$?
1545 if test -s conftest.err; then
1546 grep -v '^ *+' conftest.err >conftest.er1
1547 cat conftest.er1 >&5
1548 mv -f conftest.er1 conftest.err
1549 fi
1550 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1551 test $ac_status = 0; } && {
1552 test -z "$ac_c_werror_flag" ||
1553 test ! -s conftest.err
1554 } && test -s conftest.$ac_objext
1555 then :
1556 ac_retval=0
1557 else case e in #(
1558 e) printf "%s\n" "$as_me: failed program was:" >&5
1559 sed 's/^/| /' conftest.$ac_ext >&5
1560
1561 ac_retval=1 ;;
1562 esac
1563 fi
1564 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1565 as_fn_set_status $ac_retval
1566
1567 } # ac_fn_c_try_compile
1568
1569 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1570 # -------------------------------------------------------
1571 # Tests whether HEADER exists and can be compiled using the include files in
1572 # INCLUDES, setting the cache variable VAR accordingly.
1573 ac_fn_c_check_header_compile ()
1574 {
1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1577 printf %s "checking for $2... " >&6; }
1578 if eval test \${$3+y}
1579 then :
1580 printf %s "(cached) " >&6
1581 else case e in #(
1582 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1583 /* end confdefs.h. */
1584 $4
1585 #include <$2>
1586 _ACEOF
1587 if ac_fn_c_try_compile "$LINENO"
1588 then :
1589 eval "$3=yes"
1590 else case e in #(
1591 e) eval "$3=no" ;;
1592 esac
1593 fi
1594 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1595 esac
1596 fi
1597 eval ac_res=\$$3
1598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1599 printf "%s\n" "$ac_res" >&6; }
1600 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1601
1602 } # ac_fn_c_check_header_compile
1603
1604 # ac_fn_c_try_run LINENO
1605 # ----------------------
1606 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1607 # executables *can* be run.
1608 ac_fn_c_try_run ()
1609 {
1610 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1611 if { { ac_try="$ac_link"
1612 case "(($ac_try" in
1613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1614 *) ac_try_echo=$ac_try;;
1615 esac
1616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617 printf "%s\n" "$ac_try_echo"; } >&5
1618 (eval "$ac_link") 2>&5
1619 ac_status=$?
1620 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1621 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1622 { { case "(($ac_try" in
1623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1624 *) ac_try_echo=$ac_try;;
1625 esac
1626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1627 printf "%s\n" "$ac_try_echo"; } >&5
1628 (eval "$ac_try") 2>&5
1629 ac_status=$?
1630 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631 test $ac_status = 0; }; }
1632 then :
1633 ac_retval=0
1634 else case e in #(
1635 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1636 printf "%s\n" "$as_me: failed program was:" >&5
1637 sed 's/^/| /' conftest.$ac_ext >&5
1638
1639 ac_retval=$ac_status ;;
1640 esac
1641 fi
1642 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1644 as_fn_set_status $ac_retval
1645
1646 } # ac_fn_c_try_run
1647
1648 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1649 # --------------------------------------------
1650 # Tries to find the compile-time value of EXPR in a program that includes
1651 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1652 # computed
1653 ac_fn_c_compute_int ()
1654 {
1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656 if test "$cross_compiling" = yes; then
1657 # Depending upon the size, compute the lo and hi bounds.
1658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1659 /* end confdefs.h. */
1660 $4
1661 int
1662 main (void)
1663 {
1664 static int test_array [1 - 2 * !(($2) >= 0)];
1665 test_array [0] = 0;
1666 return test_array [0];
1667
1668 ;
1669 return 0;
1670 }
1671 _ACEOF
1672 if ac_fn_c_try_compile "$LINENO"
1673 then :
1674 ac_lo=0 ac_mid=0
1675 while :; do
1676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1677 /* end confdefs.h. */
1678 $4
1679 int
1680 main (void)
1681 {
1682 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1683 test_array [0] = 0;
1684 return test_array [0];
1685
1686 ;
1687 return 0;
1688 }
1689 _ACEOF
1690 if ac_fn_c_try_compile "$LINENO"
1691 then :
1692 ac_hi=$ac_mid; break
1693 else case e in #(
1694 e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1695 if test $ac_lo -le $ac_mid; then
1696 ac_lo= ac_hi=
1697 break
1698 fi
1699 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ;;
1700 esac
1701 fi
1702 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1703 done
1704 else case e in #(
1705 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1706 /* end confdefs.h. */
1707 $4
1708 int
1709 main (void)
1710 {
1711 static int test_array [1 - 2 * !(($2) < 0)];
1712 test_array [0] = 0;
1713 return test_array [0];
1714
1715 ;
1716 return 0;
1717 }
1718 _ACEOF
1719 if ac_fn_c_try_compile "$LINENO"
1720 then :
1721 ac_hi=-1 ac_mid=-1
1722 while :; do
1723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1724 /* end confdefs.h. */
1725 $4
1726 int
1727 main (void)
1728 {
1729 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1730 test_array [0] = 0;
1731 return test_array [0];
1732
1733 ;
1734 return 0;
1735 }
1736 _ACEOF
1737 if ac_fn_c_try_compile "$LINENO"
1738 then :
1739 ac_lo=$ac_mid; break
1740 else case e in #(
1741 e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1742 if test $ac_mid -le $ac_hi; then
1743 ac_lo= ac_hi=
1744 break
1745 fi
1746 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;;
1747 esac
1748 fi
1749 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1750 done
1751 else case e in #(
1752 e) ac_lo= ac_hi= ;;
1753 esac
1754 fi
1755 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1756 esac
1757 fi
1758 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1759 # Binary search between lo and hi bounds.
1760 while test "x$ac_lo" != "x$ac_hi"; do
1761 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1763 /* end confdefs.h. */
1764 $4
1765 int
1766 main (void)
1767 {
1768 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1769 test_array [0] = 0;
1770 return test_array [0];
1771
1772 ;
1773 return 0;
1774 }
1775 _ACEOF
1776 if ac_fn_c_try_compile "$LINENO"
1777 then :
1778 ac_hi=$ac_mid
1779 else case e in #(
1780 e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;;
1781 esac
1782 fi
1783 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1784 done
1785 case $ac_lo in #((
1786 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1787 '') ac_retval=1 ;;
1788 esac
1789 else
1790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791 /* end confdefs.h. */
1792 $4
1793 static long int longval (void) { return $2; }
1794 static unsigned long int ulongval (void) { return $2; }
1795 #include <stdio.h>
1796 #include <stdlib.h>
1797 int
1798 main (void)
1799 {
1800
1801 FILE *f = fopen ("conftest.val", "w");
1802 if (! f)
1803 return 1;
1804 if (($2) < 0)
1805 {
1806 long int i = longval ();
1807 if (i != ($2))
1808 return 1;
1809 fprintf (f, "%ld", i);
1810 }
1811 else
1812 {
1813 unsigned long int i = ulongval ();
1814 if (i != ($2))
1815 return 1;
1816 fprintf (f, "%lu", i);
1817 }
1818 /* Do not output a trailing newline, as this causes \r\n confusion
1819 on some platforms. */
1820 return ferror (f) || fclose (f) != 0;
1821
1822 ;
1823 return 0;
1824 }
1825 _ACEOF
1826 if ac_fn_c_try_run "$LINENO"
1827 then :
1828 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1829 else case e in #(
1830 e) ac_retval=1 ;;
1831 esac
1832 fi
1833 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1834 conftest.$ac_objext conftest.beam conftest.$ac_ext
1835 rm -f conftest.val
1836
1837 fi
1838 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1839 as_fn_set_status $ac_retval
1840
1841 } # ac_fn_c_compute_int
1842
1843 # ac_fn_c_try_link LINENO
1844 # -----------------------
1845 # Try to link conftest.$ac_ext, and return whether this succeeded.
1846 ac_fn_c_try_link ()
1847 {
1848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1849 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1850 if { { ac_try="$ac_link"
1851 case "(($ac_try" in
1852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1853 *) ac_try_echo=$ac_try;;
1854 esac
1855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1856 printf "%s\n" "$ac_try_echo"; } >&5
1857 (eval "$ac_link") 2>conftest.err
1858 ac_status=$?
1859 if test -s conftest.err; then
1860 grep -v '^ *+' conftest.err >conftest.er1
1861 cat conftest.er1 >&5
1862 mv -f conftest.er1 conftest.err
1863 fi
1864 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1865 test $ac_status = 0; } && {
1866 test -z "$ac_c_werror_flag" ||
1867 test ! -s conftest.err
1868 } && test -s conftest$ac_exeext && {
1869 test "$cross_compiling" = yes ||
1870 test -x conftest$ac_exeext
1871 }
1872 then :
1873 ac_retval=0
1874 else case e in #(
1875 e) printf "%s\n" "$as_me: failed program was:" >&5
1876 sed 's/^/| /' conftest.$ac_ext >&5
1877
1878 ac_retval=1 ;;
1879 esac
1880 fi
1881 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1882 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1883 # interfere with the next link command; also delete a directory that is
1884 # left behind by Apple's compiler. We do this before executing the actions.
1885 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1886 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1887 as_fn_set_status $ac_retval
1888
1889 } # ac_fn_c_try_link
1890
1891 # ac_fn_c_check_func LINENO FUNC VAR
1892 # ----------------------------------
1893 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1894 ac_fn_c_check_func ()
1895 {
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1898 printf %s "checking for $2... " >&6; }
1899 if eval test \${$3+y}
1900 then :
1901 printf %s "(cached) " >&6
1902 else case e in #(
1903 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904 /* end confdefs.h. */
1905 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1907 #define $2 innocuous_$2
1908
1909 /* System header to define __stub macros and hopefully few prototypes,
1910 which can conflict with char $2 (void); below. */
1911
1912 #include <limits.h>
1913 #undef $2
1914
1915 /* Override any GCC internal prototype to avoid an error.
1916 Use char because int might match the return type of a GCC
1917 builtin and then its argument prototype would still apply. */
1918 #ifdef __cplusplus
1919 extern "C"
1920 #endif
1921 char $2 (void);
1922 /* The GNU C library defines this for functions which it implements
1923 to always fail with ENOSYS. Some functions are actually named
1924 something starting with __ and the normal name is an alias. */
1925 #if defined __stub_$2 || defined __stub___$2
1926 choke me
1927 #endif
1928
1929 int
1930 main (void)
1931 {
1932 return $2 ();
1933 ;
1934 return 0;
1935 }
1936 _ACEOF
1937 if ac_fn_c_try_link "$LINENO"
1938 then :
1939 eval "$3=yes"
1940 else case e in #(
1941 e) eval "$3=no" ;;
1942 esac
1943 fi
1944 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1945 conftest$ac_exeext conftest.$ac_ext ;;
1946 esac
1947 fi
1948 eval ac_res=\$$3
1949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1950 printf "%s\n" "$ac_res" >&6; }
1951 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1952
1953 } # ac_fn_c_check_func
1954
1955 # ac_fn_c_try_cpp LINENO
1956 # ----------------------
1957 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1958 ac_fn_c_try_cpp ()
1959 {
1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961 if { { ac_try="$ac_cpp conftest.$ac_ext"
1962 case "(($ac_try" in
1963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1964 *) ac_try_echo=$ac_try;;
1965 esac
1966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1967 printf "%s\n" "$ac_try_echo"; } >&5
1968 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1969 ac_status=$?
1970 if test -s conftest.err; then
1971 grep -v '^ *+' conftest.err >conftest.er1
1972 cat conftest.er1 >&5
1973 mv -f conftest.er1 conftest.err
1974 fi
1975 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1976 test $ac_status = 0; } > conftest.i && {
1977 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1978 test ! -s conftest.err
1979 }
1980 then :
1981 ac_retval=0
1982 else case e in #(
1983 e) printf "%s\n" "$as_me: failed program was:" >&5
1984 sed 's/^/| /' conftest.$ac_ext >&5
1985
1986 ac_retval=1 ;;
1987 esac
1988 fi
1989 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1990 as_fn_set_status $ac_retval
1991
1992 } # ac_fn_c_try_cpp
1993 ac_configure_args_raw=
1994 for ac_arg
1995 do
1996 case $ac_arg in
1997 *\'*)
1998 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1999 esac
2000 as_fn_append ac_configure_args_raw " '$ac_arg'"
2001 done
2002
2003 case $ac_configure_args_raw in
2004 *$as_nl*)
2005 ac_safe_unquote= ;;
2006 *)
2007 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2008 ac_unsafe_a="$ac_unsafe_z#~"
2009 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2010 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2011 esac
2012
2013 cat >config.log <<_ACEOF
2014 This file contains any messages produced by compilers while
2015 running configure, to aid debugging if configure makes a mistake.
2016
2017 It was created by Linuxinfo $as_me 4.2.3, which was
2018 generated by GNU Autoconf 2.72. Invocation command line was
2019
2020 $ $0$ac_configure_args_raw
2021
2022 _ACEOF
2023 exec 5>>config.log
2024 {
2025 cat <<_ASUNAME
2026 ## --------- ##
2027 ## Platform. ##
2028 ## --------- ##
2029
2030 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2031 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2032 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2033 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2034 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2035
2036 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2037 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2038
2039 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2040 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2041 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2042 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2043 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2044 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2045 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2046
2047 _ASUNAME
2048
2049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2050 for as_dir in $PATH
2051 do
2052 IFS=$as_save_IFS
2053 case $as_dir in #(((
2054 '') as_dir=./ ;;
2055 */) ;;
2056 *) as_dir=$as_dir/ ;;
2057 esac
2058 printf "%s\n" "PATH: $as_dir"
2059 done
2060 IFS=$as_save_IFS
2061
2062 } >&5
2063
2064 cat >&5 <<_ACEOF
2065
2066
2067 ## ----------- ##
2068 ## Core tests. ##
2069 ## ----------- ##
2070
2071 _ACEOF
2072
2073
2074 # Keep a trace of the command line.
2075 # Strip out --no-create and --no-recursion so they do not pile up.
2076 # Strip out --silent because we don't want to record it for future runs.
2077 # Also quote any args containing shell meta-characters.
2078 # Make two passes to allow for proper duplicate-argument suppression.
2079 ac_configure_args=
2080 ac_configure_args0=
2081 ac_configure_args1=
2082 ac_must_keep_next=false
2083 for ac_pass in 1 2
2084 do
2085 for ac_arg
2086 do
2087 case $ac_arg in
2088 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2090 | -silent | --silent | --silen | --sile | --sil)
2091 continue ;;
2092 *\'*)
2093 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2094 esac
2095 case $ac_pass in
2096 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2097 2)
2098 as_fn_append ac_configure_args1 " '$ac_arg'"
2099 if test $ac_must_keep_next = true; then
2100 ac_must_keep_next=false # Got value, back to normal.
2101 else
2102 case $ac_arg in
2103 *=* | --config-cache | -C | -disable-* | --disable-* \
2104 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2105 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2106 | -with-* | --with-* | -without-* | --without-* | --x)
2107 case "$ac_configure_args0 " in
2108 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2109 esac
2110 ;;
2111 -* ) ac_must_keep_next=true ;;
2112 esac
2113 fi
2114 as_fn_append ac_configure_args " '$ac_arg'"
2115 ;;
2116 esac
2117 done
2118 done
2119 { ac_configure_args0=; unset ac_configure_args0;}
2120 { ac_configure_args1=; unset ac_configure_args1;}
2121
2122 # When interrupted or exit'd, cleanup temporary files, and complete
2123 # config.log. We remove comments because anyway the quotes in there
2124 # would cause problems or look ugly.
2125 # WARNING: Use '\'' to represent an apostrophe within the trap.
2126 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2127 trap 'exit_status=$?
2128 # Sanitize IFS.
2129 IFS=" "" $as_nl"
2130 # Save into config.log some information that might help in debugging.
2131 {
2132 echo
2133
2134 printf "%s\n" "## ---------------- ##
2135 ## Cache variables. ##
2136 ## ---------------- ##"
2137 echo
2138 # The following way of writing the cache mishandles newlines in values,
2139 (
2140 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2141 eval ac_val=\$$ac_var
2142 case $ac_val in #(
2143 *${as_nl}*)
2144 case $ac_var in #(
2145 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2146 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2147 esac
2148 case $ac_var in #(
2149 _ | IFS | as_nl) ;; #(
2150 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2151 *) { eval $ac_var=; unset $ac_var;} ;;
2152 esac ;;
2153 esac
2154 done
2155 (set) 2>&1 |
2156 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2157 *${as_nl}ac_space=\ *)
2158 sed -n \
2159 "s/'\''/'\''\\\\'\'''\''/g;
2160 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2161 ;; #(
2162 *)
2163 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2164 ;;
2165 esac |
2166 sort
2167 )
2168 echo
2169
2170 printf "%s\n" "## ----------------- ##
2171 ## Output variables. ##
2172 ## ----------------- ##"
2173 echo
2174 for ac_var in $ac_subst_vars
2175 do
2176 eval ac_val=\$$ac_var
2177 case $ac_val in
2178 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2179 esac
2180 printf "%s\n" "$ac_var='\''$ac_val'\''"
2181 done | sort
2182 echo
2183
2184 if test -n "$ac_subst_files"; then
2185 printf "%s\n" "## ------------------- ##
2186 ## File substitutions. ##
2187 ## ------------------- ##"
2188 echo
2189 for ac_var in $ac_subst_files
2190 do
2191 eval ac_val=\$$ac_var
2192 case $ac_val in
2193 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2194 esac
2195 printf "%s\n" "$ac_var='\''$ac_val'\''"
2196 done | sort
2197 echo
2198 fi
2199
2200 if test -s confdefs.h; then
2201 printf "%s\n" "## ----------- ##
2202 ## confdefs.h. ##
2203 ## ----------- ##"
2204 echo
2205 cat confdefs.h
2206 echo
2207 fi
2208 test "$ac_signal" != 0 &&
2209 printf "%s\n" "$as_me: caught signal $ac_signal"
2210 printf "%s\n" "$as_me: exit $exit_status"
2211 } >&5
2212 rm -f core *.core core.conftest.* &&
2213 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2214 exit $exit_status
2215 ' 0
2216 for ac_signal in 1 2 13 15; do
2217 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2218 done
2219 ac_signal=0
2220
2221 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2222 rm -f -r conftest* confdefs.h
2223
2224 printf "%s\n" "/* confdefs.h */" > confdefs.h
2225
2226 # Predefined preprocessor variables.
2227
2228 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2229
2230 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2231
2232 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2233
2234 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2235
2236 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2237
2238 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2239
2240
2241 # Let the site file select an alternate cache file if it wants to.
2242 # Prefer an explicitly selected file to automatically selected ones.
2243 if test -n "$CONFIG_SITE"; then
2244 ac_site_files="$CONFIG_SITE"
2245 elif test "x$prefix" != xNONE; then
2246 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2247 else
2248 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2249 fi
2250
2251 for ac_site_file in $ac_site_files
2252 do
2253 case $ac_site_file in #(
2254 */*) :
2255 ;; #(
2256 *) :
2257 ac_site_file=./$ac_site_file ;;
2258 esac
2259 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2261 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2262 sed 's/^/| /' "$ac_site_file" >&5
2263 . "$ac_site_file" \
2264 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2265 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2266 as_fn_error $? "failed to load site script $ac_site_file
2267 See 'config.log' for more details" "$LINENO" 5; }
2268 fi
2269 done
2270
2271 if test -r "$cache_file"; then
2272 # Some versions of bash will fail to source /dev/null (special files
2273 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2274 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2276 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2277 case $cache_file in
2278 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2279 *) . "./$cache_file";;
2280 esac
2281 fi
2282 else
2283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2284 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2285 >$cache_file
2286 fi
2287
2288 # Test code for whether the C compiler supports C89 (global declarations)
2289 ac_c_conftest_c89_globals='
2290 /* Does the compiler advertise C89 conformance?
2291 Do not test the value of __STDC__, because some compilers set it to 0
2292 while being otherwise adequately conformant. */
2293 #if !defined __STDC__
2294 # error "Compiler does not advertise C89 conformance"
2295 #endif
2296
2297 #include <stddef.h>
2298 #include <stdarg.h>
2299 struct stat;
2300 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2301 struct buf { int x; };
2302 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2303 static char *e (char **p, int i)
2304 {
2305 return p[i];
2306 }
2307 static char *f (char * (*g) (char **, int), char **p, ...)
2308 {
2309 char *s;
2310 va_list v;
2311 va_start (v,p);
2312 s = g (p, va_arg (v,int));
2313 va_end (v);
2314 return s;
2315 }
2316
2317 /* C89 style stringification. */
2318 #define noexpand_stringify(a) #a
2319 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2320
2321 /* C89 style token pasting. Exercises some of the corner cases that
2322 e.g. old MSVC gets wrong, but not very hard. */
2323 #define noexpand_concat(a,b) a##b
2324 #define expand_concat(a,b) noexpand_concat(a,b)
2325 extern int vA;
2326 extern int vbee;
2327 #define aye A
2328 #define bee B
2329 int *pvA = &expand_concat(v,aye);
2330 int *pvbee = &noexpand_concat(v,bee);
2331
2332 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2333 function prototypes and stuff, but not \xHH hex character constants.
2334 These do not provoke an error unfortunately, instead are silently treated
2335 as an "x". The following induces an error, until -std is added to get
2336 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2337 array size at least. It is necessary to write \x00 == 0 to get something
2338 that is true only with -std. */
2339 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2340
2341 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2342 inside strings and character constants. */
2343 #define FOO(x) '\''x'\''
2344 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2345
2346 int test (int i, double x);
2347 struct s1 {int (*f) (int a);};
2348 struct s2 {int (*f) (double a);};
2349 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2350 int, int);'
2351
2352 # Test code for whether the C compiler supports C89 (body of main).
2353 ac_c_conftest_c89_main='
2354 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2355 '
2356
2357 # Test code for whether the C compiler supports C99 (global declarations)
2358 ac_c_conftest_c99_globals='
2359 /* Does the compiler advertise C99 conformance? */
2360 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2361 # error "Compiler does not advertise C99 conformance"
2362 #endif
2363
2364 // See if C++-style comments work.
2365
2366 #include <stdbool.h>
2367 extern int puts (const char *);
2368 extern int printf (const char *, ...);
2369 extern int dprintf (int, const char *, ...);
2370 extern void *malloc (size_t);
2371 extern void free (void *);
2372
2373 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2374 // dprintf is used instead of fprintf to avoid needing to declare
2375 // FILE and stderr.
2376 #define debug(...) dprintf (2, __VA_ARGS__)
2377 #define showlist(...) puts (#__VA_ARGS__)
2378 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2379 static void
2380 test_varargs_macros (void)
2381 {
2382 int x = 1234;
2383 int y = 5678;
2384 debug ("Flag");
2385 debug ("X = %d\n", x);
2386 showlist (The first, second, and third items.);
2387 report (x>y, "x is %d but y is %d", x, y);
2388 }
2389
2390 // Check long long types.
2391 #define BIG64 18446744073709551615ull
2392 #define BIG32 4294967295ul
2393 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2394 #if !BIG_OK
2395 #error "your preprocessor is broken"
2396 #endif
2397 #if BIG_OK
2398 #else
2399 #error "your preprocessor is broken"
2400 #endif
2401 static long long int bignum = -9223372036854775807LL;
2402 static unsigned long long int ubignum = BIG64;
2403
2404 struct incomplete_array
2405 {
2406 int datasize;
2407 double data[];
2408 };
2409
2410 struct named_init {
2411 int number;
2412 const wchar_t *name;
2413 double average;
2414 };
2415
2416 typedef const char *ccp;
2417
2418 static inline int
2419 test_restrict (ccp restrict text)
2420 {
2421 // Iterate through items via the restricted pointer.
2422 // Also check for declarations in for loops.
2423 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2424 continue;
2425 return 0;
2426 }
2427
2428 // Check varargs and va_copy.
2429 static bool
2430 test_varargs (const char *format, ...)
2431 {
2432 va_list args;
2433 va_start (args, format);
2434 va_list args_copy;
2435 va_copy (args_copy, args);
2436
2437 const char *str = "";
2438 int number = 0;
2439 float fnumber = 0;
2440
2441 while (*format)
2442 {
2443 switch (*format++)
2444 {
2445 case '\''s'\'': // string
2446 str = va_arg (args_copy, const char *);
2447 break;
2448 case '\''d'\'': // int
2449 number = va_arg (args_copy, int);
2450 break;
2451 case '\''f'\'': // float
2452 fnumber = va_arg (args_copy, double);
2453 break;
2454 default:
2455 break;
2456 }
2457 }
2458 va_end (args_copy);
2459 va_end (args);
2460
2461 return *str && number && fnumber;
2462 }
2463 '
2464
2465 # Test code for whether the C compiler supports C99 (body of main).
2466 ac_c_conftest_c99_main='
2467 // Check bool.
2468 _Bool success = false;
2469 success |= (argc != 0);
2470
2471 // Check restrict.
2472 if (test_restrict ("String literal") == 0)
2473 success = true;
2474 char *restrict newvar = "Another string";
2475
2476 // Check varargs.
2477 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2478 test_varargs_macros ();
2479
2480 // Check flexible array members.
2481 struct incomplete_array *ia =
2482 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2483 ia->datasize = 10;
2484 for (int i = 0; i < ia->datasize; ++i)
2485 ia->data[i] = i * 1.234;
2486 // Work around memory leak warnings.
2487 free (ia);
2488
2489 // Check named initializers.
2490 struct named_init ni = {
2491 .number = 34,
2492 .name = L"Test wide string",
2493 .average = 543.34343,
2494 };
2495
2496 ni.number = 58;
2497
2498 int dynamic_array[ni.number];
2499 dynamic_array[0] = argv[0][0];
2500 dynamic_array[ni.number - 1] = 543;
2501
2502 // work around unused variable warnings
2503 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2504 || dynamic_array[ni.number - 1] != 543);
2505 '
2506
2507 # Test code for whether the C compiler supports C11 (global declarations)
2508 ac_c_conftest_c11_globals='
2509 /* Does the compiler advertise C11 conformance? */
2510 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2511 # error "Compiler does not advertise C11 conformance"
2512 #endif
2513
2514 // Check _Alignas.
2515 char _Alignas (double) aligned_as_double;
2516 char _Alignas (0) no_special_alignment;
2517 extern char aligned_as_int;
2518 char _Alignas (0) _Alignas (int) aligned_as_int;
2519
2520 // Check _Alignof.
2521 enum
2522 {
2523 int_alignment = _Alignof (int),
2524 int_array_alignment = _Alignof (int[100]),
2525 char_alignment = _Alignof (char)
2526 };
2527 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2528
2529 // Check _Noreturn.
2530 int _Noreturn does_not_return (void) { for (;;) continue; }
2531
2532 // Check _Static_assert.
2533 struct test_static_assert
2534 {
2535 int x;
2536 _Static_assert (sizeof (int) <= sizeof (long int),
2537 "_Static_assert does not work in struct");
2538 long int y;
2539 };
2540
2541 // Check UTF-8 literals.
2542 #define u8 syntax error!
2543 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2544
2545 // Check duplicate typedefs.
2546 typedef long *long_ptr;
2547 typedef long int *long_ptr;
2548 typedef long_ptr long_ptr;
2549
2550 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2551 struct anonymous
2552 {
2553 union {
2554 struct { int i; int j; };
2555 struct { int k; long int l; } w;
2556 };
2557 int m;
2558 } v1;
2559 '
2560
2561 # Test code for whether the C compiler supports C11 (body of main).
2562 ac_c_conftest_c11_main='
2563 _Static_assert ((offsetof (struct anonymous, i)
2564 == offsetof (struct anonymous, w.k)),
2565 "Anonymous union alignment botch");
2566 v1.i = 2;
2567 v1.w.k = 5;
2568 ok |= v1.i != 5;
2569 '
2570
2571 # Test code for whether the C compiler supports C11 (complete).
2572 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2573 ${ac_c_conftest_c99_globals}
2574 ${ac_c_conftest_c11_globals}
2575
2576 int
2577 main (int argc, char **argv)
2578 {
2579 int ok = 0;
2580 ${ac_c_conftest_c89_main}
2581 ${ac_c_conftest_c99_main}
2582 ${ac_c_conftest_c11_main}
2583 return ok;
2584 }
2585 "
2586
2587 # Test code for whether the C compiler supports C99 (complete).
2588 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2589 ${ac_c_conftest_c99_globals}
2590
2591 int
2592 main (int argc, char **argv)
2593 {
2594 int ok = 0;
2595 ${ac_c_conftest_c89_main}
2596 ${ac_c_conftest_c99_main}
2597 return ok;
2598 }
2599 "
2600
2601 # Test code for whether the C compiler supports C89 (complete).
2602 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2603
2604 int
2605 main (int argc, char **argv)
2606 {
2607 int ok = 0;
2608 ${ac_c_conftest_c89_main}
2609 return ok;
2610 }
2611 "
2612
2613 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2614 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2615 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2616 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2617 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2618 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2619 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2620 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2621 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2622 gt_needs="$gt_needs "
2623
2624 # Auxiliary files required by this configure script.
2625 ac_aux_files="config.guess config.sub config.rpath compile missing install-sh"
2626
2627 # Locations in which to look for auxiliary files.
2628 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2629
2630 # Search for a directory containing all of the required auxiliary files,
2631 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2632 # If we don't find one directory that contains all the files we need,
2633 # we report the set of missing files from the *first* directory in
2634 # $ac_aux_dir_candidates and give up.
2635 ac_missing_aux_files=""
2636 ac_first_candidate=:
2637 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2639 as_found=false
2640 for as_dir in $ac_aux_dir_candidates
2641 do
2642 IFS=$as_save_IFS
2643 case $as_dir in #(((
2644 '') as_dir=./ ;;
2645 */) ;;
2646 *) as_dir=$as_dir/ ;;
2647 esac
2648 as_found=:
2649
2650 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2651 ac_aux_dir_found=yes
2652 ac_install_sh=
2653 for ac_aux in $ac_aux_files
2654 do
2655 # As a special case, if "install-sh" is required, that requirement
2656 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2657 # and $ac_install_sh is set appropriately for whichever one is found.
2658 if test x"$ac_aux" = x"install-sh"
2659 then
2660 if test -f "${as_dir}install-sh"; then
2661 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2662 ac_install_sh="${as_dir}install-sh -c"
2663 elif test -f "${as_dir}install.sh"; then
2664 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2665 ac_install_sh="${as_dir}install.sh -c"
2666 elif test -f "${as_dir}shtool"; then
2667 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2668 ac_install_sh="${as_dir}shtool install -c"
2669 else
2670 ac_aux_dir_found=no
2671 if $ac_first_candidate; then
2672 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2673 else
2674 break
2675 fi
2676 fi
2677 else
2678 if test -f "${as_dir}${ac_aux}"; then
2679 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2680 else
2681 ac_aux_dir_found=no
2682 if $ac_first_candidate; then
2683 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2684 else
2685 break
2686 fi
2687 fi
2688 fi
2689 done
2690 if test "$ac_aux_dir_found" = yes; then
2691 ac_aux_dir="$as_dir"
2692 break
2693 fi
2694 ac_first_candidate=false
2695
2696 as_found=false
2697 done
2698 IFS=$as_save_IFS
2699 if $as_found
2700 then :
2701
2702 else case e in #(
2703 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2704 esac
2705 fi
2706
2707
2708 # These three variables are undocumented and unsupported,
2709 # and are intended to be withdrawn in a future Autoconf release.
2710 # They can cause serious problems if a builder's source tree is in a directory
2711 # whose full name contains unusual characters.
2712 if test -f "${ac_aux_dir}config.guess"; then
2713 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2714 fi
2715 if test -f "${ac_aux_dir}config.sub"; then
2716 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2717 fi
2718 if test -f "$ac_aux_dir/configure"; then
2719 ac_configure="$SHELL ${ac_aux_dir}configure"
2720 fi
2721
2722 # Check that the precious variables saved in the cache have kept the same
2723 # value.
2724 ac_cache_corrupted=false
2725 for ac_var in $ac_precious_vars; do
2726 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2727 eval ac_new_set=\$ac_env_${ac_var}_set
2728 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2729 eval ac_new_val=\$ac_env_${ac_var}_value
2730 case $ac_old_set,$ac_new_set in
2731 set,)
2732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2733 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2734 ac_cache_corrupted=: ;;
2735 ,set)
2736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2737 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2738 ac_cache_corrupted=: ;;
2739 ,);;
2740 *)
2741 if test "x$ac_old_val" != "x$ac_new_val"; then
2742 # differences in whitespace do not lead to failure.
2743 ac_old_val_w=`echo x $ac_old_val`
2744 ac_new_val_w=`echo x $ac_new_val`
2745 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2747 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2748 ac_cache_corrupted=:
2749 else
2750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2751 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2752 eval $ac_var=\$ac_old_val
2753 fi
2754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2755 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2757 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2758 fi;;
2759 esac
2760 # Pass precious variables to config.status.
2761 if test "$ac_new_set" = set; then
2762 case $ac_new_val in
2763 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2764 *) ac_arg=$ac_var=$ac_new_val ;;
2765 esac
2766 case " $ac_configure_args " in
2767 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2768 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2769 esac
2770 fi
2771 done
2772 if $ac_cache_corrupted; then
2773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2774 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2776 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2777 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2778 and start over" "$LINENO" 5
2779 fi
2780 ## -------------------- ##
2781 ## Main body of script. ##
2782 ## -------------------- ##
2783
2784 ac_ext=c
2785 ac_cpp='$CPP $CPPFLAGS'
2786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2789
2790
2791
2792 am__api_version='1.17'
2793
2794
2795
2796 # Find a good install program. We prefer a C program (faster),
2797 # so one script is as good as another. But avoid the broken or
2798 # incompatible versions:
2799 # SysV /etc/install, /usr/sbin/install
2800 # SunOS /usr/etc/install
2801 # IRIX /sbin/install
2802 # AIX /bin/install
2803 # AmigaOS /C/install, which installs bootblocks on floppy discs
2804 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2805 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2806 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2807 # OS/2's system install, which has a completely different semantic
2808 # ./install, which can be erroneously created by make from ./install.sh.
2809 # Reject install programs that cannot install multiple files.
2810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2811 printf %s "checking for a BSD-compatible install... " >&6; }
2812 if test -z "$INSTALL"; then
2813 if test ${ac_cv_path_install+y}
2814 then :
2815 printf %s "(cached) " >&6
2816 else case e in #(
2817 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818 for as_dir in $PATH
2819 do
2820 IFS=$as_save_IFS
2821 case $as_dir in #(((
2822 '') as_dir=./ ;;
2823 */) ;;
2824 *) as_dir=$as_dir/ ;;
2825 esac
2826 # Account for fact that we put trailing slashes in our PATH walk.
2827 case $as_dir in #((
2828 ./ | /[cC]/* | \
2829 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2830 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2831 /usr/ucb/* ) ;;
2832 *)
2833 # OSF1 and SCO ODT 3.0 have their own names for install.
2834 # Don't use installbsd from OSF since it installs stuff as root
2835 # by default.
2836 for ac_prog in ginstall scoinst install; do
2837 for ac_exec_ext in '' $ac_executable_extensions; do
2838 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2839 if test $ac_prog = install &&
2840 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2841 # AIX install. It has an incompatible calling convention.
2842 :
2843 elif test $ac_prog = install &&
2844 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2845 # program-specific install script used by HP pwplus--don't use.
2846 :
2847 else
2848 rm -rf conftest.one conftest.two conftest.dir
2849 echo one > conftest.one
2850 echo two > conftest.two
2851 mkdir conftest.dir
2852 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2853 test -s conftest.one && test -s conftest.two &&
2854 test -s conftest.dir/conftest.one &&
2855 test -s conftest.dir/conftest.two
2856 then
2857 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2858 break 3
2859 fi
2860 fi
2861 fi
2862 done
2863 done
2864 ;;
2865 esac
2866
2867 done
2868 IFS=$as_save_IFS
2869
2870 rm -rf conftest.one conftest.two conftest.dir
2871 ;;
2872 esac
2873 fi
2874 if test ${ac_cv_path_install+y}; then
2875 INSTALL=$ac_cv_path_install
2876 else
2877 # As a last resort, use the slow shell script. Don't cache a
2878 # value for INSTALL within a source directory, because that will
2879 # break other packages using the cache if that directory is
2880 # removed, or if the value is a relative name.
2881 INSTALL=$ac_install_sh
2882 fi
2883 fi
2884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2885 printf "%s\n" "$INSTALL" >&6; }
2886
2887 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2888 # It thinks the first close brace ends the variable substitution.
2889 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2890
2891 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2892
2893 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2894
2895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
2896 printf %s "checking whether sleep supports fractional seconds... " >&6; }
2897 if test ${am_cv_sleep_fractional_seconds+y}
2898 then :
2899 printf %s "(cached) " >&6
2900 else case e in #(
2901 e) if sleep 0.001 2>/dev/null
2902 then :
2903 am_cv_sleep_fractional_seconds=yes
2904 else case e in #(
2905 e) am_cv_sleep_fractional_seconds=no ;;
2906 esac
2907 fi
2908 ;;
2909 esac
2910 fi
2911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
2912 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
2913
2914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
2915 printf %s "checking filesystem timestamp resolution... " >&6; }
2916 if test ${am_cv_filesystem_timestamp_resolution+y}
2917 then :
2918 printf %s "(cached) " >&6
2919 else case e in #(
2920 e) # Default to the worst case.
2921 am_cv_filesystem_timestamp_resolution=2
2922
2923 # Only try to go finer than 1 sec if sleep can do it.
2924 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
2925 # - 1 sec is not much of a win compared to 2 sec, and
2926 # - it takes 2 seconds to perform the test whether 1 sec works.
2927 #
2928 # Instead, just use the default 2s on platforms that have 1s resolution,
2929 # accept the extra 1s delay when using $sleep in the Automake tests, in
2930 # exchange for not incurring the 2s delay for running the test for all
2931 # packages.
2932 #
2933 am_try_resolutions=
2934 if test "$am_cv_sleep_fractional_seconds" = yes; then
2935 # Even a millisecond often causes a bunch of false positives,
2936 # so just try a hundredth of a second. The time saved between .001 and
2937 # .01 is not terribly consequential.
2938 am_try_resolutions="0.01 0.1 $am_try_resolutions"
2939 fi
2940
2941 # In order to catch current-generation FAT out, we must *modify* files
2942 # that already exist; the *creation* timestamp is finer. Use names
2943 # that make ls -t sort them differently when they have equal
2944 # timestamps than when they have distinct timestamps, keeping
2945 # in mind that ls -t prints the *newest* file first.
2946 rm -f conftest.ts?
2947 : > conftest.ts1
2948 : > conftest.ts2
2949 : > conftest.ts3
2950
2951 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
2952 # clobber the current shell's arguments. (Outer-level square brackets
2953 # are removed by m4; they're present so that m4 does not expand
2954 # <dollar><star>; be careful, easy to get confused.)
2955 if (
2956 set X `ls -t conftest.ts[12]` &&
2957 {
2958 test "$*" != "X conftest.ts1 conftest.ts2" ||
2959 test "$*" != "X conftest.ts2 conftest.ts1";
2960 }
2961 ); then :; else
2962 # If neither matched, then we have a broken ls. This can happen
2963 # if, for instance, CONFIG_SHELL is bash and it inherits a
2964 # broken ls alias from the environment. This has actually
2965 # happened. Such a system could not be considered "sane".
2966 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
2967 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2968 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2969 as_fn_error $? "ls -t produces unexpected output.
2970 Make sure there is not a broken ls alias in your environment.
2971 See 'config.log' for more details" "$LINENO" 5; }
2972 fi
2973
2974 for am_try_res in $am_try_resolutions; do
2975 # Any one fine-grained sleep might happen to cross the boundary
2976 # between two values of a coarser actual resolution, but if we do
2977 # two fine-grained sleeps in a row, at least one of them will fall
2978 # entirely within a coarse interval.
2979 echo alpha > conftest.ts1
2980 sleep $am_try_res
2981 echo beta > conftest.ts2
2982 sleep $am_try_res
2983 echo gamma > conftest.ts3
2984
2985 # We assume that 'ls -t' will make use of high-resolution
2986 # timestamps if the operating system supports them at all.
2987 if (set X `ls -t conftest.ts?` &&
2988 test "$2" = conftest.ts3 &&
2989 test "$3" = conftest.ts2 &&
2990 test "$4" = conftest.ts1); then
2991 #
2992 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
2993 # because we don't need to test make.
2994 make_ok=true
2995 if test $am_try_res != 1; then
2996 # But if we've succeeded so far with a subsecond resolution, we
2997 # have one more thing to check: make. It can happen that
2998 # everything else supports the subsecond mtimes, but make doesn't;
2999 # notably on macOS, which ships make 3.81 from 2006 (the last one
3000 # released under GPLv2). https://bugs.gnu.org/68808
3001 #
3002 # We test $MAKE if it is defined in the environment, else "make".
3003 # It might get overridden later, but our hope is that in practice
3004 # it does not matter: it is the system "make" which is (by far)
3005 # the most likely to be broken, whereas if the user overrides it,
3006 # probably they did so with a better, or at least not worse, make.
3007 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3008 #
3009 # Create a Makefile (real tab character here):
3010 rm -f conftest.mk
3011 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3012 echo ' touch conftest.ts2' >>conftest.mk
3013 #
3014 # Now, running
3015 # touch conftest.ts1; touch conftest.ts2; make
3016 # should touch ts1 because ts2 is newer. This could happen by luck,
3017 # but most often, it will fail if make's support is insufficient. So
3018 # test for several consecutive successes.
3019 #
3020 # (We reuse conftest.ts[12] because we still want to modify existing
3021 # files, not create new ones, per above.)
3022 n=0
3023 make=${MAKE-make}
3024 until test $n -eq 3; do
3025 echo one > conftest.ts1
3026 sleep $am_try_res
3027 echo two > conftest.ts2 # ts2 should now be newer than ts1
3028 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3029 make_ok=false
3030 break # out of $n loop
3031 fi
3032 n=`expr $n + 1`
3033 done
3034 fi
3035 #
3036 if $make_ok; then
3037 # Everything we know to check worked out, so call this resolution good.
3038 am_cv_filesystem_timestamp_resolution=$am_try_res
3039 break # out of $am_try_res loop
3040 fi
3041 # Otherwise, we'll go on to check the next resolution.
3042 fi
3043 done
3044 rm -f conftest.ts?
3045 # (end _am_filesystem_timestamp_resolution)
3046 ;;
3047 esac
3048 fi
3049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3050 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3051
3052 # This check should not be cached, as it may vary across builds of
3053 # different projects.
3054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3055 printf %s "checking whether build environment is sane... " >&6; }
3056 # Reject unsafe characters in $srcdir or the absolute working directory
3057 # name. Accept space and tab only in the latter.
3058 am_lf='
3059 '
3060 case `pwd` in
3061 *[\\\"\#\$\&\'\`$am_lf]*)
3062 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3063 esac
3064 case $srcdir in
3065 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3066 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3067 esac
3068
3069 # Do 'set' in a subshell so we don't clobber the current shell's
3070 # arguments. Must try -L first in case configure is actually a
3071 # symlink; some systems play weird games with the mod time of symlinks
3072 # (eg FreeBSD returns the mod time of the symlink's containing
3073 # directory).
3074 am_build_env_is_sane=no
3075 am_has_slept=no
3076 rm -f conftest.file
3077 for am_try in 1 2; do
3078 echo "timestamp, slept: $am_has_slept" > conftest.file
3079 if (
3080 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3081 if test "$*" = "X"; then
3082 # -L didn't work.
3083 set X `ls -t "$srcdir/configure" conftest.file`
3084 fi
3085 test "$2" = conftest.file
3086 ); then
3087 am_build_env_is_sane=yes
3088 break
3089 fi
3090 # Just in case.
3091 sleep "$am_cv_filesystem_timestamp_resolution"
3092 am_has_slept=yes
3093 done
3094
3095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3096 printf "%s\n" "$am_build_env_is_sane" >&6; }
3097 if test "$am_build_env_is_sane" = no; then
3098 as_fn_error $? "newly created file is older than distributed files!
3099 Check your system clock" "$LINENO" 5
3100 fi
3101
3102 # If we didn't sleep, we still need to ensure time stamps of config.status and
3103 # generated files are strictly newer.
3104 am_sleep_pid=
3105 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3106 then :
3107
3108 else case e in #(
3109 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3110 am_sleep_pid=$!
3111 ;;
3112 esac
3113 fi
3114
3115 rm -f conftest.file
3116
3117 test "$program_prefix" != NONE &&
3118 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3119 # Use a double $ so make ignores it.
3120 test "$program_suffix" != NONE &&
3121 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3122 # Double any \ or $.
3123 # By default was 's,x,x', remove it if useless.
3124 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3125 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3126
3127
3128 # Expand $ac_aux_dir to an absolute path.
3129 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3130
3131
3132 if test x"${MISSING+set}" != xset; then
3133 MISSING="\${SHELL} '$am_aux_dir/missing'"
3134 fi
3135 # Use eval to expand $SHELL
3136 if eval "$MISSING --is-lightweight"; then
3137 am_missing_run="$MISSING "
3138 else
3139 am_missing_run=
3140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3141 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3142 fi
3143
3144 if test x"${install_sh+set}" != xset; then
3145 case $am_aux_dir in
3146 *\ * | *\ *)
3147 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3148 *)
3149 install_sh="\${SHELL} $am_aux_dir/install-sh"
3150 esac
3151 fi
3152
3153 # Installed binaries are usually stripped using 'strip' when the user
3154 # run "make install-strip". However 'strip' might not be the right
3155 # tool to use in cross-compilation environments, therefore Automake
3156 # will honor the 'STRIP' environment variable to overrule this program.
3157 if test "$cross_compiling" != no; then
3158 if test -n "$ac_tool_prefix"; then
3159 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3160 set dummy ${ac_tool_prefix}strip; ac_word=$2
3161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3162 printf %s "checking for $ac_word... " >&6; }
3163 if test ${ac_cv_prog_STRIP+y}
3164 then :
3165 printf %s "(cached) " >&6
3166 else case e in #(
3167 e) if test -n "$STRIP"; then
3168 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3169 else
3170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3171 for as_dir in $PATH
3172 do
3173 IFS=$as_save_IFS
3174 case $as_dir in #(((
3175 '') as_dir=./ ;;
3176 */) ;;
3177 *) as_dir=$as_dir/ ;;
3178 esac
3179 for ac_exec_ext in '' $ac_executable_extensions; do
3180 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3181 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3182 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3183 break 2
3184 fi
3185 done
3186 done
3187 IFS=$as_save_IFS
3188
3189 fi ;;
3190 esac
3191 fi
3192 STRIP=$ac_cv_prog_STRIP
3193 if test -n "$STRIP"; then
3194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3195 printf "%s\n" "$STRIP" >&6; }
3196 else
3197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3198 printf "%s\n" "no" >&6; }
3199 fi
3200
3201
3202 fi
3203 if test -z "$ac_cv_prog_STRIP"; then
3204 ac_ct_STRIP=$STRIP
3205 # Extract the first word of "strip", so it can be a program name with args.
3206 set dummy strip; ac_word=$2
3207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3208 printf %s "checking for $ac_word... " >&6; }
3209 if test ${ac_cv_prog_ac_ct_STRIP+y}
3210 then :
3211 printf %s "(cached) " >&6
3212 else case e in #(
3213 e) if test -n "$ac_ct_STRIP"; then
3214 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3215 else
3216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217 for as_dir in $PATH
3218 do
3219 IFS=$as_save_IFS
3220 case $as_dir in #(((
3221 '') as_dir=./ ;;
3222 */) ;;
3223 *) as_dir=$as_dir/ ;;
3224 esac
3225 for ac_exec_ext in '' $ac_executable_extensions; do
3226 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3227 ac_cv_prog_ac_ct_STRIP="strip"
3228 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3229 break 2
3230 fi
3231 done
3232 done
3233 IFS=$as_save_IFS
3234
3235 fi ;;
3236 esac
3237 fi
3238 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3239 if test -n "$ac_ct_STRIP"; then
3240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3241 printf "%s\n" "$ac_ct_STRIP" >&6; }
3242 else
3243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3244 printf "%s\n" "no" >&6; }
3245 fi
3246
3247 if test "x$ac_ct_STRIP" = x; then
3248 STRIP=":"
3249 else
3250 case $cross_compiling:$ac_tool_warned in
3251 yes:)
3252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3253 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3254 ac_tool_warned=yes ;;
3255 esac
3256 STRIP=$ac_ct_STRIP
3257 fi
3258 else
3259 STRIP="$ac_cv_prog_STRIP"
3260 fi
3261
3262 fi
3263 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3264
3265
3266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3267 printf %s "checking for a race-free mkdir -p... " >&6; }
3268 if test -z "$MKDIR_P"; then
3269 if test ${ac_cv_path_mkdir+y}
3270 then :
3271 printf %s "(cached) " >&6
3272 else case e in #(
3273 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3275 do
3276 IFS=$as_save_IFS
3277 case $as_dir in #(((
3278 '') as_dir=./ ;;
3279 */) ;;
3280 *) as_dir=$as_dir/ ;;
3281 esac
3282 for ac_prog in mkdir gmkdir; do
3283 for ac_exec_ext in '' $ac_executable_extensions; do
3284 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3285 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3286 'mkdir ('*'coreutils) '* | \
3287 *'BusyBox '* | \
3288 'mkdir (fileutils) '4.1*)
3289 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3290 break 3;;
3291 esac
3292 done
3293 done
3294 done
3295 IFS=$as_save_IFS
3296 ;;
3297 esac
3298 fi
3299
3300 test -d ./--version && rmdir ./--version
3301 if test ${ac_cv_path_mkdir+y}; then
3302 MKDIR_P="$ac_cv_path_mkdir -p"
3303 else
3304 # As a last resort, use plain mkdir -p,
3305 # in the hope it doesn't have the bugs of ancient mkdir.
3306 MKDIR_P='mkdir -p'
3307 fi
3308 fi
3309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3310 printf "%s\n" "$MKDIR_P" >&6; }
3311
3312 for ac_prog in gawk mawk nawk awk
3313 do
3314 # Extract the first word of "$ac_prog", so it can be a program name with args.
3315 set dummy $ac_prog; ac_word=$2
3316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3317 printf %s "checking for $ac_word... " >&6; }
3318 if test ${ac_cv_prog_AWK+y}
3319 then :
3320 printf %s "(cached) " >&6
3321 else case e in #(
3322 e) if test -n "$AWK"; then
3323 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3324 else
3325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326 for as_dir in $PATH
3327 do
3328 IFS=$as_save_IFS
3329 case $as_dir in #(((
3330 '') as_dir=./ ;;
3331 */) ;;
3332 *) as_dir=$as_dir/ ;;
3333 esac
3334 for ac_exec_ext in '' $ac_executable_extensions; do
3335 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3336 ac_cv_prog_AWK="$ac_prog"
3337 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3338 break 2
3339 fi
3340 done
3341 done
3342 IFS=$as_save_IFS
3343
3344 fi ;;
3345 esac
3346 fi
3347 AWK=$ac_cv_prog_AWK
3348 if test -n "$AWK"; then
3349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3350 printf "%s\n" "$AWK" >&6; }
3351 else
3352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3353 printf "%s\n" "no" >&6; }
3354 fi
3355
3356
3357 test -n "$AWK" && break
3358 done
3359
3360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3361 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3362 set x ${MAKE-make}
3363 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3364 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3365 then :
3366 printf %s "(cached) " >&6
3367 else case e in #(
3368 e) cat >conftest.make <<\_ACEOF
3369 SHELL = /bin/sh
3370 all:
3371 @echo '@@@%%%=$(MAKE)=@@@%%%'
3372 _ACEOF
3373 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3374 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3375 *@@@%%%=?*=@@@%%%*)
3376 eval ac_cv_prog_make_${ac_make}_set=yes;;
3377 *)
3378 eval ac_cv_prog_make_${ac_make}_set=no;;
3379 esac
3380 rm -f conftest.make ;;
3381 esac
3382 fi
3383 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3385 printf "%s\n" "yes" >&6; }
3386 SET_MAKE=
3387 else
3388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3389 printf "%s\n" "no" >&6; }
3390 SET_MAKE="MAKE=${MAKE-make}"
3391 fi
3392
3393 rm -rf .tst 2>/dev/null
3394 mkdir .tst 2>/dev/null
3395 if test -d .tst; then
3396 am__leading_dot=.
3397 else
3398 am__leading_dot=_
3399 fi
3400 rmdir .tst 2>/dev/null
3401
3402 AM_DEFAULT_VERBOSITY=1
3403 # Check whether --enable-silent-rules was given.
3404 if test ${enable_silent_rules+y}
3405 then :
3406 enableval=$enable_silent_rules;
3407 fi
3408
3409 am_make=${MAKE-make}
3410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3411 printf %s "checking whether $am_make supports nested variables... " >&6; }
3412 if test ${am_cv_make_support_nested_variables+y}
3413 then :
3414 printf %s "(cached) " >&6
3415 else case e in #(
3416 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3417 BAR0=false
3418 BAR1=true
3419 V=1
3420 am__doit:
3421 @$(TRUE)
3422 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3423 am_cv_make_support_nested_variables=yes
3424 else
3425 am_cv_make_support_nested_variables=no
3426 fi ;;
3427 esac
3428 fi
3429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3430 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3431 AM_BACKSLASH='\'
3432
3433 am__rm_f_notfound=
3434 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3435 then :
3436
3437 else case e in #(
3438 e) am__rm_f_notfound='""' ;;
3439 esac
3440 fi
3441
3442
3443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3444 printf %s "checking xargs -n works... " >&6; }
3445 if test ${am_cv_xargs_n_works+y}
3446 then :
3447 printf %s "(cached) " >&6
3448 else case e in #(
3449 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3450 3"
3451 then :
3452 am_cv_xargs_n_works=yes
3453 else case e in #(
3454 e) am_cv_xargs_n_works=no ;;
3455 esac
3456 fi ;;
3457 esac
3458 fi
3459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3460 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3461 if test "$am_cv_xargs_n_works" = yes
3462 then :
3463 am__xargs_n='xargs -n'
3464 else case e in #(
3465 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3466 ;;
3467 esac
3468 fi
3469
3470 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3471 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3472 # is not polluted with repeated "-I."
3473 am__isrc=' -I$(srcdir)'
3474 # test to see if srcdir already configured
3475 if test -f $srcdir/config.status; then
3476 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3477 fi
3478 fi
3479
3480 # test whether we have cygpath
3481 if test -z "$CYGPATH_W"; then
3482 if (cygpath --version) >/dev/null 2>/dev/null; then
3483 CYGPATH_W='cygpath -w'
3484 else
3485 CYGPATH_W=echo
3486 fi
3487 fi
3488
3489
3490 # Define the identity of the package.
3491 PACKAGE='linuxinfo'
3492 VERSION='4.2.3'
3493
3494
3495 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3496
3497
3498 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3499
3500 # Some tools Automake needs.
3501
3502 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3503
3504
3505 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3506
3507
3508 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3509
3510
3511 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3512
3513
3514 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3515
3516 # For better backward compatibility. To be removed once Automake 1.9.x
3517 # dies out for good. For more background, see:
3518 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3519 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3520 mkdir_p='$(MKDIR_P)'
3521
3522 # We need awk for the "check" target (and possibly the TAP driver). The
3523 # system "awk" is bad on some platforms.
3524 # Always define AMTAR for backward compatibility. Yes, it's still used
3525 # in the wild :-( We should find a proper way to deprecate it ...
3526 AMTAR='$${TAR-tar}'
3527
3528
3529 # We'll loop over all known methods to create a tar archive until one works.
3530 _am_tools='gnutar pax cpio none'
3531
3532 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3533
3534
3535
3536
3537
3538 # Variables for tags utilities; see am/tags.am
3539 if test -z "$CTAGS"; then
3540 CTAGS=ctags
3541 fi
3542
3543 if test -z "$ETAGS"; then
3544 ETAGS=etags
3545 fi
3546
3547 if test -z "$CSCOPE"; then
3548 CSCOPE=cscope
3549 fi
3550
3551
3552
3553
3554
3555
3556
3557
3558 for ac_prog in gawk mawk nawk awk
3559 do
3560 # Extract the first word of "$ac_prog", so it can be a program name with args.
3561 set dummy $ac_prog; ac_word=$2
3562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3563 printf %s "checking for $ac_word... " >&6; }
3564 if test ${ac_cv_prog_AWK+y}
3565 then :
3566 printf %s "(cached) " >&6
3567 else case e in #(
3568 e) if test -n "$AWK"; then
3569 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3570 else
3571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3572 for as_dir in $PATH
3573 do
3574 IFS=$as_save_IFS
3575 case $as_dir in #(((
3576 '') as_dir=./ ;;
3577 */) ;;
3578 *) as_dir=$as_dir/ ;;
3579 esac
3580 for ac_exec_ext in '' $ac_executable_extensions; do
3581 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3582 ac_cv_prog_AWK="$ac_prog"
3583 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3584 break 2
3585 fi
3586 done
3587 done
3588 IFS=$as_save_IFS
3589
3590 fi ;;
3591 esac
3592 fi
3593 AWK=$ac_cv_prog_AWK
3594 if test -n "$AWK"; then
3595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3596 printf "%s\n" "$AWK" >&6; }
3597 else
3598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3599 printf "%s\n" "no" >&6; }
3600 fi
3601
3602
3603 test -n "$AWK" && break
3604 done
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615 ac_ext=c
3616 ac_cpp='$CPP $CPPFLAGS'
3617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3620 if test -n "$ac_tool_prefix"; then
3621 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3622 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3624 printf %s "checking for $ac_word... " >&6; }
3625 if test ${ac_cv_prog_CC+y}
3626 then :
3627 printf %s "(cached) " >&6
3628 else case e in #(
3629 e) if test -n "$CC"; then
3630 ac_cv_prog_CC="$CC" # Let the user override the test.
3631 else
3632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3633 for as_dir in $PATH
3634 do
3635 IFS=$as_save_IFS
3636 case $as_dir in #(((
3637 '') as_dir=./ ;;
3638 */) ;;
3639 *) as_dir=$as_dir/ ;;
3640 esac
3641 for ac_exec_ext in '' $ac_executable_extensions; do
3642 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3643 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3644 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3645 break 2
3646 fi
3647 done
3648 done
3649 IFS=$as_save_IFS
3650
3651 fi ;;
3652 esac
3653 fi
3654 CC=$ac_cv_prog_CC
3655 if test -n "$CC"; then
3656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3657 printf "%s\n" "$CC" >&6; }
3658 else
3659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3660 printf "%s\n" "no" >&6; }
3661 fi
3662
3663
3664 fi
3665 if test -z "$ac_cv_prog_CC"; then
3666 ac_ct_CC=$CC
3667 # Extract the first word of "gcc", so it can be a program name with args.
3668 set dummy gcc; ac_word=$2
3669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3670 printf %s "checking for $ac_word... " >&6; }
3671 if test ${ac_cv_prog_ac_ct_CC+y}
3672 then :
3673 printf %s "(cached) " >&6
3674 else case e in #(
3675 e) if test -n "$ac_ct_CC"; then
3676 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3677 else
3678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3679 for as_dir in $PATH
3680 do
3681 IFS=$as_save_IFS
3682 case $as_dir in #(((
3683 '') as_dir=./ ;;
3684 */) ;;
3685 *) as_dir=$as_dir/ ;;
3686 esac
3687 for ac_exec_ext in '' $ac_executable_extensions; do
3688 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3689 ac_cv_prog_ac_ct_CC="gcc"
3690 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3691 break 2
3692 fi
3693 done
3694 done
3695 IFS=$as_save_IFS
3696
3697 fi ;;
3698 esac
3699 fi
3700 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3701 if test -n "$ac_ct_CC"; then
3702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3703 printf "%s\n" "$ac_ct_CC" >&6; }
3704 else
3705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3706 printf "%s\n" "no" >&6; }
3707 fi
3708
3709 if test "x$ac_ct_CC" = x; then
3710 CC=""
3711 else
3712 case $cross_compiling:$ac_tool_warned in
3713 yes:)
3714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3715 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3716 ac_tool_warned=yes ;;
3717 esac
3718 CC=$ac_ct_CC
3719 fi
3720 else
3721 CC="$ac_cv_prog_CC"
3722 fi
3723
3724 if test -z "$CC"; then
3725 if test -n "$ac_tool_prefix"; then
3726 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3727 set dummy ${ac_tool_prefix}cc; ac_word=$2
3728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3729 printf %s "checking for $ac_word... " >&6; }
3730 if test ${ac_cv_prog_CC+y}
3731 then :
3732 printf %s "(cached) " >&6
3733 else case e in #(
3734 e) if test -n "$CC"; then
3735 ac_cv_prog_CC="$CC" # Let the user override the test.
3736 else
3737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3738 for as_dir in $PATH
3739 do
3740 IFS=$as_save_IFS
3741 case $as_dir in #(((
3742 '') as_dir=./ ;;
3743 */) ;;
3744 *) as_dir=$as_dir/ ;;
3745 esac
3746 for ac_exec_ext in '' $ac_executable_extensions; do
3747 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3748 ac_cv_prog_CC="${ac_tool_prefix}cc"
3749 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3750 break 2
3751 fi
3752 done
3753 done
3754 IFS=$as_save_IFS
3755
3756 fi ;;
3757 esac
3758 fi
3759 CC=$ac_cv_prog_CC
3760 if test -n "$CC"; then
3761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3762 printf "%s\n" "$CC" >&6; }
3763 else
3764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3765 printf "%s\n" "no" >&6; }
3766 fi
3767
3768
3769 fi
3770 fi
3771 if test -z "$CC"; then
3772 # Extract the first word of "cc", so it can be a program name with args.
3773 set dummy cc; ac_word=$2
3774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3775 printf %s "checking for $ac_word... " >&6; }
3776 if test ${ac_cv_prog_CC+y}
3777 then :
3778 printf %s "(cached) " >&6
3779 else case e in #(
3780 e) if test -n "$CC"; then
3781 ac_cv_prog_CC="$CC" # Let the user override the test.
3782 else
3783 ac_prog_rejected=no
3784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3785 for as_dir in $PATH
3786 do
3787 IFS=$as_save_IFS
3788 case $as_dir in #(((
3789 '') as_dir=./ ;;
3790 */) ;;
3791 *) as_dir=$as_dir/ ;;
3792 esac
3793 for ac_exec_ext in '' $ac_executable_extensions; do
3794 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3795 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3796 ac_prog_rejected=yes
3797 continue
3798 fi
3799 ac_cv_prog_CC="cc"
3800 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3801 break 2
3802 fi
3803 done
3804 done
3805 IFS=$as_save_IFS
3806
3807 if test $ac_prog_rejected = yes; then
3808 # We found a bogon in the path, so make sure we never use it.
3809 set dummy $ac_cv_prog_CC
3810 shift
3811 if test $# != 0; then
3812 # We chose a different compiler from the bogus one.
3813 # However, it has the same basename, so the bogon will be chosen
3814 # first if we set CC to just the basename; use the full file name.
3815 shift
3816 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3817 fi
3818 fi
3819 fi ;;
3820 esac
3821 fi
3822 CC=$ac_cv_prog_CC
3823 if test -n "$CC"; then
3824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3825 printf "%s\n" "$CC" >&6; }
3826 else
3827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3828 printf "%s\n" "no" >&6; }
3829 fi
3830
3831
3832 fi
3833 if test -z "$CC"; then
3834 if test -n "$ac_tool_prefix"; then
3835 for ac_prog in cl.exe
3836 do
3837 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3838 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3840 printf %s "checking for $ac_word... " >&6; }
3841 if test ${ac_cv_prog_CC+y}
3842 then :
3843 printf %s "(cached) " >&6
3844 else case e in #(
3845 e) if test -n "$CC"; then
3846 ac_cv_prog_CC="$CC" # Let the user override the test.
3847 else
3848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3849 for as_dir in $PATH
3850 do
3851 IFS=$as_save_IFS
3852 case $as_dir in #(((
3853 '') as_dir=./ ;;
3854 */) ;;
3855 *) as_dir=$as_dir/ ;;
3856 esac
3857 for ac_exec_ext in '' $ac_executable_extensions; do
3858 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3859 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3860 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3861 break 2
3862 fi
3863 done
3864 done
3865 IFS=$as_save_IFS
3866
3867 fi ;;
3868 esac
3869 fi
3870 CC=$ac_cv_prog_CC
3871 if test -n "$CC"; then
3872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3873 printf "%s\n" "$CC" >&6; }
3874 else
3875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3876 printf "%s\n" "no" >&6; }
3877 fi
3878
3879
3880 test -n "$CC" && break
3881 done
3882 fi
3883 if test -z "$CC"; then
3884 ac_ct_CC=$CC
3885 for ac_prog in cl.exe
3886 do
3887 # Extract the first word of "$ac_prog", so it can be a program name with args.
3888 set dummy $ac_prog; ac_word=$2
3889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3890 printf %s "checking for $ac_word... " >&6; }
3891 if test ${ac_cv_prog_ac_ct_CC+y}
3892 then :
3893 printf %s "(cached) " >&6
3894 else case e in #(
3895 e) if test -n "$ac_ct_CC"; then
3896 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3897 else
3898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899 for as_dir in $PATH
3900 do
3901 IFS=$as_save_IFS
3902 case $as_dir in #(((
3903 '') as_dir=./ ;;
3904 */) ;;
3905 *) as_dir=$as_dir/ ;;
3906 esac
3907 for ac_exec_ext in '' $ac_executable_extensions; do
3908 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3909 ac_cv_prog_ac_ct_CC="$ac_prog"
3910 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3911 break 2
3912 fi
3913 done
3914 done
3915 IFS=$as_save_IFS
3916
3917 fi ;;
3918 esac
3919 fi
3920 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3921 if test -n "$ac_ct_CC"; then
3922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3923 printf "%s\n" "$ac_ct_CC" >&6; }
3924 else
3925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3926 printf "%s\n" "no" >&6; }
3927 fi
3928
3929
3930 test -n "$ac_ct_CC" && break
3931 done
3932
3933 if test "x$ac_ct_CC" = x; then
3934 CC=""
3935 else
3936 case $cross_compiling:$ac_tool_warned in
3937 yes:)
3938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3939 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3940 ac_tool_warned=yes ;;
3941 esac
3942 CC=$ac_ct_CC
3943 fi
3944 fi
3945
3946 fi
3947 if test -z "$CC"; then
3948 if test -n "$ac_tool_prefix"; then
3949 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3950 set dummy ${ac_tool_prefix}clang; ac_word=$2
3951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3952 printf %s "checking for $ac_word... " >&6; }
3953 if test ${ac_cv_prog_CC+y}
3954 then :
3955 printf %s "(cached) " >&6
3956 else case e in #(
3957 e) if test -n "$CC"; then
3958 ac_cv_prog_CC="$CC" # Let the user override the test.
3959 else
3960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3961 for as_dir in $PATH
3962 do
3963 IFS=$as_save_IFS
3964 case $as_dir in #(((
3965 '') as_dir=./ ;;
3966 */) ;;
3967 *) as_dir=$as_dir/ ;;
3968 esac
3969 for ac_exec_ext in '' $ac_executable_extensions; do
3970 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3971 ac_cv_prog_CC="${ac_tool_prefix}clang"
3972 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3973 break 2
3974 fi
3975 done
3976 done
3977 IFS=$as_save_IFS
3978
3979 fi ;;
3980 esac
3981 fi
3982 CC=$ac_cv_prog_CC
3983 if test -n "$CC"; then
3984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3985 printf "%s\n" "$CC" >&6; }
3986 else
3987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3988 printf "%s\n" "no" >&6; }
3989 fi
3990
3991
3992 fi
3993 if test -z "$ac_cv_prog_CC"; then
3994 ac_ct_CC=$CC
3995 # Extract the first word of "clang", so it can be a program name with args.
3996 set dummy clang; ac_word=$2
3997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3998 printf %s "checking for $ac_word... " >&6; }
3999 if test ${ac_cv_prog_ac_ct_CC+y}
4000 then :
4001 printf %s "(cached) " >&6
4002 else case e in #(
4003 e) if test -n "$ac_ct_CC"; then
4004 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4005 else
4006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4007 for as_dir in $PATH
4008 do
4009 IFS=$as_save_IFS
4010 case $as_dir in #(((
4011 '') as_dir=./ ;;
4012 */) ;;
4013 *) as_dir=$as_dir/ ;;
4014 esac
4015 for ac_exec_ext in '' $ac_executable_extensions; do
4016 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4017 ac_cv_prog_ac_ct_CC="clang"
4018 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4019 break 2
4020 fi
4021 done
4022 done
4023 IFS=$as_save_IFS
4024
4025 fi ;;
4026 esac
4027 fi
4028 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4029 if test -n "$ac_ct_CC"; then
4030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4031 printf "%s\n" "$ac_ct_CC" >&6; }
4032 else
4033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4034 printf "%s\n" "no" >&6; }
4035 fi
4036
4037 if test "x$ac_ct_CC" = x; then
4038 CC=""
4039 else
4040 case $cross_compiling:$ac_tool_warned in
4041 yes:)
4042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4043 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4044 ac_tool_warned=yes ;;
4045 esac
4046 CC=$ac_ct_CC
4047 fi
4048 else
4049 CC="$ac_cv_prog_CC"
4050 fi
4051
4052 fi
4053
4054
4055 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4056 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4057 as_fn_error $? "no acceptable C compiler found in \$PATH
4058 See 'config.log' for more details" "$LINENO" 5; }
4059
4060 # Provide some information about the compiler.
4061 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4062 set X $ac_compile
4063 ac_compiler=$2
4064 for ac_option in --version -v -V -qversion -version; do
4065 { { ac_try="$ac_compiler $ac_option >&5"
4066 case "(($ac_try" in
4067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4068 *) ac_try_echo=$ac_try;;
4069 esac
4070 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4071 printf "%s\n" "$ac_try_echo"; } >&5
4072 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4073 ac_status=$?
4074 if test -s conftest.err; then
4075 sed '10a\
4076 ... rest of stderr output deleted ...
4077 10q' conftest.err >conftest.er1
4078 cat conftest.er1 >&5
4079 fi
4080 rm -f conftest.er1 conftest.err
4081 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4082 test $ac_status = 0; }
4083 done
4084
4085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4086 /* end confdefs.h. */
4087
4088 int
4089 main (void)
4090 {
4091
4092 ;
4093 return 0;
4094 }
4095 _ACEOF
4096 ac_clean_files_save=$ac_clean_files
4097 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4098 # Try to create an executable without -o first, disregard a.out.
4099 # It will help us diagnose broken compilers, and finding out an intuition
4100 # of exeext.
4101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4102 printf %s "checking whether the C compiler works... " >&6; }
4103 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4104
4105 # The possible output files:
4106 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4107
4108 ac_rmfiles=
4109 for ac_file in $ac_files
4110 do
4111 case $ac_file in
4112 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4113 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4114 esac
4115 done
4116 rm -f $ac_rmfiles
4117
4118 if { { ac_try="$ac_link_default"
4119 case "(($ac_try" in
4120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4121 *) ac_try_echo=$ac_try;;
4122 esac
4123 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4124 printf "%s\n" "$ac_try_echo"; } >&5
4125 (eval "$ac_link_default") 2>&5
4126 ac_status=$?
4127 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4128 test $ac_status = 0; }
4129 then :
4130 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4131 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4132 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4133 # so that the user can short-circuit this test for compilers unknown to
4134 # Autoconf.
4135 for ac_file in $ac_files ''
4136 do
4137 test -f "$ac_file" || continue
4138 case $ac_file in
4139 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4140 ;;
4141 [ab].out )
4142 # We found the default executable, but exeext='' is most
4143 # certainly right.
4144 break;;
4145 *.* )
4146 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4147 then :; else
4148 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4149 fi
4150 # We set ac_cv_exeext here because the later test for it is not
4151 # safe: cross compilers may not add the suffix if given an '-o'
4152 # argument, so we may need to know it at that point already.
4153 # Even if this section looks crufty: it has the advantage of
4154 # actually working.
4155 break;;
4156 * )
4157 break;;
4158 esac
4159 done
4160 test "$ac_cv_exeext" = no && ac_cv_exeext=
4161
4162 else case e in #(
4163 e) ac_file='' ;;
4164 esac
4165 fi
4166 if test -z "$ac_file"
4167 then :
4168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4169 printf "%s\n" "no" >&6; }
4170 printf "%s\n" "$as_me: failed program was:" >&5
4171 sed 's/^/| /' conftest.$ac_ext >&5
4172
4173 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4174 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4175 as_fn_error 77 "C compiler cannot create executables
4176 See 'config.log' for more details" "$LINENO" 5; }
4177 else case e in #(
4178 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4179 printf "%s\n" "yes" >&6; } ;;
4180 esac
4181 fi
4182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4183 printf %s "checking for C compiler default output file name... " >&6; }
4184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4185 printf "%s\n" "$ac_file" >&6; }
4186 ac_exeext=$ac_cv_exeext
4187
4188 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4189 ac_clean_files=$ac_clean_files_save
4190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4191 printf %s "checking for suffix of executables... " >&6; }
4192 if { { ac_try="$ac_link"
4193 case "(($ac_try" in
4194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4195 *) ac_try_echo=$ac_try;;
4196 esac
4197 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4198 printf "%s\n" "$ac_try_echo"; } >&5
4199 (eval "$ac_link") 2>&5
4200 ac_status=$?
4201 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4202 test $ac_status = 0; }
4203 then :
4204 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4205 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4206 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4207 # 'rm'.
4208 for ac_file in conftest.exe conftest conftest.*; do
4209 test -f "$ac_file" || continue
4210 case $ac_file in
4211 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4212 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4213 break;;
4214 * ) break;;
4215 esac
4216 done
4217 else case e in #(
4218 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4219 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4220 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4221 See 'config.log' for more details" "$LINENO" 5; } ;;
4222 esac
4223 fi
4224 rm -f conftest conftest$ac_cv_exeext
4225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4226 printf "%s\n" "$ac_cv_exeext" >&6; }
4227
4228 rm -f conftest.$ac_ext
4229 EXEEXT=$ac_cv_exeext
4230 ac_exeext=$EXEEXT
4231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4232 /* end confdefs.h. */
4233 #include <stdio.h>
4234 int
4235 main (void)
4236 {
4237 FILE *f = fopen ("conftest.out", "w");
4238 if (!f)
4239 return 1;
4240 return ferror (f) || fclose (f) != 0;
4241
4242 ;
4243 return 0;
4244 }
4245 _ACEOF
4246 ac_clean_files="$ac_clean_files conftest.out"
4247 # Check that the compiler produces executables we can run. If not, either
4248 # the compiler is broken, or we cross compile.
4249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4250 printf %s "checking whether we are cross compiling... " >&6; }
4251 if test "$cross_compiling" != yes; then
4252 { { ac_try="$ac_link"
4253 case "(($ac_try" in
4254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4255 *) ac_try_echo=$ac_try;;
4256 esac
4257 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4258 printf "%s\n" "$ac_try_echo"; } >&5
4259 (eval "$ac_link") 2>&5
4260 ac_status=$?
4261 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4262 test $ac_status = 0; }
4263 if { ac_try='./conftest$ac_cv_exeext'
4264 { { case "(($ac_try" in
4265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4266 *) ac_try_echo=$ac_try;;
4267 esac
4268 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4269 printf "%s\n" "$ac_try_echo"; } >&5
4270 (eval "$ac_try") 2>&5
4271 ac_status=$?
4272 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4273 test $ac_status = 0; }; }; then
4274 cross_compiling=no
4275 else
4276 if test "$cross_compiling" = maybe; then
4277 cross_compiling=yes
4278 else
4279 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4280 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4281 as_fn_error 77 "cannot run C compiled programs.
4282 If you meant to cross compile, use '--host'.
4283 See 'config.log' for more details" "$LINENO" 5; }
4284 fi
4285 fi
4286 fi
4287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4288 printf "%s\n" "$cross_compiling" >&6; }
4289
4290 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4291 conftest.o conftest.obj conftest.out
4292 ac_clean_files=$ac_clean_files_save
4293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4294 printf %s "checking for suffix of object files... " >&6; }
4295 if test ${ac_cv_objext+y}
4296 then :
4297 printf %s "(cached) " >&6
4298 else case e in #(
4299 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4300 /* end confdefs.h. */
4301
4302 int
4303 main (void)
4304 {
4305
4306 ;
4307 return 0;
4308 }
4309 _ACEOF
4310 rm -f conftest.o conftest.obj
4311 if { { ac_try="$ac_compile"
4312 case "(($ac_try" in
4313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4314 *) ac_try_echo=$ac_try;;
4315 esac
4316 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4317 printf "%s\n" "$ac_try_echo"; } >&5
4318 (eval "$ac_compile") 2>&5
4319 ac_status=$?
4320 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4321 test $ac_status = 0; }
4322 then :
4323 for ac_file in conftest.o conftest.obj conftest.*; do
4324 test -f "$ac_file" || continue;
4325 case $ac_file in
4326 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4327 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4328 break;;
4329 esac
4330 done
4331 else case e in #(
4332 e) printf "%s\n" "$as_me: failed program was:" >&5
4333 sed 's/^/| /' conftest.$ac_ext >&5
4334
4335 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4336 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4337 as_fn_error $? "cannot compute suffix of object files: cannot compile
4338 See 'config.log' for more details" "$LINENO" 5; } ;;
4339 esac
4340 fi
4341 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4342 esac
4343 fi
4344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4345 printf "%s\n" "$ac_cv_objext" >&6; }
4346 OBJEXT=$ac_cv_objext
4347 ac_objext=$OBJEXT
4348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4349 printf %s "checking whether the compiler supports GNU C... " >&6; }
4350 if test ${ac_cv_c_compiler_gnu+y}
4351 then :
4352 printf %s "(cached) " >&6
4353 else case e in #(
4354 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4355 /* end confdefs.h. */
4356
4357 int
4358 main (void)
4359 {
4360 #ifndef __GNUC__
4361 choke me
4362 #endif
4363
4364 ;
4365 return 0;
4366 }
4367 _ACEOF
4368 if ac_fn_c_try_compile "$LINENO"
4369 then :
4370 ac_compiler_gnu=yes
4371 else case e in #(
4372 e) ac_compiler_gnu=no ;;
4373 esac
4374 fi
4375 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4376 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4377 ;;
4378 esac
4379 fi
4380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4381 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4383
4384 if test $ac_compiler_gnu = yes; then
4385 GCC=yes
4386 else
4387 GCC=
4388 fi
4389 ac_test_CFLAGS=${CFLAGS+y}
4390 ac_save_CFLAGS=$CFLAGS
4391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4392 printf %s "checking whether $CC accepts -g... " >&6; }
4393 if test ${ac_cv_prog_cc_g+y}
4394 then :
4395 printf %s "(cached) " >&6
4396 else case e in #(
4397 e) ac_save_c_werror_flag=$ac_c_werror_flag
4398 ac_c_werror_flag=yes
4399 ac_cv_prog_cc_g=no
4400 CFLAGS="-g"
4401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4402 /* end confdefs.h. */
4403
4404 int
4405 main (void)
4406 {
4407
4408 ;
4409 return 0;
4410 }
4411 _ACEOF
4412 if ac_fn_c_try_compile "$LINENO"
4413 then :
4414 ac_cv_prog_cc_g=yes
4415 else case e in #(
4416 e) CFLAGS=""
4417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4418 /* end confdefs.h. */
4419
4420 int
4421 main (void)
4422 {
4423
4424 ;
4425 return 0;
4426 }
4427 _ACEOF
4428 if ac_fn_c_try_compile "$LINENO"
4429 then :
4430
4431 else case e in #(
4432 e) ac_c_werror_flag=$ac_save_c_werror_flag
4433 CFLAGS="-g"
4434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4435 /* end confdefs.h. */
4436
4437 int
4438 main (void)
4439 {
4440
4441 ;
4442 return 0;
4443 }
4444 _ACEOF
4445 if ac_fn_c_try_compile "$LINENO"
4446 then :
4447 ac_cv_prog_cc_g=yes
4448 fi
4449 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4450 esac
4451 fi
4452 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4453 esac
4454 fi
4455 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4456 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4457 esac
4458 fi
4459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4460 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4461 if test $ac_test_CFLAGS; then
4462 CFLAGS=$ac_save_CFLAGS
4463 elif test $ac_cv_prog_cc_g = yes; then
4464 if test "$GCC" = yes; then
4465 CFLAGS="-g -O2"
4466 else
4467 CFLAGS="-g"
4468 fi
4469 else
4470 if test "$GCC" = yes; then
4471 CFLAGS="-O2"
4472 else
4473 CFLAGS=
4474 fi
4475 fi
4476 ac_prog_cc_stdc=no
4477 if test x$ac_prog_cc_stdc = xno
4478 then :
4479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4480 printf %s "checking for $CC option to enable C11 features... " >&6; }
4481 if test ${ac_cv_prog_cc_c11+y}
4482 then :
4483 printf %s "(cached) " >&6
4484 else case e in #(
4485 e) ac_cv_prog_cc_c11=no
4486 ac_save_CC=$CC
4487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4488 /* end confdefs.h. */
4489 $ac_c_conftest_c11_program
4490 _ACEOF
4491 for ac_arg in '' -std=gnu11
4492 do
4493 CC="$ac_save_CC $ac_arg"
4494 if ac_fn_c_try_compile "$LINENO"
4495 then :
4496 ac_cv_prog_cc_c11=$ac_arg
4497 fi
4498 rm -f core conftest.err conftest.$ac_objext conftest.beam
4499 test "x$ac_cv_prog_cc_c11" != "xno" && break
4500 done
4501 rm -f conftest.$ac_ext
4502 CC=$ac_save_CC ;;
4503 esac
4504 fi
4505
4506 if test "x$ac_cv_prog_cc_c11" = xno
4507 then :
4508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4509 printf "%s\n" "unsupported" >&6; }
4510 else case e in #(
4511 e) if test "x$ac_cv_prog_cc_c11" = x
4512 then :
4513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4514 printf "%s\n" "none needed" >&6; }
4515 else case e in #(
4516 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4517 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4518 CC="$CC $ac_cv_prog_cc_c11" ;;
4519 esac
4520 fi
4521 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4522 ac_prog_cc_stdc=c11 ;;
4523 esac
4524 fi
4525 fi
4526 if test x$ac_prog_cc_stdc = xno
4527 then :
4528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4529 printf %s "checking for $CC option to enable C99 features... " >&6; }
4530 if test ${ac_cv_prog_cc_c99+y}
4531 then :
4532 printf %s "(cached) " >&6
4533 else case e in #(
4534 e) ac_cv_prog_cc_c99=no
4535 ac_save_CC=$CC
4536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537 /* end confdefs.h. */
4538 $ac_c_conftest_c99_program
4539 _ACEOF
4540 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4541 do
4542 CC="$ac_save_CC $ac_arg"
4543 if ac_fn_c_try_compile "$LINENO"
4544 then :
4545 ac_cv_prog_cc_c99=$ac_arg
4546 fi
4547 rm -f core conftest.err conftest.$ac_objext conftest.beam
4548 test "x$ac_cv_prog_cc_c99" != "xno" && break
4549 done
4550 rm -f conftest.$ac_ext
4551 CC=$ac_save_CC ;;
4552 esac
4553 fi
4554
4555 if test "x$ac_cv_prog_cc_c99" = xno
4556 then :
4557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4558 printf "%s\n" "unsupported" >&6; }
4559 else case e in #(
4560 e) if test "x$ac_cv_prog_cc_c99" = x
4561 then :
4562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4563 printf "%s\n" "none needed" >&6; }
4564 else case e in #(
4565 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4566 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4567 CC="$CC $ac_cv_prog_cc_c99" ;;
4568 esac
4569 fi
4570 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4571 ac_prog_cc_stdc=c99 ;;
4572 esac
4573 fi
4574 fi
4575 if test x$ac_prog_cc_stdc = xno
4576 then :
4577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4578 printf %s "checking for $CC option to enable C89 features... " >&6; }
4579 if test ${ac_cv_prog_cc_c89+y}
4580 then :
4581 printf %s "(cached) " >&6
4582 else case e in #(
4583 e) ac_cv_prog_cc_c89=no
4584 ac_save_CC=$CC
4585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4586 /* end confdefs.h. */
4587 $ac_c_conftest_c89_program
4588 _ACEOF
4589 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4590 do
4591 CC="$ac_save_CC $ac_arg"
4592 if ac_fn_c_try_compile "$LINENO"
4593 then :
4594 ac_cv_prog_cc_c89=$ac_arg
4595 fi
4596 rm -f core conftest.err conftest.$ac_objext conftest.beam
4597 test "x$ac_cv_prog_cc_c89" != "xno" && break
4598 done
4599 rm -f conftest.$ac_ext
4600 CC=$ac_save_CC ;;
4601 esac
4602 fi
4603
4604 if test "x$ac_cv_prog_cc_c89" = xno
4605 then :
4606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4607 printf "%s\n" "unsupported" >&6; }
4608 else case e in #(
4609 e) if test "x$ac_cv_prog_cc_c89" = x
4610 then :
4611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4612 printf "%s\n" "none needed" >&6; }
4613 else case e in #(
4614 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4615 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4616 CC="$CC $ac_cv_prog_cc_c89" ;;
4617 esac
4618 fi
4619 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4620 ac_prog_cc_stdc=c89 ;;
4621 esac
4622 fi
4623 fi
4624
4625 ac_ext=c
4626 ac_cpp='$CPP $CPPFLAGS'
4627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4630
4631
4632 ac_ext=c
4633 ac_cpp='$CPP $CPPFLAGS'
4634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4638 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4639 if test ${am_cv_prog_cc_c_o+y}
4640 then :
4641 printf %s "(cached) " >&6
4642 else case e in #(
4643 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4644 /* end confdefs.h. */
4645
4646 int
4647 main (void)
4648 {
4649
4650 ;
4651 return 0;
4652 }
4653 _ACEOF
4654 # Make sure it works both with $CC and with simple cc.
4655 # Following AC_PROG_CC_C_O, we do the test twice because some
4656 # compilers refuse to overwrite an existing .o file with -o,
4657 # though they will create one.
4658 am_cv_prog_cc_c_o=yes
4659 for am_i in 1 2; do
4660 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4661 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4662 ac_status=$?
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); } \
4665 && test -f conftest2.$ac_objext; then
4666 : OK
4667 else
4668 am_cv_prog_cc_c_o=no
4669 break
4670 fi
4671 done
4672 rm -f core conftest*
4673 unset am_i ;;
4674 esac
4675 fi
4676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4677 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4678 if test "$am_cv_prog_cc_c_o" != yes; then
4679 # Losing compiler, so override with the script.
4680 # FIXME: It is wrong to rewrite CC.
4681 # But if we don't then we get into trouble of one sort or another.
4682 # A longer-term fix would be to have automake use am__CC in this case,
4683 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4684 CC="$am_aux_dir/compile $CC"
4685 fi
4686 ac_ext=c
4687 ac_cpp='$CPP $CPPFLAGS'
4688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4691
4692 DEPDIR="${am__leading_dot}deps"
4693
4694 ac_config_commands="$ac_config_commands depfiles"
4695
4696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4697 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4698 cat > confinc.mk << 'END'
4699 am__doit:
4700 @echo this is the am__doit target >confinc.out
4701 .PHONY: am__doit
4702 END
4703 am__include="#"
4704 am__quote=
4705 # BSD make does it like this.
4706 echo '.include "confinc.mk" # ignored' > confmf.BSD
4707 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4708 echo 'include confinc.mk # ignored' > confmf.GNU
4709 _am_result=no
4710 for s in GNU BSD; do
4711 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4712 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4713 ac_status=$?
4714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715 (exit $ac_status); }
4716 case $?:`cat confinc.out 2>/dev/null` in #(
4717 '0:this is the am__doit target') :
4718 case $s in #(
4719 BSD) :
4720 am__include='.include' am__quote='"' ;; #(
4721 *) :
4722 am__include='include' am__quote='' ;;
4723 esac ;; #(
4724 *) :
4725 ;;
4726 esac
4727 if test "$am__include" != "#"; then
4728 _am_result="yes ($s style)"
4729 break
4730 fi
4731 done
4732 rm -f confinc.* confmf.*
4733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4734 printf "%s\n" "${_am_result}" >&6; }
4735
4736 # Check whether --enable-dependency-tracking was given.
4737 if test ${enable_dependency_tracking+y}
4738 then :
4739 enableval=$enable_dependency_tracking;
4740 fi
4741
4742 if test "x$enable_dependency_tracking" != xno; then
4743 am_depcomp="$ac_aux_dir/depcomp"
4744 AMDEPBACKSLASH='\'
4745 am__nodep='_no'
4746 fi
4747 if test "x$enable_dependency_tracking" != xno; then
4748 AMDEP_TRUE=
4749 AMDEP_FALSE='#'
4750 else
4751 AMDEP_TRUE='#'
4752 AMDEP_FALSE=
4753 fi
4754
4755
4756
4757 depcc="$CC" am_compiler_list=
4758
4759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4760 printf %s "checking dependency style of $depcc... " >&6; }
4761 if test ${am_cv_CC_dependencies_compiler_type+y}
4762 then :
4763 printf %s "(cached) " >&6
4764 else case e in #(
4765 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4766 # We make a subdir and do the tests there. Otherwise we can end up
4767 # making bogus files that we don't know about and never remove. For
4768 # instance it was reported that on HP-UX the gcc test will end up
4769 # making a dummy file named 'D' -- because '-MD' means "put the output
4770 # in D".
4771 rm -rf conftest.dir
4772 mkdir conftest.dir
4773 # Copy depcomp to subdir because otherwise we won't find it if we're
4774 # using a relative directory.
4775 cp "$am_depcomp" conftest.dir
4776 cd conftest.dir
4777 # We will build objects and dependencies in a subdirectory because
4778 # it helps to detect inapplicable dependency modes. For instance
4779 # both Tru64's cc and ICC support -MD to output dependencies as a
4780 # side effect of compilation, but ICC will put the dependencies in
4781 # the current directory while Tru64 will put them in the object
4782 # directory.
4783 mkdir sub
4784
4785 am_cv_CC_dependencies_compiler_type=none
4786 if test "$am_compiler_list" = ""; then
4787 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4788 fi
4789 am__universal=false
4790 case " $depcc " in #(
4791 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4792 esac
4793
4794 for depmode in $am_compiler_list; do
4795 # Setup a source with many dependencies, because some compilers
4796 # like to wrap large dependency lists on column 80 (with \), and
4797 # we should not choose a depcomp mode which is confused by this.
4798 #
4799 # We need to recreate these files for each test, as the compiler may
4800 # overwrite some of them when testing with obscure command lines.
4801 # This happens at least with the AIX C compiler.
4802 : > sub/conftest.c
4803 for i in 1 2 3 4 5 6; do
4804 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4805 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4806 # Solaris 10 /bin/sh.
4807 echo '/* dummy */' > sub/conftst$i.h
4808 done
4809 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4810
4811 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4812 # mode. It turns out that the SunPro C++ compiler does not properly
4813 # handle '-M -o', and we need to detect this. Also, some Intel
4814 # versions had trouble with output in subdirs.
4815 am__obj=sub/conftest.${OBJEXT-o}
4816 am__minus_obj="-o $am__obj"
4817 case $depmode in
4818 gcc)
4819 # This depmode causes a compiler race in universal mode.
4820 test "$am__universal" = false || continue
4821 ;;
4822 nosideeffect)
4823 # After this tag, mechanisms are not by side-effect, so they'll
4824 # only be used when explicitly requested.
4825 if test "x$enable_dependency_tracking" = xyes; then
4826 continue
4827 else
4828 break
4829 fi
4830 ;;
4831 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4832 # This compiler won't grok '-c -o', but also, the minuso test has
4833 # not run yet. These depmodes are late enough in the game, and
4834 # so weak that their functioning should not be impacted.
4835 am__obj=conftest.${OBJEXT-o}
4836 am__minus_obj=
4837 ;;
4838 none) break ;;
4839 esac
4840 if depmode=$depmode \
4841 source=sub/conftest.c object=$am__obj \
4842 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4843 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4844 >/dev/null 2>conftest.err &&
4845 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4846 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4847 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4848 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4849 # icc doesn't choke on unknown options, it will just issue warnings
4850 # or remarks (even with -Werror). So we grep stderr for any message
4851 # that says an option was ignored or not supported.
4852 # When given -MP, icc 7.0 and 7.1 complain thus:
4853 # icc: Command line warning: ignoring option '-M'; no argument required
4854 # The diagnosis changed in icc 8.0:
4855 # icc: Command line remark: option '-MP' not supported
4856 if (grep 'ignoring option' conftest.err ||
4857 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4858 am_cv_CC_dependencies_compiler_type=$depmode
4859 break
4860 fi
4861 fi
4862 done
4863
4864 cd ..
4865 rm -rf conftest.dir
4866 else
4867 am_cv_CC_dependencies_compiler_type=none
4868 fi
4869 ;;
4870 esac
4871 fi
4872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4873 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4874 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4875
4876 if
4877 test "x$enable_dependency_tracking" != xno \
4878 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4879 am__fastdepCC_TRUE=
4880 am__fastdepCC_FALSE='#'
4881 else
4882 am__fastdepCC_TRUE='#'
4883 am__fastdepCC_FALSE=
4884 fi
4885
4886
4887
4888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4889 printf %s "checking whether ln -s works... " >&6; }
4890 LN_S=$as_ln_s
4891 if test "$LN_S" = "ln -s"; then
4892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4893 printf "%s\n" "yes" >&6; }
4894 else
4895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4896 printf "%s\n" "no, using $LN_S" >&6; }
4897 fi
4898
4899
4900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4901 printf %s "checking whether NLS is requested... " >&6; }
4902 # Check whether --enable-nls was given.
4903 if test ${enable_nls+y}
4904 then :
4905 enableval=$enable_nls; USE_NLS=$enableval
4906 else case e in #(
4907 e) USE_NLS=yes ;;
4908 esac
4909 fi
4910
4911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
4912 printf "%s\n" "$USE_NLS" >&6; }
4913
4914
4915
4916
4917 for ac_prog in po4a
4918 do
4919 # Extract the first word of "$ac_prog", so it can be a program name with args.
4920 set dummy $ac_prog; ac_word=$2
4921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4922 printf %s "checking for $ac_word... " >&6; }
4923 if test ${ac_cv_prog_PO4A+y}
4924 then :
4925 printf %s "(cached) " >&6
4926 else case e in #(
4927 e) if test -n "$PO4A"; then
4928 ac_cv_prog_PO4A="$PO4A" # Let the user override the test.
4929 else
4930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4931 for as_dir in $PATH
4932 do
4933 IFS=$as_save_IFS
4934 case $as_dir in #(((
4935 '') as_dir=./ ;;
4936 */) ;;
4937 *) as_dir=$as_dir/ ;;
4938 esac
4939 for ac_exec_ext in '' $ac_executable_extensions; do
4940 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4941 ac_cv_prog_PO4A="$ac_prog"
4942 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4943 break 2
4944 fi
4945 done
4946 done
4947 IFS=$as_save_IFS
4948
4949 fi ;;
4950 esac
4951 fi
4952 PO4A=$ac_cv_prog_PO4A
4953 if test -n "$PO4A"; then
4954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PO4A" >&5
4955 printf "%s\n" "$PO4A" >&6; }
4956 else
4957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4958 printf "%s\n" "no" >&6; }
4959 fi
4960
4961
4962 test -n "$PO4A" && break
4963 done
4964
4965 if test "$USE_NLS" = "yes" && test -n "$PO4A"; then
4966 USE_PO4A=yes
4967 else
4968 USE_PO4A=no
4969 fi
4970
4971
4972
4973 # BEGIN COPYRIGHT BLOCK
4974 # Copyright (C) 2007 Red Hat, Inc.
4975 # 2018 Helge Kreutzmann
4976 # All rights reserved.
4977 #
4978 # License: GPL (version 3 or any later version).
4979 # See LICENSE for details.
4980 # END COPYRIGHT BLOCK
4981
4982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PCRE..." >&5
4983 printf "%s\n" "$as_me: checking for PCRE..." >&6;}
4984
4985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-pcre" >&5
4986 printf %s "checking for --with-pcre... " >&6; }
4987
4988 # Check whether --with-pcre was given.
4989 if test ${with_pcre+y}
4990 then :
4991 withval=$with_pcre;
4992 if test "$withval" = "yes"; then
4993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4994 printf "%s\n" "yes" >&6; }
4995 elif test "$withval" = "no"; then
4996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4997 printf "%s\n" "no" >&6; }
4998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not using PCRE" >&5
4999 printf "%s\n" "not using PCRE" >&6; }
5000 with_pcre=no
5001 elif test -d "$withval"/include -a -d "$withval"/lib; then
5002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
5003 printf "%s\n" "using $withval" >&6; }
5004 PCREDIR=$withval
5005 pcre_lib="-L$PCREDIR/lib"
5006 pcre_libdir="$PCREDIR/lib"
5007 pcre_incdir="$PCREDIR/include"
5008 if ! test -e "$pcre_incdir/pcre.h" ; then
5009 as_fn_error $? "$withval include dir not found" "$LINENO" 5
5010 fi
5011 pcre_inc="-I$pcre_incdir"
5012 printf "%s\n" "#define use_regexp 1" >>confdefs.h
5013
5014 else
5015 echo
5016 as_fn_error $? "$withval not found" "$LINENO" 5
5017 fi
5018
5019 else case e in #(
5020 e) with_pcre=no
5021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5022 printf "%s\n" "no" >&6; } ;;
5023 esac
5024 fi
5025
5026
5027 if test "x$with_pcre" != "xno"; then
5028 #
5029 # if PCRE is not found yet, try pkg-config
5030 if test -z "$pcre_inc" -o -z "$pcre_lib" -o -z "$pcre_libdir"; then
5031 # Extract the first word of "pkg-config", so it can be a program name with args.
5032 set dummy pkg-config; ac_word=$2
5033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5034 printf %s "checking for $ac_word... " >&6; }
5035 if test ${ac_cv_path_PKG_CONFIG+y}
5036 then :
5037 printf %s "(cached) " >&6
5038 else case e in #(
5039 e) case $PKG_CONFIG in
5040 [\\/]* | ?:[\\/]*)
5041 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5042 ;;
5043 *)
5044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5045 for as_dir in $PATH
5046 do
5047 IFS=$as_save_IFS
5048 case $as_dir in #(((
5049 '') as_dir=./ ;;
5050 */) ;;
5051 *) as_dir=$as_dir/ ;;
5052 esac
5053 for ac_exec_ext in '' $ac_executable_extensions; do
5054 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5055 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5056 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5057 break 2
5058 fi
5059 done
5060 done
5061 IFS=$as_save_IFS
5062
5063 ;;
5064 esac ;;
5065 esac
5066 fi
5067 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5068 if test -n "$PKG_CONFIG"; then
5069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5070 printf "%s\n" "$PKG_CONFIG" >&6; }
5071 else
5072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5073 printf "%s\n" "no" >&6; }
5074 fi
5075
5076
5077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcre with pkg-config" >&5
5078 printf %s "checking for pcre with pkg-config... " >&6; }
5079 if test -n "$PKG_CONFIG"; then
5080 if $PKG_CONFIG --exists pcre; then
5081 pcre_inc=`$PKG_CONFIG --cflags-only-I pcre`
5082 pcre_lib=`$PKG_CONFIG --libs-only-L pcre`
5083 pcre_libdir=`$PKG_CONFIG --libs-only-L pcre | sed -e s/-L// | sed -e s/\ .*$//`
5084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using system PCRE" >&5
5085 printf "%s\n" "using system PCRE" >&6; }
5086 printf "%s\n" "#define use_regexp 1" >>confdefs.h
5087
5088 elif $PKG_CONFIG --exists libpcre2-8; then
5089 pcre_inc=`$PKG_CONFIG --cflags libpcre2-8`
5090 pcre_lib=`$PKG_CONFIG --libs libpcre2-8`
5091 pcre_libdir=`$PKG_CONFIG --libs-only-L libpcre | sed -e s/-L// | sed -e s/\ .*$//`
5092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using system LIBPCRE 2.8" >&5
5093 printf "%s\n" "using system LIBPCRE 2.8" >&6; }
5094 printf "%s\n" "#define use_regexp 1" >>confdefs.h
5095
5096 else
5097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: PCRE not found, not using PCRE or specify with --with-pcre." >&5
5098 printf "%s\n" "PCRE not found, not using PCRE or specify with --with-pcre." >&6; }
5099 fi
5100 fi
5101 fi
5102
5103 if test -z "$pcre_lib"; then
5104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcre.h" >&5
5105 printf %s "checking for pcre.h... " >&6; }
5106 if test -f "/usr/include/pcre/pcre.h"; then
5107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using /usr/include/pcre/pcre.h" >&5
5108 printf "%s\n" "using /usr/include/pcre/pcre.h" >&6; }
5109 printf "%s\n" "#define use_regexp 1" >>confdefs.h
5110
5111 pcre_incdir="/usr/include/pcre"
5112 pcre_inc="-I/usr/include/pcre"
5113 pcre_lib='-L$(libdir)'
5114 pcre_libdir='$(libdir)'
5115 elif test -f "/usr/include/pcre.h"; then
5116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using /usr/include/pcre.h" >&5
5117 printf "%s\n" "using /usr/include/pcre.h" >&6; }
5118 printf "%s\n" "#define use_regexp 1" >>confdefs.h
5119
5120 pcre_incdir="/usr/include"
5121 pcre_inc="-I/usr/include"
5122 pcre_lib='-L$(libdir)'
5123 pcre_libdir='$(libdir)'
5124 else
5125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5126 printf "%s\n" "no" >&6; }
5127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not using PCRE" >&5
5128 printf "%s\n" "not using PCRE" >&6; }
5129 fi
5130 fi
5131 fi
5132
5133
5134 # Autoupdate added the next two lines to ensure that your configure
5135 # script's behavior did not change. They are probably safe to remove.
5136
5137 ac_header= ac_cache=
5138 for ac_item in $ac_header_c_list
5139 do
5140 if test $ac_cache; then
5141 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5142 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5143 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5144 fi
5145 ac_header= ac_cache=
5146 elif test $ac_header; then
5147 ac_cache=$ac_item
5148 else
5149 ac_header=$ac_item
5150 fi
5151 done
5152
5153
5154
5155
5156
5157
5158
5159
5160 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5161 then :
5162
5163 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5164
5165 fi
5166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5167 printf %s "checking for grep that handles long lines and -e... " >&6; }
5168 if test ${ac_cv_path_GREP+y}
5169 then :
5170 printf %s "(cached) " >&6
5171 else case e in #(
5172 e) if test -z "$GREP"; then
5173 ac_path_GREP_found=false
5174 # Loop through the user's path and test for each of PROGNAME-LIST
5175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5177 do
5178 IFS=$as_save_IFS
5179 case $as_dir in #(((
5180 '') as_dir=./ ;;
5181 */) ;;
5182 *) as_dir=$as_dir/ ;;
5183 esac
5184 for ac_prog in grep ggrep
5185 do
5186 for ac_exec_ext in '' $ac_executable_extensions; do
5187 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5188 as_fn_executable_p "$ac_path_GREP" || continue
5189 # Check for GNU ac_path_GREP and select it if it is found.
5190 # Check for GNU $ac_path_GREP
5191 case `"$ac_path_GREP" --version 2>&1` in #(
5192 *GNU*)
5193 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5194 #(
5195 *)
5196 ac_count=0
5197 printf %s 0123456789 >"conftest.in"
5198 while :
5199 do
5200 cat "conftest.in" "conftest.in" >"conftest.tmp"
5201 mv "conftest.tmp" "conftest.in"
5202 cp "conftest.in" "conftest.nl"
5203 printf "%s\n" 'GREP' >> "conftest.nl"
5204 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5205 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5206 as_fn_arith $ac_count + 1 && ac_count=$as_val
5207 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5208 # Best one so far, save it but keep looking for a better one
5209 ac_cv_path_GREP="$ac_path_GREP"
5210 ac_path_GREP_max=$ac_count
5211 fi
5212 # 10*(2^10) chars as input seems more than enough
5213 test $ac_count -gt 10 && break
5214 done
5215 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5216 esac
5217
5218 $ac_path_GREP_found && break 3
5219 done
5220 done
5221 done
5222 IFS=$as_save_IFS
5223 if test -z "$ac_cv_path_GREP"; then
5224 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5225 fi
5226 else
5227 ac_cv_path_GREP=$GREP
5228 fi
5229 ;;
5230 esac
5231 fi
5232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5233 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5234 GREP="$ac_cv_path_GREP"
5235
5236
5237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5238 printf %s "checking for egrep... " >&6; }
5239 if test ${ac_cv_path_EGREP+y}
5240 then :
5241 printf %s "(cached) " >&6
5242 else case e in #(
5243 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5244 then ac_cv_path_EGREP="$GREP -E"
5245 else
5246 if test -z "$EGREP"; then
5247 ac_path_EGREP_found=false
5248 # Loop through the user's path and test for each of PROGNAME-LIST
5249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5250 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5251 do
5252 IFS=$as_save_IFS
5253 case $as_dir in #(((
5254 '') as_dir=./ ;;
5255 */) ;;
5256 *) as_dir=$as_dir/ ;;
5257 esac
5258 for ac_prog in egrep
5259 do
5260 for ac_exec_ext in '' $ac_executable_extensions; do
5261 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5262 as_fn_executable_p "$ac_path_EGREP" || continue
5263 # Check for GNU ac_path_EGREP and select it if it is found.
5264 # Check for GNU $ac_path_EGREP
5265 case `"$ac_path_EGREP" --version 2>&1` in #(
5266 *GNU*)
5267 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5268 #(
5269 *)
5270 ac_count=0
5271 printf %s 0123456789 >"conftest.in"
5272 while :
5273 do
5274 cat "conftest.in" "conftest.in" >"conftest.tmp"
5275 mv "conftest.tmp" "conftest.in"
5276 cp "conftest.in" "conftest.nl"
5277 printf "%s\n" 'EGREP' >> "conftest.nl"
5278 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5279 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5280 as_fn_arith $ac_count + 1 && ac_count=$as_val
5281 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5282 # Best one so far, save it but keep looking for a better one
5283 ac_cv_path_EGREP="$ac_path_EGREP"
5284 ac_path_EGREP_max=$ac_count
5285 fi
5286 # 10*(2^10) chars as input seems more than enough
5287 test $ac_count -gt 10 && break
5288 done
5289 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5290 esac
5291
5292 $ac_path_EGREP_found && break 3
5293 done
5294 done
5295 done
5296 IFS=$as_save_IFS
5297 if test -z "$ac_cv_path_EGREP"; then
5298 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5299 fi
5300 else
5301 ac_cv_path_EGREP=$EGREP
5302 fi
5303
5304 fi ;;
5305 esac
5306 fi
5307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5308 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5309 EGREP="$ac_cv_path_EGREP"
5310
5311 EGREP_TRADITIONAL=$EGREP
5312 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5313
5314
5315 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5316 if test "x$ac_cv_header_unistd_h" = xyes
5317 then :
5318 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
5319
5320 fi
5321
5322
5323 # The cast to long int works around a bug in the HP C Compiler
5324 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5325 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
5326 # This bug is HP SR number 8606223364.
5327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5328 printf %s "checking size of long... " >&6; }
5329 if test ${ac_cv_sizeof_long+y}
5330 then :
5331 printf %s "(cached) " >&6
5332 else case e in #(
5333 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
5334 then :
5335
5336 else case e in #(
5337 e) if test "$ac_cv_type_long" = yes; then
5338 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5339 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5340 as_fn_error 77 "cannot compute sizeof (long)
5341 See 'config.log' for more details" "$LINENO" 5; }
5342 else
5343 ac_cv_sizeof_long=0
5344 fi ;;
5345 esac
5346 fi
5347 ;;
5348 esac
5349 fi
5350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5351 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
5352
5353
5354
5355 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
5356
5357
5358 # The cast to long int works around a bug in the HP C Compiler
5359 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5360 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
5361 # This bug is HP SR number 8606223364.
5362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5363 printf %s "checking size of long long... " >&6; }
5364 if test ${ac_cv_sizeof_long_long+y}
5365 then :
5366 printf %s "(cached) " >&6
5367 else case e in #(
5368 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"
5369 then :
5370
5371 else case e in #(
5372 e) if test "$ac_cv_type_long_long" = yes; then
5373 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5374 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5375 as_fn_error 77 "cannot compute sizeof (long long)
5376 See 'config.log' for more details" "$LINENO" 5; }
5377 else
5378 ac_cv_sizeof_long_long=0
5379 fi ;;
5380 esac
5381 fi
5382 ;;
5383 esac
5384 fi
5385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5386 printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }
5387
5388
5389
5390 printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
5391
5392
5393
5394 ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
5395 if test "x$ac_cv_func_strstr" = xyes
5396 then :
5397 printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
5398
5399 fi
5400 ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname"
5401 if test "x$ac_cv_func_uname" = xyes
5402 then :
5403 printf "%s\n" "#define HAVE_UNAME 1" >>confdefs.h
5404
5405 fi
5406
5407
5408
5409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5410 printf %s "checking for a sed that does not truncate output... " >&6; }
5411 if test ${ac_cv_path_SED+y}
5412 then :
5413 printf %s "(cached) " >&6
5414 else case e in #(
5415 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5416 for ac_i in 1 2 3 4 5 6 7; do
5417 ac_script="$ac_script$as_nl$ac_script"
5418 done
5419 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5420 { ac_script=; unset ac_script;}
5421 if test -z "$SED"; then
5422 ac_path_SED_found=false
5423 # Loop through the user's path and test for each of PROGNAME-LIST
5424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5425 for as_dir in $PATH
5426 do
5427 IFS=$as_save_IFS
5428 case $as_dir in #(((
5429 '') as_dir=./ ;;
5430 */) ;;
5431 *) as_dir=$as_dir/ ;;
5432 esac
5433 for ac_prog in sed gsed
5434 do
5435 for ac_exec_ext in '' $ac_executable_extensions; do
5436 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5437 as_fn_executable_p "$ac_path_SED" || continue
5438 # Check for GNU ac_path_SED and select it if it is found.
5439 # Check for GNU $ac_path_SED
5440 case `"$ac_path_SED" --version 2>&1` in #(
5441 *GNU*)
5442 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5443 #(
5444 *)
5445 ac_count=0
5446 printf %s 0123456789 >"conftest.in"
5447 while :
5448 do
5449 cat "conftest.in" "conftest.in" >"conftest.tmp"
5450 mv "conftest.tmp" "conftest.in"
5451 cp "conftest.in" "conftest.nl"
5452 printf "%s\n" '' >> "conftest.nl"
5453 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5454 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5455 as_fn_arith $ac_count + 1 && ac_count=$as_val
5456 if test $ac_count -gt ${ac_path_SED_max-0}; then
5457 # Best one so far, save it but keep looking for a better one
5458 ac_cv_path_SED="$ac_path_SED"
5459 ac_path_SED_max=$ac_count
5460 fi
5461 # 10*(2^10) chars as input seems more than enough
5462 test $ac_count -gt 10 && break
5463 done
5464 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5465 esac
5466
5467 $ac_path_SED_found && break 3
5468 done
5469 done
5470 done
5471 IFS=$as_save_IFS
5472 if test -z "$ac_cv_path_SED"; then
5473 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5474 fi
5475 else
5476 ac_cv_path_SED=$SED
5477 fi
5478 ;;
5479 esac
5480 fi
5481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5482 printf "%s\n" "$ac_cv_path_SED" >&6; }
5483 SED="$ac_cv_path_SED"
5484 rm -f conftest.sed
5485
5486
5487
5488 GETTEXT_MACRO_VERSION=0.18
5489
5490
5491
5492
5493 # Prepare PATH_SEPARATOR.
5494 # The user is always right.
5495 if test "${PATH_SEPARATOR+set}" != set; then
5496 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5497 # contains only /bin. Note that ksh looks also at the FPATH variable,
5498 # so we have to set that as well for the test.
5499 PATH_SEPARATOR=:
5500 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5501 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5502 || PATH_SEPARATOR=';'
5503 }
5504 fi
5505
5506 # Find out how to test for executable files. Don't use a zero-byte file,
5507 # as systems may use methods other than mode bits to determine executability.
5508 cat >conf$$.file <<_ASEOF
5509 #! /bin/sh
5510 exit 0
5511 _ASEOF
5512 chmod +x conf$$.file
5513 if test -x conf$$.file >/dev/null 2>&1; then
5514 ac_executable_p="test -x"
5515 else
5516 ac_executable_p="test -f"
5517 fi
5518 rm -f conf$$.file
5519
5520 # Extract the first word of "msgfmt", so it can be a program name with args.
5521 set dummy msgfmt; ac_word=$2
5522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5523 printf %s "checking for $ac_word... " >&6; }
5524 if test ${ac_cv_path_MSGFMT+y}
5525 then :
5526 printf %s "(cached) " >&6
5527 else case e in #(
5528 e) case "$MSGFMT" in
5529 [\\/]* | ?:[\\/]*)
5530 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5531 ;;
5532 *)
5533 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5534 for ac_dir in $PATH; do
5535 IFS="$ac_save_IFS"
5536 test -z "$ac_dir" && ac_dir=.
5537 for ac_exec_ext in '' $ac_executable_extensions; do
5538 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5539 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5540 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5541 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5542 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5543 break 2
5544 fi
5545 fi
5546 done
5547 done
5548 IFS="$ac_save_IFS"
5549 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5550 ;;
5551 esac ;;
5552 esac
5553 fi
5554 MSGFMT="$ac_cv_path_MSGFMT"
5555 if test "$MSGFMT" != ":"; then
5556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5557 printf "%s\n" "$MSGFMT" >&6; }
5558 else
5559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5560 printf "%s\n" "no" >&6; }
5561 fi
5562
5563 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5564 set dummy gmsgfmt; ac_word=$2
5565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5566 printf %s "checking for $ac_word... " >&6; }
5567 if test ${ac_cv_path_GMSGFMT+y}
5568 then :
5569 printf %s "(cached) " >&6
5570 else case e in #(
5571 e) case $GMSGFMT in
5572 [\\/]* | ?:[\\/]*)
5573 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5574 ;;
5575 *)
5576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5577 for as_dir in $PATH
5578 do
5579 IFS=$as_save_IFS
5580 case $as_dir in #(((
5581 '') as_dir=./ ;;
5582 */) ;;
5583 *) as_dir=$as_dir/ ;;
5584 esac
5585 for ac_exec_ext in '' $ac_executable_extensions; do
5586 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5587 ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
5588 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5589 break 2
5590 fi
5591 done
5592 done
5593 IFS=$as_save_IFS
5594
5595 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5596 ;;
5597 esac ;;
5598 esac
5599 fi
5600 GMSGFMT=$ac_cv_path_GMSGFMT
5601 if test -n "$GMSGFMT"; then
5602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5603 printf "%s\n" "$GMSGFMT" >&6; }
5604 else
5605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5606 printf "%s\n" "no" >&6; }
5607 fi
5608
5609
5610
5611 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5612 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
5613 *) MSGFMT_015=$MSGFMT ;;
5614 esac
5615
5616 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5617 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
5618 *) GMSGFMT_015=$GMSGFMT ;;
5619 esac
5620
5621
5622
5623 # Prepare PATH_SEPARATOR.
5624 # The user is always right.
5625 if test "${PATH_SEPARATOR+set}" != set; then
5626 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5627 # contains only /bin. Note that ksh looks also at the FPATH variable,
5628 # so we have to set that as well for the test.
5629 PATH_SEPARATOR=:
5630 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5631 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5632 || PATH_SEPARATOR=';'
5633 }
5634 fi
5635
5636 # Find out how to test for executable files. Don't use a zero-byte file,
5637 # as systems may use methods other than mode bits to determine executability.
5638 cat >conf$$.file <<_ASEOF
5639 #! /bin/sh
5640 exit 0
5641 _ASEOF
5642 chmod +x conf$$.file
5643 if test -x conf$$.file >/dev/null 2>&1; then
5644 ac_executable_p="test -x"
5645 else
5646 ac_executable_p="test -f"
5647 fi
5648 rm -f conf$$.file
5649
5650 # Extract the first word of "xgettext", so it can be a program name with args.
5651 set dummy xgettext; ac_word=$2
5652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5653 printf %s "checking for $ac_word... " >&6; }
5654 if test ${ac_cv_path_XGETTEXT+y}
5655 then :
5656 printf %s "(cached) " >&6
5657 else case e in #(
5658 e) case "$XGETTEXT" in
5659 [\\/]* | ?:[\\/]*)
5660 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5661 ;;
5662 *)
5663 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5664 for ac_dir in $PATH; do
5665 IFS="$ac_save_IFS"
5666 test -z "$ac_dir" && ac_dir=.
5667 for ac_exec_ext in '' $ac_executable_extensions; do
5668 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5669 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5670 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5671 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5672 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5673 break 2
5674 fi
5675 fi
5676 done
5677 done
5678 IFS="$ac_save_IFS"
5679 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5680 ;;
5681 esac ;;
5682 esac
5683 fi
5684 XGETTEXT="$ac_cv_path_XGETTEXT"
5685 if test "$XGETTEXT" != ":"; then
5686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5687 printf "%s\n" "$XGETTEXT" >&6; }
5688 else
5689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5690 printf "%s\n" "no" >&6; }
5691 fi
5692
5693 rm -f messages.po
5694
5695 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5696 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
5697 *) XGETTEXT_015=$XGETTEXT ;;
5698 esac
5699
5700
5701
5702 # Prepare PATH_SEPARATOR.
5703 # The user is always right.
5704 if test "${PATH_SEPARATOR+set}" != set; then
5705 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5706 # contains only /bin. Note that ksh looks also at the FPATH variable,
5707 # so we have to set that as well for the test.
5708 PATH_SEPARATOR=:
5709 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5710 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5711 || PATH_SEPARATOR=';'
5712 }
5713 fi
5714
5715 # Find out how to test for executable files. Don't use a zero-byte file,
5716 # as systems may use methods other than mode bits to determine executability.
5717 cat >conf$$.file <<_ASEOF
5718 #! /bin/sh
5719 exit 0
5720 _ASEOF
5721 chmod +x conf$$.file
5722 if test -x conf$$.file >/dev/null 2>&1; then
5723 ac_executable_p="test -x"
5724 else
5725 ac_executable_p="test -f"
5726 fi
5727 rm -f conf$$.file
5728
5729 # Extract the first word of "msgmerge", so it can be a program name with args.
5730 set dummy msgmerge; ac_word=$2
5731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5732 printf %s "checking for $ac_word... " >&6; }
5733 if test ${ac_cv_path_MSGMERGE+y}
5734 then :
5735 printf %s "(cached) " >&6
5736 else case e in #(
5737 e) case "$MSGMERGE" in
5738 [\\/]* | ?:[\\/]*)
5739 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5740 ;;
5741 *)
5742 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5743 for ac_dir in $PATH; do
5744 IFS="$ac_save_IFS"
5745 test -z "$ac_dir" && ac_dir=.
5746 for ac_exec_ext in '' $ac_executable_extensions; do
5747 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5748 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5749 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5750 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5751 break 2
5752 fi
5753 fi
5754 done
5755 done
5756 IFS="$ac_save_IFS"
5757 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5758 ;;
5759 esac ;;
5760 esac
5761 fi
5762 MSGMERGE="$ac_cv_path_MSGMERGE"
5763 if test "$MSGMERGE" != ":"; then
5764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5765 printf "%s\n" "$MSGMERGE" >&6; }
5766 else
5767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5768 printf "%s\n" "no" >&6; }
5769 fi
5770
5771
5772 test -n "$localedir" || localedir='${datadir}/locale'
5773
5774
5775 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
5776
5777
5778 ac_config_commands="$ac_config_commands po-directories"
5779
5780
5781
5782 if test "X$prefix" = "XNONE"; then
5783 acl_final_prefix="$ac_default_prefix"
5784 else
5785 acl_final_prefix="$prefix"
5786 fi
5787 if test "X$exec_prefix" = "XNONE"; then
5788 acl_final_exec_prefix='${prefix}'
5789 else
5790 acl_final_exec_prefix="$exec_prefix"
5791 fi
5792 acl_save_prefix="$prefix"
5793 prefix="$acl_final_prefix"
5794 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5795 prefix="$acl_save_prefix"
5796
5797
5798
5799 # Make sure we can run config.sub.
5800 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5801 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5802
5803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5804 printf %s "checking build system type... " >&6; }
5805 if test ${ac_cv_build+y}
5806 then :
5807 printf %s "(cached) " >&6
5808 else case e in #(
5809 e) ac_build_alias=$build_alias
5810 test "x$ac_build_alias" = x &&
5811 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5812 test "x$ac_build_alias" = x &&
5813 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5814 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5815 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5816 ;;
5817 esac
5818 fi
5819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5820 printf "%s\n" "$ac_cv_build" >&6; }
5821 case $ac_cv_build in
5822 *-*-*) ;;
5823 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5824 esac
5825 build=$ac_cv_build
5826 ac_save_IFS=$IFS; IFS='-'
5827 set x $ac_cv_build
5828 shift
5829 build_cpu=$1
5830 build_vendor=$2
5831 shift; shift
5832 # Remember, the first character of IFS is used to create $*,
5833 # except with old shells:
5834 build_os=$*
5835 IFS=$ac_save_IFS
5836 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5837
5838
5839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5840 printf %s "checking host system type... " >&6; }
5841 if test ${ac_cv_host+y}
5842 then :
5843 printf %s "(cached) " >&6
5844 else case e in #(
5845 e) if test "x$host_alias" = x; then
5846 ac_cv_host=$ac_cv_build
5847 else
5848 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5849 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5850 fi
5851 ;;
5852 esac
5853 fi
5854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5855 printf "%s\n" "$ac_cv_host" >&6; }
5856 case $ac_cv_host in
5857 *-*-*) ;;
5858 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5859 esac
5860 host=$ac_cv_host
5861 ac_save_IFS=$IFS; IFS='-'
5862 set x $ac_cv_host
5863 shift
5864 host_cpu=$1
5865 host_vendor=$2
5866 shift; shift
5867 # Remember, the first character of IFS is used to create $*,
5868 # except with old shells:
5869 host_os=$*
5870 IFS=$ac_save_IFS
5871 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5872
5873
5874
5875
5876 # Check whether --with-gnu-ld was given.
5877 if test ${with_gnu_ld+y}
5878 then :
5879 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5880 else case e in #(
5881 e) with_gnu_ld=no ;;
5882 esac
5883 fi
5884
5885 # Prepare PATH_SEPARATOR.
5886 # The user is always right.
5887 if test "${PATH_SEPARATOR+set}" != set; then
5888 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5889 # contains only /bin. Note that ksh looks also at the FPATH variable,
5890 # so we have to set that as well for the test.
5891 PATH_SEPARATOR=:
5892 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5893 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5894 || PATH_SEPARATOR=';'
5895 }
5896 fi
5897
5898 ac_prog=ld
5899 if test "$GCC" = yes; then
5900 # Check if gcc -print-prog-name=ld gives a path.
5901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5902 printf %s "checking for ld used by $CC... " >&6; }
5903 case $host in
5904 *-*-mingw*)
5905 # gcc leaves a trailing carriage return which upsets mingw
5906 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5907 *)
5908 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5909 esac
5910 case $ac_prog in
5911 # Accept absolute paths.
5912 [\\/]* | ?:[\\/]*)
5913 re_direlt='/[^/][^/]*/\.\./'
5914 # Canonicalize the pathname of ld
5915 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
5916 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
5917 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5918 done
5919 test -z "$LD" && LD="$ac_prog"
5920 ;;
5921 "")
5922 # If it fails, then pretend we aren't using GCC.
5923 ac_prog=ld
5924 ;;
5925 *)
5926 # If it is relative, then search for the first ld in PATH.
5927 with_gnu_ld=unknown
5928 ;;
5929 esac
5930 elif test "$with_gnu_ld" = yes; then
5931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5932 printf %s "checking for GNU ld... " >&6; }
5933 else
5934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5935 printf %s "checking for non-GNU ld... " >&6; }
5936 fi
5937 if test ${acl_cv_path_LD+y}
5938 then :
5939 printf %s "(cached) " >&6
5940 else case e in #(
5941 e) if test -z "$LD"; then
5942 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5943 for ac_dir in $PATH; do
5944 IFS="$acl_save_ifs"
5945 test -z "$ac_dir" && ac_dir=.
5946 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5947 acl_cv_path_LD="$ac_dir/$ac_prog"
5948 # Check to see if the program is GNU ld. I'd rather use --version,
5949 # but apparently some variants of GNU ld only accept -v.
5950 # Break only if it was the GNU/non-GNU ld that we prefer.
5951 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
5952 *GNU* | *'with BFD'*)
5953 test "$with_gnu_ld" != no && break
5954 ;;
5955 *)
5956 test "$with_gnu_ld" != yes && break
5957 ;;
5958 esac
5959 fi
5960 done
5961 IFS="$acl_save_ifs"
5962 else
5963 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5964 fi ;;
5965 esac
5966 fi
5967
5968 LD="$acl_cv_path_LD"
5969 if test -n "$LD"; then
5970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5971 printf "%s\n" "$LD" >&6; }
5972 else
5973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5974 printf "%s\n" "no" >&6; }
5975 fi
5976 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5978 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5979 if test ${acl_cv_prog_gnu_ld+y}
5980 then :
5981 printf %s "(cached) " >&6
5982 else case e in #(
5983 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5984 case `$LD -v 2>&1 </dev/null` in
5985 *GNU* | *'with BFD'*)
5986 acl_cv_prog_gnu_ld=yes
5987 ;;
5988 *)
5989 acl_cv_prog_gnu_ld=no
5990 ;;
5991 esac ;;
5992 esac
5993 fi
5994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5995 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
5996 with_gnu_ld=$acl_cv_prog_gnu_ld
5997
5998
5999
6000
6001
6002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
6003 printf %s "checking for shared library run path origin... " >&6; }
6004 if test ${acl_cv_rpath+y}
6005 then :
6006 printf %s "(cached) " >&6
6007 else case e in #(
6008 e)
6009 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6010 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6011 . ./conftest.sh
6012 rm -f ./conftest.sh
6013 acl_cv_rpath=done
6014 ;;
6015 esac
6016 fi
6017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
6018 printf "%s\n" "$acl_cv_rpath" >&6; }
6019 wl="$acl_cv_wl"
6020 acl_libext="$acl_cv_libext"
6021 acl_shlibext="$acl_cv_shlibext"
6022 acl_libname_spec="$acl_cv_libname_spec"
6023 acl_library_names_spec="$acl_cv_library_names_spec"
6024 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6025 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6026 acl_hardcode_direct="$acl_cv_hardcode_direct"
6027 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
6028 # Check whether --enable-rpath was given.
6029 if test ${enable_rpath+y}
6030 then :
6031 enableval=$enable_rpath; :
6032 else case e in #(
6033 e) enable_rpath=yes ;;
6034 esac
6035 fi
6036
6037
6038 ac_ext=c
6039 ac_cpp='$CPP $CPPFLAGS'
6040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6044 printf %s "checking how to run the C preprocessor... " >&6; }
6045 # On Suns, sometimes $CPP names a directory.
6046 if test -n "$CPP" && test -d "$CPP"; then
6047 CPP=
6048 fi
6049 if test -z "$CPP"; then
6050 if test ${ac_cv_prog_CPP+y}
6051 then :
6052 printf %s "(cached) " >&6
6053 else case e in #(
6054 e) # Double quotes because $CC needs to be expanded
6055 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
6056 do
6057 ac_preproc_ok=false
6058 for ac_c_preproc_warn_flag in '' yes
6059 do
6060 # Use a header file that comes with gcc, so configuring glibc
6061 # with a fresh cross-compiler works.
6062 # On the NeXT, cc -E runs the code through the compiler's parser,
6063 # not just through cpp. "Syntax error" is here to catch this case.
6064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6065 /* end confdefs.h. */
6066 #include <limits.h>
6067 Syntax error
6068 _ACEOF
6069 if ac_fn_c_try_cpp "$LINENO"
6070 then :
6071
6072 else case e in #(
6073 e) # Broken: fails on valid input.
6074 continue ;;
6075 esac
6076 fi
6077 rm -f conftest.err conftest.i conftest.$ac_ext
6078
6079 # OK, works on sane cases. Now check whether nonexistent headers
6080 # can be detected and how.
6081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6082 /* end confdefs.h. */
6083 #include <ac_nonexistent.h>
6084 _ACEOF
6085 if ac_fn_c_try_cpp "$LINENO"
6086 then :
6087 # Broken: success on invalid input.
6088 continue
6089 else case e in #(
6090 e) # Passes both tests.
6091 ac_preproc_ok=:
6092 break ;;
6093 esac
6094 fi
6095 rm -f conftest.err conftest.i conftest.$ac_ext
6096
6097 done
6098 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6099 rm -f conftest.i conftest.err conftest.$ac_ext
6100 if $ac_preproc_ok
6101 then :
6102 break
6103 fi
6104
6105 done
6106 ac_cv_prog_CPP=$CPP
6107 ;;
6108 esac
6109 fi
6110 CPP=$ac_cv_prog_CPP
6111 else
6112 ac_cv_prog_CPP=$CPP
6113 fi
6114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6115 printf "%s\n" "$CPP" >&6; }
6116 ac_preproc_ok=false
6117 for ac_c_preproc_warn_flag in '' yes
6118 do
6119 # Use a header file that comes with gcc, so configuring glibc
6120 # with a fresh cross-compiler works.
6121 # On the NeXT, cc -E runs the code through the compiler's parser,
6122 # not just through cpp. "Syntax error" is here to catch this case.
6123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6124 /* end confdefs.h. */
6125 #include <limits.h>
6126 Syntax error
6127 _ACEOF
6128 if ac_fn_c_try_cpp "$LINENO"
6129 then :
6130
6131 else case e in #(
6132 e) # Broken: fails on valid input.
6133 continue ;;
6134 esac
6135 fi
6136 rm -f conftest.err conftest.i conftest.$ac_ext
6137
6138 # OK, works on sane cases. Now check whether nonexistent headers
6139 # can be detected and how.
6140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6141 /* end confdefs.h. */
6142 #include <ac_nonexistent.h>
6143 _ACEOF
6144 if ac_fn_c_try_cpp "$LINENO"
6145 then :
6146 # Broken: success on invalid input.
6147 continue
6148 else case e in #(
6149 e) # Passes both tests.
6150 ac_preproc_ok=:
6151 break ;;
6152 esac
6153 fi
6154 rm -f conftest.err conftest.i conftest.$ac_ext
6155
6156 done
6157 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6158 rm -f conftest.i conftest.err conftest.$ac_ext
6159 if $ac_preproc_ok
6160 then :
6161
6162 else case e in #(
6163 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
6164 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
6165 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6166 See 'config.log' for more details" "$LINENO" 5; } ;;
6167 esac
6168 fi
6169
6170 ac_ext=c
6171 ac_cpp='$CPP $CPPFLAGS'
6172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6175
6176
6177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
6178 printf %s "checking for egrep -e... " >&6; }
6179 if test ${ac_cv_path_EGREP_TRADITIONAL+y}
6180 then :
6181 printf %s "(cached) " >&6
6182 else case e in #(
6183 e) if test -z "$EGREP_TRADITIONAL"; then
6184 ac_path_EGREP_TRADITIONAL_found=false
6185 # Loop through the user's path and test for each of PROGNAME-LIST
6186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6187 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6188 do
6189 IFS=$as_save_IFS
6190 case $as_dir in #(((
6191 '') as_dir=./ ;;
6192 */) ;;
6193 *) as_dir=$as_dir/ ;;
6194 esac
6195 for ac_prog in grep ggrep
6196 do
6197 for ac_exec_ext in '' $ac_executable_extensions; do
6198 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
6199 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
6200 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
6201 # Check for GNU $ac_path_EGREP_TRADITIONAL
6202 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
6203 *GNU*)
6204 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
6205 #(
6206 *)
6207 ac_count=0
6208 printf %s 0123456789 >"conftest.in"
6209 while :
6210 do
6211 cat "conftest.in" "conftest.in" >"conftest.tmp"
6212 mv "conftest.tmp" "conftest.in"
6213 cp "conftest.in" "conftest.nl"
6214 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
6215 "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6216 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6217 as_fn_arith $ac_count + 1 && ac_count=$as_val
6218 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
6219 # Best one so far, save it but keep looking for a better one
6220 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
6221 ac_path_EGREP_TRADITIONAL_max=$ac_count
6222 fi
6223 # 10*(2^10) chars as input seems more than enough
6224 test $ac_count -gt 10 && break
6225 done
6226 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6227 esac
6228
6229 $ac_path_EGREP_TRADITIONAL_found && break 3
6230 done
6231 done
6232 done
6233 IFS=$as_save_IFS
6234 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
6235 :
6236 fi
6237 else
6238 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
6239 fi
6240
6241 if test "$ac_cv_path_EGREP_TRADITIONAL"
6242 then :
6243 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
6244 else case e in #(
6245 e) if test -z "$EGREP_TRADITIONAL"; then
6246 ac_path_EGREP_TRADITIONAL_found=false
6247 # Loop through the user's path and test for each of PROGNAME-LIST
6248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6249 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6250 do
6251 IFS=$as_save_IFS
6252 case $as_dir in #(((
6253 '') as_dir=./ ;;
6254 */) ;;
6255 *) as_dir=$as_dir/ ;;
6256 esac
6257 for ac_prog in egrep
6258 do
6259 for ac_exec_ext in '' $ac_executable_extensions; do
6260 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
6261 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
6262 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
6263 # Check for GNU $ac_path_EGREP_TRADITIONAL
6264 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
6265 *GNU*)
6266 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
6267 #(
6268 *)
6269 ac_count=0
6270 printf %s 0123456789 >"conftest.in"
6271 while :
6272 do
6273 cat "conftest.in" "conftest.in" >"conftest.tmp"
6274 mv "conftest.tmp" "conftest.in"
6275 cp "conftest.in" "conftest.nl"
6276 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
6277 "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6278 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6279 as_fn_arith $ac_count + 1 && ac_count=$as_val
6280 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
6281 # Best one so far, save it but keep looking for a better one
6282 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
6283 ac_path_EGREP_TRADITIONAL_max=$ac_count
6284 fi
6285 # 10*(2^10) chars as input seems more than enough
6286 test $ac_count -gt 10 && break
6287 done
6288 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6289 esac
6290
6291 $ac_path_EGREP_TRADITIONAL_found && break 3
6292 done
6293 done
6294 done
6295 IFS=$as_save_IFS
6296 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
6297 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6298 fi
6299 else
6300 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
6301 fi
6302 ;;
6303 esac
6304 fi ;;
6305 esac
6306 fi
6307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
6308 printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
6309 EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
6310
6311
6312
6313 acl_libdirstem=lib
6314 acl_libdirstem2=
6315 case "$host_os" in
6316 solaris*)
6317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
6318 printf %s "checking for 64-bit host... " >&6; }
6319 if test ${gl_cv_solaris_64bit+y}
6320 then :
6321 printf %s "(cached) " >&6
6322 else case e in #(
6323 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6324 /* end confdefs.h. */
6325
6326 #ifdef _LP64
6327 sixtyfour bits
6328 #endif
6329
6330 _ACEOF
6331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6332 $EGREP_TRADITIONAL "sixtyfour bits" >/dev/null 2>&1
6333 then :
6334 gl_cv_solaris_64bit=yes
6335 else case e in #(
6336 e) gl_cv_solaris_64bit=no ;;
6337 esac
6338 fi
6339 rm -rf conftest*
6340
6341 ;;
6342 esac
6343 fi
6344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
6345 printf "%s\n" "$gl_cv_solaris_64bit" >&6; }
6346 if test $gl_cv_solaris_64bit = yes; then
6347 acl_libdirstem=lib/64
6348 case "$host_cpu" in
6349 sparc*) acl_libdirstem2=lib/sparcv9 ;;
6350 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
6351 esac
6352 fi
6353 ;;
6354 *)
6355 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
6356 if test -n "$searchpath"; then
6357 acl_save_IFS="${IFS= }"; IFS=":"
6358 for searchdir in $searchpath; do
6359 if test -d "$searchdir"; then
6360 case "$searchdir" in
6361 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
6362 */../ | */.. )
6363 # Better ignore directories of this form. They are misleading.
6364 ;;
6365 *) searchdir=`cd "$searchdir" && pwd`
6366 case "$searchdir" in
6367 */lib64 ) acl_libdirstem=lib64 ;;
6368 esac ;;
6369 esac
6370 fi
6371 done
6372 IFS="$acl_save_IFS"
6373 fi
6374 ;;
6375 esac
6376 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389 use_additional=yes
6390
6391 acl_save_prefix="$prefix"
6392 prefix="$acl_final_prefix"
6393 acl_save_exec_prefix="$exec_prefix"
6394 exec_prefix="$acl_final_exec_prefix"
6395
6396 eval additional_includedir=\"$includedir\"
6397 eval additional_libdir=\"$libdir\"
6398
6399 exec_prefix="$acl_save_exec_prefix"
6400 prefix="$acl_save_prefix"
6401
6402
6403 # Check whether --with-libiconv-prefix was given.
6404 if test ${with_libiconv_prefix+y}
6405 then :
6406 withval=$with_libiconv_prefix;
6407 if test "X$withval" = "Xno"; then
6408 use_additional=no
6409 else
6410 if test "X$withval" = "X"; then
6411
6412 acl_save_prefix="$prefix"
6413 prefix="$acl_final_prefix"
6414 acl_save_exec_prefix="$exec_prefix"
6415 exec_prefix="$acl_final_exec_prefix"
6416
6417 eval additional_includedir=\"$includedir\"
6418 eval additional_libdir=\"$libdir\"
6419
6420 exec_prefix="$acl_save_exec_prefix"
6421 prefix="$acl_save_prefix"
6422
6423 else
6424 additional_includedir="$withval/include"
6425 additional_libdir="$withval/$acl_libdirstem"
6426 if test "$acl_libdirstem2" != "$acl_libdirstem" \
6427 && ! test -d "$withval/$acl_libdirstem"; then
6428 additional_libdir="$withval/$acl_libdirstem2"
6429 fi
6430 fi
6431 fi
6432
6433 fi
6434
6435 LIBICONV=
6436 LTLIBICONV=
6437 INCICONV=
6438 LIBICONV_PREFIX=
6439 HAVE_LIBICONV=
6440 rpathdirs=
6441 ltrpathdirs=
6442 names_already_handled=
6443 names_next_round='iconv '
6444 while test -n "$names_next_round"; do
6445 names_this_round="$names_next_round"
6446 names_next_round=
6447 for name in $names_this_round; do
6448 already_handled=
6449 for n in $names_already_handled; do
6450 if test "$n" = "$name"; then
6451 already_handled=yes
6452 break
6453 fi
6454 done
6455 if test -z "$already_handled"; then
6456 names_already_handled="$names_already_handled $name"
6457 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
6458 eval value=\"\$HAVE_LIB$uppername\"
6459 if test -n "$value"; then
6460 if test "$value" = yes; then
6461 eval value=\"\$LIB$uppername\"
6462 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6463 eval value=\"\$LTLIB$uppername\"
6464 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6465 else
6466 :
6467 fi
6468 else
6469 found_dir=
6470 found_la=
6471 found_so=
6472 found_a=
6473 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
6474 if test -n "$acl_shlibext"; then
6475 shrext=".$acl_shlibext" # typically: shrext=.so
6476 else
6477 shrext=
6478 fi
6479 if test $use_additional = yes; then
6480 dir="$additional_libdir"
6481 if test -n "$acl_shlibext"; then
6482 if test -f "$dir/$libname$shrext"; then
6483 found_dir="$dir"
6484 found_so="$dir/$libname$shrext"
6485 else
6486 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6487 ver=`(cd "$dir" && \
6488 for f in "$libname$shrext".*; do echo "$f"; done \
6489 | sed -e "s,^$libname$shrext\\\\.,," \
6490 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6491 | sed 1q ) 2>/dev/null`
6492 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6493 found_dir="$dir"
6494 found_so="$dir/$libname$shrext.$ver"
6495 fi
6496 else
6497 eval library_names=\"$acl_library_names_spec\"
6498 for f in $library_names; do
6499 if test -f "$dir/$f"; then
6500 found_dir="$dir"
6501 found_so="$dir/$f"
6502 break
6503 fi
6504 done
6505 fi
6506 fi
6507 fi
6508 if test "X$found_dir" = "X"; then
6509 if test -f "$dir/$libname.$acl_libext"; then
6510 found_dir="$dir"
6511 found_a="$dir/$libname.$acl_libext"
6512 fi
6513 fi
6514 if test "X$found_dir" != "X"; then
6515 if test -f "$dir/$libname.la"; then
6516 found_la="$dir/$libname.la"
6517 fi
6518 fi
6519 fi
6520 if test "X$found_dir" = "X"; then
6521 for x in $LDFLAGS $LTLIBICONV; do
6522
6523 acl_save_prefix="$prefix"
6524 prefix="$acl_final_prefix"
6525 acl_save_exec_prefix="$exec_prefix"
6526 exec_prefix="$acl_final_exec_prefix"
6527 eval x=\"$x\"
6528 exec_prefix="$acl_save_exec_prefix"
6529 prefix="$acl_save_prefix"
6530
6531 case "$x" in
6532 -L*)
6533 dir=`echo "X$x" | sed -e 's/^X-L//'`
6534 if test -n "$acl_shlibext"; then
6535 if test -f "$dir/$libname$shrext"; then
6536 found_dir="$dir"
6537 found_so="$dir/$libname$shrext"
6538 else
6539 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6540 ver=`(cd "$dir" && \
6541 for f in "$libname$shrext".*; do echo "$f"; done \
6542 | sed -e "s,^$libname$shrext\\\\.,," \
6543 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6544 | sed 1q ) 2>/dev/null`
6545 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6546 found_dir="$dir"
6547 found_so="$dir/$libname$shrext.$ver"
6548 fi
6549 else
6550 eval library_names=\"$acl_library_names_spec\"
6551 for f in $library_names; do
6552 if test -f "$dir/$f"; then
6553 found_dir="$dir"
6554 found_so="$dir/$f"
6555 break
6556 fi
6557 done
6558 fi
6559 fi
6560 fi
6561 if test "X$found_dir" = "X"; then
6562 if test -f "$dir/$libname.$acl_libext"; then
6563 found_dir="$dir"
6564 found_a="$dir/$libname.$acl_libext"
6565 fi
6566 fi
6567 if test "X$found_dir" != "X"; then
6568 if test -f "$dir/$libname.la"; then
6569 found_la="$dir/$libname.la"
6570 fi
6571 fi
6572 ;;
6573 esac
6574 if test "X$found_dir" != "X"; then
6575 break
6576 fi
6577 done
6578 fi
6579 if test "X$found_dir" != "X"; then
6580 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6581 if test "X$found_so" != "X"; then
6582 if test "$enable_rpath" = no \
6583 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6584 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6585 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6586 else
6587 haveit=
6588 for x in $ltrpathdirs; do
6589 if test "X$x" = "X$found_dir"; then
6590 haveit=yes
6591 break
6592 fi
6593 done
6594 if test -z "$haveit"; then
6595 ltrpathdirs="$ltrpathdirs $found_dir"
6596 fi
6597 if test "$acl_hardcode_direct" = yes; then
6598 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6599 else
6600 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6601 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6602 haveit=
6603 for x in $rpathdirs; do
6604 if test "X$x" = "X$found_dir"; then
6605 haveit=yes
6606 break
6607 fi
6608 done
6609 if test -z "$haveit"; then
6610 rpathdirs="$rpathdirs $found_dir"
6611 fi
6612 else
6613 haveit=
6614 for x in $LDFLAGS $LIBICONV; do
6615
6616 acl_save_prefix="$prefix"
6617 prefix="$acl_final_prefix"
6618 acl_save_exec_prefix="$exec_prefix"
6619 exec_prefix="$acl_final_exec_prefix"
6620 eval x=\"$x\"
6621 exec_prefix="$acl_save_exec_prefix"
6622 prefix="$acl_save_prefix"
6623
6624 if test "X$x" = "X-L$found_dir"; then
6625 haveit=yes
6626 break
6627 fi
6628 done
6629 if test -z "$haveit"; then
6630 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6631 fi
6632 if test "$acl_hardcode_minus_L" != no; then
6633 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6634 else
6635 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6636 fi
6637 fi
6638 fi
6639 fi
6640 else
6641 if test "X$found_a" != "X"; then
6642 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6643 else
6644 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6645 fi
6646 fi
6647 additional_includedir=
6648 case "$found_dir" in
6649 */$acl_libdirstem | */$acl_libdirstem/)
6650 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6651 if test "$name" = 'iconv'; then
6652 LIBICONV_PREFIX="$basedir"
6653 fi
6654 additional_includedir="$basedir/include"
6655 ;;
6656 */$acl_libdirstem2 | */$acl_libdirstem2/)
6657 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6658 if test "$name" = 'iconv'; then
6659 LIBICONV_PREFIX="$basedir"
6660 fi
6661 additional_includedir="$basedir/include"
6662 ;;
6663 esac
6664 if test "X$additional_includedir" != "X"; then
6665 if test "X$additional_includedir" != "X/usr/include"; then
6666 haveit=
6667 if test "X$additional_includedir" = "X/usr/local/include"; then
6668 if test -n "$GCC"; then
6669 case $host_os in
6670 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6671 esac
6672 fi
6673 fi
6674 if test -z "$haveit"; then
6675 for x in $CPPFLAGS $INCICONV; do
6676
6677 acl_save_prefix="$prefix"
6678 prefix="$acl_final_prefix"
6679 acl_save_exec_prefix="$exec_prefix"
6680 exec_prefix="$acl_final_exec_prefix"
6681 eval x=\"$x\"
6682 exec_prefix="$acl_save_exec_prefix"
6683 prefix="$acl_save_prefix"
6684
6685 if test "X$x" = "X-I$additional_includedir"; then
6686 haveit=yes
6687 break
6688 fi
6689 done
6690 if test -z "$haveit"; then
6691 if test -d "$additional_includedir"; then
6692 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6693 fi
6694 fi
6695 fi
6696 fi
6697 fi
6698 if test -n "$found_la"; then
6699 save_libdir="$libdir"
6700 case "$found_la" in
6701 */* | *\\*) . "$found_la" ;;
6702 *) . "./$found_la" ;;
6703 esac
6704 libdir="$save_libdir"
6705 for dep in $dependency_libs; do
6706 case "$dep" in
6707 -L*)
6708 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6709 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6710 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6711 haveit=
6712 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6713 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6714 if test -n "$GCC"; then
6715 case $host_os in
6716 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6717 esac
6718 fi
6719 fi
6720 if test -z "$haveit"; then
6721 haveit=
6722 for x in $LDFLAGS $LIBICONV; do
6723
6724 acl_save_prefix="$prefix"
6725 prefix="$acl_final_prefix"
6726 acl_save_exec_prefix="$exec_prefix"
6727 exec_prefix="$acl_final_exec_prefix"
6728 eval x=\"$x\"
6729 exec_prefix="$acl_save_exec_prefix"
6730 prefix="$acl_save_prefix"
6731
6732 if test "X$x" = "X-L$additional_libdir"; then
6733 haveit=yes
6734 break
6735 fi
6736 done
6737 if test -z "$haveit"; then
6738 if test -d "$additional_libdir"; then
6739 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6740 fi
6741 fi
6742 haveit=
6743 for x in $LDFLAGS $LTLIBICONV; do
6744
6745 acl_save_prefix="$prefix"
6746 prefix="$acl_final_prefix"
6747 acl_save_exec_prefix="$exec_prefix"
6748 exec_prefix="$acl_final_exec_prefix"
6749 eval x=\"$x\"
6750 exec_prefix="$acl_save_exec_prefix"
6751 prefix="$acl_save_prefix"
6752
6753 if test "X$x" = "X-L$additional_libdir"; then
6754 haveit=yes
6755 break
6756 fi
6757 done
6758 if test -z "$haveit"; then
6759 if test -d "$additional_libdir"; then
6760 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6761 fi
6762 fi
6763 fi
6764 fi
6765 ;;
6766 -R*)
6767 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6768 if test "$enable_rpath" != no; then
6769 haveit=
6770 for x in $rpathdirs; do
6771 if test "X$x" = "X$dir"; then
6772 haveit=yes
6773 break
6774 fi
6775 done
6776 if test -z "$haveit"; then
6777 rpathdirs="$rpathdirs $dir"
6778 fi
6779 haveit=
6780 for x in $ltrpathdirs; do
6781 if test "X$x" = "X$dir"; then
6782 haveit=yes
6783 break
6784 fi
6785 done
6786 if test -z "$haveit"; then
6787 ltrpathdirs="$ltrpathdirs $dir"
6788 fi
6789 fi
6790 ;;
6791 -l*)
6792 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6793 ;;
6794 *.la)
6795 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6796 ;;
6797 *)
6798 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6799 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6800 ;;
6801 esac
6802 done
6803 fi
6804 else
6805 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6806 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6807 fi
6808 fi
6809 fi
6810 done
6811 done
6812 if test "X$rpathdirs" != "X"; then
6813 if test -n "$acl_hardcode_libdir_separator"; then
6814 alldirs=
6815 for found_dir in $rpathdirs; do
6816 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6817 done
6818 acl_save_libdir="$libdir"
6819 libdir="$alldirs"
6820 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6821 libdir="$acl_save_libdir"
6822 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6823 else
6824 for found_dir in $rpathdirs; do
6825 acl_save_libdir="$libdir"
6826 libdir="$found_dir"
6827 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6828 libdir="$acl_save_libdir"
6829 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6830 done
6831 fi
6832 fi
6833 if test "X$ltrpathdirs" != "X"; then
6834 for found_dir in $ltrpathdirs; do
6835 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6836 done
6837 fi
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
6870 printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
6871 if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
6872 then :
6873 printf %s "(cached) " >&6
6874 else case e in #(
6875 e) gt_saved_LIBS="$LIBS"
6876 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6878 /* end confdefs.h. */
6879 #include <CoreFoundation/CFPreferences.h>
6880 int
6881 main (void)
6882 {
6883 CFPreferencesCopyAppValue(NULL, NULL)
6884 ;
6885 return 0;
6886 }
6887 _ACEOF
6888 if ac_fn_c_try_link "$LINENO"
6889 then :
6890 gt_cv_func_CFPreferencesCopyAppValue=yes
6891 else case e in #(
6892 e) gt_cv_func_CFPreferencesCopyAppValue=no ;;
6893 esac
6894 fi
6895 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6896 conftest$ac_exeext conftest.$ac_ext
6897 LIBS="$gt_saved_LIBS" ;;
6898 esac
6899 fi
6900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6901 printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6902 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6903
6904 printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
6905
6906 fi
6907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
6908 printf %s "checking for CFLocaleCopyPreferredLanguages... " >&6; }
6909 if test ${gt_cv_func_CFLocaleCopyPreferredLanguages+y}
6910 then :
6911 printf %s "(cached) " >&6
6912 else case e in #(
6913 e) gt_saved_LIBS="$LIBS"
6914 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6916 /* end confdefs.h. */
6917 #include <CoreFoundation/CFLocale.h>
6918 int
6919 main (void)
6920 {
6921 CFLocaleCopyPreferredLanguages();
6922 ;
6923 return 0;
6924 }
6925 _ACEOF
6926 if ac_fn_c_try_link "$LINENO"
6927 then :
6928 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
6929 else case e in #(
6930 e) gt_cv_func_CFLocaleCopyPreferredLanguages=no ;;
6931 esac
6932 fi
6933 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6934 conftest$ac_exeext conftest.$ac_ext
6935 LIBS="$gt_saved_LIBS" ;;
6936 esac
6937 fi
6938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
6939 printf "%s\n" "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
6940 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
6941
6942 printf "%s\n" "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
6943
6944 fi
6945 INTL_MACOSX_LIBS=
6946 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
6947 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
6948 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices"
6949 fi
6950
6951
6952
6953
6954
6955
6956 LIBINTL=
6957 LTLIBINTL=
6958 POSUB=
6959
6960 case " $gt_needs " in
6961 *" need-formatstring-macros "*) gt_api_version=3 ;;
6962 *" need-ngettext "*) gt_api_version=2 ;;
6963 *) gt_api_version=1 ;;
6964 esac
6965 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
6966 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
6967
6968 if test "$USE_NLS" = "yes"; then
6969 gt_use_preinstalled_gnugettext=no
6970
6971
6972 if test $gt_api_version -ge 3; then
6973 gt_revision_test_code='
6974 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6975 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
6976 #endif
6977 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
6978 '
6979 else
6980 gt_revision_test_code=
6981 fi
6982 if test $gt_api_version -ge 2; then
6983 gt_expression_test_code=' + * ngettext ("", "", 0)'
6984 else
6985 gt_expression_test_code=
6986 fi
6987
6988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
6989 printf %s "checking for GNU gettext in libc... " >&6; }
6990 if eval test \${$gt_func_gnugettext_libc+y}
6991 then :
6992 printf %s "(cached) " >&6
6993 else case e in #(
6994 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6995 /* end confdefs.h. */
6996
6997 #include <libintl.h>
6998 $gt_revision_test_code
6999 extern int _nl_msg_cat_cntr;
7000 extern int *_nl_domain_bindings;
7001
7002 int
7003 main (void)
7004 {
7005
7006 bindtextdomain ("", "");
7007 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
7008
7009 ;
7010 return 0;
7011 }
7012 _ACEOF
7013 if ac_fn_c_try_link "$LINENO"
7014 then :
7015 eval "$gt_func_gnugettext_libc=yes"
7016 else case e in #(
7017 e) eval "$gt_func_gnugettext_libc=no" ;;
7018 esac
7019 fi
7020 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7021 conftest$ac_exeext conftest.$ac_ext ;;
7022 esac
7023 fi
7024 eval ac_res=\$$gt_func_gnugettext_libc
7025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7026 printf "%s\n" "$ac_res" >&6; }
7027
7028 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
7029
7030
7031
7032
7033
7034 am_save_CPPFLAGS="$CPPFLAGS"
7035
7036 for element in $INCICONV; do
7037 haveit=
7038 for x in $CPPFLAGS; do
7039
7040 acl_save_prefix="$prefix"
7041 prefix="$acl_final_prefix"
7042 acl_save_exec_prefix="$exec_prefix"
7043 exec_prefix="$acl_final_exec_prefix"
7044 eval x=\"$x\"
7045 exec_prefix="$acl_save_exec_prefix"
7046 prefix="$acl_save_prefix"
7047
7048 if test "X$x" = "X$element"; then
7049 haveit=yes
7050 break
7051 fi
7052 done
7053 if test -z "$haveit"; then
7054 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7055 fi
7056 done
7057
7058
7059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7060 printf %s "checking for iconv... " >&6; }
7061 if test ${am_cv_func_iconv+y}
7062 then :
7063 printf %s "(cached) " >&6
7064 else case e in #(
7065 e)
7066 am_cv_func_iconv="no, consider installing GNU libiconv"
7067 am_cv_lib_iconv=no
7068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7069 /* end confdefs.h. */
7070
7071 #include <stdlib.h>
7072 #include <iconv.h>
7073
7074 int
7075 main (void)
7076 {
7077 iconv_t cd = iconv_open("","");
7078 iconv(cd,NULL,NULL,NULL,NULL);
7079 iconv_close(cd);
7080 ;
7081 return 0;
7082 }
7083 _ACEOF
7084 if ac_fn_c_try_link "$LINENO"
7085 then :
7086 am_cv_func_iconv=yes
7087 fi
7088 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7089 conftest$ac_exeext conftest.$ac_ext
7090 if test "$am_cv_func_iconv" != yes; then
7091 am_save_LIBS="$LIBS"
7092 LIBS="$LIBS $LIBICONV"
7093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7094 /* end confdefs.h. */
7095
7096 #include <stdlib.h>
7097 #include <iconv.h>
7098
7099 int
7100 main (void)
7101 {
7102 iconv_t cd = iconv_open("","");
7103 iconv(cd,NULL,NULL,NULL,NULL);
7104 iconv_close(cd);
7105 ;
7106 return 0;
7107 }
7108 _ACEOF
7109 if ac_fn_c_try_link "$LINENO"
7110 then :
7111 am_cv_lib_iconv=yes
7112 am_cv_func_iconv=yes
7113 fi
7114 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7115 conftest$ac_exeext conftest.$ac_ext
7116 LIBS="$am_save_LIBS"
7117 fi
7118 ;;
7119 esac
7120 fi
7121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7122 printf "%s\n" "$am_cv_func_iconv" >&6; }
7123 if test "$am_cv_func_iconv" = yes; then
7124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
7125 printf %s "checking for working iconv... " >&6; }
7126 if test ${am_cv_func_iconv_works+y}
7127 then :
7128 printf %s "(cached) " >&6
7129 else case e in #(
7130 e)
7131 am_save_LIBS="$LIBS"
7132 if test $am_cv_lib_iconv = yes; then
7133 LIBS="$LIBS $LIBICONV"
7134 fi
7135 if test "$cross_compiling" = yes
7136 then :
7137
7138 case "$host_os" in
7139 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
7140 *) am_cv_func_iconv_works="guessing yes" ;;
7141 esac
7142
7143 else case e in #(
7144 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7145 /* end confdefs.h. */
7146
7147 #include <iconv.h>
7148 #include <string.h>
7149 int main ()
7150 {
7151 int result = 0;
7152 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
7153 returns. */
7154 {
7155 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
7156 if (cd_utf8_to_88591 != (iconv_t)(-1))
7157 {
7158 static const char input[] = "\342\202\254"; /* EURO SIGN */
7159 char buf[10];
7160 const char *inptr = input;
7161 size_t inbytesleft = strlen (input);
7162 char *outptr = buf;
7163 size_t outbytesleft = sizeof (buf);
7164 size_t res = iconv (cd_utf8_to_88591,
7165 (char **) &inptr, &inbytesleft,
7166 &outptr, &outbytesleft);
7167 if (res == 0)
7168 result |= 1;
7169 iconv_close (cd_utf8_to_88591);
7170 }
7171 }
7172 /* Test against Solaris 10 bug: Failures are not distinguishable from
7173 successful returns. */
7174 {
7175 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
7176 if (cd_ascii_to_88591 != (iconv_t)(-1))
7177 {
7178 static const char input[] = "\263";
7179 char buf[10];
7180 const char *inptr = input;
7181 size_t inbytesleft = strlen (input);
7182 char *outptr = buf;
7183 size_t outbytesleft = sizeof (buf);
7184 size_t res = iconv (cd_ascii_to_88591,
7185 (char **) &inptr, &inbytesleft,
7186 &outptr, &outbytesleft);
7187 if (res == 0)
7188 result |= 2;
7189 iconv_close (cd_ascii_to_88591);
7190 }
7191 }
7192 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
7193 {
7194 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
7195 if (cd_88591_to_utf8 != (iconv_t)(-1))
7196 {
7197 static const char input[] = "\304";
7198 static char buf[2] = { (char)0xDE, (char)0xAD };
7199 const char *inptr = input;
7200 size_t inbytesleft = 1;
7201 char *outptr = buf;
7202 size_t outbytesleft = 1;
7203 size_t res = iconv (cd_88591_to_utf8,
7204 (char **) &inptr, &inbytesleft,
7205 &outptr, &outbytesleft);
7206 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
7207 result |= 4;
7208 iconv_close (cd_88591_to_utf8);
7209 }
7210 }
7211 #if 0 /* This bug could be worked around by the caller. */
7212 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
7213 {
7214 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
7215 if (cd_88591_to_utf8 != (iconv_t)(-1))
7216 {
7217 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
7218 char buf[50];
7219 const char *inptr = input;
7220 size_t inbytesleft = strlen (input);
7221 char *outptr = buf;
7222 size_t outbytesleft = sizeof (buf);
7223 size_t res = iconv (cd_88591_to_utf8,
7224 (char **) &inptr, &inbytesleft,
7225 &outptr, &outbytesleft);
7226 if ((int)res > 0)
7227 result |= 8;
7228 iconv_close (cd_88591_to_utf8);
7229 }
7230 }
7231 #endif
7232 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
7233 provided. */
7234 if (/* Try standardized names. */
7235 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
7236 /* Try IRIX, OSF/1 names. */
7237 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
7238 /* Try AIX names. */
7239 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
7240 /* Try HP-UX names. */
7241 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
7242 result |= 16;
7243 return result;
7244 }
7245 _ACEOF
7246 if ac_fn_c_try_run "$LINENO"
7247 then :
7248 am_cv_func_iconv_works=yes
7249 else case e in #(
7250 e) am_cv_func_iconv_works=no ;;
7251 esac
7252 fi
7253 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7254 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7255 esac
7256 fi
7257
7258 LIBS="$am_save_LIBS"
7259 ;;
7260 esac
7261 fi
7262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
7263 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
7264 case "$am_cv_func_iconv_works" in
7265 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
7266 *) am_func_iconv=yes ;;
7267 esac
7268 else
7269 am_func_iconv=no am_cv_lib_iconv=no
7270 fi
7271 if test "$am_func_iconv" = yes; then
7272
7273 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
7274
7275 fi
7276 if test "$am_cv_lib_iconv" = yes; then
7277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7278 printf %s "checking how to link with libiconv... " >&6; }
7279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7280 printf "%s\n" "$LIBICONV" >&6; }
7281 else
7282 CPPFLAGS="$am_save_CPPFLAGS"
7283 LIBICONV=
7284 LTLIBICONV=
7285 fi
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297 use_additional=yes
7298
7299 acl_save_prefix="$prefix"
7300 prefix="$acl_final_prefix"
7301 acl_save_exec_prefix="$exec_prefix"
7302 exec_prefix="$acl_final_exec_prefix"
7303
7304 eval additional_includedir=\"$includedir\"
7305 eval additional_libdir=\"$libdir\"
7306
7307 exec_prefix="$acl_save_exec_prefix"
7308 prefix="$acl_save_prefix"
7309
7310
7311 # Check whether --with-libintl-prefix was given.
7312 if test ${with_libintl_prefix+y}
7313 then :
7314 withval=$with_libintl_prefix;
7315 if test "X$withval" = "Xno"; then
7316 use_additional=no
7317 else
7318 if test "X$withval" = "X"; then
7319
7320 acl_save_prefix="$prefix"
7321 prefix="$acl_final_prefix"
7322 acl_save_exec_prefix="$exec_prefix"
7323 exec_prefix="$acl_final_exec_prefix"
7324
7325 eval additional_includedir=\"$includedir\"
7326 eval additional_libdir=\"$libdir\"
7327
7328 exec_prefix="$acl_save_exec_prefix"
7329 prefix="$acl_save_prefix"
7330
7331 else
7332 additional_includedir="$withval/include"
7333 additional_libdir="$withval/$acl_libdirstem"
7334 if test "$acl_libdirstem2" != "$acl_libdirstem" \
7335 && ! test -d "$withval/$acl_libdirstem"; then
7336 additional_libdir="$withval/$acl_libdirstem2"
7337 fi
7338 fi
7339 fi
7340
7341 fi
7342
7343 LIBINTL=
7344 LTLIBINTL=
7345 INCINTL=
7346 LIBINTL_PREFIX=
7347 HAVE_LIBINTL=
7348 rpathdirs=
7349 ltrpathdirs=
7350 names_already_handled=
7351 names_next_round='intl '
7352 while test -n "$names_next_round"; do
7353 names_this_round="$names_next_round"
7354 names_next_round=
7355 for name in $names_this_round; do
7356 already_handled=
7357 for n in $names_already_handled; do
7358 if test "$n" = "$name"; then
7359 already_handled=yes
7360 break
7361 fi
7362 done
7363 if test -z "$already_handled"; then
7364 names_already_handled="$names_already_handled $name"
7365 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
7366 eval value=\"\$HAVE_LIB$uppername\"
7367 if test -n "$value"; then
7368 if test "$value" = yes; then
7369 eval value=\"\$LIB$uppername\"
7370 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7371 eval value=\"\$LTLIB$uppername\"
7372 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7373 else
7374 :
7375 fi
7376 else
7377 found_dir=
7378 found_la=
7379 found_so=
7380 found_a=
7381 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
7382 if test -n "$acl_shlibext"; then
7383 shrext=".$acl_shlibext" # typically: shrext=.so
7384 else
7385 shrext=
7386 fi
7387 if test $use_additional = yes; then
7388 dir="$additional_libdir"
7389 if test -n "$acl_shlibext"; then
7390 if test -f "$dir/$libname$shrext"; then
7391 found_dir="$dir"
7392 found_so="$dir/$libname$shrext"
7393 else
7394 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7395 ver=`(cd "$dir" && \
7396 for f in "$libname$shrext".*; do echo "$f"; done \
7397 | sed -e "s,^$libname$shrext\\\\.,," \
7398 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7399 | sed 1q ) 2>/dev/null`
7400 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7401 found_dir="$dir"
7402 found_so="$dir/$libname$shrext.$ver"
7403 fi
7404 else
7405 eval library_names=\"$acl_library_names_spec\"
7406 for f in $library_names; do
7407 if test -f "$dir/$f"; then
7408 found_dir="$dir"
7409 found_so="$dir/$f"
7410 break
7411 fi
7412 done
7413 fi
7414 fi
7415 fi
7416 if test "X$found_dir" = "X"; then
7417 if test -f "$dir/$libname.$acl_libext"; then
7418 found_dir="$dir"
7419 found_a="$dir/$libname.$acl_libext"
7420 fi
7421 fi
7422 if test "X$found_dir" != "X"; then
7423 if test -f "$dir/$libname.la"; then
7424 found_la="$dir/$libname.la"
7425 fi
7426 fi
7427 fi
7428 if test "X$found_dir" = "X"; then
7429 for x in $LDFLAGS $LTLIBINTL; do
7430
7431 acl_save_prefix="$prefix"
7432 prefix="$acl_final_prefix"
7433 acl_save_exec_prefix="$exec_prefix"
7434 exec_prefix="$acl_final_exec_prefix"
7435 eval x=\"$x\"
7436 exec_prefix="$acl_save_exec_prefix"
7437 prefix="$acl_save_prefix"
7438
7439 case "$x" in
7440 -L*)
7441 dir=`echo "X$x" | sed -e 's/^X-L//'`
7442 if test -n "$acl_shlibext"; then
7443 if test -f "$dir/$libname$shrext"; then
7444 found_dir="$dir"
7445 found_so="$dir/$libname$shrext"
7446 else
7447 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7448 ver=`(cd "$dir" && \
7449 for f in "$libname$shrext".*; do echo "$f"; done \
7450 | sed -e "s,^$libname$shrext\\\\.,," \
7451 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7452 | sed 1q ) 2>/dev/null`
7453 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7454 found_dir="$dir"
7455 found_so="$dir/$libname$shrext.$ver"
7456 fi
7457 else
7458 eval library_names=\"$acl_library_names_spec\"
7459 for f in $library_names; do
7460 if test -f "$dir/$f"; then
7461 found_dir="$dir"
7462 found_so="$dir/$f"
7463 break
7464 fi
7465 done
7466 fi
7467 fi
7468 fi
7469 if test "X$found_dir" = "X"; then
7470 if test -f "$dir/$libname.$acl_libext"; then
7471 found_dir="$dir"
7472 found_a="$dir/$libname.$acl_libext"
7473 fi
7474 fi
7475 if test "X$found_dir" != "X"; then
7476 if test -f "$dir/$libname.la"; then
7477 found_la="$dir/$libname.la"
7478 fi
7479 fi
7480 ;;
7481 esac
7482 if test "X$found_dir" != "X"; then
7483 break
7484 fi
7485 done
7486 fi
7487 if test "X$found_dir" != "X"; then
7488 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7489 if test "X$found_so" != "X"; then
7490 if test "$enable_rpath" = no \
7491 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
7492 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
7493 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7494 else
7495 haveit=
7496 for x in $ltrpathdirs; do
7497 if test "X$x" = "X$found_dir"; then
7498 haveit=yes
7499 break
7500 fi
7501 done
7502 if test -z "$haveit"; then
7503 ltrpathdirs="$ltrpathdirs $found_dir"
7504 fi
7505 if test "$acl_hardcode_direct" = yes; then
7506 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7507 else
7508 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
7509 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7510 haveit=
7511 for x in $rpathdirs; do
7512 if test "X$x" = "X$found_dir"; then
7513 haveit=yes
7514 break
7515 fi
7516 done
7517 if test -z "$haveit"; then
7518 rpathdirs="$rpathdirs $found_dir"
7519 fi
7520 else
7521 haveit=
7522 for x in $LDFLAGS $LIBINTL; do
7523
7524 acl_save_prefix="$prefix"
7525 prefix="$acl_final_prefix"
7526 acl_save_exec_prefix="$exec_prefix"
7527 exec_prefix="$acl_final_exec_prefix"
7528 eval x=\"$x\"
7529 exec_prefix="$acl_save_exec_prefix"
7530 prefix="$acl_save_prefix"
7531
7532 if test "X$x" = "X-L$found_dir"; then
7533 haveit=yes
7534 break
7535 fi
7536 done
7537 if test -z "$haveit"; then
7538 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7539 fi
7540 if test "$acl_hardcode_minus_L" != no; then
7541 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7542 else
7543 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7544 fi
7545 fi
7546 fi
7547 fi
7548 else
7549 if test "X$found_a" != "X"; then
7550 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7551 else
7552 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7553 fi
7554 fi
7555 additional_includedir=
7556 case "$found_dir" in
7557 */$acl_libdirstem | */$acl_libdirstem/)
7558 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7559 if test "$name" = 'intl'; then
7560 LIBINTL_PREFIX="$basedir"
7561 fi
7562 additional_includedir="$basedir/include"
7563 ;;
7564 */$acl_libdirstem2 | */$acl_libdirstem2/)
7565 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
7566 if test "$name" = 'intl'; then
7567 LIBINTL_PREFIX="$basedir"
7568 fi
7569 additional_includedir="$basedir/include"
7570 ;;
7571 esac
7572 if test "X$additional_includedir" != "X"; then
7573 if test "X$additional_includedir" != "X/usr/include"; then
7574 haveit=
7575 if test "X$additional_includedir" = "X/usr/local/include"; then
7576 if test -n "$GCC"; then
7577 case $host_os in
7578 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7579 esac
7580 fi
7581 fi
7582 if test -z "$haveit"; then
7583 for x in $CPPFLAGS $INCINTL; do
7584
7585 acl_save_prefix="$prefix"
7586 prefix="$acl_final_prefix"
7587 acl_save_exec_prefix="$exec_prefix"
7588 exec_prefix="$acl_final_exec_prefix"
7589 eval x=\"$x\"
7590 exec_prefix="$acl_save_exec_prefix"
7591 prefix="$acl_save_prefix"
7592
7593 if test "X$x" = "X-I$additional_includedir"; then
7594 haveit=yes
7595 break
7596 fi
7597 done
7598 if test -z "$haveit"; then
7599 if test -d "$additional_includedir"; then
7600 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7601 fi
7602 fi
7603 fi
7604 fi
7605 fi
7606 if test -n "$found_la"; then
7607 save_libdir="$libdir"
7608 case "$found_la" in
7609 */* | *\\*) . "$found_la" ;;
7610 *) . "./$found_la" ;;
7611 esac
7612 libdir="$save_libdir"
7613 for dep in $dependency_libs; do
7614 case "$dep" in
7615 -L*)
7616 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7617 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
7618 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
7619 haveit=
7620 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
7621 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
7622 if test -n "$GCC"; then
7623 case $host_os in
7624 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7625 esac
7626 fi
7627 fi
7628 if test -z "$haveit"; then
7629 haveit=
7630 for x in $LDFLAGS $LIBINTL; do
7631
7632 acl_save_prefix="$prefix"
7633 prefix="$acl_final_prefix"
7634 acl_save_exec_prefix="$exec_prefix"
7635 exec_prefix="$acl_final_exec_prefix"
7636 eval x=\"$x\"
7637 exec_prefix="$acl_save_exec_prefix"
7638 prefix="$acl_save_prefix"
7639
7640 if test "X$x" = "X-L$additional_libdir"; then
7641 haveit=yes
7642 break
7643 fi
7644 done
7645 if test -z "$haveit"; then
7646 if test -d "$additional_libdir"; then
7647 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7648 fi
7649 fi
7650 haveit=
7651 for x in $LDFLAGS $LTLIBINTL; do
7652
7653 acl_save_prefix="$prefix"
7654 prefix="$acl_final_prefix"
7655 acl_save_exec_prefix="$exec_prefix"
7656 exec_prefix="$acl_final_exec_prefix"
7657 eval x=\"$x\"
7658 exec_prefix="$acl_save_exec_prefix"
7659 prefix="$acl_save_prefix"
7660
7661 if test "X$x" = "X-L$additional_libdir"; then
7662 haveit=yes
7663 break
7664 fi
7665 done
7666 if test -z "$haveit"; then
7667 if test -d "$additional_libdir"; then
7668 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7669 fi
7670 fi
7671 fi
7672 fi
7673 ;;
7674 -R*)
7675 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7676 if test "$enable_rpath" != no; then
7677 haveit=
7678 for x in $rpathdirs; do
7679 if test "X$x" = "X$dir"; then
7680 haveit=yes
7681 break
7682 fi
7683 done
7684 if test -z "$haveit"; then
7685 rpathdirs="$rpathdirs $dir"
7686 fi
7687 haveit=
7688 for x in $ltrpathdirs; do
7689 if test "X$x" = "X$dir"; then
7690 haveit=yes
7691 break
7692 fi
7693 done
7694 if test -z "$haveit"; then
7695 ltrpathdirs="$ltrpathdirs $dir"
7696 fi
7697 fi
7698 ;;
7699 -l*)
7700 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7701 ;;
7702 *.la)
7703 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7704 ;;
7705 *)
7706 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7707 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7708 ;;
7709 esac
7710 done
7711 fi
7712 else
7713 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7714 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7715 fi
7716 fi
7717 fi
7718 done
7719 done
7720 if test "X$rpathdirs" != "X"; then
7721 if test -n "$acl_hardcode_libdir_separator"; then
7722 alldirs=
7723 for found_dir in $rpathdirs; do
7724 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7725 done
7726 acl_save_libdir="$libdir"
7727 libdir="$alldirs"
7728 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7729 libdir="$acl_save_libdir"
7730 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7731 else
7732 for found_dir in $rpathdirs; do
7733 acl_save_libdir="$libdir"
7734 libdir="$found_dir"
7735 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7736 libdir="$acl_save_libdir"
7737 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7738 done
7739 fi
7740 fi
7741 if test "X$ltrpathdirs" != "X"; then
7742 for found_dir in $ltrpathdirs; do
7743 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7744 done
7745 fi
7746
7747
7748
7749
7750
7751
7752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
7753 printf %s "checking for GNU gettext in libintl... " >&6; }
7754 if eval test \${$gt_func_gnugettext_libintl+y}
7755 then :
7756 printf %s "(cached) " >&6
7757 else case e in #(
7758 e) gt_save_CPPFLAGS="$CPPFLAGS"
7759 CPPFLAGS="$CPPFLAGS $INCINTL"
7760 gt_save_LIBS="$LIBS"
7761 LIBS="$LIBS $LIBINTL"
7762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7763 /* end confdefs.h. */
7764
7765 #include <libintl.h>
7766 $gt_revision_test_code
7767 extern int _nl_msg_cat_cntr;
7768 extern
7769 #ifdef __cplusplus
7770 "C"
7771 #endif
7772 const char *_nl_expand_alias (const char *);
7773
7774 int
7775 main (void)
7776 {
7777
7778 bindtextdomain ("", "");
7779 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7780
7781 ;
7782 return 0;
7783 }
7784 _ACEOF
7785 if ac_fn_c_try_link "$LINENO"
7786 then :
7787 eval "$gt_func_gnugettext_libintl=yes"
7788 else case e in #(
7789 e) eval "$gt_func_gnugettext_libintl=no" ;;
7790 esac
7791 fi
7792 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7793 conftest$ac_exeext conftest.$ac_ext
7794 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
7795 LIBS="$LIBS $LIBICONV"
7796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7797 /* end confdefs.h. */
7798
7799 #include <libintl.h>
7800 $gt_revision_test_code
7801 extern int _nl_msg_cat_cntr;
7802 extern
7803 #ifdef __cplusplus
7804 "C"
7805 #endif
7806 const char *_nl_expand_alias (const char *);
7807
7808 int
7809 main (void)
7810 {
7811
7812 bindtextdomain ("", "");
7813 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7814
7815 ;
7816 return 0;
7817 }
7818 _ACEOF
7819 if ac_fn_c_try_link "$LINENO"
7820 then :
7821 LIBINTL="$LIBINTL $LIBICONV"
7822 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7823 eval "$gt_func_gnugettext_libintl=yes"
7824
7825 fi
7826 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7827 conftest$ac_exeext conftest.$ac_ext
7828 fi
7829 CPPFLAGS="$gt_save_CPPFLAGS"
7830 LIBS="$gt_save_LIBS" ;;
7831 esac
7832 fi
7833 eval ac_res=\$$gt_func_gnugettext_libintl
7834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7835 printf "%s\n" "$ac_res" >&6; }
7836 fi
7837
7838 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
7839 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
7840 && test "$PACKAGE" != gettext-runtime \
7841 && test "$PACKAGE" != gettext-tools; }; then
7842 gt_use_preinstalled_gnugettext=yes
7843 else
7844 LIBINTL=
7845 LTLIBINTL=
7846 INCINTL=
7847 fi
7848
7849
7850
7851 if test -n "$INTL_MACOSX_LIBS"; then
7852 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7853 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7854 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7855 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7856 fi
7857 fi
7858
7859 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7860 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7861
7862 printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
7863
7864 else
7865 USE_NLS=no
7866 fi
7867 fi
7868
7869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
7870 printf %s "checking whether to use NLS... " >&6; }
7871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7872 printf "%s\n" "$USE_NLS" >&6; }
7873 if test "$USE_NLS" = "yes"; then
7874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
7875 printf %s "checking where the gettext function comes from... " >&6; }
7876 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7877 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7878 gt_source="external libintl"
7879 else
7880 gt_source="libc"
7881 fi
7882 else
7883 gt_source="included intl directory"
7884 fi
7885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
7886 printf "%s\n" "$gt_source" >&6; }
7887 fi
7888
7889 if test "$USE_NLS" = "yes"; then
7890
7891 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7892 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
7894 printf %s "checking how to link with libintl... " >&6; }
7895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
7896 printf "%s\n" "$LIBINTL" >&6; }
7897
7898 for element in $INCINTL; do
7899 haveit=
7900 for x in $CPPFLAGS; do
7901
7902 acl_save_prefix="$prefix"
7903 prefix="$acl_final_prefix"
7904 acl_save_exec_prefix="$exec_prefix"
7905 exec_prefix="$acl_final_exec_prefix"
7906 eval x=\"$x\"
7907 exec_prefix="$acl_save_exec_prefix"
7908 prefix="$acl_save_prefix"
7909
7910 if test "X$x" = "X$element"; then
7911 haveit=yes
7912 break
7913 fi
7914 done
7915 if test -z "$haveit"; then
7916 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7917 fi
7918 done
7919
7920 fi
7921
7922
7923 printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
7924
7925
7926 printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
7927
7928 fi
7929
7930 POSUB=po
7931 fi
7932
7933
7934
7935 INTLLIBS="$LIBINTL"
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947 ac_config_files="$ac_config_files Makefile po/Makefile.in po4a/Makefile"
7948
7949 cat >confcache <<\_ACEOF
7950 # This file is a shell script that caches the results of configure
7951 # tests run on this system so they can be shared between configure
7952 # scripts and configure runs, see configure's option --config-cache.
7953 # It is not useful on other systems. If it contains results you don't
7954 # want to keep, you may remove or edit it.
7955 #
7956 # config.status only pays attention to the cache file if you give it
7957 # the --recheck option to rerun configure.
7958 #
7959 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
7960 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
7961 # following values.
7962
7963 _ACEOF
7964
7965 # The following way of writing the cache mishandles newlines in values,
7966 # but we know of no workaround that is simple, portable, and efficient.
7967 # So, we kill variables containing newlines.
7968 # Ultrix sh set writes to stderr and can't be redirected directly,
7969 # and sets the high bit in the cache file unless we assign to the vars.
7970 (
7971 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7972 eval ac_val=\$$ac_var
7973 case $ac_val in #(
7974 *${as_nl}*)
7975 case $ac_var in #(
7976 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7977 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7978 esac
7979 case $ac_var in #(
7980 _ | IFS | as_nl) ;; #(
7981 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7982 *) { eval $ac_var=; unset $ac_var;} ;;
7983 esac ;;
7984 esac
7985 done
7986
7987 (set) 2>&1 |
7988 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7989 *${as_nl}ac_space=\ *)
7990 # 'set' does not quote correctly, so add quotes: double-quote
7991 # substitution turns \\\\ into \\, and sed turns \\ into \.
7992 sed -n \
7993 "s/'/'\\\\''/g;
7994 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7995 ;; #(
7996 *)
7997 # 'set' quotes correctly as required by POSIX, so do not add quotes.
7998 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7999 ;;
8000 esac |
8001 sort
8002 ) |
8003 sed '
8004 /^ac_cv_env_/b end
8005 t clear
8006 :clear
8007 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
8008 t end
8009 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8010 :end' >>confcache
8011 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8012 if test -w "$cache_file"; then
8013 if test "x$cache_file" != "x/dev/null"; then
8014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8015 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
8016 if test ! -f "$cache_file" || test -h "$cache_file"; then
8017 cat confcache >"$cache_file"
8018 else
8019 case $cache_file in #(
8020 */* | ?:*)
8021 mv -f confcache "$cache_file"$$ &&
8022 mv -f "$cache_file"$$ "$cache_file" ;; #(
8023 *)
8024 mv -f confcache "$cache_file" ;;
8025 esac
8026 fi
8027 fi
8028 else
8029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8030 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
8031 fi
8032 fi
8033 rm -f confcache
8034
8035 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8036 # Let make expand exec_prefix.
8037 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8038
8039 # Transform confdefs.h into DEFS.
8040 # Protect against shell expansion while executing Makefile rules.
8041 # Protect against Makefile macro expansion.
8042 #
8043 # If the first sed substitution is executed (which looks for macros that
8044 # take arguments), then branch to the quote section. Otherwise,
8045 # look for a macro that doesn't take arguments.
8046 ac_script='
8047 :mline
8048 /\\$/{
8049 N
8050 s,\\\n,,
8051 b mline
8052 }
8053 t clear
8054 :clear
8055 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
8056 t quote
8057 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
8058 t quote
8059 b any
8060 :quote
8061 s/[][ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
8062 s/\$/$$/g
8063 H
8064 :any
8065 ${
8066 g
8067 s/^\n//
8068 s/\n/ /g
8069 p
8070 }
8071 '
8072 DEFS=`sed -n "$ac_script" confdefs.h`
8073
8074
8075 ac_libobjs=
8076 ac_ltlibobjs=
8077 U=
8078 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8079 # 1. Remove the extension, and $U if already installed.
8080 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8081 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
8082 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8083 # will be set to the directory where LIBOBJS objects are built.
8084 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8085 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8086 done
8087 LIBOBJS=$ac_libobjs
8088
8089 LTLIBOBJS=$ac_ltlibobjs
8090
8091
8092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
8093 printf %s "checking that generated files are newer than configure... " >&6; }
8094 if test -n "$am_sleep_pid"; then
8095 # Hide warnings about reused PIDs.
8096 wait $am_sleep_pid 2>/dev/null
8097 fi
8098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
8099 printf "%s\n" "done" >&6; }
8100 case $enable_silent_rules in # (((
8101 yes) AM_DEFAULT_VERBOSITY=0;;
8102 no) AM_DEFAULT_VERBOSITY=1;;
8103 esac
8104 if test $am_cv_make_support_nested_variables = yes; then
8105 AM_V='$(V)'
8106 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
8107 else
8108 AM_V=$AM_DEFAULT_VERBOSITY
8109 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
8110 fi
8111
8112 if test -n "$EXEEXT"; then
8113 am__EXEEXT_TRUE=
8114 am__EXEEXT_FALSE='#'
8115 else
8116 am__EXEEXT_TRUE='#'
8117 am__EXEEXT_FALSE=
8118 fi
8119
8120 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8121 as_fn_error $? "conditional \"AMDEP\" was never defined.
8122 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8123 fi
8124 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8125 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
8126 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8127 fi
8128
8129 : "${CONFIG_STATUS=./config.status}"
8130 ac_write_fail=0
8131 ac_clean_files_save=$ac_clean_files
8132 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8134 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
8135 as_write_fail=0
8136 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8137 #! $SHELL
8138 # Generated by $as_me.
8139 # Run this file to recreate the current configuration.
8140 # Compiler output produced by configure, useful for debugging
8141 # configure, is in config.log if it exists.
8142
8143 debug=false
8144 ac_cs_recheck=false
8145 ac_cs_silent=false
8146
8147 SHELL=\${CONFIG_SHELL-$SHELL}
8148 export SHELL
8149 _ASEOF
8150 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8151 ## -------------------- ##
8152 ## M4sh Initialization. ##
8153 ## -------------------- ##
8154
8155 # Be more Bourne compatible
8156 DUALCASE=1; export DUALCASE # for MKS sh
8157 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
8158 then :
8159 emulate sh
8160 NULLCMD=:
8161 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8162 # is contrary to our usage. Disable this feature.
8163 alias -g '${1+"$@"}'='"$@"'
8164 setopt NO_GLOB_SUBST
8165 else case e in #(
8166 e) case `(set -o) 2>/dev/null` in #(
8167 *posix*) :
8168 set -o posix ;; #(
8169 *) :
8170 ;;
8171 esac ;;
8172 esac
8173 fi
8174
8175
8176
8177 # Reset variables that may have inherited troublesome values from
8178 # the environment.
8179
8180 # IFS needs to be set, to space, tab, and newline, in precisely that order.
8181 # (If _AS_PATH_WALK were called with IFS unset, it would have the
8182 # side effect of setting IFS to empty, thus disabling word splitting.)
8183 # Quoting is to prevent editors from complaining about space-tab.
8184 as_nl='
8185 '
8186 export as_nl
8187 IFS=" "" $as_nl"
8188
8189 PS1='$ '
8190 PS2='> '
8191 PS4='+ '
8192
8193 # Ensure predictable behavior from utilities with locale-dependent output.
8194 LC_ALL=C
8195 export LC_ALL
8196 LANGUAGE=C
8197 export LANGUAGE
8198
8199 # We cannot yet rely on "unset" to work, but we need these variables
8200 # to be unset--not just set to an empty or harmless value--now, to
8201 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
8202 # also avoids known problems related to "unset" and subshell syntax
8203 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
8204 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
8205 do eval test \${$as_var+y} \
8206 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8207 done
8208
8209 # Ensure that fds 0, 1, and 2 are open.
8210 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
8211 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
8212 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
8213
8214 # The user is always right.
8215 if ${PATH_SEPARATOR+false} :; then
8216 PATH_SEPARATOR=:
8217 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8218 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8219 PATH_SEPARATOR=';'
8220 }
8221 fi
8222
8223
8224 # Find who we are. Look in the path if we contain no directory separator.
8225 as_myself=
8226 case $0 in #((
8227 *[\\/]* ) as_myself=$0 ;;
8228 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8229 for as_dir in $PATH
8230 do
8231 IFS=$as_save_IFS
8232 case $as_dir in #(((
8233 '') as_dir=./ ;;
8234 */) ;;
8235 *) as_dir=$as_dir/ ;;
8236 esac
8237 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
8238 done
8239 IFS=$as_save_IFS
8240
8241 ;;
8242 esac
8243 # We did not find ourselves, most probably we were run as 'sh COMMAND'
8244 # in which case we are not to be found in the path.
8245 if test "x$as_myself" = x; then
8246 as_myself=$0
8247 fi
8248 if test ! -f "$as_myself"; then
8249 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8250 exit 1
8251 fi
8252
8253
8254
8255 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8256 # ----------------------------------------
8257 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8258 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8259 # script with STATUS, using 1 if that was 0.
8260 as_fn_error ()
8261 {
8262 as_status=$1; test $as_status -eq 0 && as_status=1
8263 if test "$4"; then
8264 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8265 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8266 fi
8267 printf "%s\n" "$as_me: error: $2" >&2
8268 as_fn_exit $as_status
8269 } # as_fn_error
8270
8271
8272 # as_fn_set_status STATUS
8273 # -----------------------
8274 # Set $? to STATUS, without forking.
8275 as_fn_set_status ()
8276 {
8277 return $1
8278 } # as_fn_set_status
8279
8280 # as_fn_exit STATUS
8281 # -----------------
8282 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8283 as_fn_exit ()
8284 {
8285 set +e
8286 as_fn_set_status $1
8287 exit $1
8288 } # as_fn_exit
8289
8290 # as_fn_unset VAR
8291 # ---------------
8292 # Portably unset VAR.
8293 as_fn_unset ()
8294 {
8295 { eval $1=; unset $1;}
8296 }
8297 as_unset=as_fn_unset
8298
8299 # as_fn_append VAR VALUE
8300 # ----------------------
8301 # Append the text in VALUE to the end of the definition contained in VAR. Take
8302 # advantage of any shell optimizations that allow amortized linear growth over
8303 # repeated appends, instead of the typical quadratic growth present in naive
8304 # implementations.
8305 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
8306 then :
8307 eval 'as_fn_append ()
8308 {
8309 eval $1+=\$2
8310 }'
8311 else case e in #(
8312 e) as_fn_append ()
8313 {
8314 eval $1=\$$1\$2
8315 } ;;
8316 esac
8317 fi # as_fn_append
8318
8319 # as_fn_arith ARG...
8320 # ------------------
8321 # Perform arithmetic evaluation on the ARGs, and store the result in the
8322 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8323 # must be portable across $(()) and expr.
8324 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
8325 then :
8326 eval 'as_fn_arith ()
8327 {
8328 as_val=$(( $* ))
8329 }'
8330 else case e in #(
8331 e) as_fn_arith ()
8332 {
8333 as_val=`expr "$@" || test $? -eq 1`
8334 } ;;
8335 esac
8336 fi # as_fn_arith
8337
8338
8339 if expr a : '\(a\)' >/dev/null 2>&1 &&
8340 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8341 as_expr=expr
8342 else
8343 as_expr=false
8344 fi
8345
8346 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8347 as_basename=basename
8348 else
8349 as_basename=false
8350 fi
8351
8352 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8353 as_dirname=dirname
8354 else
8355 as_dirname=false
8356 fi
8357
8358 as_me=`$as_basename -- "$0" ||
8359 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8360 X"$0" : 'X\(//\)$' \| \
8361 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8362 printf "%s\n" X/"$0" |
8363 sed '/^.*\/\([^/][^/]*\)\/*$/{
8364 s//\1/
8365 q
8366 }
8367 /^X\/\(\/\/\)$/{
8368 s//\1/
8369 q
8370 }
8371 /^X\/\(\/\).*/{
8372 s//\1/
8373 q
8374 }
8375 s/.*/./; q'`
8376
8377 # Avoid depending upon Character Ranges.
8378 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8379 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8380 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8381 as_cr_digits='0123456789'
8382 as_cr_alnum=$as_cr_Letters$as_cr_digits
8383
8384
8385 # Determine whether it's possible to make 'echo' print without a newline.
8386 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
8387 # for compatibility with existing Makefiles.
8388 ECHO_C= ECHO_N= ECHO_T=
8389 case `echo -n x` in #(((((
8390 -n*)
8391 case `echo 'xy\c'` in
8392 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8393 xy) ECHO_C='\c';;
8394 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8395 ECHO_T=' ';;
8396 esac;;
8397 *)
8398 ECHO_N='-n';;
8399 esac
8400
8401 # For backward compatibility with old third-party macros, we provide
8402 # the shell variables $as_echo and $as_echo_n. New code should use
8403 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
8404 as_echo='printf %s\n'
8405 as_echo_n='printf %s'
8406
8407 rm -f conf$$ conf$$.exe conf$$.file
8408 if test -d conf$$.dir; then
8409 rm -f conf$$.dir/conf$$.file
8410 else
8411 rm -f conf$$.dir
8412 mkdir conf$$.dir 2>/dev/null
8413 fi
8414 if (echo >conf$$.file) 2>/dev/null; then
8415 if ln -s conf$$.file conf$$ 2>/dev/null; then
8416 as_ln_s='ln -s'
8417 # ... but there are two gotchas:
8418 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
8419 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
8420 # In both cases, we have to default to 'cp -pR'.
8421 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8422 as_ln_s='cp -pR'
8423 elif ln conf$$.file conf$$ 2>/dev/null; then
8424 as_ln_s=ln
8425 else
8426 as_ln_s='cp -pR'
8427 fi
8428 else
8429 as_ln_s='cp -pR'
8430 fi
8431 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8432 rmdir conf$$.dir 2>/dev/null
8433
8434
8435 # as_fn_mkdir_p
8436 # -------------
8437 # Create "$as_dir" as a directory, including parents if necessary.
8438 as_fn_mkdir_p ()
8439 {
8440
8441 case $as_dir in #(
8442 -*) as_dir=./$as_dir;;
8443 esac
8444 test -d "$as_dir" || eval $as_mkdir_p || {
8445 as_dirs=
8446 while :; do
8447 case $as_dir in #(
8448 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8449 *) as_qdir=$as_dir;;
8450 esac
8451 as_dirs="'$as_qdir' $as_dirs"
8452 as_dir=`$as_dirname -- "$as_dir" ||
8453 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8454 X"$as_dir" : 'X\(//\)[^/]' \| \
8455 X"$as_dir" : 'X\(//\)$' \| \
8456 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8457 printf "%s\n" X"$as_dir" |
8458 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8459 s//\1/
8460 q
8461 }
8462 /^X\(\/\/\)[^/].*/{
8463 s//\1/
8464 q
8465 }
8466 /^X\(\/\/\)$/{
8467 s//\1/
8468 q
8469 }
8470 /^X\(\/\).*/{
8471 s//\1/
8472 q
8473 }
8474 s/.*/./; q'`
8475 test -d "$as_dir" && break
8476 done
8477 test -z "$as_dirs" || eval "mkdir $as_dirs"
8478 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8479
8480
8481 } # as_fn_mkdir_p
8482 if mkdir -p . 2>/dev/null; then
8483 as_mkdir_p='mkdir -p "$as_dir"'
8484 else
8485 test -d ./-p && rmdir ./-p
8486 as_mkdir_p=false
8487 fi
8488
8489
8490 # as_fn_executable_p FILE
8491 # -----------------------
8492 # Test if FILE is an executable regular file.
8493 as_fn_executable_p ()
8494 {
8495 test -f "$1" && test -x "$1"
8496 } # as_fn_executable_p
8497 as_test_x='test -x'
8498 as_executable_p=as_fn_executable_p
8499
8500 # Sed expression to map a string onto a valid CPP name.
8501 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
8502 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
8503
8504 # Sed expression to map a string onto a valid variable name.
8505 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
8506 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
8507
8508
8509 exec 6>&1
8510 ## ----------------------------------- ##
8511 ## Main body of $CONFIG_STATUS script. ##
8512 ## ----------------------------------- ##
8513 _ASEOF
8514 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8515
8516 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8517 # Save the log message, to keep $0 and so on meaningful, and to
8518 # report actual input values of CONFIG_FILES etc. instead of their
8519 # values after options handling.
8520 ac_log="
8521 This file was extended by Linuxinfo $as_me 4.2.3, which was
8522 generated by GNU Autoconf 2.72. Invocation command line was
8523
8524 CONFIG_FILES = $CONFIG_FILES
8525 CONFIG_HEADERS = $CONFIG_HEADERS
8526 CONFIG_LINKS = $CONFIG_LINKS
8527 CONFIG_COMMANDS = $CONFIG_COMMANDS
8528 $ $0 $@
8529
8530 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8531 "
8532
8533 _ACEOF
8534
8535 case $ac_config_files in *"
8536 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8537 esac
8538
8539
8540
8541 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8542 # Files that config.status was made for.
8543 config_files="$ac_config_files"
8544 config_commands="$ac_config_commands"
8545
8546 _ACEOF
8547
8548 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8549 ac_cs_usage="\
8550 '$as_me' instantiates files and other configuration actions
8551 from templates according to the current configuration. Unless the files
8552 and actions are specified as TAGs, all are instantiated by default.
8553
8554 Usage: $0 [OPTION]... [TAG]...
8555
8556 -h, --help print this help, then exit
8557 -V, --version print version number and configuration settings, then exit
8558 --config print configuration, then exit
8559 -q, --quiet, --silent
8560 do not print progress messages
8561 -d, --debug don't remove temporary files
8562 --recheck update $as_me by reconfiguring in the same conditions
8563 --file=FILE[:TEMPLATE]
8564 instantiate the configuration file FILE
8565
8566 Configuration files:
8567 $config_files
8568
8569 Configuration commands:
8570 $config_commands
8571
8572 Report bugs to the package provider."
8573
8574 _ACEOF
8575 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
8576 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
8577 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8578 ac_cs_config='$ac_cs_config_escaped'
8579 ac_cs_version="\\
8580 Linuxinfo config.status 4.2.3
8581 configured by $0, generated by GNU Autoconf 2.72,
8582 with options \\"\$ac_cs_config\\"
8583
8584 Copyright (C) 2023 Free Software Foundation, Inc.
8585 This config.status script is free software; the Free Software Foundation
8586 gives unlimited permission to copy, distribute and modify it."
8587
8588 ac_pwd='$ac_pwd'
8589 srcdir='$srcdir'
8590 INSTALL='$INSTALL'
8591 MKDIR_P='$MKDIR_P'
8592 AWK='$AWK'
8593 test -n "\$AWK" || AWK=awk
8594 _ACEOF
8595
8596 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8597 # The default lists apply if the user does not specify any file.
8598 ac_need_defaults=:
8599 while test $# != 0
8600 do
8601 case $1 in
8602 --*=?*)
8603 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8604 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8605 ac_shift=:
8606 ;;
8607 --*=)
8608 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8609 ac_optarg=
8610 ac_shift=:
8611 ;;
8612 *)
8613 ac_option=$1
8614 ac_optarg=$2
8615 ac_shift=shift
8616 ;;
8617 esac
8618
8619 case $ac_option in
8620 # Handling of the options.
8621 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8622 ac_cs_recheck=: ;;
8623 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8624 printf "%s\n" "$ac_cs_version"; exit ;;
8625 --config | --confi | --conf | --con | --co | --c )
8626 printf "%s\n" "$ac_cs_config"; exit ;;
8627 --debug | --debu | --deb | --de | --d | -d )
8628 debug=: ;;
8629 --file | --fil | --fi | --f )
8630 $ac_shift
8631 case $ac_optarg in
8632 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8633 '') as_fn_error $? "missing file argument" ;;
8634 esac
8635 as_fn_append CONFIG_FILES " '$ac_optarg'"
8636 ac_need_defaults=false;;
8637 --he | --h | --help | --hel | -h )
8638 printf "%s\n" "$ac_cs_usage"; exit ;;
8639 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8640 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8641 ac_cs_silent=: ;;
8642
8643 # This is an error.
8644 -*) as_fn_error $? "unrecognized option: '$1'
8645 Try '$0 --help' for more information." ;;
8646
8647 *) as_fn_append ac_config_targets " $1"
8648 ac_need_defaults=false ;;
8649
8650 esac
8651 shift
8652 done
8653
8654 ac_configure_extra_args=
8655
8656 if $ac_cs_silent; then
8657 exec 6>/dev/null
8658 ac_configure_extra_args="$ac_configure_extra_args --silent"
8659 fi
8660
8661 _ACEOF
8662 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8663 if \$ac_cs_recheck; then
8664 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8665 shift
8666 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
8667 CONFIG_SHELL='$SHELL'
8668 export CONFIG_SHELL
8669 exec "\$@"
8670 fi
8671
8672 _ACEOF
8673 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8674 exec 5>>config.log
8675 {
8676 echo
8677 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8678 ## Running $as_me. ##
8679 _ASBOX
8680 printf "%s\n" "$ac_log"
8681 } >&5
8682
8683 _ACEOF
8684 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8685 #
8686 # INIT-COMMANDS
8687 #
8688 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
8689 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
8690 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
8691 # from automake < 1.5.
8692 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
8693 # Capture the value of LINGUAS because we need it to compute CATALOGS.
8694 LINGUAS="${LINGUAS-%UNSET%}"
8695
8696
8697 _ACEOF
8698
8699 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8700
8701 # Handling of arguments.
8702 for ac_config_target in $ac_config_targets
8703 do
8704 case $ac_config_target in
8705 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8706 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
8707 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8708 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
8709 "po4a/Makefile") CONFIG_FILES="$CONFIG_FILES po4a/Makefile" ;;
8710
8711 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
8712 esac
8713 done
8714
8715
8716 # If the user did not use the arguments to specify the items to instantiate,
8717 # then the envvar interface is used. Set only those that are not.
8718 # We use the long form for the default assignment because of an extremely
8719 # bizarre bug on SunOS 4.1.3.
8720 if $ac_need_defaults; then
8721 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
8722 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
8723 fi
8724
8725 # Have a temporary directory for convenience. Make it in the build tree
8726 # simply because there is no reason against having it here, and in addition,
8727 # creating and moving files from /tmp can sometimes cause problems.
8728 # Hook for its removal unless debugging.
8729 # Note that there is a small window in which the directory will not be cleaned:
8730 # after its creation but before its name has been assigned to '$tmp'.
8731 $debug ||
8732 {
8733 tmp= ac_tmp=
8734 trap 'exit_status=$?
8735 : "${ac_tmp:=$tmp}"
8736 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8737 ' 0
8738 trap 'as_fn_exit 1' 1 2 13 15
8739 }
8740 # Create a (secure) tmp directory for tmp files.
8741
8742 {
8743 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8744 test -d "$tmp"
8745 } ||
8746 {
8747 tmp=./conf$$-$RANDOM
8748 (umask 077 && mkdir "$tmp")
8749 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8750 ac_tmp=$tmp
8751
8752 # Set up the scripts for CONFIG_FILES section.
8753 # No need to generate them if there are no CONFIG_FILES.
8754 # This happens for instance with './config.status config.h'.
8755 if test -n "$CONFIG_FILES"; then
8756
8757
8758 ac_cr=`echo X | tr X '\015'`
8759 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8760 # But we know of no other shell where ac_cr would be empty at this
8761 # point, so we can use a bashism as a fallback.
8762 if test "x$ac_cr" = x; then
8763 eval ac_cr=\$\'\\r\'
8764 fi
8765 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8766 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8767 ac_cs_awk_cr='\\r'
8768 else
8769 ac_cs_awk_cr=$ac_cr
8770 fi
8771
8772 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8773 _ACEOF
8774
8775
8776 {
8777 echo "cat >conf$$subs.awk <<_ACEOF" &&
8778 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8779 echo "_ACEOF"
8780 } >conf$$subs.sh ||
8781 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8782 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8783 ac_delim='%!_!# '
8784 for ac_last_try in false false false false false :; do
8785 . ./conf$$subs.sh ||
8786 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8787
8788 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8789 if test $ac_delim_n = $ac_delim_num; then
8790 break
8791 elif $ac_last_try; then
8792 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8793 else
8794 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8795 fi
8796 done
8797 rm -f conf$$subs.sh
8798
8799 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8800 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8801 _ACEOF
8802 sed -n '
8803 h
8804 s/^/S["/; s/!.*/"]=/
8805 p
8806 g
8807 s/^[^!]*!//
8808 :repl
8809 t repl
8810 s/'"$ac_delim"'$//
8811 t delim
8812 :nl
8813 h
8814 s/\(.\{148\}\)..*/\1/
8815 t more1
8816 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8817 p
8818 n
8819 b repl
8820 :more1
8821 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8822 p
8823 g
8824 s/.\{148\}//
8825 t nl
8826 :delim
8827 h
8828 s/\(.\{148\}\)..*/\1/
8829 t more2
8830 s/["\\]/\\&/g; s/^/"/; s/$/"/
8831 p
8832 b
8833 :more2
8834 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8835 p
8836 g
8837 s/.\{148\}//
8838 t delim
8839 ' <conf$$subs.awk | sed '
8840 /^[^""]/{
8841 N
8842 s/\n//
8843 }
8844 ' >>$CONFIG_STATUS || ac_write_fail=1
8845 rm -f conf$$subs.awk
8846 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8847 _ACAWK
8848 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8849 for (key in S) S_is_set[key] = 1
8850 FS = ""
8851
8852 }
8853 {
8854 line = $ 0
8855 nfields = split(line, field, "@")
8856 substed = 0
8857 len = length(field[1])
8858 for (i = 2; i < nfields; i++) {
8859 key = field[i]
8860 keylen = length(key)
8861 if (S_is_set[key]) {
8862 value = S[key]
8863 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8864 len += length(value) + length(field[++i])
8865 substed = 1
8866 } else
8867 len += 1 + keylen
8868 }
8869
8870 print line
8871 }
8872
8873 _ACAWK
8874 _ACEOF
8875 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8876 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8877 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8878 else
8879 cat
8880 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8881 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8882 _ACEOF
8883
8884 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8885 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8886 # trailing colons and then remove the whole line if VPATH becomes empty
8887 # (actually we leave an empty line to preserve line numbers).
8888 if test "x$srcdir" = x.; then
8889 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8890 h
8891 s///
8892 s/^/:/
8893 s/[ ]*$/:/
8894 s/:\$(srcdir):/:/g
8895 s/:\${srcdir}:/:/g
8896 s/:@srcdir@:/:/g
8897 s/^:*//
8898 s/:*$//
8899 x
8900 s/\(=[ ]*\).*/\1/
8901 G
8902 s/\n//
8903 s/^[^=]*=[ ]*$//
8904 }'
8905 fi
8906
8907 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8908 fi # test -n "$CONFIG_FILES"
8909
8910
8911 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
8912 shift
8913 for ac_tag
8914 do
8915 case $ac_tag in
8916 :[FHLC]) ac_mode=$ac_tag; continue;;
8917 esac
8918 case $ac_mode$ac_tag in
8919 :[FHL]*:*);;
8920 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
8921 :[FH]-) ac_tag=-:-;;
8922 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8923 esac
8924 ac_save_IFS=$IFS
8925 IFS=:
8926 set x $ac_tag
8927 IFS=$ac_save_IFS
8928 shift
8929 ac_file=$1
8930 shift
8931
8932 case $ac_mode in
8933 :L) ac_source=$1;;
8934 :[FH])
8935 ac_file_inputs=
8936 for ac_f
8937 do
8938 case $ac_f in
8939 -) ac_f="$ac_tmp/stdin";;
8940 *) # Look for the file first in the build tree, then in the source tree
8941 # (if the path is not absolute). The absolute path cannot be DOS-style,
8942 # because $ac_f cannot contain ':'.
8943 test -f "$ac_f" ||
8944 case $ac_f in
8945 [\\/$]*) false;;
8946 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8947 esac ||
8948 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
8949 esac
8950 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8951 as_fn_append ac_file_inputs " '$ac_f'"
8952 done
8953
8954 # Let's still pretend it is 'configure' which instantiates (i.e., don't
8955 # use $as_me), people would be surprised to read:
8956 # /* config.h. Generated by config.status. */
8957 configure_input='Generated from '`
8958 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8959 `' by configure.'
8960 if test x"$ac_file" != x-; then
8961 configure_input="$ac_file. $configure_input"
8962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8963 printf "%s\n" "$as_me: creating $ac_file" >&6;}
8964 fi
8965 # Neutralize special characters interpreted by sed in replacement strings.
8966 case $configure_input in #(
8967 *\&* | *\|* | *\\* )
8968 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
8969 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8970 *) ac_sed_conf_input=$configure_input;;
8971 esac
8972
8973 case $ac_tag in
8974 *:-:* | *:-) cat >"$ac_tmp/stdin" \
8975 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8976 esac
8977 ;;
8978 esac
8979
8980 ac_dir=`$as_dirname -- "$ac_file" ||
8981 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8982 X"$ac_file" : 'X\(//\)[^/]' \| \
8983 X"$ac_file" : 'X\(//\)$' \| \
8984 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8985 printf "%s\n" X"$ac_file" |
8986 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8987 s//\1/
8988 q
8989 }
8990 /^X\(\/\/\)[^/].*/{
8991 s//\1/
8992 q
8993 }
8994 /^X\(\/\/\)$/{
8995 s//\1/
8996 q
8997 }
8998 /^X\(\/\).*/{
8999 s//\1/
9000 q
9001 }
9002 s/.*/./; q'`
9003 as_dir="$ac_dir"; as_fn_mkdir_p
9004 ac_builddir=.
9005
9006 case "$ac_dir" in
9007 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9008 *)
9009 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
9010 # A ".." for each directory in $ac_dir_suffix.
9011 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9012 case $ac_top_builddir_sub in
9013 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9014 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9015 esac ;;
9016 esac
9017 ac_abs_top_builddir=$ac_pwd
9018 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9019 # for backward compatibility:
9020 ac_top_builddir=$ac_top_build_prefix
9021
9022 case $srcdir in
9023 .) # We are building in place.
9024 ac_srcdir=.
9025 ac_top_srcdir=$ac_top_builddir_sub
9026 ac_abs_top_srcdir=$ac_pwd ;;
9027 [\\/]* | ?:[\\/]* ) # Absolute name.
9028 ac_srcdir=$srcdir$ac_dir_suffix;
9029 ac_top_srcdir=$srcdir
9030 ac_abs_top_srcdir=$srcdir ;;
9031 *) # Relative name.
9032 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9033 ac_top_srcdir=$ac_top_build_prefix$srcdir
9034 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9035 esac
9036 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9037
9038
9039 case $ac_mode in
9040 :F)
9041 #
9042 # CONFIG_FILE
9043 #
9044
9045 case $INSTALL in
9046 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9047 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9048 esac
9049 ac_MKDIR_P=$MKDIR_P
9050 case $MKDIR_P in
9051 [\\/$]* | ?:[\\/]* ) ;;
9052 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
9053 esac
9054 _ACEOF
9055
9056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9057 # If the template does not know about datarootdir, expand it.
9058 # FIXME: This hack should be removed a few years after 2.60.
9059 ac_datarootdir_hack=; ac_datarootdir_seen=
9060 ac_sed_dataroot='
9061 /datarootdir/ {
9062 p
9063 q
9064 }
9065 /@datadir@/p
9066 /@docdir@/p
9067 /@infodir@/p
9068 /@localedir@/p
9069 /@mandir@/p'
9070 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9071 *datarootdir*) ac_datarootdir_seen=yes;;
9072 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9074 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9075 _ACEOF
9076 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9077 ac_datarootdir_hack='
9078 s&@datadir@&$datadir&g
9079 s&@docdir@&$docdir&g
9080 s&@infodir@&$infodir&g
9081 s&@localedir@&$localedir&g
9082 s&@mandir@&$mandir&g
9083 s&\\\${datarootdir}&$datarootdir&g' ;;
9084 esac
9085 _ACEOF
9086
9087 # Neutralize VPATH when '$srcdir' = '.'.
9088 # Shell code in configure.ac might set extrasub.
9089 # FIXME: do we really want to maintain this feature?
9090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9091 ac_sed_extra="$ac_vpsub
9092 $extrasub
9093 _ACEOF
9094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9095 :t
9096 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9097 s|@configure_input@|$ac_sed_conf_input|;t t
9098 s&@top_builddir@&$ac_top_builddir_sub&;t t
9099 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9100 s&@srcdir@&$ac_srcdir&;t t
9101 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9102 s&@top_srcdir@&$ac_top_srcdir&;t t
9103 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9104 s&@builddir@&$ac_builddir&;t t
9105 s&@abs_builddir@&$ac_abs_builddir&;t t
9106 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9107 s&@INSTALL@&$ac_INSTALL&;t t
9108 s&@MKDIR_P@&$ac_MKDIR_P&;t t
9109 $ac_datarootdir_hack
9110 "
9111 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9112 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9113
9114 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9115 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9116 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9117 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
9119 which seems to be undefined. Please make sure it is defined" >&5
9120 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
9121 which seems to be undefined. Please make sure it is defined" >&2;}
9122
9123 rm -f "$ac_tmp/stdin"
9124 case $ac_file in
9125 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9126 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9127 esac \
9128 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9129 ;;
9130
9131
9132 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9133 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
9134 ;;
9135 esac
9136
9137
9138 case $ac_file$ac_mode in
9139 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
9140 # Older Autoconf quotes --file arguments for eval, but not when files
9141 # are listed without --file. Let's play safe and only enable the eval
9142 # if we detect the quoting.
9143 # TODO: see whether this extra hack can be removed once we start
9144 # requiring Autoconf 2.70 or later.
9145 case $CONFIG_FILES in #(
9146 *\'*) :
9147 eval set x "$CONFIG_FILES" ;; #(
9148 *) :
9149 set x $CONFIG_FILES ;; #(
9150 *) :
9151 ;;
9152 esac
9153 shift
9154 # Used to flag and report bootstrapping failures.
9155 am_rc=0
9156 for am_mf
9157 do
9158 # Strip MF so we end up with the name of the file.
9159 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
9160 # Check whether this is an Automake generated Makefile which includes
9161 # dependency-tracking related rules and includes.
9162 # Grep'ing the whole file directly is not great: AIX grep has a line
9163 # limit of 2048, but all sed's we know have understand at least 4000.
9164 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
9165 || continue
9166 am_dirpart=`$as_dirname -- "$am_mf" ||
9167 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9168 X"$am_mf" : 'X\(//\)[^/]' \| \
9169 X"$am_mf" : 'X\(//\)$' \| \
9170 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
9171 printf "%s\n" X"$am_mf" |
9172 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9173 s//\1/
9174 q
9175 }
9176 /^X\(\/\/\)[^/].*/{
9177 s//\1/
9178 q
9179 }
9180 /^X\(\/\/\)$/{
9181 s//\1/
9182 q
9183 }
9184 /^X\(\/\).*/{
9185 s//\1/
9186 q
9187 }
9188 s/.*/./; q'`
9189 am_filepart=`$as_basename -- "$am_mf" ||
9190 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
9191 X"$am_mf" : 'X\(//\)$' \| \
9192 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
9193 printf "%s\n" X/"$am_mf" |
9194 sed '/^.*\/\([^/][^/]*\)\/*$/{
9195 s//\1/
9196 q
9197 }
9198 /^X\/\(\/\/\)$/{
9199 s//\1/
9200 q
9201 }
9202 /^X\/\(\/\).*/{
9203 s//\1/
9204 q
9205 }
9206 s/.*/./; q'`
9207 { echo "$as_me:$LINENO: cd "$am_dirpart" \
9208 && sed -e '/# am--include-marker/d' "$am_filepart" \
9209 | $MAKE -f - am--depfiles" >&5
9210 (cd "$am_dirpart" \
9211 && sed -e '/# am--include-marker/d' "$am_filepart" \
9212 | $MAKE -f - am--depfiles) >&5 2>&5
9213 ac_status=$?
9214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215 (exit $ac_status); } || am_rc=$?
9216 done
9217 if test $am_rc -ne 0; then
9218 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
9219 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
9220 as_fn_error $? "Something went wrong bootstrapping makefile fragments
9221 for automatic dependency tracking. If GNU make was not used, consider
9222 re-running the configure script with MAKE=\"gmake\" (or whatever is
9223 necessary). You can also try re-running configure with the
9224 '--disable-dependency-tracking' option to at least be able to build
9225 the package (albeit without support for automatic dependency tracking).
9226 See 'config.log' for more details" "$LINENO" 5; }
9227 fi
9228 { am_dirpart=; unset am_dirpart;}
9229 { am_filepart=; unset am_filepart;}
9230 { am_mf=; unset am_mf;}
9231 { am_rc=; unset am_rc;}
9232 rm -f conftest-deps.mk
9233 }
9234 ;;
9235 "po-directories":C)
9236 for ac_file in $CONFIG_FILES; do
9237 # Support "outfile[:infile[:infile...]]"
9238 case "$ac_file" in
9239 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9240 esac
9241 # PO directories have a Makefile.in generated from Makefile.in.in.
9242 case "$ac_file" in */Makefile.in)
9243 # Adjust a relative srcdir.
9244 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9245 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
9246 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9247 # In autoconf-2.13 it is called $ac_given_srcdir.
9248 # In autoconf-2.50 it is called $srcdir.
9249 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9250 case "$ac_given_srcdir" in
9251 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9252 /*) top_srcdir="$ac_given_srcdir" ;;
9253 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9254 esac
9255 # Treat a directory as a PO directory if and only if it has a
9256 # POTFILES.in file. This allows packages to have multiple PO
9257 # directories under different names or in different locations.
9258 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9259 rm -f "$ac_dir/POTFILES"
9260 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9261 gt_tab=`printf '\t'`
9262 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
9263 POMAKEFILEDEPS="POTFILES.in"
9264 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
9265 # on $ac_dir but don't depend on user-specified configuration
9266 # parameters.
9267 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
9268 # The LINGUAS file contains the set of available languages.
9269 if test -n "$OBSOLETE_ALL_LINGUAS"; then
9270 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
9271 fi
9272 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
9273 # Hide the ALL_LINGUAS assignment from automake < 1.5.
9274 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
9275 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
9276 else
9277 # The set of available languages was given in configure.in.
9278 # Hide the ALL_LINGUAS assignment from automake < 1.5.
9279 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
9280 fi
9281 # Compute POFILES
9282 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
9283 # Compute UPDATEPOFILES
9284 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
9285 # Compute DUMMYPOFILES
9286 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
9287 # Compute GMOFILES
9288 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
9289 case "$ac_given_srcdir" in
9290 .) srcdirpre= ;;
9291 *) srcdirpre='$(srcdir)/' ;;
9292 esac
9293 POFILES=
9294 UPDATEPOFILES=
9295 DUMMYPOFILES=
9296 GMOFILES=
9297 for lang in $ALL_LINGUAS; do
9298 POFILES="$POFILES $srcdirpre$lang.po"
9299 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
9300 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
9301 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
9302 done
9303 # CATALOGS depends on both $ac_dir and the user's LINGUAS
9304 # environment variable.
9305 INST_LINGUAS=
9306 if test -n "$ALL_LINGUAS"; then
9307 for presentlang in $ALL_LINGUAS; do
9308 useit=no
9309 if test "%UNSET%" != "$LINGUAS"; then
9310 desiredlanguages="$LINGUAS"
9311 else
9312 desiredlanguages="$ALL_LINGUAS"
9313 fi
9314 for desiredlang in $desiredlanguages; do
9315 # Use the presentlang catalog if desiredlang is
9316 # a. equal to presentlang, or
9317 # b. a variant of presentlang (because in this case,
9318 # presentlang can be used as a fallback for messages
9319 # which are not translated in the desiredlang catalog).
9320 case "$desiredlang" in
9321 "$presentlang"*) useit=yes;;
9322 esac
9323 done
9324 if test $useit = yes; then
9325 INST_LINGUAS="$INST_LINGUAS $presentlang"
9326 fi
9327 done
9328 fi
9329 CATALOGS=
9330 if test -n "$INST_LINGUAS"; then
9331 for lang in $INST_LINGUAS; do
9332 CATALOGS="$CATALOGS $lang.gmo"
9333 done
9334 fi
9335 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9336 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9337 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
9338 if test -f "$f"; then
9339 case "$f" in
9340 *.orig | *.bak | *~) ;;
9341 *) cat "$f" >> "$ac_dir/Makefile" ;;
9342 esac
9343 fi
9344 done
9345 fi
9346 ;;
9347 esac
9348 done ;;
9349
9350 esac
9351 done # for ac_tag
9352
9353
9354 as_fn_exit 0
9355 _ACEOF
9356 ac_clean_files=$ac_clean_files_save
9357
9358 test $ac_write_fail = 0 ||
9359 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9360
9361
9362 # configure is writing to config.log, and then calls config.status.
9363 # config.status does its own redirection, appending to config.log.
9364 # Unfortunately, on DOS this fails, as config.log is still kept open
9365 # by configure, so config.status won't be able to write to it; its
9366 # output is simply discarded. So we exec the FD to /dev/null,
9367 # effectively closing config.log, so it can be properly (re)opened and
9368 # appended to by config.status. When coming back to configure, we
9369 # need to make the FD available again.
9370 if test "$no_create" != yes; then
9371 ac_cs_success=:
9372 ac_config_status_args=
9373 test "$silent" = yes &&
9374 ac_config_status_args="$ac_config_status_args --quiet"
9375 exec 5>/dev/null
9376 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9377 exec 5>>config.log
9378 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9379 # would make configure fail if this is the last instruction.
9380 $ac_cs_success || as_fn_exit 1
9381 fi
9382 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9384 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9385 fi
9386
9387 cat >confcache <<\_ACEOF
9388 # This file is a shell script that caches the results of configure
9389 # tests run on this system so they can be shared between configure
9390 # scripts and configure runs, see configure's option --config-cache.
9391 # It is not useful on other systems. If it contains results you don't
9392 # want to keep, you may remove or edit it.
9393 #
9394 # config.status only pays attention to the cache file if you give it
9395 # the --recheck option to rerun configure.
9396 #
9397 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
9398 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
9399 # following values.
9400
9401 _ACEOF
9402
9403 # The following way of writing the cache mishandles newlines in values,
9404 # but we know of no workaround that is simple, portable, and efficient.
9405 # So, we kill variables containing newlines.
9406 # Ultrix sh set writes to stderr and can't be redirected directly,
9407 # and sets the high bit in the cache file unless we assign to the vars.
9408 (
9409 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9410 eval ac_val=\$$ac_var
9411 case $ac_val in #(
9412 *${as_nl}*)
9413 case $ac_var in #(
9414 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9415 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9416 esac
9417 case $ac_var in #(
9418 _ | IFS | as_nl) ;; #(
9419 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9420 *) { eval $ac_var=; unset $ac_var;} ;;
9421 esac ;;
9422 esac
9423 done
9424
9425 (set) 2>&1 |
9426 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9427 *${as_nl}ac_space=\ *)
9428 # 'set' does not quote correctly, so add quotes: double-quote
9429 # substitution turns \\\\ into \\, and sed turns \\ into \.
9430 sed -n \
9431 "s/'/'\\\\''/g;
9432 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9433 ;; #(
9434 *)
9435 # 'set' quotes correctly as required by POSIX, so do not add quotes.
9436 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9437 ;;
9438 esac |
9439 sort
9440 ) |
9441 sed '
9442 /^ac_cv_env_/b end
9443 t clear
9444 :clear
9445 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
9446 t end
9447 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9448 :end' >>confcache
9449 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9450 if test -w "$cache_file"; then
9451 if test "x$cache_file" != "x/dev/null"; then
9452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9453 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
9454 if test ! -f "$cache_file" || test -h "$cache_file"; then
9455 cat confcache >"$cache_file"
9456 else
9457 case $cache_file in #(
9458 */* | ?:*)
9459 mv -f confcache "$cache_file"$$ &&
9460 mv -f "$cache_file"$$ "$cache_file" ;; #(
9461 *)
9462 mv -f confcache "$cache_file" ;;
9463 esac
9464 fi
9465 fi
9466 else
9467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9468 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
9469 fi
9470 fi
9471 rm -f confcache
9472
9473 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9474 # Let make expand exec_prefix.
9475 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9476
9477 # Transform confdefs.h into DEFS.
9478 # Protect against shell expansion while executing Makefile rules.
9479 # Protect against Makefile macro expansion.
9480 #
9481 # If the first sed substitution is executed (which looks for macros that
9482 # take arguments), then branch to the quote section. Otherwise,
9483 # look for a macro that doesn't take arguments.
9484 ac_script='
9485 :mline
9486 /\\$/{
9487 N
9488 s,\\\n,,
9489 b mline
9490 }
9491 t clear
9492 :clear
9493 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
9494 t quote
9495 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
9496 t quote
9497 b any
9498 :quote
9499 s/[][ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
9500 s/\$/$$/g
9501 H
9502 :any
9503 ${
9504 g
9505 s/^\n//
9506 s/\n/ /g
9507 p
9508 }
9509 '
9510 DEFS=`sed -n "$ac_script" confdefs.h`
9511
9512
9513 ac_libobjs=
9514 ac_ltlibobjs=
9515 U=
9516 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9517 # 1. Remove the extension, and $U if already installed.
9518 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9519 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
9520 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9521 # will be set to the directory where LIBOBJS objects are built.
9522 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9523 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9524 done
9525 LIBOBJS=$ac_libobjs
9526
9527 LTLIBOBJS=$ac_ltlibobjs
9528
9529
9530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
9531 printf %s "checking that generated files are newer than configure... " >&6; }
9532 if test -n "$am_sleep_pid"; then
9533 # Hide warnings about reused PIDs.
9534 wait $am_sleep_pid 2>/dev/null
9535 fi
9536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
9537 printf "%s\n" "done" >&6; }
9538 case $enable_silent_rules in # (((
9539 yes) AM_DEFAULT_VERBOSITY=0;;
9540 no) AM_DEFAULT_VERBOSITY=1;;
9541 esac
9542 if test $am_cv_make_support_nested_variables = yes; then
9543 AM_V='$(V)'
9544 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
9545 else
9546 AM_V=$AM_DEFAULT_VERBOSITY
9547 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
9548 fi
9549
9550 if test -n "$EXEEXT"; then
9551 am__EXEEXT_TRUE=
9552 am__EXEEXT_FALSE='#'
9553 else
9554 am__EXEEXT_TRUE='#'
9555 am__EXEEXT_FALSE=
9556 fi
9557
9558 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9559 as_fn_error $? "conditional \"AMDEP\" was never defined.
9560 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9561 fi
9562 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9563 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
9564 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9565 fi
9566 if test -z "${am__EXEEXT_TRUE}" && test -z "${am__EXEEXT_FALSE}"; then
9567 as_fn_error $? "conditional \"am__EXEEXT\" was never defined.
9568 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9569 fi
9570
9571 : "${CONFIG_STATUS=./config.status}"
9572 ac_write_fail=0
9573 ac_clean_files_save=$ac_clean_files
9574 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9576 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
9577 as_write_fail=0
9578 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9579 #! $SHELL
9580 # Generated by $as_me.
9581 # Run this file to recreate the current configuration.
9582 # Compiler output produced by configure, useful for debugging
9583 # configure, is in config.log if it exists.
9584
9585 debug=false
9586 ac_cs_recheck=false
9587 ac_cs_silent=false
9588
9589 SHELL=\${CONFIG_SHELL-$SHELL}
9590 export SHELL
9591 _ASEOF
9592 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9593 ## -------------------- ##
9594 ## M4sh Initialization. ##
9595 ## -------------------- ##
9596
9597 # Be more Bourne compatible
9598 DUALCASE=1; export DUALCASE # for MKS sh
9599 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
9600 then :
9601 emulate sh
9602 NULLCMD=:
9603 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9604 # is contrary to our usage. Disable this feature.
9605 alias -g '${1+"$@"}'='"$@"'
9606 setopt NO_GLOB_SUBST
9607 else case e in #(
9608 e) case `(set -o) 2>/dev/null` in #(
9609 *posix*) :
9610 set -o posix ;; #(
9611 *) :
9612 ;;
9613 esac ;;
9614 esac
9615 fi
9616
9617
9618
9619 # Reset variables that may have inherited troublesome values from
9620 # the environment.
9621
9622 # IFS needs to be set, to space, tab, and newline, in precisely that order.
9623 # (If _AS_PATH_WALK were called with IFS unset, it would have the
9624 # side effect of setting IFS to empty, thus disabling word splitting.)
9625 # Quoting is to prevent editors from complaining about space-tab.
9626 as_nl='
9627 '
9628 export as_nl
9629 IFS=" "" $as_nl"
9630
9631 PS1='$ '
9632 PS2='> '
9633 PS4='+ '
9634
9635 # Ensure predictable behavior from utilities with locale-dependent output.
9636 LC_ALL=C
9637 export LC_ALL
9638 LANGUAGE=C
9639 export LANGUAGE
9640
9641 # We cannot yet rely on "unset" to work, but we need these variables
9642 # to be unset--not just set to an empty or harmless value--now, to
9643 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
9644 # also avoids known problems related to "unset" and subshell syntax
9645 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
9646 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
9647 do eval test \${$as_var+y} \
9648 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9649 done
9650
9651 # Ensure that fds 0, 1, and 2 are open.
9652 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
9653 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
9654 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
9655
9656 # The user is always right.
9657 if ${PATH_SEPARATOR+false} :; then
9658 PATH_SEPARATOR=:
9659 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9660 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9661 PATH_SEPARATOR=';'
9662 }
9663 fi
9664
9665
9666 # Find who we are. Look in the path if we contain no directory separator.
9667 as_myself=
9668 case $0 in #((
9669 *[\\/]* ) as_myself=$0 ;;
9670 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9671 for as_dir in $PATH
9672 do
9673 IFS=$as_save_IFS
9674 case $as_dir in #(((
9675 '') as_dir=./ ;;
9676 */) ;;
9677 *) as_dir=$as_dir/ ;;
9678 esac
9679 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
9680 done
9681 IFS=$as_save_IFS
9682
9683 ;;
9684 esac
9685 # We did not find ourselves, most probably we were run as 'sh COMMAND'
9686 # in which case we are not to be found in the path.
9687 if test "x$as_myself" = x; then
9688 as_myself=$0
9689 fi
9690 if test ! -f "$as_myself"; then
9691 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9692 exit 1
9693 fi
9694
9695
9696
9697 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9698 # ----------------------------------------
9699 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9700 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9701 # script with STATUS, using 1 if that was 0.
9702 as_fn_error ()
9703 {
9704 as_status=$1; test $as_status -eq 0 && as_status=1
9705 if test "$4"; then
9706 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9707 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9708 fi
9709 printf "%s\n" "$as_me: error: $2" >&2
9710 as_fn_exit $as_status
9711 } # as_fn_error
9712
9713
9714 # as_fn_set_status STATUS
9715 # -----------------------
9716 # Set $? to STATUS, without forking.
9717 as_fn_set_status ()
9718 {
9719 return $1
9720 } # as_fn_set_status
9721
9722 # as_fn_exit STATUS
9723 # -----------------
9724 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9725 as_fn_exit ()
9726 {
9727 set +e
9728 as_fn_set_status $1
9729 exit $1
9730 } # as_fn_exit
9731
9732 # as_fn_unset VAR
9733 # ---------------
9734 # Portably unset VAR.
9735 as_fn_unset ()
9736 {
9737 { eval $1=; unset $1;}
9738 }
9739 as_unset=as_fn_unset
9740
9741 # as_fn_append VAR VALUE
9742 # ----------------------
9743 # Append the text in VALUE to the end of the definition contained in VAR. Take
9744 # advantage of any shell optimizations that allow amortized linear growth over
9745 # repeated appends, instead of the typical quadratic growth present in naive
9746 # implementations.
9747 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
9748 then :
9749 eval 'as_fn_append ()
9750 {
9751 eval $1+=\$2
9752 }'
9753 else case e in #(
9754 e) as_fn_append ()
9755 {
9756 eval $1=\$$1\$2
9757 } ;;
9758 esac
9759 fi # as_fn_append
9760
9761 # as_fn_arith ARG...
9762 # ------------------
9763 # Perform arithmetic evaluation on the ARGs, and store the result in the
9764 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9765 # must be portable across $(()) and expr.
9766 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
9767 then :
9768 eval 'as_fn_arith ()
9769 {
9770 as_val=$(( $* ))
9771 }'
9772 else case e in #(
9773 e) as_fn_arith ()
9774 {
9775 as_val=`expr "$@" || test $? -eq 1`
9776 } ;;
9777 esac
9778 fi # as_fn_arith
9779
9780
9781 if expr a : '\(a\)' >/dev/null 2>&1 &&
9782 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9783 as_expr=expr
9784 else
9785 as_expr=false
9786 fi
9787
9788 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9789 as_basename=basename
9790 else
9791 as_basename=false
9792 fi
9793
9794 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9795 as_dirname=dirname
9796 else
9797 as_dirname=false
9798 fi
9799
9800 as_me=`$as_basename -- "$0" ||
9801 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9802 X"$0" : 'X\(//\)$' \| \
9803 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9804 printf "%s\n" X/"$0" |
9805 sed '/^.*\/\([^/][^/]*\)\/*$/{
9806 s//\1/
9807 q
9808 }
9809 /^X\/\(\/\/\)$/{
9810 s//\1/
9811 q
9812 }
9813 /^X\/\(\/\).*/{
9814 s//\1/
9815 q
9816 }
9817 s/.*/./; q'`
9818
9819 # Avoid depending upon Character Ranges.
9820 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9821 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9822 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9823 as_cr_digits='0123456789'
9824 as_cr_alnum=$as_cr_Letters$as_cr_digits
9825
9826
9827 # Determine whether it's possible to make 'echo' print without a newline.
9828 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
9829 # for compatibility with existing Makefiles.
9830 ECHO_C= ECHO_N= ECHO_T=
9831 case `echo -n x` in #(((((
9832 -n*)
9833 case `echo 'xy\c'` in
9834 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9835 xy) ECHO_C='\c';;
9836 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9837 ECHO_T=' ';;
9838 esac;;
9839 *)
9840 ECHO_N='-n';;
9841 esac
9842
9843 # For backward compatibility with old third-party macros, we provide
9844 # the shell variables $as_echo and $as_echo_n. New code should use
9845 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
9846 as_echo='printf %s\n'
9847 as_echo_n='printf %s'
9848
9849 rm -f conf$$ conf$$.exe conf$$.file
9850 if test -d conf$$.dir; then
9851 rm -f conf$$.dir/conf$$.file
9852 else
9853 rm -f conf$$.dir
9854 mkdir conf$$.dir 2>/dev/null
9855 fi
9856 if (echo >conf$$.file) 2>/dev/null; then
9857 if ln -s conf$$.file conf$$ 2>/dev/null; then
9858 as_ln_s='ln -s'
9859 # ... but there are two gotchas:
9860 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
9861 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
9862 # In both cases, we have to default to 'cp -pR'.
9863 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9864 as_ln_s='cp -pR'
9865 elif ln conf$$.file conf$$ 2>/dev/null; then
9866 as_ln_s=ln
9867 else
9868 as_ln_s='cp -pR'
9869 fi
9870 else
9871 as_ln_s='cp -pR'
9872 fi
9873 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9874 rmdir conf$$.dir 2>/dev/null
9875
9876
9877 # as_fn_mkdir_p
9878 # -------------
9879 # Create "$as_dir" as a directory, including parents if necessary.
9880 as_fn_mkdir_p ()
9881 {
9882
9883 case $as_dir in #(
9884 -*) as_dir=./$as_dir;;
9885 esac
9886 test -d "$as_dir" || eval $as_mkdir_p || {
9887 as_dirs=
9888 while :; do
9889 case $as_dir in #(
9890 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9891 *) as_qdir=$as_dir;;
9892 esac
9893 as_dirs="'$as_qdir' $as_dirs"
9894 as_dir=`$as_dirname -- "$as_dir" ||
9895 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9896 X"$as_dir" : 'X\(//\)[^/]' \| \
9897 X"$as_dir" : 'X\(//\)$' \| \
9898 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9899 printf "%s\n" X"$as_dir" |
9900 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9901 s//\1/
9902 q
9903 }
9904 /^X\(\/\/\)[^/].*/{
9905 s//\1/
9906 q
9907 }
9908 /^X\(\/\/\)$/{
9909 s//\1/
9910 q
9911 }
9912 /^X\(\/\).*/{
9913 s//\1/
9914 q
9915 }
9916 s/.*/./; q'`
9917 test -d "$as_dir" && break
9918 done
9919 test -z "$as_dirs" || eval "mkdir $as_dirs"
9920 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9921
9922
9923 } # as_fn_mkdir_p
9924 if mkdir -p . 2>/dev/null; then
9925 as_mkdir_p='mkdir -p "$as_dir"'
9926 else
9927 test -d ./-p && rmdir ./-p
9928 as_mkdir_p=false
9929 fi
9930
9931
9932 # as_fn_executable_p FILE
9933 # -----------------------
9934 # Test if FILE is an executable regular file.
9935 as_fn_executable_p ()
9936 {
9937 test -f "$1" && test -x "$1"
9938 } # as_fn_executable_p
9939 as_test_x='test -x'
9940 as_executable_p=as_fn_executable_p
9941
9942 # Sed expression to map a string onto a valid CPP name.
9943 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9944 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
9945
9946 # Sed expression to map a string onto a valid variable name.
9947 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9948 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
9949
9950
9951 exec 6>&1
9952 ## ----------------------------------- ##
9953 ## Main body of $CONFIG_STATUS script. ##
9954 ## ----------------------------------- ##
9955 _ASEOF
9956 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9957
9958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9959 # Save the log message, to keep $0 and so on meaningful, and to
9960 # report actual input values of CONFIG_FILES etc. instead of their
9961 # values after options handling.
9962 ac_log="
9963 This file was extended by Linuxinfo $as_me 4.2.3, which was
9964 generated by GNU Autoconf 2.72. Invocation command line was
9965
9966 CONFIG_FILES = $CONFIG_FILES
9967 CONFIG_HEADERS = $CONFIG_HEADERS
9968 CONFIG_LINKS = $CONFIG_LINKS
9969 CONFIG_COMMANDS = $CONFIG_COMMANDS
9970 $ $0 $@
9971
9972 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9973 "
9974
9975 _ACEOF
9976
9977 case $ac_config_files in *"
9978 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9979 esac
9980
9981
9982
9983 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9984 # Files that config.status was made for.
9985 config_files="$ac_config_files"
9986 config_commands="$ac_config_commands"
9987
9988 _ACEOF
9989
9990 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9991 ac_cs_usage="\
9992 '$as_me' instantiates files and other configuration actions
9993 from templates according to the current configuration. Unless the files
9994 and actions are specified as TAGs, all are instantiated by default.
9995
9996 Usage: $0 [OPTION]... [TAG]...
9997
9998 -h, --help print this help, then exit
9999 -V, --version print version number and configuration settings, then exit
10000 --config print configuration, then exit
10001 -q, --quiet, --silent
10002 do not print progress messages
10003 -d, --debug don't remove temporary files
10004 --recheck update $as_me by reconfiguring in the same conditions
10005 --file=FILE[:TEMPLATE]
10006 instantiate the configuration file FILE
10007
10008 Configuration files:
10009 $config_files
10010
10011 Configuration commands:
10012 $config_commands
10013
10014 Report bugs to the package provider."
10015
10016 _ACEOF
10017 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
10018 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
10019 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10020 ac_cs_config='$ac_cs_config_escaped'
10021 ac_cs_version="\\
10022 Linuxinfo config.status 4.2.3
10023 configured by $0, generated by GNU Autoconf 2.72,
10024 with options \\"\$ac_cs_config\\"
10025
10026 Copyright (C) 2023 Free Software Foundation, Inc.
10027 This config.status script is free software; the Free Software Foundation
10028 gives unlimited permission to copy, distribute and modify it."
10029
10030 ac_pwd='$ac_pwd'
10031 srcdir='$srcdir'
10032 INSTALL='$INSTALL'
10033 MKDIR_P='$MKDIR_P'
10034 AWK='$AWK'
10035 test -n "\$AWK" || AWK=awk
10036 _ACEOF
10037
10038 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10039 # The default lists apply if the user does not specify any file.
10040 ac_need_defaults=:
10041 while test $# != 0
10042 do
10043 case $1 in
10044 --*=?*)
10045 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10046 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10047 ac_shift=:
10048 ;;
10049 --*=)
10050 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10051 ac_optarg=
10052 ac_shift=:
10053 ;;
10054 *)
10055 ac_option=$1
10056 ac_optarg=$2
10057 ac_shift=shift
10058 ;;
10059 esac
10060
10061 case $ac_option in
10062 # Handling of the options.
10063 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10064 ac_cs_recheck=: ;;
10065 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10066 printf "%s\n" "$ac_cs_version"; exit ;;
10067 --config | --confi | --conf | --con | --co | --c )
10068 printf "%s\n" "$ac_cs_config"; exit ;;
10069 --debug | --debu | --deb | --de | --d | -d )
10070 debug=: ;;
10071 --file | --fil | --fi | --f )
10072 $ac_shift
10073 case $ac_optarg in
10074 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10075 '') as_fn_error $? "missing file argument" ;;
10076 esac
10077 as_fn_append CONFIG_FILES " '$ac_optarg'"
10078 ac_need_defaults=false;;
10079 --he | --h | --help | --hel | -h )
10080 printf "%s\n" "$ac_cs_usage"; exit ;;
10081 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10082 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10083 ac_cs_silent=: ;;
10084
10085 # This is an error.
10086 -*) as_fn_error $? "unrecognized option: '$1'
10087 Try '$0 --help' for more information." ;;
10088
10089 *) as_fn_append ac_config_targets " $1"
10090 ac_need_defaults=false ;;
10091
10092 esac
10093 shift
10094 done
10095
10096 ac_configure_extra_args=
10097
10098 if $ac_cs_silent; then
10099 exec 6>/dev/null
10100 ac_configure_extra_args="$ac_configure_extra_args --silent"
10101 fi
10102
10103 _ACEOF
10104 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10105 if \$ac_cs_recheck; then
10106 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10107 shift
10108 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
10109 CONFIG_SHELL='$SHELL'
10110 export CONFIG_SHELL
10111 exec "\$@"
10112 fi
10113
10114 _ACEOF
10115 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10116 exec 5>>config.log
10117 {
10118 echo
10119 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10120 ## Running $as_me. ##
10121 _ASBOX
10122 printf "%s\n" "$ac_log"
10123 } >&5
10124
10125 _ACEOF
10126 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10127 #
10128 # INIT-COMMANDS
10129 #
10130 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
10131 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
10132 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
10133 # from automake < 1.5.
10134 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
10135 # Capture the value of LINGUAS because we need it to compute CATALOGS.
10136 LINGUAS="${LINGUAS-%UNSET%}"
10137
10138
10139 _ACEOF
10140
10141 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10142
10143 # Handling of arguments.
10144 for ac_config_target in $ac_config_targets
10145 do
10146 case $ac_config_target in
10147 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10148 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
10149 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10150 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
10151 "po4a/Makefile") CONFIG_FILES="$CONFIG_FILES po4a/Makefile" ;;
10152
10153 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
10154 esac
10155 done
10156
10157
10158 # If the user did not use the arguments to specify the items to instantiate,
10159 # then the envvar interface is used. Set only those that are not.
10160 # We use the long form for the default assignment because of an extremely
10161 # bizarre bug on SunOS 4.1.3.
10162 if $ac_need_defaults; then
10163 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
10164 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
10165 fi
10166
10167 # Have a temporary directory for convenience. Make it in the build tree
10168 # simply because there is no reason against having it here, and in addition,
10169 # creating and moving files from /tmp can sometimes cause problems.
10170 # Hook for its removal unless debugging.
10171 # Note that there is a small window in which the directory will not be cleaned:
10172 # after its creation but before its name has been assigned to '$tmp'.
10173 $debug ||
10174 {
10175 tmp= ac_tmp=
10176 trap 'exit_status=$?
10177 : "${ac_tmp:=$tmp}"
10178 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10179 ' 0
10180 trap 'as_fn_exit 1' 1 2 13 15
10181 }
10182 # Create a (secure) tmp directory for tmp files.
10183
10184 {
10185 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10186 test -d "$tmp"
10187 } ||
10188 {
10189 tmp=./conf$$-$RANDOM
10190 (umask 077 && mkdir "$tmp")
10191 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10192 ac_tmp=$tmp
10193
10194 # Set up the scripts for CONFIG_FILES section.
10195 # No need to generate them if there are no CONFIG_FILES.
10196 # This happens for instance with './config.status config.h'.
10197 if test -n "$CONFIG_FILES"; then
10198
10199
10200 ac_cr=`echo X | tr X '\015'`
10201 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10202 # But we know of no other shell where ac_cr would be empty at this
10203 # point, so we can use a bashism as a fallback.
10204 if test "x$ac_cr" = x; then
10205 eval ac_cr=\$\'\\r\'
10206 fi
10207 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10208 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10209 ac_cs_awk_cr='\\r'
10210 else
10211 ac_cs_awk_cr=$ac_cr
10212 fi
10213
10214 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10215 _ACEOF
10216
10217
10218 {
10219 echo "cat >conf$$subs.awk <<_ACEOF" &&
10220 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10221 echo "_ACEOF"
10222 } >conf$$subs.sh ||
10223 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10224 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10225 ac_delim='%!_!# '
10226 for ac_last_try in false false false false false :; do
10227 . ./conf$$subs.sh ||
10228 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10229
10230 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10231 if test $ac_delim_n = $ac_delim_num; then
10232 break
10233 elif $ac_last_try; then
10234 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10235 else
10236 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10237 fi
10238 done
10239 rm -f conf$$subs.sh
10240
10241 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10242 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10243 _ACEOF
10244 sed -n '
10245 h
10246 s/^/S["/; s/!.*/"]=/
10247 p
10248 g
10249 s/^[^!]*!//
10250 :repl
10251 t repl
10252 s/'"$ac_delim"'$//
10253 t delim
10254 :nl
10255 h
10256 s/\(.\{148\}\)..*/\1/
10257 t more1
10258 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10259 p
10260 n
10261 b repl
10262 :more1
10263 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10264 p
10265 g
10266 s/.\{148\}//
10267 t nl
10268 :delim
10269 h
10270 s/\(.\{148\}\)..*/\1/
10271 t more2
10272 s/["\\]/\\&/g; s/^/"/; s/$/"/
10273 p
10274 b
10275 :more2
10276 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10277 p
10278 g
10279 s/.\{148\}//
10280 t delim
10281 ' <conf$$subs.awk | sed '
10282 /^[^""]/{
10283 N
10284 s/\n//
10285 }
10286 ' >>$CONFIG_STATUS || ac_write_fail=1
10287 rm -f conf$$subs.awk
10288 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10289 _ACAWK
10290 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10291 for (key in S) S_is_set[key] = 1
10292 FS = ""
10293
10294 }
10295 {
10296 line = $ 0
10297 nfields = split(line, field, "@")
10298 substed = 0
10299 len = length(field[1])
10300 for (i = 2; i < nfields; i++) {
10301 key = field[i]
10302 keylen = length(key)
10303 if (S_is_set[key]) {
10304 value = S[key]
10305 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10306 len += length(value) + length(field[++i])
10307 substed = 1
10308 } else
10309 len += 1 + keylen
10310 }
10311
10312 print line
10313 }
10314
10315 _ACAWK
10316 _ACEOF
10317 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10318 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10319 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10320 else
10321 cat
10322 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10323 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10324 _ACEOF
10325
10326 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10327 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10328 # trailing colons and then remove the whole line if VPATH becomes empty
10329 # (actually we leave an empty line to preserve line numbers).
10330 if test "x$srcdir" = x.; then
10331 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10332 h
10333 s///
10334 s/^/:/
10335 s/[ ]*$/:/
10336 s/:\$(srcdir):/:/g
10337 s/:\${srcdir}:/:/g
10338 s/:@srcdir@:/:/g
10339 s/^:*//
10340 s/:*$//
10341 x
10342 s/\(=[ ]*\).*/\1/
10343 G
10344 s/\n//
10345 s/^[^=]*=[ ]*$//
10346 }'
10347 fi
10348
10349 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10350 fi # test -n "$CONFIG_FILES"
10351
10352
10353 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
10354 shift
10355 for ac_tag
10356 do
10357 case $ac_tag in
10358 :[FHLC]) ac_mode=$ac_tag; continue;;
10359 esac
10360 case $ac_mode$ac_tag in
10361 :[FHL]*:*);;
10362 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
10363 :[FH]-) ac_tag=-:-;;
10364 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10365 esac
10366 ac_save_IFS=$IFS
10367 IFS=:
10368 set x $ac_tag
10369 IFS=$ac_save_IFS
10370 shift
10371 ac_file=$1
10372 shift
10373
10374 case $ac_mode in
10375 :L) ac_source=$1;;
10376 :[FH])
10377 ac_file_inputs=
10378 for ac_f
10379 do
10380 case $ac_f in
10381 -) ac_f="$ac_tmp/stdin";;
10382 *) # Look for the file first in the build tree, then in the source tree
10383 # (if the path is not absolute). The absolute path cannot be DOS-style,
10384 # because $ac_f cannot contain ':'.
10385 test -f "$ac_f" ||
10386 case $ac_f in
10387 [\\/$]*) false;;
10388 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10389 esac ||
10390 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
10391 esac
10392 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10393 as_fn_append ac_file_inputs " '$ac_f'"
10394 done
10395
10396 # Let's still pretend it is 'configure' which instantiates (i.e., don't
10397 # use $as_me), people would be surprised to read:
10398 # /* config.h. Generated by config.status. */
10399 configure_input='Generated from '`
10400 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10401 `' by configure.'
10402 if test x"$ac_file" != x-; then
10403 configure_input="$ac_file. $configure_input"
10404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10405 printf "%s\n" "$as_me: creating $ac_file" >&6;}
10406 fi
10407 # Neutralize special characters interpreted by sed in replacement strings.
10408 case $configure_input in #(
10409 *\&* | *\|* | *\\* )
10410 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
10411 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10412 *) ac_sed_conf_input=$configure_input;;
10413 esac
10414
10415 case $ac_tag in
10416 *:-:* | *:-) cat >"$ac_tmp/stdin" \
10417 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10418 esac
10419 ;;
10420 esac
10421
10422 ac_dir=`$as_dirname -- "$ac_file" ||
10423 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10424 X"$ac_file" : 'X\(//\)[^/]' \| \
10425 X"$ac_file" : 'X\(//\)$' \| \
10426 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10427 printf "%s\n" X"$ac_file" |
10428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10429 s//\1/
10430 q
10431 }
10432 /^X\(\/\/\)[^/].*/{
10433 s//\1/
10434 q
10435 }
10436 /^X\(\/\/\)$/{
10437 s//\1/
10438 q
10439 }
10440 /^X\(\/\).*/{
10441 s//\1/
10442 q
10443 }
10444 s/.*/./; q'`
10445 as_dir="$ac_dir"; as_fn_mkdir_p
10446 ac_builddir=.
10447
10448 case "$ac_dir" in
10449 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10450 *)
10451 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
10452 # A ".." for each directory in $ac_dir_suffix.
10453 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10454 case $ac_top_builddir_sub in
10455 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10456 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10457 esac ;;
10458 esac
10459 ac_abs_top_builddir=$ac_pwd
10460 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10461 # for backward compatibility:
10462 ac_top_builddir=$ac_top_build_prefix
10463
10464 case $srcdir in
10465 .) # We are building in place.
10466 ac_srcdir=.
10467 ac_top_srcdir=$ac_top_builddir_sub
10468 ac_abs_top_srcdir=$ac_pwd ;;
10469 [\\/]* | ?:[\\/]* ) # Absolute name.
10470 ac_srcdir=$srcdir$ac_dir_suffix;
10471 ac_top_srcdir=$srcdir
10472 ac_abs_top_srcdir=$srcdir ;;
10473 *) # Relative name.
10474 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10475 ac_top_srcdir=$ac_top_build_prefix$srcdir
10476 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10477 esac
10478 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10479
10480
10481 case $ac_mode in
10482 :F)
10483 #
10484 # CONFIG_FILE
10485 #
10486
10487 case $INSTALL in
10488 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10489 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10490 esac
10491 ac_MKDIR_P=$MKDIR_P
10492 case $MKDIR_P in
10493 [\\/$]* | ?:[\\/]* ) ;;
10494 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
10495 esac
10496 _ACEOF
10497
10498 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10499 # If the template does not know about datarootdir, expand it.
10500 # FIXME: This hack should be removed a few years after 2.60.
10501 ac_datarootdir_hack=; ac_datarootdir_seen=
10502 ac_sed_dataroot='
10503 /datarootdir/ {
10504 p
10505 q
10506 }
10507 /@datadir@/p
10508 /@docdir@/p
10509 /@infodir@/p
10510 /@localedir@/p
10511 /@mandir@/p'
10512 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10513 *datarootdir*) ac_datarootdir_seen=yes;;
10514 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10516 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10517 _ACEOF
10518 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10519 ac_datarootdir_hack='
10520 s&@datadir@&$datadir&g
10521 s&@docdir@&$docdir&g
10522 s&@infodir@&$infodir&g
10523 s&@localedir@&$localedir&g
10524 s&@mandir@&$mandir&g
10525 s&\\\${datarootdir}&$datarootdir&g' ;;
10526 esac
10527 _ACEOF
10528
10529 # Neutralize VPATH when '$srcdir' = '.'.
10530 # Shell code in configure.ac might set extrasub.
10531 # FIXME: do we really want to maintain this feature?
10532 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10533 ac_sed_extra="$ac_vpsub
10534 $extrasub
10535 _ACEOF
10536 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10537 :t
10538 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10539 s|@configure_input@|$ac_sed_conf_input|;t t
10540 s&@top_builddir@&$ac_top_builddir_sub&;t t
10541 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10542 s&@srcdir@&$ac_srcdir&;t t
10543 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10544 s&@top_srcdir@&$ac_top_srcdir&;t t
10545 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10546 s&@builddir@&$ac_builddir&;t t
10547 s&@abs_builddir@&$ac_abs_builddir&;t t
10548 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10549 s&@INSTALL@&$ac_INSTALL&;t t
10550 s&@MKDIR_P@&$ac_MKDIR_P&;t t
10551 $ac_datarootdir_hack
10552 "
10553 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10554 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10555
10556 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10557 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10558 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10559 "$ac_tmp/out"`; test -z "$ac_out"; } &&
10560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
10561 which seems to be undefined. Please make sure it is defined" >&5
10562 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
10563 which seems to be undefined. Please make sure it is defined" >&2;}
10564
10565 rm -f "$ac_tmp/stdin"
10566 case $ac_file in
10567 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10568 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10569 esac \
10570 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10571 ;;
10572
10573
10574 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10575 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
10576 ;;
10577 esac
10578
10579
10580 case $ac_file$ac_mode in
10581 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10582 # Older Autoconf quotes --file arguments for eval, but not when files
10583 # are listed without --file. Let's play safe and only enable the eval
10584 # if we detect the quoting.
10585 # TODO: see whether this extra hack can be removed once we start
10586 # requiring Autoconf 2.70 or later.
10587 case $CONFIG_FILES in #(
10588 *\'*) :
10589 eval set x "$CONFIG_FILES" ;; #(
10590 *) :
10591 set x $CONFIG_FILES ;; #(
10592 *) :
10593 ;;
10594 esac
10595 shift
10596 # Used to flag and report bootstrapping failures.
10597 am_rc=0
10598 for am_mf
10599 do
10600 # Strip MF so we end up with the name of the file.
10601 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
10602 # Check whether this is an Automake generated Makefile which includes
10603 # dependency-tracking related rules and includes.
10604 # Grep'ing the whole file directly is not great: AIX grep has a line
10605 # limit of 2048, but all sed's we know have understand at least 4000.
10606 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
10607 || continue
10608 am_dirpart=`$as_dirname -- "$am_mf" ||
10609 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10610 X"$am_mf" : 'X\(//\)[^/]' \| \
10611 X"$am_mf" : 'X\(//\)$' \| \
10612 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
10613 printf "%s\n" X"$am_mf" |
10614 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10615 s//\1/
10616 q
10617 }
10618 /^X\(\/\/\)[^/].*/{
10619 s//\1/
10620 q
10621 }
10622 /^X\(\/\/\)$/{
10623 s//\1/
10624 q
10625 }
10626 /^X\(\/\).*/{
10627 s//\1/
10628 q
10629 }
10630 s/.*/./; q'`
10631 am_filepart=`$as_basename -- "$am_mf" ||
10632 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
10633 X"$am_mf" : 'X\(//\)$' \| \
10634 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
10635 printf "%s\n" X/"$am_mf" |
10636 sed '/^.*\/\([^/][^/]*\)\/*$/{
10637 s//\1/
10638 q
10639 }
10640 /^X\/\(\/\/\)$/{
10641 s//\1/
10642 q
10643 }
10644 /^X\/\(\/\).*/{
10645 s//\1/
10646 q
10647 }
10648 s/.*/./; q'`
10649 { echo "$as_me:$LINENO: cd "$am_dirpart" \
10650 && sed -e '/# am--include-marker/d' "$am_filepart" \
10651 | $MAKE -f - am--depfiles" >&5
10652 (cd "$am_dirpart" \
10653 && sed -e '/# am--include-marker/d' "$am_filepart" \
10654 | $MAKE -f - am--depfiles) >&5 2>&5
10655 ac_status=$?
10656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657 (exit $ac_status); } || am_rc=$?
10658 done
10659 if test $am_rc -ne 0; then
10660 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
10661 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
10662 as_fn_error $? "Something went wrong bootstrapping makefile fragments
10663 for automatic dependency tracking. If GNU make was not used, consider
10664 re-running the configure script with MAKE=\"gmake\" (or whatever is
10665 necessary). You can also try re-running configure with the
10666 '--disable-dependency-tracking' option to at least be able to build
10667 the package (albeit without support for automatic dependency tracking).
10668 See 'config.log' for more details" "$LINENO" 5; }
10669 fi
10670 { am_dirpart=; unset am_dirpart;}
10671 { am_filepart=; unset am_filepart;}
10672 { am_mf=; unset am_mf;}
10673 { am_rc=; unset am_rc;}
10674 rm -f conftest-deps.mk
10675 }
10676 ;;
10677 "po-directories":C)
10678 for ac_file in $CONFIG_FILES; do
10679 # Support "outfile[:infile[:infile...]]"
10680 case "$ac_file" in
10681 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10682 esac
10683 # PO directories have a Makefile.in generated from Makefile.in.in.
10684 case "$ac_file" in */Makefile.in)
10685 # Adjust a relative srcdir.
10686 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10687 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
10688 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10689 # In autoconf-2.13 it is called $ac_given_srcdir.
10690 # In autoconf-2.50 it is called $srcdir.
10691 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10692 case "$ac_given_srcdir" in
10693 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10694 /*) top_srcdir="$ac_given_srcdir" ;;
10695 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
10696 esac
10697 # Treat a directory as a PO directory if and only if it has a
10698 # POTFILES.in file. This allows packages to have multiple PO
10699 # directories under different names or in different locations.
10700 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10701 rm -f "$ac_dir/POTFILES"
10702 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10703 gt_tab=`printf '\t'`
10704 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
10705 POMAKEFILEDEPS="POTFILES.in"
10706 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
10707 # on $ac_dir but don't depend on user-specified configuration
10708 # parameters.
10709 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
10710 # The LINGUAS file contains the set of available languages.
10711 if test -n "$OBSOLETE_ALL_LINGUAS"; then
10712 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
10713 fi
10714 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
10715 # Hide the ALL_LINGUAS assignment from automake < 1.5.
10716 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
10717 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
10718 else
10719 # The set of available languages was given in configure.in.
10720 # Hide the ALL_LINGUAS assignment from automake < 1.5.
10721 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
10722 fi
10723 # Compute POFILES
10724 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
10725 # Compute UPDATEPOFILES
10726 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
10727 # Compute DUMMYPOFILES
10728 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
10729 # Compute GMOFILES
10730 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
10731 case "$ac_given_srcdir" in
10732 .) srcdirpre= ;;
10733 *) srcdirpre='$(srcdir)/' ;;
10734 esac
10735 POFILES=
10736 UPDATEPOFILES=
10737 DUMMYPOFILES=
10738 GMOFILES=
10739 for lang in $ALL_LINGUAS; do
10740 POFILES="$POFILES $srcdirpre$lang.po"
10741 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
10742 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
10743 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
10744 done
10745 # CATALOGS depends on both $ac_dir and the user's LINGUAS
10746 # environment variable.
10747 INST_LINGUAS=
10748 if test -n "$ALL_LINGUAS"; then
10749 for presentlang in $ALL_LINGUAS; do
10750 useit=no
10751 if test "%UNSET%" != "$LINGUAS"; then
10752 desiredlanguages="$LINGUAS"
10753 else
10754 desiredlanguages="$ALL_LINGUAS"
10755 fi
10756 for desiredlang in $desiredlanguages; do
10757 # Use the presentlang catalog if desiredlang is
10758 # a. equal to presentlang, or
10759 # b. a variant of presentlang (because in this case,
10760 # presentlang can be used as a fallback for messages
10761 # which are not translated in the desiredlang catalog).
10762 case "$desiredlang" in
10763 "$presentlang"*) useit=yes;;
10764 esac
10765 done
10766 if test $useit = yes; then
10767 INST_LINGUAS="$INST_LINGUAS $presentlang"
10768 fi
10769 done
10770 fi
10771 CATALOGS=
10772 if test -n "$INST_LINGUAS"; then
10773 for lang in $INST_LINGUAS; do
10774 CATALOGS="$CATALOGS $lang.gmo"
10775 done
10776 fi
10777 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10778 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
10779 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
10780 if test -f "$f"; then
10781 case "$f" in
10782 *.orig | *.bak | *~) ;;
10783 *) cat "$f" >> "$ac_dir/Makefile" ;;
10784 esac
10785 fi
10786 done
10787 fi
10788 ;;
10789 esac
10790 done ;;
10791
10792 esac
10793 done # for ac_tag
10794
10795
10796 as_fn_exit 0
10797 _ACEOF
10798 ac_clean_files=$ac_clean_files_save
10799
10800 test $ac_write_fail = 0 ||
10801 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10802
10803
10804 # configure is writing to config.log, and then calls config.status.
10805 # config.status does its own redirection, appending to config.log.
10806 # Unfortunately, on DOS this fails, as config.log is still kept open
10807 # by configure, so config.status won't be able to write to it; its
10808 # output is simply discarded. So we exec the FD to /dev/null,
10809 # effectively closing config.log, so it can be properly (re)opened and
10810 # appended to by config.status. When coming back to configure, we
10811 # need to make the FD available again.
10812 if test "$no_create" != yes; then
10813 ac_cs_success=:
10814 ac_config_status_args=
10815 test "$silent" = yes &&
10816 ac_config_status_args="$ac_config_status_args --quiet"
10817 exec 5>/dev/null
10818 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10819 exec 5>>config.log
10820 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10821 # would make configure fail if this is the last instruction.
10822 $ac_cs_success || as_fn_exit 1
10823 fi
10824 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10826 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10827 fi
10828
10829