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