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