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