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