Debian Codegraph @

configure

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