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