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