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