1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for Aegisub aegisub_version.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200  if (eval "$as_required") 2>/dev/null; then :
201  as_have_required=yes
202else
203  as_have_required=no
204fi
205  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212  IFS=$as_save_IFS
213  test -z "$as_dir" && as_dir=.
214  as_found=:
215  case $as_dir in #(
216	 /*)
217	   for as_base in sh bash ksh sh5; do
218	     # Try only shells that exist, to save several forks.
219	     as_shell=$as_dir/$as_base
220	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222  CONFIG_SHELL=$as_shell as_have_required=yes
223		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  break 2
225fi
226fi
227	   done;;
228       esac
229  as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233  CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238      if test "x$CONFIG_SHELL" != x; then :
239  export CONFIG_SHELL
240             # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248  *v*x* | *x*v* ) as_opts=-vx ;;
249  *v* ) as_opts=-v ;;
250  *x* ) as_opts=-x ;;
251  * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
258fi
259
260    if test x$as_have_required = xno; then :
261  $as_echo "$0: This script requires a shell more modern than all"
262  $as_echo "$0: the shells that I found on your system."
263  if test x${ZSH_VERSION+set} = xset ; then
264    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266  else
267    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271  fi
272  exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290  { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299  return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307  set +e
308  as_fn_set_status $1
309  exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318  case $as_dir in #(
319  -*) as_dir=./$as_dir;;
320  esac
321  test -d "$as_dir" || eval $as_mkdir_p || {
322    as_dirs=
323    while :; do
324      case $as_dir in #(
325      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326      *) as_qdir=$as_dir;;
327      esac
328      as_dirs="'$as_qdir' $as_dirs"
329      as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331	 X"$as_dir" : 'X\(//\)[^/]' \| \
332	 X"$as_dir" : 'X\(//\)$' \| \
333	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336	    s//\1/
337	    q
338	  }
339	  /^X\(\/\/\)[^/].*/{
340	    s//\1/
341	    q
342	  }
343	  /^X\(\/\/\)$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\).*/{
348	    s//\1/
349	    q
350	  }
351	  s/.*/./; q'`
352      test -d "$as_dir" && break
353    done
354    test -z "$as_dirs" || eval "mkdir $as_dirs"
355  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358} # as_fn_mkdir_p
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365  test -f "$1" && test -x "$1"
366} # as_fn_executable_p
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374  eval 'as_fn_append ()
375  {
376    eval $1+=\$2
377  }'
378else
379  as_fn_append ()
380  {
381    eval $1=\$$1\$2
382  }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391  eval 'as_fn_arith ()
392  {
393    as_val=$(( $* ))
394  }'
395else
396  as_fn_arith ()
397  {
398    as_val=`expr "$@" || test $? -eq 1`
399  }
400fi # as_fn_arith
401
402
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407# script with STATUS, using 1 if that was 0.
408as_fn_error ()
409{
410  as_status=$1; test $as_status -eq 0 && as_status=1
411  if test "$4"; then
412    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414  fi
415  $as_echo "$as_me: error: $2" >&2
416  as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420   test "X`expr 00001 : '.*\(...\)'`" = X001; then
421  as_expr=expr
422else
423  as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427  as_basename=basename
428else
429  as_basename=false
430fi
431
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433  as_dirname=dirname
434else
435  as_dirname=false
436fi
437
438as_me=`$as_basename -- "$0" ||
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440	 X"$0" : 'X\(//\)$' \| \
441	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443    sed '/^.*\/\([^/][^/]*\)\/*$/{
444	    s//\1/
445	    q
446	  }
447	  /^X\/\(\/\/\)$/{
448	    s//\1/
449	    q
450	  }
451	  /^X\/\(\/\).*/{
452	    s//\1/
453	    q
454	  }
455	  s/.*/./; q'`
456
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465  as_lineno_1=$LINENO as_lineno_1a=$LINENO
466  as_lineno_2=$LINENO as_lineno_2a=$LINENO
467  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470  sed -n '
471    p
472    /[$]LINENO/=
473  ' <$as_myself |
474    sed '
475      s/[$]LINENO.*/&-/
476      t lineno
477      b
478      :lineno
479      N
480      :loop
481      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482      t loop
483      s/-\n.*//
484    ' >$as_me.lineno &&
485  chmod +x "$as_me.lineno" ||
486    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489  # already done that, so ensure we don't try to do so again and fall
490  # in an infinite loop.  This has already happened in practice.
491  _as_can_reexec=no; export _as_can_reexec
492  # Don't try to exec as it changes $[0], causing all sort of problems
493  # (the dirname of $[0] is not the place where we might find the
494  # original and so on.  Autoconf is especially sensitive to this).
495  . "./$as_me.lineno"
496  # Exit status is that of the last command.
497  exit
498}
499
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503  case `echo 'xy\c'` in
504  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
505  xy)  ECHO_C='\c';;
506  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507       ECHO_T='	';;
508  esac;;
509*)
510  ECHO_N='-n';;
511esac
512
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515  rm -f conf$$.dir/conf$$.file
516else
517  rm -f conf$$.dir
518  mkdir conf$$.dir 2>/dev/null
519fi
520if (echo >conf$$.file) 2>/dev/null; then
521  if ln -s conf$$.file conf$$ 2>/dev/null; then
522    as_ln_s='ln -s'
523    # ... but there are two gotchas:
524    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526    # In both cases, we have to default to `cp -pR'.
527    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528      as_ln_s='cp -pR'
529  elif ln conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s=ln
531  else
532    as_ln_s='cp -pR'
533  fi
534else
535  as_ln_s='cp -pR'
536fi
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
539
540if mkdir -p . 2>/dev/null; then
541  as_mkdir_p='mkdir -p "$as_dir"'
542else
543  test -d ./-p && rmdir ./-p
544  as_mkdir_p=false
545fi
546
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
559
560# Name of the host.
561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565#
566# Initializations.
567#
568ac_default_prefix=/usr/local
569ac_clean_files=
570ac_config_libobj_dir=.
571LIBOBJS=
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
576
577# Identity of this package.
578PACKAGE_NAME='Aegisub'
579PACKAGE_TARNAME='aegisub'
580PACKAGE_VERSION='aegisub_version'
581PACKAGE_STRING='Aegisub aegisub_version'
582PACKAGE_BUGREPORT=''
583PACKAGE_URL=''
584
585ac_unique_file="src/main.cpp"
586# Factoring default headers for most tests.
587ac_includes_default="\
588#include <stdio.h>
589#ifdef HAVE_SYS_TYPES_H
590# include <sys/types.h>
591#endif
592#ifdef HAVE_SYS_STAT_H
593# include <sys/stat.h>
594#endif
595#ifdef STDC_HEADERS
596# include <stdlib.h>
597# include <stddef.h>
598#else
599# ifdef HAVE_STDLIB_H
600#  include <stdlib.h>
601# endif
602#endif
603#ifdef HAVE_STRING_H
604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605#  include <memory.h>
606# endif
607# include <string.h>
608#endif
609#ifdef HAVE_STRINGS_H
610# include <strings.h>
611#endif
612#ifdef HAVE_INTTYPES_H
613# include <inttypes.h>
614#endif
615#ifdef HAVE_STDINT_H
616# include <stdint.h>
617#endif
618#ifdef HAVE_UNISTD_H
619# include <unistd.h>
620#endif"
621
622gt_needs=
623ac_subst_vars='LTLIBOBJS
624LIBOBJS
625DEFAULT_PLAYER_AUDIO
626POSUB
627LTLIBINTL
628LIBINTL
629INTLLIBS
630LTLIBICONV
631LIBICONV
632INTL_MACOSX_LIBS
633XGETTEXT_EXTRA_OPTIONS
634MSGMERGE
635XGETTEXT_015
636XGETTEXT
637GMSGFMT_015
638MSGFMT_015
639GMSGFMT
640MSGFMT
641GETTEXT_MACRO_VERSION
642USE_NLS
643MKDIR_P
644SET_MAKE
645enable_gcc_prec
646WX_VERSION_MICRO
647WX_VERSION_MINOR
648WX_VERSION_MAJOR
649WX_RESCOMP
650WX_VERSION
651WX_LIBS_STATIC
652WX_LIBS
653WX_CXXFLAGS_ONLY
654WX_CFLAGS_ONLY
655WX_CXXFLAGS
656WX_CFLAGS
657WX_CPPFLAGS
658WX_CONFIG_PATH
659with_hunspell
660HUNSPELL_LIBS
661HUNSPELL_CFLAGS
662with_fftw3
663FFTW3_LIBS
664FFTW3_CFLAGS
665with_ffms2
666FFMS2_LIBS
667FFMS2_CFLAGS
668with_portaudio
669PORTAUDIO_LIBS
670PORTAUDIO_CFLAGS
671with_libpulse
672LIBPULSE_LIBS
673LIBPULSE_CFLAGS
674with_oss
675OSS_CFLAGS
676with_openal
677OPENAL_CFLAGS
678OPENAL_LIBS
679with_alsa
680ALSA_LIBS
681ALSA_CFLAGS
682ICONV_LIBS
683ICONV_CFLAGS
684ICU_I18N_LIBS
685ICU_I18N_CFLAGS
686ICU_UC_LIBS
687ICU_UC_CFLAGS
688BOOST_THREAD_LIB
689BOOST_SYSTEM_LIB
690BOOST_REGEX_LIB
691BOOST_LOCALE_LIB
692BOOST_FILESYSTEM_LIB
693BOOST_CHRONO_LIB
694BOOST_LDFLAGS
695BOOST_CPPFLAGS
696FONTCONFIG_CONF_DIR
697LIBASS_LIBS
698LIBASS_CFLAGS
699FONTCONFIG_LIBS
700FONTCONFIG_CFLAGS
701FREETYPE_LIBS
702FREETYPE_CFLAGS
703GL_LIBS
704GL_CFLAGS
705SED
706X_EXTRA_LIBS
707X_LIBS
708X_PRE_LIBS
709X_CFLAGS
710XMKMF
711CXXCPP
712PTHREAD_CFLAGS
713PTHREAD_LIBS
714PTHREAD_CC
715ax_pthread_config
716BUILD_DATE
717BUILD_GIT_VERSION_STRING
718PKG_CONFIG_LIBDIR
719PKG_CONFIG_PATH
720PKG_CONFIG
721RANLIB
722INSTALL_DATA
723INSTALL_SCRIPT
724INSTALL_PROGRAM
725ac_ct_CXX
726CXXFLAGS
727CXX
728ifGNUmake
729P_ICON
730P_DESKTOP
731AEGISUB_CATALOG
732AEGISUB_COMMAND
733build_darwin
734host_os
735host_vendor
736host_cpu
737host
738build_os
739build_vendor
740build_cpu
741build
742EGREP
743GREP
744CPP
745OBJEXT
746EXEEXT
747ac_ct_CC
748CPPFLAGS
749LDFLAGS
750CFLAGS
751CC
752target_alias
753host_alias
754build_alias
755LIBS
756ECHO_T
757ECHO_N
758ECHO_C
759DEFS
760mandir
761localedir
762libdir
763psdir
764pdfdir
765dvidir
766htmldir
767infodir
768docdir
769oldincludedir
770includedir
771localstatedir
772sharedstatedir
773sysconfdir
774datadir
775datarootdir
776libexecdir
777sbindir
778bindir
779program_transform_name
780prefix
781exec_prefix
782PACKAGE_URL
783PACKAGE_BUGREPORT
784PACKAGE_STRING
785PACKAGE_VERSION
786PACKAGE_TARNAME
787PACKAGE_NAME
788PATH_SEPARATOR
789SHELL'
790ac_subst_files=''
791ac_user_opts='
792enable_option_checking
793with_desktop_dir
794with_icon_dir
795with_build_credit
796enable_compiler_flags
797with_libc__
798enable_sanity_checks
799with_x
800with_boost
801with_boost_libdir
802with_boost_chrono
803with_boost_filesystem
804with_boost_locale
805with_boost_regex
806with_boost_system
807with_boost_thread
808with_alsa
809with_openal
810with_oss
811with_libpulse
812with_portaudio
813with_ffms2
814with_fftw3
815with_hunspell
816enable_debug
817enable_debug_exceptions
818with_wxdir
819with_wx_config
820with_wx_prefix
821with_wx_exec_prefix
822enable_gcc_prec
823enable_nls
824with_gnu_ld
825enable_rpath
826with_libiconv_prefix
827with_libintl_prefix
828enable_update_checker
829with_update_server
830with_update_url
831with_player_audio
832'
833      ac_precious_vars='build_alias
834host_alias
835target_alias
836CC
837CFLAGS
838LDFLAGS
839LIBS
840CPPFLAGS
841CPP
842CXX
843CXXFLAGS
844CCC
845PKG_CONFIG
846PKG_CONFIG_PATH
847PKG_CONFIG_LIBDIR
848CXXCPP
849XMKMF
850FREETYPE_CFLAGS
851FREETYPE_LIBS
852FONTCONFIG_CFLAGS
853FONTCONFIG_LIBS
854LIBASS_CFLAGS
855LIBASS_LIBS
856ICU_UC_CFLAGS
857ICU_UC_LIBS
858ICU_I18N_CFLAGS
859ICU_I18N_LIBS
860ICONV_CFLAGS
861ICONV_LIBS
862ALSA_CFLAGS
863ALSA_LIBS
864OPENAL_CFLAGS
865OPENAL_LIBS
866OSS_CFLAGS
867LIBPULSE_CFLAGS
868LIBPULSE_LIBS
869PORTAUDIO_CFLAGS
870PORTAUDIO_LIBS
871FFMS2_CFLAGS
872FFMS2_LIBS
873FFTW3_CFLAGS
874FFTW3_LIBS
875HUNSPELL_CFLAGS
876HUNSPELL_LIBS'
877
878
879# Initialize some variables set by options.
880ac_init_help=
881ac_init_version=false
882ac_unrecognized_opts=
883ac_unrecognized_sep=
884# The variables have the same names as the options, with
885# dashes changed to underlines.
886cache_file=/dev/null
887exec_prefix=NONE
888no_create=
889no_recursion=
890prefix=NONE
891program_prefix=NONE
892program_suffix=NONE
893program_transform_name=s,x,x,
894silent=
895site=
896srcdir=
897verbose=
898x_includes=NONE
899x_libraries=NONE
900
901# Installation directory options.
902# These are left unexpanded so users can "make install exec_prefix=/foo"
903# and all the variables that are supposed to be based on exec_prefix
904# by default will actually change.
905# Use braces instead of parens because sh, perl, etc. also accept them.
906# (The list follows the same order as the GNU Coding Standards.)
907bindir='${exec_prefix}/bin'
908sbindir='${exec_prefix}/sbin'
909libexecdir='${exec_prefix}/libexec'
910datarootdir='${prefix}/share'
911datadir='${datarootdir}'
912sysconfdir='${prefix}/etc'
913sharedstatedir='${prefix}/com'
914localstatedir='${prefix}/var'
915includedir='${prefix}/include'
916oldincludedir='/usr/include'
917docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
918infodir='${datarootdir}/info'
919htmldir='${docdir}'
920dvidir='${docdir}'
921pdfdir='${docdir}'
922psdir='${docdir}'
923libdir='${exec_prefix}/lib'
924localedir='${datarootdir}/locale'
925mandir='${datarootdir}/man'
926
927ac_prev=
928ac_dashdash=
929for ac_option
930do
931  # If the previous option needs an argument, assign it.
932  if test -n "$ac_prev"; then
933    eval $ac_prev=\$ac_option
934    ac_prev=
935    continue
936  fi
937
938  case $ac_option in
939  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
940  *=)   ac_optarg= ;;
941  *)    ac_optarg=yes ;;
942  esac
943
944  # Accept the important Cygnus configure options, so we can diagnose typos.
945
946  case $ac_dashdash$ac_option in
947  --)
948    ac_dashdash=yes ;;
949
950  -bindir | --bindir | --bindi | --bind | --bin | --bi)
951    ac_prev=bindir ;;
952  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
953    bindir=$ac_optarg ;;
954
955  -build | --build | --buil | --bui | --bu)
956    ac_prev=build_alias ;;
957  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
958    build_alias=$ac_optarg ;;
959
960  -cache-file | --cache-file | --cache-fil | --cache-fi \
961  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
962    ac_prev=cache_file ;;
963  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
964  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
965    cache_file=$ac_optarg ;;
966
967  --config-cache | -C)
968    cache_file=config.cache ;;
969
970  -datadir | --datadir | --datadi | --datad)
971    ac_prev=datadir ;;
972  -datadir=* | --datadir=* | --datadi=* | --datad=*)
973    datadir=$ac_optarg ;;
974
975  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
976  | --dataroo | --dataro | --datar)
977    ac_prev=datarootdir ;;
978  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
979  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
980    datarootdir=$ac_optarg ;;
981
982  -disable-* | --disable-*)
983    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
984    # Reject names that are not valid shell variable names.
985    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
986      as_fn_error $? "invalid feature name: $ac_useropt"
987    ac_useropt_orig=$ac_useropt
988    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
989    case $ac_user_opts in
990      *"
991"enable_$ac_useropt"
992"*) ;;
993      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
994	 ac_unrecognized_sep=', ';;
995    esac
996    eval enable_$ac_useropt=no ;;
997
998  -docdir | --docdir | --docdi | --doc | --do)
999    ac_prev=docdir ;;
1000  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1001    docdir=$ac_optarg ;;
1002
1003  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1004    ac_prev=dvidir ;;
1005  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1006    dvidir=$ac_optarg ;;
1007
1008  -enable-* | --enable-*)
1009    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1010    # Reject names that are not valid shell variable names.
1011    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1012      as_fn_error $? "invalid feature name: $ac_useropt"
1013    ac_useropt_orig=$ac_useropt
1014    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1015    case $ac_user_opts in
1016      *"
1017"enable_$ac_useropt"
1018"*) ;;
1019      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1020	 ac_unrecognized_sep=', ';;
1021    esac
1022    eval enable_$ac_useropt=\$ac_optarg ;;
1023
1024  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1025  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1026  | --exec | --exe | --ex)
1027    ac_prev=exec_prefix ;;
1028  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1029  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1030  | --exec=* | --exe=* | --ex=*)
1031    exec_prefix=$ac_optarg ;;
1032
1033  -gas | --gas | --ga | --g)
1034    # Obsolete; use --with-gas.
1035    with_gas=yes ;;
1036
1037  -help | --help | --hel | --he | -h)
1038    ac_init_help=long ;;
1039  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1040    ac_init_help=recursive ;;
1041  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1042    ac_init_help=short ;;
1043
1044  -host | --host | --hos | --ho)
1045    ac_prev=host_alias ;;
1046  -host=* | --host=* | --hos=* | --ho=*)
1047    host_alias=$ac_optarg ;;
1048
1049  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1050    ac_prev=htmldir ;;
1051  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1052  | --ht=*)
1053    htmldir=$ac_optarg ;;
1054
1055  -includedir | --includedir | --includedi | --included | --include \
1056  | --includ | --inclu | --incl | --inc)
1057    ac_prev=includedir ;;
1058  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1059  | --includ=* | --inclu=* | --incl=* | --inc=*)
1060    includedir=$ac_optarg ;;
1061
1062  -infodir | --infodir | --infodi | --infod | --info | --inf)
1063    ac_prev=infodir ;;
1064  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1065    infodir=$ac_optarg ;;
1066
1067  -libdir | --libdir | --libdi | --libd)
1068    ac_prev=libdir ;;
1069  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1070    libdir=$ac_optarg ;;
1071
1072  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1073  | --libexe | --libex | --libe)
1074    ac_prev=libexecdir ;;
1075  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1076  | --libexe=* | --libex=* | --libe=*)
1077    libexecdir=$ac_optarg ;;
1078
1079  -localedir | --localedir | --localedi | --localed | --locale)
1080    ac_prev=localedir ;;
1081  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1082    localedir=$ac_optarg ;;
1083
1084  -localstatedir | --localstatedir | --localstatedi | --localstated \
1085  | --localstate | --localstat | --localsta | --localst | --locals)
1086    ac_prev=localstatedir ;;
1087  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1088  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1089    localstatedir=$ac_optarg ;;
1090
1091  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1092    ac_prev=mandir ;;
1093  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1094    mandir=$ac_optarg ;;
1095
1096  -nfp | --nfp | --nf)
1097    # Obsolete; use --without-fp.
1098    with_fp=no ;;
1099
1100  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1101  | --no-cr | --no-c | -n)
1102    no_create=yes ;;
1103
1104  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1105  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1106    no_recursion=yes ;;
1107
1108  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1109  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1110  | --oldin | --oldi | --old | --ol | --o)
1111    ac_prev=oldincludedir ;;
1112  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1113  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1114  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1115    oldincludedir=$ac_optarg ;;
1116
1117  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1118    ac_prev=prefix ;;
1119  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1120    prefix=$ac_optarg ;;
1121
1122  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1123  | --program-pre | --program-pr | --program-p)
1124    ac_prev=program_prefix ;;
1125  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1126  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1127    program_prefix=$ac_optarg ;;
1128
1129  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1130  | --program-suf | --program-su | --program-s)
1131    ac_prev=program_suffix ;;
1132  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1133  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1134    program_suffix=$ac_optarg ;;
1135
1136  -program-transform-name | --program-transform-name \
1137  | --program-transform-nam | --program-transform-na \
1138  | --program-transform-n | --program-transform- \
1139  | --program-transform | --program-transfor \
1140  | --program-transfo | --program-transf \
1141  | --program-trans | --program-tran \
1142  | --progr-tra | --program-tr | --program-t)
1143    ac_prev=program_transform_name ;;
1144  -program-transform-name=* | --program-transform-name=* \
1145  | --program-transform-nam=* | --program-transform-na=* \
1146  | --program-transform-n=* | --program-transform-=* \
1147  | --program-transform=* | --program-transfor=* \
1148  | --program-transfo=* | --program-transf=* \
1149  | --program-trans=* | --program-tran=* \
1150  | --progr-tra=* | --program-tr=* | --program-t=*)
1151    program_transform_name=$ac_optarg ;;
1152
1153  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1154    ac_prev=pdfdir ;;
1155  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1156    pdfdir=$ac_optarg ;;
1157
1158  -psdir | --psdir | --psdi | --psd | --ps)
1159    ac_prev=psdir ;;
1160  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1161    psdir=$ac_optarg ;;
1162
1163  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1164  | -silent | --silent | --silen | --sile | --sil)
1165    silent=yes ;;
1166
1167  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1168    ac_prev=sbindir ;;
1169  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1170  | --sbi=* | --sb=*)
1171    sbindir=$ac_optarg ;;
1172
1173  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1174  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1175  | --sharedst | --shareds | --shared | --share | --shar \
1176  | --sha | --sh)
1177    ac_prev=sharedstatedir ;;
1178  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1179  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1180  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1181  | --sha=* | --sh=*)
1182    sharedstatedir=$ac_optarg ;;
1183
1184  -site | --site | --sit)
1185    ac_prev=site ;;
1186  -site=* | --site=* | --sit=*)
1187    site=$ac_optarg ;;
1188
1189  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1190    ac_prev=srcdir ;;
1191  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1192    srcdir=$ac_optarg ;;
1193
1194  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1195  | --syscon | --sysco | --sysc | --sys | --sy)
1196    ac_prev=sysconfdir ;;
1197  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1198  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1199    sysconfdir=$ac_optarg ;;
1200
1201  -target | --target | --targe | --targ | --tar | --ta | --t)
1202    ac_prev=target_alias ;;
1203  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1204    target_alias=$ac_optarg ;;
1205
1206  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1207    verbose=yes ;;
1208
1209  -version | --version | --versio | --versi | --vers | -V)
1210    ac_init_version=: ;;
1211
1212  -with-* | --with-*)
1213    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1214    # Reject names that are not valid shell variable names.
1215    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1216      as_fn_error $? "invalid package name: $ac_useropt"
1217    ac_useropt_orig=$ac_useropt
1218    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1219    case $ac_user_opts in
1220      *"
1221"with_$ac_useropt"
1222"*) ;;
1223      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1224	 ac_unrecognized_sep=', ';;
1225    esac
1226    eval with_$ac_useropt=\$ac_optarg ;;
1227
1228  -without-* | --without-*)
1229    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1230    # Reject names that are not valid shell variable names.
1231    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1232      as_fn_error $? "invalid package name: $ac_useropt"
1233    ac_useropt_orig=$ac_useropt
1234    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1235    case $ac_user_opts in
1236      *"
1237"with_$ac_useropt"
1238"*) ;;
1239      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1240	 ac_unrecognized_sep=', ';;
1241    esac
1242    eval with_$ac_useropt=no ;;
1243
1244  --x)
1245    # Obsolete; use --with-x.
1246    with_x=yes ;;
1247
1248  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1249  | --x-incl | --x-inc | --x-in | --x-i)
1250    ac_prev=x_includes ;;
1251  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1252  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1253    x_includes=$ac_optarg ;;
1254
1255  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1256  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1257    ac_prev=x_libraries ;;
1258  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1259  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1260    x_libraries=$ac_optarg ;;
1261
1262  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1263Try \`$0 --help' for more information"
1264    ;;
1265
1266  *=*)
1267    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1268    # Reject names that are not valid shell variable names.
1269    case $ac_envvar in #(
1270      '' | [0-9]* | *[!_$as_cr_alnum]* )
1271      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1272    esac
1273    eval $ac_envvar=\$ac_optarg
1274    export $ac_envvar ;;
1275
1276  *)
1277    # FIXME: should be removed in autoconf 3.0.
1278    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1279    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1280      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1281    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1282    ;;
1283
1284  esac
1285done
1286
1287if test -n "$ac_prev"; then
1288  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1289  as_fn_error $? "missing argument to $ac_option"
1290fi
1291
1292if test -n "$ac_unrecognized_opts"; then
1293  case $enable_option_checking in
1294    no) ;;
1295    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1296    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1297  esac
1298fi
1299
1300# Check all directory arguments for consistency.
1301for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1302		datadir sysconfdir sharedstatedir localstatedir includedir \
1303		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1304		libdir localedir mandir
1305do
1306  eval ac_val=\$$ac_var
1307  # Remove trailing slashes.
1308  case $ac_val in
1309    */ )
1310      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1311      eval $ac_var=\$ac_val;;
1312  esac
1313  # Be sure to have absolute directory names.
1314  case $ac_val in
1315    [\\/$]* | ?:[\\/]* )  continue;;
1316    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1317  esac
1318  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1319done
1320
1321# There might be people who depend on the old broken behavior: `$host'
1322# used to hold the argument of --host etc.
1323# FIXME: To remove some day.
1324build=$build_alias
1325host=$host_alias
1326target=$target_alias
1327
1328# FIXME: To remove some day.
1329if test "x$host_alias" != x; then
1330  if test "x$build_alias" = x; then
1331    cross_compiling=maybe
1332  elif test "x$build_alias" != "x$host_alias"; then
1333    cross_compiling=yes
1334  fi
1335fi
1336
1337ac_tool_prefix=
1338test -n "$host_alias" && ac_tool_prefix=$host_alias-
1339
1340test "$silent" = yes && exec 6>/dev/null
1341
1342
1343ac_pwd=`pwd` && test -n "$ac_pwd" &&
1344ac_ls_di=`ls -di .` &&
1345ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1346  as_fn_error $? "working directory cannot be determined"
1347test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1348  as_fn_error $? "pwd does not report name of working directory"
1349
1350
1351# Find the source files, if location was not specified.
1352if test -z "$srcdir"; then
1353  ac_srcdir_defaulted=yes
1354  # Try the directory containing this script, then the parent directory.
1355  ac_confdir=`$as_dirname -- "$as_myself" ||
1356$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1357	 X"$as_myself" : 'X\(//\)[^/]' \| \
1358	 X"$as_myself" : 'X\(//\)$' \| \
1359	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1360$as_echo X"$as_myself" |
1361    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1362	    s//\1/
1363	    q
1364	  }
1365	  /^X\(\/\/\)[^/].*/{
1366	    s//\1/
1367	    q
1368	  }
1369	  /^X\(\/\/\)$/{
1370	    s//\1/
1371	    q
1372	  }
1373	  /^X\(\/\).*/{
1374	    s//\1/
1375	    q
1376	  }
1377	  s/.*/./; q'`
1378  srcdir=$ac_confdir
1379  if test ! -r "$srcdir/$ac_unique_file"; then
1380    srcdir=..
1381  fi
1382else
1383  ac_srcdir_defaulted=no
1384fi
1385if test ! -r "$srcdir/$ac_unique_file"; then
1386  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1387  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1388fi
1389ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1390ac_abs_confdir=`(
1391	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1392	pwd)`
1393# When building in place, set srcdir=.
1394if test "$ac_abs_confdir" = "$ac_pwd"; then
1395  srcdir=.
1396fi
1397# Remove unnecessary trailing slashes from srcdir.
1398# Double slashes in file names in object file debugging info
1399# mess up M-x gdb in Emacs.
1400case $srcdir in
1401*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1402esac
1403for ac_var in $ac_precious_vars; do
1404  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1405  eval ac_env_${ac_var}_value=\$${ac_var}
1406  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1407  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1408done
1409
1410#
1411# Report the --help message.
1412#
1413if test "$ac_init_help" = "long"; then
1414  # Omit some internal or obsolete options to make the list less imposing.
1415  # This message is too long to be a string in the A/UX 3.1 sh.
1416  cat <<_ACEOF
1417\`configure' configures Aegisub aegisub_version to adapt to many kinds of systems.
1418
1419Usage: $0 [OPTION]... [VAR=VALUE]...
1420
1421To assign environment variables (e.g., CC, CFLAGS...), specify them as
1422VAR=VALUE.  See below for descriptions of some of the useful variables.
1423
1424Defaults for the options are specified in brackets.
1425
1426Configuration:
1427  -h, --help              display this help and exit
1428      --help=short        display options specific to this package
1429      --help=recursive    display the short help of all the included packages
1430  -V, --version           display version information and exit
1431  -q, --quiet, --silent   do not print \`checking ...' messages
1432      --cache-file=FILE   cache test results in FILE [disabled]
1433  -C, --config-cache      alias for \`--cache-file=config.cache'
1434  -n, --no-create         do not create output files
1435      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1436
1437Installation directories:
1438  --prefix=PREFIX         install architecture-independent files in PREFIX
1439                          [$ac_default_prefix]
1440  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1441                          [PREFIX]
1442
1443By default, \`make install' will install all the files in
1444\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1445an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1446for instance \`--prefix=\$HOME'.
1447
1448For better control, use the options below.
1449
1450Fine tuning of the installation directories:
1451  --bindir=DIR            user executables [EPREFIX/bin]
1452  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1453  --libexecdir=DIR        program executables [EPREFIX/libexec]
1454  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1455  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1456  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1457  --libdir=DIR            object code libraries [EPREFIX/lib]
1458  --includedir=DIR        C header files [PREFIX/include]
1459  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1460  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1461  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1462  --infodir=DIR           info documentation [DATAROOTDIR/info]
1463  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1464  --mandir=DIR            man documentation [DATAROOTDIR/man]
1465  --docdir=DIR            documentation root [DATAROOTDIR/doc/aegisub]
1466  --htmldir=DIR           html documentation [DOCDIR]
1467  --dvidir=DIR            dvi documentation [DOCDIR]
1468  --pdfdir=DIR            pdf documentation [DOCDIR]
1469  --psdir=DIR             ps documentation [DOCDIR]
1470_ACEOF
1471
1472  cat <<\_ACEOF
1473
1474X features:
1475  --x-includes=DIR    X include files are in DIR
1476  --x-libraries=DIR   X library files are in DIR
1477
1478System types:
1479  --build=BUILD     configure for building on BUILD [guessed]
1480  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1481_ACEOF
1482fi
1483
1484if test -n "$ac_init_help"; then
1485  case $ac_init_help in
1486     short | recursive ) echo "Configuration of Aegisub aegisub_version:";;
1487   esac
1488  cat <<\_ACEOF
1489
1490Optional Features:
1491  --disable-option-checking  ignore unrecognized --enable/--with options
1492  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1493  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1494  --disable-compiler-flags
1495                          Disable *all* additional compiler flags. [no]
1496  --disable-sanity-checks Skip verifying that found libraries work.
1497  --enable-debug          enable debugging [no]
1498  --enable-debug-exceptions
1499                          enable exception handling in debug mode [no]
1500  --enable-debug          Build in debug mode (default is auto)
1501  --disable-gcc-prec      disable GCC precompiled headers
1502  --disable-nls           do not use Native Language Support
1503  --disable-rpath         do not hardcode runtime library paths
1504  --disable-update-checker
1505                          disable the update checker [no]
1506
1507Optional Packages:
1508  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1509  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1510  --with-desktop-dir=PATH desktop file locations [PREFIX/share/applications]
1511  --with-icon-dir=PATH    icon locations [PREFIX/share/icons]
1512  --with-build-credit=NAME
1513                          Build credit shown in the program title.
1514  --with-libc++           Use libc++ rather than libstdc++. [auto]
1515  --with-x                use the X Window System
1516  --with-boost=PATH       use Boost library from the specified location
1517  --with-boost-libdir=LIB_DIR
1518                          Force given directory for boost libraries. Note that
1519                          this will override library path detection, so use
1520                          this parameter only if default library detection
1521                          fails and you know exactly where your boost
1522                          libraries are located.
1523  --with-boost-chrono=LIBNAME
1524                          Override the name of the library for boost.chrono
1525                          e.g. --with-boost-chrono=boost_chrono-gcc-mt
1526  --with-boost-filesystem=LIBNAME
1527                          Override the name of the library for
1528                          boost.filesystem e.g.
1529                          --with-boost-filesystem=boost_filesystem-gcc-mt
1530  --with-boost-locale=LIBNAME
1531                          Override the name of the library for boost.locale
1532                          e.g. --with-boost-locale=boost_locale-gcc-mt
1533  --with-boost-regex=LIBNAME
1534                          Override the name of the library for boost.regex
1535                          e.g. --with-boost-regex=boost_regex-gcc-mt
1536  --with-boost-system=LIBNAME
1537                          Override the name of the library for boost.system
1538                          e.g. --with-boost-system=boost_system-gcc-mt
1539  --with-boost-thread=LIBNAME
1540                          Override the name of the library for boost.thread
1541                          e.g. --with-boost-thread=boost_thread-gcc-mt
1542  --without-alsa          build without ALSA audio player [auto]
1543  --without-openal        build without OpenAL audio player [auto]
1544  --without-oss           build without OSS audio player [auto]
1545  --without-libpulse      build without PulseAudio audio player [auto]
1546  --without-portaudio     build without PortAudio v19 audio player [auto]
1547  --without-ffms2         build without ffms2 A/V provider [auto]
1548  --without-fftw3         build without fftw support [auto]
1549  --without-hunspell      build without hunspell spell-checking [auto]
1550  --with-wxdir=PATH       Use uninstalled version of wxWidgets in PATH
1551  --with-wx-config=CONFIG wx-config script to use (optional)
1552  --with-wx-prefix=PREFIX Prefix where wxWidgets is installed (optional)
1553  --with-wx-exec-prefix=PREFIX
1554                          Exec prefix where wxWidgets is installed (optional)
1555  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1556  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1557  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1558  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1559  --without-libintl-prefix     don't search for libintl in includedir and libdir
1560  --with-update-server=HOSTNAME
1561                          Server to use for the update checker
1562                          [updates.aegisub.org]
1563  --with-update-url=HOSTNAME
1564                          Base path to use for the update checker [/trunk]
1565  --with-player-audio=(ALSA|OpenAL|PortAudio|PulseAudio|OSS)
1566                          Default Audio Player [Linux/ALSA, Darwin/OpenAL,
1567                          1:*/OSS, 2:*/PortAudio]
1568
1569Some influential environment variables:
1570  CC          C compiler command
1571  CFLAGS      C compiler flags
1572  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1573              nonstandard directory <lib dir>
1574  LIBS        libraries to pass to the linker, e.g. -l<library>
1575  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1576              you have headers in a nonstandard directory <include dir>
1577  CPP         C preprocessor
1578  CXX         C++ compiler command
1579  CXXFLAGS    C++ compiler flags
1580  PKG_CONFIG  path to pkg-config utility
1581  PKG_CONFIG_PATH
1582              directories to add to pkg-config's search path
1583  PKG_CONFIG_LIBDIR
1584              path overriding pkg-config's built-in search path
1585  CXXCPP      C++ preprocessor
1586  XMKMF       Path to xmkmf, Makefile generator for X Window System
1587  FREETYPE_CFLAGS
1588              C compiler flags for FREETYPE, overriding pkg-config
1589  FREETYPE_LIBS
1590              linker flags for FREETYPE, overriding pkg-config
1591  FONTCONFIG_CFLAGS
1592              C compiler flags for FONTCONFIG, overriding pkg-config
1593  FONTCONFIG_LIBS
1594              linker flags for FONTCONFIG, overriding pkg-config
1595  LIBASS_CFLAGS
1596              C compiler flags for LIBASS, overriding pkg-config
1597  LIBASS_LIBS linker flags for LIBASS, overriding pkg-config
1598  ICU_UC_CFLAGS
1599              C compiler flags for ICU_UC, overriding pkg-config
1600  ICU_UC_LIBS linker flags for ICU_UC, overriding pkg-config
1601  ICU_I18N_CFLAGS
1602              C compiler flags for ICU_I18N, overriding pkg-config
1603  ICU_I18N_LIBS
1604              linker flags for ICU_I18N, overriding pkg-config
1605  ICONV_CFLAGS
1606              CFLAGS to use for iconv []
1607  ICONV_LIBS  LIBS to use for iconv [-liconv]
1608  ALSA_CFLAGS CFLAGS to use for ALSA []
1609  ALSA_LIBS   LIBS to use for ALSA [-lasound -lrt]
1610  OPENAL_CFLAGS
1611              C compiler flags for OPENAL, overriding pkg-config
1612  OPENAL_LIBS linker flags for OPENAL, overriding pkg-config
1613  OSS_CFLAGS  CFLAGS to use for OSS [auto]
1614  LIBPULSE_CFLAGS
1615              C compiler flags for LIBPULSE, overriding pkg-config
1616  LIBPULSE_LIBS
1617              linker flags for LIBPULSE, overriding pkg-config
1618  PORTAUDIO_CFLAGS
1619              C compiler flags for PORTAUDIO, overriding pkg-config
1620  PORTAUDIO_LIBS
1621              linker flags for PORTAUDIO, overriding pkg-config
1622  FFMS2_CFLAGS
1623              C compiler flags for FFMS2, overriding pkg-config
1624  FFMS2_LIBS  linker flags for FFMS2, overriding pkg-config
1625  FFTW3_CFLAGS
1626              C compiler flags for FFTW3, overriding pkg-config
1627  FFTW3_LIBS  linker flags for FFTW3, overriding pkg-config
1628  HUNSPELL_CFLAGS
1629              C compiler flags for HUNSPELL, overriding pkg-config
1630  HUNSPELL_LIBS
1631              linker flags for HUNSPELL, overriding pkg-config
1632
1633Use these variables to override the choices made by `configure' or to help
1634it to find libraries and programs with nonstandard names/locations.
1635
1636Report bugs to the package provider.
1637_ACEOF
1638ac_status=$?
1639fi
1640
1641if test "$ac_init_help" = "recursive"; then
1642  # If there are subdirs, report their specific --help.
1643  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1644    test -d "$ac_dir" ||
1645      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1646      continue
1647    ac_builddir=.
1648
1649case "$ac_dir" in
1650.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1651*)
1652  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1653  # A ".." for each directory in $ac_dir_suffix.
1654  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1655  case $ac_top_builddir_sub in
1656  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1657  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1658  esac ;;
1659esac
1660ac_abs_top_builddir=$ac_pwd
1661ac_abs_builddir=$ac_pwd$ac_dir_suffix
1662# for backward compatibility:
1663ac_top_builddir=$ac_top_build_prefix
1664
1665case $srcdir in
1666  .)  # We are building in place.
1667    ac_srcdir=.
1668    ac_top_srcdir=$ac_top_builddir_sub
1669    ac_abs_top_srcdir=$ac_pwd ;;
1670  [\\/]* | ?:[\\/]* )  # Absolute name.
1671    ac_srcdir=$srcdir$ac_dir_suffix;
1672    ac_top_srcdir=$srcdir
1673    ac_abs_top_srcdir=$srcdir ;;
1674  *) # Relative name.
1675    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1676    ac_top_srcdir=$ac_top_build_prefix$srcdir
1677    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1678esac
1679ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1680
1681    cd "$ac_dir" || { ac_status=$?; continue; }
1682    # Check for guested configure.
1683    if test -f "$ac_srcdir/configure.gnu"; then
1684      echo &&
1685      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1686    elif test -f "$ac_srcdir/configure"; then
1687      echo &&
1688      $SHELL "$ac_srcdir/configure" --help=recursive
1689    else
1690      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1691    fi || ac_status=$?
1692    cd "$ac_pwd" || { ac_status=$?; break; }
1693  done
1694fi
1695
1696test -n "$ac_init_help" && exit $ac_status
1697if $ac_init_version; then
1698  cat <<\_ACEOF
1699Aegisub configure aegisub_version
1700generated by GNU Autoconf 2.69
1701
1702Copyright (C) 2012 Free Software Foundation, Inc.
1703This configure script is free software; the Free Software Foundation
1704gives unlimited permission to copy, distribute and modify it.
1705_ACEOF
1706  exit
1707fi
1708
1709## ------------------------ ##
1710## Autoconf initialization. ##
1711## ------------------------ ##
1712
1713# ac_fn_c_try_compile LINENO
1714# --------------------------
1715# Try to compile conftest.$ac_ext, and return whether this succeeded.
1716ac_fn_c_try_compile ()
1717{
1718  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719  rm -f conftest.$ac_objext
1720  if { { ac_try="$ac_compile"
1721case "(($ac_try" in
1722  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723  *) ac_try_echo=$ac_try;;
1724esac
1725eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726$as_echo "$ac_try_echo"; } >&5
1727  (eval "$ac_compile") 2>conftest.err
1728  ac_status=$?
1729  if test -s conftest.err; then
1730    grep -v '^ *+' conftest.err >conftest.er1
1731    cat conftest.er1 >&5
1732    mv -f conftest.er1 conftest.err
1733  fi
1734  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735  test $ac_status = 0; } && {
1736	 test -z "$ac_c_werror_flag" ||
1737	 test ! -s conftest.err
1738       } && test -s conftest.$ac_objext; then :
1739  ac_retval=0
1740else
1741  $as_echo "$as_me: failed program was:" >&5
1742sed 's/^/| /' conftest.$ac_ext >&5
1743
1744	ac_retval=1
1745fi
1746  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1747  as_fn_set_status $ac_retval
1748
1749} # ac_fn_c_try_compile
1750
1751# ac_fn_c_try_cpp LINENO
1752# ----------------------
1753# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1754ac_fn_c_try_cpp ()
1755{
1756  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757  if { { ac_try="$ac_cpp conftest.$ac_ext"
1758case "(($ac_try" in
1759  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760  *) ac_try_echo=$ac_try;;
1761esac
1762eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763$as_echo "$ac_try_echo"; } >&5
1764  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1765  ac_status=$?
1766  if test -s conftest.err; then
1767    grep -v '^ *+' conftest.err >conftest.er1
1768    cat conftest.er1 >&5
1769    mv -f conftest.er1 conftest.err
1770  fi
1771  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772  test $ac_status = 0; } > conftest.i && {
1773	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1774	 test ! -s conftest.err
1775       }; then :
1776  ac_retval=0
1777else
1778  $as_echo "$as_me: failed program was:" >&5
1779sed 's/^/| /' conftest.$ac_ext >&5
1780
1781    ac_retval=1
1782fi
1783  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784  as_fn_set_status $ac_retval
1785
1786} # ac_fn_c_try_cpp
1787
1788# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1789# -------------------------------------------------------
1790# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1791# the include files in INCLUDES and setting the cache variable VAR
1792# accordingly.
1793ac_fn_c_check_header_mongrel ()
1794{
1795  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796  if eval \${$3+:} false; then :
1797  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798$as_echo_n "checking for $2... " >&6; }
1799if eval \${$3+:} false; then :
1800  $as_echo_n "(cached) " >&6
1801fi
1802eval ac_res=\$$3
1803	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1804$as_echo "$ac_res" >&6; }
1805else
1806  # Is the header compilable?
1807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1808$as_echo_n "checking $2 usability... " >&6; }
1809cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810/* end confdefs.h.  */
1811$4
1812#include <$2>
1813_ACEOF
1814if ac_fn_c_try_compile "$LINENO"; then :
1815  ac_header_compiler=yes
1816else
1817  ac_header_compiler=no
1818fi
1819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1821$as_echo "$ac_header_compiler" >&6; }
1822
1823# Is the header present?
1824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1825$as_echo_n "checking $2 presence... " >&6; }
1826cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827/* end confdefs.h.  */
1828#include <$2>
1829_ACEOF
1830if ac_fn_c_try_cpp "$LINENO"; then :
1831  ac_header_preproc=yes
1832else
1833  ac_header_preproc=no
1834fi
1835rm -f conftest.err conftest.i conftest.$ac_ext
1836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1837$as_echo "$ac_header_preproc" >&6; }
1838
1839# So?  What about this header?
1840case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1841  yes:no: )
1842    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1843$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1844    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1845$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1846    ;;
1847  no:yes:* )
1848    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1849$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1850    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1851$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1852    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1853$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1854    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1855$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1856    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1857$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1858    ;;
1859esac
1860  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1861$as_echo_n "checking for $2... " >&6; }
1862if eval \${$3+:} false; then :
1863  $as_echo_n "(cached) " >&6
1864else
1865  eval "$3=\$ac_header_compiler"
1866fi
1867eval ac_res=\$$3
1868	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1869$as_echo "$ac_res" >&6; }
1870fi
1871  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872
1873} # ac_fn_c_check_header_mongrel
1874
1875# ac_fn_c_try_run LINENO
1876# ----------------------
1877# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1878# that executables *can* be run.
1879ac_fn_c_try_run ()
1880{
1881  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882  if { { ac_try="$ac_link"
1883case "(($ac_try" in
1884  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885  *) ac_try_echo=$ac_try;;
1886esac
1887eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888$as_echo "$ac_try_echo"; } >&5
1889  (eval "$ac_link") 2>&5
1890  ac_status=$?
1891  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1893  { { case "(($ac_try" in
1894  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1895  *) ac_try_echo=$ac_try;;
1896esac
1897eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1898$as_echo "$ac_try_echo"; } >&5
1899  (eval "$ac_try") 2>&5
1900  ac_status=$?
1901  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902  test $ac_status = 0; }; }; then :
1903  ac_retval=0
1904else
1905  $as_echo "$as_me: program exited with status $ac_status" >&5
1906       $as_echo "$as_me: failed program was:" >&5
1907sed 's/^/| /' conftest.$ac_ext >&5
1908
1909       ac_retval=$ac_status
1910fi
1911  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1912  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913  as_fn_set_status $ac_retval
1914
1915} # ac_fn_c_try_run
1916
1917# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1918# -------------------------------------------------------
1919# Tests whether HEADER exists and can be compiled using the include files in
1920# INCLUDES, setting the cache variable VAR accordingly.
1921ac_fn_c_check_header_compile ()
1922{
1923  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1925$as_echo_n "checking for $2... " >&6; }
1926if eval \${$3+:} false; then :
1927  $as_echo_n "(cached) " >&6
1928else
1929  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930/* end confdefs.h.  */
1931$4
1932#include <$2>
1933_ACEOF
1934if ac_fn_c_try_compile "$LINENO"; then :
1935  eval "$3=yes"
1936else
1937  eval "$3=no"
1938fi
1939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1940fi
1941eval ac_res=\$$3
1942	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1943$as_echo "$ac_res" >&6; }
1944  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1945
1946} # ac_fn_c_check_header_compile
1947
1948# ac_fn_cxx_try_compile LINENO
1949# ----------------------------
1950# Try to compile conftest.$ac_ext, and return whether this succeeded.
1951ac_fn_cxx_try_compile ()
1952{
1953  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954  rm -f conftest.$ac_objext
1955  if { { ac_try="$ac_compile"
1956case "(($ac_try" in
1957  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1958  *) ac_try_echo=$ac_try;;
1959esac
1960eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1961$as_echo "$ac_try_echo"; } >&5
1962  (eval "$ac_compile") 2>conftest.err
1963  ac_status=$?
1964  if test -s conftest.err; then
1965    grep -v '^ *+' conftest.err >conftest.er1
1966    cat conftest.er1 >&5
1967    mv -f conftest.er1 conftest.err
1968  fi
1969  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1970  test $ac_status = 0; } && {
1971	 test -z "$ac_cxx_werror_flag" ||
1972	 test ! -s conftest.err
1973       } && test -s conftest.$ac_objext; then :
1974  ac_retval=0
1975else
1976  $as_echo "$as_me: failed program was:" >&5
1977sed 's/^/| /' conftest.$ac_ext >&5
1978
1979	ac_retval=1
1980fi
1981  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1982  as_fn_set_status $ac_retval
1983
1984} # ac_fn_cxx_try_compile
1985
1986# ac_fn_c_try_link LINENO
1987# -----------------------
1988# Try to link conftest.$ac_ext, and return whether this succeeded.
1989ac_fn_c_try_link ()
1990{
1991  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992  rm -f conftest.$ac_objext conftest$ac_exeext
1993  if { { ac_try="$ac_link"
1994case "(($ac_try" in
1995  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1996  *) ac_try_echo=$ac_try;;
1997esac
1998eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1999$as_echo "$ac_try_echo"; } >&5
2000  (eval "$ac_link") 2>conftest.err
2001  ac_status=$?
2002  if test -s conftest.err; then
2003    grep -v '^ *+' conftest.err >conftest.er1
2004    cat conftest.er1 >&5
2005    mv -f conftest.er1 conftest.err
2006  fi
2007  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2008  test $ac_status = 0; } && {
2009	 test -z "$ac_c_werror_flag" ||
2010	 test ! -s conftest.err
2011       } && test -s conftest$ac_exeext && {
2012	 test "$cross_compiling" = yes ||
2013	 test -x conftest$ac_exeext
2014       }; then :
2015  ac_retval=0
2016else
2017  $as_echo "$as_me: failed program was:" >&5
2018sed 's/^/| /' conftest.$ac_ext >&5
2019
2020	ac_retval=1
2021fi
2022  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2023  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2024  # interfere with the next link command; also delete a directory that is
2025  # left behind by Apple's compiler.  We do this before executing the actions.
2026  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2027  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2028  as_fn_set_status $ac_retval
2029
2030} # ac_fn_c_try_link
2031
2032# ac_fn_cxx_try_link LINENO
2033# -------------------------
2034# Try to link conftest.$ac_ext, and return whether this succeeded.
2035ac_fn_cxx_try_link ()
2036{
2037  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2038  rm -f conftest.$ac_objext conftest$ac_exeext
2039  if { { ac_try="$ac_link"
2040case "(($ac_try" in
2041  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2042  *) ac_try_echo=$ac_try;;
2043esac
2044eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2045$as_echo "$ac_try_echo"; } >&5
2046  (eval "$ac_link") 2>conftest.err
2047  ac_status=$?
2048  if test -s conftest.err; then
2049    grep -v '^ *+' conftest.err >conftest.er1
2050    cat conftest.er1 >&5
2051    mv -f conftest.er1 conftest.err
2052  fi
2053  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2054  test $ac_status = 0; } && {
2055	 test -z "$ac_cxx_werror_flag" ||
2056	 test ! -s conftest.err
2057       } && test -s conftest$ac_exeext && {
2058	 test "$cross_compiling" = yes ||
2059	 test -x conftest$ac_exeext
2060       }; then :
2061  ac_retval=0
2062else
2063  $as_echo "$as_me: failed program was:" >&5
2064sed 's/^/| /' conftest.$ac_ext >&5
2065
2066	ac_retval=1
2067fi
2068  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2069  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2070  # interfere with the next link command; also delete a directory that is
2071  # left behind by Apple's compiler.  We do this before executing the actions.
2072  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2073  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2074  as_fn_set_status $ac_retval
2075
2076} # ac_fn_cxx_try_link
2077
2078# ac_fn_cxx_try_cpp LINENO
2079# ------------------------
2080# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2081ac_fn_cxx_try_cpp ()
2082{
2083  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2084  if { { ac_try="$ac_cpp conftest.$ac_ext"
2085case "(($ac_try" in
2086  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2087  *) ac_try_echo=$ac_try;;
2088esac
2089eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2090$as_echo "$ac_try_echo"; } >&5
2091  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2092  ac_status=$?
2093  if test -s conftest.err; then
2094    grep -v '^ *+' conftest.err >conftest.er1
2095    cat conftest.er1 >&5
2096    mv -f conftest.er1 conftest.err
2097  fi
2098  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2099  test $ac_status = 0; } > conftest.i && {
2100	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2101	 test ! -s conftest.err
2102       }; then :
2103  ac_retval=0
2104else
2105  $as_echo "$as_me: failed program was:" >&5
2106sed 's/^/| /' conftest.$ac_ext >&5
2107
2108    ac_retval=1
2109fi
2110  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2111  as_fn_set_status $ac_retval
2112
2113} # ac_fn_cxx_try_cpp
2114
2115# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2116# ---------------------------------------------------------
2117# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2118# the include files in INCLUDES and setting the cache variable VAR
2119# accordingly.
2120ac_fn_cxx_check_header_mongrel ()
2121{
2122  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2123  if eval \${$3+:} false; then :
2124  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2125$as_echo_n "checking for $2... " >&6; }
2126if eval \${$3+:} false; then :
2127  $as_echo_n "(cached) " >&6
2128fi
2129eval ac_res=\$$3
2130	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2131$as_echo "$ac_res" >&6; }
2132else
2133  # Is the header compilable?
2134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2135$as_echo_n "checking $2 usability... " >&6; }
2136cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2137/* end confdefs.h.  */
2138$4
2139#include <$2>
2140_ACEOF
2141if ac_fn_cxx_try_compile "$LINENO"; then :
2142  ac_header_compiler=yes
2143else
2144  ac_header_compiler=no
2145fi
2146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2148$as_echo "$ac_header_compiler" >&6; }
2149
2150# Is the header present?
2151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2152$as_echo_n "checking $2 presence... " >&6; }
2153cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2154/* end confdefs.h.  */
2155#include <$2>
2156_ACEOF
2157if ac_fn_cxx_try_cpp "$LINENO"; then :
2158  ac_header_preproc=yes
2159else
2160  ac_header_preproc=no
2161fi
2162rm -f conftest.err conftest.i conftest.$ac_ext
2163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2164$as_echo "$ac_header_preproc" >&6; }
2165
2166# So?  What about this header?
2167case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2168  yes:no: )
2169    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2170$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2171    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2172$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2173    ;;
2174  no:yes:* )
2175    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2176$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2177    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2178$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2179    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2180$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2181    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2182$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2183    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2184$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2185    ;;
2186esac
2187  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2188$as_echo_n "checking for $2... " >&6; }
2189if eval \${$3+:} false; then :
2190  $as_echo_n "(cached) " >&6
2191else
2192  eval "$3=\$ac_header_compiler"
2193fi
2194eval ac_res=\$$3
2195	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2196$as_echo "$ac_res" >&6; }
2197fi
2198  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2199
2200} # ac_fn_cxx_check_header_mongrel
2201
2202# ac_fn_cxx_check_func LINENO FUNC VAR
2203# ------------------------------------
2204# Tests whether FUNC exists, setting the cache variable VAR accordingly
2205ac_fn_cxx_check_func ()
2206{
2207  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2208  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2209$as_echo_n "checking for $2... " >&6; }
2210if eval \${$3+:} false; then :
2211  $as_echo_n "(cached) " >&6
2212else
2213  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2214/* end confdefs.h.  */
2215/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2216   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2217#define $2 innocuous_$2
2218
2219/* System header to define __stub macros and hopefully few prototypes,
2220    which can conflict with char $2 (); below.
2221    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2222    <limits.h> exists even on freestanding compilers.  */
2223
2224#ifdef __STDC__
2225# include <limits.h>
2226#else
2227# include <assert.h>
2228#endif
2229
2230#undef $2
2231
2232/* Override any GCC internal prototype to avoid an error.
2233   Use char because int might match the return type of a GCC
2234   builtin and then its argument prototype would still apply.  */
2235#ifdef __cplusplus
2236extern "C"
2237#endif
2238char $2 ();
2239/* The GNU C library defines this for functions which it implements
2240    to always fail with ENOSYS.  Some functions are actually named
2241    something starting with __ and the normal name is an alias.  */
2242#if defined __stub_$2 || defined __stub___$2
2243choke me
2244#endif
2245
2246int
2247main ()
2248{
2249return $2 ();
2250  ;
2251  return 0;
2252}
2253_ACEOF
2254if ac_fn_cxx_try_link "$LINENO"; then :
2255  eval "$3=yes"
2256else
2257  eval "$3=no"
2258fi
2259rm -f core conftest.err conftest.$ac_objext \
2260    conftest$ac_exeext conftest.$ac_ext
2261fi
2262eval ac_res=\$$3
2263	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2264$as_echo "$ac_res" >&6; }
2265  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2266
2267} # ac_fn_cxx_check_func
2268
2269# ac_fn_cxx_try_run LINENO
2270# ------------------------
2271# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2272# that executables *can* be run.
2273ac_fn_cxx_try_run ()
2274{
2275  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2276  if { { ac_try="$ac_link"
2277case "(($ac_try" in
2278  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2279  *) ac_try_echo=$ac_try;;
2280esac
2281eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2282$as_echo "$ac_try_echo"; } >&5
2283  (eval "$ac_link") 2>&5
2284  ac_status=$?
2285  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2286  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2287  { { case "(($ac_try" in
2288  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2289  *) ac_try_echo=$ac_try;;
2290esac
2291eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2292$as_echo "$ac_try_echo"; } >&5
2293  (eval "$ac_try") 2>&5
2294  ac_status=$?
2295  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2296  test $ac_status = 0; }; }; then :
2297  ac_retval=0
2298else
2299  $as_echo "$as_me: program exited with status $ac_status" >&5
2300       $as_echo "$as_me: failed program was:" >&5
2301sed 's/^/| /' conftest.$ac_ext >&5
2302
2303       ac_retval=$ac_status
2304fi
2305  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2306  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2307  as_fn_set_status $ac_retval
2308
2309} # ac_fn_cxx_try_run
2310cat >config.log <<_ACEOF
2311This file contains any messages produced by compilers while
2312running configure, to aid debugging if configure makes a mistake.
2313
2314It was created by Aegisub $as_me aegisub_version, which was
2315generated by GNU Autoconf 2.69.  Invocation command line was
2316
2317  $ $0 $@
2318
2319_ACEOF
2320exec 5>>config.log
2321{
2322cat <<_ASUNAME
2323## --------- ##
2324## Platform. ##
2325## --------- ##
2326
2327hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2328uname -m = `(uname -m) 2>/dev/null || echo unknown`
2329uname -r = `(uname -r) 2>/dev/null || echo unknown`
2330uname -s = `(uname -s) 2>/dev/null || echo unknown`
2331uname -v = `(uname -v) 2>/dev/null || echo unknown`
2332
2333/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2334/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2335
2336/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2337/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2338/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2339/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2340/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2341/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2342/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2343
2344_ASUNAME
2345
2346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347for as_dir in $PATH
2348do
2349  IFS=$as_save_IFS
2350  test -z "$as_dir" && as_dir=.
2351    $as_echo "PATH: $as_dir"
2352  done
2353IFS=$as_save_IFS
2354
2355} >&5
2356
2357cat >&5 <<_ACEOF
2358
2359
2360## ----------- ##
2361## Core tests. ##
2362## ----------- ##
2363
2364_ACEOF
2365
2366
2367# Keep a trace of the command line.
2368# Strip out --no-create and --no-recursion so they do not pile up.
2369# Strip out --silent because we don't want to record it for future runs.
2370# Also quote any args containing shell meta-characters.
2371# Make two passes to allow for proper duplicate-argument suppression.
2372ac_configure_args=
2373ac_configure_args0=
2374ac_configure_args1=
2375ac_must_keep_next=false
2376for ac_pass in 1 2
2377do
2378  for ac_arg
2379  do
2380    case $ac_arg in
2381    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2382    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2383    | -silent | --silent | --silen | --sile | --sil)
2384      continue ;;
2385    *\'*)
2386      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2387    esac
2388    case $ac_pass in
2389    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2390    2)
2391      as_fn_append ac_configure_args1 " '$ac_arg'"
2392      if test $ac_must_keep_next = true; then
2393	ac_must_keep_next=false # Got value, back to normal.
2394      else
2395	case $ac_arg in
2396	  *=* | --config-cache | -C | -disable-* | --disable-* \
2397	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2398	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2399	  | -with-* | --with-* | -without-* | --without-* | --x)
2400	    case "$ac_configure_args0 " in
2401	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2402	    esac
2403	    ;;
2404	  -* ) ac_must_keep_next=true ;;
2405	esac
2406      fi
2407      as_fn_append ac_configure_args " '$ac_arg'"
2408      ;;
2409    esac
2410  done
2411done
2412{ ac_configure_args0=; unset ac_configure_args0;}
2413{ ac_configure_args1=; unset ac_configure_args1;}
2414
2415# When interrupted or exit'd, cleanup temporary files, and complete
2416# config.log.  We remove comments because anyway the quotes in there
2417# would cause problems or look ugly.
2418# WARNING: Use '\'' to represent an apostrophe within the trap.
2419# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2420trap 'exit_status=$?
2421  # Save into config.log some information that might help in debugging.
2422  {
2423    echo
2424
2425    $as_echo "## ---------------- ##
2426## Cache variables. ##
2427## ---------------- ##"
2428    echo
2429    # The following way of writing the cache mishandles newlines in values,
2430(
2431  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2432    eval ac_val=\$$ac_var
2433    case $ac_val in #(
2434    *${as_nl}*)
2435      case $ac_var in #(
2436      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2437$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2438      esac
2439      case $ac_var in #(
2440      _ | IFS | as_nl) ;; #(
2441      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2442      *) { eval $ac_var=; unset $ac_var;} ;;
2443      esac ;;
2444    esac
2445  done
2446  (set) 2>&1 |
2447    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2448    *${as_nl}ac_space=\ *)
2449      sed -n \
2450	"s/'\''/'\''\\\\'\'''\''/g;
2451	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2452      ;; #(
2453    *)
2454      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2455      ;;
2456    esac |
2457    sort
2458)
2459    echo
2460
2461    $as_echo "## ----------------- ##
2462## Output variables. ##
2463## ----------------- ##"
2464    echo
2465    for ac_var in $ac_subst_vars
2466    do
2467      eval ac_val=\$$ac_var
2468      case $ac_val in
2469      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2470      esac
2471      $as_echo "$ac_var='\''$ac_val'\''"
2472    done | sort
2473    echo
2474
2475    if test -n "$ac_subst_files"; then
2476      $as_echo "## ------------------- ##
2477## File substitutions. ##
2478## ------------------- ##"
2479      echo
2480      for ac_var in $ac_subst_files
2481      do
2482	eval ac_val=\$$ac_var
2483	case $ac_val in
2484	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2485	esac
2486	$as_echo "$ac_var='\''$ac_val'\''"
2487      done | sort
2488      echo
2489    fi
2490
2491    if test -s confdefs.h; then
2492      $as_echo "## ----------- ##
2493## confdefs.h. ##
2494## ----------- ##"
2495      echo
2496      cat confdefs.h
2497      echo
2498    fi
2499    test "$ac_signal" != 0 &&
2500      $as_echo "$as_me: caught signal $ac_signal"
2501    $as_echo "$as_me: exit $exit_status"
2502  } >&5
2503  rm -f core *.core core.conftest.* &&
2504    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2505    exit $exit_status
2506' 0
2507for ac_signal in 1 2 13 15; do
2508  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2509done
2510ac_signal=0
2511
2512# confdefs.h avoids OS command line length limits that DEFS can exceed.
2513rm -f -r conftest* confdefs.h
2514
2515$as_echo "/* confdefs.h */" > confdefs.h
2516
2517# Predefined preprocessor variables.
2518
2519cat >>confdefs.h <<_ACEOF
2520#define PACKAGE_NAME "$PACKAGE_NAME"
2521_ACEOF
2522
2523cat >>confdefs.h <<_ACEOF
2524#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2525_ACEOF
2526
2527cat >>confdefs.h <<_ACEOF
2528#define PACKAGE_VERSION "$PACKAGE_VERSION"
2529_ACEOF
2530
2531cat >>confdefs.h <<_ACEOF
2532#define PACKAGE_STRING "$PACKAGE_STRING"
2533_ACEOF
2534
2535cat >>confdefs.h <<_ACEOF
2536#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2537_ACEOF
2538
2539cat >>confdefs.h <<_ACEOF
2540#define PACKAGE_URL "$PACKAGE_URL"
2541_ACEOF
2542
2543
2544# Let the site file select an alternate cache file if it wants to.
2545# Prefer an explicitly selected file to automatically selected ones.
2546ac_site_file1=NONE
2547ac_site_file2=NONE
2548if test -n "$CONFIG_SITE"; then
2549  # We do not want a PATH search for config.site.
2550  case $CONFIG_SITE in #((
2551    -*)  ac_site_file1=./$CONFIG_SITE;;
2552    */*) ac_site_file1=$CONFIG_SITE;;
2553    *)   ac_site_file1=./$CONFIG_SITE;;
2554  esac
2555elif test "x$prefix" != xNONE; then
2556  ac_site_file1=$prefix/share/config.site
2557  ac_site_file2=$prefix/etc/config.site
2558else
2559  ac_site_file1=$ac_default_prefix/share/config.site
2560  ac_site_file2=$ac_default_prefix/etc/config.site
2561fi
2562for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2563do
2564  test "x$ac_site_file" = xNONE && continue
2565  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2566    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2567$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2568    sed 's/^/| /' "$ac_site_file" >&5
2569    . "$ac_site_file" \
2570      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2571$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2572as_fn_error $? "failed to load site script $ac_site_file
2573See \`config.log' for more details" "$LINENO" 5; }
2574  fi
2575done
2576
2577if test -r "$cache_file"; then
2578  # Some versions of bash will fail to source /dev/null (special files
2579  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2580  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2581    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2582$as_echo "$as_me: loading cache $cache_file" >&6;}
2583    case $cache_file in
2584      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2585      *)                      . "./$cache_file";;
2586    esac
2587  fi
2588else
2589  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2590$as_echo "$as_me: creating cache $cache_file" >&6;}
2591  >$cache_file
2592fi
2593
2594gt_needs="$gt_needs "
2595# Check that the precious variables saved in the cache have kept the same
2596# value.
2597ac_cache_corrupted=false
2598for ac_var in $ac_precious_vars; do
2599  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2600  eval ac_new_set=\$ac_env_${ac_var}_set
2601  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2602  eval ac_new_val=\$ac_env_${ac_var}_value
2603  case $ac_old_set,$ac_new_set in
2604    set,)
2605      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2606$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2607      ac_cache_corrupted=: ;;
2608    ,set)
2609      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2610$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2611      ac_cache_corrupted=: ;;
2612    ,);;
2613    *)
2614      if test "x$ac_old_val" != "x$ac_new_val"; then
2615	# differences in whitespace do not lead to failure.
2616	ac_old_val_w=`echo x $ac_old_val`
2617	ac_new_val_w=`echo x $ac_new_val`
2618	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2619	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2620$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2621	  ac_cache_corrupted=:
2622	else
2623	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2624$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2625	  eval $ac_var=\$ac_old_val
2626	fi
2627	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2628$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2629	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2630$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2631      fi;;
2632  esac
2633  # Pass precious variables to config.status.
2634  if test "$ac_new_set" = set; then
2635    case $ac_new_val in
2636    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2637    *) ac_arg=$ac_var=$ac_new_val ;;
2638    esac
2639    case " $ac_configure_args " in
2640      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2641      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2642    esac
2643  fi
2644done
2645if $ac_cache_corrupted; then
2646  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2647$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2648  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2649$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2650  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2651fi
2652## -------------------- ##
2653## Main body of script. ##
2654## -------------------- ##
2655
2656ac_ext=c
2657ac_cpp='$CPP $CPPFLAGS'
2658ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2659ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2660ac_compiler_gnu=$ac_cv_c_compiler_gnu
2661
2662
2663: ${CFLAGS=""}
2664: ${CXXFLAGS=""}
2665
2666ac_config_headers="$ac_config_headers acconf.h"
2667
2668ac_ext=c
2669ac_cpp='$CPP $CPPFLAGS'
2670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2672ac_compiler_gnu=$ac_cv_c_compiler_gnu
2673if test -n "$ac_tool_prefix"; then
2674  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2675set dummy ${ac_tool_prefix}gcc; ac_word=$2
2676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2677$as_echo_n "checking for $ac_word... " >&6; }
2678if ${ac_cv_prog_CC+:} false; then :
2679  $as_echo_n "(cached) " >&6
2680else
2681  if test -n "$CC"; then
2682  ac_cv_prog_CC="$CC" # Let the user override the test.
2683else
2684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685for as_dir in $PATH
2686do
2687  IFS=$as_save_IFS
2688  test -z "$as_dir" && as_dir=.
2689    for ac_exec_ext in '' $ac_executable_extensions; do
2690  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2691    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2692    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2693    break 2
2694  fi
2695done
2696  done
2697IFS=$as_save_IFS
2698
2699fi
2700fi
2701CC=$ac_cv_prog_CC
2702if test -n "$CC"; then
2703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2704$as_echo "$CC" >&6; }
2705else
2706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2707$as_echo "no" >&6; }
2708fi
2709
2710
2711fi
2712if test -z "$ac_cv_prog_CC"; then
2713  ac_ct_CC=$CC
2714  # Extract the first word of "gcc", so it can be a program name with args.
2715set dummy gcc; ac_word=$2
2716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2717$as_echo_n "checking for $ac_word... " >&6; }
2718if ${ac_cv_prog_ac_ct_CC+:} false; then :
2719  $as_echo_n "(cached) " >&6
2720else
2721  if test -n "$ac_ct_CC"; then
2722  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2723else
2724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2725for as_dir in $PATH
2726do
2727  IFS=$as_save_IFS
2728  test -z "$as_dir" && as_dir=.
2729    for ac_exec_ext in '' $ac_executable_extensions; do
2730  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2731    ac_cv_prog_ac_ct_CC="gcc"
2732    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2733    break 2
2734  fi
2735done
2736  done
2737IFS=$as_save_IFS
2738
2739fi
2740fi
2741ac_ct_CC=$ac_cv_prog_ac_ct_CC
2742if test -n "$ac_ct_CC"; then
2743  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2744$as_echo "$ac_ct_CC" >&6; }
2745else
2746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2747$as_echo "no" >&6; }
2748fi
2749
2750  if test "x$ac_ct_CC" = x; then
2751    CC=""
2752  else
2753    case $cross_compiling:$ac_tool_warned in
2754yes:)
2755{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2756$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2757ac_tool_warned=yes ;;
2758esac
2759    CC=$ac_ct_CC
2760  fi
2761else
2762  CC="$ac_cv_prog_CC"
2763fi
2764
2765if test -z "$CC"; then
2766          if test -n "$ac_tool_prefix"; then
2767    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2768set dummy ${ac_tool_prefix}cc; ac_word=$2
2769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2770$as_echo_n "checking for $ac_word... " >&6; }
2771if ${ac_cv_prog_CC+:} false; then :
2772  $as_echo_n "(cached) " >&6
2773else
2774  if test -n "$CC"; then
2775  ac_cv_prog_CC="$CC" # Let the user override the test.
2776else
2777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778for as_dir in $PATH
2779do
2780  IFS=$as_save_IFS
2781  test -z "$as_dir" && as_dir=.
2782    for ac_exec_ext in '' $ac_executable_extensions; do
2783  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2784    ac_cv_prog_CC="${ac_tool_prefix}cc"
2785    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2786    break 2
2787  fi
2788done
2789  done
2790IFS=$as_save_IFS
2791
2792fi
2793fi
2794CC=$ac_cv_prog_CC
2795if test -n "$CC"; then
2796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2797$as_echo "$CC" >&6; }
2798else
2799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2800$as_echo "no" >&6; }
2801fi
2802
2803
2804  fi
2805fi
2806if test -z "$CC"; then
2807  # Extract the first word of "cc", so it can be a program name with args.
2808set dummy cc; ac_word=$2
2809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2810$as_echo_n "checking for $ac_word... " >&6; }
2811if ${ac_cv_prog_CC+:} false; then :
2812  $as_echo_n "(cached) " >&6
2813else
2814  if test -n "$CC"; then
2815  ac_cv_prog_CC="$CC" # Let the user override the test.
2816else
2817  ac_prog_rejected=no
2818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819for as_dir in $PATH
2820do
2821  IFS=$as_save_IFS
2822  test -z "$as_dir" && as_dir=.
2823    for ac_exec_ext in '' $ac_executable_extensions; do
2824  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2825    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2826       ac_prog_rejected=yes
2827       continue
2828     fi
2829    ac_cv_prog_CC="cc"
2830    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2831    break 2
2832  fi
2833done
2834  done
2835IFS=$as_save_IFS
2836
2837if test $ac_prog_rejected = yes; then
2838  # We found a bogon in the path, so make sure we never use it.
2839  set dummy $ac_cv_prog_CC
2840  shift
2841  if test $# != 0; then
2842    # We chose a different compiler from the bogus one.
2843    # However, it has the same basename, so the bogon will be chosen
2844    # first if we set CC to just the basename; use the full file name.
2845    shift
2846    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2847  fi
2848fi
2849fi
2850fi
2851CC=$ac_cv_prog_CC
2852if test -n "$CC"; then
2853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2854$as_echo "$CC" >&6; }
2855else
2856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2857$as_echo "no" >&6; }
2858fi
2859
2860
2861fi
2862if test -z "$CC"; then
2863  if test -n "$ac_tool_prefix"; then
2864  for ac_prog in cl.exe
2865  do
2866    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2867set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2869$as_echo_n "checking for $ac_word... " >&6; }
2870if ${ac_cv_prog_CC+:} false; then :
2871  $as_echo_n "(cached) " >&6
2872else
2873  if test -n "$CC"; then
2874  ac_cv_prog_CC="$CC" # Let the user override the test.
2875else
2876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877for as_dir in $PATH
2878do
2879  IFS=$as_save_IFS
2880  test -z "$as_dir" && as_dir=.
2881    for ac_exec_ext in '' $ac_executable_extensions; do
2882  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2883    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2884    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2885    break 2
2886  fi
2887done
2888  done
2889IFS=$as_save_IFS
2890
2891fi
2892fi
2893CC=$ac_cv_prog_CC
2894if test -n "$CC"; then
2895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2896$as_echo "$CC" >&6; }
2897else
2898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2899$as_echo "no" >&6; }
2900fi
2901
2902
2903    test -n "$CC" && break
2904  done
2905fi
2906if test -z "$CC"; then
2907  ac_ct_CC=$CC
2908  for ac_prog in cl.exe
2909do
2910  # Extract the first word of "$ac_prog", so it can be a program name with args.
2911set dummy $ac_prog; ac_word=$2
2912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2913$as_echo_n "checking for $ac_word... " >&6; }
2914if ${ac_cv_prog_ac_ct_CC+:} false; then :
2915  $as_echo_n "(cached) " >&6
2916else
2917  if test -n "$ac_ct_CC"; then
2918  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2919else
2920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921for as_dir in $PATH
2922do
2923  IFS=$as_save_IFS
2924  test -z "$as_dir" && as_dir=.
2925    for ac_exec_ext in '' $ac_executable_extensions; do
2926  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2927    ac_cv_prog_ac_ct_CC="$ac_prog"
2928    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2929    break 2
2930  fi
2931done
2932  done
2933IFS=$as_save_IFS
2934
2935fi
2936fi
2937ac_ct_CC=$ac_cv_prog_ac_ct_CC
2938if test -n "$ac_ct_CC"; then
2939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2940$as_echo "$ac_ct_CC" >&6; }
2941else
2942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2943$as_echo "no" >&6; }
2944fi
2945
2946
2947  test -n "$ac_ct_CC" && break
2948done
2949
2950  if test "x$ac_ct_CC" = x; then
2951    CC=""
2952  else
2953    case $cross_compiling:$ac_tool_warned in
2954yes:)
2955{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2956$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2957ac_tool_warned=yes ;;
2958esac
2959    CC=$ac_ct_CC
2960  fi
2961fi
2962
2963fi
2964
2965
2966test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2967$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2968as_fn_error $? "no acceptable C compiler found in \$PATH
2969See \`config.log' for more details" "$LINENO" 5; }
2970
2971# Provide some information about the compiler.
2972$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2973set X $ac_compile
2974ac_compiler=$2
2975for ac_option in --version -v -V -qversion; do
2976  { { ac_try="$ac_compiler $ac_option >&5"
2977case "(($ac_try" in
2978  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979  *) ac_try_echo=$ac_try;;
2980esac
2981eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2982$as_echo "$ac_try_echo"; } >&5
2983  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2984  ac_status=$?
2985  if test -s conftest.err; then
2986    sed '10a\
2987... rest of stderr output deleted ...
2988         10q' conftest.err >conftest.er1
2989    cat conftest.er1 >&5
2990  fi
2991  rm -f conftest.er1 conftest.err
2992  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2993  test $ac_status = 0; }
2994done
2995
2996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2997/* end confdefs.h.  */
2998
2999int
3000main ()
3001{
3002
3003  ;
3004  return 0;
3005}
3006_ACEOF
3007ac_clean_files_save=$ac_clean_files
3008ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3009# Try to create an executable without -o first, disregard a.out.
3010# It will help us diagnose broken compilers, and finding out an intuition
3011# of exeext.
3012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3013$as_echo_n "checking whether the C compiler works... " >&6; }
3014ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3015
3016# The possible output files:
3017ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3018
3019ac_rmfiles=
3020for ac_file in $ac_files
3021do
3022  case $ac_file in
3023    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3024    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3025  esac
3026done
3027rm -f $ac_rmfiles
3028
3029if { { ac_try="$ac_link_default"
3030case "(($ac_try" in
3031  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032  *) ac_try_echo=$ac_try;;
3033esac
3034eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3035$as_echo "$ac_try_echo"; } >&5
3036  (eval "$ac_link_default") 2>&5
3037  ac_status=$?
3038  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3039  test $ac_status = 0; }; then :
3040  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3041# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3042# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3043# so that the user can short-circuit this test for compilers unknown to
3044# Autoconf.
3045for ac_file in $ac_files ''
3046do
3047  test -f "$ac_file" || continue
3048  case $ac_file in
3049    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3050	;;
3051    [ab].out )
3052	# We found the default executable, but exeext='' is most
3053	# certainly right.
3054	break;;
3055    *.* )
3056	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3057	then :; else
3058	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3059	fi
3060	# We set ac_cv_exeext here because the later test for it is not
3061	# safe: cross compilers may not add the suffix if given an `-o'
3062	# argument, so we may need to know it at that point already.
3063	# Even if this section looks crufty: it has the advantage of
3064	# actually working.
3065	break;;
3066    * )
3067	break;;
3068  esac
3069done
3070test "$ac_cv_exeext" = no && ac_cv_exeext=
3071
3072else
3073  ac_file=''
3074fi
3075if test -z "$ac_file"; then :
3076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077$as_echo "no" >&6; }
3078$as_echo "$as_me: failed program was:" >&5
3079sed 's/^/| /' conftest.$ac_ext >&5
3080
3081{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3082$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3083as_fn_error 77 "C compiler cannot create executables
3084See \`config.log' for more details" "$LINENO" 5; }
3085else
3086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3087$as_echo "yes" >&6; }
3088fi
3089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3090$as_echo_n "checking for C compiler default output file name... " >&6; }
3091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3092$as_echo "$ac_file" >&6; }
3093ac_exeext=$ac_cv_exeext
3094
3095rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3096ac_clean_files=$ac_clean_files_save
3097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3098$as_echo_n "checking for suffix of executables... " >&6; }
3099if { { ac_try="$ac_link"
3100case "(($ac_try" in
3101  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102  *) ac_try_echo=$ac_try;;
3103esac
3104eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3105$as_echo "$ac_try_echo"; } >&5
3106  (eval "$ac_link") 2>&5
3107  ac_status=$?
3108  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3109  test $ac_status = 0; }; then :
3110  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3111# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3112# work properly (i.e., refer to `conftest.exe'), while it won't with
3113# `rm'.
3114for ac_file in conftest.exe conftest conftest.*; do
3115  test -f "$ac_file" || continue
3116  case $ac_file in
3117    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3118    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3119	  break;;
3120    * ) break;;
3121  esac
3122done
3123else
3124  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3125$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3126as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3127See \`config.log' for more details" "$LINENO" 5; }
3128fi
3129rm -f conftest conftest$ac_cv_exeext
3130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3131$as_echo "$ac_cv_exeext" >&6; }
3132
3133rm -f conftest.$ac_ext
3134EXEEXT=$ac_cv_exeext
3135ac_exeext=$EXEEXT
3136cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3137/* end confdefs.h.  */
3138#include <stdio.h>
3139int
3140main ()
3141{
3142FILE *f = fopen ("conftest.out", "w");
3143 return ferror (f) || fclose (f) != 0;
3144
3145  ;
3146  return 0;
3147}
3148_ACEOF
3149ac_clean_files="$ac_clean_files conftest.out"
3150# Check that the compiler produces executables we can run.  If not, either
3151# the compiler is broken, or we cross compile.
3152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3153$as_echo_n "checking whether we are cross compiling... " >&6; }
3154if test "$cross_compiling" != yes; then
3155  { { ac_try="$ac_link"
3156case "(($ac_try" in
3157  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158  *) ac_try_echo=$ac_try;;
3159esac
3160eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3161$as_echo "$ac_try_echo"; } >&5
3162  (eval "$ac_link") 2>&5
3163  ac_status=$?
3164  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3165  test $ac_status = 0; }
3166  if { ac_try='./conftest$ac_cv_exeext'
3167  { { case "(($ac_try" in
3168  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169  *) ac_try_echo=$ac_try;;
3170esac
3171eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3172$as_echo "$ac_try_echo"; } >&5
3173  (eval "$ac_try") 2>&5
3174  ac_status=$?
3175  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3176  test $ac_status = 0; }; }; then
3177    cross_compiling=no
3178  else
3179    if test "$cross_compiling" = maybe; then
3180	cross_compiling=yes
3181    else
3182	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3183$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3184as_fn_error $? "cannot run C compiled programs.
3185If you meant to cross compile, use \`--host'.
3186See \`config.log' for more details" "$LINENO" 5; }
3187    fi
3188  fi
3189fi
3190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3191$as_echo "$cross_compiling" >&6; }
3192
3193rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3194ac_clean_files=$ac_clean_files_save
3195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3196$as_echo_n "checking for suffix of object files... " >&6; }
3197if ${ac_cv_objext+:} false; then :
3198  $as_echo_n "(cached) " >&6
3199else
3200  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3201/* end confdefs.h.  */
3202
3203int
3204main ()
3205{
3206
3207  ;
3208  return 0;
3209}
3210_ACEOF
3211rm -f conftest.o conftest.obj
3212if { { ac_try="$ac_compile"
3213case "(($ac_try" in
3214  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215  *) ac_try_echo=$ac_try;;
3216esac
3217eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3218$as_echo "$ac_try_echo"; } >&5
3219  (eval "$ac_compile") 2>&5
3220  ac_status=$?
3221  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3222  test $ac_status = 0; }; then :
3223  for ac_file in conftest.o conftest.obj conftest.*; do
3224  test -f "$ac_file" || continue;
3225  case $ac_file in
3226    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3227    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3228       break;;
3229  esac
3230done
3231else
3232  $as_echo "$as_me: failed program was:" >&5
3233sed 's/^/| /' conftest.$ac_ext >&5
3234
3235{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3236$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3237as_fn_error $? "cannot compute suffix of object files: cannot compile
3238See \`config.log' for more details" "$LINENO" 5; }
3239fi
3240rm -f conftest.$ac_cv_objext conftest.$ac_ext
3241fi
3242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3243$as_echo "$ac_cv_objext" >&6; }
3244OBJEXT=$ac_cv_objext
3245ac_objext=$OBJEXT
3246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3247$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3248if ${ac_cv_c_compiler_gnu+:} false; then :
3249  $as_echo_n "(cached) " >&6
3250else
3251  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3252/* end confdefs.h.  */
3253
3254int
3255main ()
3256{
3257#ifndef __GNUC__
3258       choke me
3259#endif
3260
3261  ;
3262  return 0;
3263}
3264_ACEOF
3265if ac_fn_c_try_compile "$LINENO"; then :
3266  ac_compiler_gnu=yes
3267else
3268  ac_compiler_gnu=no
3269fi
3270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3271ac_cv_c_compiler_gnu=$ac_compiler_gnu
3272
3273fi
3274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3275$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3276if test $ac_compiler_gnu = yes; then
3277  GCC=yes
3278else
3279  GCC=
3280fi
3281ac_test_CFLAGS=${CFLAGS+set}
3282ac_save_CFLAGS=$CFLAGS
3283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3284$as_echo_n "checking whether $CC accepts -g... " >&6; }
3285if ${ac_cv_prog_cc_g+:} false; then :
3286  $as_echo_n "(cached) " >&6
3287else
3288  ac_save_c_werror_flag=$ac_c_werror_flag
3289   ac_c_werror_flag=yes
3290   ac_cv_prog_cc_g=no
3291   CFLAGS="-g"
3292   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3293/* end confdefs.h.  */
3294
3295int
3296main ()
3297{
3298
3299  ;
3300  return 0;
3301}
3302_ACEOF
3303if ac_fn_c_try_compile "$LINENO"; then :
3304  ac_cv_prog_cc_g=yes
3305else
3306  CFLAGS=""
3307      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3308/* end confdefs.h.  */
3309
3310int
3311main ()
3312{
3313
3314  ;
3315  return 0;
3316}
3317_ACEOF
3318if ac_fn_c_try_compile "$LINENO"; then :
3319
3320else
3321  ac_c_werror_flag=$ac_save_c_werror_flag
3322	 CFLAGS="-g"
3323	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3324/* end confdefs.h.  */
3325
3326int
3327main ()
3328{
3329
3330  ;
3331  return 0;
3332}
3333_ACEOF
3334if ac_fn_c_try_compile "$LINENO"; then :
3335  ac_cv_prog_cc_g=yes
3336fi
3337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3338fi
3339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3340fi
3341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3342   ac_c_werror_flag=$ac_save_c_werror_flag
3343fi
3344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3345$as_echo "$ac_cv_prog_cc_g" >&6; }
3346if test "$ac_test_CFLAGS" = set; then
3347  CFLAGS=$ac_save_CFLAGS
3348elif test $ac_cv_prog_cc_g = yes; then
3349  if test "$GCC" = yes; then
3350    CFLAGS="-g -O2"
3351  else
3352    CFLAGS="-g"
3353  fi
3354else
3355  if test "$GCC" = yes; then
3356    CFLAGS="-O2"
3357  else
3358    CFLAGS=
3359  fi
3360fi
3361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3362$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3363if ${ac_cv_prog_cc_c89+:} false; then :
3364  $as_echo_n "(cached) " >&6
3365else
3366  ac_cv_prog_cc_c89=no
3367ac_save_CC=$CC
3368cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3369/* end confdefs.h.  */
3370#include <stdarg.h>
3371#include <stdio.h>
3372struct stat;
3373/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3374struct buf { int x; };
3375FILE * (*rcsopen) (struct buf *, struct stat *, int);
3376static char *e (p, i)
3377     char **p;
3378     int i;
3379{
3380  return p[i];
3381}
3382static char *f (char * (*g) (char **, int), char **p, ...)
3383{
3384  char *s;
3385  va_list v;
3386  va_start (v,p);
3387  s = g (p, va_arg (v,int));
3388  va_end (v);
3389  return s;
3390}
3391
3392/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3393   function prototypes and stuff, but not '\xHH' hex character constants.
3394   These don't provoke an error unfortunately, instead are silently treated
3395   as 'x'.  The following induces an error, until -std is added to get
3396   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3397   array size at least.  It's necessary to write '\x00'==0 to get something
3398   that's true only with -std.  */
3399int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3400
3401/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3402   inside strings and character constants.  */
3403#define FOO(x) 'x'
3404int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3405
3406int test (int i, double x);
3407struct s1 {int (*f) (int a);};
3408struct s2 {int (*f) (double a);};
3409int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3410int argc;
3411char **argv;
3412int
3413main ()
3414{
3415return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3416  ;
3417  return 0;
3418}
3419_ACEOF
3420for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3421	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3422do
3423  CC="$ac_save_CC $ac_arg"
3424  if ac_fn_c_try_compile "$LINENO"; then :
3425  ac_cv_prog_cc_c89=$ac_arg
3426fi
3427rm -f core conftest.err conftest.$ac_objext
3428  test "x$ac_cv_prog_cc_c89" != "xno" && break
3429done
3430rm -f conftest.$ac_ext
3431CC=$ac_save_CC
3432
3433fi
3434# AC_CACHE_VAL
3435case "x$ac_cv_prog_cc_c89" in
3436  x)
3437    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3438$as_echo "none needed" >&6; } ;;
3439  xno)
3440    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3441$as_echo "unsupported" >&6; } ;;
3442  *)
3443    CC="$CC $ac_cv_prog_cc_c89"
3444    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3445$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3446esac
3447if test "x$ac_cv_prog_cc_c89" != xno; then :
3448
3449fi
3450
3451ac_ext=c
3452ac_cpp='$CPP $CPPFLAGS'
3453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3455ac_compiler_gnu=$ac_cv_c_compiler_gnu
3456
3457
3458ac_ext=c
3459ac_cpp='$CPP $CPPFLAGS'
3460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3462ac_compiler_gnu=$ac_cv_c_compiler_gnu
3463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3464$as_echo_n "checking how to run the C preprocessor... " >&6; }
3465# On Suns, sometimes $CPP names a directory.
3466if test -n "$CPP" && test -d "$CPP"; then
3467  CPP=
3468fi
3469if test -z "$CPP"; then
3470  if ${ac_cv_prog_CPP+:} false; then :
3471  $as_echo_n "(cached) " >&6
3472else
3473      # Double quotes because CPP needs to be expanded
3474    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3475    do
3476      ac_preproc_ok=false
3477for ac_c_preproc_warn_flag in '' yes
3478do
3479  # Use a header file that comes with gcc, so configuring glibc
3480  # with a fresh cross-compiler works.
3481  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3482  # <limits.h> exists even on freestanding compilers.
3483  # On the NeXT, cc -E runs the code through the compiler's parser,
3484  # not just through cpp. "Syntax error" is here to catch this case.
3485  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3486/* end confdefs.h.  */
3487#ifdef __STDC__
3488# include <limits.h>
3489#else
3490# include <assert.h>
3491#endif
3492		     Syntax error
3493_ACEOF
3494if ac_fn_c_try_cpp "$LINENO"; then :
3495
3496else
3497  # Broken: fails on valid input.
3498continue
3499fi
3500rm -f conftest.err conftest.i conftest.$ac_ext
3501
3502  # OK, works on sane cases.  Now check whether nonexistent headers
3503  # can be detected and how.
3504  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3505/* end confdefs.h.  */
3506#include <ac_nonexistent.h>
3507_ACEOF
3508if ac_fn_c_try_cpp "$LINENO"; then :
3509  # Broken: success on invalid input.
3510continue
3511else
3512  # Passes both tests.
3513ac_preproc_ok=:
3514break
3515fi
3516rm -f conftest.err conftest.i conftest.$ac_ext
3517
3518done
3519# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3520rm -f conftest.i conftest.err conftest.$ac_ext
3521if $ac_preproc_ok; then :
3522  break
3523fi
3524
3525    done
3526    ac_cv_prog_CPP=$CPP
3527
3528fi
3529  CPP=$ac_cv_prog_CPP
3530else
3531  ac_cv_prog_CPP=$CPP
3532fi
3533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3534$as_echo "$CPP" >&6; }
3535ac_preproc_ok=false
3536for ac_c_preproc_warn_flag in '' yes
3537do
3538  # Use a header file that comes with gcc, so configuring glibc
3539  # with a fresh cross-compiler works.
3540  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3541  # <limits.h> exists even on freestanding compilers.
3542  # On the NeXT, cc -E runs the code through the compiler's parser,
3543  # not just through cpp. "Syntax error" is here to catch this case.
3544  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3545/* end confdefs.h.  */
3546#ifdef __STDC__
3547# include <limits.h>
3548#else
3549# include <assert.h>
3550#endif
3551		     Syntax error
3552_ACEOF
3553if ac_fn_c_try_cpp "$LINENO"; then :
3554
3555else
3556  # Broken: fails on valid input.
3557continue
3558fi
3559rm -f conftest.err conftest.i conftest.$ac_ext
3560
3561  # OK, works on sane cases.  Now check whether nonexistent headers
3562  # can be detected and how.
3563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564/* end confdefs.h.  */
3565#include <ac_nonexistent.h>
3566_ACEOF
3567if ac_fn_c_try_cpp "$LINENO"; then :
3568  # Broken: success on invalid input.
3569continue
3570else
3571  # Passes both tests.
3572ac_preproc_ok=:
3573break
3574fi
3575rm -f conftest.err conftest.i conftest.$ac_ext
3576
3577done
3578# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3579rm -f conftest.i conftest.err conftest.$ac_ext
3580if $ac_preproc_ok; then :
3581
3582else
3583  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3584$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3585as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3586See \`config.log' for more details" "$LINENO" 5; }
3587fi
3588
3589ac_ext=c
3590ac_cpp='$CPP $CPPFLAGS'
3591ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3592ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3593ac_compiler_gnu=$ac_cv_c_compiler_gnu
3594
3595
3596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3597$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3598if ${ac_cv_path_GREP+:} false; then :
3599  $as_echo_n "(cached) " >&6
3600else
3601  if test -z "$GREP"; then
3602  ac_path_GREP_found=false
3603  # Loop through the user's path and test for each of PROGNAME-LIST
3604  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3605for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3606do
3607  IFS=$as_save_IFS
3608  test -z "$as_dir" && as_dir=.
3609    for ac_prog in grep ggrep; do
3610    for ac_exec_ext in '' $ac_executable_extensions; do
3611      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3612      as_fn_executable_p "$ac_path_GREP" || continue
3613# Check for GNU ac_path_GREP and select it if it is found.
3614  # Check for GNU $ac_path_GREP
3615case `"$ac_path_GREP" --version 2>&1` in
3616*GNU*)
3617  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3618*)
3619  ac_count=0
3620  $as_echo_n 0123456789 >"conftest.in"
3621  while :
3622  do
3623    cat "conftest.in" "conftest.in" >"conftest.tmp"
3624    mv "conftest.tmp" "conftest.in"
3625    cp "conftest.in" "conftest.nl"
3626    $as_echo 'GREP' >> "conftest.nl"
3627    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3628    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3629    as_fn_arith $ac_count + 1 && ac_count=$as_val
3630    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3631      # Best one so far, save it but keep looking for a better one
3632      ac_cv_path_GREP="$ac_path_GREP"
3633      ac_path_GREP_max=$ac_count
3634    fi
3635    # 10*(2^10) chars as input seems more than enough
3636    test $ac_count -gt 10 && break
3637  done
3638  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3639esac
3640
3641      $ac_path_GREP_found && break 3
3642    done
3643  done
3644  done
3645IFS=$as_save_IFS
3646  if test -z "$ac_cv_path_GREP"; then
3647    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3648  fi
3649else
3650  ac_cv_path_GREP=$GREP
3651fi
3652
3653fi
3654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3655$as_echo "$ac_cv_path_GREP" >&6; }
3656 GREP="$ac_cv_path_GREP"
3657
3658
3659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3660$as_echo_n "checking for egrep... " >&6; }
3661if ${ac_cv_path_EGREP+:} false; then :
3662  $as_echo_n "(cached) " >&6
3663else
3664  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3665   then ac_cv_path_EGREP="$GREP -E"
3666   else
3667     if test -z "$EGREP"; then
3668  ac_path_EGREP_found=false
3669  # Loop through the user's path and test for each of PROGNAME-LIST
3670  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3672do
3673  IFS=$as_save_IFS
3674  test -z "$as_dir" && as_dir=.
3675    for ac_prog in egrep; do
3676    for ac_exec_ext in '' $ac_executable_extensions; do
3677      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3678      as_fn_executable_p "$ac_path_EGREP" || continue
3679# Check for GNU ac_path_EGREP and select it if it is found.
3680  # Check for GNU $ac_path_EGREP
3681case `"$ac_path_EGREP" --version 2>&1` in
3682*GNU*)
3683  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3684*)
3685  ac_count=0
3686  $as_echo_n 0123456789 >"conftest.in"
3687  while :
3688  do
3689    cat "conftest.in" "conftest.in" >"conftest.tmp"
3690    mv "conftest.tmp" "conftest.in"
3691    cp "conftest.in" "conftest.nl"
3692    $as_echo 'EGREP' >> "conftest.nl"
3693    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3694    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3695    as_fn_arith $ac_count + 1 && ac_count=$as_val
3696    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3697      # Best one so far, save it but keep looking for a better one
3698      ac_cv_path_EGREP="$ac_path_EGREP"
3699      ac_path_EGREP_max=$ac_count
3700    fi
3701    # 10*(2^10) chars as input seems more than enough
3702    test $ac_count -gt 10 && break
3703  done
3704  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3705esac
3706
3707      $ac_path_EGREP_found && break 3
3708    done
3709  done
3710  done
3711IFS=$as_save_IFS
3712  if test -z "$ac_cv_path_EGREP"; then
3713    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3714  fi
3715else
3716  ac_cv_path_EGREP=$EGREP
3717fi
3718
3719   fi
3720fi
3721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3722$as_echo "$ac_cv_path_EGREP" >&6; }
3723 EGREP="$ac_cv_path_EGREP"
3724
3725
3726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3727$as_echo_n "checking for ANSI C header files... " >&6; }
3728if ${ac_cv_header_stdc+:} false; then :
3729  $as_echo_n "(cached) " >&6
3730else
3731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3732/* end confdefs.h.  */
3733#include <stdlib.h>
3734#include <stdarg.h>
3735#include <string.h>
3736#include <float.h>
3737
3738int
3739main ()
3740{
3741
3742  ;
3743  return 0;
3744}
3745_ACEOF
3746if ac_fn_c_try_compile "$LINENO"; then :
3747  ac_cv_header_stdc=yes
3748else
3749  ac_cv_header_stdc=no
3750fi
3751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3752
3753if test $ac_cv_header_stdc = yes; then
3754  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756/* end confdefs.h.  */
3757#include <string.h>
3758
3759_ACEOF
3760if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3761  $EGREP "memchr" >/dev/null 2>&1; then :
3762
3763else
3764  ac_cv_header_stdc=no
3765fi
3766rm -f conftest*
3767
3768fi
3769
3770if test $ac_cv_header_stdc = yes; then
3771  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3773/* end confdefs.h.  */
3774#include <stdlib.h>
3775
3776_ACEOF
3777if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3778  $EGREP "free" >/dev/null 2>&1; then :
3779
3780else
3781  ac_cv_header_stdc=no
3782fi
3783rm -f conftest*
3784
3785fi
3786
3787if test $ac_cv_header_stdc = yes; then
3788  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3789  if test "$cross_compiling" = yes; then :
3790  :
3791else
3792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3793/* end confdefs.h.  */
3794#include <ctype.h>
3795#include <stdlib.h>
3796#if ((' ' & 0x0FF) == 0x020)
3797# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3798# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3799#else
3800# define ISLOWER(c) \
3801		   (('a' <= (c) && (c) <= 'i') \
3802		     || ('j' <= (c) && (c) <= 'r') \
3803		     || ('s' <= (c) && (c) <= 'z'))
3804# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3805#endif
3806
3807#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3808int
3809main ()
3810{
3811  int i;
3812  for (i = 0; i < 256; i++)
3813    if (XOR (islower (i), ISLOWER (i))
3814	|| toupper (i) != TOUPPER (i))
3815      return 2;
3816  return 0;
3817}
3818_ACEOF
3819if ac_fn_c_try_run "$LINENO"; then :
3820
3821else
3822  ac_cv_header_stdc=no
3823fi
3824rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3825  conftest.$ac_objext conftest.beam conftest.$ac_ext
3826fi
3827
3828fi
3829fi
3830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3831$as_echo "$ac_cv_header_stdc" >&6; }
3832if test $ac_cv_header_stdc = yes; then
3833
3834$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3835
3836fi
3837
3838# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3839for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3840		  inttypes.h stdint.h unistd.h
3841do :
3842  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3843ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3844"
3845if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3846  cat >>confdefs.h <<_ACEOF
3847#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3848_ACEOF
3849
3850fi
3851
3852done
3853
3854
3855
3856  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3857if test "x$ac_cv_header_minix_config_h" = xyes; then :
3858  MINIX=yes
3859else
3860  MINIX=
3861fi
3862
3863
3864  if test "$MINIX" = yes; then
3865
3866$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3867
3868
3869$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3870
3871
3872$as_echo "#define _MINIX 1" >>confdefs.h
3873
3874  fi
3875
3876
3877  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3878$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3879if ${ac_cv_safe_to_define___extensions__+:} false; then :
3880  $as_echo_n "(cached) " >&6
3881else
3882  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3883/* end confdefs.h.  */
3884
3885#         define __EXTENSIONS__ 1
3886          $ac_includes_default
3887int
3888main ()
3889{
3890
3891  ;
3892  return 0;
3893}
3894_ACEOF
3895if ac_fn_c_try_compile "$LINENO"; then :
3896  ac_cv_safe_to_define___extensions__=yes
3897else
3898  ac_cv_safe_to_define___extensions__=no
3899fi
3900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3901fi
3902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3903$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3904  test $ac_cv_safe_to_define___extensions__ = yes &&
3905    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3906
3907  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3908
3909  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3910
3911  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3912
3913  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3914
3915
3916
3917ac_aux_dir=
3918for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3919  if test -f "$ac_dir/install-sh"; then
3920    ac_aux_dir=$ac_dir
3921    ac_install_sh="$ac_aux_dir/install-sh -c"
3922    break
3923  elif test -f "$ac_dir/install.sh"; then
3924    ac_aux_dir=$ac_dir
3925    ac_install_sh="$ac_aux_dir/install.sh -c"
3926    break
3927  elif test -f "$ac_dir/shtool"; then
3928    ac_aux_dir=$ac_dir
3929    ac_install_sh="$ac_aux_dir/shtool install -c"
3930    break
3931  fi
3932done
3933if test -z "$ac_aux_dir"; then
3934  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3935fi
3936
3937# These three variables are undocumented and unsupported,
3938# and are intended to be withdrawn in a future Autoconf release.
3939# They can cause serious problems if a builder's source tree is in a directory
3940# whose full name contains unusual characters.
3941ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3942ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3943ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3944
3945
3946# Make sure we can run config.sub.
3947$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3948  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3949
3950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3951$as_echo_n "checking build system type... " >&6; }
3952if ${ac_cv_build+:} false; then :
3953  $as_echo_n "(cached) " >&6
3954else
3955  ac_build_alias=$build_alias
3956test "x$ac_build_alias" = x &&
3957  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3958test "x$ac_build_alias" = x &&
3959  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3960ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3961  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3962
3963fi
3964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3965$as_echo "$ac_cv_build" >&6; }
3966case $ac_cv_build in
3967*-*-*) ;;
3968*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3969esac
3970build=$ac_cv_build
3971ac_save_IFS=$IFS; IFS='-'
3972set x $ac_cv_build
3973shift
3974build_cpu=$1
3975build_vendor=$2
3976shift; shift
3977# Remember, the first character of IFS is used to create $*,
3978# except with old shells:
3979build_os=$*
3980IFS=$ac_save_IFS
3981case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3982
3983
3984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3985$as_echo_n "checking host system type... " >&6; }
3986if ${ac_cv_host+:} false; then :
3987  $as_echo_n "(cached) " >&6
3988else
3989  if test "x$host_alias" = x; then
3990  ac_cv_host=$ac_cv_build
3991else
3992  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3993    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3994fi
3995
3996fi
3997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3998$as_echo "$ac_cv_host" >&6; }
3999case $ac_cv_host in
4000*-*-*) ;;
4001*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4002esac
4003host=$ac_cv_host
4004ac_save_IFS=$IFS; IFS='-'
4005set x $ac_cv_host
4006shift
4007host_cpu=$1
4008host_vendor=$2
4009shift; shift
4010# Remember, the first character of IFS is used to create $*,
4011# except with old shells:
4012host_os=$*
4013IFS=$ac_save_IFS
4014case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4015
4016
4017
4018###########################
4019# Check host architecture
4020###########################
4021build_darwin="no"
4022build_linux="no"
4023
4024case $host in #(
4025  *-*-darwin*) :
4026    build_darwin="yes" ;; #(
4027  *-*-linux*) :
4028    build_linux="yes" ;; #(
4029  *) :
4030     ;;
4031esac
4032
4033# Used for universalchardet.
4034
4035  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MDCPUCFG setting" >&5
4036$as_echo_n "checking for MDCPUCFG setting... " >&6; }
4037
4038  case "$host" in
4039    *-beos*)
4040      HOST_NSPR_MDCPUCFG="md/_beos.cfg"
4041    ;;
4042
4043    *cygwin*|*mingw*|*mks*|*msvc*|*wince)
4044      HOST_NSPR_MDCPUCFG="md/_winnt.cfg"
4045    ;;
4046
4047    *-darwin*)
4048      HOST_NSPR_MDCPUCFG="md/_darwin.cfg"
4049    ;;
4050
4051    *-*-freebsd*)
4052      HOST_NSPR_MDCPUCFG="md/_freebsd.cfg"
4053    ;;
4054
4055    *-linux*|*-kfreebsd*-gnu)
4056      HOST_NSPR_MDCPUCFG="md/_linux.cfg"
4057    ;;
4058
4059    *os2*)
4060      HOST_NSPR_MDCPUCFG="md/_os2.cfg"
4061    ;;
4062
4063    *-osf*)
4064      HOST_NSPR_MDCPUCFG="md/_osf1.cfg"
4065    ;;
4066
4067    *-solaris*)
4068      HOST_NSPR_MDCPUCFG="md/_solaris.cfg"
4069    ;;
4070
4071    *)
4072      HOST_NSPR_MDCPUCFG="unknown"
4073    ;;
4074  esac
4075
4076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HOST_NSPR_MDCPUCFG" >&5
4077$as_echo "$HOST_NSPR_MDCPUCFG" >&6; }
4078
4079  if test "$HOST_NSPR_MDCPUCFG" = "unknown"; then
4080    { $as_echo "$as_me:${as_lineno-$LINENO}: Please edit m4macros/ac_agi_mdcpucfg.m4 to add target host." >&5
4081$as_echo "$as_me: Please edit m4macros/ac_agi_mdcpucfg.m4 to add target host." >&6;}
4082  fi
4083
4084
4085
4086
4087########################
4088# Configurable variables
4089########################
4090# Name of aegisub binary.
4091# On OS X everything goes in an app bundle so no point in versioning the executable
4092if test x$build_darwin = xyes; then :
4093  AEGISUB_COMMAND="aegisub"
4094else
4095  AEGISUB_COMMAND="aegisub-3.2"
4096fi
4097
4098
4099cat >>confdefs.h <<_ACEOF
4100#define AEGISUB_COMMAND "${AEGISUB_COMMAND}"
4101_ACEOF
4102
4103
4104# Name of gettext catalog.
4105# On OS X everything goes in an app bundle so no point in versioning the executable
4106if test x$build_darwin = xyes; then :
4107  AEGISUB_CATALOG="aegisub"
4108else
4109  AEGISUB_CATALOG="aegisub-32"
4110fi
4111
4112
4113cat >>confdefs.h <<_ACEOF
4114#define AEGISUB_CATALOG "${AEGISUB_CATALOG}"
4115_ACEOF
4116
4117
4118# Handle location of desktop files: http://freedesktop.org/wiki/Specifications/desktop-entry-spec
4119
4120# Check whether --with-desktop-dir was given.
4121if test "${with_desktop_dir+set}" = set; then :
4122  withval=$with_desktop_dir;
4123fi
4124
4125
4126P_DESKTOP=${with_desktop_dir:-$datarootdir/applications}
4127
4128
4129# Handle location of icons: http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html
4130
4131# Check whether --with-icon-dir was given.
4132if test "${with_icon_dir+set}" = set; then :
4133  withval=$with_icon_dir;
4134fi
4135
4136
4137P_ICON=${with_icon_dir:-$datarootdir/icons}
4138
4139
4140# Install prefix
4141# If a user doesn't supply --prefix then it is set to NONE so we
4142# set it to $ac_default_prefix if it hasn't been supplied.
4143case x$prefix in #(
4144  xNONE | x) :
4145    prefix="$ac_default_prefix" ;; #(
4146  *) :
4147     ;;
4148esac
4149
4150# Install prefix used by wxStandardPaths::SetInstallPrefix.
4151
4152cat >>confdefs.h <<_ACEOF
4153#define INSTALL_PREFIX "$prefix"
4154_ACEOF
4155
4156
4157# Build credit
4158
4159# Check whether --with-build-credit was given.
4160if test "${with_build_credit+set}" = set; then :
4161  withval=$with_build_credit; use_build_credit="yes"
4162fi
4163
4164
4165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BUILD_CREDIT has been set" >&5
4166$as_echo_n "checking whether BUILD_CREDIT has been set... " >&6; }
4167if test x$use_build_credit = xyes; then :
4168  if test x$with_build_credit = xyes || test -z "$with_build_credit"; then :
4169
4170    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4171$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4172as_fn_error $? "You must set a value eg --with-build-credit=<username>
4173See \`config.log' for more details" "$LINENO" 5; }
4174
4175else
4176
4177    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($with_build_credit)" >&5
4178$as_echo "yes ($with_build_credit)" >&6; }
4179
4180cat >>confdefs.h <<_ACEOF
4181#define BUILD_CREDIT "$with_build_credit"
4182_ACEOF
4183
4184
4185fi
4186else
4187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4188$as_echo "no" >&6; }
4189fi
4190
4191####################
4192# Check for programs
4193####################
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
4195$as_echo_n "checking for GNU make... " >&6; }
4196if ${_cv_gnu_make_command+:} false; then :
4197  $as_echo_n "(cached) " >&6
4198else
4199  _cv_gnu_make_command='' ;
4200                for a in "$MAKE" make gmake gnumake ; do
4201                        if test -z "$a" ; then continue ; fi ;
4202                        if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
4203                                _cv_gnu_make_command=$a ;
4204                                break;
4205                        fi
4206                done ;
4207
4208fi
4209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
4210$as_echo "$_cv_gnu_make_command" >&6; } ;
4211        if test  "x$_cv_gnu_make_command" != "x"  ; then
4212                ifGNUmake='' ;
4213        else
4214                ifGNUmake='#' ;
4215                { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
4216$as_echo "\"Not found\"" >&6; };
4217        fi
4218
4219
4220ac_ext=c
4221ac_cpp='$CPP $CPPFLAGS'
4222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4224ac_compiler_gnu=$ac_cv_c_compiler_gnu
4225if test -n "$ac_tool_prefix"; then
4226  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4227set dummy ${ac_tool_prefix}gcc; 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_CC+:} false; then :
4231  $as_echo_n "(cached) " >&6
4232else
4233  if test -n "$CC"; then
4234  ac_cv_prog_CC="$CC" # 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_CC="${ac_tool_prefix}gcc"
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
4253CC=$ac_cv_prog_CC
4254if test -n "$CC"; then
4255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4256$as_echo "$CC" >&6; }
4257else
4258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4259$as_echo "no" >&6; }
4260fi
4261
4262
4263fi
4264if test -z "$ac_cv_prog_CC"; then
4265  ac_ct_CC=$CC
4266  # Extract the first word of "gcc", so it can be a program name with args.
4267set dummy gcc; ac_word=$2
4268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4269$as_echo_n "checking for $ac_word... " >&6; }
4270if ${ac_cv_prog_ac_ct_CC+:} false; then :
4271  $as_echo_n "(cached) " >&6
4272else
4273  if test -n "$ac_ct_CC"; then
4274  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4275else
4276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277for as_dir in $PATH
4278do
4279  IFS=$as_save_IFS
4280  test -z "$as_dir" && as_dir=.
4281    for ac_exec_ext in '' $ac_executable_extensions; do
4282  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4283    ac_cv_prog_ac_ct_CC="gcc"
4284    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4285    break 2
4286  fi
4287done
4288  done
4289IFS=$as_save_IFS
4290
4291fi
4292fi
4293ac_ct_CC=$ac_cv_prog_ac_ct_CC
4294if test -n "$ac_ct_CC"; then
4295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4296$as_echo "$ac_ct_CC" >&6; }
4297else
4298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4299$as_echo "no" >&6; }
4300fi
4301
4302  if test "x$ac_ct_CC" = x; then
4303    CC=""
4304  else
4305    case $cross_compiling:$ac_tool_warned in
4306yes:)
4307{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4308$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4309ac_tool_warned=yes ;;
4310esac
4311    CC=$ac_ct_CC
4312  fi
4313else
4314  CC="$ac_cv_prog_CC"
4315fi
4316
4317if test -z "$CC"; then
4318          if test -n "$ac_tool_prefix"; then
4319    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4320set dummy ${ac_tool_prefix}cc; ac_word=$2
4321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4322$as_echo_n "checking for $ac_word... " >&6; }
4323if ${ac_cv_prog_CC+:} false; then :
4324  $as_echo_n "(cached) " >&6
4325else
4326  if test -n "$CC"; then
4327  ac_cv_prog_CC="$CC" # Let the user override the test.
4328else
4329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4330for as_dir in $PATH
4331do
4332  IFS=$as_save_IFS
4333  test -z "$as_dir" && as_dir=.
4334    for ac_exec_ext in '' $ac_executable_extensions; do
4335  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4336    ac_cv_prog_CC="${ac_tool_prefix}cc"
4337    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4338    break 2
4339  fi
4340done
4341  done
4342IFS=$as_save_IFS
4343
4344fi
4345fi
4346CC=$ac_cv_prog_CC
4347if test -n "$CC"; then
4348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4349$as_echo "$CC" >&6; }
4350else
4351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4352$as_echo "no" >&6; }
4353fi
4354
4355
4356  fi
4357fi
4358if test -z "$CC"; then
4359  # Extract the first word of "cc", so it can be a program name with args.
4360set dummy cc; ac_word=$2
4361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4362$as_echo_n "checking for $ac_word... " >&6; }
4363if ${ac_cv_prog_CC+:} false; then :
4364  $as_echo_n "(cached) " >&6
4365else
4366  if test -n "$CC"; then
4367  ac_cv_prog_CC="$CC" # Let the user override the test.
4368else
4369  ac_prog_rejected=no
4370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4371for as_dir in $PATH
4372do
4373  IFS=$as_save_IFS
4374  test -z "$as_dir" && as_dir=.
4375    for ac_exec_ext in '' $ac_executable_extensions; do
4376  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4377    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4378       ac_prog_rejected=yes
4379       continue
4380     fi
4381    ac_cv_prog_CC="cc"
4382    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4383    break 2
4384  fi
4385done
4386  done
4387IFS=$as_save_IFS
4388
4389if test $ac_prog_rejected = yes; then
4390  # We found a bogon in the path, so make sure we never use it.
4391  set dummy $ac_cv_prog_CC
4392  shift
4393  if test $# != 0; then
4394    # We chose a different compiler from the bogus one.
4395    # However, it has the same basename, so the bogon will be chosen
4396    # first if we set CC to just the basename; use the full file name.
4397    shift
4398    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4399  fi
4400fi
4401fi
4402fi
4403CC=$ac_cv_prog_CC
4404if test -n "$CC"; then
4405  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4406$as_echo "$CC" >&6; }
4407else
4408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4409$as_echo "no" >&6; }
4410fi
4411
4412
4413fi
4414if test -z "$CC"; then
4415  if test -n "$ac_tool_prefix"; then
4416  for ac_prog in cl.exe
4417  do
4418    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4419set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4421$as_echo_n "checking for $ac_word... " >&6; }
4422if ${ac_cv_prog_CC+:} false; then :
4423  $as_echo_n "(cached) " >&6
4424else
4425  if test -n "$CC"; then
4426  ac_cv_prog_CC="$CC" # Let the user override the test.
4427else
4428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4429for as_dir in $PATH
4430do
4431  IFS=$as_save_IFS
4432  test -z "$as_dir" && as_dir=.
4433    for ac_exec_ext in '' $ac_executable_extensions; do
4434  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4435    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4436    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4437    break 2
4438  fi
4439done
4440  done
4441IFS=$as_save_IFS
4442
4443fi
4444fi
4445CC=$ac_cv_prog_CC
4446if test -n "$CC"; then
4447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4448$as_echo "$CC" >&6; }
4449else
4450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4451$as_echo "no" >&6; }
4452fi
4453
4454
4455    test -n "$CC" && break
4456  done
4457fi
4458if test -z "$CC"; then
4459  ac_ct_CC=$CC
4460  for ac_prog in cl.exe
4461do
4462  # Extract the first word of "$ac_prog", so it can be a program name with args.
4463set dummy $ac_prog; ac_word=$2
4464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4465$as_echo_n "checking for $ac_word... " >&6; }
4466if ${ac_cv_prog_ac_ct_CC+:} false; then :
4467  $as_echo_n "(cached) " >&6
4468else
4469  if test -n "$ac_ct_CC"; then
4470  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4471else
4472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473for as_dir in $PATH
4474do
4475  IFS=$as_save_IFS
4476  test -z "$as_dir" && as_dir=.
4477    for ac_exec_ext in '' $ac_executable_extensions; do
4478  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4479    ac_cv_prog_ac_ct_CC="$ac_prog"
4480    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4481    break 2
4482  fi
4483done
4484  done
4485IFS=$as_save_IFS
4486
4487fi
4488fi
4489ac_ct_CC=$ac_cv_prog_ac_ct_CC
4490if test -n "$ac_ct_CC"; then
4491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4492$as_echo "$ac_ct_CC" >&6; }
4493else
4494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4495$as_echo "no" >&6; }
4496fi
4497
4498
4499  test -n "$ac_ct_CC" && break
4500done
4501
4502  if test "x$ac_ct_CC" = x; then
4503    CC=""
4504  else
4505    case $cross_compiling:$ac_tool_warned in
4506yes:)
4507{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4508$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4509ac_tool_warned=yes ;;
4510esac
4511    CC=$ac_ct_CC
4512  fi
4513fi
4514
4515fi
4516
4517
4518test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4519$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4520as_fn_error $? "no acceptable C compiler found in \$PATH
4521See \`config.log' for more details" "$LINENO" 5; }
4522
4523# Provide some information about the compiler.
4524$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4525set X $ac_compile
4526ac_compiler=$2
4527for ac_option in --version -v -V -qversion; do
4528  { { ac_try="$ac_compiler $ac_option >&5"
4529case "(($ac_try" in
4530  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4531  *) ac_try_echo=$ac_try;;
4532esac
4533eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4534$as_echo "$ac_try_echo"; } >&5
4535  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4536  ac_status=$?
4537  if test -s conftest.err; then
4538    sed '10a\
4539... rest of stderr output deleted ...
4540         10q' conftest.err >conftest.er1
4541    cat conftest.er1 >&5
4542  fi
4543  rm -f conftest.er1 conftest.err
4544  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4545  test $ac_status = 0; }
4546done
4547
4548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4549$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4550if ${ac_cv_c_compiler_gnu+:} false; then :
4551  $as_echo_n "(cached) " >&6
4552else
4553  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4554/* end confdefs.h.  */
4555
4556int
4557main ()
4558{
4559#ifndef __GNUC__
4560       choke me
4561#endif
4562
4563  ;
4564  return 0;
4565}
4566_ACEOF
4567if ac_fn_c_try_compile "$LINENO"; then :
4568  ac_compiler_gnu=yes
4569else
4570  ac_compiler_gnu=no
4571fi
4572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4573ac_cv_c_compiler_gnu=$ac_compiler_gnu
4574
4575fi
4576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4577$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4578if test $ac_compiler_gnu = yes; then
4579  GCC=yes
4580else
4581  GCC=
4582fi
4583ac_test_CFLAGS=${CFLAGS+set}
4584ac_save_CFLAGS=$CFLAGS
4585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4586$as_echo_n "checking whether $CC accepts -g... " >&6; }
4587if ${ac_cv_prog_cc_g+:} false; then :
4588  $as_echo_n "(cached) " >&6
4589else
4590  ac_save_c_werror_flag=$ac_c_werror_flag
4591   ac_c_werror_flag=yes
4592   ac_cv_prog_cc_g=no
4593   CFLAGS="-g"
4594   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4595/* end confdefs.h.  */
4596
4597int
4598main ()
4599{
4600
4601  ;
4602  return 0;
4603}
4604_ACEOF
4605if ac_fn_c_try_compile "$LINENO"; then :
4606  ac_cv_prog_cc_g=yes
4607else
4608  CFLAGS=""
4609      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4610/* end confdefs.h.  */
4611
4612int
4613main ()
4614{
4615
4616  ;
4617  return 0;
4618}
4619_ACEOF
4620if ac_fn_c_try_compile "$LINENO"; then :
4621
4622else
4623  ac_c_werror_flag=$ac_save_c_werror_flag
4624	 CFLAGS="-g"
4625	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4626/* end confdefs.h.  */
4627
4628int
4629main ()
4630{
4631
4632  ;
4633  return 0;
4634}
4635_ACEOF
4636if ac_fn_c_try_compile "$LINENO"; then :
4637  ac_cv_prog_cc_g=yes
4638fi
4639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4640fi
4641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4642fi
4643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4644   ac_c_werror_flag=$ac_save_c_werror_flag
4645fi
4646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4647$as_echo "$ac_cv_prog_cc_g" >&6; }
4648if test "$ac_test_CFLAGS" = set; then
4649  CFLAGS=$ac_save_CFLAGS
4650elif test $ac_cv_prog_cc_g = yes; then
4651  if test "$GCC" = yes; then
4652    CFLAGS="-g -O2"
4653  else
4654    CFLAGS="-g"
4655  fi
4656else
4657  if test "$GCC" = yes; then
4658    CFLAGS="-O2"
4659  else
4660    CFLAGS=
4661  fi
4662fi
4663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4664$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4665if ${ac_cv_prog_cc_c89+:} false; then :
4666  $as_echo_n "(cached) " >&6
4667else
4668  ac_cv_prog_cc_c89=no
4669ac_save_CC=$CC
4670cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4671/* end confdefs.h.  */
4672#include <stdarg.h>
4673#include <stdio.h>
4674struct stat;
4675/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4676struct buf { int x; };
4677FILE * (*rcsopen) (struct buf *, struct stat *, int);
4678static char *e (p, i)
4679     char **p;
4680     int i;
4681{
4682  return p[i];
4683}
4684static char *f (char * (*g) (char **, int), char **p, ...)
4685{
4686  char *s;
4687  va_list v;
4688  va_start (v,p);
4689  s = g (p, va_arg (v,int));
4690  va_end (v);
4691  return s;
4692}
4693
4694/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4695   function prototypes and stuff, but not '\xHH' hex character constants.
4696   These don't provoke an error unfortunately, instead are silently treated
4697   as 'x'.  The following induces an error, until -std is added to get
4698   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4699   array size at least.  It's necessary to write '\x00'==0 to get something
4700   that's true only with -std.  */
4701int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4702
4703/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4704   inside strings and character constants.  */
4705#define FOO(x) 'x'
4706int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4707
4708int test (int i, double x);
4709struct s1 {int (*f) (int a);};
4710struct s2 {int (*f) (double a);};
4711int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4712int argc;
4713char **argv;
4714int
4715main ()
4716{
4717return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4718  ;
4719  return 0;
4720}
4721_ACEOF
4722for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4723	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4724do
4725  CC="$ac_save_CC $ac_arg"
4726  if ac_fn_c_try_compile "$LINENO"; then :
4727  ac_cv_prog_cc_c89=$ac_arg
4728fi
4729rm -f core conftest.err conftest.$ac_objext
4730  test "x$ac_cv_prog_cc_c89" != "xno" && break
4731done
4732rm -f conftest.$ac_ext
4733CC=$ac_save_CC
4734
4735fi
4736# AC_CACHE_VAL
4737case "x$ac_cv_prog_cc_c89" in
4738  x)
4739    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4740$as_echo "none needed" >&6; } ;;
4741  xno)
4742    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4743$as_echo "unsupported" >&6; } ;;
4744  *)
4745    CC="$CC $ac_cv_prog_cc_c89"
4746    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4747$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4748esac
4749if test "x$ac_cv_prog_cc_c89" != xno; then :
4750
4751fi
4752
4753ac_ext=c
4754ac_cpp='$CPP $CPPFLAGS'
4755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4757ac_compiler_gnu=$ac_cv_c_compiler_gnu
4758
4759ac_ext=cpp
4760ac_cpp='$CXXCPP $CPPFLAGS'
4761ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4762ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4763ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4764if test -z "$CXX"; then
4765  if test -n "$CCC"; then
4766    CXX=$CCC
4767  else
4768    if test -n "$ac_tool_prefix"; then
4769  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4770  do
4771    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4772set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4774$as_echo_n "checking for $ac_word... " >&6; }
4775if ${ac_cv_prog_CXX+:} false; then :
4776  $as_echo_n "(cached) " >&6
4777else
4778  if test -n "$CXX"; then
4779  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4780else
4781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782for as_dir in $PATH
4783do
4784  IFS=$as_save_IFS
4785  test -z "$as_dir" && as_dir=.
4786    for ac_exec_ext in '' $ac_executable_extensions; do
4787  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4788    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4789    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4790    break 2
4791  fi
4792done
4793  done
4794IFS=$as_save_IFS
4795
4796fi
4797fi
4798CXX=$ac_cv_prog_CXX
4799if test -n "$CXX"; then
4800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4801$as_echo "$CXX" >&6; }
4802else
4803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4804$as_echo "no" >&6; }
4805fi
4806
4807
4808    test -n "$CXX" && break
4809  done
4810fi
4811if test -z "$CXX"; then
4812  ac_ct_CXX=$CXX
4813  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4814do
4815  # Extract the first word of "$ac_prog", so it can be a program name with args.
4816set dummy $ac_prog; ac_word=$2
4817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4818$as_echo_n "checking for $ac_word... " >&6; }
4819if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4820  $as_echo_n "(cached) " >&6
4821else
4822  if test -n "$ac_ct_CXX"; then
4823  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4824else
4825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826for as_dir in $PATH
4827do
4828  IFS=$as_save_IFS
4829  test -z "$as_dir" && as_dir=.
4830    for ac_exec_ext in '' $ac_executable_extensions; do
4831  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4832    ac_cv_prog_ac_ct_CXX="$ac_prog"
4833    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4834    break 2
4835  fi
4836done
4837  done
4838IFS=$as_save_IFS
4839
4840fi
4841fi
4842ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4843if test -n "$ac_ct_CXX"; then
4844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4845$as_echo "$ac_ct_CXX" >&6; }
4846else
4847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4848$as_echo "no" >&6; }
4849fi
4850
4851
4852  test -n "$ac_ct_CXX" && break
4853done
4854
4855  if test "x$ac_ct_CXX" = x; then
4856    CXX="g++"
4857  else
4858    case $cross_compiling:$ac_tool_warned in
4859yes:)
4860{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4861$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4862ac_tool_warned=yes ;;
4863esac
4864    CXX=$ac_ct_CXX
4865  fi
4866fi
4867
4868  fi
4869fi
4870# Provide some information about the compiler.
4871$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4872set X $ac_compile
4873ac_compiler=$2
4874for ac_option in --version -v -V -qversion; do
4875  { { ac_try="$ac_compiler $ac_option >&5"
4876case "(($ac_try" in
4877  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4878  *) ac_try_echo=$ac_try;;
4879esac
4880eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4881$as_echo "$ac_try_echo"; } >&5
4882  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4883  ac_status=$?
4884  if test -s conftest.err; then
4885    sed '10a\
4886... rest of stderr output deleted ...
4887         10q' conftest.err >conftest.er1
4888    cat conftest.er1 >&5
4889  fi
4890  rm -f conftest.er1 conftest.err
4891  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4892  test $ac_status = 0; }
4893done
4894
4895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4896$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4897if ${ac_cv_cxx_compiler_gnu+:} false; then :
4898  $as_echo_n "(cached) " >&6
4899else
4900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4901/* end confdefs.h.  */
4902
4903int
4904main ()
4905{
4906#ifndef __GNUC__
4907       choke me
4908#endif
4909
4910  ;
4911  return 0;
4912}
4913_ACEOF
4914if ac_fn_cxx_try_compile "$LINENO"; then :
4915  ac_compiler_gnu=yes
4916else
4917  ac_compiler_gnu=no
4918fi
4919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4920ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4921
4922fi
4923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4924$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4925if test $ac_compiler_gnu = yes; then
4926  GXX=yes
4927else
4928  GXX=
4929fi
4930ac_test_CXXFLAGS=${CXXFLAGS+set}
4931ac_save_CXXFLAGS=$CXXFLAGS
4932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4933$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4934if ${ac_cv_prog_cxx_g+:} false; then :
4935  $as_echo_n "(cached) " >&6
4936else
4937  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4938   ac_cxx_werror_flag=yes
4939   ac_cv_prog_cxx_g=no
4940   CXXFLAGS="-g"
4941   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4942/* end confdefs.h.  */
4943
4944int
4945main ()
4946{
4947
4948  ;
4949  return 0;
4950}
4951_ACEOF
4952if ac_fn_cxx_try_compile "$LINENO"; then :
4953  ac_cv_prog_cxx_g=yes
4954else
4955  CXXFLAGS=""
4956      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4957/* end confdefs.h.  */
4958
4959int
4960main ()
4961{
4962
4963  ;
4964  return 0;
4965}
4966_ACEOF
4967if ac_fn_cxx_try_compile "$LINENO"; then :
4968
4969else
4970  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4971	 CXXFLAGS="-g"
4972	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4973/* end confdefs.h.  */
4974
4975int
4976main ()
4977{
4978
4979  ;
4980  return 0;
4981}
4982_ACEOF
4983if ac_fn_cxx_try_compile "$LINENO"; then :
4984  ac_cv_prog_cxx_g=yes
4985fi
4986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4987fi
4988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4989fi
4990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4991   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4992fi
4993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4994$as_echo "$ac_cv_prog_cxx_g" >&6; }
4995if test "$ac_test_CXXFLAGS" = set; then
4996  CXXFLAGS=$ac_save_CXXFLAGS
4997elif test $ac_cv_prog_cxx_g = yes; then
4998  if test "$GXX" = yes; then
4999    CXXFLAGS="-g -O2"
5000  else
5001    CXXFLAGS="-g"
5002  fi
5003else
5004  if test "$GXX" = yes; then
5005    CXXFLAGS="-O2"
5006  else
5007    CXXFLAGS=
5008  fi
5009fi
5010ac_ext=c
5011ac_cpp='$CPP $CPPFLAGS'
5012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5014ac_compiler_gnu=$ac_cv_c_compiler_gnu
5015
5016ac_ext=cpp
5017ac_cpp='$CXXCPP $CPPFLAGS'
5018ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5019ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5020ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5021
5022
5023# This is reported to be required on Ubuntu, I haven't had time to check.
5024
5025# Find a good install program.  We prefer a C program (faster),
5026# so one script is as good as another.  But avoid the broken or
5027# incompatible versions:
5028# SysV /etc/install, /usr/sbin/install
5029# SunOS /usr/etc/install
5030# IRIX /sbin/install
5031# AIX /bin/install
5032# AmigaOS /C/install, which installs bootblocks on floppy discs
5033# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5034# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5035# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5036# OS/2's system install, which has a completely different semantic
5037# ./install, which can be erroneously created by make from ./install.sh.
5038# Reject install programs that cannot install multiple files.
5039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5040$as_echo_n "checking for a BSD-compatible install... " >&6; }
5041if test -z "$INSTALL"; then
5042if ${ac_cv_path_install+:} false; then :
5043  $as_echo_n "(cached) " >&6
5044else
5045  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5046for as_dir in $PATH
5047do
5048  IFS=$as_save_IFS
5049  test -z "$as_dir" && as_dir=.
5050    # Account for people who put trailing slashes in PATH elements.
5051case $as_dir/ in #((
5052  ./ | .// | /[cC]/* | \
5053  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5054  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5055  /usr/ucb/* ) ;;
5056  *)
5057    # OSF1 and SCO ODT 3.0 have their own names for install.
5058    # Don't use installbsd from OSF since it installs stuff as root
5059    # by default.
5060    for ac_prog in ginstall scoinst install; do
5061      for ac_exec_ext in '' $ac_executable_extensions; do
5062	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5063	  if test $ac_prog = install &&
5064	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5065	    # AIX install.  It has an incompatible calling convention.
5066	    :
5067	  elif test $ac_prog = install &&
5068	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5069	    # program-specific install script used by HP pwplus--don't use.
5070	    :
5071	  else
5072	    rm -rf conftest.one conftest.two conftest.dir
5073	    echo one > conftest.one
5074	    echo two > conftest.two
5075	    mkdir conftest.dir
5076	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5077	      test -s conftest.one && test -s conftest.two &&
5078	      test -s conftest.dir/conftest.one &&
5079	      test -s conftest.dir/conftest.two
5080	    then
5081	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5082	      break 3
5083	    fi
5084	  fi
5085	fi
5086      done
5087    done
5088    ;;
5089esac
5090
5091  done
5092IFS=$as_save_IFS
5093
5094rm -rf conftest.one conftest.two conftest.dir
5095
5096fi
5097  if test "${ac_cv_path_install+set}" = set; then
5098    INSTALL=$ac_cv_path_install
5099  else
5100    # As a last resort, use the slow shell script.  Don't cache a
5101    # value for INSTALL within a source directory, because that will
5102    # break other packages using the cache if that directory is
5103    # removed, or if the value is a relative name.
5104    INSTALL=$ac_install_sh
5105  fi
5106fi
5107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5108$as_echo "$INSTALL" >&6; }
5109
5110# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5111# It thinks the first close brace ends the variable substitution.
5112test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5113
5114test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5115
5116test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5117
5118if test -n "$ac_tool_prefix"; then
5119  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5120set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5122$as_echo_n "checking for $ac_word... " >&6; }
5123if ${ac_cv_prog_RANLIB+:} false; then :
5124  $as_echo_n "(cached) " >&6
5125else
5126  if test -n "$RANLIB"; then
5127  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5128else
5129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5130for as_dir in $PATH
5131do
5132  IFS=$as_save_IFS
5133  test -z "$as_dir" && as_dir=.
5134    for ac_exec_ext in '' $ac_executable_extensions; do
5135  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5136    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5137    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5138    break 2
5139  fi
5140done
5141  done
5142IFS=$as_save_IFS
5143
5144fi
5145fi
5146RANLIB=$ac_cv_prog_RANLIB
5147if test -n "$RANLIB"; then
5148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5149$as_echo "$RANLIB" >&6; }
5150else
5151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5152$as_echo "no" >&6; }
5153fi
5154
5155
5156fi
5157if test -z "$ac_cv_prog_RANLIB"; then
5158  ac_ct_RANLIB=$RANLIB
5159  # Extract the first word of "ranlib", so it can be a program name with args.
5160set dummy ranlib; ac_word=$2
5161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5162$as_echo_n "checking for $ac_word... " >&6; }
5163if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5164  $as_echo_n "(cached) " >&6
5165else
5166  if test -n "$ac_ct_RANLIB"; then
5167  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5168else
5169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170for as_dir in $PATH
5171do
5172  IFS=$as_save_IFS
5173  test -z "$as_dir" && as_dir=.
5174    for ac_exec_ext in '' $ac_executable_extensions; do
5175  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5176    ac_cv_prog_ac_ct_RANLIB="ranlib"
5177    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5178    break 2
5179  fi
5180done
5181  done
5182IFS=$as_save_IFS
5183
5184fi
5185fi
5186ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5187if test -n "$ac_ct_RANLIB"; then
5188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5189$as_echo "$ac_ct_RANLIB" >&6; }
5190else
5191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5192$as_echo "no" >&6; }
5193fi
5194
5195  if test "x$ac_ct_RANLIB" = x; then
5196    RANLIB=":"
5197  else
5198    case $cross_compiling:$ac_tool_warned in
5199yes:)
5200{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5201$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5202ac_tool_warned=yes ;;
5203esac
5204    RANLIB=$ac_ct_RANLIB
5205  fi
5206else
5207  RANLIB="$ac_cv_prog_RANLIB"
5208fi
5209
5210
5211
5212
5213
5214
5215
5216
5217if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5218	if test -n "$ac_tool_prefix"; then
5219  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5220set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5222$as_echo_n "checking for $ac_word... " >&6; }
5223if ${ac_cv_path_PKG_CONFIG+:} false; then :
5224  $as_echo_n "(cached) " >&6
5225else
5226  case $PKG_CONFIG in
5227  [\\/]* | ?:[\\/]*)
5228  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5229  ;;
5230  *)
5231  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232for as_dir in $PATH
5233do
5234  IFS=$as_save_IFS
5235  test -z "$as_dir" && as_dir=.
5236    for ac_exec_ext in '' $ac_executable_extensions; do
5237  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5238    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5239    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5240    break 2
5241  fi
5242done
5243  done
5244IFS=$as_save_IFS
5245
5246  ;;
5247esac
5248fi
5249PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5250if test -n "$PKG_CONFIG"; then
5251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5252$as_echo "$PKG_CONFIG" >&6; }
5253else
5254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5255$as_echo "no" >&6; }
5256fi
5257
5258
5259fi
5260if test -z "$ac_cv_path_PKG_CONFIG"; then
5261  ac_pt_PKG_CONFIG=$PKG_CONFIG
5262  # Extract the first word of "pkg-config", so it can be a program name with args.
5263set dummy pkg-config; ac_word=$2
5264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5265$as_echo_n "checking for $ac_word... " >&6; }
5266if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5267  $as_echo_n "(cached) " >&6
5268else
5269  case $ac_pt_PKG_CONFIG in
5270  [\\/]* | ?:[\\/]*)
5271  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5272  ;;
5273  *)
5274  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5275for as_dir in $PATH
5276do
5277  IFS=$as_save_IFS
5278  test -z "$as_dir" && as_dir=.
5279    for ac_exec_ext in '' $ac_executable_extensions; do
5280  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5281    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5282    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5283    break 2
5284  fi
5285done
5286  done
5287IFS=$as_save_IFS
5288
5289  ;;
5290esac
5291fi
5292ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5293if test -n "$ac_pt_PKG_CONFIG"; then
5294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5295$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5296else
5297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5298$as_echo "no" >&6; }
5299fi
5300
5301  if test "x$ac_pt_PKG_CONFIG" = x; then
5302    PKG_CONFIG=""
5303  else
5304    case $cross_compiling:$ac_tool_warned in
5305yes:)
5306{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5307$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5308ac_tool_warned=yes ;;
5309esac
5310    PKG_CONFIG=$ac_pt_PKG_CONFIG
5311  fi
5312else
5313  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5314fi
5315
5316fi
5317if test -n "$PKG_CONFIG"; then
5318	_pkg_min_version=0.20
5319	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5320$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5321	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5322		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5323$as_echo "yes" >&6; }
5324	else
5325		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5326$as_echo "no" >&6; }
5327		PKG_CONFIG=""
5328	fi
5329fi
5330
5331#################
5332# Developers only
5333#################
5334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for version" >&5
5335$as_echo_n "checking for version... " >&6; }
5336. $srcdir/build/version.sh "$srcdir"
5337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_GIT_VERSION_STRING $VERSION_SOURCE" >&5
5338$as_echo "$BUILD_GIT_VERSION_STRING $VERSION_SOURCE" >&6; }
5339
5340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for build date" >&5
5341$as_echo_n "checking for build date... " >&6; }
5342BUILD_DATE=`date "+%Y-%m-%d %H:%M %Z"`
5343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_DATE" >&5
5344$as_echo "$BUILD_DATE" >&6; }
5345
5346
5347
5348
5349###################################################
5350# Check for pthreads and setup variables / compiler
5351###################################################
5352
5353
5354ac_ext=c
5355ac_cpp='$CPP $CPPFLAGS'
5356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5358ac_compiler_gnu=$ac_cv_c_compiler_gnu
5359
5360ax_pthread_ok=no
5361
5362# We used to check for pthread.h first, but this fails if pthread.h
5363# requires special compiler flags (e.g. on True64 or Sequent).
5364# It gets checked for in the link test anyway.
5365
5366# First of all, check if the user has set any of the PTHREAD_LIBS,
5367# etcetera environment variables, and if threads linking works using
5368# them:
5369if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
5370        save_CFLAGS="$CFLAGS"
5371        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5372        save_LIBS="$LIBS"
5373        LIBS="$PTHREAD_LIBS $LIBS"
5374        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
5375$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
5376        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5377/* end confdefs.h.  */
5378
5379/* Override any GCC internal prototype to avoid an error.
5380   Use char because int might match the return type of a GCC
5381   builtin and then its argument prototype would still apply.  */
5382#ifdef __cplusplus
5383extern "C"
5384#endif
5385char pthread_join ();
5386int
5387main ()
5388{
5389return pthread_join ();
5390  ;
5391  return 0;
5392}
5393_ACEOF
5394if ac_fn_c_try_link "$LINENO"; then :
5395  ax_pthread_ok=yes
5396fi
5397rm -f core conftest.err conftest.$ac_objext \
5398    conftest$ac_exeext conftest.$ac_ext
5399        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
5400$as_echo "$ax_pthread_ok" >&6; }
5401        if test x"$ax_pthread_ok" = xno; then
5402                PTHREAD_LIBS=""
5403                PTHREAD_CFLAGS=""
5404        fi
5405        LIBS="$save_LIBS"
5406        CFLAGS="$save_CFLAGS"
5407fi
5408
5409# We must check for the threads library under a number of different
5410# names; the ordering is very important because some systems
5411# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
5412# libraries is broken (non-POSIX).
5413
5414# Create a list of thread flags to try.  Items starting with a "-" are
5415# C compiler flags, and other items are library names, except for "none"
5416# which indicates that we try without any flags at all, and "pthread-config"
5417# which is a program returning the flags for the Pth emulation library.
5418
5419ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
5420
5421# The ordering *is* (sometimes) important.  Some notes on the
5422# individual items follow:
5423
5424# pthreads: AIX (must check this before -lpthread)
5425# none: in case threads are in libc; should be tried before -Kthread and
5426#       other compiler flags to prevent continual compiler warnings
5427# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
5428# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
5429# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
5430# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
5431# -pthreads: Solaris/gcc
5432# -mthreads: Mingw32/gcc, Lynx/gcc
5433# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
5434#      doesn't hurt to check since this sometimes defines pthreads too;
5435#      also defines -D_REENTRANT)
5436#      ... -mt is also the pthreads flag for HP/aCC
5437# pthread: Linux, etcetera
5438# --thread-safe: KAI C++
5439# pthread-config: use pthread-config program (for GNU Pth library)
5440
5441case "${host_cpu}-${host_os}" in
5442        *solaris*)
5443
5444        # On Solaris (at least, for some versions), libc contains stubbed
5445        # (non-functional) versions of the pthreads routines, so link-based
5446        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
5447        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
5448        # a function called by this macro, so we could check for that, but
5449        # who knows whether they'll stub that too in a future libc.)  So,
5450        # we'll just look for -pthreads and -lpthread first:
5451
5452        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
5453        ;;
5454
5455        *-darwin*)
5456        ax_pthread_flags="-pthread $ax_pthread_flags"
5457        ;;
5458esac
5459
5460if test x"$ax_pthread_ok" = xno; then
5461for flag in $ax_pthread_flags; do
5462
5463        case $flag in
5464                none)
5465                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
5466$as_echo_n "checking whether pthreads work without any flags... " >&6; }
5467                ;;
5468
5469                -*)
5470                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
5471$as_echo_n "checking whether pthreads work with $flag... " >&6; }
5472                PTHREAD_CFLAGS="$flag"
5473                ;;
5474
5475                pthread-config)
5476                # Extract the first word of "pthread-config", so it can be a program name with args.
5477set dummy pthread-config; ac_word=$2
5478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5479$as_echo_n "checking for $ac_word... " >&6; }
5480if ${ac_cv_prog_ax_pthread_config+:} false; then :
5481  $as_echo_n "(cached) " >&6
5482else
5483  if test -n "$ax_pthread_config"; then
5484  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
5485else
5486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5487for as_dir in $PATH
5488do
5489  IFS=$as_save_IFS
5490  test -z "$as_dir" && as_dir=.
5491    for ac_exec_ext in '' $ac_executable_extensions; do
5492  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5493    ac_cv_prog_ax_pthread_config="yes"
5494    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5495    break 2
5496  fi
5497done
5498  done
5499IFS=$as_save_IFS
5500
5501  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
5502fi
5503fi
5504ax_pthread_config=$ac_cv_prog_ax_pthread_config
5505if test -n "$ax_pthread_config"; then
5506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
5507$as_echo "$ax_pthread_config" >&6; }
5508else
5509  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5510$as_echo "no" >&6; }
5511fi
5512
5513
5514                if test x"$ax_pthread_config" = xno; then continue; fi
5515                PTHREAD_CFLAGS="`pthread-config --cflags`"
5516                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
5517                ;;
5518
5519                *)
5520                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
5521$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
5522                PTHREAD_LIBS="-l$flag"
5523                ;;
5524        esac
5525
5526        save_LIBS="$LIBS"
5527        save_CFLAGS="$CFLAGS"
5528        LIBS="$PTHREAD_LIBS $LIBS"
5529        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5530
5531        # Check for various functions.  We must include pthread.h,
5532        # since some functions may be macros.  (On the Sequent, we
5533        # need a special flag -Kthread to make this header compile.)
5534        # We check for pthread_join because it is in -lpthread on IRIX
5535        # while pthread_create is in libc.  We check for pthread_attr_init
5536        # due to DEC craziness with -lpthreads.  We check for
5537        # pthread_cleanup_push because it is one of the few pthread
5538        # functions on Solaris that doesn't have a non-functional libc stub.
5539        # We try pthread_create on general principles.
5540        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5541/* end confdefs.h.  */
5542#include <pthread.h>
5543                        static void routine(void *a) { a = 0; }
5544                        static void *start_routine(void *a) { return a; }
5545int
5546main ()
5547{
5548pthread_t th; pthread_attr_t attr;
5549                        pthread_create(&th, 0, start_routine, 0);
5550                        pthread_join(th, 0);
5551                        pthread_attr_init(&attr);
5552                        pthread_cleanup_push(routine, 0);
5553                        pthread_cleanup_pop(0) /* ; */
5554  ;
5555  return 0;
5556}
5557_ACEOF
5558if ac_fn_c_try_link "$LINENO"; then :
5559  ax_pthread_ok=yes
5560fi
5561rm -f core conftest.err conftest.$ac_objext \
5562    conftest$ac_exeext conftest.$ac_ext
5563
5564        LIBS="$save_LIBS"
5565        CFLAGS="$save_CFLAGS"
5566
5567        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
5568$as_echo "$ax_pthread_ok" >&6; }
5569        if test "x$ax_pthread_ok" = xyes; then
5570                break;
5571        fi
5572
5573        PTHREAD_LIBS=""
5574        PTHREAD_CFLAGS=""
5575done
5576fi
5577
5578# Various other checks:
5579if test "x$ax_pthread_ok" = xyes; then
5580        save_LIBS="$LIBS"
5581        LIBS="$PTHREAD_LIBS $LIBS"
5582        save_CFLAGS="$CFLAGS"
5583        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5584
5585        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
5586        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
5587$as_echo_n "checking for joinable pthread attribute... " >&6; }
5588        attr_name=unknown
5589        for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
5590            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5591/* end confdefs.h.  */
5592#include <pthread.h>
5593int
5594main ()
5595{
5596int attr = $attr; return attr /* ; */
5597  ;
5598  return 0;
5599}
5600_ACEOF
5601if ac_fn_c_try_link "$LINENO"; then :
5602  attr_name=$attr; break
5603fi
5604rm -f core conftest.err conftest.$ac_objext \
5605    conftest$ac_exeext conftest.$ac_ext
5606        done
5607        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
5608$as_echo "$attr_name" >&6; }
5609        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
5610
5611cat >>confdefs.h <<_ACEOF
5612#define PTHREAD_CREATE_JOINABLE $attr_name
5613_ACEOF
5614
5615        fi
5616
5617        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
5618$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
5619        flag=no
5620        case "${host_cpu}-${host_os}" in
5621            *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
5622            *-osf* | *-hpux*) flag="-D_REENTRANT";;
5623            *solaris*)
5624            if test "$GCC" = "yes"; then
5625                flag="-D_REENTRANT"
5626            else
5627                flag="-mt -D_REENTRANT"
5628            fi
5629            ;;
5630        esac
5631        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
5632$as_echo "${flag}" >&6; }
5633        if test "x$flag" != xno; then
5634            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
5635        fi
5636
5637        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
5638$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
5639if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
5640  $as_echo_n "(cached) " >&6
5641else
5642
5643                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5644/* end confdefs.h.  */
5645
5646                    #include <pthread.h>
5647int
5648main ()
5649{
5650int i = PTHREAD_PRIO_INHERIT;
5651  ;
5652  return 0;
5653}
5654_ACEOF
5655if ac_fn_c_try_link "$LINENO"; then :
5656  ax_cv_PTHREAD_PRIO_INHERIT=yes
5657else
5658  ax_cv_PTHREAD_PRIO_INHERIT=no
5659fi
5660rm -f core conftest.err conftest.$ac_objext \
5661    conftest$ac_exeext conftest.$ac_ext
5662
5663fi
5664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
5665$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
5666        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
5667
5668$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
5669
5670fi
5671
5672        LIBS="$save_LIBS"
5673        CFLAGS="$save_CFLAGS"
5674
5675        # More AIX lossage: must compile with xlc_r or cc_r
5676        if test x"$GCC" != xyes; then
5677          for ac_prog in xlc_r cc_r
5678do
5679  # Extract the first word of "$ac_prog", so it can be a program name with args.
5680set dummy $ac_prog; ac_word=$2
5681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5682$as_echo_n "checking for $ac_word... " >&6; }
5683if ${ac_cv_prog_PTHREAD_CC+:} false; then :
5684  $as_echo_n "(cached) " >&6
5685else
5686  if test -n "$PTHREAD_CC"; then
5687  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
5688else
5689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5690for as_dir in $PATH
5691do
5692  IFS=$as_save_IFS
5693  test -z "$as_dir" && as_dir=.
5694    for ac_exec_ext in '' $ac_executable_extensions; do
5695  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5696    ac_cv_prog_PTHREAD_CC="$ac_prog"
5697    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5698    break 2
5699  fi
5700done
5701  done
5702IFS=$as_save_IFS
5703
5704fi
5705fi
5706PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
5707if test -n "$PTHREAD_CC"; then
5708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
5709$as_echo "$PTHREAD_CC" >&6; }
5710else
5711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5712$as_echo "no" >&6; }
5713fi
5714
5715
5716  test -n "$PTHREAD_CC" && break
5717done
5718test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
5719
5720        else
5721          PTHREAD_CC=$CC
5722        fi
5723else
5724        PTHREAD_CC="$CC"
5725fi
5726
5727
5728
5729
5730
5731# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
5732if test x"$ax_pthread_ok" = xyes; then
5733
5734$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
5735
5736        :
5737else
5738        ax_pthread_ok=no
5739        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5740$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5741as_fn_error $? "You must have working pthreads.
5742See \`config.log' for more details" "$LINENO" 5; }
5743fi
5744ac_ext=cpp
5745ac_cpp='$CXXCPP $CPPFLAGS'
5746ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5747ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5748ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5749
5750
5751CC="$PTHREAD_CC"
5752
5753######################
5754# Check compiler flags
5755######################
5756# Check whether --enable-compiler-flags was given.
5757if test "${enable_compiler_flags+set}" = set; then :
5758  enableval=$enable_compiler_flags;
5759fi
5760
5761
5762
5763if test x$enable_compiler_flags != xno; then :
5764
5765  CFLAGS="$CFLAGS -Wall -Wextra -Wno-unused-parameter -std=gnu99 -pipe -g"
5766  CXXFLAGS="$CXXFLAGS -Wall -Wextra -Wno-unused-parameter -fno-strict-aliasing -pipe -g"
5767  {
5768	ac_ext=cpp
5769ac_cpp='$CXXCPP $CPPFLAGS'
5770ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5771ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5772ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5773
5774	ac_cxx_flag_save="$CXXFLAGS"
5775	CXXFLAGS="$CXXFLAGS -Werror -std=c++11"
5776	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -std=c++11" >&5
5777$as_echo_n "checking whether $CXX supports -std=c++11... " >&6; }
5778	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5779/* end confdefs.h.  */
5780
5781int
5782main ()
5783{
5784
5785  ;
5786  return 0;
5787}
5788_ACEOF
5789if ac_fn_cxx_try_compile "$LINENO"; then :
5790
5791			CXXFLAGS="$ac_cxx_flag_save -std=c++11"
5792			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5793$as_echo "yes" >&6; }
5794
5795else
5796
5797			CXXFLAGS="$ac_cxx_flag_save"
5798			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5799$as_echo "no" >&6; }
5800
5801
5802fi
5803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5804	ac_ext=cpp
5805ac_cpp='$CXXCPP $CPPFLAGS'
5806ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5807ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5808ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5809
5810	}
5811  {
5812	ac_ext=cpp
5813ac_cpp='$CXXCPP $CPPFLAGS'
5814ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5815ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5816ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5817
5818	ac_cxx_flag_save="$CXXFLAGS"
5819	CXXFLAGS="$CXXFLAGS -Werror -Wno-c++11-narrowing"
5820	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -Wno-c++11-narrowing" >&5
5821$as_echo_n "checking whether $CXX supports -Wno-c++11-narrowing... " >&6; }
5822	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5823/* end confdefs.h.  */
5824
5825int
5826main ()
5827{
5828
5829  ;
5830  return 0;
5831}
5832_ACEOF
5833if ac_fn_cxx_try_compile "$LINENO"; then :
5834
5835			CXXFLAGS="$ac_cxx_flag_save -Wno-c++11-narrowing"
5836			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5837$as_echo "yes" >&6; }
5838
5839else
5840
5841			CXXFLAGS="$ac_cxx_flag_save"
5842			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5843$as_echo "no" >&6; }
5844
5845
5846fi
5847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5848	ac_ext=cpp
5849ac_cpp='$CXXCPP $CPPFLAGS'
5850ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5851ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5852ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5853
5854	}
5855  {
5856	ac_ext=c
5857ac_cpp='$CPP $CPPFLAGS'
5858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5860ac_compiler_gnu=$ac_cv_c_compiler_gnu
5861
5862	ac_c_flag_save="$CFLAGS"
5863	CFLAGS="$CFLAGS -Werror -Wno-unused-local-typedefs"
5864	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-unused-local-typedefs" >&5
5865$as_echo_n "checking whether $CC supports -Wno-unused-local-typedefs... " >&6; }
5866	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5867/* end confdefs.h.  */
5868
5869int
5870main ()
5871{
5872
5873  ;
5874  return 0;
5875}
5876_ACEOF
5877if ac_fn_c_try_compile "$LINENO"; then :
5878
5879			CFLAGS="$ac_c_flag_save -Wno-unused-local-typedefs"
5880			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5881$as_echo "yes" >&6; }
5882
5883else
5884
5885			CFLAGS="$ac_c_flag_save"
5886			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5887$as_echo "no" >&6; }
5888
5889
5890fi
5891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5892	ac_ext=cpp
5893ac_cpp='$CXXCPP $CPPFLAGS'
5894ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5895ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5896ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5897
5898	}
5899  {
5900	ac_ext=cpp
5901ac_cpp='$CXXCPP $CPPFLAGS'
5902ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5903ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5904ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5905
5906	ac_cxx_flag_save="$CXXFLAGS"
5907	CXXFLAGS="$CXXFLAGS -Werror -Wno-unused-local-typedefs"
5908	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -Wno-unused-local-typedefs" >&5
5909$as_echo_n "checking whether $CXX supports -Wno-unused-local-typedefs... " >&6; }
5910	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5911/* end confdefs.h.  */
5912
5913int
5914main ()
5915{
5916
5917  ;
5918  return 0;
5919}
5920_ACEOF
5921if ac_fn_cxx_try_compile "$LINENO"; then :
5922
5923			CXXFLAGS="$ac_cxx_flag_save -Wno-unused-local-typedefs"
5924			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5925$as_echo "yes" >&6; }
5926
5927else
5928
5929			CXXFLAGS="$ac_cxx_flag_save"
5930			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5931$as_echo "no" >&6; }
5932
5933
5934fi
5935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5936	ac_ext=cpp
5937ac_cpp='$CXXCPP $CPPFLAGS'
5938ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5939ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5940ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5941
5942	}
5943
5944  # -O* messes with debugging.
5945  if test x$enable_debug = xyes; then :
5946
5947    CFLAGS="$CFLAGS -O0"
5948    CXXFLAGS="$CXXFLAGS -O0"
5949
5950else
5951
5952    CFLAGS="$CFLAGS"
5953    CXXFLAGS="$CXXFLAGS"
5954
5955fi
5956
5957fi
5958
5959
5960# Check whether --with-libc++ was given.
5961if test "${with_libc__+set}" = set; then :
5962  withval=$with_libc__;
5963fi
5964
5965if test x$with_libc__ != xno; then :
5966
5967  ac_ext=cpp
5968ac_cpp='$CXXCPP $CPPFLAGS'
5969ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5970ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5971ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5972
5973  ac_ld_flag_save="$LDFLAGS"
5974  LDFLAGS="$LDFLAGS -stdlib=libc++"
5975  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -stdlib=libc++" >&5
5976$as_echo_n "checking whether $CXX supports -stdlib=libc++... " >&6; }
5977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5978/* end confdefs.h.  */
5979
5980int
5981main ()
5982{
5983
5984  ;
5985  return 0;
5986}
5987_ACEOF
5988if ac_fn_cxx_try_link "$LINENO"; then :
5989
5990    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5991$as_echo "yes" >&6; }
5992    CXXFLAGS="$CXXFLAGS -stdlib=libc++"
5993
5994else
5995
5996    if test x$with_libc__ = xyes; then :
5997
5998      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5999$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6000as_fn_error $? "no
6001See \`config.log' for more details" "$LINENO" 5; }
6002
6003else
6004
6005      LDFLAGS="$ac_ld_flag_save"
6006      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6007$as_echo "no" >&6; }
6008
6009fi
6010
6011fi
6012rm -f core conftest.err conftest.$ac_objext \
6013    conftest$ac_exeext conftest.$ac_ext
6014  ac_ext=cpp
6015ac_cpp='$CXXCPP $CPPFLAGS'
6016ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6017ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6018ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6019
6020
6021fi
6022
6023######################################
6024# Check Headers / Features / Libraries
6025######################################
6026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
6027$as_echo_n "checking for main in -lm... " >&6; }
6028if ${ac_cv_lib_m_main+:} false; then :
6029  $as_echo_n "(cached) " >&6
6030else
6031  ac_check_lib_save_LIBS=$LIBS
6032LIBS="-lm  $LIBS"
6033cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6034/* end confdefs.h.  */
6035
6036
6037int
6038main ()
6039{
6040return main ();
6041  ;
6042  return 0;
6043}
6044_ACEOF
6045if ac_fn_cxx_try_link "$LINENO"; then :
6046  ac_cv_lib_m_main=yes
6047else
6048  ac_cv_lib_m_main=no
6049fi
6050rm -f core conftest.err conftest.$ac_objext \
6051    conftest$ac_exeext conftest.$ac_ext
6052LIBS=$ac_check_lib_save_LIBS
6053fi
6054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
6055$as_echo "$ac_cv_lib_m_main" >&6; }
6056if test "x$ac_cv_lib_m_main" = xyes; then :
6057  cat >>confdefs.h <<_ACEOF
6058#define HAVE_LIBM 1
6059_ACEOF
6060
6061  LIBS="-lm $LIBS"
6062
6063fi
6064
6065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlclose in -ldl" >&5
6066$as_echo_n "checking for dlclose in -ldl... " >&6; }
6067if ${ac_cv_lib_dl_dlclose+:} false; then :
6068  $as_echo_n "(cached) " >&6
6069else
6070  ac_check_lib_save_LIBS=$LIBS
6071LIBS="-ldl  $LIBS"
6072cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6073/* end confdefs.h.  */
6074
6075/* Override any GCC internal prototype to avoid an error.
6076   Use char because int might match the return type of a GCC
6077   builtin and then its argument prototype would still apply.  */
6078#ifdef __cplusplus
6079extern "C"
6080#endif
6081char dlclose ();
6082int
6083main ()
6084{
6085return dlclose ();
6086  ;
6087  return 0;
6088}
6089_ACEOF
6090if ac_fn_cxx_try_link "$LINENO"; then :
6091  ac_cv_lib_dl_dlclose=yes
6092else
6093  ac_cv_lib_dl_dlclose=no
6094fi
6095rm -f core conftest.err conftest.$ac_objext \
6096    conftest$ac_exeext conftest.$ac_ext
6097LIBS=$ac_check_lib_save_LIBS
6098fi
6099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlclose" >&5
6100$as_echo "$ac_cv_lib_dl_dlclose" >&6; }
6101if test "x$ac_cv_lib_dl_dlclose" = xyes; then :
6102  cat >>confdefs.h <<_ACEOF
6103#define HAVE_LIBDL 1
6104_ACEOF
6105
6106  LIBS="-ldl $LIBS"
6107
6108fi
6109
6110ac_ext=cpp
6111ac_cpp='$CXXCPP $CPPFLAGS'
6112ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6113ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6114ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
6116$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6117if test -z "$CXXCPP"; then
6118  if ${ac_cv_prog_CXXCPP+:} false; then :
6119  $as_echo_n "(cached) " >&6
6120else
6121      # Double quotes because CXXCPP needs to be expanded
6122    for CXXCPP in "$CXX -E" "/lib/cpp"
6123    do
6124      ac_preproc_ok=false
6125for ac_cxx_preproc_warn_flag in '' yes
6126do
6127  # Use a header file that comes with gcc, so configuring glibc
6128  # with a fresh cross-compiler works.
6129  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6130  # <limits.h> exists even on freestanding compilers.
6131  # On the NeXT, cc -E runs the code through the compiler's parser,
6132  # not just through cpp. "Syntax error" is here to catch this case.
6133  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6134/* end confdefs.h.  */
6135#ifdef __STDC__
6136# include <limits.h>
6137#else
6138# include <assert.h>
6139#endif
6140		     Syntax error
6141_ACEOF
6142if ac_fn_cxx_try_cpp "$LINENO"; then :
6143
6144else
6145  # Broken: fails on valid input.
6146continue
6147fi
6148rm -f conftest.err conftest.i conftest.$ac_ext
6149
6150  # OK, works on sane cases.  Now check whether nonexistent headers
6151  # can be detected and how.
6152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6153/* end confdefs.h.  */
6154#include <ac_nonexistent.h>
6155_ACEOF
6156if ac_fn_cxx_try_cpp "$LINENO"; then :
6157  # Broken: success on invalid input.
6158continue
6159else
6160  # Passes both tests.
6161ac_preproc_ok=:
6162break
6163fi
6164rm -f conftest.err conftest.i conftest.$ac_ext
6165
6166done
6167# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6168rm -f conftest.i conftest.err conftest.$ac_ext
6169if $ac_preproc_ok; then :
6170  break
6171fi
6172
6173    done
6174    ac_cv_prog_CXXCPP=$CXXCPP
6175
6176fi
6177  CXXCPP=$ac_cv_prog_CXXCPP
6178else
6179  ac_cv_prog_CXXCPP=$CXXCPP
6180fi
6181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
6182$as_echo "$CXXCPP" >&6; }
6183ac_preproc_ok=false
6184for ac_cxx_preproc_warn_flag in '' yes
6185do
6186  # Use a header file that comes with gcc, so configuring glibc
6187  # with a fresh cross-compiler works.
6188  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6189  # <limits.h> exists even on freestanding compilers.
6190  # On the NeXT, cc -E runs the code through the compiler's parser,
6191  # not just through cpp. "Syntax error" is here to catch this case.
6192  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6193/* end confdefs.h.  */
6194#ifdef __STDC__
6195# include <limits.h>
6196#else
6197# include <assert.h>
6198#endif
6199		     Syntax error
6200_ACEOF
6201if ac_fn_cxx_try_cpp "$LINENO"; then :
6202
6203else
6204  # Broken: fails on valid input.
6205continue
6206fi
6207rm -f conftest.err conftest.i conftest.$ac_ext
6208
6209  # OK, works on sane cases.  Now check whether nonexistent headers
6210  # can be detected and how.
6211  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6212/* end confdefs.h.  */
6213#include <ac_nonexistent.h>
6214_ACEOF
6215if ac_fn_cxx_try_cpp "$LINENO"; then :
6216  # Broken: success on invalid input.
6217continue
6218else
6219  # Passes both tests.
6220ac_preproc_ok=:
6221break
6222fi
6223rm -f conftest.err conftest.i conftest.$ac_ext
6224
6225done
6226# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6227rm -f conftest.i conftest.err conftest.$ac_ext
6228if $ac_preproc_ok; then :
6229
6230else
6231  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6232$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6233as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
6234See \`config.log' for more details" "$LINENO" 5; }
6235fi
6236
6237ac_ext=cpp
6238ac_cpp='$CXXCPP $CPPFLAGS'
6239ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6240ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6241ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6242
6243
6244for ac_header in sys/time.h
6245do :
6246  ac_fn_cxx_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
6247if test "x$ac_cv_header_sys_time_h" = xyes; then :
6248  cat >>confdefs.h <<_ACEOF
6249#define HAVE_SYS_TIME_H 1
6250_ACEOF
6251
6252fi
6253
6254done
6255
6256
6257# Check whether --enable-sanity-checks was given.
6258if test "${enable_sanity_checks+set}" = set; then :
6259  enableval=$enable_sanity_checks;
6260fi
6261
6262
6263##############################
6264# Program Support and Features
6265##############################
6266#########################
6267### Required Dependencies
6268#########################
6269
6270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
6271$as_echo_n "checking for X... " >&6; }
6272
6273
6274# Check whether --with-x was given.
6275if test "${with_x+set}" = set; then :
6276  withval=$with_x;
6277fi
6278
6279# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6280if test "x$with_x" = xno; then
6281  # The user explicitly disabled X.
6282  have_x=disabled
6283else
6284  case $x_includes,$x_libraries in #(
6285    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
6286    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
6287  $as_echo_n "(cached) " >&6
6288else
6289  # One or both of the vars are not set, and there is no cached value.
6290ac_x_includes=no ac_x_libraries=no
6291rm -f -r conftest.dir
6292if mkdir conftest.dir; then
6293  cd conftest.dir
6294  cat >Imakefile <<'_ACEOF'
6295incroot:
6296	@echo incroot='${INCROOT}'
6297usrlibdir:
6298	@echo usrlibdir='${USRLIBDIR}'
6299libdir:
6300	@echo libdir='${LIBDIR}'
6301_ACEOF
6302  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6303    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6304    for ac_var in incroot usrlibdir libdir; do
6305      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6306    done
6307    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6308    for ac_extension in a so sl dylib la dll; do
6309      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6310	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6311	ac_im_usrlibdir=$ac_im_libdir; break
6312      fi
6313    done
6314    # Screen out bogus values from the imake configuration.  They are
6315    # bogus both because they are the default anyway, and because
6316    # using them would break gcc on systems where it needs fixed includes.
6317    case $ac_im_incroot in
6318	/usr/include) ac_x_includes= ;;
6319	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6320    esac
6321    case $ac_im_usrlibdir in
6322	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
6323	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6324    esac
6325  fi
6326  cd ..
6327  rm -f -r conftest.dir
6328fi
6329
6330# Standard set of common directories for X headers.
6331# Check X11 before X11Rn because it is often a symlink to the current release.
6332ac_x_header_dirs='
6333/usr/X11/include
6334/usr/X11R7/include
6335/usr/X11R6/include
6336/usr/X11R5/include
6337/usr/X11R4/include
6338
6339/usr/include/X11
6340/usr/include/X11R7
6341/usr/include/X11R6
6342/usr/include/X11R5
6343/usr/include/X11R4
6344
6345/usr/local/X11/include
6346/usr/local/X11R7/include
6347/usr/local/X11R6/include
6348/usr/local/X11R5/include
6349/usr/local/X11R4/include
6350
6351/usr/local/include/X11
6352/usr/local/include/X11R7
6353/usr/local/include/X11R6
6354/usr/local/include/X11R5
6355/usr/local/include/X11R4
6356
6357/usr/X386/include
6358/usr/x386/include
6359/usr/XFree86/include/X11
6360
6361/usr/include
6362/usr/local/include
6363/usr/unsupported/include
6364/usr/athena/include
6365/usr/local/x11r5/include
6366/usr/lpp/Xamples/include
6367
6368/usr/openwin/include
6369/usr/openwin/share/include'
6370
6371if test "$ac_x_includes" = no; then
6372  # Guess where to find include files, by looking for Xlib.h.
6373  # First, try using that file with no special directory specified.
6374  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6375/* end confdefs.h.  */
6376#include <X11/Xlib.h>
6377_ACEOF
6378if ac_fn_cxx_try_cpp "$LINENO"; then :
6379  # We can compile using X headers with no special include directory.
6380ac_x_includes=
6381else
6382  for ac_dir in $ac_x_header_dirs; do
6383  if test -r "$ac_dir/X11/Xlib.h"; then
6384    ac_x_includes=$ac_dir
6385    break
6386  fi
6387done
6388fi
6389rm -f conftest.err conftest.i conftest.$ac_ext
6390fi # $ac_x_includes = no
6391
6392if test "$ac_x_libraries" = no; then
6393  # Check for the libraries.
6394  # See if we find them without any special options.
6395  # Don't add to $LIBS permanently.
6396  ac_save_LIBS=$LIBS
6397  LIBS="-lX11 $LIBS"
6398  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6399/* end confdefs.h.  */
6400#include <X11/Xlib.h>
6401int
6402main ()
6403{
6404XrmInitialize ()
6405  ;
6406  return 0;
6407}
6408_ACEOF
6409if ac_fn_cxx_try_link "$LINENO"; then :
6410  LIBS=$ac_save_LIBS
6411# We can link X programs with no special library path.
6412ac_x_libraries=
6413else
6414  LIBS=$ac_save_LIBS
6415for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6416do
6417  # Don't even attempt the hair of trying to link an X program!
6418  for ac_extension in a so sl dylib la dll; do
6419    if test -r "$ac_dir/libX11.$ac_extension"; then
6420      ac_x_libraries=$ac_dir
6421      break 2
6422    fi
6423  done
6424done
6425fi
6426rm -f core conftest.err conftest.$ac_objext \
6427    conftest$ac_exeext conftest.$ac_ext
6428fi # $ac_x_libraries = no
6429
6430case $ac_x_includes,$ac_x_libraries in #(
6431  no,* | *,no | *\'*)
6432    # Didn't find X, or a directory has "'" in its name.
6433    ac_cv_have_x="have_x=no";; #(
6434  *)
6435    # Record where we found X for the cache.
6436    ac_cv_have_x="have_x=yes\
6437	ac_x_includes='$ac_x_includes'\
6438	ac_x_libraries='$ac_x_libraries'"
6439esac
6440fi
6441;; #(
6442    *) have_x=yes;;
6443  esac
6444  eval "$ac_cv_have_x"
6445fi # $with_x != no
6446
6447if test "$have_x" != yes; then
6448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
6449$as_echo "$have_x" >&6; }
6450  no_x=yes
6451else
6452  # If each of the values was on the command line, it overrides each guess.
6453  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6454  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6455  # Update the cache value to reflect the command line values.
6456  ac_cv_have_x="have_x=yes\
6457	ac_x_includes='$x_includes'\
6458	ac_x_libraries='$x_libraries'"
6459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
6460$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
6461fi
6462
6463if test "$no_x" = yes; then
6464  # Not all programs may use this symbol, but it does not hurt to define it.
6465
6466$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
6467
6468  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6469else
6470  if test -n "$x_includes"; then
6471    X_CFLAGS="$X_CFLAGS -I$x_includes"
6472  fi
6473
6474  # It would also be nice to do this for all -L options, not just this one.
6475  if test -n "$x_libraries"; then
6476    X_LIBS="$X_LIBS -L$x_libraries"
6477    # For Solaris; some versions of Sun CC require a space after -R and
6478    # others require no space.  Words are not sufficient . . . .
6479    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
6480$as_echo_n "checking whether -R must be followed by a space... " >&6; }
6481    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6482    ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
6483    ac_cxx_werror_flag=yes
6484    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6485/* end confdefs.h.  */
6486
6487int
6488main ()
6489{
6490
6491  ;
6492  return 0;
6493}
6494_ACEOF
6495if ac_fn_cxx_try_link "$LINENO"; then :
6496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6497$as_echo "no" >&6; }
6498       X_LIBS="$X_LIBS -R$x_libraries"
6499else
6500  LIBS="$ac_xsave_LIBS -R $x_libraries"
6501       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6502/* end confdefs.h.  */
6503
6504int
6505main ()
6506{
6507
6508  ;
6509  return 0;
6510}
6511_ACEOF
6512if ac_fn_cxx_try_link "$LINENO"; then :
6513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6514$as_echo "yes" >&6; }
6515	  X_LIBS="$X_LIBS -R $x_libraries"
6516else
6517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
6518$as_echo "neither works" >&6; }
6519fi
6520rm -f core conftest.err conftest.$ac_objext \
6521    conftest$ac_exeext conftest.$ac_ext
6522fi
6523rm -f core conftest.err conftest.$ac_objext \
6524    conftest$ac_exeext conftest.$ac_ext
6525    ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
6526    LIBS=$ac_xsave_LIBS
6527  fi
6528
6529  # Check for system-dependent libraries X programs must link with.
6530  # Do this before checking for the system-independent R6 libraries
6531  # (-lICE), since we may need -lsocket or whatever for X linking.
6532
6533  if test "$ISC" = yes; then
6534    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6535  else
6536    # Martyn Johnson says this is needed for Ultrix, if the X
6537    # libraries were built with DECnet support.  And Karl Berry says
6538    # the Alpha needs dnet_stub (dnet does not exist).
6539    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6540    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6541/* end confdefs.h.  */
6542
6543/* Override any GCC internal prototype to avoid an error.
6544   Use char because int might match the return type of a GCC
6545   builtin and then its argument prototype would still apply.  */
6546#ifdef __cplusplus
6547extern "C"
6548#endif
6549char XOpenDisplay ();
6550int
6551main ()
6552{
6553return XOpenDisplay ();
6554  ;
6555  return 0;
6556}
6557_ACEOF
6558if ac_fn_cxx_try_link "$LINENO"; then :
6559
6560else
6561  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
6562$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
6563if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
6564  $as_echo_n "(cached) " >&6
6565else
6566  ac_check_lib_save_LIBS=$LIBS
6567LIBS="-ldnet  $LIBS"
6568cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6569/* end confdefs.h.  */
6570
6571/* Override any GCC internal prototype to avoid an error.
6572   Use char because int might match the return type of a GCC
6573   builtin and then its argument prototype would still apply.  */
6574#ifdef __cplusplus
6575extern "C"
6576#endif
6577char dnet_ntoa ();
6578int
6579main ()
6580{
6581return dnet_ntoa ();
6582  ;
6583  return 0;
6584}
6585_ACEOF
6586if ac_fn_cxx_try_link "$LINENO"; then :
6587  ac_cv_lib_dnet_dnet_ntoa=yes
6588else
6589  ac_cv_lib_dnet_dnet_ntoa=no
6590fi
6591rm -f core conftest.err conftest.$ac_objext \
6592    conftest$ac_exeext conftest.$ac_ext
6593LIBS=$ac_check_lib_save_LIBS
6594fi
6595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6596$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6597if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
6598  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6599fi
6600
6601    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6602      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
6603$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
6604if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
6605  $as_echo_n "(cached) " >&6
6606else
6607  ac_check_lib_save_LIBS=$LIBS
6608LIBS="-ldnet_stub  $LIBS"
6609cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6610/* end confdefs.h.  */
6611
6612/* Override any GCC internal prototype to avoid an error.
6613   Use char because int might match the return type of a GCC
6614   builtin and then its argument prototype would still apply.  */
6615#ifdef __cplusplus
6616extern "C"
6617#endif
6618char dnet_ntoa ();
6619int
6620main ()
6621{
6622return dnet_ntoa ();
6623  ;
6624  return 0;
6625}
6626_ACEOF
6627if ac_fn_cxx_try_link "$LINENO"; then :
6628  ac_cv_lib_dnet_stub_dnet_ntoa=yes
6629else
6630  ac_cv_lib_dnet_stub_dnet_ntoa=no
6631fi
6632rm -f core conftest.err conftest.$ac_objext \
6633    conftest$ac_exeext conftest.$ac_ext
6634LIBS=$ac_check_lib_save_LIBS
6635fi
6636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6637$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6638if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
6639  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6640fi
6641
6642    fi
6643fi
6644rm -f core conftest.err conftest.$ac_objext \
6645    conftest$ac_exeext conftest.$ac_ext
6646    LIBS="$ac_xsave_LIBS"
6647
6648    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6649    # to get the SysV transport functions.
6650    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6651    # needs -lnsl.
6652    # The nsl library prevents programs from opening the X display
6653    # on Irix 5.2, according to T.E. Dickey.
6654    # The functions gethostbyname, getservbyname, and inet_addr are
6655    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6656    ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
6657if test "x$ac_cv_func_gethostbyname" = xyes; then :
6658
6659fi
6660
6661    if test $ac_cv_func_gethostbyname = no; then
6662      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
6663$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6664if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
6665  $as_echo_n "(cached) " >&6
6666else
6667  ac_check_lib_save_LIBS=$LIBS
6668LIBS="-lnsl  $LIBS"
6669cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6670/* end confdefs.h.  */
6671
6672/* Override any GCC internal prototype to avoid an error.
6673   Use char because int might match the return type of a GCC
6674   builtin and then its argument prototype would still apply.  */
6675#ifdef __cplusplus
6676extern "C"
6677#endif
6678char gethostbyname ();
6679int
6680main ()
6681{
6682return gethostbyname ();
6683  ;
6684  return 0;
6685}
6686_ACEOF
6687if ac_fn_cxx_try_link "$LINENO"; then :
6688  ac_cv_lib_nsl_gethostbyname=yes
6689else
6690  ac_cv_lib_nsl_gethostbyname=no
6691fi
6692rm -f core conftest.err conftest.$ac_objext \
6693    conftest$ac_exeext conftest.$ac_ext
6694LIBS=$ac_check_lib_save_LIBS
6695fi
6696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
6697$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6698if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
6699  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6700fi
6701
6702      if test $ac_cv_lib_nsl_gethostbyname = no; then
6703	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
6704$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
6705if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
6706  $as_echo_n "(cached) " >&6
6707else
6708  ac_check_lib_save_LIBS=$LIBS
6709LIBS="-lbsd  $LIBS"
6710cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6711/* end confdefs.h.  */
6712
6713/* Override any GCC internal prototype to avoid an error.
6714   Use char because int might match the return type of a GCC
6715   builtin and then its argument prototype would still apply.  */
6716#ifdef __cplusplus
6717extern "C"
6718#endif
6719char gethostbyname ();
6720int
6721main ()
6722{
6723return gethostbyname ();
6724  ;
6725  return 0;
6726}
6727_ACEOF
6728if ac_fn_cxx_try_link "$LINENO"; then :
6729  ac_cv_lib_bsd_gethostbyname=yes
6730else
6731  ac_cv_lib_bsd_gethostbyname=no
6732fi
6733rm -f core conftest.err conftest.$ac_objext \
6734    conftest$ac_exeext conftest.$ac_ext
6735LIBS=$ac_check_lib_save_LIBS
6736fi
6737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
6738$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
6739if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
6740  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6741fi
6742
6743      fi
6744    fi
6745
6746    # lieder@skyler.mavd.honeywell.com says without -lsocket,
6747    # socket/setsockopt and other routines are undefined under SCO ODT
6748    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
6749    # on later versions), says Simon Leinen: it contains gethostby*
6750    # variants that don't use the name server (or something).  -lsocket
6751    # must be given before -lnsl if both are needed.  We assume that
6752    # if connect needs -lnsl, so does gethostbyname.
6753    ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect"
6754if test "x$ac_cv_func_connect" = xyes; then :
6755
6756fi
6757
6758    if test $ac_cv_func_connect = no; then
6759      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
6760$as_echo_n "checking for connect in -lsocket... " >&6; }
6761if ${ac_cv_lib_socket_connect+:} false; then :
6762  $as_echo_n "(cached) " >&6
6763else
6764  ac_check_lib_save_LIBS=$LIBS
6765LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6766cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6767/* end confdefs.h.  */
6768
6769/* Override any GCC internal prototype to avoid an error.
6770   Use char because int might match the return type of a GCC
6771   builtin and then its argument prototype would still apply.  */
6772#ifdef __cplusplus
6773extern "C"
6774#endif
6775char connect ();
6776int
6777main ()
6778{
6779return connect ();
6780  ;
6781  return 0;
6782}
6783_ACEOF
6784if ac_fn_cxx_try_link "$LINENO"; then :
6785  ac_cv_lib_socket_connect=yes
6786else
6787  ac_cv_lib_socket_connect=no
6788fi
6789rm -f core conftest.err conftest.$ac_objext \
6790    conftest$ac_exeext conftest.$ac_ext
6791LIBS=$ac_check_lib_save_LIBS
6792fi
6793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
6794$as_echo "$ac_cv_lib_socket_connect" >&6; }
6795if test "x$ac_cv_lib_socket_connect" = xyes; then :
6796  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6797fi
6798
6799    fi
6800
6801    # Guillermo Gomez says -lposix is necessary on A/UX.
6802    ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove"
6803if test "x$ac_cv_func_remove" = xyes; then :
6804
6805fi
6806
6807    if test $ac_cv_func_remove = no; then
6808      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
6809$as_echo_n "checking for remove in -lposix... " >&6; }
6810if ${ac_cv_lib_posix_remove+:} false; then :
6811  $as_echo_n "(cached) " >&6
6812else
6813  ac_check_lib_save_LIBS=$LIBS
6814LIBS="-lposix  $LIBS"
6815cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6816/* end confdefs.h.  */
6817
6818/* Override any GCC internal prototype to avoid an error.
6819   Use char because int might match the return type of a GCC
6820   builtin and then its argument prototype would still apply.  */
6821#ifdef __cplusplus
6822extern "C"
6823#endif
6824char remove ();
6825int
6826main ()
6827{
6828return remove ();
6829  ;
6830  return 0;
6831}
6832_ACEOF
6833if ac_fn_cxx_try_link "$LINENO"; then :
6834  ac_cv_lib_posix_remove=yes
6835else
6836  ac_cv_lib_posix_remove=no
6837fi
6838rm -f core conftest.err conftest.$ac_objext \
6839    conftest$ac_exeext conftest.$ac_ext
6840LIBS=$ac_check_lib_save_LIBS
6841fi
6842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
6843$as_echo "$ac_cv_lib_posix_remove" >&6; }
6844if test "x$ac_cv_lib_posix_remove" = xyes; then :
6845  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6846fi
6847
6848    fi
6849
6850    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6851    ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
6852if test "x$ac_cv_func_shmat" = xyes; then :
6853
6854fi
6855
6856    if test $ac_cv_func_shmat = no; then
6857      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
6858$as_echo_n "checking for shmat in -lipc... " >&6; }
6859if ${ac_cv_lib_ipc_shmat+:} false; then :
6860  $as_echo_n "(cached) " >&6
6861else
6862  ac_check_lib_save_LIBS=$LIBS
6863LIBS="-lipc  $LIBS"
6864cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6865/* end confdefs.h.  */
6866
6867/* Override any GCC internal prototype to avoid an error.
6868   Use char because int might match the return type of a GCC
6869   builtin and then its argument prototype would still apply.  */
6870#ifdef __cplusplus
6871extern "C"
6872#endif
6873char shmat ();
6874int
6875main ()
6876{
6877return shmat ();
6878  ;
6879  return 0;
6880}
6881_ACEOF
6882if ac_fn_cxx_try_link "$LINENO"; then :
6883  ac_cv_lib_ipc_shmat=yes
6884else
6885  ac_cv_lib_ipc_shmat=no
6886fi
6887rm -f core conftest.err conftest.$ac_objext \
6888    conftest$ac_exeext conftest.$ac_ext
6889LIBS=$ac_check_lib_save_LIBS
6890fi
6891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
6892$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
6893if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
6894  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6895fi
6896
6897    fi
6898  fi
6899
6900  # Check for libraries that X11R6 Xt/Xaw programs need.
6901  ac_save_LDFLAGS=$LDFLAGS
6902  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6903  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6904  # check for ICE first), but we must link in the order -lSM -lICE or
6905  # we get undefined symbols.  So assume we have SM if we have ICE.
6906  # These have to be linked with before -lX11, unlike the other
6907  # libraries we check for below, so use a different variable.
6908  # John Interrante, Karl Berry
6909  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
6910$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
6911if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
6912  $as_echo_n "(cached) " >&6
6913else
6914  ac_check_lib_save_LIBS=$LIBS
6915LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6916cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6917/* end confdefs.h.  */
6918
6919/* Override any GCC internal prototype to avoid an error.
6920   Use char because int might match the return type of a GCC
6921   builtin and then its argument prototype would still apply.  */
6922#ifdef __cplusplus
6923extern "C"
6924#endif
6925char IceConnectionNumber ();
6926int
6927main ()
6928{
6929return IceConnectionNumber ();
6930  ;
6931  return 0;
6932}
6933_ACEOF
6934if ac_fn_cxx_try_link "$LINENO"; then :
6935  ac_cv_lib_ICE_IceConnectionNumber=yes
6936else
6937  ac_cv_lib_ICE_IceConnectionNumber=no
6938fi
6939rm -f core conftest.err conftest.$ac_objext \
6940    conftest$ac_exeext conftest.$ac_ext
6941LIBS=$ac_check_lib_save_LIBS
6942fi
6943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6944$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
6945if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
6946  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6947fi
6948
6949  LDFLAGS=$ac_save_LDFLAGS
6950
6951fi
6952
6953if test x$no_x = xyes && test x$build_darwin != xyes; then :
6954  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6955$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6956as_fn_error $? "You must have a working copy of X installed.
6957See \`config.log' for more details" "$LINENO" 5; }
6958fi
6959
6960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6961$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6962if ${ac_cv_path_SED+:} false; then :
6963  $as_echo_n "(cached) " >&6
6964else
6965            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6966     for ac_i in 1 2 3 4 5 6 7; do
6967       ac_script="$ac_script$as_nl$ac_script"
6968     done
6969     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6970     { ac_script=; unset ac_script;}
6971     if test -z "$SED"; then
6972  ac_path_SED_found=false
6973  # Loop through the user's path and test for each of PROGNAME-LIST
6974  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6975for as_dir in $PATH
6976do
6977  IFS=$as_save_IFS
6978  test -z "$as_dir" && as_dir=.
6979    for ac_prog in sed gsed; do
6980    for ac_exec_ext in '' $ac_executable_extensions; do
6981      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6982      as_fn_executable_p "$ac_path_SED" || continue
6983# Check for GNU ac_path_SED and select it if it is found.
6984  # Check for GNU $ac_path_SED
6985case `"$ac_path_SED" --version 2>&1` in
6986*GNU*)
6987  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6988*)
6989  ac_count=0
6990  $as_echo_n 0123456789 >"conftest.in"
6991  while :
6992  do
6993    cat "conftest.in" "conftest.in" >"conftest.tmp"
6994    mv "conftest.tmp" "conftest.in"
6995    cp "conftest.in" "conftest.nl"
6996    $as_echo '' >> "conftest.nl"
6997    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6998    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6999    as_fn_arith $ac_count + 1 && ac_count=$as_val
7000    if test $ac_count -gt ${ac_path_SED_max-0}; then
7001      # Best one so far, save it but keep looking for a better one
7002      ac_cv_path_SED="$ac_path_SED"
7003      ac_path_SED_max=$ac_count
7004    fi
7005    # 10*(2^10) chars as input seems more than enough
7006    test $ac_count -gt 10 && break
7007  done
7008  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7009esac
7010
7011      $ac_path_SED_found && break 3
7012    done
7013  done
7014  done
7015IFS=$as_save_IFS
7016  if test -z "$ac_cv_path_SED"; then
7017    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7018  fi
7019else
7020  ac_cv_path_SED=$SED
7021fi
7022
7023fi
7024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7025$as_echo "$ac_cv_path_SED" >&6; }
7026 SED="$ac_cv_path_SED"
7027  rm -f conftest.sed
7028
7029
7030ac_ext=c
7031ac_cpp='$CPP $CPPFLAGS'
7032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7034ac_compiler_gnu=$ac_cv_c_compiler_gnu
7035
7036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
7037$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
7038if ${ax_cv_c_compiler_ms+:} false; then :
7039  $as_echo_n "(cached) " >&6
7040else
7041  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7042/* end confdefs.h.  */
7043
7044int
7045main ()
7046{
7047#ifndef _MSC_VER
7048       choke me
7049#endif
7050
7051  ;
7052  return 0;
7053}
7054_ACEOF
7055if ac_fn_c_try_compile "$LINENO"; then :
7056  ax_compiler_ms=yes
7057else
7058  ax_compiler_ms=no
7059fi
7060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7061ax_cv_c_compiler_ms=$ax_compiler_ms
7062
7063fi
7064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
7065$as_echo "$ax_cv_c_compiler_ms" >&6; }
7066
7067#
7068# Use x_includes and x_libraries if they have been set (presumably by
7069# AC_PATH_X).
7070#
7071if test X$no_x != Xyes -a -n "$x_includes"; then :
7072  GL_CFLAGS="-I$x_includes $GL_CFLAGS"
7073fi
7074
7075for ac_header in windows.h
7076do :
7077  ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
7078if test "x$ac_cv_header_windows_h" = xyes; then :
7079  cat >>confdefs.h <<_ACEOF
7080#define HAVE_WINDOWS_H 1
7081_ACEOF
7082
7083fi
7084
7085done
7086
7087
7088ax_save_CPPFLAGS=$CPPFLAGS
7089CPPFLAGS="$GL_CFLAGS $CPPFLAGS"
7090for ac_header in GL/gl.h OpenGL/gl.h
7091do :
7092  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7093ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
7094# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7095#   include <windows.h>
7096# endif
7097
7098"
7099if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7100  cat >>confdefs.h <<_ACEOF
7101#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7102_ACEOF
7103
7104fi
7105
7106done
7107
7108CPPFLAGS=$ax_save_CPPFLAGS
7109
7110
7111
7112
7113
7114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL library" >&5
7115$as_echo_n "checking for OpenGL library... " >&6; }
7116if ${ax_cv_check_gl_libgl+:} false; then :
7117  $as_echo_n "(cached) " >&6
7118else
7119  ax_cv_check_gl_libgl=no
7120case $host_cpu in
7121  x86_64) ax_check_gl_libdir=lib64 ;;
7122  *)      ax_check_gl_libdir=lib ;;
7123esac
7124ax_save_CPPFLAGS=$CPPFLAGS
7125CPPFLAGS="$CPPFLAGS $GL_CFLAGS"
7126ax_save_LDFLAGS=$LDFLAGS
7127if test X$no_x != Xyes -a -n "$x_libraries"; then :
7128  LDFLAGS="$LDFLAGS -L$x_libraries"
7129fi
7130ax_save_LIBS=$LIBS
7131ax_check_libs="-lopengl32 -lGL"
7132for ax_lib in $ax_check_libs; do
7133  if test X$ax_compiler_ms = Xyes; then :
7134  ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
7135else
7136  ax_try_lib=$ax_lib
7137fi
7138  LDFLAGS="$ax_save_LDFLAGS $GL_LIBS"
7139  LIBS="$ax_try_lib $ax_save_LIBS"
7140cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7141/* end confdefs.h.  */
7142
7143# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7144#   include <windows.h>
7145# endif
7146# ifdef HAVE_GL_GL_H
7147#   include <GL/gl.h>
7148# elif defined(HAVE_OPENGL_GL_H)
7149#   include <OpenGL/gl.h>
7150# else
7151#   error no gl.h
7152# endif
7153int
7154main ()
7155{
7156glBegin(0)
7157  ;
7158  return 0;
7159}
7160_ACEOF
7161if ac_fn_c_try_link "$LINENO"; then :
7162  ax_cv_check_gl_libgl=$ax_try_lib; break
7163else
7164  ax_check_gl_dylib_flag='-dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib'
7165                LDFLAGS="$ax_save_LDFLAGS $GL_LIBS $ax_check_gl_dylib_flag"
7166                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7167/* end confdefs.h.  */
7168
7169# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7170#   include <windows.h>
7171# endif
7172# ifdef HAVE_GL_GL_H
7173#   include <GL/gl.h>
7174# elif defined(HAVE_OPENGL_GL_H)
7175#   include <OpenGL/gl.h>
7176# else
7177#   error no gl.h
7178# endif
7179int
7180main ()
7181{
7182glBegin(0)
7183  ;
7184  return 0;
7185}
7186_ACEOF
7187if ac_fn_c_try_link "$LINENO"; then :
7188  ax_cv_check_gl_libgl="$ax_check_gl_dylib_flag $ax_try_lib"; break
7189fi
7190rm -f core conftest.err conftest.$ac_objext \
7191    conftest$ac_exeext conftest.$ac_ext
7192fi
7193rm -f core conftest.err conftest.$ac_objext \
7194    conftest$ac_exeext conftest.$ac_ext
7195done
7196
7197#
7198# If no_x is "yes", we don't want to wind up using a libGL that is
7199# linked with X11.  Test to see if the found libGL includes GLX
7200# functions.  If it does and no_x is "yes", we want to reset
7201# ax_cv_check_gl_libgl back to "no".
7202#
7203# Note that LDFLAGS and LIBS should still have whatever values they
7204# had when we broke out of the test loop above; use that.
7205#
7206if test "X$ax_cv_check_gl_libgl" != Xno; then :
7207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7208/* end confdefs.h.  */
7209
7210# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7211#   include <windows.h>
7212# endif
7213# ifdef HAVE_GL_GL_H
7214#   include <GL/gl.h>
7215# elif defined(HAVE_OPENGL_GL_H)
7216#   include <OpenGL/gl.h>
7217# else
7218#   error no gl.h
7219# endif
7220int
7221main ()
7222{
7223glXQueryVersion(0, 0, 0)
7224  ;
7225  return 0;
7226}
7227_ACEOF
7228if ac_fn_c_try_link "$LINENO"; then :
7229  if test X$no_x = Xyes; then :
7230  ax_cv_check_gl_libgl=no
7231fi
7232fi
7233rm -f core conftest.err conftest.$ac_objext \
7234    conftest$ac_exeext conftest.$ac_ext
7235fi
7236
7237LIBS=$ax_save_LIBS
7238if test "X$ax_cv_check_gl_libgl" = Xno; then :
7239  LDFLAGS="$ax_save_LDFLAGS -framework OpenGL"
7240      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7241/* end confdefs.h.  */
7242
7243# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7244#   include <windows.h>
7245# endif
7246# ifdef HAVE_GL_GL_H
7247#   include <GL/gl.h>
7248# elif defined(HAVE_OPENGL_GL_H)
7249#   include <OpenGL/gl.h>
7250# else
7251#   error no gl.h
7252# endif
7253int
7254main ()
7255{
7256glBegin(0)
7257  ;
7258  return 0;
7259}
7260_ACEOF
7261if ac_fn_c_try_link "$LINENO"; then :
7262  ax_cv_check_gl_libgl='-framework OpenGL'
7263fi
7264rm -f core conftest.err conftest.$ac_objext \
7265    conftest$ac_exeext conftest.$ac_ext
7266fi
7267
7268LDFLAGS=$ax_save_LDFLAGS
7269CPPFLAGS=$ax_save_CPPFLAGS
7270fi
7271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_gl_libgl" >&5
7272$as_echo "$ax_cv_check_gl_libgl" >&6; }
7273
7274if test "X$ax_cv_check_gl_libgl" = Xno; then :
7275  no_gl=yes; GL_CFLAGS=""; GL_LIBS=""
7276else
7277  GL_LIBS="$ax_cv_check_gl_libgl $GL_LIBS"
7278fi
7279ac_ext=cpp
7280ac_cpp='$CXXCPP $CPPFLAGS'
7281ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7282ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7283ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7284
7285
7286
7287
7288
7289if test x$no_gl = xyes; then :
7290  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7291$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7292as_fn_error $? "Aegisub requires GL support.
7293See \`config.log' for more details" "$LINENO" 5; }
7294fi
7295
7296
7297
7298
7299pkg_failed=no
7300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
7301$as_echo_n "checking for FREETYPE... " >&6; }
7302
7303if test -n "$FREETYPE_CFLAGS"; then
7304    pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
7305 elif test -n "$PKG_CONFIG"; then
7306    if test -n "$PKG_CONFIG" && \
7307    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 9.7.0\""; } >&5
7308  ($PKG_CONFIG --exists --print-errors "freetype2 >= 9.7.0") 2>&5
7309  ac_status=$?
7310  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7311  test $ac_status = 0; }; then
7312  pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 9.7.0" 2>/dev/null`
7313		      test "x$?" != "x0" && pkg_failed=yes
7314else
7315  pkg_failed=yes
7316fi
7317 else
7318    pkg_failed=untried
7319fi
7320if test -n "$FREETYPE_LIBS"; then
7321    pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
7322 elif test -n "$PKG_CONFIG"; then
7323    if test -n "$PKG_CONFIG" && \
7324    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 9.7.0\""; } >&5
7325  ($PKG_CONFIG --exists --print-errors "freetype2 >= 9.7.0") 2>&5
7326  ac_status=$?
7327  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7328  test $ac_status = 0; }; then
7329  pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2 >= 9.7.0" 2>/dev/null`
7330		      test "x$?" != "x0" && pkg_failed=yes
7331else
7332  pkg_failed=yes
7333fi
7334 else
7335    pkg_failed=untried
7336fi
7337
7338
7339
7340if test $pkg_failed = yes; then
7341   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7342$as_echo "no" >&6; }
7343
7344if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7345        _pkg_short_errors_supported=yes
7346else
7347        _pkg_short_errors_supported=no
7348fi
7349        if test $_pkg_short_errors_supported = yes; then
7350	        FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2 >= 9.7.0" 2>&1`
7351        else
7352	        FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2 >= 9.7.0" 2>&1`
7353        fi
7354	# Put the nasty error message in config.log where it belongs
7355	echo "$FREETYPE_PKG_ERRORS" >&5
7356
7357	as_fn_error $? "Package requirements (freetype2 >= 9.7.0) were not met:
7358
7359$FREETYPE_PKG_ERRORS
7360
7361Consider adjusting the PKG_CONFIG_PATH environment variable if you
7362installed software in a non-standard prefix.
7363
7364Alternatively, you may set the environment variables FREETYPE_CFLAGS
7365and FREETYPE_LIBS to avoid the need to call pkg-config.
7366See the pkg-config man page for more details." "$LINENO" 5
7367elif test $pkg_failed = untried; then
7368     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7369$as_echo "no" >&6; }
7370	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7371$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7372as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
7373is in your PATH or set the PKG_CONFIG environment variable to the full
7374path to pkg-config.
7375
7376Alternatively, you may set the environment variables FREETYPE_CFLAGS
7377and FREETYPE_LIBS to avoid the need to call pkg-config.
7378See the pkg-config man page for more details.
7379
7380To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7381See \`config.log' for more details" "$LINENO" 5; }
7382else
7383	FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
7384	FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
7385        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7386$as_echo "yes" >&6; }
7387
7388fi
7389
7390pkg_failed=no
7391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
7392$as_echo_n "checking for FONTCONFIG... " >&6; }
7393
7394if test -n "$FONTCONFIG_CFLAGS"; then
7395    pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
7396 elif test -n "$PKG_CONFIG"; then
7397    if test -n "$PKG_CONFIG" && \
7398    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.4\""; } >&5
7399  ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.4") 2>&5
7400  ac_status=$?
7401  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7402  test $ac_status = 0; }; then
7403  pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.4" 2>/dev/null`
7404		      test "x$?" != "x0" && pkg_failed=yes
7405else
7406  pkg_failed=yes
7407fi
7408 else
7409    pkg_failed=untried
7410fi
7411if test -n "$FONTCONFIG_LIBS"; then
7412    pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
7413 elif test -n "$PKG_CONFIG"; then
7414    if test -n "$PKG_CONFIG" && \
7415    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.4\""; } >&5
7416  ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.4") 2>&5
7417  ac_status=$?
7418  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7419  test $ac_status = 0; }; then
7420  pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.4" 2>/dev/null`
7421		      test "x$?" != "x0" && pkg_failed=yes
7422else
7423  pkg_failed=yes
7424fi
7425 else
7426    pkg_failed=untried
7427fi
7428
7429
7430
7431if test $pkg_failed = yes; then
7432   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7433$as_echo "no" >&6; }
7434
7435if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7436        _pkg_short_errors_supported=yes
7437else
7438        _pkg_short_errors_supported=no
7439fi
7440        if test $_pkg_short_errors_supported = yes; then
7441	        FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fontconfig >= 2.4" 2>&1`
7442        else
7443	        FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fontconfig >= 2.4" 2>&1`
7444        fi
7445	# Put the nasty error message in config.log where it belongs
7446	echo "$FONTCONFIG_PKG_ERRORS" >&5
7447
7448	as_fn_error $? "Package requirements (fontconfig >= 2.4) were not met:
7449
7450$FONTCONFIG_PKG_ERRORS
7451
7452Consider adjusting the PKG_CONFIG_PATH environment variable if you
7453installed software in a non-standard prefix.
7454
7455Alternatively, you may set the environment variables FONTCONFIG_CFLAGS
7456and FONTCONFIG_LIBS to avoid the need to call pkg-config.
7457See the pkg-config man page for more details." "$LINENO" 5
7458elif test $pkg_failed = untried; then
7459     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7460$as_echo "no" >&6; }
7461	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7462$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7463as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
7464is in your PATH or set the PKG_CONFIG environment variable to the full
7465path to pkg-config.
7466
7467Alternatively, you may set the environment variables FONTCONFIG_CFLAGS
7468and FONTCONFIG_LIBS to avoid the need to call pkg-config.
7469See the pkg-config man page for more details.
7470
7471To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7472See \`config.log' for more details" "$LINENO" 5; }
7473else
7474	FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
7475	FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
7476        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7477$as_echo "yes" >&6; }
7478
7479fi
7480
7481pkg_failed=no
7482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBASS" >&5
7483$as_echo_n "checking for LIBASS... " >&6; }
7484
7485if test -n "$LIBASS_CFLAGS"; then
7486    pkg_cv_LIBASS_CFLAGS="$LIBASS_CFLAGS"
7487 elif test -n "$PKG_CONFIG"; then
7488    if test -n "$PKG_CONFIG" && \
7489    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libass >= 0.9.7\""; } >&5
7490  ($PKG_CONFIG --exists --print-errors "libass >= 0.9.7") 2>&5
7491  ac_status=$?
7492  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7493  test $ac_status = 0; }; then
7494  pkg_cv_LIBASS_CFLAGS=`$PKG_CONFIG --cflags "libass >= 0.9.7" 2>/dev/null`
7495		      test "x$?" != "x0" && pkg_failed=yes
7496else
7497  pkg_failed=yes
7498fi
7499 else
7500    pkg_failed=untried
7501fi
7502if test -n "$LIBASS_LIBS"; then
7503    pkg_cv_LIBASS_LIBS="$LIBASS_LIBS"
7504 elif test -n "$PKG_CONFIG"; then
7505    if test -n "$PKG_CONFIG" && \
7506    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libass >= 0.9.7\""; } >&5
7507  ($PKG_CONFIG --exists --print-errors "libass >= 0.9.7") 2>&5
7508  ac_status=$?
7509  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7510  test $ac_status = 0; }; then
7511  pkg_cv_LIBASS_LIBS=`$PKG_CONFIG --libs "libass >= 0.9.7" 2>/dev/null`
7512		      test "x$?" != "x0" && pkg_failed=yes
7513else
7514  pkg_failed=yes
7515fi
7516 else
7517    pkg_failed=untried
7518fi
7519
7520
7521
7522if test $pkg_failed = yes; then
7523   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7524$as_echo "no" >&6; }
7525
7526if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7527        _pkg_short_errors_supported=yes
7528else
7529        _pkg_short_errors_supported=no
7530fi
7531        if test $_pkg_short_errors_supported = yes; then
7532	        LIBASS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libass >= 0.9.7" 2>&1`
7533        else
7534	        LIBASS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libass >= 0.9.7" 2>&1`
7535        fi
7536	# Put the nasty error message in config.log where it belongs
7537	echo "$LIBASS_PKG_ERRORS" >&5
7538
7539	as_fn_error $? "Package requirements (libass >= 0.9.7) were not met:
7540
7541$LIBASS_PKG_ERRORS
7542
7543Consider adjusting the PKG_CONFIG_PATH environment variable if you
7544installed software in a non-standard prefix.
7545
7546Alternatively, you may set the environment variables LIBASS_CFLAGS
7547and LIBASS_LIBS to avoid the need to call pkg-config.
7548See the pkg-config man page for more details." "$LINENO" 5
7549elif test $pkg_failed = untried; then
7550     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7551$as_echo "no" >&6; }
7552	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7553$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7554as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
7555is in your PATH or set the PKG_CONFIG environment variable to the full
7556path to pkg-config.
7557
7558Alternatively, you may set the environment variables LIBASS_CFLAGS
7559and LIBASS_LIBS to avoid the need to call pkg-config.
7560See the pkg-config man page for more details.
7561
7562To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7563See \`config.log' for more details" "$LINENO" 5; }
7564else
7565	LIBASS_CFLAGS=$pkg_cv_LIBASS_CFLAGS
7566	LIBASS_LIBS=$pkg_cv_LIBASS_LIBS
7567        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7568$as_echo "yes" >&6; }
7569
7570fi
7571
7572FONTCONFIG_CONF_DIR=$($PKG_CONFIG --variable=confdir fontconfig)
7573
7574
7575
7576
7577# Check whether --with-boost was given.
7578if test "${with_boost+set}" = set; then :
7579  withval=$with_boost; ac_boost_path="$withval"
7580else
7581  ac_boost_path=""
7582fi
7583
7584
7585
7586# Check whether --with-boost-libdir was given.
7587if test "${with_boost_libdir+set}" = set; then :
7588  withval=$with_boost_libdir; ac_boost_lib_path="$withval"
7589else
7590  ac_boost_lib_path=""
7591fi
7592
7593
7594boost_lib_version_req=1.50.0
7595boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([0-9]*\.[0-9]*\)'`
7596boost_lib_version_req_major=`expr $boost_lib_version_req : '\([0-9]*\)'`
7597boost_lib_version_req_minor=`expr $boost_lib_version_req : '[0-9]*\.\([0-9]*\)'`
7598boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
7599if test "x$boost_lib_version_req_sub_minor" = "x"; then
7600    boost_lib_version_req_sub_minor="0"
7601fi
7602WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+  $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
7603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= $boost_lib_version_req" >&5
7604$as_echo_n "checking for boostlib >= $boost_lib_version_req... " >&6; }
7605succeeded=no
7606
7607libsubdirs="lib"
7608ax_arch=`uname -m`
7609if test $ax_arch = x86_64 -o $ax_arch = ppc64 -o $ax_arch = s390x -o $ax_arch = sparc64; then
7610    libsubdirs="lib64 lib lib64"
7611fi
7612
7613if test "$ac_boost_path" != ""; then
7614    BOOST_CPPFLAGS="-I$ac_boost_path/include"
7615    for ac_boost_path_tmp in $libsubdirs; do
7616            if test -d "$ac_boost_path"/"$ac_boost_path_tmp" ; then
7617                    BOOST_LDFLAGS="-L$ac_boost_path/$ac_boost_path_tmp"
7618                    break
7619            fi
7620    done
7621elif test "$cross_compiling" != yes; then
7622    for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
7623        if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
7624            for libsubdir in $libsubdirs ; do
7625                if ls "$ac_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
7626            done
7627            BOOST_LDFLAGS="-L$ac_boost_path_tmp/$libsubdir"
7628            BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
7629            break;
7630        fi
7631    done
7632fi
7633
7634if test "$ac_boost_lib_path" != ""; then
7635   BOOST_LDFLAGS="-L$ac_boost_lib_path"
7636fi
7637
7638CPPFLAGS_SAVED="$CPPFLAGS"
7639CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
7640export CPPFLAGS
7641
7642LDFLAGS_SAVED="$LDFLAGS"
7643LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
7644export LDFLAGS
7645
7646
7647ac_ext=cpp
7648ac_cpp='$CXXCPP $CPPFLAGS'
7649ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7650ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7651ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7652
7653    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7654/* end confdefs.h.  */
7655
7656#include <boost/version.hpp>
7657
7658int
7659main ()
7660{
7661
7662#if BOOST_VERSION >= $WANT_BOOST_VERSION
7663// Everything is okay
7664#else
7665#  error Boost version is too old
7666#endif
7667
7668  ;
7669  return 0;
7670}
7671_ACEOF
7672if ac_fn_cxx_try_compile "$LINENO"; then :
7673
7674    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7675$as_echo "yes" >&6; }
7676succeeded=yes
7677found_system=yes
7678
7679fi
7680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7681ac_ext=cpp
7682ac_cpp='$CXXCPP $CPPFLAGS'
7683ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7684ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7685ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7686
7687
7688if test "x$succeeded" != "xyes"; then
7689    _version=0
7690    if test "$ac_boost_path" != ""; then
7691        if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
7692            for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
7693                _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
7694                V_CHECK=`expr $_version_tmp \> $_version`
7695                if test "$V_CHECK" = "1" ; then
7696                    _version=$_version_tmp
7697                fi
7698                VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
7699                BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
7700            done
7701        fi
7702    else
7703        if test "$cross_compiling" != yes; then
7704            for ac_boost_path in /usr /usr/local /opt /opt/local ; do
7705                if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
7706                    for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
7707                        _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
7708                        V_CHECK=`expr $_version_tmp \> $_version`
7709                        if test "$V_CHECK" = "1" ; then
7710                            _version=$_version_tmp
7711                            best_path=$ac_boost_path
7712                        fi
7713                    done
7714                fi
7715            done
7716
7717            VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
7718            BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
7719            if test "$ac_boost_lib_path" = ""; then
7720                for libsubdir in $libsubdirs ; do
7721                    if ls "$best_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
7722                done
7723                BOOST_LDFLAGS="-L$best_path/$libsubdir"
7724            fi
7725        fi
7726
7727        if test "x$BOOST_ROOT" != "x"; then
7728            for libsubdir in $libsubdirs ; do
7729                if ls "$BOOST_ROOT/stage/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
7730            done
7731            if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/$libsubdir" && test -r "$BOOST_ROOT/stage/$libsubdir"; then
7732                version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
7733                stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
7734                    stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
7735                V_CHECK=`expr $stage_version_shorten \>\= $_version`
7736                if test "$V_CHECK" = "1" -a "$ac_boost_lib_path" = "" ; then
7737                    { $as_echo "$as_me:${as_lineno-$LINENO}: We will use a staged boost library from $BOOST_ROOT" >&5
7738$as_echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
7739                    BOOST_CPPFLAGS="-I$BOOST_ROOT"
7740                    BOOST_LDFLAGS="-L$BOOST_ROOT/stage/$libsubdir"
7741                fi
7742            fi
7743        fi
7744    fi
7745
7746    CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
7747    export CPPFLAGS
7748    LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
7749    export LDFLAGS
7750
7751    ac_ext=cpp
7752ac_cpp='$CXXCPP $CPPFLAGS'
7753ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7754ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7755ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7756
7757        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7758/* end confdefs.h.  */
7759
7760    #include <boost/version.hpp>
7761
7762int
7763main ()
7764{
7765
7766    #if BOOST_VERSION >= $WANT_BOOST_VERSION
7767    // Everything is okay
7768    #else
7769    #  error Boost version is too old
7770    #endif
7771
7772  ;
7773  return 0;
7774}
7775_ACEOF
7776if ac_fn_cxx_try_compile "$LINENO"; then :
7777
7778        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7779$as_echo "yes" >&6; }
7780    succeeded=yes
7781    found_system=yes
7782
7783fi
7784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7785    ac_ext=cpp
7786ac_cpp='$CXXCPP $CPPFLAGS'
7787ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7788ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7789ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7790
7791fi
7792
7793if test "$succeeded" != "yes" ; then
7794    if test "$_version" = "0" ; then
7795        as_fn_error $? "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." "$LINENO" 5
7796    else
7797        as_fn_error $? "Your boost libraries seem too old (version $_version)." "$LINENO" 5
7798    fi
7799    # execute ACTION-IF-NOT-FOUND (if present):
7800    :
7801else
7802    BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
7803
7804
7805    # execute ACTION-IF-FOUND (if present):
7806    :
7807fi
7808
7809CPPFLAGS="$CPPFLAGS_SAVED"
7810LDFLAGS="$LDFLAGS_SAVED"
7811
7812
7813
7814# Check whether --with-boost-chrono was given.
7815if test "${with_boost_chrono+set}" = set; then :
7816  withval=$with_boost_chrono; ax_boost_lib="$withval"
7817else
7818  ax_boost_lib="boost_chrono"
7819fi
7820
7821
7822CPPFLAGS_SAVED="$CPPFLAGS"
7823CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
7824export CPPFLAGS
7825
7826LDFLAGS_SAVED="$LDFLAGS"
7827LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
7828export LDFLAGS
7829
7830if test x$enable_sanity_checks != xno; then :
7831  as_ac_Lib=`$as_echo "ac_cv_lib_$ax_boost_lib''_exit" | $as_tr_sh`
7832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_boost_lib" >&5
7833$as_echo_n "checking for exit in -l$ax_boost_lib... " >&6; }
7834if eval \${$as_ac_Lib+:} false; then :
7835  $as_echo_n "(cached) " >&6
7836else
7837  ac_check_lib_save_LIBS=$LIBS
7838LIBS="-l$ax_boost_lib  $LIBS"
7839cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7840/* end confdefs.h.  */
7841
7842/* Override any GCC internal prototype to avoid an error.
7843   Use char because int might match the return type of a GCC
7844   builtin and then its argument prototype would still apply.  */
7845#ifdef __cplusplus
7846extern "C"
7847#endif
7848char exit ();
7849int
7850main ()
7851{
7852return exit ();
7853  ;
7854  return 0;
7855}
7856_ACEOF
7857if ac_fn_cxx_try_link "$LINENO"; then :
7858  eval "$as_ac_Lib=yes"
7859else
7860  eval "$as_ac_Lib=no"
7861fi
7862rm -f core conftest.err conftest.$ac_objext \
7863    conftest$ac_exeext conftest.$ac_ext
7864LIBS=$ac_check_lib_save_LIBS
7865fi
7866eval ac_res=\$$as_ac_Lib
7867	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7868$as_echo "$ac_res" >&6; }
7869if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7870  ax_boost_actual_lib="-l$ax_boost_lib"
7871fi
7872
7873else
7874  ax_boost_actual_lib="-l$ax_boost_lib"
7875fi
7876
7877if test "x$ax_boost_actual_lib" = "x"; then
7878    for lib in `ls -r $BOOSTLIBDIR/libboost_chrono* 2>/dev/null | sed 's,.*/lib,,' | sed 's,\..*,,'`; do
7879        ax_boost_lib=${lib}
7880        as_ac_Lib=`$as_echo "ac_cv_lib_$ax_boost_lib''_exit" | $as_tr_sh`
7881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_boost_lib" >&5
7882$as_echo_n "checking for exit in -l$ax_boost_lib... " >&6; }
7883if eval \${$as_ac_Lib+:} false; then :
7884  $as_echo_n "(cached) " >&6
7885else
7886  ac_check_lib_save_LIBS=$LIBS
7887LIBS="-l$ax_boost_lib  $LIBS"
7888cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7889/* end confdefs.h.  */
7890
7891/* Override any GCC internal prototype to avoid an error.
7892   Use char because int might match the return type of a GCC
7893   builtin and then its argument prototype would still apply.  */
7894#ifdef __cplusplus
7895extern "C"
7896#endif
7897char exit ();
7898int
7899main ()
7900{
7901return exit ();
7902  ;
7903  return 0;
7904}
7905_ACEOF
7906if ac_fn_cxx_try_link "$LINENO"; then :
7907  eval "$as_ac_Lib=yes"
7908else
7909  eval "$as_ac_Lib=no"
7910fi
7911rm -f core conftest.err conftest.$ac_objext \
7912    conftest$ac_exeext conftest.$ac_ext
7913LIBS=$ac_check_lib_save_LIBS
7914fi
7915eval ac_res=\$$as_ac_Lib
7916	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7917$as_echo "$ac_res" >&6; }
7918if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7919  ax_boost_actual_lib="-l$ax_boost_lib"; break
7920fi
7921
7922    done
7923fi
7924
7925if test "x$ax_boost_actual_lib" = "x"; then
7926    for lib in `ls -r $BOOSTLIBDIR/boost_chrono* 2>/dev/null | sed 's,.*/,,' | sed -e 's,\..*,,'` ; do
7927        ax_boost_lib=${lib}
7928        as_ac_Lib=`$as_echo "ac_cv_lib_$ax_boost_lib''_exit" | $as_tr_sh`
7929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_boost_lib" >&5
7930$as_echo_n "checking for exit in -l$ax_boost_lib... " >&6; }
7931if eval \${$as_ac_Lib+:} false; then :
7932  $as_echo_n "(cached) " >&6
7933else
7934  ac_check_lib_save_LIBS=$LIBS
7935LIBS="-l$ax_boost_lib  $LIBS"
7936cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7937/* end confdefs.h.  */
7938
7939/* Override any GCC internal prototype to avoid an error.
7940   Use char because int might match the return type of a GCC
7941   builtin and then its argument prototype would still apply.  */
7942#ifdef __cplusplus
7943extern "C"
7944#endif
7945char exit ();
7946int
7947main ()
7948{
7949return exit ();
7950  ;
7951  return 0;
7952}
7953_ACEOF
7954if ac_fn_cxx_try_link "$LINENO"; then :
7955  eval "$as_ac_Lib=yes"
7956else
7957  eval "$as_ac_Lib=no"
7958fi
7959rm -f core conftest.err conftest.$ac_objext \
7960    conftest$ac_exeext conftest.$ac_ext
7961LIBS=$ac_check_lib_save_LIBS
7962fi
7963eval ac_res=\$$as_ac_Lib
7964	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7965$as_echo "$ac_res" >&6; }
7966if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7967  ax_boost_actual_lib="-l$ax_boost_lib"; break
7968fi
7969
7970    done
7971fi
7972
7973if test "x$ax_boost_actual_lib" = "x"; then
7974    as_fn_error $? "Could not find a working version of the library!" "$LINENO" 5
7975fi
7976
7977eval BOOST_CHRONO_LIB="$ax_boost_actual_lib"
7978
7979CPPFLAGS="$CPPFLAGS_SAVED"
7980LDFLAGS="$LDFLAGS_SAVED"
7981
7982
7983
7984# Check whether --with-boost-filesystem was given.
7985if test "${with_boost_filesystem+set}" = set; then :
7986  withval=$with_boost_filesystem; ax_boost_lib="$withval"
7987else
7988  ax_boost_lib="boost_filesystem"
7989fi
7990
7991
7992CPPFLAGS_SAVED="$CPPFLAGS"
7993CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
7994export CPPFLAGS
7995
7996LDFLAGS_SAVED="$LDFLAGS"
7997LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
7998export LDFLAGS
7999
8000if test x$enable_sanity_checks != xno; then :
8001  as_ac_Lib=`$as_echo "ac_cv_lib_$ax_boost_lib''_exit" | $as_tr_sh`
8002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_boost_lib" >&5
8003$as_echo_n "checking for exit in -l$ax_boost_lib... " >&6; }
8004if eval \${$as_ac_Lib+:} false; then :
8005  $as_echo_n "(cached) " >&6
8006else
8007  ac_check_lib_save_LIBS=$LIBS
8008LIBS="-l$ax_boost_lib  $LIBS"
8009cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8010/* end confdefs.h.  */
8011
8012/* Override any GCC internal prototype to avoid an error.
8013   Use char because int might match the return type of a GCC
8014   builtin and then its argument prototype would still apply.  */
8015#ifdef __cplusplus
8016extern "C"
8017#endif
8018char exit ();
8019int
8020main ()
8021{
8022return exit ();
8023  ;
8024  return 0;
8025}
8026_ACEOF
8027if ac_fn_cxx_try_link "$LINENO"; then :
8028  eval "$as_ac_Lib=yes"
8029else
8030  eval "$as_ac_Lib=no"
8031fi
8032rm -f core conftest.err conftest.$ac_objext \
8033    conftest$ac_exeext conftest.$ac_ext
8034LIBS=$ac_check_lib_save_LIBS
8035fi
8036eval ac_res=\$$as_ac_Lib
8037	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8038$as_echo "$ac_res" >&6; }
8039if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
8040  ax_boost_actual_lib="-l$ax_boost_lib"
8041fi
8042
8043else
8044  ax_boost_actual_lib="-l$ax_boost_lib"
8045fi
8046
8047if test "x$ax_boost_actual_lib" = "x"; then
8048    for lib in `ls -r $BOOSTLIBDIR/libboost_filesystem* 2>/dev/null | sed 's,.*/lib,,' | sed 's,\..*,,'`; do
8049        ax_boost_lib=${lib}
8050        as_ac_Lib=`$as_echo "ac_cv_lib_$ax_boost_lib''_exit" | $as_tr_sh`
8051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_boost_lib" >&5
8052$as_echo_n "checking for exit in -l$ax_boost_lib... " >&6; }
8053if eval \${$as_ac_Lib+:} false; then :
8054  $as_echo_n "(cached) " >&6
8055else
8056  ac_check_lib_save_LIBS=$LIBS
8057LIBS="-l$ax_boost_lib  $LIBS"
8058cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8059/* end confdefs.h.  */
8060
8061/* Override any GCC internal prototype to avoid an error.
8062   Use char because int might match the return type of a GCC
8063   builtin and then its argument prototype would still apply.  */
8064#ifdef __cplusplus
8065extern "C"
8066#endif
8067char exit ();
8068int
8069main ()
8070{
8071return exit ();
8072  ;
8073  return 0;
8074}
8075_ACEOF
8076if ac_fn_cxx_try_link "$LINENO"; then :
8077  eval "$as_ac_Lib=yes"
8078else
8079  eval "$as_ac_Lib=no"
8080fi
8081rm -f core conftest.err conftest.$ac_objext \
8082    conftest$ac_exeext conftest.$ac_ext
8083LIBS=$ac_check_lib_save_LIBS
8084fi
8085eval ac_res=\$$as_ac_Lib
8086	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8087$as_echo "$ac_res" >&6; }
8088if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
8089  ax_boost_actual_lib="-l$ax_boost_lib"; break
8090fi
8091
8092    done
8093fi
8094
8095if test "x$ax_boost_actual_lib" = "x"; then
8096    for lib in `ls -r $BOOSTLIBDIR/boost_filesystem* 2>/dev/null | sed 's,.*/,,' | sed -e 's,\..*,,'` ; do
8097        ax_boost_lib=${lib}
8098        as_ac_Lib=`$as_echo "ac_cv_lib_$ax_boost_lib''_exit" | $as_tr_sh`
8099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_boost_lib" >&5
8100$as_echo_n "checking for exit in -l$ax_boost_lib... " >&6; }
8101if eval \${$as_ac_Lib+:} false; then :
8102  $as_echo_n "(cached) " >&6
8103else
8104  ac_check_lib_save_LIBS=$LIBS
8105LIBS="-l$ax_boost_lib  $LIBS"
8106cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8107/* end confdefs.h.  */
8108
8109/* Override any GCC internal prototype to avoid an error.
8110   Use char because int might match the return type of a GCC
8111   builtin and then its argument prototype would still apply.  */
8112#ifdef __cplusplus
8113extern "C"
8114#endif
8115char exit ();
8116int
8117main ()
8118{
8119return exit ();
8120  ;
8121  return 0;
8122}
8123_ACEOF
8124if ac_fn_cxx_try_link "$LINENO"; then :
8125  eval "$as_ac_Lib=yes"
8126else
8127  eval "$as_ac_Lib=no"
8128fi
8129rm -f core conftest.err conftest.$ac_objext \
8130    conftest$ac_exeext conftest.$ac_ext
8131LIBS=$ac_check_lib_save_LIBS
8132fi
8133eval ac_res=\$$as_ac_Lib
8134	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8135$as_echo "$ac_res" >&6; }
8136if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
8137  ax_boost_actual_lib="-l$ax_boost_lib"; break
8138fi
8139
8140    done
8141fi
8142
8143if test "x$ax_boost_actual_lib" = "x"; then
8144    as_fn_error $? "Could not find a working version of the library!" "$LINENO" 5
8145fi
8146
8147eval BOOST_FILESYSTEM_LIB="$ax_boost_actual_lib"
8148
8149CPPFLAGS="$CPPFLAGS_SAVED"
8150LDFLAGS="$LDFLAGS_SAVED"
8151
8152
8153
8154# Check whether --with-boost-locale was given.
8155if test "${with_boost_locale+set}" = set; then :
8156  withval=$with_boost_locale; ax_boost_lib="$withval"
8157else
8158  ax_boost_lib="boost_locale"
8159fi
8160
8161
8162CPPFLAGS_SAVED="$CPPFLAGS"
8163CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
8164export CPPFLAGS
8165
8166LDFLAGS_SAVED="$LDFLAGS"
8167LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
8168export LDFLAGS
8169
8170if test x$enable_sanity_checks != xno; then :
8171  as_ac_Lib=`$as_echo "ac_cv_lib_$ax_boost_lib''_exit" | $as_tr_sh`
8172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_boost_lib" >&5
8173$as_echo_n "checking for exit in -l$ax_boost_lib... " >&6; }
8174if eval \${$as_ac_Lib+:} false; then :
8175  $as_echo_n "(cached) " >&6
8176else
8177  ac_check_lib_save_LIBS=$LIBS
8178LIBS="-l$ax_boost_lib  $LIBS"
8179cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8180/* end confdefs.h.  */
8181
8182/* Override any GCC internal prototype to avoid an error.
8183   Use char because int might match the return type of a GCC
8184   builtin and then its argument prototype would still apply.  */
8185#ifdef __cplusplus
8186extern "C"
8187#endif
8188char exit ();
8189int
8190main ()
8191{
8192return exit ();
8193  ;
8194  return 0;
8195}
8196_ACEOF
8197if ac_fn_cxx_try_link "$LINENO"; then :
8198  eval "$as_ac_Lib=yes"
8199else
8200  eval "$as_ac_Lib=no"
8201fi
8202rm -f core conftest.err conftest.$ac_objext \
8203    conftest$ac_exeext conftest.$ac_ext
8204LIBS=$ac_check_lib_save_LIBS
8205fi
8206eval ac_res=\$$as_ac_Lib
8207	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8208$as_echo "$ac_res" >&6; }
8209if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
8210  ax_boost_actual_lib="-l$ax_boost_lib"
8211fi
8212
8213else
8214  ax_boost_actual_lib="-l$ax_boost_lib"
8215fi
8216
8217if test "x$ax_boost_actual_lib" = "x"; then
8218    for lib in `ls -r $BOOSTLIBDIR/libboost_locale* 2>/dev/null | sed 's,.*/lib,,' | sed 's,\..*,,'`; do
8219        ax_boost_lib=${lib}
8220        as_ac_Lib=`$as_echo "ac_cv_lib_$ax_boost_lib''_exit" | $as_tr_sh`
8221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_boost_lib" >&5
8222$as_echo_n "checking for exit in -l$ax_boost_lib... " >&6; }
8223if eval \${$as_ac_Lib+:} false; then :
8224  $as_echo_n "(cached) " >&6
8225else
8226  ac_check_lib_save_LIBS=$LIBS
8227LIBS="-l$ax_boost_lib  $LIBS"
8228cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8229/* end confdefs.h.  */
8230
8231/* Override any GCC internal prototype to avoid an error.
8232   Use char because int might match the return type of a GCC
8233   builtin and then its argument prototype would still apply.  */
8234#ifdef __cplusplus
8235extern "C"
8236#endif
8237char exit ();
8238int
8239main ()
8240{
8241return exit ();
8242  ;
8243  return 0;
8244}
8245_ACEOF
8246if ac_fn_cxx_try_link "$LINENO"; then :
8247  eval "$as_ac_Lib=yes"
8248else
8249  eval "$as_ac_Lib=no"
8250fi
8251rm -f core conftest.err conftest.$ac_objext \
8252    conftest$ac_exeext conftest.$ac_ext
8253LIBS=$ac_check_lib_save_LIBS
8254fi
8255eval ac_res=\$$as_ac_Lib
8256	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8257$as_echo "$ac_res" >&6; }
8258if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
8259  ax_boost_actual_lib="-l$ax_boost_lib"; break
8260fi
8261
8262    done
8263fi
8264
8265if test "x$ax_boost_actual_lib" = "x"; then
8266    for lib in `ls -r $BOOSTLIBDIR/boost_locale* 2>/dev/null | sed 's,.*/,,' | sed -e 's,\..*,,'` ; do
8267        ax_boost_lib=${lib}
8268        as_ac_Lib=`$as_echo "ac_cv_lib_$ax_boost_lib''_exit" | $as_tr_sh`
8269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_boost_lib" >&5
8270$as_echo_n "checking for exit in -l$ax_boost_lib... " >&6; }
8271if eval \${$as_ac_Lib+:} false; then :
8272  $as_echo_n "(cached) " >&6
8273else
8274  ac_check_lib_save_LIBS=$LIBS
8275LIBS="-l$ax_boost_lib  $LIBS"
8276cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8277/* end confdefs.h.  */
8278
8279/* Override any GCC internal prototype to avoid an error.
8280   Use char because int might match the return type of a GCC
8281   builtin and then its argument prototype would still apply.  */
8282#ifdef __cplusplus
8283extern "C"
8284#endif
8285char exit ();
8286int
8287main ()
8288{
8289return exit ();
8290  ;
8291  return 0;
8292}
8293_ACEOF
8294if ac_fn_cxx_try_link "$LINENO"; then :
8295  eval "$as_ac_Lib=yes"
8296else
8297  eval "$as_ac_Lib=no"
8298fi
8299rm -f core conftest.err conftest.$ac_objext \
8300    conftest$ac_exeext conftest.$ac_ext
8301LIBS=$ac_check_lib_save_LIBS
8302fi
8303eval ac_res=\$$as_ac_Lib
8304	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8305$as_echo "$ac_res" >&6; }
8306if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
8307  ax_boost_actual_lib="-l$ax_boost_lib"; break
8308fi
8309
8310    done
8311fi
8312
8313if test "x$ax_boost_actual_lib" = "x"; then
8314    as_fn_error $? "Could not find a working version of the library!" "$LINENO" 5
8315fi
8316
8317eval BOOST_LOCALE_LIB="$ax_boost_actual_lib"
8318
8319CPPFLAGS="$CPPFLAGS_SAVED"
8320LDFLAGS="$LDFLAGS_SAVED"
8321
8322
8323
8324# Check whether --with-boost-regex was given.
8325if test "${with_boost_regex+set}" = set; then :
8326  withval=$with_boost_regex; ax_boost_lib="$withval"
8327else
8328  ax_boost_lib="boost_regex"
8329fi
8330
8331
8332CPPFLAGS_SAVED="$CPPFLAGS"
8333CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
8334export CPPFLAGS
8335
8336LDFLAGS_SAVED="$LDFLAGS"
8337LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
8338export LDFLAGS
8339
8340if test x$enable_sanity_checks != xno; then :
8341  as_ac_Lib=`$as_echo "ac_cv_lib_$ax_boost_lib''_exit" | $as_tr_sh`
8342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_boost_lib" >&5
8343$as_echo_n "checking for exit in -l$ax_boost_lib... " >&6; }
8344if eval \${$as_ac_Lib+:} false; then :
8345  $as_echo_n "(cached) " >&6
8346else
8347  ac_check_lib_save_LIBS=$LIBS
8348LIBS="-l$ax_boost_lib  $LIBS"
8349cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8350/* end confdefs.h.  */
8351
8352/* Override any GCC internal prototype to avoid an error.
8353   Use char because int might match the return type of a GCC
8354   builtin and then its argument prototype would still apply.  */
8355#ifdef __cplusplus
8356extern "C"
8357#endif
8358char exit ();
8359int
8360main ()
8361{
8362return exit ();
8363  ;
8364  return 0;
8365}
8366_ACEOF
8367if ac_fn_cxx_try_link "$LINENO"; then :
8368  eval "$as_ac_Lib=yes"
8369else
8370  eval "$as_ac_Lib=no"
8371fi
8372rm -f core conftest.err conftest.$ac_objext \
8373    conftest$ac_exeext conftest.$ac_ext
8374LIBS=$ac_check_lib_save_LIBS
8375fi
8376eval ac_res=\$$as_ac_Lib
8377	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8378$as_echo "$ac_res" >&6; }
8379if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
8380  ax_boost_actual_lib="-l$ax_boost_lib"
8381fi
8382
8383else
8384  ax_boost_actual_lib="-l$ax_boost_lib"
8385fi
8386
8387if test "x$ax_boost_actual_lib" = "x"; then
8388    for lib in `ls -r $BOOSTLIBDIR/libboost_regex* 2>/dev/null | sed 's,.*/lib,,' | sed 's,\..*,,'`; do
8389        ax_boost_lib=${lib}
8390        as_ac_Lib=`$as_echo "ac_cv_lib_$ax_boost_lib''_exit" | $as_tr_sh`
8391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_boost_lib" >&5
8392$as_echo_n "checking for exit in -l$ax_boost_lib... " >&6; }
8393if eval \${$as_ac_Lib+:} false; then :
8394  $as_echo_n "(cached) " >&6
8395else
8396  ac_check_lib_save_LIBS=$LIBS
8397LIBS="-l$ax_boost_lib  $LIBS"
8398cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8399/* end confdefs.h.  */
8400
8401/* Override any GCC internal prototype to avoid an error.
8402   Use char because int might match the return type of a GCC
8403   builtin and then its argument prototype would still apply.  */
8404#ifdef __cplusplus
8405extern "C"
8406#endif
8407char exit ();
8408int
8409main ()
8410{
8411return exit ();
8412  ;
8413  return 0;
8414}
8415_ACEOF
8416if ac_fn_cxx_try_link "$LINENO"; then :
8417  eval "$as_ac_Lib=yes"
8418else
8419  eval "$as_ac_Lib=no"
8420fi
8421rm -f core conftest.err conftest.$ac_objext \
8422    conftest$ac_exeext conftest.$ac_ext
8423LIBS=$ac_check_lib_save_LIBS
8424fi
8425eval ac_res=\$$as_ac_Lib
8426	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8427$as_echo "$ac_res" >&6; }
8428if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
8429  ax_boost_actual_lib="-l$ax_boost_lib"; break
8430fi
8431
8432    done
8433fi
8434
8435if test "x$ax_boost_actual_lib" = "x"; then
8436    for lib in `ls -r $BOOSTLIBDIR/boost_regex* 2>/dev/null | sed 's,.*/,,' | sed -e 's,\..*,,'` ; do
8437        ax_boost_lib=${lib}
8438        as_ac_Lib=`$as_echo "ac_cv_lib_$ax_boost_lib''_exit" | $as_tr_sh`
8439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_boost_lib" >&5
8440$as_echo_n "checking for exit in -l$ax_boost_lib... " >&6; }
8441if eval \${$as_ac_Lib+:} false; then :
8442  $as_echo_n "(cached) " >&6
8443else
8444  ac_check_lib_save_LIBS=$LIBS
8445LIBS="-l$ax_boost_lib  $LIBS"
8446cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8447/* end confdefs.h.  */
8448
8449/* Override any GCC internal prototype to avoid an error.
8450   Use char because int might match the return type of a GCC
8451   builtin and then its argument prototype would still apply.  */
8452#ifdef __cplusplus
8453extern "C"
8454#endif
8455char exit ();
8456int
8457main ()
8458{
8459return exit ();
8460  ;
8461  return 0;
8462}
8463_ACEOF
8464if ac_fn_cxx_try_link "$LINENO"; then :
8465  eval "$as_ac_Lib=yes"
8466else
8467  eval "$as_ac_Lib=no"
8468fi
8469rm -f core conftest.err conftest.$ac_objext \
8470    conftest$ac_exeext conftest.$ac_ext
8471LIBS=$ac_check_lib_save_LIBS
8472fi
8473eval ac_res=\$$as_ac_Lib
8474	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8475$as_echo "$ac_res" >&6; }
8476if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
8477  ax_boost_actual_lib="-l$ax_boost_lib"; break
8478fi
8479
8480    done
8481fi
8482
8483if test "x$ax_boost_actual_lib" = "x"; then
8484    as_fn_error $? "Could not find a working version of the library!" "$LINENO" 5
8485fi
8486
8487eval BOOST_REGEX_LIB="$ax_boost_actual_lib"
8488
8489CPPFLAGS="$CPPFLAGS_SAVED"
8490LDFLAGS="$LDFLAGS_SAVED"
8491
8492
8493
8494# Check whether --with-boost-system was given.
8495if test "${with_boost_system+set}" = set; then :
8496  withval=$with_boost_system; ax_boost_lib="$withval"
8497else
8498  ax_boost_lib="boost_system"
8499fi
8500
8501
8502CPPFLAGS_SAVED="$CPPFLAGS"
8503CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
8504export CPPFLAGS
8505
8506LDFLAGS_SAVED="$LDFLAGS"
8507LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
8508export LDFLAGS
8509
8510if test x$enable_sanity_checks != xno; then :
8511  as_ac_Lib=`$as_echo "ac_cv_lib_$ax_boost_lib''_exit" | $as_tr_sh`
8512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_boost_lib" >&5
8513$as_echo_n "checking for exit in -l$ax_boost_lib... " >&6; }
8514if eval \${$as_ac_Lib+:} false; then :
8515  $as_echo_n "(cached) " >&6
8516else
8517  ac_check_lib_save_LIBS=$LIBS
8518LIBS="-l$ax_boost_lib  $LIBS"
8519cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8520/* end confdefs.h.  */
8521
8522/* Override any GCC internal prototype to avoid an error.
8523   Use char because int might match the return type of a GCC
8524   builtin and then its argument prototype would still apply.  */
8525#ifdef __cplusplus
8526extern "C"
8527#endif
8528char exit ();
8529int
8530main ()
8531{
8532return exit ();
8533  ;
8534  return 0;
8535}
8536_ACEOF
8537if ac_fn_cxx_try_link "$LINENO"; then :
8538  eval "$as_ac_Lib=yes"
8539else
8540  eval "$as_ac_Lib=no"
8541fi
8542rm -f core conftest.err conftest.$ac_objext \
8543    conftest$ac_exeext conftest.$ac_ext
8544LIBS=$ac_check_lib_save_LIBS
8545fi
8546eval ac_res=\$$as_ac_Lib
8547	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8548$as_echo "$ac_res" >&6; }
8549if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
8550  ax_boost_actual_lib="-l$ax_boost_lib"
8551fi
8552
8553else
8554  ax_boost_actual_lib="-l$ax_boost_lib"
8555fi
8556
8557if test "x$ax_boost_actual_lib" = "x"; then
8558    for lib in `ls -r $BOOSTLIBDIR/libboost_system* 2>/dev/null | sed 's,.*/lib,,' | sed 's,\..*,,'`; do
8559        ax_boost_lib=${lib}
8560        as_ac_Lib=`$as_echo "ac_cv_lib_$ax_boost_lib''_exit" | $as_tr_sh`
8561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_boost_lib" >&5
8562$as_echo_n "checking for exit in -l$ax_boost_lib... " >&6; }
8563if eval \${$as_ac_Lib+:} false; then :
8564  $as_echo_n "(cached) " >&6
8565else
8566  ac_check_lib_save_LIBS=$LIBS
8567LIBS="-l$ax_boost_lib  $LIBS"
8568cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8569/* end confdefs.h.  */
8570
8571/* Override any GCC internal prototype to avoid an error.
8572   Use char because int might match the return type of a GCC
8573   builtin and then its argument prototype would still apply.  */
8574#ifdef __cplusplus
8575extern "C"
8576#endif
8577char exit ();
8578int
8579main ()
8580{
8581return exit ();
8582  ;
8583  return 0;
8584}
8585_ACEOF
8586if ac_fn_cxx_try_link "$LINENO"; then :
8587  eval "$as_ac_Lib=yes"
8588else
8589  eval "$as_ac_Lib=no"
8590fi
8591rm -f core conftest.err conftest.$ac_objext \
8592    conftest$ac_exeext conftest.$ac_ext
8593LIBS=$ac_check_lib_save_LIBS
8594fi
8595eval ac_res=\$$as_ac_Lib
8596	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8597$as_echo "$ac_res" >&6; }
8598if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
8599  ax_boost_actual_lib="-l$ax_boost_lib"; break
8600fi
8601
8602    done
8603fi
8604
8605if test "x$ax_boost_actual_lib" = "x"; then
8606    for lib in `ls -r $BOOSTLIBDIR/boost_system* 2>/dev/null | sed 's,.*/,,' | sed -e 's,\..*,,'` ; do
8607        ax_boost_lib=${lib}
8608        as_ac_Lib=`$as_echo "ac_cv_lib_$ax_boost_lib''_exit" | $as_tr_sh`
8609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_boost_lib" >&5
8610$as_echo_n "checking for exit in -l$ax_boost_lib... " >&6; }
8611if eval \${$as_ac_Lib+:} false; then :
8612  $as_echo_n "(cached) " >&6
8613else
8614  ac_check_lib_save_LIBS=$LIBS
8615LIBS="-l$ax_boost_lib  $LIBS"
8616cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8617/* end confdefs.h.  */
8618
8619/* Override any GCC internal prototype to avoid an error.
8620   Use char because int might match the return type of a GCC
8621   builtin and then its argument prototype would still apply.  */
8622#ifdef __cplusplus
8623extern "C"
8624#endif
8625char exit ();
8626int
8627main ()
8628{
8629return exit ();
8630  ;
8631  return 0;
8632}
8633_ACEOF
8634if ac_fn_cxx_try_link "$LINENO"; then :
8635  eval "$as_ac_Lib=yes"
8636else
8637  eval "$as_ac_Lib=no"
8638fi
8639rm -f core conftest.err conftest.$ac_objext \
8640    conftest$ac_exeext conftest.$ac_ext
8641LIBS=$ac_check_lib_save_LIBS
8642fi
8643eval ac_res=\$$as_ac_Lib
8644	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8645$as_echo "$ac_res" >&6; }
8646if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
8647  ax_boost_actual_lib="-l$ax_boost_lib"; break
8648fi
8649
8650    done
8651fi
8652
8653if test "x$ax_boost_actual_lib" = "x"; then
8654    as_fn_error $? "Could not find a working version of the library!" "$LINENO" 5
8655fi
8656
8657eval BOOST_SYSTEM_LIB="$ax_boost_actual_lib"
8658
8659CPPFLAGS="$CPPFLAGS_SAVED"
8660LDFLAGS="$LDFLAGS_SAVED"
8661
8662
8663
8664# Check whether --with-boost-thread was given.
8665if test "${with_boost_thread+set}" = set; then :
8666  withval=$with_boost_thread; ax_boost_lib="$withval"
8667else
8668  ax_boost_lib="boost_thread"
8669fi
8670
8671
8672CPPFLAGS_SAVED="$CPPFLAGS"
8673CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
8674export CPPFLAGS
8675
8676LDFLAGS_SAVED="$LDFLAGS"
8677LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
8678export LDFLAGS
8679
8680if test x$enable_sanity_checks != xno; then :
8681  as_ac_Lib=`$as_echo "ac_cv_lib_$ax_boost_lib''_exit" | $as_tr_sh`
8682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_boost_lib" >&5
8683$as_echo_n "checking for exit in -l$ax_boost_lib... " >&6; }
8684if eval \${$as_ac_Lib+:} false; then :
8685  $as_echo_n "(cached) " >&6
8686else
8687  ac_check_lib_save_LIBS=$LIBS
8688LIBS="-l$ax_boost_lib  $LIBS"
8689cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690/* end confdefs.h.  */
8691
8692/* Override any GCC internal prototype to avoid an error.
8693   Use char because int might match the return type of a GCC
8694   builtin and then its argument prototype would still apply.  */
8695#ifdef __cplusplus
8696extern "C"
8697#endif
8698char exit ();
8699int
8700main ()
8701{
8702return exit ();
8703  ;
8704  return 0;
8705}
8706_ACEOF
8707if ac_fn_cxx_try_link "$LINENO"; then :
8708  eval "$as_ac_Lib=yes"
8709else
8710  eval "$as_ac_Lib=no"
8711fi
8712rm -f core conftest.err conftest.$ac_objext \
8713    conftest$ac_exeext conftest.$ac_ext
8714LIBS=$ac_check_lib_save_LIBS
8715fi
8716eval ac_res=\$$as_ac_Lib
8717	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8718$as_echo "$ac_res" >&6; }
8719if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
8720  ax_boost_actual_lib="-l$ax_boost_lib"
8721fi
8722
8723else
8724  ax_boost_actual_lib="-l$ax_boost_lib"
8725fi
8726
8727if test "x$ax_boost_actual_lib" = "x"; then
8728    for lib in `ls -r $BOOSTLIBDIR/libboost_thread* 2>/dev/null | sed 's,.*/lib,,' | sed 's,\..*,,'`; do
8729        ax_boost_lib=${lib}
8730        as_ac_Lib=`$as_echo "ac_cv_lib_$ax_boost_lib''_exit" | $as_tr_sh`
8731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_boost_lib" >&5
8732$as_echo_n "checking for exit in -l$ax_boost_lib... " >&6; }
8733if eval \${$as_ac_Lib+:} false; then :
8734  $as_echo_n "(cached) " >&6
8735else
8736  ac_check_lib_save_LIBS=$LIBS
8737LIBS="-l$ax_boost_lib  $LIBS"
8738cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8739/* end confdefs.h.  */
8740
8741/* Override any GCC internal prototype to avoid an error.
8742   Use char because int might match the return type of a GCC
8743   builtin and then its argument prototype would still apply.  */
8744#ifdef __cplusplus
8745extern "C"
8746#endif
8747char exit ();
8748int
8749main ()
8750{
8751return exit ();
8752  ;
8753  return 0;
8754}
8755_ACEOF
8756if ac_fn_cxx_try_link "$LINENO"; then :
8757  eval "$as_ac_Lib=yes"
8758else
8759  eval "$as_ac_Lib=no"
8760fi
8761rm -f core conftest.err conftest.$ac_objext \
8762    conftest$ac_exeext conftest.$ac_ext
8763LIBS=$ac_check_lib_save_LIBS
8764fi
8765eval ac_res=\$$as_ac_Lib
8766	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8767$as_echo "$ac_res" >&6; }
8768if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
8769  ax_boost_actual_lib="-l$ax_boost_lib"; break
8770fi
8771
8772    done
8773fi
8774
8775if test "x$ax_boost_actual_lib" = "x"; then
8776    for lib in `ls -r $BOOSTLIBDIR/boost_thread* 2>/dev/null | sed 's,.*/,,' | sed -e 's,\..*,,'` ; do
8777        ax_boost_lib=${lib}
8778        as_ac_Lib=`$as_echo "ac_cv_lib_$ax_boost_lib''_exit" | $as_tr_sh`
8779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_boost_lib" >&5
8780$as_echo_n "checking for exit in -l$ax_boost_lib... " >&6; }
8781if eval \${$as_ac_Lib+:} false; then :
8782  $as_echo_n "(cached) " >&6
8783else
8784  ac_check_lib_save_LIBS=$LIBS
8785LIBS="-l$ax_boost_lib  $LIBS"
8786cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8787/* end confdefs.h.  */
8788
8789/* Override any GCC internal prototype to avoid an error.
8790   Use char because int might match the return type of a GCC
8791   builtin and then its argument prototype would still apply.  */
8792#ifdef __cplusplus
8793extern "C"
8794#endif
8795char exit ();
8796int
8797main ()
8798{
8799return exit ();
8800  ;
8801  return 0;
8802}
8803_ACEOF
8804if ac_fn_cxx_try_link "$LINENO"; then :
8805  eval "$as_ac_Lib=yes"
8806else
8807  eval "$as_ac_Lib=no"
8808fi
8809rm -f core conftest.err conftest.$ac_objext \
8810    conftest$ac_exeext conftest.$ac_ext
8811LIBS=$ac_check_lib_save_LIBS
8812fi
8813eval ac_res=\$$as_ac_Lib
8814	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8815$as_echo "$ac_res" >&6; }
8816if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
8817  ax_boost_actual_lib="-l$ax_boost_lib"; break
8818fi
8819
8820    done
8821fi
8822
8823if test "x$ax_boost_actual_lib" = "x"; then
8824    as_fn_error $? "Could not find a working version of the library!" "$LINENO" 5
8825fi
8826
8827eval BOOST_THREAD_LIB="$ax_boost_actual_lib"
8828
8829CPPFLAGS="$CPPFLAGS_SAVED"
8830LDFLAGS="$LDFLAGS_SAVED"
8831
8832
8833cppflags_bak="$CPPFLAGS"
8834CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
8835for ac_header in boost/spirit/home/phoenix/version.hpp
8836do :
8837  ac_fn_cxx_check_header_mongrel "$LINENO" "boost/spirit/home/phoenix/version.hpp" "ac_cv_header_boost_spirit_home_phoenix_version_hpp" "$ac_includes_default"
8838if test "x$ac_cv_header_boost_spirit_home_phoenix_version_hpp" = xyes; then :
8839  cat >>confdefs.h <<_ACEOF
8840#define HAVE_BOOST_SPIRIT_HOME_PHOENIX_VERSION_HPP 1
8841_ACEOF
8842
8843fi
8844
8845done
8846
8847CPPFLAGS=$cppflags_bak
8848
8849
8850pkg_failed=no
8851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU_UC" >&5
8852$as_echo_n "checking for ICU_UC... " >&6; }
8853
8854if test -n "$ICU_UC_CFLAGS"; then
8855    pkg_cv_ICU_UC_CFLAGS="$ICU_UC_CFLAGS"
8856 elif test -n "$PKG_CONFIG"; then
8857    if test -n "$PKG_CONFIG" && \
8858    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc >= 4.8.1.1\""; } >&5
8859  ($PKG_CONFIG --exists --print-errors "icu-uc >= 4.8.1.1") 2>&5
8860  ac_status=$?
8861  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8862  test $ac_status = 0; }; then
8863  pkg_cv_ICU_UC_CFLAGS=`$PKG_CONFIG --cflags "icu-uc >= 4.8.1.1" 2>/dev/null`
8864		      test "x$?" != "x0" && pkg_failed=yes
8865else
8866  pkg_failed=yes
8867fi
8868 else
8869    pkg_failed=untried
8870fi
8871if test -n "$ICU_UC_LIBS"; then
8872    pkg_cv_ICU_UC_LIBS="$ICU_UC_LIBS"
8873 elif test -n "$PKG_CONFIG"; then
8874    if test -n "$PKG_CONFIG" && \
8875    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc >= 4.8.1.1\""; } >&5
8876  ($PKG_CONFIG --exists --print-errors "icu-uc >= 4.8.1.1") 2>&5
8877  ac_status=$?
8878  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8879  test $ac_status = 0; }; then
8880  pkg_cv_ICU_UC_LIBS=`$PKG_CONFIG --libs "icu-uc >= 4.8.1.1" 2>/dev/null`
8881		      test "x$?" != "x0" && pkg_failed=yes
8882else
8883  pkg_failed=yes
8884fi
8885 else
8886    pkg_failed=untried
8887fi
8888
8889
8890
8891if test $pkg_failed = yes; then
8892   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8893$as_echo "no" >&6; }
8894
8895if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8896        _pkg_short_errors_supported=yes
8897else
8898        _pkg_short_errors_supported=no
8899fi
8900        if test $_pkg_short_errors_supported = yes; then
8901	        ICU_UC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "icu-uc >= 4.8.1.1" 2>&1`
8902        else
8903	        ICU_UC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "icu-uc >= 4.8.1.1" 2>&1`
8904        fi
8905	# Put the nasty error message in config.log where it belongs
8906	echo "$ICU_UC_PKG_ERRORS" >&5
8907
8908	as_fn_error $? "Package requirements (icu-uc >= 4.8.1.1) were not met:
8909
8910$ICU_UC_PKG_ERRORS
8911
8912Consider adjusting the PKG_CONFIG_PATH environment variable if you
8913installed software in a non-standard prefix.
8914
8915Alternatively, you may set the environment variables ICU_UC_CFLAGS
8916and ICU_UC_LIBS to avoid the need to call pkg-config.
8917See the pkg-config man page for more details." "$LINENO" 5
8918elif test $pkg_failed = untried; then
8919     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8920$as_echo "no" >&6; }
8921	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8922$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8923as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
8924is in your PATH or set the PKG_CONFIG environment variable to the full
8925path to pkg-config.
8926
8927Alternatively, you may set the environment variables ICU_UC_CFLAGS
8928and ICU_UC_LIBS to avoid the need to call pkg-config.
8929See the pkg-config man page for more details.
8930
8931To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8932See \`config.log' for more details" "$LINENO" 5; }
8933else
8934	ICU_UC_CFLAGS=$pkg_cv_ICU_UC_CFLAGS
8935	ICU_UC_LIBS=$pkg_cv_ICU_UC_LIBS
8936        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8937$as_echo "yes" >&6; }
8938
8939fi
8940
8941pkg_failed=no
8942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU_I18N" >&5
8943$as_echo_n "checking for ICU_I18N... " >&6; }
8944
8945if test -n "$ICU_I18N_CFLAGS"; then
8946    pkg_cv_ICU_I18N_CFLAGS="$ICU_I18N_CFLAGS"
8947 elif test -n "$PKG_CONFIG"; then
8948    if test -n "$PKG_CONFIG" && \
8949    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-i18n >= 4.8.1.1\""; } >&5
8950  ($PKG_CONFIG --exists --print-errors "icu-i18n >= 4.8.1.1") 2>&5
8951  ac_status=$?
8952  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8953  test $ac_status = 0; }; then
8954  pkg_cv_ICU_I18N_CFLAGS=`$PKG_CONFIG --cflags "icu-i18n >= 4.8.1.1" 2>/dev/null`
8955		      test "x$?" != "x0" && pkg_failed=yes
8956else
8957  pkg_failed=yes
8958fi
8959 else
8960    pkg_failed=untried
8961fi
8962if test -n "$ICU_I18N_LIBS"; then
8963    pkg_cv_ICU_I18N_LIBS="$ICU_I18N_LIBS"
8964 elif test -n "$PKG_CONFIG"; then
8965    if test -n "$PKG_CONFIG" && \
8966    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-i18n >= 4.8.1.1\""; } >&5
8967  ($PKG_CONFIG --exists --print-errors "icu-i18n >= 4.8.1.1") 2>&5
8968  ac_status=$?
8969  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8970  test $ac_status = 0; }; then
8971  pkg_cv_ICU_I18N_LIBS=`$PKG_CONFIG --libs "icu-i18n >= 4.8.1.1" 2>/dev/null`
8972		      test "x$?" != "x0" && pkg_failed=yes
8973else
8974  pkg_failed=yes
8975fi
8976 else
8977    pkg_failed=untried
8978fi
8979
8980
8981
8982if test $pkg_failed = yes; then
8983   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8984$as_echo "no" >&6; }
8985
8986if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8987        _pkg_short_errors_supported=yes
8988else
8989        _pkg_short_errors_supported=no
8990fi
8991        if test $_pkg_short_errors_supported = yes; then
8992	        ICU_I18N_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "icu-i18n >= 4.8.1.1" 2>&1`
8993        else
8994	        ICU_I18N_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "icu-i18n >= 4.8.1.1" 2>&1`
8995        fi
8996	# Put the nasty error message in config.log where it belongs
8997	echo "$ICU_I18N_PKG_ERRORS" >&5
8998
8999	as_fn_error $? "Package requirements (icu-i18n >= 4.8.1.1) were not met:
9000
9001$ICU_I18N_PKG_ERRORS
9002
9003Consider adjusting the PKG_CONFIG_PATH environment variable if you
9004installed software in a non-standard prefix.
9005
9006Alternatively, you may set the environment variables ICU_I18N_CFLAGS
9007and ICU_I18N_LIBS to avoid the need to call pkg-config.
9008See the pkg-config man page for more details." "$LINENO" 5
9009elif test $pkg_failed = untried; then
9010     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9011$as_echo "no" >&6; }
9012	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9013$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9014as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
9015is in your PATH or set the PKG_CONFIG environment variable to the full
9016path to pkg-config.
9017
9018Alternatively, you may set the environment variables ICU_I18N_CFLAGS
9019and ICU_I18N_LIBS to avoid the need to call pkg-config.
9020See the pkg-config man page for more details.
9021
9022To get pkg-config, see <http://pkg-config.freedesktop.org/>.
9023See \`config.log' for more details" "$LINENO" 5; }
9024else
9025	ICU_I18N_CFLAGS=$pkg_cv_ICU_I18N_CFLAGS
9026	ICU_I18N_LIBS=$pkg_cv_ICU_I18N_LIBS
9027        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9028$as_echo "yes" >&6; }
9029
9030fi
9031
9032########
9033## boost
9034########
9035if test x$enable_sanity_checks != xno; then :
9036
9037
9038  aegisub_save_LIBS="$LIBS"
9039  aegisub_save_CPPFLAGS="$CPPFLAGS"
9040  CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
9041  LIBS="$LIBS $BOOST_LDFLAGS $BOOST_REGEX_LIB $ICU_UC_LIBS $ICU_I18N_LIBS"
9042      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether boost ICU support works" >&5
9043$as_echo_n "checking whether boost ICU support works... " >&6; }
9044if ${agi_cv_with_boost_icu+:} false; then :
9045  $as_echo_n "(cached) " >&6
9046else
9047  if test "$cross_compiling" = yes; then :
9048  if test $? -ne 0; then :
9049  eval agi_cv_with_boost_icu="no"
9050else
9051  eval agi_cv_with_boost_icu="yes"
9052fi
9053else
9054  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9055/* end confdefs.h.  */
9056
9057  #include <boost/regex/icu.hpp>
9058  int main() {
9059    auto regex = boost::make_u32regex(".", boost::u32regex::perl);
9060    boost::smatch result;
9061    u32regex_search("a", result, regex, boost::match_default);
9062  }
9063_ACEOF
9064if ac_fn_cxx_try_run "$LINENO"; then :
9065  eval agi_cv_with_boost_icu="yes"
9066else
9067  eval agi_cv_with_boost_icu="no"
9068fi
9069rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9070  conftest.$ac_objext conftest.beam conftest.$ac_ext
9071fi
9072
9073fi
9074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $agi_cv_with_boost_icu" >&5
9075$as_echo "$agi_cv_with_boost_icu" >&6; }
9076  CPPFLAGS="$aegisub_save_CPPFLAGS"
9077  LIBS="$aegisub_save_LIBS"
9078
9079
9080  if test x$agi_cv_with_boost_icu = xno; then :
9081  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9082$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9083as_fn_error $? "Aegisub requires that boost be built with ICU support.
9084See \`config.log' for more details" "$LINENO" 5; }
9085fi
9086
9087fi
9088
9089########
9090## iconv
9091########
9092
9093
9094
9095if test -z "$ICONV_LIBS"; then :
9096  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing iconv_open" >&5
9097$as_echo_n "checking for library containing iconv_open... " >&6; }
9098if ${ac_cv_search_iconv_open+:} false; then :
9099  $as_echo_n "(cached) " >&6
9100else
9101  ac_func_search_save_LIBS=$LIBS
9102cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9103/* end confdefs.h.  */
9104
9105/* Override any GCC internal prototype to avoid an error.
9106   Use char because int might match the return type of a GCC
9107   builtin and then its argument prototype would still apply.  */
9108#ifdef __cplusplus
9109extern "C"
9110#endif
9111char iconv_open ();
9112int
9113main ()
9114{
9115return iconv_open ();
9116  ;
9117  return 0;
9118}
9119_ACEOF
9120for ac_lib in '' iconv; do
9121  if test -z "$ac_lib"; then
9122    ac_res="none required"
9123  else
9124    ac_res=-l$ac_lib
9125    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9126  fi
9127  if ac_fn_cxx_try_link "$LINENO"; then :
9128  ac_cv_search_iconv_open=$ac_res
9129fi
9130rm -f core conftest.err conftest.$ac_objext \
9131    conftest$ac_exeext
9132  if ${ac_cv_search_iconv_open+:} false; then :
9133  break
9134fi
9135done
9136if ${ac_cv_search_iconv_open+:} false; then :
9137
9138else
9139  ac_cv_search_iconv_open=no
9140fi
9141rm conftest.$ac_ext
9142LIBS=$ac_func_search_save_LIBS
9143fi
9144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_iconv_open" >&5
9145$as_echo "$ac_cv_search_iconv_open" >&6; }
9146ac_res=$ac_cv_search_iconv_open
9147if test "$ac_res" != no; then :
9148  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9149
9150fi
9151
9152fi
9153
9154
9155  aegisub_save_LIBS="$LIBS"
9156  aegisub_save_CPPFLAGS="$CPPFLAGS"
9157  CPPFLAGS="$CPPFLAGS $ICONV_CFLAGS"
9158  LIBS="$LIBS $ICONV_LIBS"
9159      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iconv works" >&5
9160$as_echo_n "checking whether iconv works... " >&6; }
9161if ${agi_cv_with_iconv+:} false; then :
9162  $as_echo_n "(cached) " >&6
9163else
9164  if test "$cross_compiling" = yes; then :
9165  if test $? -ne 0; then :
9166  eval agi_cv_with_iconv="no"
9167else
9168  eval agi_cv_with_iconv="yes"
9169fi
9170else
9171  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9172/* end confdefs.h.  */
9173
9174#include <iconv.h>
9175int main() {
9176  return !iconv_open("UTF-8", "UTF-8");
9177}
9178_ACEOF
9179if ac_fn_cxx_try_run "$LINENO"; then :
9180  eval agi_cv_with_iconv="yes"
9181else
9182  eval agi_cv_with_iconv="no"
9183fi
9184rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9185  conftest.$ac_objext conftest.beam conftest.$ac_ext
9186fi
9187
9188fi
9189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $agi_cv_with_iconv" >&5
9190$as_echo "$agi_cv_with_iconv" >&6; }
9191  CPPFLAGS="$aegisub_save_CPPFLAGS"
9192  LIBS="$aegisub_save_LIBS"
9193
9194
9195
9196
9197
9198if test x$agi_cv_with_iconv = xno; then :
9199  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9200$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9201as_fn_error $? "Please install a working iconv library.
9202See \`config.log' for more details" "$LINENO" 5; }
9203fi
9204
9205
9206  aegisub_save_LIBS="$LIBS"
9207  aegisub_save_CPPFLAGS="$CPPFLAGS"
9208  CPPFLAGS="$CPPFLAGS $ICONV_CFLAGS"
9209  LIBS="$LIBS $ICONV_LIBS"
9210      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iconv (const) works" >&5
9211$as_echo_n "checking whether iconv (const) works... " >&6; }
9212if ${agi_cv_with_iconv_const+:} false; then :
9213  $as_echo_n "(cached) " >&6
9214else
9215  if test "$cross_compiling" = yes; then :
9216  if test $? -ne 0; then :
9217  eval agi_cv_with_iconv_const="no"
9218else
9219  eval agi_cv_with_iconv_const="yes"
9220fi
9221else
9222  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9223/* end confdefs.h.  */
9224
9225#include <iconv.h>
9226int main(void) {
9227  iconv_t cd = iconv_open("UTF-16", "UTF-8");
9228  const char *in = "in";
9229  char *out = new char();
9230  size_t res, inbytesleft, outbytesleft;
9231  res = iconv(cd, &in, &inbytesleft, &out, &outbytesleft);
9232  return 0;
9233}
9234_ACEOF
9235if ac_fn_cxx_try_run "$LINENO"; then :
9236  eval agi_cv_with_iconv_const="yes"
9237else
9238  eval agi_cv_with_iconv_const="no"
9239fi
9240rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9241  conftest.$ac_objext conftest.beam conftest.$ac_ext
9242fi
9243
9244fi
9245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $agi_cv_with_iconv_const" >&5
9246$as_echo "$agi_cv_with_iconv_const" >&6; }
9247  CPPFLAGS="$aegisub_save_CPPFLAGS"
9248  LIBS="$aegisub_save_LIBS"
9249
9250
9251if test x$agi_cv_with_iconv_const = xyes; then :
9252
9253$as_echo "#define AGI_ICONV_CONST 1" >>confdefs.h
9254
9255fi
9256
9257###############
9258# Audio Players
9259###############
9260#######
9261## ALSA
9262#######
9263
9264# Check whether --with-alsa was given.
9265if test "${with_alsa+set}" = set; then :
9266  withval=$with_alsa;
9267fi
9268
9269
9270
9271
9272
9273ALSA_LIBS=${ALSA_LIBS:--lasound -lrt}
9274
9275if test x$with_alsa = xno; then :
9276  alsa_disabled="(disabled)"
9277else
9278  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_open in -lasound" >&5
9279$as_echo_n "checking for snd_pcm_open in -lasound... " >&6; }
9280if ${ac_cv_lib_asound_snd_pcm_open+:} false; then :
9281  $as_echo_n "(cached) " >&6
9282else
9283  ac_check_lib_save_LIBS=$LIBS
9284LIBS="-lasound $ALSA_LIBS $LIBS"
9285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9286/* end confdefs.h.  */
9287
9288/* Override any GCC internal prototype to avoid an error.
9289   Use char because int might match the return type of a GCC
9290   builtin and then its argument prototype would still apply.  */
9291#ifdef __cplusplus
9292extern "C"
9293#endif
9294char snd_pcm_open ();
9295int
9296main ()
9297{
9298return snd_pcm_open ();
9299  ;
9300  return 0;
9301}
9302_ACEOF
9303if ac_fn_cxx_try_link "$LINENO"; then :
9304  ac_cv_lib_asound_snd_pcm_open=yes
9305else
9306  ac_cv_lib_asound_snd_pcm_open=no
9307fi
9308rm -f core conftest.err conftest.$ac_objext \
9309    conftest$ac_exeext conftest.$ac_ext
9310LIBS=$ac_check_lib_save_LIBS
9311fi
9312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_open" >&5
9313$as_echo "$ac_cv_lib_asound_snd_pcm_open" >&6; }
9314if test "x$ac_cv_lib_asound_snd_pcm_open" = xyes; then :
9315  with_alsa="yes"
9316else
9317  with_alsa="no"
9318fi
9319
9320fi
9321
9322if test x$with_alsa = xyes; then :
9323
9324$as_echo "#define WITH_ALSA 1" >>confdefs.h
9325
9326fi
9327
9328
9329
9330
9331
9332#########
9333## OpenAL
9334#########
9335
9336# Check whether --with-openal was given.
9337if test "${with_openal+set}" = set; then :
9338  withval=$with_openal;
9339fi
9340
9341
9342if test x$build_darwin = xyes; then :
9343
9344  OPENAL_LIBS="-framework OpenAL"
9345  OPENAL_CFLAGS=""
9346
9347
9348  with_openal="yes"
9349
9350elif test x$with_openal = xno; then :
9351  openal_disabled="(disabled)"
9352else
9353
9354pkg_failed=no
9355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENAL" >&5
9356$as_echo_n "checking for OPENAL... " >&6; }
9357
9358if test -n "$OPENAL_CFLAGS"; then
9359    pkg_cv_OPENAL_CFLAGS="$OPENAL_CFLAGS"
9360 elif test -n "$PKG_CONFIG"; then
9361    if test -n "$PKG_CONFIG" && \
9362    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openal >= 0.0.8\""; } >&5
9363  ($PKG_CONFIG --exists --print-errors "openal >= 0.0.8") 2>&5
9364  ac_status=$?
9365  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9366  test $ac_status = 0; }; then
9367  pkg_cv_OPENAL_CFLAGS=`$PKG_CONFIG --cflags "openal >= 0.0.8" 2>/dev/null`
9368		      test "x$?" != "x0" && pkg_failed=yes
9369else
9370  pkg_failed=yes
9371fi
9372 else
9373    pkg_failed=untried
9374fi
9375if test -n "$OPENAL_LIBS"; then
9376    pkg_cv_OPENAL_LIBS="$OPENAL_LIBS"
9377 elif test -n "$PKG_CONFIG"; then
9378    if test -n "$PKG_CONFIG" && \
9379    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openal >= 0.0.8\""; } >&5
9380  ($PKG_CONFIG --exists --print-errors "openal >= 0.0.8") 2>&5
9381  ac_status=$?
9382  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9383  test $ac_status = 0; }; then
9384  pkg_cv_OPENAL_LIBS=`$PKG_CONFIG --libs "openal >= 0.0.8" 2>/dev/null`
9385		      test "x$?" != "x0" && pkg_failed=yes
9386else
9387  pkg_failed=yes
9388fi
9389 else
9390    pkg_failed=untried
9391fi
9392
9393
9394
9395if test $pkg_failed = yes; then
9396   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9397$as_echo "no" >&6; }
9398
9399if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9400        _pkg_short_errors_supported=yes
9401else
9402        _pkg_short_errors_supported=no
9403fi
9404        if test $_pkg_short_errors_supported = yes; then
9405	        OPENAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openal >= 0.0.8" 2>&1`
9406        else
9407	        OPENAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openal >= 0.0.8" 2>&1`
9408        fi
9409	# Put the nasty error message in config.log where it belongs
9410	echo "$OPENAL_PKG_ERRORS" >&5
9411
9412	with_openal=no
9413elif test $pkg_failed = untried; then
9414     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9415$as_echo "no" >&6; }
9416	with_openal=no
9417else
9418	OPENAL_CFLAGS=$pkg_cv_OPENAL_CFLAGS
9419	OPENAL_LIBS=$pkg_cv_OPENAL_LIBS
9420        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9421$as_echo "yes" >&6; }
9422	with_openal=yes
9423fi
9424fi
9425
9426if test x$with_openal != xno; then :
9427
9428
9429  aegisub_save_LIBS="$LIBS"
9430  aegisub_save_CPPFLAGS="$CPPFLAGS"
9431  CPPFLAGS="$CPPFLAGS $OPENAL_CFLAGS"
9432  LIBS="$LIBS $OPENAL_LIBS"
9433      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenAL works" >&5
9434$as_echo_n "checking whether OpenAL works... " >&6; }
9435if ${agi_cv_with_openal+:} false; then :
9436  $as_echo_n "(cached) " >&6
9437else
9438  if test "$cross_compiling" = yes; then :
9439  if test $? -ne 0; then :
9440  eval agi_cv_with_openal="no"
9441else
9442  eval agi_cv_with_openal="yes"
9443fi
9444else
9445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9446/* end confdefs.h.  */
9447
9448#if defined(__APPLE__)
9449#include <OpenAL/AL.h>
9450#include <OpenAL/ALC.h>
9451#else
9452#include <AL/al.h>
9453#include <AL/alc.h>
9454#endif
9455int main(void) {
9456  ALCdevice *device = alcOpenDevice(0);
9457  if (!device) return 1;
9458  ALCcontext *context = alcCreateContext(device, 0);
9459  if (!context) return 1;
9460  return 0;
9461}
9462_ACEOF
9463if ac_fn_cxx_try_run "$LINENO"; then :
9464  eval agi_cv_with_openal="yes"
9465else
9466  eval agi_cv_with_openal="no"
9467fi
9468rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9469  conftest.$ac_objext conftest.beam conftest.$ac_ext
9470fi
9471
9472fi
9473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $agi_cv_with_openal" >&5
9474$as_echo "$agi_cv_with_openal" >&6; }
9475  CPPFLAGS="$aegisub_save_CPPFLAGS"
9476  LIBS="$aegisub_save_LIBS"
9477
9478
9479fi
9480
9481if test x$agi_cv_with_openal = xno && test x$with_openal = xyes; then :
9482
9483  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenAL detected, but it doesn''t work..." >&5
9484$as_echo "$as_me: WARNING: OpenAL detected, but it doesn''t work..." >&2;}
9485  with_openal="no"
9486
9487fi
9488
9489if test x$agi_cv_with_openal = xyes && test x$with_openal = xyes; then :
9490
9491$as_echo "#define WITH_OPENAL 1" >>confdefs.h
9492
9493fi
9494
9495
9496
9497######
9498## OSS
9499######
9500
9501
9502# Check whether --with-oss was given.
9503if test "${with_oss+set}" = set; then :
9504  withval=$with_oss;
9505fi
9506
9507
9508if test x$with_oss = xno; then :
9509  oss_disabled="(disabled)"
9510else
9511
9512  if test -z "$OSS_CFLAGS" && test -f "/etc/oss.conf"; then :
9513
9514    . /etc/oss.conf
9515    OSS_CFLAGS="-I${OSSLIBDIR}/include/sys"
9516
9517fi
9518  for ac_header in soundcard.h sys/soundcard.h
9519do :
9520  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9521ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9522if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9523  cat >>confdefs.h <<_ACEOF
9524#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9525_ACEOF
9526 with_oss="yes"
9527else
9528  with_oss="no"
9529fi
9530
9531done
9532
9533
9534fi
9535
9536if test x$with_oss = xyes; then :
9537
9538$as_echo "#define WITH_OSS 1" >>confdefs.h
9539
9540fi
9541
9542
9543
9544###################
9545# Simple pkg-config stuff
9546###################
9547
9548
9549
9550# Check whether --with-libpulse was given.
9551if test "${with_libpulse+set}" = set; then :
9552  withval=$with_libpulse;
9553fi
9554
9555  if test x$with_libpulse = xno; then :
9556  libpulse_disabled="(disabled)"
9557else
9558
9559pkg_failed=no
9560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPULSE" >&5
9561$as_echo_n "checking for LIBPULSE... " >&6; }
9562
9563if test -n "$LIBPULSE_CFLAGS"; then
9564    pkg_cv_LIBPULSE_CFLAGS="$LIBPULSE_CFLAGS"
9565 elif test -n "$PKG_CONFIG"; then
9566    if test -n "$PKG_CONFIG" && \
9567    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse >= 0.5\""; } >&5
9568  ($PKG_CONFIG --exists --print-errors "libpulse >= 0.5") 2>&5
9569  ac_status=$?
9570  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9571  test $ac_status = 0; }; then
9572  pkg_cv_LIBPULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse >= 0.5" 2>/dev/null`
9573		      test "x$?" != "x0" && pkg_failed=yes
9574else
9575  pkg_failed=yes
9576fi
9577 else
9578    pkg_failed=untried
9579fi
9580if test -n "$LIBPULSE_LIBS"; then
9581    pkg_cv_LIBPULSE_LIBS="$LIBPULSE_LIBS"
9582 elif test -n "$PKG_CONFIG"; then
9583    if test -n "$PKG_CONFIG" && \
9584    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse >= 0.5\""; } >&5
9585  ($PKG_CONFIG --exists --print-errors "libpulse >= 0.5") 2>&5
9586  ac_status=$?
9587  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9588  test $ac_status = 0; }; then
9589  pkg_cv_LIBPULSE_LIBS=`$PKG_CONFIG --libs "libpulse >= 0.5" 2>/dev/null`
9590		      test "x$?" != "x0" && pkg_failed=yes
9591else
9592  pkg_failed=yes
9593fi
9594 else
9595    pkg_failed=untried
9596fi
9597
9598
9599
9600if test $pkg_failed = yes; then
9601   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9602$as_echo "no" >&6; }
9603
9604if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9605        _pkg_short_errors_supported=yes
9606else
9607        _pkg_short_errors_supported=no
9608fi
9609        if test $_pkg_short_errors_supported = yes; then
9610	        LIBPULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse >= 0.5" 2>&1`
9611        else
9612	        LIBPULSE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse >= 0.5" 2>&1`
9613        fi
9614	# Put the nasty error message in config.log where it belongs
9615	echo "$LIBPULSE_PKG_ERRORS" >&5
9616
9617
9618            if test x$with_libpulse = xyes; then :
9619  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9620$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9621as_fn_error $? "--with-libpulse was specified, but libpulse could not be found
9622See \`config.log' for more details" "$LINENO" 5; }
9623fi
9624            with_libpulse="no"
9625
9626elif test $pkg_failed = untried; then
9627     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9628$as_echo "no" >&6; }
9629
9630            if test x$with_libpulse = xyes; then :
9631  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9632$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9633as_fn_error $? "--with-libpulse was specified, but libpulse could not be found
9634See \`config.log' for more details" "$LINENO" 5; }
9635fi
9636            with_libpulse="no"
9637
9638else
9639	LIBPULSE_CFLAGS=$pkg_cv_LIBPULSE_CFLAGS
9640	LIBPULSE_LIBS=$pkg_cv_LIBPULSE_LIBS
9641        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9642$as_echo "yes" >&6; }
9643
9644
9645$as_echo "#define WITH_LIBPULSE 1" >>confdefs.h
9646
9647          with_libpulse="yes"
9648
9649fi
9650fi
9651
9652
9653
9654
9655
9656# Check whether --with-portaudio was given.
9657if test "${with_portaudio+set}" = set; then :
9658  withval=$with_portaudio;
9659fi
9660
9661  if test x$with_portaudio = xno; then :
9662  portaudio_disabled="(disabled)"
9663else
9664
9665pkg_failed=no
9666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PORTAUDIO" >&5
9667$as_echo_n "checking for PORTAUDIO... " >&6; }
9668
9669if test -n "$PORTAUDIO_CFLAGS"; then
9670    pkg_cv_PORTAUDIO_CFLAGS="$PORTAUDIO_CFLAGS"
9671 elif test -n "$PKG_CONFIG"; then
9672    if test -n "$PKG_CONFIG" && \
9673    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"portaudio-2.0 >= 19\""; } >&5
9674  ($PKG_CONFIG --exists --print-errors "portaudio-2.0 >= 19") 2>&5
9675  ac_status=$?
9676  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9677  test $ac_status = 0; }; then
9678  pkg_cv_PORTAUDIO_CFLAGS=`$PKG_CONFIG --cflags "portaudio-2.0 >= 19" 2>/dev/null`
9679		      test "x$?" != "x0" && pkg_failed=yes
9680else
9681  pkg_failed=yes
9682fi
9683 else
9684    pkg_failed=untried
9685fi
9686if test -n "$PORTAUDIO_LIBS"; then
9687    pkg_cv_PORTAUDIO_LIBS="$PORTAUDIO_LIBS"
9688 elif test -n "$PKG_CONFIG"; then
9689    if test -n "$PKG_CONFIG" && \
9690    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"portaudio-2.0 >= 19\""; } >&5
9691  ($PKG_CONFIG --exists --print-errors "portaudio-2.0 >= 19") 2>&5
9692  ac_status=$?
9693  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9694  test $ac_status = 0; }; then
9695  pkg_cv_PORTAUDIO_LIBS=`$PKG_CONFIG --libs "portaudio-2.0 >= 19" 2>/dev/null`
9696		      test "x$?" != "x0" && pkg_failed=yes
9697else
9698  pkg_failed=yes
9699fi
9700 else
9701    pkg_failed=untried
9702fi
9703
9704
9705
9706if test $pkg_failed = yes; then
9707   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9708$as_echo "no" >&6; }
9709
9710if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9711        _pkg_short_errors_supported=yes
9712else
9713        _pkg_short_errors_supported=no
9714fi
9715        if test $_pkg_short_errors_supported = yes; then
9716	        PORTAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "portaudio-2.0 >= 19" 2>&1`
9717        else
9718	        PORTAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "portaudio-2.0 >= 19" 2>&1`
9719        fi
9720	# Put the nasty error message in config.log where it belongs
9721	echo "$PORTAUDIO_PKG_ERRORS" >&5
9722
9723
9724            if test x$with_portaudio = xyes; then :
9725  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9726$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9727as_fn_error $? "--with-portaudio was specified, but portaudio could not be found
9728See \`config.log' for more details" "$LINENO" 5; }
9729fi
9730            with_portaudio="no"
9731
9732elif test $pkg_failed = untried; then
9733     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9734$as_echo "no" >&6; }
9735
9736            if test x$with_portaudio = xyes; then :
9737  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9738$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9739as_fn_error $? "--with-portaudio was specified, but portaudio could not be found
9740See \`config.log' for more details" "$LINENO" 5; }
9741fi
9742            with_portaudio="no"
9743
9744else
9745	PORTAUDIO_CFLAGS=$pkg_cv_PORTAUDIO_CFLAGS
9746	PORTAUDIO_LIBS=$pkg_cv_PORTAUDIO_LIBS
9747        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9748$as_echo "yes" >&6; }
9749
9750
9751$as_echo "#define WITH_PORTAUDIO 1" >>confdefs.h
9752
9753          with_portaudio="yes"
9754
9755fi
9756fi
9757
9758
9759
9760
9761
9762
9763# Check whether --with-ffms2 was given.
9764if test "${with_ffms2+set}" = set; then :
9765  withval=$with_ffms2;
9766fi
9767
9768  if test x$with_ffms2 = xno; then :
9769  ffms2_disabled="(disabled)"
9770else
9771
9772pkg_failed=no
9773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFMS2" >&5
9774$as_echo_n "checking for FFMS2... " >&6; }
9775
9776if test -n "$FFMS2_CFLAGS"; then
9777    pkg_cv_FFMS2_CFLAGS="$FFMS2_CFLAGS"
9778 elif test -n "$PKG_CONFIG"; then
9779    if test -n "$PKG_CONFIG" && \
9780    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ffms2 >= 2.16\""; } >&5
9781  ($PKG_CONFIG --exists --print-errors "ffms2 >= 2.16") 2>&5
9782  ac_status=$?
9783  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9784  test $ac_status = 0; }; then
9785  pkg_cv_FFMS2_CFLAGS=`$PKG_CONFIG --cflags "ffms2 >= 2.16" 2>/dev/null`
9786		      test "x$?" != "x0" && pkg_failed=yes
9787else
9788  pkg_failed=yes
9789fi
9790 else
9791    pkg_failed=untried
9792fi
9793if test -n "$FFMS2_LIBS"; then
9794    pkg_cv_FFMS2_LIBS="$FFMS2_LIBS"
9795 elif test -n "$PKG_CONFIG"; then
9796    if test -n "$PKG_CONFIG" && \
9797    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ffms2 >= 2.16\""; } >&5
9798  ($PKG_CONFIG --exists --print-errors "ffms2 >= 2.16") 2>&5
9799  ac_status=$?
9800  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9801  test $ac_status = 0; }; then
9802  pkg_cv_FFMS2_LIBS=`$PKG_CONFIG --libs "ffms2 >= 2.16" 2>/dev/null`
9803		      test "x$?" != "x0" && pkg_failed=yes
9804else
9805  pkg_failed=yes
9806fi
9807 else
9808    pkg_failed=untried
9809fi
9810
9811
9812
9813if test $pkg_failed = yes; then
9814   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9815$as_echo "no" >&6; }
9816
9817if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9818        _pkg_short_errors_supported=yes
9819else
9820        _pkg_short_errors_supported=no
9821fi
9822        if test $_pkg_short_errors_supported = yes; then
9823	        FFMS2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ffms2 >= 2.16" 2>&1`
9824        else
9825	        FFMS2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ffms2 >= 2.16" 2>&1`
9826        fi
9827	# Put the nasty error message in config.log where it belongs
9828	echo "$FFMS2_PKG_ERRORS" >&5
9829
9830
9831            if test x$with_ffms2 = xyes; then :
9832  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9833$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9834as_fn_error $? "--with-ffms2 was specified, but ffms2 could not be found
9835See \`config.log' for more details" "$LINENO" 5; }
9836fi
9837            with_ffms2="no"
9838
9839elif test $pkg_failed = untried; then
9840     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9841$as_echo "no" >&6; }
9842
9843            if test x$with_ffms2 = xyes; then :
9844  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9845$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9846as_fn_error $? "--with-ffms2 was specified, but ffms2 could not be found
9847See \`config.log' for more details" "$LINENO" 5; }
9848fi
9849            with_ffms2="no"
9850
9851else
9852	FFMS2_CFLAGS=$pkg_cv_FFMS2_CFLAGS
9853	FFMS2_LIBS=$pkg_cv_FFMS2_LIBS
9854        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9855$as_echo "yes" >&6; }
9856
9857
9858$as_echo "#define WITH_FFMS2 1" >>confdefs.h
9859
9860          with_ffms2="yes"
9861
9862fi
9863fi
9864
9865
9866
9867
9868
9869
9870# Check whether --with-fftw3 was given.
9871if test "${with_fftw3+set}" = set; then :
9872  withval=$with_fftw3;
9873fi
9874
9875  if test x$with_fftw3 = xno; then :
9876  fftw3_disabled="(disabled)"
9877else
9878
9879pkg_failed=no
9880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW3" >&5
9881$as_echo_n "checking for FFTW3... " >&6; }
9882
9883if test -n "$FFTW3_CFLAGS"; then
9884    pkg_cv_FFTW3_CFLAGS="$FFTW3_CFLAGS"
9885 elif test -n "$PKG_CONFIG"; then
9886    if test -n "$PKG_CONFIG" && \
9887    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 3.3\""; } >&5
9888  ($PKG_CONFIG --exists --print-errors "fftw3 >= 3.3") 2>&5
9889  ac_status=$?
9890  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9891  test $ac_status = 0; }; then
9892  pkg_cv_FFTW3_CFLAGS=`$PKG_CONFIG --cflags "fftw3 >= 3.3" 2>/dev/null`
9893		      test "x$?" != "x0" && pkg_failed=yes
9894else
9895  pkg_failed=yes
9896fi
9897 else
9898    pkg_failed=untried
9899fi
9900if test -n "$FFTW3_LIBS"; then
9901    pkg_cv_FFTW3_LIBS="$FFTW3_LIBS"
9902 elif test -n "$PKG_CONFIG"; then
9903    if test -n "$PKG_CONFIG" && \
9904    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 3.3\""; } >&5
9905  ($PKG_CONFIG --exists --print-errors "fftw3 >= 3.3") 2>&5
9906  ac_status=$?
9907  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9908  test $ac_status = 0; }; then
9909  pkg_cv_FFTW3_LIBS=`$PKG_CONFIG --libs "fftw3 >= 3.3" 2>/dev/null`
9910		      test "x$?" != "x0" && pkg_failed=yes
9911else
9912  pkg_failed=yes
9913fi
9914 else
9915    pkg_failed=untried
9916fi
9917
9918
9919
9920if test $pkg_failed = yes; then
9921   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9922$as_echo "no" >&6; }
9923
9924if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9925        _pkg_short_errors_supported=yes
9926else
9927        _pkg_short_errors_supported=no
9928fi
9929        if test $_pkg_short_errors_supported = yes; then
9930	        FFTW3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fftw3 >= 3.3" 2>&1`
9931        else
9932	        FFTW3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fftw3 >= 3.3" 2>&1`
9933        fi
9934	# Put the nasty error message in config.log where it belongs
9935	echo "$FFTW3_PKG_ERRORS" >&5
9936
9937
9938            if test x$with_fftw3 = xyes; then :
9939  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9940$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9941as_fn_error $? "--with-fftw3 was specified, but fftw3 could not be found
9942See \`config.log' for more details" "$LINENO" 5; }
9943fi
9944            with_fftw3="no"
9945
9946elif test $pkg_failed = untried; then
9947     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9948$as_echo "no" >&6; }
9949
9950            if test x$with_fftw3 = xyes; then :
9951  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9952$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9953as_fn_error $? "--with-fftw3 was specified, but fftw3 could not be found
9954See \`config.log' for more details" "$LINENO" 5; }
9955fi
9956            with_fftw3="no"
9957
9958else
9959	FFTW3_CFLAGS=$pkg_cv_FFTW3_CFLAGS
9960	FFTW3_LIBS=$pkg_cv_FFTW3_LIBS
9961        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9962$as_echo "yes" >&6; }
9963
9964
9965$as_echo "#define WITH_FFTW3 1" >>confdefs.h
9966
9967          with_fftw3="yes"
9968
9969fi
9970fi
9971
9972
9973
9974
9975
9976# Check whether --with-hunspell was given.
9977if test "${with_hunspell+set}" = set; then :
9978  withval=$with_hunspell;
9979fi
9980
9981  if test x$with_hunspell = xno; then :
9982  hunspell_disabled="(disabled)"
9983else
9984
9985pkg_failed=no
9986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for HUNSPELL" >&5
9987$as_echo_n "checking for HUNSPELL... " >&6; }
9988
9989if test -n "$HUNSPELL_CFLAGS"; then
9990    pkg_cv_HUNSPELL_CFLAGS="$HUNSPELL_CFLAGS"
9991 elif test -n "$PKG_CONFIG"; then
9992    if test -n "$PKG_CONFIG" && \
9993    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hunspell >= 1.2.0\""; } >&5
9994  ($PKG_CONFIG --exists --print-errors "hunspell >= 1.2.0") 2>&5
9995  ac_status=$?
9996  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9997  test $ac_status = 0; }; then
9998  pkg_cv_HUNSPELL_CFLAGS=`$PKG_CONFIG --cflags "hunspell >= 1.2.0" 2>/dev/null`
9999		      test "x$?" != "x0" && pkg_failed=yes
10000else
10001  pkg_failed=yes
10002fi
10003 else
10004    pkg_failed=untried
10005fi
10006if test -n "$HUNSPELL_LIBS"; then
10007    pkg_cv_HUNSPELL_LIBS="$HUNSPELL_LIBS"
10008 elif test -n "$PKG_CONFIG"; then
10009    if test -n "$PKG_CONFIG" && \
10010    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hunspell >= 1.2.0\""; } >&5
10011  ($PKG_CONFIG --exists --print-errors "hunspell >= 1.2.0") 2>&5
10012  ac_status=$?
10013  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10014  test $ac_status = 0; }; then
10015  pkg_cv_HUNSPELL_LIBS=`$PKG_CONFIG --libs "hunspell >= 1.2.0" 2>/dev/null`
10016		      test "x$?" != "x0" && pkg_failed=yes
10017else
10018  pkg_failed=yes
10019fi
10020 else
10021    pkg_failed=untried
10022fi
10023
10024
10025
10026if test $pkg_failed = yes; then
10027   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10028$as_echo "no" >&6; }
10029
10030if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10031        _pkg_short_errors_supported=yes
10032else
10033        _pkg_short_errors_supported=no
10034fi
10035        if test $_pkg_short_errors_supported = yes; then
10036	        HUNSPELL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "hunspell >= 1.2.0" 2>&1`
10037        else
10038	        HUNSPELL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "hunspell >= 1.2.0" 2>&1`
10039        fi
10040	# Put the nasty error message in config.log where it belongs
10041	echo "$HUNSPELL_PKG_ERRORS" >&5
10042
10043
10044            if test x$with_hunspell = xyes; then :
10045  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10046$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10047as_fn_error $? "--with-hunspell was specified, but hunspell could not be found
10048See \`config.log' for more details" "$LINENO" 5; }
10049fi
10050            with_hunspell="no"
10051
10052elif test $pkg_failed = untried; then
10053     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10054$as_echo "no" >&6; }
10055
10056            if test x$with_hunspell = xyes; then :
10057  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10058$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10059as_fn_error $? "--with-hunspell was specified, but hunspell could not be found
10060See \`config.log' for more details" "$LINENO" 5; }
10061fi
10062            with_hunspell="no"
10063
10064else
10065	HUNSPELL_CFLAGS=$pkg_cv_HUNSPELL_CFLAGS
10066	HUNSPELL_LIBS=$pkg_cv_HUNSPELL_LIBS
10067        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10068$as_echo "yes" >&6; }
10069
10070
10071$as_echo "#define WITH_HUNSPELL 1" >>confdefs.h
10072
10073          with_hunspell="yes"
10074
10075fi
10076fi
10077
10078
10079
10080######################################################
10081# Debugging support
10082######################################################
10083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to turn on debugging" >&5
10084$as_echo_n "checking whether to turn on debugging... " >&6; }
10085# Check whether --enable-debug was given.
10086if test "${enable_debug+set}" = set; then :
10087  enableval=$enable_debug;
10088fi
10089
10090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_debug:=no}" >&5
10091$as_echo "${enable_debug:=no}" >&6; }
10092
10093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use exception handling in debug mode" >&5
10094$as_echo_n "checking whether to use exception handling in debug mode... " >&6; }
10095# Check whether --enable-debug-exceptions was given.
10096if test "${enable_debug_exceptions+set}" = set; then :
10097  enableval=$enable_debug_exceptions;
10098fi
10099
10100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enabled_debug_exceptions:=no}" >&5
10101$as_echo "${enabled_debug_exceptions:=no}" >&6; }
10102
10103if test x$enable_debug_exceptions = xyes; then :
10104
10105$as_echo "#define WITH_EXCEPTIONS 1" >>confdefs.h
10106
10107fi
10108
10109################
10110# Widget support
10111################
10112
10113
10114# Check whether --with-wxdir was given.
10115if test "${with_wxdir+set}" = set; then :
10116  withval=$with_wxdir;  wx_config_name="$withval/wx-config"
10117                  wx_config_args="--inplace"
10118fi
10119
10120
10121# Check whether --with-wx-config was given.
10122if test "${with_wx_config+set}" = set; then :
10123  withval=$with_wx_config; wx_config_name="$withval"
10124fi
10125
10126
10127# Check whether --with-wx-prefix was given.
10128if test "${with_wx_prefix+set}" = set; then :
10129  withval=$with_wx_prefix; wx_config_prefix="$withval"
10130else
10131  wx_config_prefix=""
10132fi
10133
10134
10135# Check whether --with-wx-exec-prefix was given.
10136if test "${with_wx_exec_prefix+set}" = set; then :
10137  withval=$with_wx_exec_prefix; wx_config_exec_prefix="$withval"
10138else
10139  wx_config_exec_prefix=""
10140fi
10141
10142
10143
10144
10145
10146                # Check whether --enable-debug was given.
10147if test "${enable_debug+set}" = set; then :
10148  enableval=$enable_debug;
10149else
10150  enableval="auto"
10151fi
10152
10153
10154                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --enable-debug option" >&5
10155$as_echo_n "checking for the --enable-debug option... " >&6; }
10156            if test "$enableval" = "yes" ; then
10157                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10158$as_echo "yes" >&6; }
10159                DEBUG=1
10160
10161            elif test "$enableval" = "no" ; then
10162                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10163$as_echo "no" >&6; }
10164                DEBUG=0
10165            elif test "$enableval" = "auto" ; then
10166                { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
10167$as_echo "will be automatically detected" >&6; }
10168                DEBUG="auto"
10169            else
10170                as_fn_error $? "
10171    Unrecognized option value (allowed values: yes, no, auto)
10172                " "$LINENO" 5
10173            fi
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189        if test "$WX_DEBUG_CONFIGURE" = "1"; then
10190            echo "[dbg] DEBUG: $DEBUG, WX_DEBUG: $WX_DEBUG"
10191            echo "[dbg] UNICODE: $UNICODE, WX_UNICODE: $WX_UNICODE"
10192            echo "[dbg] SHARED: $SHARED, WX_SHARED: $WX_SHARED"
10193            echo "[dbg] TOOLKIT: $TOOLKIT, WX_TOOLKIT: $WX_TOOLKIT"
10194            echo "[dbg] VERSION: $VERSION, WX_RELEASE: $WX_RELEASE"
10195        fi
10196
10197WX_DEBUG=$DEBUG
10198WX_UNICODE=$UNICODE
10199
10200    if test x${WX_CONFIG_NAME+set} != xset ; then
10201     WX_CONFIG_NAME=wx-config
10202  fi
10203
10204  if test "x$wx_config_name" != x ; then
10205     WX_CONFIG_NAME="$wx_config_name"
10206  fi
10207
10208    if test x$wx_config_exec_prefix != x ; then
10209     wx_config_args="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
10210     WX_LOOKUP_PATH="$wx_config_exec_prefix/bin"
10211  fi
10212  if test x$wx_config_prefix != x ; then
10213     wx_config_args="$wx_config_args --prefix=$wx_config_prefix"
10214     WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
10215  fi
10216  if test "$cross_compiling" = "yes"; then
10217     wx_config_args="$wx_config_args --host=$host_alias"
10218  fi
10219
10220    if test -x "$WX_CONFIG_NAME" ; then
10221     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wx-config" >&5
10222$as_echo_n "checking for wx-config... " >&6; }
10223     WX_CONFIG_PATH="$WX_CONFIG_NAME"
10224     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG_PATH" >&5
10225$as_echo "$WX_CONFIG_PATH" >&6; }
10226  else
10227     # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
10228set dummy $WX_CONFIG_NAME; ac_word=$2
10229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10230$as_echo_n "checking for $ac_word... " >&6; }
10231if ${ac_cv_path_WX_CONFIG_PATH+:} false; then :
10232  $as_echo_n "(cached) " >&6
10233else
10234  case $WX_CONFIG_PATH in
10235  [\\/]* | ?:[\\/]*)
10236  ac_cv_path_WX_CONFIG_PATH="$WX_CONFIG_PATH" # Let the user override the test with a path.
10237  ;;
10238  *)
10239  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10240as_dummy=""$WX_LOOKUP_PATH:$PATH""
10241for as_dir in $as_dummy
10242do
10243  IFS=$as_save_IFS
10244  test -z "$as_dir" && as_dir=.
10245    for ac_exec_ext in '' $ac_executable_extensions; do
10246  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10247    ac_cv_path_WX_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
10248    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10249    break 2
10250  fi
10251done
10252  done
10253IFS=$as_save_IFS
10254
10255  test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH="no"
10256  ;;
10257esac
10258fi
10259WX_CONFIG_PATH=$ac_cv_path_WX_CONFIG_PATH
10260if test -n "$WX_CONFIG_PATH"; then
10261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG_PATH" >&5
10262$as_echo "$WX_CONFIG_PATH" >&6; }
10263else
10264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10265$as_echo "no" >&6; }
10266fi
10267
10268
10269  fi
10270
10271  if test "$WX_CONFIG_PATH" != "no" ; then
10272    WX_VERSION=""
10273
10274    min_wx_version=3.0.0
10275    if test -z "$WXCONFIG_FLAGS" ; then
10276      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version >= $min_wx_version" >&5
10277$as_echo_n "checking for wxWidgets version >= $min_wx_version... " >&6; }
10278    else
10279      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)" >&5
10280$as_echo_n "checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)... " >&6; }
10281    fi
10282
10283            WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args $WXCONFIG_FLAGS"
10284
10285    WX_VERSION=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
10286    wx_config_major_version=`echo $WX_VERSION | \
10287           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10288    wx_config_minor_version=`echo $WX_VERSION | \
10289           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10290    wx_config_micro_version=`echo $WX_VERSION | \
10291           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10292
10293    wx_requested_major_version=`echo $min_wx_version | \
10294           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10295    wx_requested_minor_version=`echo $min_wx_version | \
10296           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10297    wx_requested_micro_version=`echo $min_wx_version | \
10298           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10299
10300
10301    wx_ver_ok=""
10302    if test "x$WX_VERSION" != x ; then
10303      if test $wx_config_major_version -gt $wx_requested_major_version; then
10304        wx_ver_ok=yes
10305      else
10306        if test $wx_config_major_version -eq $wx_requested_major_version; then
10307           if test $wx_config_minor_version -gt $wx_requested_minor_version; then
10308              wx_ver_ok=yes
10309           else
10310              if test $wx_config_minor_version -eq $wx_requested_minor_version; then
10311                 if test $wx_config_micro_version -ge $wx_requested_micro_version; then
10312                    wx_ver_ok=yes
10313                 fi
10314              fi
10315           fi
10316        fi
10317      fi
10318    fi
10319
10320
10321    if test -n "$wx_ver_ok"; then
10322      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $WX_VERSION)" >&5
10323$as_echo "yes (version $WX_VERSION)" >&6; }
10324      WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs std,gl,stc`
10325
10326                              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets static library" >&5
10327$as_echo_n "checking for wxWidgets static library... " >&6; }
10328      WX_LIBS_STATIC=`$WX_CONFIG_WITH_ARGS --static --libs std,gl,stc 2>/dev/null`
10329      if test "x$WX_LIBS_STATIC" = "x"; then
10330        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10331$as_echo "no" >&6; }
10332      else
10333        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10334$as_echo "yes" >&6; }
10335      fi
10336
10337            wx_has_cppflags=""
10338      if test $wx_config_major_version -gt 2; then
10339        wx_has_cppflags=yes
10340      else
10341        if test $wx_config_major_version -eq 2; then
10342           if test $wx_config_minor_version -gt 2; then
10343              wx_has_cppflags=yes
10344           else
10345              if test $wx_config_minor_version -eq 2; then
10346                 if test $wx_config_micro_version -ge 6; then
10347                    wx_has_cppflags=yes
10348                 fi
10349              fi
10350           fi
10351        fi
10352      fi
10353
10354            wx_has_rescomp=""
10355      if test $wx_config_major_version -gt 2; then
10356        wx_has_rescomp=yes
10357      else
10358        if test $wx_config_major_version -eq 2; then
10359           if test $wx_config_minor_version -ge 7; then
10360              wx_has_rescomp=yes
10361           fi
10362        fi
10363      fi
10364      if test "x$wx_has_rescomp" = x ; then
10365                  WX_RESCOMP=
10366      else
10367         WX_RESCOMP=`$WX_CONFIG_WITH_ARGS --rescomp`
10368      fi
10369
10370      if test "x$wx_has_cppflags" = x ; then
10371                  WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags std,gl,stc`
10372         WX_CPPFLAGS=$WX_CFLAGS
10373         WX_CXXFLAGS=$WX_CFLAGS
10374
10375         WX_CFLAGS_ONLY=$WX_CFLAGS
10376         WX_CXXFLAGS_ONLY=$WX_CFLAGS
10377      else
10378                  WX_CPPFLAGS=`$WX_CONFIG_WITH_ARGS --cppflags std,gl,stc`
10379         WX_CXXFLAGS=`$WX_CONFIG_WITH_ARGS --cxxflags std,gl,stc`
10380         WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags std,gl,stc`
10381
10382         WX_CFLAGS_ONLY=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
10383         WX_CXXFLAGS_ONLY=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
10384      fi
10385
10386      :
10387
10388    else
10389
10390       if test "x$WX_VERSION" = x; then
10391                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10392$as_echo "no" >&6; }
10393       else
10394          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $WX_VERSION is not new enough)" >&5
10395$as_echo "no (version $WX_VERSION is not new enough)" >&6; }
10396       fi
10397
10398       WX_CFLAGS=""
10399       WX_CPPFLAGS=""
10400       WX_CXXFLAGS=""
10401       WX_LIBS=""
10402       WX_LIBS_STATIC=""
10403       WX_RESCOMP=""
10404
10405       if test ! -z "$WXCONFIG_FLAGS"; then
10406
10407          wx_error_message="
10408    The configuration you asked for $PACKAGE_NAME requires a wxWidgets
10409    build with the following settings:
10410        $WXCONFIG_FLAGS
10411    but such build is not available.
10412
10413    To see the wxWidgets builds available on this system, please use
10414    'wx-config --list' command. To use the default build, returned by
10415    'wx-config --selected-config', use the options with their 'auto'
10416    default values."
10417
10418       fi
10419
10420       wx_error_message="
10421    The requested wxWidgets build couldn't be found.
10422    $wx_error_message
10423
10424    If you still get this error, then check that 'wx-config' is
10425    in path, the directory where wxWidgets libraries are installed
10426    (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
10427    or equivalent variable and wxWidgets version is 3.0.0 or above."
10428
10429       as_fn_error $? "$wx_error_message" "$LINENO" 5
10430
10431    fi
10432  else
10433
10434    WX_CFLAGS=""
10435    WX_CPPFLAGS=""
10436    WX_CXXFLAGS=""
10437    WX_LIBS=""
10438    WX_LIBS_STATIC=""
10439    WX_RESCOMP=""
10440
10441    :
10442
10443  fi
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455      WX_VERSION_MAJOR="$wx_config_major_version"
10456  WX_VERSION_MINOR="$wx_config_minor_version"
10457  WX_VERSION_MICRO="$wx_config_micro_version"
10458
10459
10460
10461
10462
10463
10464if test x$WX_VERSION = x; then :
10465  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10466$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10467as_fn_error $? "wxWidgets detection failed, please set --with-wx* or add the libraries to your LIBS, CXX/CFLAGS.
10468See \`config.log' for more details" "$LINENO" 5; }
10469fi
10470
10471if test x$enable_sanity_checks != xno; then :
10472
10473
10474  aegisub_save_LIBS="$LIBS"
10475  aegisub_save_CPPFLAGS="$CPPFLAGS"
10476  CPPFLAGS="$CPPFLAGS $GL_CFLAGS $WX_CFLAGS"
10477  LIBS="$LIBS $GL_LIBS $WX_LIBS"
10478  ac_fn_cxx_check_header_mongrel "$LINENO" "wx/glcanvas.h" "ac_cv_header_wx_glcanvas_h" "$ac_includes_default"
10479if test "x$ac_cv_header_wx_glcanvas_h" = xyes; then :
10480  agi_cv_header="yes"
10481else
10482  agi_cv_header="no"
10483fi
10484
10485
10486  if test "x$agi_cv_header" = xyes; then :
10487  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wxWidgets OpenGL support works" >&5
10488$as_echo_n "checking whether wxWidgets OpenGL support works... " >&6; }
10489if ${agi_cv_with_wxopengl+:} false; then :
10490  $as_echo_n "(cached) " >&6
10491else
10492  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10493/* end confdefs.h.  */
10494
10495#include <wx/glcanvas.h>
10496int main(void) {
10497  wxGLCanvas *canvas;
10498  wxGLContext *context;
10499  return 0;
10500}
10501_ACEOF
10502if ac_fn_cxx_try_link "$LINENO"; then :
10503  eval agi_cv_with_wxopengl="yes"
10504else
10505  eval agi_cv_with_wxopengl="no"
10506fi
10507rm -f core conftest.err conftest.$ac_objext \
10508    conftest$ac_exeext conftest.$ac_ext
10509fi
10510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $agi_cv_with_wxopengl" >&5
10511$as_echo "$agi_cv_with_wxopengl" >&6; }
10512        eval agi_cv_with_wxopengl="no"
10513fi
10514  CPPFLAGS="$aegisub_save_CPPFLAGS"
10515  LIBS="$aegisub_save_LIBS"
10516
10517
10518  aegisub_save_LIBS="$LIBS"
10519  aegisub_save_CPPFLAGS="$CPPFLAGS"
10520  CPPFLAGS="$CPPFLAGS $WX_CFLAGS"
10521  LIBS="$LIBS $WX_LIBS"
10522  ac_fn_cxx_check_header_mongrel "$LINENO" "wx/stc/stc.h" "ac_cv_header_wx_stc_stc_h" "$ac_includes_default"
10523if test "x$ac_cv_header_wx_stc_stc_h" = xyes; then :
10524  agi_cv_header="yes"
10525else
10526  agi_cv_header="no"
10527fi
10528
10529
10530  if test "x$agi_cv_header" = xyes; then :
10531  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wxWidgets StyledTextCtrl support works" >&5
10532$as_echo_n "checking whether wxWidgets StyledTextCtrl support works... " >&6; }
10533if ${agi_cv_with_wxstc+:} false; then :
10534  $as_echo_n "(cached) " >&6
10535else
10536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10537/* end confdefs.h.  */
10538
10539#include <wx/stc/stc.h>
10540int main(void) {
10541  wxStyledTextCtrl *canvas;
10542  return 0;
10543}
10544_ACEOF
10545if ac_fn_cxx_try_link "$LINENO"; then :
10546  eval agi_cv_with_wxstc="yes"
10547else
10548  eval agi_cv_with_wxstc="no"
10549fi
10550rm -f core conftest.err conftest.$ac_objext \
10551    conftest$ac_exeext conftest.$ac_ext
10552fi
10553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $agi_cv_with_wxstc" >&5
10554$as_echo "$agi_cv_with_wxstc" >&6; }
10555        eval agi_cv_with_wxstc="no"
10556fi
10557  CPPFLAGS="$aegisub_save_CPPFLAGS"
10558  LIBS="$aegisub_save_LIBS"
10559
10560
10561fi
10562
10563if test x$with_agi_cv_wxopengl = xno; then :
10564  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10565$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10566as_fn_error $? "wxWidgets OpenGL support missing
10567See \`config.log' for more details" "$LINENO" 5; }
10568fi
10569if test x$with_agi_cv_wxstc = xno; then :
10570  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10571$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10572as_fn_error $? "wxWidgets StyledTextCtrl support missing
10573See \`config.log' for more details" "$LINENO" 5; }
10574fi
10575
10576# This turns on some internal (to aegisub) debugging features.
10577# A debug version of wxWidgets is required.
10578if test x$enable_debug = xyes; then :
10579  if $WX_CONFIG_PATH --debug; then :
10580  {
10581	ac_ext=cpp
10582ac_cpp='$CXXCPP $CPPFLAGS'
10583ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10584ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10585ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10586
10587	ac_cxx_flag_save="$CXXFLAGS"
10588	CXXFLAGS="$CXXFLAGS -Werror -D_DEBUG"
10589	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -D_DEBUG" >&5
10590$as_echo_n "checking whether $CXX supports -D_DEBUG... " >&6; }
10591	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10592/* end confdefs.h.  */
10593
10594int
10595main ()
10596{
10597
10598  ;
10599  return 0;
10600}
10601_ACEOF
10602if ac_fn_cxx_try_compile "$LINENO"; then :
10603
10604			CXXFLAGS="$ac_cxx_flag_save -D_DEBUG"
10605			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10606$as_echo "yes" >&6; }
10607
10608else
10609
10610			CXXFLAGS="$ac_cxx_flag_save"
10611			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10612$as_echo "no" >&6; }
10613
10614
10615fi
10616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10617	ac_ext=cpp
10618ac_cpp='$CXXCPP $CPPFLAGS'
10619ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10620ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10621ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10622
10623	}
10624fi
10625fi
10626
10627############################
10628# Precompiled Header Support
10629# Only works with gcc! (and clang)
10630############################
10631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use precompiled headers" >&5
10632$as_echo_n "checking whether to use precompiled headers... " >&6; }
10633# Check whether --enable-gcc-prec was given.
10634if test "${enable_gcc_prec+set}" = set; then :
10635  enableval=$enable_gcc_prec;
10636fi
10637
10638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_gcc_prec:=yes}" >&5
10639$as_echo "${enable_gcc_prec:=yes}" >&6; }
10640
10641{
10642	ac_ext=cpp
10643ac_cpp='$CXXCPP $CPPFLAGS'
10644ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10645ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10646ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10647
10648	ac_cxx_flag_save="$CXXFLAGS"
10649	ac_cxx_werror_flag_save="$ac_cxx_werror_flag"
10650	ac_cxx_werror_flag=yes
10651	CXXFLAGS="$CXXFLAGS -Werror -Winvalid-pch"
10652	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -Winvalid-pch" >&5
10653$as_echo_n "checking whether $CXX supports -Winvalid-pch... " >&6; }
10654	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10655/* end confdefs.h.  */
10656
10657int
10658main ()
10659{
10660
10661  ;
10662  return 0;
10663}
10664_ACEOF
10665if ac_fn_cxx_try_compile "$LINENO"; then :
10666
10667			PCHFLAGS="$PCHFLAGS -Winvalid-pch"
10668			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10669$as_echo "yes" >&6; }
10670
10671else
10672
10673			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10674$as_echo "no" >&6; }
10675
10676
10677fi
10678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10679	CXXFLAGS="$ac_cxx_flag_save"
10680	ac_cxx_werror_flag="$ac_cxx_werror_flag_save"
10681	ac_ext=cpp
10682ac_cpp='$CXXCPP $CPPFLAGS'
10683ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10684ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10685ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10686
10687	}
10688{
10689	ac_ext=cpp
10690ac_cpp='$CXXCPP $CPPFLAGS'
10691ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10692ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10693ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10694
10695	ac_cxx_flag_save="$CXXFLAGS"
10696	ac_cxx_werror_flag_save="$ac_cxx_werror_flag"
10697	ac_cxx_werror_flag=yes
10698	CXXFLAGS="$CXXFLAGS -Werror -fpch-deps"
10699	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -fpch-deps" >&5
10700$as_echo_n "checking whether $CXX supports -fpch-deps... " >&6; }
10701	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10702/* end confdefs.h.  */
10703
10704int
10705main ()
10706{
10707
10708  ;
10709  return 0;
10710}
10711_ACEOF
10712if ac_fn_cxx_try_compile "$LINENO"; then :
10713
10714			PCHFLAGS="$PCHFLAGS -fpch-deps"
10715			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10716$as_echo "yes" >&6; }
10717
10718else
10719
10720			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10721$as_echo "no" >&6; }
10722
10723
10724fi
10725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10726	CXXFLAGS="$ac_cxx_flag_save"
10727	ac_cxx_werror_flag="$ac_cxx_werror_flag_save"
10728	ac_ext=cpp
10729ac_cpp='$CXXCPP $CPPFLAGS'
10730ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10731ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10732ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10733
10734	}
10735{
10736	ac_ext=cpp
10737ac_cpp='$CXXCPP $CPPFLAGS'
10738ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10739ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10740ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10741
10742	ac_cxx_flag_save="$CXXFLAGS"
10743	ac_cxx_werror_flag_save="$ac_cxx_werror_flag"
10744	ac_cxx_werror_flag=yes
10745	CXXFLAGS="$CXXFLAGS -Werror -fpch-preprocess"
10746	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -fpch-preprocess" >&5
10747$as_echo_n "checking whether $CXX supports -fpch-preprocess... " >&6; }
10748	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10749/* end confdefs.h.  */
10750
10751int
10752main ()
10753{
10754
10755  ;
10756  return 0;
10757}
10758_ACEOF
10759if ac_fn_cxx_try_compile "$LINENO"; then :
10760
10761			PCHFLAGS="$PCHFLAGS -fpch-preprocess"
10762			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10763$as_echo "yes" >&6; }
10764
10765else
10766
10767			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10768$as_echo "no" >&6; }
10769
10770
10771fi
10772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10773	CXXFLAGS="$ac_cxx_flag_save"
10774	ac_cxx_werror_flag="$ac_cxx_werror_flag_save"
10775	ac_ext=cpp
10776ac_cpp='$CXXCPP $CPPFLAGS'
10777ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10778ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10779ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10780
10781	}
10782
10783##############################
10784# Internationalisation support
10785##############################
10786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10787$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
10788set x ${MAKE-make}
10789ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10790if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
10791  $as_echo_n "(cached) " >&6
10792else
10793  cat >conftest.make <<\_ACEOF
10794SHELL = /bin/sh
10795all:
10796	@echo '@@@%%%=$(MAKE)=@@@%%%'
10797_ACEOF
10798# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
10799case `${MAKE-make} -f conftest.make 2>/dev/null` in
10800  *@@@%%%=?*=@@@%%%*)
10801    eval ac_cv_prog_make_${ac_make}_set=yes;;
10802  *)
10803    eval ac_cv_prog_make_${ac_make}_set=no;;
10804esac
10805rm -f conftest.make
10806fi
10807if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10809$as_echo "yes" >&6; }
10810  SET_MAKE=
10811else
10812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10813$as_echo "no" >&6; }
10814  SET_MAKE="MAKE=${MAKE-make}"
10815fi
10816
10817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
10818$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
10819if test -z "$MKDIR_P"; then
10820  if ${ac_cv_path_mkdir+:} false; then :
10821  $as_echo_n "(cached) " >&6
10822else
10823  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10824for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
10825do
10826  IFS=$as_save_IFS
10827  test -z "$as_dir" && as_dir=.
10828    for ac_prog in mkdir gmkdir; do
10829	 for ac_exec_ext in '' $ac_executable_extensions; do
10830	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
10831	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
10832	     'mkdir (GNU coreutils) '* | \
10833	     'mkdir (coreutils) '* | \
10834	     'mkdir (fileutils) '4.1*)
10835	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
10836	       break 3;;
10837	   esac
10838	 done
10839       done
10840  done
10841IFS=$as_save_IFS
10842
10843fi
10844
10845  test -d ./--version && rmdir ./--version
10846  if test "${ac_cv_path_mkdir+set}" = set; then
10847    MKDIR_P="$ac_cv_path_mkdir -p"
10848  else
10849    # As a last resort, use the slow shell script.  Don't cache a
10850    # value for MKDIR_P within a source directory, because that will
10851    # break other packages using the cache if that directory is
10852    # removed, or if the value is a relative name.
10853    MKDIR_P="$ac_install_sh -d"
10854  fi
10855fi
10856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
10857$as_echo "$MKDIR_P" >&6; }
10858
10859
10860  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
10861$as_echo_n "checking whether NLS is requested... " >&6; }
10862    # Check whether --enable-nls was given.
10863if test "${enable_nls+set}" = set; then :
10864  enableval=$enable_nls; USE_NLS=$enableval
10865else
10866  USE_NLS=yes
10867fi
10868
10869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
10870$as_echo "$USE_NLS" >&6; }
10871
10872
10873
10874
10875      GETTEXT_MACRO_VERSION=0.18
10876
10877
10878
10879
10880# Prepare PATH_SEPARATOR.
10881# The user is always right.
10882if test "${PATH_SEPARATOR+set}" != set; then
10883  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
10884  # contains only /bin. Note that ksh looks also at the FPATH variable,
10885  # so we have to set that as well for the test.
10886  PATH_SEPARATOR=:
10887  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
10888    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
10889           || PATH_SEPARATOR=';'
10890       }
10891fi
10892
10893# Find out how to test for executable files. Don't use a zero-byte file,
10894# as systems may use methods other than mode bits to determine executability.
10895cat >conf$$.file <<_ASEOF
10896#! /bin/sh
10897exit 0
10898_ASEOF
10899chmod +x conf$$.file
10900if test -x conf$$.file >/dev/null 2>&1; then
10901  ac_executable_p="test -x"
10902else
10903  ac_executable_p="test -f"
10904fi
10905rm -f conf$$.file
10906
10907# Extract the first word of "msgfmt", so it can be a program name with args.
10908set dummy msgfmt; ac_word=$2
10909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10910$as_echo_n "checking for $ac_word... " >&6; }
10911if ${ac_cv_path_MSGFMT+:} false; then :
10912  $as_echo_n "(cached) " >&6
10913else
10914  case "$MSGFMT" in
10915  [\\/]* | ?:[\\/]*)
10916    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10917    ;;
10918  *)
10919    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10920    for ac_dir in $PATH; do
10921      IFS="$ac_save_IFS"
10922      test -z "$ac_dir" && ac_dir=.
10923      for ac_exec_ext in '' $ac_executable_extensions; do
10924        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10925          echo "$as_me: trying $ac_dir/$ac_word..." >&5
10926          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
10927     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10928            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10929            break 2
10930          fi
10931        fi
10932      done
10933    done
10934    IFS="$ac_save_IFS"
10935  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10936    ;;
10937esac
10938fi
10939MSGFMT="$ac_cv_path_MSGFMT"
10940if test "$MSGFMT" != ":"; then
10941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
10942$as_echo "$MSGFMT" >&6; }
10943else
10944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10945$as_echo "no" >&6; }
10946fi
10947
10948  # Extract the first word of "gmsgfmt", so it can be a program name with args.
10949set dummy gmsgfmt; ac_word=$2
10950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10951$as_echo_n "checking for $ac_word... " >&6; }
10952if ${ac_cv_path_GMSGFMT+:} false; then :
10953  $as_echo_n "(cached) " >&6
10954else
10955  case $GMSGFMT in
10956  [\\/]* | ?:[\\/]*)
10957  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10958  ;;
10959  *)
10960  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10961for as_dir in $PATH
10962do
10963  IFS=$as_save_IFS
10964  test -z "$as_dir" && as_dir=.
10965    for ac_exec_ext in '' $ac_executable_extensions; do
10966  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10967    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10968    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10969    break 2
10970  fi
10971done
10972  done
10973IFS=$as_save_IFS
10974
10975  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10976  ;;
10977esac
10978fi
10979GMSGFMT=$ac_cv_path_GMSGFMT
10980if test -n "$GMSGFMT"; then
10981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
10982$as_echo "$GMSGFMT" >&6; }
10983else
10984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10985$as_echo "no" >&6; }
10986fi
10987
10988
10989
10990    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
10991    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
10992    *) MSGFMT_015=$MSGFMT ;;
10993  esac
10994
10995  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
10996    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
10997    *) GMSGFMT_015=$GMSGFMT ;;
10998  esac
10999
11000
11001
11002# Prepare PATH_SEPARATOR.
11003# The user is always right.
11004if test "${PATH_SEPARATOR+set}" != set; then
11005  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
11006  # contains only /bin. Note that ksh looks also at the FPATH variable,
11007  # so we have to set that as well for the test.
11008  PATH_SEPARATOR=:
11009  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
11010    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
11011           || PATH_SEPARATOR=';'
11012       }
11013fi
11014
11015# Find out how to test for executable files. Don't use a zero-byte file,
11016# as systems may use methods other than mode bits to determine executability.
11017cat >conf$$.file <<_ASEOF
11018#! /bin/sh
11019exit 0
11020_ASEOF
11021chmod +x conf$$.file
11022if test -x conf$$.file >/dev/null 2>&1; then
11023  ac_executable_p="test -x"
11024else
11025  ac_executable_p="test -f"
11026fi
11027rm -f conf$$.file
11028
11029# Extract the first word of "xgettext", so it can be a program name with args.
11030set dummy xgettext; ac_word=$2
11031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11032$as_echo_n "checking for $ac_word... " >&6; }
11033if ${ac_cv_path_XGETTEXT+:} false; then :
11034  $as_echo_n "(cached) " >&6
11035else
11036  case "$XGETTEXT" in
11037  [\\/]* | ?:[\\/]*)
11038    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11039    ;;
11040  *)
11041    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11042    for ac_dir in $PATH; do
11043      IFS="$ac_save_IFS"
11044      test -z "$ac_dir" && ac_dir=.
11045      for ac_exec_ext in '' $ac_executable_extensions; do
11046        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11047          echo "$as_me: trying $ac_dir/$ac_word..." >&5
11048          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
11049     (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
11050            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11051            break 2
11052          fi
11053        fi
11054      done
11055    done
11056    IFS="$ac_save_IFS"
11057  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11058    ;;
11059esac
11060fi
11061XGETTEXT="$ac_cv_path_XGETTEXT"
11062if test "$XGETTEXT" != ":"; then
11063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
11064$as_echo "$XGETTEXT" >&6; }
11065else
11066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11067$as_echo "no" >&6; }
11068fi
11069
11070    rm -f messages.po
11071
11072    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
11073    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
11074    *) XGETTEXT_015=$XGETTEXT ;;
11075  esac
11076
11077
11078
11079# Prepare PATH_SEPARATOR.
11080# The user is always right.
11081if test "${PATH_SEPARATOR+set}" != set; then
11082  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
11083  # contains only /bin. Note that ksh looks also at the FPATH variable,
11084  # so we have to set that as well for the test.
11085  PATH_SEPARATOR=:
11086  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
11087    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
11088           || PATH_SEPARATOR=';'
11089       }
11090fi
11091
11092# Find out how to test for executable files. Don't use a zero-byte file,
11093# as systems may use methods other than mode bits to determine executability.
11094cat >conf$$.file <<_ASEOF
11095#! /bin/sh
11096exit 0
11097_ASEOF
11098chmod +x conf$$.file
11099if test -x conf$$.file >/dev/null 2>&1; then
11100  ac_executable_p="test -x"
11101else
11102  ac_executable_p="test -f"
11103fi
11104rm -f conf$$.file
11105
11106# Extract the first word of "msgmerge", so it can be a program name with args.
11107set dummy msgmerge; ac_word=$2
11108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11109$as_echo_n "checking for $ac_word... " >&6; }
11110if ${ac_cv_path_MSGMERGE+:} false; then :
11111  $as_echo_n "(cached) " >&6
11112else
11113  case "$MSGMERGE" in
11114  [\\/]* | ?:[\\/]*)
11115    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11116    ;;
11117  *)
11118    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11119    for ac_dir in $PATH; do
11120      IFS="$ac_save_IFS"
11121      test -z "$ac_dir" && ac_dir=.
11122      for ac_exec_ext in '' $ac_executable_extensions; do
11123        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11124          echo "$as_me: trying $ac_dir/$ac_word..." >&5
11125          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
11126            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11127            break 2
11128          fi
11129        fi
11130      done
11131    done
11132    IFS="$ac_save_IFS"
11133  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11134    ;;
11135esac
11136fi
11137MSGMERGE="$ac_cv_path_MSGMERGE"
11138if test "$MSGMERGE" != ":"; then
11139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
11140$as_echo "$MSGMERGE" >&6; }
11141else
11142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11143$as_echo "no" >&6; }
11144fi
11145
11146
11147        test -n "$localedir" || localedir='${datadir}/locale'
11148
11149
11150    test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
11151
11152
11153  ac_config_commands="$ac_config_commands po-directories"
11154
11155
11156
11157      if test "X$prefix" = "XNONE"; then
11158    acl_final_prefix="$ac_default_prefix"
11159  else
11160    acl_final_prefix="$prefix"
11161  fi
11162  if test "X$exec_prefix" = "XNONE"; then
11163    acl_final_exec_prefix='${prefix}'
11164  else
11165    acl_final_exec_prefix="$exec_prefix"
11166  fi
11167  acl_save_prefix="$prefix"
11168  prefix="$acl_final_prefix"
11169  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11170  prefix="$acl_save_prefix"
11171
11172
11173
11174# Check whether --with-gnu-ld was given.
11175if test "${with_gnu_ld+set}" = set; then :
11176  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11177else
11178  with_gnu_ld=no
11179fi
11180
11181# Prepare PATH_SEPARATOR.
11182# The user is always right.
11183if test "${PATH_SEPARATOR+set}" != set; then
11184  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
11185  # contains only /bin. Note that ksh looks also at the FPATH variable,
11186  # so we have to set that as well for the test.
11187  PATH_SEPARATOR=:
11188  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
11189    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
11190           || PATH_SEPARATOR=';'
11191       }
11192fi
11193
11194ac_prog=ld
11195if test "$GCC" = yes; then
11196  # Check if gcc -print-prog-name=ld gives a path.
11197  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11198$as_echo_n "checking for ld used by $CC... " >&6; }
11199  case $host in
11200  *-*-mingw*)
11201    # gcc leaves a trailing carriage return which upsets mingw
11202    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11203  *)
11204    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11205  esac
11206  case $ac_prog in
11207    # Accept absolute paths.
11208    [\\/]* | ?:[\\/]*)
11209      re_direlt='/[^/][^/]*/\.\./'
11210      # Canonicalize the pathname of ld
11211      ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
11212      while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
11213        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11214      done
11215      test -z "$LD" && LD="$ac_prog"
11216      ;;
11217  "")
11218    # If it fails, then pretend we aren't using GCC.
11219    ac_prog=ld
11220    ;;
11221  *)
11222    # If it is relative, then search for the first ld in PATH.
11223    with_gnu_ld=unknown
11224    ;;
11225  esac
11226elif test "$with_gnu_ld" = yes; then
11227  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11228$as_echo_n "checking for GNU ld... " >&6; }
11229else
11230  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11231$as_echo_n "checking for non-GNU ld... " >&6; }
11232fi
11233if ${acl_cv_path_LD+:} false; then :
11234  $as_echo_n "(cached) " >&6
11235else
11236  if test -z "$LD"; then
11237  acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11238  for ac_dir in $PATH; do
11239    IFS="$acl_save_ifs"
11240    test -z "$ac_dir" && ac_dir=.
11241    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11242      acl_cv_path_LD="$ac_dir/$ac_prog"
11243      # Check to see if the program is GNU ld.  I'd rather use --version,
11244      # but apparently some variants of GNU ld only accept -v.
11245      # Break only if it was the GNU/non-GNU ld that we prefer.
11246      case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
11247      *GNU* | *'with BFD'*)
11248        test "$with_gnu_ld" != no && break
11249        ;;
11250      *)
11251        test "$with_gnu_ld" != yes && break
11252        ;;
11253      esac
11254    fi
11255  done
11256  IFS="$acl_save_ifs"
11257else
11258  acl_cv_path_LD="$LD" # Let the user override the test with a path.
11259fi
11260fi
11261
11262LD="$acl_cv_path_LD"
11263if test -n "$LD"; then
11264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11265$as_echo "$LD" >&6; }
11266else
11267  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11268$as_echo "no" >&6; }
11269fi
11270test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11272$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11273if ${acl_cv_prog_gnu_ld+:} false; then :
11274  $as_echo_n "(cached) " >&6
11275else
11276  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11277case `$LD -v 2>&1 </dev/null` in
11278*GNU* | *'with BFD'*)
11279  acl_cv_prog_gnu_ld=yes
11280  ;;
11281*)
11282  acl_cv_prog_gnu_ld=no
11283  ;;
11284esac
11285fi
11286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11287$as_echo "$acl_cv_prog_gnu_ld" >&6; }
11288with_gnu_ld=$acl_cv_prog_gnu_ld
11289
11290
11291
11292
11293                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11294$as_echo_n "checking for shared library run path origin... " >&6; }
11295if ${acl_cv_rpath+:} false; then :
11296  $as_echo_n "(cached) " >&6
11297else
11298
11299    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11300    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11301    . ./conftest.sh
11302    rm -f ./conftest.sh
11303    acl_cv_rpath=done
11304
11305fi
11306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11307$as_echo "$acl_cv_rpath" >&6; }
11308  wl="$acl_cv_wl"
11309  acl_libext="$acl_cv_libext"
11310  acl_shlibext="$acl_cv_shlibext"
11311  acl_libname_spec="$acl_cv_libname_spec"
11312  acl_library_names_spec="$acl_cv_library_names_spec"
11313  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11314  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11315  acl_hardcode_direct="$acl_cv_hardcode_direct"
11316  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
11317    # Check whether --enable-rpath was given.
11318if test "${enable_rpath+set}" = set; then :
11319  enableval=$enable_rpath; :
11320else
11321  enable_rpath=yes
11322fi
11323
11324
11325
11326
11327  acl_libdirstem=lib
11328  acl_libdirstem2=
11329  case "$host_os" in
11330    solaris*)
11331                                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
11332$as_echo_n "checking for 64-bit host... " >&6; }
11333if ${gl_cv_solaris_64bit+:} false; then :
11334  $as_echo_n "(cached) " >&6
11335else
11336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11337/* end confdefs.h.  */
11338
11339#ifdef _LP64
11340sixtyfour bits
11341#endif
11342
11343_ACEOF
11344if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11345  $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
11346  gl_cv_solaris_64bit=yes
11347else
11348  gl_cv_solaris_64bit=no
11349fi
11350rm -f conftest*
11351
11352
11353fi
11354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
11355$as_echo "$gl_cv_solaris_64bit" >&6; }
11356      if test $gl_cv_solaris_64bit = yes; then
11357        acl_libdirstem=lib/64
11358        case "$host_cpu" in
11359          sparc*)        acl_libdirstem2=lib/sparcv9 ;;
11360          i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
11361        esac
11362      fi
11363      ;;
11364    *)
11365      searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
11366      if test -n "$searchpath"; then
11367        acl_save_IFS="${IFS= 	}"; IFS=":"
11368        for searchdir in $searchpath; do
11369          if test -d "$searchdir"; then
11370            case "$searchdir" in
11371              */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
11372              */../ | */.. )
11373                # Better ignore directories of this form. They are misleading.
11374                ;;
11375              *) searchdir=`cd "$searchdir" && pwd`
11376                 case "$searchdir" in
11377                   */lib64 ) acl_libdirstem=lib64 ;;
11378                 esac ;;
11379            esac
11380          fi
11381        done
11382        IFS="$acl_save_IFS"
11383      fi
11384      ;;
11385  esac
11386  test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399    use_additional=yes
11400
11401  acl_save_prefix="$prefix"
11402  prefix="$acl_final_prefix"
11403  acl_save_exec_prefix="$exec_prefix"
11404  exec_prefix="$acl_final_exec_prefix"
11405
11406    eval additional_includedir=\"$includedir\"
11407    eval additional_libdir=\"$libdir\"
11408
11409  exec_prefix="$acl_save_exec_prefix"
11410  prefix="$acl_save_prefix"
11411
11412
11413# Check whether --with-libiconv-prefix was given.
11414if test "${with_libiconv_prefix+set}" = set; then :
11415  withval=$with_libiconv_prefix;
11416    if test "X$withval" = "Xno"; then
11417      use_additional=no
11418    else
11419      if test "X$withval" = "X"; then
11420
11421  acl_save_prefix="$prefix"
11422  prefix="$acl_final_prefix"
11423  acl_save_exec_prefix="$exec_prefix"
11424  exec_prefix="$acl_final_exec_prefix"
11425
11426          eval additional_includedir=\"$includedir\"
11427          eval additional_libdir=\"$libdir\"
11428
11429  exec_prefix="$acl_save_exec_prefix"
11430  prefix="$acl_save_prefix"
11431
11432      else
11433        additional_includedir="$withval/include"
11434        additional_libdir="$withval/$acl_libdirstem"
11435        if test "$acl_libdirstem2" != "$acl_libdirstem" \
11436           && ! test -d "$withval/$acl_libdirstem"; then
11437          additional_libdir="$withval/$acl_libdirstem2"
11438        fi
11439      fi
11440    fi
11441
11442fi
11443
11444      LIBICONV=
11445  LTLIBICONV=
11446  INCICONV=
11447  LIBICONV_PREFIX=
11448      HAVE_LIBICONV=
11449  rpathdirs=
11450  ltrpathdirs=
11451  names_already_handled=
11452  names_next_round='iconv '
11453  while test -n "$names_next_round"; do
11454    names_this_round="$names_next_round"
11455    names_next_round=
11456    for name in $names_this_round; do
11457      already_handled=
11458      for n in $names_already_handled; do
11459        if test "$n" = "$name"; then
11460          already_handled=yes
11461          break
11462        fi
11463      done
11464      if test -z "$already_handled"; then
11465        names_already_handled="$names_already_handled $name"
11466                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
11467        eval value=\"\$HAVE_LIB$uppername\"
11468        if test -n "$value"; then
11469          if test "$value" = yes; then
11470            eval value=\"\$LIB$uppername\"
11471            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11472            eval value=\"\$LTLIB$uppername\"
11473            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11474          else
11475                                    :
11476          fi
11477        else
11478                              found_dir=
11479          found_la=
11480          found_so=
11481          found_a=
11482          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
11483          if test -n "$acl_shlibext"; then
11484            shrext=".$acl_shlibext"             # typically: shrext=.so
11485          else
11486            shrext=
11487          fi
11488          if test $use_additional = yes; then
11489            dir="$additional_libdir"
11490                                    if test -n "$acl_shlibext"; then
11491              if test -f "$dir/$libname$shrext"; then
11492                found_dir="$dir"
11493                found_so="$dir/$libname$shrext"
11494              else
11495                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11496                  ver=`(cd "$dir" && \
11497                        for f in "$libname$shrext".*; do echo "$f"; done \
11498                        | sed -e "s,^$libname$shrext\\\\.,," \
11499                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11500                        | sed 1q ) 2>/dev/null`
11501                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11502                    found_dir="$dir"
11503                    found_so="$dir/$libname$shrext.$ver"
11504                  fi
11505                else
11506                  eval library_names=\"$acl_library_names_spec\"
11507                  for f in $library_names; do
11508                    if test -f "$dir/$f"; then
11509                      found_dir="$dir"
11510                      found_so="$dir/$f"
11511                      break
11512                    fi
11513                  done
11514                fi
11515              fi
11516            fi
11517                        if test "X$found_dir" = "X"; then
11518              if test -f "$dir/$libname.$acl_libext"; then
11519                found_dir="$dir"
11520                found_a="$dir/$libname.$acl_libext"
11521              fi
11522            fi
11523            if test "X$found_dir" != "X"; then
11524              if test -f "$dir/$libname.la"; then
11525                found_la="$dir/$libname.la"
11526              fi
11527            fi
11528          fi
11529          if test "X$found_dir" = "X"; then
11530            for x in $LDFLAGS $LTLIBICONV; do
11531
11532  acl_save_prefix="$prefix"
11533  prefix="$acl_final_prefix"
11534  acl_save_exec_prefix="$exec_prefix"
11535  exec_prefix="$acl_final_exec_prefix"
11536  eval x=\"$x\"
11537  exec_prefix="$acl_save_exec_prefix"
11538  prefix="$acl_save_prefix"
11539
11540              case "$x" in
11541                -L*)
11542                  dir=`echo "X$x" | sed -e 's/^X-L//'`
11543                                    if test -n "$acl_shlibext"; then
11544                    if test -f "$dir/$libname$shrext"; then
11545                      found_dir="$dir"
11546                      found_so="$dir/$libname$shrext"
11547                    else
11548                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11549                        ver=`(cd "$dir" && \
11550                              for f in "$libname$shrext".*; do echo "$f"; done \
11551                              | sed -e "s,^$libname$shrext\\\\.,," \
11552                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11553                              | sed 1q ) 2>/dev/null`
11554                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11555                          found_dir="$dir"
11556                          found_so="$dir/$libname$shrext.$ver"
11557                        fi
11558                      else
11559                        eval library_names=\"$acl_library_names_spec\"
11560                        for f in $library_names; do
11561                          if test -f "$dir/$f"; then
11562                            found_dir="$dir"
11563                            found_so="$dir/$f"
11564                            break
11565                          fi
11566                        done
11567                      fi
11568                    fi
11569                  fi
11570                                    if test "X$found_dir" = "X"; then
11571                    if test -f "$dir/$libname.$acl_libext"; then
11572                      found_dir="$dir"
11573                      found_a="$dir/$libname.$acl_libext"
11574                    fi
11575                  fi
11576                  if test "X$found_dir" != "X"; then
11577                    if test -f "$dir/$libname.la"; then
11578                      found_la="$dir/$libname.la"
11579                    fi
11580                  fi
11581                  ;;
11582              esac
11583              if test "X$found_dir" != "X"; then
11584                break
11585              fi
11586            done
11587          fi
11588          if test "X$found_dir" != "X"; then
11589                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11590            if test "X$found_so" != "X"; then
11591                                                        if test "$enable_rpath" = no \
11592                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
11593                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
11594                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11595              else
11596                                                                                haveit=
11597                for x in $ltrpathdirs; do
11598                  if test "X$x" = "X$found_dir"; then
11599                    haveit=yes
11600                    break
11601                  fi
11602                done
11603                if test -z "$haveit"; then
11604                  ltrpathdirs="$ltrpathdirs $found_dir"
11605                fi
11606                                if test "$acl_hardcode_direct" = yes; then
11607                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11608                else
11609                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11610                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11611                                                            haveit=
11612                    for x in $rpathdirs; do
11613                      if test "X$x" = "X$found_dir"; then
11614                        haveit=yes
11615                        break
11616                      fi
11617                    done
11618                    if test -z "$haveit"; then
11619                      rpathdirs="$rpathdirs $found_dir"
11620                    fi
11621                  else
11622                                                                                haveit=
11623                    for x in $LDFLAGS $LIBICONV; do
11624
11625  acl_save_prefix="$prefix"
11626  prefix="$acl_final_prefix"
11627  acl_save_exec_prefix="$exec_prefix"
11628  exec_prefix="$acl_final_exec_prefix"
11629  eval x=\"$x\"
11630  exec_prefix="$acl_save_exec_prefix"
11631  prefix="$acl_save_prefix"
11632
11633                      if test "X$x" = "X-L$found_dir"; then
11634                        haveit=yes
11635                        break
11636                      fi
11637                    done
11638                    if test -z "$haveit"; then
11639                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11640                    fi
11641                    if test "$acl_hardcode_minus_L" != no; then
11642                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11643                    else
11644                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11645                    fi
11646                  fi
11647                fi
11648              fi
11649            else
11650              if test "X$found_a" != "X"; then
11651                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11652              else
11653                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11654              fi
11655            fi
11656                        additional_includedir=
11657            case "$found_dir" in
11658              */$acl_libdirstem | */$acl_libdirstem/)
11659                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11660                if test "$name" = 'iconv'; then
11661                  LIBICONV_PREFIX="$basedir"
11662                fi
11663                additional_includedir="$basedir/include"
11664                ;;
11665              */$acl_libdirstem2 | */$acl_libdirstem2/)
11666                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11667                if test "$name" = 'iconv'; then
11668                  LIBICONV_PREFIX="$basedir"
11669                fi
11670                additional_includedir="$basedir/include"
11671                ;;
11672            esac
11673            if test "X$additional_includedir" != "X"; then
11674                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
11675                haveit=
11676                if test "X$additional_includedir" = "X/usr/local/include"; then
11677                  if test -n "$GCC"; then
11678                    case $host_os in
11679                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11680                    esac
11681                  fi
11682                fi
11683                if test -z "$haveit"; then
11684                  for x in $CPPFLAGS $INCICONV; do
11685
11686  acl_save_prefix="$prefix"
11687  prefix="$acl_final_prefix"
11688  acl_save_exec_prefix="$exec_prefix"
11689  exec_prefix="$acl_final_exec_prefix"
11690  eval x=\"$x\"
11691  exec_prefix="$acl_save_exec_prefix"
11692  prefix="$acl_save_prefix"
11693
11694                    if test "X$x" = "X-I$additional_includedir"; then
11695                      haveit=yes
11696                      break
11697                    fi
11698                  done
11699                  if test -z "$haveit"; then
11700                    if test -d "$additional_includedir"; then
11701                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11702                    fi
11703                  fi
11704                fi
11705              fi
11706            fi
11707                        if test -n "$found_la"; then
11708                                                        save_libdir="$libdir"
11709              case "$found_la" in
11710                */* | *\\*) . "$found_la" ;;
11711                *) . "./$found_la" ;;
11712              esac
11713              libdir="$save_libdir"
11714                            for dep in $dependency_libs; do
11715                case "$dep" in
11716                  -L*)
11717                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11718                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11719                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
11720                      haveit=
11721                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11722                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
11723                        if test -n "$GCC"; then
11724                          case $host_os in
11725                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11726                          esac
11727                        fi
11728                      fi
11729                      if test -z "$haveit"; then
11730                        haveit=
11731                        for x in $LDFLAGS $LIBICONV; do
11732
11733  acl_save_prefix="$prefix"
11734  prefix="$acl_final_prefix"
11735  acl_save_exec_prefix="$exec_prefix"
11736  exec_prefix="$acl_final_exec_prefix"
11737  eval x=\"$x\"
11738  exec_prefix="$acl_save_exec_prefix"
11739  prefix="$acl_save_prefix"
11740
11741                          if test "X$x" = "X-L$additional_libdir"; then
11742                            haveit=yes
11743                            break
11744                          fi
11745                        done
11746                        if test -z "$haveit"; then
11747                          if test -d "$additional_libdir"; then
11748                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11749                          fi
11750                        fi
11751                        haveit=
11752                        for x in $LDFLAGS $LTLIBICONV; do
11753
11754  acl_save_prefix="$prefix"
11755  prefix="$acl_final_prefix"
11756  acl_save_exec_prefix="$exec_prefix"
11757  exec_prefix="$acl_final_exec_prefix"
11758  eval x=\"$x\"
11759  exec_prefix="$acl_save_exec_prefix"
11760  prefix="$acl_save_prefix"
11761
11762                          if test "X$x" = "X-L$additional_libdir"; then
11763                            haveit=yes
11764                            break
11765                          fi
11766                        done
11767                        if test -z "$haveit"; then
11768                          if test -d "$additional_libdir"; then
11769                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11770                          fi
11771                        fi
11772                      fi
11773                    fi
11774                    ;;
11775                  -R*)
11776                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
11777                    if test "$enable_rpath" != no; then
11778                                                                  haveit=
11779                      for x in $rpathdirs; do
11780                        if test "X$x" = "X$dir"; then
11781                          haveit=yes
11782                          break
11783                        fi
11784                      done
11785                      if test -z "$haveit"; then
11786                        rpathdirs="$rpathdirs $dir"
11787                      fi
11788                                                                  haveit=
11789                      for x in $ltrpathdirs; do
11790                        if test "X$x" = "X$dir"; then
11791                          haveit=yes
11792                          break
11793                        fi
11794                      done
11795                      if test -z "$haveit"; then
11796                        ltrpathdirs="$ltrpathdirs $dir"
11797                      fi
11798                    fi
11799                    ;;
11800                  -l*)
11801                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11802                    ;;
11803                  *.la)
11804                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11805                    ;;
11806                  *)
11807                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11808                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11809                    ;;
11810                esac
11811              done
11812            fi
11813          else
11814                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11815            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11816          fi
11817        fi
11818      fi
11819    done
11820  done
11821  if test "X$rpathdirs" != "X"; then
11822    if test -n "$acl_hardcode_libdir_separator"; then
11823                        alldirs=
11824      for found_dir in $rpathdirs; do
11825        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11826      done
11827            acl_save_libdir="$libdir"
11828      libdir="$alldirs"
11829      eval flag=\"$acl_hardcode_libdir_flag_spec\"
11830      libdir="$acl_save_libdir"
11831      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11832    else
11833            for found_dir in $rpathdirs; do
11834        acl_save_libdir="$libdir"
11835        libdir="$found_dir"
11836        eval flag=\"$acl_hardcode_libdir_flag_spec\"
11837        libdir="$acl_save_libdir"
11838        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11839      done
11840    fi
11841  fi
11842  if test "X$ltrpathdirs" != "X"; then
11843            for found_dir in $ltrpathdirs; do
11844      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11845    done
11846  fi
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
11879$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
11880if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
11881  $as_echo_n "(cached) " >&6
11882else
11883  gt_save_LIBS="$LIBS"
11884     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
11885     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11886/* end confdefs.h.  */
11887#include <CoreFoundation/CFPreferences.h>
11888int
11889main ()
11890{
11891CFPreferencesCopyAppValue(NULL, NULL)
11892  ;
11893  return 0;
11894}
11895_ACEOF
11896if ac_fn_cxx_try_link "$LINENO"; then :
11897  gt_cv_func_CFPreferencesCopyAppValue=yes
11898else
11899  gt_cv_func_CFPreferencesCopyAppValue=no
11900fi
11901rm -f core conftest.err conftest.$ac_objext \
11902    conftest$ac_exeext conftest.$ac_ext
11903     LIBS="$gt_save_LIBS"
11904fi
11905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
11906$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
11907  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
11908
11909$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
11910
11911  fi
11912    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
11913$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
11914if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
11915  $as_echo_n "(cached) " >&6
11916else
11917  gt_save_LIBS="$LIBS"
11918     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
11919     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11920/* end confdefs.h.  */
11921#include <CoreFoundation/CFLocale.h>
11922int
11923main ()
11924{
11925CFLocaleCopyCurrent();
11926  ;
11927  return 0;
11928}
11929_ACEOF
11930if ac_fn_cxx_try_link "$LINENO"; then :
11931  gt_cv_func_CFLocaleCopyCurrent=yes
11932else
11933  gt_cv_func_CFLocaleCopyCurrent=no
11934fi
11935rm -f core conftest.err conftest.$ac_objext \
11936    conftest$ac_exeext conftest.$ac_ext
11937     LIBS="$gt_save_LIBS"
11938fi
11939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
11940$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
11941  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11942
11943$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
11944
11945  fi
11946  INTL_MACOSX_LIBS=
11947  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11948    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
11949  fi
11950
11951
11952
11953
11954
11955
11956  LIBINTL=
11957  LTLIBINTL=
11958  POSUB=
11959
11960    case " $gt_needs " in
11961    *" need-formatstring-macros "*) gt_api_version=3 ;;
11962    *" need-ngettext "*) gt_api_version=2 ;;
11963    *) gt_api_version=1 ;;
11964  esac
11965  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
11966  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
11967
11968    if test "$USE_NLS" = "yes"; then
11969    gt_use_preinstalled_gnugettext=no
11970
11971
11972        if test $gt_api_version -ge 3; then
11973          gt_revision_test_code='
11974#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
11975#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
11976#endif
11977typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
11978'
11979        else
11980          gt_revision_test_code=
11981        fi
11982        if test $gt_api_version -ge 2; then
11983          gt_expression_test_code=' + * ngettext ("", "", 0)'
11984        else
11985          gt_expression_test_code=
11986        fi
11987
11988        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
11989$as_echo_n "checking for GNU gettext in libc... " >&6; }
11990if eval \${$gt_func_gnugettext_libc+:} false; then :
11991  $as_echo_n "(cached) " >&6
11992else
11993  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11994/* end confdefs.h.  */
11995
11996#include <libintl.h>
11997$gt_revision_test_code
11998extern int _nl_msg_cat_cntr;
11999extern int *_nl_domain_bindings;
12000
12001int
12002main ()
12003{
12004
12005bindtextdomain ("", "");
12006return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
12007
12008  ;
12009  return 0;
12010}
12011_ACEOF
12012if ac_fn_cxx_try_link "$LINENO"; then :
12013  eval "$gt_func_gnugettext_libc=yes"
12014else
12015  eval "$gt_func_gnugettext_libc=no"
12016fi
12017rm -f core conftest.err conftest.$ac_objext \
12018    conftest$ac_exeext conftest.$ac_ext
12019fi
12020eval ac_res=\$$gt_func_gnugettext_libc
12021	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12022$as_echo "$ac_res" >&6; }
12023
12024        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
12025
12026
12027
12028
12029
12030          am_save_CPPFLAGS="$CPPFLAGS"
12031
12032  for element in $INCICONV; do
12033    haveit=
12034    for x in $CPPFLAGS; do
12035
12036  acl_save_prefix="$prefix"
12037  prefix="$acl_final_prefix"
12038  acl_save_exec_prefix="$exec_prefix"
12039  exec_prefix="$acl_final_exec_prefix"
12040  eval x=\"$x\"
12041  exec_prefix="$acl_save_exec_prefix"
12042  prefix="$acl_save_prefix"
12043
12044      if test "X$x" = "X$element"; then
12045        haveit=yes
12046        break
12047      fi
12048    done
12049    if test -z "$haveit"; then
12050      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12051    fi
12052  done
12053
12054
12055  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
12056$as_echo_n "checking for iconv... " >&6; }
12057if ${am_cv_func_iconv+:} false; then :
12058  $as_echo_n "(cached) " >&6
12059else
12060
12061    am_cv_func_iconv="no, consider installing GNU libiconv"
12062    am_cv_lib_iconv=no
12063    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12064/* end confdefs.h.  */
12065
12066#include <stdlib.h>
12067#include <iconv.h>
12068
12069int
12070main ()
12071{
12072iconv_t cd = iconv_open("","");
12073           iconv(cd,NULL,NULL,NULL,NULL);
12074           iconv_close(cd);
12075  ;
12076  return 0;
12077}
12078_ACEOF
12079if ac_fn_cxx_try_link "$LINENO"; then :
12080  am_cv_func_iconv=yes
12081fi
12082rm -f core conftest.err conftest.$ac_objext \
12083    conftest$ac_exeext conftest.$ac_ext
12084    if test "$am_cv_func_iconv" != yes; then
12085      am_save_LIBS="$LIBS"
12086      LIBS="$LIBS $LIBICONV"
12087      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12088/* end confdefs.h.  */
12089
12090#include <stdlib.h>
12091#include <iconv.h>
12092
12093int
12094main ()
12095{
12096iconv_t cd = iconv_open("","");
12097             iconv(cd,NULL,NULL,NULL,NULL);
12098             iconv_close(cd);
12099  ;
12100  return 0;
12101}
12102_ACEOF
12103if ac_fn_cxx_try_link "$LINENO"; then :
12104  am_cv_lib_iconv=yes
12105        am_cv_func_iconv=yes
12106fi
12107rm -f core conftest.err conftest.$ac_objext \
12108    conftest$ac_exeext conftest.$ac_ext
12109      LIBS="$am_save_LIBS"
12110    fi
12111
12112fi
12113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
12114$as_echo "$am_cv_func_iconv" >&6; }
12115  if test "$am_cv_func_iconv" = yes; then
12116    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
12117$as_echo_n "checking for working iconv... " >&6; }
12118if ${am_cv_func_iconv_works+:} false; then :
12119  $as_echo_n "(cached) " >&6
12120else
12121
12122                  am_save_LIBS="$LIBS"
12123      if test $am_cv_lib_iconv = yes; then
12124        LIBS="$LIBS $LIBICONV"
12125      fi
12126      if test "$cross_compiling" = yes; then :
12127
12128         case "$host_os" in
12129           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
12130           *)            am_cv_func_iconv_works="guessing yes" ;;
12131         esac
12132
12133else
12134  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12135/* end confdefs.h.  */
12136
12137#include <iconv.h>
12138#include <string.h>
12139int main ()
12140{
12141  int result = 0;
12142  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
12143     returns.  */
12144  {
12145    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
12146    if (cd_utf8_to_88591 != (iconv_t)(-1))
12147      {
12148        static const char input[] = "\342\202\254"; /* EURO SIGN */
12149        char buf[10];
12150        const char *inptr = input;
12151        size_t inbytesleft = strlen (input);
12152        char *outptr = buf;
12153        size_t outbytesleft = sizeof (buf);
12154        size_t res = iconv (cd_utf8_to_88591,
12155                            (char **) &inptr, &inbytesleft,
12156                            &outptr, &outbytesleft);
12157        if (res == 0)
12158          result |= 1;
12159        iconv_close (cd_utf8_to_88591);
12160      }
12161  }
12162  /* Test against Solaris 10 bug: Failures are not distinguishable from
12163     successful returns.  */
12164  {
12165    iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
12166    if (cd_ascii_to_88591 != (iconv_t)(-1))
12167      {
12168        static const char input[] = "\263";
12169        char buf[10];
12170        const char *inptr = input;
12171        size_t inbytesleft = strlen (input);
12172        char *outptr = buf;
12173        size_t outbytesleft = sizeof (buf);
12174        size_t res = iconv (cd_ascii_to_88591,
12175                            (char **) &inptr, &inbytesleft,
12176                            &outptr, &outbytesleft);
12177        if (res == 0)
12178          result |= 2;
12179        iconv_close (cd_ascii_to_88591);
12180      }
12181  }
12182  /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
12183  {
12184    iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
12185    if (cd_88591_to_utf8 != (iconv_t)(-1))
12186      {
12187        static const char input[] = "\304";
12188        static char buf[2] = { (char)0xDE, (char)0xAD };
12189        const char *inptr = input;
12190        size_t inbytesleft = 1;
12191        char *outptr = buf;
12192        size_t outbytesleft = 1;
12193        size_t res = iconv (cd_88591_to_utf8,
12194                            (char **) &inptr, &inbytesleft,
12195                            &outptr, &outbytesleft);
12196        if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
12197          result |= 4;
12198        iconv_close (cd_88591_to_utf8);
12199      }
12200  }
12201#if 0 /* This bug could be worked around by the caller.  */
12202  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
12203  {
12204    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
12205    if (cd_88591_to_utf8 != (iconv_t)(-1))
12206      {
12207        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
12208        char buf[50];
12209        const char *inptr = input;
12210        size_t inbytesleft = strlen (input);
12211        char *outptr = buf;
12212        size_t outbytesleft = sizeof (buf);
12213        size_t res = iconv (cd_88591_to_utf8,
12214                            (char **) &inptr, &inbytesleft,
12215                            &outptr, &outbytesleft);
12216        if ((int)res > 0)
12217          result |= 8;
12218        iconv_close (cd_88591_to_utf8);
12219      }
12220  }
12221#endif
12222  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
12223     provided.  */
12224  if (/* Try standardized names.  */
12225      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
12226      /* Try IRIX, OSF/1 names.  */
12227      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
12228      /* Try AIX names.  */
12229      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
12230      /* Try HP-UX names.  */
12231      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
12232    result |= 16;
12233  return result;
12234}
12235_ACEOF
12236if ac_fn_cxx_try_run "$LINENO"; then :
12237  am_cv_func_iconv_works=yes
12238else
12239  am_cv_func_iconv_works=no
12240fi
12241rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12242  conftest.$ac_objext conftest.beam conftest.$ac_ext
12243fi
12244
12245      LIBS="$am_save_LIBS"
12246
12247fi
12248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
12249$as_echo "$am_cv_func_iconv_works" >&6; }
12250    case "$am_cv_func_iconv_works" in
12251      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
12252      *)   am_func_iconv=yes ;;
12253    esac
12254  else
12255    am_func_iconv=no am_cv_lib_iconv=no
12256  fi
12257  if test "$am_func_iconv" = yes; then
12258
12259$as_echo "#define HAVE_ICONV 1" >>confdefs.h
12260
12261  fi
12262  if test "$am_cv_lib_iconv" = yes; then
12263    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12264$as_echo_n "checking how to link with libiconv... " >&6; }
12265    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12266$as_echo "$LIBICONV" >&6; }
12267  else
12268            CPPFLAGS="$am_save_CPPFLAGS"
12269    LIBICONV=
12270    LTLIBICONV=
12271  fi
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283    use_additional=yes
12284
12285  acl_save_prefix="$prefix"
12286  prefix="$acl_final_prefix"
12287  acl_save_exec_prefix="$exec_prefix"
12288  exec_prefix="$acl_final_exec_prefix"
12289
12290    eval additional_includedir=\"$includedir\"
12291    eval additional_libdir=\"$libdir\"
12292
12293  exec_prefix="$acl_save_exec_prefix"
12294  prefix="$acl_save_prefix"
12295
12296
12297# Check whether --with-libintl-prefix was given.
12298if test "${with_libintl_prefix+set}" = set; then :
12299  withval=$with_libintl_prefix;
12300    if test "X$withval" = "Xno"; then
12301      use_additional=no
12302    else
12303      if test "X$withval" = "X"; then
12304
12305  acl_save_prefix="$prefix"
12306  prefix="$acl_final_prefix"
12307  acl_save_exec_prefix="$exec_prefix"
12308  exec_prefix="$acl_final_exec_prefix"
12309
12310          eval additional_includedir=\"$includedir\"
12311          eval additional_libdir=\"$libdir\"
12312
12313  exec_prefix="$acl_save_exec_prefix"
12314  prefix="$acl_save_prefix"
12315
12316      else
12317        additional_includedir="$withval/include"
12318        additional_libdir="$withval/$acl_libdirstem"
12319        if test "$acl_libdirstem2" != "$acl_libdirstem" \
12320           && ! test -d "$withval/$acl_libdirstem"; then
12321          additional_libdir="$withval/$acl_libdirstem2"
12322        fi
12323      fi
12324    fi
12325
12326fi
12327
12328      LIBINTL=
12329  LTLIBINTL=
12330  INCINTL=
12331  LIBINTL_PREFIX=
12332      HAVE_LIBINTL=
12333  rpathdirs=
12334  ltrpathdirs=
12335  names_already_handled=
12336  names_next_round='intl '
12337  while test -n "$names_next_round"; do
12338    names_this_round="$names_next_round"
12339    names_next_round=
12340    for name in $names_this_round; do
12341      already_handled=
12342      for n in $names_already_handled; do
12343        if test "$n" = "$name"; then
12344          already_handled=yes
12345          break
12346        fi
12347      done
12348      if test -z "$already_handled"; then
12349        names_already_handled="$names_already_handled $name"
12350                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
12351        eval value=\"\$HAVE_LIB$uppername\"
12352        if test -n "$value"; then
12353          if test "$value" = yes; then
12354            eval value=\"\$LIB$uppername\"
12355            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12356            eval value=\"\$LTLIB$uppername\"
12357            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12358          else
12359                                    :
12360          fi
12361        else
12362                              found_dir=
12363          found_la=
12364          found_so=
12365          found_a=
12366          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
12367          if test -n "$acl_shlibext"; then
12368            shrext=".$acl_shlibext"             # typically: shrext=.so
12369          else
12370            shrext=
12371          fi
12372          if test $use_additional = yes; then
12373            dir="$additional_libdir"
12374                                    if test -n "$acl_shlibext"; then
12375              if test -f "$dir/$libname$shrext"; then
12376                found_dir="$dir"
12377                found_so="$dir/$libname$shrext"
12378              else
12379                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12380                  ver=`(cd "$dir" && \
12381                        for f in "$libname$shrext".*; do echo "$f"; done \
12382                        | sed -e "s,^$libname$shrext\\\\.,," \
12383                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12384                        | sed 1q ) 2>/dev/null`
12385                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12386                    found_dir="$dir"
12387                    found_so="$dir/$libname$shrext.$ver"
12388                  fi
12389                else
12390                  eval library_names=\"$acl_library_names_spec\"
12391                  for f in $library_names; do
12392                    if test -f "$dir/$f"; then
12393                      found_dir="$dir"
12394                      found_so="$dir/$f"
12395                      break
12396                    fi
12397                  done
12398                fi
12399              fi
12400            fi
12401                        if test "X$found_dir" = "X"; then
12402              if test -f "$dir/$libname.$acl_libext"; then
12403                found_dir="$dir"
12404                found_a="$dir/$libname.$acl_libext"
12405              fi
12406            fi
12407            if test "X$found_dir" != "X"; then
12408              if test -f "$dir/$libname.la"; then
12409                found_la="$dir/$libname.la"
12410              fi
12411            fi
12412          fi
12413          if test "X$found_dir" = "X"; then
12414            for x in $LDFLAGS $LTLIBINTL; do
12415
12416  acl_save_prefix="$prefix"
12417  prefix="$acl_final_prefix"
12418  acl_save_exec_prefix="$exec_prefix"
12419  exec_prefix="$acl_final_exec_prefix"
12420  eval x=\"$x\"
12421  exec_prefix="$acl_save_exec_prefix"
12422  prefix="$acl_save_prefix"
12423
12424              case "$x" in
12425                -L*)
12426                  dir=`echo "X$x" | sed -e 's/^X-L//'`
12427                                    if test -n "$acl_shlibext"; then
12428                    if test -f "$dir/$libname$shrext"; then
12429                      found_dir="$dir"
12430                      found_so="$dir/$libname$shrext"
12431                    else
12432                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12433                        ver=`(cd "$dir" && \
12434                              for f in "$libname$shrext".*; do echo "$f"; done \
12435                              | sed -e "s,^$libname$shrext\\\\.,," \
12436                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12437                              | sed 1q ) 2>/dev/null`
12438                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12439                          found_dir="$dir"
12440                          found_so="$dir/$libname$shrext.$ver"
12441                        fi
12442                      else
12443                        eval library_names=\"$acl_library_names_spec\"
12444                        for f in $library_names; do
12445                          if test -f "$dir/$f"; then
12446                            found_dir="$dir"
12447                            found_so="$dir/$f"
12448                            break
12449                          fi
12450                        done
12451                      fi
12452                    fi
12453                  fi
12454                                    if test "X$found_dir" = "X"; then
12455                    if test -f "$dir/$libname.$acl_libext"; then
12456                      found_dir="$dir"
12457                      found_a="$dir/$libname.$acl_libext"
12458                    fi
12459                  fi
12460                  if test "X$found_dir" != "X"; then
12461                    if test -f "$dir/$libname.la"; then
12462                      found_la="$dir/$libname.la"
12463                    fi
12464                  fi
12465                  ;;
12466              esac
12467              if test "X$found_dir" != "X"; then
12468                break
12469              fi
12470            done
12471          fi
12472          if test "X$found_dir" != "X"; then
12473                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12474            if test "X$found_so" != "X"; then
12475                                                        if test "$enable_rpath" = no \
12476                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
12477                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
12478                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12479              else
12480                                                                                haveit=
12481                for x in $ltrpathdirs; do
12482                  if test "X$x" = "X$found_dir"; then
12483                    haveit=yes
12484                    break
12485                  fi
12486                done
12487                if test -z "$haveit"; then
12488                  ltrpathdirs="$ltrpathdirs $found_dir"
12489                fi
12490                                if test "$acl_hardcode_direct" = yes; then
12491                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12492                else
12493                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12494                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12495                                                            haveit=
12496                    for x in $rpathdirs; do
12497                      if test "X$x" = "X$found_dir"; then
12498                        haveit=yes
12499                        break
12500                      fi
12501                    done
12502                    if test -z "$haveit"; then
12503                      rpathdirs="$rpathdirs $found_dir"
12504                    fi
12505                  else
12506                                                                                haveit=
12507                    for x in $LDFLAGS $LIBINTL; do
12508
12509  acl_save_prefix="$prefix"
12510  prefix="$acl_final_prefix"
12511  acl_save_exec_prefix="$exec_prefix"
12512  exec_prefix="$acl_final_exec_prefix"
12513  eval x=\"$x\"
12514  exec_prefix="$acl_save_exec_prefix"
12515  prefix="$acl_save_prefix"
12516
12517                      if test "X$x" = "X-L$found_dir"; then
12518                        haveit=yes
12519                        break
12520                      fi
12521                    done
12522                    if test -z "$haveit"; then
12523                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12524                    fi
12525                    if test "$acl_hardcode_minus_L" != no; then
12526                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12527                    else
12528                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12529                    fi
12530                  fi
12531                fi
12532              fi
12533            else
12534              if test "X$found_a" != "X"; then
12535                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12536              else
12537                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12538              fi
12539            fi
12540                        additional_includedir=
12541            case "$found_dir" in
12542              */$acl_libdirstem | */$acl_libdirstem/)
12543                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12544                if test "$name" = 'intl'; then
12545                  LIBINTL_PREFIX="$basedir"
12546                fi
12547                additional_includedir="$basedir/include"
12548                ;;
12549              */$acl_libdirstem2 | */$acl_libdirstem2/)
12550                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
12551                if test "$name" = 'intl'; then
12552                  LIBINTL_PREFIX="$basedir"
12553                fi
12554                additional_includedir="$basedir/include"
12555                ;;
12556            esac
12557            if test "X$additional_includedir" != "X"; then
12558                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
12559                haveit=
12560                if test "X$additional_includedir" = "X/usr/local/include"; then
12561                  if test -n "$GCC"; then
12562                    case $host_os in
12563                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12564                    esac
12565                  fi
12566                fi
12567                if test -z "$haveit"; then
12568                  for x in $CPPFLAGS $INCINTL; do
12569
12570  acl_save_prefix="$prefix"
12571  prefix="$acl_final_prefix"
12572  acl_save_exec_prefix="$exec_prefix"
12573  exec_prefix="$acl_final_exec_prefix"
12574  eval x=\"$x\"
12575  exec_prefix="$acl_save_exec_prefix"
12576  prefix="$acl_save_prefix"
12577
12578                    if test "X$x" = "X-I$additional_includedir"; then
12579                      haveit=yes
12580                      break
12581                    fi
12582                  done
12583                  if test -z "$haveit"; then
12584                    if test -d "$additional_includedir"; then
12585                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12586                    fi
12587                  fi
12588                fi
12589              fi
12590            fi
12591                        if test -n "$found_la"; then
12592                                                        save_libdir="$libdir"
12593              case "$found_la" in
12594                */* | *\\*) . "$found_la" ;;
12595                *) . "./$found_la" ;;
12596              esac
12597              libdir="$save_libdir"
12598                            for dep in $dependency_libs; do
12599                case "$dep" in
12600                  -L*)
12601                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12602                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
12603                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
12604                      haveit=
12605                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
12606                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
12607                        if test -n "$GCC"; then
12608                          case $host_os in
12609                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12610                          esac
12611                        fi
12612                      fi
12613                      if test -z "$haveit"; then
12614                        haveit=
12615                        for x in $LDFLAGS $LIBINTL; do
12616
12617  acl_save_prefix="$prefix"
12618  prefix="$acl_final_prefix"
12619  acl_save_exec_prefix="$exec_prefix"
12620  exec_prefix="$acl_final_exec_prefix"
12621  eval x=\"$x\"
12622  exec_prefix="$acl_save_exec_prefix"
12623  prefix="$acl_save_prefix"
12624
12625                          if test "X$x" = "X-L$additional_libdir"; then
12626                            haveit=yes
12627                            break
12628                          fi
12629                        done
12630                        if test -z "$haveit"; then
12631                          if test -d "$additional_libdir"; then
12632                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
12633                          fi
12634                        fi
12635                        haveit=
12636                        for x in $LDFLAGS $LTLIBINTL; do
12637
12638  acl_save_prefix="$prefix"
12639  prefix="$acl_final_prefix"
12640  acl_save_exec_prefix="$exec_prefix"
12641  exec_prefix="$acl_final_exec_prefix"
12642  eval x=\"$x\"
12643  exec_prefix="$acl_save_exec_prefix"
12644  prefix="$acl_save_prefix"
12645
12646                          if test "X$x" = "X-L$additional_libdir"; then
12647                            haveit=yes
12648                            break
12649                          fi
12650                        done
12651                        if test -z "$haveit"; then
12652                          if test -d "$additional_libdir"; then
12653                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
12654                          fi
12655                        fi
12656                      fi
12657                    fi
12658                    ;;
12659                  -R*)
12660                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
12661                    if test "$enable_rpath" != no; then
12662                                                                  haveit=
12663                      for x in $rpathdirs; do
12664                        if test "X$x" = "X$dir"; then
12665                          haveit=yes
12666                          break
12667                        fi
12668                      done
12669                      if test -z "$haveit"; then
12670                        rpathdirs="$rpathdirs $dir"
12671                      fi
12672                                                                  haveit=
12673                      for x in $ltrpathdirs; do
12674                        if test "X$x" = "X$dir"; then
12675                          haveit=yes
12676                          break
12677                        fi
12678                      done
12679                      if test -z "$haveit"; then
12680                        ltrpathdirs="$ltrpathdirs $dir"
12681                      fi
12682                    fi
12683                    ;;
12684                  -l*)
12685                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12686                    ;;
12687                  *.la)
12688                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12689                    ;;
12690                  *)
12691                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
12692                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
12693                    ;;
12694                esac
12695              done
12696            fi
12697          else
12698                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12699            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
12700          fi
12701        fi
12702      fi
12703    done
12704  done
12705  if test "X$rpathdirs" != "X"; then
12706    if test -n "$acl_hardcode_libdir_separator"; then
12707                        alldirs=
12708      for found_dir in $rpathdirs; do
12709        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
12710      done
12711            acl_save_libdir="$libdir"
12712      libdir="$alldirs"
12713      eval flag=\"$acl_hardcode_libdir_flag_spec\"
12714      libdir="$acl_save_libdir"
12715      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12716    else
12717            for found_dir in $rpathdirs; do
12718        acl_save_libdir="$libdir"
12719        libdir="$found_dir"
12720        eval flag=\"$acl_hardcode_libdir_flag_spec\"
12721        libdir="$acl_save_libdir"
12722        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12723      done
12724    fi
12725  fi
12726  if test "X$ltrpathdirs" != "X"; then
12727            for found_dir in $ltrpathdirs; do
12728      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
12729    done
12730  fi
12731
12732
12733
12734
12735
12736
12737          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
12738$as_echo_n "checking for GNU gettext in libintl... " >&6; }
12739if eval \${$gt_func_gnugettext_libintl+:} false; then :
12740  $as_echo_n "(cached) " >&6
12741else
12742  gt_save_CPPFLAGS="$CPPFLAGS"
12743            CPPFLAGS="$CPPFLAGS $INCINTL"
12744            gt_save_LIBS="$LIBS"
12745            LIBS="$LIBS $LIBINTL"
12746                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12747/* end confdefs.h.  */
12748
12749#include <libintl.h>
12750$gt_revision_test_code
12751extern int _nl_msg_cat_cntr;
12752extern
12753#ifdef __cplusplus
12754"C"
12755#endif
12756const char *_nl_expand_alias (const char *);
12757
12758int
12759main ()
12760{
12761
12762bindtextdomain ("", "");
12763return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12764
12765  ;
12766  return 0;
12767}
12768_ACEOF
12769if ac_fn_cxx_try_link "$LINENO"; then :
12770  eval "$gt_func_gnugettext_libintl=yes"
12771else
12772  eval "$gt_func_gnugettext_libintl=no"
12773fi
12774rm -f core conftest.err conftest.$ac_objext \
12775    conftest$ac_exeext conftest.$ac_ext
12776                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
12777              LIBS="$LIBS $LIBICONV"
12778              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12779/* end confdefs.h.  */
12780
12781#include <libintl.h>
12782$gt_revision_test_code
12783extern int _nl_msg_cat_cntr;
12784extern
12785#ifdef __cplusplus
12786"C"
12787#endif
12788const char *_nl_expand_alias (const char *);
12789
12790int
12791main ()
12792{
12793
12794bindtextdomain ("", "");
12795return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12796
12797  ;
12798  return 0;
12799}
12800_ACEOF
12801if ac_fn_cxx_try_link "$LINENO"; then :
12802  LIBINTL="$LIBINTL $LIBICONV"
12803                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
12804                 eval "$gt_func_gnugettext_libintl=yes"
12805
12806fi
12807rm -f core conftest.err conftest.$ac_objext \
12808    conftest$ac_exeext conftest.$ac_ext
12809            fi
12810            CPPFLAGS="$gt_save_CPPFLAGS"
12811            LIBS="$gt_save_LIBS"
12812fi
12813eval ac_res=\$$gt_func_gnugettext_libintl
12814	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12815$as_echo "$ac_res" >&6; }
12816        fi
12817
12818                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
12819           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
12820                && test "$PACKAGE" != gettext-runtime \
12821                && test "$PACKAGE" != gettext-tools; }; then
12822          gt_use_preinstalled_gnugettext=yes
12823        else
12824                    LIBINTL=
12825          LTLIBINTL=
12826          INCINTL=
12827        fi
12828
12829
12830
12831    if test -n "$INTL_MACOSX_LIBS"; then
12832      if test "$gt_use_preinstalled_gnugettext" = "yes" \
12833         || test "$nls_cv_use_gnu_gettext" = "yes"; then
12834                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
12835        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
12836      fi
12837    fi
12838
12839    if test "$gt_use_preinstalled_gnugettext" = "yes" \
12840       || test "$nls_cv_use_gnu_gettext" = "yes"; then
12841
12842$as_echo "#define ENABLE_NLS 1" >>confdefs.h
12843
12844    else
12845      USE_NLS=no
12846    fi
12847  fi
12848
12849  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
12850$as_echo_n "checking whether to use NLS... " >&6; }
12851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12852$as_echo "$USE_NLS" >&6; }
12853  if test "$USE_NLS" = "yes"; then
12854    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
12855$as_echo_n "checking where the gettext function comes from... " >&6; }
12856    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12857      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
12858        gt_source="external libintl"
12859      else
12860        gt_source="libc"
12861      fi
12862    else
12863      gt_source="included intl directory"
12864    fi
12865    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
12866$as_echo "$gt_source" >&6; }
12867  fi
12868
12869  if test "$USE_NLS" = "yes"; then
12870
12871    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12872      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
12873        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
12874$as_echo_n "checking how to link with libintl... " >&6; }
12875        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
12876$as_echo "$LIBINTL" >&6; }
12877
12878  for element in $INCINTL; do
12879    haveit=
12880    for x in $CPPFLAGS; do
12881
12882  acl_save_prefix="$prefix"
12883  prefix="$acl_final_prefix"
12884  acl_save_exec_prefix="$exec_prefix"
12885  exec_prefix="$acl_final_exec_prefix"
12886  eval x=\"$x\"
12887  exec_prefix="$acl_save_exec_prefix"
12888  prefix="$acl_save_prefix"
12889
12890      if test "X$x" = "X$element"; then
12891        haveit=yes
12892        break
12893      fi
12894    done
12895    if test -z "$haveit"; then
12896      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12897    fi
12898  done
12899
12900      fi
12901
12902
12903$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
12904
12905
12906$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
12907
12908    fi
12909
12910        POSUB=po
12911  fi
12912
12913
12914
12915    INTLLIBS="$LIBINTL"
12916
12917
12918
12919
12920
12921
12922
12923################
12924# Update checker
12925################
12926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the update checker" >&5
12927$as_echo_n "checking whether to enable the update checker... " >&6; }
12928# Check whether --enable-update-checker was given.
12929if test "${enable_update_checker+set}" = set; then :
12930  enableval=$enable_update_checker;
12931fi
12932
12933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_update_checker:=yes}" >&5
12934$as_echo "${enable_update_checker:=yes}" >&6; }
12935if test "x$enable_update_checker" != "xno"; then :
12936
12937$as_echo "#define WITH_UPDATE_CHECKER /**/" >>confdefs.h
12938
12939fi
12940
12941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for update checker server" >&5
12942$as_echo_n "checking for update checker server... " >&6; }
12943
12944# Check whether --with-update-server was given.
12945if test "${with_update_server+set}" = set; then :
12946  withval=$with_update_server;
12947fi
12948
12949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_update_server:=updates.aegisub.org}" >&5
12950$as_echo "${with_update_server:=updates.aegisub.org}" >&6; }
12951
12952cat >>confdefs.h <<_ACEOF
12953#define UPDATE_CHECKER_SERVER "$with_update_server"
12954_ACEOF
12955
12956
12957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for update checker base URL" >&5
12958$as_echo_n "checking for update checker base URL... " >&6; }
12959
12960# Check whether --with-update-url was given.
12961if test "${with_update_url+set}" = set; then :
12962  withval=$with_update_url;
12963fi
12964
12965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_update_url:=/trunk}" >&5
12966$as_echo "${with_update_url:=/trunk}" >&6; }
12967
12968cat >>confdefs.h <<_ACEOF
12969#define UPDATE_CHECKER_BASE_URL "$with_update_url"
12970_ACEOF
12971
12972
12973####################################################################
12974# Default settings for Providers/Players
12975# * This is done at the end to preserve sanity rather than littering
12976#   it above.
12977####################################################################
12978
12979# Check whether --with-player-audio was given.
12980if test "${with_player_audio+set}" = set; then :
12981  withval=$with_player_audio;
12982fi
12983
12984
12985# Default audio player.
12986if test -z "$with_player_audio"; then :
12987
12988  if test x$build_linux = xyes && test x$with_alsa = xyes; then :
12989  DEFAULT_PLAYER_AUDIO="ALSA"
12990elif test x$build_darwin = xyes && test x$with_openal = xyes; then :
12991  DEFAULT_PLAYER_AUDIO="OpenAL"
12992elif test x$with_portaudio = xyes; then :
12993  DEFAULT_PLAYER_AUDIO="PortAudio"
12994elif test x$with_oss = xyes; then :
12995  DEFAULT_PLAYER_AUDIO="OSS"
12996elif test x$with_alsa = xyes; then :
12997  DEFAULT_PLAYER_AUDIO="ALSA"
12998elif test x$with_openal = xyes; then :
12999  DEFAULT_PLAYER_AUDIO="OpenAL"
13000elif test x$with_libpulse = xyes; then :
13001  DEFAULT_PLAYER_AUDIO="PulseAudio"
13002fi
13003else
13004  DEFAULT_PLAYER_AUDIO="$with_player_audio"
13005fi
13006
13007
13008# Set some friendly strings if some of the above aren't detected.
13009DEFAULT_PLAYER_AUDIO=${DEFAULT_PLAYER_AUDIO:-NONE}
13010
13011###############
13012# Misc settings
13013###############
13014# Files that need substitution.
13015ac_config_files="$ac_config_files packages/desktop/aegisub.desktop.template src/libresrc/default_config_platform.json tools/osx-bundle.sed Makefile.inc"
13016
13017
13018cat >confcache <<\_ACEOF
13019# This file is a shell script that caches the results of configure
13020# tests run on this system so they can be shared between configure
13021# scripts and configure runs, see configure's option --config-cache.
13022# It is not useful on other systems.  If it contains results you don't
13023# want to keep, you may remove or edit it.
13024#
13025# config.status only pays attention to the cache file if you give it
13026# the --recheck option to rerun configure.
13027#
13028# `ac_cv_env_foo' variables (set or unset) will be overridden when
13029# loading this file, other *unset* `ac_cv_foo' will be assigned the
13030# following values.
13031
13032_ACEOF
13033
13034# The following way of writing the cache mishandles newlines in values,
13035# but we know of no workaround that is simple, portable, and efficient.
13036# So, we kill variables containing newlines.
13037# Ultrix sh set writes to stderr and can't be redirected directly,
13038# and sets the high bit in the cache file unless we assign to the vars.
13039(
13040  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13041    eval ac_val=\$$ac_var
13042    case $ac_val in #(
13043    *${as_nl}*)
13044      case $ac_var in #(
13045      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13046$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13047      esac
13048      case $ac_var in #(
13049      _ | IFS | as_nl) ;; #(
13050      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13051      *) { eval $ac_var=; unset $ac_var;} ;;
13052      esac ;;
13053    esac
13054  done
13055
13056  (set) 2>&1 |
13057    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13058    *${as_nl}ac_space=\ *)
13059      # `set' does not quote correctly, so add quotes: double-quote
13060      # substitution turns \\\\ into \\, and sed turns \\ into \.
13061      sed -n \
13062	"s/'/'\\\\''/g;
13063	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13064      ;; #(
13065    *)
13066      # `set' quotes correctly as required by POSIX, so do not add quotes.
13067      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13068      ;;
13069    esac |
13070    sort
13071) |
13072  sed '
13073     /^ac_cv_env_/b end
13074     t clear
13075     :clear
13076     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13077     t end
13078     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13079     :end' >>confcache
13080if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13081  if test -w "$cache_file"; then
13082    if test "x$cache_file" != "x/dev/null"; then
13083      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13084$as_echo "$as_me: updating cache $cache_file" >&6;}
13085      if test ! -f "$cache_file" || test -h "$cache_file"; then
13086	cat confcache >"$cache_file"
13087      else
13088        case $cache_file in #(
13089        */* | ?:*)
13090	  mv -f confcache "$cache_file"$$ &&
13091	  mv -f "$cache_file"$$ "$cache_file" ;; #(
13092        *)
13093	  mv -f confcache "$cache_file" ;;
13094	esac
13095      fi
13096    fi
13097  else
13098    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13099$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13100  fi
13101fi
13102rm -f confcache
13103
13104test "x$prefix" = xNONE && prefix=$ac_default_prefix
13105# Let make expand exec_prefix.
13106test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13107
13108DEFS=-DHAVE_CONFIG_H
13109
13110ac_libobjs=
13111ac_ltlibobjs=
13112U=
13113for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13114  # 1. Remove the extension, and $U if already installed.
13115  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13116  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13117  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13118  #    will be set to the directory where LIBOBJS objects are built.
13119  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13120  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13121done
13122LIBOBJS=$ac_libobjs
13123
13124LTLIBOBJS=$ac_ltlibobjs
13125
13126
13127
13128: "${CONFIG_STATUS=./config.status}"
13129ac_write_fail=0
13130ac_clean_files_save=$ac_clean_files
13131ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13132{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13133$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13134as_write_fail=0
13135cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13136#! $SHELL
13137# Generated by $as_me.
13138# Run this file to recreate the current configuration.
13139# Compiler output produced by configure, useful for debugging
13140# configure, is in config.log if it exists.
13141
13142debug=false
13143ac_cs_recheck=false
13144ac_cs_silent=false
13145
13146SHELL=\${CONFIG_SHELL-$SHELL}
13147export SHELL
13148_ASEOF
13149cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13150## -------------------- ##
13151## M4sh Initialization. ##
13152## -------------------- ##
13153
13154# Be more Bourne compatible
13155DUALCASE=1; export DUALCASE # for MKS sh
13156if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13157  emulate sh
13158  NULLCMD=:
13159  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13160  # is contrary to our usage.  Disable this feature.
13161  alias -g '${1+"$@"}'='"$@"'
13162  setopt NO_GLOB_SUBST
13163else
13164  case `(set -o) 2>/dev/null` in #(
13165  *posix*) :
13166    set -o posix ;; #(
13167  *) :
13168     ;;
13169esac
13170fi
13171
13172
13173as_nl='
13174'
13175export as_nl
13176# Printing a long string crashes Solaris 7 /usr/bin/printf.
13177as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13178as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13179as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13180# Prefer a ksh shell builtin over an external printf program on Solaris,
13181# but without wasting forks for bash or zsh.
13182if test -z "$BASH_VERSION$ZSH_VERSION" \
13183    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13184  as_echo='print -r --'
13185  as_echo_n='print -rn --'
13186elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13187  as_echo='printf %s\n'
13188  as_echo_n='printf %s'
13189else
13190  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13191    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13192    as_echo_n='/usr/ucb/echo -n'
13193  else
13194    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13195    as_echo_n_body='eval
13196      arg=$1;
13197      case $arg in #(
13198      *"$as_nl"*)
13199	expr "X$arg" : "X\\(.*\\)$as_nl";
13200	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13201      esac;
13202      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13203    '
13204    export as_echo_n_body
13205    as_echo_n='sh -c $as_echo_n_body as_echo'
13206  fi
13207  export as_echo_body
13208  as_echo='sh -c $as_echo_body as_echo'
13209fi
13210
13211# The user is always right.
13212if test "${PATH_SEPARATOR+set}" != set; then
13213  PATH_SEPARATOR=:
13214  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13215    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13216      PATH_SEPARATOR=';'
13217  }
13218fi
13219
13220
13221# IFS
13222# We need space, tab and new line, in precisely that order.  Quoting is
13223# there to prevent editors from complaining about space-tab.
13224# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13225# splitting by setting IFS to empty value.)
13226IFS=" ""	$as_nl"
13227
13228# Find who we are.  Look in the path if we contain no directory separator.
13229as_myself=
13230case $0 in #((
13231  *[\\/]* ) as_myself=$0 ;;
13232  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13233for as_dir in $PATH
13234do
13235  IFS=$as_save_IFS
13236  test -z "$as_dir" && as_dir=.
13237    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13238  done
13239IFS=$as_save_IFS
13240
13241     ;;
13242esac
13243# We did not find ourselves, most probably we were run as `sh COMMAND'
13244# in which case we are not to be found in the path.
13245if test "x$as_myself" = x; then
13246  as_myself=$0
13247fi
13248if test ! -f "$as_myself"; then
13249  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13250  exit 1
13251fi
13252
13253# Unset variables that we do not need and which cause bugs (e.g. in
13254# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13255# suppresses any "Segmentation fault" message there.  '((' could
13256# trigger a bug in pdksh 5.2.14.
13257for as_var in BASH_ENV ENV MAIL MAILPATH
13258do eval test x\${$as_var+set} = xset \
13259  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13260done
13261PS1='$ '
13262PS2='> '
13263PS4='+ '
13264
13265# NLS nuisances.
13266LC_ALL=C
13267export LC_ALL
13268LANGUAGE=C
13269export LANGUAGE
13270
13271# CDPATH.
13272(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13273
13274
13275# as_fn_error STATUS ERROR [LINENO LOG_FD]
13276# ----------------------------------------
13277# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13278# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13279# script with STATUS, using 1 if that was 0.
13280as_fn_error ()
13281{
13282  as_status=$1; test $as_status -eq 0 && as_status=1
13283  if test "$4"; then
13284    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13285    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13286  fi
13287  $as_echo "$as_me: error: $2" >&2
13288  as_fn_exit $as_status
13289} # as_fn_error
13290
13291
13292# as_fn_set_status STATUS
13293# -----------------------
13294# Set $? to STATUS, without forking.
13295as_fn_set_status ()
13296{
13297  return $1
13298} # as_fn_set_status
13299
13300# as_fn_exit STATUS
13301# -----------------
13302# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13303as_fn_exit ()
13304{
13305  set +e
13306  as_fn_set_status $1
13307  exit $1
13308} # as_fn_exit
13309
13310# as_fn_unset VAR
13311# ---------------
13312# Portably unset VAR.
13313as_fn_unset ()
13314{
13315  { eval $1=; unset $1;}
13316}
13317as_unset=as_fn_unset
13318# as_fn_append VAR VALUE
13319# ----------------------
13320# Append the text in VALUE to the end of the definition contained in VAR. Take
13321# advantage of any shell optimizations that allow amortized linear growth over
13322# repeated appends, instead of the typical quadratic growth present in naive
13323# implementations.
13324if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13325  eval 'as_fn_append ()
13326  {
13327    eval $1+=\$2
13328  }'
13329else
13330  as_fn_append ()
13331  {
13332    eval $1=\$$1\$2
13333  }
13334fi # as_fn_append
13335
13336# as_fn_arith ARG...
13337# ------------------
13338# Perform arithmetic evaluation on the ARGs, and store the result in the
13339# global $as_val. Take advantage of shells that can avoid forks. The arguments
13340# must be portable across $(()) and expr.
13341if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13342  eval 'as_fn_arith ()
13343  {
13344    as_val=$(( $* ))
13345  }'
13346else
13347  as_fn_arith ()
13348  {
13349    as_val=`expr "$@" || test $? -eq 1`
13350  }
13351fi # as_fn_arith
13352
13353
13354if expr a : '\(a\)' >/dev/null 2>&1 &&
13355   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13356  as_expr=expr
13357else
13358  as_expr=false
13359fi
13360
13361if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13362  as_basename=basename
13363else
13364  as_basename=false
13365fi
13366
13367if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13368  as_dirname=dirname
13369else
13370  as_dirname=false
13371fi
13372
13373as_me=`$as_basename -- "$0" ||
13374$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13375	 X"$0" : 'X\(//\)$' \| \
13376	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13377$as_echo X/"$0" |
13378    sed '/^.*\/\([^/][^/]*\)\/*$/{
13379	    s//\1/
13380	    q
13381	  }
13382	  /^X\/\(\/\/\)$/{
13383	    s//\1/
13384	    q
13385	  }
13386	  /^X\/\(\/\).*/{
13387	    s//\1/
13388	    q
13389	  }
13390	  s/.*/./; q'`
13391
13392# Avoid depending upon Character Ranges.
13393as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13394as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13395as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13396as_cr_digits='0123456789'
13397as_cr_alnum=$as_cr_Letters$as_cr_digits
13398
13399ECHO_C= ECHO_N= ECHO_T=
13400case `echo -n x` in #(((((
13401-n*)
13402  case `echo 'xy\c'` in
13403  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13404  xy)  ECHO_C='\c';;
13405  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13406       ECHO_T='	';;
13407  esac;;
13408*)
13409  ECHO_N='-n';;
13410esac
13411
13412rm -f conf$$ conf$$.exe conf$$.file
13413if test -d conf$$.dir; then
13414  rm -f conf$$.dir/conf$$.file
13415else
13416  rm -f conf$$.dir
13417  mkdir conf$$.dir 2>/dev/null
13418fi
13419if (echo >conf$$.file) 2>/dev/null; then
13420  if ln -s conf$$.file conf$$ 2>/dev/null; then
13421    as_ln_s='ln -s'
13422    # ... but there are two gotchas:
13423    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13424    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13425    # In both cases, we have to default to `cp -pR'.
13426    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13427      as_ln_s='cp -pR'
13428  elif ln conf$$.file conf$$ 2>/dev/null; then
13429    as_ln_s=ln
13430  else
13431    as_ln_s='cp -pR'
13432  fi
13433else
13434  as_ln_s='cp -pR'
13435fi
13436rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13437rmdir conf$$.dir 2>/dev/null
13438
13439
13440# as_fn_mkdir_p
13441# -------------
13442# Create "$as_dir" as a directory, including parents if necessary.
13443as_fn_mkdir_p ()
13444{
13445
13446  case $as_dir in #(
13447  -*) as_dir=./$as_dir;;
13448  esac
13449  test -d "$as_dir" || eval $as_mkdir_p || {
13450    as_dirs=
13451    while :; do
13452      case $as_dir in #(
13453      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13454      *) as_qdir=$as_dir;;
13455      esac
13456      as_dirs="'$as_qdir' $as_dirs"
13457      as_dir=`$as_dirname -- "$as_dir" ||
13458$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13459	 X"$as_dir" : 'X\(//\)[^/]' \| \
13460	 X"$as_dir" : 'X\(//\)$' \| \
13461	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13462$as_echo X"$as_dir" |
13463    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13464	    s//\1/
13465	    q
13466	  }
13467	  /^X\(\/\/\)[^/].*/{
13468	    s//\1/
13469	    q
13470	  }
13471	  /^X\(\/\/\)$/{
13472	    s//\1/
13473	    q
13474	  }
13475	  /^X\(\/\).*/{
13476	    s//\1/
13477	    q
13478	  }
13479	  s/.*/./; q'`
13480      test -d "$as_dir" && break
13481    done
13482    test -z "$as_dirs" || eval "mkdir $as_dirs"
13483  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13484
13485
13486} # as_fn_mkdir_p
13487if mkdir -p . 2>/dev/null; then
13488  as_mkdir_p='mkdir -p "$as_dir"'
13489else
13490  test -d ./-p && rmdir ./-p
13491  as_mkdir_p=false
13492fi
13493
13494
13495# as_fn_executable_p FILE
13496# -----------------------
13497# Test if FILE is an executable regular file.
13498as_fn_executable_p ()
13499{
13500  test -f "$1" && test -x "$1"
13501} # as_fn_executable_p
13502as_test_x='test -x'
13503as_executable_p=as_fn_executable_p
13504
13505# Sed expression to map a string onto a valid CPP name.
13506as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13507
13508# Sed expression to map a string onto a valid variable name.
13509as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13510
13511
13512exec 6>&1
13513## ----------------------------------- ##
13514## Main body of $CONFIG_STATUS script. ##
13515## ----------------------------------- ##
13516_ASEOF
13517test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13518
13519cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13520# Save the log message, to keep $0 and so on meaningful, and to
13521# report actual input values of CONFIG_FILES etc. instead of their
13522# values after options handling.
13523ac_log="
13524This file was extended by Aegisub $as_me aegisub_version, which was
13525generated by GNU Autoconf 2.69.  Invocation command line was
13526
13527  CONFIG_FILES    = $CONFIG_FILES
13528  CONFIG_HEADERS  = $CONFIG_HEADERS
13529  CONFIG_LINKS    = $CONFIG_LINKS
13530  CONFIG_COMMANDS = $CONFIG_COMMANDS
13531  $ $0 $@
13532
13533on `(hostname || uname -n) 2>/dev/null | sed 1q`
13534"
13535
13536_ACEOF
13537
13538case $ac_config_files in *"
13539"*) set x $ac_config_files; shift; ac_config_files=$*;;
13540esac
13541
13542case $ac_config_headers in *"
13543"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13544esac
13545
13546
13547cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13548# Files that config.status was made for.
13549config_files="$ac_config_files"
13550config_headers="$ac_config_headers"
13551config_commands="$ac_config_commands"
13552
13553_ACEOF
13554
13555cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13556ac_cs_usage="\
13557\`$as_me' instantiates files and other configuration actions
13558from templates according to the current configuration.  Unless the files
13559and actions are specified as TAGs, all are instantiated by default.
13560
13561Usage: $0 [OPTION]... [TAG]...
13562
13563  -h, --help       print this help, then exit
13564  -V, --version    print version number and configuration settings, then exit
13565      --config     print configuration, then exit
13566  -q, --quiet, --silent
13567                   do not print progress messages
13568  -d, --debug      don't remove temporary files
13569      --recheck    update $as_me by reconfiguring in the same conditions
13570      --file=FILE[:TEMPLATE]
13571                   instantiate the configuration file FILE
13572      --header=FILE[:TEMPLATE]
13573                   instantiate the configuration header FILE
13574
13575Configuration files:
13576$config_files
13577
13578Configuration headers:
13579$config_headers
13580
13581Configuration commands:
13582$config_commands
13583
13584Report bugs to the package provider."
13585
13586_ACEOF
13587cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13588ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13589ac_cs_version="\\
13590Aegisub config.status aegisub_version
13591configured by $0, generated by GNU Autoconf 2.69,
13592  with options \\"\$ac_cs_config\\"
13593
13594Copyright (C) 2012 Free Software Foundation, Inc.
13595This config.status script is free software; the Free Software Foundation
13596gives unlimited permission to copy, distribute and modify it."
13597
13598ac_pwd='$ac_pwd'
13599srcdir='$srcdir'
13600INSTALL='$INSTALL'
13601MKDIR_P='$MKDIR_P'
13602test -n "\$AWK" || AWK=awk
13603_ACEOF
13604
13605cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13606# The default lists apply if the user does not specify any file.
13607ac_need_defaults=:
13608while test $# != 0
13609do
13610  case $1 in
13611  --*=?*)
13612    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13613    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13614    ac_shift=:
13615    ;;
13616  --*=)
13617    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13618    ac_optarg=
13619    ac_shift=:
13620    ;;
13621  *)
13622    ac_option=$1
13623    ac_optarg=$2
13624    ac_shift=shift
13625    ;;
13626  esac
13627
13628  case $ac_option in
13629  # Handling of the options.
13630  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13631    ac_cs_recheck=: ;;
13632  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13633    $as_echo "$ac_cs_version"; exit ;;
13634  --config | --confi | --conf | --con | --co | --c )
13635    $as_echo "$ac_cs_config"; exit ;;
13636  --debug | --debu | --deb | --de | --d | -d )
13637    debug=: ;;
13638  --file | --fil | --fi | --f )
13639    $ac_shift
13640    case $ac_optarg in
13641    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13642    '') as_fn_error $? "missing file argument" ;;
13643    esac
13644    as_fn_append CONFIG_FILES " '$ac_optarg'"
13645    ac_need_defaults=false;;
13646  --header | --heade | --head | --hea )
13647    $ac_shift
13648    case $ac_optarg in
13649    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13650    esac
13651    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13652    ac_need_defaults=false;;
13653  --he | --h)
13654    # Conflict between --help and --header
13655    as_fn_error $? "ambiguous option: \`$1'
13656Try \`$0 --help' for more information.";;
13657  --help | --hel | -h )
13658    $as_echo "$ac_cs_usage"; exit ;;
13659  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13660  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13661    ac_cs_silent=: ;;
13662
13663  # This is an error.
13664  -*) as_fn_error $? "unrecognized option: \`$1'
13665Try \`$0 --help' for more information." ;;
13666
13667  *) as_fn_append ac_config_targets " $1"
13668     ac_need_defaults=false ;;
13669
13670  esac
13671  shift
13672done
13673
13674ac_configure_extra_args=
13675
13676if $ac_cs_silent; then
13677  exec 6>/dev/null
13678  ac_configure_extra_args="$ac_configure_extra_args --silent"
13679fi
13680
13681_ACEOF
13682cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13683if \$ac_cs_recheck; then
13684  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13685  shift
13686  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13687  CONFIG_SHELL='$SHELL'
13688  export CONFIG_SHELL
13689  exec "\$@"
13690fi
13691
13692_ACEOF
13693cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13694exec 5>>config.log
13695{
13696  echo
13697  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13698## Running $as_me. ##
13699_ASBOX
13700  $as_echo "$ac_log"
13701} >&5
13702
13703_ACEOF
13704cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13705#
13706# INIT-COMMANDS
13707#
13708# Capture the value of obsolete ALL_LINGUAS because we need it to compute
13709    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
13710    # from automake < 1.5.
13711    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
13712    # Capture the value of LINGUAS because we need it to compute CATALOGS.
13713    LINGUAS="${LINGUAS-%UNSET%}"
13714
13715
13716_ACEOF
13717
13718cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13719
13720# Handling of arguments.
13721for ac_config_target in $ac_config_targets
13722do
13723  case $ac_config_target in
13724    "acconf.h") CONFIG_HEADERS="$CONFIG_HEADERS acconf.h" ;;
13725    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
13726    "packages/desktop/aegisub.desktop.template") CONFIG_FILES="$CONFIG_FILES packages/desktop/aegisub.desktop.template" ;;
13727    "src/libresrc/default_config_platform.json") CONFIG_FILES="$CONFIG_FILES src/libresrc/default_config_platform.json" ;;
13728    "tools/osx-bundle.sed") CONFIG_FILES="$CONFIG_FILES tools/osx-bundle.sed" ;;
13729    "Makefile.inc") CONFIG_FILES="$CONFIG_FILES Makefile.inc" ;;
13730
13731  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13732  esac
13733done
13734
13735
13736# If the user did not use the arguments to specify the items to instantiate,
13737# then the envvar interface is used.  Set only those that are not.
13738# We use the long form for the default assignment because of an extremely
13739# bizarre bug on SunOS 4.1.3.
13740if $ac_need_defaults; then
13741  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13742  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13743  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13744fi
13745
13746# Have a temporary directory for convenience.  Make it in the build tree
13747# simply because there is no reason against having it here, and in addition,
13748# creating and moving files from /tmp can sometimes cause problems.
13749# Hook for its removal unless debugging.
13750# Note that there is a small window in which the directory will not be cleaned:
13751# after its creation but before its name has been assigned to `$tmp'.
13752$debug ||
13753{
13754  tmp= ac_tmp=
13755  trap 'exit_status=$?
13756  : "${ac_tmp:=$tmp}"
13757  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13758' 0
13759  trap 'as_fn_exit 1' 1 2 13 15
13760}
13761# Create a (secure) tmp directory for tmp files.
13762
13763{
13764  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13765  test -d "$tmp"
13766}  ||
13767{
13768  tmp=./conf$$-$RANDOM
13769  (umask 077 && mkdir "$tmp")
13770} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13771ac_tmp=$tmp
13772
13773# Set up the scripts for CONFIG_FILES section.
13774# No need to generate them if there are no CONFIG_FILES.
13775# This happens for instance with `./config.status config.h'.
13776if test -n "$CONFIG_FILES"; then
13777
13778
13779ac_cr=`echo X | tr X '\015'`
13780# On cygwin, bash can eat \r inside `` if the user requested igncr.
13781# But we know of no other shell where ac_cr would be empty at this
13782# point, so we can use a bashism as a fallback.
13783if test "x$ac_cr" = x; then
13784  eval ac_cr=\$\'\\r\'
13785fi
13786ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13787if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13788  ac_cs_awk_cr='\\r'
13789else
13790  ac_cs_awk_cr=$ac_cr
13791fi
13792
13793echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13794_ACEOF
13795
13796
13797{
13798  echo "cat >conf$$subs.awk <<_ACEOF" &&
13799  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13800  echo "_ACEOF"
13801} >conf$$subs.sh ||
13802  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13803ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13804ac_delim='%!_!# '
13805for ac_last_try in false false false false false :; do
13806  . ./conf$$subs.sh ||
13807    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13808
13809  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13810  if test $ac_delim_n = $ac_delim_num; then
13811    break
13812  elif $ac_last_try; then
13813    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13814  else
13815    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13816  fi
13817done
13818rm -f conf$$subs.sh
13819
13820cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13821cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13822_ACEOF
13823sed -n '
13824h
13825s/^/S["/; s/!.*/"]=/
13826p
13827g
13828s/^[^!]*!//
13829:repl
13830t repl
13831s/'"$ac_delim"'$//
13832t delim
13833:nl
13834h
13835s/\(.\{148\}\)..*/\1/
13836t more1
13837s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13838p
13839n
13840b repl
13841:more1
13842s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13843p
13844g
13845s/.\{148\}//
13846t nl
13847:delim
13848h
13849s/\(.\{148\}\)..*/\1/
13850t more2
13851s/["\\]/\\&/g; s/^/"/; s/$/"/
13852p
13853b
13854:more2
13855s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13856p
13857g
13858s/.\{148\}//
13859t delim
13860' <conf$$subs.awk | sed '
13861/^[^""]/{
13862  N
13863  s/\n//
13864}
13865' >>$CONFIG_STATUS || ac_write_fail=1
13866rm -f conf$$subs.awk
13867cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13868_ACAWK
13869cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13870  for (key in S) S_is_set[key] = 1
13871  FS = ""
13872
13873}
13874{
13875  line = $ 0
13876  nfields = split(line, field, "@")
13877  substed = 0
13878  len = length(field[1])
13879  for (i = 2; i < nfields; i++) {
13880    key = field[i]
13881    keylen = length(key)
13882    if (S_is_set[key]) {
13883      value = S[key]
13884      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13885      len += length(value) + length(field[++i])
13886      substed = 1
13887    } else
13888      len += 1 + keylen
13889  }
13890
13891  print line
13892}
13893
13894_ACAWK
13895_ACEOF
13896cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13897if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13898  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13899else
13900  cat
13901fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13902  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13903_ACEOF
13904
13905# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13906# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13907# trailing colons and then remove the whole line if VPATH becomes empty
13908# (actually we leave an empty line to preserve line numbers).
13909if test "x$srcdir" = x.; then
13910  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
13911h
13912s///
13913s/^/:/
13914s/[	 ]*$/:/
13915s/:\$(srcdir):/:/g
13916s/:\${srcdir}:/:/g
13917s/:@srcdir@:/:/g
13918s/^:*//
13919s/:*$//
13920x
13921s/\(=[	 ]*\).*/\1/
13922G
13923s/\n//
13924s/^[^=]*=[	 ]*$//
13925}'
13926fi
13927
13928cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13929fi # test -n "$CONFIG_FILES"
13930
13931# Set up the scripts for CONFIG_HEADERS section.
13932# No need to generate them if there are no CONFIG_HEADERS.
13933# This happens for instance with `./config.status Makefile'.
13934if test -n "$CONFIG_HEADERS"; then
13935cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13936BEGIN {
13937_ACEOF
13938
13939# Transform confdefs.h into an awk script `defines.awk', embedded as
13940# here-document in config.status, that substitutes the proper values into
13941# config.h.in to produce config.h.
13942
13943# Create a delimiter string that does not exist in confdefs.h, to ease
13944# handling of long lines.
13945ac_delim='%!_!# '
13946for ac_last_try in false false :; do
13947  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13948  if test -z "$ac_tt"; then
13949    break
13950  elif $ac_last_try; then
13951    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13952  else
13953    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13954  fi
13955done
13956
13957# For the awk script, D is an array of macro values keyed by name,
13958# likewise P contains macro parameters if any.  Preserve backslash
13959# newline sequences.
13960
13961ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13962sed -n '
13963s/.\{148\}/&'"$ac_delim"'/g
13964t rset
13965:rset
13966s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13967t def
13968d
13969:def
13970s/\\$//
13971t bsnl
13972s/["\\]/\\&/g
13973s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13974D["\1"]=" \3"/p
13975s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13976d
13977:bsnl
13978s/["\\]/\\&/g
13979s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13980D["\1"]=" \3\\\\\\n"\\/p
13981t cont
13982s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13983t cont
13984d
13985:cont
13986n
13987s/.\{148\}/&'"$ac_delim"'/g
13988t clear
13989:clear
13990s/\\$//
13991t bsnlc
13992s/["\\]/\\&/g; s/^/"/; s/$/"/p
13993d
13994:bsnlc
13995s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13996b cont
13997' <confdefs.h | sed '
13998s/'"$ac_delim"'/"\\\
13999"/g' >>$CONFIG_STATUS || ac_write_fail=1
14000
14001cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14002  for (key in D) D_is_set[key] = 1
14003  FS = ""
14004}
14005/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14006  line = \$ 0
14007  split(line, arg, " ")
14008  if (arg[1] == "#") {
14009    defundef = arg[2]
14010    mac1 = arg[3]
14011  } else {
14012    defundef = substr(arg[1], 2)
14013    mac1 = arg[2]
14014  }
14015  split(mac1, mac2, "(") #)
14016  macro = mac2[1]
14017  prefix = substr(line, 1, index(line, defundef) - 1)
14018  if (D_is_set[macro]) {
14019    # Preserve the white space surrounding the "#".
14020    print prefix "define", macro P[macro] D[macro]
14021    next
14022  } else {
14023    # Replace #undef with comments.  This is necessary, for example,
14024    # in the case of _POSIX_SOURCE, which is predefined and required
14025    # on some systems where configure will not decide to define it.
14026    if (defundef == "undef") {
14027      print "/*", prefix defundef, macro, "*/"
14028      next
14029    }
14030  }
14031}
14032{ print }
14033_ACAWK
14034_ACEOF
14035cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14036  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14037fi # test -n "$CONFIG_HEADERS"
14038
14039
14040eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14041shift
14042for ac_tag
14043do
14044  case $ac_tag in
14045  :[FHLC]) ac_mode=$ac_tag; continue;;
14046  esac
14047  case $ac_mode$ac_tag in
14048  :[FHL]*:*);;
14049  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14050  :[FH]-) ac_tag=-:-;;
14051  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14052  esac
14053  ac_save_IFS=$IFS
14054  IFS=:
14055  set x $ac_tag
14056  IFS=$ac_save_IFS
14057  shift
14058  ac_file=$1
14059  shift
14060
14061  case $ac_mode in
14062  :L) ac_source=$1;;
14063  :[FH])
14064    ac_file_inputs=
14065    for ac_f
14066    do
14067      case $ac_f in
14068      -) ac_f="$ac_tmp/stdin";;
14069      *) # Look for the file first in the build tree, then in the source tree
14070	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14071	 # because $ac_f cannot contain `:'.
14072	 test -f "$ac_f" ||
14073	   case $ac_f in
14074	   [\\/$]*) false;;
14075	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14076	   esac ||
14077	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14078      esac
14079      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14080      as_fn_append ac_file_inputs " '$ac_f'"
14081    done
14082
14083    # Let's still pretend it is `configure' which instantiates (i.e., don't
14084    # use $as_me), people would be surprised to read:
14085    #    /* config.h.  Generated by config.status.  */
14086    configure_input='Generated from '`
14087	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14088	`' by configure.'
14089    if test x"$ac_file" != x-; then
14090      configure_input="$ac_file.  $configure_input"
14091      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14092$as_echo "$as_me: creating $ac_file" >&6;}
14093    fi
14094    # Neutralize special characters interpreted by sed in replacement strings.
14095    case $configure_input in #(
14096    *\&* | *\|* | *\\* )
14097       ac_sed_conf_input=`$as_echo "$configure_input" |
14098       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14099    *) ac_sed_conf_input=$configure_input;;
14100    esac
14101
14102    case $ac_tag in
14103    *:-:* | *:-) cat >"$ac_tmp/stdin" \
14104      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14105    esac
14106    ;;
14107  esac
14108
14109  ac_dir=`$as_dirname -- "$ac_file" ||
14110$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14111	 X"$ac_file" : 'X\(//\)[^/]' \| \
14112	 X"$ac_file" : 'X\(//\)$' \| \
14113	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14114$as_echo X"$ac_file" |
14115    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14116	    s//\1/
14117	    q
14118	  }
14119	  /^X\(\/\/\)[^/].*/{
14120	    s//\1/
14121	    q
14122	  }
14123	  /^X\(\/\/\)$/{
14124	    s//\1/
14125	    q
14126	  }
14127	  /^X\(\/\).*/{
14128	    s//\1/
14129	    q
14130	  }
14131	  s/.*/./; q'`
14132  as_dir="$ac_dir"; as_fn_mkdir_p
14133  ac_builddir=.
14134
14135case "$ac_dir" in
14136.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14137*)
14138  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14139  # A ".." for each directory in $ac_dir_suffix.
14140  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14141  case $ac_top_builddir_sub in
14142  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14143  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14144  esac ;;
14145esac
14146ac_abs_top_builddir=$ac_pwd
14147ac_abs_builddir=$ac_pwd$ac_dir_suffix
14148# for backward compatibility:
14149ac_top_builddir=$ac_top_build_prefix
14150
14151case $srcdir in
14152  .)  # We are building in place.
14153    ac_srcdir=.
14154    ac_top_srcdir=$ac_top_builddir_sub
14155    ac_abs_top_srcdir=$ac_pwd ;;
14156  [\\/]* | ?:[\\/]* )  # Absolute name.
14157    ac_srcdir=$srcdir$ac_dir_suffix;
14158    ac_top_srcdir=$srcdir
14159    ac_abs_top_srcdir=$srcdir ;;
14160  *) # Relative name.
14161    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14162    ac_top_srcdir=$ac_top_build_prefix$srcdir
14163    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14164esac
14165ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14166
14167
14168  case $ac_mode in
14169  :F)
14170  #
14171  # CONFIG_FILE
14172  #
14173
14174  case $INSTALL in
14175  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14176  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14177  esac
14178  ac_MKDIR_P=$MKDIR_P
14179  case $MKDIR_P in
14180  [\\/$]* | ?:[\\/]* ) ;;
14181  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14182  esac
14183_ACEOF
14184
14185cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14186# If the template does not know about datarootdir, expand it.
14187# FIXME: This hack should be removed a few years after 2.60.
14188ac_datarootdir_hack=; ac_datarootdir_seen=
14189ac_sed_dataroot='
14190/datarootdir/ {
14191  p
14192  q
14193}
14194/@datadir@/p
14195/@docdir@/p
14196/@infodir@/p
14197/@localedir@/p
14198/@mandir@/p'
14199case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14200*datarootdir*) ac_datarootdir_seen=yes;;
14201*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14202  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14203$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14204_ACEOF
14205cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14206  ac_datarootdir_hack='
14207  s&@datadir@&$datadir&g
14208  s&@docdir@&$docdir&g
14209  s&@infodir@&$infodir&g
14210  s&@localedir@&$localedir&g
14211  s&@mandir@&$mandir&g
14212  s&\\\${datarootdir}&$datarootdir&g' ;;
14213esac
14214_ACEOF
14215
14216# Neutralize VPATH when `$srcdir' = `.'.
14217# Shell code in configure.ac might set extrasub.
14218# FIXME: do we really want to maintain this feature?
14219cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14220ac_sed_extra="$ac_vpsub
14221$extrasub
14222_ACEOF
14223cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14224:t
14225/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14226s|@configure_input@|$ac_sed_conf_input|;t t
14227s&@top_builddir@&$ac_top_builddir_sub&;t t
14228s&@top_build_prefix@&$ac_top_build_prefix&;t t
14229s&@srcdir@&$ac_srcdir&;t t
14230s&@abs_srcdir@&$ac_abs_srcdir&;t t
14231s&@top_srcdir@&$ac_top_srcdir&;t t
14232s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14233s&@builddir@&$ac_builddir&;t t
14234s&@abs_builddir@&$ac_abs_builddir&;t t
14235s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14236s&@INSTALL@&$ac_INSTALL&;t t
14237s&@MKDIR_P@&$ac_MKDIR_P&;t t
14238$ac_datarootdir_hack
14239"
14240eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14241  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14242
14243test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14244  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14245  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
14246      "$ac_tmp/out"`; test -z "$ac_out"; } &&
14247  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14248which seems to be undefined.  Please make sure it is defined" >&5
14249$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14250which seems to be undefined.  Please make sure it is defined" >&2;}
14251
14252  rm -f "$ac_tmp/stdin"
14253  case $ac_file in
14254  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14255  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14256  esac \
14257  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14258 ;;
14259  :H)
14260  #
14261  # CONFIG_HEADER
14262  #
14263  if test x"$ac_file" != x-; then
14264    {
14265      $as_echo "/* $configure_input  */" \
14266      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14267    } >"$ac_tmp/config.h" \
14268      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14269    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14270      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14271$as_echo "$as_me: $ac_file is unchanged" >&6;}
14272    else
14273      rm -f "$ac_file"
14274      mv "$ac_tmp/config.h" "$ac_file" \
14275	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14276    fi
14277  else
14278    $as_echo "/* $configure_input  */" \
14279      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14280      || as_fn_error $? "could not create -" "$LINENO" 5
14281  fi
14282 ;;
14283
14284  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14285$as_echo "$as_me: executing $ac_file commands" >&6;}
14286 ;;
14287  esac
14288
14289
14290  case $ac_file$ac_mode in
14291    "po-directories":C)
14292    for ac_file in $CONFIG_FILES; do
14293      # Support "outfile[:infile[:infile...]]"
14294      case "$ac_file" in
14295        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14296      esac
14297      # PO directories have a Makefile.in generated from Makefile.in.in.
14298      case "$ac_file" in */Makefile.in)
14299        # Adjust a relative srcdir.
14300        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
14301        ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
14302        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14303        # In autoconf-2.13 it is called $ac_given_srcdir.
14304        # In autoconf-2.50 it is called $srcdir.
14305        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14306        case "$ac_given_srcdir" in
14307          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14308          /*) top_srcdir="$ac_given_srcdir" ;;
14309          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
14310        esac
14311        # Treat a directory as a PO directory if and only if it has a
14312        # POTFILES.in file. This allows packages to have multiple PO
14313        # directories under different names or in different locations.
14314        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14315          rm -f "$ac_dir/POTFILES"
14316          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
14317          gt_tab=`printf '\t'`
14318          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"
14319          POMAKEFILEDEPS="POTFILES.in"
14320          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
14321          # on $ac_dir but don't depend on user-specified configuration
14322          # parameters.
14323          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14324            # The LINGUAS file contains the set of available languages.
14325            if test -n "$OBSOLETE_ALL_LINGUAS"; then
14326              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
14327            fi
14328            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
14329            # Hide the ALL_LINGUAS assignment from automake < 1.5.
14330            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
14331            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
14332          else
14333            # The set of available languages was given in configure.in.
14334            # Hide the ALL_LINGUAS assignment from automake < 1.5.
14335            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
14336          fi
14337          # Compute POFILES
14338          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
14339          # Compute UPDATEPOFILES
14340          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
14341          # Compute DUMMYPOFILES
14342          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
14343          # Compute GMOFILES
14344          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
14345          case "$ac_given_srcdir" in
14346            .) srcdirpre= ;;
14347            *) srcdirpre='$(srcdir)/' ;;
14348          esac
14349          POFILES=
14350          UPDATEPOFILES=
14351          DUMMYPOFILES=
14352          GMOFILES=
14353          for lang in $ALL_LINGUAS; do
14354            POFILES="$POFILES $srcdirpre$lang.po"
14355            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14356            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
14357            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
14358          done
14359          # CATALOGS depends on both $ac_dir and the user's LINGUAS
14360          # environment variable.
14361          INST_LINGUAS=
14362          if test -n "$ALL_LINGUAS"; then
14363            for presentlang in $ALL_LINGUAS; do
14364              useit=no
14365              if test "%UNSET%" != "$LINGUAS"; then
14366                desiredlanguages="$LINGUAS"
14367              else
14368                desiredlanguages="$ALL_LINGUAS"
14369              fi
14370              for desiredlang in $desiredlanguages; do
14371                # Use the presentlang catalog if desiredlang is
14372                #   a. equal to presentlang, or
14373                #   b. a variant of presentlang (because in this case,
14374                #      presentlang can be used as a fallback for messages
14375                #      which are not translated in the desiredlang catalog).
14376                case "$desiredlang" in
14377                  "$presentlang"*) useit=yes;;
14378                esac
14379              done
14380              if test $useit = yes; then
14381                INST_LINGUAS="$INST_LINGUAS $presentlang"
14382              fi
14383            done
14384          fi
14385          CATALOGS=
14386          if test -n "$INST_LINGUAS"; then
14387            for lang in $INST_LINGUAS; do
14388              CATALOGS="$CATALOGS $lang.gmo"
14389            done
14390          fi
14391          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
14392          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"
14393          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14394            if test -f "$f"; then
14395              case "$f" in
14396                *.orig | *.bak | *~) ;;
14397                *) cat "$f" >> "$ac_dir/Makefile" ;;
14398              esac
14399            fi
14400          done
14401        fi
14402        ;;
14403      esac
14404    done ;;
14405
14406  esac
14407done # for ac_tag
14408
14409
14410as_fn_exit 0
14411_ACEOF
14412ac_clean_files=$ac_clean_files_save
14413
14414test $ac_write_fail = 0 ||
14415  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14416
14417
14418# configure is writing to config.log, and then calls config.status.
14419# config.status does its own redirection, appending to config.log.
14420# Unfortunately, on DOS this fails, as config.log is still kept open
14421# by configure, so config.status won't be able to write to it; its
14422# output is simply discarded.  So we exec the FD to /dev/null,
14423# effectively closing config.log, so it can be properly (re)opened and
14424# appended to by config.status.  When coming back to configure, we
14425# need to make the FD available again.
14426if test "$no_create" != yes; then
14427  ac_cs_success=:
14428  ac_config_status_args=
14429  test "$silent" = yes &&
14430    ac_config_status_args="$ac_config_status_args --quiet"
14431  exec 5>/dev/null
14432  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14433  exec 5>>config.log
14434  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14435  # would make configure fail if this is the last instruction.
14436  $ac_cs_success || as_fn_exit 1
14437fi
14438if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14439  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14440$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14441fi
14442
14443
14444if test x"$DEFAULT_PLAYER_AUDIO" = xNONE; then :
14445  { $as_echo "$as_me:${as_lineno-$LINENO}:
14446
14447***********************************************************************
14448* No supported audio player interface was found on your system.
14449* If you want audio support in Aegisub you need to install one of
14450* these libraries:
14451*  - PulseAudio
14452*    * http://pulseaudio.org/
14453*  - ALSA (Linux only)
14454*    * http://www.alsa-project.org/
14455*  - PortAudio (version 19 only)
14456*    * http://www.portaudio.com/
14457***********************************************************************
14458" >&5
14459$as_echo "$as_me:
14460
14461***********************************************************************
14462* No supported audio player interface was found on your system.
14463* If you want audio support in Aegisub you need to install one of
14464* these libraries:
14465*  - PulseAudio
14466*    * http://pulseaudio.org/
14467*  - ALSA (Linux only)
14468*    * http://www.alsa-project.org/
14469*  - PortAudio (version 19 only)
14470*    * http://www.portaudio.com/
14471***********************************************************************
14472" >&6;}
14473fi
14474
14475if test x$with_ffms2 != xyes; then :
14476  { $as_echo "$as_me:${as_lineno-$LINENO}:
14477
14478***********************************************************************
14479* No supported video/audio reader interface was found on your system.
14480* You will not be able to open any video or audio files in Aegisub
14481* unless you install a supported video/audio provider.
14482* You will however still be able to open \"dummy\" video, ie. a blank,
14483* virtual video clip with subtitles overlaid.
14484* Currently we only support one video/audio provider on non-Windows
14485* systems:
14486*  - FFMS2
14487*    * http://github.com/FFMS/ffms2
14488***********************************************************************
14489" >&5
14490$as_echo "$as_me:
14491
14492***********************************************************************
14493* No supported video/audio reader interface was found on your system.
14494* You will not be able to open any video or audio files in Aegisub
14495* unless you install a supported video/audio provider.
14496* You will however still be able to open \"dummy\" video, ie. a blank,
14497* virtual video clip with subtitles overlaid.
14498* Currently we only support one video/audio provider on non-Windows
14499* systems:
14500*  - FFMS2
14501*    * http://github.com/FFMS/ffms2
14502***********************************************************************
14503" >&6;}
14504fi
14505
14506{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
14507Configure settings
14508  Install prefix:        $prefix
14509  Revision:              $BUILD_GIT_VERSION_STRING
14510  Debug                  $enable_debug
14511  CFLAGS                 $CFLAGS
14512  CXXFLAGS               $CXXFLAGS
14513  CPPFLAGS               $CPPFLAGS
14514  LDFLAGS                $LDFLAGS
14515  LIBS                   $LIBS
14516
14517Default Settings
14518  Audio Player:          $DEFAULT_PLAYER_AUDIO
14519
14520Audio Players
14521  ALSA:                  $with_alsa $alsa_disabled
14522  OpenAL:                $with_openal $openal_disabled
14523  OSS:                   $with_oss $oss_disabled
14524  PortAudio:             $with_portaudio $portaudio_disabled
14525  PulseAudio:            $with_libpulse $libpulse_disabled
14526
14527Misc Packages
14528  Hunspell:              $with_hunspell $hunspell_disabled
14529  FFTW3:                 $with_fftw3 $fftw3_disabled
14530" >&5
14531$as_echo "
14532Configure settings
14533  Install prefix:        $prefix
14534  Revision:              $BUILD_GIT_VERSION_STRING
14535  Debug                  $enable_debug
14536  CFLAGS                 $CFLAGS
14537  CXXFLAGS               $CXXFLAGS
14538  CPPFLAGS               $CPPFLAGS
14539  LDFLAGS                $LDFLAGS
14540  LIBS                   $LIBS
14541
14542Default Settings
14543  Audio Player:          $DEFAULT_PLAYER_AUDIO
14544
14545Audio Players
14546  ALSA:                  $with_alsa $alsa_disabled
14547  OpenAL:                $with_openal $openal_disabled
14548  OSS:                   $with_oss $oss_disabled
14549  PortAudio:             $with_portaudio $portaudio_disabled
14550  PulseAudio:            $with_libpulse $libpulse_disabled
14551
14552Misc Packages
14553  Hunspell:              $with_hunspell $hunspell_disabled
14554  FFTW3:                 $with_fftw3 $fftw3_disabled
14555" >&6; }
14556