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