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 aptitude 0.8.13.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
206 fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227 fi
228 fi
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell [email protected] and
270 $0: [email protected] about your
271 $0: system, including any error possibly output before this
272 $0: message. Then install a modern shell, or manually run
273 $0: the script under such a shell if you do have one."
274 fi
275 exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293 { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302 return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\).*/{
351 s//\1/
352 q
353 }
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
378 {
379 eval $1+=\$2
380 }'
381 else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
395 {
396 as_val=$(( $* ))
397 }'
398 else
399 as_fn_arith ()
400 {
401 as_val=`expr "$@" || test $? -eq 1`
402 }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417 fi
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425 else
426 as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437 else
438 as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\/\)$/{
451 s//\1/
452 q
453 }
454 /^X\/\(\/\).*/{
455 s//\1/
456 q
457 }
458 s/.*/./; q'`
459
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
474 p
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
480 b
481 :lineno
482 N
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
512 *)
513 ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519 else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
536 fi
537 else
538 as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545 else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
562
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
579
580 # Identity of this package.
581 PACKAGE_NAME='aptitude'
582 PACKAGE_TARNAME='aptitude'
583 PACKAGE_VERSION='0.8.13'
584 PACKAGE_STRING='aptitude 0.8.13'
585 PACKAGE_BUGREPORT='[email protected]'
586 PACKAGE_URL=''
587
588 ac_unique_file="src/main.cc"
589 gt_needs=
590 # Factoring default headers for most tests.
591 ac_includes_default="\
592 #include <stdio.h>
593 #ifdef HAVE_SYS_TYPES_H
594 # include <sys/types.h>
595 #endif
596 #ifdef HAVE_SYS_STAT_H
597 # include <sys/stat.h>
598 #endif
599 #ifdef STDC_HEADERS
600 # include <stdlib.h>
601 # include <stddef.h>
602 #else
603 # ifdef HAVE_STDLIB_H
604 # include <stdlib.h>
605 # endif
606 #endif
607 #ifdef HAVE_STRING_H
608 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 # include <memory.h>
610 # endif
611 # include <string.h>
612 #endif
613 #ifdef HAVE_STRINGS_H
614 # include <strings.h>
615 #endif
616 #ifdef HAVE_INTTYPES_H
617 # include <inttypes.h>
618 #endif
619 #ifdef HAVE_STDINT_H
620 # include <stdint.h>
621 #endif
622 #ifdef HAVE_UNISTD_H
623 # include <unistd.h>
624 #endif"
625
626 ac_subst_vars='am__EXEEXT_FALSE
627 am__EXEEXT_TRUE
628 LTLIBOBJS
629 LIBOBJS
630 STATEDIR
631 TESTDIRS
632 DOCDIRS
633 SRCDIRS
634 BUILD_QT_FALSE
635 BUILD_QT_TRUE
636 MOC
637 QtGui_LIBS
638 QtGui_CFLAGS
639 QtCore_LIBS
640 QtCore_CFLAGS
641 BUILD_GTK_FALSE
642 BUILD_GTK_TRUE
643 VTE_LIBS
644 VTE_CFLAGS
645 LIBGLADEMM_LIBS
646 LIBGLADEMM_CFLAGS
647 GTKMM_LIBS
648 GTKMM_CFLAGS
649 GTHREAD_LIBS
650 GTHREAD_CFLAGS
651 GLIBMM_LIBS
652 GLIBMM_CFLAGS
653 BUILD_LOCAL_GMOCK_FALSE
654 BUILD_LOCAL_GMOCK_TRUE
655 SQLITE3_LIBS
656 SQLITE3_CFLAGS
657 BOOST_UNIT_TEST_LIBS
658 BOOST_SYSTEM_LIB
659 BOOST_IOSTREAMS_LIB
660 BOOST_LDFLAGS
661 BOOST_CPPFLAGS
662 CWIDGET_LIBS
663 CWIDGET_CFLAGS
664 SIGC_LIBS
665 SIGC_CFLAGS
666 PKG_CONFIG_LIBDIR
667 PKG_CONFIG_PATH
668 PKG_CONFIG
669 XAPIAN_CONFIG
670 HAVE_ELINKS_FALSE
671 HAVE_ELINKS_TRUE
672 HAVE_FOP_FALSE
673 HAVE_FOP_TRUE
674 HAVE_RSVG_CONVERT_FALSE
675 HAVE_RSVG_CONVERT_TRUE
676 HAVE_XSLTPROC_FALSE
677 HAVE_XSLTPROC_TRUE
678 HAVE_PO4A_FALSE
679 HAVE_PO4A_TRUE
680 ELINKS
681 FOP
682 RSVG_CONVERT
683 XSLTPROC
684 PO4A
685 RANLIB
686 POSUB
687 LTLIBINTL
688 LIBINTL
689 INTLLIBS
690 LTLIBICONV
691 LIBICONV
692 INTL_MACOSX_LIBS
693 EGREP
694 GREP
695 CXXCPP
696 am__fastdepCXX_FALSE
697 am__fastdepCXX_TRUE
698 CXXDEPMODE
699 ac_ct_CXX
700 CXXFLAGS
701 CXX
702 host_os
703 host_vendor
704 host_cpu
705 host
706 build_os
707 build_vendor
708 build_cpu
709 build
710 am__fastdepCC_FALSE
711 am__fastdepCC_TRUE
712 CCDEPMODE
713 am__nodep
714 AMDEPBACKSLASH
715 AMDEP_FALSE
716 AMDEP_TRUE
717 am__include
718 DEPDIR
719 OBJEXT
720 EXEEXT
721 ac_ct_CC
722 CPPFLAGS
723 LDFLAGS
724 CFLAGS
725 CC
726 XGETTEXT_EXTRA_OPTIONS
727 MSGMERGE
728 XGETTEXT_015
729 XGETTEXT
730 GMSGFMT_015
731 MSGFMT_015
732 GMSGFMT
733 MSGFMT
734 GETTEXT_MACRO_VERSION
735 USE_NLS
736 SED
737 AM_BACKSLASH
738 AM_DEFAULT_VERBOSITY
739 AM_DEFAULT_V
740 AM_V
741 am__untar
742 am__tar
743 AMTAR
744 am__leading_dot
745 SET_MAKE
746 AWK
747 mkdir_p
748 MKDIR_P
749 INSTALL_STRIP_PROGRAM
750 STRIP
751 install_sh
752 MAKEINFO
753 AUTOHEADER
754 AUTOMAKE
755 AUTOCONF
756 ACLOCAL
757 VERSION
758 PACKAGE
759 CYGPATH_W
760 am__isrc
761 INSTALL_DATA
762 INSTALL_SCRIPT
763 INSTALL_PROGRAM
764 target_alias
765 host_alias
766 build_alias
767 LIBS
768 ECHO_T
769 ECHO_N
770 ECHO_C
771 DEFS
772 mandir
773 localedir
774 libdir
775 psdir
776 pdfdir
777 dvidir
778 htmldir
779 infodir
780 docdir
781 oldincludedir
782 includedir
783 runstatedir
784 localstatedir
785 sharedstatedir
786 sysconfdir
787 datadir
788 datarootdir
789 libexecdir
790 sbindir
791 bindir
792 program_transform_name
793 prefix
794 exec_prefix
795 PACKAGE_URL
796 PACKAGE_BUGREPORT
797 PACKAGE_STRING
798 PACKAGE_VERSION
799 PACKAGE_TARNAME
800 PACKAGE_NAME
801 PATH_SEPARATOR
802 SHELL
803 am__quote'
804 ac_subst_files=''
805 ac_user_opts='
806 enable_option_checking
807 enable_silent_rules
808 enable_nls
809 enable_dependency_tracking
810 with_gnu_ld
811 enable_rpath
812 with_libiconv_prefix
813 with_libintl_prefix
814 enable_boost_lib_checks
815 with_boost
816 with_boost_libdir
817 with_boost_iostreams
818 with_boost_system
819 enable_gtk
820 enable_qt
821 enable_private_glade_file
822 enable_dynamic_backtrace
823 enable_werror
824 enable_period_beep
825 enable_reload_cache
826 with_package_state_loc
827 with_lock_loc
828 enable_aptitude
829 enable_docs
830 enable_tests
831 enable_resolver_sanity_checks
832 '
833 ac_precious_vars='build_alias
834 host_alias
835 target_alias
836 CC
837 CFLAGS
838 LDFLAGS
839 LIBS
840 CPPFLAGS
841 CXX
842 CXXFLAGS
843 CCC
844 CXXCPP
845 PKG_CONFIG
846 PKG_CONFIG_PATH
847 PKG_CONFIG_LIBDIR
848 SIGC_CFLAGS
849 SIGC_LIBS
850 CWIDGET_CFLAGS
851 CWIDGET_LIBS
852 SQLITE3_CFLAGS
853 SQLITE3_LIBS
854 GLIBMM_CFLAGS
855 GLIBMM_LIBS
856 GTHREAD_CFLAGS
857 GTHREAD_LIBS
858 GTKMM_CFLAGS
859 GTKMM_LIBS
860 LIBGLADEMM_CFLAGS
861 LIBGLADEMM_LIBS
862 VTE_CFLAGS
863 VTE_LIBS
864 QtCore_CFLAGS
865 QtCore_LIBS
866 QtGui_CFLAGS
867 QtGui_LIBS'
868
869
870 # Initialize some variables set by options.
871 ac_init_help=
872 ac_init_version=false
873 ac_unrecognized_opts=
874 ac_unrecognized_sep=
875 # The variables have the same names as the options, with
876 # dashes changed to underlines.
877 cache_file=/dev/null
878 exec_prefix=NONE
879 no_create=
880 no_recursion=
881 prefix=NONE
882 program_prefix=NONE
883 program_suffix=NONE
884 program_transform_name=s,x,x,
885 silent=
886 site=
887 srcdir=
888 verbose=
889 x_includes=NONE
890 x_libraries=NONE
891
892 # Installation directory options.
893 # These are left unexpanded so users can "make install exec_prefix=/foo"
894 # and all the variables that are supposed to be based on exec_prefix
895 # by default will actually change.
896 # Use braces instead of parens because sh, perl, etc. also accept them.
897 # (The list follows the same order as the GNU Coding Standards.)
898 bindir='${exec_prefix}/bin'
899 sbindir='${exec_prefix}/sbin'
900 libexecdir='${exec_prefix}/libexec'
901 datarootdir='${prefix}/share'
902 datadir='${datarootdir}'
903 sysconfdir='${prefix}/etc'
904 sharedstatedir='${prefix}/com'
905 localstatedir='${prefix}/var'
906 runstatedir='${localstatedir}/run'
907 includedir='${prefix}/include'
908 oldincludedir='/usr/include'
909 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
910 infodir='${datarootdir}/info'
911 htmldir='${docdir}'
912 dvidir='${docdir}'
913 pdfdir='${docdir}'
914 psdir='${docdir}'
915 libdir='${exec_prefix}/lib'
916 localedir='${datarootdir}/locale'
917 mandir='${datarootdir}/man'
918
919 ac_prev=
920 ac_dashdash=
921 for ac_option
922 do
923 # If the previous option needs an argument, assign it.
924 if test -n "$ac_prev"; then
925 eval $ac_prev=\$ac_option
926 ac_prev=
927 continue
928 fi
929
930 case $ac_option in
931 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
932 *=) ac_optarg= ;;
933 *) ac_optarg=yes ;;
934 esac
935
936 # Accept the important Cygnus configure options, so we can diagnose typos.
937
938 case $ac_dashdash$ac_option in
939 --)
940 ac_dashdash=yes ;;
941
942 -bindir | --bindir | --bindi | --bind | --bin | --bi)
943 ac_prev=bindir ;;
944 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
945 bindir=$ac_optarg ;;
946
947 -build | --build | --buil | --bui | --bu)
948 ac_prev=build_alias ;;
949 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
950 build_alias=$ac_optarg ;;
951
952 -cache-file | --cache-file | --cache-fil | --cache-fi \
953 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
954 ac_prev=cache_file ;;
955 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
956 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
957 cache_file=$ac_optarg ;;
958
959 --config-cache | -C)
960 cache_file=config.cache ;;
961
962 -datadir | --datadir | --datadi | --datad)
963 ac_prev=datadir ;;
964 -datadir=* | --datadir=* | --datadi=* | --datad=*)
965 datadir=$ac_optarg ;;
966
967 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
968 | --dataroo | --dataro | --datar)
969 ac_prev=datarootdir ;;
970 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
971 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
972 datarootdir=$ac_optarg ;;
973
974 -disable-* | --disable-*)
975 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
976 # Reject names that are not valid shell variable names.
977 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
978 as_fn_error $? "invalid feature name: $ac_useropt"
979 ac_useropt_orig=$ac_useropt
980 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
981 case $ac_user_opts in
982 *"
983 "enable_$ac_useropt"
984 "*) ;;
985 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
986 ac_unrecognized_sep=', ';;
987 esac
988 eval enable_$ac_useropt=no ;;
989
990 -docdir | --docdir | --docdi | --doc | --do)
991 ac_prev=docdir ;;
992 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
993 docdir=$ac_optarg ;;
994
995 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
996 ac_prev=dvidir ;;
997 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
998 dvidir=$ac_optarg ;;
999
1000 -enable-* | --enable-*)
1001 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1002 # Reject names that are not valid shell variable names.
1003 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1004 as_fn_error $? "invalid feature name: $ac_useropt"
1005 ac_useropt_orig=$ac_useropt
1006 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1007 case $ac_user_opts in
1008 *"
1009 "enable_$ac_useropt"
1010 "*) ;;
1011 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1012 ac_unrecognized_sep=', ';;
1013 esac
1014 eval enable_$ac_useropt=\$ac_optarg ;;
1015
1016 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1017 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1018 | --exec | --exe | --ex)
1019 ac_prev=exec_prefix ;;
1020 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1021 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1022 | --exec=* | --exe=* | --ex=*)
1023 exec_prefix=$ac_optarg ;;
1024
1025 -gas | --gas | --ga | --g)
1026 # Obsolete; use --with-gas.
1027 with_gas=yes ;;
1028
1029 -help | --help | --hel | --he | -h)
1030 ac_init_help=long ;;
1031 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1032 ac_init_help=recursive ;;
1033 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1034 ac_init_help=short ;;
1035
1036 -host | --host | --hos | --ho)
1037 ac_prev=host_alias ;;
1038 -host=* | --host=* | --hos=* | --ho=*)
1039 host_alias=$ac_optarg ;;
1040
1041 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1042 ac_prev=htmldir ;;
1043 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1044 | --ht=*)
1045 htmldir=$ac_optarg ;;
1046
1047 -includedir | --includedir | --includedi | --included | --include \
1048 | --includ | --inclu | --incl | --inc)
1049 ac_prev=includedir ;;
1050 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1051 | --includ=* | --inclu=* | --incl=* | --inc=*)
1052 includedir=$ac_optarg ;;
1053
1054 -infodir | --infodir | --infodi | --infod | --info | --inf)
1055 ac_prev=infodir ;;
1056 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1057 infodir=$ac_optarg ;;
1058
1059 -libdir | --libdir | --libdi | --libd)
1060 ac_prev=libdir ;;
1061 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1062 libdir=$ac_optarg ;;
1063
1064 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1065 | --libexe | --libex | --libe)
1066 ac_prev=libexecdir ;;
1067 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1068 | --libexe=* | --libex=* | --libe=*)
1069 libexecdir=$ac_optarg ;;
1070
1071 -localedir | --localedir | --localedi | --localed | --locale)
1072 ac_prev=localedir ;;
1073 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1074 localedir=$ac_optarg ;;
1075
1076 -localstatedir | --localstatedir | --localstatedi | --localstated \
1077 | --localstate | --localstat | --localsta | --localst | --locals)
1078 ac_prev=localstatedir ;;
1079 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1080 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1081 localstatedir=$ac_optarg ;;
1082
1083 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1084 ac_prev=mandir ;;
1085 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1086 mandir=$ac_optarg ;;
1087
1088 -nfp | --nfp | --nf)
1089 # Obsolete; use --without-fp.
1090 with_fp=no ;;
1091
1092 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1093 | --no-cr | --no-c | -n)
1094 no_create=yes ;;
1095
1096 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1097 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1098 no_recursion=yes ;;
1099
1100 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1101 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1102 | --oldin | --oldi | --old | --ol | --o)
1103 ac_prev=oldincludedir ;;
1104 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1105 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1106 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1107 oldincludedir=$ac_optarg ;;
1108
1109 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1110 ac_prev=prefix ;;
1111 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1112 prefix=$ac_optarg ;;
1113
1114 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1115 | --program-pre | --program-pr | --program-p)
1116 ac_prev=program_prefix ;;
1117 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1118 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1119 program_prefix=$ac_optarg ;;
1120
1121 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1122 | --program-suf | --program-su | --program-s)
1123 ac_prev=program_suffix ;;
1124 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1125 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1126 program_suffix=$ac_optarg ;;
1127
1128 -program-transform-name | --program-transform-name \
1129 | --program-transform-nam | --program-transform-na \
1130 | --program-transform-n | --program-transform- \
1131 | --program-transform | --program-transfor \
1132 | --program-transfo | --program-transf \
1133 | --program-trans | --program-tran \
1134 | --progr-tra | --program-tr | --program-t)
1135 ac_prev=program_transform_name ;;
1136 -program-transform-name=* | --program-transform-name=* \
1137 | --program-transform-nam=* | --program-transform-na=* \
1138 | --program-transform-n=* | --program-transform-=* \
1139 | --program-transform=* | --program-transfor=* \
1140 | --program-transfo=* | --program-transf=* \
1141 | --program-trans=* | --program-tran=* \
1142 | --progr-tra=* | --program-tr=* | --program-t=*)
1143 program_transform_name=$ac_optarg ;;
1144
1145 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1146 ac_prev=pdfdir ;;
1147 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1148 pdfdir=$ac_optarg ;;
1149
1150 -psdir | --psdir | --psdi | --psd | --ps)
1151 ac_prev=psdir ;;
1152 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1153 psdir=$ac_optarg ;;
1154
1155 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1156 | -silent | --silent | --silen | --sile | --sil)
1157 silent=yes ;;
1158
1159 -runstatedir | --runstatedir | --runstatedi | --runstated \
1160 | --runstate | --runstat | --runsta | --runst | --runs \
1161 | --run | --ru | --r)
1162 ac_prev=runstatedir ;;
1163 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1164 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1165 | --run=* | --ru=* | --r=*)
1166 runstatedir=$ac_optarg ;;
1167
1168 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1169 ac_prev=sbindir ;;
1170 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1171 | --sbi=* | --sb=*)
1172 sbindir=$ac_optarg ;;
1173
1174 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1175 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1176 | --sharedst | --shareds | --shared | --share | --shar \
1177 | --sha | --sh)
1178 ac_prev=sharedstatedir ;;
1179 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1180 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1181 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1182 | --sha=* | --sh=*)
1183 sharedstatedir=$ac_optarg ;;
1184
1185 -site | --site | --sit)
1186 ac_prev=site ;;
1187 -site=* | --site=* | --sit=*)
1188 site=$ac_optarg ;;
1189
1190 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1191 ac_prev=srcdir ;;
1192 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1193 srcdir=$ac_optarg ;;
1194
1195 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1196 | --syscon | --sysco | --sysc | --sys | --sy)
1197 ac_prev=sysconfdir ;;
1198 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1199 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1200 sysconfdir=$ac_optarg ;;
1201
1202 -target | --target | --targe | --targ | --tar | --ta | --t)
1203 ac_prev=target_alias ;;
1204 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1205 target_alias=$ac_optarg ;;
1206
1207 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1208 verbose=yes ;;
1209
1210 -version | --version | --versio | --versi | --vers | -V)
1211 ac_init_version=: ;;
1212
1213 -with-* | --with-*)
1214 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1215 # Reject names that are not valid shell variable names.
1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1217 as_fn_error $? "invalid package name: $ac_useropt"
1218 ac_useropt_orig=$ac_useropt
1219 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1220 case $ac_user_opts in
1221 *"
1222 "with_$ac_useropt"
1223 "*) ;;
1224 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1225 ac_unrecognized_sep=', ';;
1226 esac
1227 eval with_$ac_useropt=\$ac_optarg ;;
1228
1229 -without-* | --without-*)
1230 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1231 # Reject names that are not valid shell variable names.
1232 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1233 as_fn_error $? "invalid package name: $ac_useropt"
1234 ac_useropt_orig=$ac_useropt
1235 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1236 case $ac_user_opts in
1237 *"
1238 "with_$ac_useropt"
1239 "*) ;;
1240 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1241 ac_unrecognized_sep=', ';;
1242 esac
1243 eval with_$ac_useropt=no ;;
1244
1245 --x)
1246 # Obsolete; use --with-x.
1247 with_x=yes ;;
1248
1249 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1250 | --x-incl | --x-inc | --x-in | --x-i)
1251 ac_prev=x_includes ;;
1252 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1253 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1254 x_includes=$ac_optarg ;;
1255
1256 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1257 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1258 ac_prev=x_libraries ;;
1259 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1260 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1261 x_libraries=$ac_optarg ;;
1262
1263 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1264 Try \`$0 --help' for more information"
1265 ;;
1266
1267 *=*)
1268 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1269 # Reject names that are not valid shell variable names.
1270 case $ac_envvar in #(
1271 '' | [0-9]* | *[!_$as_cr_alnum]* )
1272 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1273 esac
1274 eval $ac_envvar=\$ac_optarg
1275 export $ac_envvar ;;
1276
1277 *)
1278 # FIXME: should be removed in autoconf 3.0.
1279 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1280 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1281 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1282 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1283 ;;
1284
1285 esac
1286 done
1287
1288 if test -n "$ac_prev"; then
1289 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1290 as_fn_error $? "missing argument to $ac_option"
1291 fi
1292
1293 if test -n "$ac_unrecognized_opts"; then
1294 case $enable_option_checking in
1295 no) ;;
1296 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1297 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1298 esac
1299 fi
1300
1301 # Check all directory arguments for consistency.
1302 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1303 datadir sysconfdir sharedstatedir localstatedir includedir \
1304 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1305 libdir localedir mandir runstatedir
1306 do
1307 eval ac_val=\$$ac_var
1308 # Remove trailing slashes.
1309 case $ac_val in
1310 */ )
1311 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1312 eval $ac_var=\$ac_val;;
1313 esac
1314 # Be sure to have absolute directory names.
1315 case $ac_val in
1316 [\\/$]* | ?:[\\/]* ) continue;;
1317 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1318 esac
1319 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1320 done
1321
1322 # There might be people who depend on the old broken behavior: `$host'
1323 # used to hold the argument of --host etc.
1324 # FIXME: To remove some day.
1325 build=$build_alias
1326 host=$host_alias
1327 target=$target_alias
1328
1329 # FIXME: To remove some day.
1330 if test "x$host_alias" != x; then
1331 if test "x$build_alias" = x; then
1332 cross_compiling=maybe
1333 elif test "x$build_alias" != "x$host_alias"; then
1334 cross_compiling=yes
1335 fi
1336 fi
1337
1338 ac_tool_prefix=
1339 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1340
1341 test "$silent" = yes && exec 6>/dev/null
1342
1343
1344 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1345 ac_ls_di=`ls -di .` &&
1346 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1347 as_fn_error $? "working directory cannot be determined"
1348 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1349 as_fn_error $? "pwd does not report name of working directory"
1350
1351
1352 # Find the source files, if location was not specified.
1353 if test -z "$srcdir"; then
1354 ac_srcdir_defaulted=yes
1355 # Try the directory containing this script, then the parent directory.
1356 ac_confdir=`$as_dirname -- "$as_myself" ||
1357 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1358 X"$as_myself" : 'X\(//\)[^/]' \| \
1359 X"$as_myself" : 'X\(//\)$' \| \
1360 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1361 $as_echo X"$as_myself" |
1362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1363 s//\1/
1364 q
1365 }
1366 /^X\(\/\/\)[^/].*/{
1367 s//\1/
1368 q
1369 }
1370 /^X\(\/\/\)$/{
1371 s//\1/
1372 q
1373 }
1374 /^X\(\/\).*/{
1375 s//\1/
1376 q
1377 }
1378 s/.*/./; q'`
1379 srcdir=$ac_confdir
1380 if test ! -r "$srcdir/$ac_unique_file"; then
1381 srcdir=..
1382 fi
1383 else
1384 ac_srcdir_defaulted=no
1385 fi
1386 if test ! -r "$srcdir/$ac_unique_file"; then
1387 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1388 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1389 fi
1390 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1391 ac_abs_confdir=`(
1392 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1393 pwd)`
1394 # When building in place, set srcdir=.
1395 if test "$ac_abs_confdir" = "$ac_pwd"; then
1396 srcdir=.
1397 fi
1398 # Remove unnecessary trailing slashes from srcdir.
1399 # Double slashes in file names in object file debugging info
1400 # mess up M-x gdb in Emacs.
1401 case $srcdir in
1402 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1403 esac
1404 for ac_var in $ac_precious_vars; do
1405 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1406 eval ac_env_${ac_var}_value=\$${ac_var}
1407 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1408 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1409 done
1410
1411 #
1412 # Report the --help message.
1413 #
1414 if test "$ac_init_help" = "long"; then
1415 # Omit some internal or obsolete options to make the list less imposing.
1416 # This message is too long to be a string in the A/UX 3.1 sh.
1417 cat <<_ACEOF
1418 \`configure' configures aptitude 0.8.13 to adapt to many kinds of systems.
1419
1420 Usage: $0 [OPTION]... [VAR=VALUE]...
1421
1422 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1423 VAR=VALUE. See below for descriptions of some of the useful variables.
1424
1425 Defaults for the options are specified in brackets.
1426
1427 Configuration:
1428 -h, --help display this help and exit
1429 --help=short display options specific to this package
1430 --help=recursive display the short help of all the included packages
1431 -V, --version display version information and exit
1432 -q, --quiet, --silent do not print \`checking ...' messages
1433 --cache-file=FILE cache test results in FILE [disabled]
1434 -C, --config-cache alias for \`--cache-file=config.cache'
1435 -n, --no-create do not create output files
1436 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1437
1438 Installation directories:
1439 --prefix=PREFIX install architecture-independent files in PREFIX
1440 [$ac_default_prefix]
1441 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1442 [PREFIX]
1443
1444 By default, \`make install' will install all the files in
1445 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1446 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1447 for instance \`--prefix=\$HOME'.
1448
1449 For better control, use the options below.
1450
1451 Fine tuning of the installation directories:
1452 --bindir=DIR user executables [EPREFIX/bin]
1453 --sbindir=DIR system admin executables [EPREFIX/sbin]
1454 --libexecdir=DIR program executables [EPREFIX/libexec]
1455 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1456 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1457 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1458 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1459 --libdir=DIR object code libraries [EPREFIX/lib]
1460 --includedir=DIR C header files [PREFIX/include]
1461 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1462 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1463 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1464 --infodir=DIR info documentation [DATAROOTDIR/info]
1465 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1466 --mandir=DIR man documentation [DATAROOTDIR/man]
1467 --docdir=DIR documentation root [DATAROOTDIR/doc/aptitude]
1468 --htmldir=DIR html documentation [DOCDIR]
1469 --dvidir=DIR dvi documentation [DOCDIR]
1470 --pdfdir=DIR pdf documentation [DOCDIR]
1471 --psdir=DIR ps documentation [DOCDIR]
1472 _ACEOF
1473
1474 cat <<\_ACEOF
1475
1476 Program names:
1477 --program-prefix=PREFIX prepend PREFIX to installed program names
1478 --program-suffix=SUFFIX append SUFFIX to installed program names
1479 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1480
1481 System types:
1482 --build=BUILD configure for building on BUILD [guessed]
1483 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1484 _ACEOF
1485 fi
1486
1487 if test -n "$ac_init_help"; then
1488 case $ac_init_help in
1489 short | recursive ) echo "Configuration of aptitude 0.8.13:";;
1490 esac
1491 cat <<\_ACEOF
1492
1493 Optional Features:
1494 --disable-option-checking ignore unrecognized --enable/--with options
1495 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1496 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1497 --enable-silent-rules less verbose build output (undo: "make V=1")
1498 --disable-silent-rules verbose build output (undo: "make V=0")
1499 --disable-nls do not use Native Language Support
1500 --enable-dependency-tracking
1501 do not reject slow dependency extractors
1502 --disable-dependency-tracking
1503 speeds up one-time build
1504 --disable-rpath do not hardcode runtime library paths
1505 --disable-boost-lib-checks
1506 Disable Boost library checks (for development only)
1507 --enable-gtk compile the GTK+ frontend
1508 --enable-qt compile the Qt frontend
1509 --disable-private-glade-file
1510 Always read the .glade file from \$datadir instead
1511 of reading one in ".". This can be useful when
1512 installing aptitude globally, to avoid accidentally
1513 picking up the wrong version of the .glade file.
1514 --enable-dynamic-backtrace
1515 Modify the executable so that it can generate a
1516 backtrace for uncaught exceptions. Will double the
1517 size of the stripped binary.
1518 --enable-werror compile with -Werror
1519 --enable-period-beep periodically (once a second) produce an annoying
1520 beep
1521 --enable-reload-cache allow the user to reload the cache on demand.
1522 (debugging feature)
1523 --disable-aptitude don't compile the program itself
1524 --disable-docs don't generate the documentation
1525 --disable-tests don't run the test suite
1526 --enable-resolver-sanity-checks
1527 enable expensive internal sanity-checks in the
1528 dependency resolver
1529
1530 Optional Packages:
1531 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1532 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1533 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1534 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1535 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1536 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1537 --without-libintl-prefix don't search for libintl in includedir and libdir
1538 --with-boost[=ARG] use Boost library from a standard location
1539 (ARG=yes), from the specified location (ARG=<path>),
1540 or disable it (ARG=no) [ARG=yes]
1541 --with-boost-libdir=LIB_DIR
1542 Force given directory for boost libraries. Note that
1543 this will override library path detection, so use
1544 this parameter only if default library detection
1545 fails and you know exactly where your boost
1546 libraries are located.
1547 --with-boost-iostreams[=special-lib]
1548 use the IOStreams library from boost - it is
1549 possible to specify a certain library for the linker
1550 e.g.
1551 --with-boost-iostreams=boost_iostreams-gcc-mt-d-1_33_1
1552 --with-boost-system[=special-lib]
1553 use the System library from boost - it is possible
1554 to specify a certain library for the linker e.g.
1555 --with-boost-system=boost_system-gcc-mt
1556 --with-package-state-loc
1557 use the given location for storing state (default
1558 /var/lib/aptitude)
1559 --with-lock-loc use the given location for storing state (default
1560 /var/lock/aptitude)
1561
1562 Some influential environment variables:
1563 CC C compiler command
1564 CFLAGS C compiler flags
1565 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1566 nonstandard directory <lib dir>
1567 LIBS libraries to pass to the linker, e.g. -l<library>
1568 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1569 you have headers in a nonstandard directory <include dir>
1570 CXX C++ compiler command
1571 CXXFLAGS C++ compiler flags
1572 CXXCPP C++ preprocessor
1573 PKG_CONFIG path to pkg-config utility
1574 PKG_CONFIG_PATH
1575 directories to add to pkg-config's search path
1576 PKG_CONFIG_LIBDIR
1577 path overriding pkg-config's built-in search path
1578 SIGC_CFLAGS C compiler flags for SIGC, overriding pkg-config
1579 SIGC_LIBS linker flags for SIGC, overriding pkg-config
1580 CWIDGET_CFLAGS
1581 C compiler flags for CWIDGET, overriding pkg-config
1582 CWIDGET_LIBS
1583 linker flags for CWIDGET, overriding pkg-config
1584 SQLITE3_CFLAGS
1585 C compiler flags for SQLITE3, overriding pkg-config
1586 SQLITE3_LIBS
1587 linker flags for SQLITE3, overriding pkg-config
1588 GLIBMM_CFLAGS
1589 C compiler flags for GLIBMM, overriding pkg-config
1590 GLIBMM_LIBS linker flags for GLIBMM, overriding pkg-config
1591 GTHREAD_CFLAGS
1592 C compiler flags for GTHREAD, overriding pkg-config
1593 GTHREAD_LIBS
1594 linker flags for GTHREAD, overriding pkg-config
1595 GTKMM_CFLAGS
1596 C compiler flags for GTKMM, overriding pkg-config
1597 GTKMM_LIBS linker flags for GTKMM, overriding pkg-config
1598 LIBGLADEMM_CFLAGS
1599 C compiler flags for LIBGLADEMM, overriding pkg-config
1600 LIBGLADEMM_LIBS
1601 linker flags for LIBGLADEMM, overriding pkg-config
1602 VTE_CFLAGS C compiler flags for VTE, overriding pkg-config
1603 VTE_LIBS linker flags for VTE, overriding pkg-config
1604 QtCore_CFLAGS
1605 C compiler flags for QtCore, overriding pkg-config
1606 QtCore_LIBS linker flags for QtCore, overriding pkg-config
1607 QtGui_CFLAGS
1608 C compiler flags for QtGui, overriding pkg-config
1609 QtGui_LIBS linker flags for QtGui, overriding pkg-config
1610
1611 Use these variables to override the choices made by `configure' or to help
1612 it to find libraries and programs with nonstandard names/locations.
1613
1614 Report bugs to <[email protected]>.
1615 _ACEOF
1616 ac_status=$?
1617 fi
1618
1619 if test "$ac_init_help" = "recursive"; then
1620 # If there are subdirs, report their specific --help.
1621 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1622 test -d "$ac_dir" ||
1623 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1624 continue
1625 ac_builddir=.
1626
1627 case "$ac_dir" in
1628 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1629 *)
1630 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1631 # A ".." for each directory in $ac_dir_suffix.
1632 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1633 case $ac_top_builddir_sub in
1634 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1635 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1636 esac ;;
1637 esac
1638 ac_abs_top_builddir=$ac_pwd
1639 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1640 # for backward compatibility:
1641 ac_top_builddir=$ac_top_build_prefix
1642
1643 case $srcdir in
1644 .) # We are building in place.
1645 ac_srcdir=.
1646 ac_top_srcdir=$ac_top_builddir_sub
1647 ac_abs_top_srcdir=$ac_pwd ;;
1648 [\\/]* | ?:[\\/]* ) # Absolute name.
1649 ac_srcdir=$srcdir$ac_dir_suffix;
1650 ac_top_srcdir=$srcdir
1651 ac_abs_top_srcdir=$srcdir ;;
1652 *) # Relative name.
1653 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1654 ac_top_srcdir=$ac_top_build_prefix$srcdir
1655 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1656 esac
1657 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1658
1659 cd "$ac_dir" || { ac_status=$?; continue; }
1660 # Check for guested configure.
1661 if test -f "$ac_srcdir/configure.gnu"; then
1662 echo &&
1663 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1664 elif test -f "$ac_srcdir/configure"; then
1665 echo &&
1666 $SHELL "$ac_srcdir/configure" --help=recursive
1667 else
1668 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1669 fi || ac_status=$?
1670 cd "$ac_pwd" || { ac_status=$?; break; }
1671 done
1672 fi
1673
1674 test -n "$ac_init_help" && exit $ac_status
1675 if $ac_init_version; then
1676 cat <<\_ACEOF
1677 aptitude configure 0.8.13
1678 generated by GNU Autoconf 2.69
1679
1680 Copyright (C) 2012 Free Software Foundation, Inc.
1681 This configure script is free software; the Free Software Foundation
1682 gives unlimited permission to copy, distribute and modify it.
1683 _ACEOF
1684 exit
1685 fi
1686
1687 ## ------------------------ ##
1688 ## Autoconf initialization. ##
1689 ## ------------------------ ##
1690
1691 # ac_fn_c_try_compile LINENO
1692 # --------------------------
1693 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1694 ac_fn_c_try_compile ()
1695 {
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 rm -f conftest.$ac_objext
1698 if { { ac_try="$ac_compile"
1699 case "(($ac_try" in
1700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701 *) ac_try_echo=$ac_try;;
1702 esac
1703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704 $as_echo "$ac_try_echo"; } >&5
1705 (eval "$ac_compile") 2>conftest.err
1706 ac_status=$?
1707 if test -s conftest.err; then
1708 grep -v '^ *+' conftest.err >conftest.er1
1709 cat conftest.er1 >&5
1710 mv -f conftest.er1 conftest.err
1711 fi
1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713 test $ac_status = 0; } && {
1714 test -z "$ac_c_werror_flag" ||
1715 test ! -s conftest.err
1716 } && test -s conftest.$ac_objext; then :
1717 ac_retval=0
1718 else
1719 $as_echo "$as_me: failed program was:" >&5
1720 sed 's/^/| /' conftest.$ac_ext >&5
1721
1722 ac_retval=1
1723 fi
1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725 as_fn_set_status $ac_retval
1726
1727 } # ac_fn_c_try_compile
1728
1729 # ac_fn_cxx_try_compile LINENO
1730 # ----------------------------
1731 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1732 ac_fn_cxx_try_compile ()
1733 {
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 rm -f conftest.$ac_objext
1736 if { { ac_try="$ac_compile"
1737 case "(($ac_try" in
1738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739 *) ac_try_echo=$ac_try;;
1740 esac
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 $as_echo "$ac_try_echo"; } >&5
1743 (eval "$ac_compile") 2>conftest.err
1744 ac_status=$?
1745 if test -s conftest.err; then
1746 grep -v '^ *+' conftest.err >conftest.er1
1747 cat conftest.er1 >&5
1748 mv -f conftest.er1 conftest.err
1749 fi
1750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751 test $ac_status = 0; } && {
1752 test -z "$ac_cxx_werror_flag" ||
1753 test ! -s conftest.err
1754 } && test -s conftest.$ac_objext; then :
1755 ac_retval=0
1756 else
1757 $as_echo "$as_me: failed program was:" >&5
1758 sed 's/^/| /' conftest.$ac_ext >&5
1759
1760 ac_retval=1
1761 fi
1762 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1763 as_fn_set_status $ac_retval
1764
1765 } # ac_fn_cxx_try_compile
1766
1767 # ac_fn_cxx_try_cpp LINENO
1768 # ------------------------
1769 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1770 ac_fn_cxx_try_cpp ()
1771 {
1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773 if { { ac_try="$ac_cpp conftest.$ac_ext"
1774 case "(($ac_try" in
1775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1776 *) ac_try_echo=$ac_try;;
1777 esac
1778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779 $as_echo "$ac_try_echo"; } >&5
1780 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1781 ac_status=$?
1782 if test -s conftest.err; then
1783 grep -v '^ *+' conftest.err >conftest.er1
1784 cat conftest.er1 >&5
1785 mv -f conftest.er1 conftest.err
1786 fi
1787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788 test $ac_status = 0; } > conftest.i && {
1789 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1790 test ! -s conftest.err
1791 }; then :
1792 ac_retval=0
1793 else
1794 $as_echo "$as_me: failed program was:" >&5
1795 sed 's/^/| /' conftest.$ac_ext >&5
1796
1797 ac_retval=1
1798 fi
1799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800 as_fn_set_status $ac_retval
1801
1802 } # ac_fn_cxx_try_cpp
1803
1804 # ac_fn_cxx_try_link LINENO
1805 # -------------------------
1806 # Try to link conftest.$ac_ext, and return whether this succeeded.
1807 ac_fn_cxx_try_link ()
1808 {
1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810 rm -f conftest.$ac_objext conftest$ac_exeext
1811 if { { ac_try="$ac_link"
1812 case "(($ac_try" in
1813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1814 *) ac_try_echo=$ac_try;;
1815 esac
1816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1817 $as_echo "$ac_try_echo"; } >&5
1818 (eval "$ac_link") 2>conftest.err
1819 ac_status=$?
1820 if test -s conftest.err; then
1821 grep -v '^ *+' conftest.err >conftest.er1
1822 cat conftest.er1 >&5
1823 mv -f conftest.er1 conftest.err
1824 fi
1825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826 test $ac_status = 0; } && {
1827 test -z "$ac_cxx_werror_flag" ||
1828 test ! -s conftest.err
1829 } && test -s conftest$ac_exeext && {
1830 test "$cross_compiling" = yes ||
1831 test -x conftest$ac_exeext
1832 }; then :
1833 ac_retval=0
1834 else
1835 $as_echo "$as_me: failed program was:" >&5
1836 sed 's/^/| /' conftest.$ac_ext >&5
1837
1838 ac_retval=1
1839 fi
1840 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1841 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1842 # interfere with the next link command; also delete a directory that is
1843 # left behind by Apple's compiler. We do this before executing the actions.
1844 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1845 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1846 as_fn_set_status $ac_retval
1847
1848 } # ac_fn_cxx_try_link
1849
1850 # ac_fn_cxx_try_run LINENO
1851 # ------------------------
1852 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1853 # that executables *can* be run.
1854 ac_fn_cxx_try_run ()
1855 {
1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857 if { { ac_try="$ac_link"
1858 case "(($ac_try" in
1859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1860 *) ac_try_echo=$ac_try;;
1861 esac
1862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1863 $as_echo "$ac_try_echo"; } >&5
1864 (eval "$ac_link") 2>&5
1865 ac_status=$?
1866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1867 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1868 { { case "(($ac_try" in
1869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1870 *) ac_try_echo=$ac_try;;
1871 esac
1872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1873 $as_echo "$ac_try_echo"; } >&5
1874 (eval "$ac_try") 2>&5
1875 ac_status=$?
1876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1877 test $ac_status = 0; }; }; then :
1878 ac_retval=0
1879 else
1880 $as_echo "$as_me: program exited with status $ac_status" >&5
1881 $as_echo "$as_me: failed program was:" >&5
1882 sed 's/^/| /' conftest.$ac_ext >&5
1883
1884 ac_retval=$ac_status
1885 fi
1886 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1887 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888 as_fn_set_status $ac_retval
1889
1890 } # ac_fn_cxx_try_run
1891
1892 # ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
1893 # ------------------------------------------------------
1894 # Tries to find if the field MEMBER exists in type AGGR, after including
1895 # INCLUDES, setting cache variable VAR accordingly.
1896 ac_fn_cxx_check_member ()
1897 {
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1900 $as_echo_n "checking for $2.$3... " >&6; }
1901 if eval \${$4+:} false; then :
1902 $as_echo_n "(cached) " >&6
1903 else
1904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1905 /* end confdefs.h. */
1906 $5
1907 int
1908 main ()
1909 {
1910 static $2 ac_aggr;
1911 if (ac_aggr.$3)
1912 return 0;
1913 ;
1914 return 0;
1915 }
1916 _ACEOF
1917 if ac_fn_cxx_try_compile "$LINENO"; then :
1918 eval "$4=yes"
1919 else
1920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921 /* end confdefs.h. */
1922 $5
1923 int
1924 main ()
1925 {
1926 static $2 ac_aggr;
1927 if (sizeof ac_aggr.$3)
1928 return 0;
1929 ;
1930 return 0;
1931 }
1932 _ACEOF
1933 if ac_fn_cxx_try_compile "$LINENO"; then :
1934 eval "$4=yes"
1935 else
1936 eval "$4=no"
1937 fi
1938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1939 fi
1940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1941 fi
1942 eval ac_res=\$$4
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1944 $as_echo "$ac_res" >&6; }
1945 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1946
1947 } # ac_fn_cxx_check_member
1948
1949 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
1950 # ---------------------------------------------
1951 # Tests whether TYPE exists after having included INCLUDES, setting cache
1952 # variable VAR accordingly.
1953 ac_fn_cxx_check_type ()
1954 {
1955 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1957 $as_echo_n "checking for $2... " >&6; }
1958 if eval \${$3+:} false; then :
1959 $as_echo_n "(cached) " >&6
1960 else
1961 eval "$3=no"
1962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963 /* end confdefs.h. */
1964 $4
1965 int
1966 main ()
1967 {
1968 if (sizeof ($2))
1969 return 0;
1970 ;
1971 return 0;
1972 }
1973 _ACEOF
1974 if ac_fn_cxx_try_compile "$LINENO"; then :
1975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1976 /* end confdefs.h. */
1977 $4
1978 int
1979 main ()
1980 {
1981 if (sizeof (($2)))
1982 return 0;
1983 ;
1984 return 0;
1985 }
1986 _ACEOF
1987 if ac_fn_cxx_try_compile "$LINENO"; then :
1988
1989 else
1990 eval "$3=yes"
1991 fi
1992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1993 fi
1994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995 fi
1996 eval ac_res=\$$3
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1998 $as_echo "$ac_res" >&6; }
1999 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2000
2001 } # ac_fn_cxx_check_type
2002
2003 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2004 # ---------------------------------------------------------
2005 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2006 # the include files in INCLUDES and setting the cache variable VAR
2007 # accordingly.
2008 ac_fn_cxx_check_header_mongrel ()
2009 {
2010 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011 if eval \${$3+:} false; then :
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2013 $as_echo_n "checking for $2... " >&6; }
2014 if eval \${$3+:} false; then :
2015 $as_echo_n "(cached) " >&6
2016 fi
2017 eval ac_res=\$$3
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2019 $as_echo "$ac_res" >&6; }
2020 else
2021 # Is the header compilable?
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2023 $as_echo_n "checking $2 usability... " >&6; }
2024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025 /* end confdefs.h. */
2026 $4
2027 #include <$2>
2028 _ACEOF
2029 if ac_fn_cxx_try_compile "$LINENO"; then :
2030 ac_header_compiler=yes
2031 else
2032 ac_header_compiler=no
2033 fi
2034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2036 $as_echo "$ac_header_compiler" >&6; }
2037
2038 # Is the header present?
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2040 $as_echo_n "checking $2 presence... " >&6; }
2041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2042 /* end confdefs.h. */
2043 #include <$2>
2044 _ACEOF
2045 if ac_fn_cxx_try_cpp "$LINENO"; then :
2046 ac_header_preproc=yes
2047 else
2048 ac_header_preproc=no
2049 fi
2050 rm -f conftest.err conftest.i conftest.$ac_ext
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2052 $as_echo "$ac_header_preproc" >&6; }
2053
2054 # So? What about this header?
2055 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2056 yes:no: )
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2058 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2060 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2061 ;;
2062 no:yes:* )
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2064 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2066 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2068 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2070 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2072 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2073 ( $as_echo "## ----------------------------------------------------- ##
2074 ## Report this to [email protected] ##
2075 ## ----------------------------------------------------- ##"
2076 ) | sed "s/^/$as_me: WARNING: /" >&2
2077 ;;
2078 esac
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2080 $as_echo_n "checking for $2... " >&6; }
2081 if eval \${$3+:} false; then :
2082 $as_echo_n "(cached) " >&6
2083 else
2084 eval "$3=\$ac_header_compiler"
2085 fi
2086 eval ac_res=\$$3
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2088 $as_echo "$ac_res" >&6; }
2089 fi
2090 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2091
2092 } # ac_fn_cxx_check_header_mongrel
2093
2094 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2095 # ---------------------------------------------------------
2096 # Tests whether HEADER exists and can be compiled using the include files in
2097 # INCLUDES, setting the cache variable VAR accordingly.
2098 ac_fn_cxx_check_header_compile ()
2099 {
2100 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2102 $as_echo_n "checking for $2... " >&6; }
2103 if eval \${$3+:} false; then :
2104 $as_echo_n "(cached) " >&6
2105 else
2106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107 /* end confdefs.h. */
2108 $4
2109 #include <$2>
2110 _ACEOF
2111 if ac_fn_cxx_try_compile "$LINENO"; then :
2112 eval "$3=yes"
2113 else
2114 eval "$3=no"
2115 fi
2116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2117 fi
2118 eval ac_res=\$$3
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2120 $as_echo "$ac_res" >&6; }
2121 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2122
2123 } # ac_fn_cxx_check_header_compile
2124
2125 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2126 # -----------------------------------------------
2127 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2128 # accordingly.
2129 ac_fn_cxx_check_decl ()
2130 {
2131 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2132 as_decl_name=`echo $2|sed 's/ *(.*//'`
2133 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2135 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2136 if eval \${$3+:} false; then :
2137 $as_echo_n "(cached) " >&6
2138 else
2139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2140 /* end confdefs.h. */
2141 $4
2142 int
2143 main ()
2144 {
2145 #ifndef $as_decl_name
2146 #ifdef __cplusplus
2147 (void) $as_decl_use;
2148 #else
2149 (void) $as_decl_name;
2150 #endif
2151 #endif
2152
2153 ;
2154 return 0;
2155 }
2156 _ACEOF
2157 if ac_fn_cxx_try_compile "$LINENO"; then :
2158 eval "$3=yes"
2159 else
2160 eval "$3=no"
2161 fi
2162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2163 fi
2164 eval ac_res=\$$3
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2166 $as_echo "$ac_res" >&6; }
2167 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2168
2169 } # ac_fn_cxx_check_decl
2170
2171 # ac_fn_cxx_check_func LINENO FUNC VAR
2172 # ------------------------------------
2173 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2174 ac_fn_cxx_check_func ()
2175 {
2176 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2178 $as_echo_n "checking for $2... " >&6; }
2179 if eval \${$3+:} false; then :
2180 $as_echo_n "(cached) " >&6
2181 else
2182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2183 /* end confdefs.h. */
2184 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2186 #define $2 innocuous_$2
2187
2188 /* System header to define __stub macros and hopefully few prototypes,
2189 which can conflict with char $2 (); below.
2190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2191 <limits.h> exists even on freestanding compilers. */
2192
2193 #ifdef __STDC__
2194 # include <limits.h>
2195 #else
2196 # include <assert.h>
2197 #endif
2198
2199 #undef $2
2200
2201 /* Override any GCC internal prototype to avoid an error.
2202 Use char because int might match the return type of a GCC
2203 builtin and then its argument prototype would still apply. */
2204 #ifdef __cplusplus
2205 extern "C"
2206 #endif
2207 char $2 ();
2208 /* The GNU C library defines this for functions which it implements
2209 to always fail with ENOSYS. Some functions are actually named
2210 something starting with __ and the normal name is an alias. */
2211 #if defined __stub_$2 || defined __stub___$2
2212 choke me
2213 #endif
2214
2215 int
2216 main ()
2217 {
2218 return $2 ();
2219 ;
2220 return 0;
2221 }
2222 _ACEOF
2223 if ac_fn_cxx_try_link "$LINENO"; then :
2224 eval "$3=yes"
2225 else
2226 eval "$3=no"
2227 fi
2228 rm -f core conftest.err conftest.$ac_objext \
2229 conftest$ac_exeext conftest.$ac_ext
2230 fi
2231 eval ac_res=\$$3
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2233 $as_echo "$ac_res" >&6; }
2234 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2235
2236 } # ac_fn_cxx_check_func
2237 cat >config.log <<_ACEOF
2238 This file contains any messages produced by compilers while
2239 running configure, to aid debugging if configure makes a mistake.
2240
2241 It was created by aptitude $as_me 0.8.13, which was
2242 generated by GNU Autoconf 2.69. Invocation command line was
2243
2244 $ $0 $@
2245
2246 _ACEOF
2247 exec 5>>config.log
2248 {
2249 cat <<_ASUNAME
2250 ## --------- ##
2251 ## Platform. ##
2252 ## --------- ##
2253
2254 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2255 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2256 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2257 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2258 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2259
2260 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2261 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2262
2263 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2264 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2265 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2266 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2267 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2268 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2269 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2270
2271 _ASUNAME
2272
2273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2274 for as_dir in $PATH
2275 do
2276 IFS=$as_save_IFS
2277 test -z "$as_dir" && as_dir=.
2278 $as_echo "PATH: $as_dir"
2279 done
2280 IFS=$as_save_IFS
2281
2282 } >&5
2283
2284 cat >&5 <<_ACEOF
2285
2286
2287 ## ----------- ##
2288 ## Core tests. ##
2289 ## ----------- ##
2290
2291 _ACEOF
2292
2293
2294 # Keep a trace of the command line.
2295 # Strip out --no-create and --no-recursion so they do not pile up.
2296 # Strip out --silent because we don't want to record it for future runs.
2297 # Also quote any args containing shell meta-characters.
2298 # Make two passes to allow for proper duplicate-argument suppression.
2299 ac_configure_args=
2300 ac_configure_args0=
2301 ac_configure_args1=
2302 ac_must_keep_next=false
2303 for ac_pass in 1 2
2304 do
2305 for ac_arg
2306 do
2307 case $ac_arg in
2308 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2309 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2310 | -silent | --silent | --silen | --sile | --sil)
2311 continue ;;
2312 *\'*)
2313 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2314 esac
2315 case $ac_pass in
2316 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2317 2)
2318 as_fn_append ac_configure_args1 " '$ac_arg'"
2319 if test $ac_must_keep_next = true; then
2320 ac_must_keep_next=false # Got value, back to normal.
2321 else
2322 case $ac_arg in
2323 *=* | --config-cache | -C | -disable-* | --disable-* \
2324 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2325 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2326 | -with-* | --with-* | -without-* | --without-* | --x)
2327 case "$ac_configure_args0 " in
2328 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2329 esac
2330 ;;
2331 -* ) ac_must_keep_next=true ;;
2332 esac
2333 fi
2334 as_fn_append ac_configure_args " '$ac_arg'"
2335 ;;
2336 esac
2337 done
2338 done
2339 { ac_configure_args0=; unset ac_configure_args0;}
2340 { ac_configure_args1=; unset ac_configure_args1;}
2341
2342 # When interrupted or exit'd, cleanup temporary files, and complete
2343 # config.log. We remove comments because anyway the quotes in there
2344 # would cause problems or look ugly.
2345 # WARNING: Use '\'' to represent an apostrophe within the trap.
2346 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2347 trap 'exit_status=$?
2348 # Save into config.log some information that might help in debugging.
2349 {
2350 echo
2351
2352 $as_echo "## ---------------- ##
2353 ## Cache variables. ##
2354 ## ---------------- ##"
2355 echo
2356 # The following way of writing the cache mishandles newlines in values,
2357 (
2358 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2359 eval ac_val=\$$ac_var
2360 case $ac_val in #(
2361 *${as_nl}*)
2362 case $ac_var in #(
2363 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2364 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2365 esac
2366 case $ac_var in #(
2367 _ | IFS | as_nl) ;; #(
2368 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2369 *) { eval $ac_var=; unset $ac_var;} ;;
2370 esac ;;
2371 esac
2372 done
2373 (set) 2>&1 |
2374 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2375 *${as_nl}ac_space=\ *)
2376 sed -n \
2377 "s/'\''/'\''\\\\'\'''\''/g;
2378 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2379 ;; #(
2380 *)
2381 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2382 ;;
2383 esac |
2384 sort
2385 )
2386 echo
2387
2388 $as_echo "## ----------------- ##
2389 ## Output variables. ##
2390 ## ----------------- ##"
2391 echo
2392 for ac_var in $ac_subst_vars
2393 do
2394 eval ac_val=\$$ac_var
2395 case $ac_val in
2396 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2397 esac
2398 $as_echo "$ac_var='\''$ac_val'\''"
2399 done | sort
2400 echo
2401
2402 if test -n "$ac_subst_files"; then
2403 $as_echo "## ------------------- ##
2404 ## File substitutions. ##
2405 ## ------------------- ##"
2406 echo
2407 for ac_var in $ac_subst_files
2408 do
2409 eval ac_val=\$$ac_var
2410 case $ac_val in
2411 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2412 esac
2413 $as_echo "$ac_var='\''$ac_val'\''"
2414 done | sort
2415 echo
2416 fi
2417
2418 if test -s confdefs.h; then
2419 $as_echo "## ----------- ##
2420 ## confdefs.h. ##
2421 ## ----------- ##"
2422 echo
2423 cat confdefs.h
2424 echo
2425 fi
2426 test "$ac_signal" != 0 &&
2427 $as_echo "$as_me: caught signal $ac_signal"
2428 $as_echo "$as_me: exit $exit_status"
2429 } >&5
2430 rm -f core *.core core.conftest.* &&
2431 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2432 exit $exit_status
2433 ' 0
2434 for ac_signal in 1 2 13 15; do
2435 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2436 done
2437 ac_signal=0
2438
2439 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2440 rm -f -r conftest* confdefs.h
2441
2442 $as_echo "/* confdefs.h */" > confdefs.h
2443
2444 # Predefined preprocessor variables.
2445
2446 cat >>confdefs.h <<_ACEOF
2447 #define PACKAGE_NAME "$PACKAGE_NAME"
2448 _ACEOF
2449
2450 cat >>confdefs.h <<_ACEOF
2451 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2452 _ACEOF
2453
2454 cat >>confdefs.h <<_ACEOF
2455 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2456 _ACEOF
2457
2458 cat >>confdefs.h <<_ACEOF
2459 #define PACKAGE_STRING "$PACKAGE_STRING"
2460 _ACEOF
2461
2462 cat >>confdefs.h <<_ACEOF
2463 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2464 _ACEOF
2465
2466 cat >>confdefs.h <<_ACEOF
2467 #define PACKAGE_URL "$PACKAGE_URL"
2468 _ACEOF
2469
2470
2471 # Let the site file select an alternate cache file if it wants to.
2472 # Prefer an explicitly selected file to automatically selected ones.
2473 ac_site_file1=NONE
2474 ac_site_file2=NONE
2475 if test -n "$CONFIG_SITE"; then
2476 # We do not want a PATH search for config.site.
2477 case $CONFIG_SITE in #((
2478 -*) ac_site_file1=./$CONFIG_SITE;;
2479 */*) ac_site_file1=$CONFIG_SITE;;
2480 *) ac_site_file1=./$CONFIG_SITE;;
2481 esac
2482 elif test "x$prefix" != xNONE; then
2483 ac_site_file1=$prefix/share/config.site
2484 ac_site_file2=$prefix/etc/config.site
2485 else
2486 ac_site_file1=$ac_default_prefix/share/config.site
2487 ac_site_file2=$ac_default_prefix/etc/config.site
2488 fi
2489 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2490 do
2491 test "x$ac_site_file" = xNONE && continue
2492 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2494 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2495 sed 's/^/| /' "$ac_site_file" >&5
2496 . "$ac_site_file" \
2497 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2498 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2499 as_fn_error $? "failed to load site script $ac_site_file
2500 See \`config.log' for more details" "$LINENO" 5; }
2501 fi
2502 done
2503
2504 if test -r "$cache_file"; then
2505 # Some versions of bash will fail to source /dev/null (special files
2506 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2507 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2509 $as_echo "$as_me: loading cache $cache_file" >&6;}
2510 case $cache_file in
2511 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2512 *) . "./$cache_file";;
2513 esac
2514 fi
2515 else
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2517 $as_echo "$as_me: creating cache $cache_file" >&6;}
2518 >$cache_file
2519 fi
2520
2521 gt_needs="$gt_needs "
2522 # Check that the precious variables saved in the cache have kept the same
2523 # value.
2524 ac_cache_corrupted=false
2525 for ac_var in $ac_precious_vars; do
2526 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2527 eval ac_new_set=\$ac_env_${ac_var}_set
2528 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2529 eval ac_new_val=\$ac_env_${ac_var}_value
2530 case $ac_old_set,$ac_new_set in
2531 set,)
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2533 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2534 ac_cache_corrupted=: ;;
2535 ,set)
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2537 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2538 ac_cache_corrupted=: ;;
2539 ,);;
2540 *)
2541 if test "x$ac_old_val" != "x$ac_new_val"; then
2542 # differences in whitespace do not lead to failure.
2543 ac_old_val_w=`echo x $ac_old_val`
2544 ac_new_val_w=`echo x $ac_new_val`
2545 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2547 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2548 ac_cache_corrupted=:
2549 else
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2551 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2552 eval $ac_var=\$ac_old_val
2553 fi
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2555 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2557 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2558 fi;;
2559 esac
2560 # Pass precious variables to config.status.
2561 if test "$ac_new_set" = set; then
2562 case $ac_new_val in
2563 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2564 *) ac_arg=$ac_var=$ac_new_val ;;
2565 esac
2566 case " $ac_configure_args " in
2567 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2568 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2569 esac
2570 fi
2571 done
2572 if $ac_cache_corrupted; then
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2576 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2577 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2578 fi
2579 ## -------------------- ##
2580 ## Main body of script. ##
2581 ## -------------------- ##
2582
2583 ac_ext=c
2584 ac_cpp='$CPP $CPPFLAGS'
2585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2588
2589
2590
2591 am__api_version='1.16'
2592
2593 ac_aux_dir=
2594 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2595 if test -f "$ac_dir/install-sh"; then
2596 ac_aux_dir=$ac_dir
2597 ac_install_sh="$ac_aux_dir/install-sh -c"
2598 break
2599 elif test -f "$ac_dir/install.sh"; then
2600 ac_aux_dir=$ac_dir
2601 ac_install_sh="$ac_aux_dir/install.sh -c"
2602 break
2603 elif test -f "$ac_dir/shtool"; then
2604 ac_aux_dir=$ac_dir
2605 ac_install_sh="$ac_aux_dir/shtool install -c"
2606 break
2607 fi
2608 done
2609 if test -z "$ac_aux_dir"; then
2610 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2611 fi
2612
2613 # These three variables are undocumented and unsupported,
2614 # and are intended to be withdrawn in a future Autoconf release.
2615 # They can cause serious problems if a builder's source tree is in a directory
2616 # whose full name contains unusual characters.
2617 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2618 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2619 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2620
2621
2622 # Find a good install program. We prefer a C program (faster),
2623 # so one script is as good as another. But avoid the broken or
2624 # incompatible versions:
2625 # SysV /etc/install, /usr/sbin/install
2626 # SunOS /usr/etc/install
2627 # IRIX /sbin/install
2628 # AIX /bin/install
2629 # AmigaOS /C/install, which installs bootblocks on floppy discs
2630 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2631 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2632 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2633 # OS/2's system install, which has a completely different semantic
2634 # ./install, which can be erroneously created by make from ./install.sh.
2635 # Reject install programs that cannot install multiple files.
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2637 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2638 if test -z "$INSTALL"; then
2639 if ${ac_cv_path_install+:} false; then :
2640 $as_echo_n "(cached) " >&6
2641 else
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643 for as_dir in $PATH
2644 do
2645 IFS=$as_save_IFS
2646 test -z "$as_dir" && as_dir=.
2647 # Account for people who put trailing slashes in PATH elements.
2648 case $as_dir/ in #((
2649 ./ | .// | /[cC]/* | \
2650 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2651 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2652 /usr/ucb/* ) ;;
2653 *)
2654 # OSF1 and SCO ODT 3.0 have their own names for install.
2655 # Don't use installbsd from OSF since it installs stuff as root
2656 # by default.
2657 for ac_prog in ginstall scoinst install; do
2658 for ac_exec_ext in '' $ac_executable_extensions; do
2659 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2660 if test $ac_prog = install &&
2661 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2662 # AIX install. It has an incompatible calling convention.
2663 :
2664 elif test $ac_prog = install &&
2665 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2666 # program-specific install script used by HP pwplus--don't use.
2667 :
2668 else
2669 rm -rf conftest.one conftest.two conftest.dir
2670 echo one > conftest.one
2671 echo two > conftest.two
2672 mkdir conftest.dir
2673 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2674 test -s conftest.one && test -s conftest.two &&
2675 test -s conftest.dir/conftest.one &&
2676 test -s conftest.dir/conftest.two
2677 then
2678 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2679 break 3
2680 fi
2681 fi
2682 fi
2683 done
2684 done
2685 ;;
2686 esac
2687
2688 done
2689 IFS=$as_save_IFS
2690
2691 rm -rf conftest.one conftest.two conftest.dir
2692
2693 fi
2694 if test "${ac_cv_path_install+set}" = set; then
2695 INSTALL=$ac_cv_path_install
2696 else
2697 # As a last resort, use the slow shell script. Don't cache a
2698 # value for INSTALL within a source directory, because that will
2699 # break other packages using the cache if that directory is
2700 # removed, or if the value is a relative name.
2701 INSTALL=$ac_install_sh
2702 fi
2703 fi
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2705 $as_echo "$INSTALL" >&6; }
2706
2707 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2708 # It thinks the first close brace ends the variable substitution.
2709 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2710
2711 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2712
2713 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2714
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2716 $as_echo_n "checking whether build environment is sane... " >&6; }
2717 # Reject unsafe characters in $srcdir or the absolute working directory
2718 # name. Accept space and tab only in the latter.
2719 am_lf='
2720 '
2721 case `pwd` in
2722 *[\\\"\#\$\&\'\`$am_lf]*)
2723 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2724 esac
2725 case $srcdir in
2726 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2727 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2728 esac
2729
2730 # Do 'set' in a subshell so we don't clobber the current shell's
2731 # arguments. Must try -L first in case configure is actually a
2732 # symlink; some systems play weird games with the mod time of symlinks
2733 # (eg FreeBSD returns the mod time of the symlink's containing
2734 # directory).
2735 if (
2736 am_has_slept=no
2737 for am_try in 1 2; do
2738 echo "timestamp, slept: $am_has_slept" > conftest.file
2739 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2740 if test "$*" = "X"; then
2741 # -L didn't work.
2742 set X `ls -t "$srcdir/configure" conftest.file`
2743 fi
2744 if test "$*" != "X $srcdir/configure conftest.file" \
2745 && test "$*" != "X conftest.file $srcdir/configure"; then
2746
2747 # If neither matched, then we have a broken ls. This can happen
2748 # if, for instance, CONFIG_SHELL is bash and it inherits a
2749 # broken ls alias from the environment. This has actually
2750 # happened. Such a system could not be considered "sane".
2751 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2752 alias in your environment" "$LINENO" 5
2753 fi
2754 if test "$2" = conftest.file || test $am_try -eq 2; then
2755 break
2756 fi
2757 # Just in case.
2758 sleep 1
2759 am_has_slept=yes
2760 done
2761 test "$2" = conftest.file
2762 )
2763 then
2764 # Ok.
2765 :
2766 else
2767 as_fn_error $? "newly created file is older than distributed files!
2768 Check your system clock" "$LINENO" 5
2769 fi
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2771 $as_echo "yes" >&6; }
2772 # If we didn't sleep, we still need to ensure time stamps of config.status and
2773 # generated files are strictly newer.
2774 am_sleep_pid=
2775 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2776 ( sleep 1 ) &
2777 am_sleep_pid=$!
2778 fi
2779
2780 rm -f conftest.file
2781
2782 test "$program_prefix" != NONE &&
2783 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2784 # Use a double $ so make ignores it.
2785 test "$program_suffix" != NONE &&
2786 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2787 # Double any \ or $.
2788 # By default was `s,x,x', remove it if useless.
2789 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2790 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2791
2792 # Expand $ac_aux_dir to an absolute path.
2793 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2794
2795 if test x"${MISSING+set}" != xset; then
2796 case $am_aux_dir in
2797 *\ * | *\ *)
2798 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2799 *)
2800 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2801 esac
2802 fi
2803 # Use eval to expand $SHELL
2804 if eval "$MISSING --is-lightweight"; then
2805 am_missing_run="$MISSING "
2806 else
2807 am_missing_run=
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2809 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2810 fi
2811
2812 if test x"${install_sh+set}" != xset; then
2813 case $am_aux_dir in
2814 *\ * | *\ *)
2815 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2816 *)
2817 install_sh="\${SHELL} $am_aux_dir/install-sh"
2818 esac
2819 fi
2820
2821 # Installed binaries are usually stripped using 'strip' when the user
2822 # run "make install-strip". However 'strip' might not be the right
2823 # tool to use in cross-compilation environments, therefore Automake
2824 # will honor the 'STRIP' environment variable to overrule this program.
2825 if test "$cross_compiling" != no; then
2826 if test -n "$ac_tool_prefix"; then
2827 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2828 set dummy ${ac_tool_prefix}strip; ac_word=$2
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2830 $as_echo_n "checking for $ac_word... " >&6; }
2831 if ${ac_cv_prog_STRIP+:} false; then :
2832 $as_echo_n "(cached) " >&6
2833 else
2834 if test -n "$STRIP"; then
2835 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2836 else
2837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838 for as_dir in $PATH
2839 do
2840 IFS=$as_save_IFS
2841 test -z "$as_dir" && as_dir=.
2842 for ac_exec_ext in '' $ac_executable_extensions; do
2843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2844 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2846 break 2
2847 fi
2848 done
2849 done
2850 IFS=$as_save_IFS
2851
2852 fi
2853 fi
2854 STRIP=$ac_cv_prog_STRIP
2855 if test -n "$STRIP"; then
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2857 $as_echo "$STRIP" >&6; }
2858 else
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2860 $as_echo "no" >&6; }
2861 fi
2862
2863
2864 fi
2865 if test -z "$ac_cv_prog_STRIP"; then
2866 ac_ct_STRIP=$STRIP
2867 # Extract the first word of "strip", so it can be a program name with args.
2868 set dummy strip; ac_word=$2
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2870 $as_echo_n "checking for $ac_word... " >&6; }
2871 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2872 $as_echo_n "(cached) " >&6
2873 else
2874 if test -n "$ac_ct_STRIP"; then
2875 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2876 else
2877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878 for as_dir in $PATH
2879 do
2880 IFS=$as_save_IFS
2881 test -z "$as_dir" && as_dir=.
2882 for ac_exec_ext in '' $ac_executable_extensions; do
2883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2884 ac_cv_prog_ac_ct_STRIP="strip"
2885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2886 break 2
2887 fi
2888 done
2889 done
2890 IFS=$as_save_IFS
2891
2892 fi
2893 fi
2894 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2895 if test -n "$ac_ct_STRIP"; then
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2897 $as_echo "$ac_ct_STRIP" >&6; }
2898 else
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2900 $as_echo "no" >&6; }
2901 fi
2902
2903 if test "x$ac_ct_STRIP" = x; then
2904 STRIP=":"
2905 else
2906 case $cross_compiling:$ac_tool_warned in
2907 yes:)
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2909 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2910 ac_tool_warned=yes ;;
2911 esac
2912 STRIP=$ac_ct_STRIP
2913 fi
2914 else
2915 STRIP="$ac_cv_prog_STRIP"
2916 fi
2917
2918 fi
2919 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2920
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2922 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2923 if test -z "$MKDIR_P"; then
2924 if ${ac_cv_path_mkdir+:} false; then :
2925 $as_echo_n "(cached) " >&6
2926 else
2927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2928 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2929 do
2930 IFS=$as_save_IFS
2931 test -z "$as_dir" && as_dir=.
2932 for ac_prog in mkdir gmkdir; do
2933 for ac_exec_ext in '' $ac_executable_extensions; do
2934 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2935 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2936 'mkdir (GNU coreutils) '* | \
2937 'mkdir (coreutils) '* | \
2938 'mkdir (fileutils) '4.1*)
2939 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2940 break 3;;
2941 esac
2942 done
2943 done
2944 done
2945 IFS=$as_save_IFS
2946
2947 fi
2948
2949 test -d ./--version && rmdir ./--version
2950 if test "${ac_cv_path_mkdir+set}" = set; then
2951 MKDIR_P="$ac_cv_path_mkdir -p"
2952 else
2953 # As a last resort, use the slow shell script. Don't cache a
2954 # value for MKDIR_P within a source directory, because that will
2955 # break other packages using the cache if that directory is
2956 # removed, or if the value is a relative name.
2957 MKDIR_P="$ac_install_sh -d"
2958 fi
2959 fi
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2961 $as_echo "$MKDIR_P" >&6; }
2962
2963 for ac_prog in gawk mawk nawk awk
2964 do
2965 # Extract the first word of "$ac_prog", so it can be a program name with args.
2966 set dummy $ac_prog; ac_word=$2
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2968 $as_echo_n "checking for $ac_word... " >&6; }
2969 if ${ac_cv_prog_AWK+:} false; then :
2970 $as_echo_n "(cached) " >&6
2971 else
2972 if test -n "$AWK"; then
2973 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2974 else
2975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976 for as_dir in $PATH
2977 do
2978 IFS=$as_save_IFS
2979 test -z "$as_dir" && as_dir=.
2980 for ac_exec_ext in '' $ac_executable_extensions; do
2981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2982 ac_cv_prog_AWK="$ac_prog"
2983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2984 break 2
2985 fi
2986 done
2987 done
2988 IFS=$as_save_IFS
2989
2990 fi
2991 fi
2992 AWK=$ac_cv_prog_AWK
2993 if test -n "$AWK"; then
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2995 $as_echo "$AWK" >&6; }
2996 else
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2998 $as_echo "no" >&6; }
2999 fi
3000
3001
3002 test -n "$AWK" && break
3003 done
3004
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3006 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3007 set x ${MAKE-make}
3008 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3009 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3010 $as_echo_n "(cached) " >&6
3011 else
3012 cat >conftest.make <<\_ACEOF
3013 SHELL = /bin/sh
3014 all:
3015 @echo '@@@%%%=$(MAKE)=@@@%%%'
3016 _ACEOF
3017 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3018 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3019 *@@@%%%=?*=@@@%%%*)
3020 eval ac_cv_prog_make_${ac_make}_set=yes;;
3021 *)
3022 eval ac_cv_prog_make_${ac_make}_set=no;;
3023 esac
3024 rm -f conftest.make
3025 fi
3026 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3028 $as_echo "yes" >&6; }
3029 SET_MAKE=
3030 else
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3032 $as_echo "no" >&6; }
3033 SET_MAKE="MAKE=${MAKE-make}"
3034 fi
3035
3036 rm -rf .tst 2>/dev/null
3037 mkdir .tst 2>/dev/null
3038 if test -d .tst; then
3039 am__leading_dot=.
3040 else
3041 am__leading_dot=_
3042 fi
3043 rmdir .tst 2>/dev/null
3044
3045 # Check whether --enable-silent-rules was given.
3046 if test "${enable_silent_rules+set}" = set; then :
3047 enableval=$enable_silent_rules;
3048 fi
3049
3050 case $enable_silent_rules in # (((
3051 yes) AM_DEFAULT_VERBOSITY=0;;
3052 no) AM_DEFAULT_VERBOSITY=1;;
3053 *) AM_DEFAULT_VERBOSITY=1;;
3054 esac
3055 am_make=${MAKE-make}
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3057 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3058 if ${am_cv_make_support_nested_variables+:} false; then :
3059 $as_echo_n "(cached) " >&6
3060 else
3061 if $as_echo 'TRUE=$(BAR$(V))
3062 BAR0=false
3063 BAR1=true
3064 V=1
3065 am__doit:
3066 @$(TRUE)
3067 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3068 am_cv_make_support_nested_variables=yes
3069 else
3070 am_cv_make_support_nested_variables=no
3071 fi
3072 fi
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3074 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3075 if test $am_cv_make_support_nested_variables = yes; then
3076 AM_V='$(V)'
3077 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3078 else
3079 AM_V=$AM_DEFAULT_VERBOSITY
3080 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3081 fi
3082 AM_BACKSLASH='\'
3083
3084 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3085 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3086 # is not polluted with repeated "-I."
3087 am__isrc=' -I$(srcdir)'
3088 # test to see if srcdir already configured
3089 if test -f $srcdir/config.status; then
3090 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3091 fi
3092 fi
3093
3094 # test whether we have cygpath
3095 if test -z "$CYGPATH_W"; then
3096 if (cygpath --version) >/dev/null 2>/dev/null; then
3097 CYGPATH_W='cygpath -w'
3098 else
3099 CYGPATH_W=echo
3100 fi
3101 fi
3102
3103
3104 # Define the identity of the package.
3105 PACKAGE='aptitude'
3106 VERSION='0.8.13'
3107
3108
3109 cat >>confdefs.h <<_ACEOF
3110 #define PACKAGE "$PACKAGE"
3111 _ACEOF
3112
3113
3114 cat >>confdefs.h <<_ACEOF
3115 #define VERSION "$VERSION"
3116 _ACEOF
3117
3118 # Some tools Automake needs.
3119
3120 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3121
3122
3123 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3124
3125
3126 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3127
3128
3129 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3130
3131
3132 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3133
3134 # For better backward compatibility. To be removed once Automake 1.9.x
3135 # dies out for good. For more background, see:
3136 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3137 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3138 mkdir_p='$(MKDIR_P)'
3139
3140 # We need awk for the "check" target (and possibly the TAP driver). The
3141 # system "awk" is bad on some platforms.
3142 # Always define AMTAR for backward compatibility. Yes, it's still used
3143 # in the wild :-( We should find a proper way to deprecate it ...
3144 AMTAR='$${TAR-tar}'
3145
3146
3147 # We'll loop over all known methods to create a tar archive until one works.
3148 _am_tools='gnutar pax cpio none'
3149
3150 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3151
3152
3153
3154
3155
3156
3157 # POSIX will say in a future version that running "rm -f" with no argument
3158 # is OK; and we want to be able to make that assumption in our Makefile
3159 # recipes. So use an aggressive probe to check that the usage we want is
3160 # actually supported "in the wild" to an acceptable degree.
3161 # See automake bug#10828.
3162 # To make any issue more visible, cause the running configure to be aborted
3163 # by default if the 'rm' program in use doesn't match our expectations; the
3164 # user can still override this though.
3165 if rm -f && rm -fr && rm -rf; then : OK; else
3166 cat >&2 <<'END'
3167 Oops!
3168
3169 Your 'rm' program seems unable to run without file operands specified
3170 on the command line, even when the '-f' option is present. This is contrary
3171 to the behaviour of most rm programs out there, and not conforming with
3172 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3173
3174 Please tell [email protected] about your system, including the value
3175 of your $PATH and any error possibly output before this message. This
3176 can help us improve future automake versions.
3177
3178 END
3179 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3180 echo 'Configuration will proceed anyway, since you have set the' >&2
3181 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3182 echo >&2
3183 else
3184 cat >&2 <<'END'
3185 Aborting the configuration process, to ensure you take notice of the issue.
3186
3187 You can download and install GNU coreutils to get an 'rm' implementation
3188 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3189
3190 If you want to complete the configuration process using your problematic
3191 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3192 to "yes", and re-run configure.
3193
3194 END
3195 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3196 fi
3197 fi
3198
3199 ac_config_headers="$ac_config_headers config.h"
3200
3201
3202 ac_ext=cpp
3203 ac_cpp='$CXXCPP $CPPFLAGS'
3204 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3205 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3206 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3207
3208
3209 ALL_LINGUAS="ar ast bs ca cs da de dz el es eu fi fr gl hu hr it ja km ku lt mr nb ne nl nn pl pt pt_BR ro ru sk sv th tl tr uk vi zh_CN zh_TW"
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3211 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3212 if ${ac_cv_path_SED+:} false; then :
3213 $as_echo_n "(cached) " >&6
3214 else
3215 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3216 for ac_i in 1 2 3 4 5 6 7; do
3217 ac_script="$ac_script$as_nl$ac_script"
3218 done
3219 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3220 { ac_script=; unset ac_script;}
3221 if test -z "$SED"; then
3222 ac_path_SED_found=false
3223 # Loop through the user's path and test for each of PROGNAME-LIST
3224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3225 for as_dir in $PATH
3226 do
3227 IFS=$as_save_IFS
3228 test -z "$as_dir" && as_dir=.
3229 for ac_prog in sed gsed; do
3230 for ac_exec_ext in '' $ac_executable_extensions; do
3231 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3232 as_fn_executable_p "$ac_path_SED" || continue
3233 # Check for GNU ac_path_SED and select it if it is found.
3234 # Check for GNU $ac_path_SED
3235 case `"$ac_path_SED" --version 2>&1` in
3236 *GNU*)
3237 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3238 *)
3239 ac_count=0
3240 $as_echo_n 0123456789 >"conftest.in"
3241 while :
3242 do
3243 cat "conftest.in" "conftest.in" >"conftest.tmp"
3244 mv "conftest.tmp" "conftest.in"
3245 cp "conftest.in" "conftest.nl"
3246 $as_echo '' >> "conftest.nl"
3247 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3248 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3249 as_fn_arith $ac_count + 1 && ac_count=$as_val
3250 if test $ac_count -gt ${ac_path_SED_max-0}; then
3251 # Best one so far, save it but keep looking for a better one
3252 ac_cv_path_SED="$ac_path_SED"
3253 ac_path_SED_max=$ac_count
3254 fi
3255 # 10*(2^10) chars as input seems more than enough
3256 test $ac_count -gt 10 && break
3257 done
3258 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3259 esac
3260
3261 $ac_path_SED_found && break 3
3262 done
3263 done
3264 done
3265 IFS=$as_save_IFS
3266 if test -z "$ac_cv_path_SED"; then
3267 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3268 fi
3269 else
3270 ac_cv_path_SED=$SED
3271 fi
3272
3273 fi
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3275 $as_echo "$ac_cv_path_SED" >&6; }
3276 SED="$ac_cv_path_SED"
3277 rm -f conftest.sed
3278
3279
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
3281 $as_echo_n "checking whether NLS is requested... " >&6; }
3282 # Check whether --enable-nls was given.
3283 if test "${enable_nls+set}" = set; then :
3284 enableval=$enable_nls; USE_NLS=$enableval
3285 else
3286 USE_NLS=yes
3287 fi
3288
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
3290 $as_echo "$USE_NLS" >&6; }
3291
3292
3293
3294
3295 GETTEXT_MACRO_VERSION=0.19
3296
3297
3298
3299
3300 # Prepare PATH_SEPARATOR.
3301 # The user is always right.
3302 if test "${PATH_SEPARATOR+set}" != set; then
3303 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
3304 # contains only /bin. Note that ksh looks also at the FPATH variable,
3305 # so we have to set that as well for the test.
3306 PATH_SEPARATOR=:
3307 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
3308 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
3309 || PATH_SEPARATOR=';'
3310 }
3311 fi
3312
3313 # Find out how to test for executable files. Don't use a zero-byte file,
3314 # as systems may use methods other than mode bits to determine executability.
3315 cat >conf$$.file <<_ASEOF
3316 #! /bin/sh
3317 exit 0
3318 _ASEOF
3319 chmod +x conf$$.file
3320 if test -x conf$$.file >/dev/null 2>&1; then
3321 ac_executable_p="test -x"
3322 else
3323 ac_executable_p="test -f"
3324 fi
3325 rm -f conf$$.file
3326
3327 # Extract the first word of "msgfmt", so it can be a program name with args.
3328 set dummy msgfmt; ac_word=$2
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3330 $as_echo_n "checking for $ac_word... " >&6; }
3331 if ${ac_cv_path_MSGFMT+:} false; then :
3332 $as_echo_n "(cached) " >&6
3333 else
3334 case "$MSGFMT" in
3335 [\\/]* | ?:[\\/]*)
3336 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3337 ;;
3338 *)
3339 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3340 for ac_dir in $PATH; do
3341 IFS="$ac_save_IFS"
3342 test -z "$ac_dir" && ac_dir=.
3343 for ac_exec_ext in '' $ac_executable_extensions; do
3344 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3345 echo "$as_me: trying $ac_dir/$ac_word..." >&5
3346 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
3347 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3348 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
3349 break 2
3350 fi
3351 fi
3352 done
3353 done
3354 IFS="$ac_save_IFS"
3355 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
3356 ;;
3357 esac
3358 fi
3359 MSGFMT="$ac_cv_path_MSGFMT"
3360 if test "$MSGFMT" != ":"; then
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
3362 $as_echo "$MSGFMT" >&6; }
3363 else
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3365 $as_echo "no" >&6; }
3366 fi
3367
3368 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3369 set dummy gmsgfmt; ac_word=$2
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3371 $as_echo_n "checking for $ac_word... " >&6; }
3372 if ${ac_cv_path_GMSGFMT+:} false; then :
3373 $as_echo_n "(cached) " >&6
3374 else
3375 case $GMSGFMT in
3376 [\\/]* | ?:[\\/]*)
3377 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3378 ;;
3379 *)
3380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3381 for as_dir in $PATH
3382 do
3383 IFS=$as_save_IFS
3384 test -z "$as_dir" && as_dir=.
3385 for ac_exec_ext in '' $ac_executable_extensions; do
3386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3387 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
3388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3389 break 2
3390 fi
3391 done
3392 done
3393 IFS=$as_save_IFS
3394
3395 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3396 ;;
3397 esac
3398 fi
3399 GMSGFMT=$ac_cv_path_GMSGFMT
3400 if test -n "$GMSGFMT"; then
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
3402 $as_echo "$GMSGFMT" >&6; }
3403 else
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3405 $as_echo "no" >&6; }
3406 fi
3407
3408
3409
3410 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
3411 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
3412 *) MSGFMT_015=$MSGFMT ;;
3413 esac
3414
3415 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
3416 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
3417 *) GMSGFMT_015=$GMSGFMT ;;
3418 esac
3419
3420
3421
3422 # Prepare PATH_SEPARATOR.
3423 # The user is always right.
3424 if test "${PATH_SEPARATOR+set}" != set; then
3425 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
3426 # contains only /bin. Note that ksh looks also at the FPATH variable,
3427 # so we have to set that as well for the test.
3428 PATH_SEPARATOR=:
3429 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
3430 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
3431 || PATH_SEPARATOR=';'
3432 }
3433 fi
3434
3435 # Find out how to test for executable files. Don't use a zero-byte file,
3436 # as systems may use methods other than mode bits to determine executability.
3437 cat >conf$$.file <<_ASEOF
3438 #! /bin/sh
3439 exit 0
3440 _ASEOF
3441 chmod +x conf$$.file
3442 if test -x conf$$.file >/dev/null 2>&1; then
3443 ac_executable_p="test -x"
3444 else
3445 ac_executable_p="test -f"
3446 fi
3447 rm -f conf$$.file
3448
3449 # Extract the first word of "xgettext", so it can be a program name with args.
3450 set dummy xgettext; ac_word=$2
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3452 $as_echo_n "checking for $ac_word... " >&6; }
3453 if ${ac_cv_path_XGETTEXT+:} false; then :
3454 $as_echo_n "(cached) " >&6
3455 else
3456 case "$XGETTEXT" in
3457 [\\/]* | ?:[\\/]*)
3458 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3459 ;;
3460 *)
3461 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3462 for ac_dir in $PATH; do
3463 IFS="$ac_save_IFS"
3464 test -z "$ac_dir" && ac_dir=.
3465 for ac_exec_ext in '' $ac_executable_extensions; do
3466 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3467 echo "$as_me: trying $ac_dir/$ac_word..." >&5
3468 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
3469 (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
3470 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
3471 break 2
3472 fi
3473 fi
3474 done
3475 done
3476 IFS="$ac_save_IFS"
3477 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3478 ;;
3479 esac
3480 fi
3481 XGETTEXT="$ac_cv_path_XGETTEXT"
3482 if test "$XGETTEXT" != ":"; then
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
3484 $as_echo "$XGETTEXT" >&6; }
3485 else
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3487 $as_echo "no" >&6; }
3488 fi
3489
3490 rm -f messages.po
3491
3492 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
3493 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
3494 *) XGETTEXT_015=$XGETTEXT ;;
3495 esac
3496
3497
3498
3499 # Prepare PATH_SEPARATOR.
3500 # The user is always right.
3501 if test "${PATH_SEPARATOR+set}" != set; then
3502 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
3503 # contains only /bin. Note that ksh looks also at the FPATH variable,
3504 # so we have to set that as well for the test.
3505 PATH_SEPARATOR=:
3506 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
3507 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
3508 || PATH_SEPARATOR=';'
3509 }
3510 fi
3511
3512 # Find out how to test for executable files. Don't use a zero-byte file,
3513 # as systems may use methods other than mode bits to determine executability.
3514 cat >conf$$.file <<_ASEOF
3515 #! /bin/sh
3516 exit 0
3517 _ASEOF
3518 chmod +x conf$$.file
3519 if test -x conf$$.file >/dev/null 2>&1; then
3520 ac_executable_p="test -x"
3521 else
3522 ac_executable_p="test -f"
3523 fi
3524 rm -f conf$$.file
3525
3526 # Extract the first word of "msgmerge", so it can be a program name with args.
3527 set dummy msgmerge; ac_word=$2
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3529 $as_echo_n "checking for $ac_word... " >&6; }
3530 if ${ac_cv_path_MSGMERGE+:} false; then :
3531 $as_echo_n "(cached) " >&6
3532 else
3533 case "$MSGMERGE" in
3534 [\\/]* | ?:[\\/]*)
3535 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
3536 ;;
3537 *)
3538 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3539 for ac_dir in $PATH; do
3540 IFS="$ac_save_IFS"
3541 test -z "$ac_dir" && ac_dir=.
3542 for ac_exec_ext in '' $ac_executable_extensions; do
3543 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3544 echo "$as_me: trying $ac_dir/$ac_word..." >&5
3545 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
3546 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
3547 break 2
3548 fi
3549 fi
3550 done
3551 done
3552 IFS="$ac_save_IFS"
3553 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
3554 ;;
3555 esac
3556 fi
3557 MSGMERGE="$ac_cv_path_MSGMERGE"
3558 if test "$MSGMERGE" != ":"; then
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
3560 $as_echo "$MSGMERGE" >&6; }
3561 else
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3563 $as_echo "no" >&6; }
3564 fi
3565
3566
3567 test -n "$localedir" || localedir='${datadir}/locale'
3568
3569
3570 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
3571
3572
3573 ac_config_commands="$ac_config_commands po-directories"
3574
3575
3576
3577 if test "X$prefix" = "XNONE"; then
3578 acl_final_prefix="$ac_default_prefix"
3579 else
3580 acl_final_prefix="$prefix"
3581 fi
3582 if test "X$exec_prefix" = "XNONE"; then
3583 acl_final_exec_prefix='${prefix}'
3584 else
3585 acl_final_exec_prefix="$exec_prefix"
3586 fi
3587 acl_save_prefix="$prefix"
3588 prefix="$acl_final_prefix"
3589 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
3590 prefix="$acl_save_prefix"
3591
3592 DEPDIR="${am__leading_dot}deps"
3593
3594 ac_config_commands="$ac_config_commands depfiles"
3595
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3597 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3598 cat > confinc.mk << 'END'
3599 am__doit:
3600 @echo this is the am__doit target >confinc.out
3601 .PHONY: am__doit
3602 END
3603 am__include="#"
3604 am__quote=
3605 # BSD make does it like this.
3606 echo '.include "confinc.mk" # ignored' > confmf.BSD
3607 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3608 echo 'include confinc.mk # ignored' > confmf.GNU
3609 _am_result=no
3610 for s in GNU BSD; do
3611 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3612 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3613 ac_status=$?
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); }
3616 case $?:`cat confinc.out 2>/dev/null` in #(
3617 '0:this is the am__doit target') :
3618 case $s in #(
3619 BSD) :
3620 am__include='.include' am__quote='"' ;; #(
3621 *) :
3622 am__include='include' am__quote='' ;;
3623 esac ;; #(
3624 *) :
3625 ;;
3626 esac
3627 if test "$am__include" != "#"; then
3628 _am_result="yes ($s style)"
3629 break
3630 fi
3631 done
3632 rm -f confinc.* confmf.*
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3634 $as_echo "${_am_result}" >&6; }
3635
3636 # Check whether --enable-dependency-tracking was given.
3637 if test "${enable_dependency_tracking+set}" = set; then :
3638 enableval=$enable_dependency_tracking;
3639 fi
3640
3641 if test "x$enable_dependency_tracking" != xno; then
3642 am_depcomp="$ac_aux_dir/depcomp"
3643 AMDEPBACKSLASH='\'
3644 am__nodep='_no'
3645 fi
3646 if test "x$enable_dependency_tracking" != xno; then
3647 AMDEP_TRUE=
3648 AMDEP_FALSE='#'
3649 else
3650 AMDEP_TRUE='#'
3651 AMDEP_FALSE=
3652 fi
3653
3654
3655 ac_ext=c
3656 ac_cpp='$CPP $CPPFLAGS'
3657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3660 if test -n "$ac_tool_prefix"; then
3661 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3662 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3664 $as_echo_n "checking for $ac_word... " >&6; }
3665 if ${ac_cv_prog_CC+:} false; then :
3666 $as_echo_n "(cached) " >&6
3667 else
3668 if test -n "$CC"; then
3669 ac_cv_prog_CC="$CC" # Let the user override the test.
3670 else
3671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672 for as_dir in $PATH
3673 do
3674 IFS=$as_save_IFS
3675 test -z "$as_dir" && as_dir=.
3676 for ac_exec_ext in '' $ac_executable_extensions; do
3677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3678 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3680 break 2
3681 fi
3682 done
3683 done
3684 IFS=$as_save_IFS
3685
3686 fi
3687 fi
3688 CC=$ac_cv_prog_CC
3689 if test -n "$CC"; then
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3691 $as_echo "$CC" >&6; }
3692 else
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3694 $as_echo "no" >&6; }
3695 fi
3696
3697
3698 fi
3699 if test -z "$ac_cv_prog_CC"; then
3700 ac_ct_CC=$CC
3701 # Extract the first word of "gcc", so it can be a program name with args.
3702 set dummy gcc; ac_word=$2
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3704 $as_echo_n "checking for $ac_word... " >&6; }
3705 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3706 $as_echo_n "(cached) " >&6
3707 else
3708 if test -n "$ac_ct_CC"; then
3709 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3710 else
3711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712 for as_dir in $PATH
3713 do
3714 IFS=$as_save_IFS
3715 test -z "$as_dir" && as_dir=.
3716 for ac_exec_ext in '' $ac_executable_extensions; do
3717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3718 ac_cv_prog_ac_ct_CC="gcc"
3719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3720 break 2
3721 fi
3722 done
3723 done
3724 IFS=$as_save_IFS
3725
3726 fi
3727 fi
3728 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3729 if test -n "$ac_ct_CC"; then
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3731 $as_echo "$ac_ct_CC" >&6; }
3732 else
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3734 $as_echo "no" >&6; }
3735 fi
3736
3737 if test "x$ac_ct_CC" = x; then
3738 CC=""
3739 else
3740 case $cross_compiling:$ac_tool_warned in
3741 yes:)
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3744 ac_tool_warned=yes ;;
3745 esac
3746 CC=$ac_ct_CC
3747 fi
3748 else
3749 CC="$ac_cv_prog_CC"
3750 fi
3751
3752 if test -z "$CC"; then
3753 if test -n "$ac_tool_prefix"; then
3754 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3755 set dummy ${ac_tool_prefix}cc; ac_word=$2
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3757 $as_echo_n "checking for $ac_word... " >&6; }
3758 if ${ac_cv_prog_CC+:} false; then :
3759 $as_echo_n "(cached) " >&6
3760 else
3761 if test -n "$CC"; then
3762 ac_cv_prog_CC="$CC" # Let the user override the test.
3763 else
3764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765 for as_dir in $PATH
3766 do
3767 IFS=$as_save_IFS
3768 test -z "$as_dir" && as_dir=.
3769 for ac_exec_ext in '' $ac_executable_extensions; do
3770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3771 ac_cv_prog_CC="${ac_tool_prefix}cc"
3772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3773 break 2
3774 fi
3775 done
3776 done
3777 IFS=$as_save_IFS
3778
3779 fi
3780 fi
3781 CC=$ac_cv_prog_CC
3782 if test -n "$CC"; then
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3784 $as_echo "$CC" >&6; }
3785 else
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3787 $as_echo "no" >&6; }
3788 fi
3789
3790
3791 fi
3792 fi
3793 if test -z "$CC"; then
3794 # Extract the first word of "cc", so it can be a program name with args.
3795 set dummy cc; ac_word=$2
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3797 $as_echo_n "checking for $ac_word... " >&6; }
3798 if ${ac_cv_prog_CC+:} false; then :
3799 $as_echo_n "(cached) " >&6
3800 else
3801 if test -n "$CC"; then
3802 ac_cv_prog_CC="$CC" # Let the user override the test.
3803 else
3804 ac_prog_rejected=no
3805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806 for as_dir in $PATH
3807 do
3808 IFS=$as_save_IFS
3809 test -z "$as_dir" && as_dir=.
3810 for ac_exec_ext in '' $ac_executable_extensions; do
3811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3812 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3813 ac_prog_rejected=yes
3814 continue
3815 fi
3816 ac_cv_prog_CC="cc"
3817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3818 break 2
3819 fi
3820 done
3821 done
3822 IFS=$as_save_IFS
3823
3824 if test $ac_prog_rejected = yes; then
3825 # We found a bogon in the path, so make sure we never use it.
3826 set dummy $ac_cv_prog_CC
3827 shift
3828 if test $# != 0; then
3829 # We chose a different compiler from the bogus one.
3830 # However, it has the same basename, so the bogon will be chosen
3831 # first if we set CC to just the basename; use the full file name.
3832 shift
3833 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3834 fi
3835 fi
3836 fi
3837 fi
3838 CC=$ac_cv_prog_CC
3839 if test -n "$CC"; then
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3841 $as_echo "$CC" >&6; }
3842 else
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3844 $as_echo "no" >&6; }
3845 fi
3846
3847
3848 fi
3849 if test -z "$CC"; then
3850 if test -n "$ac_tool_prefix"; then
3851 for ac_prog in cl.exe
3852 do
3853 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3854 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3856 $as_echo_n "checking for $ac_word... " >&6; }
3857 if ${ac_cv_prog_CC+:} false; then :
3858 $as_echo_n "(cached) " >&6
3859 else
3860 if test -n "$CC"; then
3861 ac_cv_prog_CC="$CC" # Let the user override the test.
3862 else
3863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864 for as_dir in $PATH
3865 do
3866 IFS=$as_save_IFS
3867 test -z "$as_dir" && as_dir=.
3868 for ac_exec_ext in '' $ac_executable_extensions; do
3869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3870 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3872 break 2
3873 fi
3874 done
3875 done
3876 IFS=$as_save_IFS
3877
3878 fi
3879 fi
3880 CC=$ac_cv_prog_CC
3881 if test -n "$CC"; then
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3883 $as_echo "$CC" >&6; }
3884 else
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3886 $as_echo "no" >&6; }
3887 fi
3888
3889
3890 test -n "$CC" && break
3891 done
3892 fi
3893 if test -z "$CC"; then
3894 ac_ct_CC=$CC
3895 for ac_prog in cl.exe
3896 do
3897 # Extract the first word of "$ac_prog", so it can be a program name with args.
3898 set dummy $ac_prog; ac_word=$2
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3900 $as_echo_n "checking for $ac_word... " >&6; }
3901 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3902 $as_echo_n "(cached) " >&6
3903 else
3904 if test -n "$ac_ct_CC"; then
3905 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3906 else
3907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3908 for as_dir in $PATH
3909 do
3910 IFS=$as_save_IFS
3911 test -z "$as_dir" && as_dir=.
3912 for ac_exec_ext in '' $ac_executable_extensions; do
3913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3914 ac_cv_prog_ac_ct_CC="$ac_prog"
3915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3916 break 2
3917 fi
3918 done
3919 done
3920 IFS=$as_save_IFS
3921
3922 fi
3923 fi
3924 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3925 if test -n "$ac_ct_CC"; then
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3927 $as_echo "$ac_ct_CC" >&6; }
3928 else
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3930 $as_echo "no" >&6; }
3931 fi
3932
3933
3934 test -n "$ac_ct_CC" && break
3935 done
3936
3937 if test "x$ac_ct_CC" = x; then
3938 CC=""
3939 else
3940 case $cross_compiling:$ac_tool_warned in
3941 yes:)
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3943 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3944 ac_tool_warned=yes ;;
3945 esac
3946 CC=$ac_ct_CC
3947 fi
3948 fi
3949
3950 fi
3951
3952
3953 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3954 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3955 as_fn_error $? "no acceptable C compiler found in \$PATH
3956 See \`config.log' for more details" "$LINENO" 5; }
3957
3958 # Provide some information about the compiler.
3959 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3960 set X $ac_compile
3961 ac_compiler=$2
3962 for ac_option in --version -v -V -qversion; do
3963 { { ac_try="$ac_compiler $ac_option >&5"
3964 case "(($ac_try" in
3965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3966 *) ac_try_echo=$ac_try;;
3967 esac
3968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3969 $as_echo "$ac_try_echo"; } >&5
3970 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3971 ac_status=$?
3972 if test -s conftest.err; then
3973 sed '10a\
3974 ... rest of stderr output deleted ...
3975 10q' conftest.err >conftest.er1
3976 cat conftest.er1 >&5
3977 fi
3978 rm -f conftest.er1 conftest.err
3979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3980 test $ac_status = 0; }
3981 done
3982
3983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3984 /* end confdefs.h. */
3985
3986 int
3987 main ()
3988 {
3989
3990 ;
3991 return 0;
3992 }
3993 _ACEOF
3994 ac_clean_files_save=$ac_clean_files
3995 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3996 # Try to create an executable without -o first, disregard a.out.
3997 # It will help us diagnose broken compilers, and finding out an intuition
3998 # of exeext.
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4000 $as_echo_n "checking whether the C compiler works... " >&6; }
4001 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4002
4003 # The possible output files:
4004 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4005
4006 ac_rmfiles=
4007 for ac_file in $ac_files
4008 do
4009 case $ac_file in
4010 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4011 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4012 esac
4013 done
4014 rm -f $ac_rmfiles
4015
4016 if { { ac_try="$ac_link_default"
4017 case "(($ac_try" in
4018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4019 *) ac_try_echo=$ac_try;;
4020 esac
4021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4022 $as_echo "$ac_try_echo"; } >&5
4023 (eval "$ac_link_default") 2>&5
4024 ac_status=$?
4025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4026 test $ac_status = 0; }; then :
4027 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4028 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4029 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4030 # so that the user can short-circuit this test for compilers unknown to
4031 # Autoconf.
4032 for ac_file in $ac_files ''
4033 do
4034 test -f "$ac_file" || continue
4035 case $ac_file in
4036 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4037 ;;
4038 [ab].out )
4039 # We found the default executable, but exeext='' is most
4040 # certainly right.
4041 break;;
4042 *.* )
4043 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4044 then :; else
4045 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4046 fi
4047 # We set ac_cv_exeext here because the later test for it is not
4048 # safe: cross compilers may not add the suffix if given an `-o'
4049 # argument, so we may need to know it at that point already.
4050 # Even if this section looks crufty: it has the advantage of
4051 # actually working.
4052 break;;
4053 * )
4054 break;;
4055 esac
4056 done
4057 test "$ac_cv_exeext" = no && ac_cv_exeext=
4058
4059 else
4060 ac_file=''
4061 fi
4062 if test -z "$ac_file"; then :
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4064 $as_echo "no" >&6; }
4065 $as_echo "$as_me: failed program was:" >&5
4066 sed 's/^/| /' conftest.$ac_ext >&5
4067
4068 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4069 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4070 as_fn_error 77 "C compiler cannot create executables
4071 See \`config.log' for more details" "$LINENO" 5; }
4072 else
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4074 $as_echo "yes" >&6; }
4075 fi
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4077 $as_echo_n "checking for C compiler default output file name... " >&6; }
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4079 $as_echo "$ac_file" >&6; }
4080 ac_exeext=$ac_cv_exeext
4081
4082 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4083 ac_clean_files=$ac_clean_files_save
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4085 $as_echo_n "checking for suffix of executables... " >&6; }
4086 if { { ac_try="$ac_link"
4087 case "(($ac_try" in
4088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4089 *) ac_try_echo=$ac_try;;
4090 esac
4091 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4092 $as_echo "$ac_try_echo"; } >&5
4093 (eval "$ac_link") 2>&5
4094 ac_status=$?
4095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4096 test $ac_status = 0; }; then :
4097 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4098 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4099 # work properly (i.e., refer to `conftest.exe'), while it won't with
4100 # `rm'.
4101 for ac_file in conftest.exe conftest conftest.*; do
4102 test -f "$ac_file" || continue
4103 case $ac_file in
4104 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4105 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4106 break;;
4107 * ) break;;
4108 esac
4109 done
4110 else
4111 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4112 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4113 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4114 See \`config.log' for more details" "$LINENO" 5; }
4115 fi
4116 rm -f conftest conftest$ac_cv_exeext
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4118 $as_echo "$ac_cv_exeext" >&6; }
4119
4120 rm -f conftest.$ac_ext
4121 EXEEXT=$ac_cv_exeext
4122 ac_exeext=$EXEEXT
4123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4124 /* end confdefs.h. */
4125 #include <stdio.h>
4126 int
4127 main ()
4128 {
4129 FILE *f = fopen ("conftest.out", "w");
4130 return ferror (f) || fclose (f) != 0;
4131
4132 ;
4133 return 0;
4134 }
4135 _ACEOF
4136 ac_clean_files="$ac_clean_files conftest.out"
4137 # Check that the compiler produces executables we can run. If not, either
4138 # the compiler is broken, or we cross compile.
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4140 $as_echo_n "checking whether we are cross compiling... " >&6; }
4141 if test "$cross_compiling" != yes; then
4142 { { ac_try="$ac_link"
4143 case "(($ac_try" in
4144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4145 *) ac_try_echo=$ac_try;;
4146 esac
4147 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4148 $as_echo "$ac_try_echo"; } >&5
4149 (eval "$ac_link") 2>&5
4150 ac_status=$?
4151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4152 test $ac_status = 0; }
4153 if { ac_try='./conftest$ac_cv_exeext'
4154 { { case "(($ac_try" in
4155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4156 *) ac_try_echo=$ac_try;;
4157 esac
4158 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4159 $as_echo "$ac_try_echo"; } >&5
4160 (eval "$ac_try") 2>&5
4161 ac_status=$?
4162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4163 test $ac_status = 0; }; }; then
4164 cross_compiling=no
4165 else
4166 if test "$cross_compiling" = maybe; then
4167 cross_compiling=yes
4168 else
4169 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4170 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4171 as_fn_error $? "cannot run C compiled programs.
4172 If you meant to cross compile, use \`--host'.
4173 See \`config.log' for more details" "$LINENO" 5; }
4174 fi
4175 fi
4176 fi
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4178 $as_echo "$cross_compiling" >&6; }
4179
4180 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4181 ac_clean_files=$ac_clean_files_save
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4183 $as_echo_n "checking for suffix of object files... " >&6; }
4184 if ${ac_cv_objext+:} false; then :
4185 $as_echo_n "(cached) " >&6
4186 else
4187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4188 /* end confdefs.h. */
4189
4190 int
4191 main ()
4192 {
4193
4194 ;
4195 return 0;
4196 }
4197 _ACEOF
4198 rm -f conftest.o conftest.obj
4199 if { { ac_try="$ac_compile"
4200 case "(($ac_try" in
4201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4202 *) ac_try_echo=$ac_try;;
4203 esac
4204 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4205 $as_echo "$ac_try_echo"; } >&5
4206 (eval "$ac_compile") 2>&5
4207 ac_status=$?
4208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4209 test $ac_status = 0; }; then :
4210 for ac_file in conftest.o conftest.obj conftest.*; do
4211 test -f "$ac_file" || continue;
4212 case $ac_file in
4213 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4214 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4215 break;;
4216 esac
4217 done
4218 else
4219 $as_echo "$as_me: failed program was:" >&5
4220 sed 's/^/| /' conftest.$ac_ext >&5
4221
4222 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4223 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4224 as_fn_error $? "cannot compute suffix of object files: cannot compile
4225 See \`config.log' for more details" "$LINENO" 5; }
4226 fi
4227 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4228 fi
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4230 $as_echo "$ac_cv_objext" >&6; }
4231 OBJEXT=$ac_cv_objext
4232 ac_objext=$OBJEXT
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4234 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4235 if ${ac_cv_c_compiler_gnu+:} false; then :
4236 $as_echo_n "(cached) " >&6
4237 else
4238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4239 /* end confdefs.h. */
4240
4241 int
4242 main ()
4243 {
4244 #ifndef __GNUC__
4245 choke me
4246 #endif
4247
4248 ;
4249 return 0;
4250 }
4251 _ACEOF
4252 if ac_fn_c_try_compile "$LINENO"; then :
4253 ac_compiler_gnu=yes
4254 else
4255 ac_compiler_gnu=no
4256 fi
4257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4258 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4259
4260 fi
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4262 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4263 if test $ac_compiler_gnu = yes; then
4264 GCC=yes
4265 else
4266 GCC=
4267 fi
4268 ac_test_CFLAGS=${CFLAGS+set}
4269 ac_save_CFLAGS=$CFLAGS
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4271 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4272 if ${ac_cv_prog_cc_g+:} false; then :
4273 $as_echo_n "(cached) " >&6
4274 else
4275 ac_save_c_werror_flag=$ac_c_werror_flag
4276 ac_c_werror_flag=yes
4277 ac_cv_prog_cc_g=no
4278 CFLAGS="-g"
4279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4280 /* end confdefs.h. */
4281
4282 int
4283 main ()
4284 {
4285
4286 ;
4287 return 0;
4288 }
4289 _ACEOF
4290 if ac_fn_c_try_compile "$LINENO"; then :
4291 ac_cv_prog_cc_g=yes
4292 else
4293 CFLAGS=""
4294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295 /* end confdefs.h. */
4296
4297 int
4298 main ()
4299 {
4300
4301 ;
4302 return 0;
4303 }
4304 _ACEOF
4305 if ac_fn_c_try_compile "$LINENO"; then :
4306
4307 else
4308 ac_c_werror_flag=$ac_save_c_werror_flag
4309 CFLAGS="-g"
4310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4311 /* end confdefs.h. */
4312
4313 int
4314 main ()
4315 {
4316
4317 ;
4318 return 0;
4319 }
4320 _ACEOF
4321 if ac_fn_c_try_compile "$LINENO"; then :
4322 ac_cv_prog_cc_g=yes
4323 fi
4324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4325 fi
4326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4327 fi
4328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4329 ac_c_werror_flag=$ac_save_c_werror_flag
4330 fi
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4332 $as_echo "$ac_cv_prog_cc_g" >&6; }
4333 if test "$ac_test_CFLAGS" = set; then
4334 CFLAGS=$ac_save_CFLAGS
4335 elif test $ac_cv_prog_cc_g = yes; then
4336 if test "$GCC" = yes; then
4337 CFLAGS="-g -O2"
4338 else
4339 CFLAGS="-g"
4340 fi
4341 else
4342 if test "$GCC" = yes; then
4343 CFLAGS="-O2"
4344 else
4345 CFLAGS=
4346 fi
4347 fi
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4349 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4350 if ${ac_cv_prog_cc_c89+:} false; then :
4351 $as_echo_n "(cached) " >&6
4352 else
4353 ac_cv_prog_cc_c89=no
4354 ac_save_CC=$CC
4355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4356 /* end confdefs.h. */
4357 #include <stdarg.h>
4358 #include <stdio.h>
4359 struct stat;
4360 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4361 struct buf { int x; };
4362 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4363 static char *e (p, i)
4364 char **p;
4365 int i;
4366 {
4367 return p[i];
4368 }
4369 static char *f (char * (*g) (char **, int), char **p, ...)
4370 {
4371 char *s;
4372 va_list v;
4373 va_start (v,p);
4374 s = g (p, va_arg (v,int));
4375 va_end (v);
4376 return s;
4377 }
4378
4379 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4380 function prototypes and stuff, but not '\xHH' hex character constants.
4381 These don't provoke an error unfortunately, instead are silently treated
4382 as 'x'. The following induces an error, until -std is added to get
4383 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4384 array size at least. It's necessary to write '\x00'==0 to get something
4385 that's true only with -std. */
4386 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4387
4388 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4389 inside strings and character constants. */
4390 #define FOO(x) 'x'
4391 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4392
4393 int test (int i, double x);
4394 struct s1 {int (*f) (int a);};
4395 struct s2 {int (*f) (double a);};
4396 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4397 int argc;
4398 char **argv;
4399 int
4400 main ()
4401 {
4402 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4403 ;
4404 return 0;
4405 }
4406 _ACEOF
4407 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4408 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4409 do
4410 CC="$ac_save_CC $ac_arg"
4411 if ac_fn_c_try_compile "$LINENO"; then :
4412 ac_cv_prog_cc_c89=$ac_arg
4413 fi
4414 rm -f core conftest.err conftest.$ac_objext
4415 test "x$ac_cv_prog_cc_c89" != "xno" && break
4416 done
4417 rm -f conftest.$ac_ext
4418 CC=$ac_save_CC
4419
4420 fi
4421 # AC_CACHE_VAL
4422 case "x$ac_cv_prog_cc_c89" in
4423 x)
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4425 $as_echo "none needed" >&6; } ;;
4426 xno)
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4428 $as_echo "unsupported" >&6; } ;;
4429 *)
4430 CC="$CC $ac_cv_prog_cc_c89"
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4432 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4433 esac
4434 if test "x$ac_cv_prog_cc_c89" != xno; then :
4435
4436 fi
4437
4438 ac_ext=cpp
4439 ac_cpp='$CXXCPP $CPPFLAGS'
4440 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4441 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4442 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4443
4444 ac_ext=c
4445 ac_cpp='$CPP $CPPFLAGS'
4446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4450 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4451 if ${am_cv_prog_cc_c_o+:} false; then :
4452 $as_echo_n "(cached) " >&6
4453 else
4454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455 /* end confdefs.h. */
4456
4457 int
4458 main ()
4459 {
4460
4461 ;
4462 return 0;
4463 }
4464 _ACEOF
4465 # Make sure it works both with $CC and with simple cc.
4466 # Following AC_PROG_CC_C_O, we do the test twice because some
4467 # compilers refuse to overwrite an existing .o file with -o,
4468 # though they will create one.
4469 am_cv_prog_cc_c_o=yes
4470 for am_i in 1 2; do
4471 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4472 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4473 ac_status=$?
4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); } \
4476 && test -f conftest2.$ac_objext; then
4477 : OK
4478 else
4479 am_cv_prog_cc_c_o=no
4480 break
4481 fi
4482 done
4483 rm -f core conftest*
4484 unset am_i
4485 fi
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4487 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4488 if test "$am_cv_prog_cc_c_o" != yes; then
4489 # Losing compiler, so override with the script.
4490 # FIXME: It is wrong to rewrite CC.
4491 # But if we don't then we get into trouble of one sort or another.
4492 # A longer-term fix would be to have automake use am__CC in this case,
4493 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4494 CC="$am_aux_dir/compile $CC"
4495 fi
4496 ac_ext=cpp
4497 ac_cpp='$CXXCPP $CPPFLAGS'
4498 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4499 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4500 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4501
4502
4503 depcc="$CC" am_compiler_list=
4504
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4506 $as_echo_n "checking dependency style of $depcc... " >&6; }
4507 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4508 $as_echo_n "(cached) " >&6
4509 else
4510 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4511 # We make a subdir and do the tests there. Otherwise we can end up
4512 # making bogus files that we don't know about and never remove. For
4513 # instance it was reported that on HP-UX the gcc test will end up
4514 # making a dummy file named 'D' -- because '-MD' means "put the output
4515 # in D".
4516 rm -rf conftest.dir
4517 mkdir conftest.dir
4518 # Copy depcomp to subdir because otherwise we won't find it if we're
4519 # using a relative directory.
4520 cp "$am_depcomp" conftest.dir
4521 cd conftest.dir
4522 # We will build objects and dependencies in a subdirectory because
4523 # it helps to detect inapplicable dependency modes. For instance
4524 # both Tru64's cc and ICC support -MD to output dependencies as a
4525 # side effect of compilation, but ICC will put the dependencies in
4526 # the current directory while Tru64 will put them in the object
4527 # directory.
4528 mkdir sub
4529
4530 am_cv_CC_dependencies_compiler_type=none
4531 if test "$am_compiler_list" = ""; then
4532 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4533 fi
4534 am__universal=false
4535 case " $depcc " in #(
4536 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4537 esac
4538
4539 for depmode in $am_compiler_list; do
4540 # Setup a source with many dependencies, because some compilers
4541 # like to wrap large dependency lists on column 80 (with \), and
4542 # we should not choose a depcomp mode which is confused by this.
4543 #
4544 # We need to recreate these files for each test, as the compiler may
4545 # overwrite some of them when testing with obscure command lines.
4546 # This happens at least with the AIX C compiler.
4547 : > sub/conftest.c
4548 for i in 1 2 3 4 5 6; do
4549 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4550 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4551 # Solaris 10 /bin/sh.
4552 echo '/* dummy */' > sub/conftst$i.h
4553 done
4554 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4555
4556 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4557 # mode. It turns out that the SunPro C++ compiler does not properly
4558 # handle '-M -o', and we need to detect this. Also, some Intel
4559 # versions had trouble with output in subdirs.
4560 am__obj=sub/conftest.${OBJEXT-o}
4561 am__minus_obj="-o $am__obj"
4562 case $depmode in
4563 gcc)
4564 # This depmode causes a compiler race in universal mode.
4565 test "$am__universal" = false || continue
4566 ;;
4567 nosideeffect)
4568 # After this tag, mechanisms are not by side-effect, so they'll
4569 # only be used when explicitly requested.
4570 if test "x$enable_dependency_tracking" = xyes; then
4571 continue
4572 else
4573 break
4574 fi
4575 ;;
4576 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4577 # This compiler won't grok '-c -o', but also, the minuso test has
4578 # not run yet. These depmodes are late enough in the game, and
4579 # so weak that their functioning should not be impacted.
4580 am__obj=conftest.${OBJEXT-o}
4581 am__minus_obj=
4582 ;;
4583 none) break ;;
4584 esac
4585 if depmode=$depmode \
4586 source=sub/conftest.c object=$am__obj \
4587 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4588 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4589 >/dev/null 2>conftest.err &&
4590 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4591 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4592 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4593 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4594 # icc doesn't choke on unknown options, it will just issue warnings
4595 # or remarks (even with -Werror). So we grep stderr for any message
4596 # that says an option was ignored or not supported.
4597 # When given -MP, icc 7.0 and 7.1 complain thusly:
4598 # icc: Command line warning: ignoring option '-M'; no argument required
4599 # The diagnosis changed in icc 8.0:
4600 # icc: Command line remark: option '-MP' not supported
4601 if (grep 'ignoring option' conftest.err ||
4602 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4603 am_cv_CC_dependencies_compiler_type=$depmode
4604 break
4605 fi
4606 fi
4607 done
4608
4609 cd ..
4610 rm -rf conftest.dir
4611 else
4612 am_cv_CC_dependencies_compiler_type=none
4613 fi
4614
4615 fi
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4617 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4618 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4619
4620 if
4621 test "x$enable_dependency_tracking" != xno \
4622 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4623 am__fastdepCC_TRUE=
4624 am__fastdepCC_FALSE='#'
4625 else
4626 am__fastdepCC_TRUE='#'
4627 am__fastdepCC_FALSE=
4628 fi
4629
4630
4631 # Make sure we can run config.sub.
4632 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4633 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4634
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4636 $as_echo_n "checking build system type... " >&6; }
4637 if ${ac_cv_build+:} false; then :
4638 $as_echo_n "(cached) " >&6
4639 else
4640 ac_build_alias=$build_alias
4641 test "x$ac_build_alias" = x &&
4642 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4643 test "x$ac_build_alias" = x &&
4644 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4645 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4646 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4647
4648 fi
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4650 $as_echo "$ac_cv_build" >&6; }
4651 case $ac_cv_build in
4652 *-*-*) ;;
4653 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4654 esac
4655 build=$ac_cv_build
4656 ac_save_IFS=$IFS; IFS='-'
4657 set x $ac_cv_build
4658 shift
4659 build_cpu=$1
4660 build_vendor=$2
4661 shift; shift
4662 # Remember, the first character of IFS is used to create $*,
4663 # except with old shells:
4664 build_os=$*
4665 IFS=$ac_save_IFS
4666 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4667
4668
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4670 $as_echo_n "checking host system type... " >&6; }
4671 if ${ac_cv_host+:} false; then :
4672 $as_echo_n "(cached) " >&6
4673 else
4674 if test "x$host_alias" = x; then
4675 ac_cv_host=$ac_cv_build
4676 else
4677 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4678 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4679 fi
4680
4681 fi
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4683 $as_echo "$ac_cv_host" >&6; }
4684 case $ac_cv_host in
4685 *-*-*) ;;
4686 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4687 esac
4688 host=$ac_cv_host
4689 ac_save_IFS=$IFS; IFS='-'
4690 set x $ac_cv_host
4691 shift
4692 host_cpu=$1
4693 host_vendor=$2
4694 shift; shift
4695 # Remember, the first character of IFS is used to create $*,
4696 # except with old shells:
4697 host_os=$*
4698 IFS=$ac_save_IFS
4699 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4700
4701
4702
4703
4704 # Check whether --with-gnu-ld was given.
4705 if test "${with_gnu_ld+set}" = set; then :
4706 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4707 else
4708 with_gnu_ld=no
4709 fi
4710
4711 # Prepare PATH_SEPARATOR.
4712 # The user is always right.
4713 if test "${PATH_SEPARATOR+set}" != set; then
4714 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
4715 # contains only /bin. Note that ksh looks also at the FPATH variable,
4716 # so we have to set that as well for the test.
4717 PATH_SEPARATOR=:
4718 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
4719 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
4720 || PATH_SEPARATOR=';'
4721 }
4722 fi
4723
4724 ac_prog=ld
4725 if test "$GCC" = yes; then
4726 # Check if gcc -print-prog-name=ld gives a path.
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4728 $as_echo_n "checking for ld used by $CC... " >&6; }
4729 case $host in
4730 *-*-mingw*)
4731 # gcc leaves a trailing carriage return which upsets mingw
4732 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4733 *)
4734 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4735 esac
4736 case $ac_prog in
4737 # Accept absolute paths.
4738 [\\/]* | ?:[\\/]*)
4739 re_direlt='/[^/][^/]*/\.\./'
4740 # Canonicalize the pathname of ld
4741 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
4742 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
4743 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4744 done
4745 test -z "$LD" && LD="$ac_prog"
4746 ;;
4747 "")
4748 # If it fails, then pretend we aren't using GCC.
4749 ac_prog=ld
4750 ;;
4751 *)
4752 # If it is relative, then search for the first ld in PATH.
4753 with_gnu_ld=unknown
4754 ;;
4755 esac
4756 elif test "$with_gnu_ld" = yes; then
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4758 $as_echo_n "checking for GNU ld... " >&6; }
4759 else
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4761 $as_echo_n "checking for non-GNU ld... " >&6; }
4762 fi
4763 if ${acl_cv_path_LD+:} false; then :
4764 $as_echo_n "(cached) " >&6
4765 else
4766 if test -z "$LD"; then
4767 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4768 for ac_dir in $PATH; do
4769 IFS="$acl_save_ifs"
4770 test -z "$ac_dir" && ac_dir=.
4771 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4772 acl_cv_path_LD="$ac_dir/$ac_prog"
4773 # Check to see if the program is GNU ld. I'd rather use --version,
4774 # but apparently some variants of GNU ld only accept -v.
4775 # Break only if it was the GNU/non-GNU ld that we prefer.
4776 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
4777 *GNU* | *'with BFD'*)
4778 test "$with_gnu_ld" != no && break
4779 ;;
4780 *)
4781 test "$with_gnu_ld" != yes && break
4782 ;;
4783 esac
4784 fi
4785 done
4786 IFS="$acl_save_ifs"
4787 else
4788 acl_cv_path_LD="$LD" # Let the user override the test with a path.
4789 fi
4790 fi
4791
4792 LD="$acl_cv_path_LD"
4793 if test -n "$LD"; then
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4795 $as_echo "$LD" >&6; }
4796 else
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4798 $as_echo "no" >&6; }
4799 fi
4800 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4802 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4803 if ${acl_cv_prog_gnu_ld+:} false; then :
4804 $as_echo_n "(cached) " >&6
4805 else
4806 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4807 case `$LD -v 2>&1 </dev/null` in
4808 *GNU* | *'with BFD'*)
4809 acl_cv_prog_gnu_ld=yes
4810 ;;
4811 *)
4812 acl_cv_prog_gnu_ld=no
4813 ;;
4814 esac
4815 fi
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4817 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4818 with_gnu_ld=$acl_cv_prog_gnu_ld
4819
4820
4821
4822
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
4824 $as_echo_n "checking for shared library run path origin... " >&6; }
4825 if ${acl_cv_rpath+:} false; then :
4826 $as_echo_n "(cached) " >&6
4827 else
4828
4829 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4830 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4831 . ./conftest.sh
4832 rm -f ./conftest.sh
4833 acl_cv_rpath=done
4834
4835 fi
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
4837 $as_echo "$acl_cv_rpath" >&6; }
4838 wl="$acl_cv_wl"
4839 acl_libext="$acl_cv_libext"
4840 acl_shlibext="$acl_cv_shlibext"
4841 acl_libname_spec="$acl_cv_libname_spec"
4842 acl_library_names_spec="$acl_cv_library_names_spec"
4843 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4844 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4845 acl_hardcode_direct="$acl_cv_hardcode_direct"
4846 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
4847 # Check whether --enable-rpath was given.
4848 if test "${enable_rpath+set}" = set; then :
4849 enableval=$enable_rpath; :
4850 else
4851 enable_rpath=yes
4852 fi
4853
4854
4855 ac_ext=cpp
4856 ac_cpp='$CXXCPP $CPPFLAGS'
4857 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4858 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4859 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4860 if test -z "$CXX"; then
4861 if test -n "$CCC"; then
4862 CXX=$CCC
4863 else
4864 if test -n "$ac_tool_prefix"; then
4865 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4866 do
4867 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4868 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4870 $as_echo_n "checking for $ac_word... " >&6; }
4871 if ${ac_cv_prog_CXX+:} false; then :
4872 $as_echo_n "(cached) " >&6
4873 else
4874 if test -n "$CXX"; then
4875 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4876 else
4877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4878 for as_dir in $PATH
4879 do
4880 IFS=$as_save_IFS
4881 test -z "$as_dir" && as_dir=.
4882 for ac_exec_ext in '' $ac_executable_extensions; do
4883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4884 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4886 break 2
4887 fi
4888 done
4889 done
4890 IFS=$as_save_IFS
4891
4892 fi
4893 fi
4894 CXX=$ac_cv_prog_CXX
4895 if test -n "$CXX"; then
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4897 $as_echo "$CXX" >&6; }
4898 else
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4900 $as_echo "no" >&6; }
4901 fi
4902
4903
4904 test -n "$CXX" && break
4905 done
4906 fi
4907 if test -z "$CXX"; then
4908 ac_ct_CXX=$CXX
4909 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4910 do
4911 # Extract the first word of "$ac_prog", so it can be a program name with args.
4912 set dummy $ac_prog; ac_word=$2
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4914 $as_echo_n "checking for $ac_word... " >&6; }
4915 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4916 $as_echo_n "(cached) " >&6
4917 else
4918 if test -n "$ac_ct_CXX"; then
4919 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4920 else
4921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922 for as_dir in $PATH
4923 do
4924 IFS=$as_save_IFS
4925 test -z "$as_dir" && as_dir=.
4926 for ac_exec_ext in '' $ac_executable_extensions; do
4927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4928 ac_cv_prog_ac_ct_CXX="$ac_prog"
4929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4930 break 2
4931 fi
4932 done
4933 done
4934 IFS=$as_save_IFS
4935
4936 fi
4937 fi
4938 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4939 if test -n "$ac_ct_CXX"; then
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4941 $as_echo "$ac_ct_CXX" >&6; }
4942 else
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4944 $as_echo "no" >&6; }
4945 fi
4946
4947
4948 test -n "$ac_ct_CXX" && break
4949 done
4950
4951 if test "x$ac_ct_CXX" = x; then
4952 CXX="g++"
4953 else
4954 case $cross_compiling:$ac_tool_warned in
4955 yes:)
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4957 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4958 ac_tool_warned=yes ;;
4959 esac
4960 CXX=$ac_ct_CXX
4961 fi
4962 fi
4963
4964 fi
4965 fi
4966 # Provide some information about the compiler.
4967 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4968 set X $ac_compile
4969 ac_compiler=$2
4970 for ac_option in --version -v -V -qversion; do
4971 { { ac_try="$ac_compiler $ac_option >&5"
4972 case "(($ac_try" in
4973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4974 *) ac_try_echo=$ac_try;;
4975 esac
4976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4977 $as_echo "$ac_try_echo"; } >&5
4978 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4979 ac_status=$?
4980 if test -s conftest.err; then
4981 sed '10a\
4982 ... rest of stderr output deleted ...
4983 10q' conftest.err >conftest.er1
4984 cat conftest.er1 >&5
4985 fi
4986 rm -f conftest.er1 conftest.err
4987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4988 test $ac_status = 0; }
4989 done
4990
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4992 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4993 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4994 $as_echo_n "(cached) " >&6
4995 else
4996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4997 /* end confdefs.h. */
4998
4999 int
5000 main ()
5001 {
5002 #ifndef __GNUC__
5003 choke me
5004 #endif
5005
5006 ;
5007 return 0;
5008 }
5009 _ACEOF
5010 if ac_fn_cxx_try_compile "$LINENO"; then :
5011 ac_compiler_gnu=yes
5012 else
5013 ac_compiler_gnu=no
5014 fi
5015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5016 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5017
5018 fi
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5020 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5021 if test $ac_compiler_gnu = yes; then
5022 GXX=yes
5023 else
5024 GXX=
5025 fi
5026 ac_test_CXXFLAGS=${CXXFLAGS+set}
5027 ac_save_CXXFLAGS=$CXXFLAGS
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5029 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5030 if ${ac_cv_prog_cxx_g+:} false; then :
5031 $as_echo_n "(cached) " >&6
5032 else
5033 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5034 ac_cxx_werror_flag=yes
5035 ac_cv_prog_cxx_g=no
5036 CXXFLAGS="-g"
5037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5038 /* end confdefs.h. */
5039
5040 int
5041 main ()
5042 {
5043
5044 ;
5045 return 0;
5046 }
5047 _ACEOF
5048 if ac_fn_cxx_try_compile "$LINENO"; then :
5049 ac_cv_prog_cxx_g=yes
5050 else
5051 CXXFLAGS=""
5052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5053 /* end confdefs.h. */
5054
5055 int
5056 main ()
5057 {
5058
5059 ;
5060 return 0;
5061 }
5062 _ACEOF
5063 if ac_fn_cxx_try_compile "$LINENO"; then :
5064
5065 else
5066 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5067 CXXFLAGS="-g"
5068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5069 /* end confdefs.h. */
5070
5071 int
5072 main ()
5073 {
5074
5075 ;
5076 return 0;
5077 }
5078 _ACEOF
5079 if ac_fn_cxx_try_compile "$LINENO"; then :
5080 ac_cv_prog_cxx_g=yes
5081 fi
5082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5083 fi
5084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5085 fi
5086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5087 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5088 fi
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5090 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5091 if test "$ac_test_CXXFLAGS" = set; then
5092 CXXFLAGS=$ac_save_CXXFLAGS
5093 elif test $ac_cv_prog_cxx_g = yes; then
5094 if test "$GXX" = yes; then
5095 CXXFLAGS="-g -O2"
5096 else
5097 CXXFLAGS="-g"
5098 fi
5099 else
5100 if test "$GXX" = yes; then
5101 CXXFLAGS="-O2"
5102 else
5103 CXXFLAGS=
5104 fi
5105 fi
5106 ac_ext=cpp
5107 ac_cpp='$CXXCPP $CPPFLAGS'
5108 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5109 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5110 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5111
5112 depcc="$CXX" am_compiler_list=
5113
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5115 $as_echo_n "checking dependency style of $depcc... " >&6; }
5116 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5117 $as_echo_n "(cached) " >&6
5118 else
5119 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5120 # We make a subdir and do the tests there. Otherwise we can end up
5121 # making bogus files that we don't know about and never remove. For
5122 # instance it was reported that on HP-UX the gcc test will end up
5123 # making a dummy file named 'D' -- because '-MD' means "put the output
5124 # in D".
5125 rm -rf conftest.dir
5126 mkdir conftest.dir
5127 # Copy depcomp to subdir because otherwise we won't find it if we're
5128 # using a relative directory.
5129 cp "$am_depcomp" conftest.dir
5130 cd conftest.dir
5131 # We will build objects and dependencies in a subdirectory because
5132 # it helps to detect inapplicable dependency modes. For instance
5133 # both Tru64's cc and ICC support -MD to output dependencies as a
5134 # side effect of compilation, but ICC will put the dependencies in
5135 # the current directory while Tru64 will put them in the object
5136 # directory.
5137 mkdir sub
5138
5139 am_cv_CXX_dependencies_compiler_type=none
5140 if test "$am_compiler_list" = ""; then
5141 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5142 fi
5143 am__universal=false
5144 case " $depcc " in #(
5145 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5146 esac
5147
5148 for depmode in $am_compiler_list; do
5149 # Setup a source with many dependencies, because some compilers
5150 # like to wrap large dependency lists on column 80 (with \), and
5151 # we should not choose a depcomp mode which is confused by this.
5152 #
5153 # We need to recreate these files for each test, as the compiler may
5154 # overwrite some of them when testing with obscure command lines.
5155 # This happens at least with the AIX C compiler.
5156 : > sub/conftest.c
5157 for i in 1 2 3 4 5 6; do
5158 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5159 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5160 # Solaris 10 /bin/sh.
5161 echo '/* dummy */' > sub/conftst$i.h
5162 done
5163 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5164
5165 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5166 # mode. It turns out that the SunPro C++ compiler does not properly
5167 # handle '-M -o', and we need to detect this. Also, some Intel
5168 # versions had trouble with output in subdirs.
5169 am__obj=sub/conftest.${OBJEXT-o}
5170 am__minus_obj="-o $am__obj"
5171 case $depmode in
5172 gcc)
5173 # This depmode causes a compiler race in universal mode.
5174 test "$am__universal" = false || continue
5175 ;;
5176 nosideeffect)
5177 # After this tag, mechanisms are not by side-effect, so they'll
5178 # only be used when explicitly requested.
5179 if test "x$enable_dependency_tracking" = xyes; then
5180 continue
5181 else
5182 break
5183 fi
5184 ;;
5185 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5186 # This compiler won't grok '-c -o', but also, the minuso test has
5187 # not run yet. These depmodes are late enough in the game, and
5188 # so weak that their functioning should not be impacted.
5189 am__obj=conftest.${OBJEXT-o}
5190 am__minus_obj=
5191 ;;
5192 none) break ;;
5193 esac
5194 if depmode=$depmode \
5195 source=sub/conftest.c object=$am__obj \
5196 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5197 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5198 >/dev/null 2>conftest.err &&
5199 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5200 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5201 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5202 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5203 # icc doesn't choke on unknown options, it will just issue warnings
5204 # or remarks (even with -Werror). So we grep stderr for any message
5205 # that says an option was ignored or not supported.
5206 # When given -MP, icc 7.0 and 7.1 complain thusly:
5207 # icc: Command line warning: ignoring option '-M'; no argument required
5208 # The diagnosis changed in icc 8.0:
5209 # icc: Command line remark: option '-MP' not supported
5210 if (grep 'ignoring option' conftest.err ||
5211 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5212 am_cv_CXX_dependencies_compiler_type=$depmode
5213 break
5214 fi
5215 fi
5216 done
5217
5218 cd ..
5219 rm -rf conftest.dir
5220 else
5221 am_cv_CXX_dependencies_compiler_type=none
5222 fi
5223
5224 fi
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5226 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5227 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5228
5229 if
5230 test "x$enable_dependency_tracking" != xno \
5231 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5232 am__fastdepCXX_TRUE=
5233 am__fastdepCXX_FALSE='#'
5234 else
5235 am__fastdepCXX_TRUE='#'
5236 am__fastdepCXX_FALSE=
5237 fi
5238
5239
5240
5241 ac_ext=cpp
5242 ac_cpp='$CXXCPP $CPPFLAGS'
5243 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5244 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5245 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5247 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5248 if test -z "$CXXCPP"; then
5249 if ${ac_cv_prog_CXXCPP+:} false; then :
5250 $as_echo_n "(cached) " >&6
5251 else
5252 # Double quotes because CXXCPP needs to be expanded
5253 for CXXCPP in "$CXX -E" "/lib/cpp"
5254 do
5255 ac_preproc_ok=false
5256 for ac_cxx_preproc_warn_flag in '' yes
5257 do
5258 # Use a header file that comes with gcc, so configuring glibc
5259 # with a fresh cross-compiler works.
5260 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5261 # <limits.h> exists even on freestanding compilers.
5262 # On the NeXT, cc -E runs the code through the compiler's parser,
5263 # not just through cpp. "Syntax error" is here to catch this case.
5264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5265 /* end confdefs.h. */
5266 #ifdef __STDC__
5267 # include <limits.h>
5268 #else
5269 # include <assert.h>
5270 #endif
5271 Syntax error
5272 _ACEOF
5273 if ac_fn_cxx_try_cpp "$LINENO"; then :
5274
5275 else
5276 # Broken: fails on valid input.
5277 continue
5278 fi
5279 rm -f conftest.err conftest.i conftest.$ac_ext
5280
5281 # OK, works on sane cases. Now check whether nonexistent headers
5282 # can be detected and how.
5283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5284 /* end confdefs.h. */
5285 #include <ac_nonexistent.h>
5286 _ACEOF
5287 if ac_fn_cxx_try_cpp "$LINENO"; then :
5288 # Broken: success on invalid input.
5289 continue
5290 else
5291 # Passes both tests.
5292 ac_preproc_ok=:
5293 break
5294 fi
5295 rm -f conftest.err conftest.i conftest.$ac_ext
5296
5297 done
5298 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5299 rm -f conftest.i conftest.err conftest.$ac_ext
5300 if $ac_preproc_ok; then :
5301 break
5302 fi
5303
5304 done
5305 ac_cv_prog_CXXCPP=$CXXCPP
5306
5307 fi
5308 CXXCPP=$ac_cv_prog_CXXCPP
5309 else
5310 ac_cv_prog_CXXCPP=$CXXCPP
5311 fi
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5313 $as_echo "$CXXCPP" >&6; }
5314 ac_preproc_ok=false
5315 for ac_cxx_preproc_warn_flag in '' yes
5316 do
5317 # Use a header file that comes with gcc, so configuring glibc
5318 # with a fresh cross-compiler works.
5319 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5320 # <limits.h> exists even on freestanding compilers.
5321 # On the NeXT, cc -E runs the code through the compiler's parser,
5322 # not just through cpp. "Syntax error" is here to catch this case.
5323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5324 /* end confdefs.h. */
5325 #ifdef __STDC__
5326 # include <limits.h>
5327 #else
5328 # include <assert.h>
5329 #endif
5330 Syntax error
5331 _ACEOF
5332 if ac_fn_cxx_try_cpp "$LINENO"; then :
5333
5334 else
5335 # Broken: fails on valid input.
5336 continue
5337 fi
5338 rm -f conftest.err conftest.i conftest.$ac_ext
5339
5340 # OK, works on sane cases. Now check whether nonexistent headers
5341 # can be detected and how.
5342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5343 /* end confdefs.h. */
5344 #include <ac_nonexistent.h>
5345 _ACEOF
5346 if ac_fn_cxx_try_cpp "$LINENO"; then :
5347 # Broken: success on invalid input.
5348 continue
5349 else
5350 # Passes both tests.
5351 ac_preproc_ok=:
5352 break
5353 fi
5354 rm -f conftest.err conftest.i conftest.$ac_ext
5355
5356 done
5357 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5358 rm -f conftest.i conftest.err conftest.$ac_ext
5359 if $ac_preproc_ok; then :
5360
5361 else
5362 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5364 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5365 See \`config.log' for more details" "$LINENO" 5; }
5366 fi
5367
5368 ac_ext=cpp
5369 ac_cpp='$CXXCPP $CPPFLAGS'
5370 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5371 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5372 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5373
5374
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5376 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5377 if ${ac_cv_path_GREP+:} false; then :
5378 $as_echo_n "(cached) " >&6
5379 else
5380 if test -z "$GREP"; then
5381 ac_path_GREP_found=false
5382 # Loop through the user's path and test for each of PROGNAME-LIST
5383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5384 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5385 do
5386 IFS=$as_save_IFS
5387 test -z "$as_dir" && as_dir=.
5388 for ac_prog in grep ggrep; do
5389 for ac_exec_ext in '' $ac_executable_extensions; do
5390 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5391 as_fn_executable_p "$ac_path_GREP" || continue
5392 # Check for GNU ac_path_GREP and select it if it is found.
5393 # Check for GNU $ac_path_GREP
5394 case `"$ac_path_GREP" --version 2>&1` in
5395 *GNU*)
5396 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5397 *)
5398 ac_count=0
5399 $as_echo_n 0123456789 >"conftest.in"
5400 while :
5401 do
5402 cat "conftest.in" "conftest.in" >"conftest.tmp"
5403 mv "conftest.tmp" "conftest.in"
5404 cp "conftest.in" "conftest.nl"
5405 $as_echo 'GREP' >> "conftest.nl"
5406 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5407 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5408 as_fn_arith $ac_count + 1 && ac_count=$as_val
5409 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5410 # Best one so far, save it but keep looking for a better one
5411 ac_cv_path_GREP="$ac_path_GREP"
5412 ac_path_GREP_max=$ac_count
5413 fi
5414 # 10*(2^10) chars as input seems more than enough
5415 test $ac_count -gt 10 && break
5416 done
5417 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5418 esac
5419
5420 $ac_path_GREP_found && break 3
5421 done
5422 done
5423 done
5424 IFS=$as_save_IFS
5425 if test -z "$ac_cv_path_GREP"; then
5426 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5427 fi
5428 else
5429 ac_cv_path_GREP=$GREP
5430 fi
5431
5432 fi
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5434 $as_echo "$ac_cv_path_GREP" >&6; }
5435 GREP="$ac_cv_path_GREP"
5436
5437
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5439 $as_echo_n "checking for egrep... " >&6; }
5440 if ${ac_cv_path_EGREP+:} false; then :
5441 $as_echo_n "(cached) " >&6
5442 else
5443 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5444 then ac_cv_path_EGREP="$GREP -E"
5445 else
5446 if test -z "$EGREP"; then
5447 ac_path_EGREP_found=false
5448 # Loop through the user's path and test for each of PROGNAME-LIST
5449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5450 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5451 do
5452 IFS=$as_save_IFS
5453 test -z "$as_dir" && as_dir=.
5454 for ac_prog in egrep; do
5455 for ac_exec_ext in '' $ac_executable_extensions; do
5456 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5457 as_fn_executable_p "$ac_path_EGREP" || continue
5458 # Check for GNU ac_path_EGREP and select it if it is found.
5459 # Check for GNU $ac_path_EGREP
5460 case `"$ac_path_EGREP" --version 2>&1` in
5461 *GNU*)
5462 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5463 *)
5464 ac_count=0
5465 $as_echo_n 0123456789 >"conftest.in"
5466 while :
5467 do
5468 cat "conftest.in" "conftest.in" >"conftest.tmp"
5469 mv "conftest.tmp" "conftest.in"
5470 cp "conftest.in" "conftest.nl"
5471 $as_echo 'EGREP' >> "conftest.nl"
5472 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5473 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5474 as_fn_arith $ac_count + 1 && ac_count=$as_val
5475 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5476 # Best one so far, save it but keep looking for a better one
5477 ac_cv_path_EGREP="$ac_path_EGREP"
5478 ac_path_EGREP_max=$ac_count
5479 fi
5480 # 10*(2^10) chars as input seems more than enough
5481 test $ac_count -gt 10 && break
5482 done
5483 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5484 esac
5485
5486 $ac_path_EGREP_found && break 3
5487 done
5488 done
5489 done
5490 IFS=$as_save_IFS
5491 if test -z "$ac_cv_path_EGREP"; then
5492 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5493 fi
5494 else
5495 ac_cv_path_EGREP=$EGREP
5496 fi
5497
5498 fi
5499 fi
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5501 $as_echo "$ac_cv_path_EGREP" >&6; }
5502 EGREP="$ac_cv_path_EGREP"
5503
5504
5505
5506
5507 acl_libdirstem=lib
5508 acl_libdirstem2=
5509 case "$host_os" in
5510 solaris*)
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
5512 $as_echo_n "checking for 64-bit host... " >&6; }
5513 if ${gl_cv_solaris_64bit+:} false; then :
5514 $as_echo_n "(cached) " >&6
5515 else
5516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5517 /* end confdefs.h. */
5518
5519 #ifdef _LP64
5520 sixtyfour bits
5521 #endif
5522
5523 _ACEOF
5524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5525 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
5526 gl_cv_solaris_64bit=yes
5527 else
5528 gl_cv_solaris_64bit=no
5529 fi
5530 rm -f conftest*
5531
5532
5533 fi
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
5535 $as_echo "$gl_cv_solaris_64bit" >&6; }
5536 if test $gl_cv_solaris_64bit = yes; then
5537 acl_libdirstem=lib/64
5538 case "$host_cpu" in
5539 sparc*) acl_libdirstem2=lib/sparcv9 ;;
5540 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
5541 esac
5542 fi
5543 ;;
5544 *)
5545 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5546 if test -n "$searchpath"; then
5547 acl_save_IFS="${IFS= }"; IFS=":"
5548 for searchdir in $searchpath; do
5549 if test -d "$searchdir"; then
5550 case "$searchdir" in
5551 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
5552 */../ | */.. )
5553 # Better ignore directories of this form. They are misleading.
5554 ;;
5555 *) searchdir=`cd "$searchdir" && pwd`
5556 case "$searchdir" in
5557 */lib64 ) acl_libdirstem=lib64 ;;
5558 esac ;;
5559 esac
5560 fi
5561 done
5562 IFS="$acl_save_IFS"
5563 fi
5564 ;;
5565 esac
5566 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579 use_additional=yes
5580
5581 acl_save_prefix="$prefix"
5582 prefix="$acl_final_prefix"
5583 acl_save_exec_prefix="$exec_prefix"
5584 exec_prefix="$acl_final_exec_prefix"
5585
5586 eval additional_includedir=\"$includedir\"
5587 eval additional_libdir=\"$libdir\"
5588
5589 exec_prefix="$acl_save_exec_prefix"
5590 prefix="$acl_save_prefix"
5591
5592
5593 # Check whether --with-libiconv-prefix was given.
5594 if test "${with_libiconv_prefix+set}" = set; then :
5595 withval=$with_libiconv_prefix;
5596 if test "X$withval" = "Xno"; then
5597 use_additional=no
5598 else
5599 if test "X$withval" = "X"; then
5600
5601 acl_save_prefix="$prefix"
5602 prefix="$acl_final_prefix"
5603 acl_save_exec_prefix="$exec_prefix"
5604 exec_prefix="$acl_final_exec_prefix"
5605
5606 eval additional_includedir=\"$includedir\"
5607 eval additional_libdir=\"$libdir\"
5608
5609 exec_prefix="$acl_save_exec_prefix"
5610 prefix="$acl_save_prefix"
5611
5612 else
5613 additional_includedir="$withval/include"
5614 additional_libdir="$withval/$acl_libdirstem"
5615 if test "$acl_libdirstem2" != "$acl_libdirstem" \
5616 && ! test -d "$withval/$acl_libdirstem"; then
5617 additional_libdir="$withval/$acl_libdirstem2"
5618 fi
5619 fi
5620 fi
5621
5622 fi
5623
5624 LIBICONV=
5625 LTLIBICONV=
5626 INCICONV=
5627 LIBICONV_PREFIX=
5628 HAVE_LIBICONV=
5629 rpathdirs=
5630 ltrpathdirs=
5631 names_already_handled=
5632 names_next_round='iconv '
5633 while test -n "$names_next_round"; do
5634 names_this_round="$names_next_round"
5635 names_next_round=
5636 for name in $names_this_round; do
5637 already_handled=
5638 for n in $names_already_handled; do
5639 if test "$n" = "$name"; then
5640 already_handled=yes
5641 break
5642 fi
5643 done
5644 if test -z "$already_handled"; then
5645 names_already_handled="$names_already_handled $name"
5646 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
5647 eval value=\"\$HAVE_LIB$uppername\"
5648 if test -n "$value"; then
5649 if test "$value" = yes; then
5650 eval value=\"\$LIB$uppername\"
5651 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5652 eval value=\"\$LTLIB$uppername\"
5653 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5654 else
5655 :
5656 fi
5657 else
5658 found_dir=
5659 found_la=
5660 found_so=
5661 found_a=
5662 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
5663 if test -n "$acl_shlibext"; then
5664 shrext=".$acl_shlibext" # typically: shrext=.so
5665 else
5666 shrext=
5667 fi
5668 if test $use_additional = yes; then
5669 dir="$additional_libdir"
5670 if test -n "$acl_shlibext"; then
5671 if test -f "$dir/$libname$shrext"; then
5672 found_dir="$dir"
5673 found_so="$dir/$libname$shrext"
5674 else
5675 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5676 ver=`(cd "$dir" && \
5677 for f in "$libname$shrext".*; do echo "$f"; done \
5678 | sed -e "s,^$libname$shrext\\\\.,," \
5679 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5680 | sed 1q ) 2>/dev/null`
5681 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5682 found_dir="$dir"
5683 found_so="$dir/$libname$shrext.$ver"
5684 fi
5685 else
5686 eval library_names=\"$acl_library_names_spec\"
5687 for f in $library_names; do
5688 if test -f "$dir/$f"; then
5689 found_dir="$dir"
5690 found_so="$dir/$f"
5691 break
5692 fi
5693 done
5694 fi
5695 fi
5696 fi
5697 if test "X$found_dir" = "X"; then
5698 if test -f "$dir/$libname.$acl_libext"; then
5699 found_dir="$dir"
5700 found_a="$dir/$libname.$acl_libext"
5701 fi
5702 fi
5703 if test "X$found_dir" != "X"; then
5704 if test -f "$dir/$libname.la"; then
5705 found_la="$dir/$libname.la"
5706 fi
5707 fi
5708 fi
5709 if test "X$found_dir" = "X"; then
5710 for x in $LDFLAGS $LTLIBICONV; do
5711
5712 acl_save_prefix="$prefix"
5713 prefix="$acl_final_prefix"
5714 acl_save_exec_prefix="$exec_prefix"
5715 exec_prefix="$acl_final_exec_prefix"
5716 eval x=\"$x\"
5717 exec_prefix="$acl_save_exec_prefix"
5718 prefix="$acl_save_prefix"
5719
5720 case "$x" in
5721 -L*)
5722 dir=`echo "X$x" | sed -e 's/^X-L//'`
5723 if test -n "$acl_shlibext"; then
5724 if test -f "$dir/$libname$shrext"; then
5725 found_dir="$dir"
5726 found_so="$dir/$libname$shrext"
5727 else
5728 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5729 ver=`(cd "$dir" && \
5730 for f in "$libname$shrext".*; do echo "$f"; done \
5731 | sed -e "s,^$libname$shrext\\\\.,," \
5732 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5733 | sed 1q ) 2>/dev/null`
5734 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5735 found_dir="$dir"
5736 found_so="$dir/$libname$shrext.$ver"
5737 fi
5738 else
5739 eval library_names=\"$acl_library_names_spec\"
5740 for f in $library_names; do
5741 if test -f "$dir/$f"; then
5742 found_dir="$dir"
5743 found_so="$dir/$f"
5744 break
5745 fi
5746 done
5747 fi
5748 fi
5749 fi
5750 if test "X$found_dir" = "X"; then
5751 if test -f "$dir/$libname.$acl_libext"; then
5752 found_dir="$dir"
5753 found_a="$dir/$libname.$acl_libext"
5754 fi
5755 fi
5756 if test "X$found_dir" != "X"; then
5757 if test -f "$dir/$libname.la"; then
5758 found_la="$dir/$libname.la"
5759 fi
5760 fi
5761 ;;
5762 esac
5763 if test "X$found_dir" != "X"; then
5764 break
5765 fi
5766 done
5767 fi
5768 if test "X$found_dir" != "X"; then
5769 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5770 if test "X$found_so" != "X"; then
5771 if test "$enable_rpath" = no \
5772 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
5773 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
5774 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5775 else
5776 haveit=
5777 for x in $ltrpathdirs; do
5778 if test "X$x" = "X$found_dir"; then
5779 haveit=yes
5780 break
5781 fi
5782 done
5783 if test -z "$haveit"; then
5784 ltrpathdirs="$ltrpathdirs $found_dir"
5785 fi
5786 if test "$acl_hardcode_direct" = yes; then
5787 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5788 else
5789 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5790 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5791 haveit=
5792 for x in $rpathdirs; do
5793 if test "X$x" = "X$found_dir"; then
5794 haveit=yes
5795 break
5796 fi
5797 done
5798 if test -z "$haveit"; then
5799 rpathdirs="$rpathdirs $found_dir"
5800 fi
5801 else
5802 haveit=
5803 for x in $LDFLAGS $LIBICONV; do
5804
5805 acl_save_prefix="$prefix"
5806 prefix="$acl_final_prefix"
5807 acl_save_exec_prefix="$exec_prefix"
5808 exec_prefix="$acl_final_exec_prefix"
5809 eval x=\"$x\"
5810 exec_prefix="$acl_save_exec_prefix"
5811 prefix="$acl_save_prefix"
5812
5813 if test "X$x" = "X-L$found_dir"; then
5814 haveit=yes
5815 break
5816 fi
5817 done
5818 if test -z "$haveit"; then
5819 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5820 fi
5821 if test "$acl_hardcode_minus_L" != no; then
5822 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5823 else
5824 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5825 fi
5826 fi
5827 fi
5828 fi
5829 else
5830 if test "X$found_a" != "X"; then
5831 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5832 else
5833 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5834 fi
5835 fi
5836 additional_includedir=
5837 case "$found_dir" in
5838 */$acl_libdirstem | */$acl_libdirstem/)
5839 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5840 if test "$name" = 'iconv'; then
5841 LIBICONV_PREFIX="$basedir"
5842 fi
5843 additional_includedir="$basedir/include"
5844 ;;
5845 */$acl_libdirstem2 | */$acl_libdirstem2/)
5846 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
5847 if test "$name" = 'iconv'; then
5848 LIBICONV_PREFIX="$basedir"
5849 fi
5850 additional_includedir="$basedir/include"
5851 ;;
5852 esac
5853 if test "X$additional_includedir" != "X"; then
5854 if test "X$additional_includedir" != "X/usr/include"; then
5855 haveit=
5856 if test "X$additional_includedir" = "X/usr/local/include"; then
5857 if test -n "$GCC"; then
5858 case $host_os in
5859 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5860 esac
5861 fi
5862 fi
5863 if test -z "$haveit"; then
5864 for x in $CPPFLAGS $INCICONV; do
5865
5866 acl_save_prefix="$prefix"
5867 prefix="$acl_final_prefix"
5868 acl_save_exec_prefix="$exec_prefix"
5869 exec_prefix="$acl_final_exec_prefix"
5870 eval x=\"$x\"
5871 exec_prefix="$acl_save_exec_prefix"
5872 prefix="$acl_save_prefix"
5873
5874 if test "X$x" = "X-I$additional_includedir"; then
5875 haveit=yes
5876 break
5877 fi
5878 done
5879 if test -z "$haveit"; then
5880 if test -d "$additional_includedir"; then
5881 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5882 fi
5883 fi
5884 fi
5885 fi
5886 fi
5887 if test -n "$found_la"; then
5888 save_libdir="$libdir"
5889 case "$found_la" in
5890 */* | *\\*) . "$found_la" ;;
5891 *) . "./$found_la" ;;
5892 esac
5893 libdir="$save_libdir"
5894 for dep in $dependency_libs; do
5895 case "$dep" in
5896 -L*)
5897 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5898 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
5899 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5900 haveit=
5901 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
5902 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5903 if test -n "$GCC"; then
5904 case $host_os in
5905 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5906 esac
5907 fi
5908 fi
5909 if test -z "$haveit"; then
5910 haveit=
5911 for x in $LDFLAGS $LIBICONV; do
5912
5913 acl_save_prefix="$prefix"
5914 prefix="$acl_final_prefix"
5915 acl_save_exec_prefix="$exec_prefix"
5916 exec_prefix="$acl_final_exec_prefix"
5917 eval x=\"$x\"
5918 exec_prefix="$acl_save_exec_prefix"
5919 prefix="$acl_save_prefix"
5920
5921 if test "X$x" = "X-L$additional_libdir"; then
5922 haveit=yes
5923 break
5924 fi
5925 done
5926 if test -z "$haveit"; then
5927 if test -d "$additional_libdir"; then
5928 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5929 fi
5930 fi
5931 haveit=
5932 for x in $LDFLAGS $LTLIBICONV; do
5933
5934 acl_save_prefix="$prefix"
5935 prefix="$acl_final_prefix"
5936 acl_save_exec_prefix="$exec_prefix"
5937 exec_prefix="$acl_final_exec_prefix"
5938 eval x=\"$x\"
5939 exec_prefix="$acl_save_exec_prefix"
5940 prefix="$acl_save_prefix"
5941
5942 if test "X$x" = "X-L$additional_libdir"; then
5943 haveit=yes
5944 break
5945 fi
5946 done
5947 if test -z "$haveit"; then
5948 if test -d "$additional_libdir"; then
5949 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5950 fi
5951 fi
5952 fi
5953 fi
5954 ;;
5955 -R*)
5956 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5957 if test "$enable_rpath" != no; then
5958 haveit=
5959 for x in $rpathdirs; do
5960 if test "X$x" = "X$dir"; then
5961 haveit=yes
5962 break
5963 fi
5964 done
5965 if test -z "$haveit"; then
5966 rpathdirs="$rpathdirs $dir"
5967 fi
5968 haveit=
5969 for x in $ltrpathdirs; do
5970 if test "X$x" = "X$dir"; then
5971 haveit=yes
5972 break
5973 fi
5974 done
5975 if test -z "$haveit"; then
5976 ltrpathdirs="$ltrpathdirs $dir"
5977 fi
5978 fi
5979 ;;
5980 -l*)
5981 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5982 ;;
5983 *.la)
5984 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5985 ;;
5986 *)
5987 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5988 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5989 ;;
5990 esac
5991 done
5992 fi
5993 else
5994 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5995 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5996 fi
5997 fi
5998 fi
5999 done
6000 done
6001 if test "X$rpathdirs" != "X"; then
6002 if test -n "$acl_hardcode_libdir_separator"; then
6003 alldirs=
6004 for found_dir in $rpathdirs; do
6005 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6006 done
6007 acl_save_libdir="$libdir"
6008 libdir="$alldirs"
6009 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6010 libdir="$acl_save_libdir"
6011 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6012 else
6013 for found_dir in $rpathdirs; do
6014 acl_save_libdir="$libdir"
6015 libdir="$found_dir"
6016 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6017 libdir="$acl_save_libdir"
6018 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6019 done
6020 fi
6021 fi
6022 if test "X$ltrpathdirs" != "X"; then
6023 for found_dir in $ltrpathdirs; do
6024 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6025 done
6026 fi
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
6059 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
6060 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
6061 $as_echo_n "(cached) " >&6
6062 else
6063 gt_save_LIBS="$LIBS"
6064 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6066 /* end confdefs.h. */
6067 #include <CoreFoundation/CFPreferences.h>
6068 int
6069 main ()
6070 {
6071 CFPreferencesCopyAppValue(NULL, NULL)
6072 ;
6073 return 0;
6074 }
6075 _ACEOF
6076 if ac_fn_cxx_try_link "$LINENO"; then :
6077 gt_cv_func_CFPreferencesCopyAppValue=yes
6078 else
6079 gt_cv_func_CFPreferencesCopyAppValue=no
6080 fi
6081 rm -f core conftest.err conftest.$ac_objext \
6082 conftest$ac_exeext conftest.$ac_ext
6083 LIBS="$gt_save_LIBS"
6084 fi
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6086 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6087 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6088
6089 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
6090
6091 fi
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
6093 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
6094 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
6095 $as_echo_n "(cached) " >&6
6096 else
6097 gt_save_LIBS="$LIBS"
6098 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6100 /* end confdefs.h. */
6101 #include <CoreFoundation/CFLocale.h>
6102 int
6103 main ()
6104 {
6105 CFLocaleCopyCurrent();
6106 ;
6107 return 0;
6108 }
6109 _ACEOF
6110 if ac_fn_cxx_try_link "$LINENO"; then :
6111 gt_cv_func_CFLocaleCopyCurrent=yes
6112 else
6113 gt_cv_func_CFLocaleCopyCurrent=no
6114 fi
6115 rm -f core conftest.err conftest.$ac_objext \
6116 conftest$ac_exeext conftest.$ac_ext
6117 LIBS="$gt_save_LIBS"
6118 fi
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6120 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6121 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6122
6123 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
6124
6125 fi
6126 INTL_MACOSX_LIBS=
6127 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6128 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6129 fi
6130
6131
6132
6133
6134
6135
6136 LIBINTL=
6137 LTLIBINTL=
6138 POSUB=
6139
6140 case " $gt_needs " in
6141 *" need-formatstring-macros "*) gt_api_version=3 ;;
6142 *" need-ngettext "*) gt_api_version=2 ;;
6143 *) gt_api_version=1 ;;
6144 esac
6145 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
6146 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
6147
6148 if test "$USE_NLS" = "yes"; then
6149 gt_use_preinstalled_gnugettext=no
6150
6151
6152 if test $gt_api_version -ge 3; then
6153 gt_revision_test_code='
6154 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6155 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
6156 #endif
6157 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
6158 '
6159 else
6160 gt_revision_test_code=
6161 fi
6162 if test $gt_api_version -ge 2; then
6163 gt_expression_test_code=' + * ngettext ("", "", 0)'
6164 else
6165 gt_expression_test_code=
6166 fi
6167
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
6169 $as_echo_n "checking for GNU gettext in libc... " >&6; }
6170 if eval \${$gt_func_gnugettext_libc+:} false; then :
6171 $as_echo_n "(cached) " >&6
6172 else
6173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6174 /* end confdefs.h. */
6175
6176 #include <libintl.h>
6177 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6178 extern int _nl_msg_cat_cntr;
6179 extern int *_nl_domain_bindings;
6180 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
6181 #else
6182 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
6183 #endif
6184 $gt_revision_test_code
6185
6186 int
6187 main ()
6188 {
6189
6190 bindtextdomain ("", "");
6191 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
6192
6193 ;
6194 return 0;
6195 }
6196 _ACEOF
6197 if ac_fn_cxx_try_link "$LINENO"; then :
6198 eval "$gt_func_gnugettext_libc=yes"
6199 else
6200 eval "$gt_func_gnugettext_libc=no"
6201 fi
6202 rm -f core conftest.err conftest.$ac_objext \
6203 conftest$ac_exeext conftest.$ac_ext
6204 fi
6205 eval ac_res=\$$gt_func_gnugettext_libc
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6207 $as_echo "$ac_res" >&6; }
6208
6209 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
6210
6211
6212
6213
6214
6215 am_save_CPPFLAGS="$CPPFLAGS"
6216
6217 for element in $INCICONV; do
6218 haveit=
6219 for x in $CPPFLAGS; do
6220
6221 acl_save_prefix="$prefix"
6222 prefix="$acl_final_prefix"
6223 acl_save_exec_prefix="$exec_prefix"
6224 exec_prefix="$acl_final_exec_prefix"
6225 eval x=\"$x\"
6226 exec_prefix="$acl_save_exec_prefix"
6227 prefix="$acl_save_prefix"
6228
6229 if test "X$x" = "X$element"; then
6230 haveit=yes
6231 break
6232 fi
6233 done
6234 if test -z "$haveit"; then
6235 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6236 fi
6237 done
6238
6239
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6241 $as_echo_n "checking for iconv... " >&6; }
6242 if ${am_cv_func_iconv+:} false; then :
6243 $as_echo_n "(cached) " >&6
6244 else
6245
6246 am_cv_func_iconv="no, consider installing GNU libiconv"
6247 am_cv_lib_iconv=no
6248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6249 /* end confdefs.h. */
6250
6251 #include <stdlib.h>
6252 #include <iconv.h>
6253
6254 int
6255 main ()
6256 {
6257 iconv_t cd = iconv_open("","");
6258 iconv(cd,NULL,NULL,NULL,NULL);
6259 iconv_close(cd);
6260 ;
6261 return 0;
6262 }
6263 _ACEOF
6264 if ac_fn_cxx_try_link "$LINENO"; then :
6265 am_cv_func_iconv=yes
6266 fi
6267 rm -f core conftest.err conftest.$ac_objext \
6268 conftest$ac_exeext conftest.$ac_ext
6269 if test "$am_cv_func_iconv" != yes; then
6270 am_save_LIBS="$LIBS"
6271 LIBS="$LIBS $LIBICONV"
6272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6273 /* end confdefs.h. */
6274
6275 #include <stdlib.h>
6276 #include <iconv.h>
6277
6278 int
6279 main ()
6280 {
6281 iconv_t cd = iconv_open("","");
6282 iconv(cd,NULL,NULL,NULL,NULL);
6283 iconv_close(cd);
6284 ;
6285 return 0;
6286 }
6287 _ACEOF
6288 if ac_fn_cxx_try_link "$LINENO"; then :
6289 am_cv_lib_iconv=yes
6290 am_cv_func_iconv=yes
6291 fi
6292 rm -f core conftest.err conftest.$ac_objext \
6293 conftest$ac_exeext conftest.$ac_ext
6294 LIBS="$am_save_LIBS"
6295 fi
6296
6297 fi
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6299 $as_echo "$am_cv_func_iconv" >&6; }
6300 if test "$am_cv_func_iconv" = yes; then
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
6302 $as_echo_n "checking for working iconv... " >&6; }
6303 if ${am_cv_func_iconv_works+:} false; then :
6304 $as_echo_n "(cached) " >&6
6305 else
6306
6307 am_save_LIBS="$LIBS"
6308 if test $am_cv_lib_iconv = yes; then
6309 LIBS="$LIBS $LIBICONV"
6310 fi
6311 am_cv_func_iconv_works=no
6312 for ac_iconv_const in '' 'const'; do
6313 if test "$cross_compiling" = yes; then :
6314 case "$host_os" in
6315 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
6316 *) am_cv_func_iconv_works="guessing yes" ;;
6317 esac
6318 else
6319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6320 /* end confdefs.h. */
6321
6322 #include <iconv.h>
6323 #include <string.h>
6324
6325 #ifndef ICONV_CONST
6326 # define ICONV_CONST $ac_iconv_const
6327 #endif
6328
6329 int
6330 main ()
6331 {
6332 int result = 0;
6333 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
6334 returns. */
6335 {
6336 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
6337 if (cd_utf8_to_88591 != (iconv_t)(-1))
6338 {
6339 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
6340 char buf[10];
6341 ICONV_CONST char *inptr = input;
6342 size_t inbytesleft = strlen (input);
6343 char *outptr = buf;
6344 size_t outbytesleft = sizeof (buf);
6345 size_t res = iconv (cd_utf8_to_88591,
6346 &inptr, &inbytesleft,
6347 &outptr, &outbytesleft);
6348 if (res == 0)
6349 result |= 1;
6350 iconv_close (cd_utf8_to_88591);
6351 }
6352 }
6353 /* Test against Solaris 10 bug: Failures are not distinguishable from
6354 successful returns. */
6355 {
6356 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
6357 if (cd_ascii_to_88591 != (iconv_t)(-1))
6358 {
6359 static ICONV_CONST char input[] = "\263";
6360 char buf[10];
6361 ICONV_CONST char *inptr = input;
6362 size_t inbytesleft = strlen (input);
6363 char *outptr = buf;
6364 size_t outbytesleft = sizeof (buf);
6365 size_t res = iconv (cd_ascii_to_88591,
6366 &inptr, &inbytesleft,
6367 &outptr, &outbytesleft);
6368 if (res == 0)
6369 result |= 2;
6370 iconv_close (cd_ascii_to_88591);
6371 }
6372 }
6373 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
6374 {
6375 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
6376 if (cd_88591_to_utf8 != (iconv_t)(-1))
6377 {
6378 static ICONV_CONST char input[] = "\304";
6379 static char buf[2] = { (char)0xDE, (char)0xAD };
6380 ICONV_CONST char *inptr = input;
6381 size_t inbytesleft = 1;
6382 char *outptr = buf;
6383 size_t outbytesleft = 1;
6384 size_t res = iconv (cd_88591_to_utf8,
6385 &inptr, &inbytesleft,
6386 &outptr, &outbytesleft);
6387 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
6388 result |= 4;
6389 iconv_close (cd_88591_to_utf8);
6390 }
6391 }
6392 #if 0 /* This bug could be worked around by the caller. */
6393 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
6394 {
6395 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
6396 if (cd_88591_to_utf8 != (iconv_t)(-1))
6397 {
6398 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
6399 char buf[50];
6400 ICONV_CONST char *inptr = input;
6401 size_t inbytesleft = strlen (input);
6402 char *outptr = buf;
6403 size_t outbytesleft = sizeof (buf);
6404 size_t res = iconv (cd_88591_to_utf8,
6405 &inptr, &inbytesleft,
6406 &outptr, &outbytesleft);
6407 if ((int)res > 0)
6408 result |= 8;
6409 iconv_close (cd_88591_to_utf8);
6410 }
6411 }
6412 #endif
6413 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
6414 provided. */
6415 if (/* Try standardized names. */
6416 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
6417 /* Try IRIX, OSF/1 names. */
6418 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
6419 /* Try AIX names. */
6420 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
6421 /* Try HP-UX names. */
6422 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
6423 result |= 16;
6424 return result;
6425
6426 ;
6427 return 0;
6428 }
6429 _ACEOF
6430 if ac_fn_cxx_try_run "$LINENO"; then :
6431 am_cv_func_iconv_works=yes
6432 fi
6433 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6434 conftest.$ac_objext conftest.beam conftest.$ac_ext
6435 fi
6436
6437 test "$am_cv_func_iconv_works" = no || break
6438 done
6439 LIBS="$am_save_LIBS"
6440
6441 fi
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
6443 $as_echo "$am_cv_func_iconv_works" >&6; }
6444 case "$am_cv_func_iconv_works" in
6445 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
6446 *) am_func_iconv=yes ;;
6447 esac
6448 else
6449 am_func_iconv=no am_cv_lib_iconv=no
6450 fi
6451 if test "$am_func_iconv" = yes; then
6452
6453 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
6454
6455 fi
6456 if test "$am_cv_lib_iconv" = yes; then
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
6458 $as_echo_n "checking how to link with libiconv... " >&6; }
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
6460 $as_echo "$LIBICONV" >&6; }
6461 else
6462 CPPFLAGS="$am_save_CPPFLAGS"
6463 LIBICONV=
6464 LTLIBICONV=
6465 fi
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477 use_additional=yes
6478
6479 acl_save_prefix="$prefix"
6480 prefix="$acl_final_prefix"
6481 acl_save_exec_prefix="$exec_prefix"
6482 exec_prefix="$acl_final_exec_prefix"
6483
6484 eval additional_includedir=\"$includedir\"
6485 eval additional_libdir=\"$libdir\"
6486
6487 exec_prefix="$acl_save_exec_prefix"
6488 prefix="$acl_save_prefix"
6489
6490
6491 # Check whether --with-libintl-prefix was given.
6492 if test "${with_libintl_prefix+set}" = set; then :
6493 withval=$with_libintl_prefix;
6494 if test "X$withval" = "Xno"; then
6495 use_additional=no
6496 else
6497 if test "X$withval" = "X"; then
6498
6499 acl_save_prefix="$prefix"
6500 prefix="$acl_final_prefix"
6501 acl_save_exec_prefix="$exec_prefix"
6502 exec_prefix="$acl_final_exec_prefix"
6503
6504 eval additional_includedir=\"$includedir\"
6505 eval additional_libdir=\"$libdir\"
6506
6507 exec_prefix="$acl_save_exec_prefix"
6508 prefix="$acl_save_prefix"
6509
6510 else
6511 additional_includedir="$withval/include"
6512 additional_libdir="$withval/$acl_libdirstem"
6513 if test "$acl_libdirstem2" != "$acl_libdirstem" \
6514 && ! test -d "$withval/$acl_libdirstem"; then
6515 additional_libdir="$withval/$acl_libdirstem2"
6516 fi
6517 fi
6518 fi
6519
6520 fi
6521
6522 LIBINTL=
6523 LTLIBINTL=
6524 INCINTL=
6525 LIBINTL_PREFIX=
6526 HAVE_LIBINTL=
6527 rpathdirs=
6528 ltrpathdirs=
6529 names_already_handled=
6530 names_next_round='intl '
6531 while test -n "$names_next_round"; do
6532 names_this_round="$names_next_round"
6533 names_next_round=
6534 for name in $names_this_round; do
6535 already_handled=
6536 for n in $names_already_handled; do
6537 if test "$n" = "$name"; then
6538 already_handled=yes
6539 break
6540 fi
6541 done
6542 if test -z "$already_handled"; then
6543 names_already_handled="$names_already_handled $name"
6544 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
6545 eval value=\"\$HAVE_LIB$uppername\"
6546 if test -n "$value"; then
6547 if test "$value" = yes; then
6548 eval value=\"\$LIB$uppername\"
6549 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6550 eval value=\"\$LTLIB$uppername\"
6551 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6552 else
6553 :
6554 fi
6555 else
6556 found_dir=
6557 found_la=
6558 found_so=
6559 found_a=
6560 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
6561 if test -n "$acl_shlibext"; then
6562 shrext=".$acl_shlibext" # typically: shrext=.so
6563 else
6564 shrext=
6565 fi
6566 if test $use_additional = yes; then
6567 dir="$additional_libdir"
6568 if test -n "$acl_shlibext"; then
6569 if test -f "$dir/$libname$shrext"; then
6570 found_dir="$dir"
6571 found_so="$dir/$libname$shrext"
6572 else
6573 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6574 ver=`(cd "$dir" && \
6575 for f in "$libname$shrext".*; do echo "$f"; done \
6576 | sed -e "s,^$libname$shrext\\\\.,," \
6577 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6578 | sed 1q ) 2>/dev/null`
6579 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6580 found_dir="$dir"
6581 found_so="$dir/$libname$shrext.$ver"
6582 fi
6583 else
6584 eval library_names=\"$acl_library_names_spec\"
6585 for f in $library_names; do
6586 if test -f "$dir/$f"; then
6587 found_dir="$dir"
6588 found_so="$dir/$f"
6589 break
6590 fi
6591 done
6592 fi
6593 fi
6594 fi
6595 if test "X$found_dir" = "X"; then
6596 if test -f "$dir/$libname.$acl_libext"; then
6597 found_dir="$dir"
6598 found_a="$dir/$libname.$acl_libext"
6599 fi
6600 fi
6601 if test "X$found_dir" != "X"; then
6602 if test -f "$dir/$libname.la"; then
6603 found_la="$dir/$libname.la"
6604 fi
6605 fi
6606 fi
6607 if test "X$found_dir" = "X"; then
6608 for x in $LDFLAGS $LTLIBINTL; do
6609
6610 acl_save_prefix="$prefix"
6611 prefix="$acl_final_prefix"
6612 acl_save_exec_prefix="$exec_prefix"
6613 exec_prefix="$acl_final_exec_prefix"
6614 eval x=\"$x\"
6615 exec_prefix="$acl_save_exec_prefix"
6616 prefix="$acl_save_prefix"
6617
6618 case "$x" in
6619 -L*)
6620 dir=`echo "X$x" | sed -e 's/^X-L//'`
6621 if test -n "$acl_shlibext"; then
6622 if test -f "$dir/$libname$shrext"; then
6623 found_dir="$dir"
6624 found_so="$dir/$libname$shrext"
6625 else
6626 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6627 ver=`(cd "$dir" && \
6628 for f in "$libname$shrext".*; do echo "$f"; done \
6629 | sed -e "s,^$libname$shrext\\\\.,," \
6630 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6631 | sed 1q ) 2>/dev/null`
6632 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6633 found_dir="$dir"
6634 found_so="$dir/$libname$shrext.$ver"
6635 fi
6636 else
6637 eval library_names=\"$acl_library_names_spec\"
6638 for f in $library_names; do
6639 if test -f "$dir/$f"; then
6640 found_dir="$dir"
6641 found_so="$dir/$f"
6642 break
6643 fi
6644 done
6645 fi
6646 fi
6647 fi
6648 if test "X$found_dir" = "X"; then
6649 if test -f "$dir/$libname.$acl_libext"; then
6650 found_dir="$dir"
6651 found_a="$dir/$libname.$acl_libext"
6652 fi
6653 fi
6654 if test "X$found_dir" != "X"; then
6655 if test -f "$dir/$libname.la"; then
6656 found_la="$dir/$libname.la"
6657 fi
6658 fi
6659 ;;
6660 esac
6661 if test "X$found_dir" != "X"; then
6662 break
6663 fi
6664 done
6665 fi
6666 if test "X$found_dir" != "X"; then
6667 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6668 if test "X$found_so" != "X"; then
6669 if test "$enable_rpath" = no \
6670 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6671 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6672 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6673 else
6674 haveit=
6675 for x in $ltrpathdirs; do
6676 if test "X$x" = "X$found_dir"; then
6677 haveit=yes
6678 break
6679 fi
6680 done
6681 if test -z "$haveit"; then
6682 ltrpathdirs="$ltrpathdirs $found_dir"
6683 fi
6684 if test "$acl_hardcode_direct" = yes; then
6685 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6686 else
6687 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6688 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6689 haveit=
6690 for x in $rpathdirs; do
6691 if test "X$x" = "X$found_dir"; then
6692 haveit=yes
6693 break
6694 fi
6695 done
6696 if test -z "$haveit"; then
6697 rpathdirs="$rpathdirs $found_dir"
6698 fi
6699 else
6700 haveit=
6701 for x in $LDFLAGS $LIBINTL; do
6702
6703 acl_save_prefix="$prefix"
6704 prefix="$acl_final_prefix"
6705 acl_save_exec_prefix="$exec_prefix"
6706 exec_prefix="$acl_final_exec_prefix"
6707 eval x=\"$x\"
6708 exec_prefix="$acl_save_exec_prefix"
6709 prefix="$acl_save_prefix"
6710
6711 if test "X$x" = "X-L$found_dir"; then
6712 haveit=yes
6713 break
6714 fi
6715 done
6716 if test -z "$haveit"; then
6717 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6718 fi
6719 if test "$acl_hardcode_minus_L" != no; then
6720 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6721 else
6722 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6723 fi
6724 fi
6725 fi
6726 fi
6727 else
6728 if test "X$found_a" != "X"; then
6729 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6730 else
6731 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6732 fi
6733 fi
6734 additional_includedir=
6735 case "$found_dir" in
6736 */$acl_libdirstem | */$acl_libdirstem/)
6737 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6738 if test "$name" = 'intl'; then
6739 LIBINTL_PREFIX="$basedir"
6740 fi
6741 additional_includedir="$basedir/include"
6742 ;;
6743 */$acl_libdirstem2 | */$acl_libdirstem2/)
6744 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6745 if test "$name" = 'intl'; then
6746 LIBINTL_PREFIX="$basedir"
6747 fi
6748 additional_includedir="$basedir/include"
6749 ;;
6750 esac
6751 if test "X$additional_includedir" != "X"; then
6752 if test "X$additional_includedir" != "X/usr/include"; then
6753 haveit=
6754 if test "X$additional_includedir" = "X/usr/local/include"; then
6755 if test -n "$GCC"; then
6756 case $host_os in
6757 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6758 esac
6759 fi
6760 fi
6761 if test -z "$haveit"; then
6762 for x in $CPPFLAGS $INCINTL; do
6763
6764 acl_save_prefix="$prefix"
6765 prefix="$acl_final_prefix"
6766 acl_save_exec_prefix="$exec_prefix"
6767 exec_prefix="$acl_final_exec_prefix"
6768 eval x=\"$x\"
6769 exec_prefix="$acl_save_exec_prefix"
6770 prefix="$acl_save_prefix"
6771
6772 if test "X$x" = "X-I$additional_includedir"; then
6773 haveit=yes
6774 break
6775 fi
6776 done
6777 if test -z "$haveit"; then
6778 if test -d "$additional_includedir"; then
6779 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6780 fi
6781 fi
6782 fi
6783 fi
6784 fi
6785 if test -n "$found_la"; then
6786 save_libdir="$libdir"
6787 case "$found_la" in
6788 */* | *\\*) . "$found_la" ;;
6789 *) . "./$found_la" ;;
6790 esac
6791 libdir="$save_libdir"
6792 for dep in $dependency_libs; do
6793 case "$dep" in
6794 -L*)
6795 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6796 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6797 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6798 haveit=
6799 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6800 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6801 if test -n "$GCC"; then
6802 case $host_os in
6803 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6804 esac
6805 fi
6806 fi
6807 if test -z "$haveit"; then
6808 haveit=
6809 for x in $LDFLAGS $LIBINTL; do
6810
6811 acl_save_prefix="$prefix"
6812 prefix="$acl_final_prefix"
6813 acl_save_exec_prefix="$exec_prefix"
6814 exec_prefix="$acl_final_exec_prefix"
6815 eval x=\"$x\"
6816 exec_prefix="$acl_save_exec_prefix"
6817 prefix="$acl_save_prefix"
6818
6819 if test "X$x" = "X-L$additional_libdir"; then
6820 haveit=yes
6821 break
6822 fi
6823 done
6824 if test -z "$haveit"; then
6825 if test -d "$additional_libdir"; then
6826 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6827 fi
6828 fi
6829 haveit=
6830 for x in $LDFLAGS $LTLIBINTL; do
6831
6832 acl_save_prefix="$prefix"
6833 prefix="$acl_final_prefix"
6834 acl_save_exec_prefix="$exec_prefix"
6835 exec_prefix="$acl_final_exec_prefix"
6836 eval x=\"$x\"
6837 exec_prefix="$acl_save_exec_prefix"
6838 prefix="$acl_save_prefix"
6839
6840 if test "X$x" = "X-L$additional_libdir"; then
6841 haveit=yes
6842 break
6843 fi
6844 done
6845 if test -z "$haveit"; then
6846 if test -d "$additional_libdir"; then
6847 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6848 fi
6849 fi
6850 fi
6851 fi
6852 ;;
6853 -R*)
6854 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6855 if test "$enable_rpath" != no; then
6856 haveit=
6857 for x in $rpathdirs; do
6858 if test "X$x" = "X$dir"; then
6859 haveit=yes
6860 break
6861 fi
6862 done
6863 if test -z "$haveit"; then
6864 rpathdirs="$rpathdirs $dir"
6865 fi
6866 haveit=
6867 for x in $ltrpathdirs; do
6868 if test "X$x" = "X$dir"; then
6869 haveit=yes
6870 break
6871 fi
6872 done
6873 if test -z "$haveit"; then
6874 ltrpathdirs="$ltrpathdirs $dir"
6875 fi
6876 fi
6877 ;;
6878 -l*)
6879 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6880 ;;
6881 *.la)
6882 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6883 ;;
6884 *)
6885 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6886 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6887 ;;
6888 esac
6889 done
6890 fi
6891 else
6892 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6893 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6894 fi
6895 fi
6896 fi
6897 done
6898 done
6899 if test "X$rpathdirs" != "X"; then
6900 if test -n "$acl_hardcode_libdir_separator"; then
6901 alldirs=
6902 for found_dir in $rpathdirs; do
6903 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6904 done
6905 acl_save_libdir="$libdir"
6906 libdir="$alldirs"
6907 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6908 libdir="$acl_save_libdir"
6909 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6910 else
6911 for found_dir in $rpathdirs; do
6912 acl_save_libdir="$libdir"
6913 libdir="$found_dir"
6914 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6915 libdir="$acl_save_libdir"
6916 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6917 done
6918 fi
6919 fi
6920 if test "X$ltrpathdirs" != "X"; then
6921 for found_dir in $ltrpathdirs; do
6922 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6923 done
6924 fi
6925
6926
6927
6928
6929
6930
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
6932 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
6933 if eval \${$gt_func_gnugettext_libintl+:} false; then :
6934 $as_echo_n "(cached) " >&6
6935 else
6936 gt_save_CPPFLAGS="$CPPFLAGS"
6937 CPPFLAGS="$CPPFLAGS $INCINTL"
6938 gt_save_LIBS="$LIBS"
6939 LIBS="$LIBS $LIBINTL"
6940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6941 /* end confdefs.h. */
6942
6943 #include <libintl.h>
6944 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6945 extern int _nl_msg_cat_cntr;
6946 extern
6947 #ifdef __cplusplus
6948 "C"
6949 #endif
6950 const char *_nl_expand_alias (const char *);
6951 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
6952 #else
6953 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
6954 #endif
6955 $gt_revision_test_code
6956
6957 int
6958 main ()
6959 {
6960
6961 bindtextdomain ("", "");
6962 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
6963
6964 ;
6965 return 0;
6966 }
6967 _ACEOF
6968 if ac_fn_cxx_try_link "$LINENO"; then :
6969 eval "$gt_func_gnugettext_libintl=yes"
6970 else
6971 eval "$gt_func_gnugettext_libintl=no"
6972 fi
6973 rm -f core conftest.err conftest.$ac_objext \
6974 conftest$ac_exeext conftest.$ac_ext
6975 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
6976 LIBS="$LIBS $LIBICONV"
6977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6978 /* end confdefs.h. */
6979
6980 #include <libintl.h>
6981 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6982 extern int _nl_msg_cat_cntr;
6983 extern
6984 #ifdef __cplusplus
6985 "C"
6986 #endif
6987 const char *_nl_expand_alias (const char *);
6988 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
6989 #else
6990 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
6991 #endif
6992 $gt_revision_test_code
6993
6994 int
6995 main ()
6996 {
6997
6998 bindtextdomain ("", "");
6999 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
7000
7001 ;
7002 return 0;
7003 }
7004 _ACEOF
7005 if ac_fn_cxx_try_link "$LINENO"; then :
7006 LIBINTL="$LIBINTL $LIBICONV"
7007 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7008 eval "$gt_func_gnugettext_libintl=yes"
7009
7010 fi
7011 rm -f core conftest.err conftest.$ac_objext \
7012 conftest$ac_exeext conftest.$ac_ext
7013 fi
7014 CPPFLAGS="$gt_save_CPPFLAGS"
7015 LIBS="$gt_save_LIBS"
7016 fi
7017 eval ac_res=\$$gt_func_gnugettext_libintl
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7019 $as_echo "$ac_res" >&6; }
7020 fi
7021
7022 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
7023 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
7024 && test "$PACKAGE" != gettext-runtime \
7025 && test "$PACKAGE" != gettext-tools; }; then
7026 gt_use_preinstalled_gnugettext=yes
7027 else
7028 LIBINTL=
7029 LTLIBINTL=
7030 INCINTL=
7031 fi
7032
7033
7034
7035 if test -n "$INTL_MACOSX_LIBS"; then
7036 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7037 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7038 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7039 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7040 fi
7041 fi
7042
7043 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7044 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7045
7046 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
7047
7048 else
7049 USE_NLS=no
7050 fi
7051 fi
7052
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
7054 $as_echo_n "checking whether to use NLS... " >&6; }
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7056 $as_echo "$USE_NLS" >&6; }
7057 if test "$USE_NLS" = "yes"; then
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
7059 $as_echo_n "checking where the gettext function comes from... " >&6; }
7060 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7061 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7062 gt_source="external libintl"
7063 else
7064 gt_source="libc"
7065 fi
7066 else
7067 gt_source="included intl directory"
7068 fi
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
7070 $as_echo "$gt_source" >&6; }
7071 fi
7072
7073 if test "$USE_NLS" = "yes"; then
7074
7075 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7076 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
7078 $as_echo_n "checking how to link with libintl... " >&6; }
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
7080 $as_echo "$LIBINTL" >&6; }
7081
7082 for element in $INCINTL; do
7083 haveit=
7084 for x in $CPPFLAGS; do
7085
7086 acl_save_prefix="$prefix"
7087 prefix="$acl_final_prefix"
7088 acl_save_exec_prefix="$exec_prefix"
7089 exec_prefix="$acl_final_exec_prefix"
7090 eval x=\"$x\"
7091 exec_prefix="$acl_save_exec_prefix"
7092 prefix="$acl_save_prefix"
7093
7094 if test "X$x" = "X$element"; then
7095 haveit=yes
7096 break
7097 fi
7098 done
7099 if test -z "$haveit"; then
7100 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7101 fi
7102 done
7103
7104 fi
7105
7106
7107 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
7108
7109
7110 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
7111
7112 fi
7113
7114 POSUB=po
7115 fi
7116
7117
7118
7119 INTLLIBS="$LIBINTL"
7120
7121
7122
7123
7124
7125
7126
7127 ac_ext=cpp
7128 ac_cpp='$CXXCPP $CPPFLAGS'
7129 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7130 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7131 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7132 if test -z "$CXX"; then
7133 if test -n "$CCC"; then
7134 CXX=$CCC
7135 else
7136 if test -n "$ac_tool_prefix"; then
7137 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7138 do
7139 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7140 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7142 $as_echo_n "checking for $ac_word... " >&6; }
7143 if ${ac_cv_prog_CXX+:} false; then :
7144 $as_echo_n "(cached) " >&6
7145 else
7146 if test -n "$CXX"; then
7147 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7148 else
7149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7150 for as_dir in $PATH
7151 do
7152 IFS=$as_save_IFS
7153 test -z "$as_dir" && as_dir=.
7154 for ac_exec_ext in '' $ac_executable_extensions; do
7155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7156 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7158 break 2
7159 fi
7160 done
7161 done
7162 IFS=$as_save_IFS
7163
7164 fi
7165 fi
7166 CXX=$ac_cv_prog_CXX
7167 if test -n "$CXX"; then
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7169 $as_echo "$CXX" >&6; }
7170 else
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7172 $as_echo "no" >&6; }
7173 fi
7174
7175
7176 test -n "$CXX" && break
7177 done
7178 fi
7179 if test -z "$CXX"; then
7180 ac_ct_CXX=$CXX
7181 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7182 do
7183 # Extract the first word of "$ac_prog", so it can be a program name with args.
7184 set dummy $ac_prog; ac_word=$2
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7186 $as_echo_n "checking for $ac_word... " >&6; }
7187 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
7188 $as_echo_n "(cached) " >&6
7189 else
7190 if test -n "$ac_ct_CXX"; then
7191 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7192 else
7193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194 for as_dir in $PATH
7195 do
7196 IFS=$as_save_IFS
7197 test -z "$as_dir" && as_dir=.
7198 for ac_exec_ext in '' $ac_executable_extensions; do
7199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7200 ac_cv_prog_ac_ct_CXX="$ac_prog"
7201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7202 break 2
7203 fi
7204 done
7205 done
7206 IFS=$as_save_IFS
7207
7208 fi
7209 fi
7210 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7211 if test -n "$ac_ct_CXX"; then
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7213 $as_echo "$ac_ct_CXX" >&6; }
7214 else
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7216 $as_echo "no" >&6; }
7217 fi
7218
7219
7220 test -n "$ac_ct_CXX" && break
7221 done
7222
7223 if test "x$ac_ct_CXX" = x; then
7224 CXX="g++"
7225 else
7226 case $cross_compiling:$ac_tool_warned in
7227 yes:)
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7230 ac_tool_warned=yes ;;
7231 esac
7232 CXX=$ac_ct_CXX
7233 fi
7234 fi
7235
7236 fi
7237 fi
7238 # Provide some information about the compiler.
7239 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7240 set X $ac_compile
7241 ac_compiler=$2
7242 for ac_option in --version -v -V -qversion; do
7243 { { ac_try="$ac_compiler $ac_option >&5"
7244 case "(($ac_try" in
7245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7246 *) ac_try_echo=$ac_try;;
7247 esac
7248 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7249 $as_echo "$ac_try_echo"; } >&5
7250 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7251 ac_status=$?
7252 if test -s conftest.err; then
7253 sed '10a\
7254 ... rest of stderr output deleted ...
7255 10q' conftest.err >conftest.er1
7256 cat conftest.er1 >&5
7257 fi
7258 rm -f conftest.er1 conftest.err
7259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7260 test $ac_status = 0; }
7261 done
7262
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7264 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7265 if ${ac_cv_cxx_compiler_gnu+:} false; then :
7266 $as_echo_n "(cached) " >&6
7267 else
7268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7269 /* end confdefs.h. */
7270
7271 int
7272 main ()
7273 {
7274 #ifndef __GNUC__
7275 choke me
7276 #endif
7277
7278 ;
7279 return 0;
7280 }
7281 _ACEOF
7282 if ac_fn_cxx_try_compile "$LINENO"; then :
7283 ac_compiler_gnu=yes
7284 else
7285 ac_compiler_gnu=no
7286 fi
7287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7288 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7289
7290 fi
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7292 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7293 if test $ac_compiler_gnu = yes; then
7294 GXX=yes
7295 else
7296 GXX=
7297 fi
7298 ac_test_CXXFLAGS=${CXXFLAGS+set}
7299 ac_save_CXXFLAGS=$CXXFLAGS
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7301 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
7302 if ${ac_cv_prog_cxx_g+:} false; then :
7303 $as_echo_n "(cached) " >&6
7304 else
7305 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7306 ac_cxx_werror_flag=yes
7307 ac_cv_prog_cxx_g=no
7308 CXXFLAGS="-g"
7309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7310 /* end confdefs.h. */
7311
7312 int
7313 main ()
7314 {
7315
7316 ;
7317 return 0;
7318 }
7319 _ACEOF
7320 if ac_fn_cxx_try_compile "$LINENO"; then :
7321 ac_cv_prog_cxx_g=yes
7322 else
7323 CXXFLAGS=""
7324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7325 /* end confdefs.h. */
7326
7327 int
7328 main ()
7329 {
7330
7331 ;
7332 return 0;
7333 }
7334 _ACEOF
7335 if ac_fn_cxx_try_compile "$LINENO"; then :
7336
7337 else
7338 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7339 CXXFLAGS="-g"
7340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7341 /* end confdefs.h. */
7342
7343 int
7344 main ()
7345 {
7346
7347 ;
7348 return 0;
7349 }
7350 _ACEOF
7351 if ac_fn_cxx_try_compile "$LINENO"; then :
7352 ac_cv_prog_cxx_g=yes
7353 fi
7354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7355 fi
7356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7357 fi
7358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7359 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7360 fi
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7362 $as_echo "$ac_cv_prog_cxx_g" >&6; }
7363 if test "$ac_test_CXXFLAGS" = set; then
7364 CXXFLAGS=$ac_save_CXXFLAGS
7365 elif test $ac_cv_prog_cxx_g = yes; then
7366 if test "$GXX" = yes; then
7367 CXXFLAGS="-g -O2"
7368 else
7369 CXXFLAGS="-g"
7370 fi
7371 else
7372 if test "$GXX" = yes; then
7373 CXXFLAGS="-O2"
7374 else
7375 CXXFLAGS=
7376 fi
7377 fi
7378 ac_ext=cpp
7379 ac_cpp='$CXXCPP $CPPFLAGS'
7380 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7381 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7382 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7383
7384 depcc="$CXX" am_compiler_list=
7385
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7387 $as_echo_n "checking dependency style of $depcc... " >&6; }
7388 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
7389 $as_echo_n "(cached) " >&6
7390 else
7391 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7392 # We make a subdir and do the tests there. Otherwise we can end up
7393 # making bogus files that we don't know about and never remove. For
7394 # instance it was reported that on HP-UX the gcc test will end up
7395 # making a dummy file named 'D' -- because '-MD' means "put the output
7396 # in D".
7397 rm -rf conftest.dir
7398 mkdir conftest.dir
7399 # Copy depcomp to subdir because otherwise we won't find it if we're
7400 # using a relative directory.
7401 cp "$am_depcomp" conftest.dir
7402 cd conftest.dir
7403 # We will build objects and dependencies in a subdirectory because
7404 # it helps to detect inapplicable dependency modes. For instance
7405 # both Tru64's cc and ICC support -MD to output dependencies as a
7406 # side effect of compilation, but ICC will put the dependencies in
7407 # the current directory while Tru64 will put them in the object
7408 # directory.
7409 mkdir sub
7410
7411 am_cv_CXX_dependencies_compiler_type=none
7412 if test "$am_compiler_list" = ""; then
7413 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7414 fi
7415 am__universal=false
7416 case " $depcc " in #(
7417 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7418 esac
7419
7420 for depmode in $am_compiler_list; do
7421 # Setup a source with many dependencies, because some compilers
7422 # like to wrap large dependency lists on column 80 (with \), and
7423 # we should not choose a depcomp mode which is confused by this.
7424 #
7425 # We need to recreate these files for each test, as the compiler may
7426 # overwrite some of them when testing with obscure command lines.
7427 # This happens at least with the AIX C compiler.
7428 : > sub/conftest.c
7429 for i in 1 2 3 4 5 6; do
7430 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7431 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7432 # Solaris 10 /bin/sh.
7433 echo '/* dummy */' > sub/conftst$i.h
7434 done
7435 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7436
7437 # We check with '-c' and '-o' for the sake of the "dashmstdout"
7438 # mode. It turns out that the SunPro C++ compiler does not properly
7439 # handle '-M -o', and we need to detect this. Also, some Intel
7440 # versions had trouble with output in subdirs.
7441 am__obj=sub/conftest.${OBJEXT-o}
7442 am__minus_obj="-o $am__obj"
7443 case $depmode in
7444 gcc)
7445 # This depmode causes a compiler race in universal mode.
7446 test "$am__universal" = false || continue
7447 ;;
7448 nosideeffect)
7449 # After this tag, mechanisms are not by side-effect, so they'll
7450 # only be used when explicitly requested.
7451 if test "x$enable_dependency_tracking" = xyes; then
7452 continue
7453 else
7454 break
7455 fi
7456 ;;
7457 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7458 # This compiler won't grok '-c -o', but also, the minuso test has
7459 # not run yet. These depmodes are late enough in the game, and
7460 # so weak that their functioning should not be impacted.
7461 am__obj=conftest.${OBJEXT-o}
7462 am__minus_obj=
7463 ;;
7464 none) break ;;
7465 esac
7466 if depmode=$depmode \
7467 source=sub/conftest.c object=$am__obj \
7468 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7469 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7470 >/dev/null 2>conftest.err &&
7471 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7472 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7473 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7474 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7475 # icc doesn't choke on unknown options, it will just issue warnings
7476 # or remarks (even with -Werror). So we grep stderr for any message
7477 # that says an option was ignored or not supported.
7478 # When given -MP, icc 7.0 and 7.1 complain thusly:
7479 # icc: Command line warning: ignoring option '-M'; no argument required
7480 # The diagnosis changed in icc 8.0:
7481 # icc: Command line remark: option '-MP' not supported
7482 if (grep 'ignoring option' conftest.err ||
7483 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7484 am_cv_CXX_dependencies_compiler_type=$depmode
7485 break
7486 fi
7487 fi
7488 done
7489
7490 cd ..
7491 rm -rf conftest.dir
7492 else
7493 am_cv_CXX_dependencies_compiler_type=none
7494 fi
7495
7496 fi
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7498 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7499 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7500
7501 if
7502 test "x$enable_dependency_tracking" != xno \
7503 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7504 am__fastdepCXX_TRUE=
7505 am__fastdepCXX_FALSE='#'
7506 else
7507 am__fastdepCXX_TRUE='#'
7508 am__fastdepCXX_FALSE=
7509 fi
7510
7511
7512 if test -n "$ac_tool_prefix"; then
7513 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7514 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7516 $as_echo_n "checking for $ac_word... " >&6; }
7517 if ${ac_cv_prog_RANLIB+:} false; then :
7518 $as_echo_n "(cached) " >&6
7519 else
7520 if test -n "$RANLIB"; then
7521 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7522 else
7523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7524 for as_dir in $PATH
7525 do
7526 IFS=$as_save_IFS
7527 test -z "$as_dir" && as_dir=.
7528 for ac_exec_ext in '' $ac_executable_extensions; do
7529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7530 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7532 break 2
7533 fi
7534 done
7535 done
7536 IFS=$as_save_IFS
7537
7538 fi
7539 fi
7540 RANLIB=$ac_cv_prog_RANLIB
7541 if test -n "$RANLIB"; then
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7543 $as_echo "$RANLIB" >&6; }
7544 else
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7546 $as_echo "no" >&6; }
7547 fi
7548
7549
7550 fi
7551 if test -z "$ac_cv_prog_RANLIB"; then
7552 ac_ct_RANLIB=$RANLIB
7553 # Extract the first word of "ranlib", so it can be a program name with args.
7554 set dummy ranlib; ac_word=$2
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7556 $as_echo_n "checking for $ac_word... " >&6; }
7557 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7558 $as_echo_n "(cached) " >&6
7559 else
7560 if test -n "$ac_ct_RANLIB"; then
7561 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7562 else
7563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7564 for as_dir in $PATH
7565 do
7566 IFS=$as_save_IFS
7567 test -z "$as_dir" && as_dir=.
7568 for ac_exec_ext in '' $ac_executable_extensions; do
7569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7570 ac_cv_prog_ac_ct_RANLIB="ranlib"
7571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7572 break 2
7573 fi
7574 done
7575 done
7576 IFS=$as_save_IFS
7577
7578 fi
7579 fi
7580 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7581 if test -n "$ac_ct_RANLIB"; then
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7583 $as_echo "$ac_ct_RANLIB" >&6; }
7584 else
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7586 $as_echo "no" >&6; }
7587 fi
7588
7589 if test "x$ac_ct_RANLIB" = x; then
7590 RANLIB=":"
7591 else
7592 case $cross_compiling:$ac_tool_warned in
7593 yes:)
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7596 ac_tool_warned=yes ;;
7597 esac
7598 RANLIB=$ac_ct_RANLIB
7599 fi
7600 else
7601 RANLIB="$ac_cv_prog_RANLIB"
7602 fi
7603
7604
7605 # Extract the first word of "po4a", so it can be a program name with args.
7606 set dummy po4a; ac_word=$2
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7608 $as_echo_n "checking for $ac_word... " >&6; }
7609 if ${ac_cv_path_PO4A+:} false; then :
7610 $as_echo_n "(cached) " >&6
7611 else
7612 case $PO4A in
7613 [\\/]* | ?:[\\/]*)
7614 ac_cv_path_PO4A="$PO4A" # Let the user override the test with a path.
7615 ;;
7616 *)
7617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7618 for as_dir in $PATH
7619 do
7620 IFS=$as_save_IFS
7621 test -z "$as_dir" && as_dir=.
7622 for ac_exec_ext in '' $ac_executable_extensions; do
7623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7624 ac_cv_path_PO4A="$as_dir/$ac_word$ac_exec_ext"
7625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7626 break 2
7627 fi
7628 done
7629 done
7630 IFS=$as_save_IFS
7631
7632 ;;
7633 esac
7634 fi
7635 PO4A=$ac_cv_path_PO4A
7636 if test -n "$PO4A"; then
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PO4A" >&5
7638 $as_echo "$PO4A" >&6; }
7639 else
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7641 $as_echo "no" >&6; }
7642 fi
7643
7644
7645 # Extract the first word of "xsltproc", so it can be a program name with args.
7646 set dummy xsltproc; ac_word=$2
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7648 $as_echo_n "checking for $ac_word... " >&6; }
7649 if ${ac_cv_path_XSLTPROC+:} false; then :
7650 $as_echo_n "(cached) " >&6
7651 else
7652 case $XSLTPROC in
7653 [\\/]* | ?:[\\/]*)
7654 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
7655 ;;
7656 *)
7657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7658 for as_dir in $PATH
7659 do
7660 IFS=$as_save_IFS
7661 test -z "$as_dir" && as_dir=.
7662 for ac_exec_ext in '' $ac_executable_extensions; do
7663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7664 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
7665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7666 break 2
7667 fi
7668 done
7669 done
7670 IFS=$as_save_IFS
7671
7672 ;;
7673 esac
7674 fi
7675 XSLTPROC=$ac_cv_path_XSLTPROC
7676 if test -n "$XSLTPROC"; then
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
7678 $as_echo "$XSLTPROC" >&6; }
7679 else
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7681 $as_echo "no" >&6; }
7682 fi
7683
7684
7685 # Extract the first word of "rsvg-convert", so it can be a program name with args.
7686 set dummy rsvg-convert; ac_word=$2
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7688 $as_echo_n "checking for $ac_word... " >&6; }
7689 if ${ac_cv_path_RSVG_CONVERT+:} false; then :
7690 $as_echo_n "(cached) " >&6
7691 else
7692 case $RSVG_CONVERT in
7693 [\\/]* | ?:[\\/]*)
7694 ac_cv_path_RSVG_CONVERT="$RSVG_CONVERT" # Let the user override the test with a path.
7695 ;;
7696 *)
7697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7698 for as_dir in $PATH
7699 do
7700 IFS=$as_save_IFS
7701 test -z "$as_dir" && as_dir=.
7702 for ac_exec_ext in '' $ac_executable_extensions; do
7703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7704 ac_cv_path_RSVG_CONVERT="$as_dir/$ac_word$ac_exec_ext"
7705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7706 break 2
7707 fi
7708 done
7709 done
7710 IFS=$as_save_IFS
7711
7712 ;;
7713 esac
7714 fi
7715 RSVG_CONVERT=$ac_cv_path_RSVG_CONVERT
7716 if test -n "$RSVG_CONVERT"; then
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CONVERT" >&5
7718 $as_echo "$RSVG_CONVERT" >&6; }
7719 else
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7721 $as_echo "no" >&6; }
7722 fi
7723
7724
7725 # Extract the first word of "fop", so it can be a program name with args.
7726 set dummy fop; ac_word=$2
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7728 $as_echo_n "checking for $ac_word... " >&6; }
7729 if ${ac_cv_path_FOP+:} false; then :
7730 $as_echo_n "(cached) " >&6
7731 else
7732 case $FOP in
7733 [\\/]* | ?:[\\/]*)
7734 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
7735 ;;
7736 *)
7737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7738 for as_dir in $PATH
7739 do
7740 IFS=$as_save_IFS
7741 test -z "$as_dir" && as_dir=.
7742 for ac_exec_ext in '' $ac_executable_extensions; do
7743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7744 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
7745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7746 break 2
7747 fi
7748 done
7749 done
7750 IFS=$as_save_IFS
7751
7752 ;;
7753 esac
7754 fi
7755 FOP=$ac_cv_path_FOP
7756 if test -n "$FOP"; then
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
7758 $as_echo "$FOP" >&6; }
7759 else
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7761 $as_echo "no" >&6; }
7762 fi
7763
7764
7765 # Extract the first word of "elinks", so it can be a program name with args.
7766 set dummy elinks; ac_word=$2
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7768 $as_echo_n "checking for $ac_word... " >&6; }
7769 if ${ac_cv_path_ELINKS+:} false; then :
7770 $as_echo_n "(cached) " >&6
7771 else
7772 case $ELINKS in
7773 [\\/]* | ?:[\\/]*)
7774 ac_cv_path_ELINKS="$ELINKS" # Let the user override the test with a path.
7775 ;;
7776 *)
7777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7778 for as_dir in $PATH
7779 do
7780 IFS=$as_save_IFS
7781 test -z "$as_dir" && as_dir=.
7782 for ac_exec_ext in '' $ac_executable_extensions; do
7783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7784 ac_cv_path_ELINKS="$as_dir/$ac_word$ac_exec_ext"
7785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7786 break 2
7787 fi
7788 done
7789 done
7790 IFS=$as_save_IFS
7791
7792 ;;
7793 esac
7794 fi
7795 ELINKS=$ac_cv_path_ELINKS
7796 if test -n "$ELINKS"; then
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ELINKS" >&5
7798 $as_echo "$ELINKS" >&6; }
7799 else
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7801 $as_echo "no" >&6; }
7802 fi
7803
7804
7805
7806 if test "x$PO4A" != "x"; then
7807 HAVE_PO4A_TRUE=
7808 HAVE_PO4A_FALSE='#'
7809 else
7810 HAVE_PO4A_TRUE='#'
7811 HAVE_PO4A_FALSE=
7812 fi
7813
7814 if test "x$XSLTPROC" != "x"; then
7815 HAVE_XSLTPROC_TRUE=
7816 HAVE_XSLTPROC_FALSE='#'
7817 else
7818 HAVE_XSLTPROC_TRUE='#'
7819 HAVE_XSLTPROC_FALSE=
7820 fi
7821
7822 if test "x$RSVG_CONVERT" != "x"; then
7823 HAVE_RSVG_CONVERT_TRUE=
7824 HAVE_RSVG_CONVERT_FALSE='#'
7825 else
7826 HAVE_RSVG_CONVERT_TRUE='#'
7827 HAVE_RSVG_CONVERT_FALSE=
7828 fi
7829
7830 if test "x$FOP" != "x"; then
7831 HAVE_FOP_TRUE=
7832 HAVE_FOP_FALSE='#'
7833 else
7834 HAVE_FOP_TRUE='#'
7835 HAVE_FOP_FALSE=
7836 fi
7837
7838 if test "x$ELINKS" != "x"; then
7839 HAVE_ELINKS_TRUE=
7840 HAVE_ELINKS_FALSE='#'
7841 else
7842 HAVE_ELINKS_TRUE='#'
7843 HAVE_ELINKS_FALSE=
7844 fi
7845
7846
7847 ac_cv_c_const=yes
7848 ac_cv_c_inline=yes
7849
7850
7851 DISABLE_BOOST_LIB_CHECKS=no
7852 # Check whether --enable-boost-lib-checks was given.
7853 if test "${enable_boost_lib_checks+set}" = set; then :
7854 enableval=$enable_boost_lib_checks; if test x$enableval=xno
7855 then
7856 DISABLE_BOOST_LIB_CHECKS=yes
7857 else
7858 DISABLE_BOOST_LIB_CHECKS=no
7859 fi
7860 fi
7861
7862
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7864 $as_echo_n "checking for ANSI C header files... " >&6; }
7865 if ${ac_cv_header_stdc+:} false; then :
7866 $as_echo_n "(cached) " >&6
7867 else
7868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7869 /* end confdefs.h. */
7870 #include <stdlib.h>
7871 #include <stdarg.h>
7872 #include <string.h>
7873 #include <float.h>
7874
7875 int
7876 main ()
7877 {
7878
7879 ;
7880 return 0;
7881 }
7882 _ACEOF
7883 if ac_fn_cxx_try_compile "$LINENO"; then :
7884 ac_cv_header_stdc=yes
7885 else
7886 ac_cv_header_stdc=no
7887 fi
7888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7889
7890 if test $ac_cv_header_stdc = yes; then
7891 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7893 /* end confdefs.h. */
7894 #include <string.h>
7895
7896 _ACEOF
7897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7898 $EGREP "memchr" >/dev/null 2>&1; then :
7899
7900 else
7901 ac_cv_header_stdc=no
7902 fi
7903 rm -f conftest*
7904
7905 fi
7906
7907 if test $ac_cv_header_stdc = yes; then
7908 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7910 /* end confdefs.h. */
7911 #include <stdlib.h>
7912
7913 _ACEOF
7914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7915 $EGREP "free" >/dev/null 2>&1; then :
7916
7917 else
7918 ac_cv_header_stdc=no
7919 fi
7920 rm -f conftest*
7921
7922 fi
7923
7924 if test $ac_cv_header_stdc = yes; then
7925 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7926 if test "$cross_compiling" = yes; then :
7927 :
7928 else
7929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7930 /* end confdefs.h. */
7931 #include <ctype.h>
7932 #include <stdlib.h>
7933 #if ((' ' & 0x0FF) == 0x020)
7934 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7935 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7936 #else
7937 # define ISLOWER(c) \
7938 (('a' <= (c) && (c) <= 'i') \
7939 || ('j' <= (c) && (c) <= 'r') \
7940 || ('s' <= (c) && (c) <= 'z'))
7941 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7942 #endif
7943
7944 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7945 int
7946 main ()
7947 {
7948 int i;
7949 for (i = 0; i < 256; i++)
7950 if (XOR (islower (i), ISLOWER (i))
7951 || toupper (i) != TOUPPER (i))
7952 return 2;
7953 return 0;
7954 }
7955 _ACEOF
7956 if ac_fn_cxx_try_run "$LINENO"; then :
7957
7958 else
7959 ac_cv_header_stdc=no
7960 fi
7961 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7962 conftest.$ac_objext conftest.beam conftest.$ac_ext
7963 fi
7964
7965 fi
7966 fi
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7968 $as_echo "$ac_cv_header_stdc" >&6; }
7969 if test $ac_cv_header_stdc = yes; then
7970
7971 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7972
7973 fi
7974
7975 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7976 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7977 inttypes.h stdint.h unistd.h
7978 do :
7979 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7980 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7981 "
7982 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7983 cat >>confdefs.h <<_ACEOF
7984 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7985 _ACEOF
7986
7987 fi
7988
7989 done
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8000 if test -n "$ac_tool_prefix"; then
8001 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8002 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8004 $as_echo_n "checking for $ac_word... " >&6; }
8005 if ${ac_cv_path_PKG_CONFIG+:} false; then :
8006 $as_echo_n "(cached) " >&6
8007 else
8008 case $PKG_CONFIG in
8009 [\\/]* | ?:[\\/]*)
8010 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8011 ;;
8012 *)
8013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8014 for as_dir in $PATH
8015 do
8016 IFS=$as_save_IFS
8017 test -z "$as_dir" && as_dir=.
8018 for ac_exec_ext in '' $ac_executable_extensions; do
8019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8020 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8022 break 2
8023 fi
8024 done
8025 done
8026 IFS=$as_save_IFS
8027
8028 ;;
8029 esac
8030 fi
8031 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8032 if test -n "$PKG_CONFIG"; then
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8034 $as_echo "$PKG_CONFIG" >&6; }
8035 else
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8037 $as_echo "no" >&6; }
8038 fi
8039
8040
8041 fi
8042 if test -z "$ac_cv_path_PKG_CONFIG"; then
8043 ac_pt_PKG_CONFIG=$PKG_CONFIG
8044 # Extract the first word of "pkg-config", so it can be a program name with args.
8045 set dummy pkg-config; ac_word=$2
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8047 $as_echo_n "checking for $ac_word... " >&6; }
8048 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
8049 $as_echo_n "(cached) " >&6
8050 else
8051 case $ac_pt_PKG_CONFIG in
8052 [\\/]* | ?:[\\/]*)
8053 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8054 ;;
8055 *)
8056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8057 for as_dir in $PATH
8058 do
8059 IFS=$as_save_IFS
8060 test -z "$as_dir" && as_dir=.
8061 for ac_exec_ext in '' $ac_executable_extensions; do
8062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8063 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8065 break 2
8066 fi
8067 done
8068 done
8069 IFS=$as_save_IFS
8070
8071 ;;
8072 esac
8073 fi
8074 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8075 if test -n "$ac_pt_PKG_CONFIG"; then
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8077 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
8078 else
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8080 $as_echo "no" >&6; }
8081 fi
8082
8083 if test "x$ac_pt_PKG_CONFIG" = x; then
8084 PKG_CONFIG=""
8085 else
8086 case $cross_compiling:$ac_tool_warned in
8087 yes:)
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8089 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8090 ac_tool_warned=yes ;;
8091 esac
8092 PKG_CONFIG=$ac_pt_PKG_CONFIG
8093 fi
8094 else
8095 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8096 fi
8097
8098 fi
8099 if test -n "$PKG_CONFIG"; then
8100 _pkg_min_version=0.9.0
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8102 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8103 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8105 $as_echo "yes" >&6; }
8106 else
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8108 $as_echo "no" >&6; }
8109 PKG_CONFIG=""
8110 fi
8111 fi
8112 if test "x$enable_aptitude" != xno; then :
8113
8114
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncursesw" >&5
8116 $as_echo_n "checking for initscr in -lncursesw... " >&6; }
8117 if ${ac_cv_lib_ncursesw_initscr+:} false; then :
8118 $as_echo_n "(cached) " >&6
8119 else
8120 ac_check_lib_save_LIBS=$LIBS
8121 LIBS="-lncursesw $LIBS"
8122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8123 /* end confdefs.h. */
8124
8125 /* Override any GCC internal prototype to avoid an error.
8126 Use char because int might match the return type of a GCC
8127 builtin and then its argument prototype would still apply. */
8128 #ifdef __cplusplus
8129 extern "C"
8130 #endif
8131 char initscr ();
8132 int
8133 main ()
8134 {
8135 return initscr ();
8136 ;
8137 return 0;
8138 }
8139 _ACEOF
8140 if ac_fn_cxx_try_link "$LINENO"; then :
8141 ac_cv_lib_ncursesw_initscr=yes
8142 else
8143 ac_cv_lib_ncursesw_initscr=no
8144 fi
8145 rm -f core conftest.err conftest.$ac_objext \
8146 conftest$ac_exeext conftest.$ac_ext
8147 LIBS=$ac_check_lib_save_LIBS
8148 fi
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_initscr" >&5
8150 $as_echo "$ac_cv_lib_ncursesw_initscr" >&6; }
8151 if test "x$ac_cv_lib_ncursesw_initscr" = xyes; then :
8152 cat >>confdefs.h <<_ACEOF
8153 #define HAVE_LIBNCURSESW 1
8154 _ACEOF
8155
8156 LIBS="-lncursesw $LIBS"
8157
8158 else
8159 as_fn_error $? "Can't find libncursesw -- please install libncursesw5-dev" "$LINENO" 5
8160 fi
8161
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lapt-pkg" >&5
8163 $as_echo_n "checking for main in -lapt-pkg... " >&6; }
8164 if ${ac_cv_lib_apt_pkg_main+:} false; then :
8165 $as_echo_n "(cached) " >&6
8166 else
8167 ac_check_lib_save_LIBS=$LIBS
8168 LIBS="-lapt-pkg $LIBS"
8169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8170 /* end confdefs.h. */
8171
8172
8173 int
8174 main ()
8175 {
8176 return main ();
8177 ;
8178 return 0;
8179 }
8180 _ACEOF
8181 if ac_fn_cxx_try_link "$LINENO"; then :
8182 ac_cv_lib_apt_pkg_main=yes
8183 else
8184 ac_cv_lib_apt_pkg_main=no
8185 fi
8186 rm -f core conftest.err conftest.$ac_objext \
8187 conftest$ac_exeext conftest.$ac_ext
8188 LIBS=$ac_check_lib_save_LIBS
8189 fi
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_apt_pkg_main" >&5
8191 $as_echo "$ac_cv_lib_apt_pkg_main" >&6; }
8192 if test "x$ac_cv_lib_apt_pkg_main" = xyes; then :
8193 cat >>confdefs.h <<_ACEOF
8194 #define HAVE_LIBAPT_PKG 1
8195 _ACEOF
8196
8197 LIBS="-lapt-pkg $LIBS"
8198
8199 else
8200 as_fn_error $? "Can't find the APT libraries -- please install libapt-pkg-dev" "$LINENO" 5
8201 fi
8202
8203
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether apt includes the automatic dependency removal patch (required)" >&5
8205 $as_echo_n "checking whether apt includes the automatic dependency removal patch (required)... " >&6; }
8206
8207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8208 /* end confdefs.h. */
8209 #include <apt-pkg/depcache.h>
8210 int
8211 main ()
8212 {
8213 extern pkgDepCache::ActionGroup d;
8214 ;
8215 return 0;
8216 }
8217 _ACEOF
8218 if ac_fn_cxx_try_compile "$LINENO"; then :
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8220 $as_echo "yes" >&6; }
8221 else
8222 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8223 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8224 as_fn_error $? "need libapt-pkg 0.7 or later
8225 See \`config.log' for more details" "$LINENO" 5; }
8226 fi
8227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8228
8229 ac_fn_cxx_check_member "$LINENO" "struct pkgCache::Version" "MultiArch" "ac_cv_member_struct_pkgCache__Version_MultiArch" "#include <apt-pkg/pkgcache.h>
8230 "
8231 if test "x$ac_cv_member_struct_pkgCache__Version_MultiArch" = xyes; then :
8232
8233 else
8234 as_fn_error $? "need libapt-pkg 0.8 or later" "$LINENO" 5
8235 fi
8236
8237
8238 ac_fn_cxx_check_type "$LINENO" "APT::CacheFilter::PackageArchitectureMatchesSpecification" "ac_cv_type_APT__CacheFilter__PackageArchitectureMatchesSpecification" "#include <apt-pkg/cachefilter.h>
8239 "
8240 if test "x$ac_cv_type_APT__CacheFilter__PackageArchitectureMatchesSpecification" = xyes; then :
8241
8242 else
8243 as_fn_error $? "need libapt-pkg 0.9.7 or later" "$LINENO" 5
8244 fi
8245
8246
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
8248 $as_echo_n "checking for main in -lpthread... " >&6; }
8249 if ${ac_cv_lib_pthread_main+:} false; then :
8250 $as_echo_n "(cached) " >&6
8251 else
8252 ac_check_lib_save_LIBS=$LIBS
8253 LIBS="-lpthread $LIBS"
8254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8255 /* end confdefs.h. */
8256
8257
8258 int
8259 main ()
8260 {
8261 return main ();
8262 ;
8263 return 0;
8264 }
8265 _ACEOF
8266 if ac_fn_cxx_try_link "$LINENO"; then :
8267 ac_cv_lib_pthread_main=yes
8268 else
8269 ac_cv_lib_pthread_main=no
8270 fi
8271 rm -f core conftest.err conftest.$ac_objext \
8272 conftest$ac_exeext conftest.$ac_ext
8273 LIBS=$ac_check_lib_save_LIBS
8274 fi
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
8276 $as_echo "$ac_cv_lib_pthread_main" >&6; }
8277 if test "x$ac_cv_lib_pthread_main" = xyes; then :
8278 HAVE_LIBPTHREAD=1
8279
8280 else
8281 as_fn_error $? "Can't find the POSIX thread libraries" "$LINENO" 5
8282 fi
8283
8284
8285 # Extract the first word of "xapian-config", so it can be a program name with args.
8286 set dummy xapian-config; ac_word=$2
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8288 $as_echo_n "checking for $ac_word... " >&6; }
8289 if ${ac_cv_path_XAPIAN_CONFIG+:} false; then :
8290 $as_echo_n "(cached) " >&6
8291 else
8292 case $XAPIAN_CONFIG in
8293 [\\/]* | ?:[\\/]*)
8294 ac_cv_path_XAPIAN_CONFIG="$XAPIAN_CONFIG" # Let the user override the test with a path.
8295 ;;
8296 *)
8297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8298 for as_dir in $PATH
8299 do
8300 IFS=$as_save_IFS
8301 test -z "$as_dir" && as_dir=.
8302 for ac_exec_ext in '' $ac_executable_extensions; do
8303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8304 ac_cv_path_XAPIAN_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8306 break 2
8307 fi
8308 done
8309 done
8310 IFS=$as_save_IFS
8311
8312 ;;
8313 esac
8314 fi
8315 XAPIAN_CONFIG=$ac_cv_path_XAPIAN_CONFIG
8316 if test -n "$XAPIAN_CONFIG"; then
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAPIAN_CONFIG" >&5
8318 $as_echo "$XAPIAN_CONFIG" >&6; }
8319 else
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8321 $as_echo "no" >&6; }
8322 fi
8323
8324
8325 if test ! -x "$XAPIAN_CONFIG"
8326 then
8327 as_fn_error $? "Can't find xapian-config -- please install libxapian-dev" "$LINENO" 5
8328 fi
8329 XAPIAN_CXXFLAGS="$($XAPIAN_CONFIG --cxxflags)"
8330 XAPIAN_LIBS="$($XAPIAN_CONFIG --libs)"
8331
8332 OLD_CXXFLAGS="$CXXFLAGS"
8333 OLD_LIBS="$LIBS"
8334
8335 CXXFLAGS="$CXXFLAGS $XAPIAN_CXXFLAGS"
8336 LIBS="$LIBS $XAPIAN_LIBS"
8337 ac_fn_cxx_check_header_mongrel "$LINENO" "xapian.h" "ac_cv_header_xapian_h" "$ac_includes_default"
8338 if test "x$ac_cv_header_xapian_h" = xyes; then :
8339
8340 else
8341 as_fn_error $? "Can't find the xapian headers -- please install libxapian-dev" "$LINENO" 5
8342 fi
8343
8344
8345 CXXFLAGS="$OLD_CXXFLAGS"
8346 LIBS="$OLD_LIBS"
8347
8348
8349 pkg_failed=no
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigc++-2.0" >&5
8351 $as_echo_n "checking for sigc++-2.0... " >&6; }
8352
8353 if test -n "$SIGC_CFLAGS"; then
8354 pkg_cv_SIGC_CFLAGS="$SIGC_CFLAGS"
8355 elif test -n "$PKG_CONFIG"; then
8356 if test -n "$PKG_CONFIG" && \
8357 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sigc++-2.0\""; } >&5
8358 ($PKG_CONFIG --exists --print-errors "sigc++-2.0") 2>&5
8359 ac_status=$?
8360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8361 test $ac_status = 0; }; then
8362 pkg_cv_SIGC_CFLAGS=`$PKG_CONFIG --cflags "sigc++-2.0" 2>/dev/null`
8363 test "x$?" != "x0" && pkg_failed=yes
8364 else
8365 pkg_failed=yes
8366 fi
8367 else
8368 pkg_failed=untried
8369 fi
8370 if test -n "$SIGC_LIBS"; then
8371 pkg_cv_SIGC_LIBS="$SIGC_LIBS"
8372 elif test -n "$PKG_CONFIG"; then
8373 if test -n "$PKG_CONFIG" && \
8374 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sigc++-2.0\""; } >&5
8375 ($PKG_CONFIG --exists --print-errors "sigc++-2.0") 2>&5
8376 ac_status=$?
8377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8378 test $ac_status = 0; }; then
8379 pkg_cv_SIGC_LIBS=`$PKG_CONFIG --libs "sigc++-2.0" 2>/dev/null`
8380 test "x$?" != "x0" && pkg_failed=yes
8381 else
8382 pkg_failed=yes
8383 fi
8384 else
8385 pkg_failed=untried
8386 fi
8387
8388
8389
8390 if test $pkg_failed = yes; then
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8392 $as_echo "no" >&6; }
8393
8394 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8395 _pkg_short_errors_supported=yes
8396 else
8397 _pkg_short_errors_supported=no
8398 fi
8399 if test $_pkg_short_errors_supported = yes; then
8400 SIGC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sigc++-2.0" 2>&1`
8401 else
8402 SIGC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sigc++-2.0" 2>&1`
8403 fi
8404 # Put the nasty error message in config.log where it belongs
8405 echo "$SIGC_PKG_ERRORS" >&5
8406
8407 as_fn_error $? "Package requirements (sigc++-2.0) were not met:
8408
8409 $SIGC_PKG_ERRORS
8410
8411 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8412 installed software in a non-standard prefix.
8413
8414 Alternatively, you may set the environment variables SIGC_CFLAGS
8415 and SIGC_LIBS to avoid the need to call pkg-config.
8416 See the pkg-config man page for more details." "$LINENO" 5
8417 elif test $pkg_failed = untried; then
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8419 $as_echo "no" >&6; }
8420 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8421 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8422 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8423 is in your PATH or set the PKG_CONFIG environment variable to the full
8424 path to pkg-config.
8425
8426 Alternatively, you may set the environment variables SIGC_CFLAGS
8427 and SIGC_LIBS to avoid the need to call pkg-config.
8428 See the pkg-config man page for more details.
8429
8430 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8431 See \`config.log' for more details" "$LINENO" 5; }
8432 else
8433 SIGC_CFLAGS=$pkg_cv_SIGC_CFLAGS
8434 SIGC_LIBS=$pkg_cv_SIGC_LIBS
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8436 $as_echo "yes" >&6; }
8437
8438 fi
8439
8440
8441 pkg_failed=no
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cwidget" >&5
8443 $as_echo_n "checking for cwidget... " >&6; }
8444
8445 if test -n "$CWIDGET_CFLAGS"; then
8446 pkg_cv_CWIDGET_CFLAGS="$CWIDGET_CFLAGS"
8447 elif test -n "$PKG_CONFIG"; then
8448 if test -n "$PKG_CONFIG" && \
8449 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cwidget\""; } >&5
8450 ($PKG_CONFIG --exists --print-errors "cwidget") 2>&5
8451 ac_status=$?
8452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8453 test $ac_status = 0; }; then
8454 pkg_cv_CWIDGET_CFLAGS=`$PKG_CONFIG --cflags "cwidget" 2>/dev/null`
8455 test "x$?" != "x0" && pkg_failed=yes
8456 else
8457 pkg_failed=yes
8458 fi
8459 else
8460 pkg_failed=untried
8461 fi
8462 if test -n "$CWIDGET_LIBS"; then
8463 pkg_cv_CWIDGET_LIBS="$CWIDGET_LIBS"
8464 elif test -n "$PKG_CONFIG"; then
8465 if test -n "$PKG_CONFIG" && \
8466 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cwidget\""; } >&5
8467 ($PKG_CONFIG --exists --print-errors "cwidget") 2>&5
8468 ac_status=$?
8469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8470 test $ac_status = 0; }; then
8471 pkg_cv_CWIDGET_LIBS=`$PKG_CONFIG --libs "cwidget" 2>/dev/null`
8472 test "x$?" != "x0" && pkg_failed=yes
8473 else
8474 pkg_failed=yes
8475 fi
8476 else
8477 pkg_failed=untried
8478 fi
8479
8480
8481
8482 if test $pkg_failed = yes; then
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8484 $as_echo "no" >&6; }
8485
8486 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8487 _pkg_short_errors_supported=yes
8488 else
8489 _pkg_short_errors_supported=no
8490 fi
8491 if test $_pkg_short_errors_supported = yes; then
8492 CWIDGET_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cwidget" 2>&1`
8493 else
8494 CWIDGET_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cwidget" 2>&1`
8495 fi
8496 # Put the nasty error message in config.log where it belongs
8497 echo "$CWIDGET_PKG_ERRORS" >&5
8498
8499 as_fn_error $? "Package requirements (cwidget) were not met:
8500
8501 $CWIDGET_PKG_ERRORS
8502
8503 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8504 installed software in a non-standard prefix.
8505
8506 Alternatively, you may set the environment variables CWIDGET_CFLAGS
8507 and CWIDGET_LIBS to avoid the need to call pkg-config.
8508 See the pkg-config man page for more details." "$LINENO" 5
8509 elif test $pkg_failed = untried; then
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8511 $as_echo "no" >&6; }
8512 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8513 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8514 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8515 is in your PATH or set the PKG_CONFIG environment variable to the full
8516 path to pkg-config.
8517
8518 Alternatively, you may set the environment variables CWIDGET_CFLAGS
8519 and CWIDGET_LIBS to avoid the need to call pkg-config.
8520 See the pkg-config man page for more details.
8521
8522 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8523 See \`config.log' for more details" "$LINENO" 5; }
8524 else
8525 CWIDGET_CFLAGS=$pkg_cv_CWIDGET_CFLAGS
8526 CWIDGET_LIBS=$pkg_cv_CWIDGET_LIBS
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8528 $as_echo "yes" >&6; }
8529
8530 fi
8531
8532
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost library headers individually (optional, default: yes)" >&5
8534 $as_echo_n "checking for Boost library headers individually (optional, default: yes)... " >&6; }
8535 if test x$DISABLE_BOOST_LIB_CHECKS != xyes; then :
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8537 $as_echo "yes" >&6; }
8538 else
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8540 $as_echo "no" >&6; }
8541
8542 fi
8543
8544 if test x$DISABLE_BOOST_LIB_CHECKS != xyes; then :
8545 for ac_header in boost/algorithm/string.hpp boost/algorithm/string/join.hpp boost/compressed_pair.hpp boost/flyweight/hashed_factory.hpp boost/flyweight.hpp boost/format.hpp boost/functional/hash.hpp boost/function.hpp boost/fusion/adapted/mpl.hpp boost/fusion/algorithm/iteration/fold.hpp boost/fusion/algorithm/iteration/for_each.hpp boost/fusion/algorithm/transformation/clear.hpp boost/fusion/algorithm/transformation/join.hpp boost/fusion/algorithm/transformation/push_back.hpp boost/fusion/algorithm/transformation/push_front.hpp boost/fusion/container/generation/make_vector.hpp boost/fusion/container/list.hpp boost/fusion/container/vector/convert.hpp boost/fusion/container/vector.hpp boost/fusion/functional/adapter/fused.hpp boost/fusion/include/join.hpp boost/fusion/include/mpl.hpp boost/fusion/include/sequence.hpp boost/fusion/iterator/equal_to.hpp boost/fusion/sequence.hpp boost/fusion/support/is_sequence.hpp boost/iostreams/copy.hpp boost/iostreams/device/file.hpp boost/iostreams/filter/gzip.hpp boost/iostreams/filtering_stream.hpp boost/iostreams/invert.hpp boost/iostreams/operations.hpp boost/iostreams/read.hpp boost/iostreams/seek.hpp boost/iostreams/stream.hpp boost/iostreams/write.hpp boost/lambda/bind.hpp boost/lexical_cast.hpp boost/mpl/begin.hpp boost/mpl/fold.hpp boost/mpl/front.hpp boost/mpl/transform.hpp boost/multi_index_container.hpp boost/multi_index/hashed_index.hpp boost/multi_index/member.hpp boost/multi_index/mem_fun.hpp boost/multi_index/random_access_index.hpp boost/multi_index/sequenced_index.hpp boost/numeric/conversion/cast.hpp boost/preprocessor/repetition/enum_binary_params.hpp boost/preprocessor/repetition/enum_params.hpp boost/preprocessor/repetition/repeat.hpp boost/range.hpp boost/test/unit_test.hpp boost/type_traits/is_same.hpp boost/unordered_map.hpp boost/unordered_set.hpp boost/variant.hpp
8546 do :
8547 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8548 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8549 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8550 cat >>confdefs.h <<_ACEOF
8551 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8552 _ACEOF
8553
8554
8555 else
8556 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8558 as_fn_error $? "Boost install not found, too old, or incomplete; install libboost-dev.
8559 See \`config.log' for more details" "$LINENO" 5; }
8560 fi
8561
8562 done
8563
8564
8565 fi
8566
8567
8568
8569 # Check whether --with-boost was given.
8570 if test "${with_boost+set}" = set; then :
8571 withval=$with_boost;
8572 case $withval in #(
8573 no) :
8574 want_boost="no";_AX_BOOST_BASE_boost_path="" ;; #(
8575 yes) :
8576 want_boost="yes";_AX_BOOST_BASE_boost_path="" ;; #(
8577 *) :
8578 want_boost="yes";_AX_BOOST_BASE_boost_path="$withval" ;;
8579 esac
8580
8581 else
8582 want_boost="yes"
8583 fi
8584
8585
8586
8587
8588 # Check whether --with-boost-libdir was given.
8589 if test "${with_boost_libdir+set}" = set; then :
8590 withval=$with_boost_libdir;
8591 if test -d "$withval"; then :
8592 _AX_BOOST_BASE_boost_lib_path="$withval"
8593 else
8594 as_fn_error $? "--with-boost-libdir expected directory name" "$LINENO" 5
8595 fi
8596
8597 else
8598 _AX_BOOST_BASE_boost_lib_path=""
8599 fi
8600
8601
8602 BOOST_LDFLAGS=""
8603 BOOST_CPPFLAGS=""
8604 if test "x$want_boost" = "xyes"; then :
8605
8606
8607 if test "x" = "x"; then :
8608 _AX_BOOST_BASE_TONUMERICVERSION_req="1.20.0"
8609 else
8610 _AX_BOOST_BASE_TONUMERICVERSION_req=""
8611 fi
8612 _AX_BOOST_BASE_TONUMERICVERSION_req_shorten=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '\([0-9]*\.[0-9]*\)'`
8613 _AX_BOOST_BASE_TONUMERICVERSION_req_major=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '\([0-9]*\)'`
8614 if test "x$_AX_BOOST_BASE_TONUMERICVERSION_req_major" = "x"; then :
8615 as_fn_error $? "You should at least specify libboost major version" "$LINENO" 5
8616 fi
8617 _AX_BOOST_BASE_TONUMERICVERSION_req_minor=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '[0-9]*\.\([0-9]*\)'`
8618 if test "x$_AX_BOOST_BASE_TONUMERICVERSION_req_minor" = "x"; then :
8619 _AX_BOOST_BASE_TONUMERICVERSION_req_minor="0"
8620 fi
8621 _AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
8622 if test "X$_AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor" = "X"; then :
8623 _AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor="0"
8624 fi
8625 _AX_BOOST_BASE_TONUMERICVERSION_RET=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req_major \* 100000 \+ $_AX_BOOST_BASE_TONUMERICVERSION_req_minor \* 100 \+ $_AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor`
8626 WANT_BOOST_VERSION=$_AX_BOOST_BASE_TONUMERICVERSION_RET
8627
8628 succeeded=no
8629
8630
8631
8632 case ${host_cpu} in #(
8633 x86_64) :
8634 libsubdirs="lib64 libx32 lib lib64" ;; #(
8635 ppc64|powerpc64|s390x|sparc64|aarch64|ppc64le|powerpc64le|riscv64) :
8636 libsubdirs="lib64 lib lib64" ;; #(
8637 *) :
8638 libsubdirs="lib"
8639 ;;
8640 esac
8641
8642 case ${host_cpu} in #(
8643 i?86) :
8644 multiarch_libsubdir="lib/i386-${host_os}" ;; #(
8645 *) :
8646 multiarch_libsubdir="lib/${host_cpu}-${host_os}"
8647 ;;
8648 esac
8649
8650 if test "x$_AX_BOOST_BASE_boost_path" != "x"; then :
8651
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= ($WANT_BOOST_VERSION) includes in \"$_AX_BOOST_BASE_boost_path/include\"" >&5
8653 $as_echo_n "checking for boostlib >= ($WANT_BOOST_VERSION) includes in \"$_AX_BOOST_BASE_boost_path/include\"... " >&6; }
8654 if test -d "$_AX_BOOST_BASE_boost_path/include" && test -r "$_AX_BOOST_BASE_boost_path/include"; then :
8655
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8657 $as_echo "yes" >&6; }
8658 BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path/include"
8659 for _AX_BOOST_BASE_boost_path_tmp in $multiarch_libsubdir $libsubdirs; do
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= ($WANT_BOOST_VERSION) lib path in \"$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp\"" >&5
8661 $as_echo_n "checking for boostlib >= ($WANT_BOOST_VERSION) lib path in \"$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp\"... " >&6; }
8662 if test -d "$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp" && test -r "$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp" ; then :
8663
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8665 $as_echo "yes" >&6; }
8666 BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp";
8667 break;
8668
8669 else
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8671 $as_echo "no" >&6; }
8672 fi
8673 done
8674 else
8675
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8677 $as_echo "no" >&6; }
8678 fi
8679
8680 else
8681
8682 if test X"$cross_compiling" = Xyes; then
8683 search_libsubdirs=$multiarch_libsubdir
8684 else
8685 search_libsubdirs="$multiarch_libsubdir $libsubdirs"
8686 fi
8687 for _AX_BOOST_BASE_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
8688 if test -d "$_AX_BOOST_BASE_boost_path_tmp/include/boost" && test -r "$_AX_BOOST_BASE_boost_path_tmp/include/boost" ; then
8689 for libsubdir in $search_libsubdirs ; do
8690 if ls "$_AX_BOOST_BASE_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
8691 done
8692 BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_path_tmp/$libsubdir"
8693 BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path_tmp/include"
8694 break;
8695 fi
8696 done
8697
8698 fi
8699
8700 if test "x$_AX_BOOST_BASE_boost_lib_path" != "x"; then :
8701 BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_lib_path"
8702 fi
8703
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= ($WANT_BOOST_VERSION)" >&5
8705 $as_echo_n "checking for boostlib >= ($WANT_BOOST_VERSION)... " >&6; }
8706 CPPFLAGS_SAVED="$CPPFLAGS"
8707 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
8708 export CPPFLAGS
8709
8710 LDFLAGS_SAVED="$LDFLAGS"
8711 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
8712 export LDFLAGS
8713
8714
8715 ac_ext=cpp
8716 ac_cpp='$CXXCPP $CPPFLAGS'
8717 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8718 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8719 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8720
8721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8722 /* end confdefs.h. */
8723
8724 #include <boost/version.hpp>
8725
8726 int
8727 main ()
8728 {
8729
8730 (void) ((void)sizeof(char[1 - 2*!!((BOOST_VERSION) < ($WANT_BOOST_VERSION))]));
8731
8732 ;
8733 return 0;
8734 }
8735 _ACEOF
8736 if ac_fn_cxx_try_compile "$LINENO"; then :
8737
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8739 $as_echo "yes" >&6; }
8740 succeeded=yes
8741 found_system=yes
8742
8743 fi
8744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8745 ac_ext=cpp
8746 ac_cpp='$CXXCPP $CPPFLAGS'
8747 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8748 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8749 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8750
8751
8752
8753
8754 if test "x$succeeded" != "xyes" ; then
8755 CPPFLAGS="$CPPFLAGS_SAVED"
8756 LDFLAGS="$LDFLAGS_SAVED"
8757 BOOST_CPPFLAGS=
8758 if test -z "$_AX_BOOST_BASE_boost_lib_path" ; then
8759 BOOST_LDFLAGS=
8760 fi
8761 _version=0
8762 if test -n "$_AX_BOOST_BASE_boost_path" ; then
8763 if test -d "$_AX_BOOST_BASE_boost_path" && test -r "$_AX_BOOST_BASE_boost_path"; then
8764 for i in `ls -d $_AX_BOOST_BASE_boost_path/include/boost-* 2>/dev/null`; do
8765 _version_tmp=`echo $i | sed "s#$_AX_BOOST_BASE_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
8766 V_CHECK=`expr $_version_tmp \> $_version`
8767 if test "x$V_CHECK" = "x1" ; then
8768 _version=$_version_tmp
8769 fi
8770 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
8771 BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path/include/boost-$VERSION_UNDERSCORE"
8772 done
8773 if test -z "$BOOST_CPPFLAGS"; then
8774 if test -d "$_AX_BOOST_BASE_boost_path/boost" && test -r "$_AX_BOOST_BASE_boost_path/boost"; then
8775 BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path"
8776 fi
8777 fi
8778 if test -n "$BOOST_CPPFLAGS" && test -z "$BOOST_LDFLAGS"; then
8779 for libsubdir in $libsubdirs ; do
8780 if ls "$_AX_BOOST_BASE_boost_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
8781 done
8782 BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_path/$libsubdir"
8783 fi
8784 fi
8785 else
8786 if test "x$cross_compiling" != "xyes" ; then
8787 for _AX_BOOST_BASE_boost_path in /usr /usr/local /opt /opt/local ; do
8788 if test -d "$_AX_BOOST_BASE_boost_path" && test -r "$_AX_BOOST_BASE_boost_path" ; then
8789 for i in `ls -d $_AX_BOOST_BASE_boost_path/include/boost-* 2>/dev/null`; do
8790 _version_tmp=`echo $i | sed "s#$_AX_BOOST_BASE_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
8791 V_CHECK=`expr $_version_tmp \> $_version`
8792 if test "x$V_CHECK" = "x1" ; then
8793 _version=$_version_tmp
8794 best_path=$_AX_BOOST_BASE_boost_path
8795 fi
8796 done
8797 fi
8798 done
8799
8800 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
8801 BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
8802 if test -z "$_AX_BOOST_BASE_boost_lib_path" ; then
8803 for libsubdir in $libsubdirs ; do
8804 if ls "$best_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
8805 done
8806 BOOST_LDFLAGS="-L$best_path/$libsubdir"
8807 fi
8808 fi
8809
8810 if test -n "$BOOST_ROOT" ; then
8811 for libsubdir in $libsubdirs ; do
8812 if ls "$BOOST_ROOT/stage/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
8813 done
8814 if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/$libsubdir" && test -r "$BOOST_ROOT/stage/$libsubdir"; then
8815 version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
8816 stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
8817 stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
8818 V_CHECK=`expr $stage_version_shorten \>\= $_version`
8819 if test "x$V_CHECK" = "x1" && test -z "$_AX_BOOST_BASE_boost_lib_path" ; then
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: We will use a staged boost library from $BOOST_ROOT" >&5
8821 $as_echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
8822 BOOST_CPPFLAGS="-I$BOOST_ROOT"
8823 BOOST_LDFLAGS="-L$BOOST_ROOT/stage/$libsubdir"
8824 fi
8825 fi
8826 fi
8827 fi
8828
8829 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
8830 export CPPFLAGS
8831 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
8832 export LDFLAGS
8833
8834 ac_ext=cpp
8835 ac_cpp='$CXXCPP $CPPFLAGS'
8836 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8837 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8838 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8839
8840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8841 /* end confdefs.h. */
8842
8843 #include <boost/version.hpp>
8844
8845 int
8846 main ()
8847 {
8848
8849 (void) ((void)sizeof(char[1 - 2*!!((BOOST_VERSION) < ($WANT_BOOST_VERSION))]));
8850
8851 ;
8852 return 0;
8853 }
8854 _ACEOF
8855 if ac_fn_cxx_try_compile "$LINENO"; then :
8856
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8858 $as_echo "yes" >&6; }
8859 succeeded=yes
8860 found_system=yes
8861
8862 fi
8863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8864 ac_ext=cpp
8865 ac_cpp='$CXXCPP $CPPFLAGS'
8866 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8867 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8868 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8869
8870 fi
8871
8872 if test "x$succeeded" != "xyes" ; then
8873 if test "x$_version" = "x0" ; then
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: We could not detect the boost libraries (version or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&5
8875 $as_echo "$as_me: We could not detect the boost libraries (version or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&6;}
8876 else
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5
8878 $as_echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
8879 fi
8880 # execute ACTION-IF-NOT-FOUND (if present):
8881 :
8882 else
8883
8884 $as_echo "#define HAVE_BOOST /**/" >>confdefs.h
8885
8886 # execute ACTION-IF-FOUND (if present):
8887 :
8888 fi
8889
8890 CPPFLAGS="$CPPFLAGS_SAVED"
8891 LDFLAGS="$LDFLAGS_SAVED"
8892
8893
8894 fi
8895
8896
8897
8898
8899
8900 # Check whether --with-boost-iostreams was given.
8901 if test "${with_boost_iostreams+set}" = set; then :
8902 withval=$with_boost_iostreams;
8903 if test "$withval" = "no"; then
8904 want_boost="no"
8905 elif test "$withval" = "yes"; then
8906 want_boost="yes"
8907 ax_boost_user_iostreams_lib=""
8908 else
8909 want_boost="yes"
8910 ax_boost_user_iostreams_lib="$withval"
8911 fi
8912
8913 else
8914 want_boost="yes"
8915
8916 fi
8917
8918
8919 if test "x$want_boost" = "xyes"; then
8920
8921 CPPFLAGS_SAVED="$CPPFLAGS"
8922 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
8923 export CPPFLAGS
8924
8925 LDFLAGS_SAVED="$LDFLAGS"
8926 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
8927 export LDFLAGS
8928
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::IOStreams library is available" >&5
8930 $as_echo_n "checking whether the Boost::IOStreams library is available... " >&6; }
8931 if ${ax_cv_boost_iostreams+:} false; then :
8932 $as_echo_n "(cached) " >&6
8933 else
8934 ac_ext=cpp
8935 ac_cpp='$CXXCPP $CPPFLAGS'
8936 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8937 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8938 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8939
8940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8941 /* end confdefs.h. */
8942 #include <boost/iostreams/filtering_stream.hpp>
8943 #include <boost/range/iterator_range.hpp>
8944
8945 int
8946 main ()
8947 {
8948 std::string input = "Hello World!";
8949 namespace io = boost::iostreams;
8950 io::filtering_istream in(boost::make_iterator_range(input));
8951 return 0;
8952
8953 ;
8954 return 0;
8955 }
8956 _ACEOF
8957 if ac_fn_cxx_try_compile "$LINENO"; then :
8958 ax_cv_boost_iostreams=yes
8959 else
8960 ax_cv_boost_iostreams=no
8961 fi
8962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8963 ac_ext=cpp
8964 ac_cpp='$CXXCPP $CPPFLAGS'
8965 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8966 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8967 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8968
8969
8970 fi
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_iostreams" >&5
8972 $as_echo "$ax_cv_boost_iostreams" >&6; }
8973 if test "x$ax_cv_boost_iostreams" = "xyes"; then
8974
8975 $as_echo "#define HAVE_BOOST_IOSTREAMS /**/" >>confdefs.h
8976
8977 BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
8978 if test "x$ax_boost_user_iostreams_lib" = "x"; then
8979 for libextension in `ls $BOOSTLIBDIR/libboost_iostreams*.so* $BOOSTLIBDIR/libboost_iostream*.dylib* $BOOSTLIBDIR/libboost_iostreams*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_iostreams.*\)\.so.*$;\1;' -e 's;^lib\(boost_iostream.*\)\.dylib.*$;\1;' -e 's;^lib\(boost_iostreams.*\)\.a.*$;\1;'` ; do
8980 ax_lib=${libextension}
8981 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
8983 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
8984 if eval \${$as_ac_Lib+:} false; then :
8985 $as_echo_n "(cached) " >&6
8986 else
8987 ac_check_lib_save_LIBS=$LIBS
8988 LIBS="-l$ax_lib $LIBS"
8989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8990 /* end confdefs.h. */
8991
8992 /* Override any GCC internal prototype to avoid an error.
8993 Use char because int might match the return type of a GCC
8994 builtin and then its argument prototype would still apply. */
8995 #ifdef __cplusplus
8996 extern "C"
8997 #endif
8998 char exit ();
8999 int
9000 main ()
9001 {
9002 return exit ();
9003 ;
9004 return 0;
9005 }
9006 _ACEOF
9007 if ac_fn_cxx_try_link "$LINENO"; then :
9008 eval "$as_ac_Lib=yes"
9009 else
9010 eval "$as_ac_Lib=no"
9011 fi
9012 rm -f core conftest.err conftest.$ac_objext \
9013 conftest$ac_exeext conftest.$ac_ext
9014 LIBS=$ac_check_lib_save_LIBS
9015 fi
9016 eval ac_res=\$$as_ac_Lib
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9018 $as_echo "$ac_res" >&6; }
9019 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
9020 BOOST_IOSTREAMS_LIB="-l$ax_lib"; link_iostreams="yes"; break
9021 else
9022 link_iostreams="no"
9023 fi
9024
9025 done
9026 if test "x$link_iostreams" != "xyes"; then
9027 for libextension in `ls $BOOSTLIBDIR/boost_iostreams*.dll* $BOOSTLIBDIR/boost_iostreams*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_iostreams.*\)\.dll.*$;\1;' -e 's;^\(boost_iostreams.*\)\.a.*$;\1;'` ; do
9028 ax_lib=${libextension}
9029 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
9031 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
9032 if eval \${$as_ac_Lib+:} false; then :
9033 $as_echo_n "(cached) " >&6
9034 else
9035 ac_check_lib_save_LIBS=$LIBS
9036 LIBS="-l$ax_lib $LIBS"
9037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9038 /* end confdefs.h. */
9039
9040 /* Override any GCC internal prototype to avoid an error.
9041 Use char because int might match the return type of a GCC
9042 builtin and then its argument prototype would still apply. */
9043 #ifdef __cplusplus
9044 extern "C"
9045 #endif
9046 char exit ();
9047 int
9048 main ()
9049 {
9050 return exit ();
9051 ;
9052 return 0;
9053 }
9054 _ACEOF
9055 if ac_fn_cxx_try_link "$LINENO"; then :
9056 eval "$as_ac_Lib=yes"
9057 else
9058 eval "$as_ac_Lib=no"
9059 fi
9060 rm -f core conftest.err conftest.$ac_objext \
9061 conftest$ac_exeext conftest.$ac_ext
9062 LIBS=$ac_check_lib_save_LIBS
9063 fi
9064 eval ac_res=\$$as_ac_Lib
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9066 $as_echo "$ac_res" >&6; }
9067 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
9068 BOOST_IOSTREAMS_LIB="-l$ax_lib"; link_iostreams="yes"; break
9069 else
9070 link_iostreams="no"
9071 fi
9072
9073 done
9074 fi
9075
9076 else
9077 for ax_lib in $ax_boost_user_iostreams_lib boost_iostreams-$ax_boost_user_iostreams_lib; do
9078 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_main" | $as_tr_sh`
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5
9080 $as_echo_n "checking for main in -l$ax_lib... " >&6; }
9081 if eval \${$as_ac_Lib+:} false; then :
9082 $as_echo_n "(cached) " >&6
9083 else
9084 ac_check_lib_save_LIBS=$LIBS
9085 LIBS="-l$ax_lib $LIBS"
9086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9087 /* end confdefs.h. */
9088
9089
9090 int
9091 main ()
9092 {
9093 return main ();
9094 ;
9095 return 0;
9096 }
9097 _ACEOF
9098 if ac_fn_cxx_try_link "$LINENO"; then :
9099 eval "$as_ac_Lib=yes"
9100 else
9101 eval "$as_ac_Lib=no"
9102 fi
9103 rm -f core conftest.err conftest.$ac_objext \
9104 conftest$ac_exeext conftest.$ac_ext
9105 LIBS=$ac_check_lib_save_LIBS
9106 fi
9107 eval ac_res=\$$as_ac_Lib
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9109 $as_echo "$ac_res" >&6; }
9110 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
9111 BOOST_IOSTREAMS_LIB="-l$ax_lib"; link_iostreams="yes"; break
9112 else
9113 link_iostreams="no"
9114 fi
9115
9116 done
9117
9118 fi
9119 if test "x$ax_lib" = "x"; then
9120 as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
9121 fi
9122 if test "x$link_iostreams" != "xyes"; then
9123 as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
9124 fi
9125 fi
9126
9127 CPPFLAGS="$CPPFLAGS_SAVED"
9128 LDFLAGS="$LDFLAGS_SAVED"
9129 fi
9130
9131
9132
9133 # Check whether --with-boost-system was given.
9134 if test "${with_boost_system+set}" = set; then :
9135 withval=$with_boost_system;
9136 if test "$withval" = "no"; then
9137 want_boost="no"
9138 elif test "$withval" = "yes"; then
9139 want_boost="yes"
9140 ax_boost_user_system_lib=""
9141 else
9142 want_boost="yes"
9143 ax_boost_user_system_lib="$withval"
9144 fi
9145
9146 else
9147 want_boost="yes"
9148
9149 fi
9150
9151
9152 if test "x$want_boost" = "xyes"; then
9153
9154
9155 CPPFLAGS_SAVED="$CPPFLAGS"
9156 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
9157 export CPPFLAGS
9158
9159 LDFLAGS_SAVED="$LDFLAGS"
9160 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
9161 export LDFLAGS
9162
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::System library is available" >&5
9164 $as_echo_n "checking whether the Boost::System library is available... " >&6; }
9165 if ${ax_cv_boost_system+:} false; then :
9166 $as_echo_n "(cached) " >&6
9167 else
9168 ac_ext=cpp
9169 ac_cpp='$CXXCPP $CPPFLAGS'
9170 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9171 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9172 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9173
9174 CXXFLAGS_SAVE=$CXXFLAGS
9175 CXXFLAGS=
9176
9177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9178 /* end confdefs.h. */
9179 #include <boost/system/error_code.hpp>
9180 int
9181 main ()
9182 {
9183 boost::system::error_category *a = 0;
9184 ;
9185 return 0;
9186 }
9187 _ACEOF
9188 if ac_fn_cxx_try_compile "$LINENO"; then :
9189 ax_cv_boost_system=yes
9190 else
9191 ax_cv_boost_system=no
9192 fi
9193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9194 CXXFLAGS=$CXXFLAGS_SAVE
9195 ac_ext=cpp
9196 ac_cpp='$CXXCPP $CPPFLAGS'
9197 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9198 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9199 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9200
9201
9202 fi
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_system" >&5
9204 $as_echo "$ax_cv_boost_system" >&6; }
9205 if test "x$ax_cv_boost_system" = "xyes"; then
9206
9207
9208
9209 $as_echo "#define HAVE_BOOST_SYSTEM /**/" >>confdefs.h
9210
9211 BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
9212
9213 LDFLAGS_SAVE=$LDFLAGS
9214 if test "x$ax_boost_user_system_lib" = "x"; then
9215 for libextension in `ls -r $BOOSTLIBDIR/libboost_system* 2>/dev/null | sed 's,.*/lib,,' | sed 's,\..*,,'` ; do
9216 ax_lib=${libextension}
9217 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
9219 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
9220 if eval \${$as_ac_Lib+:} false; then :
9221 $as_echo_n "(cached) " >&6
9222 else
9223 ac_check_lib_save_LIBS=$LIBS
9224 LIBS="-l$ax_lib $LIBS"
9225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9226 /* end confdefs.h. */
9227
9228 /* Override any GCC internal prototype to avoid an error.
9229 Use char because int might match the return type of a GCC
9230 builtin and then its argument prototype would still apply. */
9231 #ifdef __cplusplus
9232 extern "C"
9233 #endif
9234 char exit ();
9235 int
9236 main ()
9237 {
9238 return exit ();
9239 ;
9240 return 0;
9241 }
9242 _ACEOF
9243 if ac_fn_cxx_try_link "$LINENO"; then :
9244 eval "$as_ac_Lib=yes"
9245 else
9246 eval "$as_ac_Lib=no"
9247 fi
9248 rm -f core conftest.err conftest.$ac_objext \
9249 conftest$ac_exeext conftest.$ac_ext
9250 LIBS=$ac_check_lib_save_LIBS
9251 fi
9252 eval ac_res=\$$as_ac_Lib
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9254 $as_echo "$ac_res" >&6; }
9255 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
9256 BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
9257 else
9258 link_system="no"
9259 fi
9260
9261 done
9262 if test "x$link_system" != "xyes"; then
9263 for libextension in `ls -r $BOOSTLIBDIR/boost_system* 2>/dev/null | sed 's,.*/,,' | sed -e 's,\..*,,'` ; do
9264 ax_lib=${libextension}
9265 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
9267 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
9268 if eval \${$as_ac_Lib+:} false; then :
9269 $as_echo_n "(cached) " >&6
9270 else
9271 ac_check_lib_save_LIBS=$LIBS
9272 LIBS="-l$ax_lib $LIBS"
9273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9274 /* end confdefs.h. */
9275
9276 /* Override any GCC internal prototype to avoid an error.
9277 Use char because int might match the return type of a GCC
9278 builtin and then its argument prototype would still apply. */
9279 #ifdef __cplusplus
9280 extern "C"
9281 #endif
9282 char exit ();
9283 int
9284 main ()
9285 {
9286 return exit ();
9287 ;
9288 return 0;
9289 }
9290 _ACEOF
9291 if ac_fn_cxx_try_link "$LINENO"; then :
9292 eval "$as_ac_Lib=yes"
9293 else
9294 eval "$as_ac_Lib=no"
9295 fi
9296 rm -f core conftest.err conftest.$ac_objext \
9297 conftest$ac_exeext conftest.$ac_ext
9298 LIBS=$ac_check_lib_save_LIBS
9299 fi
9300 eval ac_res=\$$as_ac_Lib
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9302 $as_echo "$ac_res" >&6; }
9303 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
9304 BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
9305 else
9306 link_system="no"
9307 fi
9308
9309 done
9310 fi
9311
9312 else
9313 for ax_lib in $ax_boost_user_system_lib boost_system-$ax_boost_user_system_lib; do
9314 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
9316 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
9317 if eval \${$as_ac_Lib+:} false; then :
9318 $as_echo_n "(cached) " >&6
9319 else
9320 ac_check_lib_save_LIBS=$LIBS
9321 LIBS="-l$ax_lib $LIBS"
9322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9323 /* end confdefs.h. */
9324
9325 /* Override any GCC internal prototype to avoid an error.
9326 Use char because int might match the return type of a GCC
9327 builtin and then its argument prototype would still apply. */
9328 #ifdef __cplusplus
9329 extern "C"
9330 #endif
9331 char exit ();
9332 int
9333 main ()
9334 {
9335 return exit ();
9336 ;
9337 return 0;
9338 }
9339 _ACEOF
9340 if ac_fn_cxx_try_link "$LINENO"; then :
9341 eval "$as_ac_Lib=yes"
9342 else
9343 eval "$as_ac_Lib=no"
9344 fi
9345 rm -f core conftest.err conftest.$ac_objext \
9346 conftest$ac_exeext conftest.$ac_ext
9347 LIBS=$ac_check_lib_save_LIBS
9348 fi
9349 eval ac_res=\$$as_ac_Lib
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9351 $as_echo "$ac_res" >&6; }
9352 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
9353 BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
9354 else
9355 link_system="no"
9356 fi
9357
9358 done
9359
9360 fi
9361 if test "x$ax_lib" = "x"; then
9362 as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
9363 fi
9364 if test "x$link_system" = "xno"; then
9365 as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
9366 fi
9367 fi
9368
9369 CPPFLAGS="$CPPFLAGS_SAVED"
9370 LDFLAGS="$LDFLAGS_SAVED"
9371 fi
9372
9373
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the calling convertion of boost::fusion::fold" >&5
9375 $as_echo_n "checking the calling convertion of boost::fusion::fold... " >&6; }
9376 # Test the order of arguments to the function passed into fold; this
9377 # was randomly changed in Boost version 1.42 (because no-one needs a
9378 # stable API, or something).
9379 #
9380 # For the test to work at compile-time, the types of the arguments to
9381 # fold must be incompatible; the actual operations performed are
9382 # irrelevant. My fold operator takes an int and a class, and returns
9383 # the empty string.
9384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9385 /* end confdefs.h. */
9386
9387 #include <boost/fusion/algorithm/iteration/fold.hpp>
9388 #include <boost/fusion/container/vector.hpp>
9389 #include <boost/fusion/include/fold.hpp>
9390 #include <boost/fusion/include/vector.hpp>
9391
9392 struct T
9393 {
9394 };
9395
9396 struct F
9397 {
9398 T operator()(const T &t, int n) const
9399 {
9400 return T();
9401 }
9402 typedef T result_type;
9403 };
9404
9405 int main(int argc, char **argv)
9406 {
9407 boost::fusion::vector<int, int, int> v(5, 3, 1);
9408 boost::fusion::fold(v, T(), F());
9409 }
9410 _ACEOF
9411 if ac_fn_cxx_try_compile "$LINENO"; then :
9412
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: State first, then value" >&5
9414 $as_echo "State first, then value" >&6; }
9415
9416 $as_echo "#define BOOST_FUSION_FOLD_STATE_BEFORE_VALUE /**/" >>confdefs.h
9417
9418
9419 else
9420
9421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9422 /* end confdefs.h. */
9423
9424 #include <boost/fusion/algorithm/iteration/fold.hpp>
9425 #include <boost/fusion/container/vector.hpp>
9426 #include <boost/fusion/include/fold.hpp>
9427 #include <boost/fusion/include/vector.hpp>
9428
9429 struct T
9430 {
9431 };
9432
9433 struct F
9434 {
9435 T operator()(int n, const T &t) const
9436 {
9437 return T();
9438 }
9439 typedef T result_type;
9440 };
9441
9442 int main(int argc, char **argv)
9443 {
9444 boost::fusion::vector<int, int, int> v(5, 3, 1);
9445 boost::fusion::fold(v, T(), F());
9446 }
9447
9448 _ACEOF
9449 if ac_fn_cxx_try_compile "$LINENO"; then :
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Value first, then state" >&5
9451 $as_echo "Value first, then state" >&6; }
9452 else
9453 as_fn_error $? "Can't figure out how to invoke boost::fusion::fold" "$LINENO" 5
9454 fi
9455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9456
9457 fi
9458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9459
9460
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of the runtime library for Boost.Test" >&5
9462 $as_echo_n "checking the name of the runtime library for Boost.Test... " >&6; }
9463
9464
9465 ##### Boost.Test check #####
9466 OLDLIBS="$LIBS"
9467 for libname in boost_unit_test_framework-mt boost_unit_test_framework
9468 do
9469 LIBS="$LIBS -l$libname"
9470
9471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9472 /* end confdefs.h. */
9473
9474 #define BOOST_TEST_DYN_LINK
9475 #define BOOST_TEST_NO_MAIN
9476
9477 #include <boost/test/unit_test.hpp>
9478
9479 bool init_unit_test()
9480 {
9481 return true;
9482 }
9483
9484 int main(int argc, char **argv)
9485 {
9486 return boost::unit_test::unit_test_main(init_unit_test, argc, argv);
9487 }
9488
9489 _ACEOF
9490 if ac_fn_cxx_try_link "$LINENO"; then :
9491 BOOST_UNIT_TEST_LIBS="-l$libname"
9492 fi
9493 rm -f core conftest.err conftest.$ac_objext \
9494 conftest$ac_exeext conftest.$ac_ext
9495
9496 LIBS="$OLDLIBS"
9497 done
9498
9499 if test -z "$BOOST_UNIT_TEST_LIBS"
9500 then
9501 # TODO: just disable the unit tests?
9502 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9503 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9504 as_fn_error $? "Can't find the Boost unit test library; install libboost-test-dev.
9505 See \`config.log' for more details" "$LINENO" 5; }
9506 else
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$BOOST_UNIT_TEST_LIBS\"" >&5
9508 $as_echo "\"$BOOST_UNIT_TEST_LIBS\"" >&6; }
9509 fi
9510
9511
9512
9513 ##### End Boost.Test check #####
9514
9515 ##### Copy gmock inside source #####
9516 ac_config_commands="$ac_config_commands copy-gtest"
9517
9518 ac_config_commands="$ac_config_commands copy-gmock"
9519
9520
9521
9522 ##### Check for Google Mock #####
9523
9524
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link gmock" >&5
9526 $as_echo_n "checking how to link gmock... " >&6; }
9527
9528 BUILD_LOCAL_GMOCK=0
9529
9530 OLD_LIBS="$LIBS"
9531 LIBS="$LIBS -lgmock"
9532
9533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9534 /* end confdefs.h. */
9535
9536 #include <gmock/gmock.h>
9537
9538 int main(int argc, char **argv)
9539 {
9540 return 0;
9541 }
9542 _ACEOF
9543 if ac_fn_cxx_try_link "$LINENO"; then :
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gmock is in in library path" >&5
9545 $as_echo "gmock is in in library path" >&6; }
9546
9547 else
9548 LIBS="$OLD_LIBS -lpthread"
9549 OLD_CPPFLAGS="$CPPFLAGS"
9550 CPPFLAGS="$CPPFLAGS -I/usr/src/googletest/googletest -I/usr/src/googletest/googlemock"
9551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9552 /* end confdefs.h. */
9553
9554 #include <src/gtest-all.cc>
9555 #include <src/gmock-all.cc>
9556
9557 int main(int argc, char **argv)
9558 {
9559 return 0;
9560 }
9561 _ACEOF
9562 if ac_fn_cxx_try_link "$LINENO"; then :
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: source is in /usr/src/googletest/googlemock" >&5
9564 $as_echo "source is in /usr/src/googletest/googlemock" >&6; }
9565 BUILD_LOCAL_GMOCK=1
9566 else
9567 as_fn_error $? "Can't figure out where Google Mock lives; either install the google-mock package or place the library in the link path" "$LINENO" 5
9568 fi
9569 rm -f core conftest.err conftest.$ac_objext \
9570 conftest$ac_exeext conftest.$ac_ext
9571 CPPFLAGS="$OLD_CPPFLAGS"
9572 LIBS="$OLD_LIBS"
9573 fi
9574 rm -f core conftest.err conftest.$ac_objext \
9575 conftest$ac_exeext conftest.$ac_ext
9576
9577 ##### End Google Mock check #####
9578
9579
9580 pkg_failed=no
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3" >&5
9582 $as_echo_n "checking for sqlite3... " >&6; }
9583
9584 if test -n "$SQLITE3_CFLAGS"; then
9585 pkg_cv_SQLITE3_CFLAGS="$SQLITE3_CFLAGS"
9586 elif test -n "$PKG_CONFIG"; then
9587 if test -n "$PKG_CONFIG" && \
9588 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
9589 ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
9590 ac_status=$?
9591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9592 test $ac_status = 0; }; then
9593 pkg_cv_SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
9594 test "x$?" != "x0" && pkg_failed=yes
9595 else
9596 pkg_failed=yes
9597 fi
9598 else
9599 pkg_failed=untried
9600 fi
9601 if test -n "$SQLITE3_LIBS"; then
9602 pkg_cv_SQLITE3_LIBS="$SQLITE3_LIBS"
9603 elif test -n "$PKG_CONFIG"; then
9604 if test -n "$PKG_CONFIG" && \
9605 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
9606 ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
9607 ac_status=$?
9608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9609 test $ac_status = 0; }; then
9610 pkg_cv_SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
9611 test "x$?" != "x0" && pkg_failed=yes
9612 else
9613 pkg_failed=yes
9614 fi
9615 else
9616 pkg_failed=untried
9617 fi
9618
9619
9620
9621 if test $pkg_failed = yes; then
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9623 $as_echo "no" >&6; }
9624
9625 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9626 _pkg_short_errors_supported=yes
9627 else
9628 _pkg_short_errors_supported=no
9629 fi
9630 if test $_pkg_short_errors_supported = yes; then
9631 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3" 2>&1`
9632 else
9633 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3" 2>&1`
9634 fi
9635 # Put the nasty error message in config.log where it belongs
9636 echo "$SQLITE3_PKG_ERRORS" >&5
9637
9638 as_fn_error $? "Package requirements (sqlite3) were not met:
9639
9640 $SQLITE3_PKG_ERRORS
9641
9642 Consider adjusting the PKG_CONFIG_PATH environment variable if you
9643 installed software in a non-standard prefix.
9644
9645 Alternatively, you may set the environment variables SQLITE3_CFLAGS
9646 and SQLITE3_LIBS to avoid the need to call pkg-config.
9647 See the pkg-config man page for more details." "$LINENO" 5
9648 elif test $pkg_failed = untried; then
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9650 $as_echo "no" >&6; }
9651 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9652 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9653 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
9654 is in your PATH or set the PKG_CONFIG environment variable to the full
9655 path to pkg-config.
9656
9657 Alternatively, you may set the environment variables SQLITE3_CFLAGS
9658 and SQLITE3_LIBS to avoid the need to call pkg-config.
9659 See the pkg-config man page for more details.
9660
9661 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
9662 See \`config.log' for more details" "$LINENO" 5; }
9663 else
9664 SQLITE3_CFLAGS=$pkg_cv_SQLITE3_CFLAGS
9665 SQLITE3_LIBS=$pkg_cv_SQLITE3_LIBS
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9667 $as_echo "yes" >&6; }
9668
9669 fi
9670
9671
9672 fi
9673 if test x$BUILD_LOCAL_GMOCK = x1; then
9674 BUILD_LOCAL_GMOCK_TRUE=
9675 BUILD_LOCAL_GMOCK_FALSE='#'
9676 else
9677 BUILD_LOCAL_GMOCK_TRUE='#'
9678 BUILD_LOCAL_GMOCK_FALSE=
9679 fi
9680
9681
9682 WANT_HAVE_GTK=0
9683 # Check whether --enable-gtk was given.
9684 if test "${enable_gtk+set}" = set; then :
9685 enableval=$enable_gtk; if test x$enableval = xyes
9686 then
9687 if test "x$enable_aptitude" = xno
9688 then
9689 as_fn_error $? "Can not build the GTK+ frontend because --disable-aptitude." "$LINENO" 5
9690 fi
9691 WANT_HAVE_GTK=1
9692 else
9693 WANT_HAVE_GTK=
9694 fi
9695 fi
9696
9697
9698
9699 HAVE_GTK=0
9700 if test x$WANT_HAVE_GTK = x1; then :
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing for the libraries needed to build the GTK+ frontend." >&5
9702 $as_echo "$as_me: Testing for the libraries needed to build the GTK+ frontend." >&6;}
9703
9704 HAVE_GTK=1
9705
9706 pkg_failed=no
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibmm-2.4" >&5
9708 $as_echo_n "checking for glibmm-2.4... " >&6; }
9709
9710 if test -n "$GLIBMM_CFLAGS"; then
9711 pkg_cv_GLIBMM_CFLAGS="$GLIBMM_CFLAGS"
9712 elif test -n "$PKG_CONFIG"; then
9713 if test -n "$PKG_CONFIG" && \
9714 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glibmm-2.4\""; } >&5
9715 ($PKG_CONFIG --exists --print-errors "glibmm-2.4") 2>&5
9716 ac_status=$?
9717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9718 test $ac_status = 0; }; then
9719 pkg_cv_GLIBMM_CFLAGS=`$PKG_CONFIG --cflags "glibmm-2.4" 2>/dev/null`
9720 test "x$?" != "x0" && pkg_failed=yes
9721 else
9722 pkg_failed=yes
9723 fi
9724 else
9725 pkg_failed=untried
9726 fi
9727 if test -n "$GLIBMM_LIBS"; then
9728 pkg_cv_GLIBMM_LIBS="$GLIBMM_LIBS"
9729 elif test -n "$PKG_CONFIG"; then
9730 if test -n "$PKG_CONFIG" && \
9731 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glibmm-2.4\""; } >&5
9732 ($PKG_CONFIG --exists --print-errors "glibmm-2.4") 2>&5
9733 ac_status=$?
9734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9735 test $ac_status = 0; }; then
9736 pkg_cv_GLIBMM_LIBS=`$PKG_CONFIG --libs "glibmm-2.4" 2>/dev/null`
9737 test "x$?" != "x0" && pkg_failed=yes
9738 else
9739 pkg_failed=yes
9740 fi
9741 else
9742 pkg_failed=untried
9743 fi
9744
9745
9746
9747 if test $pkg_failed = yes; then
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9749 $as_echo "no" >&6; }
9750
9751 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9752 _pkg_short_errors_supported=yes
9753 else
9754 _pkg_short_errors_supported=no
9755 fi
9756 if test $_pkg_short_errors_supported = yes; then
9757 GLIBMM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glibmm-2.4" 2>&1`
9758 else
9759 GLIBMM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glibmm-2.4" 2>&1`
9760 fi
9761 # Put the nasty error message in config.log where it belongs
9762 echo "$GLIBMM_PKG_ERRORS" >&5
9763
9764 HAVE_GTK=
9765 elif test $pkg_failed = untried; then
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9767 $as_echo "no" >&6; }
9768 HAVE_GTK=
9769 else
9770 GLIBMM_CFLAGS=$pkg_cv_GLIBMM_CFLAGS
9771 GLIBMM_LIBS=$pkg_cv_GLIBMM_LIBS
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9773 $as_echo "yes" >&6; }
9774
9775 fi
9776
9777 pkg_failed=no
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gthread-2.0" >&5
9779 $as_echo_n "checking for gthread-2.0... " >&6; }
9780
9781 if test -n "$GTHREAD_CFLAGS"; then
9782 pkg_cv_GTHREAD_CFLAGS="$GTHREAD_CFLAGS"
9783 elif test -n "$PKG_CONFIG"; then
9784 if test -n "$PKG_CONFIG" && \
9785 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0\""; } >&5
9786 ($PKG_CONFIG --exists --print-errors "gthread-2.0") 2>&5
9787 ac_status=$?
9788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9789 test $ac_status = 0; }; then
9790 pkg_cv_GTHREAD_CFLAGS=`$PKG_CONFIG --cflags "gthread-2.0" 2>/dev/null`
9791 test "x$?" != "x0" && pkg_failed=yes
9792 else
9793 pkg_failed=yes
9794 fi
9795 else
9796 pkg_failed=untried
9797 fi
9798 if test -n "$GTHREAD_LIBS"; then
9799 pkg_cv_GTHREAD_LIBS="$GTHREAD_LIBS"
9800 elif test -n "$PKG_CONFIG"; then
9801 if test -n "$PKG_CONFIG" && \
9802 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0\""; } >&5
9803 ($PKG_CONFIG --exists --print-errors "gthread-2.0") 2>&5
9804 ac_status=$?
9805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9806 test $ac_status = 0; }; then
9807 pkg_cv_GTHREAD_LIBS=`$PKG_CONFIG --libs "gthread-2.0" 2>/dev/null`
9808 test "x$?" != "x0" && pkg_failed=yes
9809 else
9810 pkg_failed=yes
9811 fi
9812 else
9813 pkg_failed=untried
9814 fi
9815
9816
9817
9818 if test $pkg_failed = yes; then
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9820 $as_echo "no" >&6; }
9821
9822 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9823 _pkg_short_errors_supported=yes
9824 else
9825 _pkg_short_errors_supported=no
9826 fi
9827 if test $_pkg_short_errors_supported = yes; then
9828 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gthread-2.0" 2>&1`
9829 else
9830 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gthread-2.0" 2>&1`
9831 fi
9832 # Put the nasty error message in config.log where it belongs
9833 echo "$GTHREAD_PKG_ERRORS" >&5
9834
9835 HAVE_GTK=
9836 elif test $pkg_failed = untried; then
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9838 $as_echo "no" >&6; }
9839 HAVE_GTK=
9840 else
9841 GTHREAD_CFLAGS=$pkg_cv_GTHREAD_CFLAGS
9842 GTHREAD_LIBS=$pkg_cv_GTHREAD_LIBS
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9844 $as_echo "yes" >&6; }
9845
9846 fi
9847
9848 pkg_failed=no
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtkmm-2.4" >&5
9850 $as_echo_n "checking for gtkmm-2.4... " >&6; }
9851
9852 if test -n "$GTKMM_CFLAGS"; then
9853 pkg_cv_GTKMM_CFLAGS="$GTKMM_CFLAGS"
9854 elif test -n "$PKG_CONFIG"; then
9855 if test -n "$PKG_CONFIG" && \
9856 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtkmm-2.4\""; } >&5
9857 ($PKG_CONFIG --exists --print-errors "gtkmm-2.4") 2>&5
9858 ac_status=$?
9859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9860 test $ac_status = 0; }; then
9861 pkg_cv_GTKMM_CFLAGS=`$PKG_CONFIG --cflags "gtkmm-2.4" 2>/dev/null`
9862 test "x$?" != "x0" && pkg_failed=yes
9863 else
9864 pkg_failed=yes
9865 fi
9866 else
9867 pkg_failed=untried
9868 fi
9869 if test -n "$GTKMM_LIBS"; then
9870 pkg_cv_GTKMM_LIBS="$GTKMM_LIBS"
9871 elif test -n "$PKG_CONFIG"; then
9872 if test -n "$PKG_CONFIG" && \
9873 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtkmm-2.4\""; } >&5
9874 ($PKG_CONFIG --exists --print-errors "gtkmm-2.4") 2>&5
9875 ac_status=$?
9876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9877 test $ac_status = 0; }; then
9878 pkg_cv_GTKMM_LIBS=`$PKG_CONFIG --libs "gtkmm-2.4" 2>/dev/null`
9879 test "x$?" != "x0" && pkg_failed=yes
9880 else
9881 pkg_failed=yes
9882 fi
9883 else
9884 pkg_failed=untried
9885 fi
9886
9887
9888
9889 if test $pkg_failed = yes; then
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9891 $as_echo "no" >&6; }
9892
9893 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9894 _pkg_short_errors_supported=yes
9895 else
9896 _pkg_short_errors_supported=no
9897 fi
9898 if test $_pkg_short_errors_supported = yes; then
9899 GTKMM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtkmm-2.4" 2>&1`
9900 else
9901 GTKMM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtkmm-2.4" 2>&1`
9902 fi
9903 # Put the nasty error message in config.log where it belongs
9904 echo "$GTKMM_PKG_ERRORS" >&5
9905
9906 HAVE_GTK=
9907 elif test $pkg_failed = untried; then
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9909 $as_echo "no" >&6; }
9910 HAVE_GTK=
9911 else
9912 GTKMM_CFLAGS=$pkg_cv_GTKMM_CFLAGS
9913 GTKMM_LIBS=$pkg_cv_GTKMM_LIBS
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9915 $as_echo "yes" >&6; }
9916
9917 fi
9918
9919 pkg_failed=no
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libglademm-2.4" >&5
9921 $as_echo_n "checking for libglademm-2.4... " >&6; }
9922
9923 if test -n "$LIBGLADEMM_CFLAGS"; then
9924 pkg_cv_LIBGLADEMM_CFLAGS="$LIBGLADEMM_CFLAGS"
9925 elif test -n "$PKG_CONFIG"; then
9926 if test -n "$PKG_CONFIG" && \
9927 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libglademm-2.4\""; } >&5
9928 ($PKG_CONFIG --exists --print-errors "libglademm-2.4") 2>&5
9929 ac_status=$?
9930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9931 test $ac_status = 0; }; then
9932 pkg_cv_LIBGLADEMM_CFLAGS=`$PKG_CONFIG --cflags "libglademm-2.4" 2>/dev/null`
9933 test "x$?" != "x0" && pkg_failed=yes
9934 else
9935 pkg_failed=yes
9936 fi
9937 else
9938 pkg_failed=untried
9939 fi
9940 if test -n "$LIBGLADEMM_LIBS"; then
9941 pkg_cv_LIBGLADEMM_LIBS="$LIBGLADEMM_LIBS"
9942 elif test -n "$PKG_CONFIG"; then
9943 if test -n "$PKG_CONFIG" && \
9944 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libglademm-2.4\""; } >&5
9945 ($PKG_CONFIG --exists --print-errors "libglademm-2.4") 2>&5
9946 ac_status=$?
9947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9948 test $ac_status = 0; }; then
9949 pkg_cv_LIBGLADEMM_LIBS=`$PKG_CONFIG --libs "libglademm-2.4" 2>/dev/null`
9950 test "x$?" != "x0" && pkg_failed=yes
9951 else
9952 pkg_failed=yes
9953 fi
9954 else
9955 pkg_failed=untried
9956 fi
9957
9958
9959
9960 if test $pkg_failed = yes; then
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9962 $as_echo "no" >&6; }
9963
9964 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9965 _pkg_short_errors_supported=yes
9966 else
9967 _pkg_short_errors_supported=no
9968 fi
9969 if test $_pkg_short_errors_supported = yes; then
9970 LIBGLADEMM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libglademm-2.4" 2>&1`
9971 else
9972 LIBGLADEMM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libglademm-2.4" 2>&1`
9973 fi
9974 # Put the nasty error message in config.log where it belongs
9975 echo "$LIBGLADEMM_PKG_ERRORS" >&5
9976
9977 HAVE_GTK=
9978 elif test $pkg_failed = untried; then
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9980 $as_echo "no" >&6; }
9981 HAVE_GTK=
9982 else
9983 LIBGLADEMM_CFLAGS=$pkg_cv_LIBGLADEMM_CFLAGS
9984 LIBGLADEMM_LIBS=$pkg_cv_LIBGLADEMM_LIBS
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9986 $as_echo "yes" >&6; }
9987
9988 fi
9989
9990 pkg_failed=no
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vte" >&5
9992 $as_echo_n "checking for vte... " >&6; }
9993
9994 if test -n "$VTE_CFLAGS"; then
9995 pkg_cv_VTE_CFLAGS="$VTE_CFLAGS"
9996 elif test -n "$PKG_CONFIG"; then
9997 if test -n "$PKG_CONFIG" && \
9998 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vte\""; } >&5
9999 ($PKG_CONFIG --exists --print-errors "vte") 2>&5
10000 ac_status=$?
10001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10002 test $ac_status = 0; }; then
10003 pkg_cv_VTE_CFLAGS=`$PKG_CONFIG --cflags "vte" 2>/dev/null`
10004 test "x$?" != "x0" && pkg_failed=yes
10005 else
10006 pkg_failed=yes
10007 fi
10008 else
10009 pkg_failed=untried
10010 fi
10011 if test -n "$VTE_LIBS"; then
10012 pkg_cv_VTE_LIBS="$VTE_LIBS"
10013 elif test -n "$PKG_CONFIG"; then
10014 if test -n "$PKG_CONFIG" && \
10015 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vte\""; } >&5
10016 ($PKG_CONFIG --exists --print-errors "vte") 2>&5
10017 ac_status=$?
10018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10019 test $ac_status = 0; }; then
10020 pkg_cv_VTE_LIBS=`$PKG_CONFIG --libs "vte" 2>/dev/null`
10021 test "x$?" != "x0" && pkg_failed=yes
10022 else
10023 pkg_failed=yes
10024 fi
10025 else
10026 pkg_failed=untried
10027 fi
10028
10029
10030
10031 if test $pkg_failed = yes; then
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10033 $as_echo "no" >&6; }
10034
10035 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10036 _pkg_short_errors_supported=yes
10037 else
10038 _pkg_short_errors_supported=no
10039 fi
10040 if test $_pkg_short_errors_supported = yes; then
10041 VTE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "vte" 2>&1`
10042 else
10043 VTE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "vte" 2>&1`
10044 fi
10045 # Put the nasty error message in config.log where it belongs
10046 echo "$VTE_PKG_ERRORS" >&5
10047
10048 HAVE_GTK=
10049 elif test $pkg_failed = untried; then
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10051 $as_echo "no" >&6; }
10052 HAVE_GTK=
10053 else
10054 VTE_CFLAGS=$pkg_cv_VTE_CFLAGS
10055 VTE_LIBS=$pkg_cv_VTE_LIBS
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10057 $as_echo "yes" >&6; }
10058
10059 fi
10060
10061 if test x$HAVE_GTK != x1; then :
10062 as_fn_error $? "Unable to find the necessary GTK+ libraries." "$LINENO" 5
10063 else
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: The GTK+ frontend will be built." >&5
10065 $as_echo "$as_me: The GTK+ frontend will be built." >&6;}
10066 fi
10067 elif test "x$enable_aptitude" != xno; then :
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: GTK+ frontend not enabled; use --enable-gtk to enable it." >&5
10069 $as_echo "$as_me: GTK+ frontend not enabled; use --enable-gtk to enable it." >&6;}
10070 fi
10071
10072 if test x$HAVE_GTK = x1; then
10073 BUILD_GTK_TRUE=
10074 BUILD_GTK_FALSE='#'
10075 else
10076 BUILD_GTK_TRUE='#'
10077 BUILD_GTK_FALSE=
10078 fi
10079
10080 if test x$HAVE_GTK = x1
10081 then
10082
10083 $as_echo "#define HAVE_GTK /**/" >>confdefs.h
10084
10085 fi
10086
10087 CXXFLAGS="$SIGC_CFLAGS $CWIDGET_CFLAGS $ept_CFLAGS $SQLITE3_CFLAGS $XAPIAN_CXXFLAGS $CXXFLAGS"
10088 LIBS="$LIBS $SIGC_LIBS $CWIDGET_LIBS $ept_LIBS $SQLITE3_LIBS $BOOST_IOSTREAMS_LIB $BOOST_SYSTEM_LIB $XAPIAN_LIBS"
10089 CPPFLAGS="$BOOST_CPPFLAGS $CPPFLAGS"
10090 LDFLAGS="$BOOST_LDFLAGS $LDFLAGS"
10091
10092 if test x$HAVE_GTK = x1
10093 then
10094 CXXFLAGS="$GLIBMM_CFLAGS $GTHREAD_CFLAGS $GTKMM_CFLAGS $LIBGLADEMM_CFLAGS $VTE_CFLAGS $CXXFLAGS"
10095 LIBS="$LIBS $GLIBMM_LIBS $GTHREAD_LIBS $GTKMM_LIBS $LIBGLADEMM_LIBS $VTE_LIBS"
10096 fi
10097
10098
10099
10100 cat >>confdefs.h <<_ACEOF
10101 #define SIGC_VERSION "$(pkg-config --modversion sigc++-2.0)"
10102 _ACEOF
10103
10104
10105 ########################################################################
10106
10107 WANT_HAVE_QT=0
10108 # Check whether --enable-qt was given.
10109 if test "${enable_qt+set}" = set; then :
10110 enableval=$enable_qt; if test x$enableval = xyes
10111 then
10112 if test "x$enable_aptitude" = xno
10113 then
10114 as_fn_error $? "Can not build the Qt frontend because --disable-aptitude." "$LINENO" 5
10115 fi
10116 WANT_HAVE_QT=1
10117 else
10118 WANT_HAVE_QT=
10119 fi
10120 fi
10121
10122
10123 HAVE_QT=0
10124 if test x$WANT_HAVE_QT = x1; then :
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing for the libraries needed to build the Qt frontend." >&5
10126 $as_echo "$as_me: Testing for the libraries needed to build the Qt frontend." >&6;}
10127
10128 # required version of Qt libraries
10129 QTCORE_REQUIRED=4.6.0
10130 QTGUI_REQUIRED=4.6.0
10131
10132 HAVE_QT=1
10133
10134 pkg_failed=no
10135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QtCore >= $QTCORE_REQUIRED" >&5
10136 $as_echo_n "checking for QtCore >= $QTCORE_REQUIRED... " >&6; }
10137
10138 if test -n "$QtCore_CFLAGS"; then
10139 pkg_cv_QtCore_CFLAGS="$QtCore_CFLAGS"
10140 elif test -n "$PKG_CONFIG"; then
10141 if test -n "$PKG_CONFIG" && \
10142 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore >= \$QTCORE_REQUIRED\""; } >&5
10143 ($PKG_CONFIG --exists --print-errors "QtCore >= $QTCORE_REQUIRED") 2>&5
10144 ac_status=$?
10145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10146 test $ac_status = 0; }; then
10147 pkg_cv_QtCore_CFLAGS=`$PKG_CONFIG --cflags "QtCore >= $QTCORE_REQUIRED" 2>/dev/null`
10148 test "x$?" != "x0" && pkg_failed=yes
10149 else
10150 pkg_failed=yes
10151 fi
10152 else
10153 pkg_failed=untried
10154 fi
10155 if test -n "$QtCore_LIBS"; then
10156 pkg_cv_QtCore_LIBS="$QtCore_LIBS"
10157 elif test -n "$PKG_CONFIG"; then
10158 if test -n "$PKG_CONFIG" && \
10159 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore >= \$QTCORE_REQUIRED\""; } >&5
10160 ($PKG_CONFIG --exists --print-errors "QtCore >= $QTCORE_REQUIRED") 2>&5
10161 ac_status=$?
10162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10163 test $ac_status = 0; }; then
10164 pkg_cv_QtCore_LIBS=`$PKG_CONFIG --libs "QtCore >= $QTCORE_REQUIRED" 2>/dev/null`
10165 test "x$?" != "x0" && pkg_failed=yes
10166 else
10167 pkg_failed=yes
10168 fi
10169 else
10170 pkg_failed=untried
10171 fi
10172
10173
10174
10175 if test $pkg_failed = yes; then
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10177 $as_echo "no" >&6; }
10178
10179 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10180 _pkg_short_errors_supported=yes
10181 else
10182 _pkg_short_errors_supported=no
10183 fi
10184 if test $_pkg_short_errors_supported = yes; then
10185 QtCore_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "QtCore >= $QTCORE_REQUIRED" 2>&1`
10186 else
10187 QtCore_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "QtCore >= $QTCORE_REQUIRED" 2>&1`
10188 fi
10189 # Put the nasty error message in config.log where it belongs
10190 echo "$QtCore_PKG_ERRORS" >&5
10191
10192 HAVE_QT=
10193 elif test $pkg_failed = untried; then
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10195 $as_echo "no" >&6; }
10196 HAVE_QT=
10197 else
10198 QtCore_CFLAGS=$pkg_cv_QtCore_CFLAGS
10199 QtCore_LIBS=$pkg_cv_QtCore_LIBS
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10201 $as_echo "yes" >&6; }
10202
10203 fi
10204
10205 pkg_failed=no
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QtGui >= $QTGUI_REQUIRED" >&5
10207 $as_echo_n "checking for QtGui >= $QTGUI_REQUIRED... " >&6; }
10208
10209 if test -n "$QtGui_CFLAGS"; then
10210 pkg_cv_QtGui_CFLAGS="$QtGui_CFLAGS"
10211 elif test -n "$PKG_CONFIG"; then
10212 if test -n "$PKG_CONFIG" && \
10213 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtGui >= \$QTGUI_REQUIRED\""; } >&5
10214 ($PKG_CONFIG --exists --print-errors "QtGui >= $QTGUI_REQUIRED") 2>&5
10215 ac_status=$?
10216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10217 test $ac_status = 0; }; then
10218 pkg_cv_QtGui_CFLAGS=`$PKG_CONFIG --cflags "QtGui >= $QTGUI_REQUIRED" 2>/dev/null`
10219 test "x$?" != "x0" && pkg_failed=yes
10220 else
10221 pkg_failed=yes
10222 fi
10223 else
10224 pkg_failed=untried
10225 fi
10226 if test -n "$QtGui_LIBS"; then
10227 pkg_cv_QtGui_LIBS="$QtGui_LIBS"
10228 elif test -n "$PKG_CONFIG"; then
10229 if test -n "$PKG_CONFIG" && \
10230 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtGui >= \$QTGUI_REQUIRED\""; } >&5
10231 ($PKG_CONFIG --exists --print-errors "QtGui >= $QTGUI_REQUIRED") 2>&5
10232 ac_status=$?
10233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10234 test $ac_status = 0; }; then
10235 pkg_cv_QtGui_LIBS=`$PKG_CONFIG --libs "QtGui >= $QTGUI_REQUIRED" 2>/dev/null`
10236 test "x$?" != "x0" && pkg_failed=yes
10237 else
10238 pkg_failed=yes
10239 fi
10240 else
10241 pkg_failed=untried
10242 fi
10243
10244
10245
10246 if test $pkg_failed = yes; then
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10248 $as_echo "no" >&6; }
10249
10250 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10251 _pkg_short_errors_supported=yes
10252 else
10253 _pkg_short_errors_supported=no
10254 fi
10255 if test $_pkg_short_errors_supported = yes; then
10256 QtGui_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "QtGui >= $QTGUI_REQUIRED" 2>&1`
10257 else
10258 QtGui_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "QtGui >= $QTGUI_REQUIRED" 2>&1`
10259 fi
10260 # Put the nasty error message in config.log where it belongs
10261 echo "$QtGui_PKG_ERRORS" >&5
10262
10263 HAVE_QT=
10264 elif test $pkg_failed = untried; then
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10266 $as_echo "no" >&6; }
10267 HAVE_QT=
10268 else
10269 QtGui_CFLAGS=$pkg_cv_QtGui_CFLAGS
10270 QtGui_LIBS=$pkg_cv_QtGui_LIBS
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10272 $as_echo "yes" >&6; }
10273
10274 fi
10275
10276 # test for qt4-moc
10277 # Extract the first word of "moc-qt4", so it can be a program name with args.
10278 set dummy moc-qt4; ac_word=$2
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10280 $as_echo_n "checking for $ac_word... " >&6; }
10281 if ${ac_cv_path_MOC+:} false; then :
10282 $as_echo_n "(cached) " >&6
10283 else
10284 case $MOC in
10285 [\\/]* | ?:[\\/]*)
10286 ac_cv_path_MOC="$MOC" # Let the user override the test with a path.
10287 ;;
10288 *)
10289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10290 for as_dir in $PATH
10291 do
10292 IFS=$as_save_IFS
10293 test -z "$as_dir" && as_dir=.
10294 for ac_exec_ext in '' $ac_executable_extensions; do
10295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10296 ac_cv_path_MOC="$as_dir/$ac_word$ac_exec_ext"
10297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10298 break 2
10299 fi
10300 done
10301 done
10302 IFS=$as_save_IFS
10303
10304 ;;
10305 esac
10306 fi
10307 MOC=$ac_cv_path_MOC
10308 if test -n "$MOC"; then
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
10310 $as_echo "$MOC" >&6; }
10311 else
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10313 $as_echo "no" >&6; }
10314 fi
10315
10316
10317 if test ! -x "$MOC"; then
10318 # Extract the first word of "moc", so it can be a program name with args.
10319 set dummy moc; ac_word=$2
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10321 $as_echo_n "checking for $ac_word... " >&6; }
10322 if ${ac_cv_path_MOC+:} false; then :
10323 $as_echo_n "(cached) " >&6
10324 else
10325 case $MOC in
10326 [\\/]* | ?:[\\/]*)
10327 ac_cv_path_MOC="$MOC" # Let the user override the test with a path.
10328 ;;
10329 *)
10330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10331 for as_dir in $PATH
10332 do
10333 IFS=$as_save_IFS
10334 test -z "$as_dir" && as_dir=.
10335 for ac_exec_ext in '' $ac_executable_extensions; do
10336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10337 ac_cv_path_MOC="$as_dir/$ac_word$ac_exec_ext"
10338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10339 break 2
10340 fi
10341 done
10342 done
10343 IFS=$as_save_IFS
10344
10345 ;;
10346 esac
10347 fi
10348 MOC=$ac_cv_path_MOC
10349 if test -n "$MOC"; then
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
10351 $as_echo "$MOC" >&6; }
10352 else
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10354 $as_echo "no" >&6; }
10355 fi
10356
10357
10358 if test ! -x "$MOC"; then
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Qt MOC hasn't been found." >&5
10360 $as_echo "$as_me: WARNING: Qt MOC hasn't been found." >&2;}
10361 HAVE_QT=0
10362 else
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: Qt MOC has been found." >&5
10364 $as_echo "$as_me: Qt MOC has been found." >&6;}
10365 fi
10366 fi
10367
10368 if test x$HAVE_QT != x1; then :
10369 as_fn_error $? "Unable to find the necessary Qt libraries." "$LINENO" 5
10370 else
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: The Qt frontend will be built." >&5
10372 $as_echo "$as_me: The Qt frontend will be built." >&6;}
10373 fi
10374 elif test "x$enable_aptitude" != xno; then :
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: Qt frontend not enabled; use --enable-qt to enable it." >&5
10376 $as_echo "$as_me: Qt frontend not enabled; use --enable-qt to enable it." >&6;}
10377 fi
10378
10379 if test x$HAVE_QT = x1; then
10380 BUILD_QT_TRUE=
10381 BUILD_QT_FALSE='#'
10382 else
10383 BUILD_QT_TRUE='#'
10384 BUILD_QT_FALSE=
10385 fi
10386
10387 if test x$HAVE_QT = x1
10388 then
10389
10390 $as_echo "#define HAVE_QT /**/" >>confdefs.h
10391
10392 fi
10393
10394 if test x$HAVE_QT = x1
10395 then
10396 CXXFLAGS="-DQT_NO_KEYWORDS $QtCore_CFLAGS $QtGui_CFLAGS $CXXFLAGS"
10397 LIBS="$LIBS $QtCore_LIBS $QtGui_LIBS"
10398 fi
10399
10400 ########################################################################
10401
10402
10403 if test "x$enable_aptitude" != xno; then :
10404
10405
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10407 $as_echo_n "checking for ANSI C header files... " >&6; }
10408 if ${ac_cv_header_stdc+:} false; then :
10409 $as_echo_n "(cached) " >&6
10410 else
10411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10412 /* end confdefs.h. */
10413 #include <stdlib.h>
10414 #include <stdarg.h>
10415 #include <string.h>
10416 #include <float.h>
10417
10418 int
10419 main ()
10420 {
10421
10422 ;
10423 return 0;
10424 }
10425 _ACEOF
10426 if ac_fn_cxx_try_compile "$LINENO"; then :
10427 ac_cv_header_stdc=yes
10428 else
10429 ac_cv_header_stdc=no
10430 fi
10431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10432
10433 if test $ac_cv_header_stdc = yes; then
10434 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10436 /* end confdefs.h. */
10437 #include <string.h>
10438
10439 _ACEOF
10440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10441 $EGREP "memchr" >/dev/null 2>&1; then :
10442
10443 else
10444 ac_cv_header_stdc=no
10445 fi
10446 rm -f conftest*
10447
10448 fi
10449
10450 if test $ac_cv_header_stdc = yes; then
10451 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10453 /* end confdefs.h. */
10454 #include <stdlib.h>
10455
10456 _ACEOF
10457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10458 $EGREP "free" >/dev/null 2>&1; then :
10459
10460 else
10461 ac_cv_header_stdc=no
10462 fi
10463 rm -f conftest*
10464
10465 fi
10466
10467 if test $ac_cv_header_stdc = yes; then
10468 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10469 if test "$cross_compiling" = yes; then :
10470 :
10471 else
10472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10473 /* end confdefs.h. */
10474 #include <ctype.h>
10475 #include <stdlib.h>
10476 #if ((' ' & 0x0FF) == 0x020)
10477 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10478 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10479 #else
10480 # define ISLOWER(c) \
10481 (('a' <= (c) && (c) <= 'i') \
10482 || ('j' <= (c) && (c) <= 'r') \
10483 || ('s' <= (c) && (c) <= 'z'))
10484 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10485 #endif
10486
10487 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10488 int
10489 main ()
10490 {
10491 int i;
10492 for (i = 0; i < 256; i++)
10493 if (XOR (islower (i), ISLOWER (i))
10494 || toupper (i) != TOUPPER (i))
10495 return 2;
10496 return 0;
10497 }
10498 _ACEOF
10499 if ac_fn_cxx_try_run "$LINENO"; then :
10500
10501 else
10502 ac_cv_header_stdc=no
10503 fi
10504 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10505 conftest.$ac_objext conftest.beam conftest.$ac_ext
10506 fi
10507
10508 fi
10509 fi
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10511 $as_echo "$ac_cv_header_stdc" >&6; }
10512 if test $ac_cv_header_stdc = yes; then
10513
10514 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10515
10516 fi
10517
10518
10519 for ac_header in fcntl.h sys/ioctl.h unistd.h
10520 do :
10521 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10522 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10523 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10524 cat >>confdefs.h <<_ACEOF
10525 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10526 _ACEOF
10527
10528 else
10529 as_fn_error $? "Can't find needed header file." "$LINENO" 5
10530 fi
10531
10532 done
10533
10534
10535 ac_fn_cxx_check_header_mongrel "$LINENO" "apt-pkg/init.h" "ac_cv_header_apt_pkg_init_h" "$ac_includes_default"
10536 if test "x$ac_cv_header_apt_pkg_init_h" = xyes; then :
10537
10538 else
10539 as_fn_error $? "Can't find the APT header files -- please install libapt-pkg-dev" "$LINENO" 5
10540 fi
10541
10542
10543
10544 ac_fn_cxx_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
10545 if test "x$ac_cv_header_execinfo_h" = xyes; then :
10546
10547 $as_echo "#define HAVE_EXECINFO_H /**/" >>confdefs.h
10548
10549 fi
10550
10551
10552
10553 ac_fn_cxx_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
10554 if test "x$ac_cv_header_locale_h" = xyes; then :
10555
10556 $as_echo "#define HAVE_LOCALE_H /**/" >>confdefs.h
10557
10558 fi
10559
10560
10561
10562 ac_fn_cxx_check_decl "$LINENO" "setlocale" "ac_cv_have_decl_setlocale" "#include <locale.h>
10563 "
10564 if test "x$ac_cv_have_decl_setlocale" = xyes; then :
10565
10566 $as_echo "#define HAVE_SETLOCALE /**/" >>confdefs.h
10567
10568 fi
10569
10570
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether apt supports ddtp" >&5
10572 $as_echo_n "checking whether apt supports ddtp... " >&6; }
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583 # Try to guess what namespace the hash stuff is in (maybe I should just
10584 # use rbltrees instead in most places?)
10585 if test x$HASH_INC != x
10586 then
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which namespace contains the hash extensions" >&5
10588 $as_echo_n "checking which namespace contains the hash extensions... " >&6; }
10589
10590 HASH_NAMESPACE=""
10591
10592 for NS in std __gnu_cxx
10593 do
10594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10595 /* end confdefs.h. */
10596 #include <$HASH_INC>
10597 int
10598 main ()
10599 {
10600 ${NS}::${HASH_CLS} < int, int > foo;
10601 ;
10602 return 0;
10603 }
10604 _ACEOF
10605 if ac_fn_cxx_try_compile "$LINENO"; then :
10606 HASH_NAMESPACE=$NS
10607 fi
10608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10609 done
10610
10611 if test x$HASH_NAMESPACE = x
10612 then
10613 as_fn_error $? "found hash classes, but they aren't in the std or GNU namespace." "$LINENO" 5
10614 fi
10615
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HASH_NAMESPACE" >&5
10617 $as_echo "$HASH_NAMESPACE" >&6; }
10618 else
10619 # Use the std namespace if all else fails. (the code will fall back
10620 # to using map instead of hash_map, set instead of hash_set)
10621 HASH_NAMESPACE=std
10622 fi
10623
10624
10625 cat >>confdefs.h <<_ACEOF
10626 #define HASH_NAMESPACE $HASH_NAMESPACE
10627 _ACEOF
10628
10629
10630
10631
10632
10633 # Try to guess how to extend string traits
10634 TRAITS_CLASS=""
10635
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the name of the character traits template" >&5
10637 $as_echo_n "checking for the name of the character traits template... " >&6; }
10638
10639 for T in char_traits string_char_traits
10640 do
10641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10642 /* end confdefs.h. */
10643 #include <string>
10644 int
10645 main ()
10646 {
10647 std::basic_string<unsigned char,
10648 std::$T < unsigned char > > s;
10649 ;
10650 return 0;
10651 }
10652 _ACEOF
10653 if ac_fn_cxx_try_compile "$LINENO"; then :
10654 TRAITS_CLASS=$T
10655 fi
10656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10657 done
10658
10659 if test x$TRAITS_CLASS = xstring_char_traits
10660 then
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your compiler uses string_char_traits for its character traits. Some compilers (eg, g++ 2.95) which use this name for the character traits template are known to have hideously broken implementations of the standard string class, which cause aptitude to fail to compile. If you have a compiler with this problem, please upgrade it to a version that has a more compliant version of the STL (g++ >=3.0 is known to work). You can specify which compiler this script should use via the CXX environment variable." >&5
10662 $as_echo "$as_me: WARNING: Your compiler uses string_char_traits for its character traits. Some compilers (eg, g++ 2.95) which use this name for the character traits template are known to have hideously broken implementations of the standard string class, which cause aptitude to fail to compile. If you have a compiler with this problem, please upgrade it to a version that has a more compliant version of the STL (g++ >=3.0 is known to work). You can specify which compiler this script should use via the CXX environment variable." >&2;}
10663 fi
10664
10665 if test x$TRAITS_CLASS = x
10666 then
10667 as_fn_error $? "can't find the name of the character traits template" "$LINENO" 5
10668 else
10669
10670 cat >>confdefs.h <<_ACEOF
10671 #define TRAITS_CLASS $TRAITS_CLASS
10672 _ACEOF
10673
10674
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRAITS_CLASS" >&5
10676 $as_echo "$TRAITS_CLASS" >&6; }
10677 fi
10678
10679
10680
10681 if test x$HAVE_LIBPTHREAD = x1
10682 then
10683 ac_fn_cxx_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10684 if test "x$ac_cv_header_pthread_h" = xyes; then :
10685 CXXFLAGS="$CXXFLAGS -D_REENTRANT"
10686 LIBS="$LIBS -lpthread"
10687
10688 $as_echo "#define HAVE_LIBPTHREAD " >>confdefs.h
10689
10690
10691 else
10692 as_fn_error $? "POSIX thread header not installed" "$LINENO" 5
10693 fi
10694
10695
10696 fi
10697
10698
10699 fi
10700
10701 WERROR=""
10702
10703 # Check whether --enable-private-glade-file was given.
10704 if test "${enable_private_glade_file+set}" = set; then :
10705 enableval=$enable_private_glade_file; if test x$enableval = xno
10706 then
10707
10708 $as_echo "#define DISABLE_PRIVATE_GLADE_FILE /**/" >>confdefs.h
10709
10710 fi
10711
10712 fi
10713
10714
10715 # Check whether --enable-dynamic-backtrace was given.
10716 if test "${enable_dynamic_backtrace+set}" = set; then :
10717 enableval=$enable_dynamic_backtrace; if test x$enableval = xyes
10718 then
10719
10720 $as_echo "#define ENABLE_DYNAMIC_BACKTRACE /**/" >>confdefs.h
10721
10722 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
10723 fi
10724
10725 fi
10726
10727 # Check whether --enable-werror was given.
10728 if test "${enable_werror+set}" = set; then :
10729 enableval=$enable_werror; if test x$enableval = xyes
10730 then
10731 WERROR="-Werror"
10732 fi
10733
10734 fi
10735
10736 # Check whether --enable-period-beep was given.
10737 if test "${enable_period_beep+set}" = set; then :
10738 enableval=$enable_period_beep; if test x$enableval = xyes
10739 then
10740
10741 $as_echo "#define WITH_PERIOD_BEEP /**/" >>confdefs.h
10742
10743 fi
10744
10745 fi
10746
10747 # Check whether --enable-reload-cache was given.
10748 if test "${enable_reload_cache+set}" = set; then :
10749 enableval=$enable_reload_cache; if test x$enableval = xyes
10750 then
10751
10752 $as_echo "#define WITH_RELOAD_CACHE /**/" >>confdefs.h
10753
10754 fi
10755
10756 fi
10757
10758
10759
10760 # Check whether --with-package-state-loc was given.
10761 if test "${with_package_state_loc+set}" = set; then :
10762 withval=$with_package_state_loc; if test x$enableval = xyes
10763 then
10764 as_fn_error $? "--with-package-state-loc needs an argument" "$LINENO" 5
10765 else
10766 STATEDIR="$enableval"
10767 fi
10768 else
10769 STATEDIR="/var/lib/aptitude"
10770 fi
10771
10772
10773
10774 # Check whether --with-lock-loc was given.
10775 if test "${with_lock_loc+set}" = set; then :
10776 withval=$with_lock_loc; if test x$enableval = xyes
10777 then
10778 as_fn_error $? "--with-lock-loc needs an argument" "$LINENO" 5
10779 else
10780 LOCKFILE="$enableval"
10781 fi
10782 else
10783 LOCKFILE="/var/lock/aptitude"
10784 fi
10785
10786
10787 # Check whether --enable-aptitude was given.
10788 if test "${enable_aptitude+set}" = set; then :
10789 enableval=$enable_aptitude; if test x$enableval=xno
10790 then
10791 SRCDIRS=
10792 else
10793 SRCDIRS=src
10794 fi
10795 else
10796 SRCDIRS=src
10797 fi
10798
10799
10800 # Check whether --enable-docs was given.
10801 if test "${enable_docs+set}" = set; then :
10802 enableval=$enable_docs; if test x$enableval=xno
10803 then
10804 DOCDIRS=
10805 else
10806 DOCDIRS=doc
10807 fi
10808 else
10809 DOCDIRS=doc
10810 fi
10811
10812
10813 # Check whether --enable-tests was given.
10814 if test "${enable_tests+set}" = set; then :
10815 enableval=$enable_tests; if test x$enableval=xno
10816 then
10817 TESTDIRS=
10818 else
10819 TESTDIRS=tests
10820 fi
10821 else
10822 TESTDIRS=tests
10823 fi
10824
10825
10826 # Check whether --enable-resolver-sanity-checks was given.
10827 if test "${enable_resolver_sanity_checks+set}" = set; then :
10828 enableval=$enable_resolver_sanity_checks; if test x$enableval=xyes
10829 then
10830
10831 $as_echo "#define ENABLE_RESOLVER_SANITY_CHECKS /**/" >>confdefs.h
10832
10833 fi
10834
10835 fi
10836
10837
10838 CXXFLAGS="$CXXFLAGS -std=gnu++17 -Wall $WERROR"
10839
10840
10841
10842
10843
10844
10845 cat >>confdefs.h <<_ACEOF
10846 #define STATEDIR "$STATEDIR"
10847 _ACEOF
10848
10849
10850 cat >>confdefs.h <<_ACEOF
10851 #define LOCKFILE "$LOCKFILE"
10852 _ACEOF
10853
10854
10855
10856 ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
10857 if test "x$ac_cv_type_size_t" = xyes; then :
10858
10859 else
10860
10861 cat >>confdefs.h <<_ACEOF
10862 #define size_t unsigned int
10863 _ACEOF
10864
10865 fi
10866
10867
10868 for ac_func in strdup
10869 do :
10870 ac_fn_cxx_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
10871 if test "x$ac_cv_func_strdup" = xyes; then :
10872 cat >>confdefs.h <<_ACEOF
10873 #define HAVE_STRDUP 1
10874 _ACEOF
10875
10876 fi
10877 done
10878
10879
10880 CPPFLAGS="$CPPFLAGS -DHELPDIR=\\\"\$(datadir)/aptitude\\\""
10881 CPPFLAGS="$CPPFLAGS -DPKGDATADIR=\\\"\$(datadir)/aptitude\\\""
10882
10883
10884 ac_config_files="$ac_config_files Doxyfile Makefile buildlib/Makefile doc/Makefile doc/cs/Makefile doc/cs/images/Makefile doc/de/Makefile doc/en/Makefile doc/en/images/Makefile doc/es/Makefile doc/es/images/Makefile doc/fi/Makefile doc/fi/images/Makefile doc/fr/Makefile doc/fr/images/Makefile doc/it/Makefile doc/it/images/Makefile doc/ja/Makefile doc/ja/images/Makefile doc/nl/Makefile doc/nl/images/Makefile doc/pl/Makefile doc/ru/Makefile doc/ru/images/Makefile doc/po4a/Makefile doc/po4a/po/Makefile doc/po4a/add_de/Makefile doc/po4a/add_es/Makefile doc/po4a/add_fr/Makefile doc/po4a/add_nl/Makefile doc/po4a/add_pl/Makefile doc/po4a/add_ru/Makefile po/Makefile.in src/Makefile src/gtk/Makefile src/gtk/toplevel/Makefile src/gtk/util/Makefile src/gtk/view-impls/Makefile src/qt/Makefile src/cmdline/Makefile src/cmdline/mocks/Makefile src/generic/Makefile src/generic/apt/Makefile src/generic/apt/history/Makefile src/generic/apt/matching/Makefile src/generic/controllers/Makefile src/generic/problemresolver/Makefile src/generic/util/Makefile src/generic/util/mocks/Makefile src/generic/views/Makefile src/generic/views/mocks/Makefile src/mine/Makefile tests/Makefile"
10885
10886
10887 cat >confcache <<\_ACEOF
10888 # This file is a shell script that caches the results of configure
10889 # tests run on this system so they can be shared between configure
10890 # scripts and configure runs, see configure's option --config-cache.
10891 # It is not useful on other systems. If it contains results you don't
10892 # want to keep, you may remove or edit it.
10893 #
10894 # config.status only pays attention to the cache file if you give it
10895 # the --recheck option to rerun configure.
10896 #
10897 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10898 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10899 # following values.
10900
10901 _ACEOF
10902
10903 # The following way of writing the cache mishandles newlines in values,
10904 # but we know of no workaround that is simple, portable, and efficient.
10905 # So, we kill variables containing newlines.
10906 # Ultrix sh set writes to stderr and can't be redirected directly,
10907 # and sets the high bit in the cache file unless we assign to the vars.
10908 (
10909 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10910 eval ac_val=\$$ac_var
10911 case $ac_val in #(
10912 *${as_nl}*)
10913 case $ac_var in #(
10914 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10915 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10916 esac
10917 case $ac_var in #(
10918 _ | IFS | as_nl) ;; #(
10919 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10920 *) { eval $ac_var=; unset $ac_var;} ;;
10921 esac ;;
10922 esac
10923 done
10924
10925 (set) 2>&1 |
10926 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10927 *${as_nl}ac_space=\ *)
10928 # `set' does not quote correctly, so add quotes: double-quote
10929 # substitution turns \\\\ into \\, and sed turns \\ into \.
10930 sed -n \
10931 "s/'/'\\\\''/g;
10932 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10933 ;; #(
10934 *)
10935 # `set' quotes correctly as required by POSIX, so do not add quotes.
10936 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10937 ;;
10938 esac |
10939 sort
10940 ) |
10941 sed '
10942 /^ac_cv_env_/b end
10943 t clear
10944 :clear
10945 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10946 t end
10947 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10948 :end' >>confcache
10949 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10950 if test -w "$cache_file"; then
10951 if test "x$cache_file" != "x/dev/null"; then
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10953 $as_echo "$as_me: updating cache $cache_file" >&6;}
10954 if test ! -f "$cache_file" || test -h "$cache_file"; then
10955 cat confcache >"$cache_file"
10956 else
10957 case $cache_file in #(
10958 */* | ?:*)
10959 mv -f confcache "$cache_file"$$ &&
10960 mv -f "$cache_file"$$ "$cache_file" ;; #(
10961 *)
10962 mv -f confcache "$cache_file" ;;
10963 esac
10964 fi
10965 fi
10966 else
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10968 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10969 fi
10970 fi
10971 rm -f confcache
10972
10973 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10974 # Let make expand exec_prefix.
10975 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10976
10977 DEFS=-DHAVE_CONFIG_H
10978
10979 ac_libobjs=
10980 ac_ltlibobjs=
10981 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10982 # 1. Remove the extension, and $U if already installed.
10983 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10984 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10985 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10986 # will be set to the directory where LIBOBJS objects are built.
10987 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10988 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10989 done
10990 LIBOBJS=$ac_libobjs
10991
10992 LTLIBOBJS=$ac_ltlibobjs
10993
10994
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
10996 $as_echo_n "checking that generated files are newer than configure... " >&6; }
10997 if test -n "$am_sleep_pid"; then
10998 # Hide warnings about reused PIDs.
10999 wait $am_sleep_pid 2>/dev/null
11000 fi
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11002 $as_echo "done" >&6; }
11003 if test -n "$EXEEXT"; then
11004 am__EXEEXT_TRUE=
11005 am__EXEEXT_FALSE='#'
11006 else
11007 am__EXEEXT_TRUE='#'
11008 am__EXEEXT_FALSE=
11009 fi
11010
11011 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11012 as_fn_error $? "conditional \"AMDEP\" was never defined.
11013 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11014 fi
11015 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11016 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11017 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11018 fi
11019 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
11020 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
11021 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11022 fi
11023 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
11024 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
11025 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11026 fi
11027 if test -z "${HAVE_PO4A_TRUE}" && test -z "${HAVE_PO4A_FALSE}"; then
11028 as_fn_error $? "conditional \"HAVE_PO4A\" was never defined.
11029 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11030 fi
11031 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
11032 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
11033 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11034 fi
11035 if test -z "${HAVE_RSVG_CONVERT_TRUE}" && test -z "${HAVE_RSVG_CONVERT_FALSE}"; then
11036 as_fn_error $? "conditional \"HAVE_RSVG_CONVERT\" was never defined.
11037 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11038 fi
11039 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
11040 as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
11041 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11042 fi
11043 if test -z "${HAVE_ELINKS_TRUE}" && test -z "${HAVE_ELINKS_FALSE}"; then
11044 as_fn_error $? "conditional \"HAVE_ELINKS\" was never defined.
11045 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11046 fi
11047 if test -z "${BUILD_LOCAL_GMOCK_TRUE}" && test -z "${BUILD_LOCAL_GMOCK_FALSE}"; then
11048 as_fn_error $? "conditional \"BUILD_LOCAL_GMOCK\" was never defined.
11049 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11050 fi
11051 if test -z "${BUILD_GTK_TRUE}" && test -z "${BUILD_GTK_FALSE}"; then
11052 as_fn_error $? "conditional \"BUILD_GTK\" was never defined.
11053 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11054 fi
11055 if test -z "${BUILD_QT_TRUE}" && test -z "${BUILD_QT_FALSE}"; then
11056 as_fn_error $? "conditional \"BUILD_QT\" was never defined.
11057 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11058 fi
11059
11060 : "${CONFIG_STATUS=./config.status}"
11061 ac_write_fail=0
11062 ac_clean_files_save=$ac_clean_files
11063 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11065 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11066 as_write_fail=0
11067 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11068 #! $SHELL
11069 # Generated by $as_me.
11070 # Run this file to recreate the current configuration.
11071 # Compiler output produced by configure, useful for debugging
11072 # configure, is in config.log if it exists.
11073
11074 debug=false
11075 ac_cs_recheck=false
11076 ac_cs_silent=false
11077
11078 SHELL=\${CONFIG_SHELL-$SHELL}
11079 export SHELL
11080 _ASEOF
11081 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11082 ## -------------------- ##
11083 ## M4sh Initialization. ##
11084 ## -------------------- ##
11085
11086 # Be more Bourne compatible
11087 DUALCASE=1; export DUALCASE # for MKS sh
11088 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11089 emulate sh
11090 NULLCMD=:
11091 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11092 # is contrary to our usage. Disable this feature.
11093 alias -g '${1+"$@"}'='"$@"'
11094 setopt NO_GLOB_SUBST
11095 else
11096 case `(set -o) 2>/dev/null` in #(
11097 *posix*) :
11098 set -o posix ;; #(
11099 *) :
11100 ;;
11101 esac
11102 fi
11103
11104
11105 as_nl='
11106 '
11107 export as_nl
11108 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11109 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11110 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11111 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11112 # Prefer a ksh shell builtin over an external printf program on Solaris,
11113 # but without wasting forks for bash or zsh.
11114 if test -z "$BASH_VERSION$ZSH_VERSION" \
11115 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11116 as_echo='print -r --'
11117 as_echo_n='print -rn --'
11118 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11119 as_echo='printf %s\n'
11120 as_echo_n='printf %s'
11121 else
11122 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11123 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11124 as_echo_n='/usr/ucb/echo -n'
11125 else
11126 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11127 as_echo_n_body='eval
11128 arg=$1;
11129 case $arg in #(
11130 *"$as_nl"*)
11131 expr "X$arg" : "X\\(.*\\)$as_nl";
11132 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11133 esac;
11134 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11135 '
11136 export as_echo_n_body
11137 as_echo_n='sh -c $as_echo_n_body as_echo'
11138 fi
11139 export as_echo_body
11140 as_echo='sh -c $as_echo_body as_echo'
11141 fi
11142
11143 # The user is always right.
11144 if test "${PATH_SEPARATOR+set}" != set; then
11145 PATH_SEPARATOR=:
11146 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11147 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11148 PATH_SEPARATOR=';'
11149 }
11150 fi
11151
11152
11153 # IFS
11154 # We need space, tab and new line, in precisely that order. Quoting is
11155 # there to prevent editors from complaining about space-tab.
11156 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11157 # splitting by setting IFS to empty value.)
11158 IFS=" "" $as_nl"
11159
11160 # Find who we are. Look in the path if we contain no directory separator.
11161 as_myself=
11162 case $0 in #((
11163 *[\\/]* ) as_myself=$0 ;;
11164 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11165 for as_dir in $PATH
11166 do
11167 IFS=$as_save_IFS
11168 test -z "$as_dir" && as_dir=.
11169 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11170 done
11171 IFS=$as_save_IFS
11172
11173 ;;
11174 esac
11175 # We did not find ourselves, most probably we were run as `sh COMMAND'
11176 # in which case we are not to be found in the path.
11177 if test "x$as_myself" = x; then
11178 as_myself=$0
11179 fi
11180 if test ! -f "$as_myself"; then
11181 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11182 exit 1
11183 fi
11184
11185 # Unset variables that we do not need and which cause bugs (e.g. in
11186 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11187 # suppresses any "Segmentation fault" message there. '((' could
11188 # trigger a bug in pdksh 5.2.14.
11189 for as_var in BASH_ENV ENV MAIL MAILPATH
11190 do eval test x\${$as_var+set} = xset \
11191 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11192 done
11193 PS1='$ '
11194 PS2='> '
11195 PS4='+ '
11196
11197 # NLS nuisances.
11198 LC_ALL=C
11199 export LC_ALL
11200 LANGUAGE=C
11201 export LANGUAGE
11202
11203 # CDPATH.
11204 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11205
11206
11207 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11208 # ----------------------------------------
11209 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11210 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11211 # script with STATUS, using 1 if that was 0.
11212 as_fn_error ()
11213 {
11214 as_status=$1; test $as_status -eq 0 && as_status=1
11215 if test "$4"; then
11216 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11217 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11218 fi
11219 $as_echo "$as_me: error: $2" >&2
11220 as_fn_exit $as_status
11221 } # as_fn_error
11222
11223
11224 # as_fn_set_status STATUS
11225 # -----------------------
11226 # Set $? to STATUS, without forking.
11227 as_fn_set_status ()
11228 {
11229 return $1
11230 } # as_fn_set_status
11231
11232 # as_fn_exit STATUS
11233 # -----------------
11234 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11235 as_fn_exit ()
11236 {
11237 set +e
11238 as_fn_set_status $1
11239 exit $1
11240 } # as_fn_exit
11241
11242 # as_fn_unset VAR
11243 # ---------------
11244 # Portably unset VAR.
11245 as_fn_unset ()
11246 {
11247 { eval $1=; unset $1;}
11248 }
11249 as_unset=as_fn_unset
11250 # as_fn_append VAR VALUE
11251 # ----------------------
11252 # Append the text in VALUE to the end of the definition contained in VAR. Take
11253 # advantage of any shell optimizations that allow amortized linear growth over
11254 # repeated appends, instead of the typical quadratic growth present in naive
11255 # implementations.
11256 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11257 eval 'as_fn_append ()
11258 {
11259 eval $1+=\$2
11260 }'
11261 else
11262 as_fn_append ()
11263 {
11264 eval $1=\$$1\$2
11265 }
11266 fi # as_fn_append
11267
11268 # as_fn_arith ARG...
11269 # ------------------
11270 # Perform arithmetic evaluation on the ARGs, and store the result in the
11271 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11272 # must be portable across $(()) and expr.
11273 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11274 eval 'as_fn_arith ()
11275 {
11276 as_val=$(( $* ))
11277 }'
11278 else
11279 as_fn_arith ()
11280 {
11281 as_val=`expr "$@" || test $? -eq 1`
11282 }
11283 fi # as_fn_arith
11284
11285
11286 if expr a : '\(a\)' >/dev/null 2>&1 &&
11287 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11288 as_expr=expr
11289 else
11290 as_expr=false
11291 fi
11292
11293 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11294 as_basename=basename
11295 else
11296 as_basename=false
11297 fi
11298
11299 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11300 as_dirname=dirname
11301 else
11302 as_dirname=false
11303 fi
11304
11305 as_me=`$as_basename -- "$0" ||
11306 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11307 X"$0" : 'X\(//\)$' \| \
11308 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11309 $as_echo X/"$0" |
11310 sed '/^.*\/\([^/][^/]*\)\/*$/{
11311 s//\1/
11312 q
11313 }
11314 /^X\/\(\/\/\)$/{
11315 s//\1/
11316 q
11317 }
11318 /^X\/\(\/\).*/{
11319 s//\1/
11320 q
11321 }
11322 s/.*/./; q'`
11323
11324 # Avoid depending upon Character Ranges.
11325 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11326 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11327 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11328 as_cr_digits='0123456789'
11329 as_cr_alnum=$as_cr_Letters$as_cr_digits
11330
11331 ECHO_C= ECHO_N= ECHO_T=
11332 case `echo -n x` in #(((((
11333 -n*)
11334 case `echo 'xy\c'` in
11335 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11336 xy) ECHO_C='\c';;
11337 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11338 ECHO_T=' ';;
11339 esac;;
11340 *)
11341 ECHO_N='-n';;
11342 esac
11343
11344 rm -f conf$$ conf$$.exe conf$$.file
11345 if test -d conf$$.dir; then
11346 rm -f conf$$.dir/conf$$.file
11347 else
11348 rm -f conf$$.dir
11349 mkdir conf$$.dir 2>/dev/null
11350 fi
11351 if (echo >conf$$.file) 2>/dev/null; then
11352 if ln -s conf$$.file conf$$ 2>/dev/null; then
11353 as_ln_s='ln -s'
11354 # ... but there are two gotchas:
11355 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11356 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11357 # In both cases, we have to default to `cp -pR'.
11358 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11359 as_ln_s='cp -pR'
11360 elif ln conf$$.file conf$$ 2>/dev/null; then
11361 as_ln_s=ln
11362 else
11363 as_ln_s='cp -pR'
11364 fi
11365 else
11366 as_ln_s='cp -pR'
11367 fi
11368 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11369 rmdir conf$$.dir 2>/dev/null
11370
11371
11372 # as_fn_mkdir_p
11373 # -------------
11374 # Create "$as_dir" as a directory, including parents if necessary.
11375 as_fn_mkdir_p ()
11376 {
11377
11378 case $as_dir in #(
11379 -*) as_dir=./$as_dir;;
11380 esac
11381 test -d "$as_dir" || eval $as_mkdir_p || {
11382 as_dirs=
11383 while :; do
11384 case $as_dir in #(
11385 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11386 *) as_qdir=$as_dir;;
11387 esac
11388 as_dirs="'$as_qdir' $as_dirs"
11389 as_dir=`$as_dirname -- "$as_dir" ||
11390 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11391 X"$as_dir" : 'X\(//\)[^/]' \| \
11392 X"$as_dir" : 'X\(//\)$' \| \
11393 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11394 $as_echo X"$as_dir" |
11395 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11396 s//\1/
11397 q
11398 }
11399 /^X\(\/\/\)[^/].*/{
11400 s//\1/
11401 q
11402 }
11403 /^X\(\/\/\)$/{
11404 s//\1/
11405 q
11406 }
11407 /^X\(\/\).*/{
11408 s//\1/
11409 q
11410 }
11411 s/.*/./; q'`
11412 test -d "$as_dir" && break
11413 done
11414 test -z "$as_dirs" || eval "mkdir $as_dirs"
11415 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11416
11417
11418 } # as_fn_mkdir_p
11419 if mkdir -p . 2>/dev/null; then
11420 as_mkdir_p='mkdir -p "$as_dir"'
11421 else
11422 test -d ./-p && rmdir ./-p
11423 as_mkdir_p=false
11424 fi
11425
11426
11427 # as_fn_executable_p FILE
11428 # -----------------------
11429 # Test if FILE is an executable regular file.
11430 as_fn_executable_p ()
11431 {
11432 test -f "$1" && test -x "$1"
11433 } # as_fn_executable_p
11434 as_test_x='test -x'
11435 as_executable_p=as_fn_executable_p
11436
11437 # Sed expression to map a string onto a valid CPP name.
11438 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11439
11440 # Sed expression to map a string onto a valid variable name.
11441 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11442
11443
11444 exec 6>&1
11445 ## ----------------------------------- ##
11446 ## Main body of $CONFIG_STATUS script. ##
11447 ## ----------------------------------- ##
11448 _ASEOF
11449 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11450
11451 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11452 # Save the log message, to keep $0 and so on meaningful, and to
11453 # report actual input values of CONFIG_FILES etc. instead of their
11454 # values after options handling.
11455 ac_log="
11456 This file was extended by aptitude $as_me 0.8.13, which was
11457 generated by GNU Autoconf 2.69. Invocation command line was
11458
11459 CONFIG_FILES = $CONFIG_FILES
11460 CONFIG_HEADERS = $CONFIG_HEADERS
11461 CONFIG_LINKS = $CONFIG_LINKS
11462 CONFIG_COMMANDS = $CONFIG_COMMANDS
11463 $ $0 $@
11464
11465 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11466 "
11467
11468 _ACEOF
11469
11470 case $ac_config_files in *"
11471 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11472 esac
11473
11474 case $ac_config_headers in *"
11475 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11476 esac
11477
11478
11479 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11480 # Files that config.status was made for.
11481 config_files="$ac_config_files"
11482 config_headers="$ac_config_headers"
11483 config_commands="$ac_config_commands"
11484
11485 _ACEOF
11486
11487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11488 ac_cs_usage="\
11489 \`$as_me' instantiates files and other configuration actions
11490 from templates according to the current configuration. Unless the files
11491 and actions are specified as TAGs, all are instantiated by default.
11492
11493 Usage: $0 [OPTION]... [TAG]...
11494
11495 -h, --help print this help, then exit
11496 -V, --version print version number and configuration settings, then exit
11497 --config print configuration, then exit
11498 -q, --quiet, --silent
11499 do not print progress messages
11500 -d, --debug don't remove temporary files
11501 --recheck update $as_me by reconfiguring in the same conditions
11502 --file=FILE[:TEMPLATE]
11503 instantiate the configuration file FILE
11504 --header=FILE[:TEMPLATE]
11505 instantiate the configuration header FILE
11506
11507 Configuration files:
11508 $config_files
11509
11510 Configuration headers:
11511 $config_headers
11512
11513 Configuration commands:
11514 $config_commands
11515
11516 Report bugs to <[email protected]>."
11517
11518 _ACEOF
11519 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11520 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11521 ac_cs_version="\\
11522 aptitude config.status 0.8.13
11523 configured by $0, generated by GNU Autoconf 2.69,
11524 with options \\"\$ac_cs_config\\"
11525
11526 Copyright (C) 2012 Free Software Foundation, Inc.
11527 This config.status script is free software; the Free Software Foundation
11528 gives unlimited permission to copy, distribute and modify it."
11529
11530 ac_pwd='$ac_pwd'
11531 srcdir='$srcdir'
11532 INSTALL='$INSTALL'
11533 MKDIR_P='$MKDIR_P'
11534 AWK='$AWK'
11535 test -n "\$AWK" || AWK=awk
11536 _ACEOF
11537
11538 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11539 # The default lists apply if the user does not specify any file.
11540 ac_need_defaults=:
11541 while test $# != 0
11542 do
11543 case $1 in
11544 --*=?*)
11545 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11546 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11547 ac_shift=:
11548 ;;
11549 --*=)
11550 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11551 ac_optarg=
11552 ac_shift=:
11553 ;;
11554 *)
11555 ac_option=$1
11556 ac_optarg=$2
11557 ac_shift=shift
11558 ;;
11559 esac
11560
11561 case $ac_option in
11562 # Handling of the options.
11563 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11564 ac_cs_recheck=: ;;
11565 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11566 $as_echo "$ac_cs_version"; exit ;;
11567 --config | --confi | --conf | --con | --co | --c )
11568 $as_echo "$ac_cs_config"; exit ;;
11569 --debug | --debu | --deb | --de | --d | -d )
11570 debug=: ;;
11571 --file | --fil | --fi | --f )
11572 $ac_shift
11573 case $ac_optarg in
11574 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11575 '') as_fn_error $? "missing file argument" ;;
11576 esac
11577 as_fn_append CONFIG_FILES " '$ac_optarg'"
11578 ac_need_defaults=false;;
11579 --header | --heade | --head | --hea )
11580 $ac_shift
11581 case $ac_optarg in
11582 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11583 esac
11584 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11585 ac_need_defaults=false;;
11586 --he | --h)
11587 # Conflict between --help and --header
11588 as_fn_error $? "ambiguous option: \`$1'
11589 Try \`$0 --help' for more information.";;
11590 --help | --hel | -h )
11591 $as_echo "$ac_cs_usage"; exit ;;
11592 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11593 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11594 ac_cs_silent=: ;;
11595
11596 # This is an error.
11597 -*) as_fn_error $? "unrecognized option: \`$1'
11598 Try \`$0 --help' for more information." ;;
11599
11600 *) as_fn_append ac_config_targets " $1"
11601 ac_need_defaults=false ;;
11602
11603 esac
11604 shift
11605 done
11606
11607 ac_configure_extra_args=
11608
11609 if $ac_cs_silent; then
11610 exec 6>/dev/null
11611 ac_configure_extra_args="$ac_configure_extra_args --silent"
11612 fi
11613
11614 _ACEOF
11615 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11616 if \$ac_cs_recheck; then
11617 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11618 shift
11619 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11620 CONFIG_SHELL='$SHELL'
11621 export CONFIG_SHELL
11622 exec "\$@"
11623 fi
11624
11625 _ACEOF
11626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11627 exec 5>>config.log
11628 {
11629 echo
11630 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11631 ## Running $as_me. ##
11632 _ASBOX
11633 $as_echo "$ac_log"
11634 } >&5
11635
11636 _ACEOF
11637 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11638 #
11639 # INIT-COMMANDS
11640 #
11641 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
11642 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
11643 # from automake < 1.5.
11644 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
11645 # Capture the value of LINGUAS because we need it to compute CATALOGS.
11646 LINGUAS="${LINGUAS-%UNSET%}"
11647
11648 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
11649
11650 _ACEOF
11651
11652 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11653
11654 # Handling of arguments.
11655 for ac_config_target in $ac_config_targets
11656 do
11657 case $ac_config_target in
11658 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11659 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
11660 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11661 "copy-gtest") CONFIG_COMMANDS="$CONFIG_COMMANDS copy-gtest" ;;
11662 "copy-gmock") CONFIG_COMMANDS="$CONFIG_COMMANDS copy-gmock" ;;
11663 "Doxyfile") CONFIG_FILES="$CONFIG_FILES Doxyfile" ;;
11664 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11665 "buildlib/Makefile") CONFIG_FILES="$CONFIG_FILES buildlib/Makefile" ;;
11666 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11667 "doc/cs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/cs/Makefile" ;;
11668 "doc/cs/images/Makefile") CONFIG_FILES="$CONFIG_FILES doc/cs/images/Makefile" ;;
11669 "doc/de/Makefile") CONFIG_FILES="$CONFIG_FILES doc/de/Makefile" ;;
11670 "doc/en/Makefile") CONFIG_FILES="$CONFIG_FILES doc/en/Makefile" ;;
11671 "doc/en/images/Makefile") CONFIG_FILES="$CONFIG_FILES doc/en/images/Makefile" ;;
11672 "doc/es/Makefile") CONFIG_FILES="$CONFIG_FILES doc/es/Makefile" ;;
11673 "doc/es/images/Makefile") CONFIG_FILES="$CONFIG_FILES doc/es/images/Makefile" ;;
11674 "doc/fi/Makefile") CONFIG_FILES="$CONFIG_FILES doc/fi/Makefile" ;;
11675 "doc/fi/images/Makefile") CONFIG_FILES="$CONFIG_FILES doc/fi/images/Makefile" ;;
11676 "doc/fr/Makefile") CONFIG_FILES="$CONFIG_FILES doc/fr/Makefile" ;;
11677 "doc/fr/images/Makefile") CONFIG_FILES="$CONFIG_FILES doc/fr/images/Makefile" ;;
11678 "doc/it/Makefile") CONFIG_FILES="$CONFIG_FILES doc/it/Makefile" ;;
11679 "doc/it/images/Makefile") CONFIG_FILES="$CONFIG_FILES doc/it/images/Makefile" ;;
11680 "doc/ja/Makefile") CONFIG_FILES="$CONFIG_FILES doc/ja/Makefile" ;;
11681 "doc/ja/images/Makefile") CONFIG_FILES="$CONFIG_FILES doc/ja/images/Makefile" ;;
11682 "doc/nl/Makefile") CONFIG_FILES="$CONFIG_FILES doc/nl/Makefile" ;;
11683 "doc/nl/images/Makefile") CONFIG_FILES="$CONFIG_FILES doc/nl/images/Makefile" ;;
11684 "doc/pl/Makefile") CONFIG_FILES="$CONFIG_FILES doc/pl/Makefile" ;;
11685 "doc/ru/Makefile") CONFIG_FILES="$CONFIG_FILES doc/ru/Makefile" ;;
11686 "doc/ru/images/Makefile") CONFIG_FILES="$CONFIG_FILES doc/ru/images/Makefile" ;;
11687 "doc/po4a/Makefile") CONFIG_FILES="$CONFIG_FILES doc/po4a/Makefile" ;;
11688 "doc/po4a/po/Makefile") CONFIG_FILES="$CONFIG_FILES doc/po4a/po/Makefile" ;;
11689 "doc/po4a/add_de/Makefile") CONFIG_FILES="$CONFIG_FILES doc/po4a/add_de/Makefile" ;;
11690 "doc/po4a/add_es/Makefile") CONFIG_FILES="$CONFIG_FILES doc/po4a/add_es/Makefile" ;;
11691 "doc/po4a/add_fr/Makefile") CONFIG_FILES="$CONFIG_FILES doc/po4a/add_fr/Makefile" ;;
11692 "doc/po4a/add_nl/Makefile") CONFIG_FILES="$CONFIG_FILES doc/po4a/add_nl/Makefile" ;;
11693 "doc/po4a/add_pl/Makefile") CONFIG_FILES="$CONFIG_FILES doc/po4a/add_pl/Makefile" ;;
11694 "doc/po4a/add_ru/Makefile") CONFIG_FILES="$CONFIG_FILES doc/po4a/add_ru/Makefile" ;;
11695 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
11696 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
11697 "src/gtk/Makefile") CONFIG_FILES="$CONFIG_FILES src/gtk/Makefile" ;;
11698 "src/gtk/toplevel/Makefile") CONFIG_FILES="$CONFIG_FILES src/gtk/toplevel/Makefile" ;;
11699 "src/gtk/util/Makefile") CONFIG_FILES="$CONFIG_FILES src/gtk/util/Makefile" ;;
11700 "src/gtk/view-impls/Makefile") CONFIG_FILES="$CONFIG_FILES src/gtk/view-impls/Makefile" ;;
11701 "src/qt/Makefile") CONFIG_FILES="$CONFIG_FILES src/qt/Makefile" ;;
11702 "src/cmdline/Makefile") CONFIG_FILES="$CONFIG_FILES src/cmdline/Makefile" ;;
11703 "src/cmdline/mocks/Makefile") CONFIG_FILES="$CONFIG_FILES src/cmdline/mocks/Makefile" ;;
11704 "src/generic/Makefile") CONFIG_FILES="$CONFIG_FILES src/generic/Makefile" ;;
11705 "src/generic/apt/Makefile") CONFIG_FILES="$CONFIG_FILES src/generic/apt/Makefile" ;;
11706 "src/generic/apt/history/Makefile") CONFIG_FILES="$CONFIG_FILES src/generic/apt/history/Makefile" ;;
11707 "src/generic/apt/matching/Makefile") CONFIG_FILES="$CONFIG_FILES src/generic/apt/matching/Makefile" ;;
11708 "src/generic/controllers/Makefile") CONFIG_FILES="$CONFIG_FILES src/generic/controllers/Makefile" ;;
11709 "src/generic/problemresolver/Makefile") CONFIG_FILES="$CONFIG_FILES src/generic/problemresolver/Makefile" ;;
11710 "src/generic/util/Makefile") CONFIG_FILES="$CONFIG_FILES src/generic/util/Makefile" ;;
11711 "src/generic/util/mocks/Makefile") CONFIG_FILES="$CONFIG_FILES src/generic/util/mocks/Makefile" ;;
11712 "src/generic/views/Makefile") CONFIG_FILES="$CONFIG_FILES src/generic/views/Makefile" ;;
11713 "src/generic/views/mocks/Makefile") CONFIG_FILES="$CONFIG_FILES src/generic/views/mocks/Makefile" ;;
11714 "src/mine/Makefile") CONFIG_FILES="$CONFIG_FILES src/mine/Makefile" ;;
11715 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
11716
11717 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11718 esac
11719 done
11720
11721
11722 # If the user did not use the arguments to specify the items to instantiate,
11723 # then the envvar interface is used. Set only those that are not.
11724 # We use the long form for the default assignment because of an extremely
11725 # bizarre bug on SunOS 4.1.3.
11726 if $ac_need_defaults; then
11727 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11728 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11729 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11730 fi
11731
11732 # Have a temporary directory for convenience. Make it in the build tree
11733 # simply because there is no reason against having it here, and in addition,
11734 # creating and moving files from /tmp can sometimes cause problems.
11735 # Hook for its removal unless debugging.
11736 # Note that there is a small window in which the directory will not be cleaned:
11737 # after its creation but before its name has been assigned to `$tmp'.
11738 $debug ||
11739 {
11740 tmp= ac_tmp=
11741 trap 'exit_status=$?
11742 : "${ac_tmp:=$tmp}"
11743 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11744 ' 0
11745 trap 'as_fn_exit 1' 1 2 13 15
11746 }
11747 # Create a (secure) tmp directory for tmp files.
11748
11749 {
11750 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11751 test -d "$tmp"
11752 } ||
11753 {
11754 tmp=./conf$$-$RANDOM
11755 (umask 077 && mkdir "$tmp")
11756 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11757 ac_tmp=$tmp
11758
11759 # Set up the scripts for CONFIG_FILES section.
11760 # No need to generate them if there are no CONFIG_FILES.
11761 # This happens for instance with `./config.status config.h'.
11762 if test -n "$CONFIG_FILES"; then
11763
11764
11765 ac_cr=`echo X | tr X '\015'`
11766 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11767 # But we know of no other shell where ac_cr would be empty at this
11768 # point, so we can use a bashism as a fallback.
11769 if test "x$ac_cr" = x; then
11770 eval ac_cr=\$\'\\r\'
11771 fi
11772 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11773 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11774 ac_cs_awk_cr='\\r'
11775 else
11776 ac_cs_awk_cr=$ac_cr
11777 fi
11778
11779 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11780 _ACEOF
11781
11782
11783 {
11784 echo "cat >conf$$subs.awk <<_ACEOF" &&
11785 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11786 echo "_ACEOF"
11787 } >conf$$subs.sh ||
11788 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11789 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11790 ac_delim='%!_!# '
11791 for ac_last_try in false false false false false :; do
11792 . ./conf$$subs.sh ||
11793 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11794
11795 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11796 if test $ac_delim_n = $ac_delim_num; then
11797 break
11798 elif $ac_last_try; then
11799 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11800 else
11801 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11802 fi
11803 done
11804 rm -f conf$$subs.sh
11805
11806 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11807 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11808 _ACEOF
11809 sed -n '
11810 h
11811 s/^/S["/; s/!.*/"]=/
11812 p
11813 g
11814 s/^[^!]*!//
11815 :repl
11816 t repl
11817 s/'"$ac_delim"'$//
11818 t delim
11819 :nl
11820 h
11821 s/\(.\{148\}\)..*/\1/
11822 t more1
11823 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11824 p
11825 n
11826 b repl
11827 :more1
11828 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11829 p
11830 g
11831 s/.\{148\}//
11832 t nl
11833 :delim
11834 h
11835 s/\(.\{148\}\)..*/\1/
11836 t more2
11837 s/["\\]/\\&/g; s/^/"/; s/$/"/
11838 p
11839 b
11840 :more2
11841 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11842 p
11843 g
11844 s/.\{148\}//
11845 t delim
11846 ' <conf$$subs.awk | sed '
11847 /^[^""]/{
11848 N
11849 s/\n//
11850 }
11851 ' >>$CONFIG_STATUS || ac_write_fail=1
11852 rm -f conf$$subs.awk
11853 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11854 _ACAWK
11855 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11856 for (key in S) S_is_set[key] = 1
11857 FS = ""
11858
11859 }
11860 {
11861 line = $ 0
11862 nfields = split(line, field, "@")
11863 substed = 0
11864 len = length(field[1])
11865 for (i = 2; i < nfields; i++) {
11866 key = field[i]
11867 keylen = length(key)
11868 if (S_is_set[key]) {
11869 value = S[key]
11870 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11871 len += length(value) + length(field[++i])
11872 substed = 1
11873 } else
11874 len += 1 + keylen
11875 }
11876
11877 print line
11878 }
11879
11880 _ACAWK
11881 _ACEOF
11882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11883 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11884 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11885 else
11886 cat
11887 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11888 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11889 _ACEOF
11890
11891 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11892 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11893 # trailing colons and then remove the whole line if VPATH becomes empty
11894 # (actually we leave an empty line to preserve line numbers).
11895 if test "x$srcdir" = x.; then
11896 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11897 h
11898 s///
11899 s/^/:/
11900 s/[ ]*$/:/
11901 s/:\$(srcdir):/:/g
11902 s/:\${srcdir}:/:/g
11903 s/:@srcdir@:/:/g
11904 s/^:*//
11905 s/:*$//
11906 x
11907 s/\(=[ ]*\).*/\1/
11908 G
11909 s/\n//
11910 s/^[^=]*=[ ]*$//
11911 }'
11912 fi
11913
11914 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11915 fi # test -n "$CONFIG_FILES"
11916
11917 # Set up the scripts for CONFIG_HEADERS section.
11918 # No need to generate them if there are no CONFIG_HEADERS.
11919 # This happens for instance with `./config.status Makefile'.
11920 if test -n "$CONFIG_HEADERS"; then
11921 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11922 BEGIN {
11923 _ACEOF
11924
11925 # Transform confdefs.h into an awk script `defines.awk', embedded as
11926 # here-document in config.status, that substitutes the proper values into
11927 # config.h.in to produce config.h.
11928
11929 # Create a delimiter string that does not exist in confdefs.h, to ease
11930 # handling of long lines.
11931 ac_delim='%!_!# '
11932 for ac_last_try in false false :; do
11933 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11934 if test -z "$ac_tt"; then
11935 break
11936 elif $ac_last_try; then
11937 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11938 else
11939 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11940 fi
11941 done
11942
11943 # For the awk script, D is an array of macro values keyed by name,
11944 # likewise P contains macro parameters if any. Preserve backslash
11945 # newline sequences.
11946
11947 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11948 sed -n '
11949 s/.\{148\}/&'"$ac_delim"'/g
11950 t rset
11951 :rset
11952 s/^[ ]*#[ ]*define[ ][ ]*/ /
11953 t def
11954 d
11955 :def
11956 s/\\$//
11957 t bsnl
11958 s/["\\]/\\&/g
11959 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11960 D["\1"]=" \3"/p
11961 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11962 d
11963 :bsnl
11964 s/["\\]/\\&/g
11965 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11966 D["\1"]=" \3\\\\\\n"\\/p
11967 t cont
11968 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11969 t cont
11970 d
11971 :cont
11972 n
11973 s/.\{148\}/&'"$ac_delim"'/g
11974 t clear
11975 :clear
11976 s/\\$//
11977 t bsnlc
11978 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11979 d
11980 :bsnlc
11981 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11982 b cont
11983 ' <confdefs.h | sed '
11984 s/'"$ac_delim"'/"\\\
11985 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11986
11987 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11988 for (key in D) D_is_set[key] = 1
11989 FS = ""
11990 }
11991 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11992 line = \$ 0
11993 split(line, arg, " ")
11994 if (arg[1] == "#") {
11995 defundef = arg[2]
11996 mac1 = arg[3]
11997 } else {
11998 defundef = substr(arg[1], 2)
11999 mac1 = arg[2]
12000 }
12001 split(mac1, mac2, "(") #)
12002 macro = mac2[1]
12003 prefix = substr(line, 1, index(line, defundef) - 1)
12004 if (D_is_set[macro]) {
12005 # Preserve the white space surrounding the "#".
12006 print prefix "define", macro P[macro] D[macro]
12007 next
12008 } else {
12009 # Replace #undef with comments. This is necessary, for example,
12010 # in the case of _POSIX_SOURCE, which is predefined and required
12011 # on some systems where configure will not decide to define it.
12012 if (defundef == "undef") {
12013 print "/*", prefix defundef, macro, "*/"
12014 next
12015 }
12016 }
12017 }
12018 { print }
12019 _ACAWK
12020 _ACEOF
12021 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12022 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12023 fi # test -n "$CONFIG_HEADERS"
12024
12025
12026 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12027 shift
12028 for ac_tag
12029 do
12030 case $ac_tag in
12031 :[FHLC]) ac_mode=$ac_tag; continue;;
12032 esac
12033 case $ac_mode$ac_tag in
12034 :[FHL]*:*);;
12035 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12036 :[FH]-) ac_tag=-:-;;
12037 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12038 esac
12039 ac_save_IFS=$IFS
12040 IFS=:
12041 set x $ac_tag
12042 IFS=$ac_save_IFS
12043 shift
12044 ac_file=$1
12045 shift
12046
12047 case $ac_mode in
12048 :L) ac_source=$1;;
12049 :[FH])
12050 ac_file_inputs=
12051 for ac_f
12052 do
12053 case $ac_f in
12054 -) ac_f="$ac_tmp/stdin";;
12055 *) # Look for the file first in the build tree, then in the source tree
12056 # (if the path is not absolute). The absolute path cannot be DOS-style,
12057 # because $ac_f cannot contain `:'.
12058 test -f "$ac_f" ||
12059 case $ac_f in
12060 [\\/$]*) false;;
12061 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12062 esac ||
12063 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12064 esac
12065 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12066 as_fn_append ac_file_inputs " '$ac_f'"
12067 done
12068
12069 # Let's still pretend it is `configure' which instantiates (i.e., don't
12070 # use $as_me), people would be surprised to read:
12071 # /* config.h. Generated by config.status. */
12072 configure_input='Generated from '`
12073 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12074 `' by configure.'
12075 if test x"$ac_file" != x-; then
12076 configure_input="$ac_file. $configure_input"
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12078 $as_echo "$as_me: creating $ac_file" >&6;}
12079 fi
12080 # Neutralize special characters interpreted by sed in replacement strings.
12081 case $configure_input in #(
12082 *\&* | *\|* | *\\* )
12083 ac_sed_conf_input=`$as_echo "$configure_input" |
12084 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12085 *) ac_sed_conf_input=$configure_input;;
12086 esac
12087
12088 case $ac_tag in
12089 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12090 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12091 esac
12092 ;;
12093 esac
12094
12095 ac_dir=`$as_dirname -- "$ac_file" ||
12096 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12097 X"$ac_file" : 'X\(//\)[^/]' \| \
12098 X"$ac_file" : 'X\(//\)$' \| \
12099 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12100 $as_echo X"$ac_file" |
12101 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12102 s//\1/
12103 q
12104 }
12105 /^X\(\/\/\)[^/].*/{
12106 s//\1/
12107 q
12108 }
12109 /^X\(\/\/\)$/{
12110 s//\1/
12111 q
12112 }
12113 /^X\(\/\).*/{
12114 s//\1/
12115 q
12116 }
12117 s/.*/./; q'`
12118 as_dir="$ac_dir"; as_fn_mkdir_p
12119 ac_builddir=.
12120
12121 case "$ac_dir" in
12122 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12123 *)
12124 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12125 # A ".." for each directory in $ac_dir_suffix.
12126 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12127 case $ac_top_builddir_sub in
12128 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12129 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12130 esac ;;
12131 esac
12132 ac_abs_top_builddir=$ac_pwd
12133 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12134 # for backward compatibility:
12135 ac_top_builddir=$ac_top_build_prefix
12136
12137 case $srcdir in
12138 .) # We are building in place.
12139 ac_srcdir=.
12140 ac_top_srcdir=$ac_top_builddir_sub
12141 ac_abs_top_srcdir=$ac_pwd ;;
12142 [\\/]* | ?:[\\/]* ) # Absolute name.
12143 ac_srcdir=$srcdir$ac_dir_suffix;
12144 ac_top_srcdir=$srcdir
12145 ac_abs_top_srcdir=$srcdir ;;
12146 *) # Relative name.
12147 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12148 ac_top_srcdir=$ac_top_build_prefix$srcdir
12149 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12150 esac
12151 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12152
12153
12154 case $ac_mode in
12155 :F)
12156 #
12157 # CONFIG_FILE
12158 #
12159
12160 case $INSTALL in
12161 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12162 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12163 esac
12164 ac_MKDIR_P=$MKDIR_P
12165 case $MKDIR_P in
12166 [\\/$]* | ?:[\\/]* ) ;;
12167 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12168 esac
12169 _ACEOF
12170
12171 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12172 # If the template does not know about datarootdir, expand it.
12173 # FIXME: This hack should be removed a few years after 2.60.
12174 ac_datarootdir_hack=; ac_datarootdir_seen=
12175 ac_sed_dataroot='
12176 /datarootdir/ {
12177 p
12178 q
12179 }
12180 /@datadir@/p
12181 /@docdir@/p
12182 /@infodir@/p
12183 /@localedir@/p
12184 /@mandir@/p'
12185 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12186 *datarootdir*) ac_datarootdir_seen=yes;;
12187 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12189 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12190 _ACEOF
12191 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12192 ac_datarootdir_hack='
12193 s&@datadir@&$datadir&g
12194 s&@docdir@&$docdir&g
12195 s&@infodir@&$infodir&g
12196 s&@localedir@&$localedir&g
12197 s&@mandir@&$mandir&g
12198 s&\\\${datarootdir}&$datarootdir&g' ;;
12199 esac
12200 _ACEOF
12201
12202 # Neutralize VPATH when `$srcdir' = `.'.
12203 # Shell code in configure.ac might set extrasub.
12204 # FIXME: do we really want to maintain this feature?
12205 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12206 ac_sed_extra="$ac_vpsub
12207 $extrasub
12208 _ACEOF
12209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12210 :t
12211 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12212 s|@configure_input@|$ac_sed_conf_input|;t t
12213 s&@top_builddir@&$ac_top_builddir_sub&;t t
12214 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12215 s&@srcdir@&$ac_srcdir&;t t
12216 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12217 s&@top_srcdir@&$ac_top_srcdir&;t t
12218 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12219 s&@builddir@&$ac_builddir&;t t
12220 s&@abs_builddir@&$ac_abs_builddir&;t t
12221 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12222 s&@INSTALL@&$ac_INSTALL&;t t
12223 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12224 $ac_datarootdir_hack
12225 "
12226 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12227 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12228
12229 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12230 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12231 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12232 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12234 which seems to be undefined. Please make sure it is defined" >&5
12235 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12236 which seems to be undefined. Please make sure it is defined" >&2;}
12237
12238 rm -f "$ac_tmp/stdin"
12239 case $ac_file in
12240 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12241 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12242 esac \
12243 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12244 ;;
12245 :H)
12246 #
12247 # CONFIG_HEADER
12248 #
12249 if test x"$ac_file" != x-; then
12250 {
12251 $as_echo "/* $configure_input */" \
12252 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12253 } >"$ac_tmp/config.h" \
12254 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12255 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12257 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12258 else
12259 rm -f "$ac_file"
12260 mv "$ac_tmp/config.h" "$ac_file" \
12261 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12262 fi
12263 else
12264 $as_echo "/* $configure_input */" \
12265 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12266 || as_fn_error $? "could not create -" "$LINENO" 5
12267 fi
12268 # Compute "$ac_file"'s index in $config_headers.
12269 _am_arg="$ac_file"
12270 _am_stamp_count=1
12271 for _am_header in $config_headers :; do
12272 case $_am_header in
12273 $_am_arg | $_am_arg:* )
12274 break ;;
12275 * )
12276 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12277 esac
12278 done
12279 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12280 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12281 X"$_am_arg" : 'X\(//\)[^/]' \| \
12282 X"$_am_arg" : 'X\(//\)$' \| \
12283 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12284 $as_echo X"$_am_arg" |
12285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12286 s//\1/
12287 q
12288 }
12289 /^X\(\/\/\)[^/].*/{
12290 s//\1/
12291 q
12292 }
12293 /^X\(\/\/\)$/{
12294 s//\1/
12295 q
12296 }
12297 /^X\(\/\).*/{
12298 s//\1/
12299 q
12300 }
12301 s/.*/./; q'`/stamp-h$_am_stamp_count
12302 ;;
12303
12304 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12305 $as_echo "$as_me: executing $ac_file commands" >&6;}
12306 ;;
12307 esac
12308
12309
12310 case $ac_file$ac_mode in
12311 "po-directories":C)
12312 for ac_file in $CONFIG_FILES; do
12313 # Support "outfile[:infile[:infile...]]"
12314 case "$ac_file" in
12315 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12316 esac
12317 # PO directories have a Makefile.in generated from Makefile.in.in.
12318 case "$ac_file" in */Makefile.in)
12319 # Adjust a relative srcdir.
12320 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12321 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
12322 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12323 # In autoconf-2.13 it is called $ac_given_srcdir.
12324 # In autoconf-2.50 it is called $srcdir.
12325 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12326 case "$ac_given_srcdir" in
12327 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12328 /*) top_srcdir="$ac_given_srcdir" ;;
12329 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12330 esac
12331 # Treat a directory as a PO directory if and only if it has a
12332 # POTFILES.in file. This allows packages to have multiple PO
12333 # directories under different names or in different locations.
12334 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12335 rm -f "$ac_dir/POTFILES"
12336 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12337 gt_tab=`printf '\t'`
12338 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12339 POMAKEFILEDEPS="POTFILES.in"
12340 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12341 # on $ac_dir but don't depend on user-specified configuration
12342 # parameters.
12343 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12344 # The LINGUAS file contains the set of available languages.
12345 if test -n "$OBSOLETE_ALL_LINGUAS"; then
12346 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12347 fi
12348 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12349 # Hide the ALL_LINGUAS assignment from automake < 1.5.
12350 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12351 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12352 else
12353 # The set of available languages was given in configure.in.
12354 # Hide the ALL_LINGUAS assignment from automake < 1.5.
12355 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12356 fi
12357 # Compute POFILES
12358 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12359 # Compute UPDATEPOFILES
12360 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12361 # Compute DUMMYPOFILES
12362 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12363 # Compute GMOFILES
12364 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12365 case "$ac_given_srcdir" in
12366 .) srcdirpre= ;;
12367 *) srcdirpre='$(srcdir)/' ;;
12368 esac
12369 POFILES=
12370 UPDATEPOFILES=
12371 DUMMYPOFILES=
12372 GMOFILES=
12373 for lang in $ALL_LINGUAS; do
12374 POFILES="$POFILES $srcdirpre$lang.po"
12375 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12376 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12377 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12378 done
12379 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12380 # environment variable.
12381 INST_LINGUAS=
12382 if test -n "$ALL_LINGUAS"; then
12383 for presentlang in $ALL_LINGUAS; do
12384 useit=no
12385 if test "%UNSET%" != "$LINGUAS"; then
12386 desiredlanguages="$LINGUAS"
12387 else
12388 desiredlanguages="$ALL_LINGUAS"
12389 fi
12390 for desiredlang in $desiredlanguages; do
12391 # Use the presentlang catalog if desiredlang is
12392 # a. equal to presentlang, or
12393 # b. a variant of presentlang (because in this case,
12394 # presentlang can be used as a fallback for messages
12395 # which are not translated in the desiredlang catalog).
12396 case "$desiredlang" in
12397 "$presentlang"*) useit=yes;;
12398 esac
12399 done
12400 if test $useit = yes; then
12401 INST_LINGUAS="$INST_LINGUAS $presentlang"
12402 fi
12403 done
12404 fi
12405 CATALOGS=
12406 if test -n "$INST_LINGUAS"; then
12407 for lang in $INST_LINGUAS; do
12408 CATALOGS="$CATALOGS $lang.gmo"
12409 done
12410 fi
12411 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12412 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"
12413 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12414 if test -f "$f"; then
12415 case "$f" in
12416 *.orig | *.bak | *~) ;;
12417 *) cat "$f" >> "$ac_dir/Makefile" ;;
12418 esac
12419 fi
12420 done
12421 fi
12422 ;;
12423 esac
12424 done ;;
12425 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12426 # Older Autoconf quotes --file arguments for eval, but not when files
12427 # are listed without --file. Let's play safe and only enable the eval
12428 # if we detect the quoting.
12429 # TODO: see whether this extra hack can be removed once we start
12430 # requiring Autoconf 2.70 or later.
12431 case $CONFIG_FILES in #(
12432 *\'*) :
12433 eval set x "$CONFIG_FILES" ;; #(
12434 *) :
12435 set x $CONFIG_FILES ;; #(
12436 *) :
12437 ;;
12438 esac
12439 shift
12440 # Used to flag and report bootstrapping failures.
12441 am_rc=0
12442 for am_mf
12443 do
12444 # Strip MF so we end up with the name of the file.
12445 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
12446 # Check whether this is an Automake generated Makefile which includes
12447 # dependency-tracking related rules and includes.
12448 # Grep'ing the whole file directly is not great: AIX grep has a line
12449 # limit of 2048, but all sed's we know have understand at least 4000.
12450 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12451 || continue
12452 am_dirpart=`$as_dirname -- "$am_mf" ||
12453 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12454 X"$am_mf" : 'X\(//\)[^/]' \| \
12455 X"$am_mf" : 'X\(//\)$' \| \
12456 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12457 $as_echo X"$am_mf" |
12458 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12459 s//\1/
12460 q
12461 }
12462 /^X\(\/\/\)[^/].*/{
12463 s//\1/
12464 q
12465 }
12466 /^X\(\/\/\)$/{
12467 s//\1/
12468 q
12469 }
12470 /^X\(\/\).*/{
12471 s//\1/
12472 q
12473 }
12474 s/.*/./; q'`
12475 am_filepart=`$as_basename -- "$am_mf" ||
12476 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12477 X"$am_mf" : 'X\(//\)$' \| \
12478 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12479 $as_echo X/"$am_mf" |
12480 sed '/^.*\/\([^/][^/]*\)\/*$/{
12481 s//\1/
12482 q
12483 }
12484 /^X\/\(\/\/\)$/{
12485 s//\1/
12486 q
12487 }
12488 /^X\/\(\/\).*/{
12489 s//\1/
12490 q
12491 }
12492 s/.*/./; q'`
12493 { echo "$as_me:$LINENO: cd "$am_dirpart" \
12494 && sed -e '/# am--include-marker/d' "$am_filepart" \
12495 | $MAKE -f - am--depfiles" >&5
12496 (cd "$am_dirpart" \
12497 && sed -e '/# am--include-marker/d' "$am_filepart" \
12498 | $MAKE -f - am--depfiles) >&5 2>&5
12499 ac_status=$?
12500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501 (exit $ac_status); } || am_rc=$?
12502 done
12503 if test $am_rc -ne 0; then
12504 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12505 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12506 as_fn_error $? "Something went wrong bootstrapping makefile fragments
12507 for automatic dependency tracking. If GNU make was not used, consider
12508 re-running the configure script with MAKE=\"gmake\" (or whatever is
12509 necessary). You can also try re-running configure with the
12510 '--disable-dependency-tracking' option to at least be able to build
12511 the package (albeit without support for automatic dependency tracking).
12512 See \`config.log' for more details" "$LINENO" 5; }
12513 fi
12514 { am_dirpart=; unset am_dirpart;}
12515 { am_filepart=; unset am_filepart;}
12516 { am_mf=; unset am_mf;}
12517 { am_rc=; unset am_rc;}
12518 rm -f conftest-deps.mk
12519 }
12520 ;;
12521 "copy-gtest":C) cp -uv /usr/src/googletest/googletest/src/gtest-all.cc tests/gtest-all.cc ;;
12522 "copy-gmock":C) cp -uv /usr/src/googletest/googlemock/src/gmock-all.cc tests/gmock-all.cc ;;
12523
12524 esac
12525 done # for ac_tag
12526
12527
12528 as_fn_exit 0
12529 _ACEOF
12530 ac_clean_files=$ac_clean_files_save
12531
12532 test $ac_write_fail = 0 ||
12533 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12534
12535
12536 # configure is writing to config.log, and then calls config.status.
12537 # config.status does its own redirection, appending to config.log.
12538 # Unfortunately, on DOS this fails, as config.log is still kept open
12539 # by configure, so config.status won't be able to write to it; its
12540 # output is simply discarded. So we exec the FD to /dev/null,
12541 # effectively closing config.log, so it can be properly (re)opened and
12542 # appended to by config.status. When coming back to configure, we
12543 # need to make the FD available again.
12544 if test "$no_create" != yes; then
12545 ac_cs_success=:
12546 ac_config_status_args=
12547 test "$silent" = yes &&
12548 ac_config_status_args="$ac_config_status_args --quiet"
12549 exec 5>/dev/null
12550 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12551 exec 5>>config.log
12552 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12553 # would make configure fail if this is the last instruction.
12554 $ac_cs_success || as_fn_exit 1
12555 fi
12556 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12558 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12559 fi
12560