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