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