1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for Lunar Lander 0.6.6.
4#
5# Report bugs to <Nick Gasson <nick@nickg.me.uk>>.
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 Nick Gasson
270$0: <nick@nickg.me.uk> about your system, including any
271$0: error possibly output before this message. Then install
272$0: a modern shell, or manually run the script under such a
273$0: 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='Lunar Lander'
582PACKAGE_TARNAME='lander'
583PACKAGE_VERSION='0.6.6'
584PACKAGE_STRING='Lunar Lander 0.6.6'
585PACKAGE_BUGREPORT='Nick Gasson <nick@nickg.me.uk>'
586PACKAGE_URL=''
587
588gt_needs=
589# Factoring default headers for most tests.
590ac_includes_default="\
591#include <stdio.h>
592#ifdef HAVE_SYS_TYPES_H
593# include <sys/types.h>
594#endif
595#ifdef HAVE_SYS_STAT_H
596# include <sys/stat.h>
597#endif
598#ifdef STDC_HEADERS
599# include <stdlib.h>
600# include <stddef.h>
601#else
602# ifdef HAVE_STDLIB_H
603#  include <stdlib.h>
604# endif
605#endif
606#ifdef HAVE_STRING_H
607# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608#  include <memory.h>
609# endif
610# include <string.h>
611#endif
612#ifdef HAVE_STRINGS_H
613# include <strings.h>
614#endif
615#ifdef HAVE_INTTYPES_H
616# include <inttypes.h>
617#endif
618#ifdef HAVE_STDINT_H
619# include <stdint.h>
620#endif
621#ifdef HAVE_UNISTD_H
622# include <unistd.h>
623#endif"
624
625ac_subst_vars='am__EXEEXT_FALSE
626am__EXEEXT_TRUE
627LTLIBOBJS
628LIBPNG_LIBS
629LIBPNG_CFLAGS
630FREETYPE_LIBS
631FREETYPE_CFLAGS
632SDL_LIBS
633SDL_CFLAGS
634SDL_CONFIG
635GLU_LDFLAGS
636GLU_LIBS
637GLU_CFLAGS
638GL_LDFLAGS
639X_EXTRA_LIBS
640X_LIBS
641X_PRE_LIBS
642X_CFLAGS
643GL_LIBS
644GL_CFLAGS
645PKG_CONFIG_LIBDIR
646PKG_CONFIG_PATH
647PKG_CONFIG
648XMKMF
649BOOST_SYSTEM_LIB
650BOOST_FILESYSTEM_LIB
651BOOST_LDFLAGS
652BOOST_CPPFLAGS
653LIBOBJS
654POSUB
655LTLIBINTL
656LIBINTL
657INTLLIBS
658LTLIBICONV
659LIBICONV
660INTL_MACOSX_LIBS
661EGREP
662GREP
663host_os
664host_vendor
665host_cpu
666host
667build_os
668build_vendor
669build_cpu
670build
671XGETTEXT_EXTRA_OPTIONS
672MSGMERGE
673XGETTEXT_015
674XGETTEXT
675GMSGFMT_015
676MSGFMT_015
677GMSGFMT
678MSGFMT
679GETTEXT_MACRO_VERSION
680USE_NLS
681SED
682CPP
683LN_S
684am__fastdepCXX_FALSE
685am__fastdepCXX_TRUE
686CXXDEPMODE
687ac_ct_CXX
688CXXFLAGS
689CXX
690am__fastdepCC_FALSE
691am__fastdepCC_TRUE
692CCDEPMODE
693am__nodep
694AMDEPBACKSLASH
695AMDEP_FALSE
696AMDEP_TRUE
697am__quote
698am__include
699DEPDIR
700OBJEXT
701EXEEXT
702ac_ct_CC
703CPPFLAGS
704LDFLAGS
705CFLAGS
706CC
707AM_BACKSLASH
708AM_DEFAULT_VERBOSITY
709AM_DEFAULT_V
710AM_V
711am__untar
712am__tar
713AMTAR
714am__leading_dot
715SET_MAKE
716AWK
717mkdir_p
718MKDIR_P
719INSTALL_STRIP_PROGRAM
720STRIP
721install_sh
722MAKEINFO
723AUTOHEADER
724AUTOMAKE
725AUTOCONF
726ACLOCAL
727VERSION
728PACKAGE
729CYGPATH_W
730am__isrc
731INSTALL_DATA
732INSTALL_SCRIPT
733INSTALL_PROGRAM
734target_alias
735host_alias
736build_alias
737LIBS
738ECHO_T
739ECHO_N
740ECHO_C
741DEFS
742mandir
743localedir
744libdir
745psdir
746pdfdir
747dvidir
748htmldir
749infodir
750docdir
751oldincludedir
752includedir
753localstatedir
754sharedstatedir
755sysconfdir
756datadir
757datarootdir
758libexecdir
759sbindir
760bindir
761program_transform_name
762prefix
763exec_prefix
764PACKAGE_URL
765PACKAGE_BUGREPORT
766PACKAGE_STRING
767PACKAGE_VERSION
768PACKAGE_TARNAME
769PACKAGE_NAME
770PATH_SEPARATOR
771SHELL'
772ac_subst_files=''
773ac_user_opts='
774enable_option_checking
775enable_silent_rules
776enable_dependency_tracking
777enable_nls
778with_gnu_ld
779enable_rpath
780with_libiconv_prefix
781with_libintl_prefix
782with_boost
783with_boost_libdir
784with_boost_filesystem
785with_boost_system
786with_x
787with_gl
788with_sdl_prefix
789with_sdl_exec_prefix
790enable_sdltest
791'
792      ac_precious_vars='build_alias
793host_alias
794target_alias
795CC
796CFLAGS
797LDFLAGS
798LIBS
799CPPFLAGS
800CXX
801CXXFLAGS
802CCC
803CPP
804XMKMF
805PKG_CONFIG
806PKG_CONFIG_PATH
807PKG_CONFIG_LIBDIR
808GL_CFLAGS
809GL_LIBS
810GLU_CFLAGS
811GLU_LIBS
812FREETYPE_CFLAGS
813FREETYPE_LIBS
814LIBPNG_CFLAGS
815LIBPNG_LIBS'
816
817
818# Initialize some variables set by options.
819ac_init_help=
820ac_init_version=false
821ac_unrecognized_opts=
822ac_unrecognized_sep=
823# The variables have the same names as the options, with
824# dashes changed to underlines.
825cache_file=/dev/null
826exec_prefix=NONE
827no_create=
828no_recursion=
829prefix=NONE
830program_prefix=NONE
831program_suffix=NONE
832program_transform_name=s,x,x,
833silent=
834site=
835srcdir=
836verbose=
837x_includes=NONE
838x_libraries=NONE
839
840# Installation directory options.
841# These are left unexpanded so users can "make install exec_prefix=/foo"
842# and all the variables that are supposed to be based on exec_prefix
843# by default will actually change.
844# Use braces instead of parens because sh, perl, etc. also accept them.
845# (The list follows the same order as the GNU Coding Standards.)
846bindir='${exec_prefix}/bin'
847sbindir='${exec_prefix}/sbin'
848libexecdir='${exec_prefix}/libexec'
849datarootdir='${prefix}/share'
850datadir='${datarootdir}'
851sysconfdir='${prefix}/etc'
852sharedstatedir='${prefix}/com'
853localstatedir='${prefix}/var'
854includedir='${prefix}/include'
855oldincludedir='/usr/include'
856docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
857infodir='${datarootdir}/info'
858htmldir='${docdir}'
859dvidir='${docdir}'
860pdfdir='${docdir}'
861psdir='${docdir}'
862libdir='${exec_prefix}/lib'
863localedir='${datarootdir}/locale'
864mandir='${datarootdir}/man'
865
866ac_prev=
867ac_dashdash=
868for ac_option
869do
870  # If the previous option needs an argument, assign it.
871  if test -n "$ac_prev"; then
872    eval $ac_prev=\$ac_option
873    ac_prev=
874    continue
875  fi
876
877  case $ac_option in
878  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
879  *=)   ac_optarg= ;;
880  *)    ac_optarg=yes ;;
881  esac
882
883  # Accept the important Cygnus configure options, so we can diagnose typos.
884
885  case $ac_dashdash$ac_option in
886  --)
887    ac_dashdash=yes ;;
888
889  -bindir | --bindir | --bindi | --bind | --bin | --bi)
890    ac_prev=bindir ;;
891  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
892    bindir=$ac_optarg ;;
893
894  -build | --build | --buil | --bui | --bu)
895    ac_prev=build_alias ;;
896  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
897    build_alias=$ac_optarg ;;
898
899  -cache-file | --cache-file | --cache-fil | --cache-fi \
900  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901    ac_prev=cache_file ;;
902  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
904    cache_file=$ac_optarg ;;
905
906  --config-cache | -C)
907    cache_file=config.cache ;;
908
909  -datadir | --datadir | --datadi | --datad)
910    ac_prev=datadir ;;
911  -datadir=* | --datadir=* | --datadi=* | --datad=*)
912    datadir=$ac_optarg ;;
913
914  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915  | --dataroo | --dataro | --datar)
916    ac_prev=datarootdir ;;
917  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919    datarootdir=$ac_optarg ;;
920
921  -disable-* | --disable-*)
922    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
923    # Reject names that are not valid shell variable names.
924    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925      as_fn_error $? "invalid feature name: $ac_useropt"
926    ac_useropt_orig=$ac_useropt
927    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928    case $ac_user_opts in
929      *"
930"enable_$ac_useropt"
931"*) ;;
932      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
933	 ac_unrecognized_sep=', ';;
934    esac
935    eval enable_$ac_useropt=no ;;
936
937  -docdir | --docdir | --docdi | --doc | --do)
938    ac_prev=docdir ;;
939  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
940    docdir=$ac_optarg ;;
941
942  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
943    ac_prev=dvidir ;;
944  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
945    dvidir=$ac_optarg ;;
946
947  -enable-* | --enable-*)
948    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
949    # Reject names that are not valid shell variable names.
950    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
951      as_fn_error $? "invalid feature name: $ac_useropt"
952    ac_useropt_orig=$ac_useropt
953    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954    case $ac_user_opts in
955      *"
956"enable_$ac_useropt"
957"*) ;;
958      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
959	 ac_unrecognized_sep=', ';;
960    esac
961    eval enable_$ac_useropt=\$ac_optarg ;;
962
963  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
964  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
965  | --exec | --exe | --ex)
966    ac_prev=exec_prefix ;;
967  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
968  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
969  | --exec=* | --exe=* | --ex=*)
970    exec_prefix=$ac_optarg ;;
971
972  -gas | --gas | --ga | --g)
973    # Obsolete; use --with-gas.
974    with_gas=yes ;;
975
976  -help | --help | --hel | --he | -h)
977    ac_init_help=long ;;
978  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
979    ac_init_help=recursive ;;
980  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
981    ac_init_help=short ;;
982
983  -host | --host | --hos | --ho)
984    ac_prev=host_alias ;;
985  -host=* | --host=* | --hos=* | --ho=*)
986    host_alias=$ac_optarg ;;
987
988  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
989    ac_prev=htmldir ;;
990  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
991  | --ht=*)
992    htmldir=$ac_optarg ;;
993
994  -includedir | --includedir | --includedi | --included | --include \
995  | --includ | --inclu | --incl | --inc)
996    ac_prev=includedir ;;
997  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
998  | --includ=* | --inclu=* | --incl=* | --inc=*)
999    includedir=$ac_optarg ;;
1000
1001  -infodir | --infodir | --infodi | --infod | --info | --inf)
1002    ac_prev=infodir ;;
1003  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1004    infodir=$ac_optarg ;;
1005
1006  -libdir | --libdir | --libdi | --libd)
1007    ac_prev=libdir ;;
1008  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1009    libdir=$ac_optarg ;;
1010
1011  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1012  | --libexe | --libex | --libe)
1013    ac_prev=libexecdir ;;
1014  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1015  | --libexe=* | --libex=* | --libe=*)
1016    libexecdir=$ac_optarg ;;
1017
1018  -localedir | --localedir | --localedi | --localed | --locale)
1019    ac_prev=localedir ;;
1020  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1021    localedir=$ac_optarg ;;
1022
1023  -localstatedir | --localstatedir | --localstatedi | --localstated \
1024  | --localstate | --localstat | --localsta | --localst | --locals)
1025    ac_prev=localstatedir ;;
1026  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1027  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1028    localstatedir=$ac_optarg ;;
1029
1030  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1031    ac_prev=mandir ;;
1032  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1033    mandir=$ac_optarg ;;
1034
1035  -nfp | --nfp | --nf)
1036    # Obsolete; use --without-fp.
1037    with_fp=no ;;
1038
1039  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1040  | --no-cr | --no-c | -n)
1041    no_create=yes ;;
1042
1043  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1044  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1045    no_recursion=yes ;;
1046
1047  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1048  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1049  | --oldin | --oldi | --old | --ol | --o)
1050    ac_prev=oldincludedir ;;
1051  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1052  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1053  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1054    oldincludedir=$ac_optarg ;;
1055
1056  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1057    ac_prev=prefix ;;
1058  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1059    prefix=$ac_optarg ;;
1060
1061  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1062  | --program-pre | --program-pr | --program-p)
1063    ac_prev=program_prefix ;;
1064  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1065  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1066    program_prefix=$ac_optarg ;;
1067
1068  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1069  | --program-suf | --program-su | --program-s)
1070    ac_prev=program_suffix ;;
1071  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1072  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1073    program_suffix=$ac_optarg ;;
1074
1075  -program-transform-name | --program-transform-name \
1076  | --program-transform-nam | --program-transform-na \
1077  | --program-transform-n | --program-transform- \
1078  | --program-transform | --program-transfor \
1079  | --program-transfo | --program-transf \
1080  | --program-trans | --program-tran \
1081  | --progr-tra | --program-tr | --program-t)
1082    ac_prev=program_transform_name ;;
1083  -program-transform-name=* | --program-transform-name=* \
1084  | --program-transform-nam=* | --program-transform-na=* \
1085  | --program-transform-n=* | --program-transform-=* \
1086  | --program-transform=* | --program-transfor=* \
1087  | --program-transfo=* | --program-transf=* \
1088  | --program-trans=* | --program-tran=* \
1089  | --progr-tra=* | --program-tr=* | --program-t=*)
1090    program_transform_name=$ac_optarg ;;
1091
1092  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1093    ac_prev=pdfdir ;;
1094  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1095    pdfdir=$ac_optarg ;;
1096
1097  -psdir | --psdir | --psdi | --psd | --ps)
1098    ac_prev=psdir ;;
1099  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1100    psdir=$ac_optarg ;;
1101
1102  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1103  | -silent | --silent | --silen | --sile | --sil)
1104    silent=yes ;;
1105
1106  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1107    ac_prev=sbindir ;;
1108  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1109  | --sbi=* | --sb=*)
1110    sbindir=$ac_optarg ;;
1111
1112  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1113  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1114  | --sharedst | --shareds | --shared | --share | --shar \
1115  | --sha | --sh)
1116    ac_prev=sharedstatedir ;;
1117  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1118  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1119  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1120  | --sha=* | --sh=*)
1121    sharedstatedir=$ac_optarg ;;
1122
1123  -site | --site | --sit)
1124    ac_prev=site ;;
1125  -site=* | --site=* | --sit=*)
1126    site=$ac_optarg ;;
1127
1128  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1129    ac_prev=srcdir ;;
1130  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1131    srcdir=$ac_optarg ;;
1132
1133  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1134  | --syscon | --sysco | --sysc | --sys | --sy)
1135    ac_prev=sysconfdir ;;
1136  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1137  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1138    sysconfdir=$ac_optarg ;;
1139
1140  -target | --target | --targe | --targ | --tar | --ta | --t)
1141    ac_prev=target_alias ;;
1142  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1143    target_alias=$ac_optarg ;;
1144
1145  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1146    verbose=yes ;;
1147
1148  -version | --version | --versio | --versi | --vers | -V)
1149    ac_init_version=: ;;
1150
1151  -with-* | --with-*)
1152    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1153    # Reject names that are not valid shell variable names.
1154    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155      as_fn_error $? "invalid package name: $ac_useropt"
1156    ac_useropt_orig=$ac_useropt
1157    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158    case $ac_user_opts in
1159      *"
1160"with_$ac_useropt"
1161"*) ;;
1162      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1163	 ac_unrecognized_sep=', ';;
1164    esac
1165    eval with_$ac_useropt=\$ac_optarg ;;
1166
1167  -without-* | --without-*)
1168    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1169    # Reject names that are not valid shell variable names.
1170    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171      as_fn_error $? "invalid package name: $ac_useropt"
1172    ac_useropt_orig=$ac_useropt
1173    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174    case $ac_user_opts in
1175      *"
1176"with_$ac_useropt"
1177"*) ;;
1178      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1179	 ac_unrecognized_sep=', ';;
1180    esac
1181    eval with_$ac_useropt=no ;;
1182
1183  --x)
1184    # Obsolete; use --with-x.
1185    with_x=yes ;;
1186
1187  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1188  | --x-incl | --x-inc | --x-in | --x-i)
1189    ac_prev=x_includes ;;
1190  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1191  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1192    x_includes=$ac_optarg ;;
1193
1194  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1195  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1196    ac_prev=x_libraries ;;
1197  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1198  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1199    x_libraries=$ac_optarg ;;
1200
1201  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1202Try \`$0 --help' for more information"
1203    ;;
1204
1205  *=*)
1206    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1207    # Reject names that are not valid shell variable names.
1208    case $ac_envvar in #(
1209      '' | [0-9]* | *[!_$as_cr_alnum]* )
1210      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1211    esac
1212    eval $ac_envvar=\$ac_optarg
1213    export $ac_envvar ;;
1214
1215  *)
1216    # FIXME: should be removed in autoconf 3.0.
1217    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1218    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1219      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1220    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1221    ;;
1222
1223  esac
1224done
1225
1226if test -n "$ac_prev"; then
1227  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1228  as_fn_error $? "missing argument to $ac_option"
1229fi
1230
1231if test -n "$ac_unrecognized_opts"; then
1232  case $enable_option_checking in
1233    no) ;;
1234    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1235    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1236  esac
1237fi
1238
1239# Check all directory arguments for consistency.
1240for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1241		datadir sysconfdir sharedstatedir localstatedir includedir \
1242		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1243		libdir localedir mandir
1244do
1245  eval ac_val=\$$ac_var
1246  # Remove trailing slashes.
1247  case $ac_val in
1248    */ )
1249      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1250      eval $ac_var=\$ac_val;;
1251  esac
1252  # Be sure to have absolute directory names.
1253  case $ac_val in
1254    [\\/$]* | ?:[\\/]* )  continue;;
1255    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1256  esac
1257  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1258done
1259
1260# There might be people who depend on the old broken behavior: `$host'
1261# used to hold the argument of --host etc.
1262# FIXME: To remove some day.
1263build=$build_alias
1264host=$host_alias
1265target=$target_alias
1266
1267# FIXME: To remove some day.
1268if test "x$host_alias" != x; then
1269  if test "x$build_alias" = x; then
1270    cross_compiling=maybe
1271  elif test "x$build_alias" != "x$host_alias"; then
1272    cross_compiling=yes
1273  fi
1274fi
1275
1276ac_tool_prefix=
1277test -n "$host_alias" && ac_tool_prefix=$host_alias-
1278
1279test "$silent" = yes && exec 6>/dev/null
1280
1281
1282ac_pwd=`pwd` && test -n "$ac_pwd" &&
1283ac_ls_di=`ls -di .` &&
1284ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1285  as_fn_error $? "working directory cannot be determined"
1286test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1287  as_fn_error $? "pwd does not report name of working directory"
1288
1289
1290# Find the source files, if location was not specified.
1291if test -z "$srcdir"; then
1292  ac_srcdir_defaulted=yes
1293  # Try the directory containing this script, then the parent directory.
1294  ac_confdir=`$as_dirname -- "$as_myself" ||
1295$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1296	 X"$as_myself" : 'X\(//\)[^/]' \| \
1297	 X"$as_myself" : 'X\(//\)$' \| \
1298	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1299$as_echo X"$as_myself" |
1300    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1301	    s//\1/
1302	    q
1303	  }
1304	  /^X\(\/\/\)[^/].*/{
1305	    s//\1/
1306	    q
1307	  }
1308	  /^X\(\/\/\)$/{
1309	    s//\1/
1310	    q
1311	  }
1312	  /^X\(\/\).*/{
1313	    s//\1/
1314	    q
1315	  }
1316	  s/.*/./; q'`
1317  srcdir=$ac_confdir
1318  if test ! -r "$srcdir/$ac_unique_file"; then
1319    srcdir=..
1320  fi
1321else
1322  ac_srcdir_defaulted=no
1323fi
1324if test ! -r "$srcdir/$ac_unique_file"; then
1325  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1326  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1327fi
1328ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1329ac_abs_confdir=`(
1330	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1331	pwd)`
1332# When building in place, set srcdir=.
1333if test "$ac_abs_confdir" = "$ac_pwd"; then
1334  srcdir=.
1335fi
1336# Remove unnecessary trailing slashes from srcdir.
1337# Double slashes in file names in object file debugging info
1338# mess up M-x gdb in Emacs.
1339case $srcdir in
1340*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1341esac
1342for ac_var in $ac_precious_vars; do
1343  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1344  eval ac_env_${ac_var}_value=\$${ac_var}
1345  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1346  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1347done
1348
1349#
1350# Report the --help message.
1351#
1352if test "$ac_init_help" = "long"; then
1353  # Omit some internal or obsolete options to make the list less imposing.
1354  # This message is too long to be a string in the A/UX 3.1 sh.
1355  cat <<_ACEOF
1356\`configure' configures Lunar Lander 0.6.6 to adapt to many kinds of systems.
1357
1358Usage: $0 [OPTION]... [VAR=VALUE]...
1359
1360To assign environment variables (e.g., CC, CFLAGS...), specify them as
1361VAR=VALUE.  See below for descriptions of some of the useful variables.
1362
1363Defaults for the options are specified in brackets.
1364
1365Configuration:
1366  -h, --help              display this help and exit
1367      --help=short        display options specific to this package
1368      --help=recursive    display the short help of all the included packages
1369  -V, --version           display version information and exit
1370  -q, --quiet, --silent   do not print \`checking ...' messages
1371      --cache-file=FILE   cache test results in FILE [disabled]
1372  -C, --config-cache      alias for \`--cache-file=config.cache'
1373  -n, --no-create         do not create output files
1374      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1375
1376Installation directories:
1377  --prefix=PREFIX         install architecture-independent files in PREFIX
1378                          [$ac_default_prefix]
1379  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1380                          [PREFIX]
1381
1382By default, \`make install' will install all the files in
1383\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1384an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1385for instance \`--prefix=\$HOME'.
1386
1387For better control, use the options below.
1388
1389Fine tuning of the installation directories:
1390  --bindir=DIR            user executables [EPREFIX/bin]
1391  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1392  --libexecdir=DIR        program executables [EPREFIX/libexec]
1393  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1394  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1395  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1396  --libdir=DIR            object code libraries [EPREFIX/lib]
1397  --includedir=DIR        C header files [PREFIX/include]
1398  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1399  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1400  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1401  --infodir=DIR           info documentation [DATAROOTDIR/info]
1402  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1403  --mandir=DIR            man documentation [DATAROOTDIR/man]
1404  --docdir=DIR            documentation root [DATAROOTDIR/doc/lander]
1405  --htmldir=DIR           html documentation [DOCDIR]
1406  --dvidir=DIR            dvi documentation [DOCDIR]
1407  --pdfdir=DIR            pdf documentation [DOCDIR]
1408  --psdir=DIR             ps documentation [DOCDIR]
1409_ACEOF
1410
1411  cat <<\_ACEOF
1412
1413Program names:
1414  --program-prefix=PREFIX            prepend PREFIX to installed program names
1415  --program-suffix=SUFFIX            append SUFFIX to installed program names
1416  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1417
1418X features:
1419  --x-includes=DIR    X include files are in DIR
1420  --x-libraries=DIR   X library files are in DIR
1421
1422System types:
1423  --build=BUILD     configure for building on BUILD [guessed]
1424  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1425_ACEOF
1426fi
1427
1428if test -n "$ac_init_help"; then
1429  case $ac_init_help in
1430     short | recursive ) echo "Configuration of Lunar Lander 0.6.6:";;
1431   esac
1432  cat <<\_ACEOF
1433
1434Optional Features:
1435  --disable-option-checking  ignore unrecognized --enable/--with options
1436  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1437  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1438  --enable-silent-rules   less verbose build output (undo: "make V=1")
1439  --disable-silent-rules  verbose build output (undo: "make V=0")
1440  --enable-dependency-tracking
1441                          do not reject slow dependency extractors
1442  --disable-dependency-tracking
1443                          speeds up one-time build
1444  --disable-nls           do not use Native Language Support
1445  --disable-rpath         do not hardcode runtime library paths
1446  --disable-sdltest       Do not try to compile and run a test SDL program
1447
1448Optional Packages:
1449  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1450  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1451  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1452  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1453  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1454  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1455  --without-libintl-prefix     don't search for libintl in includedir and libdir
1456  --with-boost[=ARG]      use Boost library from a standard location
1457                          (ARG=yes), from the specified location (ARG=<path>),
1458                          or disable it (ARG=no) [ARG=yes]
1459  --with-boost-libdir=LIB_DIR
1460                          Force given directory for boost libraries. Note that
1461                          this will override library path detection, so use
1462                          this parameter only if default library detection
1463                          fails and you know exactly where your boost
1464                          libraries are located.
1465  --with-boost-filesystem[=special-lib]
1466                          use the Filesystem library from boost - it is
1467                          possible to specify a certain library for the linker
1468                          e.g. --with-boost-filesystem=boost_filesystem-gcc-mt
1469  --with-boost-system[=special-lib]
1470                          use the System library from boost - it is possible
1471                          to specify a certain library for the linker e.g.
1472                          --with-boost-system=boost_system-gcc-mt
1473  --with-x                use the X Window System
1474  --with-gl[=ARG]         use opengl (ARG=yes), using the specific lib
1475                          (ARG=<lib>), using the OpenGL lib that link with X
1476                          (ARG=x), using the OpenGL lib that link without X
1477                          (ARG=nox), or disable it (ARG=no) [ARG=yes]
1478  --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1479  --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1480
1481Some influential environment variables:
1482  CC          C compiler command
1483  CFLAGS      C compiler flags
1484  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1485              nonstandard directory <lib dir>
1486  LIBS        libraries to pass to the linker, e.g. -l<library>
1487  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1488              you have headers in a nonstandard directory <include dir>
1489  CXX         C++ compiler command
1490  CXXFLAGS    C++ compiler flags
1491  CPP         C preprocessor
1492  XMKMF       Path to xmkmf, Makefile generator for X Window System
1493  PKG_CONFIG  path to pkg-config utility
1494  PKG_CONFIG_PATH
1495              directories to add to pkg-config's search path
1496  PKG_CONFIG_LIBDIR
1497              path overriding pkg-config's built-in search path
1498  GL_CFLAGS   C compiler flags for GL, overriding pkg-config
1499  GL_LIBS     linker flags for GL, overriding pkg-config
1500  GLU_CFLAGS  C compiler flags for GLU, overriding pkg-config
1501  GLU_LIBS    linker flags for GLU, overriding pkg-config
1502  FREETYPE_CFLAGS
1503              C compiler flags for FREETYPE, overriding pkg-config
1504  FREETYPE_LIBS
1505              linker flags for FREETYPE, overriding pkg-config
1506  LIBPNG_CFLAGS
1507              C compiler flags for LIBPNG, overriding pkg-config
1508  LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1509
1510Use these variables to override the choices made by `configure' or to help
1511it to find libraries and programs with nonstandard names/locations.
1512
1513Report bugs to <Nick Gasson <nick@nickg.me.uk>>.
1514_ACEOF
1515ac_status=$?
1516fi
1517
1518if test "$ac_init_help" = "recursive"; then
1519  # If there are subdirs, report their specific --help.
1520  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1521    test -d "$ac_dir" ||
1522      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1523      continue
1524    ac_builddir=.
1525
1526case "$ac_dir" in
1527.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528*)
1529  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1530  # A ".." for each directory in $ac_dir_suffix.
1531  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1532  case $ac_top_builddir_sub in
1533  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1535  esac ;;
1536esac
1537ac_abs_top_builddir=$ac_pwd
1538ac_abs_builddir=$ac_pwd$ac_dir_suffix
1539# for backward compatibility:
1540ac_top_builddir=$ac_top_build_prefix
1541
1542case $srcdir in
1543  .)  # We are building in place.
1544    ac_srcdir=.
1545    ac_top_srcdir=$ac_top_builddir_sub
1546    ac_abs_top_srcdir=$ac_pwd ;;
1547  [\\/]* | ?:[\\/]* )  # Absolute name.
1548    ac_srcdir=$srcdir$ac_dir_suffix;
1549    ac_top_srcdir=$srcdir
1550    ac_abs_top_srcdir=$srcdir ;;
1551  *) # Relative name.
1552    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1553    ac_top_srcdir=$ac_top_build_prefix$srcdir
1554    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1555esac
1556ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1557
1558    cd "$ac_dir" || { ac_status=$?; continue; }
1559    # Check for guested configure.
1560    if test -f "$ac_srcdir/configure.gnu"; then
1561      echo &&
1562      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1563    elif test -f "$ac_srcdir/configure"; then
1564      echo &&
1565      $SHELL "$ac_srcdir/configure" --help=recursive
1566    else
1567      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1568    fi || ac_status=$?
1569    cd "$ac_pwd" || { ac_status=$?; break; }
1570  done
1571fi
1572
1573test -n "$ac_init_help" && exit $ac_status
1574if $ac_init_version; then
1575  cat <<\_ACEOF
1576Lunar Lander configure 0.6.6
1577generated by GNU Autoconf 2.69
1578
1579Copyright (C) 2012 Free Software Foundation, Inc.
1580This configure script is free software; the Free Software Foundation
1581gives unlimited permission to copy, distribute and modify it.
1582_ACEOF
1583  exit
1584fi
1585
1586## ------------------------ ##
1587## Autoconf initialization. ##
1588## ------------------------ ##
1589
1590# ac_fn_c_try_compile LINENO
1591# --------------------------
1592# Try to compile conftest.$ac_ext, and return whether this succeeded.
1593ac_fn_c_try_compile ()
1594{
1595  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596  rm -f conftest.$ac_objext
1597  if { { ac_try="$ac_compile"
1598case "(($ac_try" in
1599  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600  *) ac_try_echo=$ac_try;;
1601esac
1602eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603$as_echo "$ac_try_echo"; } >&5
1604  (eval "$ac_compile") 2>conftest.err
1605  ac_status=$?
1606  if test -s conftest.err; then
1607    grep -v '^ *+' conftest.err >conftest.er1
1608    cat conftest.er1 >&5
1609    mv -f conftest.er1 conftest.err
1610  fi
1611  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612  test $ac_status = 0; } && {
1613	 test -z "$ac_c_werror_flag" ||
1614	 test ! -s conftest.err
1615       } && test -s conftest.$ac_objext; then :
1616  ac_retval=0
1617else
1618  $as_echo "$as_me: failed program was:" >&5
1619sed 's/^/| /' conftest.$ac_ext >&5
1620
1621	ac_retval=1
1622fi
1623  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624  as_fn_set_status $ac_retval
1625
1626} # ac_fn_c_try_compile
1627
1628# ac_fn_cxx_try_compile LINENO
1629# ----------------------------
1630# Try to compile conftest.$ac_ext, and return whether this succeeded.
1631ac_fn_cxx_try_compile ()
1632{
1633  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634  rm -f conftest.$ac_objext
1635  if { { ac_try="$ac_compile"
1636case "(($ac_try" in
1637  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1638  *) ac_try_echo=$ac_try;;
1639esac
1640eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641$as_echo "$ac_try_echo"; } >&5
1642  (eval "$ac_compile") 2>conftest.err
1643  ac_status=$?
1644  if test -s conftest.err; then
1645    grep -v '^ *+' conftest.err >conftest.er1
1646    cat conftest.er1 >&5
1647    mv -f conftest.er1 conftest.err
1648  fi
1649  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650  test $ac_status = 0; } && {
1651	 test -z "$ac_cxx_werror_flag" ||
1652	 test ! -s conftest.err
1653       } && test -s conftest.$ac_objext; then :
1654  ac_retval=0
1655else
1656  $as_echo "$as_me: failed program was:" >&5
1657sed 's/^/| /' conftest.$ac_ext >&5
1658
1659	ac_retval=1
1660fi
1661  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1662  as_fn_set_status $ac_retval
1663
1664} # ac_fn_cxx_try_compile
1665
1666# ac_fn_c_try_cpp LINENO
1667# ----------------------
1668# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1669ac_fn_c_try_cpp ()
1670{
1671  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672  if { { ac_try="$ac_cpp conftest.$ac_ext"
1673case "(($ac_try" in
1674  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1675  *) ac_try_echo=$ac_try;;
1676esac
1677eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1678$as_echo "$ac_try_echo"; } >&5
1679  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1680  ac_status=$?
1681  if test -s conftest.err; then
1682    grep -v '^ *+' conftest.err >conftest.er1
1683    cat conftest.er1 >&5
1684    mv -f conftest.er1 conftest.err
1685  fi
1686  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687  test $ac_status = 0; } > conftest.i && {
1688	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1689	 test ! -s conftest.err
1690       }; then :
1691  ac_retval=0
1692else
1693  $as_echo "$as_me: failed program was:" >&5
1694sed 's/^/| /' conftest.$ac_ext >&5
1695
1696    ac_retval=1
1697fi
1698  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1699  as_fn_set_status $ac_retval
1700
1701} # ac_fn_c_try_cpp
1702
1703# ac_fn_c_try_link LINENO
1704# -----------------------
1705# Try to link conftest.$ac_ext, and return whether this succeeded.
1706ac_fn_c_try_link ()
1707{
1708  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709  rm -f conftest.$ac_objext conftest$ac_exeext
1710  if { { ac_try="$ac_link"
1711case "(($ac_try" in
1712  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713  *) ac_try_echo=$ac_try;;
1714esac
1715eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716$as_echo "$ac_try_echo"; } >&5
1717  (eval "$ac_link") 2>conftest.err
1718  ac_status=$?
1719  if test -s conftest.err; then
1720    grep -v '^ *+' conftest.err >conftest.er1
1721    cat conftest.er1 >&5
1722    mv -f conftest.er1 conftest.err
1723  fi
1724  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725  test $ac_status = 0; } && {
1726	 test -z "$ac_c_werror_flag" ||
1727	 test ! -s conftest.err
1728       } && test -s conftest$ac_exeext && {
1729	 test "$cross_compiling" = yes ||
1730	 test -x conftest$ac_exeext
1731       }; then :
1732  ac_retval=0
1733else
1734  $as_echo "$as_me: failed program was:" >&5
1735sed 's/^/| /' conftest.$ac_ext >&5
1736
1737	ac_retval=1
1738fi
1739  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1740  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1741  # interfere with the next link command; also delete a directory that is
1742  # left behind by Apple's compiler.  We do this before executing the actions.
1743  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1744  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745  as_fn_set_status $ac_retval
1746
1747} # ac_fn_c_try_link
1748
1749# ac_fn_c_try_run LINENO
1750# ----------------------
1751# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1752# that executables *can* be run.
1753ac_fn_c_try_run ()
1754{
1755  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756  if { { ac_try="$ac_link"
1757case "(($ac_try" in
1758  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1759  *) ac_try_echo=$ac_try;;
1760esac
1761eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1762$as_echo "$ac_try_echo"; } >&5
1763  (eval "$ac_link") 2>&5
1764  ac_status=$?
1765  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1766  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1767  { { case "(($ac_try" in
1768  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1769  *) ac_try_echo=$ac_try;;
1770esac
1771eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1772$as_echo "$ac_try_echo"; } >&5
1773  (eval "$ac_try") 2>&5
1774  ac_status=$?
1775  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776  test $ac_status = 0; }; }; then :
1777  ac_retval=0
1778else
1779  $as_echo "$as_me: program exited with status $ac_status" >&5
1780       $as_echo "$as_me: failed program was:" >&5
1781sed 's/^/| /' conftest.$ac_ext >&5
1782
1783       ac_retval=$ac_status
1784fi
1785  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1786  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1787  as_fn_set_status $ac_retval
1788
1789} # ac_fn_c_try_run
1790
1791# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1792# -------------------------------------------------------
1793# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1794# the include files in INCLUDES and setting the cache variable VAR
1795# accordingly.
1796ac_fn_c_check_header_mongrel ()
1797{
1798  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799  if eval \${$3+:} false; then :
1800  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1801$as_echo_n "checking for $2... " >&6; }
1802if eval \${$3+:} false; then :
1803  $as_echo_n "(cached) " >&6
1804fi
1805eval ac_res=\$$3
1806	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1807$as_echo "$ac_res" >&6; }
1808else
1809  # Is the header compilable?
1810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1811$as_echo_n "checking $2 usability... " >&6; }
1812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813/* end confdefs.h.  */
1814$4
1815#include <$2>
1816_ACEOF
1817if ac_fn_c_try_compile "$LINENO"; then :
1818  ac_header_compiler=yes
1819else
1820  ac_header_compiler=no
1821fi
1822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1824$as_echo "$ac_header_compiler" >&6; }
1825
1826# Is the header present?
1827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1828$as_echo_n "checking $2 presence... " >&6; }
1829cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1830/* end confdefs.h.  */
1831#include <$2>
1832_ACEOF
1833if ac_fn_c_try_cpp "$LINENO"; then :
1834  ac_header_preproc=yes
1835else
1836  ac_header_preproc=no
1837fi
1838rm -f conftest.err conftest.i conftest.$ac_ext
1839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1840$as_echo "$ac_header_preproc" >&6; }
1841
1842# So?  What about this header?
1843case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1844  yes:no: )
1845    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1846$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1847    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1848$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1849    ;;
1850  no:yes:* )
1851    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1852$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1853    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1854$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1855    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1856$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1857    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1858$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1859    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1860$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1861( $as_echo "## --------------------------------------------- ##
1862## Report this to Nick Gasson <nick@nickg.me.uk> ##
1863## --------------------------------------------- ##"
1864     ) | sed "s/^/$as_me: WARNING:     /" >&2
1865    ;;
1866esac
1867  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1868$as_echo_n "checking for $2... " >&6; }
1869if eval \${$3+:} false; then :
1870  $as_echo_n "(cached) " >&6
1871else
1872  eval "$3=\$ac_header_compiler"
1873fi
1874eval ac_res=\$$3
1875	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876$as_echo "$ac_res" >&6; }
1877fi
1878  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879
1880} # ac_fn_c_check_header_mongrel
1881
1882# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1883# -------------------------------------------------------
1884# Tests whether HEADER exists and can be compiled using the include files in
1885# INCLUDES, setting the cache variable VAR accordingly.
1886ac_fn_c_check_header_compile ()
1887{
1888  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1890$as_echo_n "checking for $2... " >&6; }
1891if eval \${$3+:} false; then :
1892  $as_echo_n "(cached) " >&6
1893else
1894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1895/* end confdefs.h.  */
1896$4
1897#include <$2>
1898_ACEOF
1899if ac_fn_c_try_compile "$LINENO"; then :
1900  eval "$3=yes"
1901else
1902  eval "$3=no"
1903fi
1904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1905fi
1906eval ac_res=\$$3
1907	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1908$as_echo "$ac_res" >&6; }
1909  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1910
1911} # ac_fn_c_check_header_compile
1912
1913# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1914# -------------------------------------------
1915# Tests whether TYPE exists after having included INCLUDES, setting cache
1916# variable VAR accordingly.
1917ac_fn_c_check_type ()
1918{
1919  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1921$as_echo_n "checking for $2... " >&6; }
1922if eval \${$3+:} false; then :
1923  $as_echo_n "(cached) " >&6
1924else
1925  eval "$3=no"
1926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927/* end confdefs.h.  */
1928$4
1929int
1930main ()
1931{
1932if (sizeof ($2))
1933	 return 0;
1934  ;
1935  return 0;
1936}
1937_ACEOF
1938if ac_fn_c_try_compile "$LINENO"; then :
1939  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940/* end confdefs.h.  */
1941$4
1942int
1943main ()
1944{
1945if (sizeof (($2)))
1946	    return 0;
1947  ;
1948  return 0;
1949}
1950_ACEOF
1951if ac_fn_c_try_compile "$LINENO"; then :
1952
1953else
1954  eval "$3=yes"
1955fi
1956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1957fi
1958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1959fi
1960eval ac_res=\$$3
1961	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1962$as_echo "$ac_res" >&6; }
1963  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1964
1965} # ac_fn_c_check_type
1966
1967# ac_fn_c_find_uintX_t LINENO BITS VAR
1968# ------------------------------------
1969# Finds an unsigned integer type with width BITS, setting cache variable VAR
1970# accordingly.
1971ac_fn_c_find_uintX_t ()
1972{
1973  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1975$as_echo_n "checking for uint$2_t... " >&6; }
1976if eval \${$3+:} false; then :
1977  $as_echo_n "(cached) " >&6
1978else
1979  eval "$3=no"
1980     # Order is important - never check a type that is potentially smaller
1981     # than half of the expected target width.
1982     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1983	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1984       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985/* end confdefs.h.  */
1986$ac_includes_default
1987int
1988main ()
1989{
1990static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1991test_array [0] = 0;
1992return test_array [0];
1993
1994  ;
1995  return 0;
1996}
1997_ACEOF
1998if ac_fn_c_try_compile "$LINENO"; then :
1999  case $ac_type in #(
2000  uint$2_t) :
2001    eval "$3=yes" ;; #(
2002  *) :
2003    eval "$3=\$ac_type" ;;
2004esac
2005fi
2006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2007       if eval test \"x\$"$3"\" = x"no"; then :
2008
2009else
2010  break
2011fi
2012     done
2013fi
2014eval ac_res=\$$3
2015	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2016$as_echo "$ac_res" >&6; }
2017  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2018
2019} # ac_fn_c_find_uintX_t
2020
2021# ac_fn_c_check_func LINENO FUNC VAR
2022# ----------------------------------
2023# Tests whether FUNC exists, setting the cache variable VAR accordingly
2024ac_fn_c_check_func ()
2025{
2026  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2027  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2028$as_echo_n "checking for $2... " >&6; }
2029if eval \${$3+:} false; then :
2030  $as_echo_n "(cached) " >&6
2031else
2032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033/* end confdefs.h.  */
2034/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2035   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2036#define $2 innocuous_$2
2037
2038/* System header to define __stub macros and hopefully few prototypes,
2039    which can conflict with char $2 (); below.
2040    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2041    <limits.h> exists even on freestanding compilers.  */
2042
2043#ifdef __STDC__
2044# include <limits.h>
2045#else
2046# include <assert.h>
2047#endif
2048
2049#undef $2
2050
2051/* Override any GCC internal prototype to avoid an error.
2052   Use char because int might match the return type of a GCC
2053   builtin and then its argument prototype would still apply.  */
2054#ifdef __cplusplus
2055extern "C"
2056#endif
2057char $2 ();
2058/* The GNU C library defines this for functions which it implements
2059    to always fail with ENOSYS.  Some functions are actually named
2060    something starting with __ and the normal name is an alias.  */
2061#if defined __stub_$2 || defined __stub___$2
2062choke me
2063#endif
2064
2065int
2066main ()
2067{
2068return $2 ();
2069  ;
2070  return 0;
2071}
2072_ACEOF
2073if ac_fn_c_try_link "$LINENO"; then :
2074  eval "$3=yes"
2075else
2076  eval "$3=no"
2077fi
2078rm -f core conftest.err conftest.$ac_objext \
2079    conftest$ac_exeext conftest.$ac_ext
2080fi
2081eval ac_res=\$$3
2082	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2083$as_echo "$ac_res" >&6; }
2084  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2085
2086} # ac_fn_c_check_func
2087cat >config.log <<_ACEOF
2088This file contains any messages produced by compilers while
2089running configure, to aid debugging if configure makes a mistake.
2090
2091It was created by Lunar Lander $as_me 0.6.6, which was
2092generated by GNU Autoconf 2.69.  Invocation command line was
2093
2094  $ $0 $@
2095
2096_ACEOF
2097exec 5>>config.log
2098{
2099cat <<_ASUNAME
2100## --------- ##
2101## Platform. ##
2102## --------- ##
2103
2104hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2105uname -m = `(uname -m) 2>/dev/null || echo unknown`
2106uname -r = `(uname -r) 2>/dev/null || echo unknown`
2107uname -s = `(uname -s) 2>/dev/null || echo unknown`
2108uname -v = `(uname -v) 2>/dev/null || echo unknown`
2109
2110/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2111/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2112
2113/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2114/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2115/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2116/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2117/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2118/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2119/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2120
2121_ASUNAME
2122
2123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2124for as_dir in $PATH
2125do
2126  IFS=$as_save_IFS
2127  test -z "$as_dir" && as_dir=.
2128    $as_echo "PATH: $as_dir"
2129  done
2130IFS=$as_save_IFS
2131
2132} >&5
2133
2134cat >&5 <<_ACEOF
2135
2136
2137## ----------- ##
2138## Core tests. ##
2139## ----------- ##
2140
2141_ACEOF
2142
2143
2144# Keep a trace of the command line.
2145# Strip out --no-create and --no-recursion so they do not pile up.
2146# Strip out --silent because we don't want to record it for future runs.
2147# Also quote any args containing shell meta-characters.
2148# Make two passes to allow for proper duplicate-argument suppression.
2149ac_configure_args=
2150ac_configure_args0=
2151ac_configure_args1=
2152ac_must_keep_next=false
2153for ac_pass in 1 2
2154do
2155  for ac_arg
2156  do
2157    case $ac_arg in
2158    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2159    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2160    | -silent | --silent | --silen | --sile | --sil)
2161      continue ;;
2162    *\'*)
2163      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2164    esac
2165    case $ac_pass in
2166    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2167    2)
2168      as_fn_append ac_configure_args1 " '$ac_arg'"
2169      if test $ac_must_keep_next = true; then
2170	ac_must_keep_next=false # Got value, back to normal.
2171      else
2172	case $ac_arg in
2173	  *=* | --config-cache | -C | -disable-* | --disable-* \
2174	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2175	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2176	  | -with-* | --with-* | -without-* | --without-* | --x)
2177	    case "$ac_configure_args0 " in
2178	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2179	    esac
2180	    ;;
2181	  -* ) ac_must_keep_next=true ;;
2182	esac
2183      fi
2184      as_fn_append ac_configure_args " '$ac_arg'"
2185      ;;
2186    esac
2187  done
2188done
2189{ ac_configure_args0=; unset ac_configure_args0;}
2190{ ac_configure_args1=; unset ac_configure_args1;}
2191
2192# When interrupted or exit'd, cleanup temporary files, and complete
2193# config.log.  We remove comments because anyway the quotes in there
2194# would cause problems or look ugly.
2195# WARNING: Use '\'' to represent an apostrophe within the trap.
2196# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2197trap 'exit_status=$?
2198  # Save into config.log some information that might help in debugging.
2199  {
2200    echo
2201
2202    $as_echo "## ---------------- ##
2203## Cache variables. ##
2204## ---------------- ##"
2205    echo
2206    # The following way of writing the cache mishandles newlines in values,
2207(
2208  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2209    eval ac_val=\$$ac_var
2210    case $ac_val in #(
2211    *${as_nl}*)
2212      case $ac_var in #(
2213      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2214$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2215      esac
2216      case $ac_var in #(
2217      _ | IFS | as_nl) ;; #(
2218      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2219      *) { eval $ac_var=; unset $ac_var;} ;;
2220      esac ;;
2221    esac
2222  done
2223  (set) 2>&1 |
2224    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2225    *${as_nl}ac_space=\ *)
2226      sed -n \
2227	"s/'\''/'\''\\\\'\'''\''/g;
2228	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2229      ;; #(
2230    *)
2231      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2232      ;;
2233    esac |
2234    sort
2235)
2236    echo
2237
2238    $as_echo "## ----------------- ##
2239## Output variables. ##
2240## ----------------- ##"
2241    echo
2242    for ac_var in $ac_subst_vars
2243    do
2244      eval ac_val=\$$ac_var
2245      case $ac_val in
2246      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2247      esac
2248      $as_echo "$ac_var='\''$ac_val'\''"
2249    done | sort
2250    echo
2251
2252    if test -n "$ac_subst_files"; then
2253      $as_echo "## ------------------- ##
2254## File substitutions. ##
2255## ------------------- ##"
2256      echo
2257      for ac_var in $ac_subst_files
2258      do
2259	eval ac_val=\$$ac_var
2260	case $ac_val in
2261	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2262	esac
2263	$as_echo "$ac_var='\''$ac_val'\''"
2264      done | sort
2265      echo
2266    fi
2267
2268    if test -s confdefs.h; then
2269      $as_echo "## ----------- ##
2270## confdefs.h. ##
2271## ----------- ##"
2272      echo
2273      cat confdefs.h
2274      echo
2275    fi
2276    test "$ac_signal" != 0 &&
2277      $as_echo "$as_me: caught signal $ac_signal"
2278    $as_echo "$as_me: exit $exit_status"
2279  } >&5
2280  rm -f core *.core core.conftest.* &&
2281    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2282    exit $exit_status
2283' 0
2284for ac_signal in 1 2 13 15; do
2285  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2286done
2287ac_signal=0
2288
2289# confdefs.h avoids OS command line length limits that DEFS can exceed.
2290rm -f -r conftest* confdefs.h
2291
2292$as_echo "/* confdefs.h */" > confdefs.h
2293
2294# Predefined preprocessor variables.
2295
2296cat >>confdefs.h <<_ACEOF
2297#define PACKAGE_NAME "$PACKAGE_NAME"
2298_ACEOF
2299
2300cat >>confdefs.h <<_ACEOF
2301#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2302_ACEOF
2303
2304cat >>confdefs.h <<_ACEOF
2305#define PACKAGE_VERSION "$PACKAGE_VERSION"
2306_ACEOF
2307
2308cat >>confdefs.h <<_ACEOF
2309#define PACKAGE_STRING "$PACKAGE_STRING"
2310_ACEOF
2311
2312cat >>confdefs.h <<_ACEOF
2313#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2314_ACEOF
2315
2316cat >>confdefs.h <<_ACEOF
2317#define PACKAGE_URL "$PACKAGE_URL"
2318_ACEOF
2319
2320
2321# Let the site file select an alternate cache file if it wants to.
2322# Prefer an explicitly selected file to automatically selected ones.
2323ac_site_file1=NONE
2324ac_site_file2=NONE
2325if test -n "$CONFIG_SITE"; then
2326  # We do not want a PATH search for config.site.
2327  case $CONFIG_SITE in #((
2328    -*)  ac_site_file1=./$CONFIG_SITE;;
2329    */*) ac_site_file1=$CONFIG_SITE;;
2330    *)   ac_site_file1=./$CONFIG_SITE;;
2331  esac
2332elif test "x$prefix" != xNONE; then
2333  ac_site_file1=$prefix/share/config.site
2334  ac_site_file2=$prefix/etc/config.site
2335else
2336  ac_site_file1=$ac_default_prefix/share/config.site
2337  ac_site_file2=$ac_default_prefix/etc/config.site
2338fi
2339for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2340do
2341  test "x$ac_site_file" = xNONE && continue
2342  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2343    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2344$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2345    sed 's/^/| /' "$ac_site_file" >&5
2346    . "$ac_site_file" \
2347      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2348$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2349as_fn_error $? "failed to load site script $ac_site_file
2350See \`config.log' for more details" "$LINENO" 5; }
2351  fi
2352done
2353
2354if test -r "$cache_file"; then
2355  # Some versions of bash will fail to source /dev/null (special files
2356  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2357  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2358    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2359$as_echo "$as_me: loading cache $cache_file" >&6;}
2360    case $cache_file in
2361      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2362      *)                      . "./$cache_file";;
2363    esac
2364  fi
2365else
2366  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2367$as_echo "$as_me: creating cache $cache_file" >&6;}
2368  >$cache_file
2369fi
2370
2371gt_needs="$gt_needs "
2372# Check that the precious variables saved in the cache have kept the same
2373# value.
2374ac_cache_corrupted=false
2375for ac_var in $ac_precious_vars; do
2376  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2377  eval ac_new_set=\$ac_env_${ac_var}_set
2378  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2379  eval ac_new_val=\$ac_env_${ac_var}_value
2380  case $ac_old_set,$ac_new_set in
2381    set,)
2382      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2383$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2384      ac_cache_corrupted=: ;;
2385    ,set)
2386      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2387$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2388      ac_cache_corrupted=: ;;
2389    ,);;
2390    *)
2391      if test "x$ac_old_val" != "x$ac_new_val"; then
2392	# differences in whitespace do not lead to failure.
2393	ac_old_val_w=`echo x $ac_old_val`
2394	ac_new_val_w=`echo x $ac_new_val`
2395	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2396	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2397$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2398	  ac_cache_corrupted=:
2399	else
2400	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2401$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2402	  eval $ac_var=\$ac_old_val
2403	fi
2404	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2405$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2406	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2407$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2408      fi;;
2409  esac
2410  # Pass precious variables to config.status.
2411  if test "$ac_new_set" = set; then
2412    case $ac_new_val in
2413    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2414    *) ac_arg=$ac_var=$ac_new_val ;;
2415    esac
2416    case " $ac_configure_args " in
2417      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2418      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2419    esac
2420  fi
2421done
2422if $ac_cache_corrupted; then
2423  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2424$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2425  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2426$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2427  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2428fi
2429## -------------------- ##
2430## Main body of script. ##
2431## -------------------- ##
2432
2433ac_ext=c
2434ac_cpp='$CPP $CPPFLAGS'
2435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2437ac_compiler_gnu=$ac_cv_c_compiler_gnu
2438
2439
2440am__api_version='1.14'
2441
2442ac_aux_dir=
2443for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2444  if test -f "$ac_dir/install-sh"; then
2445    ac_aux_dir=$ac_dir
2446    ac_install_sh="$ac_aux_dir/install-sh -c"
2447    break
2448  elif test -f "$ac_dir/install.sh"; then
2449    ac_aux_dir=$ac_dir
2450    ac_install_sh="$ac_aux_dir/install.sh -c"
2451    break
2452  elif test -f "$ac_dir/shtool"; then
2453    ac_aux_dir=$ac_dir
2454    ac_install_sh="$ac_aux_dir/shtool install -c"
2455    break
2456  fi
2457done
2458if test -z "$ac_aux_dir"; then
2459  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2460fi
2461
2462# These three variables are undocumented and unsupported,
2463# and are intended to be withdrawn in a future Autoconf release.
2464# They can cause serious problems if a builder's source tree is in a directory
2465# whose full name contains unusual characters.
2466ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2467ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2468ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2469
2470
2471# Find a good install program.  We prefer a C program (faster),
2472# so one script is as good as another.  But avoid the broken or
2473# incompatible versions:
2474# SysV /etc/install, /usr/sbin/install
2475# SunOS /usr/etc/install
2476# IRIX /sbin/install
2477# AIX /bin/install
2478# AmigaOS /C/install, which installs bootblocks on floppy discs
2479# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2480# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2481# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2482# OS/2's system install, which has a completely different semantic
2483# ./install, which can be erroneously created by make from ./install.sh.
2484# Reject install programs that cannot install multiple files.
2485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2486$as_echo_n "checking for a BSD-compatible install... " >&6; }
2487if test -z "$INSTALL"; then
2488if ${ac_cv_path_install+:} false; then :
2489  $as_echo_n "(cached) " >&6
2490else
2491  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2492for as_dir in $PATH
2493do
2494  IFS=$as_save_IFS
2495  test -z "$as_dir" && as_dir=.
2496    # Account for people who put trailing slashes in PATH elements.
2497case $as_dir/ in #((
2498  ./ | .// | /[cC]/* | \
2499  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2500  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2501  /usr/ucb/* ) ;;
2502  *)
2503    # OSF1 and SCO ODT 3.0 have their own names for install.
2504    # Don't use installbsd from OSF since it installs stuff as root
2505    # by default.
2506    for ac_prog in ginstall scoinst install; do
2507      for ac_exec_ext in '' $ac_executable_extensions; do
2508	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2509	  if test $ac_prog = install &&
2510	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2511	    # AIX install.  It has an incompatible calling convention.
2512	    :
2513	  elif test $ac_prog = install &&
2514	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2515	    # program-specific install script used by HP pwplus--don't use.
2516	    :
2517	  else
2518	    rm -rf conftest.one conftest.two conftest.dir
2519	    echo one > conftest.one
2520	    echo two > conftest.two
2521	    mkdir conftest.dir
2522	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2523	      test -s conftest.one && test -s conftest.two &&
2524	      test -s conftest.dir/conftest.one &&
2525	      test -s conftest.dir/conftest.two
2526	    then
2527	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2528	      break 3
2529	    fi
2530	  fi
2531	fi
2532      done
2533    done
2534    ;;
2535esac
2536
2537  done
2538IFS=$as_save_IFS
2539
2540rm -rf conftest.one conftest.two conftest.dir
2541
2542fi
2543  if test "${ac_cv_path_install+set}" = set; then
2544    INSTALL=$ac_cv_path_install
2545  else
2546    # As a last resort, use the slow shell script.  Don't cache a
2547    # value for INSTALL within a source directory, because that will
2548    # break other packages using the cache if that directory is
2549    # removed, or if the value is a relative name.
2550    INSTALL=$ac_install_sh
2551  fi
2552fi
2553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2554$as_echo "$INSTALL" >&6; }
2555
2556# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2557# It thinks the first close brace ends the variable substitution.
2558test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2559
2560test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2561
2562test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2563
2564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2565$as_echo_n "checking whether build environment is sane... " >&6; }
2566# Reject unsafe characters in $srcdir or the absolute working directory
2567# name.  Accept space and tab only in the latter.
2568am_lf='
2569'
2570case `pwd` in
2571  *[\\\"\#\$\&\'\`$am_lf]*)
2572    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2573esac
2574case $srcdir in
2575  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2576    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2577esac
2578
2579# Do 'set' in a subshell so we don't clobber the current shell's
2580# arguments.  Must try -L first in case configure is actually a
2581# symlink; some systems play weird games with the mod time of symlinks
2582# (eg FreeBSD returns the mod time of the symlink's containing
2583# directory).
2584if (
2585   am_has_slept=no
2586   for am_try in 1 2; do
2587     echo "timestamp, slept: $am_has_slept" > conftest.file
2588     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2589     if test "$*" = "X"; then
2590	# -L didn't work.
2591	set X `ls -t "$srcdir/configure" conftest.file`
2592     fi
2593     if test "$*" != "X $srcdir/configure conftest.file" \
2594	&& test "$*" != "X conftest.file $srcdir/configure"; then
2595
2596	# If neither matched, then we have a broken ls.  This can happen
2597	# if, for instance, CONFIG_SHELL is bash and it inherits a
2598	# broken ls alias from the environment.  This has actually
2599	# happened.  Such a system could not be considered "sane".
2600	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2601  alias in your environment" "$LINENO" 5
2602     fi
2603     if test "$2" = conftest.file || test $am_try -eq 2; then
2604       break
2605     fi
2606     # Just in case.
2607     sleep 1
2608     am_has_slept=yes
2609   done
2610   test "$2" = conftest.file
2611   )
2612then
2613   # Ok.
2614   :
2615else
2616   as_fn_error $? "newly created file is older than distributed files!
2617Check your system clock" "$LINENO" 5
2618fi
2619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2620$as_echo "yes" >&6; }
2621# If we didn't sleep, we still need to ensure time stamps of config.status and
2622# generated files are strictly newer.
2623am_sleep_pid=
2624if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2625  ( sleep 1 ) &
2626  am_sleep_pid=$!
2627fi
2628
2629rm -f conftest.file
2630
2631test "$program_prefix" != NONE &&
2632  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2633# Use a double $ so make ignores it.
2634test "$program_suffix" != NONE &&
2635  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2636# Double any \ or $.
2637# By default was `s,x,x', remove it if useless.
2638ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2639program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2640
2641# expand $ac_aux_dir to an absolute path
2642am_aux_dir=`cd $ac_aux_dir && pwd`
2643
2644if test x"${MISSING+set}" != xset; then
2645  case $am_aux_dir in
2646  *\ * | *\	*)
2647    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2648  *)
2649    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2650  esac
2651fi
2652# Use eval to expand $SHELL
2653if eval "$MISSING --is-lightweight"; then
2654  am_missing_run="$MISSING "
2655else
2656  am_missing_run=
2657  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2658$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2659fi
2660
2661if test x"${install_sh}" != xset; then
2662  case $am_aux_dir in
2663  *\ * | *\	*)
2664    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2665  *)
2666    install_sh="\${SHELL} $am_aux_dir/install-sh"
2667  esac
2668fi
2669
2670# Installed binaries are usually stripped using 'strip' when the user
2671# run "make install-strip".  However 'strip' might not be the right
2672# tool to use in cross-compilation environments, therefore Automake
2673# will honor the 'STRIP' environment variable to overrule this program.
2674if test "$cross_compiling" != no; then
2675  if test -n "$ac_tool_prefix"; then
2676  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2677set dummy ${ac_tool_prefix}strip; ac_word=$2
2678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2679$as_echo_n "checking for $ac_word... " >&6; }
2680if ${ac_cv_prog_STRIP+:} false; then :
2681  $as_echo_n "(cached) " >&6
2682else
2683  if test -n "$STRIP"; then
2684  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2685else
2686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687for as_dir in $PATH
2688do
2689  IFS=$as_save_IFS
2690  test -z "$as_dir" && as_dir=.
2691    for ac_exec_ext in '' $ac_executable_extensions; do
2692  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2693    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2694    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2695    break 2
2696  fi
2697done
2698  done
2699IFS=$as_save_IFS
2700
2701fi
2702fi
2703STRIP=$ac_cv_prog_STRIP
2704if test -n "$STRIP"; then
2705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2706$as_echo "$STRIP" >&6; }
2707else
2708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2709$as_echo "no" >&6; }
2710fi
2711
2712
2713fi
2714if test -z "$ac_cv_prog_STRIP"; then
2715  ac_ct_STRIP=$STRIP
2716  # Extract the first word of "strip", so it can be a program name with args.
2717set dummy strip; ac_word=$2
2718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2719$as_echo_n "checking for $ac_word... " >&6; }
2720if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2721  $as_echo_n "(cached) " >&6
2722else
2723  if test -n "$ac_ct_STRIP"; then
2724  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2725else
2726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727for as_dir in $PATH
2728do
2729  IFS=$as_save_IFS
2730  test -z "$as_dir" && as_dir=.
2731    for ac_exec_ext in '' $ac_executable_extensions; do
2732  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2733    ac_cv_prog_ac_ct_STRIP="strip"
2734    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2735    break 2
2736  fi
2737done
2738  done
2739IFS=$as_save_IFS
2740
2741fi
2742fi
2743ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2744if test -n "$ac_ct_STRIP"; then
2745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2746$as_echo "$ac_ct_STRIP" >&6; }
2747else
2748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2749$as_echo "no" >&6; }
2750fi
2751
2752  if test "x$ac_ct_STRIP" = x; then
2753    STRIP=":"
2754  else
2755    case $cross_compiling:$ac_tool_warned in
2756yes:)
2757{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2758$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2759ac_tool_warned=yes ;;
2760esac
2761    STRIP=$ac_ct_STRIP
2762  fi
2763else
2764  STRIP="$ac_cv_prog_STRIP"
2765fi
2766
2767fi
2768INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2769
2770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2771$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2772if test -z "$MKDIR_P"; then
2773  if ${ac_cv_path_mkdir+:} false; then :
2774  $as_echo_n "(cached) " >&6
2775else
2776  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2778do
2779  IFS=$as_save_IFS
2780  test -z "$as_dir" && as_dir=.
2781    for ac_prog in mkdir gmkdir; do
2782	 for ac_exec_ext in '' $ac_executable_extensions; do
2783	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2784	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2785	     'mkdir (GNU coreutils) '* | \
2786	     'mkdir (coreutils) '* | \
2787	     'mkdir (fileutils) '4.1*)
2788	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2789	       break 3;;
2790	   esac
2791	 done
2792       done
2793  done
2794IFS=$as_save_IFS
2795
2796fi
2797
2798  test -d ./--version && rmdir ./--version
2799  if test "${ac_cv_path_mkdir+set}" = set; then
2800    MKDIR_P="$ac_cv_path_mkdir -p"
2801  else
2802    # As a last resort, use the slow shell script.  Don't cache a
2803    # value for MKDIR_P within a source directory, because that will
2804    # break other packages using the cache if that directory is
2805    # removed, or if the value is a relative name.
2806    MKDIR_P="$ac_install_sh -d"
2807  fi
2808fi
2809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2810$as_echo "$MKDIR_P" >&6; }
2811
2812for ac_prog in gawk mawk nawk awk
2813do
2814  # Extract the first word of "$ac_prog", so it can be a program name with args.
2815set dummy $ac_prog; ac_word=$2
2816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2817$as_echo_n "checking for $ac_word... " >&6; }
2818if ${ac_cv_prog_AWK+:} false; then :
2819  $as_echo_n "(cached) " >&6
2820else
2821  if test -n "$AWK"; then
2822  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2823else
2824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825for as_dir in $PATH
2826do
2827  IFS=$as_save_IFS
2828  test -z "$as_dir" && as_dir=.
2829    for ac_exec_ext in '' $ac_executable_extensions; do
2830  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2831    ac_cv_prog_AWK="$ac_prog"
2832    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2833    break 2
2834  fi
2835done
2836  done
2837IFS=$as_save_IFS
2838
2839fi
2840fi
2841AWK=$ac_cv_prog_AWK
2842if test -n "$AWK"; then
2843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2844$as_echo "$AWK" >&6; }
2845else
2846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2847$as_echo "no" >&6; }
2848fi
2849
2850
2851  test -n "$AWK" && break
2852done
2853
2854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2855$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2856set x ${MAKE-make}
2857ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2858if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2859  $as_echo_n "(cached) " >&6
2860else
2861  cat >conftest.make <<\_ACEOF
2862SHELL = /bin/sh
2863all:
2864	@echo '@@@%%%=$(MAKE)=@@@%%%'
2865_ACEOF
2866# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2867case `${MAKE-make} -f conftest.make 2>/dev/null` in
2868  *@@@%%%=?*=@@@%%%*)
2869    eval ac_cv_prog_make_${ac_make}_set=yes;;
2870  *)
2871    eval ac_cv_prog_make_${ac_make}_set=no;;
2872esac
2873rm -f conftest.make
2874fi
2875if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2877$as_echo "yes" >&6; }
2878  SET_MAKE=
2879else
2880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2881$as_echo "no" >&6; }
2882  SET_MAKE="MAKE=${MAKE-make}"
2883fi
2884
2885rm -rf .tst 2>/dev/null
2886mkdir .tst 2>/dev/null
2887if test -d .tst; then
2888  am__leading_dot=.
2889else
2890  am__leading_dot=_
2891fi
2892rmdir .tst 2>/dev/null
2893
2894# Check whether --enable-silent-rules was given.
2895if test "${enable_silent_rules+set}" = set; then :
2896  enableval=$enable_silent_rules;
2897fi
2898
2899case $enable_silent_rules in # (((
2900  yes) AM_DEFAULT_VERBOSITY=0;;
2901   no) AM_DEFAULT_VERBOSITY=1;;
2902    *) AM_DEFAULT_VERBOSITY=1;;
2903esac
2904am_make=${MAKE-make}
2905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2906$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2907if ${am_cv_make_support_nested_variables+:} false; then :
2908  $as_echo_n "(cached) " >&6
2909else
2910  if $as_echo 'TRUE=$(BAR$(V))
2911BAR0=false
2912BAR1=true
2913V=1
2914am__doit:
2915	@$(TRUE)
2916.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2917  am_cv_make_support_nested_variables=yes
2918else
2919  am_cv_make_support_nested_variables=no
2920fi
2921fi
2922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2923$as_echo "$am_cv_make_support_nested_variables" >&6; }
2924if test $am_cv_make_support_nested_variables = yes; then
2925    AM_V='$(V)'
2926  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2927else
2928  AM_V=$AM_DEFAULT_VERBOSITY
2929  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2930fi
2931AM_BACKSLASH='\'
2932
2933if test "`cd $srcdir && pwd`" != "`pwd`"; then
2934  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2935  # is not polluted with repeated "-I."
2936  am__isrc=' -I$(srcdir)'
2937  # test to see if srcdir already configured
2938  if test -f $srcdir/config.status; then
2939    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2940  fi
2941fi
2942
2943# test whether we have cygpath
2944if test -z "$CYGPATH_W"; then
2945  if (cygpath --version) >/dev/null 2>/dev/null; then
2946    CYGPATH_W='cygpath -w'
2947  else
2948    CYGPATH_W=echo
2949  fi
2950fi
2951
2952
2953# Define the identity of the package.
2954 PACKAGE='lander'
2955 VERSION='0.6.6'
2956
2957
2958cat >>confdefs.h <<_ACEOF
2959#define PACKAGE "$PACKAGE"
2960_ACEOF
2961
2962
2963cat >>confdefs.h <<_ACEOF
2964#define VERSION "$VERSION"
2965_ACEOF
2966
2967# Some tools Automake needs.
2968
2969ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2970
2971
2972AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2973
2974
2975AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2976
2977
2978AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2979
2980
2981MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2982
2983# For better backward compatibility.  To be removed once Automake 1.9.x
2984# dies out for good.  For more background, see:
2985# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2986# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2987mkdir_p='$(MKDIR_P)'
2988
2989# We need awk for the "check" target.  The system "awk" is bad on
2990# some platforms.
2991# Always define AMTAR for backward compatibility.  Yes, it's still used
2992# in the wild :-(  We should find a proper way to deprecate it ...
2993AMTAR='$${TAR-tar}'
2994
2995
2996# We'll loop over all known methods to create a tar archive until one works.
2997_am_tools='gnutar  pax cpio none'
2998
2999am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3000
3001
3002
3003
3004
3005
3006# POSIX will say in a future version that running "rm -f" with no argument
3007# is OK; and we want to be able to make that assumption in our Makefile
3008# recipes.  So use an aggressive probe to check that the usage we want is
3009# actually supported "in the wild" to an acceptable degree.
3010# See automake bug#10828.
3011# To make any issue more visible, cause the running configure to be aborted
3012# by default if the 'rm' program in use doesn't match our expectations; the
3013# user can still override this though.
3014if rm -f && rm -fr && rm -rf; then : OK; else
3015  cat >&2 <<'END'
3016Oops!
3017
3018Your 'rm' program seems unable to run without file operands specified
3019on the command line, even when the '-f' option is present.  This is contrary
3020to the behaviour of most rm programs out there, and not conforming with
3021the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3022
3023Please tell bug-automake@gnu.org about your system, including the value
3024of your $PATH and any error possibly output before this message.  This
3025can help us improve future automake versions.
3026
3027END
3028  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3029    echo 'Configuration will proceed anyway, since you have set the' >&2
3030    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3031    echo >&2
3032  else
3033    cat >&2 <<'END'
3034Aborting the configuration process, to ensure you take notice of the issue.
3035
3036You can download and install GNU coreutils to get an 'rm' implementation
3037that behaves properly: <http://www.gnu.org/software/coreutils/>.
3038
3039If you want to complete the configuration process using your problematic
3040'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3041to "yes", and re-run configure.
3042
3043END
3044    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3045  fi
3046fi
3047# Check whether --enable-silent-rules was given.
3048if test "${enable_silent_rules+set}" = set; then :
3049  enableval=$enable_silent_rules;
3050fi
3051
3052case $enable_silent_rules in # (((
3053  yes) AM_DEFAULT_VERBOSITY=0;;
3054   no) AM_DEFAULT_VERBOSITY=1;;
3055    *) AM_DEFAULT_VERBOSITY=0;;
3056esac
3057am_make=${MAKE-make}
3058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3059$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3060if ${am_cv_make_support_nested_variables+:} false; then :
3061  $as_echo_n "(cached) " >&6
3062else
3063  if $as_echo 'TRUE=$(BAR$(V))
3064BAR0=false
3065BAR1=true
3066V=1
3067am__doit:
3068	@$(TRUE)
3069.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3070  am_cv_make_support_nested_variables=yes
3071else
3072  am_cv_make_support_nested_variables=no
3073fi
3074fi
3075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3076$as_echo "$am_cv_make_support_nested_variables" >&6; }
3077if test $am_cv_make_support_nested_variables = yes; then
3078    AM_V='$(V)'
3079  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3080else
3081  AM_V=$AM_DEFAULT_VERBOSITY
3082  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3083fi
3084AM_BACKSLASH='\'
3085
3086
3087
3088
3089ac_ext=c
3090ac_cpp='$CPP $CPPFLAGS'
3091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3093ac_compiler_gnu=$ac_cv_c_compiler_gnu
3094if test -n "$ac_tool_prefix"; then
3095  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3096set dummy ${ac_tool_prefix}gcc; ac_word=$2
3097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3098$as_echo_n "checking for $ac_word... " >&6; }
3099if ${ac_cv_prog_CC+:} false; then :
3100  $as_echo_n "(cached) " >&6
3101else
3102  if test -n "$CC"; then
3103  ac_cv_prog_CC="$CC" # Let the user override the test.
3104else
3105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106for as_dir in $PATH
3107do
3108  IFS=$as_save_IFS
3109  test -z "$as_dir" && as_dir=.
3110    for ac_exec_ext in '' $ac_executable_extensions; do
3111  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3112    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3113    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3114    break 2
3115  fi
3116done
3117  done
3118IFS=$as_save_IFS
3119
3120fi
3121fi
3122CC=$ac_cv_prog_CC
3123if test -n "$CC"; then
3124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3125$as_echo "$CC" >&6; }
3126else
3127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3128$as_echo "no" >&6; }
3129fi
3130
3131
3132fi
3133if test -z "$ac_cv_prog_CC"; then
3134  ac_ct_CC=$CC
3135  # Extract the first word of "gcc", so it can be a program name with args.
3136set dummy gcc; ac_word=$2
3137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3138$as_echo_n "checking for $ac_word... " >&6; }
3139if ${ac_cv_prog_ac_ct_CC+:} false; then :
3140  $as_echo_n "(cached) " >&6
3141else
3142  if test -n "$ac_ct_CC"; then
3143  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3144else
3145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146for as_dir in $PATH
3147do
3148  IFS=$as_save_IFS
3149  test -z "$as_dir" && as_dir=.
3150    for ac_exec_ext in '' $ac_executable_extensions; do
3151  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3152    ac_cv_prog_ac_ct_CC="gcc"
3153    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3154    break 2
3155  fi
3156done
3157  done
3158IFS=$as_save_IFS
3159
3160fi
3161fi
3162ac_ct_CC=$ac_cv_prog_ac_ct_CC
3163if test -n "$ac_ct_CC"; then
3164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3165$as_echo "$ac_ct_CC" >&6; }
3166else
3167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3168$as_echo "no" >&6; }
3169fi
3170
3171  if test "x$ac_ct_CC" = x; then
3172    CC=""
3173  else
3174    case $cross_compiling:$ac_tool_warned in
3175yes:)
3176{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3177$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3178ac_tool_warned=yes ;;
3179esac
3180    CC=$ac_ct_CC
3181  fi
3182else
3183  CC="$ac_cv_prog_CC"
3184fi
3185
3186if test -z "$CC"; then
3187          if test -n "$ac_tool_prefix"; then
3188    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3189set dummy ${ac_tool_prefix}cc; ac_word=$2
3190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3191$as_echo_n "checking for $ac_word... " >&6; }
3192if ${ac_cv_prog_CC+:} false; then :
3193  $as_echo_n "(cached) " >&6
3194else
3195  if test -n "$CC"; then
3196  ac_cv_prog_CC="$CC" # Let the user override the test.
3197else
3198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199for as_dir in $PATH
3200do
3201  IFS=$as_save_IFS
3202  test -z "$as_dir" && as_dir=.
3203    for ac_exec_ext in '' $ac_executable_extensions; do
3204  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3205    ac_cv_prog_CC="${ac_tool_prefix}cc"
3206    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3207    break 2
3208  fi
3209done
3210  done
3211IFS=$as_save_IFS
3212
3213fi
3214fi
3215CC=$ac_cv_prog_CC
3216if test -n "$CC"; then
3217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3218$as_echo "$CC" >&6; }
3219else
3220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3221$as_echo "no" >&6; }
3222fi
3223
3224
3225  fi
3226fi
3227if test -z "$CC"; then
3228  # Extract the first word of "cc", so it can be a program name with args.
3229set dummy cc; ac_word=$2
3230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3231$as_echo_n "checking for $ac_word... " >&6; }
3232if ${ac_cv_prog_CC+:} false; then :
3233  $as_echo_n "(cached) " >&6
3234else
3235  if test -n "$CC"; then
3236  ac_cv_prog_CC="$CC" # Let the user override the test.
3237else
3238  ac_prog_rejected=no
3239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3240for as_dir in $PATH
3241do
3242  IFS=$as_save_IFS
3243  test -z "$as_dir" && as_dir=.
3244    for ac_exec_ext in '' $ac_executable_extensions; do
3245  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3246    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3247       ac_prog_rejected=yes
3248       continue
3249     fi
3250    ac_cv_prog_CC="cc"
3251    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3252    break 2
3253  fi
3254done
3255  done
3256IFS=$as_save_IFS
3257
3258if test $ac_prog_rejected = yes; then
3259  # We found a bogon in the path, so make sure we never use it.
3260  set dummy $ac_cv_prog_CC
3261  shift
3262  if test $# != 0; then
3263    # We chose a different compiler from the bogus one.
3264    # However, it has the same basename, so the bogon will be chosen
3265    # first if we set CC to just the basename; use the full file name.
3266    shift
3267    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3268  fi
3269fi
3270fi
3271fi
3272CC=$ac_cv_prog_CC
3273if test -n "$CC"; then
3274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3275$as_echo "$CC" >&6; }
3276else
3277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3278$as_echo "no" >&6; }
3279fi
3280
3281
3282fi
3283if test -z "$CC"; then
3284  if test -n "$ac_tool_prefix"; then
3285  for ac_prog in cl.exe
3286  do
3287    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3288set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3290$as_echo_n "checking for $ac_word... " >&6; }
3291if ${ac_cv_prog_CC+:} false; then :
3292  $as_echo_n "(cached) " >&6
3293else
3294  if test -n "$CC"; then
3295  ac_cv_prog_CC="$CC" # Let the user override the test.
3296else
3297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3298for as_dir in $PATH
3299do
3300  IFS=$as_save_IFS
3301  test -z "$as_dir" && as_dir=.
3302    for ac_exec_ext in '' $ac_executable_extensions; do
3303  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3304    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3305    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3306    break 2
3307  fi
3308done
3309  done
3310IFS=$as_save_IFS
3311
3312fi
3313fi
3314CC=$ac_cv_prog_CC
3315if test -n "$CC"; then
3316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3317$as_echo "$CC" >&6; }
3318else
3319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3320$as_echo "no" >&6; }
3321fi
3322
3323
3324    test -n "$CC" && break
3325  done
3326fi
3327if test -z "$CC"; then
3328  ac_ct_CC=$CC
3329  for ac_prog in cl.exe
3330do
3331  # Extract the first word of "$ac_prog", so it can be a program name with args.
3332set dummy $ac_prog; ac_word=$2
3333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3334$as_echo_n "checking for $ac_word... " >&6; }
3335if ${ac_cv_prog_ac_ct_CC+:} false; then :
3336  $as_echo_n "(cached) " >&6
3337else
3338  if test -n "$ac_ct_CC"; then
3339  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3340else
3341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3342for as_dir in $PATH
3343do
3344  IFS=$as_save_IFS
3345  test -z "$as_dir" && as_dir=.
3346    for ac_exec_ext in '' $ac_executable_extensions; do
3347  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3348    ac_cv_prog_ac_ct_CC="$ac_prog"
3349    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3350    break 2
3351  fi
3352done
3353  done
3354IFS=$as_save_IFS
3355
3356fi
3357fi
3358ac_ct_CC=$ac_cv_prog_ac_ct_CC
3359if test -n "$ac_ct_CC"; then
3360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3361$as_echo "$ac_ct_CC" >&6; }
3362else
3363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3364$as_echo "no" >&6; }
3365fi
3366
3367
3368  test -n "$ac_ct_CC" && break
3369done
3370
3371  if test "x$ac_ct_CC" = x; then
3372    CC=""
3373  else
3374    case $cross_compiling:$ac_tool_warned in
3375yes:)
3376{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3377$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3378ac_tool_warned=yes ;;
3379esac
3380    CC=$ac_ct_CC
3381  fi
3382fi
3383
3384fi
3385
3386
3387test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3388$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3389as_fn_error $? "no acceptable C compiler found in \$PATH
3390See \`config.log' for more details" "$LINENO" 5; }
3391
3392# Provide some information about the compiler.
3393$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3394set X $ac_compile
3395ac_compiler=$2
3396for ac_option in --version -v -V -qversion; do
3397  { { ac_try="$ac_compiler $ac_option >&5"
3398case "(($ac_try" in
3399  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400  *) ac_try_echo=$ac_try;;
3401esac
3402eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3403$as_echo "$ac_try_echo"; } >&5
3404  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3405  ac_status=$?
3406  if test -s conftest.err; then
3407    sed '10a\
3408... rest of stderr output deleted ...
3409         10q' conftest.err >conftest.er1
3410    cat conftest.er1 >&5
3411  fi
3412  rm -f conftest.er1 conftest.err
3413  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3414  test $ac_status = 0; }
3415done
3416
3417cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3418/* end confdefs.h.  */
3419
3420int
3421main ()
3422{
3423
3424  ;
3425  return 0;
3426}
3427_ACEOF
3428ac_clean_files_save=$ac_clean_files
3429ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3430# Try to create an executable without -o first, disregard a.out.
3431# It will help us diagnose broken compilers, and finding out an intuition
3432# of exeext.
3433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3434$as_echo_n "checking whether the C compiler works... " >&6; }
3435ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3436
3437# The possible output files:
3438ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3439
3440ac_rmfiles=
3441for ac_file in $ac_files
3442do
3443  case $ac_file in
3444    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3445    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3446  esac
3447done
3448rm -f $ac_rmfiles
3449
3450if { { ac_try="$ac_link_default"
3451case "(($ac_try" in
3452  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3453  *) ac_try_echo=$ac_try;;
3454esac
3455eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3456$as_echo "$ac_try_echo"; } >&5
3457  (eval "$ac_link_default") 2>&5
3458  ac_status=$?
3459  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3460  test $ac_status = 0; }; then :
3461  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3462# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3463# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3464# so that the user can short-circuit this test for compilers unknown to
3465# Autoconf.
3466for ac_file in $ac_files ''
3467do
3468  test -f "$ac_file" || continue
3469  case $ac_file in
3470    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3471	;;
3472    [ab].out )
3473	# We found the default executable, but exeext='' is most
3474	# certainly right.
3475	break;;
3476    *.* )
3477	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3478	then :; else
3479	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3480	fi
3481	# We set ac_cv_exeext here because the later test for it is not
3482	# safe: cross compilers may not add the suffix if given an `-o'
3483	# argument, so we may need to know it at that point already.
3484	# Even if this section looks crufty: it has the advantage of
3485	# actually working.
3486	break;;
3487    * )
3488	break;;
3489  esac
3490done
3491test "$ac_cv_exeext" = no && ac_cv_exeext=
3492
3493else
3494  ac_file=''
3495fi
3496if test -z "$ac_file"; then :
3497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3498$as_echo "no" >&6; }
3499$as_echo "$as_me: failed program was:" >&5
3500sed 's/^/| /' conftest.$ac_ext >&5
3501
3502{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3503$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3504as_fn_error 77 "C compiler cannot create executables
3505See \`config.log' for more details" "$LINENO" 5; }
3506else
3507  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3508$as_echo "yes" >&6; }
3509fi
3510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3511$as_echo_n "checking for C compiler default output file name... " >&6; }
3512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3513$as_echo "$ac_file" >&6; }
3514ac_exeext=$ac_cv_exeext
3515
3516rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3517ac_clean_files=$ac_clean_files_save
3518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3519$as_echo_n "checking for suffix of executables... " >&6; }
3520if { { ac_try="$ac_link"
3521case "(($ac_try" in
3522  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3523  *) ac_try_echo=$ac_try;;
3524esac
3525eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3526$as_echo "$ac_try_echo"; } >&5
3527  (eval "$ac_link") 2>&5
3528  ac_status=$?
3529  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3530  test $ac_status = 0; }; then :
3531  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3532# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3533# work properly (i.e., refer to `conftest.exe'), while it won't with
3534# `rm'.
3535for ac_file in conftest.exe conftest conftest.*; do
3536  test -f "$ac_file" || continue
3537  case $ac_file in
3538    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3539    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3540	  break;;
3541    * ) break;;
3542  esac
3543done
3544else
3545  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3546$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3547as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3548See \`config.log' for more details" "$LINENO" 5; }
3549fi
3550rm -f conftest conftest$ac_cv_exeext
3551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3552$as_echo "$ac_cv_exeext" >&6; }
3553
3554rm -f conftest.$ac_ext
3555EXEEXT=$ac_cv_exeext
3556ac_exeext=$EXEEXT
3557cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3558/* end confdefs.h.  */
3559#include <stdio.h>
3560int
3561main ()
3562{
3563FILE *f = fopen ("conftest.out", "w");
3564 return ferror (f) || fclose (f) != 0;
3565
3566  ;
3567  return 0;
3568}
3569_ACEOF
3570ac_clean_files="$ac_clean_files conftest.out"
3571# Check that the compiler produces executables we can run.  If not, either
3572# the compiler is broken, or we cross compile.
3573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3574$as_echo_n "checking whether we are cross compiling... " >&6; }
3575if test "$cross_compiling" != yes; then
3576  { { ac_try="$ac_link"
3577case "(($ac_try" in
3578  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3579  *) ac_try_echo=$ac_try;;
3580esac
3581eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3582$as_echo "$ac_try_echo"; } >&5
3583  (eval "$ac_link") 2>&5
3584  ac_status=$?
3585  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3586  test $ac_status = 0; }
3587  if { ac_try='./conftest$ac_cv_exeext'
3588  { { case "(($ac_try" in
3589  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3590  *) ac_try_echo=$ac_try;;
3591esac
3592eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3593$as_echo "$ac_try_echo"; } >&5
3594  (eval "$ac_try") 2>&5
3595  ac_status=$?
3596  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3597  test $ac_status = 0; }; }; then
3598    cross_compiling=no
3599  else
3600    if test "$cross_compiling" = maybe; then
3601	cross_compiling=yes
3602    else
3603	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3604$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3605as_fn_error $? "cannot run C compiled programs.
3606If you meant to cross compile, use \`--host'.
3607See \`config.log' for more details" "$LINENO" 5; }
3608    fi
3609  fi
3610fi
3611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3612$as_echo "$cross_compiling" >&6; }
3613
3614rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3615ac_clean_files=$ac_clean_files_save
3616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3617$as_echo_n "checking for suffix of object files... " >&6; }
3618if ${ac_cv_objext+:} false; then :
3619  $as_echo_n "(cached) " >&6
3620else
3621  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3622/* end confdefs.h.  */
3623
3624int
3625main ()
3626{
3627
3628  ;
3629  return 0;
3630}
3631_ACEOF
3632rm -f conftest.o conftest.obj
3633if { { ac_try="$ac_compile"
3634case "(($ac_try" in
3635  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3636  *) ac_try_echo=$ac_try;;
3637esac
3638eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3639$as_echo "$ac_try_echo"; } >&5
3640  (eval "$ac_compile") 2>&5
3641  ac_status=$?
3642  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3643  test $ac_status = 0; }; then :
3644  for ac_file in conftest.o conftest.obj conftest.*; do
3645  test -f "$ac_file" || continue;
3646  case $ac_file in
3647    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3648    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3649       break;;
3650  esac
3651done
3652else
3653  $as_echo "$as_me: failed program was:" >&5
3654sed 's/^/| /' conftest.$ac_ext >&5
3655
3656{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3657$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3658as_fn_error $? "cannot compute suffix of object files: cannot compile
3659See \`config.log' for more details" "$LINENO" 5; }
3660fi
3661rm -f conftest.$ac_cv_objext conftest.$ac_ext
3662fi
3663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3664$as_echo "$ac_cv_objext" >&6; }
3665OBJEXT=$ac_cv_objext
3666ac_objext=$OBJEXT
3667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3668$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3669if ${ac_cv_c_compiler_gnu+:} false; then :
3670  $as_echo_n "(cached) " >&6
3671else
3672  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3673/* end confdefs.h.  */
3674
3675int
3676main ()
3677{
3678#ifndef __GNUC__
3679       choke me
3680#endif
3681
3682  ;
3683  return 0;
3684}
3685_ACEOF
3686if ac_fn_c_try_compile "$LINENO"; then :
3687  ac_compiler_gnu=yes
3688else
3689  ac_compiler_gnu=no
3690fi
3691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3692ac_cv_c_compiler_gnu=$ac_compiler_gnu
3693
3694fi
3695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3696$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3697if test $ac_compiler_gnu = yes; then
3698  GCC=yes
3699else
3700  GCC=
3701fi
3702ac_test_CFLAGS=${CFLAGS+set}
3703ac_save_CFLAGS=$CFLAGS
3704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3705$as_echo_n "checking whether $CC accepts -g... " >&6; }
3706if ${ac_cv_prog_cc_g+:} false; then :
3707  $as_echo_n "(cached) " >&6
3708else
3709  ac_save_c_werror_flag=$ac_c_werror_flag
3710   ac_c_werror_flag=yes
3711   ac_cv_prog_cc_g=no
3712   CFLAGS="-g"
3713   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3714/* end confdefs.h.  */
3715
3716int
3717main ()
3718{
3719
3720  ;
3721  return 0;
3722}
3723_ACEOF
3724if ac_fn_c_try_compile "$LINENO"; then :
3725  ac_cv_prog_cc_g=yes
3726else
3727  CFLAGS=""
3728      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3729/* end confdefs.h.  */
3730
3731int
3732main ()
3733{
3734
3735  ;
3736  return 0;
3737}
3738_ACEOF
3739if ac_fn_c_try_compile "$LINENO"; then :
3740
3741else
3742  ac_c_werror_flag=$ac_save_c_werror_flag
3743	 CFLAGS="-g"
3744	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3745/* end confdefs.h.  */
3746
3747int
3748main ()
3749{
3750
3751  ;
3752  return 0;
3753}
3754_ACEOF
3755if ac_fn_c_try_compile "$LINENO"; then :
3756  ac_cv_prog_cc_g=yes
3757fi
3758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3759fi
3760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3761fi
3762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3763   ac_c_werror_flag=$ac_save_c_werror_flag
3764fi
3765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3766$as_echo "$ac_cv_prog_cc_g" >&6; }
3767if test "$ac_test_CFLAGS" = set; then
3768  CFLAGS=$ac_save_CFLAGS
3769elif test $ac_cv_prog_cc_g = yes; then
3770  if test "$GCC" = yes; then
3771    CFLAGS="-g -O2"
3772  else
3773    CFLAGS="-g"
3774  fi
3775else
3776  if test "$GCC" = yes; then
3777    CFLAGS="-O2"
3778  else
3779    CFLAGS=
3780  fi
3781fi
3782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3783$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3784if ${ac_cv_prog_cc_c89+:} false; then :
3785  $as_echo_n "(cached) " >&6
3786else
3787  ac_cv_prog_cc_c89=no
3788ac_save_CC=$CC
3789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3790/* end confdefs.h.  */
3791#include <stdarg.h>
3792#include <stdio.h>
3793struct stat;
3794/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3795struct buf { int x; };
3796FILE * (*rcsopen) (struct buf *, struct stat *, int);
3797static char *e (p, i)
3798     char **p;
3799     int i;
3800{
3801  return p[i];
3802}
3803static char *f (char * (*g) (char **, int), char **p, ...)
3804{
3805  char *s;
3806  va_list v;
3807  va_start (v,p);
3808  s = g (p, va_arg (v,int));
3809  va_end (v);
3810  return s;
3811}
3812
3813/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3814   function prototypes and stuff, but not '\xHH' hex character constants.
3815   These don't provoke an error unfortunately, instead are silently treated
3816   as 'x'.  The following induces an error, until -std is added to get
3817   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3818   array size at least.  It's necessary to write '\x00'==0 to get something
3819   that's true only with -std.  */
3820int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3821
3822/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3823   inside strings and character constants.  */
3824#define FOO(x) 'x'
3825int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3826
3827int test (int i, double x);
3828struct s1 {int (*f) (int a);};
3829struct s2 {int (*f) (double a);};
3830int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3831int argc;
3832char **argv;
3833int
3834main ()
3835{
3836return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3837  ;
3838  return 0;
3839}
3840_ACEOF
3841for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3842	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3843do
3844  CC="$ac_save_CC $ac_arg"
3845  if ac_fn_c_try_compile "$LINENO"; then :
3846  ac_cv_prog_cc_c89=$ac_arg
3847fi
3848rm -f core conftest.err conftest.$ac_objext
3849  test "x$ac_cv_prog_cc_c89" != "xno" && break
3850done
3851rm -f conftest.$ac_ext
3852CC=$ac_save_CC
3853
3854fi
3855# AC_CACHE_VAL
3856case "x$ac_cv_prog_cc_c89" in
3857  x)
3858    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3859$as_echo "none needed" >&6; } ;;
3860  xno)
3861    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3862$as_echo "unsupported" >&6; } ;;
3863  *)
3864    CC="$CC $ac_cv_prog_cc_c89"
3865    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3866$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3867esac
3868if test "x$ac_cv_prog_cc_c89" != xno; then :
3869
3870fi
3871
3872ac_ext=c
3873ac_cpp='$CPP $CPPFLAGS'
3874ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3875ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3876ac_compiler_gnu=$ac_cv_c_compiler_gnu
3877
3878ac_ext=c
3879ac_cpp='$CPP $CPPFLAGS'
3880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3882ac_compiler_gnu=$ac_cv_c_compiler_gnu
3883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3884$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3885if ${am_cv_prog_cc_c_o+:} false; then :
3886  $as_echo_n "(cached) " >&6
3887else
3888  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3889/* end confdefs.h.  */
3890
3891int
3892main ()
3893{
3894
3895  ;
3896  return 0;
3897}
3898_ACEOF
3899  # Make sure it works both with $CC and with simple cc.
3900  # Following AC_PROG_CC_C_O, we do the test twice because some
3901  # compilers refuse to overwrite an existing .o file with -o,
3902  # though they will create one.
3903  am_cv_prog_cc_c_o=yes
3904  for am_i in 1 2; do
3905    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3906   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3907   ac_status=$?
3908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909   (exit $ac_status); } \
3910         && test -f conftest2.$ac_objext; then
3911      : OK
3912    else
3913      am_cv_prog_cc_c_o=no
3914      break
3915    fi
3916  done
3917  rm -f core conftest*
3918  unset am_i
3919fi
3920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3921$as_echo "$am_cv_prog_cc_c_o" >&6; }
3922if test "$am_cv_prog_cc_c_o" != yes; then
3923   # Losing compiler, so override with the script.
3924   # FIXME: It is wrong to rewrite CC.
3925   # But if we don't then we get into trouble of one sort or another.
3926   # A longer-term fix would be to have automake use am__CC in this case,
3927   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3928   CC="$am_aux_dir/compile $CC"
3929fi
3930ac_ext=c
3931ac_cpp='$CPP $CPPFLAGS'
3932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3934ac_compiler_gnu=$ac_cv_c_compiler_gnu
3935
3936DEPDIR="${am__leading_dot}deps"
3937
3938ac_config_commands="$ac_config_commands depfiles"
3939
3940
3941am_make=${MAKE-make}
3942cat > confinc << 'END'
3943am__doit:
3944	@echo this is the am__doit target
3945.PHONY: am__doit
3946END
3947# If we don't find an include directive, just comment out the code.
3948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3949$as_echo_n "checking for style of include used by $am_make... " >&6; }
3950am__include="#"
3951am__quote=
3952_am_result=none
3953# First try GNU make style include.
3954echo "include confinc" > confmf
3955# Ignore all kinds of additional output from 'make'.
3956case `$am_make -s -f confmf 2> /dev/null` in #(
3957*the\ am__doit\ target*)
3958  am__include=include
3959  am__quote=
3960  _am_result=GNU
3961  ;;
3962esac
3963# Now try BSD make style include.
3964if test "$am__include" = "#"; then
3965   echo '.include "confinc"' > confmf
3966   case `$am_make -s -f confmf 2> /dev/null` in #(
3967   *the\ am__doit\ target*)
3968     am__include=.include
3969     am__quote="\""
3970     _am_result=BSD
3971     ;;
3972   esac
3973fi
3974
3975
3976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3977$as_echo "$_am_result" >&6; }
3978rm -f confinc confmf
3979
3980# Check whether --enable-dependency-tracking was given.
3981if test "${enable_dependency_tracking+set}" = set; then :
3982  enableval=$enable_dependency_tracking;
3983fi
3984
3985if test "x$enable_dependency_tracking" != xno; then
3986  am_depcomp="$ac_aux_dir/depcomp"
3987  AMDEPBACKSLASH='\'
3988  am__nodep='_no'
3989fi
3990 if test "x$enable_dependency_tracking" != xno; then
3991  AMDEP_TRUE=
3992  AMDEP_FALSE='#'
3993else
3994  AMDEP_TRUE='#'
3995  AMDEP_FALSE=
3996fi
3997
3998
3999
4000depcc="$CC"   am_compiler_list=
4001
4002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4003$as_echo_n "checking dependency style of $depcc... " >&6; }
4004if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4005  $as_echo_n "(cached) " >&6
4006else
4007  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4008  # We make a subdir and do the tests there.  Otherwise we can end up
4009  # making bogus files that we don't know about and never remove.  For
4010  # instance it was reported that on HP-UX the gcc test will end up
4011  # making a dummy file named 'D' -- because '-MD' means "put the output
4012  # in D".
4013  rm -rf conftest.dir
4014  mkdir conftest.dir
4015  # Copy depcomp to subdir because otherwise we won't find it if we're
4016  # using a relative directory.
4017  cp "$am_depcomp" conftest.dir
4018  cd conftest.dir
4019  # We will build objects and dependencies in a subdirectory because
4020  # it helps to detect inapplicable dependency modes.  For instance
4021  # both Tru64's cc and ICC support -MD to output dependencies as a
4022  # side effect of compilation, but ICC will put the dependencies in
4023  # the current directory while Tru64 will put them in the object
4024  # directory.
4025  mkdir sub
4026
4027  am_cv_CC_dependencies_compiler_type=none
4028  if test "$am_compiler_list" = ""; then
4029     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4030  fi
4031  am__universal=false
4032  case " $depcc " in #(
4033     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4034     esac
4035
4036  for depmode in $am_compiler_list; do
4037    # Setup a source with many dependencies, because some compilers
4038    # like to wrap large dependency lists on column 80 (with \), and
4039    # we should not choose a depcomp mode which is confused by this.
4040    #
4041    # We need to recreate these files for each test, as the compiler may
4042    # overwrite some of them when testing with obscure command lines.
4043    # This happens at least with the AIX C compiler.
4044    : > sub/conftest.c
4045    for i in 1 2 3 4 5 6; do
4046      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4047      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4048      # Solaris 10 /bin/sh.
4049      echo '/* dummy */' > sub/conftst$i.h
4050    done
4051    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4052
4053    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4054    # mode.  It turns out that the SunPro C++ compiler does not properly
4055    # handle '-M -o', and we need to detect this.  Also, some Intel
4056    # versions had trouble with output in subdirs.
4057    am__obj=sub/conftest.${OBJEXT-o}
4058    am__minus_obj="-o $am__obj"
4059    case $depmode in
4060    gcc)
4061      # This depmode causes a compiler race in universal mode.
4062      test "$am__universal" = false || continue
4063      ;;
4064    nosideeffect)
4065      # After this tag, mechanisms are not by side-effect, so they'll
4066      # only be used when explicitly requested.
4067      if test "x$enable_dependency_tracking" = xyes; then
4068	continue
4069      else
4070	break
4071      fi
4072      ;;
4073    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4074      # This compiler won't grok '-c -o', but also, the minuso test has
4075      # not run yet.  These depmodes are late enough in the game, and
4076      # so weak that their functioning should not be impacted.
4077      am__obj=conftest.${OBJEXT-o}
4078      am__minus_obj=
4079      ;;
4080    none) break ;;
4081    esac
4082    if depmode=$depmode \
4083       source=sub/conftest.c object=$am__obj \
4084       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4085       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4086         >/dev/null 2>conftest.err &&
4087       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4088       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4089       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4090       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4091      # icc doesn't choke on unknown options, it will just issue warnings
4092      # or remarks (even with -Werror).  So we grep stderr for any message
4093      # that says an option was ignored or not supported.
4094      # When given -MP, icc 7.0 and 7.1 complain thusly:
4095      #   icc: Command line warning: ignoring option '-M'; no argument required
4096      # The diagnosis changed in icc 8.0:
4097      #   icc: Command line remark: option '-MP' not supported
4098      if (grep 'ignoring option' conftest.err ||
4099          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4100        am_cv_CC_dependencies_compiler_type=$depmode
4101        break
4102      fi
4103    fi
4104  done
4105
4106  cd ..
4107  rm -rf conftest.dir
4108else
4109  am_cv_CC_dependencies_compiler_type=none
4110fi
4111
4112fi
4113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4114$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4115CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4116
4117 if
4118  test "x$enable_dependency_tracking" != xno \
4119  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4120  am__fastdepCC_TRUE=
4121  am__fastdepCC_FALSE='#'
4122else
4123  am__fastdepCC_TRUE='#'
4124  am__fastdepCC_FALSE=
4125fi
4126
4127
4128for ac_prog in gawk mawk nawk awk
4129do
4130  # Extract the first word of "$ac_prog", so it can be a program name with args.
4131set dummy $ac_prog; ac_word=$2
4132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4133$as_echo_n "checking for $ac_word... " >&6; }
4134if ${ac_cv_prog_AWK+:} false; then :
4135  $as_echo_n "(cached) " >&6
4136else
4137  if test -n "$AWK"; then
4138  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4139else
4140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4141for as_dir in $PATH
4142do
4143  IFS=$as_save_IFS
4144  test -z "$as_dir" && as_dir=.
4145    for ac_exec_ext in '' $ac_executable_extensions; do
4146  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4147    ac_cv_prog_AWK="$ac_prog"
4148    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4149    break 2
4150  fi
4151done
4152  done
4153IFS=$as_save_IFS
4154
4155fi
4156fi
4157AWK=$ac_cv_prog_AWK
4158if test -n "$AWK"; then
4159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4160$as_echo "$AWK" >&6; }
4161else
4162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4163$as_echo "no" >&6; }
4164fi
4165
4166
4167  test -n "$AWK" && break
4168done
4169
4170ac_ext=cpp
4171ac_cpp='$CXXCPP $CPPFLAGS'
4172ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4173ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4174ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4175if test -z "$CXX"; then
4176  if test -n "$CCC"; then
4177    CXX=$CCC
4178  else
4179    if test -n "$ac_tool_prefix"; then
4180  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4181  do
4182    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4183set dummy $ac_tool_prefix$ac_prog; 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_CXX+:} false; then :
4187  $as_echo_n "(cached) " >&6
4188else
4189  if test -n "$CXX"; then
4190  ac_cv_prog_CXX="$CXX" # 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_CXX="$ac_tool_prefix$ac_prog"
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
4209CXX=$ac_cv_prog_CXX
4210if test -n "$CXX"; then
4211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4212$as_echo "$CXX" >&6; }
4213else
4214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4215$as_echo "no" >&6; }
4216fi
4217
4218
4219    test -n "$CXX" && break
4220  done
4221fi
4222if test -z "$CXX"; then
4223  ac_ct_CXX=$CXX
4224  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4225do
4226  # Extract the first word of "$ac_prog", so it can be a program name with args.
4227set dummy $ac_prog; ac_word=$2
4228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4229$as_echo_n "checking for $ac_word... " >&6; }
4230if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4231  $as_echo_n "(cached) " >&6
4232else
4233  if test -n "$ac_ct_CXX"; then
4234  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4235else
4236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4237for as_dir in $PATH
4238do
4239  IFS=$as_save_IFS
4240  test -z "$as_dir" && as_dir=.
4241    for ac_exec_ext in '' $ac_executable_extensions; do
4242  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4243    ac_cv_prog_ac_ct_CXX="$ac_prog"
4244    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4245    break 2
4246  fi
4247done
4248  done
4249IFS=$as_save_IFS
4250
4251fi
4252fi
4253ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4254if test -n "$ac_ct_CXX"; then
4255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4256$as_echo "$ac_ct_CXX" >&6; }
4257else
4258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4259$as_echo "no" >&6; }
4260fi
4261
4262
4263  test -n "$ac_ct_CXX" && break
4264done
4265
4266  if test "x$ac_ct_CXX" = x; then
4267    CXX="g++"
4268  else
4269    case $cross_compiling:$ac_tool_warned in
4270yes:)
4271{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4272$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4273ac_tool_warned=yes ;;
4274esac
4275    CXX=$ac_ct_CXX
4276  fi
4277fi
4278
4279  fi
4280fi
4281# Provide some information about the compiler.
4282$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4283set X $ac_compile
4284ac_compiler=$2
4285for ac_option in --version -v -V -qversion; do
4286  { { ac_try="$ac_compiler $ac_option >&5"
4287case "(($ac_try" in
4288  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4289  *) ac_try_echo=$ac_try;;
4290esac
4291eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4292$as_echo "$ac_try_echo"; } >&5
4293  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4294  ac_status=$?
4295  if test -s conftest.err; then
4296    sed '10a\
4297... rest of stderr output deleted ...
4298         10q' conftest.err >conftest.er1
4299    cat conftest.er1 >&5
4300  fi
4301  rm -f conftest.er1 conftest.err
4302  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4303  test $ac_status = 0; }
4304done
4305
4306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4307$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4308if ${ac_cv_cxx_compiler_gnu+:} false; then :
4309  $as_echo_n "(cached) " >&6
4310else
4311  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4312/* end confdefs.h.  */
4313
4314int
4315main ()
4316{
4317#ifndef __GNUC__
4318       choke me
4319#endif
4320
4321  ;
4322  return 0;
4323}
4324_ACEOF
4325if ac_fn_cxx_try_compile "$LINENO"; then :
4326  ac_compiler_gnu=yes
4327else
4328  ac_compiler_gnu=no
4329fi
4330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4331ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4332
4333fi
4334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4335$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4336if test $ac_compiler_gnu = yes; then
4337  GXX=yes
4338else
4339  GXX=
4340fi
4341ac_test_CXXFLAGS=${CXXFLAGS+set}
4342ac_save_CXXFLAGS=$CXXFLAGS
4343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4344$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4345if ${ac_cv_prog_cxx_g+:} false; then :
4346  $as_echo_n "(cached) " >&6
4347else
4348  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4349   ac_cxx_werror_flag=yes
4350   ac_cv_prog_cxx_g=no
4351   CXXFLAGS="-g"
4352   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4353/* end confdefs.h.  */
4354
4355int
4356main ()
4357{
4358
4359  ;
4360  return 0;
4361}
4362_ACEOF
4363if ac_fn_cxx_try_compile "$LINENO"; then :
4364  ac_cv_prog_cxx_g=yes
4365else
4366  CXXFLAGS=""
4367      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4368/* end confdefs.h.  */
4369
4370int
4371main ()
4372{
4373
4374  ;
4375  return 0;
4376}
4377_ACEOF
4378if ac_fn_cxx_try_compile "$LINENO"; then :
4379
4380else
4381  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4382	 CXXFLAGS="-g"
4383	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4384/* end confdefs.h.  */
4385
4386int
4387main ()
4388{
4389
4390  ;
4391  return 0;
4392}
4393_ACEOF
4394if ac_fn_cxx_try_compile "$LINENO"; then :
4395  ac_cv_prog_cxx_g=yes
4396fi
4397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4398fi
4399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4400fi
4401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4402   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4403fi
4404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4405$as_echo "$ac_cv_prog_cxx_g" >&6; }
4406if test "$ac_test_CXXFLAGS" = set; then
4407  CXXFLAGS=$ac_save_CXXFLAGS
4408elif test $ac_cv_prog_cxx_g = yes; then
4409  if test "$GXX" = yes; then
4410    CXXFLAGS="-g -O2"
4411  else
4412    CXXFLAGS="-g"
4413  fi
4414else
4415  if test "$GXX" = yes; then
4416    CXXFLAGS="-O2"
4417  else
4418    CXXFLAGS=
4419  fi
4420fi
4421ac_ext=c
4422ac_cpp='$CPP $CPPFLAGS'
4423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4425ac_compiler_gnu=$ac_cv_c_compiler_gnu
4426
4427depcc="$CXX"  am_compiler_list=
4428
4429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4430$as_echo_n "checking dependency style of $depcc... " >&6; }
4431if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4432  $as_echo_n "(cached) " >&6
4433else
4434  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4435  # We make a subdir and do the tests there.  Otherwise we can end up
4436  # making bogus files that we don't know about and never remove.  For
4437  # instance it was reported that on HP-UX the gcc test will end up
4438  # making a dummy file named 'D' -- because '-MD' means "put the output
4439  # in D".
4440  rm -rf conftest.dir
4441  mkdir conftest.dir
4442  # Copy depcomp to subdir because otherwise we won't find it if we're
4443  # using a relative directory.
4444  cp "$am_depcomp" conftest.dir
4445  cd conftest.dir
4446  # We will build objects and dependencies in a subdirectory because
4447  # it helps to detect inapplicable dependency modes.  For instance
4448  # both Tru64's cc and ICC support -MD to output dependencies as a
4449  # side effect of compilation, but ICC will put the dependencies in
4450  # the current directory while Tru64 will put them in the object
4451  # directory.
4452  mkdir sub
4453
4454  am_cv_CXX_dependencies_compiler_type=none
4455  if test "$am_compiler_list" = ""; then
4456     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4457  fi
4458  am__universal=false
4459  case " $depcc " in #(
4460     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4461     esac
4462
4463  for depmode in $am_compiler_list; do
4464    # Setup a source with many dependencies, because some compilers
4465    # like to wrap large dependency lists on column 80 (with \), and
4466    # we should not choose a depcomp mode which is confused by this.
4467    #
4468    # We need to recreate these files for each test, as the compiler may
4469    # overwrite some of them when testing with obscure command lines.
4470    # This happens at least with the AIX C compiler.
4471    : > sub/conftest.c
4472    for i in 1 2 3 4 5 6; do
4473      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4474      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4475      # Solaris 10 /bin/sh.
4476      echo '/* dummy */' > sub/conftst$i.h
4477    done
4478    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4479
4480    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4481    # mode.  It turns out that the SunPro C++ compiler does not properly
4482    # handle '-M -o', and we need to detect this.  Also, some Intel
4483    # versions had trouble with output in subdirs.
4484    am__obj=sub/conftest.${OBJEXT-o}
4485    am__minus_obj="-o $am__obj"
4486    case $depmode in
4487    gcc)
4488      # This depmode causes a compiler race in universal mode.
4489      test "$am__universal" = false || continue
4490      ;;
4491    nosideeffect)
4492      # After this tag, mechanisms are not by side-effect, so they'll
4493      # only be used when explicitly requested.
4494      if test "x$enable_dependency_tracking" = xyes; then
4495	continue
4496      else
4497	break
4498      fi
4499      ;;
4500    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4501      # This compiler won't grok '-c -o', but also, the minuso test has
4502      # not run yet.  These depmodes are late enough in the game, and
4503      # so weak that their functioning should not be impacted.
4504      am__obj=conftest.${OBJEXT-o}
4505      am__minus_obj=
4506      ;;
4507    none) break ;;
4508    esac
4509    if depmode=$depmode \
4510       source=sub/conftest.c object=$am__obj \
4511       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4512       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4513         >/dev/null 2>conftest.err &&
4514       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4515       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4516       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4517       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4518      # icc doesn't choke on unknown options, it will just issue warnings
4519      # or remarks (even with -Werror).  So we grep stderr for any message
4520      # that says an option was ignored or not supported.
4521      # When given -MP, icc 7.0 and 7.1 complain thusly:
4522      #   icc: Command line warning: ignoring option '-M'; no argument required
4523      # The diagnosis changed in icc 8.0:
4524      #   icc: Command line remark: option '-MP' not supported
4525      if (grep 'ignoring option' conftest.err ||
4526          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4527        am_cv_CXX_dependencies_compiler_type=$depmode
4528        break
4529      fi
4530    fi
4531  done
4532
4533  cd ..
4534  rm -rf conftest.dir
4535else
4536  am_cv_CXX_dependencies_compiler_type=none
4537fi
4538
4539fi
4540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4541$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4542CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4543
4544 if
4545  test "x$enable_dependency_tracking" != xno \
4546  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4547  am__fastdepCXX_TRUE=
4548  am__fastdepCXX_FALSE='#'
4549else
4550  am__fastdepCXX_TRUE='#'
4551  am__fastdepCXX_FALSE=
4552fi
4553
4554
4555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4556$as_echo_n "checking whether ln -s works... " >&6; }
4557LN_S=$as_ln_s
4558if test "$LN_S" = "ln -s"; then
4559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4560$as_echo "yes" >&6; }
4561else
4562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4563$as_echo "no, using $LN_S" >&6; }
4564fi
4565
4566
4567ac_ext=c
4568ac_cpp='$CPP $CPPFLAGS'
4569ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4570ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4571ac_compiler_gnu=$ac_cv_c_compiler_gnu
4572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4573$as_echo_n "checking how to run the C preprocessor... " >&6; }
4574# On Suns, sometimes $CPP names a directory.
4575if test -n "$CPP" && test -d "$CPP"; then
4576  CPP=
4577fi
4578if test -z "$CPP"; then
4579  if ${ac_cv_prog_CPP+:} false; then :
4580  $as_echo_n "(cached) " >&6
4581else
4582      # Double quotes because CPP needs to be expanded
4583    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4584    do
4585      ac_preproc_ok=false
4586for ac_c_preproc_warn_flag in '' yes
4587do
4588  # Use a header file that comes with gcc, so configuring glibc
4589  # with a fresh cross-compiler works.
4590  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4591  # <limits.h> exists even on freestanding compilers.
4592  # On the NeXT, cc -E runs the code through the compiler's parser,
4593  # not just through cpp. "Syntax error" is here to catch this case.
4594  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4595/* end confdefs.h.  */
4596#ifdef __STDC__
4597# include <limits.h>
4598#else
4599# include <assert.h>
4600#endif
4601		     Syntax error
4602_ACEOF
4603if ac_fn_c_try_cpp "$LINENO"; then :
4604
4605else
4606  # Broken: fails on valid input.
4607continue
4608fi
4609rm -f conftest.err conftest.i conftest.$ac_ext
4610
4611  # OK, works on sane cases.  Now check whether nonexistent headers
4612  # can be detected and how.
4613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4614/* end confdefs.h.  */
4615#include <ac_nonexistent.h>
4616_ACEOF
4617if ac_fn_c_try_cpp "$LINENO"; then :
4618  # Broken: success on invalid input.
4619continue
4620else
4621  # Passes both tests.
4622ac_preproc_ok=:
4623break
4624fi
4625rm -f conftest.err conftest.i conftest.$ac_ext
4626
4627done
4628# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4629rm -f conftest.i conftest.err conftest.$ac_ext
4630if $ac_preproc_ok; then :
4631  break
4632fi
4633
4634    done
4635    ac_cv_prog_CPP=$CPP
4636
4637fi
4638  CPP=$ac_cv_prog_CPP
4639else
4640  ac_cv_prog_CPP=$CPP
4641fi
4642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4643$as_echo "$CPP" >&6; }
4644ac_preproc_ok=false
4645for ac_c_preproc_warn_flag in '' yes
4646do
4647  # Use a header file that comes with gcc, so configuring glibc
4648  # with a fresh cross-compiler works.
4649  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4650  # <limits.h> exists even on freestanding compilers.
4651  # On the NeXT, cc -E runs the code through the compiler's parser,
4652  # not just through cpp. "Syntax error" is here to catch this case.
4653  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4654/* end confdefs.h.  */
4655#ifdef __STDC__
4656# include <limits.h>
4657#else
4658# include <assert.h>
4659#endif
4660		     Syntax error
4661_ACEOF
4662if ac_fn_c_try_cpp "$LINENO"; then :
4663
4664else
4665  # Broken: fails on valid input.
4666continue
4667fi
4668rm -f conftest.err conftest.i conftest.$ac_ext
4669
4670  # OK, works on sane cases.  Now check whether nonexistent headers
4671  # can be detected and how.
4672  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4673/* end confdefs.h.  */
4674#include <ac_nonexistent.h>
4675_ACEOF
4676if ac_fn_c_try_cpp "$LINENO"; then :
4677  # Broken: success on invalid input.
4678continue
4679else
4680  # Passes both tests.
4681ac_preproc_ok=:
4682break
4683fi
4684rm -f conftest.err conftest.i conftest.$ac_ext
4685
4686done
4687# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4688rm -f conftest.i conftest.err conftest.$ac_ext
4689if $ac_preproc_ok; then :
4690
4691else
4692  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4693$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4694as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4695See \`config.log' for more details" "$LINENO" 5; }
4696fi
4697
4698ac_ext=c
4699ac_cpp='$CPP $CPPFLAGS'
4700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4702ac_compiler_gnu=$ac_cv_c_compiler_gnu
4703
4704
4705
4706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4707$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4708if ${ac_cv_path_SED+:} false; then :
4709  $as_echo_n "(cached) " >&6
4710else
4711            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4712     for ac_i in 1 2 3 4 5 6 7; do
4713       ac_script="$ac_script$as_nl$ac_script"
4714     done
4715     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4716     { ac_script=; unset ac_script;}
4717     if test -z "$SED"; then
4718  ac_path_SED_found=false
4719  # Loop through the user's path and test for each of PROGNAME-LIST
4720  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4721for as_dir in $PATH
4722do
4723  IFS=$as_save_IFS
4724  test -z "$as_dir" && as_dir=.
4725    for ac_prog in sed gsed; do
4726    for ac_exec_ext in '' $ac_executable_extensions; do
4727      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4728      as_fn_executable_p "$ac_path_SED" || continue
4729# Check for GNU ac_path_SED and select it if it is found.
4730  # Check for GNU $ac_path_SED
4731case `"$ac_path_SED" --version 2>&1` in
4732*GNU*)
4733  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4734*)
4735  ac_count=0
4736  $as_echo_n 0123456789 >"conftest.in"
4737  while :
4738  do
4739    cat "conftest.in" "conftest.in" >"conftest.tmp"
4740    mv "conftest.tmp" "conftest.in"
4741    cp "conftest.in" "conftest.nl"
4742    $as_echo '' >> "conftest.nl"
4743    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4744    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4745    as_fn_arith $ac_count + 1 && ac_count=$as_val
4746    if test $ac_count -gt ${ac_path_SED_max-0}; then
4747      # Best one so far, save it but keep looking for a better one
4748      ac_cv_path_SED="$ac_path_SED"
4749      ac_path_SED_max=$ac_count
4750    fi
4751    # 10*(2^10) chars as input seems more than enough
4752    test $ac_count -gt 10 && break
4753  done
4754  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4755esac
4756
4757      $ac_path_SED_found && break 3
4758    done
4759  done
4760  done
4761IFS=$as_save_IFS
4762  if test -z "$ac_cv_path_SED"; then
4763    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4764  fi
4765else
4766  ac_cv_path_SED=$SED
4767fi
4768
4769fi
4770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4771$as_echo "$ac_cv_path_SED" >&6; }
4772 SED="$ac_cv_path_SED"
4773  rm -f conftest.sed
4774
4775
4776  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4777$as_echo_n "checking whether NLS is requested... " >&6; }
4778    # Check whether --enable-nls was given.
4779if test "${enable_nls+set}" = set; then :
4780  enableval=$enable_nls; USE_NLS=$enableval
4781else
4782  USE_NLS=yes
4783fi
4784
4785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
4786$as_echo "$USE_NLS" >&6; }
4787
4788
4789
4790
4791      GETTEXT_MACRO_VERSION=0.18
4792
4793
4794
4795
4796# Prepare PATH_SEPARATOR.
4797# The user is always right.
4798if test "${PATH_SEPARATOR+set}" != set; then
4799  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
4800  # contains only /bin. Note that ksh looks also at the FPATH variable,
4801  # so we have to set that as well for the test.
4802  PATH_SEPARATOR=:
4803  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
4804    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
4805           || PATH_SEPARATOR=';'
4806       }
4807fi
4808
4809# Find out how to test for executable files. Don't use a zero-byte file,
4810# as systems may use methods other than mode bits to determine executability.
4811cat >conf$$.file <<_ASEOF
4812#! /bin/sh
4813exit 0
4814_ASEOF
4815chmod +x conf$$.file
4816if test -x conf$$.file >/dev/null 2>&1; then
4817  ac_executable_p="test -x"
4818else
4819  ac_executable_p="test -f"
4820fi
4821rm -f conf$$.file
4822
4823# Extract the first word of "msgfmt", so it can be a program name with args.
4824set dummy msgfmt; ac_word=$2
4825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4826$as_echo_n "checking for $ac_word... " >&6; }
4827if ${ac_cv_path_MSGFMT+:} false; then :
4828  $as_echo_n "(cached) " >&6
4829else
4830  case "$MSGFMT" in
4831  [\\/]* | ?:[\\/]*)
4832    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4833    ;;
4834  *)
4835    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4836    for ac_dir in $PATH; do
4837      IFS="$ac_save_IFS"
4838      test -z "$ac_dir" && ac_dir=.
4839      for ac_exec_ext in '' $ac_executable_extensions; do
4840        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4841          echo "$as_me: trying $ac_dir/$ac_word..." >&5
4842          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4843     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4844            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4845            break 2
4846          fi
4847        fi
4848      done
4849    done
4850    IFS="$ac_save_IFS"
4851  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4852    ;;
4853esac
4854fi
4855MSGFMT="$ac_cv_path_MSGFMT"
4856if test "$MSGFMT" != ":"; then
4857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
4858$as_echo "$MSGFMT" >&6; }
4859else
4860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4861$as_echo "no" >&6; }
4862fi
4863
4864  # Extract the first word of "gmsgfmt", so it can be a program name with args.
4865set dummy gmsgfmt; ac_word=$2
4866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4867$as_echo_n "checking for $ac_word... " >&6; }
4868if ${ac_cv_path_GMSGFMT+:} false; then :
4869  $as_echo_n "(cached) " >&6
4870else
4871  case $GMSGFMT in
4872  [\\/]* | ?:[\\/]*)
4873  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4874  ;;
4875  *)
4876  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877for as_dir in $PATH
4878do
4879  IFS=$as_save_IFS
4880  test -z "$as_dir" && as_dir=.
4881    for ac_exec_ext in '' $ac_executable_extensions; do
4882  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4883    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4884    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4885    break 2
4886  fi
4887done
4888  done
4889IFS=$as_save_IFS
4890
4891  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4892  ;;
4893esac
4894fi
4895GMSGFMT=$ac_cv_path_GMSGFMT
4896if test -n "$GMSGFMT"; then
4897  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
4898$as_echo "$GMSGFMT" >&6; }
4899else
4900  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4901$as_echo "no" >&6; }
4902fi
4903
4904
4905
4906    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4907    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
4908    *) MSGFMT_015=$MSGFMT ;;
4909  esac
4910
4911  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4912    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
4913    *) GMSGFMT_015=$GMSGFMT ;;
4914  esac
4915
4916
4917
4918# Prepare PATH_SEPARATOR.
4919# The user is always right.
4920if test "${PATH_SEPARATOR+set}" != set; then
4921  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
4922  # contains only /bin. Note that ksh looks also at the FPATH variable,
4923  # so we have to set that as well for the test.
4924  PATH_SEPARATOR=:
4925  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
4926    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
4927           || PATH_SEPARATOR=';'
4928       }
4929fi
4930
4931# Find out how to test for executable files. Don't use a zero-byte file,
4932# as systems may use methods other than mode bits to determine executability.
4933cat >conf$$.file <<_ASEOF
4934#! /bin/sh
4935exit 0
4936_ASEOF
4937chmod +x conf$$.file
4938if test -x conf$$.file >/dev/null 2>&1; then
4939  ac_executable_p="test -x"
4940else
4941  ac_executable_p="test -f"
4942fi
4943rm -f conf$$.file
4944
4945# Extract the first word of "xgettext", so it can be a program name with args.
4946set dummy xgettext; ac_word=$2
4947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4948$as_echo_n "checking for $ac_word... " >&6; }
4949if ${ac_cv_path_XGETTEXT+:} false; then :
4950  $as_echo_n "(cached) " >&6
4951else
4952  case "$XGETTEXT" in
4953  [\\/]* | ?:[\\/]*)
4954    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4955    ;;
4956  *)
4957    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4958    for ac_dir in $PATH; do
4959      IFS="$ac_save_IFS"
4960      test -z "$ac_dir" && ac_dir=.
4961      for ac_exec_ext in '' $ac_executable_extensions; do
4962        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4963          echo "$as_me: trying $ac_dir/$ac_word..." >&5
4964          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
4965     (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
4966            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4967            break 2
4968          fi
4969        fi
4970      done
4971    done
4972    IFS="$ac_save_IFS"
4973  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4974    ;;
4975esac
4976fi
4977XGETTEXT="$ac_cv_path_XGETTEXT"
4978if test "$XGETTEXT" != ":"; then
4979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
4980$as_echo "$XGETTEXT" >&6; }
4981else
4982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4983$as_echo "no" >&6; }
4984fi
4985
4986    rm -f messages.po
4987
4988    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4989    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
4990    *) XGETTEXT_015=$XGETTEXT ;;
4991  esac
4992
4993
4994
4995# Prepare PATH_SEPARATOR.
4996# The user is always right.
4997if test "${PATH_SEPARATOR+set}" != set; then
4998  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
4999  # contains only /bin. Note that ksh looks also at the FPATH variable,
5000  # so we have to set that as well for the test.
5001  PATH_SEPARATOR=:
5002  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5003    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5004           || PATH_SEPARATOR=';'
5005       }
5006fi
5007
5008# Find out how to test for executable files. Don't use a zero-byte file,
5009# as systems may use methods other than mode bits to determine executability.
5010cat >conf$$.file <<_ASEOF
5011#! /bin/sh
5012exit 0
5013_ASEOF
5014chmod +x conf$$.file
5015if test -x conf$$.file >/dev/null 2>&1; then
5016  ac_executable_p="test -x"
5017else
5018  ac_executable_p="test -f"
5019fi
5020rm -f conf$$.file
5021
5022# Extract the first word of "msgmerge", so it can be a program name with args.
5023set dummy msgmerge; ac_word=$2
5024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5025$as_echo_n "checking for $ac_word... " >&6; }
5026if ${ac_cv_path_MSGMERGE+:} false; then :
5027  $as_echo_n "(cached) " >&6
5028else
5029  case "$MSGMERGE" in
5030  [\\/]* | ?:[\\/]*)
5031    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5032    ;;
5033  *)
5034    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5035    for ac_dir in $PATH; do
5036      IFS="$ac_save_IFS"
5037      test -z "$ac_dir" && ac_dir=.
5038      for ac_exec_ext in '' $ac_executable_extensions; do
5039        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5040          echo "$as_me: trying $ac_dir/$ac_word..." >&5
5041          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5042            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5043            break 2
5044          fi
5045        fi
5046      done
5047    done
5048    IFS="$ac_save_IFS"
5049  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5050    ;;
5051esac
5052fi
5053MSGMERGE="$ac_cv_path_MSGMERGE"
5054if test "$MSGMERGE" != ":"; then
5055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5056$as_echo "$MSGMERGE" >&6; }
5057else
5058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5059$as_echo "no" >&6; }
5060fi
5061
5062
5063        test -n "$localedir" || localedir='${datadir}/locale'
5064
5065
5066    test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
5067
5068
5069  ac_config_commands="$ac_config_commands po-directories"
5070
5071
5072
5073      if test "X$prefix" = "XNONE"; then
5074    acl_final_prefix="$ac_default_prefix"
5075  else
5076    acl_final_prefix="$prefix"
5077  fi
5078  if test "X$exec_prefix" = "XNONE"; then
5079    acl_final_exec_prefix='${prefix}'
5080  else
5081    acl_final_exec_prefix="$exec_prefix"
5082  fi
5083  acl_save_prefix="$prefix"
5084  prefix="$acl_final_prefix"
5085  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5086  prefix="$acl_save_prefix"
5087
5088# Make sure we can run config.sub.
5089$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5090  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5091
5092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5093$as_echo_n "checking build system type... " >&6; }
5094if ${ac_cv_build+:} false; then :
5095  $as_echo_n "(cached) " >&6
5096else
5097  ac_build_alias=$build_alias
5098test "x$ac_build_alias" = x &&
5099  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5100test "x$ac_build_alias" = x &&
5101  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5102ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5103  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5104
5105fi
5106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5107$as_echo "$ac_cv_build" >&6; }
5108case $ac_cv_build in
5109*-*-*) ;;
5110*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5111esac
5112build=$ac_cv_build
5113ac_save_IFS=$IFS; IFS='-'
5114set x $ac_cv_build
5115shift
5116build_cpu=$1
5117build_vendor=$2
5118shift; shift
5119# Remember, the first character of IFS is used to create $*,
5120# except with old shells:
5121build_os=$*
5122IFS=$ac_save_IFS
5123case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5124
5125
5126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5127$as_echo_n "checking host system type... " >&6; }
5128if ${ac_cv_host+:} false; then :
5129  $as_echo_n "(cached) " >&6
5130else
5131  if test "x$host_alias" = x; then
5132  ac_cv_host=$ac_cv_build
5133else
5134  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5135    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5136fi
5137
5138fi
5139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5140$as_echo "$ac_cv_host" >&6; }
5141case $ac_cv_host in
5142*-*-*) ;;
5143*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5144esac
5145host=$ac_cv_host
5146ac_save_IFS=$IFS; IFS='-'
5147set x $ac_cv_host
5148shift
5149host_cpu=$1
5150host_vendor=$2
5151shift; shift
5152# Remember, the first character of IFS is used to create $*,
5153# except with old shells:
5154host_os=$*
5155IFS=$ac_save_IFS
5156case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5157
5158
5159
5160
5161# Check whether --with-gnu-ld was given.
5162if test "${with_gnu_ld+set}" = set; then :
5163  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5164else
5165  with_gnu_ld=no
5166fi
5167
5168# Prepare PATH_SEPARATOR.
5169# The user is always right.
5170if test "${PATH_SEPARATOR+set}" != set; then
5171  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5172  # contains only /bin. Note that ksh looks also at the FPATH variable,
5173  # so we have to set that as well for the test.
5174  PATH_SEPARATOR=:
5175  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5176    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5177           || PATH_SEPARATOR=';'
5178       }
5179fi
5180
5181ac_prog=ld
5182if test "$GCC" = yes; then
5183  # Check if gcc -print-prog-name=ld gives a path.
5184  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5185$as_echo_n "checking for ld used by $CC... " >&6; }
5186  case $host in
5187  *-*-mingw*)
5188    # gcc leaves a trailing carriage return which upsets mingw
5189    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5190  *)
5191    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5192  esac
5193  case $ac_prog in
5194    # Accept absolute paths.
5195    [\\/]* | ?:[\\/]*)
5196      re_direlt='/[^/][^/]*/\.\./'
5197      # Canonicalize the pathname of ld
5198      ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
5199      while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
5200        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5201      done
5202      test -z "$LD" && LD="$ac_prog"
5203      ;;
5204  "")
5205    # If it fails, then pretend we aren't using GCC.
5206    ac_prog=ld
5207    ;;
5208  *)
5209    # If it is relative, then search for the first ld in PATH.
5210    with_gnu_ld=unknown
5211    ;;
5212  esac
5213elif test "$with_gnu_ld" = yes; then
5214  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5215$as_echo_n "checking for GNU ld... " >&6; }
5216else
5217  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5218$as_echo_n "checking for non-GNU ld... " >&6; }
5219fi
5220if ${acl_cv_path_LD+:} false; then :
5221  $as_echo_n "(cached) " >&6
5222else
5223  if test -z "$LD"; then
5224  acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5225  for ac_dir in $PATH; do
5226    IFS="$acl_save_ifs"
5227    test -z "$ac_dir" && ac_dir=.
5228    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5229      acl_cv_path_LD="$ac_dir/$ac_prog"
5230      # Check to see if the program is GNU ld.  I'd rather use --version,
5231      # but apparently some variants of GNU ld only accept -v.
5232      # Break only if it was the GNU/non-GNU ld that we prefer.
5233      case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
5234      *GNU* | *'with BFD'*)
5235        test "$with_gnu_ld" != no && break
5236        ;;
5237      *)
5238        test "$with_gnu_ld" != yes && break
5239        ;;
5240      esac
5241    fi
5242  done
5243  IFS="$acl_save_ifs"
5244else
5245  acl_cv_path_LD="$LD" # Let the user override the test with a path.
5246fi
5247fi
5248
5249LD="$acl_cv_path_LD"
5250if test -n "$LD"; then
5251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5252$as_echo "$LD" >&6; }
5253else
5254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5255$as_echo "no" >&6; }
5256fi
5257test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5259$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5260if ${acl_cv_prog_gnu_ld+:} false; then :
5261  $as_echo_n "(cached) " >&6
5262else
5263  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5264case `$LD -v 2>&1 </dev/null` in
5265*GNU* | *'with BFD'*)
5266  acl_cv_prog_gnu_ld=yes
5267  ;;
5268*)
5269  acl_cv_prog_gnu_ld=no
5270  ;;
5271esac
5272fi
5273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5274$as_echo "$acl_cv_prog_gnu_ld" >&6; }
5275with_gnu_ld=$acl_cv_prog_gnu_ld
5276
5277
5278
5279
5280                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5281$as_echo_n "checking for shared library run path origin... " >&6; }
5282if ${acl_cv_rpath+:} false; then :
5283  $as_echo_n "(cached) " >&6
5284else
5285
5286    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5287    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5288    . ./conftest.sh
5289    rm -f ./conftest.sh
5290    acl_cv_rpath=done
5291
5292fi
5293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5294$as_echo "$acl_cv_rpath" >&6; }
5295  wl="$acl_cv_wl"
5296  acl_libext="$acl_cv_libext"
5297  acl_shlibext="$acl_cv_shlibext"
5298  acl_libname_spec="$acl_cv_libname_spec"
5299  acl_library_names_spec="$acl_cv_library_names_spec"
5300  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5301  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5302  acl_hardcode_direct="$acl_cv_hardcode_direct"
5303  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5304    # Check whether --enable-rpath was given.
5305if test "${enable_rpath+set}" = set; then :
5306  enableval=$enable_rpath; :
5307else
5308  enable_rpath=yes
5309fi
5310
5311
5312
5313
5314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5315$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5316if ${ac_cv_path_GREP+:} false; then :
5317  $as_echo_n "(cached) " >&6
5318else
5319  if test -z "$GREP"; then
5320  ac_path_GREP_found=false
5321  # Loop through the user's path and test for each of PROGNAME-LIST
5322  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5323for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5324do
5325  IFS=$as_save_IFS
5326  test -z "$as_dir" && as_dir=.
5327    for ac_prog in grep ggrep; do
5328    for ac_exec_ext in '' $ac_executable_extensions; do
5329      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5330      as_fn_executable_p "$ac_path_GREP" || continue
5331# Check for GNU ac_path_GREP and select it if it is found.
5332  # Check for GNU $ac_path_GREP
5333case `"$ac_path_GREP" --version 2>&1` in
5334*GNU*)
5335  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5336*)
5337  ac_count=0
5338  $as_echo_n 0123456789 >"conftest.in"
5339  while :
5340  do
5341    cat "conftest.in" "conftest.in" >"conftest.tmp"
5342    mv "conftest.tmp" "conftest.in"
5343    cp "conftest.in" "conftest.nl"
5344    $as_echo 'GREP' >> "conftest.nl"
5345    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5346    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5347    as_fn_arith $ac_count + 1 && ac_count=$as_val
5348    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5349      # Best one so far, save it but keep looking for a better one
5350      ac_cv_path_GREP="$ac_path_GREP"
5351      ac_path_GREP_max=$ac_count
5352    fi
5353    # 10*(2^10) chars as input seems more than enough
5354    test $ac_count -gt 10 && break
5355  done
5356  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5357esac
5358
5359      $ac_path_GREP_found && break 3
5360    done
5361  done
5362  done
5363IFS=$as_save_IFS
5364  if test -z "$ac_cv_path_GREP"; then
5365    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5366  fi
5367else
5368  ac_cv_path_GREP=$GREP
5369fi
5370
5371fi
5372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5373$as_echo "$ac_cv_path_GREP" >&6; }
5374 GREP="$ac_cv_path_GREP"
5375
5376
5377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5378$as_echo_n "checking for egrep... " >&6; }
5379if ${ac_cv_path_EGREP+:} false; then :
5380  $as_echo_n "(cached) " >&6
5381else
5382  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5383   then ac_cv_path_EGREP="$GREP -E"
5384   else
5385     if test -z "$EGREP"; then
5386  ac_path_EGREP_found=false
5387  # Loop through the user's path and test for each of PROGNAME-LIST
5388  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5389for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5390do
5391  IFS=$as_save_IFS
5392  test -z "$as_dir" && as_dir=.
5393    for ac_prog in egrep; do
5394    for ac_exec_ext in '' $ac_executable_extensions; do
5395      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5396      as_fn_executable_p "$ac_path_EGREP" || continue
5397# Check for GNU ac_path_EGREP and select it if it is found.
5398  # Check for GNU $ac_path_EGREP
5399case `"$ac_path_EGREP" --version 2>&1` in
5400*GNU*)
5401  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5402*)
5403  ac_count=0
5404  $as_echo_n 0123456789 >"conftest.in"
5405  while :
5406  do
5407    cat "conftest.in" "conftest.in" >"conftest.tmp"
5408    mv "conftest.tmp" "conftest.in"
5409    cp "conftest.in" "conftest.nl"
5410    $as_echo 'EGREP' >> "conftest.nl"
5411    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5412    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5413    as_fn_arith $ac_count + 1 && ac_count=$as_val
5414    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5415      # Best one so far, save it but keep looking for a better one
5416      ac_cv_path_EGREP="$ac_path_EGREP"
5417      ac_path_EGREP_max=$ac_count
5418    fi
5419    # 10*(2^10) chars as input seems more than enough
5420    test $ac_count -gt 10 && break
5421  done
5422  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5423esac
5424
5425      $ac_path_EGREP_found && break 3
5426    done
5427  done
5428  done
5429IFS=$as_save_IFS
5430  if test -z "$ac_cv_path_EGREP"; then
5431    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5432  fi
5433else
5434  ac_cv_path_EGREP=$EGREP
5435fi
5436
5437   fi
5438fi
5439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5440$as_echo "$ac_cv_path_EGREP" >&6; }
5441 EGREP="$ac_cv_path_EGREP"
5442
5443
5444
5445
5446  acl_libdirstem=lib
5447  acl_libdirstem2=
5448  case "$host_os" in
5449    solaris*)
5450                                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
5451$as_echo_n "checking for 64-bit host... " >&6; }
5452if ${gl_cv_solaris_64bit+:} false; then :
5453  $as_echo_n "(cached) " >&6
5454else
5455  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5456/* end confdefs.h.  */
5457
5458#ifdef _LP64
5459sixtyfour bits
5460#endif
5461
5462_ACEOF
5463if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464  $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
5465  gl_cv_solaris_64bit=yes
5466else
5467  gl_cv_solaris_64bit=no
5468fi
5469rm -f conftest*
5470
5471
5472fi
5473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
5474$as_echo "$gl_cv_solaris_64bit" >&6; }
5475      if test $gl_cv_solaris_64bit = yes; then
5476        acl_libdirstem=lib/64
5477        case "$host_cpu" in
5478          sparc*)        acl_libdirstem2=lib/sparcv9 ;;
5479          i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
5480        esac
5481      fi
5482      ;;
5483    *)
5484      searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5485      if test -n "$searchpath"; then
5486        acl_save_IFS="${IFS= 	}"; IFS=":"
5487        for searchdir in $searchpath; do
5488          if test -d "$searchdir"; then
5489            case "$searchdir" in
5490              */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
5491              */../ | */.. )
5492                # Better ignore directories of this form. They are misleading.
5493                ;;
5494              *) searchdir=`cd "$searchdir" && pwd`
5495                 case "$searchdir" in
5496                   */lib64 ) acl_libdirstem=lib64 ;;
5497                 esac ;;
5498            esac
5499          fi
5500        done
5501        IFS="$acl_save_IFS"
5502      fi
5503      ;;
5504  esac
5505  test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518    use_additional=yes
5519
5520  acl_save_prefix="$prefix"
5521  prefix="$acl_final_prefix"
5522  acl_save_exec_prefix="$exec_prefix"
5523  exec_prefix="$acl_final_exec_prefix"
5524
5525    eval additional_includedir=\"$includedir\"
5526    eval additional_libdir=\"$libdir\"
5527
5528  exec_prefix="$acl_save_exec_prefix"
5529  prefix="$acl_save_prefix"
5530
5531
5532# Check whether --with-libiconv-prefix was given.
5533if test "${with_libiconv_prefix+set}" = set; then :
5534  withval=$with_libiconv_prefix;
5535    if test "X$withval" = "Xno"; then
5536      use_additional=no
5537    else
5538      if test "X$withval" = "X"; then
5539
5540  acl_save_prefix="$prefix"
5541  prefix="$acl_final_prefix"
5542  acl_save_exec_prefix="$exec_prefix"
5543  exec_prefix="$acl_final_exec_prefix"
5544
5545          eval additional_includedir=\"$includedir\"
5546          eval additional_libdir=\"$libdir\"
5547
5548  exec_prefix="$acl_save_exec_prefix"
5549  prefix="$acl_save_prefix"
5550
5551      else
5552        additional_includedir="$withval/include"
5553        additional_libdir="$withval/$acl_libdirstem"
5554        if test "$acl_libdirstem2" != "$acl_libdirstem" \
5555           && ! test -d "$withval/$acl_libdirstem"; then
5556          additional_libdir="$withval/$acl_libdirstem2"
5557        fi
5558      fi
5559    fi
5560
5561fi
5562
5563      LIBICONV=
5564  LTLIBICONV=
5565  INCICONV=
5566  LIBICONV_PREFIX=
5567      HAVE_LIBICONV=
5568  rpathdirs=
5569  ltrpathdirs=
5570  names_already_handled=
5571  names_next_round='iconv '
5572  while test -n "$names_next_round"; do
5573    names_this_round="$names_next_round"
5574    names_next_round=
5575    for name in $names_this_round; do
5576      already_handled=
5577      for n in $names_already_handled; do
5578        if test "$n" = "$name"; then
5579          already_handled=yes
5580          break
5581        fi
5582      done
5583      if test -z "$already_handled"; then
5584        names_already_handled="$names_already_handled $name"
5585                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
5586        eval value=\"\$HAVE_LIB$uppername\"
5587        if test -n "$value"; then
5588          if test "$value" = yes; then
5589            eval value=\"\$LIB$uppername\"
5590            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5591            eval value=\"\$LTLIB$uppername\"
5592            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5593          else
5594                                    :
5595          fi
5596        else
5597                              found_dir=
5598          found_la=
5599          found_so=
5600          found_a=
5601          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
5602          if test -n "$acl_shlibext"; then
5603            shrext=".$acl_shlibext"             # typically: shrext=.so
5604          else
5605            shrext=
5606          fi
5607          if test $use_additional = yes; then
5608            dir="$additional_libdir"
5609                                    if test -n "$acl_shlibext"; then
5610              if test -f "$dir/$libname$shrext"; then
5611                found_dir="$dir"
5612                found_so="$dir/$libname$shrext"
5613              else
5614                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5615                  ver=`(cd "$dir" && \
5616                        for f in "$libname$shrext".*; do echo "$f"; done \
5617                        | sed -e "s,^$libname$shrext\\\\.,," \
5618                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5619                        | sed 1q ) 2>/dev/null`
5620                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5621                    found_dir="$dir"
5622                    found_so="$dir/$libname$shrext.$ver"
5623                  fi
5624                else
5625                  eval library_names=\"$acl_library_names_spec\"
5626                  for f in $library_names; do
5627                    if test -f "$dir/$f"; then
5628                      found_dir="$dir"
5629                      found_so="$dir/$f"
5630                      break
5631                    fi
5632                  done
5633                fi
5634              fi
5635            fi
5636                        if test "X$found_dir" = "X"; then
5637              if test -f "$dir/$libname.$acl_libext"; then
5638                found_dir="$dir"
5639                found_a="$dir/$libname.$acl_libext"
5640              fi
5641            fi
5642            if test "X$found_dir" != "X"; then
5643              if test -f "$dir/$libname.la"; then
5644                found_la="$dir/$libname.la"
5645              fi
5646            fi
5647          fi
5648          if test "X$found_dir" = "X"; then
5649            for x in $LDFLAGS $LTLIBICONV; do
5650
5651  acl_save_prefix="$prefix"
5652  prefix="$acl_final_prefix"
5653  acl_save_exec_prefix="$exec_prefix"
5654  exec_prefix="$acl_final_exec_prefix"
5655  eval x=\"$x\"
5656  exec_prefix="$acl_save_exec_prefix"
5657  prefix="$acl_save_prefix"
5658
5659              case "$x" in
5660                -L*)
5661                  dir=`echo "X$x" | sed -e 's/^X-L//'`
5662                                    if test -n "$acl_shlibext"; then
5663                    if test -f "$dir/$libname$shrext"; then
5664                      found_dir="$dir"
5665                      found_so="$dir/$libname$shrext"
5666                    else
5667                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5668                        ver=`(cd "$dir" && \
5669                              for f in "$libname$shrext".*; do echo "$f"; done \
5670                              | sed -e "s,^$libname$shrext\\\\.,," \
5671                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5672                              | sed 1q ) 2>/dev/null`
5673                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5674                          found_dir="$dir"
5675                          found_so="$dir/$libname$shrext.$ver"
5676                        fi
5677                      else
5678                        eval library_names=\"$acl_library_names_spec\"
5679                        for f in $library_names; do
5680                          if test -f "$dir/$f"; then
5681                            found_dir="$dir"
5682                            found_so="$dir/$f"
5683                            break
5684                          fi
5685                        done
5686                      fi
5687                    fi
5688                  fi
5689                                    if test "X$found_dir" = "X"; then
5690                    if test -f "$dir/$libname.$acl_libext"; then
5691                      found_dir="$dir"
5692                      found_a="$dir/$libname.$acl_libext"
5693                    fi
5694                  fi
5695                  if test "X$found_dir" != "X"; then
5696                    if test -f "$dir/$libname.la"; then
5697                      found_la="$dir/$libname.la"
5698                    fi
5699                  fi
5700                  ;;
5701              esac
5702              if test "X$found_dir" != "X"; then
5703                break
5704              fi
5705            done
5706          fi
5707          if test "X$found_dir" != "X"; then
5708                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5709            if test "X$found_so" != "X"; then
5710                                                        if test "$enable_rpath" = no \
5711                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
5712                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
5713                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5714              else
5715                                                                                haveit=
5716                for x in $ltrpathdirs; do
5717                  if test "X$x" = "X$found_dir"; then
5718                    haveit=yes
5719                    break
5720                  fi
5721                done
5722                if test -z "$haveit"; then
5723                  ltrpathdirs="$ltrpathdirs $found_dir"
5724                fi
5725                                if test "$acl_hardcode_direct" = yes; then
5726                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5727                else
5728                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5729                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5730                                                            haveit=
5731                    for x in $rpathdirs; do
5732                      if test "X$x" = "X$found_dir"; then
5733                        haveit=yes
5734                        break
5735                      fi
5736                    done
5737                    if test -z "$haveit"; then
5738                      rpathdirs="$rpathdirs $found_dir"
5739                    fi
5740                  else
5741                                                                                haveit=
5742                    for x in $LDFLAGS $LIBICONV; do
5743
5744  acl_save_prefix="$prefix"
5745  prefix="$acl_final_prefix"
5746  acl_save_exec_prefix="$exec_prefix"
5747  exec_prefix="$acl_final_exec_prefix"
5748  eval x=\"$x\"
5749  exec_prefix="$acl_save_exec_prefix"
5750  prefix="$acl_save_prefix"
5751
5752                      if test "X$x" = "X-L$found_dir"; then
5753                        haveit=yes
5754                        break
5755                      fi
5756                    done
5757                    if test -z "$haveit"; then
5758                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5759                    fi
5760                    if test "$acl_hardcode_minus_L" != no; then
5761                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5762                    else
5763                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5764                    fi
5765                  fi
5766                fi
5767              fi
5768            else
5769              if test "X$found_a" != "X"; then
5770                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5771              else
5772                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5773              fi
5774            fi
5775                        additional_includedir=
5776            case "$found_dir" in
5777              */$acl_libdirstem | */$acl_libdirstem/)
5778                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5779                if test "$name" = 'iconv'; then
5780                  LIBICONV_PREFIX="$basedir"
5781                fi
5782                additional_includedir="$basedir/include"
5783                ;;
5784              */$acl_libdirstem2 | */$acl_libdirstem2/)
5785                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
5786                if test "$name" = 'iconv'; then
5787                  LIBICONV_PREFIX="$basedir"
5788                fi
5789                additional_includedir="$basedir/include"
5790                ;;
5791            esac
5792            if test "X$additional_includedir" != "X"; then
5793                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
5794                haveit=
5795                if test "X$additional_includedir" = "X/usr/local/include"; then
5796                  if test -n "$GCC"; then
5797                    case $host_os in
5798                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5799                    esac
5800                  fi
5801                fi
5802                if test -z "$haveit"; then
5803                  for x in $CPPFLAGS $INCICONV; do
5804
5805  acl_save_prefix="$prefix"
5806  prefix="$acl_final_prefix"
5807  acl_save_exec_prefix="$exec_prefix"
5808  exec_prefix="$acl_final_exec_prefix"
5809  eval x=\"$x\"
5810  exec_prefix="$acl_save_exec_prefix"
5811  prefix="$acl_save_prefix"
5812
5813                    if test "X$x" = "X-I$additional_includedir"; then
5814                      haveit=yes
5815                      break
5816                    fi
5817                  done
5818                  if test -z "$haveit"; then
5819                    if test -d "$additional_includedir"; then
5820                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5821                    fi
5822                  fi
5823                fi
5824              fi
5825            fi
5826                        if test -n "$found_la"; then
5827                                                        save_libdir="$libdir"
5828              case "$found_la" in
5829                */* | *\\*) . "$found_la" ;;
5830                *) . "./$found_la" ;;
5831              esac
5832              libdir="$save_libdir"
5833                            for dep in $dependency_libs; do
5834                case "$dep" in
5835                  -L*)
5836                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5837                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
5838                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5839                      haveit=
5840                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
5841                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5842                        if test -n "$GCC"; then
5843                          case $host_os in
5844                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5845                          esac
5846                        fi
5847                      fi
5848                      if test -z "$haveit"; then
5849                        haveit=
5850                        for x in $LDFLAGS $LIBICONV; do
5851
5852  acl_save_prefix="$prefix"
5853  prefix="$acl_final_prefix"
5854  acl_save_exec_prefix="$exec_prefix"
5855  exec_prefix="$acl_final_exec_prefix"
5856  eval x=\"$x\"
5857  exec_prefix="$acl_save_exec_prefix"
5858  prefix="$acl_save_prefix"
5859
5860                          if test "X$x" = "X-L$additional_libdir"; then
5861                            haveit=yes
5862                            break
5863                          fi
5864                        done
5865                        if test -z "$haveit"; then
5866                          if test -d "$additional_libdir"; then
5867                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5868                          fi
5869                        fi
5870                        haveit=
5871                        for x in $LDFLAGS $LTLIBICONV; do
5872
5873  acl_save_prefix="$prefix"
5874  prefix="$acl_final_prefix"
5875  acl_save_exec_prefix="$exec_prefix"
5876  exec_prefix="$acl_final_exec_prefix"
5877  eval x=\"$x\"
5878  exec_prefix="$acl_save_exec_prefix"
5879  prefix="$acl_save_prefix"
5880
5881                          if test "X$x" = "X-L$additional_libdir"; then
5882                            haveit=yes
5883                            break
5884                          fi
5885                        done
5886                        if test -z "$haveit"; then
5887                          if test -d "$additional_libdir"; then
5888                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5889                          fi
5890                        fi
5891                      fi
5892                    fi
5893                    ;;
5894                  -R*)
5895                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
5896                    if test "$enable_rpath" != no; then
5897                                                                  haveit=
5898                      for x in $rpathdirs; do
5899                        if test "X$x" = "X$dir"; then
5900                          haveit=yes
5901                          break
5902                        fi
5903                      done
5904                      if test -z "$haveit"; then
5905                        rpathdirs="$rpathdirs $dir"
5906                      fi
5907                                                                  haveit=
5908                      for x in $ltrpathdirs; do
5909                        if test "X$x" = "X$dir"; then
5910                          haveit=yes
5911                          break
5912                        fi
5913                      done
5914                      if test -z "$haveit"; then
5915                        ltrpathdirs="$ltrpathdirs $dir"
5916                      fi
5917                    fi
5918                    ;;
5919                  -l*)
5920                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5921                    ;;
5922                  *.la)
5923                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5924                    ;;
5925                  *)
5926                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5927                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5928                    ;;
5929                esac
5930              done
5931            fi
5932          else
5933                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5934            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5935          fi
5936        fi
5937      fi
5938    done
5939  done
5940  if test "X$rpathdirs" != "X"; then
5941    if test -n "$acl_hardcode_libdir_separator"; then
5942                        alldirs=
5943      for found_dir in $rpathdirs; do
5944        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5945      done
5946            acl_save_libdir="$libdir"
5947      libdir="$alldirs"
5948      eval flag=\"$acl_hardcode_libdir_flag_spec\"
5949      libdir="$acl_save_libdir"
5950      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5951    else
5952            for found_dir in $rpathdirs; do
5953        acl_save_libdir="$libdir"
5954        libdir="$found_dir"
5955        eval flag=\"$acl_hardcode_libdir_flag_spec\"
5956        libdir="$acl_save_libdir"
5957        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5958      done
5959    fi
5960  fi
5961  if test "X$ltrpathdirs" != "X"; then
5962            for found_dir in $ltrpathdirs; do
5963      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }"
5964    done
5965  fi
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
5998$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
5999if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
6000  $as_echo_n "(cached) " >&6
6001else
6002  gt_save_LIBS="$LIBS"
6003     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6004     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6005/* end confdefs.h.  */
6006#include <CoreFoundation/CFPreferences.h>
6007int
6008main ()
6009{
6010CFPreferencesCopyAppValue(NULL, NULL)
6011  ;
6012  return 0;
6013}
6014_ACEOF
6015if ac_fn_c_try_link "$LINENO"; then :
6016  gt_cv_func_CFPreferencesCopyAppValue=yes
6017else
6018  gt_cv_func_CFPreferencesCopyAppValue=no
6019fi
6020rm -f core conftest.err conftest.$ac_objext \
6021    conftest$ac_exeext conftest.$ac_ext
6022     LIBS="$gt_save_LIBS"
6023fi
6024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6025$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6026  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6027
6028$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
6029
6030  fi
6031    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
6032$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
6033if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
6034  $as_echo_n "(cached) " >&6
6035else
6036  gt_save_LIBS="$LIBS"
6037     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6038     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6039/* end confdefs.h.  */
6040#include <CoreFoundation/CFLocale.h>
6041int
6042main ()
6043{
6044CFLocaleCopyCurrent();
6045  ;
6046  return 0;
6047}
6048_ACEOF
6049if ac_fn_c_try_link "$LINENO"; then :
6050  gt_cv_func_CFLocaleCopyCurrent=yes
6051else
6052  gt_cv_func_CFLocaleCopyCurrent=no
6053fi
6054rm -f core conftest.err conftest.$ac_objext \
6055    conftest$ac_exeext conftest.$ac_ext
6056     LIBS="$gt_save_LIBS"
6057fi
6058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6059$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6060  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6061
6062$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
6063
6064  fi
6065  INTL_MACOSX_LIBS=
6066  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6067    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6068  fi
6069
6070
6071
6072
6073
6074
6075  LIBINTL=
6076  LTLIBINTL=
6077  POSUB=
6078
6079    case " $gt_needs " in
6080    *" need-formatstring-macros "*) gt_api_version=3 ;;
6081    *" need-ngettext "*) gt_api_version=2 ;;
6082    *) gt_api_version=1 ;;
6083  esac
6084  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
6085  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
6086
6087    if test "$USE_NLS" = "yes"; then
6088    gt_use_preinstalled_gnugettext=no
6089
6090
6091        if test $gt_api_version -ge 3; then
6092          gt_revision_test_code='
6093#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6094#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
6095#endif
6096typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
6097'
6098        else
6099          gt_revision_test_code=
6100        fi
6101        if test $gt_api_version -ge 2; then
6102          gt_expression_test_code=' + * ngettext ("", "", 0)'
6103        else
6104          gt_expression_test_code=
6105        fi
6106
6107        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
6108$as_echo_n "checking for GNU gettext in libc... " >&6; }
6109if eval \${$gt_func_gnugettext_libc+:} false; then :
6110  $as_echo_n "(cached) " >&6
6111else
6112  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6113/* end confdefs.h.  */
6114
6115#include <libintl.h>
6116$gt_revision_test_code
6117extern int _nl_msg_cat_cntr;
6118extern int *_nl_domain_bindings;
6119
6120int
6121main ()
6122{
6123
6124bindtextdomain ("", "");
6125return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
6126
6127  ;
6128  return 0;
6129}
6130_ACEOF
6131if ac_fn_c_try_link "$LINENO"; then :
6132  eval "$gt_func_gnugettext_libc=yes"
6133else
6134  eval "$gt_func_gnugettext_libc=no"
6135fi
6136rm -f core conftest.err conftest.$ac_objext \
6137    conftest$ac_exeext conftest.$ac_ext
6138fi
6139eval ac_res=\$$gt_func_gnugettext_libc
6140	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6141$as_echo "$ac_res" >&6; }
6142
6143        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
6144
6145
6146
6147
6148
6149          am_save_CPPFLAGS="$CPPFLAGS"
6150
6151  for element in $INCICONV; do
6152    haveit=
6153    for x in $CPPFLAGS; do
6154
6155  acl_save_prefix="$prefix"
6156  prefix="$acl_final_prefix"
6157  acl_save_exec_prefix="$exec_prefix"
6158  exec_prefix="$acl_final_exec_prefix"
6159  eval x=\"$x\"
6160  exec_prefix="$acl_save_exec_prefix"
6161  prefix="$acl_save_prefix"
6162
6163      if test "X$x" = "X$element"; then
6164        haveit=yes
6165        break
6166      fi
6167    done
6168    if test -z "$haveit"; then
6169      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6170    fi
6171  done
6172
6173
6174  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6175$as_echo_n "checking for iconv... " >&6; }
6176if ${am_cv_func_iconv+:} false; then :
6177  $as_echo_n "(cached) " >&6
6178else
6179
6180    am_cv_func_iconv="no, consider installing GNU libiconv"
6181    am_cv_lib_iconv=no
6182    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6183/* end confdefs.h.  */
6184
6185#include <stdlib.h>
6186#include <iconv.h>
6187
6188int
6189main ()
6190{
6191iconv_t cd = iconv_open("","");
6192           iconv(cd,NULL,NULL,NULL,NULL);
6193           iconv_close(cd);
6194  ;
6195  return 0;
6196}
6197_ACEOF
6198if ac_fn_c_try_link "$LINENO"; then :
6199  am_cv_func_iconv=yes
6200fi
6201rm -f core conftest.err conftest.$ac_objext \
6202    conftest$ac_exeext conftest.$ac_ext
6203    if test "$am_cv_func_iconv" != yes; then
6204      am_save_LIBS="$LIBS"
6205      LIBS="$LIBS $LIBICONV"
6206      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6207/* end confdefs.h.  */
6208
6209#include <stdlib.h>
6210#include <iconv.h>
6211
6212int
6213main ()
6214{
6215iconv_t cd = iconv_open("","");
6216             iconv(cd,NULL,NULL,NULL,NULL);
6217             iconv_close(cd);
6218  ;
6219  return 0;
6220}
6221_ACEOF
6222if ac_fn_c_try_link "$LINENO"; then :
6223  am_cv_lib_iconv=yes
6224        am_cv_func_iconv=yes
6225fi
6226rm -f core conftest.err conftest.$ac_objext \
6227    conftest$ac_exeext conftest.$ac_ext
6228      LIBS="$am_save_LIBS"
6229    fi
6230
6231fi
6232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6233$as_echo "$am_cv_func_iconv" >&6; }
6234  if test "$am_cv_func_iconv" = yes; then
6235    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
6236$as_echo_n "checking for working iconv... " >&6; }
6237if ${am_cv_func_iconv_works+:} false; then :
6238  $as_echo_n "(cached) " >&6
6239else
6240
6241                  am_save_LIBS="$LIBS"
6242      if test $am_cv_lib_iconv = yes; then
6243        LIBS="$LIBS $LIBICONV"
6244      fi
6245      if test "$cross_compiling" = yes; then :
6246
6247         case "$host_os" in
6248           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
6249           *)            am_cv_func_iconv_works="guessing yes" ;;
6250         esac
6251
6252else
6253  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6254/* end confdefs.h.  */
6255
6256#include <iconv.h>
6257#include <string.h>
6258int main ()
6259{
6260  int result = 0;
6261  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
6262     returns.  */
6263  {
6264    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
6265    if (cd_utf8_to_88591 != (iconv_t)(-1))
6266      {
6267        static const char input[] = "\342\202\254"; /* EURO SIGN */
6268        char buf[10];
6269        const char *inptr = input;
6270        size_t inbytesleft = strlen (input);
6271        char *outptr = buf;
6272        size_t outbytesleft = sizeof (buf);
6273        size_t res = iconv (cd_utf8_to_88591,
6274                            (char **) &inptr, &inbytesleft,
6275                            &outptr, &outbytesleft);
6276        if (res == 0)
6277          result |= 1;
6278        iconv_close (cd_utf8_to_88591);
6279      }
6280  }
6281  /* Test against Solaris 10 bug: Failures are not distinguishable from
6282     successful returns.  */
6283  {
6284    iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
6285    if (cd_ascii_to_88591 != (iconv_t)(-1))
6286      {
6287        static const char input[] = "\263";
6288        char buf[10];
6289        const char *inptr = input;
6290        size_t inbytesleft = strlen (input);
6291        char *outptr = buf;
6292        size_t outbytesleft = sizeof (buf);
6293        size_t res = iconv (cd_ascii_to_88591,
6294                            (char **) &inptr, &inbytesleft,
6295                            &outptr, &outbytesleft);
6296        if (res == 0)
6297          result |= 2;
6298        iconv_close (cd_ascii_to_88591);
6299      }
6300  }
6301  /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
6302  {
6303    iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
6304    if (cd_88591_to_utf8 != (iconv_t)(-1))
6305      {
6306        static const char input[] = "\304";
6307        static char buf[2] = { (char)0xDE, (char)0xAD };
6308        const char *inptr = input;
6309        size_t inbytesleft = 1;
6310        char *outptr = buf;
6311        size_t outbytesleft = 1;
6312        size_t res = iconv (cd_88591_to_utf8,
6313                            (char **) &inptr, &inbytesleft,
6314                            &outptr, &outbytesleft);
6315        if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
6316          result |= 4;
6317        iconv_close (cd_88591_to_utf8);
6318      }
6319  }
6320#if 0 /* This bug could be worked around by the caller.  */
6321  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
6322  {
6323    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
6324    if (cd_88591_to_utf8 != (iconv_t)(-1))
6325      {
6326        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
6327        char buf[50];
6328        const char *inptr = input;
6329        size_t inbytesleft = strlen (input);
6330        char *outptr = buf;
6331        size_t outbytesleft = sizeof (buf);
6332        size_t res = iconv (cd_88591_to_utf8,
6333                            (char **) &inptr, &inbytesleft,
6334                            &outptr, &outbytesleft);
6335        if ((int)res > 0)
6336          result |= 8;
6337        iconv_close (cd_88591_to_utf8);
6338      }
6339  }
6340#endif
6341  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
6342     provided.  */
6343  if (/* Try standardized names.  */
6344      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
6345      /* Try IRIX, OSF/1 names.  */
6346      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
6347      /* Try AIX names.  */
6348      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
6349      /* Try HP-UX names.  */
6350      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
6351    result |= 16;
6352  return result;
6353}
6354_ACEOF
6355if ac_fn_c_try_run "$LINENO"; then :
6356  am_cv_func_iconv_works=yes
6357else
6358  am_cv_func_iconv_works=no
6359fi
6360rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6361  conftest.$ac_objext conftest.beam conftest.$ac_ext
6362fi
6363
6364      LIBS="$am_save_LIBS"
6365
6366fi
6367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
6368$as_echo "$am_cv_func_iconv_works" >&6; }
6369    case "$am_cv_func_iconv_works" in
6370      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
6371      *)   am_func_iconv=yes ;;
6372    esac
6373  else
6374    am_func_iconv=no am_cv_lib_iconv=no
6375  fi
6376  if test "$am_func_iconv" = yes; then
6377
6378$as_echo "#define HAVE_ICONV 1" >>confdefs.h
6379
6380  fi
6381  if test "$am_cv_lib_iconv" = yes; then
6382    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
6383$as_echo_n "checking how to link with libiconv... " >&6; }
6384    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
6385$as_echo "$LIBICONV" >&6; }
6386  else
6387            CPPFLAGS="$am_save_CPPFLAGS"
6388    LIBICONV=
6389    LTLIBICONV=
6390  fi
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402    use_additional=yes
6403
6404  acl_save_prefix="$prefix"
6405  prefix="$acl_final_prefix"
6406  acl_save_exec_prefix="$exec_prefix"
6407  exec_prefix="$acl_final_exec_prefix"
6408
6409    eval additional_includedir=\"$includedir\"
6410    eval additional_libdir=\"$libdir\"
6411
6412  exec_prefix="$acl_save_exec_prefix"
6413  prefix="$acl_save_prefix"
6414
6415
6416# Check whether --with-libintl-prefix was given.
6417if test "${with_libintl_prefix+set}" = set; then :
6418  withval=$with_libintl_prefix;
6419    if test "X$withval" = "Xno"; then
6420      use_additional=no
6421    else
6422      if test "X$withval" = "X"; then
6423
6424  acl_save_prefix="$prefix"
6425  prefix="$acl_final_prefix"
6426  acl_save_exec_prefix="$exec_prefix"
6427  exec_prefix="$acl_final_exec_prefix"
6428
6429          eval additional_includedir=\"$includedir\"
6430          eval additional_libdir=\"$libdir\"
6431
6432  exec_prefix="$acl_save_exec_prefix"
6433  prefix="$acl_save_prefix"
6434
6435      else
6436        additional_includedir="$withval/include"
6437        additional_libdir="$withval/$acl_libdirstem"
6438        if test "$acl_libdirstem2" != "$acl_libdirstem" \
6439           && ! test -d "$withval/$acl_libdirstem"; then
6440          additional_libdir="$withval/$acl_libdirstem2"
6441        fi
6442      fi
6443    fi
6444
6445fi
6446
6447      LIBINTL=
6448  LTLIBINTL=
6449  INCINTL=
6450  LIBINTL_PREFIX=
6451      HAVE_LIBINTL=
6452  rpathdirs=
6453  ltrpathdirs=
6454  names_already_handled=
6455  names_next_round='intl '
6456  while test -n "$names_next_round"; do
6457    names_this_round="$names_next_round"
6458    names_next_round=
6459    for name in $names_this_round; do
6460      already_handled=
6461      for n in $names_already_handled; do
6462        if test "$n" = "$name"; then
6463          already_handled=yes
6464          break
6465        fi
6466      done
6467      if test -z "$already_handled"; then
6468        names_already_handled="$names_already_handled $name"
6469                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
6470        eval value=\"\$HAVE_LIB$uppername\"
6471        if test -n "$value"; then
6472          if test "$value" = yes; then
6473            eval value=\"\$LIB$uppername\"
6474            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6475            eval value=\"\$LTLIB$uppername\"
6476            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6477          else
6478                                    :
6479          fi
6480        else
6481                              found_dir=
6482          found_la=
6483          found_so=
6484          found_a=
6485          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
6486          if test -n "$acl_shlibext"; then
6487            shrext=".$acl_shlibext"             # typically: shrext=.so
6488          else
6489            shrext=
6490          fi
6491          if test $use_additional = yes; then
6492            dir="$additional_libdir"
6493                                    if test -n "$acl_shlibext"; then
6494              if test -f "$dir/$libname$shrext"; then
6495                found_dir="$dir"
6496                found_so="$dir/$libname$shrext"
6497              else
6498                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6499                  ver=`(cd "$dir" && \
6500                        for f in "$libname$shrext".*; do echo "$f"; done \
6501                        | sed -e "s,^$libname$shrext\\\\.,," \
6502                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6503                        | sed 1q ) 2>/dev/null`
6504                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6505                    found_dir="$dir"
6506                    found_so="$dir/$libname$shrext.$ver"
6507                  fi
6508                else
6509                  eval library_names=\"$acl_library_names_spec\"
6510                  for f in $library_names; do
6511                    if test -f "$dir/$f"; then
6512                      found_dir="$dir"
6513                      found_so="$dir/$f"
6514                      break
6515                    fi
6516                  done
6517                fi
6518              fi
6519            fi
6520                        if test "X$found_dir" = "X"; then
6521              if test -f "$dir/$libname.$acl_libext"; then
6522                found_dir="$dir"
6523                found_a="$dir/$libname.$acl_libext"
6524              fi
6525            fi
6526            if test "X$found_dir" != "X"; then
6527              if test -f "$dir/$libname.la"; then
6528                found_la="$dir/$libname.la"
6529              fi
6530            fi
6531          fi
6532          if test "X$found_dir" = "X"; then
6533            for x in $LDFLAGS $LTLIBINTL; do
6534
6535  acl_save_prefix="$prefix"
6536  prefix="$acl_final_prefix"
6537  acl_save_exec_prefix="$exec_prefix"
6538  exec_prefix="$acl_final_exec_prefix"
6539  eval x=\"$x\"
6540  exec_prefix="$acl_save_exec_prefix"
6541  prefix="$acl_save_prefix"
6542
6543              case "$x" in
6544                -L*)
6545                  dir=`echo "X$x" | sed -e 's/^X-L//'`
6546                                    if test -n "$acl_shlibext"; then
6547                    if test -f "$dir/$libname$shrext"; then
6548                      found_dir="$dir"
6549                      found_so="$dir/$libname$shrext"
6550                    else
6551                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6552                        ver=`(cd "$dir" && \
6553                              for f in "$libname$shrext".*; do echo "$f"; done \
6554                              | sed -e "s,^$libname$shrext\\\\.,," \
6555                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6556                              | sed 1q ) 2>/dev/null`
6557                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6558                          found_dir="$dir"
6559                          found_so="$dir/$libname$shrext.$ver"
6560                        fi
6561                      else
6562                        eval library_names=\"$acl_library_names_spec\"
6563                        for f in $library_names; do
6564                          if test -f "$dir/$f"; then
6565                            found_dir="$dir"
6566                            found_so="$dir/$f"
6567                            break
6568                          fi
6569                        done
6570                      fi
6571                    fi
6572                  fi
6573                                    if test "X$found_dir" = "X"; then
6574                    if test -f "$dir/$libname.$acl_libext"; then
6575                      found_dir="$dir"
6576                      found_a="$dir/$libname.$acl_libext"
6577                    fi
6578                  fi
6579                  if test "X$found_dir" != "X"; then
6580                    if test -f "$dir/$libname.la"; then
6581                      found_la="$dir/$libname.la"
6582                    fi
6583                  fi
6584                  ;;
6585              esac
6586              if test "X$found_dir" != "X"; then
6587                break
6588              fi
6589            done
6590          fi
6591          if test "X$found_dir" != "X"; then
6592                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6593            if test "X$found_so" != "X"; then
6594                                                        if test "$enable_rpath" = no \
6595                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6596                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6597                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6598              else
6599                                                                                haveit=
6600                for x in $ltrpathdirs; do
6601                  if test "X$x" = "X$found_dir"; then
6602                    haveit=yes
6603                    break
6604                  fi
6605                done
6606                if test -z "$haveit"; then
6607                  ltrpathdirs="$ltrpathdirs $found_dir"
6608                fi
6609                                if test "$acl_hardcode_direct" = yes; then
6610                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6611                else
6612                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6613                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6614                                                            haveit=
6615                    for x in $rpathdirs; do
6616                      if test "X$x" = "X$found_dir"; then
6617                        haveit=yes
6618                        break
6619                      fi
6620                    done
6621                    if test -z "$haveit"; then
6622                      rpathdirs="$rpathdirs $found_dir"
6623                    fi
6624                  else
6625                                                                                haveit=
6626                    for x in $LDFLAGS $LIBINTL; do
6627
6628  acl_save_prefix="$prefix"
6629  prefix="$acl_final_prefix"
6630  acl_save_exec_prefix="$exec_prefix"
6631  exec_prefix="$acl_final_exec_prefix"
6632  eval x=\"$x\"
6633  exec_prefix="$acl_save_exec_prefix"
6634  prefix="$acl_save_prefix"
6635
6636                      if test "X$x" = "X-L$found_dir"; then
6637                        haveit=yes
6638                        break
6639                      fi
6640                    done
6641                    if test -z "$haveit"; then
6642                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6643                    fi
6644                    if test "$acl_hardcode_minus_L" != no; then
6645                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6646                    else
6647                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6648                    fi
6649                  fi
6650                fi
6651              fi
6652            else
6653              if test "X$found_a" != "X"; then
6654                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6655              else
6656                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6657              fi
6658            fi
6659                        additional_includedir=
6660            case "$found_dir" in
6661              */$acl_libdirstem | */$acl_libdirstem/)
6662                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6663                if test "$name" = 'intl'; then
6664                  LIBINTL_PREFIX="$basedir"
6665                fi
6666                additional_includedir="$basedir/include"
6667                ;;
6668              */$acl_libdirstem2 | */$acl_libdirstem2/)
6669                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6670                if test "$name" = 'intl'; then
6671                  LIBINTL_PREFIX="$basedir"
6672                fi
6673                additional_includedir="$basedir/include"
6674                ;;
6675            esac
6676            if test "X$additional_includedir" != "X"; then
6677                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
6678                haveit=
6679                if test "X$additional_includedir" = "X/usr/local/include"; then
6680                  if test -n "$GCC"; then
6681                    case $host_os in
6682                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6683                    esac
6684                  fi
6685                fi
6686                if test -z "$haveit"; then
6687                  for x in $CPPFLAGS $INCINTL; do
6688
6689  acl_save_prefix="$prefix"
6690  prefix="$acl_final_prefix"
6691  acl_save_exec_prefix="$exec_prefix"
6692  exec_prefix="$acl_final_exec_prefix"
6693  eval x=\"$x\"
6694  exec_prefix="$acl_save_exec_prefix"
6695  prefix="$acl_save_prefix"
6696
6697                    if test "X$x" = "X-I$additional_includedir"; then
6698                      haveit=yes
6699                      break
6700                    fi
6701                  done
6702                  if test -z "$haveit"; then
6703                    if test -d "$additional_includedir"; then
6704                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6705                    fi
6706                  fi
6707                fi
6708              fi
6709            fi
6710                        if test -n "$found_la"; then
6711                                                        save_libdir="$libdir"
6712              case "$found_la" in
6713                */* | *\\*) . "$found_la" ;;
6714                *) . "./$found_la" ;;
6715              esac
6716              libdir="$save_libdir"
6717                            for dep in $dependency_libs; do
6718                case "$dep" in
6719                  -L*)
6720                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6721                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6722                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6723                      haveit=
6724                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6725                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6726                        if test -n "$GCC"; then
6727                          case $host_os in
6728                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6729                          esac
6730                        fi
6731                      fi
6732                      if test -z "$haveit"; then
6733                        haveit=
6734                        for x in $LDFLAGS $LIBINTL; do
6735
6736  acl_save_prefix="$prefix"
6737  prefix="$acl_final_prefix"
6738  acl_save_exec_prefix="$exec_prefix"
6739  exec_prefix="$acl_final_exec_prefix"
6740  eval x=\"$x\"
6741  exec_prefix="$acl_save_exec_prefix"
6742  prefix="$acl_save_prefix"
6743
6744                          if test "X$x" = "X-L$additional_libdir"; then
6745                            haveit=yes
6746                            break
6747                          fi
6748                        done
6749                        if test -z "$haveit"; then
6750                          if test -d "$additional_libdir"; then
6751                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6752                          fi
6753                        fi
6754                        haveit=
6755                        for x in $LDFLAGS $LTLIBINTL; do
6756
6757  acl_save_prefix="$prefix"
6758  prefix="$acl_final_prefix"
6759  acl_save_exec_prefix="$exec_prefix"
6760  exec_prefix="$acl_final_exec_prefix"
6761  eval x=\"$x\"
6762  exec_prefix="$acl_save_exec_prefix"
6763  prefix="$acl_save_prefix"
6764
6765                          if test "X$x" = "X-L$additional_libdir"; then
6766                            haveit=yes
6767                            break
6768                          fi
6769                        done
6770                        if test -z "$haveit"; then
6771                          if test -d "$additional_libdir"; then
6772                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6773                          fi
6774                        fi
6775                      fi
6776                    fi
6777                    ;;
6778                  -R*)
6779                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
6780                    if test "$enable_rpath" != no; then
6781                                                                  haveit=
6782                      for x in $rpathdirs; do
6783                        if test "X$x" = "X$dir"; then
6784                          haveit=yes
6785                          break
6786                        fi
6787                      done
6788                      if test -z "$haveit"; then
6789                        rpathdirs="$rpathdirs $dir"
6790                      fi
6791                                                                  haveit=
6792                      for x in $ltrpathdirs; do
6793                        if test "X$x" = "X$dir"; then
6794                          haveit=yes
6795                          break
6796                        fi
6797                      done
6798                      if test -z "$haveit"; then
6799                        ltrpathdirs="$ltrpathdirs $dir"
6800                      fi
6801                    fi
6802                    ;;
6803                  -l*)
6804                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6805                    ;;
6806                  *.la)
6807                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6808                    ;;
6809                  *)
6810                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6811                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6812                    ;;
6813                esac
6814              done
6815            fi
6816          else
6817                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6818            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6819          fi
6820        fi
6821      fi
6822    done
6823  done
6824  if test "X$rpathdirs" != "X"; then
6825    if test -n "$acl_hardcode_libdir_separator"; then
6826                        alldirs=
6827      for found_dir in $rpathdirs; do
6828        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6829      done
6830            acl_save_libdir="$libdir"
6831      libdir="$alldirs"
6832      eval flag=\"$acl_hardcode_libdir_flag_spec\"
6833      libdir="$acl_save_libdir"
6834      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6835    else
6836            for found_dir in $rpathdirs; do
6837        acl_save_libdir="$libdir"
6838        libdir="$found_dir"
6839        eval flag=\"$acl_hardcode_libdir_flag_spec\"
6840        libdir="$acl_save_libdir"
6841        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6842      done
6843    fi
6844  fi
6845  if test "X$ltrpathdirs" != "X"; then
6846            for found_dir in $ltrpathdirs; do
6847      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }"
6848    done
6849  fi
6850
6851
6852
6853
6854
6855
6856          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
6857$as_echo_n "checking for GNU gettext in libintl... " >&6; }
6858if eval \${$gt_func_gnugettext_libintl+:} false; then :
6859  $as_echo_n "(cached) " >&6
6860else
6861  gt_save_CPPFLAGS="$CPPFLAGS"
6862            CPPFLAGS="$CPPFLAGS $INCINTL"
6863            gt_save_LIBS="$LIBS"
6864            LIBS="$LIBS $LIBINTL"
6865                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6866/* end confdefs.h.  */
6867
6868#include <libintl.h>
6869$gt_revision_test_code
6870extern int _nl_msg_cat_cntr;
6871extern
6872#ifdef __cplusplus
6873"C"
6874#endif
6875const char *_nl_expand_alias (const char *);
6876
6877int
6878main ()
6879{
6880
6881bindtextdomain ("", "");
6882return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6883
6884  ;
6885  return 0;
6886}
6887_ACEOF
6888if ac_fn_c_try_link "$LINENO"; then :
6889  eval "$gt_func_gnugettext_libintl=yes"
6890else
6891  eval "$gt_func_gnugettext_libintl=no"
6892fi
6893rm -f core conftest.err conftest.$ac_objext \
6894    conftest$ac_exeext conftest.$ac_ext
6895                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
6896              LIBS="$LIBS $LIBICONV"
6897              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6898/* end confdefs.h.  */
6899
6900#include <libintl.h>
6901$gt_revision_test_code
6902extern int _nl_msg_cat_cntr;
6903extern
6904#ifdef __cplusplus
6905"C"
6906#endif
6907const char *_nl_expand_alias (const char *);
6908
6909int
6910main ()
6911{
6912
6913bindtextdomain ("", "");
6914return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6915
6916  ;
6917  return 0;
6918}
6919_ACEOF
6920if ac_fn_c_try_link "$LINENO"; then :
6921  LIBINTL="$LIBINTL $LIBICONV"
6922                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6923                 eval "$gt_func_gnugettext_libintl=yes"
6924
6925fi
6926rm -f core conftest.err conftest.$ac_objext \
6927    conftest$ac_exeext conftest.$ac_ext
6928            fi
6929            CPPFLAGS="$gt_save_CPPFLAGS"
6930            LIBS="$gt_save_LIBS"
6931fi
6932eval ac_res=\$$gt_func_gnugettext_libintl
6933	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6934$as_echo "$ac_res" >&6; }
6935        fi
6936
6937                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
6938           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
6939                && test "$PACKAGE" != gettext-runtime \
6940                && test "$PACKAGE" != gettext-tools; }; then
6941          gt_use_preinstalled_gnugettext=yes
6942        else
6943                    LIBINTL=
6944          LTLIBINTL=
6945          INCINTL=
6946        fi
6947
6948
6949
6950    if test -n "$INTL_MACOSX_LIBS"; then
6951      if test "$gt_use_preinstalled_gnugettext" = "yes" \
6952         || test "$nls_cv_use_gnu_gettext" = "yes"; then
6953                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6954        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6955      fi
6956    fi
6957
6958    if test "$gt_use_preinstalled_gnugettext" = "yes" \
6959       || test "$nls_cv_use_gnu_gettext" = "yes"; then
6960
6961$as_echo "#define ENABLE_NLS 1" >>confdefs.h
6962
6963    else
6964      USE_NLS=no
6965    fi
6966  fi
6967
6968  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
6969$as_echo_n "checking whether to use NLS... " >&6; }
6970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6971$as_echo "$USE_NLS" >&6; }
6972  if test "$USE_NLS" = "yes"; then
6973    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
6974$as_echo_n "checking where the gettext function comes from... " >&6; }
6975    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6976      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6977        gt_source="external libintl"
6978      else
6979        gt_source="libc"
6980      fi
6981    else
6982      gt_source="included intl directory"
6983    fi
6984    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
6985$as_echo "$gt_source" >&6; }
6986  fi
6987
6988  if test "$USE_NLS" = "yes"; then
6989
6990    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6991      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6992        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
6993$as_echo_n "checking how to link with libintl... " >&6; }
6994        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
6995$as_echo "$LIBINTL" >&6; }
6996
6997  for element in $INCINTL; do
6998    haveit=
6999    for x in $CPPFLAGS; do
7000
7001  acl_save_prefix="$prefix"
7002  prefix="$acl_final_prefix"
7003  acl_save_exec_prefix="$exec_prefix"
7004  exec_prefix="$acl_final_exec_prefix"
7005  eval x=\"$x\"
7006  exec_prefix="$acl_save_exec_prefix"
7007  prefix="$acl_save_prefix"
7008
7009      if test "X$x" = "X$element"; then
7010        haveit=yes
7011        break
7012      fi
7013    done
7014    if test -z "$haveit"; then
7015      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7016    fi
7017  done
7018
7019      fi
7020
7021
7022$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
7023
7024
7025$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
7026
7027    fi
7028
7029        POSUB=po
7030  fi
7031
7032
7033
7034    INTLLIBS="$LIBINTL"
7035
7036
7037
7038
7039
7040
7041
7042
7043# Checks for header files.
7044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7045$as_echo_n "checking for ANSI C header files... " >&6; }
7046if ${ac_cv_header_stdc+:} false; then :
7047  $as_echo_n "(cached) " >&6
7048else
7049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7050/* end confdefs.h.  */
7051#include <stdlib.h>
7052#include <stdarg.h>
7053#include <string.h>
7054#include <float.h>
7055
7056int
7057main ()
7058{
7059
7060  ;
7061  return 0;
7062}
7063_ACEOF
7064if ac_fn_c_try_compile "$LINENO"; then :
7065  ac_cv_header_stdc=yes
7066else
7067  ac_cv_header_stdc=no
7068fi
7069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7070
7071if test $ac_cv_header_stdc = yes; then
7072  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7074/* end confdefs.h.  */
7075#include <string.h>
7076
7077_ACEOF
7078if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7079  $EGREP "memchr" >/dev/null 2>&1; then :
7080
7081else
7082  ac_cv_header_stdc=no
7083fi
7084rm -f conftest*
7085
7086fi
7087
7088if test $ac_cv_header_stdc = yes; then
7089  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7090  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7091/* end confdefs.h.  */
7092#include <stdlib.h>
7093
7094_ACEOF
7095if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7096  $EGREP "free" >/dev/null 2>&1; then :
7097
7098else
7099  ac_cv_header_stdc=no
7100fi
7101rm -f conftest*
7102
7103fi
7104
7105if test $ac_cv_header_stdc = yes; then
7106  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7107  if test "$cross_compiling" = yes; then :
7108  :
7109else
7110  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7111/* end confdefs.h.  */
7112#include <ctype.h>
7113#include <stdlib.h>
7114#if ((' ' & 0x0FF) == 0x020)
7115# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7116# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7117#else
7118# define ISLOWER(c) \
7119		   (('a' <= (c) && (c) <= 'i') \
7120		     || ('j' <= (c) && (c) <= 'r') \
7121		     || ('s' <= (c) && (c) <= 'z'))
7122# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7123#endif
7124
7125#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7126int
7127main ()
7128{
7129  int i;
7130  for (i = 0; i < 256; i++)
7131    if (XOR (islower (i), ISLOWER (i))
7132	|| toupper (i) != TOUPPER (i))
7133      return 2;
7134  return 0;
7135}
7136_ACEOF
7137if ac_fn_c_try_run "$LINENO"; then :
7138
7139else
7140  ac_cv_header_stdc=no
7141fi
7142rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7143  conftest.$ac_objext conftest.beam conftest.$ac_ext
7144fi
7145
7146fi
7147fi
7148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7149$as_echo "$ac_cv_header_stdc" >&6; }
7150if test $ac_cv_header_stdc = yes; then
7151
7152$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7153
7154fi
7155
7156# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7157for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7158		  inttypes.h stdint.h unistd.h
7159do :
7160  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7161ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7162"
7163if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7164  cat >>confdefs.h <<_ACEOF
7165#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7166_ACEOF
7167
7168fi
7169
7170done
7171
7172
7173for ac_header in libintl.h memory.h stddef.h stdlib.h string.h unistd.h
7174do :
7175  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7176ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7177if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7178  cat >>confdefs.h <<_ACEOF
7179#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7180_ACEOF
7181
7182fi
7183
7184done
7185
7186
7187# Checks for typedefs, structures, and compiler characteristics.
7188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
7189$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
7190if ${ac_cv_header_stdbool_h+:} false; then :
7191  $as_echo_n "(cached) " >&6
7192else
7193  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7194/* end confdefs.h.  */
7195
7196             #include <stdbool.h>
7197             #ifndef bool
7198              "error: bool is not defined"
7199             #endif
7200             #ifndef false
7201              "error: false is not defined"
7202             #endif
7203             #if false
7204              "error: false is not 0"
7205             #endif
7206             #ifndef true
7207              "error: true is not defined"
7208             #endif
7209             #if true != 1
7210              "error: true is not 1"
7211             #endif
7212             #ifndef __bool_true_false_are_defined
7213              "error: __bool_true_false_are_defined is not defined"
7214             #endif
7215
7216             struct s { _Bool s: 1; _Bool t; } s;
7217
7218             char a[true == 1 ? 1 : -1];
7219             char b[false == 0 ? 1 : -1];
7220             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7221             char d[(bool) 0.5 == true ? 1 : -1];
7222             /* See body of main program for 'e'.  */
7223             char f[(_Bool) 0.0 == false ? 1 : -1];
7224             char g[true];
7225             char h[sizeof (_Bool)];
7226             char i[sizeof s.t];
7227             enum { j = false, k = true, l = false * true, m = true * 256 };
7228             /* The following fails for
7229                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
7230             _Bool n[m];
7231             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
7232             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
7233             /* Catch a bug in an HP-UX C compiler.  See
7234                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
7235                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
7236              */
7237             _Bool q = true;
7238             _Bool *pq = &q;
7239
7240int
7241main ()
7242{
7243
7244             bool e = &s;
7245             *pq |= q;
7246             *pq |= ! q;
7247             /* Refer to every declared value, to avoid compiler optimizations.  */
7248             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
7249                     + !m + !n + !o + !p + !q + !pq);
7250
7251  ;
7252  return 0;
7253}
7254_ACEOF
7255if ac_fn_c_try_compile "$LINENO"; then :
7256  ac_cv_header_stdbool_h=yes
7257else
7258  ac_cv_header_stdbool_h=no
7259fi
7260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7261fi
7262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
7263$as_echo "$ac_cv_header_stdbool_h" >&6; }
7264   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
7265if test "x$ac_cv_type__Bool" = xyes; then :
7266
7267cat >>confdefs.h <<_ACEOF
7268#define HAVE__BOOL 1
7269_ACEOF
7270
7271
7272fi
7273
7274
7275if test $ac_cv_header_stdbool_h = yes; then
7276
7277$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
7278
7279fi
7280
7281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7282$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7283if ${ac_cv_c_const+:} false; then :
7284  $as_echo_n "(cached) " >&6
7285else
7286  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7287/* end confdefs.h.  */
7288
7289int
7290main ()
7291{
7292
7293#ifndef __cplusplus
7294  /* Ultrix mips cc rejects this sort of thing.  */
7295  typedef int charset[2];
7296  const charset cs = { 0, 0 };
7297  /* SunOS 4.1.1 cc rejects this.  */
7298  char const *const *pcpcc;
7299  char **ppc;
7300  /* NEC SVR4.0.2 mips cc rejects this.  */
7301  struct point {int x, y;};
7302  static struct point const zero = {0,0};
7303  /* AIX XL C 1.02.0.0 rejects this.
7304     It does not let you subtract one const X* pointer from another in
7305     an arm of an if-expression whose if-part is not a constant
7306     expression */
7307  const char *g = "string";
7308  pcpcc = &g + (g ? g-g : 0);
7309  /* HPUX 7.0 cc rejects these. */
7310  ++pcpcc;
7311  ppc = (char**) pcpcc;
7312  pcpcc = (char const *const *) ppc;
7313  { /* SCO 3.2v4 cc rejects this sort of thing.  */
7314    char tx;
7315    char *t = &tx;
7316    char const *s = 0 ? (char *) 0 : (char const *) 0;
7317
7318    *t++ = 0;
7319    if (s) return 0;
7320  }
7321  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7322    int x[] = {25, 17};
7323    const int *foo = &x[0];
7324    ++foo;
7325  }
7326  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7327    typedef const int *iptr;
7328    iptr p = 0;
7329    ++p;
7330  }
7331  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
7332       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7333    struct s { int j; const int *ap[3]; } bx;
7334    struct s *b = &bx; b->j = 5;
7335  }
7336  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7337    const int foo = 10;
7338    if (!foo) return 0;
7339  }
7340  return !cs[0] && !zero.x;
7341#endif
7342
7343  ;
7344  return 0;
7345}
7346_ACEOF
7347if ac_fn_c_try_compile "$LINENO"; then :
7348  ac_cv_c_const=yes
7349else
7350  ac_cv_c_const=no
7351fi
7352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7353fi
7354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7355$as_echo "$ac_cv_c_const" >&6; }
7356if test $ac_cv_c_const = no; then
7357
7358$as_echo "#define const /**/" >>confdefs.h
7359
7360fi
7361
7362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
7363$as_echo_n "checking for inline... " >&6; }
7364if ${ac_cv_c_inline+:} false; then :
7365  $as_echo_n "(cached) " >&6
7366else
7367  ac_cv_c_inline=no
7368for ac_kw in inline __inline__ __inline; do
7369  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7370/* end confdefs.h.  */
7371#ifndef __cplusplus
7372typedef int foo_t;
7373static $ac_kw foo_t static_foo () {return 0; }
7374$ac_kw foo_t foo () {return 0; }
7375#endif
7376
7377_ACEOF
7378if ac_fn_c_try_compile "$LINENO"; then :
7379  ac_cv_c_inline=$ac_kw
7380fi
7381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7382  test "$ac_cv_c_inline" != no && break
7383done
7384
7385fi
7386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
7387$as_echo "$ac_cv_c_inline" >&6; }
7388
7389case $ac_cv_c_inline in
7390  inline | yes) ;;
7391  *)
7392    case $ac_cv_c_inline in
7393      no) ac_val=;;
7394      *) ac_val=$ac_cv_c_inline;;
7395    esac
7396    cat >>confdefs.h <<_ACEOF
7397#ifndef __cplusplus
7398#define inline $ac_val
7399#endif
7400_ACEOF
7401    ;;
7402esac
7403
7404ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7405if test "x$ac_cv_type_size_t" = xyes; then :
7406
7407else
7408
7409cat >>confdefs.h <<_ACEOF
7410#define size_t unsigned int
7411_ACEOF
7412
7413fi
7414
7415ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
7416case $ac_cv_c_uint16_t in #(
7417  no|yes) ;; #(
7418  *)
7419
7420
7421cat >>confdefs.h <<_ACEOF
7422#define uint16_t $ac_cv_c_uint16_t
7423_ACEOF
7424;;
7425  esac
7426
7427ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
7428case $ac_cv_c_uint32_t in #(
7429  no|yes) ;; #(
7430  *)
7431
7432$as_echo "#define _UINT32_T 1" >>confdefs.h
7433
7434
7435cat >>confdefs.h <<_ACEOF
7436#define uint32_t $ac_cv_c_uint32_t
7437_ACEOF
7438;;
7439  esac
7440
7441
7442# Checks for library functions.
7443for ac_header in stdlib.h
7444do :
7445  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
7446if test "x$ac_cv_header_stdlib_h" = xyes; then :
7447  cat >>confdefs.h <<_ACEOF
7448#define HAVE_STDLIB_H 1
7449_ACEOF
7450
7451fi
7452
7453done
7454
7455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
7456$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
7457if ${ac_cv_func_malloc_0_nonnull+:} false; then :
7458  $as_echo_n "(cached) " >&6
7459else
7460  if test "$cross_compiling" = yes; then :
7461  ac_cv_func_malloc_0_nonnull=no
7462else
7463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7464/* end confdefs.h.  */
7465#if defined STDC_HEADERS || defined HAVE_STDLIB_H
7466# include <stdlib.h>
7467#else
7468char *malloc ();
7469#endif
7470
7471int
7472main ()
7473{
7474return ! malloc (0);
7475  ;
7476  return 0;
7477}
7478_ACEOF
7479if ac_fn_c_try_run "$LINENO"; then :
7480  ac_cv_func_malloc_0_nonnull=yes
7481else
7482  ac_cv_func_malloc_0_nonnull=no
7483fi
7484rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7485  conftest.$ac_objext conftest.beam conftest.$ac_ext
7486fi
7487
7488fi
7489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
7490$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
7491if test $ac_cv_func_malloc_0_nonnull = yes; then :
7492
7493$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
7494
7495else
7496  $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
7497
7498   case " $LIBOBJS " in
7499  *" malloc.$ac_objext "* ) ;;
7500  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
7501 ;;
7502esac
7503
7504
7505$as_echo "#define malloc rpl_malloc" >>confdefs.h
7506
7507fi
7508
7509
7510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
7511$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
7512if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
7513  $as_echo_n "(cached) " >&6
7514else
7515  rm -f conftest.sym conftest.file
7516echo >conftest.file
7517if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
7518  if test "$cross_compiling" = yes; then :
7519  ac_cv_func_lstat_dereferences_slashed_symlink=no
7520else
7521  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7522/* end confdefs.h.  */
7523$ac_includes_default
7524int
7525main ()
7526{
7527struct stat sbuf;
7528     /* Linux will dereference the symlink and fail, as required by POSIX.
7529	That is better in the sense that it means we will not
7530	have to compile and use the lstat wrapper.  */
7531     return lstat ("conftest.sym/", &sbuf) == 0;
7532  ;
7533  return 0;
7534}
7535_ACEOF
7536if ac_fn_c_try_run "$LINENO"; then :
7537  ac_cv_func_lstat_dereferences_slashed_symlink=yes
7538else
7539  ac_cv_func_lstat_dereferences_slashed_symlink=no
7540fi
7541rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7542  conftest.$ac_objext conftest.beam conftest.$ac_ext
7543fi
7544
7545else
7546  # If the `ln -s' command failed, then we probably don't even
7547  # have an lstat function.
7548  ac_cv_func_lstat_dereferences_slashed_symlink=no
7549fi
7550rm -f conftest.sym conftest.file
7551
7552fi
7553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
7554$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
7555
7556test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
7557
7558cat >>confdefs.h <<_ACEOF
7559#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7560_ACEOF
7561
7562
7563if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
7564  case " $LIBOBJS " in
7565  *" lstat.$ac_objext "* ) ;;
7566  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7567 ;;
7568esac
7569
7570fi
7571
7572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
7573$as_echo_n "checking whether stat accepts an empty string... " >&6; }
7574if ${ac_cv_func_stat_empty_string_bug+:} false; then :
7575  $as_echo_n "(cached) " >&6
7576else
7577  if test "$cross_compiling" = yes; then :
7578  ac_cv_func_stat_empty_string_bug=yes
7579else
7580  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7581/* end confdefs.h.  */
7582$ac_includes_default
7583int
7584main ()
7585{
7586struct stat sbuf;
7587  return stat ("", &sbuf) == 0;
7588  ;
7589  return 0;
7590}
7591_ACEOF
7592if ac_fn_c_try_run "$LINENO"; then :
7593  ac_cv_func_stat_empty_string_bug=no
7594else
7595  ac_cv_func_stat_empty_string_bug=yes
7596fi
7597rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7598  conftest.$ac_objext conftest.beam conftest.$ac_ext
7599fi
7600
7601fi
7602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
7603$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
7604if test $ac_cv_func_stat_empty_string_bug = yes; then
7605  case " $LIBOBJS " in
7606  *" stat.$ac_objext "* ) ;;
7607  *) LIBOBJS="$LIBOBJS stat.$ac_objext"
7608 ;;
7609esac
7610
7611
7612cat >>confdefs.h <<_ACEOF
7613#define HAVE_STAT_EMPTY_STRING_BUG 1
7614_ACEOF
7615
7616fi
7617
7618for ac_func in atexit memset pow setlocale strdup strrchr
7619do :
7620  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7621ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7622if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7623  cat >>confdefs.h <<_ACEOF
7624#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7625_ACEOF
7626
7627fi
7628done
7629
7630
7631for ac_header in libintl.h unistd.h
7632do :
7633  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7634ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7635if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7636  cat >>confdefs.h <<_ACEOF
7637#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7638_ACEOF
7639
7640fi
7641
7642done
7643
7644
7645
7646
7647
7648# Check whether --with-boost was given.
7649if test "${with_boost+set}" = set; then :
7650  withval=$with_boost;
7651    if test "$withval" = "no"; then
7652        want_boost="no"
7653    elif test "$withval" = "yes"; then
7654        want_boost="yes"
7655        ac_boost_path=""
7656    else
7657        want_boost="yes"
7658        ac_boost_path="$withval"
7659    fi
7660
7661else
7662  want_boost="yes"
7663fi
7664
7665
7666
7667
7668# Check whether --with-boost-libdir was given.
7669if test "${with_boost_libdir+set}" = set; then :
7670  withval=$with_boost_libdir;
7671        if test -d "$withval"
7672        then
7673                ac_boost_lib_path="$withval"
7674        else
7675                as_fn_error $? "--with-boost-libdir expected directory name" "$LINENO" 5
7676        fi
7677
7678else
7679  ac_boost_lib_path=""
7680
7681fi
7682
7683
7684if test "x$want_boost" = "xyes"; then
7685    boost_lib_version_req=1.44
7686    boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([0-9]*\.[0-9]*\)'`
7687    boost_lib_version_req_major=`expr $boost_lib_version_req : '\([0-9]*\)'`
7688    boost_lib_version_req_minor=`expr $boost_lib_version_req : '[0-9]*\.\([0-9]*\)'`
7689    boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
7690    if test "x$boost_lib_version_req_sub_minor" = "x" ; then
7691        boost_lib_version_req_sub_minor="0"
7692        fi
7693    WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+  $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
7694    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= $boost_lib_version_req" >&5
7695$as_echo_n "checking for boostlib >= $boost_lib_version_req... " >&6; }
7696    succeeded=no
7697
7698                        libsubdirs="lib"
7699    ax_arch=`uname -m`
7700    case $ax_arch in
7701      x86_64|ppc64|s390x|sparc64|aarch64)
7702        libsubdirs="lib64 lib lib64"
7703        ;;
7704    esac
7705
7706                if test "$ac_boost_path" != ""; then
7707        BOOST_CPPFLAGS="-I$ac_boost_path/include"
7708        for ac_boost_path_tmp in $libsubdirs; do
7709                if test -d "$ac_boost_path"/"$ac_boost_path_tmp" ; then
7710                        BOOST_LDFLAGS="-L$ac_boost_path/$ac_boost_path_tmp"
7711                        break
7712                fi
7713        done
7714    elif test "$cross_compiling" != yes; then
7715        for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
7716            if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
7717                for libsubdir in $libsubdirs ; do
7718                    if ls "$ac_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
7719                done
7720                BOOST_LDFLAGS="-L$ac_boost_path_tmp/$libsubdir"
7721                BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
7722                break;
7723            fi
7724        done
7725    fi
7726
7727            if test "$ac_boost_lib_path" != ""; then
7728       BOOST_LDFLAGS="-L$ac_boost_lib_path"
7729    fi
7730
7731    CPPFLAGS_SAVED="$CPPFLAGS"
7732    CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
7733    export CPPFLAGS
7734
7735    LDFLAGS_SAVED="$LDFLAGS"
7736    LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
7737    export LDFLAGS
7738
7739
7740    ac_ext=cpp
7741ac_cpp='$CXXCPP $CPPFLAGS'
7742ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7743ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7744ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7745
7746        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7747/* end confdefs.h.  */
7748
7749    #include <boost/version.hpp>
7750
7751int
7752main ()
7753{
7754
7755    #if BOOST_VERSION >= $WANT_BOOST_VERSION
7756    // Everything is okay
7757    #else
7758    #  error Boost version is too old
7759    #endif
7760
7761  ;
7762  return 0;
7763}
7764_ACEOF
7765if ac_fn_cxx_try_compile "$LINENO"; then :
7766
7767        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7768$as_echo "yes" >&6; }
7769    succeeded=yes
7770    found_system=yes
7771
7772fi
7773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7774    ac_ext=c
7775ac_cpp='$CPP $CPPFLAGS'
7776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7778ac_compiler_gnu=$ac_cv_c_compiler_gnu
7779
7780
7781
7782
7783            if test "x$succeeded" != "xyes"; then
7784        _version=0
7785        if test "$ac_boost_path" != ""; then
7786            if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
7787                for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
7788                    _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
7789                    V_CHECK=`expr $_version_tmp \> $_version`
7790                    if test "$V_CHECK" = "1" ; then
7791                        _version=$_version_tmp
7792                    fi
7793                    VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
7794                    BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
7795                done
7796            fi
7797        else
7798            if test "$cross_compiling" != yes; then
7799                for ac_boost_path in /usr /usr/local /opt /opt/local ; do
7800                    if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
7801                        for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
7802                            _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
7803                            V_CHECK=`expr $_version_tmp \> $_version`
7804                            if test "$V_CHECK" = "1" ; then
7805                                _version=$_version_tmp
7806                                best_path=$ac_boost_path
7807                            fi
7808                        done
7809                    fi
7810                done
7811
7812                VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
7813                BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
7814                if test "$ac_boost_lib_path" = ""; then
7815                    for libsubdir in $libsubdirs ; do
7816                        if ls "$best_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
7817                    done
7818                    BOOST_LDFLAGS="-L$best_path/$libsubdir"
7819                fi
7820            fi
7821
7822            if test "x$BOOST_ROOT" != "x"; then
7823                for libsubdir in $libsubdirs ; do
7824                    if ls "$BOOST_ROOT/stage/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
7825                done
7826                if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/$libsubdir" && test -r "$BOOST_ROOT/stage/$libsubdir"; then
7827                    version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
7828                    stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
7829                        stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
7830                    V_CHECK=`expr $stage_version_shorten \>\= $_version`
7831                    if test "$V_CHECK" = "1" -a "$ac_boost_lib_path" = "" ; then
7832                        { $as_echo "$as_me:${as_lineno-$LINENO}: We will use a staged boost library from $BOOST_ROOT" >&5
7833$as_echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
7834                        BOOST_CPPFLAGS="-I$BOOST_ROOT"
7835                        BOOST_LDFLAGS="-L$BOOST_ROOT/stage/$libsubdir"
7836                    fi
7837                fi
7838            fi
7839        fi
7840
7841        CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
7842        export CPPFLAGS
7843        LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
7844        export LDFLAGS
7845
7846        ac_ext=cpp
7847ac_cpp='$CXXCPP $CPPFLAGS'
7848ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7849ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7850ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7851
7852            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7853/* end confdefs.h.  */
7854
7855        #include <boost/version.hpp>
7856
7857int
7858main ()
7859{
7860
7861        #if BOOST_VERSION >= $WANT_BOOST_VERSION
7862        // Everything is okay
7863        #else
7864        #  error Boost version is too old
7865        #endif
7866
7867  ;
7868  return 0;
7869}
7870_ACEOF
7871if ac_fn_cxx_try_compile "$LINENO"; then :
7872
7873            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7874$as_echo "yes" >&6; }
7875        succeeded=yes
7876        found_system=yes
7877
7878fi
7879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7880        ac_ext=c
7881ac_cpp='$CPP $CPPFLAGS'
7882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7884ac_compiler_gnu=$ac_cv_c_compiler_gnu
7885
7886    fi
7887
7888    if test "$succeeded" != "yes" ; then
7889        if test "$_version" = "0" ; then
7890            { $as_echo "$as_me:${as_lineno-$LINENO}: We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option.  If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&5
7891$as_echo "$as_me: We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option.  If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&6;}
7892        else
7893            { $as_echo "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5
7894$as_echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
7895        fi
7896        # execute ACTION-IF-NOT-FOUND (if present):
7897        :
7898    else
7899
7900
7901
7902$as_echo "#define HAVE_BOOST /**/" >>confdefs.h
7903
7904        # execute ACTION-IF-FOUND (if present):
7905        :
7906    fi
7907
7908    CPPFLAGS="$CPPFLAGS_SAVED"
7909    LDFLAGS="$LDFLAGS_SAVED"
7910fi
7911
7912
7913
7914
7915# Check whether --with-boost-filesystem was given.
7916if test "${with_boost_filesystem+set}" = set; then :
7917  withval=$with_boost_filesystem;
7918        if test "$withval" = "no"; then
7919			want_boost="no"
7920        elif test "$withval" = "yes"; then
7921            want_boost="yes"
7922            ax_boost_user_filesystem_lib=""
7923        else
7924		    want_boost="yes"
7925		ax_boost_user_filesystem_lib="$withval"
7926		fi
7927
7928else
7929  want_boost="yes"
7930
7931fi
7932
7933
7934	if test "x$want_boost" = "xyes"; then
7935
7936		CPPFLAGS_SAVED="$CPPFLAGS"
7937		CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
7938		export CPPFLAGS
7939
7940		LDFLAGS_SAVED="$LDFLAGS"
7941		LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
7942		export LDFLAGS
7943
7944		LIBS_SAVED=$LIBS
7945		LIBS="$LIBS $BOOST_SYSTEM_LIB"
7946		export LIBS
7947
7948        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Filesystem library is available" >&5
7949$as_echo_n "checking whether the Boost::Filesystem library is available... " >&6; }
7950if ${ax_cv_boost_filesystem+:} false; then :
7951  $as_echo_n "(cached) " >&6
7952else
7953  ac_ext=cpp
7954ac_cpp='$CXXCPP $CPPFLAGS'
7955ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7956ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7957ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7958
7959         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7960/* end confdefs.h.  */
7961#include <boost/filesystem/path.hpp>
7962int
7963main ()
7964{
7965using namespace boost::filesystem;
7966                                   path my_path( "foo/bar/data.txt" );
7967                                   return 0;
7968  ;
7969  return 0;
7970}
7971_ACEOF
7972if ac_fn_cxx_try_compile "$LINENO"; then :
7973  ax_cv_boost_filesystem=yes
7974else
7975  ax_cv_boost_filesystem=no
7976fi
7977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7978         ac_ext=c
7979ac_cpp='$CPP $CPPFLAGS'
7980ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7981ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7982ac_compiler_gnu=$ac_cv_c_compiler_gnu
7983
7984
7985fi
7986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_filesystem" >&5
7987$as_echo "$ax_cv_boost_filesystem" >&6; }
7988		if test "x$ax_cv_boost_filesystem" = "xyes"; then
7989
7990$as_echo "#define HAVE_BOOST_FILESYSTEM /**/" >>confdefs.h
7991
7992            BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
7993            if test "x$ax_boost_user_filesystem_lib" = "x"; then
7994                for libextension in `ls -r $BOOSTLIBDIR/libboost_filesystem* 2>/dev/null | sed 's,.*/lib,,' | sed 's,\..*,,'` ; do
7995                     ax_lib=${libextension}
7996				    as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
7997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
7998$as_echo_n "checking for exit in -l$ax_lib... " >&6; }
7999if eval \${$as_ac_Lib+:} false; then :
8000  $as_echo_n "(cached) " >&6
8001else
8002  ac_check_lib_save_LIBS=$LIBS
8003LIBS="-l$ax_lib  $LIBS"
8004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8005/* end confdefs.h.  */
8006
8007/* Override any GCC internal prototype to avoid an error.
8008   Use char because int might match the return type of a GCC
8009   builtin and then its argument prototype would still apply.  */
8010#ifdef __cplusplus
8011extern "C"
8012#endif
8013char exit ();
8014int
8015main ()
8016{
8017return exit ();
8018  ;
8019  return 0;
8020}
8021_ACEOF
8022if ac_fn_c_try_link "$LINENO"; then :
8023  eval "$as_ac_Lib=yes"
8024else
8025  eval "$as_ac_Lib=no"
8026fi
8027rm -f core conftest.err conftest.$ac_objext \
8028    conftest$ac_exeext conftest.$ac_ext
8029LIBS=$ac_check_lib_save_LIBS
8030fi
8031eval ac_res=\$$as_ac_Lib
8032	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8033$as_echo "$ac_res" >&6; }
8034if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
8035  BOOST_FILESYSTEM_LIB="-l$ax_lib";  link_filesystem="yes"; break
8036else
8037  link_filesystem="no"
8038fi
8039
8040				done
8041                if test "x$link_filesystem" != "xyes"; then
8042                for libextension in `ls -r $BOOSTLIBDIR/boost_filesystem* 2>/dev/null | sed 's,.*/,,' | sed -e 's,\..*,,'` ; do
8043                     ax_lib=${libextension}
8044				    as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
8045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
8046$as_echo_n "checking for exit in -l$ax_lib... " >&6; }
8047if eval \${$as_ac_Lib+:} false; then :
8048  $as_echo_n "(cached) " >&6
8049else
8050  ac_check_lib_save_LIBS=$LIBS
8051LIBS="-l$ax_lib  $LIBS"
8052cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8053/* end confdefs.h.  */
8054
8055/* Override any GCC internal prototype to avoid an error.
8056   Use char because int might match the return type of a GCC
8057   builtin and then its argument prototype would still apply.  */
8058#ifdef __cplusplus
8059extern "C"
8060#endif
8061char exit ();
8062int
8063main ()
8064{
8065return exit ();
8066  ;
8067  return 0;
8068}
8069_ACEOF
8070if ac_fn_c_try_link "$LINENO"; then :
8071  eval "$as_ac_Lib=yes"
8072else
8073  eval "$as_ac_Lib=no"
8074fi
8075rm -f core conftest.err conftest.$ac_objext \
8076    conftest$ac_exeext conftest.$ac_ext
8077LIBS=$ac_check_lib_save_LIBS
8078fi
8079eval ac_res=\$$as_ac_Lib
8080	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8081$as_echo "$ac_res" >&6; }
8082if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
8083  BOOST_FILESYSTEM_LIB="-l$ax_lib";  link_filesystem="yes"; break
8084else
8085  link_filesystem="no"
8086fi
8087
8088				done
8089		    fi
8090            else
8091               for ax_lib in $ax_boost_user_filesystem_lib boost_filesystem-$ax_boost_user_filesystem_lib; do
8092				      as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
8093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
8094$as_echo_n "checking for exit in -l$ax_lib... " >&6; }
8095if eval \${$as_ac_Lib+:} false; then :
8096  $as_echo_n "(cached) " >&6
8097else
8098  ac_check_lib_save_LIBS=$LIBS
8099LIBS="-l$ax_lib  $LIBS"
8100cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8101/* end confdefs.h.  */
8102
8103/* Override any GCC internal prototype to avoid an error.
8104   Use char because int might match the return type of a GCC
8105   builtin and then its argument prototype would still apply.  */
8106#ifdef __cplusplus
8107extern "C"
8108#endif
8109char exit ();
8110int
8111main ()
8112{
8113return exit ();
8114  ;
8115  return 0;
8116}
8117_ACEOF
8118if ac_fn_c_try_link "$LINENO"; then :
8119  eval "$as_ac_Lib=yes"
8120else
8121  eval "$as_ac_Lib=no"
8122fi
8123rm -f core conftest.err conftest.$ac_objext \
8124    conftest$ac_exeext conftest.$ac_ext
8125LIBS=$ac_check_lib_save_LIBS
8126fi
8127eval ac_res=\$$as_ac_Lib
8128	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8129$as_echo "$ac_res" >&6; }
8130if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
8131  BOOST_FILESYSTEM_LIB="-l$ax_lib";  link_filesystem="yes"; break
8132else
8133  link_filesystem="no"
8134fi
8135
8136                  done
8137
8138            fi
8139            if test "x$ax_lib" = "x"; then
8140                as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
8141            fi
8142			if test "x$link_filesystem" != "xyes"; then
8143				as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
8144			fi
8145		fi
8146
8147		CPPFLAGS="$CPPFLAGS_SAVED"
8148		LDFLAGS="$LDFLAGS_SAVED"
8149		LIBS="$LIBS_SAVED"
8150	fi
8151
8152
8153
8154# Check whether --with-boost-system was given.
8155if test "${with_boost_system+set}" = set; then :
8156  withval=$with_boost_system;
8157        if test "$withval" = "no"; then
8158			want_boost="no"
8159        elif test "$withval" = "yes"; then
8160            want_boost="yes"
8161            ax_boost_user_system_lib=""
8162        else
8163		    want_boost="yes"
8164		ax_boost_user_system_lib="$withval"
8165		fi
8166
8167else
8168  want_boost="yes"
8169
8170fi
8171
8172
8173	if test "x$want_boost" = "xyes"; then
8174
8175
8176		CPPFLAGS_SAVED="$CPPFLAGS"
8177		CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
8178		export CPPFLAGS
8179
8180		LDFLAGS_SAVED="$LDFLAGS"
8181		LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
8182		export LDFLAGS
8183
8184        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::System library is available" >&5
8185$as_echo_n "checking whether the Boost::System library is available... " >&6; }
8186if ${ax_cv_boost_system+:} false; then :
8187  $as_echo_n "(cached) " >&6
8188else
8189  ac_ext=cpp
8190ac_cpp='$CXXCPP $CPPFLAGS'
8191ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8192ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8193ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8194
8195			 CXXFLAGS_SAVE=$CXXFLAGS
8196
8197			 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8198/* end confdefs.h.  */
8199#include <boost/system/error_code.hpp>
8200int
8201main ()
8202{
8203boost::system::system_category
8204  ;
8205  return 0;
8206}
8207_ACEOF
8208if ac_fn_cxx_try_compile "$LINENO"; then :
8209  ax_cv_boost_system=yes
8210else
8211  ax_cv_boost_system=no
8212fi
8213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8214			 CXXFLAGS=$CXXFLAGS_SAVE
8215             ac_ext=c
8216ac_cpp='$CPP $CPPFLAGS'
8217ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8218ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8219ac_compiler_gnu=$ac_cv_c_compiler_gnu
8220
8221
8222fi
8223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_system" >&5
8224$as_echo "$ax_cv_boost_system" >&6; }
8225		if test "x$ax_cv_boost_system" = "xyes"; then
8226
8227
8228
8229$as_echo "#define HAVE_BOOST_SYSTEM /**/" >>confdefs.h
8230
8231            BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
8232
8233			LDFLAGS_SAVE=$LDFLAGS
8234            if test "x$ax_boost_user_system_lib" = "x"; then
8235                for libextension in `ls -r $BOOSTLIBDIR/libboost_system* 2>/dev/null | sed 's,.*/lib,,' | sed 's,\..*,,'` ; do
8236                     ax_lib=${libextension}
8237				    as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
8238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
8239$as_echo_n "checking for exit in -l$ax_lib... " >&6; }
8240if eval \${$as_ac_Lib+:} false; then :
8241  $as_echo_n "(cached) " >&6
8242else
8243  ac_check_lib_save_LIBS=$LIBS
8244LIBS="-l$ax_lib  $LIBS"
8245cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8246/* end confdefs.h.  */
8247
8248/* Override any GCC internal prototype to avoid an error.
8249   Use char because int might match the return type of a GCC
8250   builtin and then its argument prototype would still apply.  */
8251#ifdef __cplusplus
8252extern "C"
8253#endif
8254char exit ();
8255int
8256main ()
8257{
8258return exit ();
8259  ;
8260  return 0;
8261}
8262_ACEOF
8263if ac_fn_c_try_link "$LINENO"; then :
8264  eval "$as_ac_Lib=yes"
8265else
8266  eval "$as_ac_Lib=no"
8267fi
8268rm -f core conftest.err conftest.$ac_objext \
8269    conftest$ac_exeext conftest.$ac_ext
8270LIBS=$ac_check_lib_save_LIBS
8271fi
8272eval ac_res=\$$as_ac_Lib
8273	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8274$as_echo "$ac_res" >&6; }
8275if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
8276  BOOST_SYSTEM_LIB="-l$ax_lib";  link_system="yes"; break
8277else
8278  link_system="no"
8279fi
8280
8281				done
8282                if test "x$link_system" != "xyes"; then
8283                for libextension in `ls -r $BOOSTLIBDIR/boost_system* 2>/dev/null | sed 's,.*/,,' | sed -e 's,\..*,,'` ; do
8284                     ax_lib=${libextension}
8285				    as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
8286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
8287$as_echo_n "checking for exit in -l$ax_lib... " >&6; }
8288if eval \${$as_ac_Lib+:} false; then :
8289  $as_echo_n "(cached) " >&6
8290else
8291  ac_check_lib_save_LIBS=$LIBS
8292LIBS="-l$ax_lib  $LIBS"
8293cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8294/* end confdefs.h.  */
8295
8296/* Override any GCC internal prototype to avoid an error.
8297   Use char because int might match the return type of a GCC
8298   builtin and then its argument prototype would still apply.  */
8299#ifdef __cplusplus
8300extern "C"
8301#endif
8302char exit ();
8303int
8304main ()
8305{
8306return exit ();
8307  ;
8308  return 0;
8309}
8310_ACEOF
8311if ac_fn_c_try_link "$LINENO"; then :
8312  eval "$as_ac_Lib=yes"
8313else
8314  eval "$as_ac_Lib=no"
8315fi
8316rm -f core conftest.err conftest.$ac_objext \
8317    conftest$ac_exeext conftest.$ac_ext
8318LIBS=$ac_check_lib_save_LIBS
8319fi
8320eval ac_res=\$$as_ac_Lib
8321	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8322$as_echo "$ac_res" >&6; }
8323if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
8324  BOOST_SYSTEM_LIB="-l$ax_lib";  link_system="yes"; break
8325else
8326  link_system="no"
8327fi
8328
8329				done
8330                fi
8331
8332            else
8333               for ax_lib in $ax_boost_user_system_lib boost_system-$ax_boost_user_system_lib; do
8334				      as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
8335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
8336$as_echo_n "checking for exit in -l$ax_lib... " >&6; }
8337if eval \${$as_ac_Lib+:} false; then :
8338  $as_echo_n "(cached) " >&6
8339else
8340  ac_check_lib_save_LIBS=$LIBS
8341LIBS="-l$ax_lib  $LIBS"
8342cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8343/* end confdefs.h.  */
8344
8345/* Override any GCC internal prototype to avoid an error.
8346   Use char because int might match the return type of a GCC
8347   builtin and then its argument prototype would still apply.  */
8348#ifdef __cplusplus
8349extern "C"
8350#endif
8351char exit ();
8352int
8353main ()
8354{
8355return exit ();
8356  ;
8357  return 0;
8358}
8359_ACEOF
8360if ac_fn_c_try_link "$LINENO"; then :
8361  eval "$as_ac_Lib=yes"
8362else
8363  eval "$as_ac_Lib=no"
8364fi
8365rm -f core conftest.err conftest.$ac_objext \
8366    conftest$ac_exeext conftest.$ac_ext
8367LIBS=$ac_check_lib_save_LIBS
8368fi
8369eval ac_res=\$$as_ac_Lib
8370	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8371$as_echo "$ac_res" >&6; }
8372if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
8373  BOOST_SYSTEM_LIB="-l$ax_lib";  link_system="yes"; break
8374else
8375  link_system="no"
8376fi
8377
8378                  done
8379
8380            fi
8381            if test "x$ax_lib" = "x"; then
8382                as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
8383            fi
8384			if test "x$link_system" = "xno"; then
8385				as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
8386			fi
8387		fi
8388
8389		CPPFLAGS="$CPPFLAGS_SAVED"
8390	LDFLAGS="$LDFLAGS_SAVED"
8391	fi
8392
8393
8394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8395$as_echo_n "checking for X... " >&6; }
8396
8397
8398# Check whether --with-x was given.
8399if test "${with_x+set}" = set; then :
8400  withval=$with_x;
8401fi
8402
8403# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8404if test "x$with_x" = xno; then
8405  # The user explicitly disabled X.
8406  have_x=disabled
8407else
8408  case $x_includes,$x_libraries in #(
8409    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
8410    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
8411  $as_echo_n "(cached) " >&6
8412else
8413  # One or both of the vars are not set, and there is no cached value.
8414ac_x_includes=no ac_x_libraries=no
8415rm -f -r conftest.dir
8416if mkdir conftest.dir; then
8417  cd conftest.dir
8418  cat >Imakefile <<'_ACEOF'
8419incroot:
8420	@echo incroot='${INCROOT}'
8421usrlibdir:
8422	@echo usrlibdir='${USRLIBDIR}'
8423libdir:
8424	@echo libdir='${LIBDIR}'
8425_ACEOF
8426  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8427    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8428    for ac_var in incroot usrlibdir libdir; do
8429      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8430    done
8431    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8432    for ac_extension in a so sl dylib la dll; do
8433      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8434	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8435	ac_im_usrlibdir=$ac_im_libdir; break
8436      fi
8437    done
8438    # Screen out bogus values from the imake configuration.  They are
8439    # bogus both because they are the default anyway, and because
8440    # using them would break gcc on systems where it needs fixed includes.
8441    case $ac_im_incroot in
8442	/usr/include) ac_x_includes= ;;
8443	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8444    esac
8445    case $ac_im_usrlibdir in
8446	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
8447	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8448    esac
8449  fi
8450  cd ..
8451  rm -f -r conftest.dir
8452fi
8453
8454# Standard set of common directories for X headers.
8455# Check X11 before X11Rn because it is often a symlink to the current release.
8456ac_x_header_dirs='
8457/usr/X11/include
8458/usr/X11R7/include
8459/usr/X11R6/include
8460/usr/X11R5/include
8461/usr/X11R4/include
8462
8463/usr/include/X11
8464/usr/include/X11R7
8465/usr/include/X11R6
8466/usr/include/X11R5
8467/usr/include/X11R4
8468
8469/usr/local/X11/include
8470/usr/local/X11R7/include
8471/usr/local/X11R6/include
8472/usr/local/X11R5/include
8473/usr/local/X11R4/include
8474
8475/usr/local/include/X11
8476/usr/local/include/X11R7
8477/usr/local/include/X11R6
8478/usr/local/include/X11R5
8479/usr/local/include/X11R4
8480
8481/usr/X386/include
8482/usr/x386/include
8483/usr/XFree86/include/X11
8484
8485/usr/include
8486/usr/local/include
8487/usr/unsupported/include
8488/usr/athena/include
8489/usr/local/x11r5/include
8490/usr/lpp/Xamples/include
8491
8492/usr/openwin/include
8493/usr/openwin/share/include'
8494
8495if test "$ac_x_includes" = no; then
8496  # Guess where to find include files, by looking for Xlib.h.
8497  # First, try using that file with no special directory specified.
8498  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8499/* end confdefs.h.  */
8500#include <X11/Xlib.h>
8501_ACEOF
8502if ac_fn_c_try_cpp "$LINENO"; then :
8503  # We can compile using X headers with no special include directory.
8504ac_x_includes=
8505else
8506  for ac_dir in $ac_x_header_dirs; do
8507  if test -r "$ac_dir/X11/Xlib.h"; then
8508    ac_x_includes=$ac_dir
8509    break
8510  fi
8511done
8512fi
8513rm -f conftest.err conftest.i conftest.$ac_ext
8514fi # $ac_x_includes = no
8515
8516if test "$ac_x_libraries" = no; then
8517  # Check for the libraries.
8518  # See if we find them without any special options.
8519  # Don't add to $LIBS permanently.
8520  ac_save_LIBS=$LIBS
8521  LIBS="-lX11 $LIBS"
8522  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8523/* end confdefs.h.  */
8524#include <X11/Xlib.h>
8525int
8526main ()
8527{
8528XrmInitialize ()
8529  ;
8530  return 0;
8531}
8532_ACEOF
8533if ac_fn_c_try_link "$LINENO"; then :
8534  LIBS=$ac_save_LIBS
8535# We can link X programs with no special library path.
8536ac_x_libraries=
8537else
8538  LIBS=$ac_save_LIBS
8539for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8540do
8541  # Don't even attempt the hair of trying to link an X program!
8542  for ac_extension in a so sl dylib la dll; do
8543    if test -r "$ac_dir/libX11.$ac_extension"; then
8544      ac_x_libraries=$ac_dir
8545      break 2
8546    fi
8547  done
8548done
8549fi
8550rm -f core conftest.err conftest.$ac_objext \
8551    conftest$ac_exeext conftest.$ac_ext
8552fi # $ac_x_libraries = no
8553
8554case $ac_x_includes,$ac_x_libraries in #(
8555  no,* | *,no | *\'*)
8556    # Didn't find X, or a directory has "'" in its name.
8557    ac_cv_have_x="have_x=no";; #(
8558  *)
8559    # Record where we found X for the cache.
8560    ac_cv_have_x="have_x=yes\
8561	ac_x_includes='$ac_x_includes'\
8562	ac_x_libraries='$ac_x_libraries'"
8563esac
8564fi
8565;; #(
8566    *) have_x=yes;;
8567  esac
8568  eval "$ac_cv_have_x"
8569fi # $with_x != no
8570
8571if test "$have_x" != yes; then
8572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8573$as_echo "$have_x" >&6; }
8574  no_x=yes
8575else
8576  # If each of the values was on the command line, it overrides each guess.
8577  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8578  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8579  # Update the cache value to reflect the command line values.
8580  ac_cv_have_x="have_x=yes\
8581	ac_x_includes='$x_includes'\
8582	ac_x_libraries='$x_libraries'"
8583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8584$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8585fi
8586
8587
8588
8589
8590
8591
8592
8593
8594if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8595	if test -n "$ac_tool_prefix"; then
8596  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8597set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8599$as_echo_n "checking for $ac_word... " >&6; }
8600if ${ac_cv_path_PKG_CONFIG+:} false; then :
8601  $as_echo_n "(cached) " >&6
8602else
8603  case $PKG_CONFIG in
8604  [\\/]* | ?:[\\/]*)
8605  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8606  ;;
8607  *)
8608  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8609for as_dir in $PATH
8610do
8611  IFS=$as_save_IFS
8612  test -z "$as_dir" && as_dir=.
8613    for ac_exec_ext in '' $ac_executable_extensions; do
8614  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8615    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8616    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8617    break 2
8618  fi
8619done
8620  done
8621IFS=$as_save_IFS
8622
8623  ;;
8624esac
8625fi
8626PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8627if test -n "$PKG_CONFIG"; then
8628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8629$as_echo "$PKG_CONFIG" >&6; }
8630else
8631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8632$as_echo "no" >&6; }
8633fi
8634
8635
8636fi
8637if test -z "$ac_cv_path_PKG_CONFIG"; then
8638  ac_pt_PKG_CONFIG=$PKG_CONFIG
8639  # Extract the first word of "pkg-config", so it can be a program name with args.
8640set dummy pkg-config; ac_word=$2
8641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8642$as_echo_n "checking for $ac_word... " >&6; }
8643if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
8644  $as_echo_n "(cached) " >&6
8645else
8646  case $ac_pt_PKG_CONFIG in
8647  [\\/]* | ?:[\\/]*)
8648  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8649  ;;
8650  *)
8651  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8652for as_dir in $PATH
8653do
8654  IFS=$as_save_IFS
8655  test -z "$as_dir" && as_dir=.
8656    for ac_exec_ext in '' $ac_executable_extensions; do
8657  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8658    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8659    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8660    break 2
8661  fi
8662done
8663  done
8664IFS=$as_save_IFS
8665
8666  ;;
8667esac
8668fi
8669ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8670if test -n "$ac_pt_PKG_CONFIG"; then
8671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8672$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8673else
8674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8675$as_echo "no" >&6; }
8676fi
8677
8678  if test "x$ac_pt_PKG_CONFIG" = x; then
8679    PKG_CONFIG=""
8680  else
8681    case $cross_compiling:$ac_tool_warned in
8682yes:)
8683{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8684$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8685ac_tool_warned=yes ;;
8686esac
8687    PKG_CONFIG=$ac_pt_PKG_CONFIG
8688  fi
8689else
8690  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8691fi
8692
8693fi
8694if test -n "$PKG_CONFIG"; then
8695	_pkg_min_version=0.9.0
8696	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8697$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8698	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8699		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8700$as_echo "yes" >&6; }
8701	else
8702		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8703$as_echo "no" >&6; }
8704		PKG_CONFIG=""
8705	fi
8706fi
8707if test "$no_x" = yes; then
8708  # Not all programs may use this symbol, but it does not hurt to define it.
8709
8710$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
8711
8712  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8713else
8714  if test -n "$x_includes"; then
8715    X_CFLAGS="$X_CFLAGS -I$x_includes"
8716  fi
8717
8718  # It would also be nice to do this for all -L options, not just this one.
8719  if test -n "$x_libraries"; then
8720    X_LIBS="$X_LIBS -L$x_libraries"
8721    # For Solaris; some versions of Sun CC require a space after -R and
8722    # others require no space.  Words are not sufficient . . . .
8723    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
8724$as_echo_n "checking whether -R must be followed by a space... " >&6; }
8725    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8726    ac_xsave_c_werror_flag=$ac_c_werror_flag
8727    ac_c_werror_flag=yes
8728    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8729/* end confdefs.h.  */
8730
8731int
8732main ()
8733{
8734
8735  ;
8736  return 0;
8737}
8738_ACEOF
8739if ac_fn_c_try_link "$LINENO"; then :
8740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8741$as_echo "no" >&6; }
8742       X_LIBS="$X_LIBS -R$x_libraries"
8743else
8744  LIBS="$ac_xsave_LIBS -R $x_libraries"
8745       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8746/* end confdefs.h.  */
8747
8748int
8749main ()
8750{
8751
8752  ;
8753  return 0;
8754}
8755_ACEOF
8756if ac_fn_c_try_link "$LINENO"; then :
8757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8758$as_echo "yes" >&6; }
8759	  X_LIBS="$X_LIBS -R $x_libraries"
8760else
8761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
8762$as_echo "neither works" >&6; }
8763fi
8764rm -f core conftest.err conftest.$ac_objext \
8765    conftest$ac_exeext conftest.$ac_ext
8766fi
8767rm -f core conftest.err conftest.$ac_objext \
8768    conftest$ac_exeext conftest.$ac_ext
8769    ac_c_werror_flag=$ac_xsave_c_werror_flag
8770    LIBS=$ac_xsave_LIBS
8771  fi
8772
8773  # Check for system-dependent libraries X programs must link with.
8774  # Do this before checking for the system-independent R6 libraries
8775  # (-lICE), since we may need -lsocket or whatever for X linking.
8776
8777  if test "$ISC" = yes; then
8778    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8779  else
8780    # Martyn Johnson says this is needed for Ultrix, if the X
8781    # libraries were built with DECnet support.  And Karl Berry says
8782    # the Alpha needs dnet_stub (dnet does not exist).
8783    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8784    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8785/* end confdefs.h.  */
8786
8787/* Override any GCC internal prototype to avoid an error.
8788   Use char because int might match the return type of a GCC
8789   builtin and then its argument prototype would still apply.  */
8790#ifdef __cplusplus
8791extern "C"
8792#endif
8793char XOpenDisplay ();
8794int
8795main ()
8796{
8797return XOpenDisplay ();
8798  ;
8799  return 0;
8800}
8801_ACEOF
8802if ac_fn_c_try_link "$LINENO"; then :
8803
8804else
8805  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
8806$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
8807if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
8808  $as_echo_n "(cached) " >&6
8809else
8810  ac_check_lib_save_LIBS=$LIBS
8811LIBS="-ldnet  $LIBS"
8812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8813/* end confdefs.h.  */
8814
8815/* Override any GCC internal prototype to avoid an error.
8816   Use char because int might match the return type of a GCC
8817   builtin and then its argument prototype would still apply.  */
8818#ifdef __cplusplus
8819extern "C"
8820#endif
8821char dnet_ntoa ();
8822int
8823main ()
8824{
8825return dnet_ntoa ();
8826  ;
8827  return 0;
8828}
8829_ACEOF
8830if ac_fn_c_try_link "$LINENO"; then :
8831  ac_cv_lib_dnet_dnet_ntoa=yes
8832else
8833  ac_cv_lib_dnet_dnet_ntoa=no
8834fi
8835rm -f core conftest.err conftest.$ac_objext \
8836    conftest$ac_exeext conftest.$ac_ext
8837LIBS=$ac_check_lib_save_LIBS
8838fi
8839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8840$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
8841if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
8842  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8843fi
8844
8845    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8846      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
8847$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
8848if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
8849  $as_echo_n "(cached) " >&6
8850else
8851  ac_check_lib_save_LIBS=$LIBS
8852LIBS="-ldnet_stub  $LIBS"
8853cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8854/* end confdefs.h.  */
8855
8856/* Override any GCC internal prototype to avoid an error.
8857   Use char because int might match the return type of a GCC
8858   builtin and then its argument prototype would still apply.  */
8859#ifdef __cplusplus
8860extern "C"
8861#endif
8862char dnet_ntoa ();
8863int
8864main ()
8865{
8866return dnet_ntoa ();
8867  ;
8868  return 0;
8869}
8870_ACEOF
8871if ac_fn_c_try_link "$LINENO"; then :
8872  ac_cv_lib_dnet_stub_dnet_ntoa=yes
8873else
8874  ac_cv_lib_dnet_stub_dnet_ntoa=no
8875fi
8876rm -f core conftest.err conftest.$ac_objext \
8877    conftest$ac_exeext conftest.$ac_ext
8878LIBS=$ac_check_lib_save_LIBS
8879fi
8880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8881$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
8882if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
8883  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8884fi
8885
8886    fi
8887fi
8888rm -f core conftest.err conftest.$ac_objext \
8889    conftest$ac_exeext conftest.$ac_ext
8890    LIBS="$ac_xsave_LIBS"
8891
8892    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8893    # to get the SysV transport functions.
8894    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8895    # needs -lnsl.
8896    # The nsl library prevents programs from opening the X display
8897    # on Irix 5.2, according to T.E. Dickey.
8898    # The functions gethostbyname, getservbyname, and inet_addr are
8899    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8900    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
8901if test "x$ac_cv_func_gethostbyname" = xyes; then :
8902
8903fi
8904
8905    if test $ac_cv_func_gethostbyname = no; then
8906      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
8907$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
8908if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
8909  $as_echo_n "(cached) " >&6
8910else
8911  ac_check_lib_save_LIBS=$LIBS
8912LIBS="-lnsl  $LIBS"
8913cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8914/* end confdefs.h.  */
8915
8916/* Override any GCC internal prototype to avoid an error.
8917   Use char because int might match the return type of a GCC
8918   builtin and then its argument prototype would still apply.  */
8919#ifdef __cplusplus
8920extern "C"
8921#endif
8922char gethostbyname ();
8923int
8924main ()
8925{
8926return gethostbyname ();
8927  ;
8928  return 0;
8929}
8930_ACEOF
8931if ac_fn_c_try_link "$LINENO"; then :
8932  ac_cv_lib_nsl_gethostbyname=yes
8933else
8934  ac_cv_lib_nsl_gethostbyname=no
8935fi
8936rm -f core conftest.err conftest.$ac_objext \
8937    conftest$ac_exeext conftest.$ac_ext
8938LIBS=$ac_check_lib_save_LIBS
8939fi
8940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
8941$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
8942if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
8943  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8944fi
8945
8946      if test $ac_cv_lib_nsl_gethostbyname = no; then
8947	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
8948$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
8949if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
8950  $as_echo_n "(cached) " >&6
8951else
8952  ac_check_lib_save_LIBS=$LIBS
8953LIBS="-lbsd  $LIBS"
8954cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8955/* end confdefs.h.  */
8956
8957/* Override any GCC internal prototype to avoid an error.
8958   Use char because int might match the return type of a GCC
8959   builtin and then its argument prototype would still apply.  */
8960#ifdef __cplusplus
8961extern "C"
8962#endif
8963char gethostbyname ();
8964int
8965main ()
8966{
8967return gethostbyname ();
8968  ;
8969  return 0;
8970}
8971_ACEOF
8972if ac_fn_c_try_link "$LINENO"; then :
8973  ac_cv_lib_bsd_gethostbyname=yes
8974else
8975  ac_cv_lib_bsd_gethostbyname=no
8976fi
8977rm -f core conftest.err conftest.$ac_objext \
8978    conftest$ac_exeext conftest.$ac_ext
8979LIBS=$ac_check_lib_save_LIBS
8980fi
8981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
8982$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
8983if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
8984  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8985fi
8986
8987      fi
8988    fi
8989
8990    # lieder@skyler.mavd.honeywell.com says without -lsocket,
8991    # socket/setsockopt and other routines are undefined under SCO ODT
8992    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8993    # on later versions), says Simon Leinen: it contains gethostby*
8994    # variants that don't use the name server (or something).  -lsocket
8995    # must be given before -lnsl if both are needed.  We assume that
8996    # if connect needs -lnsl, so does gethostbyname.
8997    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
8998if test "x$ac_cv_func_connect" = xyes; then :
8999
9000fi
9001
9002    if test $ac_cv_func_connect = no; then
9003      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
9004$as_echo_n "checking for connect in -lsocket... " >&6; }
9005if ${ac_cv_lib_socket_connect+:} false; then :
9006  $as_echo_n "(cached) " >&6
9007else
9008  ac_check_lib_save_LIBS=$LIBS
9009LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9010cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9011/* end confdefs.h.  */
9012
9013/* Override any GCC internal prototype to avoid an error.
9014   Use char because int might match the return type of a GCC
9015   builtin and then its argument prototype would still apply.  */
9016#ifdef __cplusplus
9017extern "C"
9018#endif
9019char connect ();
9020int
9021main ()
9022{
9023return connect ();
9024  ;
9025  return 0;
9026}
9027_ACEOF
9028if ac_fn_c_try_link "$LINENO"; then :
9029  ac_cv_lib_socket_connect=yes
9030else
9031  ac_cv_lib_socket_connect=no
9032fi
9033rm -f core conftest.err conftest.$ac_objext \
9034    conftest$ac_exeext conftest.$ac_ext
9035LIBS=$ac_check_lib_save_LIBS
9036fi
9037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
9038$as_echo "$ac_cv_lib_socket_connect" >&6; }
9039if test "x$ac_cv_lib_socket_connect" = xyes; then :
9040  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9041fi
9042
9043    fi
9044
9045    # Guillermo Gomez says -lposix is necessary on A/UX.
9046    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
9047if test "x$ac_cv_func_remove" = xyes; then :
9048
9049fi
9050
9051    if test $ac_cv_func_remove = no; then
9052      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
9053$as_echo_n "checking for remove in -lposix... " >&6; }
9054if ${ac_cv_lib_posix_remove+:} false; then :
9055  $as_echo_n "(cached) " >&6
9056else
9057  ac_check_lib_save_LIBS=$LIBS
9058LIBS="-lposix  $LIBS"
9059cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9060/* end confdefs.h.  */
9061
9062/* Override any GCC internal prototype to avoid an error.
9063   Use char because int might match the return type of a GCC
9064   builtin and then its argument prototype would still apply.  */
9065#ifdef __cplusplus
9066extern "C"
9067#endif
9068char remove ();
9069int
9070main ()
9071{
9072return remove ();
9073  ;
9074  return 0;
9075}
9076_ACEOF
9077if ac_fn_c_try_link "$LINENO"; then :
9078  ac_cv_lib_posix_remove=yes
9079else
9080  ac_cv_lib_posix_remove=no
9081fi
9082rm -f core conftest.err conftest.$ac_objext \
9083    conftest$ac_exeext conftest.$ac_ext
9084LIBS=$ac_check_lib_save_LIBS
9085fi
9086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
9087$as_echo "$ac_cv_lib_posix_remove" >&6; }
9088if test "x$ac_cv_lib_posix_remove" = xyes; then :
9089  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9090fi
9091
9092    fi
9093
9094    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9095    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
9096if test "x$ac_cv_func_shmat" = xyes; then :
9097
9098fi
9099
9100    if test $ac_cv_func_shmat = no; then
9101      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
9102$as_echo_n "checking for shmat in -lipc... " >&6; }
9103if ${ac_cv_lib_ipc_shmat+:} false; then :
9104  $as_echo_n "(cached) " >&6
9105else
9106  ac_check_lib_save_LIBS=$LIBS
9107LIBS="-lipc  $LIBS"
9108cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9109/* end confdefs.h.  */
9110
9111/* Override any GCC internal prototype to avoid an error.
9112   Use char because int might match the return type of a GCC
9113   builtin and then its argument prototype would still apply.  */
9114#ifdef __cplusplus
9115extern "C"
9116#endif
9117char shmat ();
9118int
9119main ()
9120{
9121return shmat ();
9122  ;
9123  return 0;
9124}
9125_ACEOF
9126if ac_fn_c_try_link "$LINENO"; then :
9127  ac_cv_lib_ipc_shmat=yes
9128else
9129  ac_cv_lib_ipc_shmat=no
9130fi
9131rm -f core conftest.err conftest.$ac_objext \
9132    conftest$ac_exeext conftest.$ac_ext
9133LIBS=$ac_check_lib_save_LIBS
9134fi
9135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
9136$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
9137if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
9138  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9139fi
9140
9141    fi
9142  fi
9143
9144  # Check for libraries that X11R6 Xt/Xaw programs need.
9145  ac_save_LDFLAGS=$LDFLAGS
9146  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9147  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9148  # check for ICE first), but we must link in the order -lSM -lICE or
9149  # we get undefined symbols.  So assume we have SM if we have ICE.
9150  # These have to be linked with before -lX11, unlike the other
9151  # libraries we check for below, so use a different variable.
9152  # John Interrante, Karl Berry
9153  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
9154$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
9155if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
9156  $as_echo_n "(cached) " >&6
9157else
9158  ac_check_lib_save_LIBS=$LIBS
9159LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9160cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9161/* end confdefs.h.  */
9162
9163/* Override any GCC internal prototype to avoid an error.
9164   Use char because int might match the return type of a GCC
9165   builtin and then its argument prototype would still apply.  */
9166#ifdef __cplusplus
9167extern "C"
9168#endif
9169char IceConnectionNumber ();
9170int
9171main ()
9172{
9173return IceConnectionNumber ();
9174  ;
9175  return 0;
9176}
9177_ACEOF
9178if ac_fn_c_try_link "$LINENO"; then :
9179  ac_cv_lib_ICE_IceConnectionNumber=yes
9180else
9181  ac_cv_lib_ICE_IceConnectionNumber=no
9182fi
9183rm -f core conftest.err conftest.$ac_objext \
9184    conftest$ac_exeext conftest.$ac_ext
9185LIBS=$ac_check_lib_save_LIBS
9186fi
9187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9188$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
9189if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
9190  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9191fi
9192
9193  LDFLAGS=$ac_save_LDFLAGS
9194
9195fi
9196
9197
9198
9199# Check whether --with-gl was given.
9200if test "${with_gl+set}" = set; then :
9201  withval=$with_gl;
9202    case "$withval" in #(
9203  "no"|"NO") :
9204    ax_check_gl_want_gl="no" ;; #(
9205  "yes"|"YES") :
9206    ax_check_gl_want_gl="yes" ;; #(
9207  *) :
9208    ax_check_gl_want_gl="$withval" ;;
9209esac
9210
9211else
9212  ax_check_gl_want_gl="yes"
9213fi
9214
9215
9216 # check consistency of parameters
9217 if test "X$have_x" = "Xdisabled"; then :
9218  if test X$ax_check_gl_want_gl = "Xx"; then :
9219  as_fn_error $? "You prefer OpenGL with X and asked for no X support" "$LINENO" 5
9220fi
9221fi
9222
9223 # set flags
9224 no_gl="yes"
9225
9226 # now do the real testing
9227 if test X$ax_check_gl_want_gl != "Xno"; then :
9228
9229
9230 # does we need X or not
9231  # do not check if empty : allow a subroutine to modify the choice
9232 if test "X$ax_check_gl_need_x" = "X"; then :
9233  ax_check_gl_need_x="default"
9234        if test "X$no_x" = "Xyes"; then :
9235  ax_check_gl_need_x="no"
9236fi
9237        if test "X$ax_check_gl_want_gl" = "Xnox"; then :
9238  ax_check_gl_need_x="no"
9239fi
9240        if test "X$ax_check_gl_want_gl" = "Xx"; then :
9241  ax_check_gl_need_x="yes"
9242fi
9243fi
9244
9245
9246 # try first pkgconfig
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working OpenGL implementation by pkg-config" >&5
9248$as_echo_n "checking for a working OpenGL implementation by pkg-config... " >&6; }
9249 if test "X${PKG_CONFIG}" = "X"; then :
9250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9251$as_echo "no" >&6; }
9252         ax_check_gl_pkg_config=no
9253else
9254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9255$as_echo "yes" >&6; }
9256
9257
9258
9259pkg_failed=no
9260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GL" >&5
9261$as_echo_n "checking for GL... " >&6; }
9262
9263if test -n "$GL_CFLAGS"; then
9264    pkg_cv_GL_CFLAGS="$GL_CFLAGS"
9265 elif test -n "$PKG_CONFIG"; then
9266    if test -n "$PKG_CONFIG" && \
9267    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gl\""; } >&5
9268  ($PKG_CONFIG --exists --print-errors "gl") 2>&5
9269  ac_status=$?
9270  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9271  test $ac_status = 0; }; then
9272  pkg_cv_GL_CFLAGS=`$PKG_CONFIG --cflags "gl" 2>/dev/null`
9273		      test "x$?" != "x0" && pkg_failed=yes
9274else
9275  pkg_failed=yes
9276fi
9277 else
9278    pkg_failed=untried
9279fi
9280if test -n "$GL_LIBS"; then
9281    pkg_cv_GL_LIBS="$GL_LIBS"
9282 elif test -n "$PKG_CONFIG"; then
9283    if test -n "$PKG_CONFIG" && \
9284    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gl\""; } >&5
9285  ($PKG_CONFIG --exists --print-errors "gl") 2>&5
9286  ac_status=$?
9287  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9288  test $ac_status = 0; }; then
9289  pkg_cv_GL_LIBS=`$PKG_CONFIG --libs "gl" 2>/dev/null`
9290		      test "x$?" != "x0" && pkg_failed=yes
9291else
9292  pkg_failed=yes
9293fi
9294 else
9295    pkg_failed=untried
9296fi
9297
9298
9299
9300if test $pkg_failed = yes; then
9301   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9302$as_echo "no" >&6; }
9303
9304if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9305        _pkg_short_errors_supported=yes
9306else
9307        _pkg_short_errors_supported=no
9308fi
9309        if test $_pkg_short_errors_supported = yes; then
9310	        GL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gl" 2>&1`
9311        else
9312	        GL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gl" 2>&1`
9313        fi
9314	# Put the nasty error message in config.log where it belongs
9315	echo "$GL_PKG_ERRORS" >&5
9316
9317	ax_check_gl_pkg_config=no
9318elif test $pkg_failed = untried; then
9319     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9320$as_echo "no" >&6; }
9321	ax_check_gl_pkg_config=no
9322else
9323	GL_CFLAGS=$pkg_cv_GL_CFLAGS
9324	GL_LIBS=$pkg_cv_GL_LIBS
9325        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9326$as_echo "yes" >&6; }
9327	ax_check_gl_pkg_config=yes
9328fi
9329 if test "X$ax_check_gl_pkg_config" = "Xyes"; then :
9330
9331        # check headers
9332        ac_ext=c
9333ac_cpp='$CPP $CPPFLAGS'
9334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9336ac_compiler_gnu=$ac_cv_c_compiler_gnu
9337
9338 	ax_check_gl_saved_libs="${LIBS}"
9339ax_check_gl_saved_cflags="${CFLAGS}"
9340ax_check_gl_saved_cppflags="${CPPFLAGS}"
9341ax_check_gl_saved_ldflags="${LDFLAGS}"
9342
9343        CFLAGS="${GL_CFLAGS} ${CFLAGS}"
9344        for ac_header in windows.h
9345do :
9346  ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
9347"
9348if test "x$ac_cv_header_windows_h" = xyes; then :
9349  cat >>confdefs.h <<_ACEOF
9350#define HAVE_WINDOWS_H 1
9351_ACEOF
9352
9353fi
9354
9355done
9356
9357        for ac_header in GL/gl.h OpenGL/gl.h
9358do :
9359  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9360ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
9361  $ac_includes_default
9362
9363  # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9364  #   include <windows.h>
9365  # endif
9366
9367
9368"
9369if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9370  cat >>confdefs.h <<_ACEOF
9371#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9372_ACEOF
9373 ax_check_gl_have_headers="yes";break
9374else
9375  ax_check_gl_have_headers_headers="no"
9376fi
9377
9378done
9379
9380        LIBS="${ax_check_gl_saved_libs}"
9381CFLAGS="${ax_check_gl_saved_cflags}"
9382CPPFLAGS="${ax_check_gl_saved_cppflags}"
9383LDFLAGS="${ax_check_gl_saved_ldflags}"
9384
9385	ac_ext=c
9386ac_cpp='$CPP $CPPFLAGS'
9387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9389ac_compiler_gnu=$ac_cv_c_compiler_gnu
9390
9391	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
9392$as_echo_n "checking for OpenGL headers... " >&6; }
9393if ${ax_cv_check_gl_have_headers+:} false; then :
9394  $as_echo_n "(cached) " >&6
9395else
9396  ax_cv_check_gl_have_headers="${ax_check_gl_have_headers}"
9397fi
9398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_gl_have_headers" >&5
9399$as_echo "$ax_cv_check_gl_have_headers" >&6; }
9400
9401        # pkgconfig library are suposed to work ...
9402        if test "X$ax_cv_check_gl_have_headers" = "Xno"; then :
9403  as_fn_error $? "\"Pkgconfig detected OpenGL library has no headers!\"" "$LINENO" 5
9404fi
9405
9406	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling a minimal OpenGL program" >&5
9407$as_echo_n "checking for compiling a minimal OpenGL program... " >&6; }
9408if ${ax_cv_check_gl_compile_opengl+:} false; then :
9409  $as_echo_n "(cached) " >&6
9410else
9411   ac_ext=c
9412ac_cpp='$CPP $CPPFLAGS'
9413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9415ac_compiler_gnu=$ac_cv_c_compiler_gnu
9416
9417 ax_check_gl_saved_libs="${LIBS}"
9418ax_check_gl_saved_cflags="${CFLAGS}"
9419ax_check_gl_saved_cppflags="${CPPFLAGS}"
9420ax_check_gl_saved_ldflags="${LDFLAGS}"
9421
9422 CFLAGS="${GL_CFLAGS} ${CFLAGS}"
9423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9424/* end confdefs.h.  */
9425
9426# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9427#   include <windows.h>
9428# endif
9429# ifdef HAVE_GL_GL_H
9430#   include <GL/gl.h>
9431# elif defined(HAVE_OPENGL_GL_H)
9432#   include <OpenGL/gl.h>
9433# else
9434#   error no gl.h
9435# endif
9436
9437int
9438main ()
9439{
9440glBegin(0)
9441  ;
9442  return 0;
9443}
9444_ACEOF
9445if ac_fn_c_try_compile "$LINENO"; then :
9446  ax_check_gl_compile_opengl="yes"
9447else
9448  ax_check_gl_compile_opengl="no"
9449fi
9450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9451 LIBS="${ax_check_gl_saved_libs}"
9452CFLAGS="${ax_check_gl_saved_cflags}"
9453CPPFLAGS="${ax_check_gl_saved_cppflags}"
9454LDFLAGS="${ax_check_gl_saved_ldflags}"
9455
9456 ac_ext=c
9457ac_cpp='$CPP $CPPFLAGS'
9458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9460ac_compiler_gnu=$ac_cv_c_compiler_gnu
9461
9462
9463                 ax_cv_check_gl_compile_opengl="${ax_check_gl_compile_opengl}"
9464fi
9465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_gl_compile_opengl" >&5
9466$as_echo "$ax_cv_check_gl_compile_opengl" >&6; }
9467 ax_check_gl_compile_opengl="${ax_cv_check_gl_compile_opengl}"
9468
9469	if test "X$ax_cv_check_gl_compile_opengl" = "Xno"; then :
9470  as_fn_error $? "\"Pkgconfig detected opengl library could not be used for compiling minimal program!\"" "$LINENO" 5
9471fi
9472
9473	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking a minimal OpenGL program" >&5
9474$as_echo_n "checking for linking a minimal OpenGL program... " >&6; }
9475if ${ax_cv_check_gl_link_opengl+:} false; then :
9476  $as_echo_n "(cached) " >&6
9477else
9478   ac_ext=c
9479ac_cpp='$CPP $CPPFLAGS'
9480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9482ac_compiler_gnu=$ac_cv_c_compiler_gnu
9483
9484 ax_check_gl_saved_libs="${LIBS}"
9485ax_check_gl_saved_cflags="${CFLAGS}"
9486ax_check_gl_saved_cppflags="${CPPFLAGS}"
9487ax_check_gl_saved_ldflags="${LDFLAGS}"
9488
9489 CFLAGS="${GL_CFLAGS} ${CFLAGS}"
9490 LIBS="${GL_LIBS} ${LIBS}"
9491 LDFLAGS="${GL_LDFLAGS} ${LDFLAGS}"
9492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9493/* end confdefs.h.  */
9494
9495# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9496#   include <windows.h>
9497# endif
9498# ifdef HAVE_GL_GL_H
9499#   include <GL/gl.h>
9500# elif defined(HAVE_OPENGL_GL_H)
9501#   include <OpenGL/gl.h>
9502# else
9503#   error no gl.h
9504# endif
9505
9506int
9507main ()
9508{
9509glBegin(0)
9510  ;
9511  return 0;
9512}
9513_ACEOF
9514if ac_fn_c_try_link "$LINENO"; then :
9515  ax_check_gl_link_opengl="yes"
9516else
9517  ax_check_gl_link_opengl="no"
9518fi
9519rm -f core conftest.err conftest.$ac_objext \
9520    conftest$ac_exeext conftest.$ac_ext
9521 LIBS="${ax_check_gl_saved_libs}"
9522CFLAGS="${ax_check_gl_saved_cflags}"
9523CPPFLAGS="${ax_check_gl_saved_cppflags}"
9524LDFLAGS="${ax_check_gl_saved_ldflags}"
9525
9526 ac_ext=c
9527ac_cpp='$CPP $CPPFLAGS'
9528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9530ac_compiler_gnu=$ac_cv_c_compiler_gnu
9531
9532
9533                 ax_cv_check_gl_link_opengl="${ax_check_gl_link_opengl}"
9534fi
9535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_gl_link_opengl" >&5
9536$as_echo "$ax_cv_check_gl_link_opengl" >&6; }
9537 ax_check_gl_link_opengl="${ax_cv_check_gl_link_opengl}"
9538
9539	if test "X$ax_cv_check_gl_link_opengl" = "Xno"; then :
9540  as_fn_error $? "\"Pkgconfig detected opengl library could not be used for linking minimal program!\"" "$LINENO" 5
9541fi
9542
9543fi
9544
9545fi
9546
9547 # if no pkgconfig or pkgconfig fail try manual way
9548 if test "X$ax_check_gl_pkg_config" = "Xno"; then :
9549
9550 no_gl="yes"
9551
9552
9553 case ${host} in #(
9554  *-darwin*) :
9555     case $ax_check_gl_need_x in #(
9556  # try to get X libs if possible do not use framework
9557         yes) :
9558
9559 ac_ext=c
9560ac_cpp='$CPP $CPPFLAGS'
9561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9563ac_compiler_gnu=$ac_cv_c_compiler_gnu
9564
9565 ax_check_gl_saved_libs="${LIBS}"
9566ax_check_gl_saved_cflags="${CFLAGS}"
9567ax_check_gl_saved_cppflags="${CPPFLAGS}"
9568ax_check_gl_saved_ldflags="${LDFLAGS}"
9569
9570 CFLAGS="${GL_CFLAGS} ${CFLAGS}"
9571 # see comment in _AX_CHECK_GL_INCLUDES_DEFAULT
9572 for ac_header in windows.h
9573do :
9574  ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
9575"
9576if test "x$ac_cv_header_windows_h" = xyes; then :
9577  cat >>confdefs.h <<_ACEOF
9578#define HAVE_WINDOWS_H 1
9579_ACEOF
9580
9581fi
9582
9583done
9584
9585 # FIXME: use extra cflags
9586 for ac_header in GL/gl.h
9587do :
9588  ac_fn_c_check_header_compile "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" "
9589  $ac_includes_default
9590
9591  # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9592  #   include <windows.h>
9593  # endif
9594
9595
9596"
9597if test "x$ac_cv_header_GL_gl_h" = xyes; then :
9598  cat >>confdefs.h <<_ACEOF
9599#define HAVE_GL_GL_H 1
9600_ACEOF
9601 ax_check_gl_have_headers="yes"
9602else
9603  ax_check_gl_have_headers_headers="no"
9604fi
9605
9606done
9607
9608 # do not try darwin specific OpenGl/gl.h
9609 LIBS="${ax_check_gl_saved_libs}"
9610CFLAGS="${ax_check_gl_saved_cflags}"
9611CPPFLAGS="${ax_check_gl_saved_cppflags}"
9612LDFLAGS="${ax_check_gl_saved_ldflags}"
9613
9614 ac_ext=c
9615ac_cpp='$CPP $CPPFLAGS'
9616ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9617ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9618ac_compiler_gnu=$ac_cv_c_compiler_gnu
9619
9620
9621	 no ;; #(
9622  *) :
9623
9624 ac_ext=c
9625ac_cpp='$CPP $CPPFLAGS'
9626ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9627ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9628ac_compiler_gnu=$ac_cv_c_compiler_gnu
9629
9630 ax_check_gl_saved_libs="${LIBS}"
9631ax_check_gl_saved_cflags="${CFLAGS}"
9632ax_check_gl_saved_cppflags="${CPPFLAGS}"
9633ax_check_gl_saved_ldflags="${LDFLAGS}"
9634
9635 # FIXME: use -framework opengl as an extra cflags
9636 CFLAGS="-framework opengl ${GL_CFLAGS} ${CFLAGS}"
9637 for ac_header in OpenGL/gl.h
9638do :
9639  ac_fn_c_check_header_compile "$LINENO" "OpenGL/gl.h" "ac_cv_header_OpenGL_gl_h" "
9640  $ac_includes_default
9641
9642  # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9643  #   include <windows.h>
9644  # endif
9645
9646
9647"
9648if test "x$ac_cv_header_OpenGL_gl_h" = xyes; then :
9649  cat >>confdefs.h <<_ACEOF
9650#define HAVE_OPENGL_GL_H 1
9651_ACEOF
9652 ax_check_gl_have_headers="yes"
9653else
9654  ax_check_gl_have_headers_headers="no"
9655fi
9656
9657done
9658
9659 if test "X$ax_check_gl_have_headers" = "yes"; then :
9660  GL_CFLAGS="-framework opengl ${GL_CFLAGS}"
9661fi
9662 ax_check_gl_saved_libs="${LIBS}"
9663ax_check_gl_saved_cflags="${CFLAGS}"
9664ax_check_gl_saved_cppflags="${CPPFLAGS}"
9665ax_check_gl_saved_ldflags="${LDFLAGS}"
9666
9667 ac_ext=c
9668ac_cpp='$CPP $CPPFLAGS'
9669ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9670ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9671ac_compiler_gnu=$ac_cv_c_compiler_gnu
9672
9673
9674	 # per default use framework that will select if possible no_x version
9675
9676 ac_ext=c
9677ac_cpp='$CPP $CPPFLAGS'
9678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9680ac_compiler_gnu=$ac_cv_c_compiler_gnu
9681
9682 ax_check_gl_saved_libs="${LIBS}"
9683ax_check_gl_saved_cflags="${CFLAGS}"
9684ax_check_gl_saved_cppflags="${CPPFLAGS}"
9685ax_check_gl_saved_ldflags="${LDFLAGS}"
9686
9687 # FIXME: use -framework opengl as an extra cflags
9688 CFLAGS="-framework opengl ${GL_CFLAGS} ${CFLAGS}"
9689 for ac_header in OpenGL/gl.h
9690do :
9691  ac_fn_c_check_header_compile "$LINENO" "OpenGL/gl.h" "ac_cv_header_OpenGL_gl_h" "
9692  $ac_includes_default
9693
9694  # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9695  #   include <windows.h>
9696  # endif
9697
9698
9699"
9700if test "x$ac_cv_header_OpenGL_gl_h" = xyes; then :
9701  cat >>confdefs.h <<_ACEOF
9702#define HAVE_OPENGL_GL_H 1
9703_ACEOF
9704 ax_check_gl_have_headers="yes"
9705else
9706  ax_check_gl_have_headers_headers="no"
9707fi
9708
9709done
9710
9711 if test "X$ax_check_gl_have_headers" = "yes"; then :
9712  GL_CFLAGS="-framework opengl ${GL_CFLAGS}"
9713fi
9714 ax_check_gl_saved_libs="${LIBS}"
9715ax_check_gl_saved_cflags="${CFLAGS}"
9716ax_check_gl_saved_cppflags="${CPPFLAGS}"
9717ax_check_gl_saved_ldflags="${LDFLAGS}"
9718
9719 ac_ext=c
9720ac_cpp='$CPP $CPPFLAGS'
9721ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9722ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9723ac_compiler_gnu=$ac_cv_c_compiler_gnu
9724
9725
9726	  # if not found set that we need x in order to found the good library
9727	  if test "X$ax_check_gl_have_headers" = "yes"; then :
9728  ax_check_gl_need_x="no"
9729else
9730  ax_check_gl_need_x="yes"
9731		 # retry with general test
9732
9733 ac_ext=c
9734ac_cpp='$CPP $CPPFLAGS'
9735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9737ac_compiler_gnu=$ac_cv_c_compiler_gnu
9738
9739 ax_check_gl_saved_libs="${LIBS}"
9740ax_check_gl_saved_cflags="${CFLAGS}"
9741ax_check_gl_saved_cppflags="${CPPFLAGS}"
9742ax_check_gl_saved_ldflags="${LDFLAGS}"
9743
9744 CFLAGS="${GL_CFLAGS} ${CFLAGS}"
9745 # see comment in _AX_CHECK_GL_INCLUDES_DEFAULT
9746 for ac_header in windows.h
9747do :
9748  ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
9749"
9750if test "x$ac_cv_header_windows_h" = xyes; then :
9751  cat >>confdefs.h <<_ACEOF
9752#define HAVE_WINDOWS_H 1
9753_ACEOF
9754
9755fi
9756
9757done
9758
9759 # FIXME: use extra cflags
9760 for ac_header in GL/gl.h
9761do :
9762  ac_fn_c_check_header_compile "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" "
9763  $ac_includes_default
9764
9765  # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9766  #   include <windows.h>
9767  # endif
9768
9769
9770"
9771if test "x$ac_cv_header_GL_gl_h" = xyes; then :
9772  cat >>confdefs.h <<_ACEOF
9773#define HAVE_GL_GL_H 1
9774_ACEOF
9775 ax_check_gl_have_headers="yes"
9776else
9777  ax_check_gl_have_headers_headers="no"
9778fi
9779
9780done
9781
9782 # do not try darwin specific OpenGl/gl.h
9783 LIBS="${ax_check_gl_saved_libs}"
9784CFLAGS="${ax_check_gl_saved_cflags}"
9785CPPFLAGS="${ax_check_gl_saved_cppflags}"
9786LDFLAGS="${ax_check_gl_saved_ldflags}"
9787
9788 ac_ext=c
9789ac_cpp='$CPP $CPPFLAGS'
9790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9792ac_compiler_gnu=$ac_cv_c_compiler_gnu
9793
9794
9795fi
9796  ;;
9797esac
9798 ;; #(
9799  *) :
9800
9801 ac_ext=c
9802ac_cpp='$CPP $CPPFLAGS'
9803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9805ac_compiler_gnu=$ac_cv_c_compiler_gnu
9806
9807 ax_check_gl_saved_libs="${LIBS}"
9808ax_check_gl_saved_cflags="${CFLAGS}"
9809ax_check_gl_saved_cppflags="${CPPFLAGS}"
9810ax_check_gl_saved_ldflags="${LDFLAGS}"
9811
9812 CFLAGS="${GL_CFLAGS} ${CFLAGS}"
9813 # see comment in _AX_CHECK_GL_INCLUDES_DEFAULT
9814 for ac_header in windows.h
9815do :
9816  ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
9817"
9818if test "x$ac_cv_header_windows_h" = xyes; then :
9819  cat >>confdefs.h <<_ACEOF
9820#define HAVE_WINDOWS_H 1
9821_ACEOF
9822
9823fi
9824
9825done
9826
9827 # FIXME: use extra cflags
9828 for ac_header in GL/gl.h
9829do :
9830  ac_fn_c_check_header_compile "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" "
9831  $ac_includes_default
9832
9833  # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9834  #   include <windows.h>
9835  # endif
9836
9837
9838"
9839if test "x$ac_cv_header_GL_gl_h" = xyes; then :
9840  cat >>confdefs.h <<_ACEOF
9841#define HAVE_GL_GL_H 1
9842_ACEOF
9843 ax_check_gl_have_headers="yes"
9844else
9845  ax_check_gl_have_headers_headers="no"
9846fi
9847
9848done
9849
9850 # do not try darwin specific OpenGl/gl.h
9851 LIBS="${ax_check_gl_saved_libs}"
9852CFLAGS="${ax_check_gl_saved_cflags}"
9853CPPFLAGS="${ax_check_gl_saved_cppflags}"
9854LDFLAGS="${ax_check_gl_saved_ldflags}"
9855
9856 ac_ext=c
9857ac_cpp='$CPP $CPPFLAGS'
9858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9860ac_compiler_gnu=$ac_cv_c_compiler_gnu
9861
9862 ;;
9863esac
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
9865$as_echo_n "checking for OpenGL headers... " >&6; }
9866if ${ax_cv_check_gl_have_headers+:} false; then :
9867  $as_echo_n "(cached) " >&6
9868else
9869  ax_cv_check_gl_have_headers="${ax_check_gl_have_headers}"
9870fi
9871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_gl_have_headers" >&5
9872$as_echo "$ax_cv_check_gl_have_headers" >&6; }
9873
9874 if test "X$ax_check_gl_have_headers" = "Xyes"; then :
9875   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling a minimal OpenGL program" >&5
9876$as_echo_n "checking for compiling a minimal OpenGL program... " >&6; }
9877if ${ax_cv_check_gl_compile_opengl+:} false; then :
9878  $as_echo_n "(cached) " >&6
9879else
9880   ac_ext=c
9881ac_cpp='$CPP $CPPFLAGS'
9882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9884ac_compiler_gnu=$ac_cv_c_compiler_gnu
9885
9886 ax_check_gl_saved_libs="${LIBS}"
9887ax_check_gl_saved_cflags="${CFLAGS}"
9888ax_check_gl_saved_cppflags="${CPPFLAGS}"
9889ax_check_gl_saved_ldflags="${LDFLAGS}"
9890
9891 CFLAGS="${GL_CFLAGS} ${CFLAGS}"
9892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9893/* end confdefs.h.  */
9894
9895# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9896#   include <windows.h>
9897# endif
9898# ifdef HAVE_GL_GL_H
9899#   include <GL/gl.h>
9900# elif defined(HAVE_OPENGL_GL_H)
9901#   include <OpenGL/gl.h>
9902# else
9903#   error no gl.h
9904# endif
9905
9906int
9907main ()
9908{
9909glBegin(0)
9910  ;
9911  return 0;
9912}
9913_ACEOF
9914if ac_fn_c_try_compile "$LINENO"; then :
9915  ax_check_gl_compile_opengl="yes"
9916else
9917  ax_check_gl_compile_opengl="no"
9918fi
9919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9920 LIBS="${ax_check_gl_saved_libs}"
9921CFLAGS="${ax_check_gl_saved_cflags}"
9922CPPFLAGS="${ax_check_gl_saved_cppflags}"
9923LDFLAGS="${ax_check_gl_saved_ldflags}"
9924
9925 ac_ext=c
9926ac_cpp='$CPP $CPPFLAGS'
9927ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9928ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9929ac_compiler_gnu=$ac_cv_c_compiler_gnu
9930
9931
9932                 ax_cv_check_gl_compile_opengl="${ax_check_gl_compile_opengl}"
9933fi
9934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_gl_compile_opengl" >&5
9935$as_echo "$ax_cv_check_gl_compile_opengl" >&6; }
9936 ax_check_gl_compile_opengl="${ax_cv_check_gl_compile_opengl}"
9937
9938else
9939  ax_check_gl_compile_opengl=no
9940fi
9941
9942 if test "X$ax_check_gl_compile_opengl" = "Xyes"; then :
9943
9944 case ${host} in #(
9945  *-darwin*) :
9946    # ldhack list
9947 ldhack1 = "-Wl,-framework,OpenGL"
9948 ldhack2 = "-Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib"
9949 ldhack3 = "$ldhack1,$ldhack2"
9950
9951 # select hack
9952 if test "X$ax_check_gl_need_x" = "Xyes"; then :
9953  # libs already set by -framework cflag
9954        darwinlibs=""
9955        ldhacks="$ldhack1 $ldhack2 $ldhack3"
9956else
9957  # do not use framework ldflags in case of x version
9958        darwinlibs="GL gl MesaGL"
9959        ldhack="$ldhack2"
9960fi
9961
9962 ax_check_gl_link_opengl="no"
9963 for extralibs in " " $darwinlibs; do
9964   for extraldflags in " " ldhacks; do
9965       ac_ext=c
9966ac_cpp='$CPP $CPPFLAGS'
9967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9969ac_compiler_gnu=$ac_cv_c_compiler_gnu
9970
9971        ax_check_gl_saved_libs="${LIBS}"
9972ax_check_gl_saved_cflags="${CFLAGS}"
9973ax_check_gl_saved_cppflags="${CPPFLAGS}"
9974ax_check_gl_saved_ldflags="${LDFLAGS}"
9975
9976       CFLAGS="${GL_CFLAGS} ${CFLAGS}"
9977       LIBS="$extralibs ${GL_LIBS} ${LIBS}"
9978       LDFLAGS="$extraldflags ${GL_LDFLAGS} ${LDFLAGS}"
9979       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9980/* end confdefs.h.  */
9981
9982# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9983#   include <windows.h>
9984# endif
9985# ifdef HAVE_GL_GL_H
9986#   include <GL/gl.h>
9987# elif defined(HAVE_OPENGL_GL_H)
9988#   include <OpenGL/gl.h>
9989# else
9990#   error no gl.h
9991# endif
9992
9993int
9994main ()
9995{
9996glBegin(0)
9997  ;
9998  return 0;
9999}
10000_ACEOF
10001if ac_fn_c_try_link "$LINENO"; then :
10002  ax_check_gl_link_opengl="yes"
10003else
10004  ax_check_gl_link_opengl="no"
10005fi
10006rm -f core conftest.err conftest.$ac_objext \
10007    conftest$ac_exeext conftest.$ac_ext
10008       LIBS="${ax_check_gl_saved_libs}"
10009CFLAGS="${ax_check_gl_saved_cflags}"
10010CPPFLAGS="${ax_check_gl_saved_cppflags}"
10011LDFLAGS="${ax_check_gl_saved_ldflags}"
10012
10013       ac_ext=c
10014ac_cpp='$CPP $CPPFLAGS'
10015ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10016ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10017ac_compiler_gnu=$ac_cv_c_compiler_gnu
10018
10019       if test "X$ax_check_gl_link_opengl" = "Xyes"; then :
10020  break
10021fi
10022   done;
10023   if test "X$ax_check_gl_link_opengl" = "Xyes"; then :
10024  break
10025fi
10026 done;
10027 GL_LIBS="$extralibs ${GL_LIBS}"
10028 GL_LDFLAGS="$extraldflags ${GL_LDFLAGS}"
10029 ;; #(
10030  # try first cygwin version
10031         *-cygwin*) :
10032     ax_check_gl_manual_libs_generic_extra_libs="GL gl MesaGL opengl32"
10033 if test "X$ax_check_gl_manual_libs_generic_extra_libs" = "X"; then :
10034  as_fn_error $? "AX_CHECK_GL_MANUAL_LIBS_GENERIC argument must no be empty" "$LINENO" 5
10035fi
10036
10037 ac_ext=c
10038ac_cpp='$CPP $CPPFLAGS'
10039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10041ac_compiler_gnu=$ac_cv_c_compiler_gnu
10042
10043 ax_check_gl_saved_libs="${LIBS}"
10044ax_check_gl_saved_cflags="${CFLAGS}"
10045ax_check_gl_saved_cppflags="${CPPFLAGS}"
10046ax_check_gl_saved_ldflags="${LDFLAGS}"
10047
10048 CFLAGS="${GL_CFLAGS} ${CFLAGS}"
10049 LIBS="${GL_LIBS} ${LIBS}"
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing glBegin" >&5
10051$as_echo_n "checking for library containing glBegin... " >&6; }
10052if ${ac_cv_search_glBegin+:} false; then :
10053  $as_echo_n "(cached) " >&6
10054else
10055  ac_func_search_save_LIBS=$LIBS
10056cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10057/* end confdefs.h.  */
10058
10059/* Override any GCC internal prototype to avoid an error.
10060   Use char because int might match the return type of a GCC
10061   builtin and then its argument prototype would still apply.  */
10062#ifdef __cplusplus
10063extern "C"
10064#endif
10065char glBegin ();
10066int
10067main ()
10068{
10069return glBegin ();
10070  ;
10071  return 0;
10072}
10073_ACEOF
10074for ac_lib in '' $ax_check_gl_manual_libs_generic_extra_libs; do
10075  if test -z "$ac_lib"; then
10076    ac_res="none required"
10077  else
10078    ac_res=-l$ac_lib
10079    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10080  fi
10081  if ac_fn_c_try_link "$LINENO"; then :
10082  ac_cv_search_glBegin=$ac_res
10083fi
10084rm -f core conftest.err conftest.$ac_objext \
10085    conftest$ac_exeext
10086  if ${ac_cv_search_glBegin+:} false; then :
10087  break
10088fi
10089done
10090if ${ac_cv_search_glBegin+:} false; then :
10091
10092else
10093  ac_cv_search_glBegin=no
10094fi
10095rm conftest.$ac_ext
10096LIBS=$ac_func_search_save_LIBS
10097fi
10098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_glBegin" >&5
10099$as_echo "$ac_cv_search_glBegin" >&6; }
10100ac_res=$ac_cv_search_glBegin
10101if test "$ac_res" != no; then :
10102  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10103  ax_check_gl_lib_opengl="yes"
10104else
10105  ax_check_gl_lib_opengl="no"
10106fi
10107
10108 case $ac_cv_search_glBegin in #(
10109  "none required") :
10110     ;; #(
10111  no) :
10112     ;; #(
10113  *) :
10114    GL_LIBS="${ac_cv_search_glBegin} ${GL_LIBS}" ;;
10115esac
10116  LIBS="${ax_check_gl_saved_libs}"
10117CFLAGS="${ax_check_gl_saved_cflags}"
10118CPPFLAGS="${ax_check_gl_saved_cppflags}"
10119LDFLAGS="${ax_check_gl_saved_ldflags}"
10120
10121  ac_ext=c
10122ac_cpp='$CPP $CPPFLAGS'
10123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10125ac_compiler_gnu=$ac_cv_c_compiler_gnu
10126
10127 ;; #(
10128  # try first native
10129	 *-mingw*) :
10130     ax_check_gl_manual_libs_generic_extra_libs="opengl32 GL gl MesaGL"
10131 if test "X$ax_check_gl_manual_libs_generic_extra_libs" = "X"; then :
10132  as_fn_error $? "AX_CHECK_GL_MANUAL_LIBS_GENERIC argument must no be empty" "$LINENO" 5
10133fi
10134
10135 ac_ext=c
10136ac_cpp='$CPP $CPPFLAGS'
10137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10139ac_compiler_gnu=$ac_cv_c_compiler_gnu
10140
10141 ax_check_gl_saved_libs="${LIBS}"
10142ax_check_gl_saved_cflags="${CFLAGS}"
10143ax_check_gl_saved_cppflags="${CPPFLAGS}"
10144ax_check_gl_saved_ldflags="${LDFLAGS}"
10145
10146 CFLAGS="${GL_CFLAGS} ${CFLAGS}"
10147 LIBS="${GL_LIBS} ${LIBS}"
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing glBegin" >&5
10149$as_echo_n "checking for library containing glBegin... " >&6; }
10150if ${ac_cv_search_glBegin+:} false; then :
10151  $as_echo_n "(cached) " >&6
10152else
10153  ac_func_search_save_LIBS=$LIBS
10154cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10155/* end confdefs.h.  */
10156
10157/* Override any GCC internal prototype to avoid an error.
10158   Use char because int might match the return type of a GCC
10159   builtin and then its argument prototype would still apply.  */
10160#ifdef __cplusplus
10161extern "C"
10162#endif
10163char glBegin ();
10164int
10165main ()
10166{
10167return glBegin ();
10168  ;
10169  return 0;
10170}
10171_ACEOF
10172for ac_lib in '' $ax_check_gl_manual_libs_generic_extra_libs; do
10173  if test -z "$ac_lib"; then
10174    ac_res="none required"
10175  else
10176    ac_res=-l$ac_lib
10177    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10178  fi
10179  if ac_fn_c_try_link "$LINENO"; then :
10180  ac_cv_search_glBegin=$ac_res
10181fi
10182rm -f core conftest.err conftest.$ac_objext \
10183    conftest$ac_exeext
10184  if ${ac_cv_search_glBegin+:} false; then :
10185  break
10186fi
10187done
10188if ${ac_cv_search_glBegin+:} false; then :
10189
10190else
10191  ac_cv_search_glBegin=no
10192fi
10193rm conftest.$ac_ext
10194LIBS=$ac_func_search_save_LIBS
10195fi
10196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_glBegin" >&5
10197$as_echo "$ac_cv_search_glBegin" >&6; }
10198ac_res=$ac_cv_search_glBegin
10199if test "$ac_res" != no; then :
10200  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10201  ax_check_gl_lib_opengl="yes"
10202else
10203  ax_check_gl_lib_opengl="no"
10204fi
10205
10206 case $ac_cv_search_glBegin in #(
10207  "none required") :
10208     ;; #(
10209  no) :
10210     ;; #(
10211  *) :
10212    GL_LIBS="${ac_cv_search_glBegin} ${GL_LIBS}" ;;
10213esac
10214  LIBS="${ax_check_gl_saved_libs}"
10215CFLAGS="${ax_check_gl_saved_cflags}"
10216CPPFLAGS="${ax_check_gl_saved_cppflags}"
10217LDFLAGS="${ax_check_gl_saved_ldflags}"
10218
10219  ac_ext=c
10220ac_cpp='$CPP $CPPFLAGS'
10221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10223ac_compiler_gnu=$ac_cv_c_compiler_gnu
10224
10225 ;; #(
10226  *) :
10227     ax_check_gl_manual_libs_generic_extra_libs="GL gl MesaGL"
10228 if test "X$ax_check_gl_manual_libs_generic_extra_libs" = "X"; then :
10229  as_fn_error $? "AX_CHECK_GL_MANUAL_LIBS_GENERIC argument must no be empty" "$LINENO" 5
10230fi
10231
10232 ac_ext=c
10233ac_cpp='$CPP $CPPFLAGS'
10234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10236ac_compiler_gnu=$ac_cv_c_compiler_gnu
10237
10238 ax_check_gl_saved_libs="${LIBS}"
10239ax_check_gl_saved_cflags="${CFLAGS}"
10240ax_check_gl_saved_cppflags="${CPPFLAGS}"
10241ax_check_gl_saved_ldflags="${LDFLAGS}"
10242
10243 CFLAGS="${GL_CFLAGS} ${CFLAGS}"
10244 LIBS="${GL_LIBS} ${LIBS}"
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing glBegin" >&5
10246$as_echo_n "checking for library containing glBegin... " >&6; }
10247if ${ac_cv_search_glBegin+:} false; then :
10248  $as_echo_n "(cached) " >&6
10249else
10250  ac_func_search_save_LIBS=$LIBS
10251cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10252/* end confdefs.h.  */
10253
10254/* Override any GCC internal prototype to avoid an error.
10255   Use char because int might match the return type of a GCC
10256   builtin and then its argument prototype would still apply.  */
10257#ifdef __cplusplus
10258extern "C"
10259#endif
10260char glBegin ();
10261int
10262main ()
10263{
10264return glBegin ();
10265  ;
10266  return 0;
10267}
10268_ACEOF
10269for ac_lib in '' $ax_check_gl_manual_libs_generic_extra_libs; do
10270  if test -z "$ac_lib"; then
10271    ac_res="none required"
10272  else
10273    ac_res=-l$ac_lib
10274    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10275  fi
10276  if ac_fn_c_try_link "$LINENO"; then :
10277  ac_cv_search_glBegin=$ac_res
10278fi
10279rm -f core conftest.err conftest.$ac_objext \
10280    conftest$ac_exeext
10281  if ${ac_cv_search_glBegin+:} false; then :
10282  break
10283fi
10284done
10285if ${ac_cv_search_glBegin+:} false; then :
10286
10287else
10288  ac_cv_search_glBegin=no
10289fi
10290rm conftest.$ac_ext
10291LIBS=$ac_func_search_save_LIBS
10292fi
10293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_glBegin" >&5
10294$as_echo "$ac_cv_search_glBegin" >&6; }
10295ac_res=$ac_cv_search_glBegin
10296if test "$ac_res" != no; then :
10297  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10298  ax_check_gl_lib_opengl="yes"
10299else
10300  ax_check_gl_lib_opengl="no"
10301fi
10302
10303 case $ac_cv_search_glBegin in #(
10304  "none required") :
10305     ;; #(
10306  no) :
10307     ;; #(
10308  *) :
10309    GL_LIBS="${ac_cv_search_glBegin} ${GL_LIBS}" ;;
10310esac
10311  LIBS="${ax_check_gl_saved_libs}"
10312CFLAGS="${ax_check_gl_saved_cflags}"
10313CPPFLAGS="${ax_check_gl_saved_cppflags}"
10314LDFLAGS="${ax_check_gl_saved_ldflags}"
10315
10316  ac_ext=c
10317ac_cpp='$CPP $CPPFLAGS'
10318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10320ac_compiler_gnu=$ac_cv_c_compiler_gnu
10321
10322 ;;
10323esac
10324
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL libraries" >&5
10326$as_echo_n "checking for OpenGL libraries... " >&6; }
10327if ${ax_cv_check_gl_lib_opengl+:} false; then :
10328  $as_echo_n "(cached) " >&6
10329else
10330  ax_cv_check_gl_lib_opengl="${ax_check_gl_lib_opengl}"
10331fi
10332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_gl_lib_opengl" >&5
10333$as_echo "$ax_cv_check_gl_lib_opengl" >&6; }
10334 ax_check_gl_lib_opengl="${ax_cv_check_gl_lib_opengl}"
10335
10336else
10337  ax_check_gl_lib_opengl=no
10338fi
10339
10340 if test "X$ax_check_gl_lib_opengl" = "Xyes"; then :
10341   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking a minimal OpenGL program" >&5
10342$as_echo_n "checking for linking a minimal OpenGL program... " >&6; }
10343if ${ax_cv_check_gl_link_opengl+:} false; then :
10344  $as_echo_n "(cached) " >&6
10345else
10346   ac_ext=c
10347ac_cpp='$CPP $CPPFLAGS'
10348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10350ac_compiler_gnu=$ac_cv_c_compiler_gnu
10351
10352 ax_check_gl_saved_libs="${LIBS}"
10353ax_check_gl_saved_cflags="${CFLAGS}"
10354ax_check_gl_saved_cppflags="${CPPFLAGS}"
10355ax_check_gl_saved_ldflags="${LDFLAGS}"
10356
10357 CFLAGS="${GL_CFLAGS} ${CFLAGS}"
10358 LIBS="${GL_LIBS} ${LIBS}"
10359 LDFLAGS="${GL_LDFLAGS} ${LDFLAGS}"
10360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10361/* end confdefs.h.  */
10362
10363# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10364#   include <windows.h>
10365# endif
10366# ifdef HAVE_GL_GL_H
10367#   include <GL/gl.h>
10368# elif defined(HAVE_OPENGL_GL_H)
10369#   include <OpenGL/gl.h>
10370# else
10371#   error no gl.h
10372# endif
10373
10374int
10375main ()
10376{
10377glBegin(0)
10378  ;
10379  return 0;
10380}
10381_ACEOF
10382if ac_fn_c_try_link "$LINENO"; then :
10383  ax_check_gl_link_opengl="yes"
10384else
10385  ax_check_gl_link_opengl="no"
10386fi
10387rm -f core conftest.err conftest.$ac_objext \
10388    conftest$ac_exeext conftest.$ac_ext
10389 LIBS="${ax_check_gl_saved_libs}"
10390CFLAGS="${ax_check_gl_saved_cflags}"
10391CPPFLAGS="${ax_check_gl_saved_cppflags}"
10392LDFLAGS="${ax_check_gl_saved_ldflags}"
10393
10394 ac_ext=c
10395ac_cpp='$CPP $CPPFLAGS'
10396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10398ac_compiler_gnu=$ac_cv_c_compiler_gnu
10399
10400
10401                 ax_cv_check_gl_link_opengl="${ax_check_gl_link_opengl}"
10402fi
10403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_gl_link_opengl" >&5
10404$as_echo "$ax_cv_check_gl_link_opengl" >&6; }
10405 ax_check_gl_link_opengl="${ax_cv_check_gl_link_opengl}"
10406
10407else
10408  ax_check_gl_link_opengl=no
10409fi
10410
10411 if test "X$ax_check_gl_link_opengl" = "Xyes"; then :
10412  no_gl="no"
10413else
10414  no_gl="yes"
10415fi
10416
10417else
10418  no_gl=no
10419fi
10420
10421
10422 # test if need to test X compatibility
10423 if test $no_gl = no; then :
10424  # test X compatibility
10425 	if test X$ax_check_gl_need_x != "Xdefault"; then :
10426  { $as_echo "$as_me:${as_lineno-$LINENO}: checking wether OpenGL link implictly with X" >&5
10427$as_echo_n "checking wether OpenGL link implictly with X... " >&6; }
10428if ${ax_cv_check_gl_link_with_x+:} false; then :
10429  $as_echo_n "(cached) " >&6
10430else
10431
10432 # try if opengl need X
10433 ac_ext=c
10434ac_cpp='$CPP $CPPFLAGS'
10435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10437ac_compiler_gnu=$ac_cv_c_compiler_gnu
10438
10439 ax_check_gl_saved_libs="${LIBS}"
10440ax_check_gl_saved_cflags="${CFLAGS}"
10441ax_check_gl_saved_cppflags="${CPPFLAGS}"
10442ax_check_gl_saved_ldflags="${LDFLAGS}"
10443
10444 CFLAGS="${GL_CFLAGS} ${CFLAGS}"
10445 LIBS="${GL_LIBS} ${LIBS}"
10446 LDFLAGS="${GL_LDFLAGS} ${LDFLAGS}"
10447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10448/* end confdefs.h.  */
10449
10450/* Override any GCC internal prototype to avoid an error.
10451   Use char because int might match the return type of a GCC
10452   builtin and then its argument prototype would still apply.  */
10453#ifdef __cplusplus
10454extern "C"
10455#endif
10456char glXQueryVersion ();
10457int
10458main ()
10459{
10460return glXQueryVersion ();
10461  ;
10462  return 0;
10463}
10464_ACEOF
10465if ac_fn_c_try_link "$LINENO"; then :
10466  ax_check_gl_link_implicitly_with_x="yes"
10467else
10468  ax_check_gl_link_implicitly_with_x="no"
10469fi
10470rm -f core conftest.err conftest.$ac_objext \
10471    conftest$ac_exeext conftest.$ac_ext
10472 LIBS="${ax_check_gl_saved_libs}"
10473CFLAGS="${ax_check_gl_saved_cflags}"
10474CPPFLAGS="${ax_check_gl_saved_cppflags}"
10475LDFLAGS="${ax_check_gl_saved_ldflags}"
10476
10477 ac_ext=c
10478ac_cpp='$CPP $CPPFLAGS'
10479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10481ac_compiler_gnu=$ac_cv_c_compiler_gnu
10482
10483
10484                               ax_cv_check_gl_link_with_x="${ax_check_gl_link_implicitly_with_x}"
10485fi
10486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_gl_link_with_x" >&5
10487$as_echo "$ax_cv_check_gl_link_with_x" >&6; }
10488                               if test "X${ax_cv_check_gl_link_with_x}" = "X${ax_check_gl_need_x}"; then :
10489  no_gl="no"
10490else
10491  no_gl=yes
10492fi
10493fi
10494
10495fi
10496
10497fi
10498
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working OpenGL implementation" >&5
10500$as_echo_n "checking for a working OpenGL implementation... " >&6; }
10501 if test "X$no_gl" = "Xno"; then :
10502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10503$as_echo "yes" >&6; }
10504        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS needed for OpenGL" >&5
10505$as_echo_n "checking for CFLAGS needed for OpenGL... " >&6; }
10506        { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"${GL_CFLAGS}\"" >&5
10507$as_echo "\"${GL_CFLAGS}\"" >&6; }
10508        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS needed for OpenGL" >&5
10509$as_echo_n "checking for LIBS needed for OpenGL... " >&6; }
10510        { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"${GL_LIBS}\"" >&5
10511$as_echo "\"${GL_LIBS}\"" >&6; }
10512        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS needed for OpenGL" >&5
10513$as_echo_n "checking for LDFLAGS needed for OpenGL... " >&6; }
10514        { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"${GL_LDFLAGS}\"" >&5
10515$as_echo "\"${GL_LDFLAGS}\"" >&6; }
10516else
10517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10518$as_echo "no" >&6; }
10519        GL_CFLAGS=""
10520        GL_LIBS=""
10521        GL_LDFLAGS=""
10522fi
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532 # set flags
10533 no_glu="yes"
10534
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working OpenGL Utility (GLU) implementation by pkg-config" >&5
10536$as_echo_n "checking for a working OpenGL Utility (GLU) implementation by pkg-config... " >&6; }
10537 # try first pkgconfig
10538 if test "X${PKG_CONFIG}" = "X"; then :
10539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10540$as_echo "no" >&6; }
10541        ax_check_glu_pkg_config=no
10542else
10543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10544$as_echo "yes" >&6; }
10545
10546
10547
10548
10549pkg_failed=no
10550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLU" >&5
10551$as_echo_n "checking for GLU... " >&6; }
10552
10553if test -n "$GLU_CFLAGS"; then
10554    pkg_cv_GLU_CFLAGS="$GLU_CFLAGS"
10555 elif test -n "$PKG_CONFIG"; then
10556    if test -n "$PKG_CONFIG" && \
10557    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glu\""; } >&5
10558  ($PKG_CONFIG --exists --print-errors "glu") 2>&5
10559  ac_status=$?
10560  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10561  test $ac_status = 0; }; then
10562  pkg_cv_GLU_CFLAGS=`$PKG_CONFIG --cflags "glu" 2>/dev/null`
10563		      test "x$?" != "x0" && pkg_failed=yes
10564else
10565  pkg_failed=yes
10566fi
10567 else
10568    pkg_failed=untried
10569fi
10570if test -n "$GLU_LIBS"; then
10571    pkg_cv_GLU_LIBS="$GLU_LIBS"
10572 elif test -n "$PKG_CONFIG"; then
10573    if test -n "$PKG_CONFIG" && \
10574    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glu\""; } >&5
10575  ($PKG_CONFIG --exists --print-errors "glu") 2>&5
10576  ac_status=$?
10577  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10578  test $ac_status = 0; }; then
10579  pkg_cv_GLU_LIBS=`$PKG_CONFIG --libs "glu" 2>/dev/null`
10580		      test "x$?" != "x0" && pkg_failed=yes
10581else
10582  pkg_failed=yes
10583fi
10584 else
10585    pkg_failed=untried
10586fi
10587
10588
10589
10590if test $pkg_failed = yes; then
10591   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10592$as_echo "no" >&6; }
10593
10594if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10595        _pkg_short_errors_supported=yes
10596else
10597        _pkg_short_errors_supported=no
10598fi
10599        if test $_pkg_short_errors_supported = yes; then
10600	        GLU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glu" 2>&1`
10601        else
10602	        GLU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glu" 2>&1`
10603        fi
10604	# Put the nasty error message in config.log where it belongs
10605	echo "$GLU_PKG_ERRORS" >&5
10606
10607	ax_check_glu_pkg_config=no
10608elif test $pkg_failed = untried; then
10609     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10610$as_echo "no" >&6; }
10611	ax_check_glu_pkg_config=no
10612else
10613	GLU_CFLAGS=$pkg_cv_GLU_CFLAGS
10614	GLU_LIBS=$pkg_cv_GLU_LIBS
10615        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10616$as_echo "yes" >&6; }
10617	ax_check_glu_pkg_config=yes
10618fi
10619
10620 if test "X$ax_check_glu_pkg_config" = "Xyes"; then :
10621
10622        # check headers
10623        ac_ext=c
10624ac_cpp='$CPP $CPPFLAGS'
10625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10627ac_compiler_gnu=$ac_cv_c_compiler_gnu
10628
10629 	ax_check_glu_saved_libs="${LIBS}"
10630ax_check_glu_saved_cflags="${CFLAGS}"
10631ax_check_glu_saved_cppflags="${CPPFLAGS}"
10632ax_check_glu_saved_ldflags="${LDFLAGS}"
10633
10634        CFLAGS="${GLU_CFLAGS} ${CFLAGS}"
10635        for ac_header in windows.h
10636do :
10637  ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
10638"
10639if test "x$ac_cv_header_windows_h" = xyes; then :
10640  cat >>confdefs.h <<_ACEOF
10641#define HAVE_WINDOWS_H 1
10642_ACEOF
10643
10644fi
10645
10646done
10647
10648        for ac_header in GL/glu.h OpenGL/glu.h
10649do :
10650  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10651ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
10652  $ac_includes_default
10653
10654  # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10655  #   include <windows.h>
10656  # endif
10657
10658
10659"
10660if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10661  cat >>confdefs.h <<_ACEOF
10662#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10663_ACEOF
10664 ax_check_glu_have_headers="yes";break
10665else
10666  ax_check_glu_have_headers_headers="no"
10667fi
10668
10669done
10670
10671        LIBS="${ax_check_gl_saved_libs}"
10672CFLAGS="${ax_check_gl_saved_cflags}"
10673CPPFLAGS="${ax_check_gl_saved_cppflags}"
10674LDFLAGS="${ax_check_gl_saved_ldflags}"
10675
10676	ac_ext=c
10677ac_cpp='$CPP $CPPFLAGS'
10678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10680ac_compiler_gnu=$ac_cv_c_compiler_gnu
10681
10682	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL Utility (GLU) headers" >&5
10683$as_echo_n "checking for OpenGL Utility (GLU) headers... " >&6; }
10684if ${ax_cv_check_glu_have_headers+:} false; then :
10685  $as_echo_n "(cached) " >&6
10686else
10687  ax_cv_check_glu_have_headers="${ax_check_glu_have_headers}"
10688fi
10689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glu_have_headers" >&5
10690$as_echo "$ax_cv_check_glu_have_headers" >&6; }
10691
10692        # pkgconfig library are suposed to work ...
10693        if test "X$ax_cv_check_glu_have_headers" = "Xno"; then :
10694  as_fn_error $? "\"Pkgconfig detected OpenGL Utility (GLU) library has no headers!\"" "$LINENO" 5
10695fi
10696
10697	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling a minimal OpenGL Utility (GLU) program" >&5
10698$as_echo_n "checking for compiling a minimal OpenGL Utility (GLU) program... " >&6; }
10699if ${ax_cv_check_glu_compile_opengl+:} false; then :
10700  $as_echo_n "(cached) " >&6
10701else
10702   ac_ext=c
10703ac_cpp='$CPP $CPPFLAGS'
10704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10706ac_compiler_gnu=$ac_cv_c_compiler_gnu
10707
10708 ax_check_glu_saved_libs="${LIBS}"
10709ax_check_glu_saved_cflags="${CFLAGS}"
10710ax_check_glu_saved_cppflags="${CPPFLAGS}"
10711ax_check_glu_saved_ldflags="${LDFLAGS}"
10712
10713 CFLAGS="${GLU_CFLAGS} ${CFLAGS}"
10714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10715/* end confdefs.h.  */
10716
10717# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10718#   include <windows.h>
10719# endif
10720# ifdef HAVE_GL_GLU_H
10721#   include <GL/glu.h>
10722# elif defined(HAVE_OPENGL_GLU_H)
10723#   include <OpenGL/glu.h>
10724# else
10725#   error no glu.h
10726# endif
10727
10728int
10729main ()
10730{
10731gluBeginCurve(0)
10732  ;
10733  return 0;
10734}
10735_ACEOF
10736if ac_fn_c_try_compile "$LINENO"; then :
10737  ax_check_glu_compile_opengl="yes"
10738else
10739  ax_check_glu_compile_opengl="no"
10740fi
10741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10742 LIBS="${ax_check_glu_saved_libs}"
10743CFLAGS="${ax_check_glu_saved_cflags}"
10744CPPFLAGS="${ax_check_glu_saved_cppflags}"
10745LDFLAGS="${ax_check_glu_saved_ldflags}"
10746
10747 ac_ext=c
10748ac_cpp='$CPP $CPPFLAGS'
10749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10751ac_compiler_gnu=$ac_cv_c_compiler_gnu
10752
10753
10754                 ax_cv_check_glu_compile_opengl="${ax_check_glu_compile_opengl}"
10755fi
10756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glu_compile_opengl" >&5
10757$as_echo "$ax_cv_check_glu_compile_opengl" >&6; }
10758 ax_check_glu_compile_opengl="${ax_cv_check_glu_compile_opengl}"
10759
10760	if test "X$ax_cv_check_glu_compile_opengl" = "Xno"; then :
10761  as_fn_error $? "\"Pkgconfig detected OpenGL Utility (GLU) library could not be used for compiling minimal program!\"" "$LINENO" 5
10762fi
10763
10764	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking a minimal OpenGL Utility (GLU) program" >&5
10765$as_echo_n "checking for linking a minimal OpenGL Utility (GLU) program... " >&6; }
10766if ${ax_cv_check_glu_link_opengl+:} false; then :
10767  $as_echo_n "(cached) " >&6
10768else
10769   ac_ext=c
10770ac_cpp='$CPP $CPPFLAGS'
10771ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10772ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10773ac_compiler_gnu=$ac_cv_c_compiler_gnu
10774
10775 ax_check_glu_saved_libs="${LIBS}"
10776ax_check_glu_saved_cflags="${CFLAGS}"
10777ax_check_glu_saved_cppflags="${CPPFLAGS}"
10778ax_check_glu_saved_ldflags="${LDFLAGS}"
10779
10780 CFLAGS="${GLU_CFLAGS} ${CFLAGS}"
10781 LIBS="${GLU_LIBS} ${LIBS}"
10782 LDFLAGS="${GLU_LDFLAGS} ${LDFLAGS}"
10783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10784/* end confdefs.h.  */
10785
10786# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10787#   include <windows.h>
10788# endif
10789# ifdef HAVE_GL_GLU_H
10790#   include <GL/glu.h>
10791# elif defined(HAVE_OPENGL_GLU_H)
10792#   include <OpenGL/glu.h>
10793# else
10794#   error no glu.h
10795# endif
10796
10797int
10798main ()
10799{
10800gluBeginCurve(0)
10801  ;
10802  return 0;
10803}
10804_ACEOF
10805if ac_fn_c_try_link "$LINENO"; then :
10806  ax_check_glu_link_opengl="yes"
10807else
10808  ax_check_glu_link_opengl="no"
10809fi
10810rm -f core conftest.err conftest.$ac_objext \
10811    conftest$ac_exeext conftest.$ac_ext
10812 LIBS="${ax_check_glu_saved_libs}"
10813CFLAGS="${ax_check_glu_saved_cflags}"
10814CPPFLAGS="${ax_check_glu_saved_cppflags}"
10815LDFLAGS="${ax_check_glu_saved_ldflags}"
10816
10817 ac_ext=c
10818ac_cpp='$CPP $CPPFLAGS'
10819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10821ac_compiler_gnu=$ac_cv_c_compiler_gnu
10822
10823
10824                 ax_cv_check_glu_link_opengl="${ax_check_glu_link_opengl}"
10825fi
10826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glu_link_opengl" >&5
10827$as_echo "$ax_cv_check_glu_link_opengl" >&6; }
10828 ax_check_glu_link_opengl="${ax_cv_check_glu_link_opengl}"
10829
10830	if test "X$ax_cv_check_glu_link_opengl" = "Xno"; then :
10831  as_fn_error $? "\"Pkgconfig detected OpenGL Utility (GLU) library could not be used for linking minimal program!\"" "$LINENO" 5
10832fi
10833
10834fi
10835
10836fi
10837
10838 # if no pkg-config or pkg-config fail try manual way
10839 if test "X$ax_check_glu_pkg_config" = "Xno"; then :
10840
10841# inherit cflags
10842GLU_CFLAGS="${GLU_CFLAGS} ${GL_CFLAGS}"
10843
10844# check headers
10845ac_ext=c
10846ac_cpp='$CPP $CPPFLAGS'
10847ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10848ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10849ac_compiler_gnu=$ac_cv_c_compiler_gnu
10850
10851 ax_check_glu_saved_libs="${LIBS}"
10852ax_check_glu_saved_cflags="${CFLAGS}"
10853ax_check_glu_saved_cppflags="${CPPFLAGS}"
10854ax_check_glu_saved_ldflags="${LDFLAGS}"
10855
10856 CFLAGS="${GLU_CFLAGS} ${CFLAGS}"
10857 # see comment in _AX_CHECK_GL_INCLUDES_DEFAULT
10858 for ac_header in windows.h
10859do :
10860  ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
10861"
10862if test "x$ac_cv_header_windows_h" = xyes; then :
10863  cat >>confdefs.h <<_ACEOF
10864#define HAVE_WINDOWS_H 1
10865_ACEOF
10866
10867fi
10868
10869done
10870
10871 for ac_header in GL/glu.h OpenGL/glu.h
10872do :
10873  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10874ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
10875  $ac_includes_default
10876
10877  # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10878  #   include <windows.h>
10879  # endif
10880
10881
10882"
10883if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10884  cat >>confdefs.h <<_ACEOF
10885#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10886_ACEOF
10887 ax_check_glu_have_headers="yes";break
10888else
10889  ax_check_glu_have_headers_headers="no"
10890fi
10891
10892done
10893
10894 # do not try darwin specific OpenGl/gl.h
10895 LIBS="${ax_check_glu_saved_libs}"
10896CFLAGS="${ax_check_glu_saved_cflags}"
10897CPPFLAGS="${ax_check_glu_saved_cppflags}"
10898LDFLAGS="${ax_check_glu_saved_ldflags}"
10899
10900 ac_ext=c
10901ac_cpp='$CPP $CPPFLAGS'
10902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10904ac_compiler_gnu=$ac_cv_c_compiler_gnu
10905
10906
10907
10908if test "X$ax_check_glu_have_headers" = "Xyes"; then :
10909
10910 GLU_LIBS="${GLU_LIBS} ${GL_LIBS}"
10911 case ${host} in #(
10912  # try first cygwin version
10913         *-cygwin*) :
10914     ax_check_glu_manual_libs_generic_extra_libs="GLU glu MesaGLU glu32"
10915 if test "X$ax_check_glu_manual_libs_generic_extra_libs" = "X"; then :
10916  as_fn_error $? "AX_CHECK_GLU_MANUAL_LIBS_GENERIC argument must no be empty" "$LINENO" 5
10917fi
10918
10919 ac_ext=c
10920ac_cpp='$CPP $CPPFLAGS'
10921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10923ac_compiler_gnu=$ac_cv_c_compiler_gnu
10924
10925 ax_check_glu_saved_libs="${LIBS}"
10926ax_check_glu_saved_cflags="${CFLAGS}"
10927ax_check_glu_saved_cppflags="${CPPFLAGS}"
10928ax_check_glu_saved_ldflags="${LDFLAGS}"
10929
10930 CFLAGS="${GLU_CFLAGS} ${CFLAGS}"
10931 LIBS="${GLU_LIBS} ${LIBS}"
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gluBeginCurve" >&5
10933$as_echo_n "checking for library containing gluBeginCurve... " >&6; }
10934if ${ac_cv_search_gluBeginCurve+:} false; then :
10935  $as_echo_n "(cached) " >&6
10936else
10937  ac_func_search_save_LIBS=$LIBS
10938cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10939/* end confdefs.h.  */
10940
10941/* Override any GCC internal prototype to avoid an error.
10942   Use char because int might match the return type of a GCC
10943   builtin and then its argument prototype would still apply.  */
10944#ifdef __cplusplus
10945extern "C"
10946#endif
10947char gluBeginCurve ();
10948int
10949main ()
10950{
10951return gluBeginCurve ();
10952  ;
10953  return 0;
10954}
10955_ACEOF
10956for ac_lib in '' $ax_check_glu_manual_libs_generic_extra_libs; do
10957  if test -z "$ac_lib"; then
10958    ac_res="none required"
10959  else
10960    ac_res=-l$ac_lib
10961    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10962  fi
10963  if ac_fn_c_try_link "$LINENO"; then :
10964  ac_cv_search_gluBeginCurve=$ac_res
10965fi
10966rm -f core conftest.err conftest.$ac_objext \
10967    conftest$ac_exeext
10968  if ${ac_cv_search_gluBeginCurve+:} false; then :
10969  break
10970fi
10971done
10972if ${ac_cv_search_gluBeginCurve+:} false; then :
10973
10974else
10975  ac_cv_search_gluBeginCurve=no
10976fi
10977rm conftest.$ac_ext
10978LIBS=$ac_func_search_save_LIBS
10979fi
10980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gluBeginCurve" >&5
10981$as_echo "$ac_cv_search_gluBeginCurve" >&6; }
10982ac_res=$ac_cv_search_gluBeginCurve
10983if test "$ac_res" != no; then :
10984  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10985  ax_check_glu_lib_opengl="yes"
10986else
10987  ax_check_glu_lib_opengl="no"
10988fi
10989
10990 case $ac_cv_search_gluBeginCurve in #(
10991  "none required") :
10992     ;; #(
10993  no) :
10994     ;; #(
10995  *) :
10996    GLU_LIBS="${ac_cv_search_gluBeginCurve} ${GLU_LIBS}" ;;
10997esac
10998  LIBS="${ax_check_glu_saved_libs}"
10999CFLAGS="${ax_check_glu_saved_cflags}"
11000CPPFLAGS="${ax_check_glu_saved_cppflags}"
11001LDFLAGS="${ax_check_glu_saved_ldflags}"
11002
11003  ac_ext=c
11004ac_cpp='$CPP $CPPFLAGS'
11005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11007ac_compiler_gnu=$ac_cv_c_compiler_gnu
11008
11009 ;; #(
11010  # try first native
11011	 *-mingw*) :
11012     ax_check_glu_manual_libs_generic_extra_libs="glu32 GLU glu MesaGLU"
11013 if test "X$ax_check_glu_manual_libs_generic_extra_libs" = "X"; then :
11014  as_fn_error $? "AX_CHECK_GLU_MANUAL_LIBS_GENERIC argument must no be empty" "$LINENO" 5
11015fi
11016
11017 ac_ext=c
11018ac_cpp='$CPP $CPPFLAGS'
11019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11021ac_compiler_gnu=$ac_cv_c_compiler_gnu
11022
11023 ax_check_glu_saved_libs="${LIBS}"
11024ax_check_glu_saved_cflags="${CFLAGS}"
11025ax_check_glu_saved_cppflags="${CPPFLAGS}"
11026ax_check_glu_saved_ldflags="${LDFLAGS}"
11027
11028 CFLAGS="${GLU_CFLAGS} ${CFLAGS}"
11029 LIBS="${GLU_LIBS} ${LIBS}"
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gluBeginCurve" >&5
11031$as_echo_n "checking for library containing gluBeginCurve... " >&6; }
11032if ${ac_cv_search_gluBeginCurve+:} false; then :
11033  $as_echo_n "(cached) " >&6
11034else
11035  ac_func_search_save_LIBS=$LIBS
11036cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11037/* end confdefs.h.  */
11038
11039/* Override any GCC internal prototype to avoid an error.
11040   Use char because int might match the return type of a GCC
11041   builtin and then its argument prototype would still apply.  */
11042#ifdef __cplusplus
11043extern "C"
11044#endif
11045char gluBeginCurve ();
11046int
11047main ()
11048{
11049return gluBeginCurve ();
11050  ;
11051  return 0;
11052}
11053_ACEOF
11054for ac_lib in '' $ax_check_glu_manual_libs_generic_extra_libs; do
11055  if test -z "$ac_lib"; then
11056    ac_res="none required"
11057  else
11058    ac_res=-l$ac_lib
11059    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11060  fi
11061  if ac_fn_c_try_link "$LINENO"; then :
11062  ac_cv_search_gluBeginCurve=$ac_res
11063fi
11064rm -f core conftest.err conftest.$ac_objext \
11065    conftest$ac_exeext
11066  if ${ac_cv_search_gluBeginCurve+:} false; then :
11067  break
11068fi
11069done
11070if ${ac_cv_search_gluBeginCurve+:} false; then :
11071
11072else
11073  ac_cv_search_gluBeginCurve=no
11074fi
11075rm conftest.$ac_ext
11076LIBS=$ac_func_search_save_LIBS
11077fi
11078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gluBeginCurve" >&5
11079$as_echo "$ac_cv_search_gluBeginCurve" >&6; }
11080ac_res=$ac_cv_search_gluBeginCurve
11081if test "$ac_res" != no; then :
11082  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11083  ax_check_glu_lib_opengl="yes"
11084else
11085  ax_check_glu_lib_opengl="no"
11086fi
11087
11088 case $ac_cv_search_gluBeginCurve in #(
11089  "none required") :
11090     ;; #(
11091  no) :
11092     ;; #(
11093  *) :
11094    GLU_LIBS="${ac_cv_search_gluBeginCurve} ${GLU_LIBS}" ;;
11095esac
11096  LIBS="${ax_check_glu_saved_libs}"
11097CFLAGS="${ax_check_glu_saved_cflags}"
11098CPPFLAGS="${ax_check_glu_saved_cppflags}"
11099LDFLAGS="${ax_check_glu_saved_ldflags}"
11100
11101  ac_ext=c
11102ac_cpp='$CPP $CPPFLAGS'
11103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11105ac_compiler_gnu=$ac_cv_c_compiler_gnu
11106
11107 ;; #(
11108  *) :
11109     ax_check_glu_manual_libs_generic_extra_libs="GLU glu MesaGLU"
11110 if test "X$ax_check_glu_manual_libs_generic_extra_libs" = "X"; then :
11111  as_fn_error $? "AX_CHECK_GLU_MANUAL_LIBS_GENERIC argument must no be empty" "$LINENO" 5
11112fi
11113
11114 ac_ext=c
11115ac_cpp='$CPP $CPPFLAGS'
11116ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11117ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11118ac_compiler_gnu=$ac_cv_c_compiler_gnu
11119
11120 ax_check_glu_saved_libs="${LIBS}"
11121ax_check_glu_saved_cflags="${CFLAGS}"
11122ax_check_glu_saved_cppflags="${CPPFLAGS}"
11123ax_check_glu_saved_ldflags="${LDFLAGS}"
11124
11125 CFLAGS="${GLU_CFLAGS} ${CFLAGS}"
11126 LIBS="${GLU_LIBS} ${LIBS}"
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gluBeginCurve" >&5
11128$as_echo_n "checking for library containing gluBeginCurve... " >&6; }
11129if ${ac_cv_search_gluBeginCurve+:} false; then :
11130  $as_echo_n "(cached) " >&6
11131else
11132  ac_func_search_save_LIBS=$LIBS
11133cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11134/* end confdefs.h.  */
11135
11136/* Override any GCC internal prototype to avoid an error.
11137   Use char because int might match the return type of a GCC
11138   builtin and then its argument prototype would still apply.  */
11139#ifdef __cplusplus
11140extern "C"
11141#endif
11142char gluBeginCurve ();
11143int
11144main ()
11145{
11146return gluBeginCurve ();
11147  ;
11148  return 0;
11149}
11150_ACEOF
11151for ac_lib in '' $ax_check_glu_manual_libs_generic_extra_libs; do
11152  if test -z "$ac_lib"; then
11153    ac_res="none required"
11154  else
11155    ac_res=-l$ac_lib
11156    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11157  fi
11158  if ac_fn_c_try_link "$LINENO"; then :
11159  ac_cv_search_gluBeginCurve=$ac_res
11160fi
11161rm -f core conftest.err conftest.$ac_objext \
11162    conftest$ac_exeext
11163  if ${ac_cv_search_gluBeginCurve+:} false; then :
11164  break
11165fi
11166done
11167if ${ac_cv_search_gluBeginCurve+:} false; then :
11168
11169else
11170  ac_cv_search_gluBeginCurve=no
11171fi
11172rm conftest.$ac_ext
11173LIBS=$ac_func_search_save_LIBS
11174fi
11175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gluBeginCurve" >&5
11176$as_echo "$ac_cv_search_gluBeginCurve" >&6; }
11177ac_res=$ac_cv_search_gluBeginCurve
11178if test "$ac_res" != no; then :
11179  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11180  ax_check_glu_lib_opengl="yes"
11181else
11182  ax_check_glu_lib_opengl="no"
11183fi
11184
11185 case $ac_cv_search_gluBeginCurve in #(
11186  "none required") :
11187     ;; #(
11188  no) :
11189     ;; #(
11190  *) :
11191    GLU_LIBS="${ac_cv_search_gluBeginCurve} ${GLU_LIBS}" ;;
11192esac
11193  LIBS="${ax_check_glu_saved_libs}"
11194CFLAGS="${ax_check_glu_saved_cflags}"
11195CPPFLAGS="${ax_check_glu_saved_cppflags}"
11196LDFLAGS="${ax_check_glu_saved_ldflags}"
11197
11198  ac_ext=c
11199ac_cpp='$CPP $CPPFLAGS'
11200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11202ac_compiler_gnu=$ac_cv_c_compiler_gnu
11203
11204 ;;
11205esac
11206
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL Utility (GLU) libraries" >&5
11208$as_echo_n "checking for OpenGL Utility (GLU) libraries... " >&6; }
11209if ${ax_cv_check_glu_lib_opengl+:} false; then :
11210  $as_echo_n "(cached) " >&6
11211else
11212  ax_cv_check_glu_lib_opengl="${ax_check_glu_lib_opengl}"
11213fi
11214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glu_lib_opengl" >&5
11215$as_echo "$ax_cv_check_glu_lib_opengl" >&6; }
11216 ax_check_glu_lib_opengl="${ax_cv_check_glu_lib_opengl}"
11217
11218else
11219  ax_check_glu_lib_opengl="no"
11220fi
11221
11222if test "X$ax_check_glu_lib_opengl" = "Xyes"; then :
11223   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling a minimal OpenGL Utility (GLU) program" >&5
11224$as_echo_n "checking for compiling a minimal OpenGL Utility (GLU) program... " >&6; }
11225if ${ax_cv_check_glu_compile_opengl+:} false; then :
11226  $as_echo_n "(cached) " >&6
11227else
11228   ac_ext=c
11229ac_cpp='$CPP $CPPFLAGS'
11230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11232ac_compiler_gnu=$ac_cv_c_compiler_gnu
11233
11234 ax_check_glu_saved_libs="${LIBS}"
11235ax_check_glu_saved_cflags="${CFLAGS}"
11236ax_check_glu_saved_cppflags="${CPPFLAGS}"
11237ax_check_glu_saved_ldflags="${LDFLAGS}"
11238
11239 CFLAGS="${GLU_CFLAGS} ${CFLAGS}"
11240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11241/* end confdefs.h.  */
11242
11243# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
11244#   include <windows.h>
11245# endif
11246# ifdef HAVE_GL_GLU_H
11247#   include <GL/glu.h>
11248# elif defined(HAVE_OPENGL_GLU_H)
11249#   include <OpenGL/glu.h>
11250# else
11251#   error no glu.h
11252# endif
11253
11254int
11255main ()
11256{
11257gluBeginCurve(0)
11258  ;
11259  return 0;
11260}
11261_ACEOF
11262if ac_fn_c_try_compile "$LINENO"; then :
11263  ax_check_glu_compile_opengl="yes"
11264else
11265  ax_check_glu_compile_opengl="no"
11266fi
11267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11268 LIBS="${ax_check_glu_saved_libs}"
11269CFLAGS="${ax_check_glu_saved_cflags}"
11270CPPFLAGS="${ax_check_glu_saved_cppflags}"
11271LDFLAGS="${ax_check_glu_saved_ldflags}"
11272
11273 ac_ext=c
11274ac_cpp='$CPP $CPPFLAGS'
11275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11277ac_compiler_gnu=$ac_cv_c_compiler_gnu
11278
11279
11280                 ax_cv_check_glu_compile_opengl="${ax_check_glu_compile_opengl}"
11281fi
11282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glu_compile_opengl" >&5
11283$as_echo "$ax_cv_check_glu_compile_opengl" >&6; }
11284 ax_check_glu_compile_opengl="${ax_cv_check_glu_compile_opengl}"
11285
11286else
11287  ax_cv_check_glu_compile_opengl="no"
11288fi
11289
11290if test "X$ax_cv_check_glu_compile_opengl" = "Xyes"; then :
11291   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking a minimal OpenGL Utility (GLU) program" >&5
11292$as_echo_n "checking for linking a minimal OpenGL Utility (GLU) program... " >&6; }
11293if ${ax_cv_check_glu_link_opengl+:} false; then :
11294  $as_echo_n "(cached) " >&6
11295else
11296   ac_ext=c
11297ac_cpp='$CPP $CPPFLAGS'
11298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11300ac_compiler_gnu=$ac_cv_c_compiler_gnu
11301
11302 ax_check_glu_saved_libs="${LIBS}"
11303ax_check_glu_saved_cflags="${CFLAGS}"
11304ax_check_glu_saved_cppflags="${CPPFLAGS}"
11305ax_check_glu_saved_ldflags="${LDFLAGS}"
11306
11307 CFLAGS="${GLU_CFLAGS} ${CFLAGS}"
11308 LIBS="${GLU_LIBS} ${LIBS}"
11309 LDFLAGS="${GLU_LDFLAGS} ${LDFLAGS}"
11310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11311/* end confdefs.h.  */
11312
11313# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
11314#   include <windows.h>
11315# endif
11316# ifdef HAVE_GL_GLU_H
11317#   include <GL/glu.h>
11318# elif defined(HAVE_OPENGL_GLU_H)
11319#   include <OpenGL/glu.h>
11320# else
11321#   error no glu.h
11322# endif
11323
11324int
11325main ()
11326{
11327gluBeginCurve(0)
11328  ;
11329  return 0;
11330}
11331_ACEOF
11332if ac_fn_c_try_link "$LINENO"; then :
11333  ax_check_glu_link_opengl="yes"
11334else
11335  ax_check_glu_link_opengl="no"
11336fi
11337rm -f core conftest.err conftest.$ac_objext \
11338    conftest$ac_exeext conftest.$ac_ext
11339 LIBS="${ax_check_glu_saved_libs}"
11340CFLAGS="${ax_check_glu_saved_cflags}"
11341CPPFLAGS="${ax_check_glu_saved_cppflags}"
11342LDFLAGS="${ax_check_glu_saved_ldflags}"
11343
11344 ac_ext=c
11345ac_cpp='$CPP $CPPFLAGS'
11346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11348ac_compiler_gnu=$ac_cv_c_compiler_gnu
11349
11350
11351                 ax_cv_check_glu_link_opengl="${ax_check_glu_link_opengl}"
11352fi
11353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glu_link_opengl" >&5
11354$as_echo "$ax_cv_check_glu_link_opengl" >&6; }
11355 ax_check_glu_link_opengl="${ax_cv_check_glu_link_opengl}"
11356
11357else
11358  ax_cv_check_glu_link_opengl="no"
11359fi
11360
11361if test "X$ax_cv_check_glu_link_opengl" = "Xyes"; then :
11362  no_glu="no"
11363else
11364  no_glu="yes"
11365fi
11366
11367else
11368  no_glu=no
11369fi
11370
11371 # check broken implementation
11372 if test "X$no_glu" = "Xno"; then :
11373
11374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for varargs OpenGL Utility (GLU) tesselator callback function type" >&5
11375$as_echo_n "checking for varargs OpenGL Utility (GLU) tesselator callback function type... " >&6; }
11376if ${ax_cv_varargs_glu_tesscb+:} false; then :
11377  $as_echo_n "(cached) " >&6
11378else
11379
11380 ac_ext=cpp
11381ac_cpp='$CXXCPP $CPPFLAGS'
11382ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11383ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11384ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11385
11386 ax_check_glu_saved_libs="${LIBS}"
11387ax_check_glu_saved_cflags="${CFLAGS}"
11388ax_check_glu_saved_cppflags="${CPPFLAGS}"
11389ax_check_glu_saved_ldflags="${LDFLAGS}"
11390
11391 CFLAGS="${GLU_CFLAGS} ${CFLAGS}"
11392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11393/* end confdefs.h.  */
11394
11395# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
11396#   include <windows.h>
11397# endif
11398# ifdef HAVE_GL_GLU_H
11399#   include <GL/glu.h>
11400# elif defined(HAVE_OPENGL_GLU_H)
11401#   include <OpenGL/glu.h>
11402# else
11403#   error no glu.h
11404# endif
11405
11406int
11407main ()
11408{
11409GLvoid (*func)(...); gluTessCallback(0, 0, func)
11410  ;
11411  return 0;
11412}
11413
11414_ACEOF
11415if ac_fn_cxx_try_compile "$LINENO"; then :
11416  ax_check_glu_compile_varargs_tessvb_program="yes"
11417else
11418  ax_check_glu_compile_varargs_tessvb_program="no"
11419fi
11420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11421 LIBS="${ax_check_glu_saved_libs}"
11422CFLAGS="${ax_check_glu_saved_cflags}"
11423CPPFLAGS="${ax_check_glu_saved_cppflags}"
11424LDFLAGS="${ax_check_glu_saved_ldflags}"
11425
11426 ac_ext=c
11427ac_cpp='$CPP $CPPFLAGS'
11428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11430ac_compiler_gnu=$ac_cv_c_compiler_gnu
11431
11432
11433		 ax_cv_varargs_glu_tesscb="${ax_check_glu_compile_varargs_tessvb_program}"
11434fi
11435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_varargs_glu_tesscb" >&5
11436$as_echo "$ax_cv_varargs_glu_tesscb" >&6; }
11437ax_check_glu_compile_varargs_tessvb_program="${ax_cv_varargs_glu_tesscb}"
11438
11439if test X$ax_cv_varargs_glu_tesscb = Xyes; then :
11440
11441$as_echo "#define HAVE_VARARGS_GLU_TESSCB 1" >>confdefs.h
11442
11443fi
11444
11445fi
11446
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working OpenGL Utility (GLU) implementation" >&5
11448$as_echo_n "checking for a working OpenGL Utility (GLU) implementation... " >&6; }
11449 if test "X$no_glu" = "Xno"; then :
11450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11451$as_echo "yes" >&6; }
11452        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS needed for OpenGL Utility (GLU)" >&5
11453$as_echo_n "checking for CFLAGS needed for OpenGL Utility (GLU)... " >&6; }
11454        { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"${GLU_CFLAGS}\"" >&5
11455$as_echo "\"${GLU_CFLAGS}\"" >&6; }
11456        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS needed for OpenGL Utility (GLU)" >&5
11457$as_echo_n "checking for LIBS needed for OpenGL Utility (GLU)... " >&6; }
11458        { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"${GLU_LIBS}\"" >&5
11459$as_echo "\"${GLU_LIBS}\"" >&6; }
11460        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS needed for OpenGL Utility (GLU)" >&5
11461$as_echo_n "checking for LDFLAGS needed for OpenGL Utility (GLU)... " >&6; }
11462        { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"${GLU_LDFLAGS}\"" >&5
11463$as_echo "\"${GLU_LDFLAGS}\"" >&6; }
11464else
11465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11466$as_echo "no" >&6; }
11467        GLU_CFLAGS=""
11468        GLU_LIBS=""
11469        GLU_LDFLAGS=""
11470fi
11471
11472
11473
11474
11475
11476
11477
11478SDL_VERSION=1.2.5
11479
11480# Check whether --with-sdl-prefix was given.
11481if test "${with_sdl_prefix+set}" = set; then :
11482  withval=$with_sdl_prefix; sdl_prefix="$withval"
11483else
11484  sdl_prefix=""
11485fi
11486
11487
11488# Check whether --with-sdl-exec-prefix was given.
11489if test "${with_sdl_exec_prefix+set}" = set; then :
11490  withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
11491else
11492  sdl_exec_prefix=""
11493fi
11494
11495# Check whether --enable-sdltest was given.
11496if test "${enable_sdltest+set}" = set; then :
11497  enableval=$enable_sdltest;
11498else
11499  enable_sdltest=yes
11500fi
11501
11502
11503  if test x$sdl_exec_prefix != x ; then
11504    sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
11505    if test x${SDL_CONFIG+set} != xset ; then
11506      SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
11507    fi
11508  fi
11509  if test x$sdl_prefix != x ; then
11510    sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
11511    if test x${SDL_CONFIG+set} != xset ; then
11512      SDL_CONFIG=$sdl_prefix/bin/sdl-config
11513    fi
11514  fi
11515
11516  as_save_PATH="$PATH"
11517  if test "x$prefix" != xNONE; then
11518    PATH="$prefix/bin:$prefix/usr/bin:$PATH"
11519  fi
11520  # Extract the first word of "sdl-config", so it can be a program name with args.
11521set dummy sdl-config; ac_word=$2
11522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11523$as_echo_n "checking for $ac_word... " >&6; }
11524if ${ac_cv_path_SDL_CONFIG+:} false; then :
11525  $as_echo_n "(cached) " >&6
11526else
11527  case $SDL_CONFIG in
11528  [\\/]* | ?:[\\/]*)
11529  ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
11530  ;;
11531  *)
11532  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11533for as_dir in $PATH
11534do
11535  IFS=$as_save_IFS
11536  test -z "$as_dir" && as_dir=.
11537    for ac_exec_ext in '' $ac_executable_extensions; do
11538  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11539    ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11540    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11541    break 2
11542  fi
11543done
11544  done
11545IFS=$as_save_IFS
11546
11547  test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
11548  ;;
11549esac
11550fi
11551SDL_CONFIG=$ac_cv_path_SDL_CONFIG
11552if test -n "$SDL_CONFIG"; then
11553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
11554$as_echo "$SDL_CONFIG" >&6; }
11555else
11556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11557$as_echo "no" >&6; }
11558fi
11559
11560
11561  PATH="$as_save_PATH"
11562  min_sdl_version=$SDL_VERSION
11563  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
11564$as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
11565  no_sdl=""
11566  if test "$SDL_CONFIG" = "no" ; then
11567    no_sdl=yes
11568  else
11569    SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
11570    SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
11571
11572    sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
11573           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11574    sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
11575           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11576    sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
11577           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11578    if test "x$enable_sdltest" = "xyes" ; then
11579      ac_save_CFLAGS="$CFLAGS"
11580      ac_save_CXXFLAGS="$CXXFLAGS"
11581      ac_save_LIBS="$LIBS"
11582      CFLAGS="$CFLAGS $SDL_CFLAGS"
11583      CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
11584      LIBS="$LIBS $SDL_LIBS"
11585      rm -f conf.sdltest
11586      if test "$cross_compiling" = yes; then :
11587  echo $ac_n "cross compiling; assumed OK... $ac_c"
11588else
11589  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11590/* end confdefs.h.  */
11591
11592#include <stdio.h>
11593#include <stdlib.h>
11594#include <string.h>
11595#include "SDL.h"
11596
11597char*
11598my_strdup (char *str)
11599{
11600  char *new_str;
11601
11602  if (str)
11603    {
11604      new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
11605      strcpy (new_str, str);
11606    }
11607  else
11608    new_str = NULL;
11609
11610  return new_str;
11611}
11612
11613int main (int argc, char *argv[])
11614{
11615  int major, minor, micro;
11616  char *tmp_version;
11617
11618  /* This hangs on some systems (?)
11619  system ("touch conf.sdltest");
11620  */
11621  { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
11622
11623  /* HP/UX 9 (%@#!) writes to sscanf strings */
11624  tmp_version = my_strdup("$min_sdl_version");
11625  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11626     printf("%s, bad version string\n", "$min_sdl_version");
11627     exit(1);
11628   }
11629
11630   if (($sdl_major_version > major) ||
11631      (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
11632      (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
11633    {
11634      return 0;
11635    }
11636  else
11637    {
11638      printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
11639      printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
11640      printf("*** best to upgrade to the required version.\n");
11641      printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
11642      printf("*** to point to the correct copy of sdl-config, and remove the file\n");
11643      printf("*** config.cache before re-running configure\n");
11644      return 1;
11645    }
11646}
11647
11648
11649_ACEOF
11650if ac_fn_c_try_run "$LINENO"; then :
11651
11652else
11653  no_sdl=yes
11654fi
11655rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11656  conftest.$ac_objext conftest.beam conftest.$ac_ext
11657fi
11658
11659       CFLAGS="$ac_save_CFLAGS"
11660       CXXFLAGS="$ac_save_CXXFLAGS"
11661       LIBS="$ac_save_LIBS"
11662     fi
11663  fi
11664  if test "x$no_sdl" = x ; then
11665     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11666$as_echo "yes" >&6; }
11667     :
11668  else
11669     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11670$as_echo "no" >&6; }
11671     if test "$SDL_CONFIG" = "no" ; then
11672       echo "*** The sdl-config script installed by SDL could not be found"
11673       echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
11674       echo "*** your path, or set the SDL_CONFIG environment variable to the"
11675       echo "*** full path to sdl-config."
11676     else
11677       if test -f conf.sdltest ; then
11678        :
11679       else
11680          echo "*** Could not run SDL test program, checking why..."
11681          CFLAGS="$CFLAGS $SDL_CFLAGS"
11682          CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
11683          LIBS="$LIBS $SDL_LIBS"
11684          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11685/* end confdefs.h.  */
11686
11687#include <stdio.h>
11688#include "SDL.h"
11689
11690int main(int argc, char *argv[])
11691{ return 0; }
11692#undef  main
11693#define main K_and_R_C_main
11694
11695int
11696main ()
11697{
11698 return 0;
11699  ;
11700  return 0;
11701}
11702_ACEOF
11703if ac_fn_c_try_link "$LINENO"; then :
11704   echo "*** The test program compiled, but did not run. This usually means"
11705          echo "*** that the run-time linker is not finding SDL or finding the wrong"
11706          echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
11707          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11708          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
11709          echo "*** is required on your system"
11710	  echo "***"
11711          echo "*** If you have an old version installed, it is best to remove it, although"
11712          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11713else
11714   echo "*** The test program failed to compile or link. See the file config.log for the"
11715          echo "*** exact error that occured. This usually means SDL was incorrectly installed"
11716          echo "*** or that you have moved SDL since it was installed. In the latter case, you"
11717          echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
11718fi
11719rm -f core conftest.err conftest.$ac_objext \
11720    conftest$ac_exeext conftest.$ac_ext
11721          CFLAGS="$ac_save_CFLAGS"
11722          CXXFLAGS="$ac_save_CXXFLAGS"
11723          LIBS="$ac_save_LIBS"
11724       fi
11725     fi
11726     SDL_CFLAGS=""
11727     SDL_LIBS=""
11728     as_fn_error $? "*** SDL version $SDL_VERSION not found!" "$LINENO" 5
11729
11730  fi
11731
11732
11733  rm -f conf.sdltest
11734
11735
11736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IMG_Load in -lSDL_image" >&5
11737$as_echo_n "checking for IMG_Load in -lSDL_image... " >&6; }
11738if ${ac_cv_lib_SDL_image_IMG_Load+:} false; then :
11739  $as_echo_n "(cached) " >&6
11740else
11741  ac_check_lib_save_LIBS=$LIBS
11742LIBS="-lSDL_image  $LIBS"
11743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11744/* end confdefs.h.  */
11745
11746/* Override any GCC internal prototype to avoid an error.
11747   Use char because int might match the return type of a GCC
11748   builtin and then its argument prototype would still apply.  */
11749#ifdef __cplusplus
11750extern "C"
11751#endif
11752char IMG_Load ();
11753int
11754main ()
11755{
11756return IMG_Load ();
11757  ;
11758  return 0;
11759}
11760_ACEOF
11761if ac_fn_c_try_link "$LINENO"; then :
11762  ac_cv_lib_SDL_image_IMG_Load=yes
11763else
11764  ac_cv_lib_SDL_image_IMG_Load=no
11765fi
11766rm -f core conftest.err conftest.$ac_objext \
11767    conftest$ac_exeext conftest.$ac_ext
11768LIBS=$ac_check_lib_save_LIBS
11769fi
11770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_image_IMG_Load" >&5
11771$as_echo "$ac_cv_lib_SDL_image_IMG_Load" >&6; }
11772if test "x$ac_cv_lib_SDL_image_IMG_Load" = xyes; then :
11773  cat >>confdefs.h <<_ACEOF
11774#define HAVE_LIBSDL_IMAGE 1
11775_ACEOF
11776
11777  LIBS="-lSDL_image $LIBS"
11778
11779else
11780  as_fn_error $? "*** SDL_image not found!" "$LINENO" 5
11781fi
11782
11783
11784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mix_OpenAudio in -lSDL_mixer" >&5
11785$as_echo_n "checking for Mix_OpenAudio in -lSDL_mixer... " >&6; }
11786if ${ac_cv_lib_SDL_mixer_Mix_OpenAudio+:} false; then :
11787  $as_echo_n "(cached) " >&6
11788else
11789  ac_check_lib_save_LIBS=$LIBS
11790LIBS="-lSDL_mixer  $LIBS"
11791cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11792/* end confdefs.h.  */
11793
11794/* Override any GCC internal prototype to avoid an error.
11795   Use char because int might match the return type of a GCC
11796   builtin and then its argument prototype would still apply.  */
11797#ifdef __cplusplus
11798extern "C"
11799#endif
11800char Mix_OpenAudio ();
11801int
11802main ()
11803{
11804return Mix_OpenAudio ();
11805  ;
11806  return 0;
11807}
11808_ACEOF
11809if ac_fn_c_try_link "$LINENO"; then :
11810  ac_cv_lib_SDL_mixer_Mix_OpenAudio=yes
11811else
11812  ac_cv_lib_SDL_mixer_Mix_OpenAudio=no
11813fi
11814rm -f core conftest.err conftest.$ac_objext \
11815    conftest$ac_exeext conftest.$ac_ext
11816LIBS=$ac_check_lib_save_LIBS
11817fi
11818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_mixer_Mix_OpenAudio" >&5
11819$as_echo "$ac_cv_lib_SDL_mixer_Mix_OpenAudio" >&6; }
11820if test "x$ac_cv_lib_SDL_mixer_Mix_OpenAudio" = xyes; then :
11821  cat >>confdefs.h <<_ACEOF
11822#define HAVE_LIBSDL_MIXER 1
11823_ACEOF
11824
11825  LIBS="-lSDL_mixer $LIBS"
11826
11827else
11828  as_fn_error $? "*** SDL_mixer not found!" "$LINENO" 5
11829fi
11830
11831
11832
11833pkg_failed=no
11834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
11835$as_echo_n "checking for FREETYPE... " >&6; }
11836
11837if test -n "$FREETYPE_CFLAGS"; then
11838    pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
11839 elif test -n "$PKG_CONFIG"; then
11840    if test -n "$PKG_CONFIG" && \
11841    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
11842  ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
11843  ac_status=$?
11844  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11845  test $ac_status = 0; }; then
11846  pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
11847		      test "x$?" != "x0" && pkg_failed=yes
11848else
11849  pkg_failed=yes
11850fi
11851 else
11852    pkg_failed=untried
11853fi
11854if test -n "$FREETYPE_LIBS"; then
11855    pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
11856 elif test -n "$PKG_CONFIG"; then
11857    if test -n "$PKG_CONFIG" && \
11858    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
11859  ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
11860  ac_status=$?
11861  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11862  test $ac_status = 0; }; then
11863  pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
11864		      test "x$?" != "x0" && pkg_failed=yes
11865else
11866  pkg_failed=yes
11867fi
11868 else
11869    pkg_failed=untried
11870fi
11871
11872
11873
11874if test $pkg_failed = yes; then
11875   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11876$as_echo "no" >&6; }
11877
11878if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11879        _pkg_short_errors_supported=yes
11880else
11881        _pkg_short_errors_supported=no
11882fi
11883        if test $_pkg_short_errors_supported = yes; then
11884	        FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2" 2>&1`
11885        else
11886	        FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2" 2>&1`
11887        fi
11888	# Put the nasty error message in config.log where it belongs
11889	echo "$FREETYPE_PKG_ERRORS" >&5
11890
11891	as_fn_error $? "Package requirements (freetype2) were not met:
11892
11893$FREETYPE_PKG_ERRORS
11894
11895Consider adjusting the PKG_CONFIG_PATH environment variable if you
11896installed software in a non-standard prefix.
11897
11898Alternatively, you may set the environment variables FREETYPE_CFLAGS
11899and FREETYPE_LIBS to avoid the need to call pkg-config.
11900See the pkg-config man page for more details." "$LINENO" 5
11901elif test $pkg_failed = untried; then
11902     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11903$as_echo "no" >&6; }
11904	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11905$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11906as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11907is in your PATH or set the PKG_CONFIG environment variable to the full
11908path to pkg-config.
11909
11910Alternatively, you may set the environment variables FREETYPE_CFLAGS
11911and FREETYPE_LIBS to avoid the need to call pkg-config.
11912See the pkg-config man page for more details.
11913
11914To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11915See \`config.log' for more details" "$LINENO" 5; }
11916else
11917	FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
11918	FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
11919        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11920$as_echo "yes" >&6; }
11921
11922fi
11923
11924pkg_failed=no
11925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG" >&5
11926$as_echo_n "checking for LIBPNG... " >&6; }
11927
11928if test -n "$LIBPNG_CFLAGS"; then
11929    pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
11930 elif test -n "$PKG_CONFIG"; then
11931    if test -n "$PKG_CONFIG" && \
11932    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5
11933  ($PKG_CONFIG --exists --print-errors "libpng") 2>&5
11934  ac_status=$?
11935  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11936  test $ac_status = 0; }; then
11937  pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null`
11938		      test "x$?" != "x0" && pkg_failed=yes
11939else
11940  pkg_failed=yes
11941fi
11942 else
11943    pkg_failed=untried
11944fi
11945if test -n "$LIBPNG_LIBS"; then
11946    pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
11947 elif test -n "$PKG_CONFIG"; then
11948    if test -n "$PKG_CONFIG" && \
11949    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5
11950  ($PKG_CONFIG --exists --print-errors "libpng") 2>&5
11951  ac_status=$?
11952  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11953  test $ac_status = 0; }; then
11954  pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null`
11955		      test "x$?" != "x0" && pkg_failed=yes
11956else
11957  pkg_failed=yes
11958fi
11959 else
11960    pkg_failed=untried
11961fi
11962
11963
11964
11965if test $pkg_failed = yes; then
11966   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11967$as_echo "no" >&6; }
11968
11969if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11970        _pkg_short_errors_supported=yes
11971else
11972        _pkg_short_errors_supported=no
11973fi
11974        if test $_pkg_short_errors_supported = yes; then
11975	        LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpng" 2>&1`
11976        else
11977	        LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpng" 2>&1`
11978        fi
11979	# Put the nasty error message in config.log where it belongs
11980	echo "$LIBPNG_PKG_ERRORS" >&5
11981
11982	as_fn_error $? "Package requirements (libpng) were not met:
11983
11984$LIBPNG_PKG_ERRORS
11985
11986Consider adjusting the PKG_CONFIG_PATH environment variable if you
11987installed software in a non-standard prefix.
11988
11989Alternatively, you may set the environment variables LIBPNG_CFLAGS
11990and LIBPNG_LIBS to avoid the need to call pkg-config.
11991See the pkg-config man page for more details." "$LINENO" 5
11992elif test $pkg_failed = untried; then
11993     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11994$as_echo "no" >&6; }
11995	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11996$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11997as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11998is in your PATH or set the PKG_CONFIG environment variable to the full
11999path to pkg-config.
12000
12001Alternatively, you may set the environment variables LIBPNG_CFLAGS
12002and LIBPNG_LIBS to avoid the need to call pkg-config.
12003See the pkg-config man page for more details.
12004
12005To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12006See \`config.log' for more details" "$LINENO" 5; }
12007else
12008	LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
12009	LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
12010        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12011$as_echo "yes" >&6; }
12012
12013fi
12014
12015ac_config_headers="$ac_config_headers config.h"
12016
12017ac_config_files="$ac_config_files Makefile data/Makefile src/Makefile po/Makefile.in"
12018
12019cat >confcache <<\_ACEOF
12020# This file is a shell script that caches the results of configure
12021# tests run on this system so they can be shared between configure
12022# scripts and configure runs, see configure's option --config-cache.
12023# It is not useful on other systems.  If it contains results you don't
12024# want to keep, you may remove or edit it.
12025#
12026# config.status only pays attention to the cache file if you give it
12027# the --recheck option to rerun configure.
12028#
12029# `ac_cv_env_foo' variables (set or unset) will be overridden when
12030# loading this file, other *unset* `ac_cv_foo' will be assigned the
12031# following values.
12032
12033_ACEOF
12034
12035# The following way of writing the cache mishandles newlines in values,
12036# but we know of no workaround that is simple, portable, and efficient.
12037# So, we kill variables containing newlines.
12038# Ultrix sh set writes to stderr and can't be redirected directly,
12039# and sets the high bit in the cache file unless we assign to the vars.
12040(
12041  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12042    eval ac_val=\$$ac_var
12043    case $ac_val in #(
12044    *${as_nl}*)
12045      case $ac_var in #(
12046      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12047$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12048      esac
12049      case $ac_var in #(
12050      _ | IFS | as_nl) ;; #(
12051      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12052      *) { eval $ac_var=; unset $ac_var;} ;;
12053      esac ;;
12054    esac
12055  done
12056
12057  (set) 2>&1 |
12058    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12059    *${as_nl}ac_space=\ *)
12060      # `set' does not quote correctly, so add quotes: double-quote
12061      # substitution turns \\\\ into \\, and sed turns \\ into \.
12062      sed -n \
12063	"s/'/'\\\\''/g;
12064	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12065      ;; #(
12066    *)
12067      # `set' quotes correctly as required by POSIX, so do not add quotes.
12068      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12069      ;;
12070    esac |
12071    sort
12072) |
12073  sed '
12074     /^ac_cv_env_/b end
12075     t clear
12076     :clear
12077     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12078     t end
12079     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12080     :end' >>confcache
12081if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12082  if test -w "$cache_file"; then
12083    if test "x$cache_file" != "x/dev/null"; then
12084      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12085$as_echo "$as_me: updating cache $cache_file" >&6;}
12086      if test ! -f "$cache_file" || test -h "$cache_file"; then
12087	cat confcache >"$cache_file"
12088      else
12089        case $cache_file in #(
12090        */* | ?:*)
12091	  mv -f confcache "$cache_file"$$ &&
12092	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12093        *)
12094	  mv -f confcache "$cache_file" ;;
12095	esac
12096      fi
12097    fi
12098  else
12099    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12100$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12101  fi
12102fi
12103rm -f confcache
12104
12105test "x$prefix" = xNONE && prefix=$ac_default_prefix
12106# Let make expand exec_prefix.
12107test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12108
12109DEFS=-DHAVE_CONFIG_H
12110
12111ac_libobjs=
12112ac_ltlibobjs=
12113U=
12114for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12115  # 1. Remove the extension, and $U if already installed.
12116  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12117  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12118  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12119  #    will be set to the directory where LIBOBJS objects are built.
12120  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12121  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12122done
12123LIBOBJS=$ac_libobjs
12124
12125LTLIBOBJS=$ac_ltlibobjs
12126
12127
12128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12129$as_echo_n "checking that generated files are newer than configure... " >&6; }
12130   if test -n "$am_sleep_pid"; then
12131     # Hide warnings about reused PIDs.
12132     wait $am_sleep_pid 2>/dev/null
12133   fi
12134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12135$as_echo "done" >&6; }
12136 if test -n "$EXEEXT"; then
12137  am__EXEEXT_TRUE=
12138  am__EXEEXT_FALSE='#'
12139else
12140  am__EXEEXT_TRUE='#'
12141  am__EXEEXT_FALSE=
12142fi
12143
12144if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12145  as_fn_error $? "conditional \"AMDEP\" was never defined.
12146Usually this means the macro was only invoked conditionally." "$LINENO" 5
12147fi
12148if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12149  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12150Usually this means the macro was only invoked conditionally." "$LINENO" 5
12151fi
12152if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
12153  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
12154Usually this means the macro was only invoked conditionally." "$LINENO" 5
12155fi
12156
12157: "${CONFIG_STATUS=./config.status}"
12158ac_write_fail=0
12159ac_clean_files_save=$ac_clean_files
12160ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12161{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12162$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12163as_write_fail=0
12164cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12165#! $SHELL
12166# Generated by $as_me.
12167# Run this file to recreate the current configuration.
12168# Compiler output produced by configure, useful for debugging
12169# configure, is in config.log if it exists.
12170
12171debug=false
12172ac_cs_recheck=false
12173ac_cs_silent=false
12174
12175SHELL=\${CONFIG_SHELL-$SHELL}
12176export SHELL
12177_ASEOF
12178cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12179## -------------------- ##
12180## M4sh Initialization. ##
12181## -------------------- ##
12182
12183# Be more Bourne compatible
12184DUALCASE=1; export DUALCASE # for MKS sh
12185if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12186  emulate sh
12187  NULLCMD=:
12188  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12189  # is contrary to our usage.  Disable this feature.
12190  alias -g '${1+"$@"}'='"$@"'
12191  setopt NO_GLOB_SUBST
12192else
12193  case `(set -o) 2>/dev/null` in #(
12194  *posix*) :
12195    set -o posix ;; #(
12196  *) :
12197     ;;
12198esac
12199fi
12200
12201
12202as_nl='
12203'
12204export as_nl
12205# Printing a long string crashes Solaris 7 /usr/bin/printf.
12206as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12207as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12208as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12209# Prefer a ksh shell builtin over an external printf program on Solaris,
12210# but without wasting forks for bash or zsh.
12211if test -z "$BASH_VERSION$ZSH_VERSION" \
12212    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12213  as_echo='print -r --'
12214  as_echo_n='print -rn --'
12215elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12216  as_echo='printf %s\n'
12217  as_echo_n='printf %s'
12218else
12219  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12220    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12221    as_echo_n='/usr/ucb/echo -n'
12222  else
12223    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12224    as_echo_n_body='eval
12225      arg=$1;
12226      case $arg in #(
12227      *"$as_nl"*)
12228	expr "X$arg" : "X\\(.*\\)$as_nl";
12229	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12230      esac;
12231      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12232    '
12233    export as_echo_n_body
12234    as_echo_n='sh -c $as_echo_n_body as_echo'
12235  fi
12236  export as_echo_body
12237  as_echo='sh -c $as_echo_body as_echo'
12238fi
12239
12240# The user is always right.
12241if test "${PATH_SEPARATOR+set}" != set; then
12242  PATH_SEPARATOR=:
12243  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12244    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12245      PATH_SEPARATOR=';'
12246  }
12247fi
12248
12249
12250# IFS
12251# We need space, tab and new line, in precisely that order.  Quoting is
12252# there to prevent editors from complaining about space-tab.
12253# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12254# splitting by setting IFS to empty value.)
12255IFS=" ""	$as_nl"
12256
12257# Find who we are.  Look in the path if we contain no directory separator.
12258as_myself=
12259case $0 in #((
12260  *[\\/]* ) as_myself=$0 ;;
12261  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12262for as_dir in $PATH
12263do
12264  IFS=$as_save_IFS
12265  test -z "$as_dir" && as_dir=.
12266    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12267  done
12268IFS=$as_save_IFS
12269
12270     ;;
12271esac
12272# We did not find ourselves, most probably we were run as `sh COMMAND'
12273# in which case we are not to be found in the path.
12274if test "x$as_myself" = x; then
12275  as_myself=$0
12276fi
12277if test ! -f "$as_myself"; then
12278  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12279  exit 1
12280fi
12281
12282# Unset variables that we do not need and which cause bugs (e.g. in
12283# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12284# suppresses any "Segmentation fault" message there.  '((' could
12285# trigger a bug in pdksh 5.2.14.
12286for as_var in BASH_ENV ENV MAIL MAILPATH
12287do eval test x\${$as_var+set} = xset \
12288  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12289done
12290PS1='$ '
12291PS2='> '
12292PS4='+ '
12293
12294# NLS nuisances.
12295LC_ALL=C
12296export LC_ALL
12297LANGUAGE=C
12298export LANGUAGE
12299
12300# CDPATH.
12301(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12302
12303
12304# as_fn_error STATUS ERROR [LINENO LOG_FD]
12305# ----------------------------------------
12306# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12307# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12308# script with STATUS, using 1 if that was 0.
12309as_fn_error ()
12310{
12311  as_status=$1; test $as_status -eq 0 && as_status=1
12312  if test "$4"; then
12313    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12314    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12315  fi
12316  $as_echo "$as_me: error: $2" >&2
12317  as_fn_exit $as_status
12318} # as_fn_error
12319
12320
12321# as_fn_set_status STATUS
12322# -----------------------
12323# Set $? to STATUS, without forking.
12324as_fn_set_status ()
12325{
12326  return $1
12327} # as_fn_set_status
12328
12329# as_fn_exit STATUS
12330# -----------------
12331# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12332as_fn_exit ()
12333{
12334  set +e
12335  as_fn_set_status $1
12336  exit $1
12337} # as_fn_exit
12338
12339# as_fn_unset VAR
12340# ---------------
12341# Portably unset VAR.
12342as_fn_unset ()
12343{
12344  { eval $1=; unset $1;}
12345}
12346as_unset=as_fn_unset
12347# as_fn_append VAR VALUE
12348# ----------------------
12349# Append the text in VALUE to the end of the definition contained in VAR. Take
12350# advantage of any shell optimizations that allow amortized linear growth over
12351# repeated appends, instead of the typical quadratic growth present in naive
12352# implementations.
12353if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12354  eval 'as_fn_append ()
12355  {
12356    eval $1+=\$2
12357  }'
12358else
12359  as_fn_append ()
12360  {
12361    eval $1=\$$1\$2
12362  }
12363fi # as_fn_append
12364
12365# as_fn_arith ARG...
12366# ------------------
12367# Perform arithmetic evaluation on the ARGs, and store the result in the
12368# global $as_val. Take advantage of shells that can avoid forks. The arguments
12369# must be portable across $(()) and expr.
12370if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12371  eval 'as_fn_arith ()
12372  {
12373    as_val=$(( $* ))
12374  }'
12375else
12376  as_fn_arith ()
12377  {
12378    as_val=`expr "$@" || test $? -eq 1`
12379  }
12380fi # as_fn_arith
12381
12382
12383if expr a : '\(a\)' >/dev/null 2>&1 &&
12384   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12385  as_expr=expr
12386else
12387  as_expr=false
12388fi
12389
12390if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12391  as_basename=basename
12392else
12393  as_basename=false
12394fi
12395
12396if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12397  as_dirname=dirname
12398else
12399  as_dirname=false
12400fi
12401
12402as_me=`$as_basename -- "$0" ||
12403$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12404	 X"$0" : 'X\(//\)$' \| \
12405	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12406$as_echo X/"$0" |
12407    sed '/^.*\/\([^/][^/]*\)\/*$/{
12408	    s//\1/
12409	    q
12410	  }
12411	  /^X\/\(\/\/\)$/{
12412	    s//\1/
12413	    q
12414	  }
12415	  /^X\/\(\/\).*/{
12416	    s//\1/
12417	    q
12418	  }
12419	  s/.*/./; q'`
12420
12421# Avoid depending upon Character Ranges.
12422as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12423as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12424as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12425as_cr_digits='0123456789'
12426as_cr_alnum=$as_cr_Letters$as_cr_digits
12427
12428ECHO_C= ECHO_N= ECHO_T=
12429case `echo -n x` in #(((((
12430-n*)
12431  case `echo 'xy\c'` in
12432  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12433  xy)  ECHO_C='\c';;
12434  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12435       ECHO_T='	';;
12436  esac;;
12437*)
12438  ECHO_N='-n';;
12439esac
12440
12441rm -f conf$$ conf$$.exe conf$$.file
12442if test -d conf$$.dir; then
12443  rm -f conf$$.dir/conf$$.file
12444else
12445  rm -f conf$$.dir
12446  mkdir conf$$.dir 2>/dev/null
12447fi
12448if (echo >conf$$.file) 2>/dev/null; then
12449  if ln -s conf$$.file conf$$ 2>/dev/null; then
12450    as_ln_s='ln -s'
12451    # ... but there are two gotchas:
12452    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12453    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12454    # In both cases, we have to default to `cp -pR'.
12455    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12456      as_ln_s='cp -pR'
12457  elif ln conf$$.file conf$$ 2>/dev/null; then
12458    as_ln_s=ln
12459  else
12460    as_ln_s='cp -pR'
12461  fi
12462else
12463  as_ln_s='cp -pR'
12464fi
12465rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12466rmdir conf$$.dir 2>/dev/null
12467
12468
12469# as_fn_mkdir_p
12470# -------------
12471# Create "$as_dir" as a directory, including parents if necessary.
12472as_fn_mkdir_p ()
12473{
12474
12475  case $as_dir in #(
12476  -*) as_dir=./$as_dir;;
12477  esac
12478  test -d "$as_dir" || eval $as_mkdir_p || {
12479    as_dirs=
12480    while :; do
12481      case $as_dir in #(
12482      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12483      *) as_qdir=$as_dir;;
12484      esac
12485      as_dirs="'$as_qdir' $as_dirs"
12486      as_dir=`$as_dirname -- "$as_dir" ||
12487$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12488	 X"$as_dir" : 'X\(//\)[^/]' \| \
12489	 X"$as_dir" : 'X\(//\)$' \| \
12490	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12491$as_echo X"$as_dir" |
12492    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12493	    s//\1/
12494	    q
12495	  }
12496	  /^X\(\/\/\)[^/].*/{
12497	    s//\1/
12498	    q
12499	  }
12500	  /^X\(\/\/\)$/{
12501	    s//\1/
12502	    q
12503	  }
12504	  /^X\(\/\).*/{
12505	    s//\1/
12506	    q
12507	  }
12508	  s/.*/./; q'`
12509      test -d "$as_dir" && break
12510    done
12511    test -z "$as_dirs" || eval "mkdir $as_dirs"
12512  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12513
12514
12515} # as_fn_mkdir_p
12516if mkdir -p . 2>/dev/null; then
12517  as_mkdir_p='mkdir -p "$as_dir"'
12518else
12519  test -d ./-p && rmdir ./-p
12520  as_mkdir_p=false
12521fi
12522
12523
12524# as_fn_executable_p FILE
12525# -----------------------
12526# Test if FILE is an executable regular file.
12527as_fn_executable_p ()
12528{
12529  test -f "$1" && test -x "$1"
12530} # as_fn_executable_p
12531as_test_x='test -x'
12532as_executable_p=as_fn_executable_p
12533
12534# Sed expression to map a string onto a valid CPP name.
12535as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12536
12537# Sed expression to map a string onto a valid variable name.
12538as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12539
12540
12541exec 6>&1
12542## ----------------------------------- ##
12543## Main body of $CONFIG_STATUS script. ##
12544## ----------------------------------- ##
12545_ASEOF
12546test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12547
12548cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12549# Save the log message, to keep $0 and so on meaningful, and to
12550# report actual input values of CONFIG_FILES etc. instead of their
12551# values after options handling.
12552ac_log="
12553This file was extended by Lunar Lander $as_me 0.6.6, which was
12554generated by GNU Autoconf 2.69.  Invocation command line was
12555
12556  CONFIG_FILES    = $CONFIG_FILES
12557  CONFIG_HEADERS  = $CONFIG_HEADERS
12558  CONFIG_LINKS    = $CONFIG_LINKS
12559  CONFIG_COMMANDS = $CONFIG_COMMANDS
12560  $ $0 $@
12561
12562on `(hostname || uname -n) 2>/dev/null | sed 1q`
12563"
12564
12565_ACEOF
12566
12567case $ac_config_files in *"
12568"*) set x $ac_config_files; shift; ac_config_files=$*;;
12569esac
12570
12571case $ac_config_headers in *"
12572"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12573esac
12574
12575
12576cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12577# Files that config.status was made for.
12578config_files="$ac_config_files"
12579config_headers="$ac_config_headers"
12580config_commands="$ac_config_commands"
12581
12582_ACEOF
12583
12584cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12585ac_cs_usage="\
12586\`$as_me' instantiates files and other configuration actions
12587from templates according to the current configuration.  Unless the files
12588and actions are specified as TAGs, all are instantiated by default.
12589
12590Usage: $0 [OPTION]... [TAG]...
12591
12592  -h, --help       print this help, then exit
12593  -V, --version    print version number and configuration settings, then exit
12594      --config     print configuration, then exit
12595  -q, --quiet, --silent
12596                   do not print progress messages
12597  -d, --debug      don't remove temporary files
12598      --recheck    update $as_me by reconfiguring in the same conditions
12599      --file=FILE[:TEMPLATE]
12600                   instantiate the configuration file FILE
12601      --header=FILE[:TEMPLATE]
12602                   instantiate the configuration header FILE
12603
12604Configuration files:
12605$config_files
12606
12607Configuration headers:
12608$config_headers
12609
12610Configuration commands:
12611$config_commands
12612
12613Report bugs to <Nick Gasson <nick@nickg.me.uk>>."
12614
12615_ACEOF
12616cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12617ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12618ac_cs_version="\\
12619Lunar Lander config.status 0.6.6
12620configured by $0, generated by GNU Autoconf 2.69,
12621  with options \\"\$ac_cs_config\\"
12622
12623Copyright (C) 2012 Free Software Foundation, Inc.
12624This config.status script is free software; the Free Software Foundation
12625gives unlimited permission to copy, distribute and modify it."
12626
12627ac_pwd='$ac_pwd'
12628srcdir='$srcdir'
12629INSTALL='$INSTALL'
12630MKDIR_P='$MKDIR_P'
12631AWK='$AWK'
12632test -n "\$AWK" || AWK=awk
12633_ACEOF
12634
12635cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12636# The default lists apply if the user does not specify any file.
12637ac_need_defaults=:
12638while test $# != 0
12639do
12640  case $1 in
12641  --*=?*)
12642    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12643    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12644    ac_shift=:
12645    ;;
12646  --*=)
12647    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12648    ac_optarg=
12649    ac_shift=:
12650    ;;
12651  *)
12652    ac_option=$1
12653    ac_optarg=$2
12654    ac_shift=shift
12655    ;;
12656  esac
12657
12658  case $ac_option in
12659  # Handling of the options.
12660  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12661    ac_cs_recheck=: ;;
12662  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12663    $as_echo "$ac_cs_version"; exit ;;
12664  --config | --confi | --conf | --con | --co | --c )
12665    $as_echo "$ac_cs_config"; exit ;;
12666  --debug | --debu | --deb | --de | --d | -d )
12667    debug=: ;;
12668  --file | --fil | --fi | --f )
12669    $ac_shift
12670    case $ac_optarg in
12671    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12672    '') as_fn_error $? "missing file argument" ;;
12673    esac
12674    as_fn_append CONFIG_FILES " '$ac_optarg'"
12675    ac_need_defaults=false;;
12676  --header | --heade | --head | --hea )
12677    $ac_shift
12678    case $ac_optarg in
12679    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12680    esac
12681    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12682    ac_need_defaults=false;;
12683  --he | --h)
12684    # Conflict between --help and --header
12685    as_fn_error $? "ambiguous option: \`$1'
12686Try \`$0 --help' for more information.";;
12687  --help | --hel | -h )
12688    $as_echo "$ac_cs_usage"; exit ;;
12689  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12690  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12691    ac_cs_silent=: ;;
12692
12693  # This is an error.
12694  -*) as_fn_error $? "unrecognized option: \`$1'
12695Try \`$0 --help' for more information." ;;
12696
12697  *) as_fn_append ac_config_targets " $1"
12698     ac_need_defaults=false ;;
12699
12700  esac
12701  shift
12702done
12703
12704ac_configure_extra_args=
12705
12706if $ac_cs_silent; then
12707  exec 6>/dev/null
12708  ac_configure_extra_args="$ac_configure_extra_args --silent"
12709fi
12710
12711_ACEOF
12712cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12713if \$ac_cs_recheck; then
12714  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12715  shift
12716  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12717  CONFIG_SHELL='$SHELL'
12718  export CONFIG_SHELL
12719  exec "\$@"
12720fi
12721
12722_ACEOF
12723cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12724exec 5>>config.log
12725{
12726  echo
12727  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12728## Running $as_me. ##
12729_ASBOX
12730  $as_echo "$ac_log"
12731} >&5
12732
12733_ACEOF
12734cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12735#
12736# INIT-COMMANDS
12737#
12738AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12739# Capture the value of obsolete ALL_LINGUAS because we need it to compute
12740    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
12741    # from automake < 1.5.
12742    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12743    # Capture the value of LINGUAS because we need it to compute CATALOGS.
12744    LINGUAS="${LINGUAS-%UNSET%}"
12745
12746
12747_ACEOF
12748
12749cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12750
12751# Handling of arguments.
12752for ac_config_target in $ac_config_targets
12753do
12754  case $ac_config_target in
12755    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12756    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
12757    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12758    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12759    "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
12760    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12761    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
12762
12763  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12764  esac
12765done
12766
12767
12768# If the user did not use the arguments to specify the items to instantiate,
12769# then the envvar interface is used.  Set only those that are not.
12770# We use the long form for the default assignment because of an extremely
12771# bizarre bug on SunOS 4.1.3.
12772if $ac_need_defaults; then
12773  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12774  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12775  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12776fi
12777
12778# Have a temporary directory for convenience.  Make it in the build tree
12779# simply because there is no reason against having it here, and in addition,
12780# creating and moving files from /tmp can sometimes cause problems.
12781# Hook for its removal unless debugging.
12782# Note that there is a small window in which the directory will not be cleaned:
12783# after its creation but before its name has been assigned to `$tmp'.
12784$debug ||
12785{
12786  tmp= ac_tmp=
12787  trap 'exit_status=$?
12788  : "${ac_tmp:=$tmp}"
12789  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12790' 0
12791  trap 'as_fn_exit 1' 1 2 13 15
12792}
12793# Create a (secure) tmp directory for tmp files.
12794
12795{
12796  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12797  test -d "$tmp"
12798}  ||
12799{
12800  tmp=./conf$$-$RANDOM
12801  (umask 077 && mkdir "$tmp")
12802} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12803ac_tmp=$tmp
12804
12805# Set up the scripts for CONFIG_FILES section.
12806# No need to generate them if there are no CONFIG_FILES.
12807# This happens for instance with `./config.status config.h'.
12808if test -n "$CONFIG_FILES"; then
12809
12810
12811ac_cr=`echo X | tr X '\015'`
12812# On cygwin, bash can eat \r inside `` if the user requested igncr.
12813# But we know of no other shell where ac_cr would be empty at this
12814# point, so we can use a bashism as a fallback.
12815if test "x$ac_cr" = x; then
12816  eval ac_cr=\$\'\\r\'
12817fi
12818ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12819if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12820  ac_cs_awk_cr='\\r'
12821else
12822  ac_cs_awk_cr=$ac_cr
12823fi
12824
12825echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12826_ACEOF
12827
12828
12829{
12830  echo "cat >conf$$subs.awk <<_ACEOF" &&
12831  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12832  echo "_ACEOF"
12833} >conf$$subs.sh ||
12834  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12835ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12836ac_delim='%!_!# '
12837for ac_last_try in false false false false false :; do
12838  . ./conf$$subs.sh ||
12839    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12840
12841  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12842  if test $ac_delim_n = $ac_delim_num; then
12843    break
12844  elif $ac_last_try; then
12845    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12846  else
12847    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12848  fi
12849done
12850rm -f conf$$subs.sh
12851
12852cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12853cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12854_ACEOF
12855sed -n '
12856h
12857s/^/S["/; s/!.*/"]=/
12858p
12859g
12860s/^[^!]*!//
12861:repl
12862t repl
12863s/'"$ac_delim"'$//
12864t delim
12865:nl
12866h
12867s/\(.\{148\}\)..*/\1/
12868t more1
12869s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12870p
12871n
12872b repl
12873:more1
12874s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12875p
12876g
12877s/.\{148\}//
12878t nl
12879:delim
12880h
12881s/\(.\{148\}\)..*/\1/
12882t more2
12883s/["\\]/\\&/g; s/^/"/; s/$/"/
12884p
12885b
12886:more2
12887s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12888p
12889g
12890s/.\{148\}//
12891t delim
12892' <conf$$subs.awk | sed '
12893/^[^""]/{
12894  N
12895  s/\n//
12896}
12897' >>$CONFIG_STATUS || ac_write_fail=1
12898rm -f conf$$subs.awk
12899cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12900_ACAWK
12901cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12902  for (key in S) S_is_set[key] = 1
12903  FS = ""
12904
12905}
12906{
12907  line = $ 0
12908  nfields = split(line, field, "@")
12909  substed = 0
12910  len = length(field[1])
12911  for (i = 2; i < nfields; i++) {
12912    key = field[i]
12913    keylen = length(key)
12914    if (S_is_set[key]) {
12915      value = S[key]
12916      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12917      len += length(value) + length(field[++i])
12918      substed = 1
12919    } else
12920      len += 1 + keylen
12921  }
12922
12923  print line
12924}
12925
12926_ACAWK
12927_ACEOF
12928cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12929if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12930  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12931else
12932  cat
12933fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12934  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12935_ACEOF
12936
12937# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12938# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12939# trailing colons and then remove the whole line if VPATH becomes empty
12940# (actually we leave an empty line to preserve line numbers).
12941if test "x$srcdir" = x.; then
12942  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12943h
12944s///
12945s/^/:/
12946s/[	 ]*$/:/
12947s/:\$(srcdir):/:/g
12948s/:\${srcdir}:/:/g
12949s/:@srcdir@:/:/g
12950s/^:*//
12951s/:*$//
12952x
12953s/\(=[	 ]*\).*/\1/
12954G
12955s/\n//
12956s/^[^=]*=[	 ]*$//
12957}'
12958fi
12959
12960cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12961fi # test -n "$CONFIG_FILES"
12962
12963# Set up the scripts for CONFIG_HEADERS section.
12964# No need to generate them if there are no CONFIG_HEADERS.
12965# This happens for instance with `./config.status Makefile'.
12966if test -n "$CONFIG_HEADERS"; then
12967cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12968BEGIN {
12969_ACEOF
12970
12971# Transform confdefs.h into an awk script `defines.awk', embedded as
12972# here-document in config.status, that substitutes the proper values into
12973# config.h.in to produce config.h.
12974
12975# Create a delimiter string that does not exist in confdefs.h, to ease
12976# handling of long lines.
12977ac_delim='%!_!# '
12978for ac_last_try in false false :; do
12979  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12980  if test -z "$ac_tt"; then
12981    break
12982  elif $ac_last_try; then
12983    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12984  else
12985    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12986  fi
12987done
12988
12989# For the awk script, D is an array of macro values keyed by name,
12990# likewise P contains macro parameters if any.  Preserve backslash
12991# newline sequences.
12992
12993ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12994sed -n '
12995s/.\{148\}/&'"$ac_delim"'/g
12996t rset
12997:rset
12998s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12999t def
13000d
13001:def
13002s/\\$//
13003t bsnl
13004s/["\\]/\\&/g
13005s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13006D["\1"]=" \3"/p
13007s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13008d
13009:bsnl
13010s/["\\]/\\&/g
13011s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13012D["\1"]=" \3\\\\\\n"\\/p
13013t cont
13014s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13015t cont
13016d
13017:cont
13018n
13019s/.\{148\}/&'"$ac_delim"'/g
13020t clear
13021:clear
13022s/\\$//
13023t bsnlc
13024s/["\\]/\\&/g; s/^/"/; s/$/"/p
13025d
13026:bsnlc
13027s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13028b cont
13029' <confdefs.h | sed '
13030s/'"$ac_delim"'/"\\\
13031"/g' >>$CONFIG_STATUS || ac_write_fail=1
13032
13033cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13034  for (key in D) D_is_set[key] = 1
13035  FS = ""
13036}
13037/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13038  line = \$ 0
13039  split(line, arg, " ")
13040  if (arg[1] == "#") {
13041    defundef = arg[2]
13042    mac1 = arg[3]
13043  } else {
13044    defundef = substr(arg[1], 2)
13045    mac1 = arg[2]
13046  }
13047  split(mac1, mac2, "(") #)
13048  macro = mac2[1]
13049  prefix = substr(line, 1, index(line, defundef) - 1)
13050  if (D_is_set[macro]) {
13051    # Preserve the white space surrounding the "#".
13052    print prefix "define", macro P[macro] D[macro]
13053    next
13054  } else {
13055    # Replace #undef with comments.  This is necessary, for example,
13056    # in the case of _POSIX_SOURCE, which is predefined and required
13057    # on some systems where configure will not decide to define it.
13058    if (defundef == "undef") {
13059      print "/*", prefix defundef, macro, "*/"
13060      next
13061    }
13062  }
13063}
13064{ print }
13065_ACAWK
13066_ACEOF
13067cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13068  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13069fi # test -n "$CONFIG_HEADERS"
13070
13071
13072eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13073shift
13074for ac_tag
13075do
13076  case $ac_tag in
13077  :[FHLC]) ac_mode=$ac_tag; continue;;
13078  esac
13079  case $ac_mode$ac_tag in
13080  :[FHL]*:*);;
13081  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13082  :[FH]-) ac_tag=-:-;;
13083  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13084  esac
13085  ac_save_IFS=$IFS
13086  IFS=:
13087  set x $ac_tag
13088  IFS=$ac_save_IFS
13089  shift
13090  ac_file=$1
13091  shift
13092
13093  case $ac_mode in
13094  :L) ac_source=$1;;
13095  :[FH])
13096    ac_file_inputs=
13097    for ac_f
13098    do
13099      case $ac_f in
13100      -) ac_f="$ac_tmp/stdin";;
13101      *) # Look for the file first in the build tree, then in the source tree
13102	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13103	 # because $ac_f cannot contain `:'.
13104	 test -f "$ac_f" ||
13105	   case $ac_f in
13106	   [\\/$]*) false;;
13107	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13108	   esac ||
13109	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13110      esac
13111      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13112      as_fn_append ac_file_inputs " '$ac_f'"
13113    done
13114
13115    # Let's still pretend it is `configure' which instantiates (i.e., don't
13116    # use $as_me), people would be surprised to read:
13117    #    /* config.h.  Generated by config.status.  */
13118    configure_input='Generated from '`
13119	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13120	`' by configure.'
13121    if test x"$ac_file" != x-; then
13122      configure_input="$ac_file.  $configure_input"
13123      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13124$as_echo "$as_me: creating $ac_file" >&6;}
13125    fi
13126    # Neutralize special characters interpreted by sed in replacement strings.
13127    case $configure_input in #(
13128    *\&* | *\|* | *\\* )
13129       ac_sed_conf_input=`$as_echo "$configure_input" |
13130       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13131    *) ac_sed_conf_input=$configure_input;;
13132    esac
13133
13134    case $ac_tag in
13135    *:-:* | *:-) cat >"$ac_tmp/stdin" \
13136      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13137    esac
13138    ;;
13139  esac
13140
13141  ac_dir=`$as_dirname -- "$ac_file" ||
13142$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13143	 X"$ac_file" : 'X\(//\)[^/]' \| \
13144	 X"$ac_file" : 'X\(//\)$' \| \
13145	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13146$as_echo X"$ac_file" |
13147    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13148	    s//\1/
13149	    q
13150	  }
13151	  /^X\(\/\/\)[^/].*/{
13152	    s//\1/
13153	    q
13154	  }
13155	  /^X\(\/\/\)$/{
13156	    s//\1/
13157	    q
13158	  }
13159	  /^X\(\/\).*/{
13160	    s//\1/
13161	    q
13162	  }
13163	  s/.*/./; q'`
13164  as_dir="$ac_dir"; as_fn_mkdir_p
13165  ac_builddir=.
13166
13167case "$ac_dir" in
13168.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13169*)
13170  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13171  # A ".." for each directory in $ac_dir_suffix.
13172  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13173  case $ac_top_builddir_sub in
13174  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13175  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13176  esac ;;
13177esac
13178ac_abs_top_builddir=$ac_pwd
13179ac_abs_builddir=$ac_pwd$ac_dir_suffix
13180# for backward compatibility:
13181ac_top_builddir=$ac_top_build_prefix
13182
13183case $srcdir in
13184  .)  # We are building in place.
13185    ac_srcdir=.
13186    ac_top_srcdir=$ac_top_builddir_sub
13187    ac_abs_top_srcdir=$ac_pwd ;;
13188  [\\/]* | ?:[\\/]* )  # Absolute name.
13189    ac_srcdir=$srcdir$ac_dir_suffix;
13190    ac_top_srcdir=$srcdir
13191    ac_abs_top_srcdir=$srcdir ;;
13192  *) # Relative name.
13193    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13194    ac_top_srcdir=$ac_top_build_prefix$srcdir
13195    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13196esac
13197ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13198
13199
13200  case $ac_mode in
13201  :F)
13202  #
13203  # CONFIG_FILE
13204  #
13205
13206  case $INSTALL in
13207  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13208  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13209  esac
13210  ac_MKDIR_P=$MKDIR_P
13211  case $MKDIR_P in
13212  [\\/$]* | ?:[\\/]* ) ;;
13213  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13214  esac
13215_ACEOF
13216
13217cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13218# If the template does not know about datarootdir, expand it.
13219# FIXME: This hack should be removed a few years after 2.60.
13220ac_datarootdir_hack=; ac_datarootdir_seen=
13221ac_sed_dataroot='
13222/datarootdir/ {
13223  p
13224  q
13225}
13226/@datadir@/p
13227/@docdir@/p
13228/@infodir@/p
13229/@localedir@/p
13230/@mandir@/p'
13231case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13232*datarootdir*) ac_datarootdir_seen=yes;;
13233*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13234  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13235$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13236_ACEOF
13237cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13238  ac_datarootdir_hack='
13239  s&@datadir@&$datadir&g
13240  s&@docdir@&$docdir&g
13241  s&@infodir@&$infodir&g
13242  s&@localedir@&$localedir&g
13243  s&@mandir@&$mandir&g
13244  s&\\\${datarootdir}&$datarootdir&g' ;;
13245esac
13246_ACEOF
13247
13248# Neutralize VPATH when `$srcdir' = `.'.
13249# Shell code in configure.ac might set extrasub.
13250# FIXME: do we really want to maintain this feature?
13251cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13252ac_sed_extra="$ac_vpsub
13253$extrasub
13254_ACEOF
13255cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13256:t
13257/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13258s|@configure_input@|$ac_sed_conf_input|;t t
13259s&@top_builddir@&$ac_top_builddir_sub&;t t
13260s&@top_build_prefix@&$ac_top_build_prefix&;t t
13261s&@srcdir@&$ac_srcdir&;t t
13262s&@abs_srcdir@&$ac_abs_srcdir&;t t
13263s&@top_srcdir@&$ac_top_srcdir&;t t
13264s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13265s&@builddir@&$ac_builddir&;t t
13266s&@abs_builddir@&$ac_abs_builddir&;t t
13267s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13268s&@INSTALL@&$ac_INSTALL&;t t
13269s&@MKDIR_P@&$ac_MKDIR_P&;t t
13270$ac_datarootdir_hack
13271"
13272eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13273  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13274
13275test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13276  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13277  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
13278      "$ac_tmp/out"`; test -z "$ac_out"; } &&
13279  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13280which seems to be undefined.  Please make sure it is defined" >&5
13281$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13282which seems to be undefined.  Please make sure it is defined" >&2;}
13283
13284  rm -f "$ac_tmp/stdin"
13285  case $ac_file in
13286  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13287  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13288  esac \
13289  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13290 ;;
13291  :H)
13292  #
13293  # CONFIG_HEADER
13294  #
13295  if test x"$ac_file" != x-; then
13296    {
13297      $as_echo "/* $configure_input  */" \
13298      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13299    } >"$ac_tmp/config.h" \
13300      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13301    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13302      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13303$as_echo "$as_me: $ac_file is unchanged" >&6;}
13304    else
13305      rm -f "$ac_file"
13306      mv "$ac_tmp/config.h" "$ac_file" \
13307	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13308    fi
13309  else
13310    $as_echo "/* $configure_input  */" \
13311      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13312      || as_fn_error $? "could not create -" "$LINENO" 5
13313  fi
13314# Compute "$ac_file"'s index in $config_headers.
13315_am_arg="$ac_file"
13316_am_stamp_count=1
13317for _am_header in $config_headers :; do
13318  case $_am_header in
13319    $_am_arg | $_am_arg:* )
13320      break ;;
13321    * )
13322      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13323  esac
13324done
13325echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13326$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13327	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13328	 X"$_am_arg" : 'X\(//\)$' \| \
13329	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13330$as_echo X"$_am_arg" |
13331    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13332	    s//\1/
13333	    q
13334	  }
13335	  /^X\(\/\/\)[^/].*/{
13336	    s//\1/
13337	    q
13338	  }
13339	  /^X\(\/\/\)$/{
13340	    s//\1/
13341	    q
13342	  }
13343	  /^X\(\/\).*/{
13344	    s//\1/
13345	    q
13346	  }
13347	  s/.*/./; q'`/stamp-h$_am_stamp_count
13348 ;;
13349
13350  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13351$as_echo "$as_me: executing $ac_file commands" >&6;}
13352 ;;
13353  esac
13354
13355
13356  case $ac_file$ac_mode in
13357    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13358  # Older Autoconf quotes --file arguments for eval, but not when files
13359  # are listed without --file.  Let's play safe and only enable the eval
13360  # if we detect the quoting.
13361  case $CONFIG_FILES in
13362  *\'*) eval set x "$CONFIG_FILES" ;;
13363  *)   set x $CONFIG_FILES ;;
13364  esac
13365  shift
13366  for mf
13367  do
13368    # Strip MF so we end up with the name of the file.
13369    mf=`echo "$mf" | sed -e 's/:.*$//'`
13370    # Check whether this is an Automake generated Makefile or not.
13371    # We used to match only the files named 'Makefile.in', but
13372    # some people rename them; so instead we look at the file content.
13373    # Grep'ing the first line is not enough: some people post-process
13374    # each Makefile.in and add a new line on top of each file to say so.
13375    # Grep'ing the whole file is not good either: AIX grep has a line
13376    # limit of 2048, but all sed's we know have understand at least 4000.
13377    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13378      dirpart=`$as_dirname -- "$mf" ||
13379$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13380	 X"$mf" : 'X\(//\)[^/]' \| \
13381	 X"$mf" : 'X\(//\)$' \| \
13382	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13383$as_echo X"$mf" |
13384    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13385	    s//\1/
13386	    q
13387	  }
13388	  /^X\(\/\/\)[^/].*/{
13389	    s//\1/
13390	    q
13391	  }
13392	  /^X\(\/\/\)$/{
13393	    s//\1/
13394	    q
13395	  }
13396	  /^X\(\/\).*/{
13397	    s//\1/
13398	    q
13399	  }
13400	  s/.*/./; q'`
13401    else
13402      continue
13403    fi
13404    # Extract the definition of DEPDIR, am__include, and am__quote
13405    # from the Makefile without running 'make'.
13406    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13407    test -z "$DEPDIR" && continue
13408    am__include=`sed -n 's/^am__include = //p' < "$mf"`
13409    test -z "$am__include" && continue
13410    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13411    # Find all dependency output files, they are included files with
13412    # $(DEPDIR) in their names.  We invoke sed twice because it is the
13413    # simplest approach to changing $(DEPDIR) to its actual value in the
13414    # expansion.
13415    for file in `sed -n "
13416      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13417	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
13418      # Make sure the directory exists.
13419      test -f "$dirpart/$file" && continue
13420      fdir=`$as_dirname -- "$file" ||
13421$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13422	 X"$file" : 'X\(//\)[^/]' \| \
13423	 X"$file" : 'X\(//\)$' \| \
13424	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13425$as_echo X"$file" |
13426    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13427	    s//\1/
13428	    q
13429	  }
13430	  /^X\(\/\/\)[^/].*/{
13431	    s//\1/
13432	    q
13433	  }
13434	  /^X\(\/\/\)$/{
13435	    s//\1/
13436	    q
13437	  }
13438	  /^X\(\/\).*/{
13439	    s//\1/
13440	    q
13441	  }
13442	  s/.*/./; q'`
13443      as_dir=$dirpart/$fdir; as_fn_mkdir_p
13444      # echo "creating $dirpart/$file"
13445      echo '# dummy' > "$dirpart/$file"
13446    done
13447  done
13448}
13449 ;;
13450    "po-directories":C)
13451    for ac_file in $CONFIG_FILES; do
13452      # Support "outfile[:infile[:infile...]]"
13453      case "$ac_file" in
13454        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13455      esac
13456      # PO directories have a Makefile.in generated from Makefile.in.in.
13457      case "$ac_file" in */Makefile.in)
13458        # Adjust a relative srcdir.
13459        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
13460        ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
13461        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
13462        # In autoconf-2.13 it is called $ac_given_srcdir.
13463        # In autoconf-2.50 it is called $srcdir.
13464        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
13465        case "$ac_given_srcdir" in
13466          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
13467          /*) top_srcdir="$ac_given_srcdir" ;;
13468          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
13469        esac
13470        # Treat a directory as a PO directory if and only if it has a
13471        # POTFILES.in file. This allows packages to have multiple PO
13472        # directories under different names or in different locations.
13473        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
13474          rm -f "$ac_dir/POTFILES"
13475          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
13476          gt_tab=`printf '\t'`
13477          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"
13478          POMAKEFILEDEPS="POTFILES.in"
13479          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
13480          # on $ac_dir but don't depend on user-specified configuration
13481          # parameters.
13482          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
13483            # The LINGUAS file contains the set of available languages.
13484            if test -n "$OBSOLETE_ALL_LINGUAS"; then
13485              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
13486            fi
13487            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
13488            # Hide the ALL_LINGUAS assignment from automake < 1.5.
13489            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
13490            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
13491          else
13492            # The set of available languages was given in configure.in.
13493            # Hide the ALL_LINGUAS assignment from automake < 1.5.
13494            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
13495          fi
13496          # Compute POFILES
13497          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
13498          # Compute UPDATEPOFILES
13499          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
13500          # Compute DUMMYPOFILES
13501          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
13502          # Compute GMOFILES
13503          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
13504          case "$ac_given_srcdir" in
13505            .) srcdirpre= ;;
13506            *) srcdirpre='$(srcdir)/' ;;
13507          esac
13508          POFILES=
13509          UPDATEPOFILES=
13510          DUMMYPOFILES=
13511          GMOFILES=
13512          for lang in $ALL_LINGUAS; do
13513            POFILES="$POFILES $srcdirpre$lang.po"
13514            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
13515            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
13516            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13517          done
13518          # CATALOGS depends on both $ac_dir and the user's LINGUAS
13519          # environment variable.
13520          INST_LINGUAS=
13521          if test -n "$ALL_LINGUAS"; then
13522            for presentlang in $ALL_LINGUAS; do
13523              useit=no
13524              if test "%UNSET%" != "$LINGUAS"; then
13525                desiredlanguages="$LINGUAS"
13526              else
13527                desiredlanguages="$ALL_LINGUAS"
13528              fi
13529              for desiredlang in $desiredlanguages; do
13530                # Use the presentlang catalog if desiredlang is
13531                #   a. equal to presentlang, or
13532                #   b. a variant of presentlang (because in this case,
13533                #      presentlang can be used as a fallback for messages
13534                #      which are not translated in the desiredlang catalog).
13535                case "$desiredlang" in
13536                  "$presentlang"*) useit=yes;;
13537                esac
13538              done
13539              if test $useit = yes; then
13540                INST_LINGUAS="$INST_LINGUAS $presentlang"
13541              fi
13542            done
13543          fi
13544          CATALOGS=
13545          if test -n "$INST_LINGUAS"; then
13546            for lang in $INST_LINGUAS; do
13547              CATALOGS="$CATALOGS $lang.gmo"
13548            done
13549          fi
13550          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
13551          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"
13552          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
13553            if test -f "$f"; then
13554              case "$f" in
13555                *.orig | *.bak | *~) ;;
13556                *) cat "$f" >> "$ac_dir/Makefile" ;;
13557              esac
13558            fi
13559          done
13560        fi
13561        ;;
13562      esac
13563    done ;;
13564
13565  esac
13566done # for ac_tag
13567
13568
13569as_fn_exit 0
13570_ACEOF
13571ac_clean_files=$ac_clean_files_save
13572
13573test $ac_write_fail = 0 ||
13574  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13575
13576
13577# configure is writing to config.log, and then calls config.status.
13578# config.status does its own redirection, appending to config.log.
13579# Unfortunately, on DOS this fails, as config.log is still kept open
13580# by configure, so config.status won't be able to write to it; its
13581# output is simply discarded.  So we exec the FD to /dev/null,
13582# effectively closing config.log, so it can be properly (re)opened and
13583# appended to by config.status.  When coming back to configure, we
13584# need to make the FD available again.
13585if test "$no_create" != yes; then
13586  ac_cs_success=:
13587  ac_config_status_args=
13588  test "$silent" = yes &&
13589    ac_config_status_args="$ac_config_status_args --quiet"
13590  exec 5>/dev/null
13591  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13592  exec 5>>config.log
13593  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13594  # would make configure fail if this is the last instruction.
13595  $ac_cs_success || as_fn_exit 1
13596fi
13597if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13598  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13599$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13600fi
13601
13602