configure revision c37a63b8
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63 for x11perf 1.5.1.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization.  ##
13## --------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in
26  *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42as_nl='
43'
44export as_nl
45# Printing a long string crashes Solaris 7 /usr/bin/printf.
46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83# Support unset when possible.
84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85  as_unset=unset
86else
87  as_unset=false
88fi
89
90
91# IFS
92# We need space, tab and new line, in precisely that order.  Quoting is
93# there to prevent editors from complaining about space-tab.
94# (If _AS_PATH_WALK were called with IFS unset, it would disable word
95# splitting by setting IFS to empty value.)
96IFS=" ""	$as_nl"
97
98# Find who we are.  Look in the path if we contain no directory separator.
99case $0 in
100  *[\\/]* ) as_myself=$0 ;;
101  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102for as_dir in $PATH
103do
104  IFS=$as_save_IFS
105  test -z "$as_dir" && as_dir=.
106  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107done
108IFS=$as_save_IFS
109
110     ;;
111esac
112# We did not find ourselves, most probably we were run as `sh COMMAND'
113# in which case we are not to be found in the path.
114if test "x$as_myself" = x; then
115  as_myself=$0
116fi
117if test ! -f "$as_myself"; then
118  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119  { (exit 1); exit 1; }
120fi
121
122# Work around bugs in pre-3.0 UWIN ksh.
123for as_var in ENV MAIL MAILPATH
124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# Required to use basename.
137if expr a : '\(a\)' >/dev/null 2>&1 &&
138   test "X`expr 00001 : '.*\(...\)'`" = X001; then
139  as_expr=expr
140else
141  as_expr=false
142fi
143
144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145  as_basename=basename
146else
147  as_basename=false
148fi
149
150
151# Name of the executable.
152as_me=`$as_basename -- "$0" ||
153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154	 X"$0" : 'X\(//\)$' \| \
155	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156$as_echo X/"$0" |
157    sed '/^.*\/\([^/][^/]*\)\/*$/{
158	    s//\1/
159	    q
160	  }
161	  /^X\/\(\/\/\)$/{
162	    s//\1/
163	    q
164	  }
165	  /^X\/\(\/\).*/{
166	    s//\1/
167	    q
168	  }
169	  s/.*/./; q'`
170
171# CDPATH.
172$as_unset CDPATH
173
174
175if test "x$CONFIG_SHELL" = x; then
176  if (eval ":") 2>/dev/null; then
177  as_have_required=yes
178else
179  as_have_required=no
180fi
181
182  if test $as_have_required = yes &&	 (eval ":
183(as_func_return () {
184  (exit \$1)
185}
186as_func_success () {
187  as_func_return 0
188}
189as_func_failure () {
190  as_func_return 1
191}
192as_func_ret_success () {
193  return 0
194}
195as_func_ret_failure () {
196  return 1
197}
198
199exitcode=0
200if as_func_success; then
201  :
202else
203  exitcode=1
204  echo as_func_success failed.
205fi
206
207if as_func_failure; then
208  exitcode=1
209  echo as_func_failure succeeded.
210fi
211
212if as_func_ret_success; then
213  :
214else
215  exitcode=1
216  echo as_func_ret_success failed.
217fi
218
219if as_func_ret_failure; then
220  exitcode=1
221  echo as_func_ret_failure succeeded.
222fi
223
224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225  :
226else
227  exitcode=1
228  echo positional parameters were not saved.
229fi
230
231test \$exitcode = 0) || { (exit 1); exit 1; }
232
233(
234  as_lineno_1=\$LINENO
235  as_lineno_2=\$LINENO
236  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238") 2> /dev/null; then
239  :
240else
241  as_candidate_shells=
242    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244do
245  IFS=$as_save_IFS
246  test -z "$as_dir" && as_dir=.
247  case $as_dir in
248	 /*)
249	   for as_base in sh bash ksh sh5; do
250	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251	   done;;
252       esac
253done
254IFS=$as_save_IFS
255
256
257      for as_shell in $as_candidate_shells $SHELL; do
258	 # Try only shells that exist, to save several forks.
259	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260		{ ("$as_shell") 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262  emulate sh
263  NULLCMD=:
264  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265  # is contrary to our usage.  Disable this feature.
266  alias -g '${1+"$@"}'='"$@"'
267  setopt NO_GLOB_SUBST
268else
269  case `(set -o) 2>/dev/null` in
270  *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277_ASEOF
278}; then
279  CONFIG_SHELL=$as_shell
280	       as_have_required=yes
281	       if { "$as_shell" 2> /dev/null <<\_ASEOF
282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283  emulate sh
284  NULLCMD=:
285  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286  # is contrary to our usage.  Disable this feature.
287  alias -g '${1+"$@"}'='"$@"'
288  setopt NO_GLOB_SUBST
289else
290  case `(set -o) 2>/dev/null` in
291  *posix*) set -o posix ;;
292esac
293
294fi
295
296
297:
298(as_func_return () {
299  (exit $1)
300}
301as_func_success () {
302  as_func_return 0
303}
304as_func_failure () {
305  as_func_return 1
306}
307as_func_ret_success () {
308  return 0
309}
310as_func_ret_failure () {
311  return 1
312}
313
314exitcode=0
315if as_func_success; then
316  :
317else
318  exitcode=1
319  echo as_func_success failed.
320fi
321
322if as_func_failure; then
323  exitcode=1
324  echo as_func_failure succeeded.
325fi
326
327if as_func_ret_success; then
328  :
329else
330  exitcode=1
331  echo as_func_ret_success failed.
332fi
333
334if as_func_ret_failure; then
335  exitcode=1
336  echo as_func_ret_failure succeeded.
337fi
338
339if ( set x; as_func_ret_success y && test x = "$1" ); then
340  :
341else
342  exitcode=1
343  echo positional parameters were not saved.
344fi
345
346test $exitcode = 0) || { (exit 1); exit 1; }
347
348(
349  as_lineno_1=$LINENO
350  as_lineno_2=$LINENO
351  test "x$as_lineno_1" != "x$as_lineno_2" &&
352  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354_ASEOF
355}; then
356  break
357fi
358
359fi
360
361      done
362
363      if test "x$CONFIG_SHELL" != x; then
364  for as_var in BASH_ENV ENV
365	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366	done
367	export CONFIG_SHELL
368	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369fi
370
371
372    if test $as_have_required = no; then
373  echo This script requires a shell more modern than all the
374      echo shells that I found on your system.  Please install a
375      echo modern shell, or manually run the script under such a
376      echo shell if you do have one.
377      { (exit 1); exit 1; }
378fi
379
380
381fi
382
383fi
384
385
386
387(eval "as_func_return () {
388  (exit \$1)
389}
390as_func_success () {
391  as_func_return 0
392}
393as_func_failure () {
394  as_func_return 1
395}
396as_func_ret_success () {
397  return 0
398}
399as_func_ret_failure () {
400  return 1
401}
402
403exitcode=0
404if as_func_success; then
405  :
406else
407  exitcode=1
408  echo as_func_success failed.
409fi
410
411if as_func_failure; then
412  exitcode=1
413  echo as_func_failure succeeded.
414fi
415
416if as_func_ret_success; then
417  :
418else
419  exitcode=1
420  echo as_func_ret_success failed.
421fi
422
423if as_func_ret_failure; then
424  exitcode=1
425  echo as_func_ret_failure succeeded.
426fi
427
428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429  :
430else
431  exitcode=1
432  echo positional parameters were not saved.
433fi
434
435test \$exitcode = 0") || {
436  echo No shell found that supports shell functions.
437  echo Please tell bug-autoconf@gnu.org about your system,
438  echo including any error possibly output before this message.
439  echo This can help us improve future autoconf versions.
440  echo Configuration will now proceed without shell functions.
441}
442
443
444
445  as_lineno_1=$LINENO
446  as_lineno_2=$LINENO
447  test "x$as_lineno_1" != "x$as_lineno_2" &&
448  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451  # uniformly replaced by the line number.  The first 'sed' inserts a
452  # line-number line after each line using $LINENO; the second 'sed'
453  # does the real work.  The second script uses 'N' to pair each
454  # line-number line with the line containing $LINENO, and appends
455  # trailing '-' during substitution so that $LINENO is not a special
456  # case at line end.
457  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458  # scripts with optimization help from Paolo Bonzini.  Blame Lee
459  # E. McMahon (1931-1989) for sed's syntax.  :-)
460  sed -n '
461    p
462    /[$]LINENO/=
463  ' <$as_myself |
464    sed '
465      s/[$]LINENO.*/&-/
466      t lineno
467      b
468      :lineno
469      N
470      :loop
471      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472      t loop
473      s/-\n.*//
474    ' >$as_me.lineno &&
475  chmod +x "$as_me.lineno" ||
476    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477   { (exit 1); exit 1; }; }
478
479  # Don't try to exec as it changes $[0], causing all sort of problems
480  # (the dirname of $[0] is not the place where we might find the
481  # original and so on.  Autoconf is especially sensitive to this).
482  . "./$as_me.lineno"
483  # Exit status is that of the last command.
484  exit
485}
486
487
488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489  as_dirname=dirname
490else
491  as_dirname=false
492fi
493
494ECHO_C= ECHO_N= ECHO_T=
495case `echo -n x` in
496-n*)
497  case `echo 'x\c'` in
498  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
499  *)   ECHO_C='\c';;
500  esac;;
501*)
502  ECHO_N='-n';;
503esac
504if expr a : '\(a\)' >/dev/null 2>&1 &&
505   test "X`expr 00001 : '.*\(...\)'`" = X001; then
506  as_expr=expr
507else
508  as_expr=false
509fi
510
511rm -f conf$$ conf$$.exe conf$$.file
512if test -d conf$$.dir; then
513  rm -f conf$$.dir/conf$$.file
514else
515  rm -f conf$$.dir
516  mkdir conf$$.dir 2>/dev/null
517fi
518if (echo >conf$$.file) 2>/dev/null; then
519  if ln -s conf$$.file conf$$ 2>/dev/null; then
520    as_ln_s='ln -s'
521    # ... but there are two gotchas:
522    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524    # In both cases, we have to default to `cp -p'.
525    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526      as_ln_s='cp -p'
527  elif ln conf$$.file conf$$ 2>/dev/null; then
528    as_ln_s=ln
529  else
530    as_ln_s='cp -p'
531  fi
532else
533  as_ln_s='cp -p'
534fi
535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536rmdir conf$$.dir 2>/dev/null
537
538if mkdir -p . 2>/dev/null; then
539  as_mkdir_p=:
540else
541  test -d ./-p && rmdir ./-p
542  as_mkdir_p=false
543fi
544
545if test -x / >/dev/null 2>&1; then
546  as_test_x='test -x'
547else
548  if ls -dL / >/dev/null 2>&1; then
549    as_ls_L_option=L
550  else
551    as_ls_L_option=
552  fi
553  as_test_x='
554    eval sh -c '\''
555      if test -d "$1"; then
556	test -d "$1/.";
557      else
558	case $1 in
559	-*)set "./$1";;
560	esac;
561	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562	???[sx]*):;;*)false;;esac;fi
563    '\'' sh
564  '
565fi
566as_executable_p=$as_test_x
567
568# Sed expression to map a string onto a valid CPP name.
569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571# Sed expression to map a string onto a valid variable name.
572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576exec 7<&0 </dev/null 6>&1
577
578# Name of the host.
579# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
580# so uname gets run too.
581ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582
583#
584# Initializations.
585#
586ac_default_prefix=/usr/local
587ac_clean_files=
588ac_config_libobj_dir=.
589LIBOBJS=
590cross_compiling=no
591subdirs=
592MFLAGS=
593MAKEFLAGS=
594SHELL=${CONFIG_SHELL-/bin/sh}
595
596# Identity of this package.
597PACKAGE_NAME='x11perf'
598PACKAGE_TARNAME='x11perf'
599PACKAGE_VERSION='1.5.1'
600PACKAGE_STRING='x11perf 1.5.1'
601PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
602
603# Factoring default headers for most tests.
604ac_includes_default="\
605#include <stdio.h>
606#ifdef HAVE_SYS_TYPES_H
607# include <sys/types.h>
608#endif
609#ifdef HAVE_SYS_STAT_H
610# include <sys/stat.h>
611#endif
612#ifdef STDC_HEADERS
613# include <stdlib.h>
614# include <stddef.h>
615#else
616# ifdef HAVE_STDLIB_H
617#  include <stdlib.h>
618# endif
619#endif
620#ifdef HAVE_STRING_H
621# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622#  include <memory.h>
623# endif
624# include <string.h>
625#endif
626#ifdef HAVE_STRINGS_H
627# include <strings.h>
628#endif
629#ifdef HAVE_INTTYPES_H
630# include <inttypes.h>
631#endif
632#ifdef HAVE_STDINT_H
633# include <stdint.h>
634#endif
635#ifdef HAVE_UNISTD_H
636# include <unistd.h>
637#endif"
638
639ac_subst_vars='am__EXEEXT_FALSE
640am__EXEEXT_TRUE
641LTLIBOBJS
642LIBOBJS
643XEXT_LIBS
644XEXT_CFLAGS
645XFT_LIBS
646XFT_CFLAGS
647XRENDER_LIBS
648XRENDER_CFLAGS
649X11PERF_LIBS
650X11PERF_CFLAGS
651PKG_CONFIG
652SED
653ADMIN_MAN_DIR
654DRIVER_MAN_DIR
655MISC_MAN_DIR
656FILE_MAN_DIR
657LIB_MAN_DIR
658APP_MAN_DIR
659ADMIN_MAN_SUFFIX
660DRIVER_MAN_SUFFIX
661MISC_MAN_SUFFIX
662FILE_MAN_SUFFIX
663LIB_MAN_SUFFIX
664APP_MAN_SUFFIX
665host_os
666host_vendor
667host_cpu
668host
669build_os
670build_vendor
671build_cpu
672build
673distcleancheck_listfiles
674CHANGELOG_CMD
675AM_BACKSLASH
676AM_DEFAULT_VERBOSITY
677CWARNFLAGS
678EGREP
679GREP
680CPP
681am__fastdepCC_FALSE
682am__fastdepCC_TRUE
683CCDEPMODE
684AMDEPBACKSLASH
685AMDEP_FALSE
686AMDEP_TRUE
687am__quote
688am__include
689DEPDIR
690OBJEXT
691EXEEXT
692ac_ct_CC
693CPPFLAGS
694LDFLAGS
695CFLAGS
696CC
697MAINT
698MAINTAINER_MODE_FALSE
699MAINTAINER_MODE_TRUE
700am__untar
701am__tar
702AMTAR
703am__leading_dot
704SET_MAKE
705AWK
706mkdir_p
707MKDIR_P
708INSTALL_STRIP_PROGRAM
709STRIP
710install_sh
711MAKEINFO
712AUTOHEADER
713AUTOMAKE
714AUTOCONF
715ACLOCAL
716VERSION
717PACKAGE
718CYGPATH_W
719am__isrc
720INSTALL_DATA
721INSTALL_SCRIPT
722INSTALL_PROGRAM
723target_alias
724host_alias
725build_alias
726LIBS
727ECHO_T
728ECHO_N
729ECHO_C
730DEFS
731mandir
732localedir
733libdir
734psdir
735pdfdir
736dvidir
737htmldir
738infodir
739docdir
740oldincludedir
741includedir
742localstatedir
743sharedstatedir
744sysconfdir
745datadir
746datarootdir
747libexecdir
748sbindir
749bindir
750program_transform_name
751prefix
752exec_prefix
753PACKAGE_BUGREPORT
754PACKAGE_STRING
755PACKAGE_VERSION
756PACKAGE_TARNAME
757PACKAGE_NAME
758PATH_SEPARATOR
759SHELL'
760ac_subst_files=''
761ac_user_opts='
762enable_option_checking
763enable_maintainer_mode
764enable_dependency_tracking
765enable_silent_rules
766enable_strict_compilation
767with_release_version
768'
769      ac_precious_vars='build_alias
770host_alias
771target_alias
772CC
773CFLAGS
774LDFLAGS
775LIBS
776CPPFLAGS
777CPP
778PKG_CONFIG
779X11PERF_CFLAGS
780X11PERF_LIBS
781XRENDER_CFLAGS
782XRENDER_LIBS
783XFT_CFLAGS
784XFT_LIBS
785XEXT_CFLAGS
786XEXT_LIBS'
787
788
789# Initialize some variables set by options.
790ac_init_help=
791ac_init_version=false
792ac_unrecognized_opts=
793ac_unrecognized_sep=
794# The variables have the same names as the options, with
795# dashes changed to underlines.
796cache_file=/dev/null
797exec_prefix=NONE
798no_create=
799no_recursion=
800prefix=NONE
801program_prefix=NONE
802program_suffix=NONE
803program_transform_name=s,x,x,
804silent=
805site=
806srcdir=
807verbose=
808x_includes=NONE
809x_libraries=NONE
810
811# Installation directory options.
812# These are left unexpanded so users can "make install exec_prefix=/foo"
813# and all the variables that are supposed to be based on exec_prefix
814# by default will actually change.
815# Use braces instead of parens because sh, perl, etc. also accept them.
816# (The list follows the same order as the GNU Coding Standards.)
817bindir='${exec_prefix}/bin'
818sbindir='${exec_prefix}/sbin'
819libexecdir='${exec_prefix}/libexec'
820datarootdir='${prefix}/share'
821datadir='${datarootdir}'
822sysconfdir='${prefix}/etc'
823sharedstatedir='${prefix}/com'
824localstatedir='${prefix}/var'
825includedir='${prefix}/include'
826oldincludedir='/usr/include'
827docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
828infodir='${datarootdir}/info'
829htmldir='${docdir}'
830dvidir='${docdir}'
831pdfdir='${docdir}'
832psdir='${docdir}'
833libdir='${exec_prefix}/lib'
834localedir='${datarootdir}/locale'
835mandir='${datarootdir}/man'
836
837ac_prev=
838ac_dashdash=
839for ac_option
840do
841  # If the previous option needs an argument, assign it.
842  if test -n "$ac_prev"; then
843    eval $ac_prev=\$ac_option
844    ac_prev=
845    continue
846  fi
847
848  case $ac_option in
849  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
850  *)	ac_optarg=yes ;;
851  esac
852
853  # Accept the important Cygnus configure options, so we can diagnose typos.
854
855  case $ac_dashdash$ac_option in
856  --)
857    ac_dashdash=yes ;;
858
859  -bindir | --bindir | --bindi | --bind | --bin | --bi)
860    ac_prev=bindir ;;
861  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
862    bindir=$ac_optarg ;;
863
864  -build | --build | --buil | --bui | --bu)
865    ac_prev=build_alias ;;
866  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
867    build_alias=$ac_optarg ;;
868
869  -cache-file | --cache-file | --cache-fil | --cache-fi \
870  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
871    ac_prev=cache_file ;;
872  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
873  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
874    cache_file=$ac_optarg ;;
875
876  --config-cache | -C)
877    cache_file=config.cache ;;
878
879  -datadir | --datadir | --datadi | --datad)
880    ac_prev=datadir ;;
881  -datadir=* | --datadir=* | --datadi=* | --datad=*)
882    datadir=$ac_optarg ;;
883
884  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
885  | --dataroo | --dataro | --datar)
886    ac_prev=datarootdir ;;
887  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
888  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
889    datarootdir=$ac_optarg ;;
890
891  -disable-* | --disable-*)
892    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
893    # Reject names that are not valid shell variable names.
894    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
896   { (exit 1); exit 1; }; }
897    ac_useropt_orig=$ac_useropt
898    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
899    case $ac_user_opts in
900      *"
901"enable_$ac_useropt"
902"*) ;;
903      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
904	 ac_unrecognized_sep=', ';;
905    esac
906    eval enable_$ac_useropt=no ;;
907
908  -docdir | --docdir | --docdi | --doc | --do)
909    ac_prev=docdir ;;
910  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
911    docdir=$ac_optarg ;;
912
913  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
914    ac_prev=dvidir ;;
915  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
916    dvidir=$ac_optarg ;;
917
918  -enable-* | --enable-*)
919    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
920    # Reject names that are not valid shell variable names.
921    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
922      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
923   { (exit 1); exit 1; }; }
924    ac_useropt_orig=$ac_useropt
925    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
926    case $ac_user_opts in
927      *"
928"enable_$ac_useropt"
929"*) ;;
930      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
931	 ac_unrecognized_sep=', ';;
932    esac
933    eval enable_$ac_useropt=\$ac_optarg ;;
934
935  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
936  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
937  | --exec | --exe | --ex)
938    ac_prev=exec_prefix ;;
939  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
940  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
941  | --exec=* | --exe=* | --ex=*)
942    exec_prefix=$ac_optarg ;;
943
944  -gas | --gas | --ga | --g)
945    # Obsolete; use --with-gas.
946    with_gas=yes ;;
947
948  -help | --help | --hel | --he | -h)
949    ac_init_help=long ;;
950  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
951    ac_init_help=recursive ;;
952  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
953    ac_init_help=short ;;
954
955  -host | --host | --hos | --ho)
956    ac_prev=host_alias ;;
957  -host=* | --host=* | --hos=* | --ho=*)
958    host_alias=$ac_optarg ;;
959
960  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
961    ac_prev=htmldir ;;
962  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
963  | --ht=*)
964    htmldir=$ac_optarg ;;
965
966  -includedir | --includedir | --includedi | --included | --include \
967  | --includ | --inclu | --incl | --inc)
968    ac_prev=includedir ;;
969  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
970  | --includ=* | --inclu=* | --incl=* | --inc=*)
971    includedir=$ac_optarg ;;
972
973  -infodir | --infodir | --infodi | --infod | --info | --inf)
974    ac_prev=infodir ;;
975  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
976    infodir=$ac_optarg ;;
977
978  -libdir | --libdir | --libdi | --libd)
979    ac_prev=libdir ;;
980  -libdir=* | --libdir=* | --libdi=* | --libd=*)
981    libdir=$ac_optarg ;;
982
983  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
984  | --libexe | --libex | --libe)
985    ac_prev=libexecdir ;;
986  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
987  | --libexe=* | --libex=* | --libe=*)
988    libexecdir=$ac_optarg ;;
989
990  -localedir | --localedir | --localedi | --localed | --locale)
991    ac_prev=localedir ;;
992  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
993    localedir=$ac_optarg ;;
994
995  -localstatedir | --localstatedir | --localstatedi | --localstated \
996  | --localstate | --localstat | --localsta | --localst | --locals)
997    ac_prev=localstatedir ;;
998  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
999  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1000    localstatedir=$ac_optarg ;;
1001
1002  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1003    ac_prev=mandir ;;
1004  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1005    mandir=$ac_optarg ;;
1006
1007  -nfp | --nfp | --nf)
1008    # Obsolete; use --without-fp.
1009    with_fp=no ;;
1010
1011  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1012  | --no-cr | --no-c | -n)
1013    no_create=yes ;;
1014
1015  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1016  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1017    no_recursion=yes ;;
1018
1019  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1020  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1021  | --oldin | --oldi | --old | --ol | --o)
1022    ac_prev=oldincludedir ;;
1023  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1024  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1025  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1026    oldincludedir=$ac_optarg ;;
1027
1028  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1029    ac_prev=prefix ;;
1030  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1031    prefix=$ac_optarg ;;
1032
1033  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1034  | --program-pre | --program-pr | --program-p)
1035    ac_prev=program_prefix ;;
1036  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1037  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1038    program_prefix=$ac_optarg ;;
1039
1040  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1041  | --program-suf | --program-su | --program-s)
1042    ac_prev=program_suffix ;;
1043  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1044  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1045    program_suffix=$ac_optarg ;;
1046
1047  -program-transform-name | --program-transform-name \
1048  | --program-transform-nam | --program-transform-na \
1049  | --program-transform-n | --program-transform- \
1050  | --program-transform | --program-transfor \
1051  | --program-transfo | --program-transf \
1052  | --program-trans | --program-tran \
1053  | --progr-tra | --program-tr | --program-t)
1054    ac_prev=program_transform_name ;;
1055  -program-transform-name=* | --program-transform-name=* \
1056  | --program-transform-nam=* | --program-transform-na=* \
1057  | --program-transform-n=* | --program-transform-=* \
1058  | --program-transform=* | --program-transfor=* \
1059  | --program-transfo=* | --program-transf=* \
1060  | --program-trans=* | --program-tran=* \
1061  | --progr-tra=* | --program-tr=* | --program-t=*)
1062    program_transform_name=$ac_optarg ;;
1063
1064  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1065    ac_prev=pdfdir ;;
1066  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1067    pdfdir=$ac_optarg ;;
1068
1069  -psdir | --psdir | --psdi | --psd | --ps)
1070    ac_prev=psdir ;;
1071  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1072    psdir=$ac_optarg ;;
1073
1074  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1075  | -silent | --silent | --silen | --sile | --sil)
1076    silent=yes ;;
1077
1078  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1079    ac_prev=sbindir ;;
1080  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1081  | --sbi=* | --sb=*)
1082    sbindir=$ac_optarg ;;
1083
1084  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1085  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1086  | --sharedst | --shareds | --shared | --share | --shar \
1087  | --sha | --sh)
1088    ac_prev=sharedstatedir ;;
1089  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1090  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1091  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1092  | --sha=* | --sh=*)
1093    sharedstatedir=$ac_optarg ;;
1094
1095  -site | --site | --sit)
1096    ac_prev=site ;;
1097  -site=* | --site=* | --sit=*)
1098    site=$ac_optarg ;;
1099
1100  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1101    ac_prev=srcdir ;;
1102  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1103    srcdir=$ac_optarg ;;
1104
1105  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1106  | --syscon | --sysco | --sysc | --sys | --sy)
1107    ac_prev=sysconfdir ;;
1108  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1109  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1110    sysconfdir=$ac_optarg ;;
1111
1112  -target | --target | --targe | --targ | --tar | --ta | --t)
1113    ac_prev=target_alias ;;
1114  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1115    target_alias=$ac_optarg ;;
1116
1117  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1118    verbose=yes ;;
1119
1120  -version | --version | --versio | --versi | --vers | -V)
1121    ac_init_version=: ;;
1122
1123  -with-* | --with-*)
1124    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1125    # Reject names that are not valid shell variable names.
1126    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1127      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1128   { (exit 1); exit 1; }; }
1129    ac_useropt_orig=$ac_useropt
1130    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1131    case $ac_user_opts in
1132      *"
1133"with_$ac_useropt"
1134"*) ;;
1135      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1136	 ac_unrecognized_sep=', ';;
1137    esac
1138    eval with_$ac_useropt=\$ac_optarg ;;
1139
1140  -without-* | --without-*)
1141    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1142    # Reject names that are not valid shell variable names.
1143    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1145   { (exit 1); exit 1; }; }
1146    ac_useropt_orig=$ac_useropt
1147    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148    case $ac_user_opts in
1149      *"
1150"with_$ac_useropt"
1151"*) ;;
1152      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1153	 ac_unrecognized_sep=', ';;
1154    esac
1155    eval with_$ac_useropt=no ;;
1156
1157  --x)
1158    # Obsolete; use --with-x.
1159    with_x=yes ;;
1160
1161  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162  | --x-incl | --x-inc | --x-in | --x-i)
1163    ac_prev=x_includes ;;
1164  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1166    x_includes=$ac_optarg ;;
1167
1168  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170    ac_prev=x_libraries ;;
1171  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1173    x_libraries=$ac_optarg ;;
1174
1175  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1176Try \`$0 --help' for more information." >&2
1177   { (exit 1); exit 1; }; }
1178    ;;
1179
1180  *=*)
1181    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1182    # Reject names that are not valid shell variable names.
1183    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1184      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1185   { (exit 1); exit 1; }; }
1186    eval $ac_envvar=\$ac_optarg
1187    export $ac_envvar ;;
1188
1189  *)
1190    # FIXME: should be removed in autoconf 3.0.
1191    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1192    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1193      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1194    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1195    ;;
1196
1197  esac
1198done
1199
1200if test -n "$ac_prev"; then
1201  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1202  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1203   { (exit 1); exit 1; }; }
1204fi
1205
1206if test -n "$ac_unrecognized_opts"; then
1207  case $enable_option_checking in
1208    no) ;;
1209    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1210   { (exit 1); exit 1; }; } ;;
1211    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1212  esac
1213fi
1214
1215# Check all directory arguments for consistency.
1216for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1217		datadir sysconfdir sharedstatedir localstatedir includedir \
1218		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1219		libdir localedir mandir
1220do
1221  eval ac_val=\$$ac_var
1222  # Remove trailing slashes.
1223  case $ac_val in
1224    */ )
1225      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1226      eval $ac_var=\$ac_val;;
1227  esac
1228  # Be sure to have absolute directory names.
1229  case $ac_val in
1230    [\\/$]* | ?:[\\/]* )  continue;;
1231    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1232  esac
1233  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1234   { (exit 1); exit 1; }; }
1235done
1236
1237# There might be people who depend on the old broken behavior: `$host'
1238# used to hold the argument of --host etc.
1239# FIXME: To remove some day.
1240build=$build_alias
1241host=$host_alias
1242target=$target_alias
1243
1244# FIXME: To remove some day.
1245if test "x$host_alias" != x; then
1246  if test "x$build_alias" = x; then
1247    cross_compiling=maybe
1248    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1249    If a cross compiler is detected then cross compile mode will be used." >&2
1250  elif test "x$build_alias" != "x$host_alias"; then
1251    cross_compiling=yes
1252  fi
1253fi
1254
1255ac_tool_prefix=
1256test -n "$host_alias" && ac_tool_prefix=$host_alias-
1257
1258test "$silent" = yes && exec 6>/dev/null
1259
1260
1261ac_pwd=`pwd` && test -n "$ac_pwd" &&
1262ac_ls_di=`ls -di .` &&
1263ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1264  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1265   { (exit 1); exit 1; }; }
1266test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1267  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1268   { (exit 1); exit 1; }; }
1269
1270
1271# Find the source files, if location was not specified.
1272if test -z "$srcdir"; then
1273  ac_srcdir_defaulted=yes
1274  # Try the directory containing this script, then the parent directory.
1275  ac_confdir=`$as_dirname -- "$as_myself" ||
1276$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1277	 X"$as_myself" : 'X\(//\)[^/]' \| \
1278	 X"$as_myself" : 'X\(//\)$' \| \
1279	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1280$as_echo X"$as_myself" |
1281    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1282	    s//\1/
1283	    q
1284	  }
1285	  /^X\(\/\/\)[^/].*/{
1286	    s//\1/
1287	    q
1288	  }
1289	  /^X\(\/\/\)$/{
1290	    s//\1/
1291	    q
1292	  }
1293	  /^X\(\/\).*/{
1294	    s//\1/
1295	    q
1296	  }
1297	  s/.*/./; q'`
1298  srcdir=$ac_confdir
1299  if test ! -r "$srcdir/$ac_unique_file"; then
1300    srcdir=..
1301  fi
1302else
1303  ac_srcdir_defaulted=no
1304fi
1305if test ! -r "$srcdir/$ac_unique_file"; then
1306  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1307  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1308   { (exit 1); exit 1; }; }
1309fi
1310ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1311ac_abs_confdir=`(
1312	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1313   { (exit 1); exit 1; }; }
1314	pwd)`
1315# When building in place, set srcdir=.
1316if test "$ac_abs_confdir" = "$ac_pwd"; then
1317  srcdir=.
1318fi
1319# Remove unnecessary trailing slashes from srcdir.
1320# Double slashes in file names in object file debugging info
1321# mess up M-x gdb in Emacs.
1322case $srcdir in
1323*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1324esac
1325for ac_var in $ac_precious_vars; do
1326  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1327  eval ac_env_${ac_var}_value=\$${ac_var}
1328  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1329  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1330done
1331
1332#
1333# Report the --help message.
1334#
1335if test "$ac_init_help" = "long"; then
1336  # Omit some internal or obsolete options to make the list less imposing.
1337  # This message is too long to be a string in the A/UX 3.1 sh.
1338  cat <<_ACEOF
1339\`configure' configures x11perf 1.5.1 to adapt to many kinds of systems.
1340
1341Usage: $0 [OPTION]... [VAR=VALUE]...
1342
1343To assign environment variables (e.g., CC, CFLAGS...), specify them as
1344VAR=VALUE.  See below for descriptions of some of the useful variables.
1345
1346Defaults for the options are specified in brackets.
1347
1348Configuration:
1349  -h, --help              display this help and exit
1350      --help=short        display options specific to this package
1351      --help=recursive    display the short help of all the included packages
1352  -V, --version           display version information and exit
1353  -q, --quiet, --silent   do not print \`checking...' messages
1354      --cache-file=FILE   cache test results in FILE [disabled]
1355  -C, --config-cache      alias for \`--cache-file=config.cache'
1356  -n, --no-create         do not create output files
1357      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1358
1359Installation directories:
1360  --prefix=PREFIX         install architecture-independent files in PREFIX
1361                          [$ac_default_prefix]
1362  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1363                          [PREFIX]
1364
1365By default, \`make install' will install all the files in
1366\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1367an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1368for instance \`--prefix=\$HOME'.
1369
1370For better control, use the options below.
1371
1372Fine tuning of the installation directories:
1373  --bindir=DIR            user executables [EPREFIX/bin]
1374  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1375  --libexecdir=DIR        program executables [EPREFIX/libexec]
1376  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1377  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1378  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1379  --libdir=DIR            object code libraries [EPREFIX/lib]
1380  --includedir=DIR        C header files [PREFIX/include]
1381  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1382  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1383  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1384  --infodir=DIR           info documentation [DATAROOTDIR/info]
1385  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1386  --mandir=DIR            man documentation [DATAROOTDIR/man]
1387  --docdir=DIR            documentation root [DATAROOTDIR/doc/x11perf]
1388  --htmldir=DIR           html documentation [DOCDIR]
1389  --dvidir=DIR            dvi documentation [DOCDIR]
1390  --pdfdir=DIR            pdf documentation [DOCDIR]
1391  --psdir=DIR             ps documentation [DOCDIR]
1392_ACEOF
1393
1394  cat <<\_ACEOF
1395
1396Program names:
1397  --program-prefix=PREFIX            prepend PREFIX to installed program names
1398  --program-suffix=SUFFIX            append SUFFIX to installed program names
1399  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1400
1401System types:
1402  --build=BUILD     configure for building on BUILD [guessed]
1403  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1404_ACEOF
1405fi
1406
1407if test -n "$ac_init_help"; then
1408  case $ac_init_help in
1409     short | recursive ) echo "Configuration of x11perf 1.5.1:";;
1410   esac
1411  cat <<\_ACEOF
1412
1413Optional Features:
1414  --disable-option-checking  ignore unrecognized --enable/--with options
1415  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1416  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1417  --enable-maintainer-mode  enable make rules and dependencies not useful
1418			  (and sometimes confusing) to the casual installer
1419  --disable-dependency-tracking  speeds up one-time build
1420  --enable-dependency-tracking   do not reject slow dependency extractors
1421  --enable-silent-rules          less verbose build output (undo: `make V=1')
1422  --disable-silent-rules         verbose build output (undo: `make V=0')
1423  --enable-strict-compilation
1424                          Enable all warnings from compiler and make them
1425                          errors (default: disabled)
1426
1427Optional Packages:
1428  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1429  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1430  --with-release-version=STRING
1431                          Use release version string in package name
1432
1433Some influential environment variables:
1434  CC          C compiler command
1435  CFLAGS      C compiler flags
1436  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1437              nonstandard directory <lib dir>
1438  LIBS        libraries to pass to the linker, e.g. -l<library>
1439  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1440              you have headers in a nonstandard directory <include dir>
1441  CPP         C preprocessor
1442  PKG_CONFIG  path to pkg-config utility
1443  X11PERF_CFLAGS
1444              C compiler flags for X11PERF, overriding pkg-config
1445  X11PERF_LIBS
1446              linker flags for X11PERF, overriding pkg-config
1447  XRENDER_CFLAGS
1448              C compiler flags for XRENDER, overriding pkg-config
1449  XRENDER_LIBS
1450              linker flags for XRENDER, overriding pkg-config
1451  XFT_CFLAGS  C compiler flags for XFT, overriding pkg-config
1452  XFT_LIBS    linker flags for XFT, overriding pkg-config
1453  XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1454  XEXT_LIBS   linker flags for XEXT, overriding pkg-config
1455
1456Use these variables to override the choices made by `configure' or to help
1457it to find libraries and programs with nonstandard names/locations.
1458
1459Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1460_ACEOF
1461ac_status=$?
1462fi
1463
1464if test "$ac_init_help" = "recursive"; then
1465  # If there are subdirs, report their specific --help.
1466  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1467    test -d "$ac_dir" ||
1468      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1469      continue
1470    ac_builddir=.
1471
1472case "$ac_dir" in
1473.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474*)
1475  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1476  # A ".." for each directory in $ac_dir_suffix.
1477  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1478  case $ac_top_builddir_sub in
1479  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1480  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1481  esac ;;
1482esac
1483ac_abs_top_builddir=$ac_pwd
1484ac_abs_builddir=$ac_pwd$ac_dir_suffix
1485# for backward compatibility:
1486ac_top_builddir=$ac_top_build_prefix
1487
1488case $srcdir in
1489  .)  # We are building in place.
1490    ac_srcdir=.
1491    ac_top_srcdir=$ac_top_builddir_sub
1492    ac_abs_top_srcdir=$ac_pwd ;;
1493  [\\/]* | ?:[\\/]* )  # Absolute name.
1494    ac_srcdir=$srcdir$ac_dir_suffix;
1495    ac_top_srcdir=$srcdir
1496    ac_abs_top_srcdir=$srcdir ;;
1497  *) # Relative name.
1498    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1499    ac_top_srcdir=$ac_top_build_prefix$srcdir
1500    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1501esac
1502ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1503
1504    cd "$ac_dir" || { ac_status=$?; continue; }
1505    # Check for guested configure.
1506    if test -f "$ac_srcdir/configure.gnu"; then
1507      echo &&
1508      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1509    elif test -f "$ac_srcdir/configure"; then
1510      echo &&
1511      $SHELL "$ac_srcdir/configure" --help=recursive
1512    else
1513      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1514    fi || ac_status=$?
1515    cd "$ac_pwd" || { ac_status=$?; break; }
1516  done
1517fi
1518
1519test -n "$ac_init_help" && exit $ac_status
1520if $ac_init_version; then
1521  cat <<\_ACEOF
1522x11perf configure 1.5.1
1523generated by GNU Autoconf 2.63
1524
1525Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15262002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1527This configure script is free software; the Free Software Foundation
1528gives unlimited permission to copy, distribute and modify it.
1529_ACEOF
1530  exit
1531fi
1532cat >config.log <<_ACEOF
1533This file contains any messages produced by compilers while
1534running configure, to aid debugging if configure makes a mistake.
1535
1536It was created by x11perf $as_me 1.5.1, which was
1537generated by GNU Autoconf 2.63.  Invocation command line was
1538
1539  $ $0 $@
1540
1541_ACEOF
1542exec 5>>config.log
1543{
1544cat <<_ASUNAME
1545## --------- ##
1546## Platform. ##
1547## --------- ##
1548
1549hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1550uname -m = `(uname -m) 2>/dev/null || echo unknown`
1551uname -r = `(uname -r) 2>/dev/null || echo unknown`
1552uname -s = `(uname -s) 2>/dev/null || echo unknown`
1553uname -v = `(uname -v) 2>/dev/null || echo unknown`
1554
1555/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1556/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1557
1558/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1559/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1560/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1561/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1562/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1563/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1564/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1565
1566_ASUNAME
1567
1568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1569for as_dir in $PATH
1570do
1571  IFS=$as_save_IFS
1572  test -z "$as_dir" && as_dir=.
1573  $as_echo "PATH: $as_dir"
1574done
1575IFS=$as_save_IFS
1576
1577} >&5
1578
1579cat >&5 <<_ACEOF
1580
1581
1582## ----------- ##
1583## Core tests. ##
1584## ----------- ##
1585
1586_ACEOF
1587
1588
1589# Keep a trace of the command line.
1590# Strip out --no-create and --no-recursion so they do not pile up.
1591# Strip out --silent because we don't want to record it for future runs.
1592# Also quote any args containing shell meta-characters.
1593# Make two passes to allow for proper duplicate-argument suppression.
1594ac_configure_args=
1595ac_configure_args0=
1596ac_configure_args1=
1597ac_must_keep_next=false
1598for ac_pass in 1 2
1599do
1600  for ac_arg
1601  do
1602    case $ac_arg in
1603    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1604    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1605    | -silent | --silent | --silen | --sile | --sil)
1606      continue ;;
1607    *\'*)
1608      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1609    esac
1610    case $ac_pass in
1611    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1612    2)
1613      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1614      if test $ac_must_keep_next = true; then
1615	ac_must_keep_next=false # Got value, back to normal.
1616      else
1617	case $ac_arg in
1618	  *=* | --config-cache | -C | -disable-* | --disable-* \
1619	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1620	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1621	  | -with-* | --with-* | -without-* | --without-* | --x)
1622	    case "$ac_configure_args0 " in
1623	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1624	    esac
1625	    ;;
1626	  -* ) ac_must_keep_next=true ;;
1627	esac
1628      fi
1629      ac_configure_args="$ac_configure_args '$ac_arg'"
1630      ;;
1631    esac
1632  done
1633done
1634$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1635$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1636
1637# When interrupted or exit'd, cleanup temporary files, and complete
1638# config.log.  We remove comments because anyway the quotes in there
1639# would cause problems or look ugly.
1640# WARNING: Use '\'' to represent an apostrophe within the trap.
1641# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1642trap 'exit_status=$?
1643  # Save into config.log some information that might help in debugging.
1644  {
1645    echo
1646
1647    cat <<\_ASBOX
1648## ---------------- ##
1649## Cache variables. ##
1650## ---------------- ##
1651_ASBOX
1652    echo
1653    # The following way of writing the cache mishandles newlines in values,
1654(
1655  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1656    eval ac_val=\$$ac_var
1657    case $ac_val in #(
1658    *${as_nl}*)
1659      case $ac_var in #(
1660      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1661$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1662      esac
1663      case $ac_var in #(
1664      _ | IFS | as_nl) ;; #(
1665      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1666      *) $as_unset $ac_var ;;
1667      esac ;;
1668    esac
1669  done
1670  (set) 2>&1 |
1671    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1672    *${as_nl}ac_space=\ *)
1673      sed -n \
1674	"s/'\''/'\''\\\\'\'''\''/g;
1675	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1676      ;; #(
1677    *)
1678      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1679      ;;
1680    esac |
1681    sort
1682)
1683    echo
1684
1685    cat <<\_ASBOX
1686## ----------------- ##
1687## Output variables. ##
1688## ----------------- ##
1689_ASBOX
1690    echo
1691    for ac_var in $ac_subst_vars
1692    do
1693      eval ac_val=\$$ac_var
1694      case $ac_val in
1695      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1696      esac
1697      $as_echo "$ac_var='\''$ac_val'\''"
1698    done | sort
1699    echo
1700
1701    if test -n "$ac_subst_files"; then
1702      cat <<\_ASBOX
1703## ------------------- ##
1704## File substitutions. ##
1705## ------------------- ##
1706_ASBOX
1707      echo
1708      for ac_var in $ac_subst_files
1709      do
1710	eval ac_val=\$$ac_var
1711	case $ac_val in
1712	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1713	esac
1714	$as_echo "$ac_var='\''$ac_val'\''"
1715      done | sort
1716      echo
1717    fi
1718
1719    if test -s confdefs.h; then
1720      cat <<\_ASBOX
1721## ----------- ##
1722## confdefs.h. ##
1723## ----------- ##
1724_ASBOX
1725      echo
1726      cat confdefs.h
1727      echo
1728    fi
1729    test "$ac_signal" != 0 &&
1730      $as_echo "$as_me: caught signal $ac_signal"
1731    $as_echo "$as_me: exit $exit_status"
1732  } >&5
1733  rm -f core *.core core.conftest.* &&
1734    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1735    exit $exit_status
1736' 0
1737for ac_signal in 1 2 13 15; do
1738  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1739done
1740ac_signal=0
1741
1742# confdefs.h avoids OS command line length limits that DEFS can exceed.
1743rm -f -r conftest* confdefs.h
1744
1745# Predefined preprocessor variables.
1746
1747cat >>confdefs.h <<_ACEOF
1748#define PACKAGE_NAME "$PACKAGE_NAME"
1749_ACEOF
1750
1751
1752cat >>confdefs.h <<_ACEOF
1753#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1754_ACEOF
1755
1756
1757cat >>confdefs.h <<_ACEOF
1758#define PACKAGE_VERSION "$PACKAGE_VERSION"
1759_ACEOF
1760
1761
1762cat >>confdefs.h <<_ACEOF
1763#define PACKAGE_STRING "$PACKAGE_STRING"
1764_ACEOF
1765
1766
1767cat >>confdefs.h <<_ACEOF
1768#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1769_ACEOF
1770
1771
1772# Let the site file select an alternate cache file if it wants to.
1773# Prefer an explicitly selected file to automatically selected ones.
1774ac_site_file1=NONE
1775ac_site_file2=NONE
1776if test -n "$CONFIG_SITE"; then
1777  ac_site_file1=$CONFIG_SITE
1778elif test "x$prefix" != xNONE; then
1779  ac_site_file1=$prefix/share/config.site
1780  ac_site_file2=$prefix/etc/config.site
1781else
1782  ac_site_file1=$ac_default_prefix/share/config.site
1783  ac_site_file2=$ac_default_prefix/etc/config.site
1784fi
1785for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1786do
1787  test "x$ac_site_file" = xNONE && continue
1788  if test -r "$ac_site_file"; then
1789    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1790$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1791    sed 's/^/| /' "$ac_site_file" >&5
1792    . "$ac_site_file"
1793  fi
1794done
1795
1796if test -r "$cache_file"; then
1797  # Some versions of bash will fail to source /dev/null (special
1798  # files actually), so we avoid doing that.
1799  if test -f "$cache_file"; then
1800    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1801$as_echo "$as_me: loading cache $cache_file" >&6;}
1802    case $cache_file in
1803      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1804      *)                      . "./$cache_file";;
1805    esac
1806  fi
1807else
1808  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1809$as_echo "$as_me: creating cache $cache_file" >&6;}
1810  >$cache_file
1811fi
1812
1813# Check that the precious variables saved in the cache have kept the same
1814# value.
1815ac_cache_corrupted=false
1816for ac_var in $ac_precious_vars; do
1817  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1818  eval ac_new_set=\$ac_env_${ac_var}_set
1819  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1820  eval ac_new_val=\$ac_env_${ac_var}_value
1821  case $ac_old_set,$ac_new_set in
1822    set,)
1823      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1824$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1825      ac_cache_corrupted=: ;;
1826    ,set)
1827      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1828$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1829      ac_cache_corrupted=: ;;
1830    ,);;
1831    *)
1832      if test "x$ac_old_val" != "x$ac_new_val"; then
1833	# differences in whitespace do not lead to failure.
1834	ac_old_val_w=`echo x $ac_old_val`
1835	ac_new_val_w=`echo x $ac_new_val`
1836	if test "$ac_old_val_w" != "$ac_new_val_w"; then
1837	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1838$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1839	  ac_cache_corrupted=:
1840	else
1841	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1842$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1843	  eval $ac_var=\$ac_old_val
1844	fi
1845	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1846$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1847	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1848$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1849      fi;;
1850  esac
1851  # Pass precious variables to config.status.
1852  if test "$ac_new_set" = set; then
1853    case $ac_new_val in
1854    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1855    *) ac_arg=$ac_var=$ac_new_val ;;
1856    esac
1857    case " $ac_configure_args " in
1858      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1859      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1860    esac
1861  fi
1862done
1863if $ac_cache_corrupted; then
1864  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1865$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1866  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1867$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1868  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1869$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1870   { (exit 1); exit 1; }; }
1871fi
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897ac_ext=c
1898ac_cpp='$CPP $CPPFLAGS'
1899ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1900ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1901ac_compiler_gnu=$ac_cv_c_compiler_gnu
1902
1903
1904am__api_version='1.11'
1905
1906ac_aux_dir=
1907for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1908  if test -f "$ac_dir/install-sh"; then
1909    ac_aux_dir=$ac_dir
1910    ac_install_sh="$ac_aux_dir/install-sh -c"
1911    break
1912  elif test -f "$ac_dir/install.sh"; then
1913    ac_aux_dir=$ac_dir
1914    ac_install_sh="$ac_aux_dir/install.sh -c"
1915    break
1916  elif test -f "$ac_dir/shtool"; then
1917    ac_aux_dir=$ac_dir
1918    ac_install_sh="$ac_aux_dir/shtool install -c"
1919    break
1920  fi
1921done
1922if test -z "$ac_aux_dir"; then
1923  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1924$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1925   { (exit 1); exit 1; }; }
1926fi
1927
1928# These three variables are undocumented and unsupported,
1929# and are intended to be withdrawn in a future Autoconf release.
1930# They can cause serious problems if a builder's source tree is in a directory
1931# whose full name contains unusual characters.
1932ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1933ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1934ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1935
1936
1937# Find a good install program.  We prefer a C program (faster),
1938# so one script is as good as another.  But avoid the broken or
1939# incompatible versions:
1940# SysV /etc/install, /usr/sbin/install
1941# SunOS /usr/etc/install
1942# IRIX /sbin/install
1943# AIX /bin/install
1944# AmigaOS /C/install, which installs bootblocks on floppy discs
1945# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1946# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1947# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1948# OS/2's system install, which has a completely different semantic
1949# ./install, which can be erroneously created by make from ./install.sh.
1950# Reject install programs that cannot install multiple files.
1951{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1952$as_echo_n "checking for a BSD-compatible install... " >&6; }
1953if test -z "$INSTALL"; then
1954if test "${ac_cv_path_install+set}" = set; then
1955  $as_echo_n "(cached) " >&6
1956else
1957  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1958for as_dir in $PATH
1959do
1960  IFS=$as_save_IFS
1961  test -z "$as_dir" && as_dir=.
1962  # Account for people who put trailing slashes in PATH elements.
1963case $as_dir/ in
1964  ./ | .// | /cC/* | \
1965  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1966  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1967  /usr/ucb/* ) ;;
1968  *)
1969    # OSF1 and SCO ODT 3.0 have their own names for install.
1970    # Don't use installbsd from OSF since it installs stuff as root
1971    # by default.
1972    for ac_prog in ginstall scoinst install; do
1973      for ac_exec_ext in '' $ac_executable_extensions; do
1974	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1975	  if test $ac_prog = install &&
1976	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1977	    # AIX install.  It has an incompatible calling convention.
1978	    :
1979	  elif test $ac_prog = install &&
1980	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1981	    # program-specific install script used by HP pwplus--don't use.
1982	    :
1983	  else
1984	    rm -rf conftest.one conftest.two conftest.dir
1985	    echo one > conftest.one
1986	    echo two > conftest.two
1987	    mkdir conftest.dir
1988	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1989	      test -s conftest.one && test -s conftest.two &&
1990	      test -s conftest.dir/conftest.one &&
1991	      test -s conftest.dir/conftest.two
1992	    then
1993	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1994	      break 3
1995	    fi
1996	  fi
1997	fi
1998      done
1999    done
2000    ;;
2001esac
2002
2003done
2004IFS=$as_save_IFS
2005
2006rm -rf conftest.one conftest.two conftest.dir
2007
2008fi
2009  if test "${ac_cv_path_install+set}" = set; then
2010    INSTALL=$ac_cv_path_install
2011  else
2012    # As a last resort, use the slow shell script.  Don't cache a
2013    # value for INSTALL within a source directory, because that will
2014    # break other packages using the cache if that directory is
2015    # removed, or if the value is a relative name.
2016    INSTALL=$ac_install_sh
2017  fi
2018fi
2019{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2020$as_echo "$INSTALL" >&6; }
2021
2022# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2023# It thinks the first close brace ends the variable substitution.
2024test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2025
2026test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2027
2028test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2029
2030{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2031$as_echo_n "checking whether build environment is sane... " >&6; }
2032# Just in case
2033sleep 1
2034echo timestamp > conftest.file
2035# Reject unsafe characters in $srcdir or the absolute working directory
2036# name.  Accept space and tab only in the latter.
2037am_lf='
2038'
2039case `pwd` in
2040  *[\\\"\#\$\&\'\`$am_lf]*)
2041    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2042$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2043   { (exit 1); exit 1; }; };;
2044esac
2045case $srcdir in
2046  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2047    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2048$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2049   { (exit 1); exit 1; }; };;
2050esac
2051
2052# Do `set' in a subshell so we don't clobber the current shell's
2053# arguments.  Must try -L first in case configure is actually a
2054# symlink; some systems play weird games with the mod time of symlinks
2055# (eg FreeBSD returns the mod time of the symlink's containing
2056# directory).
2057if (
2058   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2059   if test "$*" = "X"; then
2060      # -L didn't work.
2061      set X `ls -t "$srcdir/configure" conftest.file`
2062   fi
2063   rm -f conftest.file
2064   if test "$*" != "X $srcdir/configure conftest.file" \
2065      && test "$*" != "X conftest.file $srcdir/configure"; then
2066
2067      # If neither matched, then we have a broken ls.  This can happen
2068      # if, for instance, CONFIG_SHELL is bash and it inherits a
2069      # broken ls alias from the environment.  This has actually
2070      # happened.  Such a system could not be considered "sane".
2071      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2072alias in your environment" >&5
2073$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2074alias in your environment" >&2;}
2075   { (exit 1); exit 1; }; }
2076   fi
2077
2078   test "$2" = conftest.file
2079   )
2080then
2081   # Ok.
2082   :
2083else
2084   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2085Check your system clock" >&5
2086$as_echo "$as_me: error: newly created file is older than distributed files!
2087Check your system clock" >&2;}
2088   { (exit 1); exit 1; }; }
2089fi
2090{ $as_echo "$as_me:$LINENO: result: yes" >&5
2091$as_echo "yes" >&6; }
2092test "$program_prefix" != NONE &&
2093  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2094# Use a double $ so make ignores it.
2095test "$program_suffix" != NONE &&
2096  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2097# Double any \ or $.
2098# By default was `s,x,x', remove it if useless.
2099ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2100program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2101
2102# expand $ac_aux_dir to an absolute path
2103am_aux_dir=`cd $ac_aux_dir && pwd`
2104
2105if test x"${MISSING+set}" != xset; then
2106  case $am_aux_dir in
2107  *\ * | *\	*)
2108    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2109  *)
2110    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2111  esac
2112fi
2113# Use eval to expand $SHELL
2114if eval "$MISSING --run true"; then
2115  am_missing_run="$MISSING --run "
2116else
2117  am_missing_run=
2118  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2119$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2120fi
2121
2122if test x"${install_sh}" != xset; then
2123  case $am_aux_dir in
2124  *\ * | *\	*)
2125    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2126  *)
2127    install_sh="\${SHELL} $am_aux_dir/install-sh"
2128  esac
2129fi
2130
2131# Installed binaries are usually stripped using `strip' when the user
2132# run `make install-strip'.  However `strip' might not be the right
2133# tool to use in cross-compilation environments, therefore Automake
2134# will honor the `STRIP' environment variable to overrule this program.
2135if test "$cross_compiling" != no; then
2136  if test -n "$ac_tool_prefix"; then
2137  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2138set dummy ${ac_tool_prefix}strip; ac_word=$2
2139{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2140$as_echo_n "checking for $ac_word... " >&6; }
2141if test "${ac_cv_prog_STRIP+set}" = set; then
2142  $as_echo_n "(cached) " >&6
2143else
2144  if test -n "$STRIP"; then
2145  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2146else
2147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2148for as_dir in $PATH
2149do
2150  IFS=$as_save_IFS
2151  test -z "$as_dir" && as_dir=.
2152  for ac_exec_ext in '' $ac_executable_extensions; do
2153  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2154    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2155    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2156    break 2
2157  fi
2158done
2159done
2160IFS=$as_save_IFS
2161
2162fi
2163fi
2164STRIP=$ac_cv_prog_STRIP
2165if test -n "$STRIP"; then
2166  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2167$as_echo "$STRIP" >&6; }
2168else
2169  { $as_echo "$as_me:$LINENO: result: no" >&5
2170$as_echo "no" >&6; }
2171fi
2172
2173
2174fi
2175if test -z "$ac_cv_prog_STRIP"; then
2176  ac_ct_STRIP=$STRIP
2177  # Extract the first word of "strip", so it can be a program name with args.
2178set dummy strip; ac_word=$2
2179{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2180$as_echo_n "checking for $ac_word... " >&6; }
2181if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2182  $as_echo_n "(cached) " >&6
2183else
2184  if test -n "$ac_ct_STRIP"; then
2185  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2186else
2187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2188for as_dir in $PATH
2189do
2190  IFS=$as_save_IFS
2191  test -z "$as_dir" && as_dir=.
2192  for ac_exec_ext in '' $ac_executable_extensions; do
2193  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2194    ac_cv_prog_ac_ct_STRIP="strip"
2195    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2196    break 2
2197  fi
2198done
2199done
2200IFS=$as_save_IFS
2201
2202fi
2203fi
2204ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2205if test -n "$ac_ct_STRIP"; then
2206  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2207$as_echo "$ac_ct_STRIP" >&6; }
2208else
2209  { $as_echo "$as_me:$LINENO: result: no" >&5
2210$as_echo "no" >&6; }
2211fi
2212
2213  if test "x$ac_ct_STRIP" = x; then
2214    STRIP=":"
2215  else
2216    case $cross_compiling:$ac_tool_warned in
2217yes:)
2218{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2219$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2220ac_tool_warned=yes ;;
2221esac
2222    STRIP=$ac_ct_STRIP
2223  fi
2224else
2225  STRIP="$ac_cv_prog_STRIP"
2226fi
2227
2228fi
2229INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2230
2231{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2232$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2233if test -z "$MKDIR_P"; then
2234  if test "${ac_cv_path_mkdir+set}" = set; then
2235  $as_echo_n "(cached) " >&6
2236else
2237  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2238for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2239do
2240  IFS=$as_save_IFS
2241  test -z "$as_dir" && as_dir=.
2242  for ac_prog in mkdir gmkdir; do
2243	 for ac_exec_ext in '' $ac_executable_extensions; do
2244	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2245	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2246	     'mkdir (GNU coreutils) '* | \
2247	     'mkdir (coreutils) '* | \
2248	     'mkdir (fileutils) '4.1*)
2249	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2250	       break 3;;
2251	   esac
2252	 done
2253       done
2254done
2255IFS=$as_save_IFS
2256
2257fi
2258
2259  if test "${ac_cv_path_mkdir+set}" = set; then
2260    MKDIR_P="$ac_cv_path_mkdir -p"
2261  else
2262    # As a last resort, use the slow shell script.  Don't cache a
2263    # value for MKDIR_P within a source directory, because that will
2264    # break other packages using the cache if that directory is
2265    # removed, or if the value is a relative name.
2266    test -d ./--version && rmdir ./--version
2267    MKDIR_P="$ac_install_sh -d"
2268  fi
2269fi
2270{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2271$as_echo "$MKDIR_P" >&6; }
2272
2273mkdir_p="$MKDIR_P"
2274case $mkdir_p in
2275  [\\/$]* | ?:[\\/]*) ;;
2276  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2277esac
2278
2279for ac_prog in gawk mawk nawk awk
2280do
2281  # Extract the first word of "$ac_prog", so it can be a program name with args.
2282set dummy $ac_prog; ac_word=$2
2283{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2284$as_echo_n "checking for $ac_word... " >&6; }
2285if test "${ac_cv_prog_AWK+set}" = set; then
2286  $as_echo_n "(cached) " >&6
2287else
2288  if test -n "$AWK"; then
2289  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2290else
2291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292for as_dir in $PATH
2293do
2294  IFS=$as_save_IFS
2295  test -z "$as_dir" && as_dir=.
2296  for ac_exec_ext in '' $ac_executable_extensions; do
2297  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2298    ac_cv_prog_AWK="$ac_prog"
2299    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2300    break 2
2301  fi
2302done
2303done
2304IFS=$as_save_IFS
2305
2306fi
2307fi
2308AWK=$ac_cv_prog_AWK
2309if test -n "$AWK"; then
2310  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2311$as_echo "$AWK" >&6; }
2312else
2313  { $as_echo "$as_me:$LINENO: result: no" >&5
2314$as_echo "no" >&6; }
2315fi
2316
2317
2318  test -n "$AWK" && break
2319done
2320
2321{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2322$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2323set x ${MAKE-make}
2324ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2325if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2326  $as_echo_n "(cached) " >&6
2327else
2328  cat >conftest.make <<\_ACEOF
2329SHELL = /bin/sh
2330all:
2331	@echo '@@@%%%=$(MAKE)=@@@%%%'
2332_ACEOF
2333# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2334case `${MAKE-make} -f conftest.make 2>/dev/null` in
2335  *@@@%%%=?*=@@@%%%*)
2336    eval ac_cv_prog_make_${ac_make}_set=yes;;
2337  *)
2338    eval ac_cv_prog_make_${ac_make}_set=no;;
2339esac
2340rm -f conftest.make
2341fi
2342if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2343  { $as_echo "$as_me:$LINENO: result: yes" >&5
2344$as_echo "yes" >&6; }
2345  SET_MAKE=
2346else
2347  { $as_echo "$as_me:$LINENO: result: no" >&5
2348$as_echo "no" >&6; }
2349  SET_MAKE="MAKE=${MAKE-make}"
2350fi
2351
2352rm -rf .tst 2>/dev/null
2353mkdir .tst 2>/dev/null
2354if test -d .tst; then
2355  am__leading_dot=.
2356else
2357  am__leading_dot=_
2358fi
2359rmdir .tst 2>/dev/null
2360
2361if test "`cd $srcdir && pwd`" != "`pwd`"; then
2362  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2363  # is not polluted with repeated "-I."
2364  am__isrc=' -I$(srcdir)'
2365  # test to see if srcdir already configured
2366  if test -f $srcdir/config.status; then
2367    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2368$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2369   { (exit 1); exit 1; }; }
2370  fi
2371fi
2372
2373# test whether we have cygpath
2374if test -z "$CYGPATH_W"; then
2375  if (cygpath --version) >/dev/null 2>/dev/null; then
2376    CYGPATH_W='cygpath -w'
2377  else
2378    CYGPATH_W=echo
2379  fi
2380fi
2381
2382
2383# Define the identity of the package.
2384 PACKAGE='x11perf'
2385 VERSION='1.5.1'
2386
2387
2388cat >>confdefs.h <<_ACEOF
2389#define PACKAGE "$PACKAGE"
2390_ACEOF
2391
2392
2393cat >>confdefs.h <<_ACEOF
2394#define VERSION "$VERSION"
2395_ACEOF
2396
2397# Some tools Automake needs.
2398
2399ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2400
2401
2402AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2403
2404
2405AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2406
2407
2408AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2409
2410
2411MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2412
2413# We need awk for the "check" target.  The system "awk" is bad on
2414# some platforms.
2415# Always define AMTAR for backward compatibility.
2416
2417AMTAR=${AMTAR-"${am_missing_run}tar"}
2418
2419am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2420
2421
2422
2423
2424
2425
2426{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2427$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2428    # Check whether --enable-maintainer-mode was given.
2429if test "${enable_maintainer_mode+set}" = set; then
2430  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2431else
2432  USE_MAINTAINER_MODE=no
2433fi
2434
2435  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2436$as_echo "$USE_MAINTAINER_MODE" >&6; }
2437   if test $USE_MAINTAINER_MODE = yes; then
2438  MAINTAINER_MODE_TRUE=
2439  MAINTAINER_MODE_FALSE='#'
2440else
2441  MAINTAINER_MODE_TRUE='#'
2442  MAINTAINER_MODE_FALSE=
2443fi
2444
2445  MAINT=$MAINTAINER_MODE_TRUE
2446
2447
2448
2449# Require xorg-macros 1.3 or later: XORG_DEFAULT_OPTIONS
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462ac_config_headers="$ac_config_headers config.h"
2463
2464
2465ac_ext=c
2466ac_cpp='$CPP $CPPFLAGS'
2467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2469ac_compiler_gnu=$ac_cv_c_compiler_gnu
2470if test -n "$ac_tool_prefix"; then
2471  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2472set dummy ${ac_tool_prefix}gcc; ac_word=$2
2473{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2474$as_echo_n "checking for $ac_word... " >&6; }
2475if test "${ac_cv_prog_CC+set}" = set; then
2476  $as_echo_n "(cached) " >&6
2477else
2478  if test -n "$CC"; then
2479  ac_cv_prog_CC="$CC" # Let the user override the test.
2480else
2481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482for as_dir in $PATH
2483do
2484  IFS=$as_save_IFS
2485  test -z "$as_dir" && as_dir=.
2486  for ac_exec_ext in '' $ac_executable_extensions; do
2487  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2488    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2489    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2490    break 2
2491  fi
2492done
2493done
2494IFS=$as_save_IFS
2495
2496fi
2497fi
2498CC=$ac_cv_prog_CC
2499if test -n "$CC"; then
2500  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2501$as_echo "$CC" >&6; }
2502else
2503  { $as_echo "$as_me:$LINENO: result: no" >&5
2504$as_echo "no" >&6; }
2505fi
2506
2507
2508fi
2509if test -z "$ac_cv_prog_CC"; then
2510  ac_ct_CC=$CC
2511  # Extract the first word of "gcc", so it can be a program name with args.
2512set dummy gcc; ac_word=$2
2513{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2514$as_echo_n "checking for $ac_word... " >&6; }
2515if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2516  $as_echo_n "(cached) " >&6
2517else
2518  if test -n "$ac_ct_CC"; then
2519  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2520else
2521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522for as_dir in $PATH
2523do
2524  IFS=$as_save_IFS
2525  test -z "$as_dir" && as_dir=.
2526  for ac_exec_ext in '' $ac_executable_extensions; do
2527  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2528    ac_cv_prog_ac_ct_CC="gcc"
2529    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2530    break 2
2531  fi
2532done
2533done
2534IFS=$as_save_IFS
2535
2536fi
2537fi
2538ac_ct_CC=$ac_cv_prog_ac_ct_CC
2539if test -n "$ac_ct_CC"; then
2540  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2541$as_echo "$ac_ct_CC" >&6; }
2542else
2543  { $as_echo "$as_me:$LINENO: result: no" >&5
2544$as_echo "no" >&6; }
2545fi
2546
2547  if test "x$ac_ct_CC" = x; then
2548    CC=""
2549  else
2550    case $cross_compiling:$ac_tool_warned in
2551yes:)
2552{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2553$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2554ac_tool_warned=yes ;;
2555esac
2556    CC=$ac_ct_CC
2557  fi
2558else
2559  CC="$ac_cv_prog_CC"
2560fi
2561
2562if test -z "$CC"; then
2563          if test -n "$ac_tool_prefix"; then
2564    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2565set dummy ${ac_tool_prefix}cc; ac_word=$2
2566{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2567$as_echo_n "checking for $ac_word... " >&6; }
2568if test "${ac_cv_prog_CC+set}" = set; then
2569  $as_echo_n "(cached) " >&6
2570else
2571  if test -n "$CC"; then
2572  ac_cv_prog_CC="$CC" # Let the user override the test.
2573else
2574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2575for as_dir in $PATH
2576do
2577  IFS=$as_save_IFS
2578  test -z "$as_dir" && as_dir=.
2579  for ac_exec_ext in '' $ac_executable_extensions; do
2580  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2581    ac_cv_prog_CC="${ac_tool_prefix}cc"
2582    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2583    break 2
2584  fi
2585done
2586done
2587IFS=$as_save_IFS
2588
2589fi
2590fi
2591CC=$ac_cv_prog_CC
2592if test -n "$CC"; then
2593  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2594$as_echo "$CC" >&6; }
2595else
2596  { $as_echo "$as_me:$LINENO: result: no" >&5
2597$as_echo "no" >&6; }
2598fi
2599
2600
2601  fi
2602fi
2603if test -z "$CC"; then
2604  # Extract the first word of "cc", so it can be a program name with args.
2605set dummy cc; ac_word=$2
2606{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2607$as_echo_n "checking for $ac_word... " >&6; }
2608if test "${ac_cv_prog_CC+set}" = set; then
2609  $as_echo_n "(cached) " >&6
2610else
2611  if test -n "$CC"; then
2612  ac_cv_prog_CC="$CC" # Let the user override the test.
2613else
2614  ac_prog_rejected=no
2615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616for as_dir in $PATH
2617do
2618  IFS=$as_save_IFS
2619  test -z "$as_dir" && as_dir=.
2620  for ac_exec_ext in '' $ac_executable_extensions; do
2621  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2622    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2623       ac_prog_rejected=yes
2624       continue
2625     fi
2626    ac_cv_prog_CC="cc"
2627    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2628    break 2
2629  fi
2630done
2631done
2632IFS=$as_save_IFS
2633
2634if test $ac_prog_rejected = yes; then
2635  # We found a bogon in the path, so make sure we never use it.
2636  set dummy $ac_cv_prog_CC
2637  shift
2638  if test $# != 0; then
2639    # We chose a different compiler from the bogus one.
2640    # However, it has the same basename, so the bogon will be chosen
2641    # first if we set CC to just the basename; use the full file name.
2642    shift
2643    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2644  fi
2645fi
2646fi
2647fi
2648CC=$ac_cv_prog_CC
2649if test -n "$CC"; then
2650  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2651$as_echo "$CC" >&6; }
2652else
2653  { $as_echo "$as_me:$LINENO: result: no" >&5
2654$as_echo "no" >&6; }
2655fi
2656
2657
2658fi
2659if test -z "$CC"; then
2660  if test -n "$ac_tool_prefix"; then
2661  for ac_prog in cl.exe
2662  do
2663    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2664set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2665{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2666$as_echo_n "checking for $ac_word... " >&6; }
2667if test "${ac_cv_prog_CC+set}" = set; then
2668  $as_echo_n "(cached) " >&6
2669else
2670  if test -n "$CC"; then
2671  ac_cv_prog_CC="$CC" # Let the user override the test.
2672else
2673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674for as_dir in $PATH
2675do
2676  IFS=$as_save_IFS
2677  test -z "$as_dir" && as_dir=.
2678  for ac_exec_ext in '' $ac_executable_extensions; do
2679  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2680    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2681    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2682    break 2
2683  fi
2684done
2685done
2686IFS=$as_save_IFS
2687
2688fi
2689fi
2690CC=$ac_cv_prog_CC
2691if test -n "$CC"; then
2692  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2693$as_echo "$CC" >&6; }
2694else
2695  { $as_echo "$as_me:$LINENO: result: no" >&5
2696$as_echo "no" >&6; }
2697fi
2698
2699
2700    test -n "$CC" && break
2701  done
2702fi
2703if test -z "$CC"; then
2704  ac_ct_CC=$CC
2705  for ac_prog in cl.exe
2706do
2707  # Extract the first word of "$ac_prog", so it can be a program name with args.
2708set dummy $ac_prog; ac_word=$2
2709{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2710$as_echo_n "checking for $ac_word... " >&6; }
2711if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2712  $as_echo_n "(cached) " >&6
2713else
2714  if test -n "$ac_ct_CC"; then
2715  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2716else
2717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718for as_dir in $PATH
2719do
2720  IFS=$as_save_IFS
2721  test -z "$as_dir" && as_dir=.
2722  for ac_exec_ext in '' $ac_executable_extensions; do
2723  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2724    ac_cv_prog_ac_ct_CC="$ac_prog"
2725    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2726    break 2
2727  fi
2728done
2729done
2730IFS=$as_save_IFS
2731
2732fi
2733fi
2734ac_ct_CC=$ac_cv_prog_ac_ct_CC
2735if test -n "$ac_ct_CC"; then
2736  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2737$as_echo "$ac_ct_CC" >&6; }
2738else
2739  { $as_echo "$as_me:$LINENO: result: no" >&5
2740$as_echo "no" >&6; }
2741fi
2742
2743
2744  test -n "$ac_ct_CC" && break
2745done
2746
2747  if test "x$ac_ct_CC" = x; then
2748    CC=""
2749  else
2750    case $cross_compiling:$ac_tool_warned in
2751yes:)
2752{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2753$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2754ac_tool_warned=yes ;;
2755esac
2756    CC=$ac_ct_CC
2757  fi
2758fi
2759
2760fi
2761
2762
2763test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2764$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2765{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2766See \`config.log' for more details." >&5
2767$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2768See \`config.log' for more details." >&2;}
2769   { (exit 1); exit 1; }; }; }
2770
2771# Provide some information about the compiler.
2772$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2773set X $ac_compile
2774ac_compiler=$2
2775{ (ac_try="$ac_compiler --version >&5"
2776case "(($ac_try" in
2777  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778  *) ac_try_echo=$ac_try;;
2779esac
2780eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2781$as_echo "$ac_try_echo") >&5
2782  (eval "$ac_compiler --version >&5") 2>&5
2783  ac_status=$?
2784  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785  (exit $ac_status); }
2786{ (ac_try="$ac_compiler -v >&5"
2787case "(($ac_try" in
2788  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2789  *) ac_try_echo=$ac_try;;
2790esac
2791eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2792$as_echo "$ac_try_echo") >&5
2793  (eval "$ac_compiler -v >&5") 2>&5
2794  ac_status=$?
2795  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796  (exit $ac_status); }
2797{ (ac_try="$ac_compiler -V >&5"
2798case "(($ac_try" in
2799  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2800  *) ac_try_echo=$ac_try;;
2801esac
2802eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2803$as_echo "$ac_try_echo") >&5
2804  (eval "$ac_compiler -V >&5") 2>&5
2805  ac_status=$?
2806  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807  (exit $ac_status); }
2808
2809cat >conftest.$ac_ext <<_ACEOF
2810/* confdefs.h.  */
2811_ACEOF
2812cat confdefs.h >>conftest.$ac_ext
2813cat >>conftest.$ac_ext <<_ACEOF
2814/* end confdefs.h.  */
2815
2816int
2817main ()
2818{
2819
2820  ;
2821  return 0;
2822}
2823_ACEOF
2824ac_clean_files_save=$ac_clean_files
2825ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2826# Try to create an executable without -o first, disregard a.out.
2827# It will help us diagnose broken compilers, and finding out an intuition
2828# of exeext.
2829{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2830$as_echo_n "checking for C compiler default output file name... " >&6; }
2831ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2832
2833# The possible output files:
2834ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2835
2836ac_rmfiles=
2837for ac_file in $ac_files
2838do
2839  case $ac_file in
2840    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2841    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2842  esac
2843done
2844rm -f $ac_rmfiles
2845
2846if { (ac_try="$ac_link_default"
2847case "(($ac_try" in
2848  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2849  *) ac_try_echo=$ac_try;;
2850esac
2851eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2852$as_echo "$ac_try_echo") >&5
2853  (eval "$ac_link_default") 2>&5
2854  ac_status=$?
2855  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856  (exit $ac_status); }; then
2857  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2858# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2859# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2860# so that the user can short-circuit this test for compilers unknown to
2861# Autoconf.
2862for ac_file in $ac_files ''
2863do
2864  test -f "$ac_file" || continue
2865  case $ac_file in
2866    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2867	;;
2868    [ab].out )
2869	# We found the default executable, but exeext='' is most
2870	# certainly right.
2871	break;;
2872    *.* )
2873        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2874	then :; else
2875	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2876	fi
2877	# We set ac_cv_exeext here because the later test for it is not
2878	# safe: cross compilers may not add the suffix if given an `-o'
2879	# argument, so we may need to know it at that point already.
2880	# Even if this section looks crufty: it has the advantage of
2881	# actually working.
2882	break;;
2883    * )
2884	break;;
2885  esac
2886done
2887test "$ac_cv_exeext" = no && ac_cv_exeext=
2888
2889else
2890  ac_file=''
2891fi
2892
2893{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2894$as_echo "$ac_file" >&6; }
2895if test -z "$ac_file"; then
2896  $as_echo "$as_me: failed program was:" >&5
2897sed 's/^/| /' conftest.$ac_ext >&5
2898
2899{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2900$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2901{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2902See \`config.log' for more details." >&5
2903$as_echo "$as_me: error: C compiler cannot create executables
2904See \`config.log' for more details." >&2;}
2905   { (exit 77); exit 77; }; }; }
2906fi
2907
2908ac_exeext=$ac_cv_exeext
2909
2910# Check that the compiler produces executables we can run.  If not, either
2911# the compiler is broken, or we cross compile.
2912{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2913$as_echo_n "checking whether the C compiler works... " >&6; }
2914# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2915# If not cross compiling, check that we can run a simple program.
2916if test "$cross_compiling" != yes; then
2917  if { ac_try='./$ac_file'
2918  { (case "(($ac_try" in
2919  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2920  *) ac_try_echo=$ac_try;;
2921esac
2922eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2923$as_echo "$ac_try_echo") >&5
2924  (eval "$ac_try") 2>&5
2925  ac_status=$?
2926  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927  (exit $ac_status); }; }; then
2928    cross_compiling=no
2929  else
2930    if test "$cross_compiling" = maybe; then
2931	cross_compiling=yes
2932    else
2933	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2934$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2935{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2936If you meant to cross compile, use \`--host'.
2937See \`config.log' for more details." >&5
2938$as_echo "$as_me: error: cannot run C compiled programs.
2939If you meant to cross compile, use \`--host'.
2940See \`config.log' for more details." >&2;}
2941   { (exit 1); exit 1; }; }; }
2942    fi
2943  fi
2944fi
2945{ $as_echo "$as_me:$LINENO: result: yes" >&5
2946$as_echo "yes" >&6; }
2947
2948rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2949ac_clean_files=$ac_clean_files_save
2950# Check that the compiler produces executables we can run.  If not, either
2951# the compiler is broken, or we cross compile.
2952{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2953$as_echo_n "checking whether we are cross compiling... " >&6; }
2954{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2955$as_echo "$cross_compiling" >&6; }
2956
2957{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2958$as_echo_n "checking for suffix of executables... " >&6; }
2959if { (ac_try="$ac_link"
2960case "(($ac_try" in
2961  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962  *) ac_try_echo=$ac_try;;
2963esac
2964eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2965$as_echo "$ac_try_echo") >&5
2966  (eval "$ac_link") 2>&5
2967  ac_status=$?
2968  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969  (exit $ac_status); }; then
2970  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2971# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2972# work properly (i.e., refer to `conftest.exe'), while it won't with
2973# `rm'.
2974for ac_file in conftest.exe conftest conftest.*; do
2975  test -f "$ac_file" || continue
2976  case $ac_file in
2977    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2978    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2979	  break;;
2980    * ) break;;
2981  esac
2982done
2983else
2984  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2985$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2986{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2987See \`config.log' for more details." >&5
2988$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2989See \`config.log' for more details." >&2;}
2990   { (exit 1); exit 1; }; }; }
2991fi
2992
2993rm -f conftest$ac_cv_exeext
2994{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2995$as_echo "$ac_cv_exeext" >&6; }
2996
2997rm -f conftest.$ac_ext
2998EXEEXT=$ac_cv_exeext
2999ac_exeext=$EXEEXT
3000{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3001$as_echo_n "checking for suffix of object files... " >&6; }
3002if test "${ac_cv_objext+set}" = set; then
3003  $as_echo_n "(cached) " >&6
3004else
3005  cat >conftest.$ac_ext <<_ACEOF
3006/* confdefs.h.  */
3007_ACEOF
3008cat confdefs.h >>conftest.$ac_ext
3009cat >>conftest.$ac_ext <<_ACEOF
3010/* end confdefs.h.  */
3011
3012int
3013main ()
3014{
3015
3016  ;
3017  return 0;
3018}
3019_ACEOF
3020rm -f conftest.o conftest.obj
3021if { (ac_try="$ac_compile"
3022case "(($ac_try" in
3023  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024  *) ac_try_echo=$ac_try;;
3025esac
3026eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3027$as_echo "$ac_try_echo") >&5
3028  (eval "$ac_compile") 2>&5
3029  ac_status=$?
3030  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031  (exit $ac_status); }; then
3032  for ac_file in conftest.o conftest.obj conftest.*; do
3033  test -f "$ac_file" || continue;
3034  case $ac_file in
3035    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3036    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3037       break;;
3038  esac
3039done
3040else
3041  $as_echo "$as_me: failed program was:" >&5
3042sed 's/^/| /' conftest.$ac_ext >&5
3043
3044{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3045$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3046{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3047See \`config.log' for more details." >&5
3048$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3049See \`config.log' for more details." >&2;}
3050   { (exit 1); exit 1; }; }; }
3051fi
3052
3053rm -f conftest.$ac_cv_objext conftest.$ac_ext
3054fi
3055{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3056$as_echo "$ac_cv_objext" >&6; }
3057OBJEXT=$ac_cv_objext
3058ac_objext=$OBJEXT
3059{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3060$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3061if test "${ac_cv_c_compiler_gnu+set}" = set; then
3062  $as_echo_n "(cached) " >&6
3063else
3064  cat >conftest.$ac_ext <<_ACEOF
3065/* confdefs.h.  */
3066_ACEOF
3067cat confdefs.h >>conftest.$ac_ext
3068cat >>conftest.$ac_ext <<_ACEOF
3069/* end confdefs.h.  */
3070
3071int
3072main ()
3073{
3074#ifndef __GNUC__
3075       choke me
3076#endif
3077
3078  ;
3079  return 0;
3080}
3081_ACEOF
3082rm -f conftest.$ac_objext
3083if { (ac_try="$ac_compile"
3084case "(($ac_try" in
3085  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086  *) ac_try_echo=$ac_try;;
3087esac
3088eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3089$as_echo "$ac_try_echo") >&5
3090  (eval "$ac_compile") 2>conftest.er1
3091  ac_status=$?
3092  grep -v '^ *+' conftest.er1 >conftest.err
3093  rm -f conftest.er1
3094  cat conftest.err >&5
3095  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096  (exit $ac_status); } && {
3097	 test -z "$ac_c_werror_flag" ||
3098	 test ! -s conftest.err
3099       } && test -s conftest.$ac_objext; then
3100  ac_compiler_gnu=yes
3101else
3102  $as_echo "$as_me: failed program was:" >&5
3103sed 's/^/| /' conftest.$ac_ext >&5
3104
3105	ac_compiler_gnu=no
3106fi
3107
3108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3109ac_cv_c_compiler_gnu=$ac_compiler_gnu
3110
3111fi
3112{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3113$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3114if test $ac_compiler_gnu = yes; then
3115  GCC=yes
3116else
3117  GCC=
3118fi
3119ac_test_CFLAGS=${CFLAGS+set}
3120ac_save_CFLAGS=$CFLAGS
3121{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3122$as_echo_n "checking whether $CC accepts -g... " >&6; }
3123if test "${ac_cv_prog_cc_g+set}" = set; then
3124  $as_echo_n "(cached) " >&6
3125else
3126  ac_save_c_werror_flag=$ac_c_werror_flag
3127   ac_c_werror_flag=yes
3128   ac_cv_prog_cc_g=no
3129   CFLAGS="-g"
3130   cat >conftest.$ac_ext <<_ACEOF
3131/* confdefs.h.  */
3132_ACEOF
3133cat confdefs.h >>conftest.$ac_ext
3134cat >>conftest.$ac_ext <<_ACEOF
3135/* end confdefs.h.  */
3136
3137int
3138main ()
3139{
3140
3141  ;
3142  return 0;
3143}
3144_ACEOF
3145rm -f conftest.$ac_objext
3146if { (ac_try="$ac_compile"
3147case "(($ac_try" in
3148  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149  *) ac_try_echo=$ac_try;;
3150esac
3151eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3152$as_echo "$ac_try_echo") >&5
3153  (eval "$ac_compile") 2>conftest.er1
3154  ac_status=$?
3155  grep -v '^ *+' conftest.er1 >conftest.err
3156  rm -f conftest.er1
3157  cat conftest.err >&5
3158  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159  (exit $ac_status); } && {
3160	 test -z "$ac_c_werror_flag" ||
3161	 test ! -s conftest.err
3162       } && test -s conftest.$ac_objext; then
3163  ac_cv_prog_cc_g=yes
3164else
3165  $as_echo "$as_me: failed program was:" >&5
3166sed 's/^/| /' conftest.$ac_ext >&5
3167
3168	CFLAGS=""
3169      cat >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
3176int
3177main ()
3178{
3179
3180  ;
3181  return 0;
3182}
3183_ACEOF
3184rm -f conftest.$ac_objext
3185if { (ac_try="$ac_compile"
3186case "(($ac_try" in
3187  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3188  *) ac_try_echo=$ac_try;;
3189esac
3190eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3191$as_echo "$ac_try_echo") >&5
3192  (eval "$ac_compile") 2>conftest.er1
3193  ac_status=$?
3194  grep -v '^ *+' conftest.er1 >conftest.err
3195  rm -f conftest.er1
3196  cat conftest.err >&5
3197  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198  (exit $ac_status); } && {
3199	 test -z "$ac_c_werror_flag" ||
3200	 test ! -s conftest.err
3201       } && test -s conftest.$ac_objext; then
3202  :
3203else
3204  $as_echo "$as_me: failed program was:" >&5
3205sed 's/^/| /' conftest.$ac_ext >&5
3206
3207	ac_c_werror_flag=$ac_save_c_werror_flag
3208	 CFLAGS="-g"
3209	 cat >conftest.$ac_ext <<_ACEOF
3210/* confdefs.h.  */
3211_ACEOF
3212cat confdefs.h >>conftest.$ac_ext
3213cat >>conftest.$ac_ext <<_ACEOF
3214/* end confdefs.h.  */
3215
3216int
3217main ()
3218{
3219
3220  ;
3221  return 0;
3222}
3223_ACEOF
3224rm -f conftest.$ac_objext
3225if { (ac_try="$ac_compile"
3226case "(($ac_try" in
3227  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228  *) ac_try_echo=$ac_try;;
3229esac
3230eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3231$as_echo "$ac_try_echo") >&5
3232  (eval "$ac_compile") 2>conftest.er1
3233  ac_status=$?
3234  grep -v '^ *+' conftest.er1 >conftest.err
3235  rm -f conftest.er1
3236  cat conftest.err >&5
3237  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238  (exit $ac_status); } && {
3239	 test -z "$ac_c_werror_flag" ||
3240	 test ! -s conftest.err
3241       } && test -s conftest.$ac_objext; then
3242  ac_cv_prog_cc_g=yes
3243else
3244  $as_echo "$as_me: failed program was:" >&5
3245sed 's/^/| /' conftest.$ac_ext >&5
3246
3247
3248fi
3249
3250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3251fi
3252
3253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3254fi
3255
3256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3257   ac_c_werror_flag=$ac_save_c_werror_flag
3258fi
3259{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3260$as_echo "$ac_cv_prog_cc_g" >&6; }
3261if test "$ac_test_CFLAGS" = set; then
3262  CFLAGS=$ac_save_CFLAGS
3263elif test $ac_cv_prog_cc_g = yes; then
3264  if test "$GCC" = yes; then
3265    CFLAGS="-g -O2"
3266  else
3267    CFLAGS="-g"
3268  fi
3269else
3270  if test "$GCC" = yes; then
3271    CFLAGS="-O2"
3272  else
3273    CFLAGS=
3274  fi
3275fi
3276{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3277$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3278if test "${ac_cv_prog_cc_c89+set}" = set; then
3279  $as_echo_n "(cached) " >&6
3280else
3281  ac_cv_prog_cc_c89=no
3282ac_save_CC=$CC
3283cat >conftest.$ac_ext <<_ACEOF
3284/* confdefs.h.  */
3285_ACEOF
3286cat confdefs.h >>conftest.$ac_ext
3287cat >>conftest.$ac_ext <<_ACEOF
3288/* end confdefs.h.  */
3289#include <stdarg.h>
3290#include <stdio.h>
3291#include <sys/types.h>
3292#include <sys/stat.h>
3293/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3294struct buf { int x; };
3295FILE * (*rcsopen) (struct buf *, struct stat *, int);
3296static char *e (p, i)
3297     char **p;
3298     int i;
3299{
3300  return p[i];
3301}
3302static char *f (char * (*g) (char **, int), char **p, ...)
3303{
3304  char *s;
3305  va_list v;
3306  va_start (v,p);
3307  s = g (p, va_arg (v,int));
3308  va_end (v);
3309  return s;
3310}
3311
3312/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3313   function prototypes and stuff, but not '\xHH' hex character constants.
3314   These don't provoke an error unfortunately, instead are silently treated
3315   as 'x'.  The following induces an error, until -std is added to get
3316   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3317   array size at least.  It's necessary to write '\x00'==0 to get something
3318   that's true only with -std.  */
3319int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3320
3321/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3322   inside strings and character constants.  */
3323#define FOO(x) 'x'
3324int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3325
3326int test (int i, double x);
3327struct s1 {int (*f) (int a);};
3328struct s2 {int (*f) (double a);};
3329int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3330int argc;
3331char **argv;
3332int
3333main ()
3334{
3335return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3336  ;
3337  return 0;
3338}
3339_ACEOF
3340for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3341	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3342do
3343  CC="$ac_save_CC $ac_arg"
3344  rm -f conftest.$ac_objext
3345if { (ac_try="$ac_compile"
3346case "(($ac_try" in
3347  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348  *) ac_try_echo=$ac_try;;
3349esac
3350eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3351$as_echo "$ac_try_echo") >&5
3352  (eval "$ac_compile") 2>conftest.er1
3353  ac_status=$?
3354  grep -v '^ *+' conftest.er1 >conftest.err
3355  rm -f conftest.er1
3356  cat conftest.err >&5
3357  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358  (exit $ac_status); } && {
3359	 test -z "$ac_c_werror_flag" ||
3360	 test ! -s conftest.err
3361       } && test -s conftest.$ac_objext; then
3362  ac_cv_prog_cc_c89=$ac_arg
3363else
3364  $as_echo "$as_me: failed program was:" >&5
3365sed 's/^/| /' conftest.$ac_ext >&5
3366
3367
3368fi
3369
3370rm -f core conftest.err conftest.$ac_objext
3371  test "x$ac_cv_prog_cc_c89" != "xno" && break
3372done
3373rm -f conftest.$ac_ext
3374CC=$ac_save_CC
3375
3376fi
3377# AC_CACHE_VAL
3378case "x$ac_cv_prog_cc_c89" in
3379  x)
3380    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3381$as_echo "none needed" >&6; } ;;
3382  xno)
3383    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3384$as_echo "unsupported" >&6; } ;;
3385  *)
3386    CC="$CC $ac_cv_prog_cc_c89"
3387    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3388$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3389esac
3390
3391
3392ac_ext=c
3393ac_cpp='$CPP $CPPFLAGS'
3394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3396ac_compiler_gnu=$ac_cv_c_compiler_gnu
3397DEPDIR="${am__leading_dot}deps"
3398
3399ac_config_commands="$ac_config_commands depfiles"
3400
3401
3402am_make=${MAKE-make}
3403cat > confinc << 'END'
3404am__doit:
3405	@echo this is the am__doit target
3406.PHONY: am__doit
3407END
3408# If we don't find an include directive, just comment out the code.
3409{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3410$as_echo_n "checking for style of include used by $am_make... " >&6; }
3411am__include="#"
3412am__quote=
3413_am_result=none
3414# First try GNU make style include.
3415echo "include confinc" > confmf
3416# Ignore all kinds of additional output from `make'.
3417case `$am_make -s -f confmf 2> /dev/null` in #(
3418*the\ am__doit\ target*)
3419  am__include=include
3420  am__quote=
3421  _am_result=GNU
3422  ;;
3423esac
3424# Now try BSD make style include.
3425if test "$am__include" = "#"; then
3426   echo '.include "confinc"' > confmf
3427   case `$am_make -s -f confmf 2> /dev/null` in #(
3428   *the\ am__doit\ target*)
3429     am__include=.include
3430     am__quote="\""
3431     _am_result=BSD
3432     ;;
3433   esac
3434fi
3435
3436
3437{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3438$as_echo "$_am_result" >&6; }
3439rm -f confinc confmf
3440
3441# Check whether --enable-dependency-tracking was given.
3442if test "${enable_dependency_tracking+set}" = set; then
3443  enableval=$enable_dependency_tracking;
3444fi
3445
3446if test "x$enable_dependency_tracking" != xno; then
3447  am_depcomp="$ac_aux_dir/depcomp"
3448  AMDEPBACKSLASH='\'
3449fi
3450 if test "x$enable_dependency_tracking" != xno; then
3451  AMDEP_TRUE=
3452  AMDEP_FALSE='#'
3453else
3454  AMDEP_TRUE='#'
3455  AMDEP_FALSE=
3456fi
3457
3458
3459
3460depcc="$CC"   am_compiler_list=
3461
3462{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3463$as_echo_n "checking dependency style of $depcc... " >&6; }
3464if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3465  $as_echo_n "(cached) " >&6
3466else
3467  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3468  # We make a subdir and do the tests there.  Otherwise we can end up
3469  # making bogus files that we don't know about and never remove.  For
3470  # instance it was reported that on HP-UX the gcc test will end up
3471  # making a dummy file named `D' -- because `-MD' means `put the output
3472  # in D'.
3473  mkdir conftest.dir
3474  # Copy depcomp to subdir because otherwise we won't find it if we're
3475  # using a relative directory.
3476  cp "$am_depcomp" conftest.dir
3477  cd conftest.dir
3478  # We will build objects and dependencies in a subdirectory because
3479  # it helps to detect inapplicable dependency modes.  For instance
3480  # both Tru64's cc and ICC support -MD to output dependencies as a
3481  # side effect of compilation, but ICC will put the dependencies in
3482  # the current directory while Tru64 will put them in the object
3483  # directory.
3484  mkdir sub
3485
3486  am_cv_CC_dependencies_compiler_type=none
3487  if test "$am_compiler_list" = ""; then
3488     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3489  fi
3490  am__universal=false
3491  case " $depcc " in #(
3492     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3493     esac
3494
3495  for depmode in $am_compiler_list; do
3496    # Setup a source with many dependencies, because some compilers
3497    # like to wrap large dependency lists on column 80 (with \), and
3498    # we should not choose a depcomp mode which is confused by this.
3499    #
3500    # We need to recreate these files for each test, as the compiler may
3501    # overwrite some of them when testing with obscure command lines.
3502    # This happens at least with the AIX C compiler.
3503    : > sub/conftest.c
3504    for i in 1 2 3 4 5 6; do
3505      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3506      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3507      # Solaris 8's {/usr,}/bin/sh.
3508      touch sub/conftst$i.h
3509    done
3510    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3511
3512    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3513    # mode.  It turns out that the SunPro C++ compiler does not properly
3514    # handle `-M -o', and we need to detect this.  Also, some Intel
3515    # versions had trouble with output in subdirs
3516    am__obj=sub/conftest.${OBJEXT-o}
3517    am__minus_obj="-o $am__obj"
3518    case $depmode in
3519    gcc)
3520      # This depmode causes a compiler race in universal mode.
3521      test "$am__universal" = false || continue
3522      ;;
3523    nosideeffect)
3524      # after this tag, mechanisms are not by side-effect, so they'll
3525      # only be used when explicitly requested
3526      if test "x$enable_dependency_tracking" = xyes; then
3527	continue
3528      else
3529	break
3530      fi
3531      ;;
3532    msvisualcpp | msvcmsys)
3533      # This compiler won't grok `-c -o', but also, the minuso test has
3534      # not run yet.  These depmodes are late enough in the game, and
3535      # so weak that their functioning should not be impacted.
3536      am__obj=conftest.${OBJEXT-o}
3537      am__minus_obj=
3538      ;;
3539    none) break ;;
3540    esac
3541    if depmode=$depmode \
3542       source=sub/conftest.c object=$am__obj \
3543       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3544       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3545         >/dev/null 2>conftest.err &&
3546       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3547       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3548       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3549       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3550      # icc doesn't choke on unknown options, it will just issue warnings
3551      # or remarks (even with -Werror).  So we grep stderr for any message
3552      # that says an option was ignored or not supported.
3553      # When given -MP, icc 7.0 and 7.1 complain thusly:
3554      #   icc: Command line warning: ignoring option '-M'; no argument required
3555      # The diagnosis changed in icc 8.0:
3556      #   icc: Command line remark: option '-MP' not supported
3557      if (grep 'ignoring option' conftest.err ||
3558          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3559        am_cv_CC_dependencies_compiler_type=$depmode
3560        break
3561      fi
3562    fi
3563  done
3564
3565  cd ..
3566  rm -rf conftest.dir
3567else
3568  am_cv_CC_dependencies_compiler_type=none
3569fi
3570
3571fi
3572{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3573$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3574CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3575
3576 if
3577  test "x$enable_dependency_tracking" != xno \
3578  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3579  am__fastdepCC_TRUE=
3580  am__fastdepCC_FALSE='#'
3581else
3582  am__fastdepCC_TRUE='#'
3583  am__fastdepCC_FALSE=
3584fi
3585
3586
3587# Find a good install program.  We prefer a C program (faster),
3588# so one script is as good as another.  But avoid the broken or
3589# incompatible versions:
3590# SysV /etc/install, /usr/sbin/install
3591# SunOS /usr/etc/install
3592# IRIX /sbin/install
3593# AIX /bin/install
3594# AmigaOS /C/install, which installs bootblocks on floppy discs
3595# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3596# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3597# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3598# OS/2's system install, which has a completely different semantic
3599# ./install, which can be erroneously created by make from ./install.sh.
3600# Reject install programs that cannot install multiple files.
3601{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3602$as_echo_n "checking for a BSD-compatible install... " >&6; }
3603if test -z "$INSTALL"; then
3604if test "${ac_cv_path_install+set}" = set; then
3605  $as_echo_n "(cached) " >&6
3606else
3607  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3608for as_dir in $PATH
3609do
3610  IFS=$as_save_IFS
3611  test -z "$as_dir" && as_dir=.
3612  # Account for people who put trailing slashes in PATH elements.
3613case $as_dir/ in
3614  ./ | .// | /cC/* | \
3615  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3616  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3617  /usr/ucb/* ) ;;
3618  *)
3619    # OSF1 and SCO ODT 3.0 have their own names for install.
3620    # Don't use installbsd from OSF since it installs stuff as root
3621    # by default.
3622    for ac_prog in ginstall scoinst install; do
3623      for ac_exec_ext in '' $ac_executable_extensions; do
3624	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3625	  if test $ac_prog = install &&
3626	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3627	    # AIX install.  It has an incompatible calling convention.
3628	    :
3629	  elif test $ac_prog = install &&
3630	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3631	    # program-specific install script used by HP pwplus--don't use.
3632	    :
3633	  else
3634	    rm -rf conftest.one conftest.two conftest.dir
3635	    echo one > conftest.one
3636	    echo two > conftest.two
3637	    mkdir conftest.dir
3638	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3639	      test -s conftest.one && test -s conftest.two &&
3640	      test -s conftest.dir/conftest.one &&
3641	      test -s conftest.dir/conftest.two
3642	    then
3643	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3644	      break 3
3645	    fi
3646	  fi
3647	fi
3648      done
3649    done
3650    ;;
3651esac
3652
3653done
3654IFS=$as_save_IFS
3655
3656rm -rf conftest.one conftest.two conftest.dir
3657
3658fi
3659  if test "${ac_cv_path_install+set}" = set; then
3660    INSTALL=$ac_cv_path_install
3661  else
3662    # As a last resort, use the slow shell script.  Don't cache a
3663    # value for INSTALL within a source directory, because that will
3664    # break other packages using the cache if that directory is
3665    # removed, or if the value is a relative name.
3666    INSTALL=$ac_install_sh
3667  fi
3668fi
3669{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3670$as_echo "$INSTALL" >&6; }
3671
3672# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3673# It thinks the first close brace ends the variable substitution.
3674test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3675
3676test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3677
3678test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3679
3680
3681
3682ac_ext=c
3683ac_cpp='$CPP $CPPFLAGS'
3684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3686ac_compiler_gnu=$ac_cv_c_compiler_gnu
3687{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3688$as_echo_n "checking how to run the C preprocessor... " >&6; }
3689# On Suns, sometimes $CPP names a directory.
3690if test -n "$CPP" && test -d "$CPP"; then
3691  CPP=
3692fi
3693if test -z "$CPP"; then
3694  if test "${ac_cv_prog_CPP+set}" = set; then
3695  $as_echo_n "(cached) " >&6
3696else
3697      # Double quotes because CPP needs to be expanded
3698    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3699    do
3700      ac_preproc_ok=false
3701for ac_c_preproc_warn_flag in '' yes
3702do
3703  # Use a header file that comes with gcc, so configuring glibc
3704  # with a fresh cross-compiler works.
3705  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3706  # <limits.h> exists even on freestanding compilers.
3707  # On the NeXT, cc -E runs the code through the compiler's parser,
3708  # not just through cpp. "Syntax error" is here to catch this case.
3709  cat >conftest.$ac_ext <<_ACEOF
3710/* confdefs.h.  */
3711_ACEOF
3712cat confdefs.h >>conftest.$ac_ext
3713cat >>conftest.$ac_ext <<_ACEOF
3714/* end confdefs.h.  */
3715#ifdef __STDC__
3716# include <limits.h>
3717#else
3718# include <assert.h>
3719#endif
3720		     Syntax error
3721_ACEOF
3722if { (ac_try="$ac_cpp conftest.$ac_ext"
3723case "(($ac_try" in
3724  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3725  *) ac_try_echo=$ac_try;;
3726esac
3727eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3728$as_echo "$ac_try_echo") >&5
3729  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3730  ac_status=$?
3731  grep -v '^ *+' conftest.er1 >conftest.err
3732  rm -f conftest.er1
3733  cat conftest.err >&5
3734  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735  (exit $ac_status); } >/dev/null && {
3736	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3737	 test ! -s conftest.err
3738       }; then
3739  :
3740else
3741  $as_echo "$as_me: failed program was:" >&5
3742sed 's/^/| /' conftest.$ac_ext >&5
3743
3744  # Broken: fails on valid input.
3745continue
3746fi
3747
3748rm -f conftest.err conftest.$ac_ext
3749
3750  # OK, works on sane cases.  Now check whether nonexistent headers
3751  # can be detected and how.
3752  cat >conftest.$ac_ext <<_ACEOF
3753/* confdefs.h.  */
3754_ACEOF
3755cat confdefs.h >>conftest.$ac_ext
3756cat >>conftest.$ac_ext <<_ACEOF
3757/* end confdefs.h.  */
3758#include <ac_nonexistent.h>
3759_ACEOF
3760if { (ac_try="$ac_cpp conftest.$ac_ext"
3761case "(($ac_try" in
3762  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3763  *) ac_try_echo=$ac_try;;
3764esac
3765eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3766$as_echo "$ac_try_echo") >&5
3767  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3768  ac_status=$?
3769  grep -v '^ *+' conftest.er1 >conftest.err
3770  rm -f conftest.er1
3771  cat conftest.err >&5
3772  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773  (exit $ac_status); } >/dev/null && {
3774	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3775	 test ! -s conftest.err
3776       }; then
3777  # Broken: success on invalid input.
3778continue
3779else
3780  $as_echo "$as_me: failed program was:" >&5
3781sed 's/^/| /' conftest.$ac_ext >&5
3782
3783  # Passes both tests.
3784ac_preproc_ok=:
3785break
3786fi
3787
3788rm -f conftest.err conftest.$ac_ext
3789
3790done
3791# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3792rm -f conftest.err conftest.$ac_ext
3793if $ac_preproc_ok; then
3794  break
3795fi
3796
3797    done
3798    ac_cv_prog_CPP=$CPP
3799
3800fi
3801  CPP=$ac_cv_prog_CPP
3802else
3803  ac_cv_prog_CPP=$CPP
3804fi
3805{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3806$as_echo "$CPP" >&6; }
3807ac_preproc_ok=false
3808for ac_c_preproc_warn_flag in '' yes
3809do
3810  # Use a header file that comes with gcc, so configuring glibc
3811  # with a fresh cross-compiler works.
3812  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3813  # <limits.h> exists even on freestanding compilers.
3814  # On the NeXT, cc -E runs the code through the compiler's parser,
3815  # not just through cpp. "Syntax error" is here to catch this case.
3816  cat >conftest.$ac_ext <<_ACEOF
3817/* confdefs.h.  */
3818_ACEOF
3819cat confdefs.h >>conftest.$ac_ext
3820cat >>conftest.$ac_ext <<_ACEOF
3821/* end confdefs.h.  */
3822#ifdef __STDC__
3823# include <limits.h>
3824#else
3825# include <assert.h>
3826#endif
3827		     Syntax error
3828_ACEOF
3829if { (ac_try="$ac_cpp conftest.$ac_ext"
3830case "(($ac_try" in
3831  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3832  *) ac_try_echo=$ac_try;;
3833esac
3834eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3835$as_echo "$ac_try_echo") >&5
3836  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3837  ac_status=$?
3838  grep -v '^ *+' conftest.er1 >conftest.err
3839  rm -f conftest.er1
3840  cat conftest.err >&5
3841  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842  (exit $ac_status); } >/dev/null && {
3843	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3844	 test ! -s conftest.err
3845       }; then
3846  :
3847else
3848  $as_echo "$as_me: failed program was:" >&5
3849sed 's/^/| /' conftest.$ac_ext >&5
3850
3851  # Broken: fails on valid input.
3852continue
3853fi
3854
3855rm -f conftest.err conftest.$ac_ext
3856
3857  # OK, works on sane cases.  Now check whether nonexistent headers
3858  # can be detected and how.
3859  cat >conftest.$ac_ext <<_ACEOF
3860/* confdefs.h.  */
3861_ACEOF
3862cat confdefs.h >>conftest.$ac_ext
3863cat >>conftest.$ac_ext <<_ACEOF
3864/* end confdefs.h.  */
3865#include <ac_nonexistent.h>
3866_ACEOF
3867if { (ac_try="$ac_cpp conftest.$ac_ext"
3868case "(($ac_try" in
3869  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3870  *) ac_try_echo=$ac_try;;
3871esac
3872eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3873$as_echo "$ac_try_echo") >&5
3874  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3875  ac_status=$?
3876  grep -v '^ *+' conftest.er1 >conftest.err
3877  rm -f conftest.er1
3878  cat conftest.err >&5
3879  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880  (exit $ac_status); } >/dev/null && {
3881	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3882	 test ! -s conftest.err
3883       }; then
3884  # Broken: success on invalid input.
3885continue
3886else
3887  $as_echo "$as_me: failed program was:" >&5
3888sed 's/^/| /' conftest.$ac_ext >&5
3889
3890  # Passes both tests.
3891ac_preproc_ok=:
3892break
3893fi
3894
3895rm -f conftest.err conftest.$ac_ext
3896
3897done
3898# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3899rm -f conftest.err conftest.$ac_ext
3900if $ac_preproc_ok; then
3901  :
3902else
3903  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3904$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3905{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3906See \`config.log' for more details." >&5
3907$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3908See \`config.log' for more details." >&2;}
3909   { (exit 1); exit 1; }; }; }
3910fi
3911
3912ac_ext=c
3913ac_cpp='$CPP $CPPFLAGS'
3914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3916ac_compiler_gnu=$ac_cv_c_compiler_gnu
3917
3918
3919{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3920$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3921if test "${ac_cv_path_GREP+set}" = set; then
3922  $as_echo_n "(cached) " >&6
3923else
3924  if test -z "$GREP"; then
3925  ac_path_GREP_found=false
3926  # Loop through the user's path and test for each of PROGNAME-LIST
3927  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3928for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3929do
3930  IFS=$as_save_IFS
3931  test -z "$as_dir" && as_dir=.
3932  for ac_prog in grep ggrep; do
3933    for ac_exec_ext in '' $ac_executable_extensions; do
3934      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3935      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3936# Check for GNU ac_path_GREP and select it if it is found.
3937  # Check for GNU $ac_path_GREP
3938case `"$ac_path_GREP" --version 2>&1` in
3939*GNU*)
3940  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3941*)
3942  ac_count=0
3943  $as_echo_n 0123456789 >"conftest.in"
3944  while :
3945  do
3946    cat "conftest.in" "conftest.in" >"conftest.tmp"
3947    mv "conftest.tmp" "conftest.in"
3948    cp "conftest.in" "conftest.nl"
3949    $as_echo 'GREP' >> "conftest.nl"
3950    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3951    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3952    ac_count=`expr $ac_count + 1`
3953    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3954      # Best one so far, save it but keep looking for a better one
3955      ac_cv_path_GREP="$ac_path_GREP"
3956      ac_path_GREP_max=$ac_count
3957    fi
3958    # 10*(2^10) chars as input seems more than enough
3959    test $ac_count -gt 10 && break
3960  done
3961  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3962esac
3963
3964      $ac_path_GREP_found && break 3
3965    done
3966  done
3967done
3968IFS=$as_save_IFS
3969  if test -z "$ac_cv_path_GREP"; then
3970    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3971$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3972   { (exit 1); exit 1; }; }
3973  fi
3974else
3975  ac_cv_path_GREP=$GREP
3976fi
3977
3978fi
3979{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3980$as_echo "$ac_cv_path_GREP" >&6; }
3981 GREP="$ac_cv_path_GREP"
3982
3983
3984{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3985$as_echo_n "checking for egrep... " >&6; }
3986if test "${ac_cv_path_EGREP+set}" = set; then
3987  $as_echo_n "(cached) " >&6
3988else
3989  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3990   then ac_cv_path_EGREP="$GREP -E"
3991   else
3992     if test -z "$EGREP"; then
3993  ac_path_EGREP_found=false
3994  # Loop through the user's path and test for each of PROGNAME-LIST
3995  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3996for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3997do
3998  IFS=$as_save_IFS
3999  test -z "$as_dir" && as_dir=.
4000  for ac_prog in egrep; do
4001    for ac_exec_ext in '' $ac_executable_extensions; do
4002      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4003      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4004# Check for GNU ac_path_EGREP and select it if it is found.
4005  # Check for GNU $ac_path_EGREP
4006case `"$ac_path_EGREP" --version 2>&1` in
4007*GNU*)
4008  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4009*)
4010  ac_count=0
4011  $as_echo_n 0123456789 >"conftest.in"
4012  while :
4013  do
4014    cat "conftest.in" "conftest.in" >"conftest.tmp"
4015    mv "conftest.tmp" "conftest.in"
4016    cp "conftest.in" "conftest.nl"
4017    $as_echo 'EGREP' >> "conftest.nl"
4018    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4019    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4020    ac_count=`expr $ac_count + 1`
4021    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4022      # Best one so far, save it but keep looking for a better one
4023      ac_cv_path_EGREP="$ac_path_EGREP"
4024      ac_path_EGREP_max=$ac_count
4025    fi
4026    # 10*(2^10) chars as input seems more than enough
4027    test $ac_count -gt 10 && break
4028  done
4029  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4030esac
4031
4032      $ac_path_EGREP_found && break 3
4033    done
4034  done
4035done
4036IFS=$as_save_IFS
4037  if test -z "$ac_cv_path_EGREP"; then
4038    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4039$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4040   { (exit 1); exit 1; }; }
4041  fi
4042else
4043  ac_cv_path_EGREP=$EGREP
4044fi
4045
4046   fi
4047fi
4048{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4049$as_echo "$ac_cv_path_EGREP" >&6; }
4050 EGREP="$ac_cv_path_EGREP"
4051
4052
4053{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4054$as_echo_n "checking for ANSI C header files... " >&6; }
4055if test "${ac_cv_header_stdc+set}" = set; then
4056  $as_echo_n "(cached) " >&6
4057else
4058  cat >conftest.$ac_ext <<_ACEOF
4059/* confdefs.h.  */
4060_ACEOF
4061cat confdefs.h >>conftest.$ac_ext
4062cat >>conftest.$ac_ext <<_ACEOF
4063/* end confdefs.h.  */
4064#include <stdlib.h>
4065#include <stdarg.h>
4066#include <string.h>
4067#include <float.h>
4068
4069int
4070main ()
4071{
4072
4073  ;
4074  return 0;
4075}
4076_ACEOF
4077rm -f conftest.$ac_objext
4078if { (ac_try="$ac_compile"
4079case "(($ac_try" in
4080  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4081  *) ac_try_echo=$ac_try;;
4082esac
4083eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4084$as_echo "$ac_try_echo") >&5
4085  (eval "$ac_compile") 2>conftest.er1
4086  ac_status=$?
4087  grep -v '^ *+' conftest.er1 >conftest.err
4088  rm -f conftest.er1
4089  cat conftest.err >&5
4090  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091  (exit $ac_status); } && {
4092	 test -z "$ac_c_werror_flag" ||
4093	 test ! -s conftest.err
4094       } && test -s conftest.$ac_objext; then
4095  ac_cv_header_stdc=yes
4096else
4097  $as_echo "$as_me: failed program was:" >&5
4098sed 's/^/| /' conftest.$ac_ext >&5
4099
4100	ac_cv_header_stdc=no
4101fi
4102
4103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4104
4105if test $ac_cv_header_stdc = yes; then
4106  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4107  cat >conftest.$ac_ext <<_ACEOF
4108/* confdefs.h.  */
4109_ACEOF
4110cat confdefs.h >>conftest.$ac_ext
4111cat >>conftest.$ac_ext <<_ACEOF
4112/* end confdefs.h.  */
4113#include <string.h>
4114
4115_ACEOF
4116if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4117  $EGREP "memchr" >/dev/null 2>&1; then
4118  :
4119else
4120  ac_cv_header_stdc=no
4121fi
4122rm -f conftest*
4123
4124fi
4125
4126if test $ac_cv_header_stdc = yes; then
4127  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4128  cat >conftest.$ac_ext <<_ACEOF
4129/* confdefs.h.  */
4130_ACEOF
4131cat confdefs.h >>conftest.$ac_ext
4132cat >>conftest.$ac_ext <<_ACEOF
4133/* end confdefs.h.  */
4134#include <stdlib.h>
4135
4136_ACEOF
4137if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4138  $EGREP "free" >/dev/null 2>&1; then
4139  :
4140else
4141  ac_cv_header_stdc=no
4142fi
4143rm -f conftest*
4144
4145fi
4146
4147if test $ac_cv_header_stdc = yes; then
4148  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4149  if test "$cross_compiling" = yes; then
4150  :
4151else
4152  cat >conftest.$ac_ext <<_ACEOF
4153/* confdefs.h.  */
4154_ACEOF
4155cat confdefs.h >>conftest.$ac_ext
4156cat >>conftest.$ac_ext <<_ACEOF
4157/* end confdefs.h.  */
4158#include <ctype.h>
4159#include <stdlib.h>
4160#if ((' ' & 0x0FF) == 0x020)
4161# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4162# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4163#else
4164# define ISLOWER(c) \
4165		   (('a' <= (c) && (c) <= 'i') \
4166		     || ('j' <= (c) && (c) <= 'r') \
4167		     || ('s' <= (c) && (c) <= 'z'))
4168# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4169#endif
4170
4171#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4172int
4173main ()
4174{
4175  int i;
4176  for (i = 0; i < 256; i++)
4177    if (XOR (islower (i), ISLOWER (i))
4178	|| toupper (i) != TOUPPER (i))
4179      return 2;
4180  return 0;
4181}
4182_ACEOF
4183rm -f conftest$ac_exeext
4184if { (ac_try="$ac_link"
4185case "(($ac_try" in
4186  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4187  *) ac_try_echo=$ac_try;;
4188esac
4189eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4190$as_echo "$ac_try_echo") >&5
4191  (eval "$ac_link") 2>&5
4192  ac_status=$?
4193  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4195  { (case "(($ac_try" in
4196  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4197  *) ac_try_echo=$ac_try;;
4198esac
4199eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4200$as_echo "$ac_try_echo") >&5
4201  (eval "$ac_try") 2>&5
4202  ac_status=$?
4203  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204  (exit $ac_status); }; }; then
4205  :
4206else
4207  $as_echo "$as_me: program exited with status $ac_status" >&5
4208$as_echo "$as_me: failed program was:" >&5
4209sed 's/^/| /' conftest.$ac_ext >&5
4210
4211( exit $ac_status )
4212ac_cv_header_stdc=no
4213fi
4214rm -rf conftest.dSYM
4215rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4216fi
4217
4218
4219fi
4220fi
4221{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4222$as_echo "$ac_cv_header_stdc" >&6; }
4223if test $ac_cv_header_stdc = yes; then
4224
4225cat >>confdefs.h <<\_ACEOF
4226#define STDC_HEADERS 1
4227_ACEOF
4228
4229fi
4230
4231# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4242		  inttypes.h stdint.h unistd.h
4243do
4244as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4245{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4246$as_echo_n "checking for $ac_header... " >&6; }
4247if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4248  $as_echo_n "(cached) " >&6
4249else
4250  cat >conftest.$ac_ext <<_ACEOF
4251/* confdefs.h.  */
4252_ACEOF
4253cat confdefs.h >>conftest.$ac_ext
4254cat >>conftest.$ac_ext <<_ACEOF
4255/* end confdefs.h.  */
4256$ac_includes_default
4257
4258#include <$ac_header>
4259_ACEOF
4260rm -f conftest.$ac_objext
4261if { (ac_try="$ac_compile"
4262case "(($ac_try" in
4263  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264  *) ac_try_echo=$ac_try;;
4265esac
4266eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4267$as_echo "$ac_try_echo") >&5
4268  (eval "$ac_compile") 2>conftest.er1
4269  ac_status=$?
4270  grep -v '^ *+' conftest.er1 >conftest.err
4271  rm -f conftest.er1
4272  cat conftest.err >&5
4273  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274  (exit $ac_status); } && {
4275	 test -z "$ac_c_werror_flag" ||
4276	 test ! -s conftest.err
4277       } && test -s conftest.$ac_objext; then
4278  eval "$as_ac_Header=yes"
4279else
4280  $as_echo "$as_me: failed program was:" >&5
4281sed 's/^/| /' conftest.$ac_ext >&5
4282
4283	eval "$as_ac_Header=no"
4284fi
4285
4286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4287fi
4288ac_res=`eval 'as_val=${'$as_ac_Header'}
4289		 $as_echo "$as_val"'`
4290	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4291$as_echo "$ac_res" >&6; }
4292as_val=`eval 'as_val=${'$as_ac_Header'}
4293		 $as_echo "$as_val"'`
4294   if test "x$as_val" = x""yes; then
4295  cat >>confdefs.h <<_ACEOF
4296#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4297_ACEOF
4298
4299fi
4300
4301done
4302
4303
4304   { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
4305$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4306if test "${ac_cv_prog_cc_c99+set}" = set; then
4307  $as_echo_n "(cached) " >&6
4308else
4309  ac_cv_prog_cc_c99=no
4310ac_save_CC=$CC
4311cat >conftest.$ac_ext <<_ACEOF
4312/* confdefs.h.  */
4313_ACEOF
4314cat confdefs.h >>conftest.$ac_ext
4315cat >>conftest.$ac_ext <<_ACEOF
4316/* end confdefs.h.  */
4317#include <stdarg.h>
4318#include <stdbool.h>
4319#include <stdlib.h>
4320#include <wchar.h>
4321#include <stdio.h>
4322
4323// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4324#define debug(...) fprintf (stderr, __VA_ARGS__)
4325#define showlist(...) puts (#__VA_ARGS__)
4326#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4327static void
4328test_varargs_macros (void)
4329{
4330  int x = 1234;
4331  int y = 5678;
4332  debug ("Flag");
4333  debug ("X = %d\n", x);
4334  showlist (The first, second, and third items.);
4335  report (x>y, "x is %d but y is %d", x, y);
4336}
4337
4338// Check long long types.
4339#define BIG64 18446744073709551615ull
4340#define BIG32 4294967295ul
4341#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4342#if !BIG_OK
4343  your preprocessor is broken;
4344#endif
4345#if BIG_OK
4346#else
4347  your preprocessor is broken;
4348#endif
4349static long long int bignum = -9223372036854775807LL;
4350static unsigned long long int ubignum = BIG64;
4351
4352struct incomplete_array
4353{
4354  int datasize;
4355  double data[];
4356};
4357
4358struct named_init {
4359  int number;
4360  const wchar_t *name;
4361  double average;
4362};
4363
4364typedef const char *ccp;
4365
4366static inline int
4367test_restrict (ccp restrict text)
4368{
4369  // See if C++-style comments work.
4370  // Iterate through items via the restricted pointer.
4371  // Also check for declarations in for loops.
4372  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4373    continue;
4374  return 0;
4375}
4376
4377// Check varargs and va_copy.
4378static void
4379test_varargs (const char *format, ...)
4380{
4381  va_list args;
4382  va_start (args, format);
4383  va_list args_copy;
4384  va_copy (args_copy, args);
4385
4386  const char *str;
4387  int number;
4388  float fnumber;
4389
4390  while (*format)
4391    {
4392      switch (*format++)
4393	{
4394	case 's': // string
4395	  str = va_arg (args_copy, const char *);
4396	  break;
4397	case 'd': // int
4398	  number = va_arg (args_copy, int);
4399	  break;
4400	case 'f': // float
4401	  fnumber = va_arg (args_copy, double);
4402	  break;
4403	default:
4404	  break;
4405	}
4406    }
4407  va_end (args_copy);
4408  va_end (args);
4409}
4410
4411int
4412main ()
4413{
4414
4415  // Check bool.
4416  _Bool success = false;
4417
4418  // Check restrict.
4419  if (test_restrict ("String literal") == 0)
4420    success = true;
4421  char *restrict newvar = "Another string";
4422
4423  // Check varargs.
4424  test_varargs ("s, d' f .", "string", 65, 34.234);
4425  test_varargs_macros ();
4426
4427  // Check flexible array members.
4428  struct incomplete_array *ia =
4429    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4430  ia->datasize = 10;
4431  for (int i = 0; i < ia->datasize; ++i)
4432    ia->data[i] = i * 1.234;
4433
4434  // Check named initializers.
4435  struct named_init ni = {
4436    .number = 34,
4437    .name = L"Test wide string",
4438    .average = 543.34343,
4439  };
4440
4441  ni.number = 58;
4442
4443  int dynamic_array[ni.number];
4444  dynamic_array[ni.number - 1] = 543;
4445
4446  // work around unused variable warnings
4447  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4448	  || dynamic_array[ni.number - 1] != 543);
4449
4450  ;
4451  return 0;
4452}
4453_ACEOF
4454for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4455do
4456  CC="$ac_save_CC $ac_arg"
4457  rm -f conftest.$ac_objext
4458if { (ac_try="$ac_compile"
4459case "(($ac_try" in
4460  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4461  *) ac_try_echo=$ac_try;;
4462esac
4463eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4464$as_echo "$ac_try_echo") >&5
4465  (eval "$ac_compile") 2>conftest.er1
4466  ac_status=$?
4467  grep -v '^ *+' conftest.er1 >conftest.err
4468  rm -f conftest.er1
4469  cat conftest.err >&5
4470  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471  (exit $ac_status); } && {
4472	 test -z "$ac_c_werror_flag" ||
4473	 test ! -s conftest.err
4474       } && test -s conftest.$ac_objext; then
4475  ac_cv_prog_cc_c99=$ac_arg
4476else
4477  $as_echo "$as_me: failed program was:" >&5
4478sed 's/^/| /' conftest.$ac_ext >&5
4479
4480
4481fi
4482
4483rm -f core conftest.err conftest.$ac_objext
4484  test "x$ac_cv_prog_cc_c99" != "xno" && break
4485done
4486rm -f conftest.$ac_ext
4487CC=$ac_save_CC
4488
4489fi
4490# AC_CACHE_VAL
4491case "x$ac_cv_prog_cc_c99" in
4492  x)
4493    { $as_echo "$as_me:$LINENO: result: none needed" >&5
4494$as_echo "none needed" >&6; } ;;
4495  xno)
4496    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4497$as_echo "unsupported" >&6; } ;;
4498  *)
4499    CC="$CC $ac_cv_prog_cc_c99"
4500    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
4501$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4502esac
4503
4504
4505
4506# Make sure we can run config.sub.
4507$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4508  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4509$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4510   { (exit 1); exit 1; }; }
4511
4512{ $as_echo "$as_me:$LINENO: checking build system type" >&5
4513$as_echo_n "checking build system type... " >&6; }
4514if test "${ac_cv_build+set}" = set; then
4515  $as_echo_n "(cached) " >&6
4516else
4517  ac_build_alias=$build_alias
4518test "x$ac_build_alias" = x &&
4519  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4520test "x$ac_build_alias" = x &&
4521  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4522$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4523   { (exit 1); exit 1; }; }
4524ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4525  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4526$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4527   { (exit 1); exit 1; }; }
4528
4529fi
4530{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4531$as_echo "$ac_cv_build" >&6; }
4532case $ac_cv_build in
4533*-*-*) ;;
4534*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4535$as_echo "$as_me: error: invalid value of canonical build" >&2;}
4536   { (exit 1); exit 1; }; };;
4537esac
4538build=$ac_cv_build
4539ac_save_IFS=$IFS; IFS='-'
4540set x $ac_cv_build
4541shift
4542build_cpu=$1
4543build_vendor=$2
4544shift; shift
4545# Remember, the first character of IFS is used to create $*,
4546# except with old shells:
4547build_os=$*
4548IFS=$ac_save_IFS
4549case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4550
4551
4552{ $as_echo "$as_me:$LINENO: checking host system type" >&5
4553$as_echo_n "checking host system type... " >&6; }
4554if test "${ac_cv_host+set}" = set; then
4555  $as_echo_n "(cached) " >&6
4556else
4557  if test "x$host_alias" = x; then
4558  ac_cv_host=$ac_cv_build
4559else
4560  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4561    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4562$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4563   { (exit 1); exit 1; }; }
4564fi
4565
4566fi
4567{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4568$as_echo "$ac_cv_host" >&6; }
4569case $ac_cv_host in
4570*-*-*) ;;
4571*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4572$as_echo "$as_me: error: invalid value of canonical host" >&2;}
4573   { (exit 1); exit 1; }; };;
4574esac
4575host=$ac_cv_host
4576ac_save_IFS=$IFS; IFS='-'
4577set x $ac_cv_host
4578shift
4579host_cpu=$1
4580host_vendor=$2
4581shift; shift
4582# Remember, the first character of IFS is used to create $*,
4583# except with old shells:
4584host_os=$*
4585IFS=$ac_save_IFS
4586case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4587
4588
4589
4590
4591
4592if  test "x$GCC" = xyes ; then
4593    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4594-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4595-Wbad-function-cast"
4596    case `$CC -dumpversion` in
4597    3.4.* | 4.*)
4598	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4599	;;
4600    esac
4601else
4602    { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
4603$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
4604if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
4605  $as_echo_n "(cached) " >&6
4606else
4607  cat >conftest.$ac_ext <<_ACEOF
4608/* confdefs.h.  */
4609_ACEOF
4610cat confdefs.h >>conftest.$ac_ext
4611cat >>conftest.$ac_ext <<_ACEOF
4612/* end confdefs.h.  */
4613$ac_includes_default
4614int
4615main ()
4616{
4617#ifndef __SUNPRO_C
4618  (void) __SUNPRO_C;
4619#endif
4620
4621  ;
4622  return 0;
4623}
4624_ACEOF
4625rm -f conftest.$ac_objext
4626if { (ac_try="$ac_compile"
4627case "(($ac_try" in
4628  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4629  *) ac_try_echo=$ac_try;;
4630esac
4631eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4632$as_echo "$ac_try_echo") >&5
4633  (eval "$ac_compile") 2>conftest.er1
4634  ac_status=$?
4635  grep -v '^ *+' conftest.er1 >conftest.err
4636  rm -f conftest.er1
4637  cat conftest.err >&5
4638  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639  (exit $ac_status); } && {
4640	 test -z "$ac_c_werror_flag" ||
4641	 test ! -s conftest.err
4642       } && test -s conftest.$ac_objext; then
4643  ac_cv_have_decl___SUNPRO_C=yes
4644else
4645  $as_echo "$as_me: failed program was:" >&5
4646sed 's/^/| /' conftest.$ac_ext >&5
4647
4648	ac_cv_have_decl___SUNPRO_C=no
4649fi
4650
4651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4652fi
4653{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
4654$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
4655if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
4656  SUNCC="yes"
4657else
4658  SUNCC="no"
4659fi
4660
4661    if test "x$SUNCC" = "xyes"; then
4662	CWARNFLAGS="-v"
4663    fi
4664fi
4665
4666# Check whether --enable-silent-rules was given.
4667if test "${enable_silent_rules+set}" = set; then
4668  enableval=$enable_silent_rules;
4669fi
4670
4671case $enable_silent_rules in
4672yes) AM_DEFAULT_VERBOSITY=0;;
4673no)  AM_DEFAULT_VERBOSITY=1;;
4674*)   AM_DEFAULT_VERBOSITY=0;;
4675esac
4676AM_BACKSLASH='\'
4677
4678
4679
4680
4681
4682
4683
4684# Check whether --enable-strict-compilation was given.
4685if test "${enable_strict_compilation+set}" = set; then
4686  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4687else
4688  STRICT_COMPILE=no
4689fi
4690
4691if test "x$STRICT_COMPILE" = "xyes"; then
4692	{ $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
4693$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
4694if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
4695  $as_echo_n "(cached) " >&6
4696else
4697  cat >conftest.$ac_ext <<_ACEOF
4698/* confdefs.h.  */
4699_ACEOF
4700cat confdefs.h >>conftest.$ac_ext
4701cat >>conftest.$ac_ext <<_ACEOF
4702/* end confdefs.h.  */
4703$ac_includes_default
4704int
4705main ()
4706{
4707#ifndef __SUNPRO_C
4708  (void) __SUNPRO_C;
4709#endif
4710
4711  ;
4712  return 0;
4713}
4714_ACEOF
4715rm -f conftest.$ac_objext
4716if { (ac_try="$ac_compile"
4717case "(($ac_try" in
4718  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4719  *) ac_try_echo=$ac_try;;
4720esac
4721eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4722$as_echo "$ac_try_echo") >&5
4723  (eval "$ac_compile") 2>conftest.er1
4724  ac_status=$?
4725  grep -v '^ *+' conftest.er1 >conftest.err
4726  rm -f conftest.er1
4727  cat conftest.err >&5
4728  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729  (exit $ac_status); } && {
4730	 test -z "$ac_c_werror_flag" ||
4731	 test ! -s conftest.err
4732       } && test -s conftest.$ac_objext; then
4733  ac_cv_have_decl___SUNPRO_C=yes
4734else
4735  $as_echo "$as_me: failed program was:" >&5
4736sed 's/^/| /' conftest.$ac_ext >&5
4737
4738	ac_cv_have_decl___SUNPRO_C=no
4739fi
4740
4741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4742fi
4743{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
4744$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
4745if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
4746  SUNCC="yes"
4747else
4748  SUNCC="no"
4749fi
4750
4751	{ $as_echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5
4752$as_echo_n "checking whether __INTEL_COMPILER is declared... " >&6; }
4753if test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then
4754  $as_echo_n "(cached) " >&6
4755else
4756  cat >conftest.$ac_ext <<_ACEOF
4757/* confdefs.h.  */
4758_ACEOF
4759cat confdefs.h >>conftest.$ac_ext
4760cat >>conftest.$ac_ext <<_ACEOF
4761/* end confdefs.h.  */
4762$ac_includes_default
4763int
4764main ()
4765{
4766#ifndef __INTEL_COMPILER
4767  (void) __INTEL_COMPILER;
4768#endif
4769
4770  ;
4771  return 0;
4772}
4773_ACEOF
4774rm -f conftest.$ac_objext
4775if { (ac_try="$ac_compile"
4776case "(($ac_try" in
4777  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4778  *) ac_try_echo=$ac_try;;
4779esac
4780eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4781$as_echo "$ac_try_echo") >&5
4782  (eval "$ac_compile") 2>conftest.er1
4783  ac_status=$?
4784  grep -v '^ *+' conftest.er1 >conftest.err
4785  rm -f conftest.er1
4786  cat conftest.err >&5
4787  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788  (exit $ac_status); } && {
4789	 test -z "$ac_c_werror_flag" ||
4790	 test ! -s conftest.err
4791       } && test -s conftest.$ac_objext; then
4792  ac_cv_have_decl___INTEL_COMPILER=yes
4793else
4794  $as_echo "$as_me: failed program was:" >&5
4795sed 's/^/| /' conftest.$ac_ext >&5
4796
4797	ac_cv_have_decl___INTEL_COMPILER=no
4798fi
4799
4800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4801fi
4802{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5
4803$as_echo "$ac_cv_have_decl___INTEL_COMPILER" >&6; }
4804if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then
4805  INTELCC="yes"
4806else
4807  INTELCC="no"
4808fi
4809
4810	if test "x$GCC" = xyes ; then
4811		STRICT_CFLAGS="-pedantic -Werror"
4812	elif test "x$SUNCC" = "xyes"; then
4813		STRICT_CFLAGS="-errwarn"
4814    elif test "x$INTELCC" = "xyes"; then
4815		STRICT_CFLAGS="-Werror"
4816	fi
4817fi
4818CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4819
4820
4821
4822
4823# Check whether --with-release-version was given.
4824if test "${with_release_version+set}" = set; then
4825  withval=$with_release_version; RELEASE_VERSION="$withval"
4826else
4827  RELEASE_VERSION=""
4828fi
4829
4830	if test "x$RELEASE_VERSION" != "x"; then
4831		PACKAGE="$PACKAGE-$RELEASE_VERSION"
4832		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
4833		{ $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
4834$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
4835	fi
4836
4837cat >>confdefs.h <<_ACEOF
4838#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4839_ACEOF
4840
4841	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4842	if test "x$PVM" = "x"; then
4843		PVM="0"
4844	fi
4845
4846cat >>confdefs.h <<_ACEOF
4847#define PACKAGE_VERSION_MINOR $PVM
4848_ACEOF
4849
4850	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
4851	if test "x$PVP" = "x"; then
4852		PVP="0"
4853	fi
4854
4855cat >>confdefs.h <<_ACEOF
4856#define PACKAGE_VERSION_PATCHLEVEL $PVP
4857_ACEOF
4858
4859
4860
4861CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \
4862mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
4863echo 'git directory not found: installing possibly empty changelog.' >&2)"
4864
4865distcleancheck_listfiles='find . -type f ! -name ChangeLog -print'
4866
4867
4868
4869
4870
4871if test x$APP_MAN_SUFFIX = x    ; then
4872    APP_MAN_SUFFIX=1
4873fi
4874if test x$APP_MAN_DIR = x    ; then
4875    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4876fi
4877
4878if test x$LIB_MAN_SUFFIX = x    ; then
4879    LIB_MAN_SUFFIX=3
4880fi
4881if test x$LIB_MAN_DIR = x    ; then
4882    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
4883fi
4884
4885if test x$FILE_MAN_SUFFIX = x    ; then
4886    case $host_os in
4887	solaris*)	FILE_MAN_SUFFIX=4  ;;
4888	*)		FILE_MAN_SUFFIX=5  ;;
4889    esac
4890fi
4891if test x$FILE_MAN_DIR = x    ; then
4892    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
4893fi
4894
4895if test x$MISC_MAN_SUFFIX = x    ; then
4896    case $host_os in
4897	solaris*)	MISC_MAN_SUFFIX=5  ;;
4898	*)		MISC_MAN_SUFFIX=7  ;;
4899    esac
4900fi
4901if test x$MISC_MAN_DIR = x    ; then
4902    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
4903fi
4904
4905if test x$DRIVER_MAN_SUFFIX = x    ; then
4906    case $host_os in
4907	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
4908	*)		DRIVER_MAN_SUFFIX=4  ;;
4909    esac
4910fi
4911if test x$DRIVER_MAN_DIR = x    ; then
4912    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
4913fi
4914
4915if test x$ADMIN_MAN_SUFFIX = x    ; then
4916    case $host_os in
4917	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
4918	*)		ADMIN_MAN_SUFFIX=8  ;;
4919    esac
4920fi
4921if test x$ADMIN_MAN_DIR = x    ; then
4922    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
4923fi
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941# Extract the first word of "sed", so it can be a program name with args.
4942set dummy sed; ac_word=$2
4943{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4944$as_echo_n "checking for $ac_word... " >&6; }
4945if test "${ac_cv_path_SED+set}" = set; then
4946  $as_echo_n "(cached) " >&6
4947else
4948  case $SED in
4949  [\\/]* | ?:[\\/]*)
4950  ac_cv_path_SED="$SED" # Let the user override the test with a path.
4951  ;;
4952  *)
4953  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4954for as_dir in $PATH
4955do
4956  IFS=$as_save_IFS
4957  test -z "$as_dir" && as_dir=.
4958  for ac_exec_ext in '' $ac_executable_extensions; do
4959  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4960    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4961    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4962    break 2
4963  fi
4964done
4965done
4966IFS=$as_save_IFS
4967
4968  ;;
4969esac
4970fi
4971SED=$ac_cv_path_SED
4972if test -n "$SED"; then
4973  { $as_echo "$as_me:$LINENO: result: $SED" >&5
4974$as_echo "$SED" >&6; }
4975else
4976  { $as_echo "$as_me:$LINENO: result: no" >&5
4977$as_echo "no" >&6; }
4978fi
4979
4980
4981if [ -z $SED ] ; then
4982   { { $as_echo "$as_me:$LINENO: error: sed is needed to build x11perf" >&5
4983$as_echo "$as_me: error: sed is needed to build x11perf" >&2;}
4984   { (exit 1); exit 1; }; }
4985fi
4986
4987{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4988$as_echo_n "checking return type of signal handlers... " >&6; }
4989if test "${ac_cv_type_signal+set}" = set; then
4990  $as_echo_n "(cached) " >&6
4991else
4992  cat >conftest.$ac_ext <<_ACEOF
4993/* confdefs.h.  */
4994_ACEOF
4995cat confdefs.h >>conftest.$ac_ext
4996cat >>conftest.$ac_ext <<_ACEOF
4997/* end confdefs.h.  */
4998#include <sys/types.h>
4999#include <signal.h>
5000
5001int
5002main ()
5003{
5004return *(signal (0, 0)) (0) == 1;
5005  ;
5006  return 0;
5007}
5008_ACEOF
5009rm -f conftest.$ac_objext
5010if { (ac_try="$ac_compile"
5011case "(($ac_try" in
5012  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5013  *) ac_try_echo=$ac_try;;
5014esac
5015eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5016$as_echo "$ac_try_echo") >&5
5017  (eval "$ac_compile") 2>conftest.er1
5018  ac_status=$?
5019  grep -v '^ *+' conftest.er1 >conftest.err
5020  rm -f conftest.er1
5021  cat conftest.err >&5
5022  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023  (exit $ac_status); } && {
5024	 test -z "$ac_c_werror_flag" ||
5025	 test ! -s conftest.err
5026       } && test -s conftest.$ac_objext; then
5027  ac_cv_type_signal=int
5028else
5029  $as_echo "$as_me: failed program was:" >&5
5030sed 's/^/| /' conftest.$ac_ext >&5
5031
5032	ac_cv_type_signal=void
5033fi
5034
5035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5036fi
5037{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5038$as_echo "$ac_cv_type_signal" >&6; }
5039
5040cat >>confdefs.h <<_ACEOF
5041#define RETSIGTYPE $ac_cv_type_signal
5042_ACEOF
5043
5044
5045
5046# Checks for pkg-config packages
5047
5048
5049if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5050	if test -n "$ac_tool_prefix"; then
5051  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5052set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5053{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5054$as_echo_n "checking for $ac_word... " >&6; }
5055if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5056  $as_echo_n "(cached) " >&6
5057else
5058  case $PKG_CONFIG in
5059  [\\/]* | ?:[\\/]*)
5060  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5061  ;;
5062  *)
5063  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5064for as_dir in $PATH
5065do
5066  IFS=$as_save_IFS
5067  test -z "$as_dir" && as_dir=.
5068  for ac_exec_ext in '' $ac_executable_extensions; do
5069  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5070    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5071    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5072    break 2
5073  fi
5074done
5075done
5076IFS=$as_save_IFS
5077
5078  ;;
5079esac
5080fi
5081PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5082if test -n "$PKG_CONFIG"; then
5083  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5084$as_echo "$PKG_CONFIG" >&6; }
5085else
5086  { $as_echo "$as_me:$LINENO: result: no" >&5
5087$as_echo "no" >&6; }
5088fi
5089
5090
5091fi
5092if test -z "$ac_cv_path_PKG_CONFIG"; then
5093  ac_pt_PKG_CONFIG=$PKG_CONFIG
5094  # Extract the first word of "pkg-config", so it can be a program name with args.
5095set dummy pkg-config; ac_word=$2
5096{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5097$as_echo_n "checking for $ac_word... " >&6; }
5098if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
5099  $as_echo_n "(cached) " >&6
5100else
5101  case $ac_pt_PKG_CONFIG in
5102  [\\/]* | ?:[\\/]*)
5103  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5104  ;;
5105  *)
5106  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107for as_dir in $PATH
5108do
5109  IFS=$as_save_IFS
5110  test -z "$as_dir" && as_dir=.
5111  for ac_exec_ext in '' $ac_executable_extensions; do
5112  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5113    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5114    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5115    break 2
5116  fi
5117done
5118done
5119IFS=$as_save_IFS
5120
5121  ;;
5122esac
5123fi
5124ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5125if test -n "$ac_pt_PKG_CONFIG"; then
5126  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
5127$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5128else
5129  { $as_echo "$as_me:$LINENO: result: no" >&5
5130$as_echo "no" >&6; }
5131fi
5132
5133  if test "x$ac_pt_PKG_CONFIG" = x; then
5134    PKG_CONFIG=""
5135  else
5136    case $cross_compiling:$ac_tool_warned in
5137yes:)
5138{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5139$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5140ac_tool_warned=yes ;;
5141esac
5142    PKG_CONFIG=$ac_pt_PKG_CONFIG
5143  fi
5144else
5145  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5146fi
5147
5148fi
5149if test -n "$PKG_CONFIG"; then
5150	_pkg_min_version=0.9.0
5151	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
5152$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5153	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5154		{ $as_echo "$as_me:$LINENO: result: yes" >&5
5155$as_echo "yes" >&6; }
5156	else
5157		{ $as_echo "$as_me:$LINENO: result: no" >&5
5158$as_echo "no" >&6; }
5159		PKG_CONFIG=""
5160	fi
5161
5162fi
5163
5164pkg_failed=no
5165{ $as_echo "$as_me:$LINENO: checking for X11PERF" >&5
5166$as_echo_n "checking for X11PERF... " >&6; }
5167
5168if test -n "$X11PERF_CFLAGS"; then
5169    pkg_cv_X11PERF_CFLAGS="$X11PERF_CFLAGS"
5170 elif test -n "$PKG_CONFIG"; then
5171    if test -n "$PKG_CONFIG" && \
5172    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xmuu\"") >&5
5173  ($PKG_CONFIG --exists --print-errors "x11 xmuu") 2>&5
5174  ac_status=$?
5175  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176  (exit $ac_status); }; then
5177  pkg_cv_X11PERF_CFLAGS=`$PKG_CONFIG --cflags "x11 xmuu" 2>/dev/null`
5178else
5179  pkg_failed=yes
5180fi
5181 else
5182    pkg_failed=untried
5183fi
5184if test -n "$X11PERF_LIBS"; then
5185    pkg_cv_X11PERF_LIBS="$X11PERF_LIBS"
5186 elif test -n "$PKG_CONFIG"; then
5187    if test -n "$PKG_CONFIG" && \
5188    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xmuu\"") >&5
5189  ($PKG_CONFIG --exists --print-errors "x11 xmuu") 2>&5
5190  ac_status=$?
5191  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192  (exit $ac_status); }; then
5193  pkg_cv_X11PERF_LIBS=`$PKG_CONFIG --libs "x11 xmuu" 2>/dev/null`
5194else
5195  pkg_failed=yes
5196fi
5197 else
5198    pkg_failed=untried
5199fi
5200
5201
5202
5203if test $pkg_failed = yes; then
5204
5205if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5206        _pkg_short_errors_supported=yes
5207else
5208        _pkg_short_errors_supported=no
5209fi
5210        if test $_pkg_short_errors_supported = yes; then
5211	        X11PERF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xmuu" 2>&1`
5212        else
5213	        X11PERF_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xmuu" 2>&1`
5214        fi
5215	# Put the nasty error message in config.log where it belongs
5216	echo "$X11PERF_PKG_ERRORS" >&5
5217
5218	{ { $as_echo "$as_me:$LINENO: error: Package requirements (x11 xmuu) were not met:
5219
5220$X11PERF_PKG_ERRORS
5221
5222Consider adjusting the PKG_CONFIG_PATH environment variable if you
5223installed software in a non-standard prefix.
5224
5225Alternatively, you may set the environment variables X11PERF_CFLAGS
5226and X11PERF_LIBS to avoid the need to call pkg-config.
5227See the pkg-config man page for more details.
5228" >&5
5229$as_echo "$as_me: error: Package requirements (x11 xmuu) were not met:
5230
5231$X11PERF_PKG_ERRORS
5232
5233Consider adjusting the PKG_CONFIG_PATH environment variable if you
5234installed software in a non-standard prefix.
5235
5236Alternatively, you may set the environment variables X11PERF_CFLAGS
5237and X11PERF_LIBS to avoid the need to call pkg-config.
5238See the pkg-config man page for more details.
5239" >&2;}
5240   { (exit 1); exit 1; }; }
5241elif test $pkg_failed = untried; then
5242	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5243$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5244{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
5245is in your PATH or set the PKG_CONFIG environment variable to the full
5246path to pkg-config.
5247
5248Alternatively, you may set the environment variables X11PERF_CFLAGS
5249and X11PERF_LIBS to avoid the need to call pkg-config.
5250See the pkg-config man page for more details.
5251
5252To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5253See \`config.log' for more details." >&5
5254$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
5255is in your PATH or set the PKG_CONFIG environment variable to the full
5256path to pkg-config.
5257
5258Alternatively, you may set the environment variables X11PERF_CFLAGS
5259and X11PERF_LIBS to avoid the need to call pkg-config.
5260See the pkg-config man page for more details.
5261
5262To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5263See \`config.log' for more details." >&2;}
5264   { (exit 1); exit 1; }; }; }
5265else
5266	X11PERF_CFLAGS=$pkg_cv_X11PERF_CFLAGS
5267	X11PERF_LIBS=$pkg_cv_X11PERF_LIBS
5268        { $as_echo "$as_me:$LINENO: result: yes" >&5
5269$as_echo "yes" >&6; }
5270	:
5271fi
5272
5273
5274
5275# Check for Xrender library
5276
5277pkg_failed=no
5278{ $as_echo "$as_me:$LINENO: checking for XRENDER" >&5
5279$as_echo_n "checking for XRENDER... " >&6; }
5280
5281if test -n "$XRENDER_CFLAGS"; then
5282    pkg_cv_XRENDER_CFLAGS="$XRENDER_CFLAGS"
5283 elif test -n "$PKG_CONFIG"; then
5284    if test -n "$PKG_CONFIG" && \
5285    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xrender\"") >&5
5286  ($PKG_CONFIG --exists --print-errors "xrender") 2>&5
5287  ac_status=$?
5288  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289  (exit $ac_status); }; then
5290  pkg_cv_XRENDER_CFLAGS=`$PKG_CONFIG --cflags "xrender" 2>/dev/null`
5291else
5292  pkg_failed=yes
5293fi
5294 else
5295    pkg_failed=untried
5296fi
5297if test -n "$XRENDER_LIBS"; then
5298    pkg_cv_XRENDER_LIBS="$XRENDER_LIBS"
5299 elif test -n "$PKG_CONFIG"; then
5300    if test -n "$PKG_CONFIG" && \
5301    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xrender\"") >&5
5302  ($PKG_CONFIG --exists --print-errors "xrender") 2>&5
5303  ac_status=$?
5304  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305  (exit $ac_status); }; then
5306  pkg_cv_XRENDER_LIBS=`$PKG_CONFIG --libs "xrender" 2>/dev/null`
5307else
5308  pkg_failed=yes
5309fi
5310 else
5311    pkg_failed=untried
5312fi
5313
5314
5315
5316if test $pkg_failed = yes; then
5317
5318if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5319        _pkg_short_errors_supported=yes
5320else
5321        _pkg_short_errors_supported=no
5322fi
5323        if test $_pkg_short_errors_supported = yes; then
5324	        XRENDER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xrender" 2>&1`
5325        else
5326	        XRENDER_PKG_ERRORS=`$PKG_CONFIG --print-errors "xrender" 2>&1`
5327        fi
5328	# Put the nasty error message in config.log where it belongs
5329	echo "$XRENDER_PKG_ERRORS" >&5
5330
5331	{ $as_echo "$as_me:$LINENO: result: no" >&5
5332$as_echo "no" >&6; }
5333                xrender_found=no
5334elif test $pkg_failed = untried; then
5335	xrender_found=no
5336else
5337	XRENDER_CFLAGS=$pkg_cv_XRENDER_CFLAGS
5338	XRENDER_LIBS=$pkg_cv_XRENDER_LIBS
5339        { $as_echo "$as_me:$LINENO: result: yes" >&5
5340$as_echo "yes" >&6; }
5341	xrender_found=yes
5342fi
5343
5344
5345case "$xrender_found" in
5346yes)
5347
5348cat >>confdefs.h <<\_ACEOF
5349#define XRENDER 1
5350_ACEOF
5351
5352	;;
5353esac
5354
5355# Check for Xft library
5356
5357pkg_failed=no
5358{ $as_echo "$as_me:$LINENO: checking for XFT" >&5
5359$as_echo_n "checking for XFT... " >&6; }
5360
5361if test -n "$XFT_CFLAGS"; then
5362    pkg_cv_XFT_CFLAGS="$XFT_CFLAGS"
5363 elif test -n "$PKG_CONFIG"; then
5364    if test -n "$PKG_CONFIG" && \
5365    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xft\"") >&5
5366  ($PKG_CONFIG --exists --print-errors "xft") 2>&5
5367  ac_status=$?
5368  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369  (exit $ac_status); }; then
5370  pkg_cv_XFT_CFLAGS=`$PKG_CONFIG --cflags "xft" 2>/dev/null`
5371else
5372  pkg_failed=yes
5373fi
5374 else
5375    pkg_failed=untried
5376fi
5377if test -n "$XFT_LIBS"; then
5378    pkg_cv_XFT_LIBS="$XFT_LIBS"
5379 elif test -n "$PKG_CONFIG"; then
5380    if test -n "$PKG_CONFIG" && \
5381    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xft\"") >&5
5382  ($PKG_CONFIG --exists --print-errors "xft") 2>&5
5383  ac_status=$?
5384  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385  (exit $ac_status); }; then
5386  pkg_cv_XFT_LIBS=`$PKG_CONFIG --libs "xft" 2>/dev/null`
5387else
5388  pkg_failed=yes
5389fi
5390 else
5391    pkg_failed=untried
5392fi
5393
5394
5395
5396if test $pkg_failed = yes; then
5397
5398if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5399        _pkg_short_errors_supported=yes
5400else
5401        _pkg_short_errors_supported=no
5402fi
5403        if test $_pkg_short_errors_supported = yes; then
5404	        XFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xft" 2>&1`
5405        else
5406	        XFT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xft" 2>&1`
5407        fi
5408	# Put the nasty error message in config.log where it belongs
5409	echo "$XFT_PKG_ERRORS" >&5
5410
5411	{ $as_echo "$as_me:$LINENO: result: no" >&5
5412$as_echo "no" >&6; }
5413                xft_found=no
5414elif test $pkg_failed = untried; then
5415	xft_found=no
5416else
5417	XFT_CFLAGS=$pkg_cv_XFT_CFLAGS
5418	XFT_LIBS=$pkg_cv_XFT_LIBS
5419        { $as_echo "$as_me:$LINENO: result: yes" >&5
5420$as_echo "yes" >&6; }
5421	xft_found=yes
5422fi
5423
5424
5425case "$xft_found" in
5426yes)
5427
5428cat >>confdefs.h <<\_ACEOF
5429#define XFT 1
5430_ACEOF
5431
5432	;;
5433esac
5434
5435# Check for MIT-SHM extension
5436
5437pkg_failed=no
5438{ $as_echo "$as_me:$LINENO: checking for XEXT" >&5
5439$as_echo_n "checking for XEXT... " >&6; }
5440
5441if test -n "$XEXT_CFLAGS"; then
5442    pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
5443 elif test -n "$PKG_CONFIG"; then
5444    if test -n "$PKG_CONFIG" && \
5445    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xext\"") >&5
5446  ($PKG_CONFIG --exists --print-errors "xext") 2>&5
5447  ac_status=$?
5448  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449  (exit $ac_status); }; then
5450  pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
5451else
5452  pkg_failed=yes
5453fi
5454 else
5455    pkg_failed=untried
5456fi
5457if test -n "$XEXT_LIBS"; then
5458    pkg_cv_XEXT_LIBS="$XEXT_LIBS"
5459 elif test -n "$PKG_CONFIG"; then
5460    if test -n "$PKG_CONFIG" && \
5461    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xext\"") >&5
5462  ($PKG_CONFIG --exists --print-errors "xext") 2>&5
5463  ac_status=$?
5464  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465  (exit $ac_status); }; then
5466  pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
5467else
5468  pkg_failed=yes
5469fi
5470 else
5471    pkg_failed=untried
5472fi
5473
5474
5475
5476if test $pkg_failed = yes; then
5477
5478if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5479        _pkg_short_errors_supported=yes
5480else
5481        _pkg_short_errors_supported=no
5482fi
5483        if test $_pkg_short_errors_supported = yes; then
5484	        XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xext" 2>&1`
5485        else
5486	        XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xext" 2>&1`
5487        fi
5488	# Put the nasty error message in config.log where it belongs
5489	echo "$XEXT_PKG_ERRORS" >&5
5490
5491	{ $as_echo "$as_me:$LINENO: result: no" >&5
5492$as_echo "no" >&6; }
5493                xext_found=no
5494elif test $pkg_failed = untried; then
5495	xext_found=no
5496else
5497	XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
5498	XEXT_LIBS=$pkg_cv_XEXT_LIBS
5499        { $as_echo "$as_me:$LINENO: result: yes" >&5
5500$as_echo "yes" >&6; }
5501	xext_found=yes
5502fi
5503
5504
5505case "$xext_found" in
5506yes)
5507	save_LIBS="$LIBS"
5508	LIBS="$XEXT_LIBS $LIBS"
5509
5510for ac_func in XShmQueryExtension
5511do
5512as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5513{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5514$as_echo_n "checking for $ac_func... " >&6; }
5515if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5516  $as_echo_n "(cached) " >&6
5517else
5518  cat >conftest.$ac_ext <<_ACEOF
5519/* confdefs.h.  */
5520_ACEOF
5521cat confdefs.h >>conftest.$ac_ext
5522cat >>conftest.$ac_ext <<_ACEOF
5523/* end confdefs.h.  */
5524/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5525   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5526#define $ac_func innocuous_$ac_func
5527
5528/* System header to define __stub macros and hopefully few prototypes,
5529    which can conflict with char $ac_func (); below.
5530    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5531    <limits.h> exists even on freestanding compilers.  */
5532
5533#ifdef __STDC__
5534# include <limits.h>
5535#else
5536# include <assert.h>
5537#endif
5538
5539#undef $ac_func
5540
5541/* Override any GCC internal prototype to avoid an error.
5542   Use char because int might match the return type of a GCC
5543   builtin and then its argument prototype would still apply.  */
5544#ifdef __cplusplus
5545extern "C"
5546#endif
5547char $ac_func ();
5548/* The GNU C library defines this for functions which it implements
5549    to always fail with ENOSYS.  Some functions are actually named
5550    something starting with __ and the normal name is an alias.  */
5551#if defined __stub_$ac_func || defined __stub___$ac_func
5552choke me
5553#endif
5554
5555int
5556main ()
5557{
5558return $ac_func ();
5559  ;
5560  return 0;
5561}
5562_ACEOF
5563rm -f conftest.$ac_objext conftest$ac_exeext
5564if { (ac_try="$ac_link"
5565case "(($ac_try" in
5566  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5567  *) ac_try_echo=$ac_try;;
5568esac
5569eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5570$as_echo "$ac_try_echo") >&5
5571  (eval "$ac_link") 2>conftest.er1
5572  ac_status=$?
5573  grep -v '^ *+' conftest.er1 >conftest.err
5574  rm -f conftest.er1
5575  cat conftest.err >&5
5576  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577  (exit $ac_status); } && {
5578	 test -z "$ac_c_werror_flag" ||
5579	 test ! -s conftest.err
5580       } && test -s conftest$ac_exeext && {
5581	 test "$cross_compiling" = yes ||
5582	 $as_test_x conftest$ac_exeext
5583       }; then
5584  eval "$as_ac_var=yes"
5585else
5586  $as_echo "$as_me: failed program was:" >&5
5587sed 's/^/| /' conftest.$ac_ext >&5
5588
5589	eval "$as_ac_var=no"
5590fi
5591
5592rm -rf conftest.dSYM
5593rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5594      conftest$ac_exeext conftest.$ac_ext
5595fi
5596ac_res=`eval 'as_val=${'$as_ac_var'}
5597		 $as_echo "$as_val"'`
5598	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5599$as_echo "$ac_res" >&6; }
5600as_val=`eval 'as_val=${'$as_ac_var'}
5601		 $as_echo "$as_val"'`
5602   if test "x$as_val" = x""yes; then
5603  cat >>confdefs.h <<_ACEOF
5604#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5605_ACEOF
5606
5607cat >>confdefs.h <<\_ACEOF
5608#define MITSHM 1
5609_ACEOF
5610
5611fi
5612done
5613
5614	LIBS="$save_LIBS"
5615	;;
5616esac
5617
5618ac_config_files="$ac_config_files Makefile"
5619
5620cat >confcache <<\_ACEOF
5621# This file is a shell script that caches the results of configure
5622# tests run on this system so they can be shared between configure
5623# scripts and configure runs, see configure's option --config-cache.
5624# It is not useful on other systems.  If it contains results you don't
5625# want to keep, you may remove or edit it.
5626#
5627# config.status only pays attention to the cache file if you give it
5628# the --recheck option to rerun configure.
5629#
5630# `ac_cv_env_foo' variables (set or unset) will be overridden when
5631# loading this file, other *unset* `ac_cv_foo' will be assigned the
5632# following values.
5633
5634_ACEOF
5635
5636# The following way of writing the cache mishandles newlines in values,
5637# but we know of no workaround that is simple, portable, and efficient.
5638# So, we kill variables containing newlines.
5639# Ultrix sh set writes to stderr and can't be redirected directly,
5640# and sets the high bit in the cache file unless we assign to the vars.
5641(
5642  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5643    eval ac_val=\$$ac_var
5644    case $ac_val in #(
5645    *${as_nl}*)
5646      case $ac_var in #(
5647      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
5648$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5649      esac
5650      case $ac_var in #(
5651      _ | IFS | as_nl) ;; #(
5652      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5653      *) $as_unset $ac_var ;;
5654      esac ;;
5655    esac
5656  done
5657
5658  (set) 2>&1 |
5659    case $as_nl`(ac_space=' '; set) 2>&1` in #(
5660    *${as_nl}ac_space=\ *)
5661      # `set' does not quote correctly, so add quotes (double-quote
5662      # substitution turns \\\\ into \\, and sed turns \\ into \).
5663      sed -n \
5664	"s/'/'\\\\''/g;
5665	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5666      ;; #(
5667    *)
5668      # `set' quotes correctly as required by POSIX, so do not add quotes.
5669      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5670      ;;
5671    esac |
5672    sort
5673) |
5674  sed '
5675     /^ac_cv_env_/b end
5676     t clear
5677     :clear
5678     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5679     t end
5680     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5681     :end' >>confcache
5682if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5683  if test -w "$cache_file"; then
5684    test "x$cache_file" != "x/dev/null" &&
5685      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
5686$as_echo "$as_me: updating cache $cache_file" >&6;}
5687    cat confcache >$cache_file
5688  else
5689    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
5690$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5691  fi
5692fi
5693rm -f confcache
5694
5695test "x$prefix" = xNONE && prefix=$ac_default_prefix
5696# Let make expand exec_prefix.
5697test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5698
5699DEFS=-DHAVE_CONFIG_H
5700
5701ac_libobjs=
5702ac_ltlibobjs=
5703for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5704  # 1. Remove the extension, and $U if already installed.
5705  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5706  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5707  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
5708  #    will be set to the directory where LIBOBJS objects are built.
5709  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5710  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
5711done
5712LIBOBJS=$ac_libobjs
5713
5714LTLIBOBJS=$ac_ltlibobjs
5715
5716
5717 if test -n "$EXEEXT"; then
5718  am__EXEEXT_TRUE=
5719  am__EXEEXT_FALSE='#'
5720else
5721  am__EXEEXT_TRUE='#'
5722  am__EXEEXT_FALSE=
5723fi
5724
5725if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5726  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
5727Usually this means the macro was only invoked conditionally." >&5
5728$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
5729Usually this means the macro was only invoked conditionally." >&2;}
5730   { (exit 1); exit 1; }; }
5731fi
5732if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5733  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
5734Usually this means the macro was only invoked conditionally." >&5
5735$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
5736Usually this means the macro was only invoked conditionally." >&2;}
5737   { (exit 1); exit 1; }; }
5738fi
5739if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5740  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
5741Usually this means the macro was only invoked conditionally." >&5
5742$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
5743Usually this means the macro was only invoked conditionally." >&2;}
5744   { (exit 1); exit 1; }; }
5745fi
5746
5747: ${CONFIG_STATUS=./config.status}
5748ac_write_fail=0
5749ac_clean_files_save=$ac_clean_files
5750ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5751{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5752$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5753cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5754#! $SHELL
5755# Generated by $as_me.
5756# Run this file to recreate the current configuration.
5757# Compiler output produced by configure, useful for debugging
5758# configure, is in config.log if it exists.
5759
5760debug=false
5761ac_cs_recheck=false
5762ac_cs_silent=false
5763SHELL=\${CONFIG_SHELL-$SHELL}
5764_ACEOF
5765
5766cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5767## --------------------- ##
5768## M4sh Initialization.  ##
5769## --------------------- ##
5770
5771# Be more Bourne compatible
5772DUALCASE=1; export DUALCASE # for MKS sh
5773if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5774  emulate sh
5775  NULLCMD=:
5776  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5777  # is contrary to our usage.  Disable this feature.
5778  alias -g '${1+"$@"}'='"$@"'
5779  setopt NO_GLOB_SUBST
5780else
5781  case `(set -o) 2>/dev/null` in
5782  *posix*) set -o posix ;;
5783esac
5784
5785fi
5786
5787
5788
5789
5790# PATH needs CR
5791# Avoid depending upon Character Ranges.
5792as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5793as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5794as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5795as_cr_digits='0123456789'
5796as_cr_alnum=$as_cr_Letters$as_cr_digits
5797
5798as_nl='
5799'
5800export as_nl
5801# Printing a long string crashes Solaris 7 /usr/bin/printf.
5802as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5803as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5804as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5805if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5806  as_echo='printf %s\n'
5807  as_echo_n='printf %s'
5808else
5809  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5810    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5811    as_echo_n='/usr/ucb/echo -n'
5812  else
5813    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5814    as_echo_n_body='eval
5815      arg=$1;
5816      case $arg in
5817      *"$as_nl"*)
5818	expr "X$arg" : "X\\(.*\\)$as_nl";
5819	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5820      esac;
5821      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5822    '
5823    export as_echo_n_body
5824    as_echo_n='sh -c $as_echo_n_body as_echo'
5825  fi
5826  export as_echo_body
5827  as_echo='sh -c $as_echo_body as_echo'
5828fi
5829
5830# The user is always right.
5831if test "${PATH_SEPARATOR+set}" != set; then
5832  PATH_SEPARATOR=:
5833  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5834    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5835      PATH_SEPARATOR=';'
5836  }
5837fi
5838
5839# Support unset when possible.
5840if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5841  as_unset=unset
5842else
5843  as_unset=false
5844fi
5845
5846
5847# IFS
5848# We need space, tab and new line, in precisely that order.  Quoting is
5849# there to prevent editors from complaining about space-tab.
5850# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5851# splitting by setting IFS to empty value.)
5852IFS=" ""	$as_nl"
5853
5854# Find who we are.  Look in the path if we contain no directory separator.
5855case $0 in
5856  *[\\/]* ) as_myself=$0 ;;
5857  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858for as_dir in $PATH
5859do
5860  IFS=$as_save_IFS
5861  test -z "$as_dir" && as_dir=.
5862  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5863done
5864IFS=$as_save_IFS
5865
5866     ;;
5867esac
5868# We did not find ourselves, most probably we were run as `sh COMMAND'
5869# in which case we are not to be found in the path.
5870if test "x$as_myself" = x; then
5871  as_myself=$0
5872fi
5873if test ! -f "$as_myself"; then
5874  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5875  { (exit 1); exit 1; }
5876fi
5877
5878# Work around bugs in pre-3.0 UWIN ksh.
5879for as_var in ENV MAIL MAILPATH
5880do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5881done
5882PS1='$ '
5883PS2='> '
5884PS4='+ '
5885
5886# NLS nuisances.
5887LC_ALL=C
5888export LC_ALL
5889LANGUAGE=C
5890export LANGUAGE
5891
5892# Required to use basename.
5893if expr a : '\(a\)' >/dev/null 2>&1 &&
5894   test "X`expr 00001 : '.*\(...\)'`" = X001; then
5895  as_expr=expr
5896else
5897  as_expr=false
5898fi
5899
5900if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5901  as_basename=basename
5902else
5903  as_basename=false
5904fi
5905
5906
5907# Name of the executable.
5908as_me=`$as_basename -- "$0" ||
5909$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5910	 X"$0" : 'X\(//\)$' \| \
5911	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5912$as_echo X/"$0" |
5913    sed '/^.*\/\([^/][^/]*\)\/*$/{
5914	    s//\1/
5915	    q
5916	  }
5917	  /^X\/\(\/\/\)$/{
5918	    s//\1/
5919	    q
5920	  }
5921	  /^X\/\(\/\).*/{
5922	    s//\1/
5923	    q
5924	  }
5925	  s/.*/./; q'`
5926
5927# CDPATH.
5928$as_unset CDPATH
5929
5930
5931
5932  as_lineno_1=$LINENO
5933  as_lineno_2=$LINENO
5934  test "x$as_lineno_1" != "x$as_lineno_2" &&
5935  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
5936
5937  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5938  # uniformly replaced by the line number.  The first 'sed' inserts a
5939  # line-number line after each line using $LINENO; the second 'sed'
5940  # does the real work.  The second script uses 'N' to pair each
5941  # line-number line with the line containing $LINENO, and appends
5942  # trailing '-' during substitution so that $LINENO is not a special
5943  # case at line end.
5944  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5945  # scripts with optimization help from Paolo Bonzini.  Blame Lee
5946  # E. McMahon (1931-1989) for sed's syntax.  :-)
5947  sed -n '
5948    p
5949    /[$]LINENO/=
5950  ' <$as_myself |
5951    sed '
5952      s/[$]LINENO.*/&-/
5953      t lineno
5954      b
5955      :lineno
5956      N
5957      :loop
5958      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
5959      t loop
5960      s/-\n.*//
5961    ' >$as_me.lineno &&
5962  chmod +x "$as_me.lineno" ||
5963    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
5964   { (exit 1); exit 1; }; }
5965
5966  # Don't try to exec as it changes $[0], causing all sort of problems
5967  # (the dirname of $[0] is not the place where we might find the
5968  # original and so on.  Autoconf is especially sensitive to this).
5969  . "./$as_me.lineno"
5970  # Exit status is that of the last command.
5971  exit
5972}
5973
5974
5975if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5976  as_dirname=dirname
5977else
5978  as_dirname=false
5979fi
5980
5981ECHO_C= ECHO_N= ECHO_T=
5982case `echo -n x` in
5983-n*)
5984  case `echo 'x\c'` in
5985  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
5986  *)   ECHO_C='\c';;
5987  esac;;
5988*)
5989  ECHO_N='-n';;
5990esac
5991if expr a : '\(a\)' >/dev/null 2>&1 &&
5992   test "X`expr 00001 : '.*\(...\)'`" = X001; then
5993  as_expr=expr
5994else
5995  as_expr=false
5996fi
5997
5998rm -f conf$$ conf$$.exe conf$$.file
5999if test -d conf$$.dir; then
6000  rm -f conf$$.dir/conf$$.file
6001else
6002  rm -f conf$$.dir
6003  mkdir conf$$.dir 2>/dev/null
6004fi
6005if (echo >conf$$.file) 2>/dev/null; then
6006  if ln -s conf$$.file conf$$ 2>/dev/null; then
6007    as_ln_s='ln -s'
6008    # ... but there are two gotchas:
6009    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6010    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6011    # In both cases, we have to default to `cp -p'.
6012    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6013      as_ln_s='cp -p'
6014  elif ln conf$$.file conf$$ 2>/dev/null; then
6015    as_ln_s=ln
6016  else
6017    as_ln_s='cp -p'
6018  fi
6019else
6020  as_ln_s='cp -p'
6021fi
6022rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6023rmdir conf$$.dir 2>/dev/null
6024
6025if mkdir -p . 2>/dev/null; then
6026  as_mkdir_p=:
6027else
6028  test -d ./-p && rmdir ./-p
6029  as_mkdir_p=false
6030fi
6031
6032if test -x / >/dev/null 2>&1; then
6033  as_test_x='test -x'
6034else
6035  if ls -dL / >/dev/null 2>&1; then
6036    as_ls_L_option=L
6037  else
6038    as_ls_L_option=
6039  fi
6040  as_test_x='
6041    eval sh -c '\''
6042      if test -d "$1"; then
6043	test -d "$1/.";
6044      else
6045	case $1 in
6046	-*)set "./$1";;
6047	esac;
6048	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
6049	???[sx]*):;;*)false;;esac;fi
6050    '\'' sh
6051  '
6052fi
6053as_executable_p=$as_test_x
6054
6055# Sed expression to map a string onto a valid CPP name.
6056as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6057
6058# Sed expression to map a string onto a valid variable name.
6059as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6060
6061
6062exec 6>&1
6063
6064# Save the log message, to keep $[0] and so on meaningful, and to
6065# report actual input values of CONFIG_FILES etc. instead of their
6066# values after options handling.
6067ac_log="
6068This file was extended by x11perf $as_me 1.5.1, which was
6069generated by GNU Autoconf 2.63.  Invocation command line was
6070
6071  CONFIG_FILES    = $CONFIG_FILES
6072  CONFIG_HEADERS  = $CONFIG_HEADERS
6073  CONFIG_LINKS    = $CONFIG_LINKS
6074  CONFIG_COMMANDS = $CONFIG_COMMANDS
6075  $ $0 $@
6076
6077on `(hostname || uname -n) 2>/dev/null | sed 1q`
6078"
6079
6080_ACEOF
6081
6082case $ac_config_files in *"
6083"*) set x $ac_config_files; shift; ac_config_files=$*;;
6084esac
6085
6086case $ac_config_headers in *"
6087"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6088esac
6089
6090
6091cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6092# Files that config.status was made for.
6093config_files="$ac_config_files"
6094config_headers="$ac_config_headers"
6095config_commands="$ac_config_commands"
6096
6097_ACEOF
6098
6099cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6100ac_cs_usage="\
6101\`$as_me' instantiates files from templates according to the
6102current configuration.
6103
6104Usage: $0 [OPTION]... [FILE]...
6105
6106  -h, --help       print this help, then exit
6107  -V, --version    print version number and configuration settings, then exit
6108  -q, --quiet, --silent
6109                   do not print progress messages
6110  -d, --debug      don't remove temporary files
6111      --recheck    update $as_me by reconfiguring in the same conditions
6112      --file=FILE[:TEMPLATE]
6113                   instantiate the configuration file FILE
6114      --header=FILE[:TEMPLATE]
6115                   instantiate the configuration header FILE
6116
6117Configuration files:
6118$config_files
6119
6120Configuration headers:
6121$config_headers
6122
6123Configuration commands:
6124$config_commands
6125
6126Report bugs to <bug-autoconf@gnu.org>."
6127
6128_ACEOF
6129cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6130ac_cs_version="\\
6131x11perf config.status 1.5.1
6132configured by $0, generated by GNU Autoconf 2.63,
6133  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6134
6135Copyright (C) 2008 Free Software Foundation, Inc.
6136This config.status script is free software; the Free Software Foundation
6137gives unlimited permission to copy, distribute and modify it."
6138
6139ac_pwd='$ac_pwd'
6140srcdir='$srcdir'
6141INSTALL='$INSTALL'
6142MKDIR_P='$MKDIR_P'
6143AWK='$AWK'
6144test -n "\$AWK" || AWK=awk
6145_ACEOF
6146
6147cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6148# The default lists apply if the user does not specify any file.
6149ac_need_defaults=:
6150while test $# != 0
6151do
6152  case $1 in
6153  --*=*)
6154    ac_option=`expr "X$1" : 'X\([^=]*\)='`
6155    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6156    ac_shift=:
6157    ;;
6158  *)
6159    ac_option=$1
6160    ac_optarg=$2
6161    ac_shift=shift
6162    ;;
6163  esac
6164
6165  case $ac_option in
6166  # Handling of the options.
6167  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6168    ac_cs_recheck=: ;;
6169  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6170    $as_echo "$ac_cs_version"; exit ;;
6171  --debug | --debu | --deb | --de | --d | -d )
6172    debug=: ;;
6173  --file | --fil | --fi | --f )
6174    $ac_shift
6175    case $ac_optarg in
6176    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6177    esac
6178    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
6179    ac_need_defaults=false;;
6180  --header | --heade | --head | --hea )
6181    $ac_shift
6182    case $ac_optarg in
6183    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6184    esac
6185    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
6186    ac_need_defaults=false;;
6187  --he | --h)
6188    # Conflict between --help and --header
6189    { $as_echo "$as_me: error: ambiguous option: $1
6190Try \`$0 --help' for more information." >&2
6191   { (exit 1); exit 1; }; };;
6192  --help | --hel | -h )
6193    $as_echo "$ac_cs_usage"; exit ;;
6194  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6195  | -silent | --silent | --silen | --sile | --sil | --si | --s)
6196    ac_cs_silent=: ;;
6197
6198  # This is an error.
6199  -*) { $as_echo "$as_me: error: unrecognized option: $1
6200Try \`$0 --help' for more information." >&2
6201   { (exit 1); exit 1; }; } ;;
6202
6203  *) ac_config_targets="$ac_config_targets $1"
6204     ac_need_defaults=false ;;
6205
6206  esac
6207  shift
6208done
6209
6210ac_configure_extra_args=
6211
6212if $ac_cs_silent; then
6213  exec 6>/dev/null
6214  ac_configure_extra_args="$ac_configure_extra_args --silent"
6215fi
6216
6217_ACEOF
6218cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6219if \$ac_cs_recheck; then
6220  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6221  shift
6222  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6223  CONFIG_SHELL='$SHELL'
6224  export CONFIG_SHELL
6225  exec "\$@"
6226fi
6227
6228_ACEOF
6229cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6230exec 5>>config.log
6231{
6232  echo
6233  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6234## Running $as_me. ##
6235_ASBOX
6236  $as_echo "$ac_log"
6237} >&5
6238
6239_ACEOF
6240cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6241#
6242# INIT-COMMANDS
6243#
6244AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6245
6246_ACEOF
6247
6248cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6249
6250# Handling of arguments.
6251for ac_config_target in $ac_config_targets
6252do
6253  case $ac_config_target in
6254    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6255    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6256    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6257
6258  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6259$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6260   { (exit 1); exit 1; }; };;
6261  esac
6262done
6263
6264
6265# If the user did not use the arguments to specify the items to instantiate,
6266# then the envvar interface is used.  Set only those that are not.
6267# We use the long form for the default assignment because of an extremely
6268# bizarre bug on SunOS 4.1.3.
6269if $ac_need_defaults; then
6270  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6271  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6272  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6273fi
6274
6275# Have a temporary directory for convenience.  Make it in the build tree
6276# simply because there is no reason against having it here, and in addition,
6277# creating and moving files from /tmp can sometimes cause problems.
6278# Hook for its removal unless debugging.
6279# Note that there is a small window in which the directory will not be cleaned:
6280# after its creation but before its name has been assigned to `$tmp'.
6281$debug ||
6282{
6283  tmp=
6284  trap 'exit_status=$?
6285  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6286' 0
6287  trap '{ (exit 1); exit 1; }' 1 2 13 15
6288}
6289# Create a (secure) tmp directory for tmp files.
6290
6291{
6292  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6293  test -n "$tmp" && test -d "$tmp"
6294}  ||
6295{
6296  tmp=./conf$$-$RANDOM
6297  (umask 077 && mkdir "$tmp")
6298} ||
6299{
6300   $as_echo "$as_me: cannot create a temporary directory in ." >&2
6301   { (exit 1); exit 1; }
6302}
6303
6304# Set up the scripts for CONFIG_FILES section.
6305# No need to generate them if there are no CONFIG_FILES.
6306# This happens for instance with `./config.status config.h'.
6307if test -n "$CONFIG_FILES"; then
6308
6309
6310ac_cr='
6311'
6312ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6313if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6314  ac_cs_awk_cr='\\r'
6315else
6316  ac_cs_awk_cr=$ac_cr
6317fi
6318
6319echo 'BEGIN {' >"$tmp/subs1.awk" &&
6320_ACEOF
6321
6322
6323{
6324  echo "cat >conf$$subs.awk <<_ACEOF" &&
6325  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6326  echo "_ACEOF"
6327} >conf$$subs.sh ||
6328  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6329$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6330   { (exit 1); exit 1; }; }
6331ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6332ac_delim='%!_!# '
6333for ac_last_try in false false false false false :; do
6334  . ./conf$$subs.sh ||
6335    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6336$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6337   { (exit 1); exit 1; }; }
6338
6339  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6340  if test $ac_delim_n = $ac_delim_num; then
6341    break
6342  elif $ac_last_try; then
6343    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6344$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6345   { (exit 1); exit 1; }; }
6346  else
6347    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6348  fi
6349done
6350rm -f conf$$subs.sh
6351
6352cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6353cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
6354_ACEOF
6355sed -n '
6356h
6357s/^/S["/; s/!.*/"]=/
6358p
6359g
6360s/^[^!]*!//
6361:repl
6362t repl
6363s/'"$ac_delim"'$//
6364t delim
6365:nl
6366h
6367s/\(.\{148\}\).*/\1/
6368t more1
6369s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6370p
6371n
6372b repl
6373:more1
6374s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6375p
6376g
6377s/.\{148\}//
6378t nl
6379:delim
6380h
6381s/\(.\{148\}\).*/\1/
6382t more2
6383s/["\\]/\\&/g; s/^/"/; s/$/"/
6384p
6385b
6386:more2
6387s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6388p
6389g
6390s/.\{148\}//
6391t delim
6392' <conf$$subs.awk | sed '
6393/^[^""]/{
6394  N
6395  s/\n//
6396}
6397' >>$CONFIG_STATUS || ac_write_fail=1
6398rm -f conf$$subs.awk
6399cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6400_ACAWK
6401cat >>"\$tmp/subs1.awk" <<_ACAWK &&
6402  for (key in S) S_is_set[key] = 1
6403  FS = ""
6404
6405}
6406{
6407  line = $ 0
6408  nfields = split(line, field, "@")
6409  substed = 0
6410  len = length(field[1])
6411  for (i = 2; i < nfields; i++) {
6412    key = field[i]
6413    keylen = length(key)
6414    if (S_is_set[key]) {
6415      value = S[key]
6416      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6417      len += length(value) + length(field[++i])
6418      substed = 1
6419    } else
6420      len += 1 + keylen
6421  }
6422
6423  print line
6424}
6425
6426_ACAWK
6427_ACEOF
6428cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6429if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6430  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6431else
6432  cat
6433fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
6434  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
6435$as_echo "$as_me: error: could not setup config files machinery" >&2;}
6436   { (exit 1); exit 1; }; }
6437_ACEOF
6438
6439# VPATH may cause trouble with some makes, so we remove $(srcdir),
6440# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6441# trailing colons and then remove the whole line if VPATH becomes empty
6442# (actually we leave an empty line to preserve line numbers).
6443if test "x$srcdir" = x.; then
6444  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
6445s/:*\$(srcdir):*/:/
6446s/:*\${srcdir}:*/:/
6447s/:*@srcdir@:*/:/
6448s/^\([^=]*=[	 ]*\):*/\1/
6449s/:*$//
6450s/^[^=]*=[	 ]*$//
6451}'
6452fi
6453
6454cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6455fi # test -n "$CONFIG_FILES"
6456
6457# Set up the scripts for CONFIG_HEADERS section.
6458# No need to generate them if there are no CONFIG_HEADERS.
6459# This happens for instance with `./config.status Makefile'.
6460if test -n "$CONFIG_HEADERS"; then
6461cat >"$tmp/defines.awk" <<\_ACAWK ||
6462BEGIN {
6463_ACEOF
6464
6465# Transform confdefs.h into an awk script `defines.awk', embedded as
6466# here-document in config.status, that substitutes the proper values into
6467# config.h.in to produce config.h.
6468
6469# Create a delimiter string that does not exist in confdefs.h, to ease
6470# handling of long lines.
6471ac_delim='%!_!# '
6472for ac_last_try in false false :; do
6473  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
6474  if test -z "$ac_t"; then
6475    break
6476  elif $ac_last_try; then
6477    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
6478$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
6479   { (exit 1); exit 1; }; }
6480  else
6481    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6482  fi
6483done
6484
6485# For the awk script, D is an array of macro values keyed by name,
6486# likewise P contains macro parameters if any.  Preserve backslash
6487# newline sequences.
6488
6489ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6490sed -n '
6491s/.\{148\}/&'"$ac_delim"'/g
6492t rset
6493:rset
6494s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
6495t def
6496d
6497:def
6498s/\\$//
6499t bsnl
6500s/["\\]/\\&/g
6501s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
6502D["\1"]=" \3"/p
6503s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
6504d
6505:bsnl
6506s/["\\]/\\&/g
6507s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
6508D["\1"]=" \3\\\\\\n"\\/p
6509t cont
6510s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6511t cont
6512d
6513:cont
6514n
6515s/.\{148\}/&'"$ac_delim"'/g
6516t clear
6517:clear
6518s/\\$//
6519t bsnlc
6520s/["\\]/\\&/g; s/^/"/; s/$/"/p
6521d
6522:bsnlc
6523s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6524b cont
6525' <confdefs.h | sed '
6526s/'"$ac_delim"'/"\\\
6527"/g' >>$CONFIG_STATUS || ac_write_fail=1
6528
6529cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6530  for (key in D) D_is_set[key] = 1
6531  FS = ""
6532}
6533/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6534  line = \$ 0
6535  split(line, arg, " ")
6536  if (arg[1] == "#") {
6537    defundef = arg[2]
6538    mac1 = arg[3]
6539  } else {
6540    defundef = substr(arg[1], 2)
6541    mac1 = arg[2]
6542  }
6543  split(mac1, mac2, "(") #)
6544  macro = mac2[1]
6545  prefix = substr(line, 1, index(line, defundef) - 1)
6546  if (D_is_set[macro]) {
6547    # Preserve the white space surrounding the "#".
6548    print prefix "define", macro P[macro] D[macro]
6549    next
6550  } else {
6551    # Replace #undef with comments.  This is necessary, for example,
6552    # in the case of _POSIX_SOURCE, which is predefined and required
6553    # on some systems where configure will not decide to define it.
6554    if (defundef == "undef") {
6555      print "/*", prefix defundef, macro, "*/"
6556      next
6557    }
6558  }
6559}
6560{ print }
6561_ACAWK
6562_ACEOF
6563cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6564  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
6565$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
6566   { (exit 1); exit 1; }; }
6567fi # test -n "$CONFIG_HEADERS"
6568
6569
6570eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
6571shift
6572for ac_tag
6573do
6574  case $ac_tag in
6575  :[FHLC]) ac_mode=$ac_tag; continue;;
6576  esac
6577  case $ac_mode$ac_tag in
6578  :[FHL]*:*);;
6579  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
6580$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
6581   { (exit 1); exit 1; }; };;
6582  :[FH]-) ac_tag=-:-;;
6583  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6584  esac
6585  ac_save_IFS=$IFS
6586  IFS=:
6587  set x $ac_tag
6588  IFS=$ac_save_IFS
6589  shift
6590  ac_file=$1
6591  shift
6592
6593  case $ac_mode in
6594  :L) ac_source=$1;;
6595  :[FH])
6596    ac_file_inputs=
6597    for ac_f
6598    do
6599      case $ac_f in
6600      -) ac_f="$tmp/stdin";;
6601      *) # Look for the file first in the build tree, then in the source tree
6602	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
6603	 # because $ac_f cannot contain `:'.
6604	 test -f "$ac_f" ||
6605	   case $ac_f in
6606	   [\\/$]*) false;;
6607	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6608	   esac ||
6609	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
6610$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
6611   { (exit 1); exit 1; }; };;
6612      esac
6613      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6614      ac_file_inputs="$ac_file_inputs '$ac_f'"
6615    done
6616
6617    # Let's still pretend it is `configure' which instantiates (i.e., don't
6618    # use $as_me), people would be surprised to read:
6619    #    /* config.h.  Generated by config.status.  */
6620    configure_input='Generated from '`
6621	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6622	`' by configure.'
6623    if test x"$ac_file" != x-; then
6624      configure_input="$ac_file.  $configure_input"
6625      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
6626$as_echo "$as_me: creating $ac_file" >&6;}
6627    fi
6628    # Neutralize special characters interpreted by sed in replacement strings.
6629    case $configure_input in #(
6630    *\&* | *\|* | *\\* )
6631       ac_sed_conf_input=`$as_echo "$configure_input" |
6632       sed 's/[\\\\&|]/\\\\&/g'`;; #(
6633    *) ac_sed_conf_input=$configure_input;;
6634    esac
6635
6636    case $ac_tag in
6637    *:-:* | *:-) cat >"$tmp/stdin" \
6638      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6639$as_echo "$as_me: error: could not create $ac_file" >&2;}
6640   { (exit 1); exit 1; }; } ;;
6641    esac
6642    ;;
6643  esac
6644
6645  ac_dir=`$as_dirname -- "$ac_file" ||
6646$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6647	 X"$ac_file" : 'X\(//\)[^/]' \| \
6648	 X"$ac_file" : 'X\(//\)$' \| \
6649	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6650$as_echo X"$ac_file" |
6651    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6652	    s//\1/
6653	    q
6654	  }
6655	  /^X\(\/\/\)[^/].*/{
6656	    s//\1/
6657	    q
6658	  }
6659	  /^X\(\/\/\)$/{
6660	    s//\1/
6661	    q
6662	  }
6663	  /^X\(\/\).*/{
6664	    s//\1/
6665	    q
6666	  }
6667	  s/.*/./; q'`
6668  { as_dir="$ac_dir"
6669  case $as_dir in #(
6670  -*) as_dir=./$as_dir;;
6671  esac
6672  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
6673    as_dirs=
6674    while :; do
6675      case $as_dir in #(
6676      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6677      *) as_qdir=$as_dir;;
6678      esac
6679      as_dirs="'$as_qdir' $as_dirs"
6680      as_dir=`$as_dirname -- "$as_dir" ||
6681$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6682	 X"$as_dir" : 'X\(//\)[^/]' \| \
6683	 X"$as_dir" : 'X\(//\)$' \| \
6684	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6685$as_echo X"$as_dir" |
6686    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6687	    s//\1/
6688	    q
6689	  }
6690	  /^X\(\/\/\)[^/].*/{
6691	    s//\1/
6692	    q
6693	  }
6694	  /^X\(\/\/\)$/{
6695	    s//\1/
6696	    q
6697	  }
6698	  /^X\(\/\).*/{
6699	    s//\1/
6700	    q
6701	  }
6702	  s/.*/./; q'`
6703      test -d "$as_dir" && break
6704    done
6705    test -z "$as_dirs" || eval "mkdir $as_dirs"
6706  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
6707$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
6708   { (exit 1); exit 1; }; }; }
6709  ac_builddir=.
6710
6711case "$ac_dir" in
6712.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6713*)
6714  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6715  # A ".." for each directory in $ac_dir_suffix.
6716  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6717  case $ac_top_builddir_sub in
6718  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6719  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6720  esac ;;
6721esac
6722ac_abs_top_builddir=$ac_pwd
6723ac_abs_builddir=$ac_pwd$ac_dir_suffix
6724# for backward compatibility:
6725ac_top_builddir=$ac_top_build_prefix
6726
6727case $srcdir in
6728  .)  # We are building in place.
6729    ac_srcdir=.
6730    ac_top_srcdir=$ac_top_builddir_sub
6731    ac_abs_top_srcdir=$ac_pwd ;;
6732  [\\/]* | ?:[\\/]* )  # Absolute name.
6733    ac_srcdir=$srcdir$ac_dir_suffix;
6734    ac_top_srcdir=$srcdir
6735    ac_abs_top_srcdir=$srcdir ;;
6736  *) # Relative name.
6737    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6738    ac_top_srcdir=$ac_top_build_prefix$srcdir
6739    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6740esac
6741ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6742
6743
6744  case $ac_mode in
6745  :F)
6746  #
6747  # CONFIG_FILE
6748  #
6749
6750  case $INSTALL in
6751  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6752  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6753  esac
6754  ac_MKDIR_P=$MKDIR_P
6755  case $MKDIR_P in
6756  [\\/$]* | ?:[\\/]* ) ;;
6757  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6758  esac
6759_ACEOF
6760
6761cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6762# If the template does not know about datarootdir, expand it.
6763# FIXME: This hack should be removed a few years after 2.60.
6764ac_datarootdir_hack=; ac_datarootdir_seen=
6765
6766ac_sed_dataroot='
6767/datarootdir/ {
6768  p
6769  q
6770}
6771/@datadir@/p
6772/@docdir@/p
6773/@infodir@/p
6774/@localedir@/p
6775/@mandir@/p
6776'
6777case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6778*datarootdir*) ac_datarootdir_seen=yes;;
6779*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6780  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6781$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6782_ACEOF
6783cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6784  ac_datarootdir_hack='
6785  s&@datadir@&$datadir&g
6786  s&@docdir@&$docdir&g
6787  s&@infodir@&$infodir&g
6788  s&@localedir@&$localedir&g
6789  s&@mandir@&$mandir&g
6790    s&\\\${datarootdir}&$datarootdir&g' ;;
6791esac
6792_ACEOF
6793
6794# Neutralize VPATH when `$srcdir' = `.'.
6795# Shell code in configure.ac might set extrasub.
6796# FIXME: do we really want to maintain this feature?
6797cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6798ac_sed_extra="$ac_vpsub
6799$extrasub
6800_ACEOF
6801cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6802:t
6803/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6804s|@configure_input@|$ac_sed_conf_input|;t t
6805s&@top_builddir@&$ac_top_builddir_sub&;t t
6806s&@top_build_prefix@&$ac_top_build_prefix&;t t
6807s&@srcdir@&$ac_srcdir&;t t
6808s&@abs_srcdir@&$ac_abs_srcdir&;t t
6809s&@top_srcdir@&$ac_top_srcdir&;t t
6810s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6811s&@builddir@&$ac_builddir&;t t
6812s&@abs_builddir@&$ac_abs_builddir&;t t
6813s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6814s&@INSTALL@&$ac_INSTALL&;t t
6815s&@MKDIR_P@&$ac_MKDIR_P&;t t
6816$ac_datarootdir_hack
6817"
6818eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
6819  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6820$as_echo "$as_me: error: could not create $ac_file" >&2;}
6821   { (exit 1); exit 1; }; }
6822
6823test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6824  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6825  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6826  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6827which seems to be undefined.  Please make sure it is defined." >&5
6828$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6829which seems to be undefined.  Please make sure it is defined." >&2;}
6830
6831  rm -f "$tmp/stdin"
6832  case $ac_file in
6833  -) cat "$tmp/out" && rm -f "$tmp/out";;
6834  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6835  esac \
6836  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6837$as_echo "$as_me: error: could not create $ac_file" >&2;}
6838   { (exit 1); exit 1; }; }
6839 ;;
6840  :H)
6841  #
6842  # CONFIG_HEADER
6843  #
6844  if test x"$ac_file" != x-; then
6845    {
6846      $as_echo "/* $configure_input  */" \
6847      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
6848    } >"$tmp/config.h" \
6849      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6850$as_echo "$as_me: error: could not create $ac_file" >&2;}
6851   { (exit 1); exit 1; }; }
6852    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
6853      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6854$as_echo "$as_me: $ac_file is unchanged" >&6;}
6855    else
6856      rm -f "$ac_file"
6857      mv "$tmp/config.h" "$ac_file" \
6858	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6859$as_echo "$as_me: error: could not create $ac_file" >&2;}
6860   { (exit 1); exit 1; }; }
6861    fi
6862  else
6863    $as_echo "/* $configure_input  */" \
6864      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
6865      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
6866$as_echo "$as_me: error: could not create -" >&2;}
6867   { (exit 1); exit 1; }; }
6868  fi
6869# Compute "$ac_file"'s index in $config_headers.
6870_am_arg="$ac_file"
6871_am_stamp_count=1
6872for _am_header in $config_headers :; do
6873  case $_am_header in
6874    $_am_arg | $_am_arg:* )
6875      break ;;
6876    * )
6877      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6878  esac
6879done
6880echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
6881$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6882	 X"$_am_arg" : 'X\(//\)[^/]' \| \
6883	 X"$_am_arg" : 'X\(//\)$' \| \
6884	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
6885$as_echo X"$_am_arg" |
6886    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6887	    s//\1/
6888	    q
6889	  }
6890	  /^X\(\/\/\)[^/].*/{
6891	    s//\1/
6892	    q
6893	  }
6894	  /^X\(\/\/\)$/{
6895	    s//\1/
6896	    q
6897	  }
6898	  /^X\(\/\).*/{
6899	    s//\1/
6900	    q
6901	  }
6902	  s/.*/./; q'`/stamp-h$_am_stamp_count
6903 ;;
6904
6905  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
6906$as_echo "$as_me: executing $ac_file commands" >&6;}
6907 ;;
6908  esac
6909
6910
6911  case $ac_file$ac_mode in
6912    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
6913  # Autoconf 2.62 quotes --file arguments for eval, but not when files
6914  # are listed without --file.  Let's play safe and only enable the eval
6915  # if we detect the quoting.
6916  case $CONFIG_FILES in
6917  *\'*) eval set x "$CONFIG_FILES" ;;
6918  *)   set x $CONFIG_FILES ;;
6919  esac
6920  shift
6921  for mf
6922  do
6923    # Strip MF so we end up with the name of the file.
6924    mf=`echo "$mf" | sed -e 's/:.*$//'`
6925    # Check whether this is an Automake generated Makefile or not.
6926    # We used to match only the files named `Makefile.in', but
6927    # some people rename them; so instead we look at the file content.
6928    # Grep'ing the first line is not enough: some people post-process
6929    # each Makefile.in and add a new line on top of each file to say so.
6930    # Grep'ing the whole file is not good either: AIX grep has a line
6931    # limit of 2048, but all sed's we know have understand at least 4000.
6932    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
6933      dirpart=`$as_dirname -- "$mf" ||
6934$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6935	 X"$mf" : 'X\(//\)[^/]' \| \
6936	 X"$mf" : 'X\(//\)$' \| \
6937	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
6938$as_echo X"$mf" |
6939    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6940	    s//\1/
6941	    q
6942	  }
6943	  /^X\(\/\/\)[^/].*/{
6944	    s//\1/
6945	    q
6946	  }
6947	  /^X\(\/\/\)$/{
6948	    s//\1/
6949	    q
6950	  }
6951	  /^X\(\/\).*/{
6952	    s//\1/
6953	    q
6954	  }
6955	  s/.*/./; q'`
6956    else
6957      continue
6958    fi
6959    # Extract the definition of DEPDIR, am__include, and am__quote
6960    # from the Makefile without running `make'.
6961    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6962    test -z "$DEPDIR" && continue
6963    am__include=`sed -n 's/^am__include = //p' < "$mf"`
6964    test -z "am__include" && continue
6965    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6966    # When using ansi2knr, U may be empty or an underscore; expand it
6967    U=`sed -n 's/^U = //p' < "$mf"`
6968    # Find all dependency output files, they are included files with
6969    # $(DEPDIR) in their names.  We invoke sed twice because it is the
6970    # simplest approach to changing $(DEPDIR) to its actual value in the
6971    # expansion.
6972    for file in `sed -n "
6973      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6974	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6975      # Make sure the directory exists.
6976      test -f "$dirpart/$file" && continue
6977      fdir=`$as_dirname -- "$file" ||
6978$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6979	 X"$file" : 'X\(//\)[^/]' \| \
6980	 X"$file" : 'X\(//\)$' \| \
6981	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
6982$as_echo X"$file" |
6983    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6984	    s//\1/
6985	    q
6986	  }
6987	  /^X\(\/\/\)[^/].*/{
6988	    s//\1/
6989	    q
6990	  }
6991	  /^X\(\/\/\)$/{
6992	    s//\1/
6993	    q
6994	  }
6995	  /^X\(\/\).*/{
6996	    s//\1/
6997	    q
6998	  }
6999	  s/.*/./; q'`
7000      { as_dir=$dirpart/$fdir
7001  case $as_dir in #(
7002  -*) as_dir=./$as_dir;;
7003  esac
7004  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
7005    as_dirs=
7006    while :; do
7007      case $as_dir in #(
7008      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7009      *) as_qdir=$as_dir;;
7010      esac
7011      as_dirs="'$as_qdir' $as_dirs"
7012      as_dir=`$as_dirname -- "$as_dir" ||
7013$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7014	 X"$as_dir" : 'X\(//\)[^/]' \| \
7015	 X"$as_dir" : 'X\(//\)$' \| \
7016	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7017$as_echo X"$as_dir" |
7018    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7019	    s//\1/
7020	    q
7021	  }
7022	  /^X\(\/\/\)[^/].*/{
7023	    s//\1/
7024	    q
7025	  }
7026	  /^X\(\/\/\)$/{
7027	    s//\1/
7028	    q
7029	  }
7030	  /^X\(\/\).*/{
7031	    s//\1/
7032	    q
7033	  }
7034	  s/.*/./; q'`
7035      test -d "$as_dir" && break
7036    done
7037    test -z "$as_dirs" || eval "mkdir $as_dirs"
7038  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
7039$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
7040   { (exit 1); exit 1; }; }; }
7041      # echo "creating $dirpart/$file"
7042      echo '# dummy' > "$dirpart/$file"
7043    done
7044  done
7045}
7046 ;;
7047
7048  esac
7049done # for ac_tag
7050
7051
7052{ (exit 0); exit 0; }
7053_ACEOF
7054chmod +x $CONFIG_STATUS
7055ac_clean_files=$ac_clean_files_save
7056
7057test $ac_write_fail = 0 ||
7058  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
7059$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
7060   { (exit 1); exit 1; }; }
7061
7062
7063# configure is writing to config.log, and then calls config.status.
7064# config.status does its own redirection, appending to config.log.
7065# Unfortunately, on DOS this fails, as config.log is still kept open
7066# by configure, so config.status won't be able to write to it; its
7067# output is simply discarded.  So we exec the FD to /dev/null,
7068# effectively closing config.log, so it can be properly (re)opened and
7069# appended to by config.status.  When coming back to configure, we
7070# need to make the FD available again.
7071if test "$no_create" != yes; then
7072  ac_cs_success=:
7073  ac_config_status_args=
7074  test "$silent" = yes &&
7075    ac_config_status_args="$ac_config_status_args --quiet"
7076  exec 5>/dev/null
7077  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7078  exec 5>>config.log
7079  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7080  # would make configure fail if this is the last instruction.
7081  $ac_cs_success || { (exit 1); exit 1; }
7082fi
7083if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7084  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7085$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7086fi
7087
7088