Debian Codegraph @

po-configure

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