]> git.deb.at Git - pkg/abook.git/blob - configure
Import upstream git
[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.1.
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.1'
584 PACKAGE_STRING='Abook 0.6.1'
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.1 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.1:";;
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.1
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.1, 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.14'
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.1'
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 # POSIX will say in a future version that running "rm -f" with no argument
2875 # is OK; and we want to be able to make that assumption in our Makefile
2876 # recipes.  So use an aggressive probe to check that the usage we want is
2877 # actually supported "in the wild" to an acceptable degree.
2878 # See automake bug#10828.
2879 # To make any issue more visible, cause the running configure to be aborted
2880 # by default if the 'rm' program in use doesn't match our expectations; the
2881 # user can still override this though.
2882 if rm -f && rm -fr && rm -rf; then : OK; else
2883   cat >&2 <<'END'
2884 Oops!
2885
2886 Your 'rm' program seems unable to run without file operands specified
2887 on the command line, even when the '-f' option is present.  This is contrary
2888 to the behaviour of most rm programs out there, and not conforming with
2889 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2890
2891 Please tell bug-automake@gnu.org about your system, including the value
2892 of your $PATH and any error possibly output before this message.  This
2893 can help us improve future automake versions.
2894
2895 END
2896   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2897     echo 'Configuration will proceed anyway, since you have set the' >&2
2898     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2899     echo >&2
2900   else
2901     cat >&2 <<'END'
2902 Aborting the configuration process, to ensure you take notice of the issue.
2903
2904 You can download and install GNU coreutils to get an 'rm' implementation
2905 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2906
2907 If you want to complete the configuration process using your problematic
2908 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2909 to "yes", and re-run configure.
2910
2911 END
2912     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2913   fi
2914 fi
2915
2916
2917
2918 DEPDIR="${am__leading_dot}deps"
2919
2920 ac_config_commands="$ac_config_commands depfiles"
2921
2922
2923 am_make=${MAKE-make}
2924 cat > confinc << 'END'
2925 am__doit:
2926         @echo this is the am__doit target
2927 .PHONY: am__doit
2928 END
2929 # If we don't find an include directive, just comment out the code.
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2931 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2932 am__include="#"
2933 am__quote=
2934 _am_result=none
2935 # First try GNU make style include.
2936 echo "include confinc" > confmf
2937 # Ignore all kinds of additional output from 'make'.
2938 case `$am_make -s -f confmf 2> /dev/null` in #(
2939 *the\ am__doit\ target*)
2940   am__include=include
2941   am__quote=
2942   _am_result=GNU
2943   ;;
2944 esac
2945 # Now try BSD make style include.
2946 if test "$am__include" = "#"; then
2947    echo '.include "confinc"' > confmf
2948    case `$am_make -s -f confmf 2> /dev/null` in #(
2949    *the\ am__doit\ target*)
2950      am__include=.include
2951      am__quote="\""
2952      _am_result=BSD
2953      ;;
2954    esac
2955 fi
2956
2957
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2959 $as_echo "$_am_result" >&6; }
2960 rm -f confinc confmf
2961
2962 # Check whether --enable-dependency-tracking was given.
2963 if test "${enable_dependency_tracking+set}" = set; then :
2964   enableval=$enable_dependency_tracking;
2965 fi
2966
2967 if test "x$enable_dependency_tracking" != xno; then
2968   am_depcomp="$ac_aux_dir/depcomp"
2969   AMDEPBACKSLASH='\'
2970   am__nodep='_no'
2971 fi
2972  if test "x$enable_dependency_tracking" != xno; then
2973   AMDEP_TRUE=
2974   AMDEP_FALSE='#'
2975 else
2976   AMDEP_TRUE='#'
2977   AMDEP_FALSE=
2978 fi
2979
2980
2981 ac_ext=c
2982 ac_cpp='$CPP $CPPFLAGS'
2983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2986 if test -n "$ac_tool_prefix"; then
2987   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2988 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2990 $as_echo_n "checking for $ac_word... " >&6; }
2991 if ${ac_cv_prog_CC+:} false; then :
2992   $as_echo_n "(cached) " >&6
2993 else
2994   if test -n "$CC"; then
2995   ac_cv_prog_CC="$CC" # Let the user override the test.
2996 else
2997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2998 for as_dir in $PATH
2999 do
3000   IFS=$as_save_IFS
3001   test -z "$as_dir" && as_dir=.
3002     for ac_exec_ext in '' $ac_executable_extensions; do
3003   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3004     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3005     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3006     break 2
3007   fi
3008 done
3009   done
3010 IFS=$as_save_IFS
3011
3012 fi
3013 fi
3014 CC=$ac_cv_prog_CC
3015 if test -n "$CC"; then
3016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3017 $as_echo "$CC" >&6; }
3018 else
3019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3020 $as_echo "no" >&6; }
3021 fi
3022
3023
3024 fi
3025 if test -z "$ac_cv_prog_CC"; then
3026   ac_ct_CC=$CC
3027   # Extract the first word of "gcc", so it can be a program name with args.
3028 set dummy gcc; ac_word=$2
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3030 $as_echo_n "checking for $ac_word... " >&6; }
3031 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3032   $as_echo_n "(cached) " >&6
3033 else
3034   if test -n "$ac_ct_CC"; then
3035   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3036 else
3037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3038 for as_dir in $PATH
3039 do
3040   IFS=$as_save_IFS
3041   test -z "$as_dir" && as_dir=.
3042     for ac_exec_ext in '' $ac_executable_extensions; do
3043   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3044     ac_cv_prog_ac_ct_CC="gcc"
3045     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3046     break 2
3047   fi
3048 done
3049   done
3050 IFS=$as_save_IFS
3051
3052 fi
3053 fi
3054 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3055 if test -n "$ac_ct_CC"; then
3056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3057 $as_echo "$ac_ct_CC" >&6; }
3058 else
3059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3060 $as_echo "no" >&6; }
3061 fi
3062
3063   if test "x$ac_ct_CC" = x; then
3064     CC=""
3065   else
3066     case $cross_compiling:$ac_tool_warned in
3067 yes:)
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3070 ac_tool_warned=yes ;;
3071 esac
3072     CC=$ac_ct_CC
3073   fi
3074 else
3075   CC="$ac_cv_prog_CC"
3076 fi
3077
3078 if test -z "$CC"; then
3079           if test -n "$ac_tool_prefix"; then
3080     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3081 set dummy ${ac_tool_prefix}cc; ac_word=$2
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3083 $as_echo_n "checking for $ac_word... " >&6; }
3084 if ${ac_cv_prog_CC+:} false; then :
3085   $as_echo_n "(cached) " >&6
3086 else
3087   if test -n "$CC"; then
3088   ac_cv_prog_CC="$CC" # Let the user override the test.
3089 else
3090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091 for as_dir in $PATH
3092 do
3093   IFS=$as_save_IFS
3094   test -z "$as_dir" && as_dir=.
3095     for ac_exec_ext in '' $ac_executable_extensions; do
3096   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3097     ac_cv_prog_CC="${ac_tool_prefix}cc"
3098     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3099     break 2
3100   fi
3101 done
3102   done
3103 IFS=$as_save_IFS
3104
3105 fi
3106 fi
3107 CC=$ac_cv_prog_CC
3108 if test -n "$CC"; then
3109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3110 $as_echo "$CC" >&6; }
3111 else
3112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3113 $as_echo "no" >&6; }
3114 fi
3115
3116
3117   fi
3118 fi
3119 if test -z "$CC"; then
3120   # Extract the first word of "cc", so it can be a program name with args.
3121 set dummy cc; ac_word=$2
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3123 $as_echo_n "checking for $ac_word... " >&6; }
3124 if ${ac_cv_prog_CC+:} false; then :
3125   $as_echo_n "(cached) " >&6
3126 else
3127   if test -n "$CC"; then
3128   ac_cv_prog_CC="$CC" # Let the user override the test.
3129 else
3130   ac_prog_rejected=no
3131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132 for as_dir in $PATH
3133 do
3134   IFS=$as_save_IFS
3135   test -z "$as_dir" && as_dir=.
3136     for ac_exec_ext in '' $ac_executable_extensions; do
3137   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3138     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3139        ac_prog_rejected=yes
3140        continue
3141      fi
3142     ac_cv_prog_CC="cc"
3143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3144     break 2
3145   fi
3146 done
3147   done
3148 IFS=$as_save_IFS
3149
3150 if test $ac_prog_rejected = yes; then
3151   # We found a bogon in the path, so make sure we never use it.
3152   set dummy $ac_cv_prog_CC
3153   shift
3154   if test $# != 0; then
3155     # We chose a different compiler from the bogus one.
3156     # However, it has the same basename, so the bogon will be chosen
3157     # first if we set CC to just the basename; use the full file name.
3158     shift
3159     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3160   fi
3161 fi
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 fi
3175 if test -z "$CC"; then
3176   if test -n "$ac_tool_prefix"; then
3177   for ac_prog in cl.exe
3178   do
3179     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3180 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3182 $as_echo_n "checking for $ac_word... " >&6; }
3183 if ${ac_cv_prog_CC+:} false; then :
3184   $as_echo_n "(cached) " >&6
3185 else
3186   if test -n "$CC"; then
3187   ac_cv_prog_CC="$CC" # Let the user override the test.
3188 else
3189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3190 for as_dir in $PATH
3191 do
3192   IFS=$as_save_IFS
3193   test -z "$as_dir" && as_dir=.
3194     for ac_exec_ext in '' $ac_executable_extensions; do
3195   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3196     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3197     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3198     break 2
3199   fi
3200 done
3201   done
3202 IFS=$as_save_IFS
3203
3204 fi
3205 fi
3206 CC=$ac_cv_prog_CC
3207 if test -n "$CC"; then
3208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3209 $as_echo "$CC" >&6; }
3210 else
3211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3212 $as_echo "no" >&6; }
3213 fi
3214
3215
3216     test -n "$CC" && break
3217   done
3218 fi
3219 if test -z "$CC"; then
3220   ac_ct_CC=$CC
3221   for ac_prog in cl.exe
3222 do
3223   # Extract the first word of "$ac_prog", so it can be a program name with args.
3224 set dummy $ac_prog; ac_word=$2
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3226 $as_echo_n "checking for $ac_word... " >&6; }
3227 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3228   $as_echo_n "(cached) " >&6
3229 else
3230   if test -n "$ac_ct_CC"; then
3231   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3232 else
3233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3234 for as_dir in $PATH
3235 do
3236   IFS=$as_save_IFS
3237   test -z "$as_dir" && as_dir=.
3238     for ac_exec_ext in '' $ac_executable_extensions; do
3239   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3240     ac_cv_prog_ac_ct_CC="$ac_prog"
3241     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3242     break 2
3243   fi
3244 done
3245   done
3246 IFS=$as_save_IFS
3247
3248 fi
3249 fi
3250 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3251 if test -n "$ac_ct_CC"; then
3252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3253 $as_echo "$ac_ct_CC" >&6; }
3254 else
3255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3256 $as_echo "no" >&6; }
3257 fi
3258
3259
3260   test -n "$ac_ct_CC" && break
3261 done
3262
3263   if test "x$ac_ct_CC" = x; then
3264     CC=""
3265   else
3266     case $cross_compiling:$ac_tool_warned in
3267 yes:)
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3269 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3270 ac_tool_warned=yes ;;
3271 esac
3272     CC=$ac_ct_CC
3273   fi
3274 fi
3275
3276 fi
3277
3278
3279 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3281 as_fn_error $? "no acceptable C compiler found in \$PATH
3282 See \`config.log' for more details" "$LINENO" 5; }
3283
3284 # Provide some information about the compiler.
3285 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3286 set X $ac_compile
3287 ac_compiler=$2
3288 for ac_option in --version -v -V -qversion; do
3289   { { ac_try="$ac_compiler $ac_option >&5"
3290 case "(($ac_try" in
3291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3292   *) ac_try_echo=$ac_try;;
3293 esac
3294 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3295 $as_echo "$ac_try_echo"; } >&5
3296   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3297   ac_status=$?
3298   if test -s conftest.err; then
3299     sed '10a\
3300 ... rest of stderr output deleted ...
3301          10q' conftest.err >conftest.er1
3302     cat conftest.er1 >&5
3303   fi
3304   rm -f conftest.er1 conftest.err
3305   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3306   test $ac_status = 0; }
3307 done
3308
3309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3310 /* end confdefs.h.  */
3311
3312 int
3313 main ()
3314 {
3315
3316   ;
3317   return 0;
3318 }
3319 _ACEOF
3320 ac_clean_files_save=$ac_clean_files
3321 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3322 # Try to create an executable without -o first, disregard a.out.
3323 # It will help us diagnose broken compilers, and finding out an intuition
3324 # of exeext.
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3326 $as_echo_n "checking whether the C compiler works... " >&6; }
3327 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3328
3329 # The possible output files:
3330 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3331
3332 ac_rmfiles=
3333 for ac_file in $ac_files
3334 do
3335   case $ac_file in
3336     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3337     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3338   esac
3339 done
3340 rm -f $ac_rmfiles
3341
3342 if { { ac_try="$ac_link_default"
3343 case "(($ac_try" in
3344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3345   *) ac_try_echo=$ac_try;;
3346 esac
3347 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3348 $as_echo "$ac_try_echo"; } >&5
3349   (eval "$ac_link_default") 2>&5
3350   ac_status=$?
3351   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3352   test $ac_status = 0; }; then :
3353   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3354 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3355 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3356 # so that the user can short-circuit this test for compilers unknown to
3357 # Autoconf.
3358 for ac_file in $ac_files ''
3359 do
3360   test -f "$ac_file" || continue
3361   case $ac_file in
3362     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3363         ;;
3364     [ab].out )
3365         # We found the default executable, but exeext='' is most
3366         # certainly right.
3367         break;;
3368     *.* )
3369         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3370         then :; else
3371            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3372         fi
3373         # We set ac_cv_exeext here because the later test for it is not
3374         # safe: cross compilers may not add the suffix if given an `-o'
3375         # argument, so we may need to know it at that point already.
3376         # Even if this section looks crufty: it has the advantage of
3377         # actually working.
3378         break;;
3379     * )
3380         break;;
3381   esac
3382 done
3383 test "$ac_cv_exeext" = no && ac_cv_exeext=
3384
3385 else
3386   ac_file=''
3387 fi
3388 if test -z "$ac_file"; then :
3389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3390 $as_echo "no" >&6; }
3391 $as_echo "$as_me: failed program was:" >&5
3392 sed 's/^/| /' conftest.$ac_ext >&5
3393
3394 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3395 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3396 as_fn_error 77 "C compiler cannot create executables
3397 See \`config.log' for more details" "$LINENO" 5; }
3398 else
3399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3400 $as_echo "yes" >&6; }
3401 fi
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3403 $as_echo_n "checking for C compiler default output file name... " >&6; }
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3405 $as_echo "$ac_file" >&6; }
3406 ac_exeext=$ac_cv_exeext
3407
3408 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3409 ac_clean_files=$ac_clean_files_save
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3411 $as_echo_n "checking for suffix of executables... " >&6; }
3412 if { { ac_try="$ac_link"
3413 case "(($ac_try" in
3414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3415   *) ac_try_echo=$ac_try;;
3416 esac
3417 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3418 $as_echo "$ac_try_echo"; } >&5
3419   (eval "$ac_link") 2>&5
3420   ac_status=$?
3421   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3422   test $ac_status = 0; }; then :
3423   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3424 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3425 # work properly (i.e., refer to `conftest.exe'), while it won't with
3426 # `rm'.
3427 for ac_file in conftest.exe conftest conftest.*; do
3428   test -f "$ac_file" || continue
3429   case $ac_file in
3430     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3431     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3432           break;;
3433     * ) break;;
3434   esac
3435 done
3436 else
3437   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3438 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3439 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3440 See \`config.log' for more details" "$LINENO" 5; }
3441 fi
3442 rm -f conftest conftest$ac_cv_exeext
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3444 $as_echo "$ac_cv_exeext" >&6; }
3445
3446 rm -f conftest.$ac_ext
3447 EXEEXT=$ac_cv_exeext
3448 ac_exeext=$EXEEXT
3449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3450 /* end confdefs.h.  */
3451 #include <stdio.h>
3452 int
3453 main ()
3454 {
3455 FILE *f = fopen ("conftest.out", "w");
3456  return ferror (f) || fclose (f) != 0;
3457
3458   ;
3459   return 0;
3460 }
3461 _ACEOF
3462 ac_clean_files="$ac_clean_files conftest.out"
3463 # Check that the compiler produces executables we can run.  If not, either
3464 # the compiler is broken, or we cross compile.
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3466 $as_echo_n "checking whether we are cross compiling... " >&6; }
3467 if test "$cross_compiling" != yes; then
3468   { { ac_try="$ac_link"
3469 case "(($ac_try" in
3470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3471   *) ac_try_echo=$ac_try;;
3472 esac
3473 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3474 $as_echo "$ac_try_echo"; } >&5
3475   (eval "$ac_link") 2>&5
3476   ac_status=$?
3477   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3478   test $ac_status = 0; }
3479   if { ac_try='./conftest$ac_cv_exeext'
3480   { { case "(($ac_try" in
3481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482   *) ac_try_echo=$ac_try;;
3483 esac
3484 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3485 $as_echo "$ac_try_echo"; } >&5
3486   (eval "$ac_try") 2>&5
3487   ac_status=$?
3488   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3489   test $ac_status = 0; }; }; then
3490     cross_compiling=no
3491   else
3492     if test "$cross_compiling" = maybe; then
3493         cross_compiling=yes
3494     else
3495         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3496 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3497 as_fn_error $? "cannot run C compiled programs.
3498 If you meant to cross compile, use \`--host'.
3499 See \`config.log' for more details" "$LINENO" 5; }
3500     fi
3501   fi
3502 fi
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3504 $as_echo "$cross_compiling" >&6; }
3505
3506 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3507 ac_clean_files=$ac_clean_files_save
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3509 $as_echo_n "checking for suffix of object files... " >&6; }
3510 if ${ac_cv_objext+:} false; then :
3511   $as_echo_n "(cached) " >&6
3512 else
3513   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3514 /* end confdefs.h.  */
3515
3516 int
3517 main ()
3518 {
3519
3520   ;
3521   return 0;
3522 }
3523 _ACEOF
3524 rm -f conftest.o conftest.obj
3525 if { { ac_try="$ac_compile"
3526 case "(($ac_try" in
3527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528   *) ac_try_echo=$ac_try;;
3529 esac
3530 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3531 $as_echo "$ac_try_echo"; } >&5
3532   (eval "$ac_compile") 2>&5
3533   ac_status=$?
3534   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3535   test $ac_status = 0; }; then :
3536   for ac_file in conftest.o conftest.obj conftest.*; do
3537   test -f "$ac_file" || continue;
3538   case $ac_file in
3539     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3540     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3541        break;;
3542   esac
3543 done
3544 else
3545   $as_echo "$as_me: failed program was:" >&5
3546 sed 's/^/| /' conftest.$ac_ext >&5
3547
3548 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3550 as_fn_error $? "cannot compute suffix of object files: cannot compile
3551 See \`config.log' for more details" "$LINENO" 5; }
3552 fi
3553 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3554 fi
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3556 $as_echo "$ac_cv_objext" >&6; }
3557 OBJEXT=$ac_cv_objext
3558 ac_objext=$OBJEXT
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3560 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3561 if ${ac_cv_c_compiler_gnu+:} false; then :
3562   $as_echo_n "(cached) " >&6
3563 else
3564   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3565 /* end confdefs.h.  */
3566
3567 int
3568 main ()
3569 {
3570 #ifndef __GNUC__
3571        choke me
3572 #endif
3573
3574   ;
3575   return 0;
3576 }
3577 _ACEOF
3578 if ac_fn_c_try_compile "$LINENO"; then :
3579   ac_compiler_gnu=yes
3580 else
3581   ac_compiler_gnu=no
3582 fi
3583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3584 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3585
3586 fi
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3588 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3589 if test $ac_compiler_gnu = yes; then
3590   GCC=yes
3591 else
3592   GCC=
3593 fi
3594 ac_test_CFLAGS=${CFLAGS+set}
3595 ac_save_CFLAGS=$CFLAGS
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3597 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3598 if ${ac_cv_prog_cc_g+:} false; then :
3599   $as_echo_n "(cached) " >&6
3600 else
3601   ac_save_c_werror_flag=$ac_c_werror_flag
3602    ac_c_werror_flag=yes
3603    ac_cv_prog_cc_g=no
3604    CFLAGS="-g"
3605    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3606 /* end confdefs.h.  */
3607
3608 int
3609 main ()
3610 {
3611
3612   ;
3613   return 0;
3614 }
3615 _ACEOF
3616 if ac_fn_c_try_compile "$LINENO"; then :
3617   ac_cv_prog_cc_g=yes
3618 else
3619   CFLAGS=""
3620       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3621 /* end confdefs.h.  */
3622
3623 int
3624 main ()
3625 {
3626
3627   ;
3628   return 0;
3629 }
3630 _ACEOF
3631 if ac_fn_c_try_compile "$LINENO"; then :
3632
3633 else
3634   ac_c_werror_flag=$ac_save_c_werror_flag
3635          CFLAGS="-g"
3636          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3637 /* end confdefs.h.  */
3638
3639 int
3640 main ()
3641 {
3642
3643   ;
3644   return 0;
3645 }
3646 _ACEOF
3647 if ac_fn_c_try_compile "$LINENO"; then :
3648   ac_cv_prog_cc_g=yes
3649 fi
3650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3651 fi
3652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3653 fi
3654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3655    ac_c_werror_flag=$ac_save_c_werror_flag
3656 fi
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3658 $as_echo "$ac_cv_prog_cc_g" >&6; }
3659 if test "$ac_test_CFLAGS" = set; then
3660   CFLAGS=$ac_save_CFLAGS
3661 elif test $ac_cv_prog_cc_g = yes; then
3662   if test "$GCC" = yes; then
3663     CFLAGS="-g -O2"
3664   else
3665     CFLAGS="-g"
3666   fi
3667 else
3668   if test "$GCC" = yes; then
3669     CFLAGS="-O2"
3670   else
3671     CFLAGS=
3672   fi
3673 fi
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3675 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3676 if ${ac_cv_prog_cc_c89+:} false; then :
3677   $as_echo_n "(cached) " >&6
3678 else
3679   ac_cv_prog_cc_c89=no
3680 ac_save_CC=$CC
3681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3682 /* end confdefs.h.  */
3683 #include <stdarg.h>
3684 #include <stdio.h>
3685 struct stat;
3686 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3687 struct buf { int x; };
3688 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3689 static char *e (p, i)
3690      char **p;
3691      int i;
3692 {
3693   return p[i];
3694 }
3695 static char *f (char * (*g) (char **, int), char **p, ...)
3696 {
3697   char *s;
3698   va_list v;
3699   va_start (v,p);
3700   s = g (p, va_arg (v,int));
3701   va_end (v);
3702   return s;
3703 }
3704
3705 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3706    function prototypes and stuff, but not '\xHH' hex character constants.
3707    These don't provoke an error unfortunately, instead are silently treated
3708    as 'x'.  The following induces an error, until -std is added to get
3709    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3710    array size at least.  It's necessary to write '\x00'==0 to get something
3711    that's true only with -std.  */
3712 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3713
3714 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3715    inside strings and character constants.  */
3716 #define FOO(x) 'x'
3717 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3718
3719 int test (int i, double x);
3720 struct s1 {int (*f) (int a);};
3721 struct s2 {int (*f) (double a);};
3722 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3723 int argc;
3724 char **argv;
3725 int
3726 main ()
3727 {
3728 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3729   ;
3730   return 0;
3731 }
3732 _ACEOF
3733 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3734         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3735 do
3736   CC="$ac_save_CC $ac_arg"
3737   if ac_fn_c_try_compile "$LINENO"; then :
3738   ac_cv_prog_cc_c89=$ac_arg
3739 fi
3740 rm -f core conftest.err conftest.$ac_objext
3741   test "x$ac_cv_prog_cc_c89" != "xno" && break
3742 done
3743 rm -f conftest.$ac_ext
3744 CC=$ac_save_CC
3745
3746 fi
3747 # AC_CACHE_VAL
3748 case "x$ac_cv_prog_cc_c89" in
3749   x)
3750     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3751 $as_echo "none needed" >&6; } ;;
3752   xno)
3753     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3754 $as_echo "unsupported" >&6; } ;;
3755   *)
3756     CC="$CC $ac_cv_prog_cc_c89"
3757     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3758 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3759 esac
3760 if test "x$ac_cv_prog_cc_c89" != xno; then :
3761
3762 fi
3763
3764 ac_ext=c
3765 ac_cpp='$CPP $CPPFLAGS'
3766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3769
3770 ac_ext=c
3771 ac_cpp='$CPP $CPPFLAGS'
3772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3776 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3777 if ${am_cv_prog_cc_c_o+:} false; then :
3778   $as_echo_n "(cached) " >&6
3779 else
3780   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781 /* end confdefs.h.  */
3782
3783 int
3784 main ()
3785 {
3786
3787   ;
3788   return 0;
3789 }
3790 _ACEOF
3791   # Make sure it works both with $CC and with simple cc.
3792   # Following AC_PROG_CC_C_O, we do the test twice because some
3793   # compilers refuse to overwrite an existing .o file with -o,
3794   # though they will create one.
3795   am_cv_prog_cc_c_o=yes
3796   for am_i in 1 2; do
3797     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3798    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3799    ac_status=$?
3800    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801    (exit $ac_status); } \
3802          && test -f conftest2.$ac_objext; then
3803       : OK
3804     else
3805       am_cv_prog_cc_c_o=no
3806       break
3807     fi
3808   done
3809   rm -f core conftest*
3810   unset am_i
3811 fi
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3813 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3814 if test "$am_cv_prog_cc_c_o" != yes; then
3815    # Losing compiler, so override with the script.
3816    # FIXME: It is wrong to rewrite CC.
3817    # But if we don't then we get into trouble of one sort or another.
3818    # A longer-term fix would be to have automake use am__CC in this case,
3819    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3820    CC="$am_aux_dir/compile $CC"
3821 fi
3822 ac_ext=c
3823 ac_cpp='$CPP $CPPFLAGS'
3824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3827
3828
3829 depcc="$CC"   am_compiler_list=
3830
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3832 $as_echo_n "checking dependency style of $depcc... " >&6; }
3833 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3834   $as_echo_n "(cached) " >&6
3835 else
3836   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3837   # We make a subdir and do the tests there.  Otherwise we can end up
3838   # making bogus files that we don't know about and never remove.  For
3839   # instance it was reported that on HP-UX the gcc test will end up
3840   # making a dummy file named 'D' -- because '-MD' means "put the output
3841   # in D".
3842   rm -rf conftest.dir
3843   mkdir conftest.dir
3844   # Copy depcomp to subdir because otherwise we won't find it if we're
3845   # using a relative directory.
3846   cp "$am_depcomp" conftest.dir
3847   cd conftest.dir
3848   # We will build objects and dependencies in a subdirectory because
3849   # it helps to detect inapplicable dependency modes.  For instance
3850   # both Tru64's cc and ICC support -MD to output dependencies as a
3851   # side effect of compilation, but ICC will put the dependencies in
3852   # the current directory while Tru64 will put them in the object
3853   # directory.
3854   mkdir sub
3855
3856   am_cv_CC_dependencies_compiler_type=none
3857   if test "$am_compiler_list" = ""; then
3858      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3859   fi
3860   am__universal=false
3861   case " $depcc " in #(
3862      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3863      esac
3864
3865   for depmode in $am_compiler_list; do
3866     # Setup a source with many dependencies, because some compilers
3867     # like to wrap large dependency lists on column 80 (with \), and
3868     # we should not choose a depcomp mode which is confused by this.
3869     #
3870     # We need to recreate these files for each test, as the compiler may
3871     # overwrite some of them when testing with obscure command lines.
3872     # This happens at least with the AIX C compiler.
3873     : > sub/conftest.c
3874     for i in 1 2 3 4 5 6; do
3875       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3876       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3877       # Solaris 10 /bin/sh.
3878       echo '/* dummy */' > sub/conftst$i.h
3879     done
3880     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3881
3882     # We check with '-c' and '-o' for the sake of the "dashmstdout"
3883     # mode.  It turns out that the SunPro C++ compiler does not properly
3884     # handle '-M -o', and we need to detect this.  Also, some Intel
3885     # versions had trouble with output in subdirs.
3886     am__obj=sub/conftest.${OBJEXT-o}
3887     am__minus_obj="-o $am__obj"
3888     case $depmode in
3889     gcc)
3890       # This depmode causes a compiler race in universal mode.
3891       test "$am__universal" = false || continue
3892       ;;
3893     nosideeffect)
3894       # After this tag, mechanisms are not by side-effect, so they'll
3895       # only be used when explicitly requested.
3896       if test "x$enable_dependency_tracking" = xyes; then
3897         continue
3898       else
3899         break
3900       fi
3901       ;;
3902     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3903       # This compiler won't grok '-c -o', but also, the minuso test has
3904       # not run yet.  These depmodes are late enough in the game, and
3905       # so weak that their functioning should not be impacted.
3906       am__obj=conftest.${OBJEXT-o}
3907       am__minus_obj=
3908       ;;
3909     none) break ;;
3910     esac
3911     if depmode=$depmode \
3912        source=sub/conftest.c object=$am__obj \
3913        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3914        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3915          >/dev/null 2>conftest.err &&
3916        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3917        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3918        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3919        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3920       # icc doesn't choke on unknown options, it will just issue warnings
3921       # or remarks (even with -Werror).  So we grep stderr for any message
3922       # that says an option was ignored or not supported.
3923       # When given -MP, icc 7.0 and 7.1 complain thusly:
3924       #   icc: Command line warning: ignoring option '-M'; no argument required
3925       # The diagnosis changed in icc 8.0:
3926       #   icc: Command line remark: option '-MP' not supported
3927       if (grep 'ignoring option' conftest.err ||
3928           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3929         am_cv_CC_dependencies_compiler_type=$depmode
3930         break
3931       fi
3932     fi
3933   done
3934
3935   cd ..
3936   rm -rf conftest.dir
3937 else
3938   am_cv_CC_dependencies_compiler_type=none
3939 fi
3940
3941 fi
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3943 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3944 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3945
3946  if
3947   test "x$enable_dependency_tracking" != xno \
3948   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3949   am__fastdepCC_TRUE=
3950   am__fastdepCC_FALSE='#'
3951 else
3952   am__fastdepCC_TRUE='#'
3953   am__fastdepCC_FALSE=
3954 fi
3955
3956
3957
3958 ac_ext=c
3959 ac_cpp='$CPP $CPPFLAGS'
3960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3964 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3965 # On Suns, sometimes $CPP names a directory.
3966 if test -n "$CPP" && test -d "$CPP"; then
3967   CPP=
3968 fi
3969 if test -z "$CPP"; then
3970   if ${ac_cv_prog_CPP+:} false; then :
3971   $as_echo_n "(cached) " >&6
3972 else
3973       # Double quotes because CPP needs to be expanded
3974     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3975     do
3976       ac_preproc_ok=false
3977 for ac_c_preproc_warn_flag in '' yes
3978 do
3979   # Use a header file that comes with gcc, so configuring glibc
3980   # with a fresh cross-compiler works.
3981   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3982   # <limits.h> exists even on freestanding compilers.
3983   # On the NeXT, cc -E runs the code through the compiler's parser,
3984   # not just through cpp. "Syntax error" is here to catch this case.
3985   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986 /* end confdefs.h.  */
3987 #ifdef __STDC__
3988 # include <limits.h>
3989 #else
3990 # include <assert.h>
3991 #endif
3992                      Syntax error
3993 _ACEOF
3994 if ac_fn_c_try_cpp "$LINENO"; then :
3995
3996 else
3997   # Broken: fails on valid input.
3998 continue
3999 fi
4000 rm -f conftest.err conftest.i conftest.$ac_ext
4001
4002   # OK, works on sane cases.  Now check whether nonexistent headers
4003   # can be detected and how.
4004   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4005 /* end confdefs.h.  */
4006 #include <ac_nonexistent.h>
4007 _ACEOF
4008 if ac_fn_c_try_cpp "$LINENO"; then :
4009   # Broken: success on invalid input.
4010 continue
4011 else
4012   # Passes both tests.
4013 ac_preproc_ok=:
4014 break
4015 fi
4016 rm -f conftest.err conftest.i conftest.$ac_ext
4017
4018 done
4019 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4020 rm -f conftest.i conftest.err conftest.$ac_ext
4021 if $ac_preproc_ok; then :
4022   break
4023 fi
4024
4025     done
4026     ac_cv_prog_CPP=$CPP
4027
4028 fi
4029   CPP=$ac_cv_prog_CPP
4030 else
4031   ac_cv_prog_CPP=$CPP
4032 fi
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4034 $as_echo "$CPP" >&6; }
4035 ac_preproc_ok=false
4036 for ac_c_preproc_warn_flag in '' yes
4037 do
4038   # Use a header file that comes with gcc, so configuring glibc
4039   # with a fresh cross-compiler works.
4040   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4041   # <limits.h> exists even on freestanding compilers.
4042   # On the NeXT, cc -E runs the code through the compiler's parser,
4043   # not just through cpp. "Syntax error" is here to catch this case.
4044   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045 /* end confdefs.h.  */
4046 #ifdef __STDC__
4047 # include <limits.h>
4048 #else
4049 # include <assert.h>
4050 #endif
4051                      Syntax error
4052 _ACEOF
4053 if ac_fn_c_try_cpp "$LINENO"; then :
4054
4055 else
4056   # Broken: fails on valid input.
4057 continue
4058 fi
4059 rm -f conftest.err conftest.i conftest.$ac_ext
4060
4061   # OK, works on sane cases.  Now check whether nonexistent headers
4062   # can be detected and how.
4063   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4064 /* end confdefs.h.  */
4065 #include <ac_nonexistent.h>
4066 _ACEOF
4067 if ac_fn_c_try_cpp "$LINENO"; then :
4068   # Broken: success on invalid input.
4069 continue
4070 else
4071   # Passes both tests.
4072 ac_preproc_ok=:
4073 break
4074 fi
4075 rm -f conftest.err conftest.i conftest.$ac_ext
4076
4077 done
4078 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4079 rm -f conftest.i conftest.err conftest.$ac_ext
4080 if $ac_preproc_ok; then :
4081
4082 else
4083   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4084 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4085 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4086 See \`config.log' for more details" "$LINENO" 5; }
4087 fi
4088
4089 ac_ext=c
4090 ac_cpp='$CPP $CPPFLAGS'
4091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4094
4095
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4097 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4098 if ${ac_cv_path_GREP+:} false; then :
4099   $as_echo_n "(cached) " >&6
4100 else
4101   if test -z "$GREP"; then
4102   ac_path_GREP_found=false
4103   # Loop through the user's path and test for each of PROGNAME-LIST
4104   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4106 do
4107   IFS=$as_save_IFS
4108   test -z "$as_dir" && as_dir=.
4109     for ac_prog in grep ggrep; do
4110     for ac_exec_ext in '' $ac_executable_extensions; do
4111       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4112       as_fn_executable_p "$ac_path_GREP" || continue
4113 # Check for GNU ac_path_GREP and select it if it is found.
4114   # Check for GNU $ac_path_GREP
4115 case `"$ac_path_GREP" --version 2>&1` in
4116 *GNU*)
4117   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4118 *)
4119   ac_count=0
4120   $as_echo_n 0123456789 >"conftest.in"
4121   while :
4122   do
4123     cat "conftest.in" "conftest.in" >"conftest.tmp"
4124     mv "conftest.tmp" "conftest.in"
4125     cp "conftest.in" "conftest.nl"
4126     $as_echo 'GREP' >> "conftest.nl"
4127     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4128     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4129     as_fn_arith $ac_count + 1 && ac_count=$as_val
4130     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4131       # Best one so far, save it but keep looking for a better one
4132       ac_cv_path_GREP="$ac_path_GREP"
4133       ac_path_GREP_max=$ac_count
4134     fi
4135     # 10*(2^10) chars as input seems more than enough
4136     test $ac_count -gt 10 && break
4137   done
4138   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4139 esac
4140
4141       $ac_path_GREP_found && break 3
4142     done
4143   done
4144   done
4145 IFS=$as_save_IFS
4146   if test -z "$ac_cv_path_GREP"; then
4147     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4148   fi
4149 else
4150   ac_cv_path_GREP=$GREP
4151 fi
4152
4153 fi
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4155 $as_echo "$ac_cv_path_GREP" >&6; }
4156  GREP="$ac_cv_path_GREP"
4157
4158
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4160 $as_echo_n "checking for egrep... " >&6; }
4161 if ${ac_cv_path_EGREP+:} false; then :
4162   $as_echo_n "(cached) " >&6
4163 else
4164   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4165    then ac_cv_path_EGREP="$GREP -E"
4166    else
4167      if test -z "$EGREP"; then
4168   ac_path_EGREP_found=false
4169   # Loop through the user's path and test for each of PROGNAME-LIST
4170   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4172 do
4173   IFS=$as_save_IFS
4174   test -z "$as_dir" && as_dir=.
4175     for ac_prog in egrep; do
4176     for ac_exec_ext in '' $ac_executable_extensions; do
4177       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4178       as_fn_executable_p "$ac_path_EGREP" || continue
4179 # Check for GNU ac_path_EGREP and select it if it is found.
4180   # Check for GNU $ac_path_EGREP
4181 case `"$ac_path_EGREP" --version 2>&1` in
4182 *GNU*)
4183   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4184 *)
4185   ac_count=0
4186   $as_echo_n 0123456789 >"conftest.in"
4187   while :
4188   do
4189     cat "conftest.in" "conftest.in" >"conftest.tmp"
4190     mv "conftest.tmp" "conftest.in"
4191     cp "conftest.in" "conftest.nl"
4192     $as_echo 'EGREP' >> "conftest.nl"
4193     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4194     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4195     as_fn_arith $ac_count + 1 && ac_count=$as_val
4196     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4197       # Best one so far, save it but keep looking for a better one
4198       ac_cv_path_EGREP="$ac_path_EGREP"
4199       ac_path_EGREP_max=$ac_count
4200     fi
4201     # 10*(2^10) chars as input seems more than enough
4202     test $ac_count -gt 10 && break
4203   done
4204   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4205 esac
4206
4207       $ac_path_EGREP_found && break 3
4208     done
4209   done
4210   done
4211 IFS=$as_save_IFS
4212   if test -z "$ac_cv_path_EGREP"; then
4213     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4214   fi
4215 else
4216   ac_cv_path_EGREP=$EGREP
4217 fi
4218
4219    fi
4220 fi
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4222 $as_echo "$ac_cv_path_EGREP" >&6; }
4223  EGREP="$ac_cv_path_EGREP"
4224
4225
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4227 $as_echo_n "checking for ANSI C header files... " >&6; }
4228 if ${ac_cv_header_stdc+:} false; then :
4229   $as_echo_n "(cached) " >&6
4230 else
4231   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4232 /* end confdefs.h.  */
4233 #include <stdlib.h>
4234 #include <stdarg.h>
4235 #include <string.h>
4236 #include <float.h>
4237
4238 int
4239 main ()
4240 {
4241
4242   ;
4243   return 0;
4244 }
4245 _ACEOF
4246 if ac_fn_c_try_compile "$LINENO"; then :
4247   ac_cv_header_stdc=yes
4248 else
4249   ac_cv_header_stdc=no
4250 fi
4251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4252
4253 if test $ac_cv_header_stdc = yes; then
4254   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4255   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4256 /* end confdefs.h.  */
4257 #include <string.h>
4258
4259 _ACEOF
4260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4261   $EGREP "memchr" >/dev/null 2>&1; then :
4262
4263 else
4264   ac_cv_header_stdc=no
4265 fi
4266 rm -f conftest*
4267
4268 fi
4269
4270 if test $ac_cv_header_stdc = yes; then
4271   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4272   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4273 /* end confdefs.h.  */
4274 #include <stdlib.h>
4275
4276 _ACEOF
4277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4278   $EGREP "free" >/dev/null 2>&1; then :
4279
4280 else
4281   ac_cv_header_stdc=no
4282 fi
4283 rm -f conftest*
4284
4285 fi
4286
4287 if test $ac_cv_header_stdc = yes; then
4288   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4289   if test "$cross_compiling" = yes; then :
4290   :
4291 else
4292   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4293 /* end confdefs.h.  */
4294 #include <ctype.h>
4295 #include <stdlib.h>
4296 #if ((' ' & 0x0FF) == 0x020)
4297 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4298 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4299 #else
4300 # define ISLOWER(c) \
4301                    (('a' <= (c) && (c) <= 'i') \
4302                      || ('j' <= (c) && (c) <= 'r') \
4303                      || ('s' <= (c) && (c) <= 'z'))
4304 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4305 #endif
4306
4307 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4308 int
4309 main ()
4310 {
4311   int i;
4312   for (i = 0; i < 256; i++)
4313     if (XOR (islower (i), ISLOWER (i))
4314         || toupper (i) != TOUPPER (i))
4315       return 2;
4316   return 0;
4317 }
4318 _ACEOF
4319 if ac_fn_c_try_run "$LINENO"; then :
4320
4321 else
4322   ac_cv_header_stdc=no
4323 fi
4324 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4325   conftest.$ac_objext conftest.beam conftest.$ac_ext
4326 fi
4327
4328 fi
4329 fi
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4331 $as_echo "$ac_cv_header_stdc" >&6; }
4332 if test $ac_cv_header_stdc = yes; then
4333
4334 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4335
4336 fi
4337
4338 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4339 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4340                   inttypes.h stdint.h unistd.h
4341 do :
4342   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4343 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4344 "
4345 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4346   cat >>confdefs.h <<_ACEOF
4347 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4348 _ACEOF
4349
4350 fi
4351
4352 done
4353
4354
4355
4356   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4357 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4358   MINIX=yes
4359 else
4360   MINIX=
4361 fi
4362
4363
4364   if test "$MINIX" = yes; then
4365
4366 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4367
4368
4369 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4370
4371
4372 $as_echo "#define _MINIX 1" >>confdefs.h
4373
4374
4375 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
4376
4377   fi
4378
4379
4380   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4381 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4382 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4383   $as_echo_n "(cached) " >&6
4384 else
4385   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4386 /* end confdefs.h.  */
4387
4388 #         define __EXTENSIONS__ 1
4389           $ac_includes_default
4390 int
4391 main ()
4392 {
4393
4394   ;
4395   return 0;
4396 }
4397 _ACEOF
4398 if ac_fn_c_try_compile "$LINENO"; then :
4399   ac_cv_safe_to_define___extensions__=yes
4400 else
4401   ac_cv_safe_to_define___extensions__=no
4402 fi
4403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4404 fi
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4406 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4407   test $ac_cv_safe_to_define___extensions__ = yes &&
4408     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4409
4410   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4411
4412   $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4413
4414   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4415
4416   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4417
4418   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4419
4420   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4421 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4422 if ${ac_cv_should_define__xopen_source+:} false; then :
4423   $as_echo_n "(cached) " >&6
4424 else
4425   ac_cv_should_define__xopen_source=no
4426      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4427 /* end confdefs.h.  */
4428
4429           #include <wchar.h>
4430           mbstate_t x;
4431 int
4432 main ()
4433 {
4434
4435   ;
4436   return 0;
4437 }
4438 _ACEOF
4439 if ac_fn_c_try_compile "$LINENO"; then :
4440
4441 else
4442   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4443 /* end confdefs.h.  */
4444
4445              #define _XOPEN_SOURCE 500
4446              #include <wchar.h>
4447              mbstate_t x;
4448 int
4449 main ()
4450 {
4451
4452   ;
4453   return 0;
4454 }
4455 _ACEOF
4456 if ac_fn_c_try_compile "$LINENO"; then :
4457   ac_cv_should_define__xopen_source=yes
4458 fi
4459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4460 fi
4461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4462 fi
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4464 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
4465   test $ac_cv_should_define__xopen_source = yes &&
4466     $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4467
4468
4469
4470 mkdir_p="$MKDIR_P"
4471 case $mkdir_p in
4472   [\\/$]* | ?:[\\/]*) ;;
4473   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4474 esac
4475
4476
4477   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4478 $as_echo_n "checking whether NLS is requested... " >&6; }
4479     # Check whether --enable-nls was given.
4480 if test "${enable_nls+set}" = set; then :
4481   enableval=$enable_nls; USE_NLS=$enableval
4482 else
4483   USE_NLS=yes
4484 fi
4485
4486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
4487 $as_echo "$USE_NLS" >&6; }
4488
4489
4490
4491
4492       GETTEXT_MACRO_VERSION=0.18
4493
4494
4495
4496
4497 # Prepare PATH_SEPARATOR.
4498 # The user is always right.
4499 if test "${PATH_SEPARATOR+set}" != set; then
4500   echo "#! /bin/sh" >conf$$.sh
4501   echo  "exit 0"   >>conf$$.sh
4502   chmod +x conf$$.sh
4503   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4504     PATH_SEPARATOR=';'
4505   else
4506     PATH_SEPARATOR=:
4507   fi
4508   rm -f conf$$.sh
4509 fi
4510
4511 # Find out how to test for executable files. Don't use a zero-byte file,
4512 # as systems may use methods other than mode bits to determine executability.
4513 cat >conf$$.file <<_ASEOF
4514 #! /bin/sh
4515 exit 0
4516 _ASEOF
4517 chmod +x conf$$.file
4518 if test -x conf$$.file >/dev/null 2>&1; then
4519   ac_executable_p="test -x"
4520 else
4521   ac_executable_p="test -f"
4522 fi
4523 rm -f conf$$.file
4524
4525 # Extract the first word of "msgfmt", so it can be a program name with args.
4526 set dummy msgfmt; ac_word=$2
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4528 $as_echo_n "checking for $ac_word... " >&6; }
4529 if ${ac_cv_path_MSGFMT+:} false; then :
4530   $as_echo_n "(cached) " >&6
4531 else
4532   case "$MSGFMT" in
4533   [\\/]* | ?:[\\/]*)
4534     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4535     ;;
4536   *)
4537     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4538     for ac_dir in $PATH; do
4539       IFS="$ac_save_IFS"
4540       test -z "$ac_dir" && ac_dir=.
4541       for ac_exec_ext in '' $ac_executable_extensions; do
4542         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4543           echo "$as_me: trying $ac_dir/$ac_word..." >&5
4544           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4545      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4546             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4547             break 2
4548           fi
4549         fi
4550       done
4551     done
4552     IFS="$ac_save_IFS"
4553   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4554     ;;
4555 esac
4556 fi
4557 MSGFMT="$ac_cv_path_MSGFMT"
4558 if test "$MSGFMT" != ":"; then
4559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
4560 $as_echo "$MSGFMT" >&6; }
4561 else
4562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4563 $as_echo "no" >&6; }
4564 fi
4565
4566   # Extract the first word of "gmsgfmt", so it can be a program name with args.
4567 set dummy gmsgfmt; ac_word=$2
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4569 $as_echo_n "checking for $ac_word... " >&6; }
4570 if ${ac_cv_path_GMSGFMT+:} false; then :
4571   $as_echo_n "(cached) " >&6
4572 else
4573   case $GMSGFMT in
4574   [\\/]* | ?:[\\/]*)
4575   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4576   ;;
4577   *)
4578   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579 for as_dir in $PATH
4580 do
4581   IFS=$as_save_IFS
4582   test -z "$as_dir" && as_dir=.
4583     for ac_exec_ext in '' $ac_executable_extensions; do
4584   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4585     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4586     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4587     break 2
4588   fi
4589 done
4590   done
4591 IFS=$as_save_IFS
4592
4593   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4594   ;;
4595 esac
4596 fi
4597 GMSGFMT=$ac_cv_path_GMSGFMT
4598 if test -n "$GMSGFMT"; then
4599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
4600 $as_echo "$GMSGFMT" >&6; }
4601 else
4602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4603 $as_echo "no" >&6; }
4604 fi
4605
4606
4607
4608     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4609     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
4610     *) MSGFMT_015=$MSGFMT ;;
4611   esac
4612
4613   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4614     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
4615     *) GMSGFMT_015=$GMSGFMT ;;
4616   esac
4617
4618
4619
4620 # Prepare PATH_SEPARATOR.
4621 # The user is always right.
4622 if test "${PATH_SEPARATOR+set}" != set; then
4623   echo "#! /bin/sh" >conf$$.sh
4624   echo  "exit 0"   >>conf$$.sh
4625   chmod +x conf$$.sh
4626   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4627     PATH_SEPARATOR=';'
4628   else
4629     PATH_SEPARATOR=:
4630   fi
4631   rm -f conf$$.sh
4632 fi
4633
4634 # Find out how to test for executable files. Don't use a zero-byte file,
4635 # as systems may use methods other than mode bits to determine executability.
4636 cat >conf$$.file <<_ASEOF
4637 #! /bin/sh
4638 exit 0
4639 _ASEOF
4640 chmod +x conf$$.file
4641 if test -x conf$$.file >/dev/null 2>&1; then
4642   ac_executable_p="test -x"
4643 else
4644   ac_executable_p="test -f"
4645 fi
4646 rm -f conf$$.file
4647
4648 # Extract the first word of "xgettext", so it can be a program name with args.
4649 set dummy xgettext; ac_word=$2
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4651 $as_echo_n "checking for $ac_word... " >&6; }
4652 if ${ac_cv_path_XGETTEXT+:} false; then :
4653   $as_echo_n "(cached) " >&6
4654 else
4655   case "$XGETTEXT" in
4656   [\\/]* | ?:[\\/]*)
4657     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4658     ;;
4659   *)
4660     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4661     for ac_dir in $PATH; do
4662       IFS="$ac_save_IFS"
4663       test -z "$ac_dir" && ac_dir=.
4664       for ac_exec_ext in '' $ac_executable_extensions; do
4665         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4666           echo "$as_me: trying $ac_dir/$ac_word..." >&5
4667           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
4668      (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
4669             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4670             break 2
4671           fi
4672         fi
4673       done
4674     done
4675     IFS="$ac_save_IFS"
4676   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4677     ;;
4678 esac
4679 fi
4680 XGETTEXT="$ac_cv_path_XGETTEXT"
4681 if test "$XGETTEXT" != ":"; then
4682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
4683 $as_echo "$XGETTEXT" >&6; }
4684 else
4685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4686 $as_echo "no" >&6; }
4687 fi
4688
4689     rm -f messages.po
4690
4691     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4692     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
4693     *) XGETTEXT_015=$XGETTEXT ;;
4694   esac
4695
4696
4697
4698 # Prepare PATH_SEPARATOR.
4699 # The user is always right.
4700 if test "${PATH_SEPARATOR+set}" != set; then
4701   echo "#! /bin/sh" >conf$$.sh
4702   echo  "exit 0"   >>conf$$.sh
4703   chmod +x conf$$.sh
4704   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4705     PATH_SEPARATOR=';'
4706   else
4707     PATH_SEPARATOR=:
4708   fi
4709   rm -f conf$$.sh
4710 fi
4711
4712 # Find out how to test for executable files. Don't use a zero-byte file,
4713 # as systems may use methods other than mode bits to determine executability.
4714 cat >conf$$.file <<_ASEOF
4715 #! /bin/sh
4716 exit 0
4717 _ASEOF
4718 chmod +x conf$$.file
4719 if test -x conf$$.file >/dev/null 2>&1; then
4720   ac_executable_p="test -x"
4721 else
4722   ac_executable_p="test -f"
4723 fi
4724 rm -f conf$$.file
4725
4726 # Extract the first word of "msgmerge", so it can be a program name with args.
4727 set dummy msgmerge; ac_word=$2
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4729 $as_echo_n "checking for $ac_word... " >&6; }
4730 if ${ac_cv_path_MSGMERGE+:} false; then :
4731   $as_echo_n "(cached) " >&6
4732 else
4733   case "$MSGMERGE" in
4734   [\\/]* | ?:[\\/]*)
4735     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4736     ;;
4737   *)
4738     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4739     for ac_dir in $PATH; do
4740       IFS="$ac_save_IFS"
4741       test -z "$ac_dir" && ac_dir=.
4742       for ac_exec_ext in '' $ac_executable_extensions; do
4743         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4744           echo "$as_me: trying $ac_dir/$ac_word..." >&5
4745           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
4746             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4747             break 2
4748           fi
4749         fi
4750       done
4751     done
4752     IFS="$ac_save_IFS"
4753   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4754     ;;
4755 esac
4756 fi
4757 MSGMERGE="$ac_cv_path_MSGMERGE"
4758 if test "$MSGMERGE" != ":"; then
4759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
4760 $as_echo "$MSGMERGE" >&6; }
4761 else
4762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4763 $as_echo "no" >&6; }
4764 fi
4765
4766
4767         test -n "$localedir" || localedir='${datadir}/locale'
4768
4769
4770     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
4771
4772
4773   ac_config_commands="$ac_config_commands po-directories"
4774
4775
4776
4777       if test "X$prefix" = "XNONE"; then
4778     acl_final_prefix="$ac_default_prefix"
4779   else
4780     acl_final_prefix="$prefix"
4781   fi
4782   if test "X$exec_prefix" = "XNONE"; then
4783     acl_final_exec_prefix='${prefix}'
4784   else
4785     acl_final_exec_prefix="$exec_prefix"
4786   fi
4787   acl_save_prefix="$prefix"
4788   prefix="$acl_final_prefix"
4789   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
4790   prefix="$acl_save_prefix"
4791
4792 # Make sure we can run config.sub.
4793 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4794   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4795
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4797 $as_echo_n "checking build system type... " >&6; }
4798 if ${ac_cv_build+:} false; then :
4799   $as_echo_n "(cached) " >&6
4800 else
4801   ac_build_alias=$build_alias
4802 test "x$ac_build_alias" = x &&
4803   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4804 test "x$ac_build_alias" = x &&
4805   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4806 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4807   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4808
4809 fi
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4811 $as_echo "$ac_cv_build" >&6; }
4812 case $ac_cv_build in
4813 *-*-*) ;;
4814 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4815 esac
4816 build=$ac_cv_build
4817 ac_save_IFS=$IFS; IFS='-'
4818 set x $ac_cv_build
4819 shift
4820 build_cpu=$1
4821 build_vendor=$2
4822 shift; shift
4823 # Remember, the first character of IFS is used to create $*,
4824 # except with old shells:
4825 build_os=$*
4826 IFS=$ac_save_IFS
4827 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4828
4829
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4831 $as_echo_n "checking host system type... " >&6; }
4832 if ${ac_cv_host+:} false; then :
4833   $as_echo_n "(cached) " >&6
4834 else
4835   if test "x$host_alias" = x; then
4836   ac_cv_host=$ac_cv_build
4837 else
4838   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4839     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4840 fi
4841
4842 fi
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4844 $as_echo "$ac_cv_host" >&6; }
4845 case $ac_cv_host in
4846 *-*-*) ;;
4847 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4848 esac
4849 host=$ac_cv_host
4850 ac_save_IFS=$IFS; IFS='-'
4851 set x $ac_cv_host
4852 shift
4853 host_cpu=$1
4854 host_vendor=$2
4855 shift; shift
4856 # Remember, the first character of IFS is used to create $*,
4857 # except with old shells:
4858 host_os=$*
4859 IFS=$ac_save_IFS
4860 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4861
4862
4863
4864 # Check whether --with-gnu-ld was given.
4865 if test "${with_gnu_ld+set}" = set; then :
4866   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4867 else
4868   with_gnu_ld=no
4869 fi
4870
4871 # Prepare PATH_SEPARATOR.
4872 # The user is always right.
4873 if test "${PATH_SEPARATOR+set}" != set; then
4874   echo "#! /bin/sh" >conf$$.sh
4875   echo  "exit 0"   >>conf$$.sh
4876   chmod +x conf$$.sh
4877   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4878     PATH_SEPARATOR=';'
4879   else
4880     PATH_SEPARATOR=:
4881   fi
4882   rm -f conf$$.sh
4883 fi
4884 ac_prog=ld
4885 if test "$GCC" = yes; then
4886   # Check if gcc -print-prog-name=ld gives a path.
4887   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
4888 $as_echo_n "checking for ld used by GCC... " >&6; }
4889   case $host in
4890   *-*-mingw*)
4891     # gcc leaves a trailing carriage return which upsets mingw
4892     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4893   *)
4894     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4895   esac
4896   case $ac_prog in
4897     # Accept absolute paths.
4898     [\\/]* | [A-Za-z]:[\\/]*)
4899       re_direlt='/[^/][^/]*/\.\./'
4900       # Canonicalize the path of ld
4901       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4902       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4903         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4904       done
4905       test -z "$LD" && LD="$ac_prog"
4906       ;;
4907   "")
4908     # If it fails, then pretend we aren't using GCC.
4909     ac_prog=ld
4910     ;;
4911   *)
4912     # If it is relative, then search for the first ld in PATH.
4913     with_gnu_ld=unknown
4914     ;;
4915   esac
4916 elif test "$with_gnu_ld" = yes; then
4917   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4918 $as_echo_n "checking for GNU ld... " >&6; }
4919 else
4920   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4921 $as_echo_n "checking for non-GNU ld... " >&6; }
4922 fi
4923 if ${acl_cv_path_LD+:} false; then :
4924   $as_echo_n "(cached) " >&6
4925 else
4926   if test -z "$LD"; then
4927   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4928   for ac_dir in $PATH; do
4929     test -z "$ac_dir" && ac_dir=.
4930     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4931       acl_cv_path_LD="$ac_dir/$ac_prog"
4932       # Check to see if the program is GNU ld.  I'd rather use --version,
4933       # but apparently some GNU ld's only accept -v.
4934       # Break only if it was the GNU/non-GNU ld that we prefer.
4935       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
4936       *GNU* | *'with BFD'*)
4937         test "$with_gnu_ld" != no && break ;;
4938       *)
4939         test "$with_gnu_ld" != yes && break ;;
4940       esac
4941     fi
4942   done
4943   IFS="$ac_save_ifs"
4944 else
4945   acl_cv_path_LD="$LD" # Let the user override the test with a path.
4946 fi
4947 fi
4948
4949 LD="$acl_cv_path_LD"
4950 if test -n "$LD"; then
4951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4952 $as_echo "$LD" >&6; }
4953 else
4954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4955 $as_echo "no" >&6; }
4956 fi
4957 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4959 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4960 if ${acl_cv_prog_gnu_ld+:} false; then :
4961   $as_echo_n "(cached) " >&6
4962 else
4963   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4964 case `$LD -v 2>&1 </dev/null` in
4965 *GNU* | *'with BFD'*)
4966   acl_cv_prog_gnu_ld=yes ;;
4967 *)
4968   acl_cv_prog_gnu_ld=no ;;
4969 esac
4970 fi
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4972 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4973 with_gnu_ld=$acl_cv_prog_gnu_ld
4974
4975
4976
4977
4978                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
4979 $as_echo_n "checking for shared library run path origin... " >&6; }
4980 if ${acl_cv_rpath+:} false; then :
4981   $as_echo_n "(cached) " >&6
4982 else
4983
4984     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4985     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4986     . ./conftest.sh
4987     rm -f ./conftest.sh
4988     acl_cv_rpath=done
4989
4990 fi
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
4992 $as_echo "$acl_cv_rpath" >&6; }
4993   wl="$acl_cv_wl"
4994   acl_libext="$acl_cv_libext"
4995   acl_shlibext="$acl_cv_shlibext"
4996   acl_libname_spec="$acl_cv_libname_spec"
4997   acl_library_names_spec="$acl_cv_library_names_spec"
4998   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4999   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5000   acl_hardcode_direct="$acl_cv_hardcode_direct"
5001   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5002     # Check whether --enable-rpath was given.
5003 if test "${enable_rpath+set}" = set; then :
5004   enableval=$enable_rpath; :
5005 else
5006   enable_rpath=yes
5007 fi
5008
5009
5010
5011
5012   acl_libdirstem=lib
5013   acl_libdirstem2=
5014   case "$host_os" in
5015     solaris*)
5016                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
5017 $as_echo_n "checking for 64-bit host... " >&6; }
5018 if ${gl_cv_solaris_64bit+:} false; then :
5019   $as_echo_n "(cached) " >&6
5020 else
5021   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5022 /* end confdefs.h.  */
5023
5024 #ifdef _LP64
5025 sixtyfour bits
5026 #endif
5027
5028 _ACEOF
5029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5030   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
5031   gl_cv_solaris_64bit=yes
5032 else
5033   gl_cv_solaris_64bit=no
5034 fi
5035 rm -f conftest*
5036
5037
5038 fi
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
5040 $as_echo "$gl_cv_solaris_64bit" >&6; }
5041       if test $gl_cv_solaris_64bit = yes; then
5042         acl_libdirstem=lib/64
5043         case "$host_cpu" in
5044           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
5045           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
5046         esac
5047       fi
5048       ;;
5049     *)
5050       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5051       if test -n "$searchpath"; then
5052         acl_save_IFS="${IFS=    }"; IFS=":"
5053         for searchdir in $searchpath; do
5054           if test -d "$searchdir"; then
5055             case "$searchdir" in
5056               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
5057               */../ | */.. )
5058                 # Better ignore directories of this form. They are misleading.
5059                 ;;
5060               *) searchdir=`cd "$searchdir" && pwd`
5061                  case "$searchdir" in
5062                    */lib64 ) acl_libdirstem=lib64 ;;
5063                  esac ;;
5064             esac
5065           fi
5066         done
5067         IFS="$acl_save_IFS"
5068       fi
5069       ;;
5070   esac
5071   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084     use_additional=yes
5085
5086   acl_save_prefix="$prefix"
5087   prefix="$acl_final_prefix"
5088   acl_save_exec_prefix="$exec_prefix"
5089   exec_prefix="$acl_final_exec_prefix"
5090
5091     eval additional_includedir=\"$includedir\"
5092     eval additional_libdir=\"$libdir\"
5093
5094   exec_prefix="$acl_save_exec_prefix"
5095   prefix="$acl_save_prefix"
5096
5097
5098 # Check whether --with-libiconv-prefix was given.
5099 if test "${with_libiconv_prefix+set}" = set; then :
5100   withval=$with_libiconv_prefix;
5101     if test "X$withval" = "Xno"; then
5102       use_additional=no
5103     else
5104       if test "X$withval" = "X"; then
5105
5106   acl_save_prefix="$prefix"
5107   prefix="$acl_final_prefix"
5108   acl_save_exec_prefix="$exec_prefix"
5109   exec_prefix="$acl_final_exec_prefix"
5110
5111           eval additional_includedir=\"$includedir\"
5112           eval additional_libdir=\"$libdir\"
5113
5114   exec_prefix="$acl_save_exec_prefix"
5115   prefix="$acl_save_prefix"
5116
5117       else
5118         additional_includedir="$withval/include"
5119         additional_libdir="$withval/$acl_libdirstem"
5120         if test "$acl_libdirstem2" != "$acl_libdirstem" \
5121            && ! test -d "$withval/$acl_libdirstem"; then
5122           additional_libdir="$withval/$acl_libdirstem2"
5123         fi
5124       fi
5125     fi
5126
5127 fi
5128
5129       LIBICONV=
5130   LTLIBICONV=
5131   INCICONV=
5132   LIBICONV_PREFIX=
5133       HAVE_LIBICONV=
5134   rpathdirs=
5135   ltrpathdirs=
5136   names_already_handled=
5137   names_next_round='iconv '
5138   while test -n "$names_next_round"; do
5139     names_this_round="$names_next_round"
5140     names_next_round=
5141     for name in $names_this_round; do
5142       already_handled=
5143       for n in $names_already_handled; do
5144         if test "$n" = "$name"; then
5145           already_handled=yes
5146           break
5147         fi
5148       done
5149       if test -z "$already_handled"; then
5150         names_already_handled="$names_already_handled $name"
5151                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5152         eval value=\"\$HAVE_LIB$uppername\"
5153         if test -n "$value"; then
5154           if test "$value" = yes; then
5155             eval value=\"\$LIB$uppername\"
5156             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5157             eval value=\"\$LTLIB$uppername\"
5158             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5159           else
5160                                     :
5161           fi
5162         else
5163                               found_dir=
5164           found_la=
5165           found_so=
5166           found_a=
5167           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
5168           if test -n "$acl_shlibext"; then
5169             shrext=".$acl_shlibext"             # typically: shrext=.so
5170           else
5171             shrext=
5172           fi
5173           if test $use_additional = yes; then
5174             dir="$additional_libdir"
5175                                     if test -n "$acl_shlibext"; then
5176               if test -f "$dir/$libname$shrext"; then
5177                 found_dir="$dir"
5178                 found_so="$dir/$libname$shrext"
5179               else
5180                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5181                   ver=`(cd "$dir" && \
5182                         for f in "$libname$shrext".*; do echo "$f"; done \
5183                         | sed -e "s,^$libname$shrext\\\\.,," \
5184                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5185                         | sed 1q ) 2>/dev/null`
5186                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5187                     found_dir="$dir"
5188                     found_so="$dir/$libname$shrext.$ver"
5189                   fi
5190                 else
5191                   eval library_names=\"$acl_library_names_spec\"
5192                   for f in $library_names; do
5193                     if test -f "$dir/$f"; then
5194                       found_dir="$dir"
5195                       found_so="$dir/$f"
5196                       break
5197                     fi
5198                   done
5199                 fi
5200               fi
5201             fi
5202                         if test "X$found_dir" = "X"; then
5203               if test -f "$dir/$libname.$acl_libext"; then
5204                 found_dir="$dir"
5205                 found_a="$dir/$libname.$acl_libext"
5206               fi
5207             fi
5208             if test "X$found_dir" != "X"; then
5209               if test -f "$dir/$libname.la"; then
5210                 found_la="$dir/$libname.la"
5211               fi
5212             fi
5213           fi
5214           if test "X$found_dir" = "X"; then
5215             for x in $LDFLAGS $LTLIBICONV; 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               case "$x" in
5226                 -L*)
5227                   dir=`echo "X$x" | sed -e 's/^X-L//'`
5228                                     if test -n "$acl_shlibext"; then
5229                     if test -f "$dir/$libname$shrext"; then
5230                       found_dir="$dir"
5231                       found_so="$dir/$libname$shrext"
5232                     else
5233                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5234                         ver=`(cd "$dir" && \
5235                               for f in "$libname$shrext".*; do echo "$f"; done \
5236                               | sed -e "s,^$libname$shrext\\\\.,," \
5237                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5238                               | sed 1q ) 2>/dev/null`
5239                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5240                           found_dir="$dir"
5241                           found_so="$dir/$libname$shrext.$ver"
5242                         fi
5243                       else
5244                         eval library_names=\"$acl_library_names_spec\"
5245                         for f in $library_names; do
5246                           if test -f "$dir/$f"; then
5247                             found_dir="$dir"
5248                             found_so="$dir/$f"
5249                             break
5250                           fi
5251                         done
5252                       fi
5253                     fi
5254                   fi
5255                                     if test "X$found_dir" = "X"; then
5256                     if test -f "$dir/$libname.$acl_libext"; then
5257                       found_dir="$dir"
5258                       found_a="$dir/$libname.$acl_libext"
5259                     fi
5260                   fi
5261                   if test "X$found_dir" != "X"; then
5262                     if test -f "$dir/$libname.la"; then
5263                       found_la="$dir/$libname.la"
5264                     fi
5265                   fi
5266                   ;;
5267               esac
5268               if test "X$found_dir" != "X"; then
5269                 break
5270               fi
5271             done
5272           fi
5273           if test "X$found_dir" != "X"; then
5274                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5275             if test "X$found_so" != "X"; then
5276                                                         if test "$enable_rpath" = no \
5277                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
5278                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
5279                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5280               else
5281                                                                                 haveit=
5282                 for x in $ltrpathdirs; do
5283                   if test "X$x" = "X$found_dir"; then
5284                     haveit=yes
5285                     break
5286                   fi
5287                 done
5288                 if test -z "$haveit"; then
5289                   ltrpathdirs="$ltrpathdirs $found_dir"
5290                 fi
5291                                 if test "$acl_hardcode_direct" = yes; then
5292                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5293                 else
5294                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5295                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5296                                                             haveit=
5297                     for x in $rpathdirs; do
5298                       if test "X$x" = "X$found_dir"; then
5299                         haveit=yes
5300                         break
5301                       fi
5302                     done
5303                     if test -z "$haveit"; then
5304                       rpathdirs="$rpathdirs $found_dir"
5305                     fi
5306                   else
5307                                                                                 haveit=
5308                     for x in $LDFLAGS $LIBICONV; do
5309
5310   acl_save_prefix="$prefix"
5311   prefix="$acl_final_prefix"
5312   acl_save_exec_prefix="$exec_prefix"
5313   exec_prefix="$acl_final_exec_prefix"
5314   eval x=\"$x\"
5315   exec_prefix="$acl_save_exec_prefix"
5316   prefix="$acl_save_prefix"
5317
5318                       if test "X$x" = "X-L$found_dir"; then
5319                         haveit=yes
5320                         break
5321                       fi
5322                     done
5323                     if test -z "$haveit"; then
5324                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5325                     fi
5326                     if test "$acl_hardcode_minus_L" != no; then
5327                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5328                     else
5329                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5330                     fi
5331                   fi
5332                 fi
5333               fi
5334             else
5335               if test "X$found_a" != "X"; then
5336                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5337               else
5338                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5339               fi
5340             fi
5341                         additional_includedir=
5342             case "$found_dir" in
5343               */$acl_libdirstem | */$acl_libdirstem/)
5344                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5345                 if test "$name" = 'iconv'; then
5346                   LIBICONV_PREFIX="$basedir"
5347                 fi
5348                 additional_includedir="$basedir/include"
5349                 ;;
5350               */$acl_libdirstem2 | */$acl_libdirstem2/)
5351                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
5352                 if test "$name" = 'iconv'; then
5353                   LIBICONV_PREFIX="$basedir"
5354                 fi
5355                 additional_includedir="$basedir/include"
5356                 ;;
5357             esac
5358             if test "X$additional_includedir" != "X"; then
5359                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
5360                 haveit=
5361                 if test "X$additional_includedir" = "X/usr/local/include"; then
5362                   if test -n "$GCC"; then
5363                     case $host_os in
5364                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5365                     esac
5366                   fi
5367                 fi
5368                 if test -z "$haveit"; then
5369                   for x in $CPPFLAGS $INCICONV; do
5370
5371   acl_save_prefix="$prefix"
5372   prefix="$acl_final_prefix"
5373   acl_save_exec_prefix="$exec_prefix"
5374   exec_prefix="$acl_final_exec_prefix"
5375   eval x=\"$x\"
5376   exec_prefix="$acl_save_exec_prefix"
5377   prefix="$acl_save_prefix"
5378
5379                     if test "X$x" = "X-I$additional_includedir"; then
5380                       haveit=yes
5381                       break
5382                     fi
5383                   done
5384                   if test -z "$haveit"; then
5385                     if test -d "$additional_includedir"; then
5386                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5387                     fi
5388                   fi
5389                 fi
5390               fi
5391             fi
5392                         if test -n "$found_la"; then
5393                                                         save_libdir="$libdir"
5394               case "$found_la" in
5395                 */* | *\\*) . "$found_la" ;;
5396                 *) . "./$found_la" ;;
5397               esac
5398               libdir="$save_libdir"
5399                             for dep in $dependency_libs; do
5400                 case "$dep" in
5401                   -L*)
5402                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5403                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
5404                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5405                       haveit=
5406                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
5407                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5408                         if test -n "$GCC"; then
5409                           case $host_os in
5410                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5411                           esac
5412                         fi
5413                       fi
5414                       if test -z "$haveit"; then
5415                         haveit=
5416                         for x in $LDFLAGS $LIBICONV; do
5417
5418   acl_save_prefix="$prefix"
5419   prefix="$acl_final_prefix"
5420   acl_save_exec_prefix="$exec_prefix"
5421   exec_prefix="$acl_final_exec_prefix"
5422   eval x=\"$x\"
5423   exec_prefix="$acl_save_exec_prefix"
5424   prefix="$acl_save_prefix"
5425
5426                           if test "X$x" = "X-L$additional_libdir"; then
5427                             haveit=yes
5428                             break
5429                           fi
5430                         done
5431                         if test -z "$haveit"; then
5432                           if test -d "$additional_libdir"; then
5433                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5434                           fi
5435                         fi
5436                         haveit=
5437                         for x in $LDFLAGS $LTLIBICONV; do
5438
5439   acl_save_prefix="$prefix"
5440   prefix="$acl_final_prefix"
5441   acl_save_exec_prefix="$exec_prefix"
5442   exec_prefix="$acl_final_exec_prefix"
5443   eval x=\"$x\"
5444   exec_prefix="$acl_save_exec_prefix"
5445   prefix="$acl_save_prefix"
5446
5447                           if test "X$x" = "X-L$additional_libdir"; then
5448                             haveit=yes
5449                             break
5450                           fi
5451                         done
5452                         if test -z "$haveit"; then
5453                           if test -d "$additional_libdir"; then
5454                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5455                           fi
5456                         fi
5457                       fi
5458                     fi
5459                     ;;
5460                   -R*)
5461                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
5462                     if test "$enable_rpath" != no; then
5463                                                                   haveit=
5464                       for x in $rpathdirs; do
5465                         if test "X$x" = "X$dir"; then
5466                           haveit=yes
5467                           break
5468                         fi
5469                       done
5470                       if test -z "$haveit"; then
5471                         rpathdirs="$rpathdirs $dir"
5472                       fi
5473                                                                   haveit=
5474                       for x in $ltrpathdirs; do
5475                         if test "X$x" = "X$dir"; then
5476                           haveit=yes
5477                           break
5478                         fi
5479                       done
5480                       if test -z "$haveit"; then
5481                         ltrpathdirs="$ltrpathdirs $dir"
5482                       fi
5483                     fi
5484                     ;;
5485                   -l*)
5486                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5487                     ;;
5488                   *.la)
5489                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5490                     ;;
5491                   *)
5492                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5493                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5494                     ;;
5495                 esac
5496               done
5497             fi
5498           else
5499                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5500             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5501           fi
5502         fi
5503       fi
5504     done
5505   done
5506   if test "X$rpathdirs" != "X"; then
5507     if test -n "$acl_hardcode_libdir_separator"; then
5508                         alldirs=
5509       for found_dir in $rpathdirs; do
5510         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5511       done
5512             acl_save_libdir="$libdir"
5513       libdir="$alldirs"
5514       eval flag=\"$acl_hardcode_libdir_flag_spec\"
5515       libdir="$acl_save_libdir"
5516       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5517     else
5518             for found_dir in $rpathdirs; do
5519         acl_save_libdir="$libdir"
5520         libdir="$found_dir"
5521         eval flag=\"$acl_hardcode_libdir_flag_spec\"
5522         libdir="$acl_save_libdir"
5523         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5524       done
5525     fi
5526   fi
5527   if test "X$ltrpathdirs" != "X"; then
5528             for found_dir in $ltrpathdirs; do
5529       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5530     done
5531   fi
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
5564 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
5565 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
5566   $as_echo_n "(cached) " >&6
5567 else
5568   gt_save_LIBS="$LIBS"
5569      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5570      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5571 /* end confdefs.h.  */
5572 #include <CoreFoundation/CFPreferences.h>
5573 int
5574 main ()
5575 {
5576 CFPreferencesCopyAppValue(NULL, NULL)
5577   ;
5578   return 0;
5579 }
5580 _ACEOF
5581 if ac_fn_c_try_link "$LINENO"; then :
5582   gt_cv_func_CFPreferencesCopyAppValue=yes
5583 else
5584   gt_cv_func_CFPreferencesCopyAppValue=no
5585 fi
5586 rm -f core conftest.err conftest.$ac_objext \
5587     conftest$ac_exeext conftest.$ac_ext
5588      LIBS="$gt_save_LIBS"
5589 fi
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5591 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
5592   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5593
5594 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
5595
5596   fi
5597     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
5598 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
5599 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
5600   $as_echo_n "(cached) " >&6
5601 else
5602   gt_save_LIBS="$LIBS"
5603      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5604      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5605 /* end confdefs.h.  */
5606 #include <CoreFoundation/CFLocale.h>
5607 int
5608 main ()
5609 {
5610 CFLocaleCopyCurrent();
5611   ;
5612   return 0;
5613 }
5614 _ACEOF
5615 if ac_fn_c_try_link "$LINENO"; then :
5616   gt_cv_func_CFLocaleCopyCurrent=yes
5617 else
5618   gt_cv_func_CFLocaleCopyCurrent=no
5619 fi
5620 rm -f core conftest.err conftest.$ac_objext \
5621     conftest$ac_exeext conftest.$ac_ext
5622      LIBS="$gt_save_LIBS"
5623 fi
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5625 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
5626   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5627
5628 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
5629
5630   fi
5631   INTL_MACOSX_LIBS=
5632   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5633     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5634   fi
5635
5636
5637
5638
5639
5640
5641   LIBINTL=
5642   LTLIBINTL=
5643   POSUB=
5644
5645     case " $gt_needs " in
5646     *" need-formatstring-macros "*) gt_api_version=3 ;;
5647     *" need-ngettext "*) gt_api_version=2 ;;
5648     *) gt_api_version=1 ;;
5649   esac
5650   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
5651   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
5652
5653     if test "$USE_NLS" = "yes"; then
5654     gt_use_preinstalled_gnugettext=no
5655
5656
5657         if test $gt_api_version -ge 3; then
5658           gt_revision_test_code='
5659 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
5660 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
5661 #endif
5662 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
5663 '
5664         else
5665           gt_revision_test_code=
5666         fi
5667         if test $gt_api_version -ge 2; then
5668           gt_expression_test_code=' + * ngettext ("", "", 0)'
5669         else
5670           gt_expression_test_code=
5671         fi
5672
5673         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
5674 $as_echo_n "checking for GNU gettext in libc... " >&6; }
5675 if eval \${$gt_func_gnugettext_libc+:} false; then :
5676   $as_echo_n "(cached) " >&6
5677 else
5678   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5679 /* end confdefs.h.  */
5680 #include <libintl.h>
5681 $gt_revision_test_code
5682 extern int _nl_msg_cat_cntr;
5683 extern int *_nl_domain_bindings;
5684 int
5685 main ()
5686 {
5687 bindtextdomain ("", "");
5688 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
5689   ;
5690   return 0;
5691 }
5692 _ACEOF
5693 if ac_fn_c_try_link "$LINENO"; then :
5694   eval "$gt_func_gnugettext_libc=yes"
5695 else
5696   eval "$gt_func_gnugettext_libc=no"
5697 fi
5698 rm -f core conftest.err conftest.$ac_objext \
5699     conftest$ac_exeext conftest.$ac_ext
5700 fi
5701 eval ac_res=\$$gt_func_gnugettext_libc
5702                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5703 $as_echo "$ac_res" >&6; }
5704
5705         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
5706
5707
5708
5709
5710
5711           am_save_CPPFLAGS="$CPPFLAGS"
5712
5713   for element in $INCICONV; do
5714     haveit=
5715     for x in $CPPFLAGS; do
5716
5717   acl_save_prefix="$prefix"
5718   prefix="$acl_final_prefix"
5719   acl_save_exec_prefix="$exec_prefix"
5720   exec_prefix="$acl_final_exec_prefix"
5721   eval x=\"$x\"
5722   exec_prefix="$acl_save_exec_prefix"
5723   prefix="$acl_save_prefix"
5724
5725       if test "X$x" = "X$element"; then
5726         haveit=yes
5727         break
5728       fi
5729     done
5730     if test -z "$haveit"; then
5731       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5732     fi
5733   done
5734
5735
5736   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
5737 $as_echo_n "checking for iconv... " >&6; }
5738 if ${am_cv_func_iconv+:} false; then :
5739   $as_echo_n "(cached) " >&6
5740 else
5741
5742     am_cv_func_iconv="no, consider installing GNU libiconv"
5743     am_cv_lib_iconv=no
5744     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5745 /* end confdefs.h.  */
5746 #include <stdlib.h>
5747 #include <iconv.h>
5748 int
5749 main ()
5750 {
5751 iconv_t cd = iconv_open("","");
5752        iconv(cd,NULL,NULL,NULL,NULL);
5753        iconv_close(cd);
5754   ;
5755   return 0;
5756 }
5757 _ACEOF
5758 if ac_fn_c_try_link "$LINENO"; then :
5759   am_cv_func_iconv=yes
5760 fi
5761 rm -f core conftest.err conftest.$ac_objext \
5762     conftest$ac_exeext conftest.$ac_ext
5763     if test "$am_cv_func_iconv" != yes; then
5764       am_save_LIBS="$LIBS"
5765       LIBS="$LIBS $LIBICONV"
5766       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5767 /* end confdefs.h.  */
5768 #include <stdlib.h>
5769 #include <iconv.h>
5770 int
5771 main ()
5772 {
5773 iconv_t cd = iconv_open("","");
5774          iconv(cd,NULL,NULL,NULL,NULL);
5775          iconv_close(cd);
5776   ;
5777   return 0;
5778 }
5779 _ACEOF
5780 if ac_fn_c_try_link "$LINENO"; then :
5781   am_cv_lib_iconv=yes
5782         am_cv_func_iconv=yes
5783 fi
5784 rm -f core conftest.err conftest.$ac_objext \
5785     conftest$ac_exeext conftest.$ac_ext
5786       LIBS="$am_save_LIBS"
5787     fi
5788
5789 fi
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
5791 $as_echo "$am_cv_func_iconv" >&6; }
5792   if test "$am_cv_func_iconv" = yes; then
5793     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
5794 $as_echo_n "checking for working iconv... " >&6; }
5795 if ${am_cv_func_iconv_works+:} false; then :
5796   $as_echo_n "(cached) " >&6
5797 else
5798
5799             am_save_LIBS="$LIBS"
5800       if test $am_cv_lib_iconv = yes; then
5801         LIBS="$LIBS $LIBICONV"
5802       fi
5803       if test "$cross_compiling" = yes; then :
5804   case "$host_os" in
5805            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
5806            *)            am_cv_func_iconv_works="guessing yes" ;;
5807          esac
5808 else
5809   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5810 /* end confdefs.h.  */
5811
5812 #include <iconv.h>
5813 #include <string.h>
5814 int main ()
5815 {
5816   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
5817      returns.  */
5818   {
5819     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
5820     if (cd_utf8_to_88591 != (iconv_t)(-1))
5821       {
5822         static const char input[] = "\342\202\254"; /* EURO SIGN */
5823         char buf[10];
5824         const char *inptr = input;
5825         size_t inbytesleft = strlen (input);
5826         char *outptr = buf;
5827         size_t outbytesleft = sizeof (buf);
5828         size_t res = iconv (cd_utf8_to_88591,
5829                             (char **) &inptr, &inbytesleft,
5830                             &outptr, &outbytesleft);
5831         if (res == 0)
5832           return 1;
5833       }
5834   }
5835   /* Test against Solaris 10 bug: Failures are not distinguishable from
5836      successful returns.  */
5837   {
5838     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
5839     if (cd_ascii_to_88591 != (iconv_t)(-1))
5840       {
5841         static const char input[] = "\263";
5842         char buf[10];
5843         const char *inptr = input;
5844         size_t inbytesleft = strlen (input);
5845         char *outptr = buf;
5846         size_t outbytesleft = sizeof (buf);
5847         size_t res = iconv (cd_ascii_to_88591,
5848                             (char **) &inptr, &inbytesleft,
5849                             &outptr, &outbytesleft);
5850         if (res == 0)
5851           return 1;
5852       }
5853   }
5854 #if 0 /* This bug could be worked around by the caller.  */
5855   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
5856   {
5857     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
5858     if (cd_88591_to_utf8 != (iconv_t)(-1))
5859       {
5860         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
5861         char buf[50];
5862         const char *inptr = input;
5863         size_t inbytesleft = strlen (input);
5864         char *outptr = buf;
5865         size_t outbytesleft = sizeof (buf);
5866         size_t res = iconv (cd_88591_to_utf8,
5867                             (char **) &inptr, &inbytesleft,
5868                             &outptr, &outbytesleft);
5869         if ((int)res > 0)
5870           return 1;
5871       }
5872   }
5873 #endif
5874   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
5875      provided.  */
5876   if (/* Try standardized names.  */
5877       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
5878       /* Try IRIX, OSF/1 names.  */
5879       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
5880       /* Try AIX names.  */
5881       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
5882       /* Try HP-UX names.  */
5883       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
5884     return 1;
5885   return 0;
5886 }
5887 _ACEOF
5888 if ac_fn_c_try_run "$LINENO"; then :
5889   am_cv_func_iconv_works=yes
5890 else
5891   am_cv_func_iconv_works=no
5892 fi
5893 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5894   conftest.$ac_objext conftest.beam conftest.$ac_ext
5895 fi
5896
5897       LIBS="$am_save_LIBS"
5898
5899 fi
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
5901 $as_echo "$am_cv_func_iconv_works" >&6; }
5902     case "$am_cv_func_iconv_works" in
5903       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
5904       *)   am_func_iconv=yes ;;
5905     esac
5906   else
5907     am_func_iconv=no am_cv_lib_iconv=no
5908   fi
5909   if test "$am_func_iconv" = yes; then
5910
5911 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
5912
5913   fi
5914   if test "$am_cv_lib_iconv" = yes; then
5915     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
5916 $as_echo_n "checking how to link with libiconv... " >&6; }
5917     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
5918 $as_echo "$LIBICONV" >&6; }
5919   else
5920             CPPFLAGS="$am_save_CPPFLAGS"
5921     LIBICONV=
5922     LTLIBICONV=
5923   fi
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935     use_additional=yes
5936
5937   acl_save_prefix="$prefix"
5938   prefix="$acl_final_prefix"
5939   acl_save_exec_prefix="$exec_prefix"
5940   exec_prefix="$acl_final_exec_prefix"
5941
5942     eval additional_includedir=\"$includedir\"
5943     eval additional_libdir=\"$libdir\"
5944
5945   exec_prefix="$acl_save_exec_prefix"
5946   prefix="$acl_save_prefix"
5947
5948
5949 # Check whether --with-libintl-prefix was given.
5950 if test "${with_libintl_prefix+set}" = set; then :
5951   withval=$with_libintl_prefix;
5952     if test "X$withval" = "Xno"; then
5953       use_additional=no
5954     else
5955       if test "X$withval" = "X"; then
5956
5957   acl_save_prefix="$prefix"
5958   prefix="$acl_final_prefix"
5959   acl_save_exec_prefix="$exec_prefix"
5960   exec_prefix="$acl_final_exec_prefix"
5961
5962           eval additional_includedir=\"$includedir\"
5963           eval additional_libdir=\"$libdir\"
5964
5965   exec_prefix="$acl_save_exec_prefix"
5966   prefix="$acl_save_prefix"
5967
5968       else
5969         additional_includedir="$withval/include"
5970         additional_libdir="$withval/$acl_libdirstem"
5971         if test "$acl_libdirstem2" != "$acl_libdirstem" \
5972            && ! test -d "$withval/$acl_libdirstem"; then
5973           additional_libdir="$withval/$acl_libdirstem2"
5974         fi
5975       fi
5976     fi
5977
5978 fi
5979
5980       LIBINTL=
5981   LTLIBINTL=
5982   INCINTL=
5983   LIBINTL_PREFIX=
5984       HAVE_LIBINTL=
5985   rpathdirs=
5986   ltrpathdirs=
5987   names_already_handled=
5988   names_next_round='intl '
5989   while test -n "$names_next_round"; do
5990     names_this_round="$names_next_round"
5991     names_next_round=
5992     for name in $names_this_round; do
5993       already_handled=
5994       for n in $names_already_handled; do
5995         if test "$n" = "$name"; then
5996           already_handled=yes
5997           break
5998         fi
5999       done
6000       if test -z "$already_handled"; then
6001         names_already_handled="$names_already_handled $name"
6002                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6003         eval value=\"\$HAVE_LIB$uppername\"
6004         if test -n "$value"; then
6005           if test "$value" = yes; then
6006             eval value=\"\$LIB$uppername\"
6007             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6008             eval value=\"\$LTLIB$uppername\"
6009             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6010           else
6011                                     :
6012           fi
6013         else
6014                               found_dir=
6015           found_la=
6016           found_so=
6017           found_a=
6018           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
6019           if test -n "$acl_shlibext"; then
6020             shrext=".$acl_shlibext"             # typically: shrext=.so
6021           else
6022             shrext=
6023           fi
6024           if test $use_additional = yes; then
6025             dir="$additional_libdir"
6026                                     if test -n "$acl_shlibext"; then
6027               if test -f "$dir/$libname$shrext"; then
6028                 found_dir="$dir"
6029                 found_so="$dir/$libname$shrext"
6030               else
6031                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6032                   ver=`(cd "$dir" && \
6033                         for f in "$libname$shrext".*; do echo "$f"; done \
6034                         | sed -e "s,^$libname$shrext\\\\.,," \
6035                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6036                         | sed 1q ) 2>/dev/null`
6037                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6038                     found_dir="$dir"
6039                     found_so="$dir/$libname$shrext.$ver"
6040                   fi
6041                 else
6042                   eval library_names=\"$acl_library_names_spec\"
6043                   for f in $library_names; do
6044                     if test -f "$dir/$f"; then
6045                       found_dir="$dir"
6046                       found_so="$dir/$f"
6047                       break
6048                     fi
6049                   done
6050                 fi
6051               fi
6052             fi
6053                         if test "X$found_dir" = "X"; then
6054               if test -f "$dir/$libname.$acl_libext"; then
6055                 found_dir="$dir"
6056                 found_a="$dir/$libname.$acl_libext"
6057               fi
6058             fi
6059             if test "X$found_dir" != "X"; then
6060               if test -f "$dir/$libname.la"; then
6061                 found_la="$dir/$libname.la"
6062               fi
6063             fi
6064           fi
6065           if test "X$found_dir" = "X"; then
6066             for x in $LDFLAGS $LTLIBINTL; 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               case "$x" in
6077                 -L*)
6078                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6079                                     if test -n "$acl_shlibext"; then
6080                     if test -f "$dir/$libname$shrext"; then
6081                       found_dir="$dir"
6082                       found_so="$dir/$libname$shrext"
6083                     else
6084                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6085                         ver=`(cd "$dir" && \
6086                               for f in "$libname$shrext".*; do echo "$f"; done \
6087                               | sed -e "s,^$libname$shrext\\\\.,," \
6088                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6089                               | sed 1q ) 2>/dev/null`
6090                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6091                           found_dir="$dir"
6092                           found_so="$dir/$libname$shrext.$ver"
6093                         fi
6094                       else
6095                         eval library_names=\"$acl_library_names_spec\"
6096                         for f in $library_names; do
6097                           if test -f "$dir/$f"; then
6098                             found_dir="$dir"
6099                             found_so="$dir/$f"
6100                             break
6101                           fi
6102                         done
6103                       fi
6104                     fi
6105                   fi
6106                                     if test "X$found_dir" = "X"; then
6107                     if test -f "$dir/$libname.$acl_libext"; then
6108                       found_dir="$dir"
6109                       found_a="$dir/$libname.$acl_libext"
6110                     fi
6111                   fi
6112                   if test "X$found_dir" != "X"; then
6113                     if test -f "$dir/$libname.la"; then
6114                       found_la="$dir/$libname.la"
6115                     fi
6116                   fi
6117                   ;;
6118               esac
6119               if test "X$found_dir" != "X"; then
6120                 break
6121               fi
6122             done
6123           fi
6124           if test "X$found_dir" != "X"; then
6125                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6126             if test "X$found_so" != "X"; then
6127                                                         if test "$enable_rpath" = no \
6128                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6129                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6130                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6131               else
6132                                                                                 haveit=
6133                 for x in $ltrpathdirs; do
6134                   if test "X$x" = "X$found_dir"; then
6135                     haveit=yes
6136                     break
6137                   fi
6138                 done
6139                 if test -z "$haveit"; then
6140                   ltrpathdirs="$ltrpathdirs $found_dir"
6141                 fi
6142                                 if test "$acl_hardcode_direct" = yes; then
6143                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6144                 else
6145                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6146                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6147                                                             haveit=
6148                     for x in $rpathdirs; do
6149                       if test "X$x" = "X$found_dir"; then
6150                         haveit=yes
6151                         break
6152                       fi
6153                     done
6154                     if test -z "$haveit"; then
6155                       rpathdirs="$rpathdirs $found_dir"
6156                     fi
6157                   else
6158                                                                                 haveit=
6159                     for x in $LDFLAGS $LIBINTL; do
6160
6161   acl_save_prefix="$prefix"
6162   prefix="$acl_final_prefix"
6163   acl_save_exec_prefix="$exec_prefix"
6164   exec_prefix="$acl_final_exec_prefix"
6165   eval x=\"$x\"
6166   exec_prefix="$acl_save_exec_prefix"
6167   prefix="$acl_save_prefix"
6168
6169                       if test "X$x" = "X-L$found_dir"; then
6170                         haveit=yes
6171                         break
6172                       fi
6173                     done
6174                     if test -z "$haveit"; then
6175                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6176                     fi
6177                     if test "$acl_hardcode_minus_L" != no; then
6178                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6179                     else
6180                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6181                     fi
6182                   fi
6183                 fi
6184               fi
6185             else
6186               if test "X$found_a" != "X"; then
6187                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6188               else
6189                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6190               fi
6191             fi
6192                         additional_includedir=
6193             case "$found_dir" in
6194               */$acl_libdirstem | */$acl_libdirstem/)
6195                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6196                 if test "$name" = 'intl'; then
6197                   LIBINTL_PREFIX="$basedir"
6198                 fi
6199                 additional_includedir="$basedir/include"
6200                 ;;
6201               */$acl_libdirstem2 | */$acl_libdirstem2/)
6202                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6203                 if test "$name" = 'intl'; then
6204                   LIBINTL_PREFIX="$basedir"
6205                 fi
6206                 additional_includedir="$basedir/include"
6207                 ;;
6208             esac
6209             if test "X$additional_includedir" != "X"; then
6210                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6211                 haveit=
6212                 if test "X$additional_includedir" = "X/usr/local/include"; then
6213                   if test -n "$GCC"; then
6214                     case $host_os in
6215                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6216                     esac
6217                   fi
6218                 fi
6219                 if test -z "$haveit"; then
6220                   for x in $CPPFLAGS $INCINTL; do
6221
6222   acl_save_prefix="$prefix"
6223   prefix="$acl_final_prefix"
6224   acl_save_exec_prefix="$exec_prefix"
6225   exec_prefix="$acl_final_exec_prefix"
6226   eval x=\"$x\"
6227   exec_prefix="$acl_save_exec_prefix"
6228   prefix="$acl_save_prefix"
6229
6230                     if test "X$x" = "X-I$additional_includedir"; then
6231                       haveit=yes
6232                       break
6233                     fi
6234                   done
6235                   if test -z "$haveit"; then
6236                     if test -d "$additional_includedir"; then
6237                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6238                     fi
6239                   fi
6240                 fi
6241               fi
6242             fi
6243                         if test -n "$found_la"; then
6244                                                         save_libdir="$libdir"
6245               case "$found_la" in
6246                 */* | *\\*) . "$found_la" ;;
6247                 *) . "./$found_la" ;;
6248               esac
6249               libdir="$save_libdir"
6250                             for dep in $dependency_libs; do
6251                 case "$dep" in
6252                   -L*)
6253                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6254                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6255                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6256                       haveit=
6257                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6258                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6259                         if test -n "$GCC"; then
6260                           case $host_os in
6261                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6262                           esac
6263                         fi
6264                       fi
6265                       if test -z "$haveit"; then
6266                         haveit=
6267                         for x in $LDFLAGS $LIBINTL; do
6268
6269   acl_save_prefix="$prefix"
6270   prefix="$acl_final_prefix"
6271   acl_save_exec_prefix="$exec_prefix"
6272   exec_prefix="$acl_final_exec_prefix"
6273   eval x=\"$x\"
6274   exec_prefix="$acl_save_exec_prefix"
6275   prefix="$acl_save_prefix"
6276
6277                           if test "X$x" = "X-L$additional_libdir"; then
6278                             haveit=yes
6279                             break
6280                           fi
6281                         done
6282                         if test -z "$haveit"; then
6283                           if test -d "$additional_libdir"; then
6284                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6285                           fi
6286                         fi
6287                         haveit=
6288                         for x in $LDFLAGS $LTLIBINTL; do
6289
6290   acl_save_prefix="$prefix"
6291   prefix="$acl_final_prefix"
6292   acl_save_exec_prefix="$exec_prefix"
6293   exec_prefix="$acl_final_exec_prefix"
6294   eval x=\"$x\"
6295   exec_prefix="$acl_save_exec_prefix"
6296   prefix="$acl_save_prefix"
6297
6298                           if test "X$x" = "X-L$additional_libdir"; then
6299                             haveit=yes
6300                             break
6301                           fi
6302                         done
6303                         if test -z "$haveit"; then
6304                           if test -d "$additional_libdir"; then
6305                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6306                           fi
6307                         fi
6308                       fi
6309                     fi
6310                     ;;
6311                   -R*)
6312                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6313                     if test "$enable_rpath" != no; then
6314                                                                   haveit=
6315                       for x in $rpathdirs; do
6316                         if test "X$x" = "X$dir"; then
6317                           haveit=yes
6318                           break
6319                         fi
6320                       done
6321                       if test -z "$haveit"; then
6322                         rpathdirs="$rpathdirs $dir"
6323                       fi
6324                                                                   haveit=
6325                       for x in $ltrpathdirs; do
6326                         if test "X$x" = "X$dir"; then
6327                           haveit=yes
6328                           break
6329                         fi
6330                       done
6331                       if test -z "$haveit"; then
6332                         ltrpathdirs="$ltrpathdirs $dir"
6333                       fi
6334                     fi
6335                     ;;
6336                   -l*)
6337                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6338                     ;;
6339                   *.la)
6340                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6341                     ;;
6342                   *)
6343                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6344                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6345                     ;;
6346                 esac
6347               done
6348             fi
6349           else
6350                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6351             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6352           fi
6353         fi
6354       fi
6355     done
6356   done
6357   if test "X$rpathdirs" != "X"; then
6358     if test -n "$acl_hardcode_libdir_separator"; then
6359                         alldirs=
6360       for found_dir in $rpathdirs; do
6361         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6362       done
6363             acl_save_libdir="$libdir"
6364       libdir="$alldirs"
6365       eval flag=\"$acl_hardcode_libdir_flag_spec\"
6366       libdir="$acl_save_libdir"
6367       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6368     else
6369             for found_dir in $rpathdirs; do
6370         acl_save_libdir="$libdir"
6371         libdir="$found_dir"
6372         eval flag=\"$acl_hardcode_libdir_flag_spec\"
6373         libdir="$acl_save_libdir"
6374         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6375       done
6376     fi
6377   fi
6378   if test "X$ltrpathdirs" != "X"; then
6379             for found_dir in $ltrpathdirs; do
6380       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6381     done
6382   fi
6383
6384
6385
6386
6387
6388
6389           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
6390 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
6391 if eval \${$gt_func_gnugettext_libintl+:} false; then :
6392   $as_echo_n "(cached) " >&6
6393 else
6394   gt_save_CPPFLAGS="$CPPFLAGS"
6395             CPPFLAGS="$CPPFLAGS $INCINTL"
6396             gt_save_LIBS="$LIBS"
6397             LIBS="$LIBS $LIBINTL"
6398                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6399 /* end confdefs.h.  */
6400 #include <libintl.h>
6401 $gt_revision_test_code
6402 extern int _nl_msg_cat_cntr;
6403 extern
6404 #ifdef __cplusplus
6405 "C"
6406 #endif
6407 const char *_nl_expand_alias (const char *);
6408 int
6409 main ()
6410 {
6411 bindtextdomain ("", "");
6412 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6413   ;
6414   return 0;
6415 }
6416 _ACEOF
6417 if ac_fn_c_try_link "$LINENO"; then :
6418   eval "$gt_func_gnugettext_libintl=yes"
6419 else
6420   eval "$gt_func_gnugettext_libintl=no"
6421 fi
6422 rm -f core conftest.err conftest.$ac_objext \
6423     conftest$ac_exeext conftest.$ac_ext
6424                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
6425               LIBS="$LIBS $LIBICONV"
6426               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6427 /* end confdefs.h.  */
6428 #include <libintl.h>
6429 $gt_revision_test_code
6430 extern int _nl_msg_cat_cntr;
6431 extern
6432 #ifdef __cplusplus
6433 "C"
6434 #endif
6435 const char *_nl_expand_alias (const char *);
6436 int
6437 main ()
6438 {
6439 bindtextdomain ("", "");
6440 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6441   ;
6442   return 0;
6443 }
6444 _ACEOF
6445 if ac_fn_c_try_link "$LINENO"; then :
6446   LIBINTL="$LIBINTL $LIBICONV"
6447                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6448                 eval "$gt_func_gnugettext_libintl=yes"
6449
6450 fi
6451 rm -f core conftest.err conftest.$ac_objext \
6452     conftest$ac_exeext conftest.$ac_ext
6453             fi
6454             CPPFLAGS="$gt_save_CPPFLAGS"
6455             LIBS="$gt_save_LIBS"
6456 fi
6457 eval ac_res=\$$gt_func_gnugettext_libintl
6458                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6459 $as_echo "$ac_res" >&6; }
6460         fi
6461
6462                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
6463            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
6464                 && test "$PACKAGE" != gettext-runtime \
6465                 && test "$PACKAGE" != gettext-tools; }; then
6466           gt_use_preinstalled_gnugettext=yes
6467         else
6468                     LIBINTL=
6469           LTLIBINTL=
6470           INCINTL=
6471         fi
6472
6473
6474
6475     if test -n "$INTL_MACOSX_LIBS"; then
6476       if test "$gt_use_preinstalled_gnugettext" = "yes" \
6477          || test "$nls_cv_use_gnu_gettext" = "yes"; then
6478                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6479         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6480       fi
6481     fi
6482
6483     if test "$gt_use_preinstalled_gnugettext" = "yes" \
6484        || test "$nls_cv_use_gnu_gettext" = "yes"; then
6485
6486 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6487
6488     else
6489       USE_NLS=no
6490     fi
6491   fi
6492
6493   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
6494 $as_echo_n "checking whether to use NLS... " >&6; }
6495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6496 $as_echo "$USE_NLS" >&6; }
6497   if test "$USE_NLS" = "yes"; then
6498     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
6499 $as_echo_n "checking where the gettext function comes from... " >&6; }
6500     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6501       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6502         gt_source="external libintl"
6503       else
6504         gt_source="libc"
6505       fi
6506     else
6507       gt_source="included intl directory"
6508     fi
6509     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
6510 $as_echo "$gt_source" >&6; }
6511   fi
6512
6513   if test "$USE_NLS" = "yes"; then
6514
6515     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6516       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6517         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
6518 $as_echo_n "checking how to link with libintl... " >&6; }
6519         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
6520 $as_echo "$LIBINTL" >&6; }
6521
6522   for element in $INCINTL; do
6523     haveit=
6524     for x in $CPPFLAGS; do
6525
6526   acl_save_prefix="$prefix"
6527   prefix="$acl_final_prefix"
6528   acl_save_exec_prefix="$exec_prefix"
6529   exec_prefix="$acl_final_exec_prefix"
6530   eval x=\"$x\"
6531   exec_prefix="$acl_save_exec_prefix"
6532   prefix="$acl_save_prefix"
6533
6534       if test "X$x" = "X$element"; then
6535         haveit=yes
6536         break
6537       fi
6538     done
6539     if test -z "$haveit"; then
6540       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6541     fi
6542   done
6543
6544       fi
6545
6546
6547 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
6548
6549
6550 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
6551
6552     fi
6553
6554         POSUB=po
6555   fi
6556
6557
6558
6559     INTLLIBS="$LIBINTL"
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571         abook_localedir="$datadir/locale"
6572                         abook_localedir=`(      test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6573                 eval tmp_abook_prefix=\""$abook_localedir"\"
6574                 eval echo $tmp_abook_prefix
6575                 )`
6576
6577 localedir="\$(datadir)/locale"
6578
6579
6580 # Check whether --with-localedir was given.
6581 if test "${with_localedir+set}" = set; then :
6582   withval=$with_localedir;
6583 fi
6584
6585 if test "x$with_localedir" != "x"; then
6586         abook_localedir="$with_localedir"
6587         localedir="$with_localedir"
6588 fi
6589
6590
6591 cat >>confdefs.h <<_ACEOF
6592 #define LOCALEDIR "$abook_localedir"
6593 _ACEOF
6594
6595
6596
6597  if test x$USE_INCLUDED_LIBINTL = xyes; then
6598   USE_INCLUDED_INTL_H_TRUE=
6599   USE_INCLUDED_INTL_H_FALSE='#'
6600 else
6601   USE_INCLUDED_INTL_H_TRUE='#'
6602   USE_INCLUDED_INTL_H_FALSE=
6603 fi
6604
6605
6606
6607 ac_ext=c
6608 ac_cpp='$CPP $CPPFLAGS'
6609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6612 if test -n "$ac_tool_prefix"; then
6613   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6614 set dummy ${ac_tool_prefix}gcc; ac_word=$2
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6616 $as_echo_n "checking for $ac_word... " >&6; }
6617 if ${ac_cv_prog_CC+:} false; then :
6618   $as_echo_n "(cached) " >&6
6619 else
6620   if test -n "$CC"; then
6621   ac_cv_prog_CC="$CC" # Let the user override the test.
6622 else
6623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6624 for as_dir in $PATH
6625 do
6626   IFS=$as_save_IFS
6627   test -z "$as_dir" && as_dir=.
6628     for ac_exec_ext in '' $ac_executable_extensions; do
6629   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6630     ac_cv_prog_CC="${ac_tool_prefix}gcc"
6631     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6632     break 2
6633   fi
6634 done
6635   done
6636 IFS=$as_save_IFS
6637
6638 fi
6639 fi
6640 CC=$ac_cv_prog_CC
6641 if test -n "$CC"; then
6642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6643 $as_echo "$CC" >&6; }
6644 else
6645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6646 $as_echo "no" >&6; }
6647 fi
6648
6649
6650 fi
6651 if test -z "$ac_cv_prog_CC"; then
6652   ac_ct_CC=$CC
6653   # Extract the first word of "gcc", so it can be a program name with args.
6654 set dummy gcc; ac_word=$2
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6656 $as_echo_n "checking for $ac_word... " >&6; }
6657 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6658   $as_echo_n "(cached) " >&6
6659 else
6660   if test -n "$ac_ct_CC"; then
6661   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6662 else
6663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664 for as_dir in $PATH
6665 do
6666   IFS=$as_save_IFS
6667   test -z "$as_dir" && as_dir=.
6668     for ac_exec_ext in '' $ac_executable_extensions; do
6669   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6670     ac_cv_prog_ac_ct_CC="gcc"
6671     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6672     break 2
6673   fi
6674 done
6675   done
6676 IFS=$as_save_IFS
6677
6678 fi
6679 fi
6680 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6681 if test -n "$ac_ct_CC"; then
6682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6683 $as_echo "$ac_ct_CC" >&6; }
6684 else
6685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6686 $as_echo "no" >&6; }
6687 fi
6688
6689   if test "x$ac_ct_CC" = x; then
6690     CC=""
6691   else
6692     case $cross_compiling:$ac_tool_warned in
6693 yes:)
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6696 ac_tool_warned=yes ;;
6697 esac
6698     CC=$ac_ct_CC
6699   fi
6700 else
6701   CC="$ac_cv_prog_CC"
6702 fi
6703
6704 if test -z "$CC"; then
6705           if test -n "$ac_tool_prefix"; then
6706     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6707 set dummy ${ac_tool_prefix}cc; ac_word=$2
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6709 $as_echo_n "checking for $ac_word... " >&6; }
6710 if ${ac_cv_prog_CC+:} false; then :
6711   $as_echo_n "(cached) " >&6
6712 else
6713   if test -n "$CC"; then
6714   ac_cv_prog_CC="$CC" # Let the user override the test.
6715 else
6716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6717 for as_dir in $PATH
6718 do
6719   IFS=$as_save_IFS
6720   test -z "$as_dir" && as_dir=.
6721     for ac_exec_ext in '' $ac_executable_extensions; do
6722   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6723     ac_cv_prog_CC="${ac_tool_prefix}cc"
6724     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6725     break 2
6726   fi
6727 done
6728   done
6729 IFS=$as_save_IFS
6730
6731 fi
6732 fi
6733 CC=$ac_cv_prog_CC
6734 if test -n "$CC"; then
6735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6736 $as_echo "$CC" >&6; }
6737 else
6738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6739 $as_echo "no" >&6; }
6740 fi
6741
6742
6743   fi
6744 fi
6745 if test -z "$CC"; then
6746   # Extract the first word of "cc", so it can be a program name with args.
6747 set dummy cc; ac_word=$2
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6749 $as_echo_n "checking for $ac_word... " >&6; }
6750 if ${ac_cv_prog_CC+:} false; then :
6751   $as_echo_n "(cached) " >&6
6752 else
6753   if test -n "$CC"; then
6754   ac_cv_prog_CC="$CC" # Let the user override the test.
6755 else
6756   ac_prog_rejected=no
6757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6758 for as_dir in $PATH
6759 do
6760   IFS=$as_save_IFS
6761   test -z "$as_dir" && as_dir=.
6762     for ac_exec_ext in '' $ac_executable_extensions; do
6763   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6764     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6765        ac_prog_rejected=yes
6766        continue
6767      fi
6768     ac_cv_prog_CC="cc"
6769     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6770     break 2
6771   fi
6772 done
6773   done
6774 IFS=$as_save_IFS
6775
6776 if test $ac_prog_rejected = yes; then
6777   # We found a bogon in the path, so make sure we never use it.
6778   set dummy $ac_cv_prog_CC
6779   shift
6780   if test $# != 0; then
6781     # We chose a different compiler from the bogus one.
6782     # However, it has the same basename, so the bogon will be chosen
6783     # first if we set CC to just the basename; use the full file name.
6784     shift
6785     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6786   fi
6787 fi
6788 fi
6789 fi
6790 CC=$ac_cv_prog_CC
6791 if test -n "$CC"; then
6792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6793 $as_echo "$CC" >&6; }
6794 else
6795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6796 $as_echo "no" >&6; }
6797 fi
6798
6799
6800 fi
6801 if test -z "$CC"; then
6802   if test -n "$ac_tool_prefix"; then
6803   for ac_prog in cl.exe
6804   do
6805     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6806 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6808 $as_echo_n "checking for $ac_word... " >&6; }
6809 if ${ac_cv_prog_CC+:} false; then :
6810   $as_echo_n "(cached) " >&6
6811 else
6812   if test -n "$CC"; then
6813   ac_cv_prog_CC="$CC" # Let the user override the test.
6814 else
6815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6816 for as_dir in $PATH
6817 do
6818   IFS=$as_save_IFS
6819   test -z "$as_dir" && as_dir=.
6820     for ac_exec_ext in '' $ac_executable_extensions; do
6821   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6822     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6823     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6824     break 2
6825   fi
6826 done
6827   done
6828 IFS=$as_save_IFS
6829
6830 fi
6831 fi
6832 CC=$ac_cv_prog_CC
6833 if test -n "$CC"; then
6834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6835 $as_echo "$CC" >&6; }
6836 else
6837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6838 $as_echo "no" >&6; }
6839 fi
6840
6841
6842     test -n "$CC" && break
6843   done
6844 fi
6845 if test -z "$CC"; then
6846   ac_ct_CC=$CC
6847   for ac_prog in cl.exe
6848 do
6849   # Extract the first word of "$ac_prog", so it can be a program name with args.
6850 set dummy $ac_prog; ac_word=$2
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6852 $as_echo_n "checking for $ac_word... " >&6; }
6853 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6854   $as_echo_n "(cached) " >&6
6855 else
6856   if test -n "$ac_ct_CC"; then
6857   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6858 else
6859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860 for as_dir in $PATH
6861 do
6862   IFS=$as_save_IFS
6863   test -z "$as_dir" && as_dir=.
6864     for ac_exec_ext in '' $ac_executable_extensions; do
6865   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6866     ac_cv_prog_ac_ct_CC="$ac_prog"
6867     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6868     break 2
6869   fi
6870 done
6871   done
6872 IFS=$as_save_IFS
6873
6874 fi
6875 fi
6876 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6877 if test -n "$ac_ct_CC"; then
6878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6879 $as_echo "$ac_ct_CC" >&6; }
6880 else
6881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6882 $as_echo "no" >&6; }
6883 fi
6884
6885
6886   test -n "$ac_ct_CC" && break
6887 done
6888
6889   if test "x$ac_ct_CC" = x; then
6890     CC=""
6891   else
6892     case $cross_compiling:$ac_tool_warned in
6893 yes:)
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6895 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6896 ac_tool_warned=yes ;;
6897 esac
6898     CC=$ac_ct_CC
6899   fi
6900 fi
6901
6902 fi
6903
6904
6905 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6906 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6907 as_fn_error $? "no acceptable C compiler found in \$PATH
6908 See \`config.log' for more details" "$LINENO" 5; }
6909
6910 # Provide some information about the compiler.
6911 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6912 set X $ac_compile
6913 ac_compiler=$2
6914 for ac_option in --version -v -V -qversion; do
6915   { { ac_try="$ac_compiler $ac_option >&5"
6916 case "(($ac_try" in
6917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6918   *) ac_try_echo=$ac_try;;
6919 esac
6920 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6921 $as_echo "$ac_try_echo"; } >&5
6922   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6923   ac_status=$?
6924   if test -s conftest.err; then
6925     sed '10a\
6926 ... rest of stderr output deleted ...
6927          10q' conftest.err >conftest.er1
6928     cat conftest.er1 >&5
6929   fi
6930   rm -f conftest.er1 conftest.err
6931   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6932   test $ac_status = 0; }
6933 done
6934
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6936 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6937 if ${ac_cv_c_compiler_gnu+:} false; then :
6938   $as_echo_n "(cached) " >&6
6939 else
6940   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6941 /* end confdefs.h.  */
6942
6943 int
6944 main ()
6945 {
6946 #ifndef __GNUC__
6947        choke me
6948 #endif
6949
6950   ;
6951   return 0;
6952 }
6953 _ACEOF
6954 if ac_fn_c_try_compile "$LINENO"; then :
6955   ac_compiler_gnu=yes
6956 else
6957   ac_compiler_gnu=no
6958 fi
6959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6960 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6961
6962 fi
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6964 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6965 if test $ac_compiler_gnu = yes; then
6966   GCC=yes
6967 else
6968   GCC=
6969 fi
6970 ac_test_CFLAGS=${CFLAGS+set}
6971 ac_save_CFLAGS=$CFLAGS
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6973 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6974 if ${ac_cv_prog_cc_g+:} false; then :
6975   $as_echo_n "(cached) " >&6
6976 else
6977   ac_save_c_werror_flag=$ac_c_werror_flag
6978    ac_c_werror_flag=yes
6979    ac_cv_prog_cc_g=no
6980    CFLAGS="-g"
6981    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6982 /* end confdefs.h.  */
6983
6984 int
6985 main ()
6986 {
6987
6988   ;
6989   return 0;
6990 }
6991 _ACEOF
6992 if ac_fn_c_try_compile "$LINENO"; then :
6993   ac_cv_prog_cc_g=yes
6994 else
6995   CFLAGS=""
6996       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6997 /* end confdefs.h.  */
6998
6999 int
7000 main ()
7001 {
7002
7003   ;
7004   return 0;
7005 }
7006 _ACEOF
7007 if ac_fn_c_try_compile "$LINENO"; then :
7008
7009 else
7010   ac_c_werror_flag=$ac_save_c_werror_flag
7011          CFLAGS="-g"
7012          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7013 /* end confdefs.h.  */
7014
7015 int
7016 main ()
7017 {
7018
7019   ;
7020   return 0;
7021 }
7022 _ACEOF
7023 if ac_fn_c_try_compile "$LINENO"; then :
7024   ac_cv_prog_cc_g=yes
7025 fi
7026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7027 fi
7028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7029 fi
7030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7031    ac_c_werror_flag=$ac_save_c_werror_flag
7032 fi
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7034 $as_echo "$ac_cv_prog_cc_g" >&6; }
7035 if test "$ac_test_CFLAGS" = set; then
7036   CFLAGS=$ac_save_CFLAGS
7037 elif test $ac_cv_prog_cc_g = yes; then
7038   if test "$GCC" = yes; then
7039     CFLAGS="-g -O2"
7040   else
7041     CFLAGS="-g"
7042   fi
7043 else
7044   if test "$GCC" = yes; then
7045     CFLAGS="-O2"
7046   else
7047     CFLAGS=
7048   fi
7049 fi
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7051 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7052 if ${ac_cv_prog_cc_c89+:} false; then :
7053   $as_echo_n "(cached) " >&6
7054 else
7055   ac_cv_prog_cc_c89=no
7056 ac_save_CC=$CC
7057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7058 /* end confdefs.h.  */
7059 #include <stdarg.h>
7060 #include <stdio.h>
7061 struct stat;
7062 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
7063 struct buf { int x; };
7064 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7065 static char *e (p, i)
7066      char **p;
7067      int i;
7068 {
7069   return p[i];
7070 }
7071 static char *f (char * (*g) (char **, int), char **p, ...)
7072 {
7073   char *s;
7074   va_list v;
7075   va_start (v,p);
7076   s = g (p, va_arg (v,int));
7077   va_end (v);
7078   return s;
7079 }
7080
7081 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
7082    function prototypes and stuff, but not '\xHH' hex character constants.
7083    These don't provoke an error unfortunately, instead are silently treated
7084    as 'x'.  The following induces an error, until -std is added to get
7085    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
7086    array size at least.  It's necessary to write '\x00'==0 to get something
7087    that's true only with -std.  */
7088 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7089
7090 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7091    inside strings and character constants.  */
7092 #define FOO(x) 'x'
7093 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7094
7095 int test (int i, double x);
7096 struct s1 {int (*f) (int a);};
7097 struct s2 {int (*f) (double a);};
7098 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7099 int argc;
7100 char **argv;
7101 int
7102 main ()
7103 {
7104 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
7105   ;
7106   return 0;
7107 }
7108 _ACEOF
7109 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7110         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7111 do
7112   CC="$ac_save_CC $ac_arg"
7113   if ac_fn_c_try_compile "$LINENO"; then :
7114   ac_cv_prog_cc_c89=$ac_arg
7115 fi
7116 rm -f core conftest.err conftest.$ac_objext
7117   test "x$ac_cv_prog_cc_c89" != "xno" && break
7118 done
7119 rm -f conftest.$ac_ext
7120 CC=$ac_save_CC
7121
7122 fi
7123 # AC_CACHE_VAL
7124 case "x$ac_cv_prog_cc_c89" in
7125   x)
7126     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7127 $as_echo "none needed" >&6; } ;;
7128   xno)
7129     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7130 $as_echo "unsupported" >&6; } ;;
7131   *)
7132     CC="$CC $ac_cv_prog_cc_c89"
7133     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7134 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7135 esac
7136 if test "x$ac_cv_prog_cc_c89" != xno; then :
7137
7138 fi
7139
7140 ac_ext=c
7141 ac_cpp='$CPP $CPPFLAGS'
7142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7145
7146 ac_ext=c
7147 ac_cpp='$CPP $CPPFLAGS'
7148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
7152 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
7153 if ${am_cv_prog_cc_c_o+:} false; then :
7154   $as_echo_n "(cached) " >&6
7155 else
7156   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7157 /* end confdefs.h.  */
7158
7159 int
7160 main ()
7161 {
7162
7163   ;
7164   return 0;
7165 }
7166 _ACEOF
7167   # Make sure it works both with $CC and with simple cc.
7168   # Following AC_PROG_CC_C_O, we do the test twice because some
7169   # compilers refuse to overwrite an existing .o file with -o,
7170   # though they will create one.
7171   am_cv_prog_cc_c_o=yes
7172   for am_i in 1 2; do
7173     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
7174    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
7175    ac_status=$?
7176    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177    (exit $ac_status); } \
7178          && test -f conftest2.$ac_objext; then
7179       : OK
7180     else
7181       am_cv_prog_cc_c_o=no
7182       break
7183     fi
7184   done
7185   rm -f core conftest*
7186   unset am_i
7187 fi
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
7189 $as_echo "$am_cv_prog_cc_c_o" >&6; }
7190 if test "$am_cv_prog_cc_c_o" != yes; then
7191    # Losing compiler, so override with the script.
7192    # FIXME: It is wrong to rewrite CC.
7193    # But if we don't then we get into trouble of one sort or another.
7194    # A longer-term fix would be to have automake use am__CC in this case,
7195    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7196    CC="$am_aux_dir/compile $CC"
7197 fi
7198 ac_ext=c
7199 ac_cpp='$CPP $CPPFLAGS'
7200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7203
7204
7205 depcc="$CC"   am_compiler_list=
7206
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7208 $as_echo_n "checking dependency style of $depcc... " >&6; }
7209 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
7210   $as_echo_n "(cached) " >&6
7211 else
7212   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7213   # We make a subdir and do the tests there.  Otherwise we can end up
7214   # making bogus files that we don't know about and never remove.  For
7215   # instance it was reported that on HP-UX the gcc test will end up
7216   # making a dummy file named 'D' -- because '-MD' means "put the output
7217   # in D".
7218   rm -rf conftest.dir
7219   mkdir conftest.dir
7220   # Copy depcomp to subdir because otherwise we won't find it if we're
7221   # using a relative directory.
7222   cp "$am_depcomp" conftest.dir
7223   cd conftest.dir
7224   # We will build objects and dependencies in a subdirectory because
7225   # it helps to detect inapplicable dependency modes.  For instance
7226   # both Tru64's cc and ICC support -MD to output dependencies as a
7227   # side effect of compilation, but ICC will put the dependencies in
7228   # the current directory while Tru64 will put them in the object
7229   # directory.
7230   mkdir sub
7231
7232   am_cv_CC_dependencies_compiler_type=none
7233   if test "$am_compiler_list" = ""; then
7234      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7235   fi
7236   am__universal=false
7237   case " $depcc " in #(
7238      *\ -arch\ *\ -arch\ *) am__universal=true ;;
7239      esac
7240
7241   for depmode in $am_compiler_list; do
7242     # Setup a source with many dependencies, because some compilers
7243     # like to wrap large dependency lists on column 80 (with \), and
7244     # we should not choose a depcomp mode which is confused by this.
7245     #
7246     # We need to recreate these files for each test, as the compiler may
7247     # overwrite some of them when testing with obscure command lines.
7248     # This happens at least with the AIX C compiler.
7249     : > sub/conftest.c
7250     for i in 1 2 3 4 5 6; do
7251       echo '#include "conftst'$i'.h"' >> sub/conftest.c
7252       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7253       # Solaris 10 /bin/sh.
7254       echo '/* dummy */' > sub/conftst$i.h
7255     done
7256     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7257
7258     # We check with '-c' and '-o' for the sake of the "dashmstdout"
7259     # mode.  It turns out that the SunPro C++ compiler does not properly
7260     # handle '-M -o', and we need to detect this.  Also, some Intel
7261     # versions had trouble with output in subdirs.
7262     am__obj=sub/conftest.${OBJEXT-o}
7263     am__minus_obj="-o $am__obj"
7264     case $depmode in
7265     gcc)
7266       # This depmode causes a compiler race in universal mode.
7267       test "$am__universal" = false || continue
7268       ;;
7269     nosideeffect)
7270       # After this tag, mechanisms are not by side-effect, so they'll
7271       # only be used when explicitly requested.
7272       if test "x$enable_dependency_tracking" = xyes; then
7273         continue
7274       else
7275         break
7276       fi
7277       ;;
7278     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7279       # This compiler won't grok '-c -o', but also, the minuso test has
7280       # not run yet.  These depmodes are late enough in the game, and
7281       # so weak that their functioning should not be impacted.
7282       am__obj=conftest.${OBJEXT-o}
7283       am__minus_obj=
7284       ;;
7285     none) break ;;
7286     esac
7287     if depmode=$depmode \
7288        source=sub/conftest.c object=$am__obj \
7289        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7290        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7291          >/dev/null 2>conftest.err &&
7292        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7293        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7294        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7295        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7296       # icc doesn't choke on unknown options, it will just issue warnings
7297       # or remarks (even with -Werror).  So we grep stderr for any message
7298       # that says an option was ignored or not supported.
7299       # When given -MP, icc 7.0 and 7.1 complain thusly:
7300       #   icc: Command line warning: ignoring option '-M'; no argument required
7301       # The diagnosis changed in icc 8.0:
7302       #   icc: Command line remark: option '-MP' not supported
7303       if (grep 'ignoring option' conftest.err ||
7304           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7305         am_cv_CC_dependencies_compiler_type=$depmode
7306         break
7307       fi
7308     fi
7309   done
7310
7311   cd ..
7312   rm -rf conftest.dir
7313 else
7314   am_cv_CC_dependencies_compiler_type=none
7315 fi
7316
7317 fi
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7319 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7320 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7321
7322  if
7323   test "x$enable_dependency_tracking" != xno \
7324   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7325   am__fastdepCC_TRUE=
7326   am__fastdepCC_FALSE='#'
7327 else
7328   am__fastdepCC_TRUE='#'
7329   am__fastdepCC_FALSE=
7330 fi
7331
7332
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
7334 $as_echo_n "checking for library containing strerror... " >&6; }
7335 if ${ac_cv_search_strerror+:} false; then :
7336   $as_echo_n "(cached) " >&6
7337 else
7338   ac_func_search_save_LIBS=$LIBS
7339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7340 /* end confdefs.h.  */
7341
7342 /* Override any GCC internal prototype to avoid an error.
7343    Use char because int might match the return type of a GCC
7344    builtin and then its argument prototype would still apply.  */
7345 #ifdef __cplusplus
7346 extern "C"
7347 #endif
7348 char strerror ();
7349 int
7350 main ()
7351 {
7352 return strerror ();
7353   ;
7354   return 0;
7355 }
7356 _ACEOF
7357 for ac_lib in '' cposix; do
7358   if test -z "$ac_lib"; then
7359     ac_res="none required"
7360   else
7361     ac_res=-l$ac_lib
7362     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7363   fi
7364   if ac_fn_c_try_link "$LINENO"; then :
7365   ac_cv_search_strerror=$ac_res
7366 fi
7367 rm -f core conftest.err conftest.$ac_objext \
7368     conftest$ac_exeext
7369   if ${ac_cv_search_strerror+:} false; then :
7370   break
7371 fi
7372 done
7373 if ${ac_cv_search_strerror+:} false; then :
7374
7375 else
7376   ac_cv_search_strerror=no
7377 fi
7378 rm conftest.$ac_ext
7379 LIBS=$ac_func_search_save_LIBS
7380 fi
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
7382 $as_echo "$ac_cv_search_strerror" >&6; }
7383 ac_res=$ac_cv_search_strerror
7384 if test "$ac_res" != no; then :
7385   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7386
7387 fi
7388
7389 if test "x$U" != "x"; then
7390         as_fn_error $? "Compiler not ANSI compliant" "$LINENO" 5
7391 fi
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
7393 $as_echo_n "checking for inline... " >&6; }
7394 if ${ac_cv_c_inline+:} false; then :
7395   $as_echo_n "(cached) " >&6
7396 else
7397   ac_cv_c_inline=no
7398 for ac_kw in inline __inline__ __inline; do
7399   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7400 /* end confdefs.h.  */
7401 #ifndef __cplusplus
7402 typedef int foo_t;
7403 static $ac_kw foo_t static_foo () {return 0; }
7404 $ac_kw foo_t foo () {return 0; }
7405 #endif
7406
7407 _ACEOF
7408 if ac_fn_c_try_compile "$LINENO"; then :
7409   ac_cv_c_inline=$ac_kw
7410 fi
7411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7412   test "$ac_cv_c_inline" != no && break
7413 done
7414
7415 fi
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
7417 $as_echo "$ac_cv_c_inline" >&6; }
7418
7419 case $ac_cv_c_inline in
7420   inline | yes) ;;
7421   *)
7422     case $ac_cv_c_inline in
7423       no) ac_val=;;
7424       *) ac_val=$ac_cv_c_inline;;
7425     esac
7426     cat >>confdefs.h <<_ACEOF
7427 #ifndef __cplusplus
7428 #define inline $ac_val
7429 #endif
7430 _ACEOF
7431     ;;
7432 esac
7433
7434
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7436 $as_echo_n "checking for ANSI C header files... " >&6; }
7437 if ${ac_cv_header_stdc+:} false; then :
7438   $as_echo_n "(cached) " >&6
7439 else
7440   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7441 /* end confdefs.h.  */
7442 #include <stdlib.h>
7443 #include <stdarg.h>
7444 #include <string.h>
7445 #include <float.h>
7446
7447 int
7448 main ()
7449 {
7450
7451   ;
7452   return 0;
7453 }
7454 _ACEOF
7455 if ac_fn_c_try_compile "$LINENO"; then :
7456   ac_cv_header_stdc=yes
7457 else
7458   ac_cv_header_stdc=no
7459 fi
7460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7461
7462 if test $ac_cv_header_stdc = yes; then
7463   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7464   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7465 /* end confdefs.h.  */
7466 #include <string.h>
7467
7468 _ACEOF
7469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7470   $EGREP "memchr" >/dev/null 2>&1; then :
7471
7472 else
7473   ac_cv_header_stdc=no
7474 fi
7475 rm -f conftest*
7476
7477 fi
7478
7479 if test $ac_cv_header_stdc = yes; then
7480   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7481   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7482 /* end confdefs.h.  */
7483 #include <stdlib.h>
7484
7485 _ACEOF
7486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7487   $EGREP "free" >/dev/null 2>&1; then :
7488
7489 else
7490   ac_cv_header_stdc=no
7491 fi
7492 rm -f conftest*
7493
7494 fi
7495
7496 if test $ac_cv_header_stdc = yes; then
7497   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7498   if test "$cross_compiling" = yes; then :
7499   :
7500 else
7501   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7502 /* end confdefs.h.  */
7503 #include <ctype.h>
7504 #include <stdlib.h>
7505 #if ((' ' & 0x0FF) == 0x020)
7506 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7507 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7508 #else
7509 # define ISLOWER(c) \
7510                    (('a' <= (c) && (c) <= 'i') \
7511                      || ('j' <= (c) && (c) <= 'r') \
7512                      || ('s' <= (c) && (c) <= 'z'))
7513 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7514 #endif
7515
7516 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7517 int
7518 main ()
7519 {
7520   int i;
7521   for (i = 0; i < 256; i++)
7522     if (XOR (islower (i), ISLOWER (i))
7523         || toupper (i) != TOUPPER (i))
7524       return 2;
7525   return 0;
7526 }
7527 _ACEOF
7528 if ac_fn_c_try_run "$LINENO"; then :
7529
7530 else
7531   ac_cv_header_stdc=no
7532 fi
7533 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7534   conftest.$ac_objext conftest.beam conftest.$ac_ext
7535 fi
7536
7537 fi
7538 fi
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7540 $as_echo "$ac_cv_header_stdc" >&6; }
7541 if test $ac_cv_header_stdc = yes; then
7542
7543 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7544
7545 fi
7546
7547 for ac_header in unistd.h locale.h sys/ioctl.h iconv.h
7548 do :
7549   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7550 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7551 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7552   cat >>confdefs.h <<_ACEOF
7553 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7554 _ACEOF
7555
7556 fi
7557
7558 done
7559
7560 ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
7561 if test "x$ac_cv_header_stdarg_h" = xyes; then :
7562
7563 $as_echo "#define HAVE_STDARG_H 1" >>confdefs.h
7564
7565 else
7566   as_fn_error $? "*** stdarg.h is missing on your system ***" "$LINENO" 5
7567 fi
7568
7569
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
7571 $as_echo_n "checking for working strcoll... " >&6; }
7572 if ${ac_cv_func_strcoll_works+:} false; then :
7573   $as_echo_n "(cached) " >&6
7574 else
7575   if test "$cross_compiling" = yes; then :
7576   ac_cv_func_strcoll_works=no
7577 else
7578   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7579 /* end confdefs.h.  */
7580 $ac_includes_default
7581 int
7582 main ()
7583 {
7584 return (strcoll ("abc", "def") >= 0 ||
7585          strcoll ("ABC", "DEF") >= 0 ||
7586          strcoll ("123", "456") >= 0)
7587   ;
7588   return 0;
7589 }
7590 _ACEOF
7591 if ac_fn_c_try_run "$LINENO"; then :
7592   ac_cv_func_strcoll_works=yes
7593 else
7594   ac_cv_func_strcoll_works=no
7595 fi
7596 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7597   conftest.$ac_objext conftest.beam conftest.$ac_ext
7598 fi
7599
7600 fi
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
7602 $as_echo "$ac_cv_func_strcoll_works" >&6; }
7603 if test $ac_cv_func_strcoll_works = yes; then
7604
7605 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
7606
7607 fi
7608
7609 for ac_func in setlocale
7610 do :
7611   ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
7612 if test "x$ac_cv_func_setlocale" = xyes; then :
7613   cat >>confdefs.h <<_ACEOF
7614 #define HAVE_SETLOCALE 1
7615 _ACEOF
7616
7617 fi
7618 done
7619
7620
7621 ac_widec_funcs=yes
7622 ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
7623 if test "x$ac_cv_header_wchar_h" = xyes; then :
7624
7625         ac_have_wchar_h=yes
7626
7627 $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h
7628
7629 else
7630   ac_have_wchar_h=no
7631 fi
7632
7633
7634 for ac_func in mbtowc wcwidth mbrtowc mbsinit
7635 do :
7636   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7637 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7638 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7639   cat >>confdefs.h <<_ACEOF
7640 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7641 _ACEOF
7642
7643 else
7644   ac_widec_funcs=no
7645 fi
7646 done
7647
7648 ac_fn_c_check_decl "$LINENO" "wcwidth" "ac_cv_have_decl_wcwidth" "$ac_includes_default"
7649 if test "x$ac_cv_have_decl_wcwidth" = xyes; then :
7650   ac_have_decl=1
7651 else
7652   ac_have_decl=0
7653 fi
7654
7655 cat >>confdefs.h <<_ACEOF
7656 #define HAVE_DECL_WCWIDTH $ac_have_decl
7657 _ACEOF
7658
7659 ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
7660 if test "x$ac_cv_type_wchar_t" = xyes; then :
7661
7662 else
7663   ac_widec_funcs=no
7664 fi
7665
7666
7667 if test x$ac_widec_funcs = xyes -a x$ac_have_wchar_h = xyes; then
7668         ac_widec_possible=yes
7669 else
7670         ac_widec_possible=no
7671 fi
7672
7673
7674 abook_cv_curses=/usr
7675
7676 # Check whether --with-curses was given.
7677 if test "${with_curses+set}" = set; then :
7678   withval=$with_curses; if test $withval != yes; then
7679                 abook_cv_curses=$withval
7680         fi
7681         if test x$abook_cv_curses != x/usr; then
7682                 LDFLAGS="-L${abook_cv_curses}/lib $LDFLAGS"
7683                 CPPFLAGS="$CPPFLAGS -I${abook_cv_curses}/include"
7684         fi
7685 fi
7686
7687
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncursesw" >&5
7689 $as_echo_n "checking for initscr in -lncursesw... " >&6; }
7690 if ${ac_cv_lib_ncursesw_initscr+:} false; then :
7691   $as_echo_n "(cached) " >&6
7692 else
7693   ac_check_lib_save_LIBS=$LIBS
7694 LIBS="-lncursesw  $LIBS"
7695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7696 /* end confdefs.h.  */
7697
7698 /* Override any GCC internal prototype to avoid an error.
7699    Use char because int might match the return type of a GCC
7700    builtin and then its argument prototype would still apply.  */
7701 #ifdef __cplusplus
7702 extern "C"
7703 #endif
7704 char initscr ();
7705 int
7706 main ()
7707 {
7708 return initscr ();
7709   ;
7710   return 0;
7711 }
7712 _ACEOF
7713 if ac_fn_c_try_link "$LINENO"; then :
7714   ac_cv_lib_ncursesw_initscr=yes
7715 else
7716   ac_cv_lib_ncursesw_initscr=no
7717 fi
7718 rm -f core conftest.err conftest.$ac_objext \
7719     conftest$ac_exeext conftest.$ac_ext
7720 LIBS=$ac_check_lib_save_LIBS
7721 fi
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_initscr" >&5
7723 $as_echo "$ac_cv_lib_ncursesw_initscr" >&6; }
7724 if test "x$ac_cv_lib_ncursesw_initscr" = xyes; then :
7725   LIBS="$LIBS -lncursesw"
7726         if test x$abook_cv_curses = x/usr -a -d /usr/include/ncursesw; then
7727                 CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
7728         fi
7729         for ac_header in ncurses.h
7730 do :
7731   ac_fn_c_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
7732 if test "x$ac_cv_header_ncurses_h" = xyes; then :
7733   cat >>confdefs.h <<_ACEOF
7734 #define HAVE_NCURSES_H 1
7735 _ACEOF
7736
7737 fi
7738
7739 done
7740
7741 else
7742
7743         ac_widec_possible=no
7744         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
7745 $as_echo_n "checking for initscr in -lncurses... " >&6; }
7746 if ${ac_cv_lib_ncurses_initscr+:} false; then :
7747   $as_echo_n "(cached) " >&6
7748 else
7749   ac_check_lib_save_LIBS=$LIBS
7750 LIBS="-lncurses  $LIBS"
7751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7752 /* end confdefs.h.  */
7753
7754 /* Override any GCC internal prototype to avoid an error.
7755    Use char because int might match the return type of a GCC
7756    builtin and then its argument prototype would still apply.  */
7757 #ifdef __cplusplus
7758 extern "C"
7759 #endif
7760 char initscr ();
7761 int
7762 main ()
7763 {
7764 return initscr ();
7765   ;
7766   return 0;
7767 }
7768 _ACEOF
7769 if ac_fn_c_try_link "$LINENO"; then :
7770   ac_cv_lib_ncurses_initscr=yes
7771 else
7772   ac_cv_lib_ncurses_initscr=no
7773 fi
7774 rm -f core conftest.err conftest.$ac_objext \
7775     conftest$ac_exeext conftest.$ac_ext
7776 LIBS=$ac_check_lib_save_LIBS
7777 fi
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
7779 $as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
7780 if test "x$ac_cv_lib_ncurses_initscr" = xyes; then :
7781   LIBS="$LIBS -lncurses"
7782                 if test x$abook_cv_curses = x/usr -a -d /usr/include/ncurses; then
7783                         CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
7784                 fi
7785                 for ac_header in ncurses.h
7786 do :
7787   ac_fn_c_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
7788 if test "x$ac_cv_header_ncurses_h" = xyes; then :
7789   cat >>confdefs.h <<_ACEOF
7790 #define HAVE_NCURSES_H 1
7791 _ACEOF
7792
7793 fi
7794
7795 done
7796
7797 else
7798
7799 ac_fn_c_check_func "$LINENO" "initscr" "ac_cv_func_initscr"
7800 if test "x$ac_cv_func_initscr" = xyes; then :
7801
7802 else
7803
7804 case $host_os in #(vi
7805 freebsd*) #(vi
7806         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgoto in -lmytinfo" >&5
7807 $as_echo_n "checking for tgoto in -lmytinfo... " >&6; }
7808 if ${ac_cv_lib_mytinfo_tgoto+:} false; then :
7809   $as_echo_n "(cached) " >&6
7810 else
7811   ac_check_lib_save_LIBS=$LIBS
7812 LIBS="-lmytinfo  $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 tgoto ();
7823 int
7824 main ()
7825 {
7826 return tgoto ();
7827   ;
7828   return 0;
7829 }
7830 _ACEOF
7831 if ac_fn_c_try_link "$LINENO"; then :
7832   ac_cv_lib_mytinfo_tgoto=yes
7833 else
7834   ac_cv_lib_mytinfo_tgoto=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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mytinfo_tgoto" >&5
7841 $as_echo "$ac_cv_lib_mytinfo_tgoto" >&6; }
7842 if test "x$ac_cv_lib_mytinfo_tgoto" = xyes; then :
7843   LIBS="-lmytinfo $LIBS"
7844 fi
7845
7846         ;;
7847 hpux10.*|hpux11.*)
7848         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lcur_colr" >&5
7849 $as_echo_n "checking for initscr in -lcur_colr... " >&6; }
7850 if ${ac_cv_lib_cur_colr_initscr+:} false; then :
7851   $as_echo_n "(cached) " >&6
7852 else
7853   ac_check_lib_save_LIBS=$LIBS
7854 LIBS="-lcur_colr  $LIBS"
7855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7856 /* end confdefs.h.  */
7857
7858 /* Override any GCC internal prototype to avoid an error.
7859    Use char because int might match the return type of a GCC
7860    builtin and then its argument prototype would still apply.  */
7861 #ifdef __cplusplus
7862 extern "C"
7863 #endif
7864 char initscr ();
7865 int
7866 main ()
7867 {
7868 return initscr ();
7869   ;
7870   return 0;
7871 }
7872 _ACEOF
7873 if ac_fn_c_try_link "$LINENO"; then :
7874   ac_cv_lib_cur_colr_initscr=yes
7875 else
7876   ac_cv_lib_cur_colr_initscr=no
7877 fi
7878 rm -f core conftest.err conftest.$ac_objext \
7879     conftest$ac_exeext conftest.$ac_ext
7880 LIBS=$ac_check_lib_save_LIBS
7881 fi
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cur_colr_initscr" >&5
7883 $as_echo "$ac_cv_lib_cur_colr_initscr" >&6; }
7884 if test "x$ac_cv_lib_cur_colr_initscr" = xyes; then :
7885
7886                 LIBS="-lcur_colr $LIBS"
7887                 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
7888                 ac_cv_func_initscr=yes
7889
7890 else
7891
7892         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lHcurses" >&5
7893 $as_echo_n "checking for initscr in -lHcurses... " >&6; }
7894 if ${ac_cv_lib_Hcurses_initscr+:} false; then :
7895   $as_echo_n "(cached) " >&6
7896 else
7897   ac_check_lib_save_LIBS=$LIBS
7898 LIBS="-lHcurses  $LIBS"
7899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7900 /* end confdefs.h.  */
7901
7902 /* Override any GCC internal prototype to avoid an error.
7903    Use char because int might match the return type of a GCC
7904    builtin and then its argument prototype would still apply.  */
7905 #ifdef __cplusplus
7906 extern "C"
7907 #endif
7908 char initscr ();
7909 int
7910 main ()
7911 {
7912 return initscr ();
7913   ;
7914   return 0;
7915 }
7916 _ACEOF
7917 if ac_fn_c_try_link "$LINENO"; then :
7918   ac_cv_lib_Hcurses_initscr=yes
7919 else
7920   ac_cv_lib_Hcurses_initscr=no
7921 fi
7922 rm -f core conftest.err conftest.$ac_objext \
7923     conftest$ac_exeext conftest.$ac_ext
7924 LIBS=$ac_check_lib_save_LIBS
7925 fi
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Hcurses_initscr" >&5
7927 $as_echo "$ac_cv_lib_Hcurses_initscr" >&6; }
7928 if test "x$ac_cv_lib_Hcurses_initscr" = xyes; then :
7929
7930                 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
7931                 LIBS="-lHcurses $LIBS"
7932                 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
7933                 ac_cv_func_initscr=yes
7934
7935 fi
7936
7937 fi
7938
7939         ;;
7940 linux*) # Suse Linux does not follow /usr/lib convention
7941         LIBS="$LIBS -L/lib"
7942         ;;
7943 esac
7944
7945 if test ".$With5lib" != ".no" ; then
7946 if test -d /usr/5lib ; then
7947         # SunOS 3.x or 4.x
7948         CPPFLAGS="$CPPFLAGS -I/usr/5include"
7949         LIBS="$LIBS -L/usr/5lib"
7950 fi
7951 fi
7952
7953 if test ".$ac_cv_func_initscr" != .yes ; then
7954         cf_save_LIBS="$LIBS"
7955         cf_term_lib=""
7956         cf_curs_lib=""
7957
7958         # Check for library containing tgoto.  Do this before curses library
7959         # because it may be needed to link the test-case for initscr.
7960         ac_fn_c_check_func "$LINENO" "tgoto" "ac_cv_func_tgoto"
7961 if test "x$ac_cv_func_tgoto" = xyes; then :
7962   cf_term_lib=predefined
7963 else
7964
7965                 for cf_term_lib in termcap termlib unknown
7966                 do
7967                         as_ac_Lib=`$as_echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgoto in -l$cf_term_lib" >&5
7969 $as_echo_n "checking for tgoto in -l$cf_term_lib... " >&6; }
7970 if eval \${$as_ac_Lib+:} false; then :
7971   $as_echo_n "(cached) " >&6
7972 else
7973   ac_check_lib_save_LIBS=$LIBS
7974 LIBS="-l$cf_term_lib  $LIBS"
7975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7976 /* end confdefs.h.  */
7977
7978 /* Override any GCC internal prototype to avoid an error.
7979    Use char because int might match the return type of a GCC
7980    builtin and then its argument prototype would still apply.  */
7981 #ifdef __cplusplus
7982 extern "C"
7983 #endif
7984 char tgoto ();
7985 int
7986 main ()
7987 {
7988 return tgoto ();
7989   ;
7990   return 0;
7991 }
7992 _ACEOF
7993 if ac_fn_c_try_link "$LINENO"; then :
7994   eval "$as_ac_Lib=yes"
7995 else
7996   eval "$as_ac_Lib=no"
7997 fi
7998 rm -f core conftest.err conftest.$ac_objext \
7999     conftest$ac_exeext conftest.$ac_ext
8000 LIBS=$ac_check_lib_save_LIBS
8001 fi
8002 eval ac_res=\$$as_ac_Lib
8003                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8004 $as_echo "$ac_res" >&6; }
8005 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
8006   break
8007 fi
8008
8009                 done
8010
8011 fi
8012
8013
8014         # Check for library containing initscr
8015         test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
8016         for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
8017         do
8018                 as_ac_Lib=`$as_echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -l$cf_curs_lib" >&5
8020 $as_echo_n "checking for initscr in -l$cf_curs_lib... " >&6; }
8021 if eval \${$as_ac_Lib+:} false; then :
8022   $as_echo_n "(cached) " >&6
8023 else
8024   ac_check_lib_save_LIBS=$LIBS
8025 LIBS="-l$cf_curs_lib  $LIBS"
8026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8027 /* end confdefs.h.  */
8028
8029 /* Override any GCC internal prototype to avoid an error.
8030    Use char because int might match the return type of a GCC
8031    builtin and then its argument prototype would still apply.  */
8032 #ifdef __cplusplus
8033 extern "C"
8034 #endif
8035 char initscr ();
8036 int
8037 main ()
8038 {
8039 return initscr ();
8040   ;
8041   return 0;
8042 }
8043 _ACEOF
8044 if ac_fn_c_try_link "$LINENO"; then :
8045   eval "$as_ac_Lib=yes"
8046 else
8047   eval "$as_ac_Lib=no"
8048 fi
8049 rm -f core conftest.err conftest.$ac_objext \
8050     conftest$ac_exeext conftest.$ac_ext
8051 LIBS=$ac_check_lib_save_LIBS
8052 fi
8053 eval ac_res=\$$as_ac_Lib
8054                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8055 $as_echo "$ac_res" >&6; }
8056 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
8057   break
8058 fi
8059
8060         done
8061         test $cf_curs_lib = unknown && as_fn_error $? "no curses library found" "$LINENO" 5
8062
8063         LIBS="-l$cf_curs_lib $cf_save_LIBS"
8064         if test "$cf_term_lib" = unknown ; then
8065                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can link with $cf_curs_lib library" >&5
8066 $as_echo_n "checking if we can link with $cf_curs_lib library... " >&6; }
8067                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8068 /* end confdefs.h.  */
8069 #include <${cf_cv_ncurses_header-curses.h}>
8070 int
8071 main ()
8072 {
8073 initscr()
8074   ;
8075   return 0;
8076 }
8077 _ACEOF
8078 if ac_fn_c_try_link "$LINENO"; then :
8079   cf_result=yes
8080 else
8081   cf_result=no
8082 fi
8083 rm -f core conftest.err conftest.$ac_objext \
8084     conftest$ac_exeext conftest.$ac_ext
8085                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_result" >&5
8086 $as_echo "$cf_result" >&6; }
8087                 test $cf_result = no && as_fn_error $? "Cannot link curses library" "$LINENO" 5
8088         elif test "$cf_term_lib" != predefined ; then
8089                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
8090 $as_echo_n "checking if we need both $cf_curs_lib and $cf_term_lib libraries... " >&6; }
8091                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8092 /* end confdefs.h.  */
8093 #include <${cf_cv_ncurses_header-curses.h}>
8094 int
8095 main ()
8096 {
8097 initscr(); tgoto((char *)0, 0, 0);
8098   ;
8099   return 0;
8100 }
8101 _ACEOF
8102 if ac_fn_c_try_link "$LINENO"; then :
8103   cf_result=no
8104 else
8105
8106                         LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
8107                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8108 /* end confdefs.h.  */
8109 #include <${cf_cv_ncurses_header-curses.h}>
8110 int
8111 main ()
8112 {
8113 initscr()
8114   ;
8115   return 0;
8116 }
8117 _ACEOF
8118 if ac_fn_c_try_link "$LINENO"; then :
8119   cf_result=yes
8120 else
8121   cf_result=error
8122 fi
8123 rm -f core conftest.err conftest.$ac_objext \
8124     conftest$ac_exeext conftest.$ac_ext
8125
8126 fi
8127 rm -f core conftest.err conftest.$ac_objext \
8128     conftest$ac_exeext conftest.$ac_ext
8129                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_result" >&5
8130 $as_echo "$cf_result" >&6; }
8131         fi
8132 fi
8133
8134
8135 fi
8136
8137 fi
8138
8139
8140 fi
8141
8142
8143
8144
8145 abook_cv_readline=/usr
8146
8147 # Check whether --with-readline was given.
8148 if test "${with_readline+set}" = set; then :
8149   withval=$with_readline; if test $withval != yes; then
8150                 abook_cv_readline=$withval
8151         fi
8152         if test x$abook_cv_readline != x/usr; then
8153                 LDFLAGS="-L${abook_cv_readline}/lib $LDFLAGS"
8154                 CPPFLAGS="$CPPFLAGS -I${abook_cv_readline}/include"
8155         fi
8156 fi
8157
8158
8159
8160   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
8161 $as_echo_n "checking for a readline compatible library... " >&6; }
8162 if ${ac_cv_lib_readline+:} false; then :
8163   $as_echo_n "(cached) " >&6
8164 else
8165
8166     ORIG_LIBS="$LIBS"
8167     for readline_lib in readline edit editline; do
8168       for termcap_lib in "" termcap curses ncurses; do
8169         if test -z "$termcap_lib"; then
8170           TRY_LIB="-l$readline_lib"
8171         else
8172           TRY_LIB="-l$readline_lib -l$termcap_lib"
8173         fi
8174         LIBS="$ORIG_LIBS $TRY_LIB"
8175         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8176 /* end confdefs.h.  */
8177
8178 /* Override any GCC internal prototype to avoid an error.
8179    Use char because int might match the return type of a GCC
8180    builtin and then its argument prototype would still apply.  */
8181 #ifdef __cplusplus
8182 extern "C"
8183 #endif
8184 char readline ();
8185 int
8186 main ()
8187 {
8188 return readline ();
8189   ;
8190   return 0;
8191 }
8192 _ACEOF
8193 if ac_fn_c_try_link "$LINENO"; then :
8194   ac_cv_lib_readline="$TRY_LIB"
8195 fi
8196 rm -f core conftest.err conftest.$ac_objext \
8197     conftest$ac_exeext conftest.$ac_ext
8198         if test -n "$ac_cv_lib_readline"; then
8199           break
8200         fi
8201       done
8202       if test -n "$ac_cv_lib_readline"; then
8203         break
8204       fi
8205     done
8206     if test -z "$ac_cv_lib_readline"; then
8207       ac_cv_lib_readline="no"
8208     fi
8209     LIBS="$ORIG_LIBS"
8210
8211 fi
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline" >&5
8213 $as_echo "$ac_cv_lib_readline" >&6; }
8214
8215   if test "$ac_cv_lib_readline" != "no"; then
8216     LIBS="$LIBS $ac_cv_lib_readline"
8217
8218 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
8219
8220     for ac_header in readline.h readline/readline.h
8221 do :
8222   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8223 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8224 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8225   cat >>confdefs.h <<_ACEOF
8226 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8227 _ACEOF
8228
8229 fi
8230
8231 done
8232
8233     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
8234 $as_echo_n "checking whether readline supports history... " >&6; }
8235 if ${ac_cv_lib_readline_history+:} false; then :
8236   $as_echo_n "(cached) " >&6
8237 else
8238
8239       ac_cv_lib_readline_history="no"
8240       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8241 /* end confdefs.h.  */
8242
8243 /* Override any GCC internal prototype to avoid an error.
8244    Use char because int might match the return type of a GCC
8245    builtin and then its argument prototype would still apply.  */
8246 #ifdef __cplusplus
8247 extern "C"
8248 #endif
8249 char add_history ();
8250 int
8251 main ()
8252 {
8253 return add_history ();
8254   ;
8255   return 0;
8256 }
8257 _ACEOF
8258 if ac_fn_c_try_link "$LINENO"; then :
8259   ac_cv_lib_readline_history="yes"
8260 fi
8261 rm -f core conftest.err conftest.$ac_objext \
8262     conftest$ac_exeext conftest.$ac_ext
8263
8264 fi
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_history" >&5
8266 $as_echo "$ac_cv_lib_readline_history" >&6; }
8267     if test "$ac_cv_lib_readline_history" = "yes"; then
8268
8269 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
8270
8271       for ac_header in history.h readline/history.h
8272 do :
8273   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8274 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8275 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8276   cat >>confdefs.h <<_ACEOF
8277 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8278 _ACEOF
8279
8280 fi
8281
8282 done
8283
8284     fi
8285   fi
8286
8287
8288
8289 if test x$ac_cv_lib_readline = xno -o x$ac_cv_lib_readline_history = xno; then
8290         as_fn_error $? "*** readline library not found or it doesn't support history ***" "$LINENO" 5
8291 fi
8292
8293
8294
8295 # Check whether --enable-vformat was given.
8296 if test "${enable_vformat+set}" = set; then :
8297   enableval=$enable_vformat; case "${enableval}" in
8298         yes) vformat=true ;;
8299         no) vformat=false ;;
8300         *) as_fn_error $? "bad value ${enableval} for --enable-vformat" "$LINENO" 5 ;;
8301         esac
8302 else
8303   vformat=false
8304 fi
8305
8306 if test x$vformat = xtrue; then
8307    ac_fn_c_check_header_mongrel "$LINENO" "vf_iface.h" "ac_cv_header_vf_iface_h" "$ac_includes_default"
8308 if test "x$ac_cv_header_vf_iface_h" = xyes; then :
8309
8310      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vf_read_file in -lvformat" >&5
8311 $as_echo_n "checking for vf_read_file in -lvformat... " >&6; }
8312 if ${ac_cv_lib_vformat_vf_read_file+:} false; then :
8313   $as_echo_n "(cached) " >&6
8314 else
8315   ac_check_lib_save_LIBS=$LIBS
8316 LIBS="-lvformat  $LIBS"
8317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8318 /* end confdefs.h.  */
8319
8320 /* Override any GCC internal prototype to avoid an error.
8321    Use char because int might match the return type of a GCC
8322    builtin and then its argument prototype would still apply.  */
8323 #ifdef __cplusplus
8324 extern "C"
8325 #endif
8326 char vf_read_file ();
8327 int
8328 main ()
8329 {
8330 return vf_read_file ();
8331   ;
8332   return 0;
8333 }
8334 _ACEOF
8335 if ac_fn_c_try_link "$LINENO"; then :
8336   ac_cv_lib_vformat_vf_read_file=yes
8337 else
8338   ac_cv_lib_vformat_vf_read_file=no
8339 fi
8340 rm -f core conftest.err conftest.$ac_objext \
8341     conftest$ac_exeext conftest.$ac_ext
8342 LIBS=$ac_check_lib_save_LIBS
8343 fi
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vformat_vf_read_file" >&5
8345 $as_echo "$ac_cv_lib_vformat_vf_read_file" >&6; }
8346 if test "x$ac_cv_lib_vformat_vf_read_file" = xyes; then :
8347
8348      MODULES="$MODULES m_vcf"
8349
8350 $as_echo "#define HAVE_VFORMAT 1" >>confdefs.h
8351
8352      have_vformat=yes
8353
8354 fi
8355
8356
8357 fi
8358
8359
8360 fi
8361  if test x"$have_vformat" = "xyes"; then
8362   ENABLE_VFORMAT_SUPPORT_TRUE=
8363   ENABLE_VFORMAT_SUPPORT_FALSE='#'
8364 else
8365   ENABLE_VFORMAT_SUPPORT_TRUE='#'
8366   ENABLE_VFORMAT_SUPPORT_FALSE=
8367 fi
8368
8369
8370
8371
8372 if test x$ac_widec_possible = xyes; then
8373
8374 $as_echo "#define HANDLE_MULTIBYTE 1" >>confdefs.h
8375
8376 fi
8377
8378 for ac_func in resizeterm
8379 do :
8380   ac_fn_c_check_func "$LINENO" "resizeterm" "ac_cv_func_resizeterm"
8381 if test "x$ac_cv_func_resizeterm" = xyes; then :
8382   cat >>confdefs.h <<_ACEOF
8383 #define HAVE_RESIZETERM 1
8384 _ACEOF
8385
8386 fi
8387 done
8388
8389
8390 for ac_func in snprintf vsnprintf
8391 do :
8392   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8393 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8394 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8395   cat >>confdefs.h <<_ACEOF
8396 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8397 _ACEOF
8398
8399 fi
8400 done
8401
8402
8403 for ac_func in strcasestr
8404 do :
8405   ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
8406 if test "x$ac_cv_func_strcasestr" = xyes; then :
8407   cat >>confdefs.h <<_ACEOF
8408 #define HAVE_STRCASESTR 1
8409 _ACEOF
8410  $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h
8411
8412 fi
8413 done
8414
8415
8416 # Check whether --enable-debug was given.
8417 if test "${enable_debug+set}" = set; then :
8418   enableval=$enable_debug; case "${enableval}" in
8419         yes) debug=true ;;
8420         no) debug=false ;;
8421         *) as_fn_error $? "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
8422         esac
8423 else
8424   debug=false
8425 fi
8426
8427
8428 if test x$debug = xtrue; then
8429         CPPFLAGS="-DDEBUG=1 $CPPFLAGS"
8430         CFLAGS="-g $CFLAGS"
8431 fi
8432
8433 if test x$GCC = xyes; then
8434         CFLAGS="-Wall $CFLAGS"
8435 fi
8436
8437 ac_config_files="$ac_config_files Makefile abook.spec po/Makefile.in"
8438
8439 cat >confcache <<\_ACEOF
8440 # This file is a shell script that caches the results of configure
8441 # tests run on this system so they can be shared between configure
8442 # scripts and configure runs, see configure's option --config-cache.
8443 # It is not useful on other systems.  If it contains results you don't
8444 # want to keep, you may remove or edit it.
8445 #
8446 # config.status only pays attention to the cache file if you give it
8447 # the --recheck option to rerun configure.
8448 #
8449 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8450 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8451 # following values.
8452
8453 _ACEOF
8454
8455 # The following way of writing the cache mishandles newlines in values,
8456 # but we know of no workaround that is simple, portable, and efficient.
8457 # So, we kill variables containing newlines.
8458 # Ultrix sh set writes to stderr and can't be redirected directly,
8459 # and sets the high bit in the cache file unless we assign to the vars.
8460 (
8461   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8462     eval ac_val=\$$ac_var
8463     case $ac_val in #(
8464     *${as_nl}*)
8465       case $ac_var in #(
8466       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8467 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8468       esac
8469       case $ac_var in #(
8470       _ | IFS | as_nl) ;; #(
8471       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8472       *) { eval $ac_var=; unset $ac_var;} ;;
8473       esac ;;
8474     esac
8475   done
8476
8477   (set) 2>&1 |
8478     case $as_nl`(ac_space=' '; set) 2>&1` in #(
8479     *${as_nl}ac_space=\ *)
8480       # `set' does not quote correctly, so add quotes: double-quote
8481       # substitution turns \\\\ into \\, and sed turns \\ into \.
8482       sed -n \
8483         "s/'/'\\\\''/g;
8484           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8485       ;; #(
8486     *)
8487       # `set' quotes correctly as required by POSIX, so do not add quotes.
8488       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8489       ;;
8490     esac |
8491     sort
8492 ) |
8493   sed '
8494      /^ac_cv_env_/b end
8495      t clear
8496      :clear
8497      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8498      t end
8499      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8500      :end' >>confcache
8501 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8502   if test -w "$cache_file"; then
8503     if test "x$cache_file" != "x/dev/null"; then
8504       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8505 $as_echo "$as_me: updating cache $cache_file" >&6;}
8506       if test ! -f "$cache_file" || test -h "$cache_file"; then
8507         cat confcache >"$cache_file"
8508       else
8509         case $cache_file in #(
8510         */* | ?:*)
8511           mv -f confcache "$cache_file"$$ &&
8512           mv -f "$cache_file"$$ "$cache_file" ;; #(
8513         *)
8514           mv -f confcache "$cache_file" ;;
8515         esac
8516       fi
8517     fi
8518   else
8519     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8520 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8521   fi
8522 fi
8523 rm -f confcache
8524
8525 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8526 # Let make expand exec_prefix.
8527 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8528
8529 DEFS=-DHAVE_CONFIG_H
8530
8531 ac_libobjs=
8532 ac_ltlibobjs=
8533 U=
8534 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8535   # 1. Remove the extension, and $U if already installed.
8536   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8537   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8538   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
8539   #    will be set to the directory where LIBOBJS objects are built.
8540   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8541   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8542 done
8543 LIBOBJS=$ac_libobjs
8544
8545 LTLIBOBJS=$ac_ltlibobjs
8546
8547
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
8549 $as_echo_n "checking that generated files are newer than configure... " >&6; }
8550    if test -n "$am_sleep_pid"; then
8551      # Hide warnings about reused PIDs.
8552      wait $am_sleep_pid 2>/dev/null
8553    fi
8554    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
8555 $as_echo "done" >&6; }
8556  if test -n "$EXEEXT"; then
8557   am__EXEEXT_TRUE=
8558   am__EXEEXT_FALSE='#'
8559 else
8560   am__EXEEXT_TRUE='#'
8561   am__EXEEXT_FALSE=
8562 fi
8563
8564 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8565   as_fn_error $? "conditional \"AMDEP\" was never defined.
8566 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8567 fi
8568 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8569   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
8570 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8571 fi
8572 if test -z "${USE_INCLUDED_INTL_H_TRUE}" && test -z "${USE_INCLUDED_INTL_H_FALSE}"; then
8573   as_fn_error $? "conditional \"USE_INCLUDED_INTL_H\" was never defined.
8574 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8575 fi
8576 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8577   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
8578 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8579 fi
8580 if test -z "${ENABLE_VFORMAT_SUPPORT_TRUE}" && test -z "${ENABLE_VFORMAT_SUPPORT_FALSE}"; then
8581   as_fn_error $? "conditional \"ENABLE_VFORMAT_SUPPORT\" was never defined.
8582 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8583 fi
8584
8585 : "${CONFIG_STATUS=./config.status}"
8586 ac_write_fail=0
8587 ac_clean_files_save=$ac_clean_files
8588 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8590 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8591 as_write_fail=0
8592 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8593 #! $SHELL
8594 # Generated by $as_me.
8595 # Run this file to recreate the current configuration.
8596 # Compiler output produced by configure, useful for debugging
8597 # configure, is in config.log if it exists.
8598
8599 debug=false
8600 ac_cs_recheck=false
8601 ac_cs_silent=false
8602
8603 SHELL=\${CONFIG_SHELL-$SHELL}
8604 export SHELL
8605 _ASEOF
8606 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8607 ## -------------------- ##
8608 ## M4sh Initialization. ##
8609 ## -------------------- ##
8610
8611 # Be more Bourne compatible
8612 DUALCASE=1; export DUALCASE # for MKS sh
8613 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8614   emulate sh
8615   NULLCMD=:
8616   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8617   # is contrary to our usage.  Disable this feature.
8618   alias -g '${1+"$@"}'='"$@"'
8619   setopt NO_GLOB_SUBST
8620 else
8621   case `(set -o) 2>/dev/null` in #(
8622   *posix*) :
8623     set -o posix ;; #(
8624   *) :
8625      ;;
8626 esac
8627 fi
8628
8629
8630 as_nl='
8631 '
8632 export as_nl
8633 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8634 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8635 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8636 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8637 # Prefer a ksh shell builtin over an external printf program on Solaris,
8638 # but without wasting forks for bash or zsh.
8639 if test -z "$BASH_VERSION$ZSH_VERSION" \
8640     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8641   as_echo='print -r --'
8642   as_echo_n='print -rn --'
8643 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8644   as_echo='printf %s\n'
8645   as_echo_n='printf %s'
8646 else
8647   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8648     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8649     as_echo_n='/usr/ucb/echo -n'
8650   else
8651     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8652     as_echo_n_body='eval
8653       arg=$1;
8654       case $arg in #(
8655       *"$as_nl"*)
8656         expr "X$arg" : "X\\(.*\\)$as_nl";
8657         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8658       esac;
8659       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8660     '
8661     export as_echo_n_body
8662     as_echo_n='sh -c $as_echo_n_body as_echo'
8663   fi
8664   export as_echo_body
8665   as_echo='sh -c $as_echo_body as_echo'
8666 fi
8667
8668 # The user is always right.
8669 if test "${PATH_SEPARATOR+set}" != set; then
8670   PATH_SEPARATOR=:
8671   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8672     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8673       PATH_SEPARATOR=';'
8674   }
8675 fi
8676
8677
8678 # IFS
8679 # We need space, tab and new line, in precisely that order.  Quoting is
8680 # there to prevent editors from complaining about space-tab.
8681 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8682 # splitting by setting IFS to empty value.)
8683 IFS=" ""        $as_nl"
8684
8685 # Find who we are.  Look in the path if we contain no directory separator.
8686 as_myself=
8687 case $0 in #((
8688   *[\\/]* ) as_myself=$0 ;;
8689   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8690 for as_dir in $PATH
8691 do
8692   IFS=$as_save_IFS
8693   test -z "$as_dir" && as_dir=.
8694     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8695   done
8696 IFS=$as_save_IFS
8697
8698      ;;
8699 esac
8700 # We did not find ourselves, most probably we were run as `sh COMMAND'
8701 # in which case we are not to be found in the path.
8702 if test "x$as_myself" = x; then
8703   as_myself=$0
8704 fi
8705 if test ! -f "$as_myself"; then
8706   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8707   exit 1
8708 fi
8709
8710 # Unset variables that we do not need and which cause bugs (e.g. in
8711 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
8712 # suppresses any "Segmentation fault" message there.  '((' could
8713 # trigger a bug in pdksh 5.2.14.
8714 for as_var in BASH_ENV ENV MAIL MAILPATH
8715 do eval test x\${$as_var+set} = xset \
8716   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8717 done
8718 PS1='$ '
8719 PS2='> '
8720 PS4='+ '
8721
8722 # NLS nuisances.
8723 LC_ALL=C
8724 export LC_ALL
8725 LANGUAGE=C
8726 export LANGUAGE
8727
8728 # CDPATH.
8729 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8730
8731
8732 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8733 # ----------------------------------------
8734 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8735 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8736 # script with STATUS, using 1 if that was 0.
8737 as_fn_error ()
8738 {
8739   as_status=$1; test $as_status -eq 0 && as_status=1
8740   if test "$4"; then
8741     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8742     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8743   fi
8744   $as_echo "$as_me: error: $2" >&2
8745   as_fn_exit $as_status
8746 } # as_fn_error
8747
8748
8749 # as_fn_set_status STATUS
8750 # -----------------------
8751 # Set $? to STATUS, without forking.
8752 as_fn_set_status ()
8753 {
8754   return $1
8755 } # as_fn_set_status
8756
8757 # as_fn_exit STATUS
8758 # -----------------
8759 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8760 as_fn_exit ()
8761 {
8762   set +e
8763   as_fn_set_status $1
8764   exit $1
8765 } # as_fn_exit
8766
8767 # as_fn_unset VAR
8768 # ---------------
8769 # Portably unset VAR.
8770 as_fn_unset ()
8771 {
8772   { eval $1=; unset $1;}
8773 }
8774 as_unset=as_fn_unset
8775 # as_fn_append VAR VALUE
8776 # ----------------------
8777 # Append the text in VALUE to the end of the definition contained in VAR. Take
8778 # advantage of any shell optimizations that allow amortized linear growth over
8779 # repeated appends, instead of the typical quadratic growth present in naive
8780 # implementations.
8781 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8782   eval 'as_fn_append ()
8783   {
8784     eval $1+=\$2
8785   }'
8786 else
8787   as_fn_append ()
8788   {
8789     eval $1=\$$1\$2
8790   }
8791 fi # as_fn_append
8792
8793 # as_fn_arith ARG...
8794 # ------------------
8795 # Perform arithmetic evaluation on the ARGs, and store the result in the
8796 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8797 # must be portable across $(()) and expr.
8798 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8799   eval 'as_fn_arith ()
8800   {
8801     as_val=$(( $* ))
8802   }'
8803 else
8804   as_fn_arith ()
8805   {
8806     as_val=`expr "$@" || test $? -eq 1`
8807   }
8808 fi # as_fn_arith
8809
8810
8811 if expr a : '\(a\)' >/dev/null 2>&1 &&
8812    test "X`expr 00001 : '.*\(...\)'`" = X001; then
8813   as_expr=expr
8814 else
8815   as_expr=false
8816 fi
8817
8818 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8819   as_basename=basename
8820 else
8821   as_basename=false
8822 fi
8823
8824 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8825   as_dirname=dirname
8826 else
8827   as_dirname=false
8828 fi
8829
8830 as_me=`$as_basename -- "$0" ||
8831 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8832          X"$0" : 'X\(//\)$' \| \
8833          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8834 $as_echo X/"$0" |
8835     sed '/^.*\/\([^/][^/]*\)\/*$/{
8836             s//\1/
8837             q
8838           }
8839           /^X\/\(\/\/\)$/{
8840             s//\1/
8841             q
8842           }
8843           /^X\/\(\/\).*/{
8844             s//\1/
8845             q
8846           }
8847           s/.*/./; q'`
8848
8849 # Avoid depending upon Character Ranges.
8850 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8851 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8852 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8853 as_cr_digits='0123456789'
8854 as_cr_alnum=$as_cr_Letters$as_cr_digits
8855
8856 ECHO_C= ECHO_N= ECHO_T=
8857 case `echo -n x` in #(((((
8858 -n*)
8859   case `echo 'xy\c'` in
8860   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
8861   xy)  ECHO_C='\c';;
8862   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
8863        ECHO_T=' ';;
8864   esac;;
8865 *)
8866   ECHO_N='-n';;
8867 esac
8868
8869 rm -f conf$$ conf$$.exe conf$$.file
8870 if test -d conf$$.dir; then
8871   rm -f conf$$.dir/conf$$.file
8872 else
8873   rm -f conf$$.dir
8874   mkdir conf$$.dir 2>/dev/null
8875 fi
8876 if (echo >conf$$.file) 2>/dev/null; then
8877   if ln -s conf$$.file conf$$ 2>/dev/null; then
8878     as_ln_s='ln -s'
8879     # ... but there are two gotchas:
8880     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8881     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8882     # In both cases, we have to default to `cp -pR'.
8883     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8884       as_ln_s='cp -pR'
8885   elif ln conf$$.file conf$$ 2>/dev/null; then
8886     as_ln_s=ln
8887   else
8888     as_ln_s='cp -pR'
8889   fi
8890 else
8891   as_ln_s='cp -pR'
8892 fi
8893 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8894 rmdir conf$$.dir 2>/dev/null
8895
8896
8897 # as_fn_mkdir_p
8898 # -------------
8899 # Create "$as_dir" as a directory, including parents if necessary.
8900 as_fn_mkdir_p ()
8901 {
8902
8903   case $as_dir in #(
8904   -*) as_dir=./$as_dir;;
8905   esac
8906   test -d "$as_dir" || eval $as_mkdir_p || {
8907     as_dirs=
8908     while :; do
8909       case $as_dir in #(
8910       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8911       *) as_qdir=$as_dir;;
8912       esac
8913       as_dirs="'$as_qdir' $as_dirs"
8914       as_dir=`$as_dirname -- "$as_dir" ||
8915 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8916          X"$as_dir" : 'X\(//\)[^/]' \| \
8917          X"$as_dir" : 'X\(//\)$' \| \
8918          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8919 $as_echo X"$as_dir" |
8920     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8921             s//\1/
8922             q
8923           }
8924           /^X\(\/\/\)[^/].*/{
8925             s//\1/
8926             q
8927           }
8928           /^X\(\/\/\)$/{
8929             s//\1/
8930             q
8931           }
8932           /^X\(\/\).*/{
8933             s//\1/
8934             q
8935           }
8936           s/.*/./; q'`
8937       test -d "$as_dir" && break
8938     done
8939     test -z "$as_dirs" || eval "mkdir $as_dirs"
8940   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8941
8942
8943 } # as_fn_mkdir_p
8944 if mkdir -p . 2>/dev/null; then
8945   as_mkdir_p='mkdir -p "$as_dir"'
8946 else
8947   test -d ./-p && rmdir ./-p
8948   as_mkdir_p=false
8949 fi
8950
8951
8952 # as_fn_executable_p FILE
8953 # -----------------------
8954 # Test if FILE is an executable regular file.
8955 as_fn_executable_p ()
8956 {
8957   test -f "$1" && test -x "$1"
8958 } # as_fn_executable_p
8959 as_test_x='test -x'
8960 as_executable_p=as_fn_executable_p
8961
8962 # Sed expression to map a string onto a valid CPP name.
8963 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8964
8965 # Sed expression to map a string onto a valid variable name.
8966 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8967
8968
8969 exec 6>&1
8970 ## ----------------------------------- ##
8971 ## Main body of $CONFIG_STATUS script. ##
8972 ## ----------------------------------- ##
8973 _ASEOF
8974 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8975
8976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8977 # Save the log message, to keep $0 and so on meaningful, and to
8978 # report actual input values of CONFIG_FILES etc. instead of their
8979 # values after options handling.
8980 ac_log="
8981 This file was extended by Abook $as_me 0.6.1, which was
8982 generated by GNU Autoconf 2.69.  Invocation command line was
8983
8984   CONFIG_FILES    = $CONFIG_FILES
8985   CONFIG_HEADERS  = $CONFIG_HEADERS
8986   CONFIG_LINKS    = $CONFIG_LINKS
8987   CONFIG_COMMANDS = $CONFIG_COMMANDS
8988   $ $0 $@
8989
8990 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8991 "
8992
8993 _ACEOF
8994
8995 case $ac_config_files in *"
8996 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8997 esac
8998
8999 case $ac_config_headers in *"
9000 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9001 esac
9002
9003
9004 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9005 # Files that config.status was made for.
9006 config_files="$ac_config_files"
9007 config_headers="$ac_config_headers"
9008 config_commands="$ac_config_commands"
9009
9010 _ACEOF
9011
9012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9013 ac_cs_usage="\
9014 \`$as_me' instantiates files and other configuration actions
9015 from templates according to the current configuration.  Unless the files
9016 and actions are specified as TAGs, all are instantiated by default.
9017
9018 Usage: $0 [OPTION]... [TAG]...
9019
9020   -h, --help       print this help, then exit
9021   -V, --version    print version number and configuration settings, then exit
9022       --config     print configuration, then exit
9023   -q, --quiet, --silent
9024                    do not print progress messages
9025   -d, --debug      don't remove temporary files
9026       --recheck    update $as_me by reconfiguring in the same conditions
9027       --file=FILE[:TEMPLATE]
9028                    instantiate the configuration file FILE
9029       --header=FILE[:TEMPLATE]
9030                    instantiate the configuration header FILE
9031
9032 Configuration files:
9033 $config_files
9034
9035 Configuration headers:
9036 $config_headers
9037
9038 Configuration commands:
9039 $config_commands
9040
9041 Report bugs to <abook-devel@lists.sourceforge.net>.
9042 Abook home page: <http://abook.sourceforge.net>."
9043
9044 _ACEOF
9045 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9046 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9047 ac_cs_version="\\
9048 Abook config.status 0.6.1
9049 configured by $0, generated by GNU Autoconf 2.69,
9050   with options \\"\$ac_cs_config\\"
9051
9052 Copyright (C) 2012 Free Software Foundation, Inc.
9053 This config.status script is free software; the Free Software Foundation
9054 gives unlimited permission to copy, distribute and modify it."
9055
9056 ac_pwd='$ac_pwd'
9057 srcdir='$srcdir'
9058 INSTALL='$INSTALL'
9059 MKDIR_P='$MKDIR_P'
9060 AWK='$AWK'
9061 test -n "\$AWK" || AWK=awk
9062 _ACEOF
9063
9064 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9065 # The default lists apply if the user does not specify any file.
9066 ac_need_defaults=:
9067 while test $# != 0
9068 do
9069   case $1 in
9070   --*=?*)
9071     ac_option=`expr "X$1" : 'X\([^=]*\)='`
9072     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9073     ac_shift=:
9074     ;;
9075   --*=)
9076     ac_option=`expr "X$1" : 'X\([^=]*\)='`
9077     ac_optarg=
9078     ac_shift=:
9079     ;;
9080   *)
9081     ac_option=$1
9082     ac_optarg=$2
9083     ac_shift=shift
9084     ;;
9085   esac
9086
9087   case $ac_option in
9088   # Handling of the options.
9089   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9090     ac_cs_recheck=: ;;
9091   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9092     $as_echo "$ac_cs_version"; exit ;;
9093   --config | --confi | --conf | --con | --co | --c )
9094     $as_echo "$ac_cs_config"; exit ;;
9095   --debug | --debu | --deb | --de | --d | -d )
9096     debug=: ;;
9097   --file | --fil | --fi | --f )
9098     $ac_shift
9099     case $ac_optarg in
9100     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9101     '') as_fn_error $? "missing file argument" ;;
9102     esac
9103     as_fn_append CONFIG_FILES " '$ac_optarg'"
9104     ac_need_defaults=false;;
9105   --header | --heade | --head | --hea )
9106     $ac_shift
9107     case $ac_optarg in
9108     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9109     esac
9110     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9111     ac_need_defaults=false;;
9112   --he | --h)
9113     # Conflict between --help and --header
9114     as_fn_error $? "ambiguous option: \`$1'
9115 Try \`$0 --help' for more information.";;
9116   --help | --hel | -h )
9117     $as_echo "$ac_cs_usage"; exit ;;
9118   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9119   | -silent | --silent | --silen | --sile | --sil | --si | --s)
9120     ac_cs_silent=: ;;
9121
9122   # This is an error.
9123   -*) as_fn_error $? "unrecognized option: \`$1'
9124 Try \`$0 --help' for more information." ;;
9125
9126   *) as_fn_append ac_config_targets " $1"
9127      ac_need_defaults=false ;;
9128
9129   esac
9130   shift
9131 done
9132
9133 ac_configure_extra_args=
9134
9135 if $ac_cs_silent; then
9136   exec 6>/dev/null
9137   ac_configure_extra_args="$ac_configure_extra_args --silent"
9138 fi
9139
9140 _ACEOF
9141 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9142 if \$ac_cs_recheck; then
9143   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9144   shift
9145   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9146   CONFIG_SHELL='$SHELL'
9147   export CONFIG_SHELL
9148   exec "\$@"
9149 fi
9150
9151 _ACEOF
9152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9153 exec 5>>config.log
9154 {
9155   echo
9156   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9157 ## Running $as_me. ##
9158 _ASBOX
9159   $as_echo "$ac_log"
9160 } >&5
9161
9162 _ACEOF
9163 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9164 #
9165 # INIT-COMMANDS
9166 #
9167 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9168 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
9169     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
9170     # from automake < 1.5.
9171     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
9172     # Capture the value of LINGUAS because we need it to compute CATALOGS.
9173     LINGUAS="${LINGUAS-%UNSET%}"
9174
9175
9176 _ACEOF
9177
9178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9179
9180 # Handling of arguments.
9181 for ac_config_target in $ac_config_targets
9182 do
9183   case $ac_config_target in
9184     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9185     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9186     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
9187     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9188     "abook.spec") CONFIG_FILES="$CONFIG_FILES abook.spec" ;;
9189     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
9190
9191   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9192   esac
9193 done
9194
9195
9196 # If the user did not use the arguments to specify the items to instantiate,
9197 # then the envvar interface is used.  Set only those that are not.
9198 # We use the long form for the default assignment because of an extremely
9199 # bizarre bug on SunOS 4.1.3.
9200 if $ac_need_defaults; then
9201   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9202   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9203   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9204 fi
9205
9206 # Have a temporary directory for convenience.  Make it in the build tree
9207 # simply because there is no reason against having it here, and in addition,
9208 # creating and moving files from /tmp can sometimes cause problems.
9209 # Hook for its removal unless debugging.
9210 # Note that there is a small window in which the directory will not be cleaned:
9211 # after its creation but before its name has been assigned to `$tmp'.
9212 $debug ||
9213 {
9214   tmp= ac_tmp=
9215   trap 'exit_status=$?
9216   : "${ac_tmp:=$tmp}"
9217   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9218 ' 0
9219   trap 'as_fn_exit 1' 1 2 13 15
9220 }
9221 # Create a (secure) tmp directory for tmp files.
9222
9223 {
9224   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9225   test -d "$tmp"
9226 }  ||
9227 {
9228   tmp=./conf$$-$RANDOM
9229   (umask 077 && mkdir "$tmp")
9230 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9231 ac_tmp=$tmp
9232
9233 # Set up the scripts for CONFIG_FILES section.
9234 # No need to generate them if there are no CONFIG_FILES.
9235 # This happens for instance with `./config.status config.h'.
9236 if test -n "$CONFIG_FILES"; then
9237
9238
9239 ac_cr=`echo X | tr X '\015'`
9240 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9241 # But we know of no other shell where ac_cr would be empty at this
9242 # point, so we can use a bashism as a fallback.
9243 if test "x$ac_cr" = x; then
9244   eval ac_cr=\$\'\\r\'
9245 fi
9246 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9247 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9248   ac_cs_awk_cr='\\r'
9249 else
9250   ac_cs_awk_cr=$ac_cr
9251 fi
9252
9253 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9254 _ACEOF
9255
9256
9257 {
9258   echo "cat >conf$$subs.awk <<_ACEOF" &&
9259   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9260   echo "_ACEOF"
9261 } >conf$$subs.sh ||
9262   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9263 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9264 ac_delim='%!_!# '
9265 for ac_last_try in false false false false false :; do
9266   . ./conf$$subs.sh ||
9267     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9268
9269   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9270   if test $ac_delim_n = $ac_delim_num; then
9271     break
9272   elif $ac_last_try; then
9273     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9274   else
9275     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9276   fi
9277 done
9278 rm -f conf$$subs.sh
9279
9280 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9281 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9282 _ACEOF
9283 sed -n '
9284 h
9285 s/^/S["/; s/!.*/"]=/
9286 p
9287 g
9288 s/^[^!]*!//
9289 :repl
9290 t repl
9291 s/'"$ac_delim"'$//
9292 t delim
9293 :nl
9294 h
9295 s/\(.\{148\}\)..*/\1/
9296 t more1
9297 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9298 p
9299 n
9300 b repl
9301 :more1
9302 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9303 p
9304 g
9305 s/.\{148\}//
9306 t nl
9307 :delim
9308 h
9309 s/\(.\{148\}\)..*/\1/
9310 t more2
9311 s/["\\]/\\&/g; s/^/"/; s/$/"/
9312 p
9313 b
9314 :more2
9315 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9316 p
9317 g
9318 s/.\{148\}//
9319 t delim
9320 ' <conf$$subs.awk | sed '
9321 /^[^""]/{
9322   N
9323   s/\n//
9324 }
9325 ' >>$CONFIG_STATUS || ac_write_fail=1
9326 rm -f conf$$subs.awk
9327 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9328 _ACAWK
9329 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9330   for (key in S) S_is_set[key] = 1
9331   FS = "\a"
9332
9333 }
9334 {
9335   line = $ 0
9336   nfields = split(line, field, "@")
9337   substed = 0
9338   len = length(field[1])
9339   for (i = 2; i < nfields; i++) {
9340     key = field[i]
9341     keylen = length(key)
9342     if (S_is_set[key]) {
9343       value = S[key]
9344       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9345       len += length(value) + length(field[++i])
9346       substed = 1
9347     } else
9348       len += 1 + keylen
9349   }
9350
9351   print line
9352 }
9353
9354 _ACAWK
9355 _ACEOF
9356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9357 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9358   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9359 else
9360   cat
9361 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9362   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9363 _ACEOF
9364
9365 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9366 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9367 # trailing colons and then remove the whole line if VPATH becomes empty
9368 # (actually we leave an empty line to preserve line numbers).
9369 if test "x$srcdir" = x.; then
9370   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
9371 h
9372 s///
9373 s/^/:/
9374 s/[      ]*$/:/
9375 s/:\$(srcdir):/:/g
9376 s/:\${srcdir}:/:/g
9377 s/:@srcdir@:/:/g
9378 s/^:*//
9379 s/:*$//
9380 x
9381 s/\(=[   ]*\).*/\1/
9382 G
9383 s/\n//
9384 s/^[^=]*=[       ]*$//
9385 }'
9386 fi
9387
9388 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9389 fi # test -n "$CONFIG_FILES"
9390
9391 # Set up the scripts for CONFIG_HEADERS section.
9392 # No need to generate them if there are no CONFIG_HEADERS.
9393 # This happens for instance with `./config.status Makefile'.
9394 if test -n "$CONFIG_HEADERS"; then
9395 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9396 BEGIN {
9397 _ACEOF
9398
9399 # Transform confdefs.h into an awk script `defines.awk', embedded as
9400 # here-document in config.status, that substitutes the proper values into
9401 # config.h.in to produce config.h.
9402
9403 # Create a delimiter string that does not exist in confdefs.h, to ease
9404 # handling of long lines.
9405 ac_delim='%!_!# '
9406 for ac_last_try in false false :; do
9407   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9408   if test -z "$ac_tt"; then
9409     break
9410   elif $ac_last_try; then
9411     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9412   else
9413     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9414   fi
9415 done
9416
9417 # For the awk script, D is an array of macro values keyed by name,
9418 # likewise P contains macro parameters if any.  Preserve backslash
9419 # newline sequences.
9420
9421 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9422 sed -n '
9423 s/.\{148\}/&'"$ac_delim"'/g
9424 t rset
9425 :rset
9426 s/^[     ]*#[    ]*define[       ][      ]*/ /
9427 t def
9428 d
9429 :def
9430 s/\\$//
9431 t bsnl
9432 s/["\\]/\\&/g
9433 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
9434 D["\1"]=" \3"/p
9435 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
9436 d
9437 :bsnl
9438 s/["\\]/\\&/g
9439 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
9440 D["\1"]=" \3\\\\\\n"\\/p
9441 t cont
9442 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9443 t cont
9444 d
9445 :cont
9446 n
9447 s/.\{148\}/&'"$ac_delim"'/g
9448 t clear
9449 :clear
9450 s/\\$//
9451 t bsnlc
9452 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9453 d
9454 :bsnlc
9455 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9456 b cont
9457 ' <confdefs.h | sed '
9458 s/'"$ac_delim"'/"\\\
9459 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9460
9461 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9462   for (key in D) D_is_set[key] = 1
9463   FS = "\a"
9464 }
9465 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9466   line = \$ 0
9467   split(line, arg, " ")
9468   if (arg[1] == "#") {
9469     defundef = arg[2]
9470     mac1 = arg[3]
9471   } else {
9472     defundef = substr(arg[1], 2)
9473     mac1 = arg[2]
9474   }
9475   split(mac1, mac2, "(") #)
9476   macro = mac2[1]
9477   prefix = substr(line, 1, index(line, defundef) - 1)
9478   if (D_is_set[macro]) {
9479     # Preserve the white space surrounding the "#".
9480     print prefix "define", macro P[macro] D[macro]
9481     next
9482   } else {
9483     # Replace #undef with comments.  This is necessary, for example,
9484     # in the case of _POSIX_SOURCE, which is predefined and required
9485     # on some systems where configure will not decide to define it.
9486     if (defundef == "undef") {
9487       print "/*", prefix defundef, macro, "*/"
9488       next
9489     }
9490   }
9491 }
9492 { print }
9493 _ACAWK
9494 _ACEOF
9495 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9496   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9497 fi # test -n "$CONFIG_HEADERS"
9498
9499
9500 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
9501 shift
9502 for ac_tag
9503 do
9504   case $ac_tag in
9505   :[FHLC]) ac_mode=$ac_tag; continue;;
9506   esac
9507   case $ac_mode$ac_tag in
9508   :[FHL]*:*);;
9509   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9510   :[FH]-) ac_tag=-:-;;
9511   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9512   esac
9513   ac_save_IFS=$IFS
9514   IFS=:
9515   set x $ac_tag
9516   IFS=$ac_save_IFS
9517   shift
9518   ac_file=$1
9519   shift
9520
9521   case $ac_mode in
9522   :L) ac_source=$1;;
9523   :[FH])
9524     ac_file_inputs=
9525     for ac_f
9526     do
9527       case $ac_f in
9528       -) ac_f="$ac_tmp/stdin";;
9529       *) # Look for the file first in the build tree, then in the source tree
9530          # (if the path is not absolute).  The absolute path cannot be DOS-style,
9531          # because $ac_f cannot contain `:'.
9532          test -f "$ac_f" ||
9533            case $ac_f in
9534            [\\/$]*) false;;
9535            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9536            esac ||
9537            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9538       esac
9539       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9540       as_fn_append ac_file_inputs " '$ac_f'"
9541     done
9542
9543     # Let's still pretend it is `configure' which instantiates (i.e., don't
9544     # use $as_me), people would be surprised to read:
9545     #    /* config.h.  Generated by config.status.  */
9546     configure_input='Generated from '`
9547           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9548         `' by configure.'
9549     if test x"$ac_file" != x-; then
9550       configure_input="$ac_file.  $configure_input"
9551       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9552 $as_echo "$as_me: creating $ac_file" >&6;}
9553     fi
9554     # Neutralize special characters interpreted by sed in replacement strings.
9555     case $configure_input in #(
9556     *\&* | *\|* | *\\* )
9557        ac_sed_conf_input=`$as_echo "$configure_input" |
9558        sed 's/[\\\\&|]/\\\\&/g'`;; #(
9559     *) ac_sed_conf_input=$configure_input;;
9560     esac
9561
9562     case $ac_tag in
9563     *:-:* | *:-) cat >"$ac_tmp/stdin" \
9564       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9565     esac
9566     ;;
9567   esac
9568
9569   ac_dir=`$as_dirname -- "$ac_file" ||
9570 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9571          X"$ac_file" : 'X\(//\)[^/]' \| \
9572          X"$ac_file" : 'X\(//\)$' \| \
9573          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9574 $as_echo X"$ac_file" |
9575     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9576             s//\1/
9577             q
9578           }
9579           /^X\(\/\/\)[^/].*/{
9580             s//\1/
9581             q
9582           }
9583           /^X\(\/\/\)$/{
9584             s//\1/
9585             q
9586           }
9587           /^X\(\/\).*/{
9588             s//\1/
9589             q
9590           }
9591           s/.*/./; q'`
9592   as_dir="$ac_dir"; as_fn_mkdir_p
9593   ac_builddir=.
9594
9595 case "$ac_dir" in
9596 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9597 *)
9598   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9599   # A ".." for each directory in $ac_dir_suffix.
9600   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9601   case $ac_top_builddir_sub in
9602   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9603   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9604   esac ;;
9605 esac
9606 ac_abs_top_builddir=$ac_pwd
9607 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9608 # for backward compatibility:
9609 ac_top_builddir=$ac_top_build_prefix
9610
9611 case $srcdir in
9612   .)  # We are building in place.
9613     ac_srcdir=.
9614     ac_top_srcdir=$ac_top_builddir_sub
9615     ac_abs_top_srcdir=$ac_pwd ;;
9616   [\\/]* | ?:[\\/]* )  # Absolute name.
9617     ac_srcdir=$srcdir$ac_dir_suffix;
9618     ac_top_srcdir=$srcdir
9619     ac_abs_top_srcdir=$srcdir ;;
9620   *) # Relative name.
9621     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9622     ac_top_srcdir=$ac_top_build_prefix$srcdir
9623     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9624 esac
9625 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9626
9627
9628   case $ac_mode in
9629   :F)
9630   #
9631   # CONFIG_FILE
9632   #
9633
9634   case $INSTALL in
9635   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9636   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9637   esac
9638   ac_MKDIR_P=$MKDIR_P
9639   case $MKDIR_P in
9640   [\\/$]* | ?:[\\/]* ) ;;
9641   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
9642   esac
9643 _ACEOF
9644
9645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9646 # If the template does not know about datarootdir, expand it.
9647 # FIXME: This hack should be removed a few years after 2.60.
9648 ac_datarootdir_hack=; ac_datarootdir_seen=
9649 ac_sed_dataroot='
9650 /datarootdir/ {
9651   p
9652   q
9653 }
9654 /@datadir@/p
9655 /@docdir@/p
9656 /@infodir@/p
9657 /@localedir@/p
9658 /@mandir@/p'
9659 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9660 *datarootdir*) ac_datarootdir_seen=yes;;
9661 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9662   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9663 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9664 _ACEOF
9665 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9666   ac_datarootdir_hack='
9667   s&@datadir@&$datadir&g
9668   s&@docdir@&$docdir&g
9669   s&@infodir@&$infodir&g
9670   s&@localedir@&$localedir&g
9671   s&@mandir@&$mandir&g
9672   s&\\\${datarootdir}&$datarootdir&g' ;;
9673 esac
9674 _ACEOF
9675
9676 # Neutralize VPATH when `$srcdir' = `.'.
9677 # Shell code in configure.ac might set extrasub.
9678 # FIXME: do we really want to maintain this feature?
9679 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9680 ac_sed_extra="$ac_vpsub
9681 $extrasub
9682 _ACEOF
9683 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9684 :t
9685 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9686 s|@configure_input@|$ac_sed_conf_input|;t t
9687 s&@top_builddir@&$ac_top_builddir_sub&;t t
9688 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9689 s&@srcdir@&$ac_srcdir&;t t
9690 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9691 s&@top_srcdir@&$ac_top_srcdir&;t t
9692 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9693 s&@builddir@&$ac_builddir&;t t
9694 s&@abs_builddir@&$ac_abs_builddir&;t t
9695 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9696 s&@INSTALL@&$ac_INSTALL&;t t
9697 s&@MKDIR_P@&$ac_MKDIR_P&;t t
9698 $ac_datarootdir_hack
9699 "
9700 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9701   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9702
9703 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9704   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9705   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
9706       "$ac_tmp/out"`; test -z "$ac_out"; } &&
9707   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9708 which seems to be undefined.  Please make sure it is defined" >&5
9709 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9710 which seems to be undefined.  Please make sure it is defined" >&2;}
9711
9712   rm -f "$ac_tmp/stdin"
9713   case $ac_file in
9714   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9715   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9716   esac \
9717   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9718  ;;
9719   :H)
9720   #
9721   # CONFIG_HEADER
9722   #
9723   if test x"$ac_file" != x-; then
9724     {
9725       $as_echo "/* $configure_input  */" \
9726       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9727     } >"$ac_tmp/config.h" \
9728       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9729     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9730       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9731 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9732     else
9733       rm -f "$ac_file"
9734       mv "$ac_tmp/config.h" "$ac_file" \
9735         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9736     fi
9737   else
9738     $as_echo "/* $configure_input  */" \
9739       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9740       || as_fn_error $? "could not create -" "$LINENO" 5
9741   fi
9742 # Compute "$ac_file"'s index in $config_headers.
9743 _am_arg="$ac_file"
9744 _am_stamp_count=1
9745 for _am_header in $config_headers :; do
9746   case $_am_header in
9747     $_am_arg | $_am_arg:* )
9748       break ;;
9749     * )
9750       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9751   esac
9752 done
9753 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
9754 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9755          X"$_am_arg" : 'X\(//\)[^/]' \| \
9756          X"$_am_arg" : 'X\(//\)$' \| \
9757          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
9758 $as_echo X"$_am_arg" |
9759     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9760             s//\1/
9761             q
9762           }
9763           /^X\(\/\/\)[^/].*/{
9764             s//\1/
9765             q
9766           }
9767           /^X\(\/\/\)$/{
9768             s//\1/
9769             q
9770           }
9771           /^X\(\/\).*/{
9772             s//\1/
9773             q
9774           }
9775           s/.*/./; q'`/stamp-h$_am_stamp_count
9776  ;;
9777
9778   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9779 $as_echo "$as_me: executing $ac_file commands" >&6;}
9780  ;;
9781   esac
9782
9783
9784   case $ac_file$ac_mode in
9785     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
9786   # Older Autoconf quotes --file arguments for eval, but not when files
9787   # are listed without --file.  Let's play safe and only enable the eval
9788   # if we detect the quoting.
9789   case $CONFIG_FILES in
9790   *\'*) eval set x "$CONFIG_FILES" ;;
9791   *)   set x $CONFIG_FILES ;;
9792   esac
9793   shift
9794   for mf
9795   do
9796     # Strip MF so we end up with the name of the file.
9797     mf=`echo "$mf" | sed -e 's/:.*$//'`
9798     # Check whether this is an Automake generated Makefile or not.
9799     # We used to match only the files named 'Makefile.in', but
9800     # some people rename them; so instead we look at the file content.
9801     # Grep'ing the first line is not enough: some people post-process
9802     # each Makefile.in and add a new line on top of each file to say so.
9803     # Grep'ing the whole file is not good either: AIX grep has a line
9804     # limit of 2048, but all sed's we know have understand at least 4000.
9805     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9806       dirpart=`$as_dirname -- "$mf" ||
9807 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9808          X"$mf" : 'X\(//\)[^/]' \| \
9809          X"$mf" : 'X\(//\)$' \| \
9810          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
9811 $as_echo X"$mf" |
9812     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9813             s//\1/
9814             q
9815           }
9816           /^X\(\/\/\)[^/].*/{
9817             s//\1/
9818             q
9819           }
9820           /^X\(\/\/\)$/{
9821             s//\1/
9822             q
9823           }
9824           /^X\(\/\).*/{
9825             s//\1/
9826             q
9827           }
9828           s/.*/./; q'`
9829     else
9830       continue
9831     fi
9832     # Extract the definition of DEPDIR, am__include, and am__quote
9833     # from the Makefile without running 'make'.
9834     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9835     test -z "$DEPDIR" && continue
9836     am__include=`sed -n 's/^am__include = //p' < "$mf"`
9837     test -z "$am__include" && continue
9838     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9839     # Find all dependency output files, they are included files with
9840     # $(DEPDIR) in their names.  We invoke sed twice because it is the
9841     # simplest approach to changing $(DEPDIR) to its actual value in the
9842     # expansion.
9843     for file in `sed -n "
9844       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9845          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
9846       # Make sure the directory exists.
9847       test -f "$dirpart/$file" && continue
9848       fdir=`$as_dirname -- "$file" ||
9849 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9850          X"$file" : 'X\(//\)[^/]' \| \
9851          X"$file" : 'X\(//\)$' \| \
9852          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
9853 $as_echo X"$file" |
9854     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9855             s//\1/
9856             q
9857           }
9858           /^X\(\/\/\)[^/].*/{
9859             s//\1/
9860             q
9861           }
9862           /^X\(\/\/\)$/{
9863             s//\1/
9864             q
9865           }
9866           /^X\(\/\).*/{
9867             s//\1/
9868             q
9869           }
9870           s/.*/./; q'`
9871       as_dir=$dirpart/$fdir; as_fn_mkdir_p
9872       # echo "creating $dirpart/$file"
9873       echo '# dummy' > "$dirpart/$file"
9874     done
9875   done
9876 }
9877  ;;
9878     "po-directories":C)
9879     for ac_file in $CONFIG_FILES; do
9880       # Support "outfile[:infile[:infile...]]"
9881       case "$ac_file" in
9882         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9883       esac
9884       # PO directories have a Makefile.in generated from Makefile.in.in.
9885       case "$ac_file" in */Makefile.in)
9886         # Adjust a relative srcdir.
9887         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9888         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9889         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9890         # In autoconf-2.13 it is called $ac_given_srcdir.
9891         # In autoconf-2.50 it is called $srcdir.
9892         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9893         case "$ac_given_srcdir" in
9894           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9895           /*) top_srcdir="$ac_given_srcdir" ;;
9896           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
9897         esac
9898         # Treat a directory as a PO directory if and only if it has a
9899         # POTFILES.in file. This allows packages to have multiple PO
9900         # directories under different names or in different locations.
9901         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9902           rm -f "$ac_dir/POTFILES"
9903           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9904           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
9905           POMAKEFILEDEPS="POTFILES.in"
9906           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
9907           # on $ac_dir but don't depend on user-specified configuration
9908           # parameters.
9909           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
9910             # The LINGUAS file contains the set of available languages.
9911             if test -n "$OBSOLETE_ALL_LINGUAS"; then
9912               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
9913             fi
9914             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
9915             # Hide the ALL_LINGUAS assigment from automake < 1.5.
9916             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
9917             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
9918           else
9919             # The set of available languages was given in configure.in.
9920             # Hide the ALL_LINGUAS assigment from automake < 1.5.
9921             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
9922           fi
9923           # Compute POFILES
9924           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
9925           # Compute UPDATEPOFILES
9926           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
9927           # Compute DUMMYPOFILES
9928           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
9929           # Compute GMOFILES
9930           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
9931           case "$ac_given_srcdir" in
9932             .) srcdirpre= ;;
9933             *) srcdirpre='$(srcdir)/' ;;
9934           esac
9935           POFILES=
9936           UPDATEPOFILES=
9937           DUMMYPOFILES=
9938           GMOFILES=
9939           for lang in $ALL_LINGUAS; do
9940             POFILES="$POFILES $srcdirpre$lang.po"
9941             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
9942             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
9943             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
9944           done
9945           # CATALOGS depends on both $ac_dir and the user's LINGUAS
9946           # environment variable.
9947           INST_LINGUAS=
9948           if test -n "$ALL_LINGUAS"; then
9949             for presentlang in $ALL_LINGUAS; do
9950               useit=no
9951               if test "%UNSET%" != "$LINGUAS"; then
9952                 desiredlanguages="$LINGUAS"
9953               else
9954                 desiredlanguages="$ALL_LINGUAS"
9955               fi
9956               for desiredlang in $desiredlanguages; do
9957                 # Use the presentlang catalog if desiredlang is
9958                 #   a. equal to presentlang, or
9959                 #   b. a variant of presentlang (because in this case,
9960                 #      presentlang can be used as a fallback for messages
9961                 #      which are not translated in the desiredlang catalog).
9962                 case "$desiredlang" in
9963                   "$presentlang"*) useit=yes;;
9964                 esac
9965               done
9966               if test $useit = yes; then
9967                 INST_LINGUAS="$INST_LINGUAS $presentlang"
9968               fi
9969             done
9970           fi
9971           CATALOGS=
9972           if test -n "$INST_LINGUAS"; then
9973             for lang in $INST_LINGUAS; do
9974               CATALOGS="$CATALOGS $lang.gmo"
9975             done
9976           fi
9977           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9978           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"
9979           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
9980             if test -f "$f"; then
9981               case "$f" in
9982                 *.orig | *.bak | *~) ;;
9983                 *) cat "$f" >> "$ac_dir/Makefile" ;;
9984               esac
9985             fi
9986           done
9987         fi
9988         ;;
9989       esac
9990     done ;;
9991
9992   esac
9993 done # for ac_tag
9994
9995
9996 as_fn_exit 0
9997 _ACEOF
9998 ac_clean_files=$ac_clean_files_save
9999
10000 test $ac_write_fail = 0 ||
10001   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10002
10003
10004 # configure is writing to config.log, and then calls config.status.
10005 # config.status does its own redirection, appending to config.log.
10006 # Unfortunately, on DOS this fails, as config.log is still kept open
10007 # by configure, so config.status won't be able to write to it; its
10008 # output is simply discarded.  So we exec the FD to /dev/null,
10009 # effectively closing config.log, so it can be properly (re)opened and
10010 # appended to by config.status.  When coming back to configure, we
10011 # need to make the FD available again.
10012 if test "$no_create" != yes; then
10013   ac_cs_success=:
10014   ac_config_status_args=
10015   test "$silent" = yes &&
10016     ac_config_status_args="$ac_config_status_args --quiet"
10017   exec 5>/dev/null
10018   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10019   exec 5>>config.log
10020   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10021   # would make configure fail if this is the last instruction.
10022   $ac_cs_success || as_fn_exit 1
10023 fi
10024 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10025   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10026 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10027 fi
10028