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