configure revision 8223e2f2
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for xorg-server 1.9.5.
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, 2010 Free Software
10# Foundation, 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.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1
178
179  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183    PATH=/empty FPATH=/empty; export PATH FPATH
184    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186  if (eval "$as_required") 2>/dev/null; then :
187  as_have_required=yes
188else
189  as_have_required=no
190fi
191  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193else
194  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195as_found=false
196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197do
198  IFS=$as_save_IFS
199  test -z "$as_dir" && as_dir=.
200  as_found=:
201  case $as_dir in #(
202	 /*)
203	   for as_base in sh bash ksh sh5; do
204	     # Try only shells that exist, to save several forks.
205	     as_shell=$as_dir/$as_base
206	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208  CONFIG_SHELL=$as_shell as_have_required=yes
209		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210  break 2
211fi
212fi
213	   done;;
214       esac
215  as_found=false
216done
217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219  CONFIG_SHELL=$SHELL as_have_required=yes
220fi; }
221IFS=$as_save_IFS
222
223
224      if test "x$CONFIG_SHELL" != x; then :
225  # We cannot yet assume a decent shell, so we have to provide a
226	# neutralization value for shells without unset; and this also
227	# works around shells that cannot unset nonexistent variables.
228	# Preserve -v and -x to the replacement shell.
229	BASH_ENV=/dev/null
230	ENV=/dev/null
231	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232	export CONFIG_SHELL
233	case $- in # ((((
234	  *v*x* | *x*v* ) as_opts=-vx ;;
235	  *v* ) as_opts=-v ;;
236	  *x* ) as_opts=-x ;;
237	  * ) as_opts= ;;
238	esac
239	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240fi
241
242    if test x$as_have_required = xno; then :
243  $as_echo "$0: This script requires a shell more modern than all"
244  $as_echo "$0: the shells that I found on your system."
245  if test x${ZSH_VERSION+set} = xset ; then
246    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248  else
249    $as_echo "$0: Please tell bug-autoconf@gnu.org and
250$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
251$0: about your system, including any error possibly output
252$0: before this message. Then install a modern shell, or
253$0: manually run the script under such a shell if you do
254$0: have one."
255  fi
256  exit 1
257fi
258fi
259fi
260SHELL=${CONFIG_SHELL-/bin/sh}
261export SHELL
262# Unset more variables known to interfere with behavior of common tools.
263CLICOLOR_FORCE= GREP_OPTIONS=
264unset CLICOLOR_FORCE GREP_OPTIONS
265
266## --------------------- ##
267## M4sh Shell Functions. ##
268## --------------------- ##
269# as_fn_unset VAR
270# ---------------
271# Portably unset VAR.
272as_fn_unset ()
273{
274  { eval $1=; unset $1;}
275}
276as_unset=as_fn_unset
277
278# as_fn_set_status STATUS
279# -----------------------
280# Set $? to STATUS, without forking.
281as_fn_set_status ()
282{
283  return $1
284} # as_fn_set_status
285
286# as_fn_exit STATUS
287# -----------------
288# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289as_fn_exit ()
290{
291  set +e
292  as_fn_set_status $1
293  exit $1
294} # as_fn_exit
295
296# as_fn_mkdir_p
297# -------------
298# Create "$as_dir" as a directory, including parents if necessary.
299as_fn_mkdir_p ()
300{
301
302  case $as_dir in #(
303  -*) as_dir=./$as_dir;;
304  esac
305  test -d "$as_dir" || eval $as_mkdir_p || {
306    as_dirs=
307    while :; do
308      case $as_dir in #(
309      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310      *) as_qdir=$as_dir;;
311      esac
312      as_dirs="'$as_qdir' $as_dirs"
313      as_dir=`$as_dirname -- "$as_dir" ||
314$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315	 X"$as_dir" : 'X\(//\)[^/]' \| \
316	 X"$as_dir" : 'X\(//\)$' \| \
317	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318$as_echo X"$as_dir" |
319    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320	    s//\1/
321	    q
322	  }
323	  /^X\(\/\/\)[^/].*/{
324	    s//\1/
325	    q
326	  }
327	  /^X\(\/\/\)$/{
328	    s//\1/
329	    q
330	  }
331	  /^X\(\/\).*/{
332	    s//\1/
333	    q
334	  }
335	  s/.*/./; q'`
336      test -d "$as_dir" && break
337    done
338    test -z "$as_dirs" || eval "mkdir $as_dirs"
339  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340
341
342} # as_fn_mkdir_p
343# as_fn_append VAR VALUE
344# ----------------------
345# Append the text in VALUE to the end of the definition contained in VAR. Take
346# advantage of any shell optimizations that allow amortized linear growth over
347# repeated appends, instead of the typical quadratic growth present in naive
348# implementations.
349if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350  eval 'as_fn_append ()
351  {
352    eval $1+=\$2
353  }'
354else
355  as_fn_append ()
356  {
357    eval $1=\$$1\$2
358  }
359fi # as_fn_append
360
361# as_fn_arith ARG...
362# ------------------
363# Perform arithmetic evaluation on the ARGs, and store the result in the
364# global $as_val. Take advantage of shells that can avoid forks. The arguments
365# must be portable across $(()) and expr.
366if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367  eval 'as_fn_arith ()
368  {
369    as_val=$(( $* ))
370  }'
371else
372  as_fn_arith ()
373  {
374    as_val=`expr "$@" || test $? -eq 1`
375  }
376fi # as_fn_arith
377
378
379# as_fn_error STATUS ERROR [LINENO LOG_FD]
380# ----------------------------------------
381# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383# script with STATUS, using 1 if that was 0.
384as_fn_error ()
385{
386  as_status=$1; test $as_status -eq 0 && as_status=1
387  if test "$4"; then
388    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390  fi
391  $as_echo "$as_me: error: $2" >&2
392  as_fn_exit $as_status
393} # as_fn_error
394
395if expr a : '\(a\)' >/dev/null 2>&1 &&
396   test "X`expr 00001 : '.*\(...\)'`" = X001; then
397  as_expr=expr
398else
399  as_expr=false
400fi
401
402if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403  as_basename=basename
404else
405  as_basename=false
406fi
407
408if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
409  as_dirname=dirname
410else
411  as_dirname=false
412fi
413
414as_me=`$as_basename -- "$0" ||
415$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416	 X"$0" : 'X\(//\)$' \| \
417	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418$as_echo X/"$0" |
419    sed '/^.*\/\([^/][^/]*\)\/*$/{
420	    s//\1/
421	    q
422	  }
423	  /^X\/\(\/\/\)$/{
424	    s//\1/
425	    q
426	  }
427	  /^X\/\(\/\).*/{
428	    s//\1/
429	    q
430	  }
431	  s/.*/./; q'`
432
433# Avoid depending upon Character Ranges.
434as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437as_cr_digits='0123456789'
438as_cr_alnum=$as_cr_Letters$as_cr_digits
439
440
441  as_lineno_1=$LINENO as_lineno_1a=$LINENO
442  as_lineno_2=$LINENO as_lineno_2a=$LINENO
443  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
446  sed -n '
447    p
448    /[$]LINENO/=
449  ' <$as_myself |
450    sed '
451      s/[$]LINENO.*/&-/
452      t lineno
453      b
454      :lineno
455      N
456      :loop
457      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458      t loop
459      s/-\n.*//
460    ' >$as_me.lineno &&
461  chmod +x "$as_me.lineno" ||
462    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
464  # Don't try to exec as it changes $[0], causing all sort of problems
465  # (the dirname of $[0] is not the place where we might find the
466  # original and so on.  Autoconf is especially sensitive to this).
467  . "./$as_me.lineno"
468  # Exit status is that of the last command.
469  exit
470}
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in #(((((
474-n*)
475  case `echo 'xy\c'` in
476  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
477  xy)  ECHO_C='\c';;
478  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
479       ECHO_T='	';;
480  esac;;
481*)
482  ECHO_N='-n';;
483esac
484
485rm -f conf$$ conf$$.exe conf$$.file
486if test -d conf$$.dir; then
487  rm -f conf$$.dir/conf$$.file
488else
489  rm -f conf$$.dir
490  mkdir conf$$.dir 2>/dev/null
491fi
492if (echo >conf$$.file) 2>/dev/null; then
493  if ln -s conf$$.file conf$$ 2>/dev/null; then
494    as_ln_s='ln -s'
495    # ... but there are two gotchas:
496    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498    # In both cases, we have to default to `cp -p'.
499    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500      as_ln_s='cp -p'
501  elif ln conf$$.file conf$$ 2>/dev/null; then
502    as_ln_s=ln
503  else
504    as_ln_s='cp -p'
505  fi
506else
507  as_ln_s='cp -p'
508fi
509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
511
512if mkdir -p . 2>/dev/null; then
513  as_mkdir_p='mkdir -p "$as_dir"'
514else
515  test -d ./-p && rmdir ./-p
516  as_mkdir_p=false
517fi
518
519if test -x / >/dev/null 2>&1; then
520  as_test_x='test -x'
521else
522  if ls -dL / >/dev/null 2>&1; then
523    as_ls_L_option=L
524  else
525    as_ls_L_option=
526  fi
527  as_test_x='
528    eval sh -c '\''
529      if test -d "$1"; then
530	test -d "$1/.";
531      else
532	case $1 in #(
533	-*)set "./$1";;
534	esac;
535	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536	???[sx]*):;;*)false;;esac;fi
537    '\'' sh
538  '
539fi
540as_executable_p=$as_test_x
541
542# Sed expression to map a string onto a valid CPP name.
543as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
545# Sed expression to map a string onto a valid variable name.
546as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
548as_awk_strverscmp='
549  # Use only awk features that work with 7th edition Unix awk (1978).
550  # My, what an old awk you have, Mr. Solaris!
551  END {
552    while (length(v1) && length(v2)) {
553      # Set d1 to be the next thing to compare from v1, and likewise for d2.
554      # Normally this is a single character, but if v1 and v2 contain digits,
555      # compare them as integers and fractions as strverscmp does.
556      if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
557	# Split v1 and v2 into their leading digit string components d1 and d2,
558	# and advance v1 and v2 past the leading digit strings.
559	for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
560	for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
561	d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
562	d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
563	if (d1 ~ /^0/) {
564	  if (d2 ~ /^0/) {
565	    # Compare two fractions.
566	    while (d1 ~ /^0/ && d2 ~ /^0/) {
567	      d1 = substr(d1, 2); len1--
568	      d2 = substr(d2, 2); len2--
569	    }
570	    if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
571	      # The two components differ in length, and the common prefix
572	      # contains only leading zeros.  Consider the longer to be less.
573	      d1 = -len1
574	      d2 = -len2
575	    } else {
576	      # Otherwise, compare as strings.
577	      d1 = "x" d1
578	      d2 = "x" d2
579	    }
580	  } else {
581	    # A fraction is less than an integer.
582	    exit 1
583	  }
584	} else {
585	  if (d2 ~ /^0/) {
586	    # An integer is greater than a fraction.
587	    exit 2
588	  } else {
589	    # Compare two integers.
590	    d1 += 0
591	    d2 += 0
592	  }
593	}
594      } else {
595	# The normal case, without worrying about digits.
596	d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
597	d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
598      }
599      if (d1 < d2) exit 1
600      if (d1 > d2) exit 2
601    }
602    # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
603    # which mishandles some comparisons of empty strings to integers.
604    if (length(v2)) exit 1
605    if (length(v1)) exit 2
606  }
607'
608SHELL=${CONFIG_SHELL-/bin/sh}
609
610
611test -n "$DJDIR" || exec 7<&0 </dev/null
612exec 6>&1
613
614# Name of the host.
615# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
616# so uname gets run too.
617ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
618
619#
620# Initializations.
621#
622ac_default_prefix=/usr/local
623ac_clean_files=
624ac_config_libobj_dir=.
625LIBOBJS=
626cross_compiling=no
627subdirs=
628MFLAGS=
629MAKEFLAGS=
630
631# Identity of this package.
632PACKAGE_NAME='xorg-server'
633PACKAGE_TARNAME='xorg-server'
634PACKAGE_VERSION='1.9.5'
635PACKAGE_STRING='xorg-server 1.9.5'
636PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
637PACKAGE_URL=''
638
639ac_unique_file="Makefile.am"
640# Factoring default headers for most tests.
641ac_includes_default="\
642#include <stdio.h>
643#ifdef HAVE_SYS_TYPES_H
644# include <sys/types.h>
645#endif
646#ifdef HAVE_SYS_STAT_H
647# include <sys/stat.h>
648#endif
649#ifdef STDC_HEADERS
650# include <stdlib.h>
651# include <stddef.h>
652#else
653# ifdef HAVE_STDLIB_H
654#  include <stdlib.h>
655# endif
656#endif
657#ifdef HAVE_STRING_H
658# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
659#  include <memory.h>
660# endif
661# include <string.h>
662#endif
663#ifdef HAVE_STRINGS_H
664# include <strings.h>
665#endif
666#ifdef HAVE_INTTYPES_H
667# include <inttypes.h>
668#endif
669#ifdef HAVE_STDINT_H
670# include <stdint.h>
671#endif
672#ifdef HAVE_UNISTD_H
673# include <unistd.h>
674#endif"
675
676ac_subst_vars='am__EXEEXT_FALSE
677am__EXEEXT_TRUE
678LTLIBOBJS
679LIBOBJS
680DIX_CFLAGS
681BUILD_TIME
682BUILD_DATE
683RELEASE_DATE
684PROJECTROOT
685XFAKESERVER_FALSE
686XFAKESERVER_TRUE
687BUILD_KDRIVEFBDEVLIB_FALSE
688BUILD_KDRIVEFBDEVLIB_TRUE
689XEPHYR_FALSE
690XEPHYR_TRUE
691KDRIVEFBDEV_FALSE
692KDRIVEFBDEV_TRUE
693TSLIB_FALSE
694TSLIB_TRUE
695KDRIVE_MOUSE_FALSE
696KDRIVE_MOUSE_TRUE
697KDRIVE_KBD_FALSE
698KDRIVE_KBD_TRUE
699KDRIVE_EVDEV_FALSE
700KDRIVE_EVDEV_TRUE
701KDRIVELINUX_FALSE
702KDRIVELINUX_TRUE
703KDRIVE_LIBS
704KDRIVE_LOCAL_LIBS
705KDRIVE_PURE_LIBS
706KDRIVE_CFLAGS
707KDRIVE_PURE_INCS
708KDRIVE_INCS
709XEPHYR_INCS
710XEPHYR_LIBS
711XEPHYR_CFLAGS
712TSLIB_LIBS
713TSLIB_CFLAGS
714KDRIVE_FALSE
715KDRIVE_TRUE
716DMX_BUILD_USB_FALSE
717DMX_BUILD_USB_TRUE
718DMX_BUILD_LNX_FALSE
719DMX_BUILD_LNX_TRUE
720X11EXAMPLES_DEP_LIBS
721X11EXAMPLES_DEP_CFLAGS
722XRESEXAMPLES_DEP_LIBS
723XRESEXAMPLES_DEP_CFLAGS
724XTSTEXAMPLES_DEP_LIBS
725XTSTEXAMPLES_DEP_CFLAGS
726DMXXIEXAMPLES_DEP_LIBS
727DMXXIEXAMPLES_DEP_CFLAGS
728DMXXMUEXAMPLES_DEP_LIBS
729DMXXMUEXAMPLES_DEP_CFLAGS
730DMXEXAMPLES_DEP_LIBS
731DMXEXAMPLES_DEP_CFLAGS
732XDMX_SYS_LIBS
733XDMX_LIBS
734XDMX_CFLAGS
735DMX_FALSE
736DMX_TRUE
737XDMXCONFIG_DEP_LIBS
738XDMXCONFIG_DEP_CFLAGS
739DMXMODULES_LIBS
740DMXMODULES_CFLAGS
741STANDALONE_XPBPROXY_FALSE
742STANDALONE_XPBPROXY_TRUE
743XQUARTZ_SPARKLE_FALSE
744XQUARTZ_SPARKLE_TRUE
745XQUARTZ_FALSE
746XQUARTZ_TRUE
747am__fastdepOBJC_FALSE
748am__fastdepOBJC_TRUE
749OBJCDEPMODE
750OBJCFLAGS
751OBJCLINK
752OBJCCLD
753OBJC
754XPBPROXY_LIBS
755XPBPROXY_CFLAGS
756DARWIN_LIBS
757XWIN_XV_FALSE
758XWIN_XV_TRUE
759XWIN_RANDR_FALSE
760XWIN_RANDR_TRUE
761XWIN_PRIMARYFB_FALSE
762XWIN_PRIMARYFB_TRUE
763XWIN_NATIVEGDI_FALSE
764XWIN_NATIVEGDI_TRUE
765XWIN_GLX_WINDOWS_FALSE
766XWIN_GLX_WINDOWS_TRUE
767XWIN_CLIPBOARD_FALSE
768XWIN_CLIPBOARD_TRUE
769XWIN_MULTIWINDOWEXTWM_FALSE
770XWIN_MULTIWINDOWEXTWM_TRUE
771XWIN_MULTIWINDOW_FALSE
772XWIN_MULTIWINDOW_TRUE
773XWIN_FALSE
774XWIN_TRUE
775XWIN_SYS_LIBS
776XWIN_SERVER_NAME
777XWIN_LIBS
778WINDOWSWM_LIBS
779WINDOWSWM_CFLAGS
780XWINMODULES_LIBS
781XWINMODULES_CFLAGS
782WINDRES
783DEFAULT_LOGDIR
784SYSCONFDIR
785XF86VIDMODE_FALSE
786XF86VIDMODE_TRUE
787DGA_FALSE
788DGA_TRUE
789SOLARIS_VT_FALSE
790SOLARIS_VT_TRUE
791SOLARIS_ASM_INLINE_FALSE
792SOLARIS_ASM_INLINE_TRUE
793LNXACPI_FALSE
794LNXACPI_TRUE
795LINUX_ALPHA_FALSE
796LINUX_ALPHA_TRUE
797LINUX_IA64_FALSE
798LINUX_IA64_TRUE
799XORG_BUS_SPARC_FALSE
800XORG_BUS_SPARC_TRUE
801XORG_BUS_BSDPCI_FALSE
802XORG_BUS_BSDPCI_TRUE
803XORG_BUS_LINUXPCI_FALSE
804XORG_BUS_LINUXPCI_TRUE
805XORG_FALSE
806XORG_TRUE
807abi_extension
808abi_xinput
809abi_videodrv
810abi_ansic
811logdir
812sysconfigdir
813extdir
814sdkdir
815driverdir
816moduledir
817DEFAULT_LOGPREFIX
818DEFAULT_LIBRARY_PATH
819DEFAULT_MODULE_PATH
820__XCONFIGDIR__
821XF86CONFIGFILE
822__XCONFIGFILE__
823XF86CONFIGDIR
824XORG_CFLAGS
825PERL
826XORG_OS_SUBDIR
827XORG_OS
828XORG_INCS
829XORG_SYS_LIBS
830XORG_LIBS
831XORG_MODULES_LIBS
832XORG_MODULES_CFLAGS
833XF86VIDMODE_LIBS
834XF86VIDMODE_CFLAGS
835DGA_LIBS
836DGA_CFLAGS
837SOLARIS_ASM_CFLAGS
838SOLARIS_INOUT_ARCH
839PCIACCESS_LIBS
840PCIACCESS_CFLAGS
841symbol_visibility
842XNEST_SYS_LIBS
843XNEST_LIBS
844XNEST_FALSE
845XNEST_TRUE
846XNESTMODULES_LIBS
847XNESTMODULES_CFLAGS
848XVFB_SYS_LIBS
849XVFB_LIBS
850XVFB_FALSE
851XVFB_TRUE
852LD_EXPORT_SYMBOLS_FLAG
853UTILS_SYS_LIBS
854XSERVER_SYS_LIBS
855XSERVER_LIBS
856XSERVERLIBS_LIBS
857XSERVERLIBS_CFLAGS
858XSERVERCFLAGS_LIBS
859XSERVERCFLAGS_CFLAGS
860SHA1_CFLAGS
861SHA1_LIBS
862OPENSSL_LIBS
863OPENSSL_CFLAGS
864LIBSHA1_LIBS
865LIBSHA1_CFLAGS
866MAIN_LIB
867OS_LIB
868DIX_LIB
869UNITTESTS_FALSE
870UNITTESTS_TRUE
871GLIB_LIBS
872GLIB_CFLAGS
873DEBUG_FALSE
874DEBUG_TRUE
875VENDOR_NAME_SHORT
876DRI_DRIVER_PATH
877BASE_FONT_PATH
878SERVER_MISC_CONFIG_PATH
879PCI_TXT_IDS_PATH
880COMPILEDDEFAULTFONTPATH
881XDMAUTH_FALSE
882XDMAUTH_TRUE
883XDMCP_FALSE
884XDMCP_TRUE
885XDMCP_LIBS
886XDMCP_CFLAGS
887XKB_COMPILED_DIR
888XKM_OUTPUT_DIR
889XKB_BIN_DIRECTORY
890XKB_BASE_DIRECTORY
891INT10MODULE_FALSE
892INT10MODULE_TRUE
893VBE_FALSE
894VBE_TRUE
895VGAHW_FALSE
896VGAHW_TRUE
897XAA_FALSE
898XAA_TRUE
899XF86UTILS_FALSE
900XF86UTILS_TRUE
901XCALIBRATE_FALSE
902XCALIBRATE_TRUE
903DPMSExtension_FALSE
904DPMSExtension_TRUE
905XF86BIGFONT_FALSE
906XF86BIGFONT_TRUE
907DBE_FALSE
908DBE_TRUE
909XCSECURITY_FALSE
910XCSECURITY_TRUE
911SELINUX_LIBS
912SELINUX_CFLAGS
913XSELINUX_FALSE
914XSELINUX_TRUE
915XACE_FALSE
916XACE_TRUE
917XINERAMA_FALSE
918XINERAMA_TRUE
919DRI2_AIGLX_FALSE
920DRI2_AIGLX_TRUE
921LIBDRM_LIBS
922LIBDRM_CFLAGS
923DRI2_FALSE
924DRI2_TRUE
925DRI2PROTO_LIBS
926DRI2PROTO_CFLAGS
927DRI_LIBS
928DRI_CFLAGS
929DRIPROTO_LIBS
930DRIPROTO_CFLAGS
931DRI_FALSE
932DRI_TRUE
933GLX_DEFINES
934AIGLX_FALSE
935AIGLX_TRUE
936GLX_FALSE
937GLX_TRUE
938GL_LIBS
939GL_CFLAGS
940XLIB_LIBS
941XLIB_CFLAGS
942RES_FALSE
943RES_TRUE
944SCREENSAVER_FALSE
945SCREENSAVER_TRUE
946RECORD_FALSE
947RECORD_TRUE
948MITSHM_FALSE
949MITSHM_TRUE
950COMPOSITE_FALSE
951COMPOSITE_TRUE
952XREGISTRY_FALSE
953XREGISTRY_TRUE
954XVMC_FALSE
955XVMC_TRUE
956XV_FALSE
957XV_TRUE
958CONFIG_NEED_DBUS_FALSE
959CONFIG_NEED_DBUS_TRUE
960CONFIG_HAL_FALSE
961CONFIG_HAL_TRUE
962HAL_LIBS
963HAL_CFLAGS
964CONFIG_DBUS_API_FALSE
965CONFIG_DBUS_API_TRUE
966HAVE_DBUS_FALSE
967HAVE_DBUS_TRUE
968DBUS_LIBS
969DBUS_CFLAGS
970CONFIG_UDEV_FALSE
971CONFIG_UDEV_TRUE
972UDEV_LIBS
973UDEV_CFLAGS
974PIXMAN_LIBS
975PIXMAN_CFLAGS
976SDK_REQUIRED_MODULES
977INSTALL_LIBXF86CONFIG_FALSE
978INSTALL_LIBXF86CONFIG_TRUE
979HAVE_FOP_FALSE
980HAVE_FOP_TRUE
981FOP
982HAVE_XMLTO_FALSE
983HAVE_XMLTO_TRUE
984HAVE_XMLTO_TEXT_FALSE
985HAVE_XMLTO_TEXT_TRUE
986XMLTO
987ENABLE_DEVEL_DOCS_FALSE
988ENABLE_DEVEL_DOCS_TRUE
989ENABLE_DOCS_FALSE
990ENABLE_DOCS_TRUE
991BUILDDOCS_FALSE
992BUILDDOCS_TRUE
993INT10_STUB_FALSE
994INT10_STUB_TRUE
995INT10_X86EMU_FALSE
996INT10_X86EMU_TRUE
997INT10_VM86_FALSE
998INT10_VM86_TRUE
999SECURE_RPC_FALSE
1000SECURE_RPC_TRUE
1001INSTALL_SETUID_FALSE
1002INSTALL_SETUID_TRUE
1003XQUARTZ_SPARKLE
1004LAUNCHD_ID_PREFIX
1005APPLE_APPLICATION_NAME
1006APPLE_APPLICATIONS_DIR
1007FONT100DPIDIR
1008FONT75DPIDIR
1009FONTTYPE1DIR
1010FONTTTFDIR
1011FONTOTFDIR
1012FONTMISCDIR
1013FONTROOTDIR
1014SPARC64_VIDEO_FALSE
1015SPARC64_VIDEO_TRUE
1016PPC_VIDEO_FALSE
1017PPC_VIDEO_TRUE
1018I386_VIDEO_FALSE
1019I386_VIDEO_TRUE
1020ARM_VIDEO_FALSE
1021ARM_VIDEO_TRUE
1022ALPHA_VIDEO_FALSE
1023ALPHA_VIDEO_TRUE
1024GLX_ARCH_DEFINES
1025ARM_BACKTRACE_CFLAGS
1026BSD_KQUEUE_APM_FALSE
1027BSD_KQUEUE_APM_TRUE
1028BSD_APM_FALSE
1029BSD_APM_TRUE
1030FREEBSD_KLDLOAD_FALSE
1031FREEBSD_KLDLOAD_TRUE
1032FBDEVHW_FALSE
1033FBDEVHW_TRUE
1034LNXAPM_FALSE
1035LNXAPM_TRUE
1036AGP_FALSE
1037AGP_TRUE
1038NEED_VSNPRINTF_FALSE
1039NEED_VSNPRINTF_TRUE
1040NEED_STRLCAT_FALSE
1041NEED_STRLCAT_TRUE
1042ALLOCA
1043DLOPEN_LIBS
1044SPECIAL_DTRACE_OBJECTS_FALSE
1045SPECIAL_DTRACE_OBJECTS_TRUE
1046XSERVER_DTRACE_FALSE
1047XSERVER_DTRACE_TRUE
1048DTRACE
1049RAWCPPFLAGS
1050RAWCPP
1051YFLAGS
1052YACC
1053LEXLIB
1054LEX_OUTPUT_ROOT
1055LEX
1056LTCXXCOMPILE
1057LTCOMPILE
1058DOLT_BASH
1059OTOOL64
1060OTOOL
1061LIPO
1062NMEDIT
1063DSYMUTIL
1064MANIFEST_TOOL
1065RANLIB
1066ac_ct_AR
1067AR
1068NM
1069ac_ct_DUMPBIN
1070DUMPBIN
1071LD
1072FGREP
1073LIBTOOL
1074OBJDUMP
1075DLLTOOL
1076AS
1077LN_S
1078am__fastdepCCAS_FALSE
1079am__fastdepCCAS_TRUE
1080CCASDEPMODE
1081CCASFLAGS
1082CCAS
1083HAVE_STYLESHEETS_FALSE
1084HAVE_STYLESHEETS_TRUE
1085XSL_STYLESHEET
1086STYLESHEET_SRCDIR
1087XORG_SGML_PATH
1088HAVE_DOXYGEN_FALSE
1089HAVE_DOXYGEN_TRUE
1090DOXYGEN
1091AM_BACKSLASH
1092AM_DEFAULT_VERBOSITY
1093MAN_SUBSTS
1094XORG_MAN_PAGE
1095ADMIN_MAN_DIR
1096DRIVER_MAN_DIR
1097MISC_MAN_DIR
1098FILE_MAN_DIR
1099LIB_MAN_DIR
1100APP_MAN_DIR
1101ADMIN_MAN_SUFFIX
1102DRIVER_MAN_SUFFIX
1103MISC_MAN_SUFFIX
1104FILE_MAN_SUFFIX
1105LIB_MAN_SUFFIX
1106APP_MAN_SUFFIX
1107SED
1108host_os
1109host_vendor
1110host_cpu
1111host
1112build_os
1113build_vendor
1114build_cpu
1115build
1116INSTALL_CMD
1117PKG_CONFIG_LIBDIR
1118PKG_CONFIG_PATH
1119PKG_CONFIG
1120CHANGELOG_CMD
1121CWARNFLAGS
1122EGREP
1123GREP
1124CPP
1125am__fastdepCC_FALSE
1126am__fastdepCC_TRUE
1127CCDEPMODE
1128AMDEPBACKSLASH
1129AMDEP_FALSE
1130AMDEP_TRUE
1131am__quote
1132am__include
1133DEPDIR
1134OBJEXT
1135EXEEXT
1136ac_ct_CC
1137CPPFLAGS
1138LDFLAGS
1139CFLAGS
1140CC
1141MAINT
1142MAINTAINER_MODE_FALSE
1143MAINTAINER_MODE_TRUE
1144am__untar
1145am__tar
1146AMTAR
1147am__leading_dot
1148SET_MAKE
1149AWK
1150mkdir_p
1151MKDIR_P
1152INSTALL_STRIP_PROGRAM
1153STRIP
1154install_sh
1155MAKEINFO
1156AUTOHEADER
1157AUTOMAKE
1158AUTOCONF
1159ACLOCAL
1160VERSION
1161PACKAGE
1162CYGPATH_W
1163am__isrc
1164INSTALL_DATA
1165INSTALL_SCRIPT
1166INSTALL_PROGRAM
1167target_alias
1168host_alias
1169build_alias
1170LIBS
1171ECHO_T
1172ECHO_N
1173ECHO_C
1174DEFS
1175mandir
1176localedir
1177libdir
1178psdir
1179pdfdir
1180dvidir
1181htmldir
1182infodir
1183docdir
1184oldincludedir
1185includedir
1186localstatedir
1187sharedstatedir
1188sysconfdir
1189datadir
1190datarootdir
1191libexecdir
1192sbindir
1193bindir
1194program_transform_name
1195prefix
1196exec_prefix
1197PACKAGE_URL
1198PACKAGE_BUGREPORT
1199PACKAGE_STRING
1200PACKAGE_VERSION
1201PACKAGE_TARNAME
1202PACKAGE_NAME
1203PATH_SEPARATOR
1204SHELL'
1205ac_subst_files=''
1206ac_user_opts='
1207enable_option_checking
1208enable_maintainer_mode
1209enable_dependency_tracking
1210enable_strict_compilation
1211enable_silent_rules
1212with_doxygen
1213enable_static
1214enable_shared
1215with_pic
1216enable_fast_install
1217with_gnu_ld
1218with_sysroot
1219enable_libtool_lock
1220enable_largefile
1221with_dtrace
1222enable_werror
1223enable_debug
1224enable_unit_tests
1225enable_use_sigio_by_default
1226with_int10
1227with_vendor_name
1228with_vendor_name_short
1229with_vendor_web
1230with_module_dir
1231with_log_dir
1232with_builder_addr
1233with_os_name
1234with_os_vendor
1235with_builderstring
1236with_fontrootdir
1237with_fontmiscdir
1238with_fontotfdir
1239with_fontttfdir
1240with_fonttype1dir
1241with_font75dpidir
1242with_font100dpidir
1243with_default_font_path
1244with_xkb_path
1245with_xkb_output
1246with_default_xkb_rules
1247with_default_xkb_model
1248with_default_xkb_layout
1249with_default_xkb_variant
1250with_default_xkb_options
1251with_serverconfig_path
1252with_apple_applications_dir
1253with_apple_application_name
1254with_launchd_id_prefix
1255enable_sparkle
1256enable_builddocs
1257enable_install_libxf86config
1258enable_visibility
1259enable_pc98
1260with_dri_driver_path
1261enable_aiglx
1262enable_glx_tls
1263enable_registry
1264enable_composite
1265enable_mitshm
1266enable_xres
1267enable_record
1268enable_xv
1269enable_xvmc
1270enable_dga
1271enable_screensaver
1272enable_xdmcp
1273enable_xdm_auth_1
1274enable_glx
1275enable_dri
1276enable_dri2
1277enable_xinerama
1278enable_xf86vidmode
1279enable_xace
1280enable_xselinux
1281enable_xcsecurity
1282enable_xcalibrate
1283enable_tslib
1284enable_dbe
1285enable_xf86bigfont
1286enable_dpms
1287enable_config_udev
1288enable_config_dbus
1289enable_config_hal
1290enable_xfree86_utils
1291enable_xaa
1292enable_vgahw
1293enable_vbe
1294enable_int10_module
1295enable_windowswm
1296enable_libdrm
1297enable_xorg
1298enable_dmx
1299enable_xvfb
1300enable_xnest
1301enable_xquartz
1302enable_standalone_xpbproxy
1303enable_xwin
1304enable_kdrive
1305enable_xephyr
1306enable_xfake
1307enable_xfbdev
1308enable_kdrive_kbd
1309enable_kdrive_mouse
1310enable_kdrive_evdev
1311enable_install_setuid
1312enable_unix_transport
1313enable_tcp_transport
1314enable_ipv6
1315enable_local_transport
1316enable_secure_rpc
1317enable_docs
1318enable_devel_docs
1319with_xmlto
1320with_fop
1321with_xkb_bin_directory
1322with_sha1
1323'
1324      ac_precious_vars='build_alias
1325host_alias
1326target_alias
1327CC
1328CFLAGS
1329LDFLAGS
1330LIBS
1331CPPFLAGS
1332CPP
1333CPPFLAGS
1334PKG_CONFIG
1335PKG_CONFIG_PATH
1336PKG_CONFIG_LIBDIR
1337DOXYGEN
1338CC
1339LDFLAGS
1340LIBS
1341CPPFLAGS
1342CCAS
1343CCASFLAGS
1344PKG_CONFIG
1345PKG_CONFIG_PATH
1346PKG_CONFIG_LIBDIR
1347YACC
1348YFLAGS
1349XMLTO
1350FOP
1351PIXMAN_CFLAGS
1352PIXMAN_LIBS
1353UDEV_CFLAGS
1354UDEV_LIBS
1355DBUS_CFLAGS
1356DBUS_LIBS
1357HAL_CFLAGS
1358HAL_LIBS
1359XLIB_CFLAGS
1360XLIB_LIBS
1361GL_CFLAGS
1362GL_LIBS
1363DRIPROTO_CFLAGS
1364DRIPROTO_LIBS
1365DRI_CFLAGS
1366DRI_LIBS
1367DRI2PROTO_CFLAGS
1368DRI2PROTO_LIBS
1369LIBDRM_CFLAGS
1370LIBDRM_LIBS
1371SELINUX_CFLAGS
1372SELINUX_LIBS
1373XDMCP_CFLAGS
1374XDMCP_LIBS
1375GLIB_CFLAGS
1376GLIB_LIBS
1377LIBSHA1_CFLAGS
1378LIBSHA1_LIBS
1379OPENSSL_CFLAGS
1380OPENSSL_LIBS
1381XSERVERCFLAGS_CFLAGS
1382XSERVERCFLAGS_LIBS
1383XSERVERLIBS_CFLAGS
1384XSERVERLIBS_LIBS
1385XNESTMODULES_CFLAGS
1386XNESTMODULES_LIBS
1387PCIACCESS_CFLAGS
1388PCIACCESS_LIBS
1389DGA_CFLAGS
1390DGA_LIBS
1391DGA_CFLAGS
1392DGA_LIBS
1393XF86VIDMODE_CFLAGS
1394XF86VIDMODE_LIBS
1395XF86VIDMODE_LIBS
1396XORG_MODULES_CFLAGS
1397XORG_MODULES_LIBS
1398XWINMODULES_CFLAGS
1399XWINMODULES_LIBS
1400WINDOWSWM_CFLAGS
1401WINDOWSWM_LIBS
1402XPBPROXY_CFLAGS
1403XPBPROXY_LIBS
1404DMXMODULES_CFLAGS
1405DMXMODULES_LIBS
1406XDMXCONFIG_DEP_CFLAGS
1407XDMXCONFIG_DEP_LIBS
1408DMXEXAMPLES_DEP_CFLAGS
1409DMXEXAMPLES_DEP_LIBS
1410DMXXMUEXAMPLES_DEP_CFLAGS
1411DMXXMUEXAMPLES_DEP_LIBS
1412DMXXIEXAMPLES_DEP_CFLAGS
1413DMXXIEXAMPLES_DEP_LIBS
1414XTSTEXAMPLES_DEP_CFLAGS
1415XTSTEXAMPLES_DEP_LIBS
1416XRESEXAMPLES_DEP_CFLAGS
1417XRESEXAMPLES_DEP_LIBS
1418X11EXAMPLES_DEP_CFLAGS
1419X11EXAMPLES_DEP_LIBS
1420TSLIB_CFLAGS
1421TSLIB_LIBS
1422XEPHYR_CFLAGS
1423XEPHYR_LIBS'
1424
1425
1426# Initialize some variables set by options.
1427ac_init_help=
1428ac_init_version=false
1429ac_unrecognized_opts=
1430ac_unrecognized_sep=
1431# The variables have the same names as the options, with
1432# dashes changed to underlines.
1433cache_file=/dev/null
1434exec_prefix=NONE
1435no_create=
1436no_recursion=
1437prefix=NONE
1438program_prefix=NONE
1439program_suffix=NONE
1440program_transform_name=s,x,x,
1441silent=
1442site=
1443srcdir=
1444verbose=
1445x_includes=NONE
1446x_libraries=NONE
1447
1448# Installation directory options.
1449# These are left unexpanded so users can "make install exec_prefix=/foo"
1450# and all the variables that are supposed to be based on exec_prefix
1451# by default will actually change.
1452# Use braces instead of parens because sh, perl, etc. also accept them.
1453# (The list follows the same order as the GNU Coding Standards.)
1454bindir='${exec_prefix}/bin'
1455sbindir='${exec_prefix}/sbin'
1456libexecdir='${exec_prefix}/libexec'
1457datarootdir='${prefix}/share'
1458datadir='${datarootdir}'
1459sysconfdir='${prefix}/etc'
1460sharedstatedir='${prefix}/com'
1461localstatedir='${prefix}/var'
1462includedir='${prefix}/include'
1463oldincludedir='/usr/include'
1464docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1465infodir='${datarootdir}/info'
1466htmldir='${docdir}'
1467dvidir='${docdir}'
1468pdfdir='${docdir}'
1469psdir='${docdir}'
1470libdir='${exec_prefix}/lib'
1471localedir='${datarootdir}/locale'
1472mandir='${datarootdir}/man'
1473
1474ac_prev=
1475ac_dashdash=
1476for ac_option
1477do
1478  # If the previous option needs an argument, assign it.
1479  if test -n "$ac_prev"; then
1480    eval $ac_prev=\$ac_option
1481    ac_prev=
1482    continue
1483  fi
1484
1485  case $ac_option in
1486  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1487  *=)   ac_optarg= ;;
1488  *)    ac_optarg=yes ;;
1489  esac
1490
1491  # Accept the important Cygnus configure options, so we can diagnose typos.
1492
1493  case $ac_dashdash$ac_option in
1494  --)
1495    ac_dashdash=yes ;;
1496
1497  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1498    ac_prev=bindir ;;
1499  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1500    bindir=$ac_optarg ;;
1501
1502  -build | --build | --buil | --bui | --bu)
1503    ac_prev=build_alias ;;
1504  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1505    build_alias=$ac_optarg ;;
1506
1507  -cache-file | --cache-file | --cache-fil | --cache-fi \
1508  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1509    ac_prev=cache_file ;;
1510  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1511  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1512    cache_file=$ac_optarg ;;
1513
1514  --config-cache | -C)
1515    cache_file=config.cache ;;
1516
1517  -datadir | --datadir | --datadi | --datad)
1518    ac_prev=datadir ;;
1519  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1520    datadir=$ac_optarg ;;
1521
1522  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1523  | --dataroo | --dataro | --datar)
1524    ac_prev=datarootdir ;;
1525  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1526  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1527    datarootdir=$ac_optarg ;;
1528
1529  -disable-* | --disable-*)
1530    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1531    # Reject names that are not valid shell variable names.
1532    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1533      as_fn_error $? "invalid feature name: $ac_useropt"
1534    ac_useropt_orig=$ac_useropt
1535    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1536    case $ac_user_opts in
1537      *"
1538"enable_$ac_useropt"
1539"*) ;;
1540      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1541	 ac_unrecognized_sep=', ';;
1542    esac
1543    eval enable_$ac_useropt=no ;;
1544
1545  -docdir | --docdir | --docdi | --doc | --do)
1546    ac_prev=docdir ;;
1547  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1548    docdir=$ac_optarg ;;
1549
1550  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1551    ac_prev=dvidir ;;
1552  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1553    dvidir=$ac_optarg ;;
1554
1555  -enable-* | --enable-*)
1556    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1557    # Reject names that are not valid shell variable names.
1558    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1559      as_fn_error $? "invalid feature name: $ac_useropt"
1560    ac_useropt_orig=$ac_useropt
1561    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1562    case $ac_user_opts in
1563      *"
1564"enable_$ac_useropt"
1565"*) ;;
1566      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1567	 ac_unrecognized_sep=', ';;
1568    esac
1569    eval enable_$ac_useropt=\$ac_optarg ;;
1570
1571  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1572  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1573  | --exec | --exe | --ex)
1574    ac_prev=exec_prefix ;;
1575  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1576  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1577  | --exec=* | --exe=* | --ex=*)
1578    exec_prefix=$ac_optarg ;;
1579
1580  -gas | --gas | --ga | --g)
1581    # Obsolete; use --with-gas.
1582    with_gas=yes ;;
1583
1584  -help | --help | --hel | --he | -h)
1585    ac_init_help=long ;;
1586  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1587    ac_init_help=recursive ;;
1588  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1589    ac_init_help=short ;;
1590
1591  -host | --host | --hos | --ho)
1592    ac_prev=host_alias ;;
1593  -host=* | --host=* | --hos=* | --ho=*)
1594    host_alias=$ac_optarg ;;
1595
1596  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1597    ac_prev=htmldir ;;
1598  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1599  | --ht=*)
1600    htmldir=$ac_optarg ;;
1601
1602  -includedir | --includedir | --includedi | --included | --include \
1603  | --includ | --inclu | --incl | --inc)
1604    ac_prev=includedir ;;
1605  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1606  | --includ=* | --inclu=* | --incl=* | --inc=*)
1607    includedir=$ac_optarg ;;
1608
1609  -infodir | --infodir | --infodi | --infod | --info | --inf)
1610    ac_prev=infodir ;;
1611  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1612    infodir=$ac_optarg ;;
1613
1614  -libdir | --libdir | --libdi | --libd)
1615    ac_prev=libdir ;;
1616  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1617    libdir=$ac_optarg ;;
1618
1619  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1620  | --libexe | --libex | --libe)
1621    ac_prev=libexecdir ;;
1622  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1623  | --libexe=* | --libex=* | --libe=*)
1624    libexecdir=$ac_optarg ;;
1625
1626  -localedir | --localedir | --localedi | --localed | --locale)
1627    ac_prev=localedir ;;
1628  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1629    localedir=$ac_optarg ;;
1630
1631  -localstatedir | --localstatedir | --localstatedi | --localstated \
1632  | --localstate | --localstat | --localsta | --localst | --locals)
1633    ac_prev=localstatedir ;;
1634  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1635  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1636    localstatedir=$ac_optarg ;;
1637
1638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1639    ac_prev=mandir ;;
1640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1641    mandir=$ac_optarg ;;
1642
1643  -nfp | --nfp | --nf)
1644    # Obsolete; use --without-fp.
1645    with_fp=no ;;
1646
1647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1648  | --no-cr | --no-c | -n)
1649    no_create=yes ;;
1650
1651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1653    no_recursion=yes ;;
1654
1655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1657  | --oldin | --oldi | --old | --ol | --o)
1658    ac_prev=oldincludedir ;;
1659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1662    oldincludedir=$ac_optarg ;;
1663
1664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1665    ac_prev=prefix ;;
1666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1667    prefix=$ac_optarg ;;
1668
1669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1670  | --program-pre | --program-pr | --program-p)
1671    ac_prev=program_prefix ;;
1672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1674    program_prefix=$ac_optarg ;;
1675
1676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1677  | --program-suf | --program-su | --program-s)
1678    ac_prev=program_suffix ;;
1679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1681    program_suffix=$ac_optarg ;;
1682
1683  -program-transform-name | --program-transform-name \
1684  | --program-transform-nam | --program-transform-na \
1685  | --program-transform-n | --program-transform- \
1686  | --program-transform | --program-transfor \
1687  | --program-transfo | --program-transf \
1688  | --program-trans | --program-tran \
1689  | --progr-tra | --program-tr | --program-t)
1690    ac_prev=program_transform_name ;;
1691  -program-transform-name=* | --program-transform-name=* \
1692  | --program-transform-nam=* | --program-transform-na=* \
1693  | --program-transform-n=* | --program-transform-=* \
1694  | --program-transform=* | --program-transfor=* \
1695  | --program-transfo=* | --program-transf=* \
1696  | --program-trans=* | --program-tran=* \
1697  | --progr-tra=* | --program-tr=* | --program-t=*)
1698    program_transform_name=$ac_optarg ;;
1699
1700  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1701    ac_prev=pdfdir ;;
1702  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1703    pdfdir=$ac_optarg ;;
1704
1705  -psdir | --psdir | --psdi | --psd | --ps)
1706    ac_prev=psdir ;;
1707  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1708    psdir=$ac_optarg ;;
1709
1710  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1711  | -silent | --silent | --silen | --sile | --sil)
1712    silent=yes ;;
1713
1714  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1715    ac_prev=sbindir ;;
1716  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1717  | --sbi=* | --sb=*)
1718    sbindir=$ac_optarg ;;
1719
1720  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1721  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1722  | --sharedst | --shareds | --shared | --share | --shar \
1723  | --sha | --sh)
1724    ac_prev=sharedstatedir ;;
1725  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1726  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1727  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1728  | --sha=* | --sh=*)
1729    sharedstatedir=$ac_optarg ;;
1730
1731  -site | --site | --sit)
1732    ac_prev=site ;;
1733  -site=* | --site=* | --sit=*)
1734    site=$ac_optarg ;;
1735
1736  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1737    ac_prev=srcdir ;;
1738  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1739    srcdir=$ac_optarg ;;
1740
1741  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1742  | --syscon | --sysco | --sysc | --sys | --sy)
1743    ac_prev=sysconfdir ;;
1744  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1745  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1746    sysconfdir=$ac_optarg ;;
1747
1748  -target | --target | --targe | --targ | --tar | --ta | --t)
1749    ac_prev=target_alias ;;
1750  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1751    target_alias=$ac_optarg ;;
1752
1753  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1754    verbose=yes ;;
1755
1756  -version | --version | --versio | --versi | --vers | -V)
1757    ac_init_version=: ;;
1758
1759  -with-* | --with-*)
1760    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1761    # Reject names that are not valid shell variable names.
1762    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1763      as_fn_error $? "invalid package name: $ac_useropt"
1764    ac_useropt_orig=$ac_useropt
1765    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1766    case $ac_user_opts in
1767      *"
1768"with_$ac_useropt"
1769"*) ;;
1770      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1771	 ac_unrecognized_sep=', ';;
1772    esac
1773    eval with_$ac_useropt=\$ac_optarg ;;
1774
1775  -without-* | --without-*)
1776    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1777    # Reject names that are not valid shell variable names.
1778    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1779      as_fn_error $? "invalid package name: $ac_useropt"
1780    ac_useropt_orig=$ac_useropt
1781    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1782    case $ac_user_opts in
1783      *"
1784"with_$ac_useropt"
1785"*) ;;
1786      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1787	 ac_unrecognized_sep=', ';;
1788    esac
1789    eval with_$ac_useropt=no ;;
1790
1791  --x)
1792    # Obsolete; use --with-x.
1793    with_x=yes ;;
1794
1795  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1796  | --x-incl | --x-inc | --x-in | --x-i)
1797    ac_prev=x_includes ;;
1798  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1799  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1800    x_includes=$ac_optarg ;;
1801
1802  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1803  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1804    ac_prev=x_libraries ;;
1805  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1806  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1807    x_libraries=$ac_optarg ;;
1808
1809  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1810Try \`$0 --help' for more information"
1811    ;;
1812
1813  *=*)
1814    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1815    # Reject names that are not valid shell variable names.
1816    case $ac_envvar in #(
1817      '' | [0-9]* | *[!_$as_cr_alnum]* )
1818      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1819    esac
1820    eval $ac_envvar=\$ac_optarg
1821    export $ac_envvar ;;
1822
1823  *)
1824    # FIXME: should be removed in autoconf 3.0.
1825    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1826    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1827      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1828    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1829    ;;
1830
1831  esac
1832done
1833
1834if test -n "$ac_prev"; then
1835  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1836  as_fn_error $? "missing argument to $ac_option"
1837fi
1838
1839if test -n "$ac_unrecognized_opts"; then
1840  case $enable_option_checking in
1841    no) ;;
1842    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1843    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1844  esac
1845fi
1846
1847# Check all directory arguments for consistency.
1848for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1849		datadir sysconfdir sharedstatedir localstatedir includedir \
1850		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1851		libdir localedir mandir
1852do
1853  eval ac_val=\$$ac_var
1854  # Remove trailing slashes.
1855  case $ac_val in
1856    */ )
1857      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1858      eval $ac_var=\$ac_val;;
1859  esac
1860  # Be sure to have absolute directory names.
1861  case $ac_val in
1862    [\\/$]* | ?:[\\/]* )  continue;;
1863    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1864  esac
1865  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1866done
1867
1868# There might be people who depend on the old broken behavior: `$host'
1869# used to hold the argument of --host etc.
1870# FIXME: To remove some day.
1871build=$build_alias
1872host=$host_alias
1873target=$target_alias
1874
1875# FIXME: To remove some day.
1876if test "x$host_alias" != x; then
1877  if test "x$build_alias" = x; then
1878    cross_compiling=maybe
1879    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1880    If a cross compiler is detected then cross compile mode will be used" >&2
1881  elif test "x$build_alias" != "x$host_alias"; then
1882    cross_compiling=yes
1883  fi
1884fi
1885
1886ac_tool_prefix=
1887test -n "$host_alias" && ac_tool_prefix=$host_alias-
1888
1889test "$silent" = yes && exec 6>/dev/null
1890
1891
1892ac_pwd=`pwd` && test -n "$ac_pwd" &&
1893ac_ls_di=`ls -di .` &&
1894ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1895  as_fn_error $? "working directory cannot be determined"
1896test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1897  as_fn_error $? "pwd does not report name of working directory"
1898
1899
1900# Find the source files, if location was not specified.
1901if test -z "$srcdir"; then
1902  ac_srcdir_defaulted=yes
1903  # Try the directory containing this script, then the parent directory.
1904  ac_confdir=`$as_dirname -- "$as_myself" ||
1905$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1906	 X"$as_myself" : 'X\(//\)[^/]' \| \
1907	 X"$as_myself" : 'X\(//\)$' \| \
1908	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1909$as_echo X"$as_myself" |
1910    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1911	    s//\1/
1912	    q
1913	  }
1914	  /^X\(\/\/\)[^/].*/{
1915	    s//\1/
1916	    q
1917	  }
1918	  /^X\(\/\/\)$/{
1919	    s//\1/
1920	    q
1921	  }
1922	  /^X\(\/\).*/{
1923	    s//\1/
1924	    q
1925	  }
1926	  s/.*/./; q'`
1927  srcdir=$ac_confdir
1928  if test ! -r "$srcdir/$ac_unique_file"; then
1929    srcdir=..
1930  fi
1931else
1932  ac_srcdir_defaulted=no
1933fi
1934if test ! -r "$srcdir/$ac_unique_file"; then
1935  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1936  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1937fi
1938ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1939ac_abs_confdir=`(
1940	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1941	pwd)`
1942# When building in place, set srcdir=.
1943if test "$ac_abs_confdir" = "$ac_pwd"; then
1944  srcdir=.
1945fi
1946# Remove unnecessary trailing slashes from srcdir.
1947# Double slashes in file names in object file debugging info
1948# mess up M-x gdb in Emacs.
1949case $srcdir in
1950*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1951esac
1952for ac_var in $ac_precious_vars; do
1953  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1954  eval ac_env_${ac_var}_value=\$${ac_var}
1955  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1956  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1957done
1958
1959#
1960# Report the --help message.
1961#
1962if test "$ac_init_help" = "long"; then
1963  # Omit some internal or obsolete options to make the list less imposing.
1964  # This message is too long to be a string in the A/UX 3.1 sh.
1965  cat <<_ACEOF
1966\`configure' configures xorg-server 1.9.5 to adapt to many kinds of systems.
1967
1968Usage: $0 [OPTION]... [VAR=VALUE]...
1969
1970To assign environment variables (e.g., CC, CFLAGS...), specify them as
1971VAR=VALUE.  See below for descriptions of some of the useful variables.
1972
1973Defaults for the options are specified in brackets.
1974
1975Configuration:
1976  -h, --help              display this help and exit
1977      --help=short        display options specific to this package
1978      --help=recursive    display the short help of all the included packages
1979  -V, --version           display version information and exit
1980  -q, --quiet, --silent   do not print \`checking ...' messages
1981      --cache-file=FILE   cache test results in FILE [disabled]
1982  -C, --config-cache      alias for \`--cache-file=config.cache'
1983  -n, --no-create         do not create output files
1984      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1985
1986Installation directories:
1987  --prefix=PREFIX         install architecture-independent files in PREFIX
1988                          [$ac_default_prefix]
1989  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1990                          [PREFIX]
1991
1992By default, \`make install' will install all the files in
1993\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1994an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1995for instance \`--prefix=\$HOME'.
1996
1997For better control, use the options below.
1998
1999Fine tuning of the installation directories:
2000  --bindir=DIR            user executables [EPREFIX/bin]
2001  --sbindir=DIR           system admin executables [EPREFIX/sbin]
2002  --libexecdir=DIR        program executables [EPREFIX/libexec]
2003  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
2004  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
2005  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
2006  --libdir=DIR            object code libraries [EPREFIX/lib]
2007  --includedir=DIR        C header files [PREFIX/include]
2008  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
2009  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
2010  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
2011  --infodir=DIR           info documentation [DATAROOTDIR/info]
2012  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
2013  --mandir=DIR            man documentation [DATAROOTDIR/man]
2014  --docdir=DIR            documentation root [DATAROOTDIR/doc/xorg-server]
2015  --htmldir=DIR           html documentation [DOCDIR]
2016  --dvidir=DIR            dvi documentation [DOCDIR]
2017  --pdfdir=DIR            pdf documentation [DOCDIR]
2018  --psdir=DIR             ps documentation [DOCDIR]
2019_ACEOF
2020
2021  cat <<\_ACEOF
2022
2023Program names:
2024  --program-prefix=PREFIX            prepend PREFIX to installed program names
2025  --program-suffix=SUFFIX            append SUFFIX to installed program names
2026  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
2027
2028System types:
2029  --build=BUILD     configure for building on BUILD [guessed]
2030  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
2031_ACEOF
2032fi
2033
2034if test -n "$ac_init_help"; then
2035  case $ac_init_help in
2036     short | recursive ) echo "Configuration of xorg-server 1.9.5:";;
2037   esac
2038  cat <<\_ACEOF
2039
2040Optional Features:
2041  --disable-option-checking  ignore unrecognized --enable/--with options
2042  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
2043  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
2044  --enable-maintainer-mode  enable make rules and dependencies not useful
2045			  (and sometimes confusing) to the casual installer
2046  --disable-dependency-tracking  speeds up one-time build
2047  --enable-dependency-tracking   do not reject slow dependency extractors
2048  --enable-strict-compilation
2049                          Enable all warnings from compiler and make them
2050                          errors (default: disabled)
2051  --enable-silent-rules          less verbose build output (undo: `make V=1')
2052  --disable-silent-rules         verbose build output (undo: `make V=0')
2053  --enable-static[=PKGS]  build static libraries [default=no]
2054  --enable-shared[=PKGS]  build shared libraries [default=yes]
2055  --enable-fast-install[=PKGS]
2056                          optimize for fast installation [default=yes]
2057  --disable-libtool-lock  avoid locking (might break parallel builds)
2058  --disable-largefile     omit support for large files
2059  --enable-werror         Obsolete - use --enable-strict-compilation instead
2060  --enable-debug          Enable debugging (default: disabled)
2061  --enable-unit-tests     Enable unit-tests (default: auto)
2062  --enable-use-sigio-by-default
2063  Enable SIGIO input handlers by default (default: $USE_SIGIO_BY_DEFAULT)
2064
2065  --enable-sparkle        Enable updating of X11.app using the Sparkle
2066                          Framework (default: disabled)
2067  --enable-builddocs      Build docs (default: disabled)
2068  --enable-install-libxf86config
2069                          Install libxf86config (default: disabled)
2070  --enable-visibility     Enable symbol visibility (default: auto)
2071  --enable-pc98           Enable PC98 support in Xorg (default: auto)
2072  --enable-aiglx          Build accelerated indirect GLX (default: enabled)
2073  --enable-glx-tls        Build GLX with TLS support (default: disabled)
2074  --disable-registry      Build string registry module (default: enabled)
2075  --disable-composite     Build Composite extension (default: enabled)
2076  --disable-shm           Build SHM extension (default: enabled)
2077  --disable-xres          Build XRes extension (default: enabled)
2078  --disable-record        Build Record extension (default: enabled)
2079  --disable-xv            Build Xv extension (default: enabled)
2080  --disable-xvmc          Build XvMC extension (default: enabled)
2081  --disable-dga           Build DGA extension (default: auto)
2082  --disable-screensaver   Build ScreenSaver extension (default: enabled)
2083  --disable-xdmcp         Build XDMCP extension (default: auto)
2084  --disable-xdm-auth-1    Build XDM-Auth-1 extension (default: auto)
2085  --disable-glx           Build GLX extension (default: enabled)
2086  --enable-dri            Build DRI extension (default: auto)
2087  --enable-dri2           Build DRI2 extension (default: auto)
2088  --disable-xinerama      Build Xinerama extension (default: enabled)
2089  --disable-xf86vidmode   Build XF86VidMode extension (default: auto)
2090  --disable-xace          Build X-ACE extension (default: enabled)
2091  --enable-xselinux       Build SELinux extension (default: disabled)
2092  --enable-xcsecurity     Build Security extension (default: disabled)
2093  --enable-xcalibrate     Build XCalibrate extension (default: disabled)
2094  --enable-tslib          Build kdrive tslib touchscreen support (default:
2095                          disabled)
2096  --disable-dbe           Build DBE extension (default: enabled)
2097  --enable-xf86bigfont    Build XF86 Big Font extension (default: disabled)
2098  --disable-dpms          Build DPMS extension (default: enabled)
2099  --enable-config-udev    Build udev support (default: auto)
2100  --enable-config-dbus    Build D-BUS API support (default: no)
2101  --disable-config-hal    Build HAL support (default: auto)
2102  --enable-xfree86-utils  Build xfree86 DDX utilities (default: enabled)
2103  --enable-xaa            Build XAA (default: enabled)
2104  --enable-vgahw          Build Xorg with vga access (default: enabled)
2105  --enable-vbe            Build Xorg with VBE module (default: enabled)
2106  --enable-int10-module   Build Xorg with int10 module (default: enabled)
2107  --enable-windowswm      Build XWin with WindowsWM extension (default: no)
2108  --enable-libdrm         Build Xorg with libdrm support (default: enabled)
2109  --enable-xorg           Build Xorg server (default: auto)
2110  --enable-dmx            Build DMX server (default: auto)
2111  --enable-xvfb           Build Xvfb server (default: yes)
2112  --enable-xnest          Build Xnest server (default: auto)
2113  --enable-xquartz        Build Xquartz server for OS-X (default: auto)
2114  --enable-standalone-xpbproxy
2115                          Build a standalone xpbproxy (in addition to the one
2116                          integrated into Xquartz as a separate thread)
2117                          (default: no)
2118  --enable-xwin           Build XWin server (default: auto)
2119  --enable-kdrive         Build kdrive servers (default: no)
2120  --enable-xephyr         Build the kdrive Xephyr server (default: auto)
2121  --enable-xfake          Build the kdrive 'fake' server (default: auto)
2122  --enable-xfbdev         Build the kdrive framebuffer device server (default:
2123                          auto)
2124  --enable-kdrive-kbd     Build kbd driver for kdrive (default: auto)
2125  --enable-kdrive-mouse   Build mouse driver for kdrive (default: auto)
2126  --enable-kdrive-evdev   Build evdev driver for kdrive (default: auto)
2127  --enable-install-setuid Install Xorg server as owned by root with setuid bit
2128                          (default: auto)
2129  --enable-unix-transport Enable UNIX domain socket transport
2130  --enable-tcp-transport  Enable TCP socket transport
2131  --enable-ipv6           Enable IPv6 support
2132  --enable-local-transport
2133                          Enable os-specific local transport
2134  --enable-secure-rpc     Enable Secure RPC
2135  --enable-docs           Enable building the documentation (default: yes)
2136  --enable-devel-docs     Enable building the developer documentation
2137                          (default: yes)
2138
2139Optional Packages:
2140  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2141  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2142  --with-doxygen          Use doxygen to regenerate documentation (default:
2143                          auto)
2144  --with-pic              try to use only PIC/non-PIC objects [default=use
2145                          both]
2146  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2147  --with-sysroot=DIR Search for dependent libraries within DIR
2148                        (or the compiler's sysroot if not specified).
2149  --with-dtrace=PATH      Enable dtrace probes (default: enabled if dtrace
2150                          found)
2151  --with-int10=BACKEND    int10 backend: vm86, x86emu or stub
2152  --with-vendor-name=VENDOR
2153                          Vendor string reported by the server
2154  --with-vendor-name-short=VENDOR
2155                          Short version of vendor string reported by the
2156                          server
2157  --with-vendor-web=URL   Vendor web address reported by the server
2158  --with-module-dir=DIR   Directory where modules are installed (default:
2159                          $libdir/xorg/modules)
2160  --with-log-dir=DIR      Directory where log files are kept (default:
2161                          $localstatedir/log)
2162  --with-builder-addr=ADDRESS
2163                          Builder address (default:
2164                          xorg@lists.freedesktop.org)
2165  --with-os-name=OSNAME   Name of OS (default: output of "uname -srm")
2166  --with-os-vendor=OSVENDOR
2167                          Name of OS vendor
2168  --with-builderstring=BUILDERSTRING
2169                          Additional builder string
2170  --with-fontrootdir=DIR  Path to root directory for font files
2171  --with-fontmiscdir=DIR  Path to misc files [FONTROOTDIR/misc]
2172  --with-fontotfdir=DIR   Path to OTF files [FONTROOTDIR/OTF]
2173  --with-fontttfdir=DIR   Path to TTF files [FONTROOTDIR/TTF]
2174  --with-fonttype1dir=DIR Path to Type1 files [FONTROOTDIR/Type1]
2175  --with-font75dpidir=DIR Path to 75dpi files [FONTROOTDIR/75dpi]
2176  --with-font100dpidir=DIR
2177                          Path to 100dpi files [FONTROOTDIR/100dpi]
2178  --with-default-font-path=PATH
2179                          Comma separated list of font dirs
2180  --with-xkb-path=PATH    Path to XKB base dir (default: ${datadir}/X11/xkb)
2181  --with-xkb-output=PATH  Path to XKB output dir (default:
2182                          ${datadir}/X11/xkb/compiled)
2183  --with-default-xkb-rules=RULES
2184                          Keyboard ruleset (default: base/evdev)
2185  --with-default-xkb-model=MODEL
2186                          Keyboard model (default: pc105)
2187  --with-default-xkb-layout=LAYOUT
2188                          Keyboard layout (default: us)
2189  --with-default-xkb-variant=VARIANT
2190                          Keyboard variant (default: (none))
2191  --with-default-xkb-options=OPTIONS
2192                          Keyboard layout options (default: (none))
2193  --with-serverconfig-path=PATH
2194                          Directory where ancillary server config files are
2195                          installed (default: ${libdir}/xorg)
2196  --with-apple-applications-dir=PATH
2197                          Path to the Applications directory (default:
2198                          /Applications/Utilities)
2199  --with-apple-application-name=NAME
2200                          Name for the .app (default: X11)
2201  --with-launchd-id-prefix=PATH
2202                          Prefix to use for launchd identifiers (default:
2203                          org.x)
2204  --with-dri-driver-path=PATH
2205                          Path to DRI drivers (default: ${libdir}/dri)
2206  --with-xmlto            Use xmlto to regenerate documentation (default:
2207                          auto)
2208  --with-fop              Use fop to regenerate documentation (default: auto)
2209  --with-xkb-bin-directory=DIR
2210                          Directory containing xkbcomp program
2211  --with-sha1=libc|libmd|libgcrypt|libcrypto|libsha1|CommonCrypto
2212                          choose SHA1 implementation
2213
2214Some influential environment variables:
2215  CC          C compiler command
2216  CFLAGS      C compiler flags
2217  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2218              nonstandard directory <lib dir>
2219  LIBS        libraries to pass to the linker, e.g. -l<library>
2220  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2221              you have headers in a nonstandard directory <include dir>
2222  CPP         C preprocessor
2223  PKG_CONFIG  path to pkg-config utility
2224  PKG_CONFIG_PATH
2225              directories to add to pkg-config's search path
2226  PKG_CONFIG_LIBDIR
2227              path overriding pkg-config's built-in search path
2228  DOXYGEN     Path to doxygen command
2229  CCAS        assembler compiler command (defaults to CC)
2230  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
2231  YACC        The `Yet Another Compiler Compiler' implementation to use.
2232              Defaults to the first program found out of: `bison -y', `byacc',
2233              `yacc'.
2234  YFLAGS      The list of arguments that will be passed by default to $YACC.
2235              This script will default YFLAGS to the empty string to avoid a
2236              default value of `-d' given by some make applications.
2237  XMLTO       Path to xmlto command
2238  FOP         Path to fop command
2239  PIXMAN_CFLAGS
2240              C compiler flags for PIXMAN, overriding pkg-config
2241  PIXMAN_LIBS linker flags for PIXMAN, overriding pkg-config
2242  UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
2243  UDEV_LIBS   linker flags for UDEV, overriding pkg-config
2244  DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
2245  DBUS_LIBS   linker flags for DBUS, overriding pkg-config
2246  HAL_CFLAGS  C compiler flags for HAL, overriding pkg-config
2247  HAL_LIBS    linker flags for HAL, overriding pkg-config
2248  XLIB_CFLAGS C compiler flags for XLIB, overriding pkg-config
2249  XLIB_LIBS   linker flags for XLIB, overriding pkg-config
2250  GL_CFLAGS   C compiler flags for GL, overriding pkg-config
2251  GL_LIBS     linker flags for GL, overriding pkg-config
2252  DRIPROTO_CFLAGS
2253              C compiler flags for DRIPROTO, overriding pkg-config
2254  DRIPROTO_LIBS
2255              linker flags for DRIPROTO, overriding pkg-config
2256  DRI_CFLAGS  C compiler flags for DRI, overriding pkg-config
2257  DRI_LIBS    linker flags for DRI, overriding pkg-config
2258  DRI2PROTO_CFLAGS
2259              C compiler flags for DRI2PROTO, overriding pkg-config
2260  DRI2PROTO_LIBS
2261              linker flags for DRI2PROTO, overriding pkg-config
2262  LIBDRM_CFLAGS
2263              C compiler flags for LIBDRM, overriding pkg-config
2264  LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
2265  SELINUX_CFLAGS
2266              C compiler flags for SELINUX, overriding pkg-config
2267  SELINUX_LIBS
2268              linker flags for SELINUX, overriding pkg-config
2269  XDMCP_CFLAGS
2270              C compiler flags for XDMCP, overriding pkg-config
2271  XDMCP_LIBS  linker flags for XDMCP, overriding pkg-config
2272  GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
2273  GLIB_LIBS   linker flags for GLIB, overriding pkg-config
2274  LIBSHA1_CFLAGS
2275              C compiler flags for LIBSHA1, overriding pkg-config
2276  LIBSHA1_LIBS
2277              linker flags for LIBSHA1, overriding pkg-config
2278  OPENSSL_CFLAGS
2279              C compiler flags for OPENSSL, overriding pkg-config
2280  OPENSSL_LIBS
2281              linker flags for OPENSSL, overriding pkg-config
2282  XSERVERCFLAGS_CFLAGS
2283              C compiler flags for XSERVERCFLAGS, overriding pkg-config
2284  XSERVERCFLAGS_LIBS
2285              linker flags for XSERVERCFLAGS, overriding pkg-config
2286  XSERVERLIBS_CFLAGS
2287              C compiler flags for XSERVERLIBS, overriding pkg-config
2288  XSERVERLIBS_LIBS
2289              linker flags for XSERVERLIBS, overriding pkg-config
2290  XNESTMODULES_CFLAGS
2291              C compiler flags for XNESTMODULES, overriding pkg-config
2292  XNESTMODULES_LIBS
2293              linker flags for XNESTMODULES, overriding pkg-config
2294  PCIACCESS_CFLAGS
2295              C compiler flags for PCIACCESS, overriding pkg-config
2296  PCIACCESS_LIBS
2297              linker flags for PCIACCESS, overriding pkg-config
2298  DGA_CFLAGS  C compiler flags for DGA, overriding pkg-config
2299  DGA_LIBS    linker flags for DGA, overriding pkg-config
2300  XF86VIDMODE_CFLAGS
2301              C compiler flags for XF86VIDMODE, overriding pkg-config
2302  XF86VIDMODE_LIBS
2303              linker flags for XF86VIDMODE, overriding pkg-config
2304  XORG_MODULES_CFLAGS
2305              C compiler flags for XORG_MODULES, overriding pkg-config
2306  XORG_MODULES_LIBS
2307              linker flags for XORG_MODULES, overriding pkg-config
2308  XWINMODULES_CFLAGS
2309              C compiler flags for XWINMODULES, overriding pkg-config
2310  XWINMODULES_LIBS
2311              linker flags for XWINMODULES, overriding pkg-config
2312  WINDOWSWM_CFLAGS
2313              C compiler flags for WINDOWSWM, overriding pkg-config
2314  WINDOWSWM_LIBS
2315              linker flags for WINDOWSWM, overriding pkg-config
2316  XPBPROXY_CFLAGS
2317              C compiler flags for XPBPROXY, overriding pkg-config
2318  XPBPROXY_LIBS
2319              linker flags for XPBPROXY, overriding pkg-config
2320  DMXMODULES_CFLAGS
2321              C compiler flags for DMXMODULES, overriding pkg-config
2322  DMXMODULES_LIBS
2323              linker flags for DMXMODULES, overriding pkg-config
2324  XDMXCONFIG_DEP_CFLAGS
2325              C compiler flags for XDMXCONFIG_DEP, overriding pkg-config
2326  XDMXCONFIG_DEP_LIBS
2327              linker flags for XDMXCONFIG_DEP, overriding pkg-config
2328  DMXEXAMPLES_DEP_CFLAGS
2329              C compiler flags for DMXEXAMPLES_DEP, overriding pkg-config
2330  DMXEXAMPLES_DEP_LIBS
2331              linker flags for DMXEXAMPLES_DEP, overriding pkg-config
2332  DMXXMUEXAMPLES_DEP_CFLAGS
2333              C compiler flags for DMXXMUEXAMPLES_DEP, overriding pkg-config
2334  DMXXMUEXAMPLES_DEP_LIBS
2335              linker flags for DMXXMUEXAMPLES_DEP, overriding pkg-config
2336  DMXXIEXAMPLES_DEP_CFLAGS
2337              C compiler flags for DMXXIEXAMPLES_DEP, overriding pkg-config
2338  DMXXIEXAMPLES_DEP_LIBS
2339              linker flags for DMXXIEXAMPLES_DEP, overriding pkg-config
2340  XTSTEXAMPLES_DEP_CFLAGS
2341              C compiler flags for XTSTEXAMPLES_DEP, overriding pkg-config
2342  XTSTEXAMPLES_DEP_LIBS
2343              linker flags for XTSTEXAMPLES_DEP, overriding pkg-config
2344  XRESEXAMPLES_DEP_CFLAGS
2345              C compiler flags for XRESEXAMPLES_DEP, overriding pkg-config
2346  XRESEXAMPLES_DEP_LIBS
2347              linker flags for XRESEXAMPLES_DEP, overriding pkg-config
2348  X11EXAMPLES_DEP_CFLAGS
2349              C compiler flags for X11EXAMPLES_DEP, overriding pkg-config
2350  X11EXAMPLES_DEP_LIBS
2351              linker flags for X11EXAMPLES_DEP, overriding pkg-config
2352  TSLIB_CFLAGS
2353              C compiler flags for TSLIB, overriding pkg-config
2354  TSLIB_LIBS  linker flags for TSLIB, overriding pkg-config
2355  XEPHYR_CFLAGS
2356              C compiler flags for XEPHYR, overriding pkg-config
2357  XEPHYR_LIBS linker flags for XEPHYR, overriding pkg-config
2358
2359Use these variables to override the choices made by `configure' or to help
2360it to find libraries and programs with nonstandard names/locations.
2361
2362Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
2363_ACEOF
2364ac_status=$?
2365fi
2366
2367if test "$ac_init_help" = "recursive"; then
2368  # If there are subdirs, report their specific --help.
2369  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2370    test -d "$ac_dir" ||
2371      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2372      continue
2373    ac_builddir=.
2374
2375case "$ac_dir" in
2376.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2377*)
2378  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2379  # A ".." for each directory in $ac_dir_suffix.
2380  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2381  case $ac_top_builddir_sub in
2382  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2383  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2384  esac ;;
2385esac
2386ac_abs_top_builddir=$ac_pwd
2387ac_abs_builddir=$ac_pwd$ac_dir_suffix
2388# for backward compatibility:
2389ac_top_builddir=$ac_top_build_prefix
2390
2391case $srcdir in
2392  .)  # We are building in place.
2393    ac_srcdir=.
2394    ac_top_srcdir=$ac_top_builddir_sub
2395    ac_abs_top_srcdir=$ac_pwd ;;
2396  [\\/]* | ?:[\\/]* )  # Absolute name.
2397    ac_srcdir=$srcdir$ac_dir_suffix;
2398    ac_top_srcdir=$srcdir
2399    ac_abs_top_srcdir=$srcdir ;;
2400  *) # Relative name.
2401    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2402    ac_top_srcdir=$ac_top_build_prefix$srcdir
2403    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2404esac
2405ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2406
2407    cd "$ac_dir" || { ac_status=$?; continue; }
2408    # Check for guested configure.
2409    if test -f "$ac_srcdir/configure.gnu"; then
2410      echo &&
2411      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2412    elif test -f "$ac_srcdir/configure"; then
2413      echo &&
2414      $SHELL "$ac_srcdir/configure" --help=recursive
2415    else
2416      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2417    fi || ac_status=$?
2418    cd "$ac_pwd" || { ac_status=$?; break; }
2419  done
2420fi
2421
2422test -n "$ac_init_help" && exit $ac_status
2423if $ac_init_version; then
2424  cat <<\_ACEOF
2425xorg-server configure 1.9.5
2426generated by GNU Autoconf 2.68
2427
2428Copyright (C) 2010 Free Software Foundation, Inc.
2429This configure script is free software; the Free Software Foundation
2430gives unlimited permission to copy, distribute and modify it.
2431_ACEOF
2432  exit
2433fi
2434
2435## ------------------------ ##
2436## Autoconf initialization. ##
2437## ------------------------ ##
2438
2439# ac_fn_c_try_compile LINENO
2440# --------------------------
2441# Try to compile conftest.$ac_ext, and return whether this succeeded.
2442ac_fn_c_try_compile ()
2443{
2444  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2445  rm -f conftest.$ac_objext
2446  if { { ac_try="$ac_compile"
2447case "(($ac_try" in
2448  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2449  *) ac_try_echo=$ac_try;;
2450esac
2451eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2452$as_echo "$ac_try_echo"; } >&5
2453  (eval "$ac_compile") 2>conftest.err
2454  ac_status=$?
2455  if test -s conftest.err; then
2456    grep -v '^ *+' conftest.err >conftest.er1
2457    cat conftest.er1 >&5
2458    mv -f conftest.er1 conftest.err
2459  fi
2460  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2461  test $ac_status = 0; } && {
2462	 test -z "$ac_c_werror_flag" ||
2463	 test ! -s conftest.err
2464       } && test -s conftest.$ac_objext; then :
2465  ac_retval=0
2466else
2467  $as_echo "$as_me: failed program was:" >&5
2468sed 's/^/| /' conftest.$ac_ext >&5
2469
2470	ac_retval=1
2471fi
2472  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2473  as_fn_set_status $ac_retval
2474
2475} # ac_fn_c_try_compile
2476
2477# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2478# ---------------------------------------------
2479# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2480# accordingly.
2481ac_fn_c_check_decl ()
2482{
2483  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2484  as_decl_name=`echo $2|sed 's/ *(.*//'`
2485  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2486  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2487$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2488if eval \${$3+:} false; then :
2489  $as_echo_n "(cached) " >&6
2490else
2491  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2492/* end confdefs.h.  */
2493$4
2494int
2495main ()
2496{
2497#ifndef $as_decl_name
2498#ifdef __cplusplus
2499  (void) $as_decl_use;
2500#else
2501  (void) $as_decl_name;
2502#endif
2503#endif
2504
2505  ;
2506  return 0;
2507}
2508_ACEOF
2509if ac_fn_c_try_compile "$LINENO"; then :
2510  eval "$3=yes"
2511else
2512  eval "$3=no"
2513fi
2514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2515fi
2516eval ac_res=\$$3
2517	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2518$as_echo "$ac_res" >&6; }
2519  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2520
2521} # ac_fn_c_check_decl
2522
2523# ac_fn_c_try_cpp LINENO
2524# ----------------------
2525# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2526ac_fn_c_try_cpp ()
2527{
2528  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2529  if { { ac_try="$ac_cpp conftest.$ac_ext"
2530case "(($ac_try" in
2531  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2532  *) ac_try_echo=$ac_try;;
2533esac
2534eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2535$as_echo "$ac_try_echo"; } >&5
2536  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2537  ac_status=$?
2538  if test -s conftest.err; then
2539    grep -v '^ *+' conftest.err >conftest.er1
2540    cat conftest.er1 >&5
2541    mv -f conftest.er1 conftest.err
2542  fi
2543  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2544  test $ac_status = 0; } > conftest.i && {
2545	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2546	 test ! -s conftest.err
2547       }; then :
2548  ac_retval=0
2549else
2550  $as_echo "$as_me: failed program was:" >&5
2551sed 's/^/| /' conftest.$ac_ext >&5
2552
2553    ac_retval=1
2554fi
2555  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2556  as_fn_set_status $ac_retval
2557
2558} # ac_fn_c_try_cpp
2559
2560# ac_fn_c_try_run LINENO
2561# ----------------------
2562# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2563# that executables *can* be run.
2564ac_fn_c_try_run ()
2565{
2566  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2567  if { { ac_try="$ac_link"
2568case "(($ac_try" in
2569  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2570  *) ac_try_echo=$ac_try;;
2571esac
2572eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2573$as_echo "$ac_try_echo"; } >&5
2574  (eval "$ac_link") 2>&5
2575  ac_status=$?
2576  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2577  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2578  { { case "(($ac_try" in
2579  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2580  *) ac_try_echo=$ac_try;;
2581esac
2582eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2583$as_echo "$ac_try_echo"; } >&5
2584  (eval "$ac_try") 2>&5
2585  ac_status=$?
2586  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2587  test $ac_status = 0; }; }; then :
2588  ac_retval=0
2589else
2590  $as_echo "$as_me: program exited with status $ac_status" >&5
2591       $as_echo "$as_me: failed program was:" >&5
2592sed 's/^/| /' conftest.$ac_ext >&5
2593
2594       ac_retval=$ac_status
2595fi
2596  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2597  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2598  as_fn_set_status $ac_retval
2599
2600} # ac_fn_c_try_run
2601
2602# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2603# -------------------------------------------------------
2604# Tests whether HEADER exists and can be compiled using the include files in
2605# INCLUDES, setting the cache variable VAR accordingly.
2606ac_fn_c_check_header_compile ()
2607{
2608  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2609  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2610$as_echo_n "checking for $2... " >&6; }
2611if eval \${$3+:} false; then :
2612  $as_echo_n "(cached) " >&6
2613else
2614  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2615/* end confdefs.h.  */
2616$4
2617#include <$2>
2618_ACEOF
2619if ac_fn_c_try_compile "$LINENO"; then :
2620  eval "$3=yes"
2621else
2622  eval "$3=no"
2623fi
2624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2625fi
2626eval ac_res=\$$3
2627	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2628$as_echo "$ac_res" >&6; }
2629  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2630
2631} # ac_fn_c_check_header_compile
2632
2633# ac_fn_c_try_link LINENO
2634# -----------------------
2635# Try to link conftest.$ac_ext, and return whether this succeeded.
2636ac_fn_c_try_link ()
2637{
2638  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2639  rm -f conftest.$ac_objext conftest$ac_exeext
2640  if { { ac_try="$ac_link"
2641case "(($ac_try" in
2642  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2643  *) ac_try_echo=$ac_try;;
2644esac
2645eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2646$as_echo "$ac_try_echo"; } >&5
2647  (eval "$ac_link") 2>conftest.err
2648  ac_status=$?
2649  if test -s conftest.err; then
2650    grep -v '^ *+' conftest.err >conftest.er1
2651    cat conftest.er1 >&5
2652    mv -f conftest.er1 conftest.err
2653  fi
2654  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2655  test $ac_status = 0; } && {
2656	 test -z "$ac_c_werror_flag" ||
2657	 test ! -s conftest.err
2658       } && test -s conftest$ac_exeext && {
2659	 test "$cross_compiling" = yes ||
2660	 $as_test_x conftest$ac_exeext
2661       }; then :
2662  ac_retval=0
2663else
2664  $as_echo "$as_me: failed program was:" >&5
2665sed 's/^/| /' conftest.$ac_ext >&5
2666
2667	ac_retval=1
2668fi
2669  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2670  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2671  # interfere with the next link command; also delete a directory that is
2672  # left behind by Apple's compiler.  We do this before executing the actions.
2673  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2674  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2675  as_fn_set_status $ac_retval
2676
2677} # ac_fn_c_try_link
2678
2679# ac_fn_c_check_func LINENO FUNC VAR
2680# ----------------------------------
2681# Tests whether FUNC exists, setting the cache variable VAR accordingly
2682ac_fn_c_check_func ()
2683{
2684  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2685  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2686$as_echo_n "checking for $2... " >&6; }
2687if eval \${$3+:} false; then :
2688  $as_echo_n "(cached) " >&6
2689else
2690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2691/* end confdefs.h.  */
2692/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2693   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2694#define $2 innocuous_$2
2695
2696/* System header to define __stub macros and hopefully few prototypes,
2697    which can conflict with char $2 (); below.
2698    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2699    <limits.h> exists even on freestanding compilers.  */
2700
2701#ifdef __STDC__
2702# include <limits.h>
2703#else
2704# include <assert.h>
2705#endif
2706
2707#undef $2
2708
2709/* Override any GCC internal prototype to avoid an error.
2710   Use char because int might match the return type of a GCC
2711   builtin and then its argument prototype would still apply.  */
2712#ifdef __cplusplus
2713extern "C"
2714#endif
2715char $2 ();
2716/* The GNU C library defines this for functions which it implements
2717    to always fail with ENOSYS.  Some functions are actually named
2718    something starting with __ and the normal name is an alias.  */
2719#if defined __stub_$2 || defined __stub___$2
2720choke me
2721#endif
2722
2723int
2724main ()
2725{
2726return $2 ();
2727  ;
2728  return 0;
2729}
2730_ACEOF
2731if ac_fn_c_try_link "$LINENO"; then :
2732  eval "$3=yes"
2733else
2734  eval "$3=no"
2735fi
2736rm -f core conftest.err conftest.$ac_objext \
2737    conftest$ac_exeext conftest.$ac_ext
2738fi
2739eval ac_res=\$$3
2740	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2741$as_echo "$ac_res" >&6; }
2742  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2743
2744} # ac_fn_c_check_func
2745
2746# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2747# -------------------------------------------------------
2748# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2749# the include files in INCLUDES and setting the cache variable VAR
2750# accordingly.
2751ac_fn_c_check_header_mongrel ()
2752{
2753  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2754  if eval \${$3+:} false; then :
2755  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2756$as_echo_n "checking for $2... " >&6; }
2757if eval \${$3+:} false; then :
2758  $as_echo_n "(cached) " >&6
2759fi
2760eval ac_res=\$$3
2761	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2762$as_echo "$ac_res" >&6; }
2763else
2764  # Is the header compilable?
2765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2766$as_echo_n "checking $2 usability... " >&6; }
2767cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2768/* end confdefs.h.  */
2769$4
2770#include <$2>
2771_ACEOF
2772if ac_fn_c_try_compile "$LINENO"; then :
2773  ac_header_compiler=yes
2774else
2775  ac_header_compiler=no
2776fi
2777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2779$as_echo "$ac_header_compiler" >&6; }
2780
2781# Is the header present?
2782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2783$as_echo_n "checking $2 presence... " >&6; }
2784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2785/* end confdefs.h.  */
2786#include <$2>
2787_ACEOF
2788if ac_fn_c_try_cpp "$LINENO"; then :
2789  ac_header_preproc=yes
2790else
2791  ac_header_preproc=no
2792fi
2793rm -f conftest.err conftest.i conftest.$ac_ext
2794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2795$as_echo "$ac_header_preproc" >&6; }
2796
2797# So?  What about this header?
2798case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2799  yes:no: )
2800    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2801$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2802    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2803$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2804    ;;
2805  no:yes:* )
2806    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2807$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2808    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2809$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2810    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2811$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2812    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2813$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2814    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2815$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2816( $as_echo "## ---------------------------------------------------------------------- ##
2817## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
2818## ---------------------------------------------------------------------- ##"
2819     ) | sed "s/^/$as_me: WARNING:     /" >&2
2820    ;;
2821esac
2822  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2823$as_echo_n "checking for $2... " >&6; }
2824if eval \${$3+:} false; then :
2825  $as_echo_n "(cached) " >&6
2826else
2827  eval "$3=\$ac_header_compiler"
2828fi
2829eval ac_res=\$$3
2830	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2831$as_echo "$ac_res" >&6; }
2832fi
2833  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2834
2835} # ac_fn_c_check_header_mongrel
2836
2837# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2838# --------------------------------------------
2839# Tries to find the compile-time value of EXPR in a program that includes
2840# INCLUDES, setting VAR accordingly. Returns whether the value could be
2841# computed
2842ac_fn_c_compute_int ()
2843{
2844  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2845  if test "$cross_compiling" = yes; then
2846    # Depending upon the size, compute the lo and hi bounds.
2847cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2848/* end confdefs.h.  */
2849$4
2850int
2851main ()
2852{
2853static int test_array [1 - 2 * !(($2) >= 0)];
2854test_array [0] = 0
2855
2856  ;
2857  return 0;
2858}
2859_ACEOF
2860if ac_fn_c_try_compile "$LINENO"; then :
2861  ac_lo=0 ac_mid=0
2862  while :; do
2863    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2864/* end confdefs.h.  */
2865$4
2866int
2867main ()
2868{
2869static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2870test_array [0] = 0
2871
2872  ;
2873  return 0;
2874}
2875_ACEOF
2876if ac_fn_c_try_compile "$LINENO"; then :
2877  ac_hi=$ac_mid; break
2878else
2879  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2880			if test $ac_lo -le $ac_mid; then
2881			  ac_lo= ac_hi=
2882			  break
2883			fi
2884			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2885fi
2886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2887  done
2888else
2889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2890/* end confdefs.h.  */
2891$4
2892int
2893main ()
2894{
2895static int test_array [1 - 2 * !(($2) < 0)];
2896test_array [0] = 0
2897
2898  ;
2899  return 0;
2900}
2901_ACEOF
2902if ac_fn_c_try_compile "$LINENO"; then :
2903  ac_hi=-1 ac_mid=-1
2904  while :; do
2905    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2906/* end confdefs.h.  */
2907$4
2908int
2909main ()
2910{
2911static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2912test_array [0] = 0
2913
2914  ;
2915  return 0;
2916}
2917_ACEOF
2918if ac_fn_c_try_compile "$LINENO"; then :
2919  ac_lo=$ac_mid; break
2920else
2921  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2922			if test $ac_mid -le $ac_hi; then
2923			  ac_lo= ac_hi=
2924			  break
2925			fi
2926			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2927fi
2928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2929  done
2930else
2931  ac_lo= ac_hi=
2932fi
2933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2934fi
2935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2936# Binary search between lo and hi bounds.
2937while test "x$ac_lo" != "x$ac_hi"; do
2938  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2939  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2940/* end confdefs.h.  */
2941$4
2942int
2943main ()
2944{
2945static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2946test_array [0] = 0
2947
2948  ;
2949  return 0;
2950}
2951_ACEOF
2952if ac_fn_c_try_compile "$LINENO"; then :
2953  ac_hi=$ac_mid
2954else
2955  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2956fi
2957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2958done
2959case $ac_lo in #((
2960?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2961'') ac_retval=1 ;;
2962esac
2963  else
2964    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2965/* end confdefs.h.  */
2966$4
2967static long int longval () { return $2; }
2968static unsigned long int ulongval () { return $2; }
2969#include <stdio.h>
2970#include <stdlib.h>
2971int
2972main ()
2973{
2974
2975  FILE *f = fopen ("conftest.val", "w");
2976  if (! f)
2977    return 1;
2978  if (($2) < 0)
2979    {
2980      long int i = longval ();
2981      if (i != ($2))
2982	return 1;
2983      fprintf (f, "%ld", i);
2984    }
2985  else
2986    {
2987      unsigned long int i = ulongval ();
2988      if (i != ($2))
2989	return 1;
2990      fprintf (f, "%lu", i);
2991    }
2992  /* Do not output a trailing newline, as this causes \r\n confusion
2993     on some platforms.  */
2994  return ferror (f) || fclose (f) != 0;
2995
2996  ;
2997  return 0;
2998}
2999_ACEOF
3000if ac_fn_c_try_run "$LINENO"; then :
3001  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3002else
3003  ac_retval=1
3004fi
3005rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3006  conftest.$ac_objext conftest.beam conftest.$ac_ext
3007rm -f conftest.val
3008
3009  fi
3010  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3011  as_fn_set_status $ac_retval
3012
3013} # ac_fn_c_compute_int
3014
3015# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
3016# -------------------------------------------
3017# Tests whether TYPE exists after having included INCLUDES, setting cache
3018# variable VAR accordingly.
3019ac_fn_c_check_type ()
3020{
3021  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3022  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3023$as_echo_n "checking for $2... " >&6; }
3024if eval \${$3+:} false; then :
3025  $as_echo_n "(cached) " >&6
3026else
3027  eval "$3=no"
3028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3029/* end confdefs.h.  */
3030$4
3031int
3032main ()
3033{
3034if (sizeof ($2))
3035	 return 0;
3036  ;
3037  return 0;
3038}
3039_ACEOF
3040if ac_fn_c_try_compile "$LINENO"; then :
3041  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3042/* end confdefs.h.  */
3043$4
3044int
3045main ()
3046{
3047if (sizeof (($2)))
3048	    return 0;
3049  ;
3050  return 0;
3051}
3052_ACEOF
3053if ac_fn_c_try_compile "$LINENO"; then :
3054
3055else
3056  eval "$3=yes"
3057fi
3058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3059fi
3060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3061fi
3062eval ac_res=\$$3
3063	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3064$as_echo "$ac_res" >&6; }
3065  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3066
3067} # ac_fn_c_check_type
3068
3069# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3070# ----------------------------------------------------
3071# Tries to find if the field MEMBER exists in type AGGR, after including
3072# INCLUDES, setting cache variable VAR accordingly.
3073ac_fn_c_check_member ()
3074{
3075  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3076  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3077$as_echo_n "checking for $2.$3... " >&6; }
3078if eval \${$4+:} false; then :
3079  $as_echo_n "(cached) " >&6
3080else
3081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3082/* end confdefs.h.  */
3083$5
3084int
3085main ()
3086{
3087static $2 ac_aggr;
3088if (ac_aggr.$3)
3089return 0;
3090  ;
3091  return 0;
3092}
3093_ACEOF
3094if ac_fn_c_try_compile "$LINENO"; then :
3095  eval "$4=yes"
3096else
3097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3098/* end confdefs.h.  */
3099$5
3100int
3101main ()
3102{
3103static $2 ac_aggr;
3104if (sizeof ac_aggr.$3)
3105return 0;
3106  ;
3107  return 0;
3108}
3109_ACEOF
3110if ac_fn_c_try_compile "$LINENO"; then :
3111  eval "$4=yes"
3112else
3113  eval "$4=no"
3114fi
3115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3116fi
3117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3118fi
3119eval ac_res=\$$4
3120	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3121$as_echo "$ac_res" >&6; }
3122  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3123
3124} # ac_fn_c_check_member
3125cat >config.log <<_ACEOF
3126This file contains any messages produced by compilers while
3127running configure, to aid debugging if configure makes a mistake.
3128
3129It was created by xorg-server $as_me 1.9.5, which was
3130generated by GNU Autoconf 2.68.  Invocation command line was
3131
3132  $ $0 $@
3133
3134_ACEOF
3135exec 5>>config.log
3136{
3137cat <<_ASUNAME
3138## --------- ##
3139## Platform. ##
3140## --------- ##
3141
3142hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3143uname -m = `(uname -m) 2>/dev/null || echo unknown`
3144uname -r = `(uname -r) 2>/dev/null || echo unknown`
3145uname -s = `(uname -s) 2>/dev/null || echo unknown`
3146uname -v = `(uname -v) 2>/dev/null || echo unknown`
3147
3148/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3149/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3150
3151/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3152/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3153/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3154/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3155/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3156/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3157/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3158
3159_ASUNAME
3160
3161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162for as_dir in $PATH
3163do
3164  IFS=$as_save_IFS
3165  test -z "$as_dir" && as_dir=.
3166    $as_echo "PATH: $as_dir"
3167  done
3168IFS=$as_save_IFS
3169
3170} >&5
3171
3172cat >&5 <<_ACEOF
3173
3174
3175## ----------- ##
3176## Core tests. ##
3177## ----------- ##
3178
3179_ACEOF
3180
3181
3182# Keep a trace of the command line.
3183# Strip out --no-create and --no-recursion so they do not pile up.
3184# Strip out --silent because we don't want to record it for future runs.
3185# Also quote any args containing shell meta-characters.
3186# Make two passes to allow for proper duplicate-argument suppression.
3187ac_configure_args=
3188ac_configure_args0=
3189ac_configure_args1=
3190ac_must_keep_next=false
3191for ac_pass in 1 2
3192do
3193  for ac_arg
3194  do
3195    case $ac_arg in
3196    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3197    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3198    | -silent | --silent | --silen | --sile | --sil)
3199      continue ;;
3200    *\'*)
3201      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3202    esac
3203    case $ac_pass in
3204    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3205    2)
3206      as_fn_append ac_configure_args1 " '$ac_arg'"
3207      if test $ac_must_keep_next = true; then
3208	ac_must_keep_next=false # Got value, back to normal.
3209      else
3210	case $ac_arg in
3211	  *=* | --config-cache | -C | -disable-* | --disable-* \
3212	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3213	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3214	  | -with-* | --with-* | -without-* | --without-* | --x)
3215	    case "$ac_configure_args0 " in
3216	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3217	    esac
3218	    ;;
3219	  -* ) ac_must_keep_next=true ;;
3220	esac
3221      fi
3222      as_fn_append ac_configure_args " '$ac_arg'"
3223      ;;
3224    esac
3225  done
3226done
3227{ ac_configure_args0=; unset ac_configure_args0;}
3228{ ac_configure_args1=; unset ac_configure_args1;}
3229
3230# When interrupted or exit'd, cleanup temporary files, and complete
3231# config.log.  We remove comments because anyway the quotes in there
3232# would cause problems or look ugly.
3233# WARNING: Use '\'' to represent an apostrophe within the trap.
3234# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3235trap 'exit_status=$?
3236  # Save into config.log some information that might help in debugging.
3237  {
3238    echo
3239
3240    $as_echo "## ---------------- ##
3241## Cache variables. ##
3242## ---------------- ##"
3243    echo
3244    # The following way of writing the cache mishandles newlines in values,
3245(
3246  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3247    eval ac_val=\$$ac_var
3248    case $ac_val in #(
3249    *${as_nl}*)
3250      case $ac_var in #(
3251      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3252$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3253      esac
3254      case $ac_var in #(
3255      _ | IFS | as_nl) ;; #(
3256      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3257      *) { eval $ac_var=; unset $ac_var;} ;;
3258      esac ;;
3259    esac
3260  done
3261  (set) 2>&1 |
3262    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3263    *${as_nl}ac_space=\ *)
3264      sed -n \
3265	"s/'\''/'\''\\\\'\'''\''/g;
3266	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3267      ;; #(
3268    *)
3269      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3270      ;;
3271    esac |
3272    sort
3273)
3274    echo
3275
3276    $as_echo "## ----------------- ##
3277## Output variables. ##
3278## ----------------- ##"
3279    echo
3280    for ac_var in $ac_subst_vars
3281    do
3282      eval ac_val=\$$ac_var
3283      case $ac_val in
3284      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3285      esac
3286      $as_echo "$ac_var='\''$ac_val'\''"
3287    done | sort
3288    echo
3289
3290    if test -n "$ac_subst_files"; then
3291      $as_echo "## ------------------- ##
3292## File substitutions. ##
3293## ------------------- ##"
3294      echo
3295      for ac_var in $ac_subst_files
3296      do
3297	eval ac_val=\$$ac_var
3298	case $ac_val in
3299	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3300	esac
3301	$as_echo "$ac_var='\''$ac_val'\''"
3302      done | sort
3303      echo
3304    fi
3305
3306    if test -s confdefs.h; then
3307      $as_echo "## ----------- ##
3308## confdefs.h. ##
3309## ----------- ##"
3310      echo
3311      cat confdefs.h
3312      echo
3313    fi
3314    test "$ac_signal" != 0 &&
3315      $as_echo "$as_me: caught signal $ac_signal"
3316    $as_echo "$as_me: exit $exit_status"
3317  } >&5
3318  rm -f core *.core core.conftest.* &&
3319    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3320    exit $exit_status
3321' 0
3322for ac_signal in 1 2 13 15; do
3323  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3324done
3325ac_signal=0
3326
3327# confdefs.h avoids OS command line length limits that DEFS can exceed.
3328rm -f -r conftest* confdefs.h
3329
3330$as_echo "/* confdefs.h */" > confdefs.h
3331
3332# Predefined preprocessor variables.
3333
3334cat >>confdefs.h <<_ACEOF
3335#define PACKAGE_NAME "$PACKAGE_NAME"
3336_ACEOF
3337
3338cat >>confdefs.h <<_ACEOF
3339#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3340_ACEOF
3341
3342cat >>confdefs.h <<_ACEOF
3343#define PACKAGE_VERSION "$PACKAGE_VERSION"
3344_ACEOF
3345
3346cat >>confdefs.h <<_ACEOF
3347#define PACKAGE_STRING "$PACKAGE_STRING"
3348_ACEOF
3349
3350cat >>confdefs.h <<_ACEOF
3351#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3352_ACEOF
3353
3354cat >>confdefs.h <<_ACEOF
3355#define PACKAGE_URL "$PACKAGE_URL"
3356_ACEOF
3357
3358
3359# Let the site file select an alternate cache file if it wants to.
3360# Prefer an explicitly selected file to automatically selected ones.
3361ac_site_file1=NONE
3362ac_site_file2=NONE
3363if test -n "$CONFIG_SITE"; then
3364  # We do not want a PATH search for config.site.
3365  case $CONFIG_SITE in #((
3366    -*)  ac_site_file1=./$CONFIG_SITE;;
3367    */*) ac_site_file1=$CONFIG_SITE;;
3368    *)   ac_site_file1=./$CONFIG_SITE;;
3369  esac
3370elif test "x$prefix" != xNONE; then
3371  ac_site_file1=$prefix/share/config.site
3372  ac_site_file2=$prefix/etc/config.site
3373else
3374  ac_site_file1=$ac_default_prefix/share/config.site
3375  ac_site_file2=$ac_default_prefix/etc/config.site
3376fi
3377for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3378do
3379  test "x$ac_site_file" = xNONE && continue
3380  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3381    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3382$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3383    sed 's/^/| /' "$ac_site_file" >&5
3384    . "$ac_site_file" \
3385      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3386$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3387as_fn_error $? "failed to load site script $ac_site_file
3388See \`config.log' for more details" "$LINENO" 5; }
3389  fi
3390done
3391
3392if test -r "$cache_file"; then
3393  # Some versions of bash will fail to source /dev/null (special files
3394  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3395  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3396    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3397$as_echo "$as_me: loading cache $cache_file" >&6;}
3398    case $cache_file in
3399      [\\/]* | ?:[\\/]* ) . "$cache_file";;
3400      *)                      . "./$cache_file";;
3401    esac
3402  fi
3403else
3404  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3405$as_echo "$as_me: creating cache $cache_file" >&6;}
3406  >$cache_file
3407fi
3408
3409# Check that the precious variables saved in the cache have kept the same
3410# value.
3411ac_cache_corrupted=false
3412for ac_var in $ac_precious_vars; do
3413  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3414  eval ac_new_set=\$ac_env_${ac_var}_set
3415  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3416  eval ac_new_val=\$ac_env_${ac_var}_value
3417  case $ac_old_set,$ac_new_set in
3418    set,)
3419      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3420$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3421      ac_cache_corrupted=: ;;
3422    ,set)
3423      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3424$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3425      ac_cache_corrupted=: ;;
3426    ,);;
3427    *)
3428      if test "x$ac_old_val" != "x$ac_new_val"; then
3429	# differences in whitespace do not lead to failure.
3430	ac_old_val_w=`echo x $ac_old_val`
3431	ac_new_val_w=`echo x $ac_new_val`
3432	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3433	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3434$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3435	  ac_cache_corrupted=:
3436	else
3437	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3438$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3439	  eval $ac_var=\$ac_old_val
3440	fi
3441	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3442$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3443	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3444$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3445      fi;;
3446  esac
3447  # Pass precious variables to config.status.
3448  if test "$ac_new_set" = set; then
3449    case $ac_new_val in
3450    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3451    *) ac_arg=$ac_var=$ac_new_val ;;
3452    esac
3453    case " $ac_configure_args " in
3454      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3455      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3456    esac
3457  fi
3458done
3459if $ac_cache_corrupted; then
3460  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3461$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3462  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3463$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3464  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3465fi
3466## -------------------- ##
3467## Main body of script. ##
3468## -------------------- ##
3469
3470ac_ext=c
3471ac_cpp='$CPP $CPPFLAGS'
3472ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3473ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3474ac_compiler_gnu=$ac_cv_c_compiler_gnu
3475
3476
3477RELEASE_DATE="2011-03-17"
3478
3479am__api_version='1.11'
3480
3481ac_aux_dir=
3482for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3483  if test -f "$ac_dir/install-sh"; then
3484    ac_aux_dir=$ac_dir
3485    ac_install_sh="$ac_aux_dir/install-sh -c"
3486    break
3487  elif test -f "$ac_dir/install.sh"; then
3488    ac_aux_dir=$ac_dir
3489    ac_install_sh="$ac_aux_dir/install.sh -c"
3490    break
3491  elif test -f "$ac_dir/shtool"; then
3492    ac_aux_dir=$ac_dir
3493    ac_install_sh="$ac_aux_dir/shtool install -c"
3494    break
3495  fi
3496done
3497if test -z "$ac_aux_dir"; then
3498  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3499fi
3500
3501# These three variables are undocumented and unsupported,
3502# and are intended to be withdrawn in a future Autoconf release.
3503# They can cause serious problems if a builder's source tree is in a directory
3504# whose full name contains unusual characters.
3505ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3506ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3507ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3508
3509
3510# Find a good install program.  We prefer a C program (faster),
3511# so one script is as good as another.  But avoid the broken or
3512# incompatible versions:
3513# SysV /etc/install, /usr/sbin/install
3514# SunOS /usr/etc/install
3515# IRIX /sbin/install
3516# AIX /bin/install
3517# AmigaOS /C/install, which installs bootblocks on floppy discs
3518# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3519# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3520# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3521# OS/2's system install, which has a completely different semantic
3522# ./install, which can be erroneously created by make from ./install.sh.
3523# Reject install programs that cannot install multiple files.
3524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3525$as_echo_n "checking for a BSD-compatible install... " >&6; }
3526if test -z "$INSTALL"; then
3527if ${ac_cv_path_install+:} false; then :
3528  $as_echo_n "(cached) " >&6
3529else
3530  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3531for as_dir in $PATH
3532do
3533  IFS=$as_save_IFS
3534  test -z "$as_dir" && as_dir=.
3535    # Account for people who put trailing slashes in PATH elements.
3536case $as_dir/ in #((
3537  ./ | .// | /[cC]/* | \
3538  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3539  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3540  /usr/ucb/* ) ;;
3541  *)
3542    # OSF1 and SCO ODT 3.0 have their own names for install.
3543    # Don't use installbsd from OSF since it installs stuff as root
3544    # by default.
3545    for ac_prog in ginstall scoinst install; do
3546      for ac_exec_ext in '' $ac_executable_extensions; do
3547	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3548	  if test $ac_prog = install &&
3549	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3550	    # AIX install.  It has an incompatible calling convention.
3551	    :
3552	  elif test $ac_prog = install &&
3553	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3554	    # program-specific install script used by HP pwplus--don't use.
3555	    :
3556	  else
3557	    rm -rf conftest.one conftest.two conftest.dir
3558	    echo one > conftest.one
3559	    echo two > conftest.two
3560	    mkdir conftest.dir
3561	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3562	      test -s conftest.one && test -s conftest.two &&
3563	      test -s conftest.dir/conftest.one &&
3564	      test -s conftest.dir/conftest.two
3565	    then
3566	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3567	      break 3
3568	    fi
3569	  fi
3570	fi
3571      done
3572    done
3573    ;;
3574esac
3575
3576  done
3577IFS=$as_save_IFS
3578
3579rm -rf conftest.one conftest.two conftest.dir
3580
3581fi
3582  if test "${ac_cv_path_install+set}" = set; then
3583    INSTALL=$ac_cv_path_install
3584  else
3585    # As a last resort, use the slow shell script.  Don't cache a
3586    # value for INSTALL within a source directory, because that will
3587    # break other packages using the cache if that directory is
3588    # removed, or if the value is a relative name.
3589    INSTALL=$ac_install_sh
3590  fi
3591fi
3592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3593$as_echo "$INSTALL" >&6; }
3594
3595# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3596# It thinks the first close brace ends the variable substitution.
3597test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3598
3599test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3600
3601test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3602
3603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3604$as_echo_n "checking whether build environment is sane... " >&6; }
3605# Just in case
3606sleep 1
3607echo timestamp > conftest.file
3608# Reject unsafe characters in $srcdir or the absolute working directory
3609# name.  Accept space and tab only in the latter.
3610am_lf='
3611'
3612case `pwd` in
3613  *[\\\"\#\$\&\'\`$am_lf]*)
3614    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3615esac
3616case $srcdir in
3617  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3618    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3619esac
3620
3621# Do `set' in a subshell so we don't clobber the current shell's
3622# arguments.  Must try -L first in case configure is actually a
3623# symlink; some systems play weird games with the mod time of symlinks
3624# (eg FreeBSD returns the mod time of the symlink's containing
3625# directory).
3626if (
3627   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3628   if test "$*" = "X"; then
3629      # -L didn't work.
3630      set X `ls -t "$srcdir/configure" conftest.file`
3631   fi
3632   rm -f conftest.file
3633   if test "$*" != "X $srcdir/configure conftest.file" \
3634      && test "$*" != "X conftest.file $srcdir/configure"; then
3635
3636      # If neither matched, then we have a broken ls.  This can happen
3637      # if, for instance, CONFIG_SHELL is bash and it inherits a
3638      # broken ls alias from the environment.  This has actually
3639      # happened.  Such a system could not be considered "sane".
3640      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3641alias in your environment" "$LINENO" 5
3642   fi
3643
3644   test "$2" = conftest.file
3645   )
3646then
3647   # Ok.
3648   :
3649else
3650   as_fn_error $? "newly created file is older than distributed files!
3651Check your system clock" "$LINENO" 5
3652fi
3653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3654$as_echo "yes" >&6; }
3655test "$program_prefix" != NONE &&
3656  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3657# Use a double $ so make ignores it.
3658test "$program_suffix" != NONE &&
3659  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3660# Double any \ or $.
3661# By default was `s,x,x', remove it if useless.
3662ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3663program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3664
3665# expand $ac_aux_dir to an absolute path
3666am_aux_dir=`cd $ac_aux_dir && pwd`
3667
3668if test x"${MISSING+set}" != xset; then
3669  case $am_aux_dir in
3670  *\ * | *\	*)
3671    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3672  *)
3673    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3674  esac
3675fi
3676# Use eval to expand $SHELL
3677if eval "$MISSING --run true"; then
3678  am_missing_run="$MISSING --run "
3679else
3680  am_missing_run=
3681  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3682$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3683fi
3684
3685if test x"${install_sh}" != xset; then
3686  case $am_aux_dir in
3687  *\ * | *\	*)
3688    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3689  *)
3690    install_sh="\${SHELL} $am_aux_dir/install-sh"
3691  esac
3692fi
3693
3694# Installed binaries are usually stripped using `strip' when the user
3695# run `make install-strip'.  However `strip' might not be the right
3696# tool to use in cross-compilation environments, therefore Automake
3697# will honor the `STRIP' environment variable to overrule this program.
3698if test "$cross_compiling" != no; then
3699  if test -n "$ac_tool_prefix"; then
3700  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3701set dummy ${ac_tool_prefix}strip; ac_word=$2
3702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3703$as_echo_n "checking for $ac_word... " >&6; }
3704if ${ac_cv_prog_STRIP+:} false; then :
3705  $as_echo_n "(cached) " >&6
3706else
3707  if test -n "$STRIP"; then
3708  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3709else
3710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711for as_dir in $PATH
3712do
3713  IFS=$as_save_IFS
3714  test -z "$as_dir" && as_dir=.
3715    for ac_exec_ext in '' $ac_executable_extensions; do
3716  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3717    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3718    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3719    break 2
3720  fi
3721done
3722  done
3723IFS=$as_save_IFS
3724
3725fi
3726fi
3727STRIP=$ac_cv_prog_STRIP
3728if test -n "$STRIP"; then
3729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3730$as_echo "$STRIP" >&6; }
3731else
3732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3733$as_echo "no" >&6; }
3734fi
3735
3736
3737fi
3738if test -z "$ac_cv_prog_STRIP"; then
3739  ac_ct_STRIP=$STRIP
3740  # Extract the first word of "strip", so it can be a program name with args.
3741set dummy strip; ac_word=$2
3742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3743$as_echo_n "checking for $ac_word... " >&6; }
3744if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3745  $as_echo_n "(cached) " >&6
3746else
3747  if test -n "$ac_ct_STRIP"; then
3748  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3749else
3750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751for as_dir in $PATH
3752do
3753  IFS=$as_save_IFS
3754  test -z "$as_dir" && as_dir=.
3755    for ac_exec_ext in '' $ac_executable_extensions; do
3756  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3757    ac_cv_prog_ac_ct_STRIP="strip"
3758    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3759    break 2
3760  fi
3761done
3762  done
3763IFS=$as_save_IFS
3764
3765fi
3766fi
3767ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3768if test -n "$ac_ct_STRIP"; then
3769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3770$as_echo "$ac_ct_STRIP" >&6; }
3771else
3772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3773$as_echo "no" >&6; }
3774fi
3775
3776  if test "x$ac_ct_STRIP" = x; then
3777    STRIP=":"
3778  else
3779    case $cross_compiling:$ac_tool_warned in
3780yes:)
3781{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3782$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3783ac_tool_warned=yes ;;
3784esac
3785    STRIP=$ac_ct_STRIP
3786  fi
3787else
3788  STRIP="$ac_cv_prog_STRIP"
3789fi
3790
3791fi
3792INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3793
3794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3795$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3796if test -z "$MKDIR_P"; then
3797  if ${ac_cv_path_mkdir+:} false; then :
3798  $as_echo_n "(cached) " >&6
3799else
3800  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3801for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3802do
3803  IFS=$as_save_IFS
3804  test -z "$as_dir" && as_dir=.
3805    for ac_prog in mkdir gmkdir; do
3806	 for ac_exec_ext in '' $ac_executable_extensions; do
3807	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3808	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3809	     'mkdir (GNU coreutils) '* | \
3810	     'mkdir (coreutils) '* | \
3811	     'mkdir (fileutils) '4.1*)
3812	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3813	       break 3;;
3814	   esac
3815	 done
3816       done
3817  done
3818IFS=$as_save_IFS
3819
3820fi
3821
3822  test -d ./--version && rmdir ./--version
3823  if test "${ac_cv_path_mkdir+set}" = set; then
3824    MKDIR_P="$ac_cv_path_mkdir -p"
3825  else
3826    # As a last resort, use the slow shell script.  Don't cache a
3827    # value for MKDIR_P within a source directory, because that will
3828    # break other packages using the cache if that directory is
3829    # removed, or if the value is a relative name.
3830    MKDIR_P="$ac_install_sh -d"
3831  fi
3832fi
3833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3834$as_echo "$MKDIR_P" >&6; }
3835
3836mkdir_p="$MKDIR_P"
3837case $mkdir_p in
3838  [\\/$]* | ?:[\\/]*) ;;
3839  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3840esac
3841
3842for ac_prog in gawk mawk nawk awk
3843do
3844  # Extract the first word of "$ac_prog", so it can be a program name with args.
3845set dummy $ac_prog; ac_word=$2
3846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3847$as_echo_n "checking for $ac_word... " >&6; }
3848if ${ac_cv_prog_AWK+:} false; then :
3849  $as_echo_n "(cached) " >&6
3850else
3851  if test -n "$AWK"; then
3852  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3853else
3854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3855for as_dir in $PATH
3856do
3857  IFS=$as_save_IFS
3858  test -z "$as_dir" && as_dir=.
3859    for ac_exec_ext in '' $ac_executable_extensions; do
3860  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3861    ac_cv_prog_AWK="$ac_prog"
3862    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3863    break 2
3864  fi
3865done
3866  done
3867IFS=$as_save_IFS
3868
3869fi
3870fi
3871AWK=$ac_cv_prog_AWK
3872if test -n "$AWK"; then
3873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3874$as_echo "$AWK" >&6; }
3875else
3876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3877$as_echo "no" >&6; }
3878fi
3879
3880
3881  test -n "$AWK" && break
3882done
3883
3884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3885$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3886set x ${MAKE-make}
3887ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3888if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3889  $as_echo_n "(cached) " >&6
3890else
3891  cat >conftest.make <<\_ACEOF
3892SHELL = /bin/sh
3893all:
3894	@echo '@@@%%%=$(MAKE)=@@@%%%'
3895_ACEOF
3896# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3897case `${MAKE-make} -f conftest.make 2>/dev/null` in
3898  *@@@%%%=?*=@@@%%%*)
3899    eval ac_cv_prog_make_${ac_make}_set=yes;;
3900  *)
3901    eval ac_cv_prog_make_${ac_make}_set=no;;
3902esac
3903rm -f conftest.make
3904fi
3905if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3907$as_echo "yes" >&6; }
3908  SET_MAKE=
3909else
3910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3911$as_echo "no" >&6; }
3912  SET_MAKE="MAKE=${MAKE-make}"
3913fi
3914
3915rm -rf .tst 2>/dev/null
3916mkdir .tst 2>/dev/null
3917if test -d .tst; then
3918  am__leading_dot=.
3919else
3920  am__leading_dot=_
3921fi
3922rmdir .tst 2>/dev/null
3923
3924if test "`cd $srcdir && pwd`" != "`pwd`"; then
3925  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3926  # is not polluted with repeated "-I."
3927  am__isrc=' -I$(srcdir)'
3928  # test to see if srcdir already configured
3929  if test -f $srcdir/config.status; then
3930    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3931  fi
3932fi
3933
3934# test whether we have cygpath
3935if test -z "$CYGPATH_W"; then
3936  if (cygpath --version) >/dev/null 2>/dev/null; then
3937    CYGPATH_W='cygpath -w'
3938  else
3939    CYGPATH_W=echo
3940  fi
3941fi
3942
3943
3944# Define the identity of the package.
3945 PACKAGE='xorg-server'
3946 VERSION='1.9.5'
3947
3948
3949cat >>confdefs.h <<_ACEOF
3950#define PACKAGE "$PACKAGE"
3951_ACEOF
3952
3953
3954cat >>confdefs.h <<_ACEOF
3955#define VERSION "$VERSION"
3956_ACEOF
3957
3958# Some tools Automake needs.
3959
3960ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3961
3962
3963AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3964
3965
3966AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3967
3968
3969AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3970
3971
3972MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3973
3974# We need awk for the "check" target.  The system "awk" is bad on
3975# some platforms.
3976# Always define AMTAR for backward compatibility.
3977
3978AMTAR=${AMTAR-"${am_missing_run}tar"}
3979
3980am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3981
3982
3983
3984
3985
3986
3987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3988$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3989    # Check whether --enable-maintainer-mode was given.
3990if test "${enable_maintainer_mode+set}" = set; then :
3991  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3992else
3993  USE_MAINTAINER_MODE=no
3994fi
3995
3996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3997$as_echo "$USE_MAINTAINER_MODE" >&6; }
3998   if test $USE_MAINTAINER_MODE = yes; then
3999  MAINTAINER_MODE_TRUE=
4000  MAINTAINER_MODE_FALSE='#'
4001else
4002  MAINTAINER_MODE_TRUE='#'
4003  MAINTAINER_MODE_FALSE=
4004fi
4005
4006  MAINT=$MAINTAINER_MODE_TRUE
4007
4008
4009
4010# Require xorg-macros minimum of 1.10 for XORG_CHECK_SGML_DOCTOOLS
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022DEPDIR="${am__leading_dot}deps"
4023
4024ac_config_commands="$ac_config_commands depfiles"
4025
4026
4027am_make=${MAKE-make}
4028cat > confinc << 'END'
4029am__doit:
4030	@echo this is the am__doit target
4031.PHONY: am__doit
4032END
4033# If we don't find an include directive, just comment out the code.
4034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4035$as_echo_n "checking for style of include used by $am_make... " >&6; }
4036am__include="#"
4037am__quote=
4038_am_result=none
4039# First try GNU make style include.
4040echo "include confinc" > confmf
4041# Ignore all kinds of additional output from `make'.
4042case `$am_make -s -f confmf 2> /dev/null` in #(
4043*the\ am__doit\ target*)
4044  am__include=include
4045  am__quote=
4046  _am_result=GNU
4047  ;;
4048esac
4049# Now try BSD make style include.
4050if test "$am__include" = "#"; then
4051   echo '.include "confinc"' > confmf
4052   case `$am_make -s -f confmf 2> /dev/null` in #(
4053   *the\ am__doit\ target*)
4054     am__include=.include
4055     am__quote="\""
4056     _am_result=BSD
4057     ;;
4058   esac
4059fi
4060
4061
4062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4063$as_echo "$_am_result" >&6; }
4064rm -f confinc confmf
4065
4066# Check whether --enable-dependency-tracking was given.
4067if test "${enable_dependency_tracking+set}" = set; then :
4068  enableval=$enable_dependency_tracking;
4069fi
4070
4071if test "x$enable_dependency_tracking" != xno; then
4072  am_depcomp="$ac_aux_dir/depcomp"
4073  AMDEPBACKSLASH='\'
4074fi
4075 if test "x$enable_dependency_tracking" != xno; then
4076  AMDEP_TRUE=
4077  AMDEP_FALSE='#'
4078else
4079  AMDEP_TRUE='#'
4080  AMDEP_FALSE=
4081fi
4082
4083
4084ac_ext=c
4085ac_cpp='$CPP $CPPFLAGS'
4086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4088ac_compiler_gnu=$ac_cv_c_compiler_gnu
4089if test -n "$ac_tool_prefix"; then
4090  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4091set dummy ${ac_tool_prefix}gcc; ac_word=$2
4092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4093$as_echo_n "checking for $ac_word... " >&6; }
4094if ${ac_cv_prog_CC+:} false; then :
4095  $as_echo_n "(cached) " >&6
4096else
4097  if test -n "$CC"; then
4098  ac_cv_prog_CC="$CC" # Let the user override the test.
4099else
4100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4101for as_dir in $PATH
4102do
4103  IFS=$as_save_IFS
4104  test -z "$as_dir" && as_dir=.
4105    for ac_exec_ext in '' $ac_executable_extensions; do
4106  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4107    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4108    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4109    break 2
4110  fi
4111done
4112  done
4113IFS=$as_save_IFS
4114
4115fi
4116fi
4117CC=$ac_cv_prog_CC
4118if test -n "$CC"; then
4119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4120$as_echo "$CC" >&6; }
4121else
4122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4123$as_echo "no" >&6; }
4124fi
4125
4126
4127fi
4128if test -z "$ac_cv_prog_CC"; then
4129  ac_ct_CC=$CC
4130  # Extract the first word of "gcc", so it can be a program name with args.
4131set dummy gcc; ac_word=$2
4132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4133$as_echo_n "checking for $ac_word... " >&6; }
4134if ${ac_cv_prog_ac_ct_CC+:} false; then :
4135  $as_echo_n "(cached) " >&6
4136else
4137  if test -n "$ac_ct_CC"; then
4138  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4139else
4140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4141for as_dir in $PATH
4142do
4143  IFS=$as_save_IFS
4144  test -z "$as_dir" && as_dir=.
4145    for ac_exec_ext in '' $ac_executable_extensions; do
4146  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4147    ac_cv_prog_ac_ct_CC="gcc"
4148    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4149    break 2
4150  fi
4151done
4152  done
4153IFS=$as_save_IFS
4154
4155fi
4156fi
4157ac_ct_CC=$ac_cv_prog_ac_ct_CC
4158if test -n "$ac_ct_CC"; then
4159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4160$as_echo "$ac_ct_CC" >&6; }
4161else
4162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4163$as_echo "no" >&6; }
4164fi
4165
4166  if test "x$ac_ct_CC" = x; then
4167    CC=""
4168  else
4169    case $cross_compiling:$ac_tool_warned in
4170yes:)
4171{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4172$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4173ac_tool_warned=yes ;;
4174esac
4175    CC=$ac_ct_CC
4176  fi
4177else
4178  CC="$ac_cv_prog_CC"
4179fi
4180
4181if test -z "$CC"; then
4182          if test -n "$ac_tool_prefix"; then
4183    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4184set dummy ${ac_tool_prefix}cc; ac_word=$2
4185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4186$as_echo_n "checking for $ac_word... " >&6; }
4187if ${ac_cv_prog_CC+:} false; then :
4188  $as_echo_n "(cached) " >&6
4189else
4190  if test -n "$CC"; then
4191  ac_cv_prog_CC="$CC" # Let the user override the test.
4192else
4193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194for as_dir in $PATH
4195do
4196  IFS=$as_save_IFS
4197  test -z "$as_dir" && as_dir=.
4198    for ac_exec_ext in '' $ac_executable_extensions; do
4199  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4200    ac_cv_prog_CC="${ac_tool_prefix}cc"
4201    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4202    break 2
4203  fi
4204done
4205  done
4206IFS=$as_save_IFS
4207
4208fi
4209fi
4210CC=$ac_cv_prog_CC
4211if test -n "$CC"; then
4212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4213$as_echo "$CC" >&6; }
4214else
4215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4216$as_echo "no" >&6; }
4217fi
4218
4219
4220  fi
4221fi
4222if test -z "$CC"; then
4223  # Extract the first word of "cc", so it can be a program name with args.
4224set dummy cc; ac_word=$2
4225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4226$as_echo_n "checking for $ac_word... " >&6; }
4227if ${ac_cv_prog_CC+:} false; then :
4228  $as_echo_n "(cached) " >&6
4229else
4230  if test -n "$CC"; then
4231  ac_cv_prog_CC="$CC" # Let the user override the test.
4232else
4233  ac_prog_rejected=no
4234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4235for as_dir in $PATH
4236do
4237  IFS=$as_save_IFS
4238  test -z "$as_dir" && as_dir=.
4239    for ac_exec_ext in '' $ac_executable_extensions; do
4240  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4241    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4242       ac_prog_rejected=yes
4243       continue
4244     fi
4245    ac_cv_prog_CC="cc"
4246    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4247    break 2
4248  fi
4249done
4250  done
4251IFS=$as_save_IFS
4252
4253if test $ac_prog_rejected = yes; then
4254  # We found a bogon in the path, so make sure we never use it.
4255  set dummy $ac_cv_prog_CC
4256  shift
4257  if test $# != 0; then
4258    # We chose a different compiler from the bogus one.
4259    # However, it has the same basename, so the bogon will be chosen
4260    # first if we set CC to just the basename; use the full file name.
4261    shift
4262    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4263  fi
4264fi
4265fi
4266fi
4267CC=$ac_cv_prog_CC
4268if test -n "$CC"; then
4269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4270$as_echo "$CC" >&6; }
4271else
4272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4273$as_echo "no" >&6; }
4274fi
4275
4276
4277fi
4278if test -z "$CC"; then
4279  if test -n "$ac_tool_prefix"; then
4280  for ac_prog in cl.exe
4281  do
4282    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4283set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4285$as_echo_n "checking for $ac_word... " >&6; }
4286if ${ac_cv_prog_CC+:} false; then :
4287  $as_echo_n "(cached) " >&6
4288else
4289  if test -n "$CC"; then
4290  ac_cv_prog_CC="$CC" # Let the user override the test.
4291else
4292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4293for as_dir in $PATH
4294do
4295  IFS=$as_save_IFS
4296  test -z "$as_dir" && as_dir=.
4297    for ac_exec_ext in '' $ac_executable_extensions; do
4298  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4299    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4300    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4301    break 2
4302  fi
4303done
4304  done
4305IFS=$as_save_IFS
4306
4307fi
4308fi
4309CC=$ac_cv_prog_CC
4310if test -n "$CC"; then
4311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4312$as_echo "$CC" >&6; }
4313else
4314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4315$as_echo "no" >&6; }
4316fi
4317
4318
4319    test -n "$CC" && break
4320  done
4321fi
4322if test -z "$CC"; then
4323  ac_ct_CC=$CC
4324  for ac_prog in cl.exe
4325do
4326  # Extract the first word of "$ac_prog", so it can be a program name with args.
4327set dummy $ac_prog; ac_word=$2
4328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4329$as_echo_n "checking for $ac_word... " >&6; }
4330if ${ac_cv_prog_ac_ct_CC+:} false; then :
4331  $as_echo_n "(cached) " >&6
4332else
4333  if test -n "$ac_ct_CC"; then
4334  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4335else
4336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4337for as_dir in $PATH
4338do
4339  IFS=$as_save_IFS
4340  test -z "$as_dir" && as_dir=.
4341    for ac_exec_ext in '' $ac_executable_extensions; do
4342  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4343    ac_cv_prog_ac_ct_CC="$ac_prog"
4344    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4345    break 2
4346  fi
4347done
4348  done
4349IFS=$as_save_IFS
4350
4351fi
4352fi
4353ac_ct_CC=$ac_cv_prog_ac_ct_CC
4354if test -n "$ac_ct_CC"; then
4355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4356$as_echo "$ac_ct_CC" >&6; }
4357else
4358  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4359$as_echo "no" >&6; }
4360fi
4361
4362
4363  test -n "$ac_ct_CC" && break
4364done
4365
4366  if test "x$ac_ct_CC" = x; then
4367    CC=""
4368  else
4369    case $cross_compiling:$ac_tool_warned in
4370yes:)
4371{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4372$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4373ac_tool_warned=yes ;;
4374esac
4375    CC=$ac_ct_CC
4376  fi
4377fi
4378
4379fi
4380
4381
4382test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4383$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4384as_fn_error $? "no acceptable C compiler found in \$PATH
4385See \`config.log' for more details" "$LINENO" 5; }
4386
4387# Provide some information about the compiler.
4388$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4389set X $ac_compile
4390ac_compiler=$2
4391for ac_option in --version -v -V -qversion; do
4392  { { ac_try="$ac_compiler $ac_option >&5"
4393case "(($ac_try" in
4394  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4395  *) ac_try_echo=$ac_try;;
4396esac
4397eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4398$as_echo "$ac_try_echo"; } >&5
4399  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4400  ac_status=$?
4401  if test -s conftest.err; then
4402    sed '10a\
4403... rest of stderr output deleted ...
4404         10q' conftest.err >conftest.er1
4405    cat conftest.er1 >&5
4406  fi
4407  rm -f conftest.er1 conftest.err
4408  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4409  test $ac_status = 0; }
4410done
4411
4412cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4413/* end confdefs.h.  */
4414
4415int
4416main ()
4417{
4418
4419  ;
4420  return 0;
4421}
4422_ACEOF
4423ac_clean_files_save=$ac_clean_files
4424ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4425# Try to create an executable without -o first, disregard a.out.
4426# It will help us diagnose broken compilers, and finding out an intuition
4427# of exeext.
4428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4429$as_echo_n "checking whether the C compiler works... " >&6; }
4430ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4431
4432# The possible output files:
4433ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4434
4435ac_rmfiles=
4436for ac_file in $ac_files
4437do
4438  case $ac_file in
4439    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4440    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4441  esac
4442done
4443rm -f $ac_rmfiles
4444
4445if { { ac_try="$ac_link_default"
4446case "(($ac_try" in
4447  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4448  *) ac_try_echo=$ac_try;;
4449esac
4450eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4451$as_echo "$ac_try_echo"; } >&5
4452  (eval "$ac_link_default") 2>&5
4453  ac_status=$?
4454  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4455  test $ac_status = 0; }; then :
4456  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4457# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4458# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4459# so that the user can short-circuit this test for compilers unknown to
4460# Autoconf.
4461for ac_file in $ac_files ''
4462do
4463  test -f "$ac_file" || continue
4464  case $ac_file in
4465    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4466	;;
4467    [ab].out )
4468	# We found the default executable, but exeext='' is most
4469	# certainly right.
4470	break;;
4471    *.* )
4472	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4473	then :; else
4474	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4475	fi
4476	# We set ac_cv_exeext here because the later test for it is not
4477	# safe: cross compilers may not add the suffix if given an `-o'
4478	# argument, so we may need to know it at that point already.
4479	# Even if this section looks crufty: it has the advantage of
4480	# actually working.
4481	break;;
4482    * )
4483	break;;
4484  esac
4485done
4486test "$ac_cv_exeext" = no && ac_cv_exeext=
4487
4488else
4489  ac_file=''
4490fi
4491if test -z "$ac_file"; then :
4492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4493$as_echo "no" >&6; }
4494$as_echo "$as_me: failed program was:" >&5
4495sed 's/^/| /' conftest.$ac_ext >&5
4496
4497{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4498$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4499as_fn_error 77 "C compiler cannot create executables
4500See \`config.log' for more details" "$LINENO" 5; }
4501else
4502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4503$as_echo "yes" >&6; }
4504fi
4505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4506$as_echo_n "checking for C compiler default output file name... " >&6; }
4507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4508$as_echo "$ac_file" >&6; }
4509ac_exeext=$ac_cv_exeext
4510
4511rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4512ac_clean_files=$ac_clean_files_save
4513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4514$as_echo_n "checking for suffix of executables... " >&6; }
4515if { { ac_try="$ac_link"
4516case "(($ac_try" in
4517  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4518  *) ac_try_echo=$ac_try;;
4519esac
4520eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4521$as_echo "$ac_try_echo"; } >&5
4522  (eval "$ac_link") 2>&5
4523  ac_status=$?
4524  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4525  test $ac_status = 0; }; then :
4526  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4527# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4528# work properly (i.e., refer to `conftest.exe'), while it won't with
4529# `rm'.
4530for ac_file in conftest.exe conftest conftest.*; do
4531  test -f "$ac_file" || continue
4532  case $ac_file in
4533    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4534    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4535	  break;;
4536    * ) break;;
4537  esac
4538done
4539else
4540  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4541$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4542as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4543See \`config.log' for more details" "$LINENO" 5; }
4544fi
4545rm -f conftest conftest$ac_cv_exeext
4546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4547$as_echo "$ac_cv_exeext" >&6; }
4548
4549rm -f conftest.$ac_ext
4550EXEEXT=$ac_cv_exeext
4551ac_exeext=$EXEEXT
4552cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4553/* end confdefs.h.  */
4554#include <stdio.h>
4555int
4556main ()
4557{
4558FILE *f = fopen ("conftest.out", "w");
4559 return ferror (f) || fclose (f) != 0;
4560
4561  ;
4562  return 0;
4563}
4564_ACEOF
4565ac_clean_files="$ac_clean_files conftest.out"
4566# Check that the compiler produces executables we can run.  If not, either
4567# the compiler is broken, or we cross compile.
4568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4569$as_echo_n "checking whether we are cross compiling... " >&6; }
4570if test "$cross_compiling" != yes; then
4571  { { ac_try="$ac_link"
4572case "(($ac_try" in
4573  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4574  *) ac_try_echo=$ac_try;;
4575esac
4576eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4577$as_echo "$ac_try_echo"; } >&5
4578  (eval "$ac_link") 2>&5
4579  ac_status=$?
4580  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4581  test $ac_status = 0; }
4582  if { ac_try='./conftest$ac_cv_exeext'
4583  { { case "(($ac_try" in
4584  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4585  *) ac_try_echo=$ac_try;;
4586esac
4587eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4588$as_echo "$ac_try_echo"; } >&5
4589  (eval "$ac_try") 2>&5
4590  ac_status=$?
4591  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4592  test $ac_status = 0; }; }; then
4593    cross_compiling=no
4594  else
4595    if test "$cross_compiling" = maybe; then
4596	cross_compiling=yes
4597    else
4598	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4599$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4600as_fn_error $? "cannot run C compiled programs.
4601If you meant to cross compile, use \`--host'.
4602See \`config.log' for more details" "$LINENO" 5; }
4603    fi
4604  fi
4605fi
4606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4607$as_echo "$cross_compiling" >&6; }
4608
4609rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4610ac_clean_files=$ac_clean_files_save
4611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4612$as_echo_n "checking for suffix of object files... " >&6; }
4613if ${ac_cv_objext+:} false; then :
4614  $as_echo_n "(cached) " >&6
4615else
4616  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4617/* end confdefs.h.  */
4618
4619int
4620main ()
4621{
4622
4623  ;
4624  return 0;
4625}
4626_ACEOF
4627rm -f conftest.o conftest.obj
4628if { { ac_try="$ac_compile"
4629case "(($ac_try" in
4630  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4631  *) ac_try_echo=$ac_try;;
4632esac
4633eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4634$as_echo "$ac_try_echo"; } >&5
4635  (eval "$ac_compile") 2>&5
4636  ac_status=$?
4637  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4638  test $ac_status = 0; }; then :
4639  for ac_file in conftest.o conftest.obj conftest.*; do
4640  test -f "$ac_file" || continue;
4641  case $ac_file in
4642    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4643    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4644       break;;
4645  esac
4646done
4647else
4648  $as_echo "$as_me: failed program was:" >&5
4649sed 's/^/| /' conftest.$ac_ext >&5
4650
4651{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4652$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4653as_fn_error $? "cannot compute suffix of object files: cannot compile
4654See \`config.log' for more details" "$LINENO" 5; }
4655fi
4656rm -f conftest.$ac_cv_objext conftest.$ac_ext
4657fi
4658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4659$as_echo "$ac_cv_objext" >&6; }
4660OBJEXT=$ac_cv_objext
4661ac_objext=$OBJEXT
4662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4663$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4664if ${ac_cv_c_compiler_gnu+:} false; then :
4665  $as_echo_n "(cached) " >&6
4666else
4667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4668/* end confdefs.h.  */
4669
4670int
4671main ()
4672{
4673#ifndef __GNUC__
4674       choke me
4675#endif
4676
4677  ;
4678  return 0;
4679}
4680_ACEOF
4681if ac_fn_c_try_compile "$LINENO"; then :
4682  ac_compiler_gnu=yes
4683else
4684  ac_compiler_gnu=no
4685fi
4686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4687ac_cv_c_compiler_gnu=$ac_compiler_gnu
4688
4689fi
4690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4691$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4692if test $ac_compiler_gnu = yes; then
4693  GCC=yes
4694else
4695  GCC=
4696fi
4697ac_test_CFLAGS=${CFLAGS+set}
4698ac_save_CFLAGS=$CFLAGS
4699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4700$as_echo_n "checking whether $CC accepts -g... " >&6; }
4701if ${ac_cv_prog_cc_g+:} false; then :
4702  $as_echo_n "(cached) " >&6
4703else
4704  ac_save_c_werror_flag=$ac_c_werror_flag
4705   ac_c_werror_flag=yes
4706   ac_cv_prog_cc_g=no
4707   CFLAGS="-g"
4708   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4709/* end confdefs.h.  */
4710
4711int
4712main ()
4713{
4714
4715  ;
4716  return 0;
4717}
4718_ACEOF
4719if ac_fn_c_try_compile "$LINENO"; then :
4720  ac_cv_prog_cc_g=yes
4721else
4722  CFLAGS=""
4723      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4724/* end confdefs.h.  */
4725
4726int
4727main ()
4728{
4729
4730  ;
4731  return 0;
4732}
4733_ACEOF
4734if ac_fn_c_try_compile "$LINENO"; then :
4735
4736else
4737  ac_c_werror_flag=$ac_save_c_werror_flag
4738	 CFLAGS="-g"
4739	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4740/* end confdefs.h.  */
4741
4742int
4743main ()
4744{
4745
4746  ;
4747  return 0;
4748}
4749_ACEOF
4750if ac_fn_c_try_compile "$LINENO"; then :
4751  ac_cv_prog_cc_g=yes
4752fi
4753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4754fi
4755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4756fi
4757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4758   ac_c_werror_flag=$ac_save_c_werror_flag
4759fi
4760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4761$as_echo "$ac_cv_prog_cc_g" >&6; }
4762if test "$ac_test_CFLAGS" = set; then
4763  CFLAGS=$ac_save_CFLAGS
4764elif test $ac_cv_prog_cc_g = yes; then
4765  if test "$GCC" = yes; then
4766    CFLAGS="-g -O2"
4767  else
4768    CFLAGS="-g"
4769  fi
4770else
4771  if test "$GCC" = yes; then
4772    CFLAGS="-O2"
4773  else
4774    CFLAGS=
4775  fi
4776fi
4777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4778$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4779if ${ac_cv_prog_cc_c89+:} false; then :
4780  $as_echo_n "(cached) " >&6
4781else
4782  ac_cv_prog_cc_c89=no
4783ac_save_CC=$CC
4784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4785/* end confdefs.h.  */
4786#include <stdarg.h>
4787#include <stdio.h>
4788#include <sys/types.h>
4789#include <sys/stat.h>
4790/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4791struct buf { int x; };
4792FILE * (*rcsopen) (struct buf *, struct stat *, int);
4793static char *e (p, i)
4794     char **p;
4795     int i;
4796{
4797  return p[i];
4798}
4799static char *f (char * (*g) (char **, int), char **p, ...)
4800{
4801  char *s;
4802  va_list v;
4803  va_start (v,p);
4804  s = g (p, va_arg (v,int));
4805  va_end (v);
4806  return s;
4807}
4808
4809/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4810   function prototypes and stuff, but not '\xHH' hex character constants.
4811   These don't provoke an error unfortunately, instead are silently treated
4812   as 'x'.  The following induces an error, until -std is added to get
4813   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4814   array size at least.  It's necessary to write '\x00'==0 to get something
4815   that's true only with -std.  */
4816int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4817
4818/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4819   inside strings and character constants.  */
4820#define FOO(x) 'x'
4821int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4822
4823int test (int i, double x);
4824struct s1 {int (*f) (int a);};
4825struct s2 {int (*f) (double a);};
4826int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4827int argc;
4828char **argv;
4829int
4830main ()
4831{
4832return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4833  ;
4834  return 0;
4835}
4836_ACEOF
4837for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4838	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4839do
4840  CC="$ac_save_CC $ac_arg"
4841  if ac_fn_c_try_compile "$LINENO"; then :
4842  ac_cv_prog_cc_c89=$ac_arg
4843fi
4844rm -f core conftest.err conftest.$ac_objext
4845  test "x$ac_cv_prog_cc_c89" != "xno" && break
4846done
4847rm -f conftest.$ac_ext
4848CC=$ac_save_CC
4849
4850fi
4851# AC_CACHE_VAL
4852case "x$ac_cv_prog_cc_c89" in
4853  x)
4854    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4855$as_echo "none needed" >&6; } ;;
4856  xno)
4857    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4858$as_echo "unsupported" >&6; } ;;
4859  *)
4860    CC="$CC $ac_cv_prog_cc_c89"
4861    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4862$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4863esac
4864if test "x$ac_cv_prog_cc_c89" != xno; then :
4865
4866fi
4867
4868ac_ext=c
4869ac_cpp='$CPP $CPPFLAGS'
4870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4872ac_compiler_gnu=$ac_cv_c_compiler_gnu
4873
4874depcc="$CC"   am_compiler_list=
4875
4876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4877$as_echo_n "checking dependency style of $depcc... " >&6; }
4878if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4879  $as_echo_n "(cached) " >&6
4880else
4881  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4882  # We make a subdir and do the tests there.  Otherwise we can end up
4883  # making bogus files that we don't know about and never remove.  For
4884  # instance it was reported that on HP-UX the gcc test will end up
4885  # making a dummy file named `D' -- because `-MD' means `put the output
4886  # in D'.
4887  mkdir conftest.dir
4888  # Copy depcomp to subdir because otherwise we won't find it if we're
4889  # using a relative directory.
4890  cp "$am_depcomp" conftest.dir
4891  cd conftest.dir
4892  # We will build objects and dependencies in a subdirectory because
4893  # it helps to detect inapplicable dependency modes.  For instance
4894  # both Tru64's cc and ICC support -MD to output dependencies as a
4895  # side effect of compilation, but ICC will put the dependencies in
4896  # the current directory while Tru64 will put them in the object
4897  # directory.
4898  mkdir sub
4899
4900  am_cv_CC_dependencies_compiler_type=none
4901  if test "$am_compiler_list" = ""; then
4902     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4903  fi
4904  am__universal=false
4905  case " $depcc " in #(
4906     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4907     esac
4908
4909  for depmode in $am_compiler_list; do
4910    # Setup a source with many dependencies, because some compilers
4911    # like to wrap large dependency lists on column 80 (with \), and
4912    # we should not choose a depcomp mode which is confused by this.
4913    #
4914    # We need to recreate these files for each test, as the compiler may
4915    # overwrite some of them when testing with obscure command lines.
4916    # This happens at least with the AIX C compiler.
4917    : > sub/conftest.c
4918    for i in 1 2 3 4 5 6; do
4919      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4920      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4921      # Solaris 8's {/usr,}/bin/sh.
4922      touch sub/conftst$i.h
4923    done
4924    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4925
4926    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4927    # mode.  It turns out that the SunPro C++ compiler does not properly
4928    # handle `-M -o', and we need to detect this.  Also, some Intel
4929    # versions had trouble with output in subdirs
4930    am__obj=sub/conftest.${OBJEXT-o}
4931    am__minus_obj="-o $am__obj"
4932    case $depmode in
4933    gcc)
4934      # This depmode causes a compiler race in universal mode.
4935      test "$am__universal" = false || continue
4936      ;;
4937    nosideeffect)
4938      # after this tag, mechanisms are not by side-effect, so they'll
4939      # only be used when explicitly requested
4940      if test "x$enable_dependency_tracking" = xyes; then
4941	continue
4942      else
4943	break
4944      fi
4945      ;;
4946    msvisualcpp | msvcmsys)
4947      # This compiler won't grok `-c -o', but also, the minuso test has
4948      # not run yet.  These depmodes are late enough in the game, and
4949      # so weak that their functioning should not be impacted.
4950      am__obj=conftest.${OBJEXT-o}
4951      am__minus_obj=
4952      ;;
4953    none) break ;;
4954    esac
4955    if depmode=$depmode \
4956       source=sub/conftest.c object=$am__obj \
4957       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4958       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4959         >/dev/null 2>conftest.err &&
4960       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4961       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4962       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4963       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4964      # icc doesn't choke on unknown options, it will just issue warnings
4965      # or remarks (even with -Werror).  So we grep stderr for any message
4966      # that says an option was ignored or not supported.
4967      # When given -MP, icc 7.0 and 7.1 complain thusly:
4968      #   icc: Command line warning: ignoring option '-M'; no argument required
4969      # The diagnosis changed in icc 8.0:
4970      #   icc: Command line remark: option '-MP' not supported
4971      if (grep 'ignoring option' conftest.err ||
4972          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4973        am_cv_CC_dependencies_compiler_type=$depmode
4974        break
4975      fi
4976    fi
4977  done
4978
4979  cd ..
4980  rm -rf conftest.dir
4981else
4982  am_cv_CC_dependencies_compiler_type=none
4983fi
4984
4985fi
4986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4987$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4988CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4989
4990 if
4991  test "x$enable_dependency_tracking" != xno \
4992  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4993  am__fastdepCC_TRUE=
4994  am__fastdepCC_FALSE='#'
4995else
4996  am__fastdepCC_TRUE='#'
4997  am__fastdepCC_FALSE=
4998fi
4999
5000
5001   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5002$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5003if ${ac_cv_prog_cc_c99+:} false; then :
5004  $as_echo_n "(cached) " >&6
5005else
5006  ac_cv_prog_cc_c99=no
5007ac_save_CC=$CC
5008cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5009/* end confdefs.h.  */
5010#include <stdarg.h>
5011#include <stdbool.h>
5012#include <stdlib.h>
5013#include <wchar.h>
5014#include <stdio.h>
5015
5016// Check varargs macros.  These examples are taken from C99 6.10.3.5.
5017#define debug(...) fprintf (stderr, __VA_ARGS__)
5018#define showlist(...) puts (#__VA_ARGS__)
5019#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5020static void
5021test_varargs_macros (void)
5022{
5023  int x = 1234;
5024  int y = 5678;
5025  debug ("Flag");
5026  debug ("X = %d\n", x);
5027  showlist (The first, second, and third items.);
5028  report (x>y, "x is %d but y is %d", x, y);
5029}
5030
5031// Check long long types.
5032#define BIG64 18446744073709551615ull
5033#define BIG32 4294967295ul
5034#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5035#if !BIG_OK
5036  your preprocessor is broken;
5037#endif
5038#if BIG_OK
5039#else
5040  your preprocessor is broken;
5041#endif
5042static long long int bignum = -9223372036854775807LL;
5043static unsigned long long int ubignum = BIG64;
5044
5045struct incomplete_array
5046{
5047  int datasize;
5048  double data[];
5049};
5050
5051struct named_init {
5052  int number;
5053  const wchar_t *name;
5054  double average;
5055};
5056
5057typedef const char *ccp;
5058
5059static inline int
5060test_restrict (ccp restrict text)
5061{
5062  // See if C++-style comments work.
5063  // Iterate through items via the restricted pointer.
5064  // Also check for declarations in for loops.
5065  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5066    continue;
5067  return 0;
5068}
5069
5070// Check varargs and va_copy.
5071static void
5072test_varargs (const char *format, ...)
5073{
5074  va_list args;
5075  va_start (args, format);
5076  va_list args_copy;
5077  va_copy (args_copy, args);
5078
5079  const char *str;
5080  int number;
5081  float fnumber;
5082
5083  while (*format)
5084    {
5085      switch (*format++)
5086	{
5087	case 's': // string
5088	  str = va_arg (args_copy, const char *);
5089	  break;
5090	case 'd': // int
5091	  number = va_arg (args_copy, int);
5092	  break;
5093	case 'f': // float
5094	  fnumber = va_arg (args_copy, double);
5095	  break;
5096	default:
5097	  break;
5098	}
5099    }
5100  va_end (args_copy);
5101  va_end (args);
5102}
5103
5104int
5105main ()
5106{
5107
5108  // Check bool.
5109  _Bool success = false;
5110
5111  // Check restrict.
5112  if (test_restrict ("String literal") == 0)
5113    success = true;
5114  char *restrict newvar = "Another string";
5115
5116  // Check varargs.
5117  test_varargs ("s, d' f .", "string", 65, 34.234);
5118  test_varargs_macros ();
5119
5120  // Check flexible array members.
5121  struct incomplete_array *ia =
5122    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5123  ia->datasize = 10;
5124  for (int i = 0; i < ia->datasize; ++i)
5125    ia->data[i] = i * 1.234;
5126
5127  // Check named initializers.
5128  struct named_init ni = {
5129    .number = 34,
5130    .name = L"Test wide string",
5131    .average = 543.34343,
5132  };
5133
5134  ni.number = 58;
5135
5136  int dynamic_array[ni.number];
5137  dynamic_array[ni.number - 1] = 543;
5138
5139  // work around unused variable warnings
5140  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5141	  || dynamic_array[ni.number - 1] != 543);
5142
5143  ;
5144  return 0;
5145}
5146_ACEOF
5147for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
5148do
5149  CC="$ac_save_CC $ac_arg"
5150  if ac_fn_c_try_compile "$LINENO"; then :
5151  ac_cv_prog_cc_c99=$ac_arg
5152fi
5153rm -f core conftest.err conftest.$ac_objext
5154  test "x$ac_cv_prog_cc_c99" != "xno" && break
5155done
5156rm -f conftest.$ac_ext
5157CC=$ac_save_CC
5158
5159fi
5160# AC_CACHE_VAL
5161case "x$ac_cv_prog_cc_c99" in
5162  x)
5163    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5164$as_echo "none needed" >&6; } ;;
5165  xno)
5166    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5167$as_echo "unsupported" >&6; } ;;
5168  *)
5169    CC="$CC $ac_cv_prog_cc_c99"
5170    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5171$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5172esac
5173if test "x$ac_cv_prog_cc_c99" != xno; then :
5174
5175fi
5176
5177
5178
5179ac_ext=c
5180ac_cpp='$CPP $CPPFLAGS'
5181ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5182ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5183ac_compiler_gnu=$ac_cv_c_compiler_gnu
5184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5185$as_echo_n "checking how to run the C preprocessor... " >&6; }
5186# On Suns, sometimes $CPP names a directory.
5187if test -n "$CPP" && test -d "$CPP"; then
5188  CPP=
5189fi
5190if test -z "$CPP"; then
5191  if ${ac_cv_prog_CPP+:} false; then :
5192  $as_echo_n "(cached) " >&6
5193else
5194      # Double quotes because CPP needs to be expanded
5195    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5196    do
5197      ac_preproc_ok=false
5198for ac_c_preproc_warn_flag in '' yes
5199do
5200  # Use a header file that comes with gcc, so configuring glibc
5201  # with a fresh cross-compiler works.
5202  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5203  # <limits.h> exists even on freestanding compilers.
5204  # On the NeXT, cc -E runs the code through the compiler's parser,
5205  # not just through cpp. "Syntax error" is here to catch this case.
5206  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5207/* end confdefs.h.  */
5208#ifdef __STDC__
5209# include <limits.h>
5210#else
5211# include <assert.h>
5212#endif
5213		     Syntax error
5214_ACEOF
5215if ac_fn_c_try_cpp "$LINENO"; then :
5216
5217else
5218  # Broken: fails on valid input.
5219continue
5220fi
5221rm -f conftest.err conftest.i conftest.$ac_ext
5222
5223  # OK, works on sane cases.  Now check whether nonexistent headers
5224  # can be detected and how.
5225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5226/* end confdefs.h.  */
5227#include <ac_nonexistent.h>
5228_ACEOF
5229if ac_fn_c_try_cpp "$LINENO"; then :
5230  # Broken: success on invalid input.
5231continue
5232else
5233  # Passes both tests.
5234ac_preproc_ok=:
5235break
5236fi
5237rm -f conftest.err conftest.i conftest.$ac_ext
5238
5239done
5240# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5241rm -f conftest.i conftest.err conftest.$ac_ext
5242if $ac_preproc_ok; then :
5243  break
5244fi
5245
5246    done
5247    ac_cv_prog_CPP=$CPP
5248
5249fi
5250  CPP=$ac_cv_prog_CPP
5251else
5252  ac_cv_prog_CPP=$CPP
5253fi
5254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5255$as_echo "$CPP" >&6; }
5256ac_preproc_ok=false
5257for ac_c_preproc_warn_flag in '' yes
5258do
5259  # Use a header file that comes with gcc, so configuring glibc
5260  # with a fresh cross-compiler works.
5261  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5262  # <limits.h> exists even on freestanding compilers.
5263  # On the NeXT, cc -E runs the code through the compiler's parser,
5264  # not just through cpp. "Syntax error" is here to catch this case.
5265  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5266/* end confdefs.h.  */
5267#ifdef __STDC__
5268# include <limits.h>
5269#else
5270# include <assert.h>
5271#endif
5272		     Syntax error
5273_ACEOF
5274if ac_fn_c_try_cpp "$LINENO"; then :
5275
5276else
5277  # Broken: fails on valid input.
5278continue
5279fi
5280rm -f conftest.err conftest.i conftest.$ac_ext
5281
5282  # OK, works on sane cases.  Now check whether nonexistent headers
5283  # can be detected and how.
5284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285/* end confdefs.h.  */
5286#include <ac_nonexistent.h>
5287_ACEOF
5288if ac_fn_c_try_cpp "$LINENO"; then :
5289  # Broken: success on invalid input.
5290continue
5291else
5292  # Passes both tests.
5293ac_preproc_ok=:
5294break
5295fi
5296rm -f conftest.err conftest.i conftest.$ac_ext
5297
5298done
5299# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5300rm -f conftest.i conftest.err conftest.$ac_ext
5301if $ac_preproc_ok; then :
5302
5303else
5304  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5305$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5306as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5307See \`config.log' for more details" "$LINENO" 5; }
5308fi
5309
5310ac_ext=c
5311ac_cpp='$CPP $CPPFLAGS'
5312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5314ac_compiler_gnu=$ac_cv_c_compiler_gnu
5315
5316
5317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5318$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5319if ${ac_cv_path_GREP+:} false; then :
5320  $as_echo_n "(cached) " >&6
5321else
5322  if test -z "$GREP"; then
5323  ac_path_GREP_found=false
5324  # Loop through the user's path and test for each of PROGNAME-LIST
5325  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5326for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5327do
5328  IFS=$as_save_IFS
5329  test -z "$as_dir" && as_dir=.
5330    for ac_prog in grep ggrep; do
5331    for ac_exec_ext in '' $ac_executable_extensions; do
5332      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5333      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5334# Check for GNU ac_path_GREP and select it if it is found.
5335  # Check for GNU $ac_path_GREP
5336case `"$ac_path_GREP" --version 2>&1` in
5337*GNU*)
5338  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5339*)
5340  ac_count=0
5341  $as_echo_n 0123456789 >"conftest.in"
5342  while :
5343  do
5344    cat "conftest.in" "conftest.in" >"conftest.tmp"
5345    mv "conftest.tmp" "conftest.in"
5346    cp "conftest.in" "conftest.nl"
5347    $as_echo 'GREP' >> "conftest.nl"
5348    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5349    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5350    as_fn_arith $ac_count + 1 && ac_count=$as_val
5351    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5352      # Best one so far, save it but keep looking for a better one
5353      ac_cv_path_GREP="$ac_path_GREP"
5354      ac_path_GREP_max=$ac_count
5355    fi
5356    # 10*(2^10) chars as input seems more than enough
5357    test $ac_count -gt 10 && break
5358  done
5359  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5360esac
5361
5362      $ac_path_GREP_found && break 3
5363    done
5364  done
5365  done
5366IFS=$as_save_IFS
5367  if test -z "$ac_cv_path_GREP"; then
5368    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5369  fi
5370else
5371  ac_cv_path_GREP=$GREP
5372fi
5373
5374fi
5375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5376$as_echo "$ac_cv_path_GREP" >&6; }
5377 GREP="$ac_cv_path_GREP"
5378
5379
5380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5381$as_echo_n "checking for egrep... " >&6; }
5382if ${ac_cv_path_EGREP+:} false; then :
5383  $as_echo_n "(cached) " >&6
5384else
5385  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5386   then ac_cv_path_EGREP="$GREP -E"
5387   else
5388     if test -z "$EGREP"; then
5389  ac_path_EGREP_found=false
5390  # Loop through the user's path and test for each of PROGNAME-LIST
5391  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5393do
5394  IFS=$as_save_IFS
5395  test -z "$as_dir" && as_dir=.
5396    for ac_prog in egrep; do
5397    for ac_exec_ext in '' $ac_executable_extensions; do
5398      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5399      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5400# Check for GNU ac_path_EGREP and select it if it is found.
5401  # Check for GNU $ac_path_EGREP
5402case `"$ac_path_EGREP" --version 2>&1` in
5403*GNU*)
5404  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5405*)
5406  ac_count=0
5407  $as_echo_n 0123456789 >"conftest.in"
5408  while :
5409  do
5410    cat "conftest.in" "conftest.in" >"conftest.tmp"
5411    mv "conftest.tmp" "conftest.in"
5412    cp "conftest.in" "conftest.nl"
5413    $as_echo 'EGREP' >> "conftest.nl"
5414    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5415    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5416    as_fn_arith $ac_count + 1 && ac_count=$as_val
5417    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5418      # Best one so far, save it but keep looking for a better one
5419      ac_cv_path_EGREP="$ac_path_EGREP"
5420      ac_path_EGREP_max=$ac_count
5421    fi
5422    # 10*(2^10) chars as input seems more than enough
5423    test $ac_count -gt 10 && break
5424  done
5425  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5426esac
5427
5428      $ac_path_EGREP_found && break 3
5429    done
5430  done
5431  done
5432IFS=$as_save_IFS
5433  if test -z "$ac_cv_path_EGREP"; then
5434    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5435  fi
5436else
5437  ac_cv_path_EGREP=$EGREP
5438fi
5439
5440   fi
5441fi
5442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5443$as_echo "$ac_cv_path_EGREP" >&6; }
5444 EGREP="$ac_cv_path_EGREP"
5445
5446
5447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5448$as_echo_n "checking for ANSI C header files... " >&6; }
5449if ${ac_cv_header_stdc+:} false; then :
5450  $as_echo_n "(cached) " >&6
5451else
5452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5453/* end confdefs.h.  */
5454#include <stdlib.h>
5455#include <stdarg.h>
5456#include <string.h>
5457#include <float.h>
5458
5459int
5460main ()
5461{
5462
5463  ;
5464  return 0;
5465}
5466_ACEOF
5467if ac_fn_c_try_compile "$LINENO"; then :
5468  ac_cv_header_stdc=yes
5469else
5470  ac_cv_header_stdc=no
5471fi
5472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5473
5474if test $ac_cv_header_stdc = yes; then
5475  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5476  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5477/* end confdefs.h.  */
5478#include <string.h>
5479
5480_ACEOF
5481if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5482  $EGREP "memchr" >/dev/null 2>&1; then :
5483
5484else
5485  ac_cv_header_stdc=no
5486fi
5487rm -f conftest*
5488
5489fi
5490
5491if test $ac_cv_header_stdc = yes; then
5492  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5494/* end confdefs.h.  */
5495#include <stdlib.h>
5496
5497_ACEOF
5498if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5499  $EGREP "free" >/dev/null 2>&1; then :
5500
5501else
5502  ac_cv_header_stdc=no
5503fi
5504rm -f conftest*
5505
5506fi
5507
5508if test $ac_cv_header_stdc = yes; then
5509  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5510  if test "$cross_compiling" = yes; then :
5511  :
5512else
5513  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5514/* end confdefs.h.  */
5515#include <ctype.h>
5516#include <stdlib.h>
5517#if ((' ' & 0x0FF) == 0x020)
5518# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5519# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5520#else
5521# define ISLOWER(c) \
5522		   (('a' <= (c) && (c) <= 'i') \
5523		     || ('j' <= (c) && (c) <= 'r') \
5524		     || ('s' <= (c) && (c) <= 'z'))
5525# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5526#endif
5527
5528#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5529int
5530main ()
5531{
5532  int i;
5533  for (i = 0; i < 256; i++)
5534    if (XOR (islower (i), ISLOWER (i))
5535	|| toupper (i) != TOUPPER (i))
5536      return 2;
5537  return 0;
5538}
5539_ACEOF
5540if ac_fn_c_try_run "$LINENO"; then :
5541
5542else
5543  ac_cv_header_stdc=no
5544fi
5545rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5546  conftest.$ac_objext conftest.beam conftest.$ac_ext
5547fi
5548
5549fi
5550fi
5551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5552$as_echo "$ac_cv_header_stdc" >&6; }
5553if test $ac_cv_header_stdc = yes; then
5554
5555$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5556
5557fi
5558
5559# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5560for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5561		  inttypes.h stdint.h unistd.h
5562do :
5563  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5564ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5565"
5566if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5567  cat >>confdefs.h <<_ACEOF
5568#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5569_ACEOF
5570
5571fi
5572
5573done
5574
5575
5576
5577
5578
5579
5580
5581
5582if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5583	if test -n "$ac_tool_prefix"; then
5584  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5585set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5587$as_echo_n "checking for $ac_word... " >&6; }
5588if ${ac_cv_path_PKG_CONFIG+:} false; then :
5589  $as_echo_n "(cached) " >&6
5590else
5591  case $PKG_CONFIG in
5592  [\\/]* | ?:[\\/]*)
5593  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5594  ;;
5595  *)
5596  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5597for as_dir in $PATH
5598do
5599  IFS=$as_save_IFS
5600  test -z "$as_dir" && as_dir=.
5601    for ac_exec_ext in '' $ac_executable_extensions; do
5602  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5603    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5604    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5605    break 2
5606  fi
5607done
5608  done
5609IFS=$as_save_IFS
5610
5611  ;;
5612esac
5613fi
5614PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5615if test -n "$PKG_CONFIG"; then
5616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5617$as_echo "$PKG_CONFIG" >&6; }
5618else
5619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5620$as_echo "no" >&6; }
5621fi
5622
5623
5624fi
5625if test -z "$ac_cv_path_PKG_CONFIG"; then
5626  ac_pt_PKG_CONFIG=$PKG_CONFIG
5627  # Extract the first word of "pkg-config", so it can be a program name with args.
5628set dummy pkg-config; ac_word=$2
5629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5630$as_echo_n "checking for $ac_word... " >&6; }
5631if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5632  $as_echo_n "(cached) " >&6
5633else
5634  case $ac_pt_PKG_CONFIG in
5635  [\\/]* | ?:[\\/]*)
5636  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5637  ;;
5638  *)
5639  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5640for as_dir in $PATH
5641do
5642  IFS=$as_save_IFS
5643  test -z "$as_dir" && as_dir=.
5644    for ac_exec_ext in '' $ac_executable_extensions; do
5645  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5646    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5647    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5648    break 2
5649  fi
5650done
5651  done
5652IFS=$as_save_IFS
5653
5654  ;;
5655esac
5656fi
5657ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5658if test -n "$ac_pt_PKG_CONFIG"; then
5659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5660$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5661else
5662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5663$as_echo "no" >&6; }
5664fi
5665
5666  if test "x$ac_pt_PKG_CONFIG" = x; then
5667    PKG_CONFIG=""
5668  else
5669    case $cross_compiling:$ac_tool_warned in
5670yes:)
5671{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5672$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5673ac_tool_warned=yes ;;
5674esac
5675    PKG_CONFIG=$ac_pt_PKG_CONFIG
5676  fi
5677else
5678  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5679fi
5680
5681fi
5682if test -n "$PKG_CONFIG"; then
5683	_pkg_min_version=0.9.0
5684	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5685$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5686	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5687		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5688$as_echo "yes" >&6; }
5689	else
5690		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5691$as_echo "no" >&6; }
5692		PKG_CONFIG=""
5693	fi
5694fi
5695# Make sure we can run config.sub.
5696$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5697  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5698
5699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5700$as_echo_n "checking build system type... " >&6; }
5701if ${ac_cv_build+:} false; then :
5702  $as_echo_n "(cached) " >&6
5703else
5704  ac_build_alias=$build_alias
5705test "x$ac_build_alias" = x &&
5706  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5707test "x$ac_build_alias" = x &&
5708  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5709ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5710  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5711
5712fi
5713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5714$as_echo "$ac_cv_build" >&6; }
5715case $ac_cv_build in
5716*-*-*) ;;
5717*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5718esac
5719build=$ac_cv_build
5720ac_save_IFS=$IFS; IFS='-'
5721set x $ac_cv_build
5722shift
5723build_cpu=$1
5724build_vendor=$2
5725shift; shift
5726# Remember, the first character of IFS is used to create $*,
5727# except with old shells:
5728build_os=$*
5729IFS=$ac_save_IFS
5730case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5731
5732
5733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5734$as_echo_n "checking host system type... " >&6; }
5735if ${ac_cv_host+:} false; then :
5736  $as_echo_n "(cached) " >&6
5737else
5738  if test "x$host_alias" = x; then
5739  ac_cv_host=$ac_cv_build
5740else
5741  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5742    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5743fi
5744
5745fi
5746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5747$as_echo "$ac_cv_host" >&6; }
5748case $ac_cv_host in
5749*-*-*) ;;
5750*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5751esac
5752host=$ac_cv_host
5753ac_save_IFS=$IFS; IFS='-'
5754set x $ac_cv_host
5755shift
5756host_cpu=$1
5757host_vendor=$2
5758shift; shift
5759# Remember, the first character of IFS is used to create $*,
5760# except with old shells:
5761host_os=$*
5762IFS=$ac_save_IFS
5763case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5764
5765
5766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5767$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5768if ${ac_cv_path_SED+:} false; then :
5769  $as_echo_n "(cached) " >&6
5770else
5771            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5772     for ac_i in 1 2 3 4 5 6 7; do
5773       ac_script="$ac_script$as_nl$ac_script"
5774     done
5775     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5776     { ac_script=; unset ac_script;}
5777     if test -z "$SED"; then
5778  ac_path_SED_found=false
5779  # Loop through the user's path and test for each of PROGNAME-LIST
5780  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5781for as_dir in $PATH
5782do
5783  IFS=$as_save_IFS
5784  test -z "$as_dir" && as_dir=.
5785    for ac_prog in sed gsed; do
5786    for ac_exec_ext in '' $ac_executable_extensions; do
5787      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5788      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5789# Check for GNU ac_path_SED and select it if it is found.
5790  # Check for GNU $ac_path_SED
5791case `"$ac_path_SED" --version 2>&1` in
5792*GNU*)
5793  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5794*)
5795  ac_count=0
5796  $as_echo_n 0123456789 >"conftest.in"
5797  while :
5798  do
5799    cat "conftest.in" "conftest.in" >"conftest.tmp"
5800    mv "conftest.tmp" "conftest.in"
5801    cp "conftest.in" "conftest.nl"
5802    $as_echo '' >> "conftest.nl"
5803    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5804    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5805    as_fn_arith $ac_count + 1 && ac_count=$as_val
5806    if test $ac_count -gt ${ac_path_SED_max-0}; then
5807      # Best one so far, save it but keep looking for a better one
5808      ac_cv_path_SED="$ac_path_SED"
5809      ac_path_SED_max=$ac_count
5810    fi
5811    # 10*(2^10) chars as input seems more than enough
5812    test $ac_count -gt 10 && break
5813  done
5814  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5815esac
5816
5817      $ac_path_SED_found && break 3
5818    done
5819  done
5820  done
5821IFS=$as_save_IFS
5822  if test -z "$ac_cv_path_SED"; then
5823    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5824  fi
5825else
5826  ac_cv_path_SED=$SED
5827fi
5828
5829fi
5830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5831$as_echo "$ac_cv_path_SED" >&6; }
5832 SED="$ac_cv_path_SED"
5833  rm -f conftest.sed
5834
5835
5836
5837
5838
5839if  test "x$GCC" = xyes ; then
5840    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
5841-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
5842-Wbad-function-cast -Wformat=2"
5843    case `$CC -dumpversion` in
5844    3.4.* | 4.*)
5845	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
5846	;;
5847    esac
5848else
5849    ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
5850if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
5851  SUNCC="yes"
5852else
5853  SUNCC="no"
5854fi
5855
5856    if test "x$SUNCC" = "xyes"; then
5857	CWARNFLAGS="-v"
5858    fi
5859fi
5860
5861
5862
5863# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
5864
5865
5866
5867# Check whether --enable-strict-compilation was given.
5868if test "${enable_strict_compilation+set}" = set; then :
5869  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
5870else
5871  STRICT_COMPILE=no
5872fi
5873
5874if test "x$STRICT_COMPILE" = "xyes"; then
5875	ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
5876if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
5877  SUNCC="yes"
5878else
5879  SUNCC="no"
5880fi
5881
5882	ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
5883if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
5884  INTELCC="yes"
5885else
5886  INTELCC="no"
5887fi
5888
5889	if test "x$GCC" = xyes ; then
5890		STRICT_CFLAGS="-pedantic -Werror"
5891	elif test "x$SUNCC" = "xyes"; then
5892		STRICT_CFLAGS="-errwarn"
5893    elif test "x$INTELCC" = "xyes"; then
5894		STRICT_CFLAGS="-Werror"
5895	fi
5896fi
5897CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
5898
5899
5900
5901
5902cat >>confdefs.h <<_ACEOF
5903#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
5904_ACEOF
5905
5906	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
5907	if test "x$PVM" = "x"; then
5908		PVM="0"
5909	fi
5910
5911cat >>confdefs.h <<_ACEOF
5912#define PACKAGE_VERSION_MINOR $PVM
5913_ACEOF
5914
5915	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
5916	if test "x$PVP" = "x"; then
5917		PVP="0"
5918	fi
5919
5920cat >>confdefs.h <<_ACEOF
5921#define PACKAGE_VERSION_PATCHLEVEL $PVP
5922_ACEOF
5923
5924
5925
5926CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
5927mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
5928|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
5929echo 'git directory not found: installing possibly empty changelog.' >&2)"
5930
5931
5932
5933
5934macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
5935INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
5936mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
5937|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
5938echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
5939
5940
5941
5942
5943
5944
5945if test x$APP_MAN_SUFFIX = x    ; then
5946    APP_MAN_SUFFIX=1
5947fi
5948if test x$APP_MAN_DIR = x    ; then
5949    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
5950fi
5951
5952if test x$LIB_MAN_SUFFIX = x    ; then
5953    LIB_MAN_SUFFIX=3
5954fi
5955if test x$LIB_MAN_DIR = x    ; then
5956    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
5957fi
5958
5959if test x$FILE_MAN_SUFFIX = x    ; then
5960    case $host_os in
5961	solaris*)	FILE_MAN_SUFFIX=4  ;;
5962	*)		FILE_MAN_SUFFIX=5  ;;
5963    esac
5964fi
5965if test x$FILE_MAN_DIR = x    ; then
5966    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
5967fi
5968
5969if test x$MISC_MAN_SUFFIX = x    ; then
5970    case $host_os in
5971	solaris*)	MISC_MAN_SUFFIX=5  ;;
5972	*)		MISC_MAN_SUFFIX=7  ;;
5973    esac
5974fi
5975if test x$MISC_MAN_DIR = x    ; then
5976    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
5977fi
5978
5979if test x$DRIVER_MAN_SUFFIX = x    ; then
5980    case $host_os in
5981	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
5982	*)		DRIVER_MAN_SUFFIX=4  ;;
5983    esac
5984fi
5985if test x$DRIVER_MAN_DIR = x    ; then
5986    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
5987fi
5988
5989if test x$ADMIN_MAN_SUFFIX = x    ; then
5990    case $host_os in
5991	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
5992	*)		ADMIN_MAN_SUFFIX=8  ;;
5993    esac
5994fi
5995if test x$ADMIN_MAN_DIR = x    ; then
5996    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
5997fi
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013XORG_MAN_PAGE="X Version 11"
6014
6015MAN_SUBSTS="\
6016	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
6017	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
6018	-e 's|__xservername__|Xorg|g' \
6019	-e 's|__xconfigfile__|xorg.conf|g' \
6020	-e 's|__projectroot__|\$(prefix)|g' \
6021	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
6022	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
6023	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
6024	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
6025	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
6026	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
6027	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
6028
6029
6030
6031# Check whether --enable-silent-rules was given.
6032if test "${enable_silent_rules+set}" = set; then :
6033  enableval=$enable_silent_rules;
6034fi
6035
6036case $enable_silent_rules in
6037yes) AM_DEFAULT_VERBOSITY=0;;
6038no)  AM_DEFAULT_VERBOSITY=1;;
6039*)   AM_DEFAULT_VERBOSITY=0;;
6040esac
6041AM_BACKSLASH='\'
6042
6043
6044
6045
6046
6047
6048# Check whether --with-doxygen was given.
6049if test "${with_doxygen+set}" = set; then :
6050  withval=$with_doxygen; use_doxygen=$withval
6051else
6052  use_doxygen=auto
6053fi
6054
6055
6056
6057if test "x$use_doxygen" = x"auto"; then
6058   # Extract the first word of "doxygen", so it can be a program name with args.
6059set dummy doxygen; ac_word=$2
6060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6061$as_echo_n "checking for $ac_word... " >&6; }
6062if ${ac_cv_path_DOXYGEN+:} false; then :
6063  $as_echo_n "(cached) " >&6
6064else
6065  case $DOXYGEN in
6066  [\\/]* | ?:[\\/]*)
6067  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
6068  ;;
6069  *)
6070  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6071for as_dir in $PATH
6072do
6073  IFS=$as_save_IFS
6074  test -z "$as_dir" && as_dir=.
6075    for ac_exec_ext in '' $ac_executable_extensions; do
6076  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6077    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
6078    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6079    break 2
6080  fi
6081done
6082  done
6083IFS=$as_save_IFS
6084
6085  ;;
6086esac
6087fi
6088DOXYGEN=$ac_cv_path_DOXYGEN
6089if test -n "$DOXYGEN"; then
6090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
6091$as_echo "$DOXYGEN" >&6; }
6092else
6093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6094$as_echo "no" >&6; }
6095fi
6096
6097
6098   if test "x$DOXYGEN" = "x"; then
6099        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - documentation targets will be skipped" >&5
6100$as_echo "$as_me: WARNING: doxygen not found - documentation targets will be skipped" >&2;}
6101	have_doxygen=no
6102   else
6103        have_doxygen=yes
6104   fi
6105elif test "x$use_doxygen" = x"yes" ; then
6106   # Extract the first word of "doxygen", so it can be a program name with args.
6107set dummy doxygen; ac_word=$2
6108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6109$as_echo_n "checking for $ac_word... " >&6; }
6110if ${ac_cv_path_DOXYGEN+:} false; then :
6111  $as_echo_n "(cached) " >&6
6112else
6113  case $DOXYGEN in
6114  [\\/]* | ?:[\\/]*)
6115  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
6116  ;;
6117  *)
6118  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6119for as_dir in $PATH
6120do
6121  IFS=$as_save_IFS
6122  test -z "$as_dir" && as_dir=.
6123    for ac_exec_ext in '' $ac_executable_extensions; do
6124  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6125    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
6126    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6127    break 2
6128  fi
6129done
6130  done
6131IFS=$as_save_IFS
6132
6133  ;;
6134esac
6135fi
6136DOXYGEN=$ac_cv_path_DOXYGEN
6137if test -n "$DOXYGEN"; then
6138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
6139$as_echo "$DOXYGEN" >&6; }
6140else
6141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6142$as_echo "no" >&6; }
6143fi
6144
6145
6146   if test "x$DOXYGEN" = "x"; then
6147        as_fn_error $? "--with-doxygen=yes specified but doxygen not found in PATH" "$LINENO" 5
6148   fi
6149   have_doxygen=yes
6150elif test "x$use_doxygen" = x"no" ; then
6151   if test "x$DOXYGEN" != "x"; then
6152      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&5
6153$as_echo "$as_me: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&2;}
6154   fi
6155   have_doxygen=no
6156else
6157   as_fn_error $? "--with-doxygen expects 'yes' or 'no'" "$LINENO" 5
6158fi
6159if test "$have_doxygen" = yes; then
6160    # scrape the doxygen version
6161    { $as_echo "$as_me:${as_lineno-$LINENO}: checking the doxygen version" >&5
6162$as_echo_n "checking the doxygen version... " >&6; }
6163    doxygen_version=`$DOXYGEN --version 2>/dev/null`
6164    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen_version" >&5
6165$as_echo "$doxygen_version" >&6; }
6166    as_arg_v1=$doxygen_version
6167as_arg_v2=1.6.1
6168awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
6169case $? in #(
6170  1) :
6171    if test "x$use_doxygen" = xauto; then
6172            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen version $doxygen_version found, but 1.6.1 needed" >&5
6173$as_echo "$as_me: WARNING: doxygen version $doxygen_version found, but 1.6.1 needed" >&2;}
6174            have_doxygen=no
6175        else
6176            as_fn_error $? "doxygen version $doxygen_version found, but 1.6.1 needed" "$LINENO" 5
6177        fi ;; #(
6178  0) :
6179     ;; #(
6180  2) :
6181     ;; #(
6182  *) :
6183     ;;
6184esac
6185fi
6186 if test "$have_doxygen" = yes; then
6187  HAVE_DOXYGEN_TRUE=
6188  HAVE_DOXYGEN_FALSE='#'
6189else
6190  HAVE_DOXYGEN_TRUE='#'
6191  HAVE_DOXYGEN_FALSE=
6192fi
6193
6194
6195
6196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.5" >&5
6197$as_echo_n "checking for X.Org SGML entities >= 1.5... " >&6; }
6198XORG_SGML_PATH=
6199if test -n "$PKG_CONFIG" && \
6200    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.5\""; } >&5
6201  ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.5") 2>&5
6202  ac_status=$?
6203  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6204  test $ac_status = 0; }; then
6205  XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
6206else
6207  :
6208
6209fi
6210
6211# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
6212# the path and the name of the doc stylesheet
6213if test "x$XORG_SGML_PATH" != "x" ; then
6214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
6215$as_echo "$XORG_SGML_PATH" >&6; }
6216   STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
6217   XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
6218else
6219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6220$as_echo "no" >&6; }
6221fi
6222
6223
6224
6225
6226 if test "x$XSL_STYLESHEET" != "x"; then
6227  HAVE_STYLESHEETS_TRUE=
6228  HAVE_STYLESHEETS_FALSE='#'
6229else
6230  HAVE_STYLESHEETS_TRUE='#'
6231  HAVE_STYLESHEETS_FALSE=
6232fi
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248ac_config_headers="$ac_config_headers include/do-not-use-config.h"
6249
6250ac_config_headers="$ac_config_headers include/xorg-server.h"
6251
6252ac_config_headers="$ac_config_headers include/dix-config.h"
6253
6254ac_config_headers="$ac_config_headers include/xorg-config.h"
6255
6256ac_config_headers="$ac_config_headers include/xkb-config.h"
6257
6258ac_config_headers="$ac_config_headers include/xwin-config.h"
6259
6260ac_config_headers="$ac_config_headers include/kdrive-config.h"
6261
6262ac_config_headers="$ac_config_headers include/version-config.h"
6263
6264
6265ac_ext=c
6266ac_cpp='$CPP $CPPFLAGS'
6267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6269ac_compiler_gnu=$ac_cv_c_compiler_gnu
6270if test -n "$ac_tool_prefix"; then
6271  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6272set dummy ${ac_tool_prefix}gcc; ac_word=$2
6273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6274$as_echo_n "checking for $ac_word... " >&6; }
6275if ${ac_cv_prog_CC+:} false; then :
6276  $as_echo_n "(cached) " >&6
6277else
6278  if test -n "$CC"; then
6279  ac_cv_prog_CC="$CC" # Let the user override the test.
6280else
6281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282for as_dir in $PATH
6283do
6284  IFS=$as_save_IFS
6285  test -z "$as_dir" && as_dir=.
6286    for ac_exec_ext in '' $ac_executable_extensions; do
6287  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6288    ac_cv_prog_CC="${ac_tool_prefix}gcc"
6289    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6290    break 2
6291  fi
6292done
6293  done
6294IFS=$as_save_IFS
6295
6296fi
6297fi
6298CC=$ac_cv_prog_CC
6299if test -n "$CC"; then
6300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6301$as_echo "$CC" >&6; }
6302else
6303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6304$as_echo "no" >&6; }
6305fi
6306
6307
6308fi
6309if test -z "$ac_cv_prog_CC"; then
6310  ac_ct_CC=$CC
6311  # Extract the first word of "gcc", so it can be a program name with args.
6312set dummy gcc; ac_word=$2
6313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6314$as_echo_n "checking for $ac_word... " >&6; }
6315if ${ac_cv_prog_ac_ct_CC+:} false; then :
6316  $as_echo_n "(cached) " >&6
6317else
6318  if test -n "$ac_ct_CC"; then
6319  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6320else
6321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6322for as_dir in $PATH
6323do
6324  IFS=$as_save_IFS
6325  test -z "$as_dir" && as_dir=.
6326    for ac_exec_ext in '' $ac_executable_extensions; do
6327  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6328    ac_cv_prog_ac_ct_CC="gcc"
6329    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6330    break 2
6331  fi
6332done
6333  done
6334IFS=$as_save_IFS
6335
6336fi
6337fi
6338ac_ct_CC=$ac_cv_prog_ac_ct_CC
6339if test -n "$ac_ct_CC"; then
6340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6341$as_echo "$ac_ct_CC" >&6; }
6342else
6343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6344$as_echo "no" >&6; }
6345fi
6346
6347  if test "x$ac_ct_CC" = x; then
6348    CC=""
6349  else
6350    case $cross_compiling:$ac_tool_warned in
6351yes:)
6352{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6353$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6354ac_tool_warned=yes ;;
6355esac
6356    CC=$ac_ct_CC
6357  fi
6358else
6359  CC="$ac_cv_prog_CC"
6360fi
6361
6362if test -z "$CC"; then
6363          if test -n "$ac_tool_prefix"; then
6364    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6365set dummy ${ac_tool_prefix}cc; ac_word=$2
6366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6367$as_echo_n "checking for $ac_word... " >&6; }
6368if ${ac_cv_prog_CC+:} false; then :
6369  $as_echo_n "(cached) " >&6
6370else
6371  if test -n "$CC"; then
6372  ac_cv_prog_CC="$CC" # Let the user override the test.
6373else
6374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6375for as_dir in $PATH
6376do
6377  IFS=$as_save_IFS
6378  test -z "$as_dir" && as_dir=.
6379    for ac_exec_ext in '' $ac_executable_extensions; do
6380  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6381    ac_cv_prog_CC="${ac_tool_prefix}cc"
6382    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6383    break 2
6384  fi
6385done
6386  done
6387IFS=$as_save_IFS
6388
6389fi
6390fi
6391CC=$ac_cv_prog_CC
6392if test -n "$CC"; then
6393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6394$as_echo "$CC" >&6; }
6395else
6396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6397$as_echo "no" >&6; }
6398fi
6399
6400
6401  fi
6402fi
6403if test -z "$CC"; then
6404  # Extract the first word of "cc", so it can be a program name with args.
6405set dummy cc; ac_word=$2
6406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6407$as_echo_n "checking for $ac_word... " >&6; }
6408if ${ac_cv_prog_CC+:} false; then :
6409  $as_echo_n "(cached) " >&6
6410else
6411  if test -n "$CC"; then
6412  ac_cv_prog_CC="$CC" # Let the user override the test.
6413else
6414  ac_prog_rejected=no
6415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6416for as_dir in $PATH
6417do
6418  IFS=$as_save_IFS
6419  test -z "$as_dir" && as_dir=.
6420    for ac_exec_ext in '' $ac_executable_extensions; do
6421  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6422    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6423       ac_prog_rejected=yes
6424       continue
6425     fi
6426    ac_cv_prog_CC="cc"
6427    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6428    break 2
6429  fi
6430done
6431  done
6432IFS=$as_save_IFS
6433
6434if test $ac_prog_rejected = yes; then
6435  # We found a bogon in the path, so make sure we never use it.
6436  set dummy $ac_cv_prog_CC
6437  shift
6438  if test $# != 0; then
6439    # We chose a different compiler from the bogus one.
6440    # However, it has the same basename, so the bogon will be chosen
6441    # first if we set CC to just the basename; use the full file name.
6442    shift
6443    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6444  fi
6445fi
6446fi
6447fi
6448CC=$ac_cv_prog_CC
6449if test -n "$CC"; then
6450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6451$as_echo "$CC" >&6; }
6452else
6453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6454$as_echo "no" >&6; }
6455fi
6456
6457
6458fi
6459if test -z "$CC"; then
6460  if test -n "$ac_tool_prefix"; then
6461  for ac_prog in cl.exe
6462  do
6463    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6464set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6466$as_echo_n "checking for $ac_word... " >&6; }
6467if ${ac_cv_prog_CC+:} false; then :
6468  $as_echo_n "(cached) " >&6
6469else
6470  if test -n "$CC"; then
6471  ac_cv_prog_CC="$CC" # Let the user override the test.
6472else
6473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6474for as_dir in $PATH
6475do
6476  IFS=$as_save_IFS
6477  test -z "$as_dir" && as_dir=.
6478    for ac_exec_ext in '' $ac_executable_extensions; do
6479  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6480    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6481    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6482    break 2
6483  fi
6484done
6485  done
6486IFS=$as_save_IFS
6487
6488fi
6489fi
6490CC=$ac_cv_prog_CC
6491if test -n "$CC"; then
6492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6493$as_echo "$CC" >&6; }
6494else
6495  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6496$as_echo "no" >&6; }
6497fi
6498
6499
6500    test -n "$CC" && break
6501  done
6502fi
6503if test -z "$CC"; then
6504  ac_ct_CC=$CC
6505  for ac_prog in cl.exe
6506do
6507  # Extract the first word of "$ac_prog", so it can be a program name with args.
6508set dummy $ac_prog; ac_word=$2
6509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6510$as_echo_n "checking for $ac_word... " >&6; }
6511if ${ac_cv_prog_ac_ct_CC+:} false; then :
6512  $as_echo_n "(cached) " >&6
6513else
6514  if test -n "$ac_ct_CC"; then
6515  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6516else
6517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6518for as_dir in $PATH
6519do
6520  IFS=$as_save_IFS
6521  test -z "$as_dir" && as_dir=.
6522    for ac_exec_ext in '' $ac_executable_extensions; do
6523  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6524    ac_cv_prog_ac_ct_CC="$ac_prog"
6525    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6526    break 2
6527  fi
6528done
6529  done
6530IFS=$as_save_IFS
6531
6532fi
6533fi
6534ac_ct_CC=$ac_cv_prog_ac_ct_CC
6535if test -n "$ac_ct_CC"; then
6536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6537$as_echo "$ac_ct_CC" >&6; }
6538else
6539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6540$as_echo "no" >&6; }
6541fi
6542
6543
6544  test -n "$ac_ct_CC" && break
6545done
6546
6547  if test "x$ac_ct_CC" = x; then
6548    CC=""
6549  else
6550    case $cross_compiling:$ac_tool_warned in
6551yes:)
6552{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6553$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6554ac_tool_warned=yes ;;
6555esac
6556    CC=$ac_ct_CC
6557  fi
6558fi
6559
6560fi
6561
6562
6563test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6564$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6565as_fn_error $? "no acceptable C compiler found in \$PATH
6566See \`config.log' for more details" "$LINENO" 5; }
6567
6568# Provide some information about the compiler.
6569$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6570set X $ac_compile
6571ac_compiler=$2
6572for ac_option in --version -v -V -qversion; do
6573  { { ac_try="$ac_compiler $ac_option >&5"
6574case "(($ac_try" in
6575  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6576  *) ac_try_echo=$ac_try;;
6577esac
6578eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6579$as_echo "$ac_try_echo"; } >&5
6580  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6581  ac_status=$?
6582  if test -s conftest.err; then
6583    sed '10a\
6584... rest of stderr output deleted ...
6585         10q' conftest.err >conftest.er1
6586    cat conftest.er1 >&5
6587  fi
6588  rm -f conftest.er1 conftest.err
6589  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6590  test $ac_status = 0; }
6591done
6592
6593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6594$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6595if ${ac_cv_c_compiler_gnu+:} false; then :
6596  $as_echo_n "(cached) " >&6
6597else
6598  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6599/* end confdefs.h.  */
6600
6601int
6602main ()
6603{
6604#ifndef __GNUC__
6605       choke me
6606#endif
6607
6608  ;
6609  return 0;
6610}
6611_ACEOF
6612if ac_fn_c_try_compile "$LINENO"; then :
6613  ac_compiler_gnu=yes
6614else
6615  ac_compiler_gnu=no
6616fi
6617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6618ac_cv_c_compiler_gnu=$ac_compiler_gnu
6619
6620fi
6621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6622$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6623if test $ac_compiler_gnu = yes; then
6624  GCC=yes
6625else
6626  GCC=
6627fi
6628ac_test_CFLAGS=${CFLAGS+set}
6629ac_save_CFLAGS=$CFLAGS
6630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6631$as_echo_n "checking whether $CC accepts -g... " >&6; }
6632if ${ac_cv_prog_cc_g+:} false; then :
6633  $as_echo_n "(cached) " >&6
6634else
6635  ac_save_c_werror_flag=$ac_c_werror_flag
6636   ac_c_werror_flag=yes
6637   ac_cv_prog_cc_g=no
6638   CFLAGS="-g"
6639   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6640/* end confdefs.h.  */
6641
6642int
6643main ()
6644{
6645
6646  ;
6647  return 0;
6648}
6649_ACEOF
6650if ac_fn_c_try_compile "$LINENO"; then :
6651  ac_cv_prog_cc_g=yes
6652else
6653  CFLAGS=""
6654      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6655/* end confdefs.h.  */
6656
6657int
6658main ()
6659{
6660
6661  ;
6662  return 0;
6663}
6664_ACEOF
6665if ac_fn_c_try_compile "$LINENO"; then :
6666
6667else
6668  ac_c_werror_flag=$ac_save_c_werror_flag
6669	 CFLAGS="-g"
6670	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6671/* end confdefs.h.  */
6672
6673int
6674main ()
6675{
6676
6677  ;
6678  return 0;
6679}
6680_ACEOF
6681if ac_fn_c_try_compile "$LINENO"; then :
6682  ac_cv_prog_cc_g=yes
6683fi
6684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6685fi
6686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6687fi
6688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6689   ac_c_werror_flag=$ac_save_c_werror_flag
6690fi
6691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6692$as_echo "$ac_cv_prog_cc_g" >&6; }
6693if test "$ac_test_CFLAGS" = set; then
6694  CFLAGS=$ac_save_CFLAGS
6695elif test $ac_cv_prog_cc_g = yes; then
6696  if test "$GCC" = yes; then
6697    CFLAGS="-g -O2"
6698  else
6699    CFLAGS="-g"
6700  fi
6701else
6702  if test "$GCC" = yes; then
6703    CFLAGS="-O2"
6704  else
6705    CFLAGS=
6706  fi
6707fi
6708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6709$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6710if ${ac_cv_prog_cc_c89+:} false; then :
6711  $as_echo_n "(cached) " >&6
6712else
6713  ac_cv_prog_cc_c89=no
6714ac_save_CC=$CC
6715cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6716/* end confdefs.h.  */
6717#include <stdarg.h>
6718#include <stdio.h>
6719#include <sys/types.h>
6720#include <sys/stat.h>
6721/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6722struct buf { int x; };
6723FILE * (*rcsopen) (struct buf *, struct stat *, int);
6724static char *e (p, i)
6725     char **p;
6726     int i;
6727{
6728  return p[i];
6729}
6730static char *f (char * (*g) (char **, int), char **p, ...)
6731{
6732  char *s;
6733  va_list v;
6734  va_start (v,p);
6735  s = g (p, va_arg (v,int));
6736  va_end (v);
6737  return s;
6738}
6739
6740/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6741   function prototypes and stuff, but not '\xHH' hex character constants.
6742   These don't provoke an error unfortunately, instead are silently treated
6743   as 'x'.  The following induces an error, until -std is added to get
6744   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6745   array size at least.  It's necessary to write '\x00'==0 to get something
6746   that's true only with -std.  */
6747int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6748
6749/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6750   inside strings and character constants.  */
6751#define FOO(x) 'x'
6752int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6753
6754int test (int i, double x);
6755struct s1 {int (*f) (int a);};
6756struct s2 {int (*f) (double a);};
6757int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6758int argc;
6759char **argv;
6760int
6761main ()
6762{
6763return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6764  ;
6765  return 0;
6766}
6767_ACEOF
6768for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6769	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6770do
6771  CC="$ac_save_CC $ac_arg"
6772  if ac_fn_c_try_compile "$LINENO"; then :
6773  ac_cv_prog_cc_c89=$ac_arg
6774fi
6775rm -f core conftest.err conftest.$ac_objext
6776  test "x$ac_cv_prog_cc_c89" != "xno" && break
6777done
6778rm -f conftest.$ac_ext
6779CC=$ac_save_CC
6780
6781fi
6782# AC_CACHE_VAL
6783case "x$ac_cv_prog_cc_c89" in
6784  x)
6785    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6786$as_echo "none needed" >&6; } ;;
6787  xno)
6788    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6789$as_echo "unsupported" >&6; } ;;
6790  *)
6791    CC="$CC $ac_cv_prog_cc_c89"
6792    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6793$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6794esac
6795if test "x$ac_cv_prog_cc_c89" != xno; then :
6796
6797fi
6798
6799ac_ext=c
6800ac_cpp='$CPP $CPPFLAGS'
6801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6803ac_compiler_gnu=$ac_cv_c_compiler_gnu
6804
6805depcc="$CC"   am_compiler_list=
6806
6807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6808$as_echo_n "checking dependency style of $depcc... " >&6; }
6809if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6810  $as_echo_n "(cached) " >&6
6811else
6812  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6813  # We make a subdir and do the tests there.  Otherwise we can end up
6814  # making bogus files that we don't know about and never remove.  For
6815  # instance it was reported that on HP-UX the gcc test will end up
6816  # making a dummy file named `D' -- because `-MD' means `put the output
6817  # in D'.
6818  mkdir conftest.dir
6819  # Copy depcomp to subdir because otherwise we won't find it if we're
6820  # using a relative directory.
6821  cp "$am_depcomp" conftest.dir
6822  cd conftest.dir
6823  # We will build objects and dependencies in a subdirectory because
6824  # it helps to detect inapplicable dependency modes.  For instance
6825  # both Tru64's cc and ICC support -MD to output dependencies as a
6826  # side effect of compilation, but ICC will put the dependencies in
6827  # the current directory while Tru64 will put them in the object
6828  # directory.
6829  mkdir sub
6830
6831  am_cv_CC_dependencies_compiler_type=none
6832  if test "$am_compiler_list" = ""; then
6833     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6834  fi
6835  am__universal=false
6836  case " $depcc " in #(
6837     *\ -arch\ *\ -arch\ *) am__universal=true ;;
6838     esac
6839
6840  for depmode in $am_compiler_list; do
6841    # Setup a source with many dependencies, because some compilers
6842    # like to wrap large dependency lists on column 80 (with \), and
6843    # we should not choose a depcomp mode which is confused by this.
6844    #
6845    # We need to recreate these files for each test, as the compiler may
6846    # overwrite some of them when testing with obscure command lines.
6847    # This happens at least with the AIX C compiler.
6848    : > sub/conftest.c
6849    for i in 1 2 3 4 5 6; do
6850      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6851      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6852      # Solaris 8's {/usr,}/bin/sh.
6853      touch sub/conftst$i.h
6854    done
6855    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6856
6857    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6858    # mode.  It turns out that the SunPro C++ compiler does not properly
6859    # handle `-M -o', and we need to detect this.  Also, some Intel
6860    # versions had trouble with output in subdirs
6861    am__obj=sub/conftest.${OBJEXT-o}
6862    am__minus_obj="-o $am__obj"
6863    case $depmode in
6864    gcc)
6865      # This depmode causes a compiler race in universal mode.
6866      test "$am__universal" = false || continue
6867      ;;
6868    nosideeffect)
6869      # after this tag, mechanisms are not by side-effect, so they'll
6870      # only be used when explicitly requested
6871      if test "x$enable_dependency_tracking" = xyes; then
6872	continue
6873      else
6874	break
6875      fi
6876      ;;
6877    msvisualcpp | msvcmsys)
6878      # This compiler won't grok `-c -o', but also, the minuso test has
6879      # not run yet.  These depmodes are late enough in the game, and
6880      # so weak that their functioning should not be impacted.
6881      am__obj=conftest.${OBJEXT-o}
6882      am__minus_obj=
6883      ;;
6884    none) break ;;
6885    esac
6886    if depmode=$depmode \
6887       source=sub/conftest.c object=$am__obj \
6888       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6889       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6890         >/dev/null 2>conftest.err &&
6891       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6892       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6893       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6894       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6895      # icc doesn't choke on unknown options, it will just issue warnings
6896      # or remarks (even with -Werror).  So we grep stderr for any message
6897      # that says an option was ignored or not supported.
6898      # When given -MP, icc 7.0 and 7.1 complain thusly:
6899      #   icc: Command line warning: ignoring option '-M'; no argument required
6900      # The diagnosis changed in icc 8.0:
6901      #   icc: Command line remark: option '-MP' not supported
6902      if (grep 'ignoring option' conftest.err ||
6903          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6904        am_cv_CC_dependencies_compiler_type=$depmode
6905        break
6906      fi
6907    fi
6908  done
6909
6910  cd ..
6911  rm -rf conftest.dir
6912else
6913  am_cv_CC_dependencies_compiler_type=none
6914fi
6915
6916fi
6917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6918$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6919CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6920
6921 if
6922  test "x$enable_dependency_tracking" != xno \
6923  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6924  am__fastdepCC_TRUE=
6925  am__fastdepCC_FALSE='#'
6926else
6927  am__fastdepCC_TRUE='#'
6928  am__fastdepCC_FALSE=
6929fi
6930
6931
6932# By default we simply use the C compiler to build assembly code.
6933
6934test "${CCAS+set}" = set || CCAS=$CC
6935test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
6936
6937
6938
6939depcc="$CCAS"   am_compiler_list=
6940
6941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6942$as_echo_n "checking dependency style of $depcc... " >&6; }
6943if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
6944  $as_echo_n "(cached) " >&6
6945else
6946  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6947  # We make a subdir and do the tests there.  Otherwise we can end up
6948  # making bogus files that we don't know about and never remove.  For
6949  # instance it was reported that on HP-UX the gcc test will end up
6950  # making a dummy file named `D' -- because `-MD' means `put the output
6951  # in D'.
6952  mkdir conftest.dir
6953  # Copy depcomp to subdir because otherwise we won't find it if we're
6954  # using a relative directory.
6955  cp "$am_depcomp" conftest.dir
6956  cd conftest.dir
6957  # We will build objects and dependencies in a subdirectory because
6958  # it helps to detect inapplicable dependency modes.  For instance
6959  # both Tru64's cc and ICC support -MD to output dependencies as a
6960  # side effect of compilation, but ICC will put the dependencies in
6961  # the current directory while Tru64 will put them in the object
6962  # directory.
6963  mkdir sub
6964
6965  am_cv_CCAS_dependencies_compiler_type=none
6966  if test "$am_compiler_list" = ""; then
6967     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6968  fi
6969  am__universal=false
6970
6971
6972  for depmode in $am_compiler_list; do
6973    # Setup a source with many dependencies, because some compilers
6974    # like to wrap large dependency lists on column 80 (with \), and
6975    # we should not choose a depcomp mode which is confused by this.
6976    #
6977    # We need to recreate these files for each test, as the compiler may
6978    # overwrite some of them when testing with obscure command lines.
6979    # This happens at least with the AIX C compiler.
6980    : > sub/conftest.c
6981    for i in 1 2 3 4 5 6; do
6982      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6983      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6984      # Solaris 8's {/usr,}/bin/sh.
6985      touch sub/conftst$i.h
6986    done
6987    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6988
6989    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6990    # mode.  It turns out that the SunPro C++ compiler does not properly
6991    # handle `-M -o', and we need to detect this.  Also, some Intel
6992    # versions had trouble with output in subdirs
6993    am__obj=sub/conftest.${OBJEXT-o}
6994    am__minus_obj="-o $am__obj"
6995    case $depmode in
6996    gcc)
6997      # This depmode causes a compiler race in universal mode.
6998      test "$am__universal" = false || continue
6999      ;;
7000    nosideeffect)
7001      # after this tag, mechanisms are not by side-effect, so they'll
7002      # only be used when explicitly requested
7003      if test "x$enable_dependency_tracking" = xyes; then
7004	continue
7005      else
7006	break
7007      fi
7008      ;;
7009    msvisualcpp | msvcmsys)
7010      # This compiler won't grok `-c -o', but also, the minuso test has
7011      # not run yet.  These depmodes are late enough in the game, and
7012      # so weak that their functioning should not be impacted.
7013      am__obj=conftest.${OBJEXT-o}
7014      am__minus_obj=
7015      ;;
7016    none) break ;;
7017    esac
7018    if depmode=$depmode \
7019       source=sub/conftest.c object=$am__obj \
7020       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7021       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7022         >/dev/null 2>conftest.err &&
7023       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7024       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7025       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7026       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7027      # icc doesn't choke on unknown options, it will just issue warnings
7028      # or remarks (even with -Werror).  So we grep stderr for any message
7029      # that says an option was ignored or not supported.
7030      # When given -MP, icc 7.0 and 7.1 complain thusly:
7031      #   icc: Command line warning: ignoring option '-M'; no argument required
7032      # The diagnosis changed in icc 8.0:
7033      #   icc: Command line remark: option '-MP' not supported
7034      if (grep 'ignoring option' conftest.err ||
7035          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7036        am_cv_CCAS_dependencies_compiler_type=$depmode
7037        break
7038      fi
7039    fi
7040  done
7041
7042  cd ..
7043  rm -rf conftest.dir
7044else
7045  am_cv_CCAS_dependencies_compiler_type=none
7046fi
7047
7048fi
7049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
7050$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
7051CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
7052
7053 if
7054  test "x$enable_dependency_tracking" != xno \
7055  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
7056  am__fastdepCCAS_TRUE=
7057  am__fastdepCCAS_FALSE='#'
7058else
7059  am__fastdepCCAS_TRUE='#'
7060  am__fastdepCCAS_FALSE=
7061fi
7062
7063
7064
7065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7066$as_echo_n "checking whether ln -s works... " >&6; }
7067LN_S=$as_ln_s
7068if test "$LN_S" = "ln -s"; then
7069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7070$as_echo "yes" >&6; }
7071else
7072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7073$as_echo "no, using $LN_S" >&6; }
7074fi
7075
7076enable_win32_dll=yes
7077
7078case $host in
7079*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7080  if test -n "$ac_tool_prefix"; then
7081  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7082set dummy ${ac_tool_prefix}as; ac_word=$2
7083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7084$as_echo_n "checking for $ac_word... " >&6; }
7085if ${ac_cv_prog_AS+:} false; then :
7086  $as_echo_n "(cached) " >&6
7087else
7088  if test -n "$AS"; then
7089  ac_cv_prog_AS="$AS" # Let the user override the test.
7090else
7091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7092for as_dir in $PATH
7093do
7094  IFS=$as_save_IFS
7095  test -z "$as_dir" && as_dir=.
7096    for ac_exec_ext in '' $ac_executable_extensions; do
7097  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7098    ac_cv_prog_AS="${ac_tool_prefix}as"
7099    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7100    break 2
7101  fi
7102done
7103  done
7104IFS=$as_save_IFS
7105
7106fi
7107fi
7108AS=$ac_cv_prog_AS
7109if test -n "$AS"; then
7110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7111$as_echo "$AS" >&6; }
7112else
7113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7114$as_echo "no" >&6; }
7115fi
7116
7117
7118fi
7119if test -z "$ac_cv_prog_AS"; then
7120  ac_ct_AS=$AS
7121  # Extract the first word of "as", so it can be a program name with args.
7122set dummy as; ac_word=$2
7123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7124$as_echo_n "checking for $ac_word... " >&6; }
7125if ${ac_cv_prog_ac_ct_AS+:} false; then :
7126  $as_echo_n "(cached) " >&6
7127else
7128  if test -n "$ac_ct_AS"; then
7129  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7130else
7131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7132for as_dir in $PATH
7133do
7134  IFS=$as_save_IFS
7135  test -z "$as_dir" && as_dir=.
7136    for ac_exec_ext in '' $ac_executable_extensions; do
7137  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7138    ac_cv_prog_ac_ct_AS="as"
7139    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7140    break 2
7141  fi
7142done
7143  done
7144IFS=$as_save_IFS
7145
7146fi
7147fi
7148ac_ct_AS=$ac_cv_prog_ac_ct_AS
7149if test -n "$ac_ct_AS"; then
7150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7151$as_echo "$ac_ct_AS" >&6; }
7152else
7153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7154$as_echo "no" >&6; }
7155fi
7156
7157  if test "x$ac_ct_AS" = x; then
7158    AS="false"
7159  else
7160    case $cross_compiling:$ac_tool_warned in
7161yes:)
7162{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7163$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7164ac_tool_warned=yes ;;
7165esac
7166    AS=$ac_ct_AS
7167  fi
7168else
7169  AS="$ac_cv_prog_AS"
7170fi
7171
7172  if test -n "$ac_tool_prefix"; then
7173  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7174set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7176$as_echo_n "checking for $ac_word... " >&6; }
7177if ${ac_cv_prog_DLLTOOL+:} false; then :
7178  $as_echo_n "(cached) " >&6
7179else
7180  if test -n "$DLLTOOL"; then
7181  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7182else
7183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184for as_dir in $PATH
7185do
7186  IFS=$as_save_IFS
7187  test -z "$as_dir" && as_dir=.
7188    for ac_exec_ext in '' $ac_executable_extensions; do
7189  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7190    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7191    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7192    break 2
7193  fi
7194done
7195  done
7196IFS=$as_save_IFS
7197
7198fi
7199fi
7200DLLTOOL=$ac_cv_prog_DLLTOOL
7201if test -n "$DLLTOOL"; then
7202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7203$as_echo "$DLLTOOL" >&6; }
7204else
7205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7206$as_echo "no" >&6; }
7207fi
7208
7209
7210fi
7211if test -z "$ac_cv_prog_DLLTOOL"; then
7212  ac_ct_DLLTOOL=$DLLTOOL
7213  # Extract the first word of "dlltool", so it can be a program name with args.
7214set dummy dlltool; ac_word=$2
7215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7216$as_echo_n "checking for $ac_word... " >&6; }
7217if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7218  $as_echo_n "(cached) " >&6
7219else
7220  if test -n "$ac_ct_DLLTOOL"; then
7221  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7222else
7223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7224for as_dir in $PATH
7225do
7226  IFS=$as_save_IFS
7227  test -z "$as_dir" && as_dir=.
7228    for ac_exec_ext in '' $ac_executable_extensions; do
7229  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7230    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7231    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7232    break 2
7233  fi
7234done
7235  done
7236IFS=$as_save_IFS
7237
7238fi
7239fi
7240ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7241if test -n "$ac_ct_DLLTOOL"; then
7242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7243$as_echo "$ac_ct_DLLTOOL" >&6; }
7244else
7245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7246$as_echo "no" >&6; }
7247fi
7248
7249  if test "x$ac_ct_DLLTOOL" = x; then
7250    DLLTOOL="false"
7251  else
7252    case $cross_compiling:$ac_tool_warned in
7253yes:)
7254{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7255$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7256ac_tool_warned=yes ;;
7257esac
7258    DLLTOOL=$ac_ct_DLLTOOL
7259  fi
7260else
7261  DLLTOOL="$ac_cv_prog_DLLTOOL"
7262fi
7263
7264  if test -n "$ac_tool_prefix"; then
7265  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7266set dummy ${ac_tool_prefix}objdump; ac_word=$2
7267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7268$as_echo_n "checking for $ac_word... " >&6; }
7269if ${ac_cv_prog_OBJDUMP+:} false; then :
7270  $as_echo_n "(cached) " >&6
7271else
7272  if test -n "$OBJDUMP"; then
7273  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7274else
7275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7276for as_dir in $PATH
7277do
7278  IFS=$as_save_IFS
7279  test -z "$as_dir" && as_dir=.
7280    for ac_exec_ext in '' $ac_executable_extensions; do
7281  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7282    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7283    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7284    break 2
7285  fi
7286done
7287  done
7288IFS=$as_save_IFS
7289
7290fi
7291fi
7292OBJDUMP=$ac_cv_prog_OBJDUMP
7293if test -n "$OBJDUMP"; then
7294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7295$as_echo "$OBJDUMP" >&6; }
7296else
7297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7298$as_echo "no" >&6; }
7299fi
7300
7301
7302fi
7303if test -z "$ac_cv_prog_OBJDUMP"; then
7304  ac_ct_OBJDUMP=$OBJDUMP
7305  # Extract the first word of "objdump", so it can be a program name with args.
7306set dummy objdump; ac_word=$2
7307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7308$as_echo_n "checking for $ac_word... " >&6; }
7309if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7310  $as_echo_n "(cached) " >&6
7311else
7312  if test -n "$ac_ct_OBJDUMP"; then
7313  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7314else
7315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316for as_dir in $PATH
7317do
7318  IFS=$as_save_IFS
7319  test -z "$as_dir" && as_dir=.
7320    for ac_exec_ext in '' $ac_executable_extensions; do
7321  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7322    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7323    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7324    break 2
7325  fi
7326done
7327  done
7328IFS=$as_save_IFS
7329
7330fi
7331fi
7332ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7333if test -n "$ac_ct_OBJDUMP"; then
7334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7335$as_echo "$ac_ct_OBJDUMP" >&6; }
7336else
7337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7338$as_echo "no" >&6; }
7339fi
7340
7341  if test "x$ac_ct_OBJDUMP" = x; then
7342    OBJDUMP="false"
7343  else
7344    case $cross_compiling:$ac_tool_warned in
7345yes:)
7346{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7347$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7348ac_tool_warned=yes ;;
7349esac
7350    OBJDUMP=$ac_ct_OBJDUMP
7351  fi
7352else
7353  OBJDUMP="$ac_cv_prog_OBJDUMP"
7354fi
7355
7356  ;;
7357esac
7358
7359test -z "$AS" && AS=as
7360
7361
7362
7363
7364
7365test -z "$DLLTOOL" && DLLTOOL=dlltool
7366
7367
7368
7369
7370
7371test -z "$OBJDUMP" && OBJDUMP=objdump
7372
7373
7374
7375
7376
7377
7378
7379# Check whether --enable-static was given.
7380if test "${enable_static+set}" = set; then :
7381  enableval=$enable_static; p=${PACKAGE-default}
7382    case $enableval in
7383    yes) enable_static=yes ;;
7384    no) enable_static=no ;;
7385    *)
7386     enable_static=no
7387      # Look at the argument we got.  We use all the common list separators.
7388      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7389      for pkg in $enableval; do
7390	IFS="$lt_save_ifs"
7391	if test "X$pkg" = "X$p"; then
7392	  enable_static=yes
7393	fi
7394      done
7395      IFS="$lt_save_ifs"
7396      ;;
7397    esac
7398else
7399  enable_static=no
7400fi
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410case `pwd` in
7411  *\ * | *\	*)
7412    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7413$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7414esac
7415
7416
7417
7418macro_version='2.4'
7419macro_revision='1.3293'
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433ltmain="$ac_aux_dir/ltmain.sh"
7434
7435# Backslashify metacharacters that are still active within
7436# double-quoted strings.
7437sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7438
7439# Same as above, but do not quote variable references.
7440double_quote_subst='s/\(["`\\]\)/\\\1/g'
7441
7442# Sed substitution to delay expansion of an escaped shell variable in a
7443# double_quote_subst'ed string.
7444delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7445
7446# Sed substitution to delay expansion of an escaped single quote.
7447delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7448
7449# Sed substitution to avoid accidental globbing in evaled expressions
7450no_glob_subst='s/\*/\\\*/g'
7451
7452ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7453ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7454ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7455
7456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7457$as_echo_n "checking how to print strings... " >&6; }
7458# Test print first, because it will be a builtin if present.
7459if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7460   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7461  ECHO='print -r --'
7462elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7463  ECHO='printf %s\n'
7464else
7465  # Use this function as a fallback that always works.
7466  func_fallback_echo ()
7467  {
7468    eval 'cat <<_LTECHO_EOF
7469$1
7470_LTECHO_EOF'
7471  }
7472  ECHO='func_fallback_echo'
7473fi
7474
7475# func_echo_all arg...
7476# Invoke $ECHO with all args, space-separated.
7477func_echo_all ()
7478{
7479    $ECHO ""
7480}
7481
7482case "$ECHO" in
7483  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7484$as_echo "printf" >&6; } ;;
7485  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7486$as_echo "print -r" >&6; } ;;
7487  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7488$as_echo "cat" >&6; } ;;
7489esac
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7505$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7506if ${ac_cv_path_SED+:} false; then :
7507  $as_echo_n "(cached) " >&6
7508else
7509            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7510     for ac_i in 1 2 3 4 5 6 7; do
7511       ac_script="$ac_script$as_nl$ac_script"
7512     done
7513     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7514     { ac_script=; unset ac_script;}
7515     if test -z "$SED"; then
7516  ac_path_SED_found=false
7517  # Loop through the user's path and test for each of PROGNAME-LIST
7518  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7519for as_dir in $PATH
7520do
7521  IFS=$as_save_IFS
7522  test -z "$as_dir" && as_dir=.
7523    for ac_prog in sed gsed; do
7524    for ac_exec_ext in '' $ac_executable_extensions; do
7525      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7526      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7527# Check for GNU ac_path_SED and select it if it is found.
7528  # Check for GNU $ac_path_SED
7529case `"$ac_path_SED" --version 2>&1` in
7530*GNU*)
7531  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7532*)
7533  ac_count=0
7534  $as_echo_n 0123456789 >"conftest.in"
7535  while :
7536  do
7537    cat "conftest.in" "conftest.in" >"conftest.tmp"
7538    mv "conftest.tmp" "conftest.in"
7539    cp "conftest.in" "conftest.nl"
7540    $as_echo '' >> "conftest.nl"
7541    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7542    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7543    as_fn_arith $ac_count + 1 && ac_count=$as_val
7544    if test $ac_count -gt ${ac_path_SED_max-0}; then
7545      # Best one so far, save it but keep looking for a better one
7546      ac_cv_path_SED="$ac_path_SED"
7547      ac_path_SED_max=$ac_count
7548    fi
7549    # 10*(2^10) chars as input seems more than enough
7550    test $ac_count -gt 10 && break
7551  done
7552  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7553esac
7554
7555      $ac_path_SED_found && break 3
7556    done
7557  done
7558  done
7559IFS=$as_save_IFS
7560  if test -z "$ac_cv_path_SED"; then
7561    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7562  fi
7563else
7564  ac_cv_path_SED=$SED
7565fi
7566
7567fi
7568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7569$as_echo "$ac_cv_path_SED" >&6; }
7570 SED="$ac_cv_path_SED"
7571  rm -f conftest.sed
7572
7573test -z "$SED" && SED=sed
7574Xsed="$SED -e 1s/^X//"
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7587$as_echo_n "checking for fgrep... " >&6; }
7588if ${ac_cv_path_FGREP+:} false; then :
7589  $as_echo_n "(cached) " >&6
7590else
7591  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7592   then ac_cv_path_FGREP="$GREP -F"
7593   else
7594     if test -z "$FGREP"; then
7595  ac_path_FGREP_found=false
7596  # Loop through the user's path and test for each of PROGNAME-LIST
7597  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7599do
7600  IFS=$as_save_IFS
7601  test -z "$as_dir" && as_dir=.
7602    for ac_prog in fgrep; do
7603    for ac_exec_ext in '' $ac_executable_extensions; do
7604      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7605      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7606# Check for GNU ac_path_FGREP and select it if it is found.
7607  # Check for GNU $ac_path_FGREP
7608case `"$ac_path_FGREP" --version 2>&1` in
7609*GNU*)
7610  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7611*)
7612  ac_count=0
7613  $as_echo_n 0123456789 >"conftest.in"
7614  while :
7615  do
7616    cat "conftest.in" "conftest.in" >"conftest.tmp"
7617    mv "conftest.tmp" "conftest.in"
7618    cp "conftest.in" "conftest.nl"
7619    $as_echo 'FGREP' >> "conftest.nl"
7620    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7621    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7622    as_fn_arith $ac_count + 1 && ac_count=$as_val
7623    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7624      # Best one so far, save it but keep looking for a better one
7625      ac_cv_path_FGREP="$ac_path_FGREP"
7626      ac_path_FGREP_max=$ac_count
7627    fi
7628    # 10*(2^10) chars as input seems more than enough
7629    test $ac_count -gt 10 && break
7630  done
7631  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7632esac
7633
7634      $ac_path_FGREP_found && break 3
7635    done
7636  done
7637  done
7638IFS=$as_save_IFS
7639  if test -z "$ac_cv_path_FGREP"; then
7640    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7641  fi
7642else
7643  ac_cv_path_FGREP=$FGREP
7644fi
7645
7646   fi
7647fi
7648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7649$as_echo "$ac_cv_path_FGREP" >&6; }
7650 FGREP="$ac_cv_path_FGREP"
7651
7652
7653test -z "$GREP" && GREP=grep
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673# Check whether --with-gnu-ld was given.
7674if test "${with_gnu_ld+set}" = set; then :
7675  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7676else
7677  with_gnu_ld=no
7678fi
7679
7680ac_prog=ld
7681if test "$GCC" = yes; then
7682  # Check if gcc -print-prog-name=ld gives a path.
7683  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7684$as_echo_n "checking for ld used by $CC... " >&6; }
7685  case $host in
7686  *-*-mingw*)
7687    # gcc leaves a trailing carriage return which upsets mingw
7688    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7689  *)
7690    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7691  esac
7692  case $ac_prog in
7693    # Accept absolute paths.
7694    [\\/]* | ?:[\\/]*)
7695      re_direlt='/[^/][^/]*/\.\./'
7696      # Canonicalize the pathname of ld
7697      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7698      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7699	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7700      done
7701      test -z "$LD" && LD="$ac_prog"
7702      ;;
7703  "")
7704    # If it fails, then pretend we aren't using GCC.
7705    ac_prog=ld
7706    ;;
7707  *)
7708    # If it is relative, then search for the first ld in PATH.
7709    with_gnu_ld=unknown
7710    ;;
7711  esac
7712elif test "$with_gnu_ld" = yes; then
7713  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7714$as_echo_n "checking for GNU ld... " >&6; }
7715else
7716  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7717$as_echo_n "checking for non-GNU ld... " >&6; }
7718fi
7719if ${lt_cv_path_LD+:} false; then :
7720  $as_echo_n "(cached) " >&6
7721else
7722  if test -z "$LD"; then
7723  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7724  for ac_dir in $PATH; do
7725    IFS="$lt_save_ifs"
7726    test -z "$ac_dir" && ac_dir=.
7727    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7728      lt_cv_path_LD="$ac_dir/$ac_prog"
7729      # Check to see if the program is GNU ld.  I'd rather use --version,
7730      # but apparently some variants of GNU ld only accept -v.
7731      # Break only if it was the GNU/non-GNU ld that we prefer.
7732      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7733      *GNU* | *'with BFD'*)
7734	test "$with_gnu_ld" != no && break
7735	;;
7736      *)
7737	test "$with_gnu_ld" != yes && break
7738	;;
7739      esac
7740    fi
7741  done
7742  IFS="$lt_save_ifs"
7743else
7744  lt_cv_path_LD="$LD" # Let the user override the test with a path.
7745fi
7746fi
7747
7748LD="$lt_cv_path_LD"
7749if test -n "$LD"; then
7750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7751$as_echo "$LD" >&6; }
7752else
7753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7754$as_echo "no" >&6; }
7755fi
7756test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7758$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7759if ${lt_cv_prog_gnu_ld+:} false; then :
7760  $as_echo_n "(cached) " >&6
7761else
7762  # I'd rather use --version here, but apparently some GNU lds only accept -v.
7763case `$LD -v 2>&1 </dev/null` in
7764*GNU* | *'with BFD'*)
7765  lt_cv_prog_gnu_ld=yes
7766  ;;
7767*)
7768  lt_cv_prog_gnu_ld=no
7769  ;;
7770esac
7771fi
7772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7773$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7774with_gnu_ld=$lt_cv_prog_gnu_ld
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7785$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7786if ${lt_cv_path_NM+:} false; then :
7787  $as_echo_n "(cached) " >&6
7788else
7789  if test -n "$NM"; then
7790  # Let the user override the test.
7791  lt_cv_path_NM="$NM"
7792else
7793  lt_nm_to_check="${ac_tool_prefix}nm"
7794  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7795    lt_nm_to_check="$lt_nm_to_check nm"
7796  fi
7797  for lt_tmp_nm in $lt_nm_to_check; do
7798    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7799    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7800      IFS="$lt_save_ifs"
7801      test -z "$ac_dir" && ac_dir=.
7802      tmp_nm="$ac_dir/$lt_tmp_nm"
7803      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7804	# Check to see if the nm accepts a BSD-compat flag.
7805	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
7806	#   nm: unknown option "B" ignored
7807	# Tru64's nm complains that /dev/null is an invalid object file
7808	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7809	*/dev/null* | *'Invalid file or object type'*)
7810	  lt_cv_path_NM="$tmp_nm -B"
7811	  break
7812	  ;;
7813	*)
7814	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7815	  */dev/null*)
7816	    lt_cv_path_NM="$tmp_nm -p"
7817	    break
7818	    ;;
7819	  *)
7820	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7821	    continue # so that we can try to find one that supports BSD flags
7822	    ;;
7823	  esac
7824	  ;;
7825	esac
7826      fi
7827    done
7828    IFS="$lt_save_ifs"
7829  done
7830  : ${lt_cv_path_NM=no}
7831fi
7832fi
7833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7834$as_echo "$lt_cv_path_NM" >&6; }
7835if test "$lt_cv_path_NM" != "no"; then
7836  NM="$lt_cv_path_NM"
7837else
7838  # Didn't find any BSD compatible name lister, look for dumpbin.
7839  if test -n "$DUMPBIN"; then :
7840    # Let the user override the test.
7841  else
7842    if test -n "$ac_tool_prefix"; then
7843  for ac_prog in dumpbin "link -dump"
7844  do
7845    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7846set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7848$as_echo_n "checking for $ac_word... " >&6; }
7849if ${ac_cv_prog_DUMPBIN+:} false; then :
7850  $as_echo_n "(cached) " >&6
7851else
7852  if test -n "$DUMPBIN"; then
7853  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7854else
7855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7856for as_dir in $PATH
7857do
7858  IFS=$as_save_IFS
7859  test -z "$as_dir" && as_dir=.
7860    for ac_exec_ext in '' $ac_executable_extensions; do
7861  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7862    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7863    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7864    break 2
7865  fi
7866done
7867  done
7868IFS=$as_save_IFS
7869
7870fi
7871fi
7872DUMPBIN=$ac_cv_prog_DUMPBIN
7873if test -n "$DUMPBIN"; then
7874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7875$as_echo "$DUMPBIN" >&6; }
7876else
7877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7878$as_echo "no" >&6; }
7879fi
7880
7881
7882    test -n "$DUMPBIN" && break
7883  done
7884fi
7885if test -z "$DUMPBIN"; then
7886  ac_ct_DUMPBIN=$DUMPBIN
7887  for ac_prog in dumpbin "link -dump"
7888do
7889  # Extract the first word of "$ac_prog", so it can be a program name with args.
7890set dummy $ac_prog; ac_word=$2
7891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7892$as_echo_n "checking for $ac_word... " >&6; }
7893if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7894  $as_echo_n "(cached) " >&6
7895else
7896  if test -n "$ac_ct_DUMPBIN"; then
7897  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7898else
7899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7900for as_dir in $PATH
7901do
7902  IFS=$as_save_IFS
7903  test -z "$as_dir" && as_dir=.
7904    for ac_exec_ext in '' $ac_executable_extensions; do
7905  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7906    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7907    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7908    break 2
7909  fi
7910done
7911  done
7912IFS=$as_save_IFS
7913
7914fi
7915fi
7916ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7917if test -n "$ac_ct_DUMPBIN"; then
7918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7919$as_echo "$ac_ct_DUMPBIN" >&6; }
7920else
7921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7922$as_echo "no" >&6; }
7923fi
7924
7925
7926  test -n "$ac_ct_DUMPBIN" && break
7927done
7928
7929  if test "x$ac_ct_DUMPBIN" = x; then
7930    DUMPBIN=":"
7931  else
7932    case $cross_compiling:$ac_tool_warned in
7933yes:)
7934{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7935$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7936ac_tool_warned=yes ;;
7937esac
7938    DUMPBIN=$ac_ct_DUMPBIN
7939  fi
7940fi
7941
7942    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7943    *COFF*)
7944      DUMPBIN="$DUMPBIN -symbols"
7945      ;;
7946    *)
7947      DUMPBIN=:
7948      ;;
7949    esac
7950  fi
7951
7952  if test "$DUMPBIN" != ":"; then
7953    NM="$DUMPBIN"
7954  fi
7955fi
7956test -z "$NM" && NM=nm
7957
7958
7959
7960
7961
7962
7963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7964$as_echo_n "checking the name lister ($NM) interface... " >&6; }
7965if ${lt_cv_nm_interface+:} false; then :
7966  $as_echo_n "(cached) " >&6
7967else
7968  lt_cv_nm_interface="BSD nm"
7969  echo "int some_variable = 0;" > conftest.$ac_ext
7970  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7971  (eval "$ac_compile" 2>conftest.err)
7972  cat conftest.err >&5
7973  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7974  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7975  cat conftest.err >&5
7976  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7977  cat conftest.out >&5
7978  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7979    lt_cv_nm_interface="MS dumpbin"
7980  fi
7981  rm -f conftest*
7982fi
7983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7984$as_echo "$lt_cv_nm_interface" >&6; }
7985
7986# find the maximum length of command line arguments
7987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7988$as_echo_n "checking the maximum length of command line arguments... " >&6; }
7989if ${lt_cv_sys_max_cmd_len+:} false; then :
7990  $as_echo_n "(cached) " >&6
7991else
7992    i=0
7993  teststring="ABCD"
7994
7995  case $build_os in
7996  msdosdjgpp*)
7997    # On DJGPP, this test can blow up pretty badly due to problems in libc
7998    # (any single argument exceeding 2000 bytes causes a buffer overrun
7999    # during glob expansion).  Even if it were fixed, the result of this
8000    # check would be larger than it should be.
8001    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8002    ;;
8003
8004  gnu*)
8005    # Under GNU Hurd, this test is not required because there is
8006    # no limit to the length of command line arguments.
8007    # Libtool will interpret -1 as no limit whatsoever
8008    lt_cv_sys_max_cmd_len=-1;
8009    ;;
8010
8011  cygwin* | mingw* | cegcc*)
8012    # On Win9x/ME, this test blows up -- it succeeds, but takes
8013    # about 5 minutes as the teststring grows exponentially.
8014    # Worse, since 9x/ME are not pre-emptively multitasking,
8015    # you end up with a "frozen" computer, even though with patience
8016    # the test eventually succeeds (with a max line length of 256k).
8017    # Instead, let's just punt: use the minimum linelength reported by
8018    # all of the supported platforms: 8192 (on NT/2K/XP).
8019    lt_cv_sys_max_cmd_len=8192;
8020    ;;
8021
8022  mint*)
8023    # On MiNT this can take a long time and run out of memory.
8024    lt_cv_sys_max_cmd_len=8192;
8025    ;;
8026
8027  amigaos*)
8028    # On AmigaOS with pdksh, this test takes hours, literally.
8029    # So we just punt and use a minimum line length of 8192.
8030    lt_cv_sys_max_cmd_len=8192;
8031    ;;
8032
8033  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8034    # This has been around since 386BSD, at least.  Likely further.
8035    if test -x /sbin/sysctl; then
8036      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8037    elif test -x /usr/sbin/sysctl; then
8038      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8039    else
8040      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
8041    fi
8042    # And add a safety zone
8043    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8044    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8045    ;;
8046
8047  interix*)
8048    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8049    lt_cv_sys_max_cmd_len=196608
8050    ;;
8051
8052  osf*)
8053    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8054    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8055    # nice to cause kernel panics so lets avoid the loop below.
8056    # First set a reasonable default.
8057    lt_cv_sys_max_cmd_len=16384
8058    #
8059    if test -x /sbin/sysconfig; then
8060      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8061        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8062      esac
8063    fi
8064    ;;
8065  sco3.2v5*)
8066    lt_cv_sys_max_cmd_len=102400
8067    ;;
8068  sysv5* | sco5v6* | sysv4.2uw2*)
8069    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8070    if test -n "$kargmax"; then
8071      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
8072    else
8073      lt_cv_sys_max_cmd_len=32768
8074    fi
8075    ;;
8076  *)
8077    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8078    if test -n "$lt_cv_sys_max_cmd_len"; then
8079      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8080      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8081    else
8082      # Make teststring a little bigger before we do anything with it.
8083      # a 1K string should be a reasonable start.
8084      for i in 1 2 3 4 5 6 7 8 ; do
8085        teststring=$teststring$teststring
8086      done
8087      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8088      # If test is not a shell built-in, we'll probably end up computing a
8089      # maximum length that is only half of the actual maximum length, but
8090      # we can't tell.
8091      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
8092	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8093	      test $i != 17 # 1/2 MB should be enough
8094      do
8095        i=`expr $i + 1`
8096        teststring=$teststring$teststring
8097      done
8098      # Only check the string length outside the loop.
8099      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8100      teststring=
8101      # Add a significant safety factor because C++ compilers can tack on
8102      # massive amounts of additional arguments before passing them to the
8103      # linker.  It appears as though 1/2 is a usable value.
8104      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8105    fi
8106    ;;
8107  esac
8108
8109fi
8110
8111if test -n $lt_cv_sys_max_cmd_len ; then
8112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8113$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8114else
8115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8116$as_echo "none" >&6; }
8117fi
8118max_cmd_len=$lt_cv_sys_max_cmd_len
8119
8120
8121
8122
8123
8124
8125: ${CP="cp -f"}
8126: ${MV="mv -f"}
8127: ${RM="rm -f"}
8128
8129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
8130$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
8131# Try some XSI features
8132xsi_shell=no
8133( _lt_dummy="a/b/c"
8134  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
8135      = c,a/b,b/c, \
8136    && eval 'test $(( 1 + 1 )) -eq 2 \
8137    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8138  && xsi_shell=yes
8139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
8140$as_echo "$xsi_shell" >&6; }
8141
8142
8143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
8144$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
8145lt_shell_append=no
8146( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
8147    >/dev/null 2>&1 \
8148  && lt_shell_append=yes
8149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
8150$as_echo "$lt_shell_append" >&6; }
8151
8152
8153if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8154  lt_unset=unset
8155else
8156  lt_unset=false
8157fi
8158
8159
8160
8161
8162
8163# test EBCDIC or ASCII
8164case `echo X|tr X '\101'` in
8165 A) # ASCII based system
8166    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8167  lt_SP2NL='tr \040 \012'
8168  lt_NL2SP='tr \015\012 \040\040'
8169  ;;
8170 *) # EBCDIC based system
8171  lt_SP2NL='tr \100 \n'
8172  lt_NL2SP='tr \r\n \100\100'
8173  ;;
8174esac
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8185$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8186if ${lt_cv_to_host_file_cmd+:} false; then :
8187  $as_echo_n "(cached) " >&6
8188else
8189  case $host in
8190  *-*-mingw* )
8191    case $build in
8192      *-*-mingw* ) # actually msys
8193        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8194        ;;
8195      *-*-cygwin* )
8196        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8197        ;;
8198      * ) # otherwise, assume *nix
8199        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8200        ;;
8201    esac
8202    ;;
8203  *-*-cygwin* )
8204    case $build in
8205      *-*-mingw* ) # actually msys
8206        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8207        ;;
8208      *-*-cygwin* )
8209        lt_cv_to_host_file_cmd=func_convert_file_noop
8210        ;;
8211      * ) # otherwise, assume *nix
8212        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8213        ;;
8214    esac
8215    ;;
8216  * ) # unhandled hosts (and "normal" native builds)
8217    lt_cv_to_host_file_cmd=func_convert_file_noop
8218    ;;
8219esac
8220
8221fi
8222
8223to_host_file_cmd=$lt_cv_to_host_file_cmd
8224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8225$as_echo "$lt_cv_to_host_file_cmd" >&6; }
8226
8227
8228
8229
8230
8231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8232$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8233if ${lt_cv_to_tool_file_cmd+:} false; then :
8234  $as_echo_n "(cached) " >&6
8235else
8236  #assume ordinary cross tools, or native build.
8237lt_cv_to_tool_file_cmd=func_convert_file_noop
8238case $host in
8239  *-*-mingw* )
8240    case $build in
8241      *-*-mingw* ) # actually msys
8242        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8243        ;;
8244    esac
8245    ;;
8246esac
8247
8248fi
8249
8250to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8252$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8253
8254
8255
8256
8257
8258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8259$as_echo_n "checking for $LD option to reload object files... " >&6; }
8260if ${lt_cv_ld_reload_flag+:} false; then :
8261  $as_echo_n "(cached) " >&6
8262else
8263  lt_cv_ld_reload_flag='-r'
8264fi
8265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8266$as_echo "$lt_cv_ld_reload_flag" >&6; }
8267reload_flag=$lt_cv_ld_reload_flag
8268case $reload_flag in
8269"" | " "*) ;;
8270*) reload_flag=" $reload_flag" ;;
8271esac
8272reload_cmds='$LD$reload_flag -o $output$reload_objs'
8273case $host_os in
8274  cygwin* | mingw* | pw32* | cegcc*)
8275    if test "$GCC" != yes; then
8276      reload_cmds=false
8277    fi
8278    ;;
8279  darwin*)
8280    if test "$GCC" = yes; then
8281      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8282    else
8283      reload_cmds='$LD$reload_flag -o $output$reload_objs'
8284    fi
8285    ;;
8286esac
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296if test -n "$ac_tool_prefix"; then
8297  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8298set dummy ${ac_tool_prefix}objdump; ac_word=$2
8299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8300$as_echo_n "checking for $ac_word... " >&6; }
8301if ${ac_cv_prog_OBJDUMP+:} false; then :
8302  $as_echo_n "(cached) " >&6
8303else
8304  if test -n "$OBJDUMP"; then
8305  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8306else
8307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8308for as_dir in $PATH
8309do
8310  IFS=$as_save_IFS
8311  test -z "$as_dir" && as_dir=.
8312    for ac_exec_ext in '' $ac_executable_extensions; do
8313  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8314    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8315    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8316    break 2
8317  fi
8318done
8319  done
8320IFS=$as_save_IFS
8321
8322fi
8323fi
8324OBJDUMP=$ac_cv_prog_OBJDUMP
8325if test -n "$OBJDUMP"; then
8326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8327$as_echo "$OBJDUMP" >&6; }
8328else
8329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8330$as_echo "no" >&6; }
8331fi
8332
8333
8334fi
8335if test -z "$ac_cv_prog_OBJDUMP"; then
8336  ac_ct_OBJDUMP=$OBJDUMP
8337  # Extract the first word of "objdump", so it can be a program name with args.
8338set dummy objdump; ac_word=$2
8339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8340$as_echo_n "checking for $ac_word... " >&6; }
8341if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8342  $as_echo_n "(cached) " >&6
8343else
8344  if test -n "$ac_ct_OBJDUMP"; then
8345  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8346else
8347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8348for as_dir in $PATH
8349do
8350  IFS=$as_save_IFS
8351  test -z "$as_dir" && as_dir=.
8352    for ac_exec_ext in '' $ac_executable_extensions; do
8353  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8354    ac_cv_prog_ac_ct_OBJDUMP="objdump"
8355    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8356    break 2
8357  fi
8358done
8359  done
8360IFS=$as_save_IFS
8361
8362fi
8363fi
8364ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8365if test -n "$ac_ct_OBJDUMP"; then
8366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8367$as_echo "$ac_ct_OBJDUMP" >&6; }
8368else
8369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8370$as_echo "no" >&6; }
8371fi
8372
8373  if test "x$ac_ct_OBJDUMP" = x; then
8374    OBJDUMP="false"
8375  else
8376    case $cross_compiling:$ac_tool_warned in
8377yes:)
8378{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8379$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8380ac_tool_warned=yes ;;
8381esac
8382    OBJDUMP=$ac_ct_OBJDUMP
8383  fi
8384else
8385  OBJDUMP="$ac_cv_prog_OBJDUMP"
8386fi
8387
8388test -z "$OBJDUMP" && OBJDUMP=objdump
8389
8390
8391
8392
8393
8394
8395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8396$as_echo_n "checking how to recognize dependent libraries... " >&6; }
8397if ${lt_cv_deplibs_check_method+:} false; then :
8398  $as_echo_n "(cached) " >&6
8399else
8400  lt_cv_file_magic_cmd='$MAGIC_CMD'
8401lt_cv_file_magic_test_file=
8402lt_cv_deplibs_check_method='unknown'
8403# Need to set the preceding variable on all platforms that support
8404# interlibrary dependencies.
8405# 'none' -- dependencies not supported.
8406# `unknown' -- same as none, but documents that we really don't know.
8407# 'pass_all' -- all dependencies passed with no checks.
8408# 'test_compile' -- check by making test program.
8409# 'file_magic [[regex]]' -- check by looking for files in library path
8410# which responds to the $file_magic_cmd with a given extended regex.
8411# If you have `file' or equivalent on your system and you're not sure
8412# whether `pass_all' will *always* work, you probably want this one.
8413
8414case $host_os in
8415aix[4-9]*)
8416  lt_cv_deplibs_check_method=pass_all
8417  ;;
8418
8419beos*)
8420  lt_cv_deplibs_check_method=pass_all
8421  ;;
8422
8423bsdi[45]*)
8424  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8425  lt_cv_file_magic_cmd='/usr/bin/file -L'
8426  lt_cv_file_magic_test_file=/shlib/libc.so
8427  ;;
8428
8429cygwin*)
8430  # func_win32_libid is a shell function defined in ltmain.sh
8431  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8432  lt_cv_file_magic_cmd='func_win32_libid'
8433  ;;
8434
8435mingw* | pw32*)
8436  # Base MSYS/MinGW do not provide the 'file' command needed by
8437  # func_win32_libid shell function, so use a weaker test based on 'objdump',
8438  # unless we find 'file', for example because we are cross-compiling.
8439  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
8440  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
8441    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8442    lt_cv_file_magic_cmd='func_win32_libid'
8443  else
8444    # Keep this pattern in sync with the one in func_win32_libid.
8445    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8446    lt_cv_file_magic_cmd='$OBJDUMP -f'
8447  fi
8448  ;;
8449
8450cegcc*)
8451  # use the weaker test based on 'objdump'. See mingw*.
8452  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8453  lt_cv_file_magic_cmd='$OBJDUMP -f'
8454  ;;
8455
8456darwin* | rhapsody*)
8457  lt_cv_deplibs_check_method=pass_all
8458  ;;
8459
8460freebsd* | dragonfly*)
8461  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8462    case $host_cpu in
8463    i*86 )
8464      # Not sure whether the presence of OpenBSD here was a mistake.
8465      # Let's accept both of them until this is cleared up.
8466      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8467      lt_cv_file_magic_cmd=/usr/bin/file
8468      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8469      ;;
8470    esac
8471  else
8472    lt_cv_deplibs_check_method=pass_all
8473  fi
8474  ;;
8475
8476gnu*)
8477  lt_cv_deplibs_check_method=pass_all
8478  ;;
8479
8480haiku*)
8481  lt_cv_deplibs_check_method=pass_all
8482  ;;
8483
8484hpux10.20* | hpux11*)
8485  lt_cv_file_magic_cmd=/usr/bin/file
8486  case $host_cpu in
8487  ia64*)
8488    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8489    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8490    ;;
8491  hppa*64*)
8492    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
8493    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8494    ;;
8495  *)
8496    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8497    lt_cv_file_magic_test_file=/usr/lib/libc.sl
8498    ;;
8499  esac
8500  ;;
8501
8502interix[3-9]*)
8503  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8504  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8505  ;;
8506
8507irix5* | irix6* | nonstopux*)
8508  case $LD in
8509  *-32|*"-32 ") libmagic=32-bit;;
8510  *-n32|*"-n32 ") libmagic=N32;;
8511  *-64|*"-64 ") libmagic=64-bit;;
8512  *) libmagic=never-match;;
8513  esac
8514  lt_cv_deplibs_check_method=pass_all
8515  ;;
8516
8517# This must be Linux ELF.
8518linux* | k*bsd*-gnu | kopensolaris*-gnu)
8519  lt_cv_deplibs_check_method=pass_all
8520  ;;
8521
8522netbsd*)
8523  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8524    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8525  else
8526    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8527  fi
8528  ;;
8529
8530newos6*)
8531  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8532  lt_cv_file_magic_cmd=/usr/bin/file
8533  lt_cv_file_magic_test_file=/usr/lib/libnls.so
8534  ;;
8535
8536*nto* | *qnx*)
8537  lt_cv_deplibs_check_method=pass_all
8538  ;;
8539
8540openbsd*)
8541  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8542    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8543  else
8544    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8545  fi
8546  ;;
8547
8548osf3* | osf4* | osf5*)
8549  lt_cv_deplibs_check_method=pass_all
8550  ;;
8551
8552rdos*)
8553  lt_cv_deplibs_check_method=pass_all
8554  ;;
8555
8556solaris*)
8557  lt_cv_deplibs_check_method=pass_all
8558  ;;
8559
8560sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8561  lt_cv_deplibs_check_method=pass_all
8562  ;;
8563
8564sysv4 | sysv4.3*)
8565  case $host_vendor in
8566  motorola)
8567    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
8568    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8569    ;;
8570  ncr)
8571    lt_cv_deplibs_check_method=pass_all
8572    ;;
8573  sequent)
8574    lt_cv_file_magic_cmd='/bin/file'
8575    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8576    ;;
8577  sni)
8578    lt_cv_file_magic_cmd='/bin/file'
8579    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8580    lt_cv_file_magic_test_file=/lib/libc.so
8581    ;;
8582  siemens)
8583    lt_cv_deplibs_check_method=pass_all
8584    ;;
8585  pc)
8586    lt_cv_deplibs_check_method=pass_all
8587    ;;
8588  esac
8589  ;;
8590
8591tpf*)
8592  lt_cv_deplibs_check_method=pass_all
8593  ;;
8594esac
8595
8596fi
8597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8598$as_echo "$lt_cv_deplibs_check_method" >&6; }
8599
8600file_magic_glob=
8601want_nocaseglob=no
8602if test "$build" = "$host"; then
8603  case $host_os in
8604  mingw* | pw32*)
8605    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8606      want_nocaseglob=yes
8607    else
8608      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8609    fi
8610    ;;
8611  esac
8612fi
8613
8614file_magic_cmd=$lt_cv_file_magic_cmd
8615deplibs_check_method=$lt_cv_deplibs_check_method
8616test -z "$deplibs_check_method" && deplibs_check_method=unknown
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639if test -n "$ac_tool_prefix"; then
8640  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8641set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8643$as_echo_n "checking for $ac_word... " >&6; }
8644if ${ac_cv_prog_DLLTOOL+:} false; then :
8645  $as_echo_n "(cached) " >&6
8646else
8647  if test -n "$DLLTOOL"; then
8648  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8649else
8650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8651for as_dir in $PATH
8652do
8653  IFS=$as_save_IFS
8654  test -z "$as_dir" && as_dir=.
8655    for ac_exec_ext in '' $ac_executable_extensions; do
8656  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8657    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8658    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8659    break 2
8660  fi
8661done
8662  done
8663IFS=$as_save_IFS
8664
8665fi
8666fi
8667DLLTOOL=$ac_cv_prog_DLLTOOL
8668if test -n "$DLLTOOL"; then
8669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8670$as_echo "$DLLTOOL" >&6; }
8671else
8672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8673$as_echo "no" >&6; }
8674fi
8675
8676
8677fi
8678if test -z "$ac_cv_prog_DLLTOOL"; then
8679  ac_ct_DLLTOOL=$DLLTOOL
8680  # Extract the first word of "dlltool", so it can be a program name with args.
8681set dummy dlltool; ac_word=$2
8682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8683$as_echo_n "checking for $ac_word... " >&6; }
8684if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8685  $as_echo_n "(cached) " >&6
8686else
8687  if test -n "$ac_ct_DLLTOOL"; then
8688  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8689else
8690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8691for as_dir in $PATH
8692do
8693  IFS=$as_save_IFS
8694  test -z "$as_dir" && as_dir=.
8695    for ac_exec_ext in '' $ac_executable_extensions; do
8696  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8697    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8698    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8699    break 2
8700  fi
8701done
8702  done
8703IFS=$as_save_IFS
8704
8705fi
8706fi
8707ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8708if test -n "$ac_ct_DLLTOOL"; then
8709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8710$as_echo "$ac_ct_DLLTOOL" >&6; }
8711else
8712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8713$as_echo "no" >&6; }
8714fi
8715
8716  if test "x$ac_ct_DLLTOOL" = x; then
8717    DLLTOOL="false"
8718  else
8719    case $cross_compiling:$ac_tool_warned in
8720yes:)
8721{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8722$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8723ac_tool_warned=yes ;;
8724esac
8725    DLLTOOL=$ac_ct_DLLTOOL
8726  fi
8727else
8728  DLLTOOL="$ac_cv_prog_DLLTOOL"
8729fi
8730
8731test -z "$DLLTOOL" && DLLTOOL=dlltool
8732
8733
8734
8735
8736
8737
8738
8739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8740$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8741if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8742  $as_echo_n "(cached) " >&6
8743else
8744  lt_cv_sharedlib_from_linklib_cmd='unknown'
8745
8746case $host_os in
8747cygwin* | mingw* | pw32* | cegcc*)
8748  # two different shell functions defined in ltmain.sh
8749  # decide which to use based on capabilities of $DLLTOOL
8750  case `$DLLTOOL --help 2>&1` in
8751  *--identify-strict*)
8752    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8753    ;;
8754  *)
8755    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8756    ;;
8757  esac
8758  ;;
8759*)
8760  # fallback: assume linklib IS sharedlib
8761  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
8762  ;;
8763esac
8764
8765fi
8766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8767$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8768sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8769test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8770
8771
8772
8773
8774
8775
8776
8777if test -n "$ac_tool_prefix"; then
8778  for ac_prog in ar
8779  do
8780    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8781set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8783$as_echo_n "checking for $ac_word... " >&6; }
8784if ${ac_cv_prog_AR+:} false; then :
8785  $as_echo_n "(cached) " >&6
8786else
8787  if test -n "$AR"; then
8788  ac_cv_prog_AR="$AR" # Let the user override the test.
8789else
8790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8791for as_dir in $PATH
8792do
8793  IFS=$as_save_IFS
8794  test -z "$as_dir" && as_dir=.
8795    for ac_exec_ext in '' $ac_executable_extensions; do
8796  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8797    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8798    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8799    break 2
8800  fi
8801done
8802  done
8803IFS=$as_save_IFS
8804
8805fi
8806fi
8807AR=$ac_cv_prog_AR
8808if test -n "$AR"; then
8809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8810$as_echo "$AR" >&6; }
8811else
8812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8813$as_echo "no" >&6; }
8814fi
8815
8816
8817    test -n "$AR" && break
8818  done
8819fi
8820if test -z "$AR"; then
8821  ac_ct_AR=$AR
8822  for ac_prog in ar
8823do
8824  # Extract the first word of "$ac_prog", so it can be a program name with args.
8825set dummy $ac_prog; ac_word=$2
8826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8827$as_echo_n "checking for $ac_word... " >&6; }
8828if ${ac_cv_prog_ac_ct_AR+:} false; then :
8829  $as_echo_n "(cached) " >&6
8830else
8831  if test -n "$ac_ct_AR"; then
8832  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8833else
8834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8835for as_dir in $PATH
8836do
8837  IFS=$as_save_IFS
8838  test -z "$as_dir" && as_dir=.
8839    for ac_exec_ext in '' $ac_executable_extensions; do
8840  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8841    ac_cv_prog_ac_ct_AR="$ac_prog"
8842    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8843    break 2
8844  fi
8845done
8846  done
8847IFS=$as_save_IFS
8848
8849fi
8850fi
8851ac_ct_AR=$ac_cv_prog_ac_ct_AR
8852if test -n "$ac_ct_AR"; then
8853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8854$as_echo "$ac_ct_AR" >&6; }
8855else
8856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8857$as_echo "no" >&6; }
8858fi
8859
8860
8861  test -n "$ac_ct_AR" && break
8862done
8863
8864  if test "x$ac_ct_AR" = x; then
8865    AR="false"
8866  else
8867    case $cross_compiling:$ac_tool_warned in
8868yes:)
8869{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8870$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8871ac_tool_warned=yes ;;
8872esac
8873    AR=$ac_ct_AR
8874  fi
8875fi
8876
8877: ${AR=ar}
8878: ${AR_FLAGS=cru}
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8891$as_echo_n "checking for archiver @FILE support... " >&6; }
8892if ${lt_cv_ar_at_file+:} false; then :
8893  $as_echo_n "(cached) " >&6
8894else
8895  lt_cv_ar_at_file=no
8896   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8897/* end confdefs.h.  */
8898
8899int
8900main ()
8901{
8902
8903  ;
8904  return 0;
8905}
8906_ACEOF
8907if ac_fn_c_try_compile "$LINENO"; then :
8908  echo conftest.$ac_objext > conftest.lst
8909      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8910      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8911  (eval $lt_ar_try) 2>&5
8912  ac_status=$?
8913  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8914  test $ac_status = 0; }
8915      if test "$ac_status" -eq 0; then
8916	# Ensure the archiver fails upon bogus file names.
8917	rm -f conftest.$ac_objext libconftest.a
8918	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8919  (eval $lt_ar_try) 2>&5
8920  ac_status=$?
8921  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8922  test $ac_status = 0; }
8923	if test "$ac_status" -ne 0; then
8924          lt_cv_ar_at_file=@
8925        fi
8926      fi
8927      rm -f conftest.* libconftest.a
8928
8929fi
8930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8931
8932fi
8933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8934$as_echo "$lt_cv_ar_at_file" >&6; }
8935
8936if test "x$lt_cv_ar_at_file" = xno; then
8937  archiver_list_spec=
8938else
8939  archiver_list_spec=$lt_cv_ar_at_file
8940fi
8941
8942
8943
8944
8945
8946
8947
8948if test -n "$ac_tool_prefix"; then
8949  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8950set dummy ${ac_tool_prefix}strip; ac_word=$2
8951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8952$as_echo_n "checking for $ac_word... " >&6; }
8953if ${ac_cv_prog_STRIP+:} false; then :
8954  $as_echo_n "(cached) " >&6
8955else
8956  if test -n "$STRIP"; then
8957  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8958else
8959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8960for as_dir in $PATH
8961do
8962  IFS=$as_save_IFS
8963  test -z "$as_dir" && as_dir=.
8964    for ac_exec_ext in '' $ac_executable_extensions; do
8965  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8966    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8967    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8968    break 2
8969  fi
8970done
8971  done
8972IFS=$as_save_IFS
8973
8974fi
8975fi
8976STRIP=$ac_cv_prog_STRIP
8977if test -n "$STRIP"; then
8978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8979$as_echo "$STRIP" >&6; }
8980else
8981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8982$as_echo "no" >&6; }
8983fi
8984
8985
8986fi
8987if test -z "$ac_cv_prog_STRIP"; then
8988  ac_ct_STRIP=$STRIP
8989  # Extract the first word of "strip", so it can be a program name with args.
8990set dummy strip; ac_word=$2
8991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8992$as_echo_n "checking for $ac_word... " >&6; }
8993if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8994  $as_echo_n "(cached) " >&6
8995else
8996  if test -n "$ac_ct_STRIP"; then
8997  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8998else
8999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9000for as_dir in $PATH
9001do
9002  IFS=$as_save_IFS
9003  test -z "$as_dir" && as_dir=.
9004    for ac_exec_ext in '' $ac_executable_extensions; do
9005  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9006    ac_cv_prog_ac_ct_STRIP="strip"
9007    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9008    break 2
9009  fi
9010done
9011  done
9012IFS=$as_save_IFS
9013
9014fi
9015fi
9016ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9017if test -n "$ac_ct_STRIP"; then
9018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9019$as_echo "$ac_ct_STRIP" >&6; }
9020else
9021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9022$as_echo "no" >&6; }
9023fi
9024
9025  if test "x$ac_ct_STRIP" = x; then
9026    STRIP=":"
9027  else
9028    case $cross_compiling:$ac_tool_warned in
9029yes:)
9030{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9031$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9032ac_tool_warned=yes ;;
9033esac
9034    STRIP=$ac_ct_STRIP
9035  fi
9036else
9037  STRIP="$ac_cv_prog_STRIP"
9038fi
9039
9040test -z "$STRIP" && STRIP=:
9041
9042
9043
9044
9045
9046
9047if test -n "$ac_tool_prefix"; then
9048  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9049set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9051$as_echo_n "checking for $ac_word... " >&6; }
9052if ${ac_cv_prog_RANLIB+:} false; then :
9053  $as_echo_n "(cached) " >&6
9054else
9055  if test -n "$RANLIB"; then
9056  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9057else
9058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9059for as_dir in $PATH
9060do
9061  IFS=$as_save_IFS
9062  test -z "$as_dir" && as_dir=.
9063    for ac_exec_ext in '' $ac_executable_extensions; do
9064  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9065    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9066    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9067    break 2
9068  fi
9069done
9070  done
9071IFS=$as_save_IFS
9072
9073fi
9074fi
9075RANLIB=$ac_cv_prog_RANLIB
9076if test -n "$RANLIB"; then
9077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9078$as_echo "$RANLIB" >&6; }
9079else
9080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9081$as_echo "no" >&6; }
9082fi
9083
9084
9085fi
9086if test -z "$ac_cv_prog_RANLIB"; then
9087  ac_ct_RANLIB=$RANLIB
9088  # Extract the first word of "ranlib", so it can be a program name with args.
9089set dummy ranlib; ac_word=$2
9090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9091$as_echo_n "checking for $ac_word... " >&6; }
9092if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9093  $as_echo_n "(cached) " >&6
9094else
9095  if test -n "$ac_ct_RANLIB"; then
9096  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9097else
9098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9099for as_dir in $PATH
9100do
9101  IFS=$as_save_IFS
9102  test -z "$as_dir" && as_dir=.
9103    for ac_exec_ext in '' $ac_executable_extensions; do
9104  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9105    ac_cv_prog_ac_ct_RANLIB="ranlib"
9106    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9107    break 2
9108  fi
9109done
9110  done
9111IFS=$as_save_IFS
9112
9113fi
9114fi
9115ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9116if test -n "$ac_ct_RANLIB"; then
9117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9118$as_echo "$ac_ct_RANLIB" >&6; }
9119else
9120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9121$as_echo "no" >&6; }
9122fi
9123
9124  if test "x$ac_ct_RANLIB" = x; then
9125    RANLIB=":"
9126  else
9127    case $cross_compiling:$ac_tool_warned in
9128yes:)
9129{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9130$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9131ac_tool_warned=yes ;;
9132esac
9133    RANLIB=$ac_ct_RANLIB
9134  fi
9135else
9136  RANLIB="$ac_cv_prog_RANLIB"
9137fi
9138
9139test -z "$RANLIB" && RANLIB=:
9140
9141
9142
9143
9144
9145
9146# Determine commands to create old-style static archives.
9147old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9148old_postinstall_cmds='chmod 644 $oldlib'
9149old_postuninstall_cmds=
9150
9151if test -n "$RANLIB"; then
9152  case $host_os in
9153  openbsd*)
9154    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9155    ;;
9156  *)
9157    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9158    ;;
9159  esac
9160  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9161fi
9162
9163case $host_os in
9164  darwin*)
9165    lock_old_archive_extraction=yes ;;
9166  *)
9167    lock_old_archive_extraction=no ;;
9168esac
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208# If no C compiler was specified, use CC.
9209LTCC=${LTCC-"$CC"}
9210
9211# If no C compiler flags were specified, use CFLAGS.
9212LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9213
9214# Allow CC to be a program name with arguments.
9215compiler=$CC
9216
9217
9218# Check for command to grab the raw symbol name followed by C symbol from nm.
9219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9220$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9221if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9222  $as_echo_n "(cached) " >&6
9223else
9224
9225# These are sane defaults that work on at least a few old systems.
9226# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9227
9228# Character class describing NM global symbol codes.
9229symcode='[BCDEGRST]'
9230
9231# Regexp to match symbols that can be accessed directly from C.
9232sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9233
9234# Define system-specific variables.
9235case $host_os in
9236aix*)
9237  symcode='[BCDT]'
9238  ;;
9239cygwin* | mingw* | pw32* | cegcc*)
9240  symcode='[ABCDGISTW]'
9241  ;;
9242hpux*)
9243  if test "$host_cpu" = ia64; then
9244    symcode='[ABCDEGRST]'
9245  fi
9246  ;;
9247irix* | nonstopux*)
9248  symcode='[BCDEGRST]'
9249  ;;
9250osf*)
9251  symcode='[BCDEGQRST]'
9252  ;;
9253solaris*)
9254  symcode='[BDRT]'
9255  ;;
9256sco3.2v5*)
9257  symcode='[DT]'
9258  ;;
9259sysv4.2uw2*)
9260  symcode='[DT]'
9261  ;;
9262sysv5* | sco5v6* | unixware* | OpenUNIX*)
9263  symcode='[ABDT]'
9264  ;;
9265sysv4)
9266  symcode='[DFNSTU]'
9267  ;;
9268esac
9269
9270# If we're using GNU nm, then use its standard symbol codes.
9271case `$NM -V 2>&1` in
9272*GNU* | *'with BFD'*)
9273  symcode='[ABCDGIRSTW]' ;;
9274esac
9275
9276# Transform an extracted symbol line into a proper C declaration.
9277# Some systems (esp. on ia64) link data and code symbols differently,
9278# so use this general approach.
9279lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9280
9281# Transform an extracted symbol line into symbol name and symbol address
9282lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
9283lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
9284
9285# Handle CRLF in mingw tool chain
9286opt_cr=
9287case $build_os in
9288mingw*)
9289  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9290  ;;
9291esac
9292
9293# Try without a prefix underscore, then with it.
9294for ac_symprfx in "" "_"; do
9295
9296  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9297  symxfrm="\\1 $ac_symprfx\\2 \\2"
9298
9299  # Write the raw and C identifiers.
9300  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9301    # Fake it for dumpbin and say T for any non-static function
9302    # and D for any global variable.
9303    # Also find C++ and __fastcall symbols from MSVC++,
9304    # which start with @ or ?.
9305    lt_cv_sys_global_symbol_pipe="$AWK '"\
9306"     {last_section=section; section=\$ 3};"\
9307"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9308"     \$ 0!~/External *\|/{next};"\
9309"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9310"     {if(hide[section]) next};"\
9311"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9312"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9313"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
9314"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9315"     ' prfx=^$ac_symprfx"
9316  else
9317    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9318  fi
9319  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9320
9321  # Check to see that the pipe works correctly.
9322  pipe_works=no
9323
9324  rm -f conftest*
9325  cat > conftest.$ac_ext <<_LT_EOF
9326#ifdef __cplusplus
9327extern "C" {
9328#endif
9329char nm_test_var;
9330void nm_test_func(void);
9331void nm_test_func(void){}
9332#ifdef __cplusplus
9333}
9334#endif
9335int main(){nm_test_var='a';nm_test_func();return(0);}
9336_LT_EOF
9337
9338  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9339  (eval $ac_compile) 2>&5
9340  ac_status=$?
9341  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9342  test $ac_status = 0; }; then
9343    # Now try to grab the symbols.
9344    nlist=conftest.nm
9345    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9346  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9347  ac_status=$?
9348  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9349  test $ac_status = 0; } && test -s "$nlist"; then
9350      # Try sorting and uniquifying the output.
9351      if sort "$nlist" | uniq > "$nlist"T; then
9352	mv -f "$nlist"T "$nlist"
9353      else
9354	rm -f "$nlist"T
9355      fi
9356
9357      # Make sure that we snagged all the symbols we need.
9358      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9359	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9360	  cat <<_LT_EOF > conftest.$ac_ext
9361/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
9362#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
9363/* DATA imports from DLLs on WIN32 con't be const, because runtime
9364   relocations are performed -- see ld's documentation on pseudo-relocs.  */
9365# define LT_DLSYM_CONST
9366#elif defined(__osf__)
9367/* This system does not cope well with relocations in const data.  */
9368# define LT_DLSYM_CONST
9369#else
9370# define LT_DLSYM_CONST const
9371#endif
9372
9373#ifdef __cplusplus
9374extern "C" {
9375#endif
9376
9377_LT_EOF
9378	  # Now generate the symbol file.
9379	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9380
9381	  cat <<_LT_EOF >> conftest.$ac_ext
9382
9383/* The mapping between symbol names and symbols.  */
9384LT_DLSYM_CONST struct {
9385  const char *name;
9386  void       *address;
9387}
9388lt__PROGRAM__LTX_preloaded_symbols[] =
9389{
9390  { "@PROGRAM@", (void *) 0 },
9391_LT_EOF
9392	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9393	  cat <<\_LT_EOF >> conftest.$ac_ext
9394  {0, (void *) 0}
9395};
9396
9397/* This works around a problem in FreeBSD linker */
9398#ifdef FREEBSD_WORKAROUND
9399static const void *lt_preloaded_setup() {
9400  return lt__PROGRAM__LTX_preloaded_symbols;
9401}
9402#endif
9403
9404#ifdef __cplusplus
9405}
9406#endif
9407_LT_EOF
9408	  # Now try linking the two files.
9409	  mv conftest.$ac_objext conftstm.$ac_objext
9410	  lt_globsym_save_LIBS=$LIBS
9411	  lt_globsym_save_CFLAGS=$CFLAGS
9412	  LIBS="conftstm.$ac_objext"
9413	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9414	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9415  (eval $ac_link) 2>&5
9416  ac_status=$?
9417  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9418  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
9419	    pipe_works=yes
9420	  fi
9421	  LIBS=$lt_globsym_save_LIBS
9422	  CFLAGS=$lt_globsym_save_CFLAGS
9423	else
9424	  echo "cannot find nm_test_func in $nlist" >&5
9425	fi
9426      else
9427	echo "cannot find nm_test_var in $nlist" >&5
9428      fi
9429    else
9430      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9431    fi
9432  else
9433    echo "$progname: failed program was:" >&5
9434    cat conftest.$ac_ext >&5
9435  fi
9436  rm -rf conftest* conftst*
9437
9438  # Do not use the global_symbol_pipe unless it works.
9439  if test "$pipe_works" = yes; then
9440    break
9441  else
9442    lt_cv_sys_global_symbol_pipe=
9443  fi
9444done
9445
9446fi
9447
9448if test -z "$lt_cv_sys_global_symbol_pipe"; then
9449  lt_cv_sys_global_symbol_to_cdecl=
9450fi
9451if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9453$as_echo "failed" >&6; }
9454else
9455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9456$as_echo "ok" >&6; }
9457fi
9458
9459# Response file support.
9460if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9461  nm_file_list_spec='@'
9462elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9463  nm_file_list_spec='@'
9464fi
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9493$as_echo_n "checking for sysroot... " >&6; }
9494
9495# Check whether --with-sysroot was given.
9496if test "${with_sysroot+set}" = set; then :
9497  withval=$with_sysroot;
9498else
9499  with_sysroot=no
9500fi
9501
9502
9503lt_sysroot=
9504case ${with_sysroot} in #(
9505 yes)
9506   if test "$GCC" = yes; then
9507     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9508   fi
9509   ;; #(
9510 /*)
9511   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9512   ;; #(
9513 no|'')
9514   ;; #(
9515 *)
9516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
9517$as_echo "${with_sysroot}" >&6; }
9518   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9519   ;;
9520esac
9521
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9523$as_echo "${lt_sysroot:-no}" >&6; }
9524
9525
9526
9527
9528
9529# Check whether --enable-libtool-lock was given.
9530if test "${enable_libtool_lock+set}" = set; then :
9531  enableval=$enable_libtool_lock;
9532fi
9533
9534test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9535
9536# Some flags need to be propagated to the compiler or linker for good
9537# libtool support.
9538case $host in
9539ia64-*-hpux*)
9540  # Find out which ABI we are using.
9541  echo 'int i;' > conftest.$ac_ext
9542  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9543  (eval $ac_compile) 2>&5
9544  ac_status=$?
9545  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9546  test $ac_status = 0; }; then
9547    case `/usr/bin/file conftest.$ac_objext` in
9548      *ELF-32*)
9549	HPUX_IA64_MODE="32"
9550	;;
9551      *ELF-64*)
9552	HPUX_IA64_MODE="64"
9553	;;
9554    esac
9555  fi
9556  rm -rf conftest*
9557  ;;
9558*-*-irix6*)
9559  # Find out which ABI we are using.
9560  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9561  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9562  (eval $ac_compile) 2>&5
9563  ac_status=$?
9564  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9565  test $ac_status = 0; }; then
9566    if test "$lt_cv_prog_gnu_ld" = yes; then
9567      case `/usr/bin/file conftest.$ac_objext` in
9568	*32-bit*)
9569	  LD="${LD-ld} -melf32bsmip"
9570	  ;;
9571	*N32*)
9572	  LD="${LD-ld} -melf32bmipn32"
9573	  ;;
9574	*64-bit*)
9575	  LD="${LD-ld} -melf64bmip"
9576	;;
9577      esac
9578    else
9579      case `/usr/bin/file conftest.$ac_objext` in
9580	*32-bit*)
9581	  LD="${LD-ld} -32"
9582	  ;;
9583	*N32*)
9584	  LD="${LD-ld} -n32"
9585	  ;;
9586	*64-bit*)
9587	  LD="${LD-ld} -64"
9588	  ;;
9589      esac
9590    fi
9591  fi
9592  rm -rf conftest*
9593  ;;
9594
9595x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
9596s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9597  # Find out which ABI we are using.
9598  echo 'int i;' > conftest.$ac_ext
9599  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9600  (eval $ac_compile) 2>&5
9601  ac_status=$?
9602  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9603  test $ac_status = 0; }; then
9604    case `/usr/bin/file conftest.o` in
9605      *32-bit*)
9606	case $host in
9607	  x86_64-*kfreebsd*-gnu)
9608	    LD="${LD-ld} -m elf_i386_fbsd"
9609	    ;;
9610	  x86_64-*linux*)
9611	    LD="${LD-ld} -m elf_i386"
9612	    ;;
9613	  ppc64-*linux*|powerpc64-*linux*)
9614	    LD="${LD-ld} -m elf32ppclinux"
9615	    ;;
9616	  s390x-*linux*)
9617	    LD="${LD-ld} -m elf_s390"
9618	    ;;
9619	  sparc64-*linux*)
9620	    LD="${LD-ld} -m elf32_sparc"
9621	    ;;
9622	esac
9623	;;
9624      *64-bit*)
9625	case $host in
9626	  x86_64-*kfreebsd*-gnu)
9627	    LD="${LD-ld} -m elf_x86_64_fbsd"
9628	    ;;
9629	  x86_64-*linux*)
9630	    LD="${LD-ld} -m elf_x86_64"
9631	    ;;
9632	  ppc*-*linux*|powerpc*-*linux*)
9633	    LD="${LD-ld} -m elf64ppc"
9634	    ;;
9635	  s390*-*linux*|s390*-*tpf*)
9636	    LD="${LD-ld} -m elf64_s390"
9637	    ;;
9638	  sparc*-*linux*)
9639	    LD="${LD-ld} -m elf64_sparc"
9640	    ;;
9641	esac
9642	;;
9643    esac
9644  fi
9645  rm -rf conftest*
9646  ;;
9647
9648*-*-sco3.2v5*)
9649  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9650  SAVE_CFLAGS="$CFLAGS"
9651  CFLAGS="$CFLAGS -belf"
9652  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9653$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9654if ${lt_cv_cc_needs_belf+:} false; then :
9655  $as_echo_n "(cached) " >&6
9656else
9657  ac_ext=c
9658ac_cpp='$CPP $CPPFLAGS'
9659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9661ac_compiler_gnu=$ac_cv_c_compiler_gnu
9662
9663     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9664/* end confdefs.h.  */
9665
9666int
9667main ()
9668{
9669
9670  ;
9671  return 0;
9672}
9673_ACEOF
9674if ac_fn_c_try_link "$LINENO"; then :
9675  lt_cv_cc_needs_belf=yes
9676else
9677  lt_cv_cc_needs_belf=no
9678fi
9679rm -f core conftest.err conftest.$ac_objext \
9680    conftest$ac_exeext conftest.$ac_ext
9681     ac_ext=c
9682ac_cpp='$CPP $CPPFLAGS'
9683ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9684ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9685ac_compiler_gnu=$ac_cv_c_compiler_gnu
9686
9687fi
9688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9689$as_echo "$lt_cv_cc_needs_belf" >&6; }
9690  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9691    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9692    CFLAGS="$SAVE_CFLAGS"
9693  fi
9694  ;;
9695sparc*-*solaris*)
9696  # Find out which ABI we are using.
9697  echo 'int i;' > conftest.$ac_ext
9698  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9699  (eval $ac_compile) 2>&5
9700  ac_status=$?
9701  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9702  test $ac_status = 0; }; then
9703    case `/usr/bin/file conftest.o` in
9704    *64-bit*)
9705      case $lt_cv_prog_gnu_ld in
9706      yes*) LD="${LD-ld} -m elf64_sparc" ;;
9707      *)
9708	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9709	  LD="${LD-ld} -64"
9710	fi
9711	;;
9712      esac
9713      ;;
9714    esac
9715  fi
9716  rm -rf conftest*
9717  ;;
9718esac
9719
9720need_locks="$enable_libtool_lock"
9721
9722if test -n "$ac_tool_prefix"; then
9723  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9724set dummy ${ac_tool_prefix}mt; ac_word=$2
9725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9726$as_echo_n "checking for $ac_word... " >&6; }
9727if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9728  $as_echo_n "(cached) " >&6
9729else
9730  if test -n "$MANIFEST_TOOL"; then
9731  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9732else
9733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9734for as_dir in $PATH
9735do
9736  IFS=$as_save_IFS
9737  test -z "$as_dir" && as_dir=.
9738    for ac_exec_ext in '' $ac_executable_extensions; do
9739  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9740    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9741    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9742    break 2
9743  fi
9744done
9745  done
9746IFS=$as_save_IFS
9747
9748fi
9749fi
9750MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9751if test -n "$MANIFEST_TOOL"; then
9752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9753$as_echo "$MANIFEST_TOOL" >&6; }
9754else
9755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9756$as_echo "no" >&6; }
9757fi
9758
9759
9760fi
9761if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9762  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9763  # Extract the first word of "mt", so it can be a program name with args.
9764set dummy mt; ac_word=$2
9765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9766$as_echo_n "checking for $ac_word... " >&6; }
9767if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9768  $as_echo_n "(cached) " >&6
9769else
9770  if test -n "$ac_ct_MANIFEST_TOOL"; then
9771  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9772else
9773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9774for as_dir in $PATH
9775do
9776  IFS=$as_save_IFS
9777  test -z "$as_dir" && as_dir=.
9778    for ac_exec_ext in '' $ac_executable_extensions; do
9779  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9780    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9781    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9782    break 2
9783  fi
9784done
9785  done
9786IFS=$as_save_IFS
9787
9788fi
9789fi
9790ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9791if test -n "$ac_ct_MANIFEST_TOOL"; then
9792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9793$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9794else
9795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9796$as_echo "no" >&6; }
9797fi
9798
9799  if test "x$ac_ct_MANIFEST_TOOL" = x; then
9800    MANIFEST_TOOL=":"
9801  else
9802    case $cross_compiling:$ac_tool_warned in
9803yes:)
9804{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9805$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9806ac_tool_warned=yes ;;
9807esac
9808    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9809  fi
9810else
9811  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9812fi
9813
9814test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9816$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9817if ${lt_cv_path_mainfest_tool+:} false; then :
9818  $as_echo_n "(cached) " >&6
9819else
9820  lt_cv_path_mainfest_tool=no
9821  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9822  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9823  cat conftest.err >&5
9824  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9825    lt_cv_path_mainfest_tool=yes
9826  fi
9827  rm -f conftest*
9828fi
9829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9830$as_echo "$lt_cv_path_mainfest_tool" >&6; }
9831if test "x$lt_cv_path_mainfest_tool" != xyes; then
9832  MANIFEST_TOOL=:
9833fi
9834
9835
9836
9837
9838
9839
9840  case $host_os in
9841    rhapsody* | darwin*)
9842    if test -n "$ac_tool_prefix"; then
9843  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9844set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9846$as_echo_n "checking for $ac_word... " >&6; }
9847if ${ac_cv_prog_DSYMUTIL+:} false; then :
9848  $as_echo_n "(cached) " >&6
9849else
9850  if test -n "$DSYMUTIL"; then
9851  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9852else
9853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9854for as_dir in $PATH
9855do
9856  IFS=$as_save_IFS
9857  test -z "$as_dir" && as_dir=.
9858    for ac_exec_ext in '' $ac_executable_extensions; do
9859  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9860    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9861    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9862    break 2
9863  fi
9864done
9865  done
9866IFS=$as_save_IFS
9867
9868fi
9869fi
9870DSYMUTIL=$ac_cv_prog_DSYMUTIL
9871if test -n "$DSYMUTIL"; then
9872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9873$as_echo "$DSYMUTIL" >&6; }
9874else
9875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9876$as_echo "no" >&6; }
9877fi
9878
9879
9880fi
9881if test -z "$ac_cv_prog_DSYMUTIL"; then
9882  ac_ct_DSYMUTIL=$DSYMUTIL
9883  # Extract the first word of "dsymutil", so it can be a program name with args.
9884set dummy dsymutil; ac_word=$2
9885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9886$as_echo_n "checking for $ac_word... " >&6; }
9887if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9888  $as_echo_n "(cached) " >&6
9889else
9890  if test -n "$ac_ct_DSYMUTIL"; then
9891  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9892else
9893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9894for as_dir in $PATH
9895do
9896  IFS=$as_save_IFS
9897  test -z "$as_dir" && as_dir=.
9898    for ac_exec_ext in '' $ac_executable_extensions; do
9899  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9900    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9901    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9902    break 2
9903  fi
9904done
9905  done
9906IFS=$as_save_IFS
9907
9908fi
9909fi
9910ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9911if test -n "$ac_ct_DSYMUTIL"; then
9912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9913$as_echo "$ac_ct_DSYMUTIL" >&6; }
9914else
9915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9916$as_echo "no" >&6; }
9917fi
9918
9919  if test "x$ac_ct_DSYMUTIL" = x; then
9920    DSYMUTIL=":"
9921  else
9922    case $cross_compiling:$ac_tool_warned in
9923yes:)
9924{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9925$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9926ac_tool_warned=yes ;;
9927esac
9928    DSYMUTIL=$ac_ct_DSYMUTIL
9929  fi
9930else
9931  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9932fi
9933
9934    if test -n "$ac_tool_prefix"; then
9935  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9936set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9938$as_echo_n "checking for $ac_word... " >&6; }
9939if ${ac_cv_prog_NMEDIT+:} false; then :
9940  $as_echo_n "(cached) " >&6
9941else
9942  if test -n "$NMEDIT"; then
9943  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9944else
9945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9946for as_dir in $PATH
9947do
9948  IFS=$as_save_IFS
9949  test -z "$as_dir" && as_dir=.
9950    for ac_exec_ext in '' $ac_executable_extensions; do
9951  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9952    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9953    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9954    break 2
9955  fi
9956done
9957  done
9958IFS=$as_save_IFS
9959
9960fi
9961fi
9962NMEDIT=$ac_cv_prog_NMEDIT
9963if test -n "$NMEDIT"; then
9964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9965$as_echo "$NMEDIT" >&6; }
9966else
9967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9968$as_echo "no" >&6; }
9969fi
9970
9971
9972fi
9973if test -z "$ac_cv_prog_NMEDIT"; then
9974  ac_ct_NMEDIT=$NMEDIT
9975  # Extract the first word of "nmedit", so it can be a program name with args.
9976set dummy nmedit; ac_word=$2
9977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9978$as_echo_n "checking for $ac_word... " >&6; }
9979if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9980  $as_echo_n "(cached) " >&6
9981else
9982  if test -n "$ac_ct_NMEDIT"; then
9983  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9984else
9985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9986for as_dir in $PATH
9987do
9988  IFS=$as_save_IFS
9989  test -z "$as_dir" && as_dir=.
9990    for ac_exec_ext in '' $ac_executable_extensions; do
9991  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9992    ac_cv_prog_ac_ct_NMEDIT="nmedit"
9993    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9994    break 2
9995  fi
9996done
9997  done
9998IFS=$as_save_IFS
9999
10000fi
10001fi
10002ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10003if test -n "$ac_ct_NMEDIT"; then
10004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10005$as_echo "$ac_ct_NMEDIT" >&6; }
10006else
10007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10008$as_echo "no" >&6; }
10009fi
10010
10011  if test "x$ac_ct_NMEDIT" = x; then
10012    NMEDIT=":"
10013  else
10014    case $cross_compiling:$ac_tool_warned in
10015yes:)
10016{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10017$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10018ac_tool_warned=yes ;;
10019esac
10020    NMEDIT=$ac_ct_NMEDIT
10021  fi
10022else
10023  NMEDIT="$ac_cv_prog_NMEDIT"
10024fi
10025
10026    if test -n "$ac_tool_prefix"; then
10027  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10028set dummy ${ac_tool_prefix}lipo; ac_word=$2
10029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10030$as_echo_n "checking for $ac_word... " >&6; }
10031if ${ac_cv_prog_LIPO+:} false; then :
10032  $as_echo_n "(cached) " >&6
10033else
10034  if test -n "$LIPO"; then
10035  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10036else
10037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10038for as_dir in $PATH
10039do
10040  IFS=$as_save_IFS
10041  test -z "$as_dir" && as_dir=.
10042    for ac_exec_ext in '' $ac_executable_extensions; do
10043  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10044    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10045    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10046    break 2
10047  fi
10048done
10049  done
10050IFS=$as_save_IFS
10051
10052fi
10053fi
10054LIPO=$ac_cv_prog_LIPO
10055if test -n "$LIPO"; then
10056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10057$as_echo "$LIPO" >&6; }
10058else
10059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10060$as_echo "no" >&6; }
10061fi
10062
10063
10064fi
10065if test -z "$ac_cv_prog_LIPO"; then
10066  ac_ct_LIPO=$LIPO
10067  # Extract the first word of "lipo", so it can be a program name with args.
10068set dummy lipo; ac_word=$2
10069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10070$as_echo_n "checking for $ac_word... " >&6; }
10071if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10072  $as_echo_n "(cached) " >&6
10073else
10074  if test -n "$ac_ct_LIPO"; then
10075  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10076else
10077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10078for as_dir in $PATH
10079do
10080  IFS=$as_save_IFS
10081  test -z "$as_dir" && as_dir=.
10082    for ac_exec_ext in '' $ac_executable_extensions; do
10083  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10084    ac_cv_prog_ac_ct_LIPO="lipo"
10085    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10086    break 2
10087  fi
10088done
10089  done
10090IFS=$as_save_IFS
10091
10092fi
10093fi
10094ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10095if test -n "$ac_ct_LIPO"; then
10096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10097$as_echo "$ac_ct_LIPO" >&6; }
10098else
10099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10100$as_echo "no" >&6; }
10101fi
10102
10103  if test "x$ac_ct_LIPO" = x; then
10104    LIPO=":"
10105  else
10106    case $cross_compiling:$ac_tool_warned in
10107yes:)
10108{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10109$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10110ac_tool_warned=yes ;;
10111esac
10112    LIPO=$ac_ct_LIPO
10113  fi
10114else
10115  LIPO="$ac_cv_prog_LIPO"
10116fi
10117
10118    if test -n "$ac_tool_prefix"; then
10119  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10120set dummy ${ac_tool_prefix}otool; ac_word=$2
10121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10122$as_echo_n "checking for $ac_word... " >&6; }
10123if ${ac_cv_prog_OTOOL+:} false; then :
10124  $as_echo_n "(cached) " >&6
10125else
10126  if test -n "$OTOOL"; then
10127  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10128else
10129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10130for as_dir in $PATH
10131do
10132  IFS=$as_save_IFS
10133  test -z "$as_dir" && as_dir=.
10134    for ac_exec_ext in '' $ac_executable_extensions; do
10135  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10136    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10137    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10138    break 2
10139  fi
10140done
10141  done
10142IFS=$as_save_IFS
10143
10144fi
10145fi
10146OTOOL=$ac_cv_prog_OTOOL
10147if test -n "$OTOOL"; then
10148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10149$as_echo "$OTOOL" >&6; }
10150else
10151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10152$as_echo "no" >&6; }
10153fi
10154
10155
10156fi
10157if test -z "$ac_cv_prog_OTOOL"; then
10158  ac_ct_OTOOL=$OTOOL
10159  # Extract the first word of "otool", so it can be a program name with args.
10160set dummy otool; ac_word=$2
10161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10162$as_echo_n "checking for $ac_word... " >&6; }
10163if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10164  $as_echo_n "(cached) " >&6
10165else
10166  if test -n "$ac_ct_OTOOL"; then
10167  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10168else
10169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10170for as_dir in $PATH
10171do
10172  IFS=$as_save_IFS
10173  test -z "$as_dir" && as_dir=.
10174    for ac_exec_ext in '' $ac_executable_extensions; do
10175  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10176    ac_cv_prog_ac_ct_OTOOL="otool"
10177    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10178    break 2
10179  fi
10180done
10181  done
10182IFS=$as_save_IFS
10183
10184fi
10185fi
10186ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10187if test -n "$ac_ct_OTOOL"; then
10188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10189$as_echo "$ac_ct_OTOOL" >&6; }
10190else
10191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10192$as_echo "no" >&6; }
10193fi
10194
10195  if test "x$ac_ct_OTOOL" = x; then
10196    OTOOL=":"
10197  else
10198    case $cross_compiling:$ac_tool_warned in
10199yes:)
10200{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10201$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10202ac_tool_warned=yes ;;
10203esac
10204    OTOOL=$ac_ct_OTOOL
10205  fi
10206else
10207  OTOOL="$ac_cv_prog_OTOOL"
10208fi
10209
10210    if test -n "$ac_tool_prefix"; then
10211  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10212set dummy ${ac_tool_prefix}otool64; ac_word=$2
10213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10214$as_echo_n "checking for $ac_word... " >&6; }
10215if ${ac_cv_prog_OTOOL64+:} false; then :
10216  $as_echo_n "(cached) " >&6
10217else
10218  if test -n "$OTOOL64"; then
10219  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10220else
10221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10222for as_dir in $PATH
10223do
10224  IFS=$as_save_IFS
10225  test -z "$as_dir" && as_dir=.
10226    for ac_exec_ext in '' $ac_executable_extensions; do
10227  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10228    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10229    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10230    break 2
10231  fi
10232done
10233  done
10234IFS=$as_save_IFS
10235
10236fi
10237fi
10238OTOOL64=$ac_cv_prog_OTOOL64
10239if test -n "$OTOOL64"; then
10240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10241$as_echo "$OTOOL64" >&6; }
10242else
10243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10244$as_echo "no" >&6; }
10245fi
10246
10247
10248fi
10249if test -z "$ac_cv_prog_OTOOL64"; then
10250  ac_ct_OTOOL64=$OTOOL64
10251  # Extract the first word of "otool64", so it can be a program name with args.
10252set dummy otool64; ac_word=$2
10253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10254$as_echo_n "checking for $ac_word... " >&6; }
10255if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10256  $as_echo_n "(cached) " >&6
10257else
10258  if test -n "$ac_ct_OTOOL64"; then
10259  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10260else
10261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10262for as_dir in $PATH
10263do
10264  IFS=$as_save_IFS
10265  test -z "$as_dir" && as_dir=.
10266    for ac_exec_ext in '' $ac_executable_extensions; do
10267  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10268    ac_cv_prog_ac_ct_OTOOL64="otool64"
10269    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10270    break 2
10271  fi
10272done
10273  done
10274IFS=$as_save_IFS
10275
10276fi
10277fi
10278ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10279if test -n "$ac_ct_OTOOL64"; then
10280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10281$as_echo "$ac_ct_OTOOL64" >&6; }
10282else
10283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10284$as_echo "no" >&6; }
10285fi
10286
10287  if test "x$ac_ct_OTOOL64" = x; then
10288    OTOOL64=":"
10289  else
10290    case $cross_compiling:$ac_tool_warned in
10291yes:)
10292{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10293$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10294ac_tool_warned=yes ;;
10295esac
10296    OTOOL64=$ac_ct_OTOOL64
10297  fi
10298else
10299  OTOOL64="$ac_cv_prog_OTOOL64"
10300fi
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10329$as_echo_n "checking for -single_module linker flag... " >&6; }
10330if ${lt_cv_apple_cc_single_mod+:} false; then :
10331  $as_echo_n "(cached) " >&6
10332else
10333  lt_cv_apple_cc_single_mod=no
10334      if test -z "${LT_MULTI_MODULE}"; then
10335	# By default we will add the -single_module flag. You can override
10336	# by either setting the environment variable LT_MULTI_MODULE
10337	# non-empty at configure time, or by adding -multi_module to the
10338	# link flags.
10339	rm -rf libconftest.dylib*
10340	echo "int foo(void){return 1;}" > conftest.c
10341	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10342-dynamiclib -Wl,-single_module conftest.c" >&5
10343	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10344	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10345        _lt_result=$?
10346	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
10347	  lt_cv_apple_cc_single_mod=yes
10348	else
10349	  cat conftest.err >&5
10350	fi
10351	rm -rf libconftest.dylib*
10352	rm -f conftest.*
10353      fi
10354fi
10355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10356$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10357    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10358$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10359if ${lt_cv_ld_exported_symbols_list+:} false; then :
10360  $as_echo_n "(cached) " >&6
10361else
10362  lt_cv_ld_exported_symbols_list=no
10363      save_LDFLAGS=$LDFLAGS
10364      echo "_main" > conftest.sym
10365      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10366      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10367/* end confdefs.h.  */
10368
10369int
10370main ()
10371{
10372
10373  ;
10374  return 0;
10375}
10376_ACEOF
10377if ac_fn_c_try_link "$LINENO"; then :
10378  lt_cv_ld_exported_symbols_list=yes
10379else
10380  lt_cv_ld_exported_symbols_list=no
10381fi
10382rm -f core conftest.err conftest.$ac_objext \
10383    conftest$ac_exeext conftest.$ac_ext
10384	LDFLAGS="$save_LDFLAGS"
10385
10386fi
10387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10388$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10389    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10390$as_echo_n "checking for -force_load linker flag... " >&6; }
10391if ${lt_cv_ld_force_load+:} false; then :
10392  $as_echo_n "(cached) " >&6
10393else
10394  lt_cv_ld_force_load=no
10395      cat > conftest.c << _LT_EOF
10396int forced_loaded() { return 2;}
10397_LT_EOF
10398      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10399      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10400      echo "$AR cru libconftest.a conftest.o" >&5
10401      $AR cru libconftest.a conftest.o 2>&5
10402      echo "$RANLIB libconftest.a" >&5
10403      $RANLIB libconftest.a 2>&5
10404      cat > conftest.c << _LT_EOF
10405int main() { return 0;}
10406_LT_EOF
10407      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10408      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10409      _lt_result=$?
10410      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
10411	lt_cv_ld_force_load=yes
10412      else
10413	cat conftest.err >&5
10414      fi
10415        rm -f conftest.err libconftest.a conftest conftest.c
10416        rm -rf conftest.dSYM
10417
10418fi
10419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10420$as_echo "$lt_cv_ld_force_load" >&6; }
10421    case $host_os in
10422    rhapsody* | darwin1.[012])
10423      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10424    darwin1.*)
10425      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10426    darwin*) # darwin 5.x on
10427      # if running on 10.5 or later, the deployment target defaults
10428      # to the OS version, if on x86, and 10.4, the deployment
10429      # target defaults to 10.4. Don't you love it?
10430      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10431	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10432	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10433	10.[012]*)
10434	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10435	10.*)
10436	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10437      esac
10438    ;;
10439  esac
10440    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10441      _lt_dar_single_mod='$single_module'
10442    fi
10443    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10444      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10445    else
10446      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10447    fi
10448    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
10449      _lt_dsymutil='~$DSYMUTIL $lib || :'
10450    else
10451      _lt_dsymutil=
10452    fi
10453    ;;
10454  esac
10455
10456for ac_header in dlfcn.h
10457do :
10458  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10459"
10460if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10461  cat >>confdefs.h <<_ACEOF
10462#define HAVE_DLFCN_H 1
10463_ACEOF
10464
10465fi
10466
10467done
10468
10469
10470
10471
10472
10473# Set options
10474
10475
10476
10477        enable_dlopen=no
10478
10479
10480
10481            # Check whether --enable-shared was given.
10482if test "${enable_shared+set}" = set; then :
10483  enableval=$enable_shared; p=${PACKAGE-default}
10484    case $enableval in
10485    yes) enable_shared=yes ;;
10486    no) enable_shared=no ;;
10487    *)
10488      enable_shared=no
10489      # Look at the argument we got.  We use all the common list separators.
10490      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10491      for pkg in $enableval; do
10492	IFS="$lt_save_ifs"
10493	if test "X$pkg" = "X$p"; then
10494	  enable_shared=yes
10495	fi
10496      done
10497      IFS="$lt_save_ifs"
10498      ;;
10499    esac
10500else
10501  enable_shared=yes
10502fi
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514# Check whether --with-pic was given.
10515if test "${with_pic+set}" = set; then :
10516  withval=$with_pic; pic_mode="$withval"
10517else
10518  pic_mode=default
10519fi
10520
10521
10522test -z "$pic_mode" && pic_mode=default
10523
10524
10525
10526
10527
10528
10529
10530  # Check whether --enable-fast-install was given.
10531if test "${enable_fast_install+set}" = set; then :
10532  enableval=$enable_fast_install; p=${PACKAGE-default}
10533    case $enableval in
10534    yes) enable_fast_install=yes ;;
10535    no) enable_fast_install=no ;;
10536    *)
10537      enable_fast_install=no
10538      # Look at the argument we got.  We use all the common list separators.
10539      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10540      for pkg in $enableval; do
10541	IFS="$lt_save_ifs"
10542	if test "X$pkg" = "X$p"; then
10543	  enable_fast_install=yes
10544	fi
10545      done
10546      IFS="$lt_save_ifs"
10547      ;;
10548    esac
10549else
10550  enable_fast_install=yes
10551fi
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563# This can be used to rebuild libtool when needed
10564LIBTOOL_DEPS="$ltmain"
10565
10566# Always use our own libtool.
10567LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594test -z "$LN_S" && LN_S="ln -s"
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609if test -n "${ZSH_VERSION+set}" ; then
10610   setopt NO_GLOB_SUBST
10611fi
10612
10613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10614$as_echo_n "checking for objdir... " >&6; }
10615if ${lt_cv_objdir+:} false; then :
10616  $as_echo_n "(cached) " >&6
10617else
10618  rm -f .libs 2>/dev/null
10619mkdir .libs 2>/dev/null
10620if test -d .libs; then
10621  lt_cv_objdir=.libs
10622else
10623  # MS-DOS does not allow filenames that begin with a dot.
10624  lt_cv_objdir=_libs
10625fi
10626rmdir .libs 2>/dev/null
10627fi
10628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10629$as_echo "$lt_cv_objdir" >&6; }
10630objdir=$lt_cv_objdir
10631
10632
10633
10634
10635
10636cat >>confdefs.h <<_ACEOF
10637#define LT_OBJDIR "$lt_cv_objdir/"
10638_ACEOF
10639
10640
10641
10642
10643case $host_os in
10644aix3*)
10645  # AIX sometimes has problems with the GCC collect2 program.  For some
10646  # reason, if we set the COLLECT_NAMES environment variable, the problems
10647  # vanish in a puff of smoke.
10648  if test "X${COLLECT_NAMES+set}" != Xset; then
10649    COLLECT_NAMES=
10650    export COLLECT_NAMES
10651  fi
10652  ;;
10653esac
10654
10655# Global variables:
10656ofile=libtool
10657can_build_shared=yes
10658
10659# All known linkers require a `.a' archive for static linking (except MSVC,
10660# which needs '.lib').
10661libext=a
10662
10663with_gnu_ld="$lt_cv_prog_gnu_ld"
10664
10665old_CC="$CC"
10666old_CFLAGS="$CFLAGS"
10667
10668# Set sane defaults for various variables
10669test -z "$CC" && CC=cc
10670test -z "$LTCC" && LTCC=$CC
10671test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10672test -z "$LD" && LD=ld
10673test -z "$ac_objext" && ac_objext=o
10674
10675for cc_temp in $compiler""; do
10676  case $cc_temp in
10677    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10678    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10679    \-*) ;;
10680    *) break;;
10681  esac
10682done
10683cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10684
10685
10686# Only perform the check for file, if the check method requires it
10687test -z "$MAGIC_CMD" && MAGIC_CMD=file
10688case $deplibs_check_method in
10689file_magic*)
10690  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10691    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10692$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10693if ${lt_cv_path_MAGIC_CMD+:} false; then :
10694  $as_echo_n "(cached) " >&6
10695else
10696  case $MAGIC_CMD in
10697[\\/*] |  ?:[\\/]*)
10698  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10699  ;;
10700*)
10701  lt_save_MAGIC_CMD="$MAGIC_CMD"
10702  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10703  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10704  for ac_dir in $ac_dummy; do
10705    IFS="$lt_save_ifs"
10706    test -z "$ac_dir" && ac_dir=.
10707    if test -f $ac_dir/${ac_tool_prefix}file; then
10708      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10709      if test -n "$file_magic_test_file"; then
10710	case $deplibs_check_method in
10711	"file_magic "*)
10712	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10713	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10714	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10715	    $EGREP "$file_magic_regex" > /dev/null; then
10716	    :
10717	  else
10718	    cat <<_LT_EOF 1>&2
10719
10720*** Warning: the command libtool uses to detect shared libraries,
10721*** $file_magic_cmd, produces output that libtool cannot recognize.
10722*** The result is that libtool may fail to recognize shared libraries
10723*** as such.  This will affect the creation of libtool libraries that
10724*** depend on shared libraries, but programs linked with such libtool
10725*** libraries will work regardless of this problem.  Nevertheless, you
10726*** may want to report the problem to your system manager and/or to
10727*** bug-libtool@gnu.org
10728
10729_LT_EOF
10730	  fi ;;
10731	esac
10732      fi
10733      break
10734    fi
10735  done
10736  IFS="$lt_save_ifs"
10737  MAGIC_CMD="$lt_save_MAGIC_CMD"
10738  ;;
10739esac
10740fi
10741
10742MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10743if test -n "$MAGIC_CMD"; then
10744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10745$as_echo "$MAGIC_CMD" >&6; }
10746else
10747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10748$as_echo "no" >&6; }
10749fi
10750
10751
10752
10753
10754
10755if test -z "$lt_cv_path_MAGIC_CMD"; then
10756  if test -n "$ac_tool_prefix"; then
10757    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10758$as_echo_n "checking for file... " >&6; }
10759if ${lt_cv_path_MAGIC_CMD+:} false; then :
10760  $as_echo_n "(cached) " >&6
10761else
10762  case $MAGIC_CMD in
10763[\\/*] |  ?:[\\/]*)
10764  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10765  ;;
10766*)
10767  lt_save_MAGIC_CMD="$MAGIC_CMD"
10768  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10769  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10770  for ac_dir in $ac_dummy; do
10771    IFS="$lt_save_ifs"
10772    test -z "$ac_dir" && ac_dir=.
10773    if test -f $ac_dir/file; then
10774      lt_cv_path_MAGIC_CMD="$ac_dir/file"
10775      if test -n "$file_magic_test_file"; then
10776	case $deplibs_check_method in
10777	"file_magic "*)
10778	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10779	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10780	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10781	    $EGREP "$file_magic_regex" > /dev/null; then
10782	    :
10783	  else
10784	    cat <<_LT_EOF 1>&2
10785
10786*** Warning: the command libtool uses to detect shared libraries,
10787*** $file_magic_cmd, produces output that libtool cannot recognize.
10788*** The result is that libtool may fail to recognize shared libraries
10789*** as such.  This will affect the creation of libtool libraries that
10790*** depend on shared libraries, but programs linked with such libtool
10791*** libraries will work regardless of this problem.  Nevertheless, you
10792*** may want to report the problem to your system manager and/or to
10793*** bug-libtool@gnu.org
10794
10795_LT_EOF
10796	  fi ;;
10797	esac
10798      fi
10799      break
10800    fi
10801  done
10802  IFS="$lt_save_ifs"
10803  MAGIC_CMD="$lt_save_MAGIC_CMD"
10804  ;;
10805esac
10806fi
10807
10808MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10809if test -n "$MAGIC_CMD"; then
10810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10811$as_echo "$MAGIC_CMD" >&6; }
10812else
10813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10814$as_echo "no" >&6; }
10815fi
10816
10817
10818  else
10819    MAGIC_CMD=:
10820  fi
10821fi
10822
10823  fi
10824  ;;
10825esac
10826
10827# Use C for the default configuration in the libtool script
10828
10829lt_save_CC="$CC"
10830ac_ext=c
10831ac_cpp='$CPP $CPPFLAGS'
10832ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10833ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10834ac_compiler_gnu=$ac_cv_c_compiler_gnu
10835
10836
10837# Source file extension for C test sources.
10838ac_ext=c
10839
10840# Object file extension for compiled C test sources.
10841objext=o
10842objext=$objext
10843
10844# Code to be used in simple compile tests
10845lt_simple_compile_test_code="int some_variable = 0;"
10846
10847# Code to be used in simple link tests
10848lt_simple_link_test_code='int main(){return(0);}'
10849
10850
10851
10852
10853
10854
10855
10856# If no C compiler was specified, use CC.
10857LTCC=${LTCC-"$CC"}
10858
10859# If no C compiler flags were specified, use CFLAGS.
10860LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10861
10862# Allow CC to be a program name with arguments.
10863compiler=$CC
10864
10865# Save the default compiler, since it gets overwritten when the other
10866# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10867compiler_DEFAULT=$CC
10868
10869# save warnings/boilerplate of simple test code
10870ac_outfile=conftest.$ac_objext
10871echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10872eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10873_lt_compiler_boilerplate=`cat conftest.err`
10874$RM conftest*
10875
10876ac_outfile=conftest.$ac_objext
10877echo "$lt_simple_link_test_code" >conftest.$ac_ext
10878eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10879_lt_linker_boilerplate=`cat conftest.err`
10880$RM -r conftest*
10881
10882
10883if test -n "$compiler"; then
10884
10885lt_prog_compiler_no_builtin_flag=
10886
10887if test "$GCC" = yes; then
10888  case $cc_basename in
10889  nvcc*)
10890    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10891  *)
10892    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10893  esac
10894
10895  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10896$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10897if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10898  $as_echo_n "(cached) " >&6
10899else
10900  lt_cv_prog_compiler_rtti_exceptions=no
10901   ac_outfile=conftest.$ac_objext
10902   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10903   lt_compiler_flag="-fno-rtti -fno-exceptions"
10904   # Insert the option either (1) after the last *FLAGS variable, or
10905   # (2) before a word containing "conftest.", or (3) at the end.
10906   # Note that $ac_compile itself does not contain backslashes and begins
10907   # with a dollar sign (not a hyphen), so the echo should work correctly.
10908   # The option is referenced via a variable to avoid confusing sed.
10909   lt_compile=`echo "$ac_compile" | $SED \
10910   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10911   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10912   -e 's:$: $lt_compiler_flag:'`
10913   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10914   (eval "$lt_compile" 2>conftest.err)
10915   ac_status=$?
10916   cat conftest.err >&5
10917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918   if (exit $ac_status) && test -s "$ac_outfile"; then
10919     # The compiler can only warn and ignore the option if not recognized
10920     # So say no if there are warnings other than the usual output.
10921     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10922     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10923     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10924       lt_cv_prog_compiler_rtti_exceptions=yes
10925     fi
10926   fi
10927   $RM conftest*
10928
10929fi
10930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10931$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10932
10933if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10934    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10935else
10936    :
10937fi
10938
10939fi
10940
10941
10942
10943
10944
10945
10946  lt_prog_compiler_wl=
10947lt_prog_compiler_pic=
10948lt_prog_compiler_static=
10949
10950
10951  if test "$GCC" = yes; then
10952    lt_prog_compiler_wl='-Wl,'
10953    lt_prog_compiler_static='-static'
10954
10955    case $host_os in
10956      aix*)
10957      # All AIX code is PIC.
10958      if test "$host_cpu" = ia64; then
10959	# AIX 5 now supports IA64 processor
10960	lt_prog_compiler_static='-Bstatic'
10961      fi
10962      ;;
10963
10964    amigaos*)
10965      case $host_cpu in
10966      powerpc)
10967            # see comment about AmigaOS4 .so support
10968            lt_prog_compiler_pic='-fPIC'
10969        ;;
10970      m68k)
10971            # FIXME: we need at least 68020 code to build shared libraries, but
10972            # adding the `-m68020' flag to GCC prevents building anything better,
10973            # like `-m68040'.
10974            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10975        ;;
10976      esac
10977      ;;
10978
10979    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10980      # PIC is the default for these OSes.
10981      ;;
10982
10983    mingw* | cygwin* | pw32* | os2* | cegcc*)
10984      # This hack is so that the source file can tell whether it is being
10985      # built for inclusion in a dll (and should export symbols for example).
10986      # Although the cygwin gcc ignores -fPIC, still need this for old-style
10987      # (--disable-auto-import) libraries
10988      lt_prog_compiler_pic='-DDLL_EXPORT'
10989      ;;
10990
10991    darwin* | rhapsody*)
10992      # PIC is the default on this platform
10993      # Common symbols not allowed in MH_DYLIB files
10994      lt_prog_compiler_pic='-fno-common'
10995      ;;
10996
10997    haiku*)
10998      # PIC is the default for Haiku.
10999      # The "-static" flag exists, but is broken.
11000      lt_prog_compiler_static=
11001      ;;
11002
11003    hpux*)
11004      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11005      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11006      # sets the default TLS model and affects inlining.
11007      case $host_cpu in
11008      hppa*64*)
11009	# +Z the default
11010	;;
11011      *)
11012	lt_prog_compiler_pic='-fPIC'
11013	;;
11014      esac
11015      ;;
11016
11017    interix[3-9]*)
11018      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11019      # Instead, we relocate shared libraries at runtime.
11020      ;;
11021
11022    msdosdjgpp*)
11023      # Just because we use GCC doesn't mean we suddenly get shared libraries
11024      # on systems that don't support them.
11025      lt_prog_compiler_can_build_shared=no
11026      enable_shared=no
11027      ;;
11028
11029    *nto* | *qnx*)
11030      # QNX uses GNU C++, but need to define -shared option too, otherwise
11031      # it will coredump.
11032      lt_prog_compiler_pic='-fPIC -shared'
11033      ;;
11034
11035    sysv4*MP*)
11036      if test -d /usr/nec; then
11037	lt_prog_compiler_pic=-Kconform_pic
11038      fi
11039      ;;
11040
11041    *)
11042      lt_prog_compiler_pic='-fPIC'
11043      ;;
11044    esac
11045
11046    case $cc_basename in
11047    nvcc*) # Cuda Compiler Driver 2.2
11048      lt_prog_compiler_wl='-Xlinker '
11049      lt_prog_compiler_pic='-Xcompiler -fPIC'
11050      ;;
11051    esac
11052  else
11053    # PORTME Check for flag to pass linker flags through the system compiler.
11054    case $host_os in
11055    aix*)
11056      lt_prog_compiler_wl='-Wl,'
11057      if test "$host_cpu" = ia64; then
11058	# AIX 5 now supports IA64 processor
11059	lt_prog_compiler_static='-Bstatic'
11060      else
11061	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11062      fi
11063      ;;
11064
11065    mingw* | cygwin* | pw32* | os2* | cegcc*)
11066      # This hack is so that the source file can tell whether it is being
11067      # built for inclusion in a dll (and should export symbols for example).
11068      lt_prog_compiler_pic='-DDLL_EXPORT'
11069      ;;
11070
11071    hpux9* | hpux10* | hpux11*)
11072      lt_prog_compiler_wl='-Wl,'
11073      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11074      # not for PA HP-UX.
11075      case $host_cpu in
11076      hppa*64*|ia64*)
11077	# +Z the default
11078	;;
11079      *)
11080	lt_prog_compiler_pic='+Z'
11081	;;
11082      esac
11083      # Is there a better lt_prog_compiler_static that works with the bundled CC?
11084      lt_prog_compiler_static='${wl}-a ${wl}archive'
11085      ;;
11086
11087    irix5* | irix6* | nonstopux*)
11088      lt_prog_compiler_wl='-Wl,'
11089      # PIC (with -KPIC) is the default.
11090      lt_prog_compiler_static='-non_shared'
11091      ;;
11092
11093    linux* | k*bsd*-gnu | kopensolaris*-gnu)
11094      case $cc_basename in
11095      # old Intel for x86_64 which still supported -KPIC.
11096      ecc*)
11097	lt_prog_compiler_wl='-Wl,'
11098	lt_prog_compiler_pic='-KPIC'
11099	lt_prog_compiler_static='-static'
11100        ;;
11101      # icc used to be incompatible with GCC.
11102      # ICC 10 doesn't accept -KPIC any more.
11103      icc* | ifort*)
11104	lt_prog_compiler_wl='-Wl,'
11105	lt_prog_compiler_pic='-fPIC'
11106	lt_prog_compiler_static='-static'
11107        ;;
11108      # Lahey Fortran 8.1.
11109      lf95*)
11110	lt_prog_compiler_wl='-Wl,'
11111	lt_prog_compiler_pic='--shared'
11112	lt_prog_compiler_static='--static'
11113	;;
11114      nagfor*)
11115	# NAG Fortran compiler
11116	lt_prog_compiler_wl='-Wl,-Wl,,'
11117	lt_prog_compiler_pic='-PIC'
11118	lt_prog_compiler_static='-Bstatic'
11119	;;
11120      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11121        # Portland Group compilers (*not* the Pentium gcc compiler,
11122	# which looks to be a dead project)
11123	lt_prog_compiler_wl='-Wl,'
11124	lt_prog_compiler_pic='-fpic'
11125	lt_prog_compiler_static='-Bstatic'
11126        ;;
11127      ccc*)
11128        lt_prog_compiler_wl='-Wl,'
11129        # All Alpha code is PIC.
11130        lt_prog_compiler_static='-non_shared'
11131        ;;
11132      xl* | bgxl* | bgf* | mpixl*)
11133	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11134	lt_prog_compiler_wl='-Wl,'
11135	lt_prog_compiler_pic='-qpic'
11136	lt_prog_compiler_static='-qstaticlink'
11137	;;
11138      *)
11139	case `$CC -V 2>&1 | sed 5q` in
11140	*Sun\ F* | *Sun*Fortran*)
11141	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
11142	  lt_prog_compiler_pic='-KPIC'
11143	  lt_prog_compiler_static='-Bstatic'
11144	  lt_prog_compiler_wl=''
11145	  ;;
11146	*Sun\ C*)
11147	  # Sun C 5.9
11148	  lt_prog_compiler_pic='-KPIC'
11149	  lt_prog_compiler_static='-Bstatic'
11150	  lt_prog_compiler_wl='-Wl,'
11151	  ;;
11152	esac
11153	;;
11154      esac
11155      ;;
11156
11157    newsos6)
11158      lt_prog_compiler_pic='-KPIC'
11159      lt_prog_compiler_static='-Bstatic'
11160      ;;
11161
11162    *nto* | *qnx*)
11163      # QNX uses GNU C++, but need to define -shared option too, otherwise
11164      # it will coredump.
11165      lt_prog_compiler_pic='-fPIC -shared'
11166      ;;
11167
11168    osf3* | osf4* | osf5*)
11169      lt_prog_compiler_wl='-Wl,'
11170      # All OSF/1 code is PIC.
11171      lt_prog_compiler_static='-non_shared'
11172      ;;
11173
11174    rdos*)
11175      lt_prog_compiler_static='-non_shared'
11176      ;;
11177
11178    solaris*)
11179      lt_prog_compiler_pic='-KPIC'
11180      lt_prog_compiler_static='-Bstatic'
11181      case $cc_basename in
11182      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11183	lt_prog_compiler_wl='-Qoption ld ';;
11184      *)
11185	lt_prog_compiler_wl='-Wl,';;
11186      esac
11187      ;;
11188
11189    sunos4*)
11190      lt_prog_compiler_wl='-Qoption ld '
11191      lt_prog_compiler_pic='-PIC'
11192      lt_prog_compiler_static='-Bstatic'
11193      ;;
11194
11195    sysv4 | sysv4.2uw2* | sysv4.3*)
11196      lt_prog_compiler_wl='-Wl,'
11197      lt_prog_compiler_pic='-KPIC'
11198      lt_prog_compiler_static='-Bstatic'
11199      ;;
11200
11201    sysv4*MP*)
11202      if test -d /usr/nec ;then
11203	lt_prog_compiler_pic='-Kconform_pic'
11204	lt_prog_compiler_static='-Bstatic'
11205      fi
11206      ;;
11207
11208    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11209      lt_prog_compiler_wl='-Wl,'
11210      lt_prog_compiler_pic='-KPIC'
11211      lt_prog_compiler_static='-Bstatic'
11212      ;;
11213
11214    unicos*)
11215      lt_prog_compiler_wl='-Wl,'
11216      lt_prog_compiler_can_build_shared=no
11217      ;;
11218
11219    uts4*)
11220      lt_prog_compiler_pic='-pic'
11221      lt_prog_compiler_static='-Bstatic'
11222      ;;
11223
11224    *)
11225      lt_prog_compiler_can_build_shared=no
11226      ;;
11227    esac
11228  fi
11229
11230case $host_os in
11231  # For platforms which do not support PIC, -DPIC is meaningless:
11232  *djgpp*)
11233    lt_prog_compiler_pic=
11234    ;;
11235  *)
11236    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11237    ;;
11238esac
11239
11240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11241$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11242if ${lt_cv_prog_compiler_pic+:} false; then :
11243  $as_echo_n "(cached) " >&6
11244else
11245  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11246fi
11247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11248$as_echo "$lt_cv_prog_compiler_pic" >&6; }
11249lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11250
11251#
11252# Check to make sure the PIC flag actually works.
11253#
11254if test -n "$lt_prog_compiler_pic"; then
11255  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11256$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11257if ${lt_cv_prog_compiler_pic_works+:} false; then :
11258  $as_echo_n "(cached) " >&6
11259else
11260  lt_cv_prog_compiler_pic_works=no
11261   ac_outfile=conftest.$ac_objext
11262   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11263   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11264   # Insert the option either (1) after the last *FLAGS variable, or
11265   # (2) before a word containing "conftest.", or (3) at the end.
11266   # Note that $ac_compile itself does not contain backslashes and begins
11267   # with a dollar sign (not a hyphen), so the echo should work correctly.
11268   # The option is referenced via a variable to avoid confusing sed.
11269   lt_compile=`echo "$ac_compile" | $SED \
11270   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11271   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11272   -e 's:$: $lt_compiler_flag:'`
11273   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11274   (eval "$lt_compile" 2>conftest.err)
11275   ac_status=$?
11276   cat conftest.err >&5
11277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278   if (exit $ac_status) && test -s "$ac_outfile"; then
11279     # The compiler can only warn and ignore the option if not recognized
11280     # So say no if there are warnings other than the usual output.
11281     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11282     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11283     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11284       lt_cv_prog_compiler_pic_works=yes
11285     fi
11286   fi
11287   $RM conftest*
11288
11289fi
11290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11291$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11292
11293if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11294    case $lt_prog_compiler_pic in
11295     "" | " "*) ;;
11296     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11297     esac
11298else
11299    lt_prog_compiler_pic=
11300     lt_prog_compiler_can_build_shared=no
11301fi
11302
11303fi
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315#
11316# Check to make sure the static flag actually works.
11317#
11318wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11320$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11321if ${lt_cv_prog_compiler_static_works+:} false; then :
11322  $as_echo_n "(cached) " >&6
11323else
11324  lt_cv_prog_compiler_static_works=no
11325   save_LDFLAGS="$LDFLAGS"
11326   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11327   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11328   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11329     # The linker can only warn and ignore the option if not recognized
11330     # So say no if there are warnings
11331     if test -s conftest.err; then
11332       # Append any errors to the config.log.
11333       cat conftest.err 1>&5
11334       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11335       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11336       if diff conftest.exp conftest.er2 >/dev/null; then
11337         lt_cv_prog_compiler_static_works=yes
11338       fi
11339     else
11340       lt_cv_prog_compiler_static_works=yes
11341     fi
11342   fi
11343   $RM -r conftest*
11344   LDFLAGS="$save_LDFLAGS"
11345
11346fi
11347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11348$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11349
11350if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11351    :
11352else
11353    lt_prog_compiler_static=
11354fi
11355
11356
11357
11358
11359
11360
11361
11362  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11363$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11364if ${lt_cv_prog_compiler_c_o+:} false; then :
11365  $as_echo_n "(cached) " >&6
11366else
11367  lt_cv_prog_compiler_c_o=no
11368   $RM -r conftest 2>/dev/null
11369   mkdir conftest
11370   cd conftest
11371   mkdir out
11372   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11373
11374   lt_compiler_flag="-o out/conftest2.$ac_objext"
11375   # Insert the option either (1) after the last *FLAGS variable, or
11376   # (2) before a word containing "conftest.", or (3) at the end.
11377   # Note that $ac_compile itself does not contain backslashes and begins
11378   # with a dollar sign (not a hyphen), so the echo should work correctly.
11379   lt_compile=`echo "$ac_compile" | $SED \
11380   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11381   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11382   -e 's:$: $lt_compiler_flag:'`
11383   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11384   (eval "$lt_compile" 2>out/conftest.err)
11385   ac_status=$?
11386   cat out/conftest.err >&5
11387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11389   then
11390     # The compiler can only warn and ignore the option if not recognized
11391     # So say no if there are warnings
11392     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11393     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11394     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11395       lt_cv_prog_compiler_c_o=yes
11396     fi
11397   fi
11398   chmod u+w . 2>&5
11399   $RM conftest*
11400   # SGI C++ compiler will create directory out/ii_files/ for
11401   # template instantiation
11402   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11403   $RM out/* && rmdir out
11404   cd ..
11405   $RM -r conftest
11406   $RM conftest*
11407
11408fi
11409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11410$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11411
11412
11413
11414
11415
11416
11417  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11418$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11419if ${lt_cv_prog_compiler_c_o+:} false; then :
11420  $as_echo_n "(cached) " >&6
11421else
11422  lt_cv_prog_compiler_c_o=no
11423   $RM -r conftest 2>/dev/null
11424   mkdir conftest
11425   cd conftest
11426   mkdir out
11427   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11428
11429   lt_compiler_flag="-o out/conftest2.$ac_objext"
11430   # Insert the option either (1) after the last *FLAGS variable, or
11431   # (2) before a word containing "conftest.", or (3) at the end.
11432   # Note that $ac_compile itself does not contain backslashes and begins
11433   # with a dollar sign (not a hyphen), so the echo should work correctly.
11434   lt_compile=`echo "$ac_compile" | $SED \
11435   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11436   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11437   -e 's:$: $lt_compiler_flag:'`
11438   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11439   (eval "$lt_compile" 2>out/conftest.err)
11440   ac_status=$?
11441   cat out/conftest.err >&5
11442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11444   then
11445     # The compiler can only warn and ignore the option if not recognized
11446     # So say no if there are warnings
11447     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11448     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11449     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11450       lt_cv_prog_compiler_c_o=yes
11451     fi
11452   fi
11453   chmod u+w . 2>&5
11454   $RM conftest*
11455   # SGI C++ compiler will create directory out/ii_files/ for
11456   # template instantiation
11457   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11458   $RM out/* && rmdir out
11459   cd ..
11460   $RM -r conftest
11461   $RM conftest*
11462
11463fi
11464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11465$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11466
11467
11468
11469
11470hard_links="nottested"
11471if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11472  # do not overwrite the value of need_locks provided by the user
11473  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11474$as_echo_n "checking if we can lock with hard links... " >&6; }
11475  hard_links=yes
11476  $RM conftest*
11477  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11478  touch conftest.a
11479  ln conftest.a conftest.b 2>&5 || hard_links=no
11480  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11482$as_echo "$hard_links" >&6; }
11483  if test "$hard_links" = no; then
11484    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11485$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11486    need_locks=warn
11487  fi
11488else
11489  need_locks=no
11490fi
11491
11492
11493
11494
11495
11496
11497  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11498$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11499
11500  runpath_var=
11501  allow_undefined_flag=
11502  always_export_symbols=no
11503  archive_cmds=
11504  archive_expsym_cmds=
11505  compiler_needs_object=no
11506  enable_shared_with_static_runtimes=no
11507  export_dynamic_flag_spec=
11508  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11509  hardcode_automatic=no
11510  hardcode_direct=no
11511  hardcode_direct_absolute=no
11512  hardcode_libdir_flag_spec=
11513  hardcode_libdir_flag_spec_ld=
11514  hardcode_libdir_separator=
11515  hardcode_minus_L=no
11516  hardcode_shlibpath_var=unsupported
11517  inherit_rpath=no
11518  link_all_deplibs=unknown
11519  module_cmds=
11520  module_expsym_cmds=
11521  old_archive_from_new_cmds=
11522  old_archive_from_expsyms_cmds=
11523  thread_safe_flag_spec=
11524  whole_archive_flag_spec=
11525  # include_expsyms should be a list of space-separated symbols to be *always*
11526  # included in the symbol list
11527  include_expsyms=
11528  # exclude_expsyms can be an extended regexp of symbols to exclude
11529  # it will be wrapped by ` (' and `)$', so one must not match beginning or
11530  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11531  # as well as any symbol that contains `d'.
11532  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11533  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11534  # platforms (ab)use it in PIC code, but their linkers get confused if
11535  # the symbol is explicitly referenced.  Since portable code cannot
11536  # rely on this symbol name, it's probably fine to never include it in
11537  # preloaded symbol tables.
11538  # Exclude shared library initialization/finalization symbols.
11539  extract_expsyms_cmds=
11540
11541  case $host_os in
11542  cygwin* | mingw* | pw32* | cegcc*)
11543    # FIXME: the MSVC++ port hasn't been tested in a loooong time
11544    # When not using gcc, we currently assume that we are using
11545    # Microsoft Visual C++.
11546    if test "$GCC" != yes; then
11547      with_gnu_ld=no
11548    fi
11549    ;;
11550  interix*)
11551    # we just hope/assume this is gcc and not c89 (= MSVC++)
11552    with_gnu_ld=yes
11553    ;;
11554  openbsd*)
11555    with_gnu_ld=no
11556    ;;
11557  esac
11558
11559  ld_shlibs=yes
11560
11561  # On some targets, GNU ld is compatible enough with the native linker
11562  # that we're better off using the native interface for both.
11563  lt_use_gnu_ld_interface=no
11564  if test "$with_gnu_ld" = yes; then
11565    case $host_os in
11566      aix*)
11567	# The AIX port of GNU ld has always aspired to compatibility
11568	# with the native linker.  However, as the warning in the GNU ld
11569	# block says, versions before 2.19.5* couldn't really create working
11570	# shared libraries, regardless of the interface used.
11571	case `$LD -v 2>&1` in
11572	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11573	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11574	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11575	  *)
11576	    lt_use_gnu_ld_interface=yes
11577	    ;;
11578	esac
11579	;;
11580      *)
11581	lt_use_gnu_ld_interface=yes
11582	;;
11583    esac
11584  fi
11585
11586  if test "$lt_use_gnu_ld_interface" = yes; then
11587    # If archive_cmds runs LD, not CC, wlarc should be empty
11588    wlarc='${wl}'
11589
11590    # Set some defaults for GNU ld with shared library support. These
11591    # are reset later if shared libraries are not supported. Putting them
11592    # here allows them to be overridden if necessary.
11593    runpath_var=LD_RUN_PATH
11594    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11595    export_dynamic_flag_spec='${wl}--export-dynamic'
11596    # ancient GNU ld didn't support --whole-archive et. al.
11597    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11598      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11599    else
11600      whole_archive_flag_spec=
11601    fi
11602    supports_anon_versioning=no
11603    case `$LD -v 2>&1` in
11604      *GNU\ gold*) supports_anon_versioning=yes ;;
11605      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11606      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11607      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11608      *\ 2.11.*) ;; # other 2.11 versions
11609      *) supports_anon_versioning=yes ;;
11610    esac
11611
11612    # See if GNU ld supports shared libraries.
11613    case $host_os in
11614    aix[3-9]*)
11615      # On AIX/PPC, the GNU linker is very broken
11616      if test "$host_cpu" != ia64; then
11617	ld_shlibs=no
11618	cat <<_LT_EOF 1>&2
11619
11620*** Warning: the GNU linker, at least up to release 2.19, is reported
11621*** to be unable to reliably create shared libraries on AIX.
11622*** Therefore, libtool is disabling shared libraries support.  If you
11623*** really care for shared libraries, you may want to install binutils
11624*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11625*** You will then need to restart the configuration process.
11626
11627_LT_EOF
11628      fi
11629      ;;
11630
11631    amigaos*)
11632      case $host_cpu in
11633      powerpc)
11634            # see comment about AmigaOS4 .so support
11635            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11636            archive_expsym_cmds=''
11637        ;;
11638      m68k)
11639            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
11640            hardcode_libdir_flag_spec='-L$libdir'
11641            hardcode_minus_L=yes
11642        ;;
11643      esac
11644      ;;
11645
11646    beos*)
11647      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11648	allow_undefined_flag=unsupported
11649	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11650	# support --undefined.  This deserves some investigation.  FIXME
11651	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11652      else
11653	ld_shlibs=no
11654      fi
11655      ;;
11656
11657    cygwin* | mingw* | pw32* | cegcc*)
11658      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11659      # as there is no search path for DLLs.
11660      hardcode_libdir_flag_spec='-L$libdir'
11661      export_dynamic_flag_spec='${wl}--export-all-symbols'
11662      allow_undefined_flag=unsupported
11663      always_export_symbols=no
11664      enable_shared_with_static_runtimes=yes
11665      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
11666      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11667
11668      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11669        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11670	# If the export-symbols file already is a .def file (1st line
11671	# is EXPORTS), use it as is; otherwise, prepend...
11672	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11673	  cp $export_symbols $output_objdir/$soname.def;
11674	else
11675	  echo EXPORTS > $output_objdir/$soname.def;
11676	  cat $export_symbols >> $output_objdir/$soname.def;
11677	fi~
11678	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11679      else
11680	ld_shlibs=no
11681      fi
11682      ;;
11683
11684    haiku*)
11685      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11686      link_all_deplibs=yes
11687      ;;
11688
11689    interix[3-9]*)
11690      hardcode_direct=no
11691      hardcode_shlibpath_var=no
11692      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11693      export_dynamic_flag_spec='${wl}-E'
11694      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11695      # Instead, shared libraries are loaded at an image base (0x10000000 by
11696      # default) and relocated if they conflict, which is a slow very memory
11697      # consuming and fragmenting process.  To avoid this, we pick a random,
11698      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11699      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11700      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11701      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11702      ;;
11703
11704    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11705      tmp_diet=no
11706      if test "$host_os" = linux-dietlibc; then
11707	case $cc_basename in
11708	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
11709	esac
11710      fi
11711      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11712	 && test "$tmp_diet" = no
11713      then
11714	tmp_addflag=' $pic_flag'
11715	tmp_sharedflag='-shared'
11716	case $cc_basename,$host_cpu in
11717        pgcc*)				# Portland Group C compiler
11718	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11719	  tmp_addflag=' $pic_flag'
11720	  ;;
11721	pgf77* | pgf90* | pgf95* | pgfortran*)
11722					# Portland Group f77 and f90 compilers
11723	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11724	  tmp_addflag=' $pic_flag -Mnomain' ;;
11725	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
11726	  tmp_addflag=' -i_dynamic' ;;
11727	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
11728	  tmp_addflag=' -i_dynamic -nofor_main' ;;
11729	ifc* | ifort*)			# Intel Fortran compiler
11730	  tmp_addflag=' -nofor_main' ;;
11731	lf95*)				# Lahey Fortran 8.1
11732	  whole_archive_flag_spec=
11733	  tmp_sharedflag='--shared' ;;
11734	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11735	  tmp_sharedflag='-qmkshrobj'
11736	  tmp_addflag= ;;
11737	nvcc*)	# Cuda Compiler Driver 2.2
11738	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11739	  compiler_needs_object=yes
11740	  ;;
11741	esac
11742	case `$CC -V 2>&1 | sed 5q` in
11743	*Sun\ C*)			# Sun C 5.9
11744	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11745	  compiler_needs_object=yes
11746	  tmp_sharedflag='-G' ;;
11747	*Sun\ F*)			# Sun Fortran 8.3
11748	  tmp_sharedflag='-G' ;;
11749	esac
11750	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11751
11752        if test "x$supports_anon_versioning" = xyes; then
11753          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11754	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11755	    echo "local: *; };" >> $output_objdir/$libname.ver~
11756	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11757        fi
11758
11759	case $cc_basename in
11760	xlf* | bgf* | bgxlf* | mpixlf*)
11761	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11762	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11763	  hardcode_libdir_flag_spec=
11764	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
11765	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11766	  if test "x$supports_anon_versioning" = xyes; then
11767	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11768	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11769	      echo "local: *; };" >> $output_objdir/$libname.ver~
11770	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11771	  fi
11772	  ;;
11773	esac
11774      else
11775        ld_shlibs=no
11776      fi
11777      ;;
11778
11779    netbsd*)
11780      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11781	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11782	wlarc=
11783      else
11784	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11785	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11786      fi
11787      ;;
11788
11789    solaris*)
11790      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11791	ld_shlibs=no
11792	cat <<_LT_EOF 1>&2
11793
11794*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11795*** create shared libraries on Solaris systems.  Therefore, libtool
11796*** is disabling shared libraries support.  We urge you to upgrade GNU
11797*** binutils to release 2.9.1 or newer.  Another option is to modify
11798*** your PATH or compiler configuration so that the native linker is
11799*** used, and then restart.
11800
11801_LT_EOF
11802      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11803	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11804	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11805      else
11806	ld_shlibs=no
11807      fi
11808      ;;
11809
11810    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11811      case `$LD -v 2>&1` in
11812        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11813	ld_shlibs=no
11814	cat <<_LT_EOF 1>&2
11815
11816*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11817*** reliably create shared libraries on SCO systems.  Therefore, libtool
11818*** is disabling shared libraries support.  We urge you to upgrade GNU
11819*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11820*** your PATH or compiler configuration so that the native linker is
11821*** used, and then restart.
11822
11823_LT_EOF
11824	;;
11825	*)
11826	  # For security reasons, it is highly recommended that you always
11827	  # use absolute paths for naming shared libraries, and exclude the
11828	  # DT_RUNPATH tag from executables and libraries.  But doing so
11829	  # requires that you compile everything twice, which is a pain.
11830	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11831	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11832	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11833	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11834	  else
11835	    ld_shlibs=no
11836	  fi
11837	;;
11838      esac
11839      ;;
11840
11841    sunos4*)
11842      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11843      wlarc=
11844      hardcode_direct=yes
11845      hardcode_shlibpath_var=no
11846      ;;
11847
11848    *)
11849      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11850	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11851	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11852      else
11853	ld_shlibs=no
11854      fi
11855      ;;
11856    esac
11857
11858    if test "$ld_shlibs" = no; then
11859      runpath_var=
11860      hardcode_libdir_flag_spec=
11861      export_dynamic_flag_spec=
11862      whole_archive_flag_spec=
11863    fi
11864  else
11865    # PORTME fill in a description of your system's linker (not GNU ld)
11866    case $host_os in
11867    aix3*)
11868      allow_undefined_flag=unsupported
11869      always_export_symbols=yes
11870      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
11871      # Note: this linker hardcodes the directories in LIBPATH if there
11872      # are no directories specified by -L.
11873      hardcode_minus_L=yes
11874      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11875	# Neither direct hardcoding nor static linking is supported with a
11876	# broken collect2.
11877	hardcode_direct=unsupported
11878      fi
11879      ;;
11880
11881    aix[4-9]*)
11882      if test "$host_cpu" = ia64; then
11883	# On IA64, the linker does run time linking by default, so we don't
11884	# have to do anything special.
11885	aix_use_runtimelinking=no
11886	exp_sym_flag='-Bexport'
11887	no_entry_flag=""
11888      else
11889	# If we're using GNU nm, then we don't want the "-C" option.
11890	# -C means demangle to AIX nm, but means don't demangle with GNU nm
11891	# Also, AIX nm treats weak defined symbols like other global
11892	# defined symbols, whereas GNU nm marks them as "W".
11893	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11894	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11895	else
11896	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11897	fi
11898	aix_use_runtimelinking=no
11899
11900	# Test if we are trying to use run time linking or normal
11901	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11902	# need to do runtime linking.
11903	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11904	  for ld_flag in $LDFLAGS; do
11905	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11906	    aix_use_runtimelinking=yes
11907	    break
11908	  fi
11909	  done
11910	  ;;
11911	esac
11912
11913	exp_sym_flag='-bexport'
11914	no_entry_flag='-bnoentry'
11915      fi
11916
11917      # When large executables or shared objects are built, AIX ld can
11918      # have problems creating the table of contents.  If linking a library
11919      # or program results in "error TOC overflow" add -mminimal-toc to
11920      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11921      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11922
11923      archive_cmds=''
11924      hardcode_direct=yes
11925      hardcode_direct_absolute=yes
11926      hardcode_libdir_separator=':'
11927      link_all_deplibs=yes
11928      file_list_spec='${wl}-f,'
11929
11930      if test "$GCC" = yes; then
11931	case $host_os in aix4.[012]|aix4.[012].*)
11932	# We only want to do this on AIX 4.2 and lower, the check
11933	# below for broken collect2 doesn't work under 4.3+
11934	  collect2name=`${CC} -print-prog-name=collect2`
11935	  if test -f "$collect2name" &&
11936	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11937	  then
11938	  # We have reworked collect2
11939	  :
11940	  else
11941	  # We have old collect2
11942	  hardcode_direct=unsupported
11943	  # It fails to find uninstalled libraries when the uninstalled
11944	  # path is not listed in the libpath.  Setting hardcode_minus_L
11945	  # to unsupported forces relinking
11946	  hardcode_minus_L=yes
11947	  hardcode_libdir_flag_spec='-L$libdir'
11948	  hardcode_libdir_separator=
11949	  fi
11950	  ;;
11951	esac
11952	shared_flag='-shared'
11953	if test "$aix_use_runtimelinking" = yes; then
11954	  shared_flag="$shared_flag "'${wl}-G'
11955	fi
11956      else
11957	# not using gcc
11958	if test "$host_cpu" = ia64; then
11959	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11960	# chokes on -Wl,-G. The following line is correct:
11961	  shared_flag='-G'
11962	else
11963	  if test "$aix_use_runtimelinking" = yes; then
11964	    shared_flag='${wl}-G'
11965	  else
11966	    shared_flag='${wl}-bM:SRE'
11967	  fi
11968	fi
11969      fi
11970
11971      export_dynamic_flag_spec='${wl}-bexpall'
11972      # It seems that -bexpall does not export symbols beginning with
11973      # underscore (_), so it is better to generate a list of symbols to export.
11974      always_export_symbols=yes
11975      if test "$aix_use_runtimelinking" = yes; then
11976	# Warning - without using the other runtime loading flags (-brtl),
11977	# -berok will link without error, but may produce a broken library.
11978	allow_undefined_flag='-berok'
11979        # Determine the default libpath from the value encoded in an
11980        # empty executable.
11981        if test "${lt_cv_aix_libpath+set}" = set; then
11982  aix_libpath=$lt_cv_aix_libpath
11983else
11984  if ${lt_cv_aix_libpath_+:} false; then :
11985  $as_echo_n "(cached) " >&6
11986else
11987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11988/* end confdefs.h.  */
11989
11990int
11991main ()
11992{
11993
11994  ;
11995  return 0;
11996}
11997_ACEOF
11998if ac_fn_c_try_link "$LINENO"; then :
11999
12000  lt_aix_libpath_sed='
12001      /Import File Strings/,/^$/ {
12002	  /^0/ {
12003	      s/^0  *\([^ ]*\) *$/\1/
12004	      p
12005	  }
12006      }'
12007  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12008  # Check for a 64-bit object if we didn't find anything.
12009  if test -z "$lt_cv_aix_libpath_"; then
12010    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12011  fi
12012fi
12013rm -f core conftest.err conftest.$ac_objext \
12014    conftest$ac_exeext conftest.$ac_ext
12015  if test -z "$lt_cv_aix_libpath_"; then
12016    lt_cv_aix_libpath_="/usr/lib:/lib"
12017  fi
12018
12019fi
12020
12021  aix_libpath=$lt_cv_aix_libpath_
12022fi
12023
12024        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12025        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12026      else
12027	if test "$host_cpu" = ia64; then
12028	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12029	  allow_undefined_flag="-z nodefs"
12030	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12031	else
12032	 # Determine the default libpath from the value encoded in an
12033	 # empty executable.
12034	 if test "${lt_cv_aix_libpath+set}" = set; then
12035  aix_libpath=$lt_cv_aix_libpath
12036else
12037  if ${lt_cv_aix_libpath_+:} false; then :
12038  $as_echo_n "(cached) " >&6
12039else
12040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12041/* end confdefs.h.  */
12042
12043int
12044main ()
12045{
12046
12047  ;
12048  return 0;
12049}
12050_ACEOF
12051if ac_fn_c_try_link "$LINENO"; then :
12052
12053  lt_aix_libpath_sed='
12054      /Import File Strings/,/^$/ {
12055	  /^0/ {
12056	      s/^0  *\([^ ]*\) *$/\1/
12057	      p
12058	  }
12059      }'
12060  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12061  # Check for a 64-bit object if we didn't find anything.
12062  if test -z "$lt_cv_aix_libpath_"; then
12063    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12064  fi
12065fi
12066rm -f core conftest.err conftest.$ac_objext \
12067    conftest$ac_exeext conftest.$ac_ext
12068  if test -z "$lt_cv_aix_libpath_"; then
12069    lt_cv_aix_libpath_="/usr/lib:/lib"
12070  fi
12071
12072fi
12073
12074  aix_libpath=$lt_cv_aix_libpath_
12075fi
12076
12077	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12078	  # Warning - without using the other run time loading flags,
12079	  # -berok will link without error, but may produce a broken library.
12080	  no_undefined_flag=' ${wl}-bernotok'
12081	  allow_undefined_flag=' ${wl}-berok'
12082	  if test "$with_gnu_ld" = yes; then
12083	    # We only use this code for GNU lds that support --whole-archive.
12084	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12085	  else
12086	    # Exported symbols can be pulled into shared objects from archives
12087	    whole_archive_flag_spec='$convenience'
12088	  fi
12089	  archive_cmds_need_lc=yes
12090	  # This is similar to how AIX traditionally builds its shared libraries.
12091	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12092	fi
12093      fi
12094      ;;
12095
12096    amigaos*)
12097      case $host_cpu in
12098      powerpc)
12099            # see comment about AmigaOS4 .so support
12100            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12101            archive_expsym_cmds=''
12102        ;;
12103      m68k)
12104            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
12105            hardcode_libdir_flag_spec='-L$libdir'
12106            hardcode_minus_L=yes
12107        ;;
12108      esac
12109      ;;
12110
12111    bsdi[45]*)
12112      export_dynamic_flag_spec=-rdynamic
12113      ;;
12114
12115    cygwin* | mingw* | pw32* | cegcc*)
12116      # When not using gcc, we currently assume that we are using
12117      # Microsoft Visual C++.
12118      # hardcode_libdir_flag_spec is actually meaningless, as there is
12119      # no search path for DLLs.
12120      case $cc_basename in
12121      cl*)
12122	# Native MSVC
12123	hardcode_libdir_flag_spec=' '
12124	allow_undefined_flag=unsupported
12125	always_export_symbols=yes
12126	file_list_spec='@'
12127	# Tell ltmain to make .lib files, not .a files.
12128	libext=lib
12129	# Tell ltmain to make .dll files, not .so files.
12130	shrext_cmds=".dll"
12131	# FIXME: Setting linknames here is a bad hack.
12132	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12133	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12134	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12135	  else
12136	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12137	  fi~
12138	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12139	  linknames='
12140	# The linker will not automatically build a static lib if we build a DLL.
12141	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12142	enable_shared_with_static_runtimes=yes
12143	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12144	# Don't use ranlib
12145	old_postinstall_cmds='chmod 644 $oldlib'
12146	postlink_cmds='lt_outputfile="@OUTPUT@"~
12147	  lt_tool_outputfile="@TOOL_OUTPUT@"~
12148	  case $lt_outputfile in
12149	    *.exe|*.EXE) ;;
12150	    *)
12151	      lt_outputfile="$lt_outputfile.exe"
12152	      lt_tool_outputfile="$lt_tool_outputfile.exe"
12153	      ;;
12154	  esac~
12155	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12156	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12157	    $RM "$lt_outputfile.manifest";
12158	  fi'
12159	;;
12160      *)
12161	# Assume MSVC wrapper
12162	hardcode_libdir_flag_spec=' '
12163	allow_undefined_flag=unsupported
12164	# Tell ltmain to make .lib files, not .a files.
12165	libext=lib
12166	# Tell ltmain to make .dll files, not .so files.
12167	shrext_cmds=".dll"
12168	# FIXME: Setting linknames here is a bad hack.
12169	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12170	# The linker will automatically build a .lib file if we build a DLL.
12171	old_archive_from_new_cmds='true'
12172	# FIXME: Should let the user specify the lib program.
12173	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12174	enable_shared_with_static_runtimes=yes
12175	;;
12176      esac
12177      ;;
12178
12179    darwin* | rhapsody*)
12180
12181
12182  archive_cmds_need_lc=no
12183  hardcode_direct=no
12184  hardcode_automatic=yes
12185  hardcode_shlibpath_var=unsupported
12186  if test "$lt_cv_ld_force_load" = "yes"; then
12187    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12188  else
12189    whole_archive_flag_spec=''
12190  fi
12191  link_all_deplibs=yes
12192  allow_undefined_flag="$_lt_dar_allow_undefined"
12193  case $cc_basename in
12194     ifort*) _lt_dar_can_shared=yes ;;
12195     *) _lt_dar_can_shared=$GCC ;;
12196  esac
12197  if test "$_lt_dar_can_shared" = "yes"; then
12198    output_verbose_link_cmd=func_echo_all
12199    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12200    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12201    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12202    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12203
12204  else
12205  ld_shlibs=no
12206  fi
12207
12208      ;;
12209
12210    dgux*)
12211      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12212      hardcode_libdir_flag_spec='-L$libdir'
12213      hardcode_shlibpath_var=no
12214      ;;
12215
12216    freebsd1*)
12217      ld_shlibs=no
12218      ;;
12219
12220    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12221    # support.  Future versions do this automatically, but an explicit c++rt0.o
12222    # does not break anything, and helps significantly (at the cost of a little
12223    # extra space).
12224    freebsd2.2*)
12225      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12226      hardcode_libdir_flag_spec='-R$libdir'
12227      hardcode_direct=yes
12228      hardcode_shlibpath_var=no
12229      ;;
12230
12231    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12232    freebsd2*)
12233      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12234      hardcode_direct=yes
12235      hardcode_minus_L=yes
12236      hardcode_shlibpath_var=no
12237      ;;
12238
12239    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12240    freebsd* | dragonfly*)
12241      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12242      hardcode_libdir_flag_spec='-R$libdir'
12243      hardcode_direct=yes
12244      hardcode_shlibpath_var=no
12245      ;;
12246
12247    hpux9*)
12248      if test "$GCC" = yes; then
12249	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12250      else
12251	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12252      fi
12253      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12254      hardcode_libdir_separator=:
12255      hardcode_direct=yes
12256
12257      # hardcode_minus_L: Not really in the search PATH,
12258      # but as the default location of the library.
12259      hardcode_minus_L=yes
12260      export_dynamic_flag_spec='${wl}-E'
12261      ;;
12262
12263    hpux10*)
12264      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12265	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12266      else
12267	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12268      fi
12269      if test "$with_gnu_ld" = no; then
12270	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12271	hardcode_libdir_flag_spec_ld='+b $libdir'
12272	hardcode_libdir_separator=:
12273	hardcode_direct=yes
12274	hardcode_direct_absolute=yes
12275	export_dynamic_flag_spec='${wl}-E'
12276	# hardcode_minus_L: Not really in the search PATH,
12277	# but as the default location of the library.
12278	hardcode_minus_L=yes
12279      fi
12280      ;;
12281
12282    hpux11*)
12283      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12284	case $host_cpu in
12285	hppa*64*)
12286	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12287	  ;;
12288	ia64*)
12289	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12290	  ;;
12291	*)
12292	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12293	  ;;
12294	esac
12295      else
12296	case $host_cpu in
12297	hppa*64*)
12298	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12299	  ;;
12300	ia64*)
12301	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12302	  ;;
12303	*)
12304
12305	  # Older versions of the 11.00 compiler do not understand -b yet
12306	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12307	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12308$as_echo_n "checking if $CC understands -b... " >&6; }
12309if ${lt_cv_prog_compiler__b+:} false; then :
12310  $as_echo_n "(cached) " >&6
12311else
12312  lt_cv_prog_compiler__b=no
12313   save_LDFLAGS="$LDFLAGS"
12314   LDFLAGS="$LDFLAGS -b"
12315   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12316   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12317     # The linker can only warn and ignore the option if not recognized
12318     # So say no if there are warnings
12319     if test -s conftest.err; then
12320       # Append any errors to the config.log.
12321       cat conftest.err 1>&5
12322       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12323       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12324       if diff conftest.exp conftest.er2 >/dev/null; then
12325         lt_cv_prog_compiler__b=yes
12326       fi
12327     else
12328       lt_cv_prog_compiler__b=yes
12329     fi
12330   fi
12331   $RM -r conftest*
12332   LDFLAGS="$save_LDFLAGS"
12333
12334fi
12335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12336$as_echo "$lt_cv_prog_compiler__b" >&6; }
12337
12338if test x"$lt_cv_prog_compiler__b" = xyes; then
12339    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12340else
12341    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12342fi
12343
12344	  ;;
12345	esac
12346      fi
12347      if test "$with_gnu_ld" = no; then
12348	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12349	hardcode_libdir_separator=:
12350
12351	case $host_cpu in
12352	hppa*64*|ia64*)
12353	  hardcode_direct=no
12354	  hardcode_shlibpath_var=no
12355	  ;;
12356	*)
12357	  hardcode_direct=yes
12358	  hardcode_direct_absolute=yes
12359	  export_dynamic_flag_spec='${wl}-E'
12360
12361	  # hardcode_minus_L: Not really in the search PATH,
12362	  # but as the default location of the library.
12363	  hardcode_minus_L=yes
12364	  ;;
12365	esac
12366      fi
12367      ;;
12368
12369    irix5* | irix6* | nonstopux*)
12370      if test "$GCC" = yes; then
12371	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12372	# Try to use the -exported_symbol ld option, if it does not
12373	# work, assume that -exports_file does not work either and
12374	# implicitly export all symbols.
12375	# This should be the same for all languages, so no per-tag cache variable.
12376	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12377$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12378if ${lt_cv_irix_exported_symbol+:} false; then :
12379  $as_echo_n "(cached) " >&6
12380else
12381  save_LDFLAGS="$LDFLAGS"
12382	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12383	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12384/* end confdefs.h.  */
12385int foo (void) { return 0; }
12386_ACEOF
12387if ac_fn_c_try_link "$LINENO"; then :
12388  lt_cv_irix_exported_symbol=yes
12389else
12390  lt_cv_irix_exported_symbol=no
12391fi
12392rm -f core conftest.err conftest.$ac_objext \
12393    conftest$ac_exeext conftest.$ac_ext
12394           LDFLAGS="$save_LDFLAGS"
12395fi
12396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12397$as_echo "$lt_cv_irix_exported_symbol" >&6; }
12398	if test "$lt_cv_irix_exported_symbol" = yes; then
12399          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
12400	fi
12401      else
12402	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12403	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
12404      fi
12405      archive_cmds_need_lc='no'
12406      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12407      hardcode_libdir_separator=:
12408      inherit_rpath=yes
12409      link_all_deplibs=yes
12410      ;;
12411
12412    netbsd*)
12413      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12414	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12415      else
12416	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12417      fi
12418      hardcode_libdir_flag_spec='-R$libdir'
12419      hardcode_direct=yes
12420      hardcode_shlibpath_var=no
12421      ;;
12422
12423    newsos6)
12424      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12425      hardcode_direct=yes
12426      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12427      hardcode_libdir_separator=:
12428      hardcode_shlibpath_var=no
12429      ;;
12430
12431    *nto* | *qnx*)
12432      ;;
12433
12434    openbsd*)
12435      if test -f /usr/libexec/ld.so; then
12436	hardcode_direct=yes
12437	hardcode_shlibpath_var=no
12438	hardcode_direct_absolute=yes
12439	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12440	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12441	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12442	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12443	  export_dynamic_flag_spec='${wl}-E'
12444	else
12445	  case $host_os in
12446	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12447	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12448	     hardcode_libdir_flag_spec='-R$libdir'
12449	     ;;
12450	   *)
12451	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12452	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12453	     ;;
12454	  esac
12455	fi
12456      else
12457	ld_shlibs=no
12458      fi
12459      ;;
12460
12461    os2*)
12462      hardcode_libdir_flag_spec='-L$libdir'
12463      hardcode_minus_L=yes
12464      allow_undefined_flag=unsupported
12465      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
12466      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12467      ;;
12468
12469    osf3*)
12470      if test "$GCC" = yes; then
12471	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12472	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12473      else
12474	allow_undefined_flag=' -expect_unresolved \*'
12475	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12476      fi
12477      archive_cmds_need_lc='no'
12478      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12479      hardcode_libdir_separator=:
12480      ;;
12481
12482    osf4* | osf5*)	# as osf3* with the addition of -msym flag
12483      if test "$GCC" = yes; then
12484	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12485	archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12486	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12487      else
12488	allow_undefined_flag=' -expect_unresolved \*'
12489	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12490	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
12491	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
12492
12493	# Both c and cxx compiler support -rpath directly
12494	hardcode_libdir_flag_spec='-rpath $libdir'
12495      fi
12496      archive_cmds_need_lc='no'
12497      hardcode_libdir_separator=:
12498      ;;
12499
12500    solaris*)
12501      no_undefined_flag=' -z defs'
12502      if test "$GCC" = yes; then
12503	wlarc='${wl}'
12504	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12505	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12506	  $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12507      else
12508	case `$CC -V 2>&1` in
12509	*"Compilers 5.0"*)
12510	  wlarc=''
12511	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12512	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12513	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12514	  ;;
12515	*)
12516	  wlarc='${wl}'
12517	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12518	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12519	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12520	  ;;
12521	esac
12522      fi
12523      hardcode_libdir_flag_spec='-R$libdir'
12524      hardcode_shlibpath_var=no
12525      case $host_os in
12526      solaris2.[0-5] | solaris2.[0-5].*) ;;
12527      *)
12528	# The compiler driver will combine and reorder linker options,
12529	# but understands `-z linker_flag'.  GCC discards it without `$wl',
12530	# but is careful enough not to reorder.
12531	# Supported since Solaris 2.6 (maybe 2.5.1?)
12532	if test "$GCC" = yes; then
12533	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12534	else
12535	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12536	fi
12537	;;
12538      esac
12539      link_all_deplibs=yes
12540      ;;
12541
12542    sunos4*)
12543      if test "x$host_vendor" = xsequent; then
12544	# Use $CC to link under sequent, because it throws in some extra .o
12545	# files that make .init and .fini sections work.
12546	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12547      else
12548	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12549      fi
12550      hardcode_libdir_flag_spec='-L$libdir'
12551      hardcode_direct=yes
12552      hardcode_minus_L=yes
12553      hardcode_shlibpath_var=no
12554      ;;
12555
12556    sysv4)
12557      case $host_vendor in
12558	sni)
12559	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12560	  hardcode_direct=yes # is this really true???
12561	;;
12562	siemens)
12563	  ## LD is ld it makes a PLAMLIB
12564	  ## CC just makes a GrossModule.
12565	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12566	  reload_cmds='$CC -r -o $output$reload_objs'
12567	  hardcode_direct=no
12568        ;;
12569	motorola)
12570	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12571	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12572	;;
12573      esac
12574      runpath_var='LD_RUN_PATH'
12575      hardcode_shlibpath_var=no
12576      ;;
12577
12578    sysv4.3*)
12579      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12580      hardcode_shlibpath_var=no
12581      export_dynamic_flag_spec='-Bexport'
12582      ;;
12583
12584    sysv4*MP*)
12585      if test -d /usr/nec; then
12586	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12587	hardcode_shlibpath_var=no
12588	runpath_var=LD_RUN_PATH
12589	hardcode_runpath_var=yes
12590	ld_shlibs=yes
12591      fi
12592      ;;
12593
12594    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12595      no_undefined_flag='${wl}-z,text'
12596      archive_cmds_need_lc=no
12597      hardcode_shlibpath_var=no
12598      runpath_var='LD_RUN_PATH'
12599
12600      if test "$GCC" = yes; then
12601	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12602	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12603      else
12604	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12605	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12606      fi
12607      ;;
12608
12609    sysv5* | sco3.2v5* | sco5v6*)
12610      # Note: We can NOT use -z defs as we might desire, because we do not
12611      # link with -lc, and that would cause any symbols used from libc to
12612      # always be unresolved, which means just about no library would
12613      # ever link correctly.  If we're not using GNU ld we use -z text
12614      # though, which does catch some bad symbols but isn't as heavy-handed
12615      # as -z defs.
12616      no_undefined_flag='${wl}-z,text'
12617      allow_undefined_flag='${wl}-z,nodefs'
12618      archive_cmds_need_lc=no
12619      hardcode_shlibpath_var=no
12620      hardcode_libdir_flag_spec='${wl}-R,$libdir'
12621      hardcode_libdir_separator=':'
12622      link_all_deplibs=yes
12623      export_dynamic_flag_spec='${wl}-Bexport'
12624      runpath_var='LD_RUN_PATH'
12625
12626      if test "$GCC" = yes; then
12627	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12628	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12629      else
12630	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12631	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12632      fi
12633      ;;
12634
12635    uts4*)
12636      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12637      hardcode_libdir_flag_spec='-L$libdir'
12638      hardcode_shlibpath_var=no
12639      ;;
12640
12641    *)
12642      ld_shlibs=no
12643      ;;
12644    esac
12645
12646    if test x$host_vendor = xsni; then
12647      case $host in
12648      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12649	export_dynamic_flag_spec='${wl}-Blargedynsym'
12650	;;
12651      esac
12652    fi
12653  fi
12654
12655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12656$as_echo "$ld_shlibs" >&6; }
12657test "$ld_shlibs" = no && can_build_shared=no
12658
12659with_gnu_ld=$with_gnu_ld
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675#
12676# Do we need to explicitly link libc?
12677#
12678case "x$archive_cmds_need_lc" in
12679x|xyes)
12680  # Assume -lc should be added
12681  archive_cmds_need_lc=yes
12682
12683  if test "$enable_shared" = yes && test "$GCC" = yes; then
12684    case $archive_cmds in
12685    *'~'*)
12686      # FIXME: we may have to deal with multi-command sequences.
12687      ;;
12688    '$CC '*)
12689      # Test whether the compiler implicitly links with -lc since on some
12690      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12691      # to ld, don't add -lc before -lgcc.
12692      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12693$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12694if ${lt_cv_archive_cmds_need_lc+:} false; then :
12695  $as_echo_n "(cached) " >&6
12696else
12697  $RM conftest*
12698	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12699
12700	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12701  (eval $ac_compile) 2>&5
12702  ac_status=$?
12703  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12704  test $ac_status = 0; } 2>conftest.err; then
12705	  soname=conftest
12706	  lib=conftest
12707	  libobjs=conftest.$ac_objext
12708	  deplibs=
12709	  wl=$lt_prog_compiler_wl
12710	  pic_flag=$lt_prog_compiler_pic
12711	  compiler_flags=-v
12712	  linker_flags=-v
12713	  verstring=
12714	  output_objdir=.
12715	  libname=conftest
12716	  lt_save_allow_undefined_flag=$allow_undefined_flag
12717	  allow_undefined_flag=
12718	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12719  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12720  ac_status=$?
12721  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12722  test $ac_status = 0; }
12723	  then
12724	    lt_cv_archive_cmds_need_lc=no
12725	  else
12726	    lt_cv_archive_cmds_need_lc=yes
12727	  fi
12728	  allow_undefined_flag=$lt_save_allow_undefined_flag
12729	else
12730	  cat conftest.err 1>&5
12731	fi
12732	$RM conftest*
12733
12734fi
12735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12736$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12737      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12738      ;;
12739    esac
12740  fi
12741  ;;
12742esac
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12901$as_echo_n "checking dynamic linker characteristics... " >&6; }
12902
12903if test "$GCC" = yes; then
12904  case $host_os in
12905    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12906    *) lt_awk_arg="/^libraries:/" ;;
12907  esac
12908  case $host_os in
12909    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12910    *) lt_sed_strip_eq="s,=/,/,g" ;;
12911  esac
12912  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12913  case $lt_search_path_spec in
12914  *\;*)
12915    # if the path contains ";" then we assume it to be the separator
12916    # otherwise default to the standard path separator (i.e. ":") - it is
12917    # assumed that no part of a normal pathname contains ";" but that should
12918    # okay in the real world where ";" in dirpaths is itself problematic.
12919    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12920    ;;
12921  *)
12922    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12923    ;;
12924  esac
12925  # Ok, now we have the path, separated by spaces, we can step through it
12926  # and add multilib dir if necessary.
12927  lt_tmp_lt_search_path_spec=
12928  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12929  for lt_sys_path in $lt_search_path_spec; do
12930    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12931      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12932    else
12933      test -d "$lt_sys_path" && \
12934	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12935    fi
12936  done
12937  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12938BEGIN {RS=" "; FS="/|\n";} {
12939  lt_foo="";
12940  lt_count=0;
12941  for (lt_i = NF; lt_i > 0; lt_i--) {
12942    if ($lt_i != "" && $lt_i != ".") {
12943      if ($lt_i == "..") {
12944        lt_count++;
12945      } else {
12946        if (lt_count == 0) {
12947          lt_foo="/" $lt_i lt_foo;
12948        } else {
12949          lt_count--;
12950        }
12951      }
12952    }
12953  }
12954  if (lt_foo != "") { lt_freq[lt_foo]++; }
12955  if (lt_freq[lt_foo] == 1) { print lt_foo; }
12956}'`
12957  # AWK program above erroneously prepends '/' to C:/dos/paths
12958  # for these hosts.
12959  case $host_os in
12960    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12961      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12962  esac
12963  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12964else
12965  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12966fi
12967library_names_spec=
12968libname_spec='lib$name'
12969soname_spec=
12970shrext_cmds=".so"
12971postinstall_cmds=
12972postuninstall_cmds=
12973finish_cmds=
12974finish_eval=
12975shlibpath_var=
12976shlibpath_overrides_runpath=unknown
12977version_type=none
12978dynamic_linker="$host_os ld.so"
12979sys_lib_dlsearch_path_spec="/lib /usr/lib"
12980need_lib_prefix=unknown
12981hardcode_into_libs=no
12982
12983# when you set need_version to no, make sure it does not cause -set_version
12984# flags to be left without arguments
12985need_version=unknown
12986
12987case $host_os in
12988aix3*)
12989  version_type=linux
12990  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12991  shlibpath_var=LIBPATH
12992
12993  # AIX 3 has no versioning support, so we append a major version to the name.
12994  soname_spec='${libname}${release}${shared_ext}$major'
12995  ;;
12996
12997aix[4-9]*)
12998  version_type=linux
12999  need_lib_prefix=no
13000  need_version=no
13001  hardcode_into_libs=yes
13002  if test "$host_cpu" = ia64; then
13003    # AIX 5 supports IA64
13004    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13005    shlibpath_var=LD_LIBRARY_PATH
13006  else
13007    # With GCC up to 2.95.x, collect2 would create an import file
13008    # for dependence libraries.  The import file would start with
13009    # the line `#! .'.  This would cause the generated library to
13010    # depend on `.', always an invalid library.  This was fixed in
13011    # development snapshots of GCC prior to 3.0.
13012    case $host_os in
13013      aix4 | aix4.[01] | aix4.[01].*)
13014      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13015	   echo ' yes '
13016	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13017	:
13018      else
13019	can_build_shared=no
13020      fi
13021      ;;
13022    esac
13023    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13024    # soname into executable. Probably we can add versioning support to
13025    # collect2, so additional links can be useful in future.
13026    if test "$aix_use_runtimelinking" = yes; then
13027      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13028      # instead of lib<name>.a to let people know that these are not
13029      # typical AIX shared libraries.
13030      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13031    else
13032      # We preserve .a as extension for shared libraries through AIX4.2
13033      # and later when we are not doing run time linking.
13034      library_names_spec='${libname}${release}.a $libname.a'
13035      soname_spec='${libname}${release}${shared_ext}$major'
13036    fi
13037    shlibpath_var=LIBPATH
13038  fi
13039  ;;
13040
13041amigaos*)
13042  case $host_cpu in
13043  powerpc)
13044    # Since July 2007 AmigaOS4 officially supports .so libraries.
13045    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13046    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13047    ;;
13048  m68k)
13049    library_names_spec='$libname.ixlibrary $libname.a'
13050    # Create ${libname}_ixlibrary.a entries in /sys/libs.
13051    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13052    ;;
13053  esac
13054  ;;
13055
13056beos*)
13057  library_names_spec='${libname}${shared_ext}'
13058  dynamic_linker="$host_os ld.so"
13059  shlibpath_var=LIBRARY_PATH
13060  ;;
13061
13062bsdi[45]*)
13063  version_type=linux
13064  need_version=no
13065  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13066  soname_spec='${libname}${release}${shared_ext}$major'
13067  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13068  shlibpath_var=LD_LIBRARY_PATH
13069  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13070  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13071  # the default ld.so.conf also contains /usr/contrib/lib and
13072  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13073  # libtool to hard-code these into programs
13074  ;;
13075
13076cygwin* | mingw* | pw32* | cegcc*)
13077  version_type=windows
13078  shrext_cmds=".dll"
13079  need_version=no
13080  need_lib_prefix=no
13081
13082  case $GCC,$cc_basename in
13083  yes,*)
13084    # gcc
13085    library_names_spec='$libname.dll.a'
13086    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13087    postinstall_cmds='base_file=`basename \${file}`~
13088      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13089      dldir=$destdir/`dirname \$dlpath`~
13090      test -d \$dldir || mkdir -p \$dldir~
13091      $install_prog $dir/$dlname \$dldir/$dlname~
13092      chmod a+x \$dldir/$dlname~
13093      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13094        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13095      fi'
13096    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13097      dlpath=$dir/\$dldll~
13098       $RM \$dlpath'
13099    shlibpath_overrides_runpath=yes
13100
13101    case $host_os in
13102    cygwin*)
13103      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13104      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13105
13106      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13107      ;;
13108    mingw* | cegcc*)
13109      # MinGW DLLs use traditional 'lib' prefix
13110      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13111      ;;
13112    pw32*)
13113      # pw32 DLLs use 'pw' prefix rather than 'lib'
13114      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13115      ;;
13116    esac
13117    dynamic_linker='Win32 ld.exe'
13118    ;;
13119
13120  *,cl*)
13121    # Native MSVC
13122    libname_spec='$name'
13123    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13124    library_names_spec='${libname}.dll.lib'
13125
13126    case $build_os in
13127    mingw*)
13128      sys_lib_search_path_spec=
13129      lt_save_ifs=$IFS
13130      IFS=';'
13131      for lt_path in $LIB
13132      do
13133        IFS=$lt_save_ifs
13134        # Let DOS variable expansion print the short 8.3 style file name.
13135        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13136        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13137      done
13138      IFS=$lt_save_ifs
13139      # Convert to MSYS style.
13140      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13141      ;;
13142    cygwin*)
13143      # Convert to unix form, then to dos form, then back to unix form
13144      # but this time dos style (no spaces!) so that the unix form looks
13145      # like /cygdrive/c/PROGRA~1:/cygdr...
13146      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13147      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13148      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13149      ;;
13150    *)
13151      sys_lib_search_path_spec="$LIB"
13152      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13153        # It is most probably a Windows format PATH.
13154        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13155      else
13156        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13157      fi
13158      # FIXME: find the short name or the path components, as spaces are
13159      # common. (e.g. "Program Files" -> "PROGRA~1")
13160      ;;
13161    esac
13162
13163    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13164    postinstall_cmds='base_file=`basename \${file}`~
13165      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13166      dldir=$destdir/`dirname \$dlpath`~
13167      test -d \$dldir || mkdir -p \$dldir~
13168      $install_prog $dir/$dlname \$dldir/$dlname'
13169    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13170      dlpath=$dir/\$dldll~
13171       $RM \$dlpath'
13172    shlibpath_overrides_runpath=yes
13173    dynamic_linker='Win32 link.exe'
13174    ;;
13175
13176  *)
13177    # Assume MSVC wrapper
13178    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13179    dynamic_linker='Win32 ld.exe'
13180    ;;
13181  esac
13182  # FIXME: first we should search . and the directory the executable is in
13183  shlibpath_var=PATH
13184  ;;
13185
13186darwin* | rhapsody*)
13187  dynamic_linker="$host_os dyld"
13188  version_type=darwin
13189  need_lib_prefix=no
13190  need_version=no
13191  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13192  soname_spec='${libname}${release}${major}$shared_ext'
13193  shlibpath_overrides_runpath=yes
13194  shlibpath_var=DYLD_LIBRARY_PATH
13195  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13196
13197  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13198  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13199  ;;
13200
13201dgux*)
13202  version_type=linux
13203  need_lib_prefix=no
13204  need_version=no
13205  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13206  soname_spec='${libname}${release}${shared_ext}$major'
13207  shlibpath_var=LD_LIBRARY_PATH
13208  ;;
13209
13210freebsd1*)
13211  dynamic_linker=no
13212  ;;
13213
13214freebsd* | dragonfly*)
13215  # DragonFly does not have aout.  When/if they implement a new
13216  # versioning mechanism, adjust this.
13217  if test -x /usr/bin/objformat; then
13218    objformat=`/usr/bin/objformat`
13219  else
13220    case $host_os in
13221    freebsd[123]*) objformat=aout ;;
13222    *) objformat=elf ;;
13223    esac
13224  fi
13225  version_type=freebsd-$objformat
13226  case $version_type in
13227    freebsd-elf*)
13228      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13229      need_version=no
13230      need_lib_prefix=no
13231      ;;
13232    freebsd-*)
13233      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13234      need_version=yes
13235      ;;
13236  esac
13237  shlibpath_var=LD_LIBRARY_PATH
13238  case $host_os in
13239  freebsd2*)
13240    shlibpath_overrides_runpath=yes
13241    ;;
13242  freebsd3.[01]* | freebsdelf3.[01]*)
13243    shlibpath_overrides_runpath=yes
13244    hardcode_into_libs=yes
13245    ;;
13246  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13247  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13248    shlibpath_overrides_runpath=no
13249    hardcode_into_libs=yes
13250    ;;
13251  *) # from 4.6 on, and DragonFly
13252    shlibpath_overrides_runpath=yes
13253    hardcode_into_libs=yes
13254    ;;
13255  esac
13256  ;;
13257
13258gnu*)
13259  version_type=linux
13260  need_lib_prefix=no
13261  need_version=no
13262  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13263  soname_spec='${libname}${release}${shared_ext}$major'
13264  shlibpath_var=LD_LIBRARY_PATH
13265  hardcode_into_libs=yes
13266  ;;
13267
13268haiku*)
13269  version_type=linux
13270  need_lib_prefix=no
13271  need_version=no
13272  dynamic_linker="$host_os runtime_loader"
13273  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13274  soname_spec='${libname}${release}${shared_ext}$major'
13275  shlibpath_var=LIBRARY_PATH
13276  shlibpath_overrides_runpath=yes
13277  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13278  hardcode_into_libs=yes
13279  ;;
13280
13281hpux9* | hpux10* | hpux11*)
13282  # Give a soname corresponding to the major version so that dld.sl refuses to
13283  # link against other versions.
13284  version_type=sunos
13285  need_lib_prefix=no
13286  need_version=no
13287  case $host_cpu in
13288  ia64*)
13289    shrext_cmds='.so'
13290    hardcode_into_libs=yes
13291    dynamic_linker="$host_os dld.so"
13292    shlibpath_var=LD_LIBRARY_PATH
13293    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13294    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13295    soname_spec='${libname}${release}${shared_ext}$major'
13296    if test "X$HPUX_IA64_MODE" = X32; then
13297      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13298    else
13299      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13300    fi
13301    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13302    ;;
13303  hppa*64*)
13304    shrext_cmds='.sl'
13305    hardcode_into_libs=yes
13306    dynamic_linker="$host_os dld.sl"
13307    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13308    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13309    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13310    soname_spec='${libname}${release}${shared_ext}$major'
13311    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13312    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13313    ;;
13314  *)
13315    shrext_cmds='.sl'
13316    dynamic_linker="$host_os dld.sl"
13317    shlibpath_var=SHLIB_PATH
13318    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13319    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13320    soname_spec='${libname}${release}${shared_ext}$major'
13321    ;;
13322  esac
13323  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13324  postinstall_cmds='chmod 555 $lib'
13325  # or fails outright, so override atomically:
13326  install_override_mode=555
13327  ;;
13328
13329interix[3-9]*)
13330  version_type=linux
13331  need_lib_prefix=no
13332  need_version=no
13333  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13334  soname_spec='${libname}${release}${shared_ext}$major'
13335  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13336  shlibpath_var=LD_LIBRARY_PATH
13337  shlibpath_overrides_runpath=no
13338  hardcode_into_libs=yes
13339  ;;
13340
13341irix5* | irix6* | nonstopux*)
13342  case $host_os in
13343    nonstopux*) version_type=nonstopux ;;
13344    *)
13345	if test "$lt_cv_prog_gnu_ld" = yes; then
13346		version_type=linux
13347	else
13348		version_type=irix
13349	fi ;;
13350  esac
13351  need_lib_prefix=no
13352  need_version=no
13353  soname_spec='${libname}${release}${shared_ext}$major'
13354  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13355  case $host_os in
13356  irix5* | nonstopux*)
13357    libsuff= shlibsuff=
13358    ;;
13359  *)
13360    case $LD in # libtool.m4 will add one of these switches to LD
13361    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13362      libsuff= shlibsuff= libmagic=32-bit;;
13363    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13364      libsuff=32 shlibsuff=N32 libmagic=N32;;
13365    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13366      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13367    *) libsuff= shlibsuff= libmagic=never-match;;
13368    esac
13369    ;;
13370  esac
13371  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13372  shlibpath_overrides_runpath=no
13373  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13374  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13375  hardcode_into_libs=yes
13376  ;;
13377
13378# No shared lib support for Linux oldld, aout, or coff.
13379linux*oldld* | linux*aout* | linux*coff*)
13380  dynamic_linker=no
13381  ;;
13382
13383# This must be Linux ELF.
13384linux* | k*bsd*-gnu | kopensolaris*-gnu)
13385  version_type=linux
13386  need_lib_prefix=no
13387  need_version=no
13388  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13389  soname_spec='${libname}${release}${shared_ext}$major'
13390  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13391  shlibpath_var=LD_LIBRARY_PATH
13392  shlibpath_overrides_runpath=no
13393
13394  # Some binutils ld are patched to set DT_RUNPATH
13395  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13396  $as_echo_n "(cached) " >&6
13397else
13398  lt_cv_shlibpath_overrides_runpath=no
13399    save_LDFLAGS=$LDFLAGS
13400    save_libdir=$libdir
13401    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13402	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13403    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13404/* end confdefs.h.  */
13405
13406int
13407main ()
13408{
13409
13410  ;
13411  return 0;
13412}
13413_ACEOF
13414if ac_fn_c_try_link "$LINENO"; then :
13415  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13416  lt_cv_shlibpath_overrides_runpath=yes
13417fi
13418fi
13419rm -f core conftest.err conftest.$ac_objext \
13420    conftest$ac_exeext conftest.$ac_ext
13421    LDFLAGS=$save_LDFLAGS
13422    libdir=$save_libdir
13423
13424fi
13425
13426  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13427
13428  # This implies no fast_install, which is unacceptable.
13429  # Some rework will be needed to allow for fast_install
13430  # before this can be enabled.
13431  hardcode_into_libs=yes
13432
13433  # Append ld.so.conf contents to the search path
13434  if test -f /etc/ld.so.conf; then
13435    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
13436    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13437  fi
13438
13439  # We used to test for /lib/ld.so.1 and disable shared libraries on
13440  # powerpc, because MkLinux only supported shared libraries with the
13441  # GNU dynamic linker.  Since this was broken with cross compilers,
13442  # most powerpc-linux boxes support dynamic linking these days and
13443  # people can always --disable-shared, the test was removed, and we
13444  # assume the GNU/Linux dynamic linker is in use.
13445  dynamic_linker='GNU/Linux ld.so'
13446  ;;
13447
13448netbsd*)
13449  version_type=sunos
13450  need_lib_prefix=no
13451  need_version=no
13452  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13453    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13454    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13455    dynamic_linker='NetBSD (a.out) ld.so'
13456  else
13457    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13458    soname_spec='${libname}${release}${shared_ext}$major'
13459    dynamic_linker='NetBSD ld.elf_so'
13460  fi
13461  shlibpath_var=LD_LIBRARY_PATH
13462  shlibpath_overrides_runpath=yes
13463  hardcode_into_libs=yes
13464  ;;
13465
13466newsos6)
13467  version_type=linux
13468  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13469  shlibpath_var=LD_LIBRARY_PATH
13470  shlibpath_overrides_runpath=yes
13471  ;;
13472
13473*nto* | *qnx*)
13474  version_type=qnx
13475  need_lib_prefix=no
13476  need_version=no
13477  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13478  soname_spec='${libname}${release}${shared_ext}$major'
13479  shlibpath_var=LD_LIBRARY_PATH
13480  shlibpath_overrides_runpath=no
13481  hardcode_into_libs=yes
13482  dynamic_linker='ldqnx.so'
13483  ;;
13484
13485openbsd*)
13486  version_type=sunos
13487  sys_lib_dlsearch_path_spec="/usr/lib"
13488  need_lib_prefix=no
13489  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13490  case $host_os in
13491    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
13492    *)				need_version=no  ;;
13493  esac
13494  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13495  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13496  shlibpath_var=LD_LIBRARY_PATH
13497  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13498    case $host_os in
13499      openbsd2.[89] | openbsd2.[89].*)
13500	shlibpath_overrides_runpath=no
13501	;;
13502      *)
13503	shlibpath_overrides_runpath=yes
13504	;;
13505      esac
13506  else
13507    shlibpath_overrides_runpath=yes
13508  fi
13509  ;;
13510
13511os2*)
13512  libname_spec='$name'
13513  shrext_cmds=".dll"
13514  need_lib_prefix=no
13515  library_names_spec='$libname${shared_ext} $libname.a'
13516  dynamic_linker='OS/2 ld.exe'
13517  shlibpath_var=LIBPATH
13518  ;;
13519
13520osf3* | osf4* | osf5*)
13521  version_type=osf
13522  need_lib_prefix=no
13523  need_version=no
13524  soname_spec='${libname}${release}${shared_ext}$major'
13525  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13526  shlibpath_var=LD_LIBRARY_PATH
13527  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13528  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13529  ;;
13530
13531rdos*)
13532  dynamic_linker=no
13533  ;;
13534
13535solaris*)
13536  version_type=linux
13537  need_lib_prefix=no
13538  need_version=no
13539  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13540  soname_spec='${libname}${release}${shared_ext}$major'
13541  shlibpath_var=LD_LIBRARY_PATH
13542  shlibpath_overrides_runpath=yes
13543  hardcode_into_libs=yes
13544  # ldd complains unless libraries are executable
13545  postinstall_cmds='chmod +x $lib'
13546  ;;
13547
13548sunos4*)
13549  version_type=sunos
13550  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13551  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13552  shlibpath_var=LD_LIBRARY_PATH
13553  shlibpath_overrides_runpath=yes
13554  if test "$with_gnu_ld" = yes; then
13555    need_lib_prefix=no
13556  fi
13557  need_version=yes
13558  ;;
13559
13560sysv4 | sysv4.3*)
13561  version_type=linux
13562  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13563  soname_spec='${libname}${release}${shared_ext}$major'
13564  shlibpath_var=LD_LIBRARY_PATH
13565  case $host_vendor in
13566    sni)
13567      shlibpath_overrides_runpath=no
13568      need_lib_prefix=no
13569      runpath_var=LD_RUN_PATH
13570      ;;
13571    siemens)
13572      need_lib_prefix=no
13573      ;;
13574    motorola)
13575      need_lib_prefix=no
13576      need_version=no
13577      shlibpath_overrides_runpath=no
13578      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13579      ;;
13580  esac
13581  ;;
13582
13583sysv4*MP*)
13584  if test -d /usr/nec ;then
13585    version_type=linux
13586    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13587    soname_spec='$libname${shared_ext}.$major'
13588    shlibpath_var=LD_LIBRARY_PATH
13589  fi
13590  ;;
13591
13592sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13593  version_type=freebsd-elf
13594  need_lib_prefix=no
13595  need_version=no
13596  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13597  soname_spec='${libname}${release}${shared_ext}$major'
13598  shlibpath_var=LD_LIBRARY_PATH
13599  shlibpath_overrides_runpath=yes
13600  hardcode_into_libs=yes
13601  if test "$with_gnu_ld" = yes; then
13602    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13603  else
13604    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13605    case $host_os in
13606      sco3.2v5*)
13607        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13608	;;
13609    esac
13610  fi
13611  sys_lib_dlsearch_path_spec='/usr/lib'
13612  ;;
13613
13614tpf*)
13615  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13616  version_type=linux
13617  need_lib_prefix=no
13618  need_version=no
13619  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13620  shlibpath_var=LD_LIBRARY_PATH
13621  shlibpath_overrides_runpath=no
13622  hardcode_into_libs=yes
13623  ;;
13624
13625uts4*)
13626  version_type=linux
13627  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13628  soname_spec='${libname}${release}${shared_ext}$major'
13629  shlibpath_var=LD_LIBRARY_PATH
13630  ;;
13631
13632*)
13633  dynamic_linker=no
13634  ;;
13635esac
13636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13637$as_echo "$dynamic_linker" >&6; }
13638test "$dynamic_linker" = no && can_build_shared=no
13639
13640variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13641if test "$GCC" = yes; then
13642  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13643fi
13644
13645if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13646  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13647fi
13648if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13649  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13650fi
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13744$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13745hardcode_action=
13746if test -n "$hardcode_libdir_flag_spec" ||
13747   test -n "$runpath_var" ||
13748   test "X$hardcode_automatic" = "Xyes" ; then
13749
13750  # We can hardcode non-existent directories.
13751  if test "$hardcode_direct" != no &&
13752     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13753     # have to relink, otherwise we might link with an installed library
13754     # when we should be linking with a yet-to-be-installed one
13755     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13756     test "$hardcode_minus_L" != no; then
13757    # Linking always hardcodes the temporary library directory.
13758    hardcode_action=relink
13759  else
13760    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13761    hardcode_action=immediate
13762  fi
13763else
13764  # We cannot hardcode anything, or else we can only hardcode existing
13765  # directories.
13766  hardcode_action=unsupported
13767fi
13768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13769$as_echo "$hardcode_action" >&6; }
13770
13771if test "$hardcode_action" = relink ||
13772   test "$inherit_rpath" = yes; then
13773  # Fast installation is not supported
13774  enable_fast_install=no
13775elif test "$shlibpath_overrides_runpath" = yes ||
13776     test "$enable_shared" = no; then
13777  # Fast installation is not necessary
13778  enable_fast_install=needless
13779fi
13780
13781
13782
13783
13784
13785
13786  if test "x$enable_dlopen" != xyes; then
13787  enable_dlopen=unknown
13788  enable_dlopen_self=unknown
13789  enable_dlopen_self_static=unknown
13790else
13791  lt_cv_dlopen=no
13792  lt_cv_dlopen_libs=
13793
13794  case $host_os in
13795  beos*)
13796    lt_cv_dlopen="load_add_on"
13797    lt_cv_dlopen_libs=
13798    lt_cv_dlopen_self=yes
13799    ;;
13800
13801  mingw* | pw32* | cegcc*)
13802    lt_cv_dlopen="LoadLibrary"
13803    lt_cv_dlopen_libs=
13804    ;;
13805
13806  cygwin*)
13807    lt_cv_dlopen="dlopen"
13808    lt_cv_dlopen_libs=
13809    ;;
13810
13811  darwin*)
13812  # if libdl is installed we need to link against it
13813    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13814$as_echo_n "checking for dlopen in -ldl... " >&6; }
13815if ${ac_cv_lib_dl_dlopen+:} false; then :
13816  $as_echo_n "(cached) " >&6
13817else
13818  ac_check_lib_save_LIBS=$LIBS
13819LIBS="-ldl  $LIBS"
13820cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13821/* end confdefs.h.  */
13822
13823/* Override any GCC internal prototype to avoid an error.
13824   Use char because int might match the return type of a GCC
13825   builtin and then its argument prototype would still apply.  */
13826#ifdef __cplusplus
13827extern "C"
13828#endif
13829char dlopen ();
13830int
13831main ()
13832{
13833return dlopen ();
13834  ;
13835  return 0;
13836}
13837_ACEOF
13838if ac_fn_c_try_link "$LINENO"; then :
13839  ac_cv_lib_dl_dlopen=yes
13840else
13841  ac_cv_lib_dl_dlopen=no
13842fi
13843rm -f core conftest.err conftest.$ac_objext \
13844    conftest$ac_exeext conftest.$ac_ext
13845LIBS=$ac_check_lib_save_LIBS
13846fi
13847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13848$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13849if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13850  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13851else
13852
13853    lt_cv_dlopen="dyld"
13854    lt_cv_dlopen_libs=
13855    lt_cv_dlopen_self=yes
13856
13857fi
13858
13859    ;;
13860
13861  *)
13862    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13863if test "x$ac_cv_func_shl_load" = xyes; then :
13864  lt_cv_dlopen="shl_load"
13865else
13866  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13867$as_echo_n "checking for shl_load in -ldld... " >&6; }
13868if ${ac_cv_lib_dld_shl_load+:} false; then :
13869  $as_echo_n "(cached) " >&6
13870else
13871  ac_check_lib_save_LIBS=$LIBS
13872LIBS="-ldld  $LIBS"
13873cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13874/* end confdefs.h.  */
13875
13876/* Override any GCC internal prototype to avoid an error.
13877   Use char because int might match the return type of a GCC
13878   builtin and then its argument prototype would still apply.  */
13879#ifdef __cplusplus
13880extern "C"
13881#endif
13882char shl_load ();
13883int
13884main ()
13885{
13886return shl_load ();
13887  ;
13888  return 0;
13889}
13890_ACEOF
13891if ac_fn_c_try_link "$LINENO"; then :
13892  ac_cv_lib_dld_shl_load=yes
13893else
13894  ac_cv_lib_dld_shl_load=no
13895fi
13896rm -f core conftest.err conftest.$ac_objext \
13897    conftest$ac_exeext conftest.$ac_ext
13898LIBS=$ac_check_lib_save_LIBS
13899fi
13900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13901$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13902if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13903  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13904else
13905  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13906if test "x$ac_cv_func_dlopen" = xyes; then :
13907  lt_cv_dlopen="dlopen"
13908else
13909  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13910$as_echo_n "checking for dlopen in -ldl... " >&6; }
13911if ${ac_cv_lib_dl_dlopen+:} false; then :
13912  $as_echo_n "(cached) " >&6
13913else
13914  ac_check_lib_save_LIBS=$LIBS
13915LIBS="-ldl  $LIBS"
13916cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13917/* end confdefs.h.  */
13918
13919/* Override any GCC internal prototype to avoid an error.
13920   Use char because int might match the return type of a GCC
13921   builtin and then its argument prototype would still apply.  */
13922#ifdef __cplusplus
13923extern "C"
13924#endif
13925char dlopen ();
13926int
13927main ()
13928{
13929return dlopen ();
13930  ;
13931  return 0;
13932}
13933_ACEOF
13934if ac_fn_c_try_link "$LINENO"; then :
13935  ac_cv_lib_dl_dlopen=yes
13936else
13937  ac_cv_lib_dl_dlopen=no
13938fi
13939rm -f core conftest.err conftest.$ac_objext \
13940    conftest$ac_exeext conftest.$ac_ext
13941LIBS=$ac_check_lib_save_LIBS
13942fi
13943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13944$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13945if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13946  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13947else
13948  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13949$as_echo_n "checking for dlopen in -lsvld... " >&6; }
13950if ${ac_cv_lib_svld_dlopen+:} false; then :
13951  $as_echo_n "(cached) " >&6
13952else
13953  ac_check_lib_save_LIBS=$LIBS
13954LIBS="-lsvld  $LIBS"
13955cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13956/* end confdefs.h.  */
13957
13958/* Override any GCC internal prototype to avoid an error.
13959   Use char because int might match the return type of a GCC
13960   builtin and then its argument prototype would still apply.  */
13961#ifdef __cplusplus
13962extern "C"
13963#endif
13964char dlopen ();
13965int
13966main ()
13967{
13968return dlopen ();
13969  ;
13970  return 0;
13971}
13972_ACEOF
13973if ac_fn_c_try_link "$LINENO"; then :
13974  ac_cv_lib_svld_dlopen=yes
13975else
13976  ac_cv_lib_svld_dlopen=no
13977fi
13978rm -f core conftest.err conftest.$ac_objext \
13979    conftest$ac_exeext conftest.$ac_ext
13980LIBS=$ac_check_lib_save_LIBS
13981fi
13982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13983$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13984if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13985  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13986else
13987  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13988$as_echo_n "checking for dld_link in -ldld... " >&6; }
13989if ${ac_cv_lib_dld_dld_link+:} false; then :
13990  $as_echo_n "(cached) " >&6
13991else
13992  ac_check_lib_save_LIBS=$LIBS
13993LIBS="-ldld  $LIBS"
13994cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13995/* end confdefs.h.  */
13996
13997/* Override any GCC internal prototype to avoid an error.
13998   Use char because int might match the return type of a GCC
13999   builtin and then its argument prototype would still apply.  */
14000#ifdef __cplusplus
14001extern "C"
14002#endif
14003char dld_link ();
14004int
14005main ()
14006{
14007return dld_link ();
14008  ;
14009  return 0;
14010}
14011_ACEOF
14012if ac_fn_c_try_link "$LINENO"; then :
14013  ac_cv_lib_dld_dld_link=yes
14014else
14015  ac_cv_lib_dld_dld_link=no
14016fi
14017rm -f core conftest.err conftest.$ac_objext \
14018    conftest$ac_exeext conftest.$ac_ext
14019LIBS=$ac_check_lib_save_LIBS
14020fi
14021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14022$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14023if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14024  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14025fi
14026
14027
14028fi
14029
14030
14031fi
14032
14033
14034fi
14035
14036
14037fi
14038
14039
14040fi
14041
14042    ;;
14043  esac
14044
14045  if test "x$lt_cv_dlopen" != xno; then
14046    enable_dlopen=yes
14047  else
14048    enable_dlopen=no
14049  fi
14050
14051  case $lt_cv_dlopen in
14052  dlopen)
14053    save_CPPFLAGS="$CPPFLAGS"
14054    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14055
14056    save_LDFLAGS="$LDFLAGS"
14057    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14058
14059    save_LIBS="$LIBS"
14060    LIBS="$lt_cv_dlopen_libs $LIBS"
14061
14062    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14063$as_echo_n "checking whether a program can dlopen itself... " >&6; }
14064if ${lt_cv_dlopen_self+:} false; then :
14065  $as_echo_n "(cached) " >&6
14066else
14067  	  if test "$cross_compiling" = yes; then :
14068  lt_cv_dlopen_self=cross
14069else
14070  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14071  lt_status=$lt_dlunknown
14072  cat > conftest.$ac_ext <<_LT_EOF
14073#line $LINENO "configure"
14074#include "confdefs.h"
14075
14076#if HAVE_DLFCN_H
14077#include <dlfcn.h>
14078#endif
14079
14080#include <stdio.h>
14081
14082#ifdef RTLD_GLOBAL
14083#  define LT_DLGLOBAL		RTLD_GLOBAL
14084#else
14085#  ifdef DL_GLOBAL
14086#    define LT_DLGLOBAL		DL_GLOBAL
14087#  else
14088#    define LT_DLGLOBAL		0
14089#  endif
14090#endif
14091
14092/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14093   find out it does not work in some platform. */
14094#ifndef LT_DLLAZY_OR_NOW
14095#  ifdef RTLD_LAZY
14096#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14097#  else
14098#    ifdef DL_LAZY
14099#      define LT_DLLAZY_OR_NOW		DL_LAZY
14100#    else
14101#      ifdef RTLD_NOW
14102#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14103#      else
14104#        ifdef DL_NOW
14105#          define LT_DLLAZY_OR_NOW	DL_NOW
14106#        else
14107#          define LT_DLLAZY_OR_NOW	0
14108#        endif
14109#      endif
14110#    endif
14111#  endif
14112#endif
14113
14114/* When -fvisbility=hidden is used, assume the code has been annotated
14115   correspondingly for the symbols needed.  */
14116#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14117int fnord () __attribute__((visibility("default")));
14118#endif
14119
14120int fnord () { return 42; }
14121int main ()
14122{
14123  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14124  int status = $lt_dlunknown;
14125
14126  if (self)
14127    {
14128      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14129      else
14130        {
14131	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14132          else puts (dlerror ());
14133	}
14134      /* dlclose (self); */
14135    }
14136  else
14137    puts (dlerror ());
14138
14139  return status;
14140}
14141_LT_EOF
14142  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14143  (eval $ac_link) 2>&5
14144  ac_status=$?
14145  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14146  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14147    (./conftest; exit; ) >&5 2>/dev/null
14148    lt_status=$?
14149    case x$lt_status in
14150      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14151      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14152      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14153    esac
14154  else :
14155    # compilation failed
14156    lt_cv_dlopen_self=no
14157  fi
14158fi
14159rm -fr conftest*
14160
14161
14162fi
14163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14164$as_echo "$lt_cv_dlopen_self" >&6; }
14165
14166    if test "x$lt_cv_dlopen_self" = xyes; then
14167      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14168      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14169$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14170if ${lt_cv_dlopen_self_static+:} false; then :
14171  $as_echo_n "(cached) " >&6
14172else
14173  	  if test "$cross_compiling" = yes; then :
14174  lt_cv_dlopen_self_static=cross
14175else
14176  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14177  lt_status=$lt_dlunknown
14178  cat > conftest.$ac_ext <<_LT_EOF
14179#line $LINENO "configure"
14180#include "confdefs.h"
14181
14182#if HAVE_DLFCN_H
14183#include <dlfcn.h>
14184#endif
14185
14186#include <stdio.h>
14187
14188#ifdef RTLD_GLOBAL
14189#  define LT_DLGLOBAL		RTLD_GLOBAL
14190#else
14191#  ifdef DL_GLOBAL
14192#    define LT_DLGLOBAL		DL_GLOBAL
14193#  else
14194#    define LT_DLGLOBAL		0
14195#  endif
14196#endif
14197
14198/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14199   find out it does not work in some platform. */
14200#ifndef LT_DLLAZY_OR_NOW
14201#  ifdef RTLD_LAZY
14202#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14203#  else
14204#    ifdef DL_LAZY
14205#      define LT_DLLAZY_OR_NOW		DL_LAZY
14206#    else
14207#      ifdef RTLD_NOW
14208#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14209#      else
14210#        ifdef DL_NOW
14211#          define LT_DLLAZY_OR_NOW	DL_NOW
14212#        else
14213#          define LT_DLLAZY_OR_NOW	0
14214#        endif
14215#      endif
14216#    endif
14217#  endif
14218#endif
14219
14220/* When -fvisbility=hidden is used, assume the code has been annotated
14221   correspondingly for the symbols needed.  */
14222#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14223int fnord () __attribute__((visibility("default")));
14224#endif
14225
14226int fnord () { return 42; }
14227int main ()
14228{
14229  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14230  int status = $lt_dlunknown;
14231
14232  if (self)
14233    {
14234      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14235      else
14236        {
14237	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14238          else puts (dlerror ());
14239	}
14240      /* dlclose (self); */
14241    }
14242  else
14243    puts (dlerror ());
14244
14245  return status;
14246}
14247_LT_EOF
14248  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14249  (eval $ac_link) 2>&5
14250  ac_status=$?
14251  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14252  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14253    (./conftest; exit; ) >&5 2>/dev/null
14254    lt_status=$?
14255    case x$lt_status in
14256      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14257      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14258      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14259    esac
14260  else :
14261    # compilation failed
14262    lt_cv_dlopen_self_static=no
14263  fi
14264fi
14265rm -fr conftest*
14266
14267
14268fi
14269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14270$as_echo "$lt_cv_dlopen_self_static" >&6; }
14271    fi
14272
14273    CPPFLAGS="$save_CPPFLAGS"
14274    LDFLAGS="$save_LDFLAGS"
14275    LIBS="$save_LIBS"
14276    ;;
14277  esac
14278
14279  case $lt_cv_dlopen_self in
14280  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14281  *) enable_dlopen_self=unknown ;;
14282  esac
14283
14284  case $lt_cv_dlopen_self_static in
14285  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14286  *) enable_dlopen_self_static=unknown ;;
14287  esac
14288fi
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306striplib=
14307old_striplib=
14308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14309$as_echo_n "checking whether stripping libraries is possible... " >&6; }
14310if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14311  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14312  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14314$as_echo "yes" >&6; }
14315else
14316# FIXME - insert some real tests, host_os isn't really good enough
14317  case $host_os in
14318  darwin*)
14319    if test -n "$STRIP" ; then
14320      striplib="$STRIP -x"
14321      old_striplib="$STRIP -S"
14322      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14323$as_echo "yes" >&6; }
14324    else
14325      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14326$as_echo "no" >&6; }
14327    fi
14328    ;;
14329  *)
14330    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14331$as_echo "no" >&6; }
14332    ;;
14333  esac
14334fi
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347  # Report which library types will actually be built
14348  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14349$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14351$as_echo "$can_build_shared" >&6; }
14352
14353  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14354$as_echo_n "checking whether to build shared libraries... " >&6; }
14355  test "$can_build_shared" = "no" && enable_shared=no
14356
14357  # On AIX, shared libraries and static libraries use the same namespace, and
14358  # are all built from PIC.
14359  case $host_os in
14360  aix3*)
14361    test "$enable_shared" = yes && enable_static=no
14362    if test -n "$RANLIB"; then
14363      archive_cmds="$archive_cmds~\$RANLIB \$lib"
14364      postinstall_cmds='$RANLIB $lib'
14365    fi
14366    ;;
14367
14368  aix[4-9]*)
14369    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14370      test "$enable_shared" = yes && enable_static=no
14371    fi
14372    ;;
14373  esac
14374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14375$as_echo "$enable_shared" >&6; }
14376
14377  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14378$as_echo_n "checking whether to build static libraries... " >&6; }
14379  # Make sure either enable_shared or enable_static is yes.
14380  test "$enable_shared" = yes || enable_static=yes
14381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14382$as_echo "$enable_static" >&6; }
14383
14384
14385
14386
14387fi
14388ac_ext=c
14389ac_cpp='$CPP $CPPFLAGS'
14390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14392ac_compiler_gnu=$ac_cv_c_compiler_gnu
14393
14394CC="$lt_save_CC"
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408        ac_config_commands="$ac_config_commands libtool"
14409
14410
14411
14412
14413# Only expand once:
14414
14415
14416
14417
14418# dolt, a replacement for libtool
14419# Josh Triplett <josh@freedesktop.org>
14420# Extract the first word of "bash", so it can be a program name with args.
14421set dummy bash; ac_word=$2
14422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14423$as_echo_n "checking for $ac_word... " >&6; }
14424if ${ac_cv_path_DOLT_BASH+:} false; then :
14425  $as_echo_n "(cached) " >&6
14426else
14427  case $DOLT_BASH in
14428  [\\/]* | ?:[\\/]*)
14429  ac_cv_path_DOLT_BASH="$DOLT_BASH" # Let the user override the test with a path.
14430  ;;
14431  *)
14432  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14433for as_dir in $PATH
14434do
14435  IFS=$as_save_IFS
14436  test -z "$as_dir" && as_dir=.
14437    for ac_exec_ext in '' $ac_executable_extensions; do
14438  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14439    ac_cv_path_DOLT_BASH="$as_dir/$ac_word$ac_exec_ext"
14440    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14441    break 2
14442  fi
14443done
14444  done
14445IFS=$as_save_IFS
14446
14447  ;;
14448esac
14449fi
14450DOLT_BASH=$ac_cv_path_DOLT_BASH
14451if test -n "$DOLT_BASH"; then
14452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOLT_BASH" >&5
14453$as_echo "$DOLT_BASH" >&6; }
14454else
14455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14456$as_echo "no" >&6; }
14457fi
14458
14459
14460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if dolt supports this host" >&5
14461$as_echo_n "checking if dolt supports this host... " >&6; }
14462dolt_supported=yes
14463if test x$DOLT_BASH = x; then
14464    dolt_supported=no
14465fi
14466if test x$GCC != xyes; then
14467    dolt_supported=no
14468fi
14469case $host in
14470i?86-*-linux*|x86_64-*-linux*|powerpc-*-linux* \
14471|amd64-*-freebsd*|i?86-*-freebsd*|ia64-*-freebsd*)
14472    pic_options='-fPIC'
14473    ;;
14474i?86-pc-cygwin*)
14475    pic_options='-DDLL_EXPORT'
14476    ;;
14477i?86-apple-darwin*)
14478    pic_options='-fno-common'
14479    ;;
14480*)
14481    dolt_supported=no
14482    ;;
14483esac
14484if test x$dolt_supported = xno ; then
14485    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, falling back to libtool" >&5
14486$as_echo "no, falling back to libtool" >&6; }
14487    LTCOMPILE='$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(COMPILE)'
14488    LTCXXCOMPILE='$(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXXCOMPILE)'
14489else
14490    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, replacing libtool" >&5
14491$as_echo "yes, replacing libtool" >&6; }
14492
14493    cat <<__DOLTCOMPILE__EOF__ >doltcompile
14494#!$DOLT_BASH
14495__DOLTCOMPILE__EOF__
14496    cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
14497args=("$@")
14498for ((arg=0; arg<${#args[@]}; arg++)) ; do
14499    if test x"${args[$arg]}" = x-o ; then
14500        objarg=$((arg+1))
14501        break
14502    fi
14503done
14504if test x$objarg = x ; then
14505    echo 'Error: no -o on compiler command line' 1>&2
14506    exit 1
14507fi
14508lo="${args[$objarg]}"
14509obj="${lo%.lo}"
14510if test x"$lo" = x"$obj" ; then
14511    echo "Error: libtool object file name \"$lo\" does not end in .lo" 1>&2
14512    exit 1
14513fi
14514objbase="${obj##*/}"
14515__DOLTCOMPILE__EOF__
14516
14517    if test x$enable_shared = xyes; then
14518        cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
14519libobjdir="${obj%$objbase}.libs"
14520if test ! -d "$libobjdir" ; then
14521    mkdir_out="$(mkdir "$libobjdir" 2>&1)"
14522    mkdir_ret=$?
14523    if test "$mkdir_ret" -ne 0 && test ! -d "$libobjdir" ; then
14524	echo "$mkdir_out" 1>&2
14525        exit $mkdir_ret
14526    fi
14527fi
14528pic_object="$libobjdir/$objbase.o"
14529args[$objarg]="$pic_object"
14530__DOLTCOMPILE__EOF__
14531    cat <<__DOLTCOMPILE__EOF__ >>doltcompile
14532"\${args[@]}" $pic_options -DPIC || exit \$?
14533__DOLTCOMPILE__EOF__
14534    fi
14535
14536    if test x$enable_static = xyes; then
14537        cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
14538non_pic_object="$obj.o"
14539args[$objarg]="$non_pic_object"
14540__DOLTCOMPILE__EOF__
14541        if test x$enable_shared = xyes; then
14542            cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
14543"${args[@]}" >/dev/null 2>&1 || exit $?
14544__DOLTCOMPILE__EOF__
14545        else
14546            cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
14547"${args[@]}" || exit $?
14548__DOLTCOMPILE__EOF__
14549        fi
14550    fi
14551
14552    cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
14553{
14554echo "# $lo - a libtool object file"
14555echo "# Generated by doltcompile, not libtool"
14556__DOLTCOMPILE__EOF__
14557
14558    if test x$enable_shared = xyes; then
14559        cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
14560echo "pic_object='.libs/${objbase}.o'"
14561__DOLTCOMPILE__EOF__
14562    else
14563        cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
14564echo pic_object=none
14565__DOLTCOMPILE__EOF__
14566    fi
14567
14568    if test x$enable_static = xyes; then
14569        cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
14570echo "non_pic_object='${objbase}.o'"
14571__DOLTCOMPILE__EOF__
14572    else
14573        cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
14574echo non_pic_object=none
14575__DOLTCOMPILE__EOF__
14576    fi
14577
14578    cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
14579} > "$lo"
14580__DOLTCOMPILE__EOF__
14581
14582    chmod +x doltcompile
14583    LTCOMPILE='$(top_builddir)/doltcompile $(COMPILE)'
14584    LTCXXCOMPILE='$(top_builddir)/doltcompile $(CXXCOMPILE)'
14585
14586    cat <<__DOLTLIBTOOL__EOF__ > doltlibtool
14587#!$DOLT_BASH
14588__DOLTLIBTOOL__EOF__
14589    cat <<'__DOLTLIBTOOL__EOF__' >>doltlibtool
14590top_builddir_slash="${0%%doltlibtool}"
14591: ${top_builddir_slash:=./}
14592args=()
14593modeok=false
14594tagok=false
14595for arg in "$@"; do
14596    case "$arg" in
14597        --silent) ;;
14598        --mode=compile) modeok=true ;;
14599        --tag=CC|--tag=CXX) tagok=true ;;
14600        *) args[${#args[@]}]="$arg" ;;
14601    esac
14602done
14603if $modeok && $tagok ; then
14604    . ${top_builddir_slash}doltcompile "${args[@]}"
14605else
14606    exec ${top_builddir_slash}libtool "$@"
14607fi
14608__DOLTLIBTOOL__EOF__
14609
14610    chmod +x doltlibtool
14611    LIBTOOL='$(top_builddir)/doltlibtool'
14612fi
14613
14614
14615# end dolt
14616
14617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
14618$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
14619set x ${MAKE-make}
14620ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
14621if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
14622  $as_echo_n "(cached) " >&6
14623else
14624  cat >conftest.make <<\_ACEOF
14625SHELL = /bin/sh
14626all:
14627	@echo '@@@%%%=$(MAKE)=@@@%%%'
14628_ACEOF
14629# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14630case `${MAKE-make} -f conftest.make 2>/dev/null` in
14631  *@@@%%%=?*=@@@%%%*)
14632    eval ac_cv_prog_make_${ac_make}_set=yes;;
14633  *)
14634    eval ac_cv_prog_make_${ac_make}_set=no;;
14635esac
14636rm -f conftest.make
14637fi
14638if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
14639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14640$as_echo "yes" >&6; }
14641  SET_MAKE=
14642else
14643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14644$as_echo "no" >&6; }
14645  SET_MAKE="MAKE=${MAKE-make}"
14646fi
14647
14648
14649
14650
14651
14652
14653
14654if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14655	if test -n "$ac_tool_prefix"; then
14656  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14657set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14659$as_echo_n "checking for $ac_word... " >&6; }
14660if ${ac_cv_path_PKG_CONFIG+:} false; then :
14661  $as_echo_n "(cached) " >&6
14662else
14663  case $PKG_CONFIG in
14664  [\\/]* | ?:[\\/]*)
14665  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14666  ;;
14667  *)
14668  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14669for as_dir in $PATH
14670do
14671  IFS=$as_save_IFS
14672  test -z "$as_dir" && as_dir=.
14673    for ac_exec_ext in '' $ac_executable_extensions; do
14674  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14675    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14676    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14677    break 2
14678  fi
14679done
14680  done
14681IFS=$as_save_IFS
14682
14683  ;;
14684esac
14685fi
14686PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14687if test -n "$PKG_CONFIG"; then
14688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14689$as_echo "$PKG_CONFIG" >&6; }
14690else
14691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14692$as_echo "no" >&6; }
14693fi
14694
14695
14696fi
14697if test -z "$ac_cv_path_PKG_CONFIG"; then
14698  ac_pt_PKG_CONFIG=$PKG_CONFIG
14699  # Extract the first word of "pkg-config", so it can be a program name with args.
14700set dummy pkg-config; ac_word=$2
14701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14702$as_echo_n "checking for $ac_word... " >&6; }
14703if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
14704  $as_echo_n "(cached) " >&6
14705else
14706  case $ac_pt_PKG_CONFIG in
14707  [\\/]* | ?:[\\/]*)
14708  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14709  ;;
14710  *)
14711  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14712for as_dir in $PATH
14713do
14714  IFS=$as_save_IFS
14715  test -z "$as_dir" && as_dir=.
14716    for ac_exec_ext in '' $ac_executable_extensions; do
14717  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14718    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14719    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14720    break 2
14721  fi
14722done
14723  done
14724IFS=$as_save_IFS
14725
14726  ;;
14727esac
14728fi
14729ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14730if test -n "$ac_pt_PKG_CONFIG"; then
14731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14732$as_echo "$ac_pt_PKG_CONFIG" >&6; }
14733else
14734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14735$as_echo "no" >&6; }
14736fi
14737
14738  if test "x$ac_pt_PKG_CONFIG" = x; then
14739    PKG_CONFIG=""
14740  else
14741    case $cross_compiling:$ac_tool_warned in
14742yes:)
14743{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14744$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14745ac_tool_warned=yes ;;
14746esac
14747    PKG_CONFIG=$ac_pt_PKG_CONFIG
14748  fi
14749else
14750  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14751fi
14752
14753fi
14754if test -n "$PKG_CONFIG"; then
14755	_pkg_min_version=0.9.0
14756	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14757$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14758	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14759		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14760$as_echo "yes" >&6; }
14761	else
14762		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14763$as_echo "no" >&6; }
14764		PKG_CONFIG=""
14765	fi
14766fi
14767for ac_prog in flex lex
14768do
14769  # Extract the first word of "$ac_prog", so it can be a program name with args.
14770set dummy $ac_prog; ac_word=$2
14771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14772$as_echo_n "checking for $ac_word... " >&6; }
14773if ${ac_cv_prog_LEX+:} false; then :
14774  $as_echo_n "(cached) " >&6
14775else
14776  if test -n "$LEX"; then
14777  ac_cv_prog_LEX="$LEX" # Let the user override the test.
14778else
14779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14780for as_dir in $PATH
14781do
14782  IFS=$as_save_IFS
14783  test -z "$as_dir" && as_dir=.
14784    for ac_exec_ext in '' $ac_executable_extensions; do
14785  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14786    ac_cv_prog_LEX="$ac_prog"
14787    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14788    break 2
14789  fi
14790done
14791  done
14792IFS=$as_save_IFS
14793
14794fi
14795fi
14796LEX=$ac_cv_prog_LEX
14797if test -n "$LEX"; then
14798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
14799$as_echo "$LEX" >&6; }
14800else
14801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14802$as_echo "no" >&6; }
14803fi
14804
14805
14806  test -n "$LEX" && break
14807done
14808test -n "$LEX" || LEX=":"
14809
14810if test "x$LEX" != "x:"; then
14811  cat >conftest.l <<_ACEOF
14812%%
14813a { ECHO; }
14814b { REJECT; }
14815c { yymore (); }
14816d { yyless (1); }
14817e { yyless (input () != 0); }
14818f { unput (yytext[0]); }
14819. { BEGIN INITIAL; }
14820%%
14821#ifdef YYTEXT_POINTER
14822extern char *yytext;
14823#endif
14824int
14825main (void)
14826{
14827  return ! yylex () + ! yywrap ();
14828}
14829_ACEOF
14830{ { ac_try="$LEX conftest.l"
14831case "(($ac_try" in
14832  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14833  *) ac_try_echo=$ac_try;;
14834esac
14835eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14836$as_echo "$ac_try_echo"; } >&5
14837  (eval "$LEX conftest.l") 2>&5
14838  ac_status=$?
14839  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14840  test $ac_status = 0; }
14841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
14842$as_echo_n "checking lex output file root... " >&6; }
14843if ${ac_cv_prog_lex_root+:} false; then :
14844  $as_echo_n "(cached) " >&6
14845else
14846
14847if test -f lex.yy.c; then
14848  ac_cv_prog_lex_root=lex.yy
14849elif test -f lexyy.c; then
14850  ac_cv_prog_lex_root=lexyy
14851else
14852  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
14853fi
14854fi
14855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
14856$as_echo "$ac_cv_prog_lex_root" >&6; }
14857LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
14858
14859if test -z "${LEXLIB+set}"; then
14860  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
14861$as_echo_n "checking lex library... " >&6; }
14862if ${ac_cv_lib_lex+:} false; then :
14863  $as_echo_n "(cached) " >&6
14864else
14865
14866    ac_save_LIBS=$LIBS
14867    ac_cv_lib_lex='none needed'
14868    for ac_lib in '' -lfl -ll; do
14869      LIBS="$ac_lib $ac_save_LIBS"
14870      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14871/* end confdefs.h.  */
14872`cat $LEX_OUTPUT_ROOT.c`
14873_ACEOF
14874if ac_fn_c_try_link "$LINENO"; then :
14875  ac_cv_lib_lex=$ac_lib
14876fi
14877rm -f core conftest.err conftest.$ac_objext \
14878    conftest$ac_exeext conftest.$ac_ext
14879      test "$ac_cv_lib_lex" != 'none needed' && break
14880    done
14881    LIBS=$ac_save_LIBS
14882
14883fi
14884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
14885$as_echo "$ac_cv_lib_lex" >&6; }
14886  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
14887fi
14888
14889
14890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
14891$as_echo_n "checking whether yytext is a pointer... " >&6; }
14892if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
14893  $as_echo_n "(cached) " >&6
14894else
14895  # POSIX says lex can declare yytext either as a pointer or an array; the
14896# default is implementation-dependent.  Figure out which it is, since
14897# not all implementations provide the %pointer and %array declarations.
14898ac_cv_prog_lex_yytext_pointer=no
14899ac_save_LIBS=$LIBS
14900LIBS="$LEXLIB $ac_save_LIBS"
14901cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14902/* end confdefs.h.  */
14903
14904  #define YYTEXT_POINTER 1
14905`cat $LEX_OUTPUT_ROOT.c`
14906_ACEOF
14907if ac_fn_c_try_link "$LINENO"; then :
14908  ac_cv_prog_lex_yytext_pointer=yes
14909fi
14910rm -f core conftest.err conftest.$ac_objext \
14911    conftest$ac_exeext conftest.$ac_ext
14912LIBS=$ac_save_LIBS
14913
14914fi
14915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
14916$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
14917if test $ac_cv_prog_lex_yytext_pointer = yes; then
14918
14919$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
14920
14921fi
14922rm -f conftest.l $LEX_OUTPUT_ROOT.c
14923
14924fi
14925for ac_prog in 'bison -y' byacc
14926do
14927  # Extract the first word of "$ac_prog", so it can be a program name with args.
14928set dummy $ac_prog; ac_word=$2
14929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14930$as_echo_n "checking for $ac_word... " >&6; }
14931if ${ac_cv_prog_YACC+:} false; then :
14932  $as_echo_n "(cached) " >&6
14933else
14934  if test -n "$YACC"; then
14935  ac_cv_prog_YACC="$YACC" # Let the user override the test.
14936else
14937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14938for as_dir in $PATH
14939do
14940  IFS=$as_save_IFS
14941  test -z "$as_dir" && as_dir=.
14942    for ac_exec_ext in '' $ac_executable_extensions; do
14943  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14944    ac_cv_prog_YACC="$ac_prog"
14945    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14946    break 2
14947  fi
14948done
14949  done
14950IFS=$as_save_IFS
14951
14952fi
14953fi
14954YACC=$ac_cv_prog_YACC
14955if test -n "$YACC"; then
14956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
14957$as_echo "$YACC" >&6; }
14958else
14959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14960$as_echo "no" >&6; }
14961fi
14962
14963
14964  test -n "$YACC" && break
14965done
14966test -n "$YACC" || YACC="yacc"
14967
14968# Check whether --enable-largefile was given.
14969if test "${enable_largefile+set}" = set; then :
14970  enableval=$enable_largefile;
14971fi
14972
14973if test "$enable_largefile" != no; then
14974
14975  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
14976$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
14977if ${ac_cv_sys_largefile_CC+:} false; then :
14978  $as_echo_n "(cached) " >&6
14979else
14980  ac_cv_sys_largefile_CC=no
14981     if test "$GCC" != yes; then
14982       ac_save_CC=$CC
14983       while :; do
14984	 # IRIX 6.2 and later do not support large files by default,
14985	 # so use the C compiler's -n32 option if that helps.
14986	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14987/* end confdefs.h.  */
14988#include <sys/types.h>
14989 /* Check that off_t can represent 2**63 - 1 correctly.
14990    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14991    since some C++ compilers masquerading as C compilers
14992    incorrectly reject 9223372036854775807.  */
14993#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14994  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14995		       && LARGE_OFF_T % 2147483647 == 1)
14996		      ? 1 : -1];
14997int
14998main ()
14999{
15000
15001  ;
15002  return 0;
15003}
15004_ACEOF
15005	 if ac_fn_c_try_compile "$LINENO"; then :
15006  break
15007fi
15008rm -f core conftest.err conftest.$ac_objext
15009	 CC="$CC -n32"
15010	 if ac_fn_c_try_compile "$LINENO"; then :
15011  ac_cv_sys_largefile_CC=' -n32'; break
15012fi
15013rm -f core conftest.err conftest.$ac_objext
15014	 break
15015       done
15016       CC=$ac_save_CC
15017       rm -f conftest.$ac_ext
15018    fi
15019fi
15020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15021$as_echo "$ac_cv_sys_largefile_CC" >&6; }
15022  if test "$ac_cv_sys_largefile_CC" != no; then
15023    CC=$CC$ac_cv_sys_largefile_CC
15024  fi
15025
15026  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15027$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15028if ${ac_cv_sys_file_offset_bits+:} false; then :
15029  $as_echo_n "(cached) " >&6
15030else
15031  while :; do
15032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15033/* end confdefs.h.  */
15034#include <sys/types.h>
15035 /* Check that off_t can represent 2**63 - 1 correctly.
15036    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15037    since some C++ compilers masquerading as C compilers
15038    incorrectly reject 9223372036854775807.  */
15039#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15040  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15041		       && LARGE_OFF_T % 2147483647 == 1)
15042		      ? 1 : -1];
15043int
15044main ()
15045{
15046
15047  ;
15048  return 0;
15049}
15050_ACEOF
15051if ac_fn_c_try_compile "$LINENO"; then :
15052  ac_cv_sys_file_offset_bits=no; break
15053fi
15054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15055  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15056/* end confdefs.h.  */
15057#define _FILE_OFFSET_BITS 64
15058#include <sys/types.h>
15059 /* Check that off_t can represent 2**63 - 1 correctly.
15060    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15061    since some C++ compilers masquerading as C compilers
15062    incorrectly reject 9223372036854775807.  */
15063#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15064  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15065		       && LARGE_OFF_T % 2147483647 == 1)
15066		      ? 1 : -1];
15067int
15068main ()
15069{
15070
15071  ;
15072  return 0;
15073}
15074_ACEOF
15075if ac_fn_c_try_compile "$LINENO"; then :
15076  ac_cv_sys_file_offset_bits=64; break
15077fi
15078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15079  ac_cv_sys_file_offset_bits=unknown
15080  break
15081done
15082fi
15083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15084$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15085case $ac_cv_sys_file_offset_bits in #(
15086  no | unknown) ;;
15087  *)
15088cat >>confdefs.h <<_ACEOF
15089#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15090_ACEOF
15091;;
15092esac
15093rm -rf conftest*
15094  if test $ac_cv_sys_file_offset_bits = unknown; then
15095    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15096$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15097if ${ac_cv_sys_large_files+:} false; then :
15098  $as_echo_n "(cached) " >&6
15099else
15100  while :; do
15101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15102/* end confdefs.h.  */
15103#include <sys/types.h>
15104 /* Check that off_t can represent 2**63 - 1 correctly.
15105    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15106    since some C++ compilers masquerading as C compilers
15107    incorrectly reject 9223372036854775807.  */
15108#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15109  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15110		       && LARGE_OFF_T % 2147483647 == 1)
15111		      ? 1 : -1];
15112int
15113main ()
15114{
15115
15116  ;
15117  return 0;
15118}
15119_ACEOF
15120if ac_fn_c_try_compile "$LINENO"; then :
15121  ac_cv_sys_large_files=no; break
15122fi
15123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15124  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15125/* end confdefs.h.  */
15126#define _LARGE_FILES 1
15127#include <sys/types.h>
15128 /* Check that off_t can represent 2**63 - 1 correctly.
15129    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15130    since some C++ compilers masquerading as C compilers
15131    incorrectly reject 9223372036854775807.  */
15132#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15133  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15134		       && LARGE_OFF_T % 2147483647 == 1)
15135		      ? 1 : -1];
15136int
15137main ()
15138{
15139
15140  ;
15141  return 0;
15142}
15143_ACEOF
15144if ac_fn_c_try_compile "$LINENO"; then :
15145  ac_cv_sys_large_files=1; break
15146fi
15147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15148  ac_cv_sys_large_files=unknown
15149  break
15150done
15151fi
15152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15153$as_echo "$ac_cv_sys_large_files" >&6; }
15154case $ac_cv_sys_large_files in #(
15155  no | unknown) ;;
15156  *)
15157cat >>confdefs.h <<_ACEOF
15158#define _LARGE_FILES $ac_cv_sys_large_files
15159_ACEOF
15160;;
15161esac
15162rm -rf conftest*
15163  fi
15164fi
15165
15166
15167
15168for ac_prog in cpp
15169do
15170  # Extract the first word of "$ac_prog", so it can be a program name with args.
15171set dummy $ac_prog; ac_word=$2
15172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15173$as_echo_n "checking for $ac_word... " >&6; }
15174if ${ac_cv_path_RAWCPP+:} false; then :
15175  $as_echo_n "(cached) " >&6
15176else
15177  case $RAWCPP in
15178  [\\/]* | ?:[\\/]*)
15179  ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
15180  ;;
15181  *)
15182  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15183as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
15184for as_dir in $as_dummy
15185do
15186  IFS=$as_save_IFS
15187  test -z "$as_dir" && as_dir=.
15188    for ac_exec_ext in '' $ac_executable_extensions; do
15189  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15190    ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext"
15191    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15192    break 2
15193  fi
15194done
15195  done
15196IFS=$as_save_IFS
15197
15198  ;;
15199esac
15200fi
15201RAWCPP=$ac_cv_path_RAWCPP
15202if test -n "$RAWCPP"; then
15203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5
15204$as_echo "$RAWCPP" >&6; }
15205else
15206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15207$as_echo "no" >&6; }
15208fi
15209
15210
15211  test -n "$RAWCPP" && break
15212done
15213test -n "$RAWCPP" || RAWCPP="${CPP}"
15214
15215
15216# Check for flag to avoid builtin definitions - assumes unix is predefined,
15217# which is not the best choice for supporting other OS'es, but covers most
15218# of the ones we need for now.
15219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5
15220$as_echo_n "checking if $RAWCPP requires -undef... " >&6; }
15221cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15222/* end confdefs.h.  */
15223Does cpp redefine unix ?
15224_ACEOF
15225if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
15226	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15227$as_echo "no" >&6; }
15228else
15229	if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
15230		RAWCPPFLAGS=-undef
15231		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15232$as_echo "yes" >&6; }
15233	# under Cygwin unix is still defined even with -undef
15234	elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
15235		RAWCPPFLAGS="-undef -ansi"
15236		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5
15237$as_echo "yes, with -ansi" >&6; }
15238	else
15239		as_fn_error $? "${RAWCPP} defines unix with or without -undef.  I don't know what to do." "$LINENO" 5
15240	fi
15241fi
15242rm -f conftest.$ac_ext
15243
15244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5
15245$as_echo_n "checking if $RAWCPP requires -traditional... " >&6; }
15246cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15247/* end confdefs.h.  */
15248Does cpp preserve   "whitespace"?
15249_ACEOF
15250if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
15251	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15252$as_echo "no" >&6; }
15253else
15254	if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
15255		RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
15256		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15257$as_echo "yes" >&6; }
15258	else
15259		as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional.  I don't know what to do." "$LINENO" 5
15260	fi
15261fi
15262rm -f conftest.$ac_ext
15263
15264
15265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
15266$as_echo_n "checking for a sed that does not truncate output... " >&6; }
15267if ${ac_cv_path_SED+:} false; then :
15268  $as_echo_n "(cached) " >&6
15269else
15270            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
15271     for ac_i in 1 2 3 4 5 6 7; do
15272       ac_script="$ac_script$as_nl$ac_script"
15273     done
15274     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
15275     { ac_script=; unset ac_script;}
15276     if test -z "$SED"; then
15277  ac_path_SED_found=false
15278  # Loop through the user's path and test for each of PROGNAME-LIST
15279  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15280for as_dir in $PATH
15281do
15282  IFS=$as_save_IFS
15283  test -z "$as_dir" && as_dir=.
15284    for ac_prog in sed gsed; do
15285    for ac_exec_ext in '' $ac_executable_extensions; do
15286      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
15287      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
15288# Check for GNU ac_path_SED and select it if it is found.
15289  # Check for GNU $ac_path_SED
15290case `"$ac_path_SED" --version 2>&1` in
15291*GNU*)
15292  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
15293*)
15294  ac_count=0
15295  $as_echo_n 0123456789 >"conftest.in"
15296  while :
15297  do
15298    cat "conftest.in" "conftest.in" >"conftest.tmp"
15299    mv "conftest.tmp" "conftest.in"
15300    cp "conftest.in" "conftest.nl"
15301    $as_echo '' >> "conftest.nl"
15302    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
15303    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
15304    as_fn_arith $ac_count + 1 && ac_count=$as_val
15305    if test $ac_count -gt ${ac_path_SED_max-0}; then
15306      # Best one so far, save it but keep looking for a better one
15307      ac_cv_path_SED="$ac_path_SED"
15308      ac_path_SED_max=$ac_count
15309    fi
15310    # 10*(2^10) chars as input seems more than enough
15311    test $ac_count -gt 10 && break
15312  done
15313  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
15314esac
15315
15316      $ac_path_SED_found && break 3
15317    done
15318  done
15319  done
15320IFS=$as_save_IFS
15321  if test -z "$ac_cv_path_SED"; then
15322    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
15323  fi
15324else
15325  ac_cv_path_SED=$SED
15326fi
15327
15328fi
15329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
15330$as_echo "$ac_cv_path_SED" >&6; }
15331 SED="$ac_cv_path_SED"
15332  rm -f conftest.sed
15333
15334
15335# Quoted so that make will expand $(CWARNFLAGS) in makefiles to allow
15336# easier overrides at build time.
15337XSERVER_CFLAGS='$(CWARNFLAGS)'
15338
15339
15340# Check whether --with-dtrace was given.
15341if test "${with_dtrace+set}" = set; then :
15342  withval=$with_dtrace; WDTRACE=$withval
15343else
15344  WDTRACE=auto
15345fi
15346
15347if test "x$WDTRACE" = "xyes" -o "x$WDTRACE" = "xauto" ; then
15348	# Extract the first word of "dtrace", so it can be a program name with args.
15349set dummy dtrace; ac_word=$2
15350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15351$as_echo_n "checking for $ac_word... " >&6; }
15352if ${ac_cv_path_DTRACE+:} false; then :
15353  $as_echo_n "(cached) " >&6
15354else
15355  case $DTRACE in
15356  [\\/]* | ?:[\\/]*)
15357  ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
15358  ;;
15359  *)
15360  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15361as_dummy="$PATH:/usr/sbin"
15362for as_dir in $as_dummy
15363do
15364  IFS=$as_save_IFS
15365  test -z "$as_dir" && as_dir=.
15366    for ac_exec_ext in '' $ac_executable_extensions; do
15367  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15368    ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
15369    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15370    break 2
15371  fi
15372done
15373  done
15374IFS=$as_save_IFS
15375
15376  test -z "$ac_cv_path_DTRACE" && ac_cv_path_DTRACE="not_found"
15377  ;;
15378esac
15379fi
15380DTRACE=$ac_cv_path_DTRACE
15381if test -n "$DTRACE"; then
15382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
15383$as_echo "$DTRACE" >&6; }
15384else
15385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15386$as_echo "no" >&6; }
15387fi
15388
15389
15390	if test "x$DTRACE" = "xnot_found" ; then
15391		if test "x$WDTRACE" = "xyes" ; then
15392			{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15393$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15394as_fn_error $? "dtrace requested but not found
15395See \`config.log' for more details" "$LINENO" 5; }
15396		fi
15397		WDTRACE="no"
15398	else
15399		ac_fn_c_check_header_mongrel "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default"
15400if test "x$ac_cv_header_sys_sdt_h" = xyes; then :
15401  HAS_SDT_H="yes"
15402else
15403  HAS_SDT_H="no"
15404fi
15405
15406
15407		if test "x$WDTRACE" = "xauto" -a "x$HAS_SDT_H" = "xno" ; then
15408			WDTRACE="no"
15409		fi
15410	fi
15411fi
15412if test "x$WDTRACE" != "xno" ; then
15413
15414$as_echo "#define XSERVER_DTRACE 1" >>confdefs.h
15415
15416
15417# Solaris/OpenSolaris require dtrace -G to build dtrace probe information into
15418# object files, and require linking with those as relocatable objects, not .a
15419# archives. MacOS X handles all this in the normal compiler toolchain, and on
15420# some releases (like Tiger), will error out on dtrace -G.  For now, other
15421# platforms with Dtrace ports are assumed to support -G (the FreeBSD and Linux
15422# ports appear to, based on my web searches, but have not yet been tested).
15423	case $host_os in
15424		darwin*)	SPECIAL_DTRACE_OBJECTS=no ;;
15425		*)		SPECIAL_DTRACE_OBJECTS=yes ;;
15426	esac
15427fi
15428 if test "x$WDTRACE" != "xno"; then
15429  XSERVER_DTRACE_TRUE=
15430  XSERVER_DTRACE_FALSE='#'
15431else
15432  XSERVER_DTRACE_TRUE='#'
15433  XSERVER_DTRACE_FALSE=
15434fi
15435
15436 if test "x$SPECIAL_DTRACE_OBJECTS" = "xyes"; then
15437  SPECIAL_DTRACE_OBJECTS_TRUE=
15438  SPECIAL_DTRACE_OBJECTS_FALSE='#'
15439else
15440  SPECIAL_DTRACE_OBJECTS_TRUE='#'
15441  SPECIAL_DTRACE_OBJECTS_FALSE=
15442fi
15443
15444
15445ac_header_dirent=no
15446for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15447  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
15449$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
15450if eval \${$as_ac_Header+:} false; then :
15451  $as_echo_n "(cached) " >&6
15452else
15453  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15454/* end confdefs.h.  */
15455#include <sys/types.h>
15456#include <$ac_hdr>
15457
15458int
15459main ()
15460{
15461if ((DIR *) 0)
15462return 0;
15463  ;
15464  return 0;
15465}
15466_ACEOF
15467if ac_fn_c_try_compile "$LINENO"; then :
15468  eval "$as_ac_Header=yes"
15469else
15470  eval "$as_ac_Header=no"
15471fi
15472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15473fi
15474eval ac_res=\$$as_ac_Header
15475	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15476$as_echo "$ac_res" >&6; }
15477if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15478  cat >>confdefs.h <<_ACEOF
15479#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15480_ACEOF
15481
15482ac_header_dirent=$ac_hdr; break
15483fi
15484
15485done
15486# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15487if test $ac_header_dirent = dirent.h; then
15488  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15489$as_echo_n "checking for library containing opendir... " >&6; }
15490if ${ac_cv_search_opendir+:} false; then :
15491  $as_echo_n "(cached) " >&6
15492else
15493  ac_func_search_save_LIBS=$LIBS
15494cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15495/* end confdefs.h.  */
15496
15497/* Override any GCC internal prototype to avoid an error.
15498   Use char because int might match the return type of a GCC
15499   builtin and then its argument prototype would still apply.  */
15500#ifdef __cplusplus
15501extern "C"
15502#endif
15503char opendir ();
15504int
15505main ()
15506{
15507return opendir ();
15508  ;
15509  return 0;
15510}
15511_ACEOF
15512for ac_lib in '' dir; do
15513  if test -z "$ac_lib"; then
15514    ac_res="none required"
15515  else
15516    ac_res=-l$ac_lib
15517    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15518  fi
15519  if ac_fn_c_try_link "$LINENO"; then :
15520  ac_cv_search_opendir=$ac_res
15521fi
15522rm -f core conftest.err conftest.$ac_objext \
15523    conftest$ac_exeext
15524  if ${ac_cv_search_opendir+:} false; then :
15525  break
15526fi
15527done
15528if ${ac_cv_search_opendir+:} false; then :
15529
15530else
15531  ac_cv_search_opendir=no
15532fi
15533rm conftest.$ac_ext
15534LIBS=$ac_func_search_save_LIBS
15535fi
15536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15537$as_echo "$ac_cv_search_opendir" >&6; }
15538ac_res=$ac_cv_search_opendir
15539if test "$ac_res" != no; then :
15540  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15541
15542fi
15543
15544else
15545  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15546$as_echo_n "checking for library containing opendir... " >&6; }
15547if ${ac_cv_search_opendir+:} false; then :
15548  $as_echo_n "(cached) " >&6
15549else
15550  ac_func_search_save_LIBS=$LIBS
15551cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15552/* end confdefs.h.  */
15553
15554/* Override any GCC internal prototype to avoid an error.
15555   Use char because int might match the return type of a GCC
15556   builtin and then its argument prototype would still apply.  */
15557#ifdef __cplusplus
15558extern "C"
15559#endif
15560char opendir ();
15561int
15562main ()
15563{
15564return opendir ();
15565  ;
15566  return 0;
15567}
15568_ACEOF
15569for ac_lib in '' x; do
15570  if test -z "$ac_lib"; then
15571    ac_res="none required"
15572  else
15573    ac_res=-l$ac_lib
15574    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15575  fi
15576  if ac_fn_c_try_link "$LINENO"; then :
15577  ac_cv_search_opendir=$ac_res
15578fi
15579rm -f core conftest.err conftest.$ac_objext \
15580    conftest$ac_exeext
15581  if ${ac_cv_search_opendir+:} false; then :
15582  break
15583fi
15584done
15585if ${ac_cv_search_opendir+:} false; then :
15586
15587else
15588  ac_cv_search_opendir=no
15589fi
15590rm conftest.$ac_ext
15591LIBS=$ac_func_search_save_LIBS
15592fi
15593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15594$as_echo "$ac_cv_search_opendir" >&6; }
15595ac_res=$ac_cv_search_opendir
15596if test "$ac_res" != no; then :
15597  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15598
15599fi
15600
15601fi
15602
15603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15604$as_echo_n "checking for ANSI C header files... " >&6; }
15605if ${ac_cv_header_stdc+:} false; then :
15606  $as_echo_n "(cached) " >&6
15607else
15608  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15609/* end confdefs.h.  */
15610#include <stdlib.h>
15611#include <stdarg.h>
15612#include <string.h>
15613#include <float.h>
15614
15615int
15616main ()
15617{
15618
15619  ;
15620  return 0;
15621}
15622_ACEOF
15623if ac_fn_c_try_compile "$LINENO"; then :
15624  ac_cv_header_stdc=yes
15625else
15626  ac_cv_header_stdc=no
15627fi
15628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15629
15630if test $ac_cv_header_stdc = yes; then
15631  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15633/* end confdefs.h.  */
15634#include <string.h>
15635
15636_ACEOF
15637if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15638  $EGREP "memchr" >/dev/null 2>&1; then :
15639
15640else
15641  ac_cv_header_stdc=no
15642fi
15643rm -f conftest*
15644
15645fi
15646
15647if test $ac_cv_header_stdc = yes; then
15648  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15650/* end confdefs.h.  */
15651#include <stdlib.h>
15652
15653_ACEOF
15654if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15655  $EGREP "free" >/dev/null 2>&1; then :
15656
15657else
15658  ac_cv_header_stdc=no
15659fi
15660rm -f conftest*
15661
15662fi
15663
15664if test $ac_cv_header_stdc = yes; then
15665  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15666  if test "$cross_compiling" = yes; then :
15667  :
15668else
15669  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15670/* end confdefs.h.  */
15671#include <ctype.h>
15672#include <stdlib.h>
15673#if ((' ' & 0x0FF) == 0x020)
15674# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15675# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15676#else
15677# define ISLOWER(c) \
15678		   (('a' <= (c) && (c) <= 'i') \
15679		     || ('j' <= (c) && (c) <= 'r') \
15680		     || ('s' <= (c) && (c) <= 'z'))
15681# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15682#endif
15683
15684#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15685int
15686main ()
15687{
15688  int i;
15689  for (i = 0; i < 256; i++)
15690    if (XOR (islower (i), ISLOWER (i))
15691	|| toupper (i) != TOUPPER (i))
15692      return 2;
15693  return 0;
15694}
15695_ACEOF
15696if ac_fn_c_try_run "$LINENO"; then :
15697
15698else
15699  ac_cv_header_stdc=no
15700fi
15701rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15702  conftest.$ac_objext conftest.beam conftest.$ac_ext
15703fi
15704
15705fi
15706fi
15707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15708$as_echo "$ac_cv_header_stdc" >&6; }
15709if test $ac_cv_header_stdc = yes; then
15710
15711$as_echo "#define STDC_HEADERS 1" >>confdefs.h
15712
15713fi
15714
15715for ac_header in fcntl.h stdlib.h string.h unistd.h dlfcn.h stropts.h fnmatch.h sys/utsname.h
15716do :
15717  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15718ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15719if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15720  cat >>confdefs.h <<_ACEOF
15721#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15722_ACEOF
15723
15724fi
15725
15726done
15727
15728
15729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15730$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
15731if ${ac_cv_c_const+:} false; then :
15732  $as_echo_n "(cached) " >&6
15733else
15734  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15735/* end confdefs.h.  */
15736
15737int
15738main ()
15739{
15740/* FIXME: Include the comments suggested by Paul. */
15741#ifndef __cplusplus
15742  /* Ultrix mips cc rejects this.  */
15743  typedef int charset[2];
15744  const charset cs;
15745  /* SunOS 4.1.1 cc rejects this.  */
15746  char const *const *pcpcc;
15747  char **ppc;
15748  /* NEC SVR4.0.2 mips cc rejects this.  */
15749  struct point {int x, y;};
15750  static struct point const zero = {0,0};
15751  /* AIX XL C 1.02.0.0 rejects this.
15752     It does not let you subtract one const X* pointer from another in
15753     an arm of an if-expression whose if-part is not a constant
15754     expression */
15755  const char *g = "string";
15756  pcpcc = &g + (g ? g-g : 0);
15757  /* HPUX 7.0 cc rejects these. */
15758  ++pcpcc;
15759  ppc = (char**) pcpcc;
15760  pcpcc = (char const *const *) ppc;
15761  { /* SCO 3.2v4 cc rejects this.  */
15762    char *t;
15763    char const *s = 0 ? (char *) 0 : (char const *) 0;
15764
15765    *t++ = 0;
15766    if (s) return 0;
15767  }
15768  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
15769    int x[] = {25, 17};
15770    const int *foo = &x[0];
15771    ++foo;
15772  }
15773  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15774    typedef const int *iptr;
15775    iptr p = 0;
15776    ++p;
15777  }
15778  { /* AIX XL C 1.02.0.0 rejects this saying
15779       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15780    struct s { int j; const int *ap[3]; };
15781    struct s *b; b->j = 5;
15782  }
15783  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15784    const int foo = 10;
15785    if (!foo) return 0;
15786  }
15787  return !cs[0] && !zero.x;
15788#endif
15789
15790  ;
15791  return 0;
15792}
15793_ACEOF
15794if ac_fn_c_try_compile "$LINENO"; then :
15795  ac_cv_c_const=yes
15796else
15797  ac_cv_c_const=no
15798fi
15799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15800fi
15801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15802$as_echo "$ac_cv_c_const" >&6; }
15803if test $ac_cv_c_const = no; then
15804
15805$as_echo "#define const /**/" >>confdefs.h
15806
15807fi
15808
15809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15810$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15811if ${ac_cv_c_bigendian+:} false; then :
15812  $as_echo_n "(cached) " >&6
15813else
15814  ac_cv_c_bigendian=unknown
15815    # See if we're dealing with a universal compiler.
15816    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15817/* end confdefs.h.  */
15818#ifndef __APPLE_CC__
15819	       not a universal capable compiler
15820	     #endif
15821	     typedef int dummy;
15822
15823_ACEOF
15824if ac_fn_c_try_compile "$LINENO"; then :
15825
15826	# Check for potential -arch flags.  It is not universal unless
15827	# there are at least two -arch flags with different values.
15828	ac_arch=
15829	ac_prev=
15830	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15831	 if test -n "$ac_prev"; then
15832	   case $ac_word in
15833	     i?86 | x86_64 | ppc | ppc64)
15834	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15835		 ac_arch=$ac_word
15836	       else
15837		 ac_cv_c_bigendian=universal
15838		 break
15839	       fi
15840	       ;;
15841	   esac
15842	   ac_prev=
15843	 elif test "x$ac_word" = "x-arch"; then
15844	   ac_prev=arch
15845	 fi
15846       done
15847fi
15848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15849    if test $ac_cv_c_bigendian = unknown; then
15850      # See if sys/param.h defines the BYTE_ORDER macro.
15851      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15852/* end confdefs.h.  */
15853#include <sys/types.h>
15854	     #include <sys/param.h>
15855
15856int
15857main ()
15858{
15859#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15860		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15861		     && LITTLE_ENDIAN)
15862	      bogus endian macros
15863	     #endif
15864
15865  ;
15866  return 0;
15867}
15868_ACEOF
15869if ac_fn_c_try_compile "$LINENO"; then :
15870  # It does; now see whether it defined to BIG_ENDIAN or not.
15871	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15872/* end confdefs.h.  */
15873#include <sys/types.h>
15874		#include <sys/param.h>
15875
15876int
15877main ()
15878{
15879#if BYTE_ORDER != BIG_ENDIAN
15880		 not big endian
15881		#endif
15882
15883  ;
15884  return 0;
15885}
15886_ACEOF
15887if ac_fn_c_try_compile "$LINENO"; then :
15888  ac_cv_c_bigendian=yes
15889else
15890  ac_cv_c_bigendian=no
15891fi
15892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15893fi
15894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15895    fi
15896    if test $ac_cv_c_bigendian = unknown; then
15897      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15898      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15899/* end confdefs.h.  */
15900#include <limits.h>
15901
15902int
15903main ()
15904{
15905#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15906	      bogus endian macros
15907	     #endif
15908
15909  ;
15910  return 0;
15911}
15912_ACEOF
15913if ac_fn_c_try_compile "$LINENO"; then :
15914  # It does; now see whether it defined to _BIG_ENDIAN or not.
15915	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15916/* end confdefs.h.  */
15917#include <limits.h>
15918
15919int
15920main ()
15921{
15922#ifndef _BIG_ENDIAN
15923		 not big endian
15924		#endif
15925
15926  ;
15927  return 0;
15928}
15929_ACEOF
15930if ac_fn_c_try_compile "$LINENO"; then :
15931  ac_cv_c_bigendian=yes
15932else
15933  ac_cv_c_bigendian=no
15934fi
15935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15936fi
15937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15938    fi
15939    if test $ac_cv_c_bigendian = unknown; then
15940      # Compile a test program.
15941      if test "$cross_compiling" = yes; then :
15942  # Try to guess by grepping values from an object file.
15943	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15944/* end confdefs.h.  */
15945short int ascii_mm[] =
15946		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15947		short int ascii_ii[] =
15948		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15949		int use_ascii (int i) {
15950		  return ascii_mm[i] + ascii_ii[i];
15951		}
15952		short int ebcdic_ii[] =
15953		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15954		short int ebcdic_mm[] =
15955		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15956		int use_ebcdic (int i) {
15957		  return ebcdic_mm[i] + ebcdic_ii[i];
15958		}
15959		extern int foo;
15960
15961int
15962main ()
15963{
15964return use_ascii (foo) == use_ebcdic (foo);
15965  ;
15966  return 0;
15967}
15968_ACEOF
15969if ac_fn_c_try_compile "$LINENO"; then :
15970  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15971	      ac_cv_c_bigendian=yes
15972	    fi
15973	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15974	      if test "$ac_cv_c_bigendian" = unknown; then
15975		ac_cv_c_bigendian=no
15976	      else
15977		# finding both strings is unlikely to happen, but who knows?
15978		ac_cv_c_bigendian=unknown
15979	      fi
15980	    fi
15981fi
15982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15983else
15984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15985/* end confdefs.h.  */
15986$ac_includes_default
15987int
15988main ()
15989{
15990
15991	     /* Are we little or big endian?  From Harbison&Steele.  */
15992	     union
15993	     {
15994	       long int l;
15995	       char c[sizeof (long int)];
15996	     } u;
15997	     u.l = 1;
15998	     return u.c[sizeof (long int) - 1] == 1;
15999
16000  ;
16001  return 0;
16002}
16003_ACEOF
16004if ac_fn_c_try_run "$LINENO"; then :
16005  ac_cv_c_bigendian=no
16006else
16007  ac_cv_c_bigendian=yes
16008fi
16009rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16010  conftest.$ac_objext conftest.beam conftest.$ac_ext
16011fi
16012
16013    fi
16014fi
16015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16016$as_echo "$ac_cv_c_bigendian" >&6; }
16017 case $ac_cv_c_bigendian in #(
16018   yes)
16019     ENDIAN="X_BIG_ENDIAN";; #(
16020   no)
16021     ENDIAN="X_LITTLE_ENDIAN" ;; #(
16022   universal)
16023
16024$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16025
16026     ;; #(
16027   *)
16028     as_fn_error $? "unknown endianness
16029 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16030 esac
16031
16032
16033# The cast to long int works around a bug in the HP C Compiler
16034# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16035# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16036# This bug is HP SR number 8606223364.
16037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
16038$as_echo_n "checking size of unsigned long... " >&6; }
16039if ${ac_cv_sizeof_unsigned_long+:} false; then :
16040  $as_echo_n "(cached) " >&6
16041else
16042  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
16043
16044else
16045  if test "$ac_cv_type_unsigned_long" = yes; then
16046     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16047$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16048as_fn_error 77 "cannot compute sizeof (unsigned long)
16049See \`config.log' for more details" "$LINENO" 5; }
16050   else
16051     ac_cv_sizeof_unsigned_long=0
16052   fi
16053fi
16054
16055fi
16056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
16057$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
16058
16059
16060
16061cat >>confdefs.h <<_ACEOF
16062#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
16063_ACEOF
16064
16065
16066if test "$ac_cv_sizeof_unsigned_long" = 8; then
16067
16068$as_echo "#define _XSERVER64 1" >>confdefs.h
16069
16070fi
16071
16072ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16073if test "x$ac_cv_type_pid_t" = xyes; then :
16074
16075else
16076
16077cat >>confdefs.h <<_ACEOF
16078#define pid_t int
16079_ACEOF
16080
16081fi
16082
16083
16084# Checks for headers/macros for byte swapping
16085# Known variants:
16086#	<byteswap.h> bswap_16, bswap_32, bswap_64  (glibc)
16087#	<sys/endian.h> __swap16, __swap32, __swap64 (OpenBSD)
16088#	<sys/endian.h> bswap16, bswap32, bswap64 (other BSD's)
16089#	and a fallback to local macros if none of the above are found
16090
16091# if <byteswap.h> is found, assume it's the correct version
16092for ac_header in byteswap.h
16093do :
16094  ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
16095if test "x$ac_cv_header_byteswap_h" = xyes; then :
16096  cat >>confdefs.h <<_ACEOF
16097#define HAVE_BYTESWAP_H 1
16098_ACEOF
16099
16100fi
16101
16102done
16103
16104
16105# if <sys/endian.h> is found, have to check which version
16106ac_fn_c_check_header_mongrel "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
16107if test "x$ac_cv_header_sys_endian_h" = xyes; then :
16108  HAVE_SYS_ENDIAN_H="yes"
16109else
16110  HAVE_SYS_ENDIAN_H="no"
16111fi
16112
16113
16114
16115if test "x$HAVE_SYS_ENDIAN_H" = "xyes" ; then
16116	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __swap16 variant of <sys/endian.h> byteswapping macros" >&5
16117$as_echo_n "checking for __swap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
16118	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16119/* end confdefs.h.  */
16120
16121#include <sys/types.h>
16122#include <sys/endian.h>
16123
16124int
16125main ()
16126{
16127
16128int a = 1, b;
16129b = __swap16(a);
16130
16131  ;
16132  return 0;
16133}
16134
16135_ACEOF
16136if ac_fn_c_try_link "$LINENO"; then :
16137  SYS_ENDIAN__SWAP='yes'
16138else
16139  SYS_ENDIAN__SWAP='no'
16140fi
16141rm -f core conftest.err conftest.$ac_objext \
16142    conftest$ac_exeext conftest.$ac_ext
16143	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN__SWAP" >&5
16144$as_echo "$SYS_ENDIAN__SWAP" >&6; }
16145
16146	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap16 variant of <sys/endian.h> byteswapping macros" >&5
16147$as_echo_n "checking for bswap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
16148	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16149/* end confdefs.h.  */
16150
16151#include <sys/types.h>
16152#include <sys/endian.h>
16153
16154int
16155main ()
16156{
16157
16158int a = 1, b;
16159b = bswap16(a);
16160
16161  ;
16162  return 0;
16163}
16164
16165_ACEOF
16166if ac_fn_c_try_link "$LINENO"; then :
16167  SYS_ENDIAN_BSWAP='yes'
16168else
16169  SYS_ENDIAN_BSWAP='no'
16170fi
16171rm -f core conftest.err conftest.$ac_objext \
16172    conftest$ac_exeext conftest.$ac_ext
16173	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN_BSWAP" >&5
16174$as_echo "$SYS_ENDIAN_BSWAP" >&6; }
16175
16176    	if test "$SYS_ENDIAN_BSWAP" = "yes" ; then
16177		USE_SYS_ENDIAN_H=yes
16178		BSWAP=bswap
16179	else
16180	    	if test "$SYS_ENDIAN__SWAP" = "yes" ; then
16181			USE_SYS_ENDIAN_H=yes
16182			BSWAP=__swap
16183		else
16184			USE_SYS_ENDIAN_H=no
16185		fi
16186	fi
16187
16188	if test "$USE_SYS_ENDIAN_H" = "yes" ; then
16189
16190$as_echo "#define USE_SYS_ENDIAN_H 1" >>confdefs.h
16191
16192
16193cat >>confdefs.h <<_ACEOF
16194#define bswap_16 ${BSWAP}16
16195_ACEOF
16196
16197
16198cat >>confdefs.h <<_ACEOF
16199#define bswap_32 ${BSWAP}32
16200_ACEOF
16201
16202
16203cat >>confdefs.h <<_ACEOF
16204#define bswap_64 ${BSWAP}64
16205_ACEOF
16206
16207	fi
16208fi
16209
16210ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
16211if test "x$ac_cv_func_dlopen" = xyes; then :
16212
16213else
16214  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16215$as_echo_n "checking for dlopen in -ldl... " >&6; }
16216if ${ac_cv_lib_dl_dlopen+:} false; then :
16217  $as_echo_n "(cached) " >&6
16218else
16219  ac_check_lib_save_LIBS=$LIBS
16220LIBS="-ldl  $LIBS"
16221cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16222/* end confdefs.h.  */
16223
16224/* Override any GCC internal prototype to avoid an error.
16225   Use char because int might match the return type of a GCC
16226   builtin and then its argument prototype would still apply.  */
16227#ifdef __cplusplus
16228extern "C"
16229#endif
16230char dlopen ();
16231int
16232main ()
16233{
16234return dlopen ();
16235  ;
16236  return 0;
16237}
16238_ACEOF
16239if ac_fn_c_try_link "$LINENO"; then :
16240  ac_cv_lib_dl_dlopen=yes
16241else
16242  ac_cv_lib_dl_dlopen=no
16243fi
16244rm -f core conftest.err conftest.$ac_objext \
16245    conftest$ac_exeext conftest.$ac_ext
16246LIBS=$ac_check_lib_save_LIBS
16247fi
16248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16249$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16250if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16251  DLOPEN_LIBS="-ldl"
16252fi
16253
16254fi
16255
16256
16257
16258for ac_func in vprintf
16259do :
16260  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
16261if test "x$ac_cv_func_vprintf" = xyes; then :
16262  cat >>confdefs.h <<_ACEOF
16263#define HAVE_VPRINTF 1
16264_ACEOF
16265
16266ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
16267if test "x$ac_cv_func__doprnt" = xyes; then :
16268
16269$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
16270
16271fi
16272
16273fi
16274done
16275
16276
16277for ac_func in geteuid getuid link memmove memset mkstemp strchr strrchr \
16278		strtol getopt getopt_long vsnprintf walkcontext backtrace \
16279		getisax getzoneid shmctl64 strcasestr ffs
16280do :
16281  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16282ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16283if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16284  cat >>confdefs.h <<_ACEOF
16285#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16286_ACEOF
16287
16288fi
16289done
16290
16291ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16292if test "x$ac_cv_type_size_t" = xyes; then :
16293
16294else
16295
16296cat >>confdefs.h <<_ACEOF
16297#define size_t unsigned int
16298_ACEOF
16299
16300fi
16301
16302# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16303# for constant arguments.  Useless!
16304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16305$as_echo_n "checking for working alloca.h... " >&6; }
16306if ${ac_cv_working_alloca_h+:} false; then :
16307  $as_echo_n "(cached) " >&6
16308else
16309  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16310/* end confdefs.h.  */
16311#include <alloca.h>
16312int
16313main ()
16314{
16315char *p = (char *) alloca (2 * sizeof (int));
16316			  if (p) return 0;
16317  ;
16318  return 0;
16319}
16320_ACEOF
16321if ac_fn_c_try_link "$LINENO"; then :
16322  ac_cv_working_alloca_h=yes
16323else
16324  ac_cv_working_alloca_h=no
16325fi
16326rm -f core conftest.err conftest.$ac_objext \
16327    conftest$ac_exeext conftest.$ac_ext
16328fi
16329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16330$as_echo "$ac_cv_working_alloca_h" >&6; }
16331if test $ac_cv_working_alloca_h = yes; then
16332
16333$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16334
16335fi
16336
16337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16338$as_echo_n "checking for alloca... " >&6; }
16339if ${ac_cv_func_alloca_works+:} false; then :
16340  $as_echo_n "(cached) " >&6
16341else
16342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16343/* end confdefs.h.  */
16344#ifdef __GNUC__
16345# define alloca __builtin_alloca
16346#else
16347# ifdef _MSC_VER
16348#  include <malloc.h>
16349#  define alloca _alloca
16350# else
16351#  ifdef HAVE_ALLOCA_H
16352#   include <alloca.h>
16353#  else
16354#   ifdef _AIX
16355 #pragma alloca
16356#   else
16357#    ifndef alloca /* predefined by HP cc +Olibcalls */
16358void *alloca (size_t);
16359#    endif
16360#   endif
16361#  endif
16362# endif
16363#endif
16364
16365int
16366main ()
16367{
16368char *p = (char *) alloca (1);
16369				    if (p) return 0;
16370  ;
16371  return 0;
16372}
16373_ACEOF
16374if ac_fn_c_try_link "$LINENO"; then :
16375  ac_cv_func_alloca_works=yes
16376else
16377  ac_cv_func_alloca_works=no
16378fi
16379rm -f core conftest.err conftest.$ac_objext \
16380    conftest$ac_exeext conftest.$ac_ext
16381fi
16382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16383$as_echo "$ac_cv_func_alloca_works" >&6; }
16384
16385if test $ac_cv_func_alloca_works = yes; then
16386
16387$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16388
16389else
16390  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16391# that cause trouble.  Some versions do not even contain alloca or
16392# contain a buggy version.  If you still want to use their alloca,
16393# use ar to extract alloca.o from them instead of compiling alloca.c.
16394
16395ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16396
16397$as_echo "#define C_ALLOCA 1" >>confdefs.h
16398
16399
16400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
16401$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16402if ${ac_cv_os_cray+:} false; then :
16403  $as_echo_n "(cached) " >&6
16404else
16405  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16406/* end confdefs.h.  */
16407#if defined CRAY && ! defined CRAY2
16408webecray
16409#else
16410wenotbecray
16411#endif
16412
16413_ACEOF
16414if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16415  $EGREP "webecray" >/dev/null 2>&1; then :
16416  ac_cv_os_cray=yes
16417else
16418  ac_cv_os_cray=no
16419fi
16420rm -f conftest*
16421
16422fi
16423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16424$as_echo "$ac_cv_os_cray" >&6; }
16425if test $ac_cv_os_cray = yes; then
16426  for ac_func in _getb67 GETB67 getb67; do
16427    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16428ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16429if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16430
16431cat >>confdefs.h <<_ACEOF
16432#define CRAY_STACKSEG_END $ac_func
16433_ACEOF
16434
16435    break
16436fi
16437
16438  done
16439fi
16440
16441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16442$as_echo_n "checking stack direction for C alloca... " >&6; }
16443if ${ac_cv_c_stack_direction+:} false; then :
16444  $as_echo_n "(cached) " >&6
16445else
16446  if test "$cross_compiling" = yes; then :
16447  ac_cv_c_stack_direction=0
16448else
16449  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16450/* end confdefs.h.  */
16451$ac_includes_default
16452int
16453find_stack_direction ()
16454{
16455  static char *addr = 0;
16456  auto char dummy;
16457  if (addr == 0)
16458    {
16459      addr = &dummy;
16460      return find_stack_direction ();
16461    }
16462  else
16463    return (&dummy > addr) ? 1 : -1;
16464}
16465
16466int
16467main ()
16468{
16469  return find_stack_direction () < 0;
16470}
16471_ACEOF
16472if ac_fn_c_try_run "$LINENO"; then :
16473  ac_cv_c_stack_direction=1
16474else
16475  ac_cv_c_stack_direction=-1
16476fi
16477rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16478  conftest.$ac_objext conftest.beam conftest.$ac_ext
16479fi
16480
16481fi
16482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16483$as_echo "$ac_cv_c_stack_direction" >&6; }
16484cat >>confdefs.h <<_ACEOF
16485#define STACK_DIRECTION $ac_cv_c_stack_direction
16486_ACEOF
16487
16488
16489fi
16490
16491ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize"
16492if test "x$ac_cv_func_getdtablesize" = xyes; then :
16493
16494$as_echo "#define HAS_GETDTABLESIZE 1" >>confdefs.h
16495
16496fi
16497
16498ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
16499if test "x$ac_cv_func_getifaddrs" = xyes; then :
16500
16501$as_echo "#define HAS_GETIFADDRS 1" >>confdefs.h
16502
16503fi
16504
16505ac_fn_c_check_func "$LINENO" "getpeereid" "ac_cv_func_getpeereid"
16506if test "x$ac_cv_func_getpeereid" = xyes; then :
16507
16508$as_echo "#define HAS_GETPEEREID 1" >>confdefs.h
16509
16510fi
16511
16512ac_fn_c_check_func "$LINENO" "getpeerucred" "ac_cv_func_getpeerucred"
16513if test "x$ac_cv_func_getpeerucred" = xyes; then :
16514
16515$as_echo "#define HAS_GETPEERUCRED 1" >>confdefs.h
16516
16517fi
16518
16519ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
16520if test "x$ac_cv_func_strlcat" = xyes; then :
16521  HAVE_STRLCAT=yes
16522else
16523  HAVE_STRLCAT=no
16524fi
16525
16526 if test x$HAVE_STRLCAT = xno; then
16527  NEED_STRLCAT_TRUE=
16528  NEED_STRLCAT_FALSE='#'
16529else
16530  NEED_STRLCAT_TRUE='#'
16531  NEED_STRLCAT_FALSE=
16532fi
16533
16534ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
16535if test "x$ac_cv_func_strlcpy" = xyes; then :
16536
16537$as_echo "#define HAS_STRLCPY 1" >>confdefs.h
16538
16539fi
16540
16541
16542 if test x$HAVE_VSNPRINTF = xno; then
16543  NEED_VSNPRINTF_TRUE=
16544  NEED_VSNPRINTF_FALSE='#'
16545else
16546  NEED_VSNPRINTF_TRUE='#'
16547  NEED_VSNPRINTF_FALSE=
16548fi
16549
16550
16551ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
16552if test "x$ac_cv_func_mmap" = xyes; then :
16553
16554$as_echo "#define HAS_MMAP 1" >>confdefs.h
16555
16556fi
16557
16558
16559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
16560$as_echo_n "checking for sqrt in -lm... " >&6; }
16561if ${ac_cv_lib_m_sqrt+:} false; then :
16562  $as_echo_n "(cached) " >&6
16563else
16564  ac_check_lib_save_LIBS=$LIBS
16565LIBS="-lm  $LIBS"
16566cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16567/* end confdefs.h.  */
16568
16569/* Override any GCC internal prototype to avoid an error.
16570   Use char because int might match the return type of a GCC
16571   builtin and then its argument prototype would still apply.  */
16572#ifdef __cplusplus
16573extern "C"
16574#endif
16575char sqrt ();
16576int
16577main ()
16578{
16579return sqrt ();
16580  ;
16581  return 0;
16582}
16583_ACEOF
16584if ac_fn_c_try_link "$LINENO"; then :
16585  ac_cv_lib_m_sqrt=yes
16586else
16587  ac_cv_lib_m_sqrt=no
16588fi
16589rm -f core conftest.err conftest.$ac_objext \
16590    conftest$ac_exeext conftest.$ac_ext
16591LIBS=$ac_check_lib_save_LIBS
16592fi
16593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
16594$as_echo "$ac_cv_lib_m_sqrt" >&6; }
16595if test "x$ac_cv_lib_m_sqrt" = xyes; then :
16596  cat >>confdefs.h <<_ACEOF
16597#define HAVE_LIBM 1
16598_ACEOF
16599
16600  LIBS="-lm $LIBS"
16601
16602fi
16603
16604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cbrt in -lm" >&5
16605$as_echo_n "checking for cbrt in -lm... " >&6; }
16606if ${ac_cv_lib_m_cbrt+:} false; then :
16607  $as_echo_n "(cached) " >&6
16608else
16609  ac_check_lib_save_LIBS=$LIBS
16610LIBS="-lm  $LIBS"
16611cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16612/* end confdefs.h.  */
16613
16614/* Override any GCC internal prototype to avoid an error.
16615   Use char because int might match the return type of a GCC
16616   builtin and then its argument prototype would still apply.  */
16617#ifdef __cplusplus
16618extern "C"
16619#endif
16620char cbrt ();
16621int
16622main ()
16623{
16624return cbrt ();
16625  ;
16626  return 0;
16627}
16628_ACEOF
16629if ac_fn_c_try_link "$LINENO"; then :
16630  ac_cv_lib_m_cbrt=yes
16631else
16632  ac_cv_lib_m_cbrt=no
16633fi
16634rm -f core conftest.err conftest.$ac_objext \
16635    conftest$ac_exeext conftest.$ac_ext
16636LIBS=$ac_check_lib_save_LIBS
16637fi
16638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cbrt" >&5
16639$as_echo "$ac_cv_lib_m_cbrt" >&6; }
16640if test "x$ac_cv_lib_m_cbrt" = xyes; then :
16641
16642$as_echo "#define HAVE_CBRT 1" >>confdefs.h
16643
16644fi
16645
16646
16647for ac_header in ndbm.h dbm.h rpcsvc/dbm.h
16648do :
16649  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16650ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16651if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16652  cat >>confdefs.h <<_ACEOF
16653#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16654_ACEOF
16655
16656fi
16657
16658done
16659
16660
16661for ac_header in linux/agpgart.h sys/agpio.h sys/agpgart.h
16662do :
16663  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16664ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16665if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16666  cat >>confdefs.h <<_ACEOF
16667#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16668_ACEOF
16669 AGP=yes
16670fi
16671
16672done
16673
16674 if test "x$AGP" = xyes; then
16675  AGP_TRUE=
16676  AGP_FALSE='#'
16677else
16678  AGP_TRUE='#'
16679  AGP_FALSE=
16680fi
16681
16682
16683for ac_header in linux/apm_bios.h
16684do :
16685  ac_fn_c_check_header_mongrel "$LINENO" "linux/apm_bios.h" "ac_cv_header_linux_apm_bios_h" "$ac_includes_default"
16686if test "x$ac_cv_header_linux_apm_bios_h" = xyes; then :
16687  cat >>confdefs.h <<_ACEOF
16688#define HAVE_LINUX_APM_BIOS_H 1
16689_ACEOF
16690 LNXAPM=yes
16691fi
16692
16693done
16694
16695 if test "x$LNXAPM" = xyes; then
16696  LNXAPM_TRUE=
16697  LNXAPM_FALSE='#'
16698else
16699  LNXAPM_TRUE='#'
16700  LNXAPM_FALSE=
16701fi
16702
16703
16704for ac_header in linux/fb.h
16705do :
16706  ac_fn_c_check_header_mongrel "$LINENO" "linux/fb.h" "ac_cv_header_linux_fb_h" "$ac_includes_default"
16707if test "x$ac_cv_header_linux_fb_h" = xyes; then :
16708  cat >>confdefs.h <<_ACEOF
16709#define HAVE_LINUX_FB_H 1
16710_ACEOF
16711 FBDEV=yes
16712fi
16713
16714done
16715
16716 if test "x$FBDEV" = xyes; then
16717  FBDEVHW_TRUE=
16718  FBDEVHW_FALSE='#'
16719else
16720  FBDEVHW_TRUE='#'
16721  FBDEVHW_FALSE=
16722fi
16723
16724
16725for ac_header in asm/mtrr.h
16726do :
16727  ac_fn_c_check_header_mongrel "$LINENO" "asm/mtrr.h" "ac_cv_header_asm_mtrr_h" "$ac_includes_default"
16728if test "x$ac_cv_header_asm_mtrr_h" = xyes; then :
16729  cat >>confdefs.h <<_ACEOF
16730#define HAVE_ASM_MTRR_H 1
16731_ACEOF
16732 ac_cv_asm_mtrr_h=yes
16733fi
16734
16735done
16736
16737if test "x$ac_cv_asm_mtrr_h" = xyes; then
16738	HAVE_MTRR=yes
16739fi
16740
16741for ac_header in sys/memrange.h
16742do :
16743  ac_fn_c_check_header_mongrel "$LINENO" "sys/memrange.h" "ac_cv_header_sys_memrange_h" "$ac_includes_default"
16744if test "x$ac_cv_header_sys_memrange_h" = xyes; then :
16745  cat >>confdefs.h <<_ACEOF
16746#define HAVE_SYS_MEMRANGE_H 1
16747_ACEOF
16748 ac_cv_memrange_h=yes
16749fi
16750
16751done
16752
16753if test "x$ac_cv_memrange_h" = xyes; then
16754	HAVE_MTRR=yes
16755fi
16756
16757if test "x$HAVE_MTRR" = xyes; then
16758
16759$as_echo "#define HAS_MTRR_SUPPORT 1" >>confdefs.h
16760
16761fi
16762
16763for ac_header in machine/mtrr.h
16764do :
16765  ac_fn_c_check_header_mongrel "$LINENO" "machine/mtrr.h" "ac_cv_header_machine_mtrr_h" "$ac_includes_default"
16766if test "x$ac_cv_header_machine_mtrr_h" = xyes; then :
16767  cat >>confdefs.h <<_ACEOF
16768#define HAVE_MACHINE_MTRR_H 1
16769_ACEOF
16770 ac_cv_machine_mtrr_h=yes
16771fi
16772
16773done
16774
16775if test "x$ac_cv_machine_mtrr_h" = xyes; then
16776
16777$as_echo "#define HAS_MTRR_BUILTIN 1" >>confdefs.h
16778
16779fi
16780
16781for ac_header in sys/linker.h
16782do :
16783  ac_fn_c_check_header_compile "$LINENO" "sys/linker.h" "ac_cv_header_sys_linker_h" "#include <sys/param.h>
16784"
16785if test "x$ac_cv_header_sys_linker_h" = xyes; then :
16786  cat >>confdefs.h <<_ACEOF
16787#define HAVE_SYS_LINKER_H 1
16788_ACEOF
16789 ac_cv_sys_linker_h=yes
16790else
16791  ac_cv_sys_linker_h=no
16792fi
16793
16794done
16795
16796 if test "x$ac_cv_sys_linker_h" = xyes; then
16797  FREEBSD_KLDLOAD_TRUE=
16798  FREEBSD_KLDLOAD_FALSE='#'
16799else
16800  FREEBSD_KLDLOAD_TRUE='#'
16801  FREEBSD_KLDLOAD_FALSE=
16802fi
16803
16804
16805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSV IPC" >&5
16806$as_echo_n "checking for SYSV IPC... " >&6; }
16807if ${ac_cv_sysv_ipc+:} false; then :
16808  $as_echo_n "(cached) " >&6
16809else
16810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16811/* end confdefs.h.  */
16812
16813#include <sys/types.h>
16814#include <sys/ipc.h>
16815#include <sys/shm.h>
16816
16817int
16818main ()
16819{
16820
16821{
16822    int id;
16823    id = shmget(IPC_PRIVATE, 512, SHM_W | SHM_R);
16824    if (id < 0) return -1;
16825    return shmctl(id, IPC_RMID, 0);
16826}
16827  ;
16828  return 0;
16829}
16830_ACEOF
16831if ac_fn_c_try_link "$LINENO"; then :
16832  ac_cv_sysv_ipc=yes
16833else
16834  ac_cv_sysv_ipc=no
16835fi
16836rm -f core conftest.err conftest.$ac_objext \
16837    conftest$ac_exeext conftest.$ac_ext
16838fi
16839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_ipc" >&5
16840$as_echo "$ac_cv_sysv_ipc" >&6; }
16841if test "x$ac_cv_sysv_ipc" = xyes; then
16842
16843$as_echo "#define HAVE_SYSV_IPC 1" >>confdefs.h
16844
16845fi
16846
16847if test -c /dev/xf86 ; then
16848
16849$as_echo "#define HAS_APERTURE_DRV 1" >>confdefs.h
16850
16851fi
16852
16853ac_fn_c_check_header_mongrel "$LINENO" "machine/apmvar.h" "ac_cv_header_machine_apmvar_h" "$ac_includes_default"
16854if test "x$ac_cv_header_machine_apmvar_h" = xyes; then :
16855
16856	ac_fn_c_check_header_mongrel "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default"
16857if test "x$ac_cv_header_sys_event_h" = xyes; then :
16858  ac_cv_BSD_KQUEUE_APM=yes
16859else
16860  ac_cv_BSD_APM=yes
16861fi
16862
16863
16864fi
16865
16866
16867
16868 if test "x$ac_cv_BSD_APM" = xyes; then
16869  BSD_APM_TRUE=
16870  BSD_APM_FALSE='#'
16871else
16872  BSD_APM_TRUE='#'
16873  BSD_APM_FALSE=
16874fi
16875
16876 if test "x$ac_cv_BSD_KQUEUE_APM" = xyes; then
16877  BSD_KQUEUE_APM_TRUE=
16878  BSD_KQUEUE_APM_FALSE='#'
16879else
16880  BSD_KQUEUE_APM_TRUE='#'
16881  BSD_KQUEUE_APM_FALSE=
16882fi
16883
16884
16885ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
16886if test "x$ac_cv_header_execinfo_h" = xyes; then :
16887
16888    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lc" >&5
16889$as_echo_n "checking for backtrace in -lc... " >&6; }
16890if ${ac_cv_lib_c_backtrace+:} false; then :
16891  $as_echo_n "(cached) " >&6
16892else
16893  ac_check_lib_save_LIBS=$LIBS
16894LIBS="-lc  $LIBS"
16895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16896/* end confdefs.h.  */
16897
16898/* Override any GCC internal prototype to avoid an error.
16899   Use char because int might match the return type of a GCC
16900   builtin and then its argument prototype would still apply.  */
16901#ifdef __cplusplus
16902extern "C"
16903#endif
16904char backtrace ();
16905int
16906main ()
16907{
16908return backtrace ();
16909  ;
16910  return 0;
16911}
16912_ACEOF
16913if ac_fn_c_try_link "$LINENO"; then :
16914  ac_cv_lib_c_backtrace=yes
16915else
16916  ac_cv_lib_c_backtrace=no
16917fi
16918rm -f core conftest.err conftest.$ac_objext \
16919    conftest$ac_exeext conftest.$ac_ext
16920LIBS=$ac_check_lib_save_LIBS
16921fi
16922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_backtrace" >&5
16923$as_echo "$ac_cv_lib_c_backtrace" >&6; }
16924if test "x$ac_cv_lib_c_backtrace" = xyes; then :
16925
16926
16927$as_echo "#define HAVE_BACKTRACE 1" >>confdefs.h
16928
16929
16930$as_echo "#define HAVE_EXECINFO_H 1" >>confdefs.h
16931
16932
16933fi
16934
16935
16936fi
16937
16938
16939
16940old_CFLAGS="$CFLAGS"
16941CFLAGS="-mapcs-frame"
16942cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16943/* end confdefs.h.  */
16944
16945int
16946main ()
16947{
16948
16949  ;
16950  return 0;
16951}
16952_ACEOF
16953if ac_fn_c_try_compile "$LINENO"; then :
16954  ARM_BACKTRACE_CFLAGS="$CFLAGS"
16955else
16956  ARM_BACKTRACE_CFLAGS=""
16957
16958fi
16959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16960CFLAGS="$old_CFLAGS"
16961
16962
16963DEFAULT_INT10="x86emu"
16964
16965
16966case $host_cpu in
16967  alpha*)
16968	ALPHA_VIDEO=yes
16969	case $host_os in
16970	        *freebsd*)	SYS_LIBS=-lio ;;
16971		*netbsd*)
16972$as_echo "#define USE_ALPHA_PIO 1" >>confdefs.h
16973 ;;
16974	esac
16975	GLX_ARCH_DEFINES="-D__GLX_ALIGN64 -mieee"
16976	;;
16977  arm*)
16978	ARM_VIDEO=yes
16979	;;
16980  i*86)
16981	I386_VIDEO=yes
16982	case $host_os in
16983		*freebsd*)	$as_echo "#define USE_DEV_IO 1" >>confdefs.h
16984 ;;
16985		*dragonfly*)	$as_echo "#define USE_DEV_IO 1" >>confdefs.h
16986 ;;
16987		*netbsd*)	$as_echo "#define USE_I386_IOPL 1" >>confdefs.h
16988
16989				SYS_LIBS=-li386
16990				;;
16991		*openbsd*)	$as_echo "#define USE_I386_IOPL 1" >>confdefs.h
16992
16993				SYS_LIBS=-li386
16994				;;
16995	esac
16996        ;;
16997  powerpc*)
16998	PPC_VIDEO=yes
16999	case $host_os in
17000		*freebsd*)	DEFAULT_INT10=stub ;;
17001	esac
17002	;;
17003  sparc*)
17004	SPARC64_VIDEO=yes
17005	BSD_ARCH_SOURCES="sparc64_video.c ioperm_noop.c"
17006	GLX_ARCH_DEFINES="-D__GLX_ALIGN64"
17007	;;
17008  x86_64*|amd64*)
17009	I386_VIDEO=yes
17010	case $host_os in
17011		*freebsd*)
17012$as_echo "#define USE_DEV_IO 1" >>confdefs.h
17013 ;;
17014		*dragonfly*)
17015$as_echo "#define USE_DEV_IO 1" >>confdefs.h
17016 ;;
17017		*netbsd*)
17018$as_echo "#define USE_I386_IOPL 1" >>confdefs.h
17019
17020				SYS_LIBS=-lx86_64
17021				;;
17022		*openbsd*)
17023$as_echo "#define USE_AMD64_IOPL 1" >>confdefs.h
17024
17025				SYS_LIBS=-lamd64
17026				;;
17027	esac
17028	GLX_ARCH_DEFINES="-D__GLX_ALIGN64"
17029	;;
17030  ia64*)
17031  	GLX_ARCH_DEFINES="-D__GLX_ALIGN64"
17032	;;
17033  s390*)
17034  	GLX_ARCH_DEFINES="-D__GLX_ALIGN64"
17035	;;
17036esac
17037
17038
17039 if test "x$ALPHA_VIDEO" = xyes; then
17040  ALPHA_VIDEO_TRUE=
17041  ALPHA_VIDEO_FALSE='#'
17042else
17043  ALPHA_VIDEO_TRUE='#'
17044  ALPHA_VIDEO_FALSE=
17045fi
17046
17047 if test "x$ARM_VIDEO" = xyes; then
17048  ARM_VIDEO_TRUE=
17049  ARM_VIDEO_FALSE='#'
17050else
17051  ARM_VIDEO_TRUE='#'
17052  ARM_VIDEO_FALSE=
17053fi
17054
17055 if test "x$I386_VIDEO" = xyes; then
17056  I386_VIDEO_TRUE=
17057  I386_VIDEO_FALSE='#'
17058else
17059  I386_VIDEO_TRUE='#'
17060  I386_VIDEO_FALSE=
17061fi
17062
17063 if test "x$PPC_VIDEO" = xyes; then
17064  PPC_VIDEO_TRUE=
17065  PPC_VIDEO_FALSE='#'
17066else
17067  PPC_VIDEO_TRUE='#'
17068  PPC_VIDEO_FALSE=
17069fi
17070
17071 if test "x$SPARC64_VIDEO" = xyes; then
17072  SPARC64_VIDEO_TRUE=
17073  SPARC64_VIDEO_FALSE='#'
17074else
17075  SPARC64_VIDEO_TRUE='#'
17076  SPARC64_VIDEO_FALSE=
17077fi
17078
17079
17080DRI=no
17081USE_SIGIO_BY_DEFAULT="yes"
17082case $host_os in
17083  *freebsd* | *dragonfly*)
17084	case $host_os in
17085		kfreebsd*-gnu) ;;
17086		*)
17087$as_echo "#define CSRG_BASED 1" >>confdefs.h
17088 ;;
17089	esac
17090
17091$as_echo "#define PCCONS_SUPPORT 1" >>confdefs.h
17092
17093
17094$as_echo "#define PCVT_SUPPORT 1" >>confdefs.h
17095
17096
17097$as_echo "#define SYSCONS_SUPPORT 1" >>confdefs.h
17098
17099	DRI=yes
17100	;;
17101  *netbsd*)
17102
17103$as_echo "#define CSRG_BASED 1" >>confdefs.h
17104
17105
17106$as_echo "#define PCCONS_SUPPORT 1" >>confdefs.h
17107
17108
17109$as_echo "#define PCVT_SUPPORT 1" >>confdefs.h
17110
17111
17112$as_echo "#define WSCONS_SUPPORT 1" >>confdefs.h
17113
17114	DRI=yes
17115	;;
17116  *openbsd*)
17117
17118$as_echo "#define CSRG_BASED 1" >>confdefs.h
17119
17120
17121$as_echo "#define PCVT_SUPPORT 1" >>confdefs.h
17122
17123
17124$as_echo "#define WSCONS_SUPPORT 1" >>confdefs.h
17125
17126	;;
17127  *linux*)
17128	DRI=yes
17129	;;
17130  *solaris*)
17131	if test -n "$PKG_CONFIG" && \
17132    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm\""; } >&5
17133  ($PKG_CONFIG --exists --print-errors "libdrm") 2>&5
17134  ac_status=$?
17135  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17136  test $ac_status = 0; }; then
17137  DRI=yes
17138else
17139  DRI=no
17140fi
17141	# Disable use of SIGIO by default until some system bugs are
17142	# fixed - see Sun/OpenSolaris bug id 6879897
17143	USE_SIGIO_BY_DEFAULT="no"
17144	;;
17145  darwin*)
17146
17147$as_echo "#define CSRG_BASED 1" >>confdefs.h
17148
17149	;;
17150  cygwin*)
17151	CFLAGS="$CFLAGS -DFD_SETSIZE=256"
17152	;;
17153esac
17154
17155PVMAJOR=`echo $PACKAGE_VERSION | cut -d . -f 1`
17156PVS=`echo $PACKAGE_VERSION | cut -d . -f 4 | cut -d - -f 1`
17157if test "x$PVS" = "x"; then
17158	PVS="0"
17159fi
17160
17161VENDOR_RELEASE="((($PVMAJOR) * 10000000) + (($PVM) * 100000) + (($PVP) * 1000) + $PVS)"
17162VENDOR_MAN_VERSION="Version ${PACKAGE_VERSION}"
17163
17164VENDOR_NAME="The X.Org Foundation"
17165VENDOR_NAME_SHORT="X.Org"
17166VENDOR_WEB="http://wiki.x.org"
17167
17168
17169
17170# Check whether --enable-werror was given.
17171if test "${enable_werror+set}" = set; then :
17172  enableval=$enable_werror; as_fn_error $? "--enable-werror has been replaced by --enable-strict-compilation" "$LINENO" 5
17173fi
17174
17175
17176# Check whether --enable-debug was given.
17177if test "${enable_debug+set}" = set; then :
17178  enableval=$enable_debug; DEBUGGING=$enableval
17179else
17180  DEBUGGING=no
17181fi
17182
17183# Check whether --enable-unit-tests was given.
17184if test "${enable_unit_tests+set}" = set; then :
17185  enableval=$enable_unit_tests; UNITTESTS=$enableval
17186else
17187  UNITTESTS=auto
17188fi
17189
17190# Check whether --enable-use-sigio-by-default was given.
17191if test "${enable_use_sigio_by_default+set}" = set; then :
17192  enableval=$enable_use_sigio_by_default; USE_SIGIO_BY_DEFAULT=$enableval
17193fi
17194
17195
17196# Check whether --with-int10 was given.
17197if test "${with_int10+set}" = set; then :
17198  withval=$with_int10; INT10="$withval"
17199else
17200  INT10="$DEFAULT_INT10"
17201fi
17202
17203
17204# Check whether --with-vendor-name was given.
17205if test "${with_vendor_name+set}" = set; then :
17206  withval=$with_vendor_name;  VENDOR_NAME="$withval"
17207fi
17208
17209
17210# Check whether --with-vendor-name-short was given.
17211if test "${with_vendor_name_short+set}" = set; then :
17212  withval=$with_vendor_name_short;  VENDOR_NAME_SHORT="$withval"
17213fi
17214
17215
17216# Check whether --with-vendor-web was given.
17217if test "${with_vendor_web+set}" = set; then :
17218  withval=$with_vendor_web;  VENDOR_WEB="$withval"
17219fi
17220
17221
17222# Check whether --with-module-dir was given.
17223if test "${with_module_dir+set}" = set; then :
17224  withval=$with_module_dir;  moduledir="$withval"
17225else
17226   moduledir="${libdir}/xorg/modules"
17227fi
17228
17229
17230# Check whether --with-log-dir was given.
17231if test "${with_log_dir+set}" = set; then :
17232  withval=$with_log_dir;  logdir="$withval"
17233else
17234   logdir="$localstatedir/log"
17235fi
17236
17237
17238# Check whether --with-builder-addr was given.
17239if test "${with_builder_addr+set}" = set; then :
17240  withval=$with_builder_addr;  BUILDERADDR="$withval"
17241else
17242   BUILDERADDR="xorg@lists.freedesktop.org"
17243fi
17244
17245
17246# Check whether --with-os-name was given.
17247if test "${with_os_name+set}" = set; then :
17248  withval=$with_os_name;  OSNAME="$withval"
17249else
17250   OSNAME=`uname -srm`
17251fi
17252
17253
17254# Check whether --with-os-vendor was given.
17255if test "${with_os_vendor+set}" = set; then :
17256  withval=$with_os_vendor;  OSVENDOR="$withval"
17257else
17258   OSVENDOR=""
17259fi
17260
17261
17262# Check whether --with-builderstring was given.
17263if test "${with_builderstring+set}" = set; then :
17264  withval=$with_builderstring;  BUILDERSTRING="$withval"
17265
17266fi
17267
17268
17269
17270
17271
17272	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for root directory for font files" >&5
17273$as_echo_n "checking for root directory for font files... " >&6; }
17274
17275# Check whether --with-fontrootdir was given.
17276if test "${with_fontrootdir+set}" = set; then :
17277  withval=$with_fontrootdir; FONTROOTDIR="$withval"
17278fi
17279
17280	# if --with-fontrootdir not specified...
17281	if test "x${FONTROOTDIR}" = "x"; then
17282		FONTROOTDIR=`$PKG_CONFIG --variable=fontrootdir fontutil`
17283	fi
17284	# ...and if pkg-config didn't find fontdir in fontutil.pc...
17285	if test "x${FONTROOTDIR}" = "x"; then
17286		FONTROOTDIR="${datadir}/fonts/X11"
17287	fi
17288
17289	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTROOTDIR}" >&5
17290$as_echo "${FONTROOTDIR}" >&6; }
17291
17292
17293
17294
17295	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for misc files" >&5
17296$as_echo_n "checking for directory for misc files... " >&6; }
17297
17298# Check whether --with-fontmiscdir was given.
17299if test "${with_fontmiscdir+set}" = set; then :
17300  withval=$with_fontmiscdir; FONTMISCDIR="${withval}"
17301else
17302  FONTMISCDIR='${FONTROOTDIR}/misc'
17303fi
17304
17305
17306	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTMISCDIR}" >&5
17307$as_echo "${FONTMISCDIR}" >&6; }
17308
17309
17310
17311
17312	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for OTF files" >&5
17313$as_echo_n "checking for directory for OTF files... " >&6; }
17314
17315# Check whether --with-fontotfdir was given.
17316if test "${with_fontotfdir+set}" = set; then :
17317  withval=$with_fontotfdir; FONTOTFDIR="${withval}"
17318else
17319  FONTOTFDIR='${FONTROOTDIR}/OTF'
17320fi
17321
17322
17323	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTOTFDIR}" >&5
17324$as_echo "${FONTOTFDIR}" >&6; }
17325
17326
17327
17328
17329	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for TTF files" >&5
17330$as_echo_n "checking for directory for TTF files... " >&6; }
17331
17332# Check whether --with-fontttfdir was given.
17333if test "${with_fontttfdir+set}" = set; then :
17334  withval=$with_fontttfdir; FONTTTFDIR="${withval}"
17335else
17336  FONTTTFDIR='${FONTROOTDIR}/TTF'
17337fi
17338
17339
17340	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTTTFDIR}" >&5
17341$as_echo "${FONTTTFDIR}" >&6; }
17342
17343
17344
17345
17346	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for Type1 files" >&5
17347$as_echo_n "checking for directory for Type1 files... " >&6; }
17348
17349# Check whether --with-fonttype1dir was given.
17350if test "${with_fonttype1dir+set}" = set; then :
17351  withval=$with_fonttype1dir; FONTTYPE1DIR="${withval}"
17352else
17353  FONTTYPE1DIR='${FONTROOTDIR}/Type1'
17354fi
17355
17356
17357	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTTYPE1DIR}" >&5
17358$as_echo "${FONTTYPE1DIR}" >&6; }
17359
17360
17361
17362
17363	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for 75dpi files" >&5
17364$as_echo_n "checking for directory for 75dpi files... " >&6; }
17365
17366# Check whether --with-font75dpidir was given.
17367if test "${with_font75dpidir+set}" = set; then :
17368  withval=$with_font75dpidir; FONT75DPIDIR="${withval}"
17369else
17370  FONT75DPIDIR='${FONTROOTDIR}/75dpi'
17371fi
17372
17373
17374	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONT75DPIDIR}" >&5
17375$as_echo "${FONT75DPIDIR}" >&6; }
17376
17377
17378
17379
17380	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for 100dpi files" >&5
17381$as_echo_n "checking for directory for 100dpi files... " >&6; }
17382
17383# Check whether --with-font100dpidir was given.
17384if test "${with_font100dpidir+set}" = set; then :
17385  withval=$with_font100dpidir; FONT100DPIDIR="${withval}"
17386else
17387  FONT100DPIDIR='${FONTROOTDIR}/100dpi'
17388fi
17389
17390
17391	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONT100DPIDIR}" >&5
17392$as_echo "${FONT100DPIDIR}" >&6; }
17393
17394
17395DEFAULT_FONT_PATH="${FONTMISCDIR}/,${FONTTTFDIR}/,${FONTOTFDIR}/,${FONTTYPE1DIR}/,${FONT100DPIDIR}/,${FONT75DPIDIR}/"
17396if test "$cross_compiling" != yes; then
17397	as_ac_File=`$as_echo "ac_cv_file_${sysconfdir}/X11/fontpath.d" | $as_tr_sh`
17398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sysconfdir}/X11/fontpath.d" >&5
17399$as_echo_n "checking for ${sysconfdir}/X11/fontpath.d... " >&6; }
17400if eval \${$as_ac_File+:} false; then :
17401  $as_echo_n "(cached) " >&6
17402else
17403  test "$cross_compiling" = yes &&
17404  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
17405if test -r "${sysconfdir}/X11/fontpath.d"; then
17406  eval "$as_ac_File=yes"
17407else
17408  eval "$as_ac_File=no"
17409fi
17410fi
17411eval ac_res=\$$as_ac_File
17412	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17413$as_echo "$ac_res" >&6; }
17414if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
17415  DEFAULT_FONT_PATH='catalogue:${sysconfdir}/X11/fontpath.d'
17416else
17417  case $host_os in
17418			darwin*) DEFAULT_FONT_PATH="${DEFAULT_FONT_PATH},/Library/Fonts,/System/Library/Fonts" ;;
17419		esac
17420fi
17421
17422fi
17423
17424# Check whether --with-default-font-path was given.
17425if test "${with_default_font_path+set}" = set; then :
17426  withval=$with_default_font_path;  FONTPATH="$withval"
17427else
17428   FONTPATH="${DEFAULT_FONT_PATH}"
17429fi
17430
17431
17432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default font path" >&5
17433$as_echo_n "checking for default font path... " >&6; }
17434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTPATH" >&5
17435$as_echo "$FONTPATH" >&6; }
17436
17437
17438# Check whether --with-xkb-path was given.
17439if test "${with_xkb_path+set}" = set; then :
17440  withval=$with_xkb_path;  XKBPATH="$withval"
17441else
17442   XKBPATH="${datadir}/X11/xkb"
17443fi
17444
17445
17446# Check whether --with-xkb-output was given.
17447if test "${with_xkb_output+set}" = set; then :
17448  withval=$with_xkb_output;  XKBOUTPUT="$withval"
17449else
17450   XKBOUTPUT="compiled"
17451fi
17452
17453
17454# Check whether --with-default-xkb-rules was given.
17455if test "${with_default_xkb_rules+set}" = set; then :
17456  withval=$with_default_xkb_rules;  XKB_DFLT_RULES="$withval"
17457else
17458   XKB_DFLT_RULES=""
17459fi
17460
17461
17462# Check whether --with-default-xkb-model was given.
17463if test "${with_default_xkb_model+set}" = set; then :
17464  withval=$with_default_xkb_model;  XKB_DFLT_MODEL="$withval"
17465else
17466   XKB_DFLT_MODEL="pc105"
17467fi
17468
17469
17470# Check whether --with-default-xkb-layout was given.
17471if test "${with_default_xkb_layout+set}" = set; then :
17472  withval=$with_default_xkb_layout;  XKB_DFLT_LAYOUT="$withval"
17473else
17474   XKB_DFLT_LAYOUT="us"
17475fi
17476
17477
17478# Check whether --with-default-xkb-variant was given.
17479if test "${with_default_xkb_variant+set}" = set; then :
17480  withval=$with_default_xkb_variant;  XKB_DFLT_VARIANT="$withval"
17481else
17482   XKB_DFLT_VARIANT=""
17483fi
17484
17485
17486# Check whether --with-default-xkb-options was given.
17487if test "${with_default_xkb_options+set}" = set; then :
17488  withval=$with_default_xkb_options;  XKB_DFLT_OPTIONS="$withval"
17489else
17490   XKB_DFLT_OPTIONS=""
17491fi
17492
17493
17494# Check whether --with-serverconfig-path was given.
17495if test "${with_serverconfig_path+set}" = set; then :
17496  withval=$with_serverconfig_path;  SERVERCONFIG="$withval"
17497else
17498   SERVERCONFIG="${libdir}/xorg"
17499fi
17500
17501
17502# Check whether --with-apple-applications-dir was given.
17503if test "${with_apple_applications_dir+set}" = set; then :
17504  withval=$with_apple_applications_dir;  APPLE_APPLICATIONS_DIR="${withval}"
17505else
17506   APPLE_APPLICATIONS_DIR="/Applications/Utilities"
17507fi
17508
17509
17510
17511# Check whether --with-apple-application-name was given.
17512if test "${with_apple_application_name+set}" = set; then :
17513  withval=$with_apple_application_name;  APPLE_APPLICATION_NAME="${withval}"
17514else
17515   APPLE_APPLICATION_NAME="X11"
17516fi
17517
17518
17519
17520# Check whether --with-launchd-id-prefix was given.
17521if test "${with_launchd_id_prefix+set}" = set; then :
17522  withval=$with_launchd_id_prefix;  LAUNCHD_ID_PREFIX="${withval}"
17523else
17524   LAUNCHD_ID_PREFIX="org.x"
17525fi
17526
17527
17528
17529cat >>confdefs.h <<_ACEOF
17530#define LAUNCHD_ID_PREFIX "$LAUNCHD_ID_PREFIX"
17531_ACEOF
17532
17533# Check whether --enable-sparkle was given.
17534if test "${enable_sparkle+set}" = set; then :
17535  enableval=$enable_sparkle;  XQUARTZ_SPARKLE="${enableval}"
17536else
17537   XQUARTZ_SPARKLE="no"
17538fi
17539
17540
17541# Check whether --enable-builddocs was given.
17542if test "${enable_builddocs+set}" = set; then :
17543  enableval=$enable_builddocs; BUILDDOCS=$enableval
17544else
17545  BUILDDOCS=no
17546fi
17547
17548# Check whether --enable-install-libxf86config was given.
17549if test "${enable_install_libxf86config+set}" = set; then :
17550  enableval=$enable_install_libxf86config; INSTALL_LIBXF86CONFIG=$enableval
17551else
17552  INSTALL_LIBXF86CONFIG=no
17553fi
17554
17555# Check whether --enable-visibility was given.
17556if test "${enable_visibility+set}" = set; then :
17557  enableval=$enable_visibility; SYMBOL_VISIBILITY=$enableval
17558else
17559  SYMBOL_VISIBILITY=auto
17560fi
17561
17562# Check whether --enable-pc98 was given.
17563if test "${enable_pc98+set}" = set; then :
17564  enableval=$enable_pc98; SUPPORT_PC98=$enableval
17565else
17566  SUPPORT_PC98=auto
17567fi
17568
17569
17570
17571# Check whether --with-dri-driver-path was given.
17572if test "${with_dri_driver_path+set}" = set; then :
17573  withval=$with_dri_driver_path;  DRI_DRIVER_PATH="$withval"
17574else
17575   DRI_DRIVER_PATH="${libdir}/dri"
17576fi
17577
17578# Check whether --enable-aiglx was given.
17579if test "${enable_aiglx+set}" = set; then :
17580  enableval=$enable_aiglx; AIGLX=$enableval
17581else
17582  AIGLX=yes
17583fi
17584
17585# Check whether --enable-glx-tls was given.
17586if test "${enable_glx_tls+set}" = set; then :
17587  enableval=$enable_glx_tls; GLX_USE_TLS=$enableval
17588else
17589  GLX_USE_TLS=no
17590fi
17591
17592
17593# Check whether --enable-registry was given.
17594if test "${enable_registry+set}" = set; then :
17595  enableval=$enable_registry; XREGISTRY=$enableval
17596else
17597  XREGISTRY=yes
17598fi
17599
17600# Check whether --enable-composite was given.
17601if test "${enable_composite+set}" = set; then :
17602  enableval=$enable_composite; COMPOSITE=$enableval
17603else
17604  COMPOSITE=yes
17605fi
17606
17607# Check whether --enable-mitshm was given.
17608if test "${enable_mitshm+set}" = set; then :
17609  enableval=$enable_mitshm; MITSHM=$enableval
17610else
17611  MITSHM=yes
17612fi
17613
17614# Check whether --enable-xres was given.
17615if test "${enable_xres+set}" = set; then :
17616  enableval=$enable_xres; RES=$enableval
17617else
17618  RES=yes
17619fi
17620
17621# Check whether --enable-record was given.
17622if test "${enable_record+set}" = set; then :
17623  enableval=$enable_record; RECORD=$enableval
17624else
17625  RECORD=yes
17626fi
17627
17628# Check whether --enable-xv was given.
17629if test "${enable_xv+set}" = set; then :
17630  enableval=$enable_xv; XV=$enableval
17631else
17632  XV=yes
17633fi
17634
17635# Check whether --enable-xvmc was given.
17636if test "${enable_xvmc+set}" = set; then :
17637  enableval=$enable_xvmc; XVMC=$enableval
17638else
17639  XVMC=yes
17640fi
17641
17642# Check whether --enable-dga was given.
17643if test "${enable_dga+set}" = set; then :
17644  enableval=$enable_dga; DGA=$enableval
17645else
17646  DGA=auto
17647fi
17648
17649# Check whether --enable-screensaver was given.
17650if test "${enable_screensaver+set}" = set; then :
17651  enableval=$enable_screensaver; SCREENSAVER=$enableval
17652else
17653  SCREENSAVER=yes
17654fi
17655
17656# Check whether --enable-xdmcp was given.
17657if test "${enable_xdmcp+set}" = set; then :
17658  enableval=$enable_xdmcp; XDMCP=$enableval
17659else
17660  XDMCP=auto
17661fi
17662
17663# Check whether --enable-xdm-auth-1 was given.
17664if test "${enable_xdm_auth_1+set}" = set; then :
17665  enableval=$enable_xdm_auth_1; XDMAUTH=$enableval
17666else
17667  XDMAUTH=auto
17668fi
17669
17670# Check whether --enable-glx was given.
17671if test "${enable_glx+set}" = set; then :
17672  enableval=$enable_glx; GLX=$enableval
17673else
17674  GLX=yes
17675fi
17676
17677# Check whether --enable-dri was given.
17678if test "${enable_dri+set}" = set; then :
17679  enableval=$enable_dri; DRI=$enableval
17680fi
17681
17682# Check whether --enable-dri2 was given.
17683if test "${enable_dri2+set}" = set; then :
17684  enableval=$enable_dri2; DRI2=$enableval
17685else
17686  DRI2=auto
17687fi
17688
17689# Check whether --enable-xinerama was given.
17690if test "${enable_xinerama+set}" = set; then :
17691  enableval=$enable_xinerama; XINERAMA=$enableval
17692else
17693  XINERAMA=yes
17694fi
17695
17696# Check whether --enable-xf86vidmode was given.
17697if test "${enable_xf86vidmode+set}" = set; then :
17698  enableval=$enable_xf86vidmode; XF86VIDMODE=$enableval
17699else
17700  XF86VIDMODE=auto
17701fi
17702
17703# Check whether --enable-xace was given.
17704if test "${enable_xace+set}" = set; then :
17705  enableval=$enable_xace; XACE=$enableval
17706else
17707  XACE=yes
17708fi
17709
17710# Check whether --enable-xselinux was given.
17711if test "${enable_xselinux+set}" = set; then :
17712  enableval=$enable_xselinux; XSELINUX=$enableval
17713else
17714  XSELINUX=no
17715fi
17716
17717# Check whether --enable-xcsecurity was given.
17718if test "${enable_xcsecurity+set}" = set; then :
17719  enableval=$enable_xcsecurity; XCSECURITY=$enableval
17720else
17721  XCSECURITY=no
17722fi
17723
17724# Check whether --enable-xcalibrate was given.
17725if test "${enable_xcalibrate+set}" = set; then :
17726  enableval=$enable_xcalibrate; XCALIBRATE=$enableval
17727else
17728  XCALIBRATE=no
17729fi
17730
17731# Check whether --enable-tslib was given.
17732if test "${enable_tslib+set}" = set; then :
17733  enableval=$enable_tslib; TSLIB=$enableval
17734else
17735  TSLIB=no
17736fi
17737
17738# Check whether --enable-dbe was given.
17739if test "${enable_dbe+set}" = set; then :
17740  enableval=$enable_dbe; DBE=$enableval
17741else
17742  DBE=yes
17743fi
17744
17745# Check whether --enable-xf86bigfont was given.
17746if test "${enable_xf86bigfont+set}" = set; then :
17747  enableval=$enable_xf86bigfont; XF86BIGFONT=$enableval
17748else
17749  XF86BIGFONT=no
17750fi
17751
17752# Check whether --enable-dpms was given.
17753if test "${enable_dpms+set}" = set; then :
17754  enableval=$enable_dpms; DPMSExtension=$enableval
17755else
17756  DPMSExtension=yes
17757fi
17758
17759# Check whether --enable-config-udev was given.
17760if test "${enable_config_udev+set}" = set; then :
17761  enableval=$enable_config_udev; CONFIG_UDEV=$enableval
17762else
17763  CONFIG_UDEV=auto
17764fi
17765
17766# Check whether --enable-config-dbus was given.
17767if test "${enable_config_dbus+set}" = set; then :
17768  enableval=$enable_config_dbus; CONFIG_DBUS_API=$enableval
17769else
17770  CONFIG_DBUS_API=no
17771fi
17772
17773# Check whether --enable-config-hal was given.
17774if test "${enable_config_hal+set}" = set; then :
17775  enableval=$enable_config_hal; CONFIG_HAL=$enableval
17776else
17777  CONFIG_HAL=auto
17778fi
17779
17780# Check whether --enable-xfree86-utils was given.
17781if test "${enable_xfree86_utils+set}" = set; then :
17782  enableval=$enable_xfree86_utils; XF86UTILS=$enableval
17783else
17784  XF86UTILS=yes
17785fi
17786
17787# Check whether --enable-xaa was given.
17788if test "${enable_xaa+set}" = set; then :
17789  enableval=$enable_xaa; XAA=$enableval
17790else
17791  XAA=yes
17792fi
17793
17794# Check whether --enable-vgahw was given.
17795if test "${enable_vgahw+set}" = set; then :
17796  enableval=$enable_vgahw; VGAHW=$enableval
17797else
17798  VGAHW=yes
17799fi
17800
17801# Check whether --enable-vbe was given.
17802if test "${enable_vbe+set}" = set; then :
17803  enableval=$enable_vbe; VBE=$enableval
17804else
17805  VBE=yes
17806fi
17807
17808# Check whether --enable-int10-module was given.
17809if test "${enable_int10_module+set}" = set; then :
17810  enableval=$enable_int10_module; INT10MODULE=$enableval
17811else
17812  INT10MODULE=yes
17813fi
17814
17815# Check whether --enable-windowswm was given.
17816if test "${enable_windowswm+set}" = set; then :
17817  enableval=$enable_windowswm; WINDOWSWM=$enableval
17818else
17819  WINDOWSWM=no
17820fi
17821
17822# Check whether --enable-libdrm was given.
17823if test "${enable_libdrm+set}" = set; then :
17824  enableval=$enable_libdrm; DRM=$enableval
17825else
17826  DRM=yes
17827fi
17828
17829
17830# Check whether --enable-xorg was given.
17831if test "${enable_xorg+set}" = set; then :
17832  enableval=$enable_xorg; XORG=$enableval
17833else
17834  XORG=auto
17835fi
17836
17837# Check whether --enable-dmx was given.
17838if test "${enable_dmx+set}" = set; then :
17839  enableval=$enable_dmx; DMX=$enableval
17840else
17841  DMX=auto
17842fi
17843
17844# Check whether --enable-xvfb was given.
17845if test "${enable_xvfb+set}" = set; then :
17846  enableval=$enable_xvfb; XVFB=$enableval
17847else
17848  XVFB=yes
17849fi
17850
17851# Check whether --enable-xnest was given.
17852if test "${enable_xnest+set}" = set; then :
17853  enableval=$enable_xnest; XNEST=$enableval
17854else
17855  XNEST=auto
17856fi
17857
17858# Check whether --enable-xquartz was given.
17859if test "${enable_xquartz+set}" = set; then :
17860  enableval=$enable_xquartz; XQUARTZ=$enableval
17861else
17862  XQUARTZ=auto
17863fi
17864
17865# Check whether --enable-standalone-xpbproxy was given.
17866if test "${enable_standalone_xpbproxy+set}" = set; then :
17867  enableval=$enable_standalone_xpbproxy; STANDALONE_XPBPROXY=$enableval
17868else
17869  STANDALONE_XPBPROXY=no
17870fi
17871
17872# Check whether --enable-xwin was given.
17873if test "${enable_xwin+set}" = set; then :
17874  enableval=$enable_xwin; XWIN=$enableval
17875else
17876  XWIN=auto
17877fi
17878
17879# Check whether --enable-kdrive was given.
17880if test "${enable_kdrive+set}" = set; then :
17881  enableval=$enable_kdrive; KDRIVE=$enableval
17882else
17883  KDRIVE=no
17884fi
17885
17886# Check whether --enable-xephyr was given.
17887if test "${enable_xephyr+set}" = set; then :
17888  enableval=$enable_xephyr; XEPHYR=$enableval
17889else
17890  XEPHYR=auto
17891fi
17892
17893# Check whether --enable-xfake was given.
17894if test "${enable_xfake+set}" = set; then :
17895  enableval=$enable_xfake; XFAKE=$enableval
17896else
17897  XFAKE=auto
17898fi
17899
17900# Check whether --enable-xfbdev was given.
17901if test "${enable_xfbdev+set}" = set; then :
17902  enableval=$enable_xfbdev; XFBDEV=$enableval
17903else
17904  XFBDEV=auto
17905fi
17906
17907# Check whether --enable-kdrive-kbd was given.
17908if test "${enable_kdrive_kbd+set}" = set; then :
17909  enableval=$enable_kdrive_kbd; KDRIVE_KBD=$enableval
17910else
17911  KDRIVE_KBD=auto
17912fi
17913
17914# Check whether --enable-kdrive-mouse was given.
17915if test "${enable_kdrive_mouse+set}" = set; then :
17916  enableval=$enable_kdrive_mouse; KDRIVE_MOUSE=$enableval
17917else
17918  KDRIVE_MOUSE=auto
17919fi
17920
17921# Check whether --enable-kdrive-evdev was given.
17922if test "${enable_kdrive_evdev+set}" = set; then :
17923  enableval=$enable_kdrive_evdev; KDRIVE_EVDEV=$enableval
17924else
17925  KDRIVE_EVDEV=auto
17926fi
17927
17928
17929
17930# Check whether --enable-install-setuid was given.
17931if test "${enable_install_setuid+set}" = set; then :
17932  enableval=$enable_install_setuid; SETUID=$enableval
17933else
17934  SETUID=auto
17935fi
17936
17937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if we can install the Xorg server as root" >&5
17938$as_echo_n "checking to see if we can install the Xorg server as root... " >&6; }
17939if test "x$SETUID" = "xauto" ; then
17940	case $host_os in
17941	    cygwin*)		SETUID="no"  ;;
17942	    darwin*)		SETUID="no"  ;;
17943	    *)
17944	   	case $host_cpu in
17945		    sparc)	SETUID="no"  ;;
17946		    *)		SETUID="yes" ;;
17947		esac
17948	esac
17949	if test "x$SETUID" = xyes; then
17950		touch testfile
17951		chown root testfile > /dev/null 2>&1 || SETUID="no"
17952		rm -f testfile
17953	fi
17954fi
17955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETUID" >&5
17956$as_echo "$SETUID" >&6; }
17957 if test "x$SETUID" = "xyes"; then
17958  INSTALL_SETUID_TRUE=
17959  INSTALL_SETUID_FALSE='#'
17960else
17961  INSTALL_SETUID_TRUE='#'
17962  INSTALL_SETUID_FALSE=
17963fi
17964
17965
17966
17967
17968# Transport selection macro from xtrans.m4
17969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
17970$as_echo_n "checking return type of signal handlers... " >&6; }
17971if ${ac_cv_type_signal+:} false; then :
17972  $as_echo_n "(cached) " >&6
17973else
17974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17975/* end confdefs.h.  */
17976#include <sys/types.h>
17977#include <signal.h>
17978
17979int
17980main ()
17981{
17982return *(signal (0, 0)) (0) == 1;
17983  ;
17984  return 0;
17985}
17986_ACEOF
17987if ac_fn_c_try_compile "$LINENO"; then :
17988  ac_cv_type_signal=int
17989else
17990  ac_cv_type_signal=void
17991fi
17992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17993fi
17994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
17995$as_echo "$ac_cv_type_signal" >&6; }
17996
17997cat >>confdefs.h <<_ACEOF
17998#define RETSIGTYPE $ac_cv_type_signal
17999_ACEOF
18000
18001
18002
18003
18004
18005 case $host_os in
18006	mingw*)	unixdef="no"   ;;
18007	*)	unixdef="yes"  ;;
18008 esac
18009 # Check whether --enable-unix-transport was given.
18010if test "${enable_unix_transport+set}" = set; then :
18011  enableval=$enable_unix_transport; UNIXCONN=$enableval
18012else
18013  UNIXCONN=$unixdef
18014fi
18015
18016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
18017$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
18018 if test "$UNIXCONN" = "yes"; then
18019
18020$as_echo "#define UNIXCONN 1" >>confdefs.h
18021
18022 fi
18023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
18024$as_echo "$UNIXCONN" >&6; }
18025 # Check whether --enable-tcp-transport was given.
18026if test "${enable_tcp_transport+set}" = set; then :
18027  enableval=$enable_tcp_transport; TCPCONN=$enableval
18028else
18029  TCPCONN=yes
18030fi
18031
18032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
18033$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
18034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
18035$as_echo "$TCPCONN" >&6; }
18036 if test "$TCPCONN" = "yes"; then
18037
18038$as_echo "#define TCPCONN 1" >>confdefs.h
18039
18040
18041 # SVR4 hides these in libraries other than libc
18042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
18043$as_echo_n "checking for library containing socket... " >&6; }
18044if ${ac_cv_search_socket+:} false; then :
18045  $as_echo_n "(cached) " >&6
18046else
18047  ac_func_search_save_LIBS=$LIBS
18048cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18049/* end confdefs.h.  */
18050
18051/* Override any GCC internal prototype to avoid an error.
18052   Use char because int might match the return type of a GCC
18053   builtin and then its argument prototype would still apply.  */
18054#ifdef __cplusplus
18055extern "C"
18056#endif
18057char socket ();
18058int
18059main ()
18060{
18061return socket ();
18062  ;
18063  return 0;
18064}
18065_ACEOF
18066for ac_lib in '' socket; do
18067  if test -z "$ac_lib"; then
18068    ac_res="none required"
18069  else
18070    ac_res=-l$ac_lib
18071    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18072  fi
18073  if ac_fn_c_try_link "$LINENO"; then :
18074  ac_cv_search_socket=$ac_res
18075fi
18076rm -f core conftest.err conftest.$ac_objext \
18077    conftest$ac_exeext
18078  if ${ac_cv_search_socket+:} false; then :
18079  break
18080fi
18081done
18082if ${ac_cv_search_socket+:} false; then :
18083
18084else
18085  ac_cv_search_socket=no
18086fi
18087rm conftest.$ac_ext
18088LIBS=$ac_func_search_save_LIBS
18089fi
18090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
18091$as_echo "$ac_cv_search_socket" >&6; }
18092ac_res=$ac_cv_search_socket
18093if test "$ac_res" != no; then :
18094  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18095
18096fi
18097
18098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
18099$as_echo_n "checking for library containing gethostbyname... " >&6; }
18100if ${ac_cv_search_gethostbyname+:} false; then :
18101  $as_echo_n "(cached) " >&6
18102else
18103  ac_func_search_save_LIBS=$LIBS
18104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18105/* end confdefs.h.  */
18106
18107/* Override any GCC internal prototype to avoid an error.
18108   Use char because int might match the return type of a GCC
18109   builtin and then its argument prototype would still apply.  */
18110#ifdef __cplusplus
18111extern "C"
18112#endif
18113char gethostbyname ();
18114int
18115main ()
18116{
18117return gethostbyname ();
18118  ;
18119  return 0;
18120}
18121_ACEOF
18122for ac_lib in '' nsl; do
18123  if test -z "$ac_lib"; then
18124    ac_res="none required"
18125  else
18126    ac_res=-l$ac_lib
18127    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18128  fi
18129  if ac_fn_c_try_link "$LINENO"; then :
18130  ac_cv_search_gethostbyname=$ac_res
18131fi
18132rm -f core conftest.err conftest.$ac_objext \
18133    conftest$ac_exeext
18134  if ${ac_cv_search_gethostbyname+:} false; then :
18135  break
18136fi
18137done
18138if ${ac_cv_search_gethostbyname+:} false; then :
18139
18140else
18141  ac_cv_search_gethostbyname=no
18142fi
18143rm conftest.$ac_ext
18144LIBS=$ac_func_search_save_LIBS
18145fi
18146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
18147$as_echo "$ac_cv_search_gethostbyname" >&6; }
18148ac_res=$ac_cv_search_gethostbyname
18149if test "$ac_res" != no; then :
18150  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18151
18152fi
18153
18154 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
18155   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
18156$as_echo_n "checking for main in -lws2_32... " >&6; }
18157if ${ac_cv_lib_ws2_32_main+:} false; then :
18158  $as_echo_n "(cached) " >&6
18159else
18160  ac_check_lib_save_LIBS=$LIBS
18161LIBS="-lws2_32  $LIBS"
18162cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18163/* end confdefs.h.  */
18164
18165
18166int
18167main ()
18168{
18169return main ();
18170  ;
18171  return 0;
18172}
18173_ACEOF
18174if ac_fn_c_try_link "$LINENO"; then :
18175  ac_cv_lib_ws2_32_main=yes
18176else
18177  ac_cv_lib_ws2_32_main=no
18178fi
18179rm -f core conftest.err conftest.$ac_objext \
18180    conftest$ac_exeext conftest.$ac_ext
18181LIBS=$ac_check_lib_save_LIBS
18182fi
18183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
18184$as_echo "$ac_cv_lib_ws2_32_main" >&6; }
18185if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
18186  cat >>confdefs.h <<_ACEOF
18187#define HAVE_LIBWS2_32 1
18188_ACEOF
18189
18190  LIBS="-lws2_32 $LIBS"
18191
18192fi
18193ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main
18194
18195 fi
18196
18197 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
18198 # Check whether --enable-ipv6 was given.
18199if test "${enable_ipv6+set}" = set; then :
18200  enableval=$enable_ipv6; IPV6CONN=$enableval
18201else
18202  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
18203if test "x$ac_cv_func_getaddrinfo" = xyes; then :
18204  IPV6CONN=yes
18205else
18206  IPV6CONN=no
18207fi
18208
18209fi
18210
18211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
18212$as_echo_n "checking if IPv6 support should be built... " >&6; }
18213 if test "$IPV6CONN" = "yes"; then
18214
18215$as_echo "#define IPv6 1" >>confdefs.h
18216
18217 fi
18218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
18219$as_echo "$IPV6CONN" >&6; }
18220
18221 # 4.3BSD-Reno added a new member to struct sockaddr_in
18222 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
18223#include <sys/types.h>
18224#include <sys/socket.h>
18225#include <netinet/in.h>
18226
18227"
18228if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
18229
18230$as_echo "#define BSD44SOCKETS 1" >>confdefs.h
18231
18232fi
18233
18234
18235 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
18236 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
18237$ac_includes_default
18238#include <sys/socket.h>
18239"
18240if test "x$ac_cv_type_socklen_t" = xyes; then :
18241
18242cat >>confdefs.h <<_ACEOF
18243#define HAVE_SOCKLEN_T 1
18244_ACEOF
18245
18246
18247fi
18248
18249
18250
18251 fi
18252 case $host_os in
18253	solaris*|sco*|sysv4*)	localdef="yes" ;;
18254	*)			localdef="no"  ;;
18255 esac
18256 # Check whether --enable-local-transport was given.
18257if test "${enable_local_transport+set}" = set; then :
18258  enableval=$enable_local_transport; LOCALCONN=$enableval
18259else
18260  LOCALCONN=$localdef
18261fi
18262
18263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
18264$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
18265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
18266$as_echo "$LOCALCONN" >&6; }
18267 if test "$LOCALCONN" = "yes"; then
18268
18269$as_echo "#define LOCALCONN 1" >>confdefs.h
18270
18271 fi
18272
18273
18274
18275# Secure RPC detection macro from xtrans.m4
18276
18277 # Check whether --enable-secure-rpc was given.
18278if test "${enable_secure_rpc+set}" = set; then :
18279  enableval=$enable_secure_rpc; SECURE_RPC=$enableval
18280else
18281  SECURE_RPC="try"
18282fi
18283
18284
18285 if test "x$SECURE_RPC" = "xyes" -o "x$SECURE_RPC" = "xtry" ; then
18286	FOUND_SECURE_RPC="no"
18287	for ac_func in authdes_seccreate authdes_create
18288do :
18289  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18290ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18291if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18292  cat >>confdefs.h <<_ACEOF
18293#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18294_ACEOF
18295 FOUND_SECURE_RPC="yes"
18296fi
18297done
18298
18299	if test "x$FOUND_SECURE_RPC" = "xno" ; then
18300		if test "x$SECURE_RPC" = "xyes" ; then
18301	as_fn_error $? "Secure RPC requested, but required functions not found" "$LINENO" 5
18302		fi
18303		SECURE_RPC="no"
18304	else
18305				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsecretkey" >&5
18306$as_echo_n "checking for library containing getsecretkey... " >&6; }
18307if ${ac_cv_search_getsecretkey+:} false; then :
18308  $as_echo_n "(cached) " >&6
18309else
18310  ac_func_search_save_LIBS=$LIBS
18311cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18312/* end confdefs.h.  */
18313
18314/* Override any GCC internal prototype to avoid an error.
18315   Use char because int might match the return type of a GCC
18316   builtin and then its argument prototype would still apply.  */
18317#ifdef __cplusplus
18318extern "C"
18319#endif
18320char getsecretkey ();
18321int
18322main ()
18323{
18324return getsecretkey ();
18325  ;
18326  return 0;
18327}
18328_ACEOF
18329for ac_lib in '' rpcsvc; do
18330  if test -z "$ac_lib"; then
18331    ac_res="none required"
18332  else
18333    ac_res=-l$ac_lib
18334    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18335  fi
18336  if ac_fn_c_try_link "$LINENO"; then :
18337  ac_cv_search_getsecretkey=$ac_res
18338fi
18339rm -f core conftest.err conftest.$ac_objext \
18340    conftest$ac_exeext
18341  if ${ac_cv_search_getsecretkey+:} false; then :
18342  break
18343fi
18344done
18345if ${ac_cv_search_getsecretkey+:} false; then :
18346
18347else
18348  ac_cv_search_getsecretkey=no
18349fi
18350rm conftest.$ac_ext
18351LIBS=$ac_func_search_save_LIBS
18352fi
18353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsecretkey" >&5
18354$as_echo "$ac_cv_search_getsecretkey" >&6; }
18355ac_res=$ac_cv_search_getsecretkey
18356if test "$ac_res" != no; then :
18357  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18358
18359fi
18360
18361		SECURE_RPC="yes"
18362	fi
18363 fi
18364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Secure RPC authentication (\"SUN-DES-1\") should be supported" >&5
18365$as_echo_n "checking if Secure RPC authentication (\"SUN-DES-1\") should be supported... " >&6; }
18366 if test "x$SECURE_RPC" = "xyes" ; then
18367
18368$as_echo "#define SECURE_RPC 1" >>confdefs.h
18369
18370 fi
18371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SECURE_RPC" >&5
18372$as_echo "$SECURE_RPC" >&6; }
18373
18374 if test "x$SECURE_RPC" = xyes; then
18375  SECURE_RPC_TRUE=
18376  SECURE_RPC_FALSE='#'
18377else
18378  SECURE_RPC_TRUE='#'
18379  SECURE_RPC_FALSE=
18380fi
18381
18382
18383 if test "x$INT10" = xvm86; then
18384  INT10_VM86_TRUE=
18385  INT10_VM86_FALSE='#'
18386else
18387  INT10_VM86_TRUE='#'
18388  INT10_VM86_FALSE=
18389fi
18390
18391 if test "x$INT10" = xx86emu; then
18392  INT10_X86EMU_TRUE=
18393  INT10_X86EMU_FALSE='#'
18394else
18395  INT10_X86EMU_TRUE='#'
18396  INT10_X86EMU_FALSE=
18397fi
18398
18399 if test "x$INT10" = xstub; then
18400  INT10_STUB_TRUE=
18401  INT10_STUB_FALSE='#'
18402else
18403  INT10_STUB_TRUE='#'
18404  INT10_STUB_FALSE=
18405fi
18406
18407if test "x$INT10" = xyes; then
18408		for ac_header in sys/vm86.h sys/io.h
18409do :
18410  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18411ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18412if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18413  cat >>confdefs.h <<_ACEOF
18414#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18415_ACEOF
18416
18417fi
18418
18419done
18420
18421fi
18422
18423 if test "x$BUILDDOCS" = xyes; then
18424  BUILDDOCS_TRUE=
18425  BUILDDOCS_FALSE='#'
18426else
18427  BUILDDOCS_TRUE='#'
18428  BUILDDOCS_FALSE=
18429fi
18430
18431
18432
18433# Check whether --enable-docs was given.
18434if test "${enable_docs+set}" = set; then :
18435  enableval=$enable_docs; build_docs=$enableval
18436else
18437  build_docs=yes
18438fi
18439
18440
18441 if test x$build_docs = xyes; then
18442  ENABLE_DOCS_TRUE=
18443  ENABLE_DOCS_FALSE='#'
18444else
18445  ENABLE_DOCS_TRUE='#'
18446  ENABLE_DOCS_FALSE=
18447fi
18448
18449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5
18450$as_echo_n "checking whether to build documentation... " >&6; }
18451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5
18452$as_echo "$build_docs" >&6; }
18453
18454
18455
18456# Check whether --enable-devel-docs was given.
18457if test "${enable_devel_docs+set}" = set; then :
18458  enableval=$enable_devel_docs; build_devel_docs=$enableval
18459else
18460  build_devel_docs=yes
18461fi
18462
18463
18464 if test x$build_devel_docs = xyes; then
18465  ENABLE_DEVEL_DOCS_TRUE=
18466  ENABLE_DEVEL_DOCS_FALSE='#'
18467else
18468  ENABLE_DEVEL_DOCS_TRUE='#'
18469  ENABLE_DEVEL_DOCS_FALSE=
18470fi
18471
18472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build developer documentation" >&5
18473$as_echo_n "checking whether to build developer documentation... " >&6; }
18474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_devel_docs" >&5
18475$as_echo "$build_devel_docs" >&6; }
18476
18477
18478
18479
18480
18481# Check whether --with-xmlto was given.
18482if test "${with_xmlto+set}" = set; then :
18483  withval=$with_xmlto; use_xmlto=$withval
18484else
18485  use_xmlto=auto
18486fi
18487
18488
18489
18490if test "x$use_xmlto" = x"auto"; then
18491   # Extract the first word of "xmlto", so it can be a program name with args.
18492set dummy xmlto; ac_word=$2
18493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18494$as_echo_n "checking for $ac_word... " >&6; }
18495if ${ac_cv_path_XMLTO+:} false; then :
18496  $as_echo_n "(cached) " >&6
18497else
18498  case $XMLTO in
18499  [\\/]* | ?:[\\/]*)
18500  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
18501  ;;
18502  *)
18503  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18504for as_dir in $PATH
18505do
18506  IFS=$as_save_IFS
18507  test -z "$as_dir" && as_dir=.
18508    for ac_exec_ext in '' $ac_executable_extensions; do
18509  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18510    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
18511    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18512    break 2
18513  fi
18514done
18515  done
18516IFS=$as_save_IFS
18517
18518  ;;
18519esac
18520fi
18521XMLTO=$ac_cv_path_XMLTO
18522if test -n "$XMLTO"; then
18523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
18524$as_echo "$XMLTO" >&6; }
18525else
18526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18527$as_echo "no" >&6; }
18528fi
18529
18530
18531   if test "x$XMLTO" = "x"; then
18532        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
18533$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
18534	have_xmlto=no
18535   else
18536        have_xmlto=yes
18537   fi
18538elif test "x$use_xmlto" = x"yes" ; then
18539   # Extract the first word of "xmlto", so it can be a program name with args.
18540set dummy xmlto; ac_word=$2
18541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18542$as_echo_n "checking for $ac_word... " >&6; }
18543if ${ac_cv_path_XMLTO+:} false; then :
18544  $as_echo_n "(cached) " >&6
18545else
18546  case $XMLTO in
18547  [\\/]* | ?:[\\/]*)
18548  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
18549  ;;
18550  *)
18551  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18552for as_dir in $PATH
18553do
18554  IFS=$as_save_IFS
18555  test -z "$as_dir" && as_dir=.
18556    for ac_exec_ext in '' $ac_executable_extensions; do
18557  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18558    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
18559    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18560    break 2
18561  fi
18562done
18563  done
18564IFS=$as_save_IFS
18565
18566  ;;
18567esac
18568fi
18569XMLTO=$ac_cv_path_XMLTO
18570if test -n "$XMLTO"; then
18571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
18572$as_echo "$XMLTO" >&6; }
18573else
18574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18575$as_echo "no" >&6; }
18576fi
18577
18578
18579   if test "x$XMLTO" = "x"; then
18580        as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
18581   fi
18582   have_xmlto=yes
18583elif test "x$use_xmlto" = x"no" ; then
18584   if test "x$XMLTO" != "x"; then
18585      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
18586$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
18587   fi
18588   have_xmlto=no
18589else
18590   as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
18591fi
18592
18593# Test for a minimum version of xmlto, if provided.
18594if test "$have_xmlto" = yes; then
18595    # scrape the xmlto version
18596    { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
18597$as_echo_n "checking the xmlto version... " >&6; }
18598    xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
18599    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
18600$as_echo "$xmlto_version" >&6; }
18601    as_arg_v1=$xmlto_version
18602as_arg_v2=0.0.20
18603awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
18604case $? in #(
18605  1) :
18606    if test "x$use_xmlto" = xauto; then
18607            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&5
18608$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&2;}
18609            have_xmlto=no
18610        else
18611            as_fn_error $? "xmlto version $xmlto_version found, but 0.0.20 needed" "$LINENO" 5
18612        fi ;; #(
18613  0) :
18614     ;; #(
18615  2) :
18616     ;; #(
18617  *) :
18618     ;;
18619esac
18620fi
18621
18622# Test for the ability of xmlto to generate a text target
18623have_xmlto_text=no
18624cat > conftest.xml << "EOF"
18625EOF
18626if test "$have_xmlto" = yes; then :
18627  if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
18628  have_xmlto_text=yes
18629else
18630  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
18631$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
18632fi
18633fi
18634rm -f conftest.xml
18635 if test $have_xmlto_text = yes; then
18636  HAVE_XMLTO_TEXT_TRUE=
18637  HAVE_XMLTO_TEXT_FALSE='#'
18638else
18639  HAVE_XMLTO_TEXT_TRUE='#'
18640  HAVE_XMLTO_TEXT_FALSE=
18641fi
18642
18643 if test "$have_xmlto" = yes; then
18644  HAVE_XMLTO_TRUE=
18645  HAVE_XMLTO_FALSE='#'
18646else
18647  HAVE_XMLTO_TRUE='#'
18648  HAVE_XMLTO_FALSE=
18649fi
18650
18651
18652
18653
18654
18655
18656# Check whether --with-fop was given.
18657if test "${with_fop+set}" = set; then :
18658  withval=$with_fop; use_fop=$withval
18659else
18660  use_fop=auto
18661fi
18662
18663
18664
18665if test "x$use_fop" = x"auto"; then
18666   # Extract the first word of "fop", so it can be a program name with args.
18667set dummy fop; ac_word=$2
18668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18669$as_echo_n "checking for $ac_word... " >&6; }
18670if ${ac_cv_path_FOP+:} false; then :
18671  $as_echo_n "(cached) " >&6
18672else
18673  case $FOP in
18674  [\\/]* | ?:[\\/]*)
18675  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
18676  ;;
18677  *)
18678  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18679for as_dir in $PATH
18680do
18681  IFS=$as_save_IFS
18682  test -z "$as_dir" && as_dir=.
18683    for ac_exec_ext in '' $ac_executable_extensions; do
18684  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18685    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
18686    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18687    break 2
18688  fi
18689done
18690  done
18691IFS=$as_save_IFS
18692
18693  ;;
18694esac
18695fi
18696FOP=$ac_cv_path_FOP
18697if test -n "$FOP"; then
18698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
18699$as_echo "$FOP" >&6; }
18700else
18701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18702$as_echo "no" >&6; }
18703fi
18704
18705
18706   if test "x$FOP" = "x"; then
18707        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
18708$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
18709	have_fop=no
18710   else
18711        have_fop=yes
18712   fi
18713elif test "x$use_fop" = x"yes" ; then
18714   # Extract the first word of "fop", so it can be a program name with args.
18715set dummy fop; ac_word=$2
18716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18717$as_echo_n "checking for $ac_word... " >&6; }
18718if ${ac_cv_path_FOP+:} false; then :
18719  $as_echo_n "(cached) " >&6
18720else
18721  case $FOP in
18722  [\\/]* | ?:[\\/]*)
18723  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
18724  ;;
18725  *)
18726  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18727for as_dir in $PATH
18728do
18729  IFS=$as_save_IFS
18730  test -z "$as_dir" && as_dir=.
18731    for ac_exec_ext in '' $ac_executable_extensions; do
18732  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18733    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
18734    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18735    break 2
18736  fi
18737done
18738  done
18739IFS=$as_save_IFS
18740
18741  ;;
18742esac
18743fi
18744FOP=$ac_cv_path_FOP
18745if test -n "$FOP"; then
18746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
18747$as_echo "$FOP" >&6; }
18748else
18749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18750$as_echo "no" >&6; }
18751fi
18752
18753
18754   if test "x$FOP" = "x"; then
18755        as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
18756   fi
18757   have_fop=yes
18758elif test "x$use_fop" = x"no" ; then
18759   if test "x$FOP" != "x"; then
18760      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
18761$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
18762   fi
18763   have_fop=no
18764else
18765   as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
18766fi
18767 if test "$have_fop" = yes; then
18768  HAVE_FOP_TRUE=
18769  HAVE_FOP_FALSE='#'
18770else
18771  HAVE_FOP_TRUE='#'
18772  HAVE_FOP_FALSE=
18773fi
18774
18775
18776
18777 if test "x$INSTALL_LIBXF86CONFIG" = xyes; then
18778  INSTALL_LIBXF86CONFIG_TRUE=
18779  INSTALL_LIBXF86CONFIG_FALSE='#'
18780else
18781  INSTALL_LIBXF86CONFIG_TRUE='#'
18782  INSTALL_LIBXF86CONFIG_FALSE=
18783fi
18784
18785
18786case $host_os in
18787	cygwin*)
18788		DGA=no
18789		DRI2=no
18790		XF86VIDMODE=no
18791		XSELINUX=no
18792		XV=no
18793		;;
18794	darwin*)
18795		DRI2=no
18796
18797		if test x$XQUARTZ = xauto; then
18798			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xquartz" >&5
18799$as_echo_n "checking whether to build Xquartz... " >&6; }
18800if ${xorg_cv_Carbon_framework+:} false; then :
18801  $as_echo_n "(cached) " >&6
18802else
18803
18804		 		save_LDFLAGS=$LDFLAGS
18805				LDFLAGS="$LDFLAGS -framework Carbon"
18806				cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18807/* end confdefs.h.  */
18808char FSFindFolder(); int main() { FSFindFolder(); return 0;}
18809_ACEOF
18810if ac_fn_c_try_link "$LINENO"; then :
18811  xorg_cv_Carbon_framework=yes
18812else
18813  xorg_cv_Carbon_framework=no
18814fi
18815rm -f core conftest.err conftest.$ac_objext \
18816    conftest$ac_exeext conftest.$ac_ext
18817			LDFLAGS=$save_LDFLAGS
18818fi
18819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_Carbon_framework" >&5
18820$as_echo "$xorg_cv_Carbon_framework" >&6; }
18821
18822			if test "X$xorg_cv_Carbon_framework" = Xyes; then
18823				XQUARTZ=yes
18824			else
18825				XQUARTZ=no
18826			fi
18827		fi
18828
18829		if test "x$XQUARTZ" = xyes ; then
18830			XQUARTZ=yes
18831			XVFB=no
18832			XNEST=no
18833
18834			COMPOSITE=no
18835			DGA=no
18836			DPMSExtension=no
18837			XF86VIDMODE=no
18838		fi
18839		;;
18840	*) XQUARTZ=no ;;
18841esac
18842
18843XEXT_INC='-I$(top_srcdir)/Xext'
18844XEXT_LIB='$(top_builddir)/Xext/libXext.la'
18845XEXTXORG_LIB='$(top_builddir)/Xext/libXextbuiltin.la'
18846
18847VIDEOPROTO="videoproto"
18848COMPOSITEPROTO="compositeproto >= 0.4"
18849RECORDPROTO="recordproto >= 1.13.99.1"
18850SCRNSAVERPROTO="scrnsaverproto >= 1.1"
18851RESOURCEPROTO="resourceproto"
18852DRIPROTO="xf86driproto >= 2.1.0"
18853DRI2PROTO="dri2proto >= 2.3"
18854XINERAMAPROTO="xineramaproto"
18855BIGFONTPROTO="xf86bigfontproto >= 1.2.0"
18856XCALIBRATEPROTO="xcalibrateproto"
18857DGAPROTO="xf86dgaproto >= 2.0.99.1"
18858GLPROTO="glproto >= 1.4.10"
18859DMXPROTO="dmxproto >= 2.2.99.1"
18860VIDMODEPROTO="xf86vidmodeproto >= 2.2.99.1"
18861WINDOWSWMPROTO="windowswmproto"
18862APPLEWMPROTO="applewmproto >= 1.4"
18863
18864SDK_REQUIRED_MODULES="xproto >= 7.0.17 randrproto >= 1.2.99.3 renderproto >= 0.11 xextproto >= 7.0.99.3 inputproto >= 1.9.99.902 kbproto >= 1.0.3 fontsproto"
18865# Make SDK_REQUIRED_MODULES available for inclusion in xorg-server.pc
18866
18867
18868LIBAPPLEWM="applewm >= 1.4"
18869LIBDMX="dmx >= 1.0.99.1"
18870LIBDRI="dri >= 7.8.0"
18871LIBDRM="libdrm >= 2.3.0"
18872LIBGL="gl >= 7.1.0"
18873LIBXEXT="xext >= 1.0.99.4"
18874LIBXFONT="xfont >= 1.4.2"
18875LIBXI="xi >= 1.2.99.1"
18876LIBXTST="xtst >= 1.0.99.2"
18877LIBPCIACCESS="pciaccess >= 0.8.0"
18878LIBGLIB="glib-2.0 >= 2.16"
18879LIBUDEV="libudev >= 143"
18880LIBSELINUX="libselinux >= 2.0.86"
18881LIBDBUS="dbus-1 >= 1.0"
18882LIBPIXMAN="pixman-1 >= 0.15.20"
18883
18884
18885pkg_failed=no
18886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIXMAN" >&5
18887$as_echo_n "checking for PIXMAN... " >&6; }
18888
18889if test -n "$PIXMAN_CFLAGS"; then
18890    pkg_cv_PIXMAN_CFLAGS="$PIXMAN_CFLAGS"
18891 elif test -n "$PKG_CONFIG"; then
18892    if test -n "$PKG_CONFIG" && \
18893    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPIXMAN\""; } >&5
18894  ($PKG_CONFIG --exists --print-errors "$LIBPIXMAN") 2>&5
18895  ac_status=$?
18896  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18897  test $ac_status = 0; }; then
18898  pkg_cv_PIXMAN_CFLAGS=`$PKG_CONFIG --cflags "$LIBPIXMAN" 2>/dev/null`
18899else
18900  pkg_failed=yes
18901fi
18902 else
18903    pkg_failed=untried
18904fi
18905if test -n "$PIXMAN_LIBS"; then
18906    pkg_cv_PIXMAN_LIBS="$PIXMAN_LIBS"
18907 elif test -n "$PKG_CONFIG"; then
18908    if test -n "$PKG_CONFIG" && \
18909    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPIXMAN\""; } >&5
18910  ($PKG_CONFIG --exists --print-errors "$LIBPIXMAN") 2>&5
18911  ac_status=$?
18912  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18913  test $ac_status = 0; }; then
18914  pkg_cv_PIXMAN_LIBS=`$PKG_CONFIG --libs "$LIBPIXMAN" 2>/dev/null`
18915else
18916  pkg_failed=yes
18917fi
18918 else
18919    pkg_failed=untried
18920fi
18921
18922
18923
18924if test $pkg_failed = yes; then
18925   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18926$as_echo "no" >&6; }
18927
18928if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18929        _pkg_short_errors_supported=yes
18930else
18931        _pkg_short_errors_supported=no
18932fi
18933        if test $_pkg_short_errors_supported = yes; then
18934	        PIXMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBPIXMAN" 2>&1`
18935        else
18936	        PIXMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBPIXMAN" 2>&1`
18937        fi
18938	# Put the nasty error message in config.log where it belongs
18939	echo "$PIXMAN_PKG_ERRORS" >&5
18940
18941	as_fn_error $? "Package requirements ($LIBPIXMAN) were not met:
18942
18943$PIXMAN_PKG_ERRORS
18944
18945Consider adjusting the PKG_CONFIG_PATH environment variable if you
18946installed software in a non-standard prefix.
18947
18948Alternatively, you may set the environment variables PIXMAN_CFLAGS
18949and PIXMAN_LIBS to avoid the need to call pkg-config.
18950See the pkg-config man page for more details." "$LINENO" 5
18951elif test $pkg_failed = untried; then
18952     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18953$as_echo "no" >&6; }
18954	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18955$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18956as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18957is in your PATH or set the PKG_CONFIG environment variable to the full
18958path to pkg-config.
18959
18960Alternatively, you may set the environment variables PIXMAN_CFLAGS
18961and PIXMAN_LIBS to avoid the need to call pkg-config.
18962See the pkg-config man page for more details.
18963
18964To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18965See \`config.log' for more details" "$LINENO" 5; }
18966else
18967	PIXMAN_CFLAGS=$pkg_cv_PIXMAN_CFLAGS
18968	PIXMAN_LIBS=$pkg_cv_PIXMAN_LIBS
18969        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18970$as_echo "yes" >&6; }
18971
18972fi
18973REQUIRED_LIBS="$REQUIRED_LIBS $LIBPIXMAN $LIBXFONT xau"
18974
18975REQUIRED_MODULES="fixesproto >= 4.1 damageproto >= 1.1 xcmiscproto >= 1.2.0 xtrans >= 1.2.2 bigreqsproto >= 1.1.0 $SDK_REQUIRED_MODULES"
18976
18977if test "x$CONFIG_UDEV" = xyes &&
18978 { test "x$CONFIG_DBUS_API" = xyes || test "x$CONFIG_HAL" = xyes; }; then
18979	as_fn_error $? "Hotplugging through both libudev and dbus/hal not allowed" "$LINENO" 5
18980fi
18981
18982
18983pkg_failed=no
18984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
18985$as_echo_n "checking for UDEV... " >&6; }
18986
18987if test -n "$UDEV_CFLAGS"; then
18988    pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
18989 elif test -n "$PKG_CONFIG"; then
18990    if test -n "$PKG_CONFIG" && \
18991    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBUDEV\""; } >&5
18992  ($PKG_CONFIG --exists --print-errors "$LIBUDEV") 2>&5
18993  ac_status=$?
18994  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18995  test $ac_status = 0; }; then
18996  pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "$LIBUDEV" 2>/dev/null`
18997else
18998  pkg_failed=yes
18999fi
19000 else
19001    pkg_failed=untried
19002fi
19003if test -n "$UDEV_LIBS"; then
19004    pkg_cv_UDEV_LIBS="$UDEV_LIBS"
19005 elif test -n "$PKG_CONFIG"; then
19006    if test -n "$PKG_CONFIG" && \
19007    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBUDEV\""; } >&5
19008  ($PKG_CONFIG --exists --print-errors "$LIBUDEV") 2>&5
19009  ac_status=$?
19010  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19011  test $ac_status = 0; }; then
19012  pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "$LIBUDEV" 2>/dev/null`
19013else
19014  pkg_failed=yes
19015fi
19016 else
19017    pkg_failed=untried
19018fi
19019
19020
19021
19022if test $pkg_failed = yes; then
19023   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19024$as_echo "no" >&6; }
19025
19026if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19027        _pkg_short_errors_supported=yes
19028else
19029        _pkg_short_errors_supported=no
19030fi
19031        if test $_pkg_short_errors_supported = yes; then
19032	        UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBUDEV" 2>&1`
19033        else
19034	        UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBUDEV" 2>&1`
19035        fi
19036	# Put the nasty error message in config.log where it belongs
19037	echo "$UDEV_PKG_ERRORS" >&5
19038
19039	HAVE_LIBUDEV=no
19040elif test $pkg_failed = untried; then
19041     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19042$as_echo "no" >&6; }
19043	HAVE_LIBUDEV=no
19044else
19045	UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
19046	UDEV_LIBS=$pkg_cv_UDEV_LIBS
19047        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19048$as_echo "yes" >&6; }
19049	HAVE_LIBUDEV=yes
19050fi
19051if test "x$CONFIG_UDEV" = xauto; then
19052	CONFIG_UDEV="$HAVE_LIBUDEV"
19053fi
19054 if test "x$CONFIG_UDEV" = xyes; then
19055  CONFIG_UDEV_TRUE=
19056  CONFIG_UDEV_FALSE='#'
19057else
19058  CONFIG_UDEV_TRUE='#'
19059  CONFIG_UDEV_FALSE=
19060fi
19061
19062if test "x$CONFIG_UDEV" = xyes; then
19063	CONFIG_DBUS_API=no
19064	CONFIG_HAL=no
19065	if ! test "x$HAVE_LIBUDEV" = xyes; then
19066		as_fn_error $? "udev configuration API requested, but libudev is not installed" "$LINENO" 5
19067	fi
19068
19069$as_echo "#define CONFIG_UDEV 1" >>confdefs.h
19070
19071fi
19072
19073
19074pkg_failed=no
19075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
19076$as_echo_n "checking for DBUS... " >&6; }
19077
19078if test -n "$DBUS_CFLAGS"; then
19079    pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
19080 elif test -n "$PKG_CONFIG"; then
19081    if test -n "$PKG_CONFIG" && \
19082    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDBUS\""; } >&5
19083  ($PKG_CONFIG --exists --print-errors "$LIBDBUS") 2>&5
19084  ac_status=$?
19085  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19086  test $ac_status = 0; }; then
19087  pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "$LIBDBUS" 2>/dev/null`
19088else
19089  pkg_failed=yes
19090fi
19091 else
19092    pkg_failed=untried
19093fi
19094if test -n "$DBUS_LIBS"; then
19095    pkg_cv_DBUS_LIBS="$DBUS_LIBS"
19096 elif test -n "$PKG_CONFIG"; then
19097    if test -n "$PKG_CONFIG" && \
19098    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDBUS\""; } >&5
19099  ($PKG_CONFIG --exists --print-errors "$LIBDBUS") 2>&5
19100  ac_status=$?
19101  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19102  test $ac_status = 0; }; then
19103  pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "$LIBDBUS" 2>/dev/null`
19104else
19105  pkg_failed=yes
19106fi
19107 else
19108    pkg_failed=untried
19109fi
19110
19111
19112
19113if test $pkg_failed = yes; then
19114   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19115$as_echo "no" >&6; }
19116
19117if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19118        _pkg_short_errors_supported=yes
19119else
19120        _pkg_short_errors_supported=no
19121fi
19122        if test $_pkg_short_errors_supported = yes; then
19123	        DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBDBUS" 2>&1`
19124        else
19125	        DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBDBUS" 2>&1`
19126        fi
19127	# Put the nasty error message in config.log where it belongs
19128	echo "$DBUS_PKG_ERRORS" >&5
19129
19130	HAVE_DBUS=no
19131elif test $pkg_failed = untried; then
19132     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19133$as_echo "no" >&6; }
19134	HAVE_DBUS=no
19135else
19136	DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
19137	DBUS_LIBS=$pkg_cv_DBUS_LIBS
19138        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19139$as_echo "yes" >&6; }
19140	HAVE_DBUS=yes
19141fi
19142if test "x$HAVE_DBUS" = xyes; then
19143
19144$as_echo "#define HAVE_DBUS 1" >>confdefs.h
19145
19146fi
19147 if test "x$HAVE_DBUS" = xyes; then
19148  HAVE_DBUS_TRUE=
19149  HAVE_DBUS_FALSE='#'
19150else
19151  HAVE_DBUS_TRUE='#'
19152  HAVE_DBUS_FALSE=
19153fi
19154
19155
19156if test "x$CONFIG_DBUS_API" = xauto; then
19157	CONFIG_DBUS_API="$HAVE_DBUS"
19158fi
19159if test "x$CONFIG_DBUS_API" = xyes; then
19160	if ! test "x$HAVE_DBUS" = xyes; then
19161		as_fn_error $? "D-Bus configuration API requested, but D-Bus is not installed." "$LINENO" 5
19162	fi
19163
19164
19165$as_echo "#define CONFIG_DBUS_API 1" >>confdefs.h
19166
19167	CONFIG_NEED_DBUS="yes"
19168fi
19169 if test "x$CONFIG_DBUS_API" = xyes; then
19170  CONFIG_DBUS_API_TRUE=
19171  CONFIG_DBUS_API_FALSE='#'
19172else
19173  CONFIG_DBUS_API_TRUE='#'
19174  CONFIG_DBUS_API_FALSE=
19175fi
19176
19177
19178
19179pkg_failed=no
19180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for HAL" >&5
19181$as_echo_n "checking for HAL... " >&6; }
19182
19183if test -n "$HAL_CFLAGS"; then
19184    pkg_cv_HAL_CFLAGS="$HAL_CFLAGS"
19185 elif test -n "$PKG_CONFIG"; then
19186    if test -n "$PKG_CONFIG" && \
19187    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hal\""; } >&5
19188  ($PKG_CONFIG --exists --print-errors "hal") 2>&5
19189  ac_status=$?
19190  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19191  test $ac_status = 0; }; then
19192  pkg_cv_HAL_CFLAGS=`$PKG_CONFIG --cflags "hal" 2>/dev/null`
19193else
19194  pkg_failed=yes
19195fi
19196 else
19197    pkg_failed=untried
19198fi
19199if test -n "$HAL_LIBS"; then
19200    pkg_cv_HAL_LIBS="$HAL_LIBS"
19201 elif test -n "$PKG_CONFIG"; then
19202    if test -n "$PKG_CONFIG" && \
19203    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hal\""; } >&5
19204  ($PKG_CONFIG --exists --print-errors "hal") 2>&5
19205  ac_status=$?
19206  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19207  test $ac_status = 0; }; then
19208  pkg_cv_HAL_LIBS=`$PKG_CONFIG --libs "hal" 2>/dev/null`
19209else
19210  pkg_failed=yes
19211fi
19212 else
19213    pkg_failed=untried
19214fi
19215
19216
19217
19218if test $pkg_failed = yes; then
19219   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19220$as_echo "no" >&6; }
19221
19222if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19223        _pkg_short_errors_supported=yes
19224else
19225        _pkg_short_errors_supported=no
19226fi
19227        if test $_pkg_short_errors_supported = yes; then
19228	        HAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "hal" 2>&1`
19229        else
19230	        HAL_PKG_ERRORS=`$PKG_CONFIG --print-errors "hal" 2>&1`
19231        fi
19232	# Put the nasty error message in config.log where it belongs
19233	echo "$HAL_PKG_ERRORS" >&5
19234
19235	HAVE_HAL=no
19236elif test $pkg_failed = untried; then
19237     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19238$as_echo "no" >&6; }
19239	HAVE_HAL=no
19240else
19241	HAL_CFLAGS=$pkg_cv_HAL_CFLAGS
19242	HAL_LIBS=$pkg_cv_HAL_LIBS
19243        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19244$as_echo "yes" >&6; }
19245	HAVE_HAL=yes
19246fi
19247if test "x$CONFIG_HAL" = xauto; then
19248	CONFIG_HAL="$HAVE_HAL"
19249fi
19250if test "x$CONFIG_HAL" = xyes; then
19251	if ! test "x$HAVE_HAL" = xyes; then
19252		as_fn_error $? "HAL hotplug API requested, but HAL is not installed." "$LINENO" 5
19253	fi
19254
19255
19256$as_echo "#define CONFIG_HAL 1" >>confdefs.h
19257
19258	CONFIG_NEED_DBUS="yes"
19259fi
19260 if test "x$CONFIG_HAL" = xyes; then
19261  CONFIG_HAL_TRUE=
19262  CONFIG_HAL_FALSE='#'
19263else
19264  CONFIG_HAL_TRUE='#'
19265  CONFIG_HAL_FALSE=
19266fi
19267
19268
19269if test "x$CONFIG_NEED_DBUS" = xyes; then
19270
19271$as_echo "#define CONFIG_NEED_DBUS 1" >>confdefs.h
19272
19273fi
19274 if test "x$CONFIG_NEED_DBUS" = xyes; then
19275  CONFIG_NEED_DBUS_TRUE=
19276  CONFIG_NEED_DBUS_FALSE='#'
19277else
19278  CONFIG_NEED_DBUS_TRUE='#'
19279  CONFIG_NEED_DBUS_FALSE=
19280fi
19281
19282
19283if test "x$USE_SIGIO_BY_DEFAULT" = xyes; then
19284	USE_SIGIO_BY_DEFAULT_VALUE=TRUE
19285else
19286	USE_SIGIO_BY_DEFAULT_VALUE=FALSE
19287fi
19288
19289cat >>confdefs.h <<_ACEOF
19290#define USE_SIGIO_BY_DEFAULT $USE_SIGIO_BY_DEFAULT_VALUE
19291_ACEOF
19292
19293
19294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc..." >&5
19295$as_echo_n "checking for glibc...... " >&6; }
19296cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19297/* end confdefs.h.  */
19298
19299#include <features.h>
19300#ifndef __GLIBC__
19301#error
19302#endif
19303
19304_ACEOF
19305if ac_fn_c_try_cpp "$LINENO"; then :
19306  glibc=yes
19307else
19308  glibc=no
19309fi
19310rm -f conftest.err conftest.i conftest.$ac_ext
19311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc" >&5
19312$as_echo "$glibc" >&6; }
19313
19314for ac_func in clock_gettime
19315do :
19316  ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
19317if test "x$ac_cv_func_clock_gettime" = xyes; then :
19318  cat >>confdefs.h <<_ACEOF
19319#define HAVE_CLOCK_GETTIME 1
19320_ACEOF
19321 have_clock_gettime=yes
19322else
19323  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
19324$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
19325if ${ac_cv_lib_rt_clock_gettime+:} false; then :
19326  $as_echo_n "(cached) " >&6
19327else
19328  ac_check_lib_save_LIBS=$LIBS
19329LIBS="-lrt  $LIBS"
19330cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19331/* end confdefs.h.  */
19332
19333/* Override any GCC internal prototype to avoid an error.
19334   Use char because int might match the return type of a GCC
19335   builtin and then its argument prototype would still apply.  */
19336#ifdef __cplusplus
19337extern "C"
19338#endif
19339char clock_gettime ();
19340int
19341main ()
19342{
19343return clock_gettime ();
19344  ;
19345  return 0;
19346}
19347_ACEOF
19348if ac_fn_c_try_link "$LINENO"; then :
19349  ac_cv_lib_rt_clock_gettime=yes
19350else
19351  ac_cv_lib_rt_clock_gettime=no
19352fi
19353rm -f core conftest.err conftest.$ac_objext \
19354    conftest$ac_exeext conftest.$ac_ext
19355LIBS=$ac_check_lib_save_LIBS
19356fi
19357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
19358$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
19359if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
19360  have_clock_gettime=-lrt
19361else
19362  have_clock_gettime=no
19363fi
19364
19365fi
19366done
19367
19368
19369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a useful monotonic clock ..." >&5
19370$as_echo_n "checking for a useful monotonic clock ...... " >&6; }
19371
19372if ! test "x$have_clock_gettime" = xno; then
19373    if ! test "x$have_clock_gettime" = xyes; then
19374        CLOCK_LIBS="$have_clock_gettime"
19375    else
19376        CLOCK_LIBS=""
19377    fi
19378
19379    LIBS_SAVE="$LIBS"
19380    LIBS="$CLOCK_LIBS"
19381    CPPFLAGS_SAVE="$CPPFLAGS"
19382
19383    if test x"$glibc" = xyes; then
19384        CPPFLAGS="$CPPFLAGS -D_POSIX_C_SOURCE=200112L"
19385    fi
19386
19387    if test "$cross_compiling" = yes; then :
19388  MONOTONIC_CLOCK="cross compiling"
19389else
19390  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19391/* end confdefs.h.  */
19392
19393#include <time.h>
19394
19395int main(int argc, char *argv[]) {
19396    struct timespec tp;
19397
19398    if (clock_gettime(CLOCK_MONOTONIC, &tp) == 0)
19399        return 0;
19400    else
19401        return 1;
19402}
19403
19404_ACEOF
19405if ac_fn_c_try_run "$LINENO"; then :
19406  MONOTONIC_CLOCK=yes
19407else
19408  MONOTONIC_CLOCK=no
19409fi
19410rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19411  conftest.$ac_objext conftest.beam conftest.$ac_ext
19412fi
19413
19414
19415    LIBS="$LIBS_SAVE"
19416    CPPFLAGS="$CPPFLAGS_SAVE"
19417else
19418    MONOTONIC_CLOCK=no
19419fi
19420
19421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MONOTONIC_CLOCK" >&5
19422$as_echo "$MONOTONIC_CLOCK" >&6; }
19423
19424if test "x$MONOTONIC_CLOCK" = xyes; then
19425
19426$as_echo "#define MONOTONIC_CLOCK 1" >>confdefs.h
19427
19428    LIBS="$LIBS $CLOCK_LIBS"
19429fi
19430
19431 if test "x$XV" = xyes; then
19432  XV_TRUE=
19433  XV_FALSE='#'
19434else
19435  XV_TRUE='#'
19436  XV_FALSE=
19437fi
19438
19439if test "x$XV" = xyes; then
19440
19441$as_echo "#define XV 1" >>confdefs.h
19442
19443
19444$as_echo "#define XvExtension 1" >>confdefs.h
19445
19446	REQUIRED_MODULES="$REQUIRED_MODULES $VIDEOPROTO"
19447	SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $VIDEOPROTO"
19448else
19449	XVMC=no
19450fi
19451
19452 if test "x$XVMC" = xyes; then
19453  XVMC_TRUE=
19454  XVMC_FALSE='#'
19455else
19456  XVMC_TRUE='#'
19457  XVMC_FALSE=
19458fi
19459
19460if test "x$XVMC" = xyes; then
19461
19462$as_echo "#define XvMCExtension 1" >>confdefs.h
19463
19464fi
19465
19466 if test "x$XREGISTRY" = xyes; then
19467  XREGISTRY_TRUE=
19468  XREGISTRY_FALSE='#'
19469else
19470  XREGISTRY_TRUE='#'
19471  XREGISTRY_FALSE=
19472fi
19473
19474if test "x$XREGISTRY" = xyes; then
19475
19476$as_echo "#define XREGISTRY 1" >>confdefs.h
19477
19478fi
19479
19480 if test "x$COMPOSITE" = xyes; then
19481  COMPOSITE_TRUE=
19482  COMPOSITE_FALSE='#'
19483else
19484  COMPOSITE_TRUE='#'
19485  COMPOSITE_FALSE=
19486fi
19487
19488if test "x$COMPOSITE" = xyes; then
19489
19490$as_echo "#define COMPOSITE 1" >>confdefs.h
19491
19492	REQUIRED_MODULES="$REQUIRED_MODULES $COMPOSITEPROTO"
19493	COMPOSITE_LIB='$(top_builddir)/composite/libcomposite.la'
19494	COMPOSITE_INC='-I$(top_srcdir)/composite'
19495fi
19496
19497 if test "x$MITSHM" = xyes; then
19498  MITSHM_TRUE=
19499  MITSHM_FALSE='#'
19500else
19501  MITSHM_TRUE='#'
19502  MITSHM_FALSE=
19503fi
19504
19505if test "x$MITSHM" = xyes; then
19506
19507$as_echo "#define MITSHM 1" >>confdefs.h
19508
19509
19510$as_echo "#define HAS_SHM 1" >>confdefs.h
19511
19512fi
19513
19514 if test "x$RECORD" = xyes; then
19515  RECORD_TRUE=
19516  RECORD_FALSE='#'
19517else
19518  RECORD_TRUE='#'
19519  RECORD_FALSE=
19520fi
19521
19522if test "x$RECORD" = xyes; then
19523
19524$as_echo "#define XRECORD 1" >>confdefs.h
19525
19526	REQUIRED_MODULES="$REQUIRED_MODULES $RECORDPROTO"
19527	RECORD_LIB='$(top_builddir)/record/librecord.la'
19528fi
19529
19530 if test "x$SCREENSAVER" = xyes; then
19531  SCREENSAVER_TRUE=
19532  SCREENSAVER_FALSE='#'
19533else
19534  SCREENSAVER_TRUE='#'
19535  SCREENSAVER_FALSE=
19536fi
19537
19538if test "x$SCREENSAVER" = xyes; then
19539
19540$as_echo "#define SCREENSAVER 1" >>confdefs.h
19541
19542	REQUIRED_MODULES="$REQUIRED_MODULES $SCRNSAVERPROTO"
19543fi
19544
19545 if test "x$RES" = xyes; then
19546  RES_TRUE=
19547  RES_FALSE='#'
19548else
19549  RES_TRUE='#'
19550  RES_FALSE=
19551fi
19552
19553if test "x$RES" = xyes; then
19554
19555$as_echo "#define RES 1" >>confdefs.h
19556
19557	REQUIRED_MODULES="$REQUIRED_MODULES $RESOURCEPROTO"
19558fi
19559
19560if test "x$GLX" = xyes; then
19561
19562pkg_failed=no
19563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLIB" >&5
19564$as_echo_n "checking for XLIB... " >&6; }
19565
19566if test -n "$XLIB_CFLAGS"; then
19567    pkg_cv_XLIB_CFLAGS="$XLIB_CFLAGS"
19568 elif test -n "$PKG_CONFIG"; then
19569    if test -n "$PKG_CONFIG" && \
19570    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
19571  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
19572  ac_status=$?
19573  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19574  test $ac_status = 0; }; then
19575  pkg_cv_XLIB_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
19576else
19577  pkg_failed=yes
19578fi
19579 else
19580    pkg_failed=untried
19581fi
19582if test -n "$XLIB_LIBS"; then
19583    pkg_cv_XLIB_LIBS="$XLIB_LIBS"
19584 elif test -n "$PKG_CONFIG"; then
19585    if test -n "$PKG_CONFIG" && \
19586    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
19587  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
19588  ac_status=$?
19589  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19590  test $ac_status = 0; }; then
19591  pkg_cv_XLIB_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
19592else
19593  pkg_failed=yes
19594fi
19595 else
19596    pkg_failed=untried
19597fi
19598
19599
19600
19601if test $pkg_failed = yes; then
19602   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19603$as_echo "no" >&6; }
19604
19605if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19606        _pkg_short_errors_supported=yes
19607else
19608        _pkg_short_errors_supported=no
19609fi
19610        if test $_pkg_short_errors_supported = yes; then
19611	        XLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11" 2>&1`
19612        else
19613	        XLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11" 2>&1`
19614        fi
19615	# Put the nasty error message in config.log where it belongs
19616	echo "$XLIB_PKG_ERRORS" >&5
19617
19618	as_fn_error $? "Package requirements (x11) were not met:
19619
19620$XLIB_PKG_ERRORS
19621
19622Consider adjusting the PKG_CONFIG_PATH environment variable if you
19623installed software in a non-standard prefix.
19624
19625Alternatively, you may set the environment variables XLIB_CFLAGS
19626and XLIB_LIBS to avoid the need to call pkg-config.
19627See the pkg-config man page for more details." "$LINENO" 5
19628elif test $pkg_failed = untried; then
19629     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19630$as_echo "no" >&6; }
19631	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19632$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19633as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19634is in your PATH or set the PKG_CONFIG environment variable to the full
19635path to pkg-config.
19636
19637Alternatively, you may set the environment variables XLIB_CFLAGS
19638and XLIB_LIBS to avoid the need to call pkg-config.
19639See the pkg-config man page for more details.
19640
19641To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19642See \`config.log' for more details" "$LINENO" 5; }
19643else
19644	XLIB_CFLAGS=$pkg_cv_XLIB_CFLAGS
19645	XLIB_LIBS=$pkg_cv_XLIB_LIBS
19646        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19647$as_echo "yes" >&6; }
19648
19649fi
19650
19651pkg_failed=no
19652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GL" >&5
19653$as_echo_n "checking for GL... " >&6; }
19654
19655if test -n "$GL_CFLAGS"; then
19656    pkg_cv_GL_CFLAGS="$GL_CFLAGS"
19657 elif test -n "$PKG_CONFIG"; then
19658    if test -n "$PKG_CONFIG" && \
19659    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLPROTO \$LIBGL\""; } >&5
19660  ($PKG_CONFIG --exists --print-errors "$GLPROTO $LIBGL") 2>&5
19661  ac_status=$?
19662  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19663  test $ac_status = 0; }; then
19664  pkg_cv_GL_CFLAGS=`$PKG_CONFIG --cflags "$GLPROTO $LIBGL" 2>/dev/null`
19665else
19666  pkg_failed=yes
19667fi
19668 else
19669    pkg_failed=untried
19670fi
19671if test -n "$GL_LIBS"; then
19672    pkg_cv_GL_LIBS="$GL_LIBS"
19673 elif test -n "$PKG_CONFIG"; then
19674    if test -n "$PKG_CONFIG" && \
19675    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLPROTO \$LIBGL\""; } >&5
19676  ($PKG_CONFIG --exists --print-errors "$GLPROTO $LIBGL") 2>&5
19677  ac_status=$?
19678  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19679  test $ac_status = 0; }; then
19680  pkg_cv_GL_LIBS=`$PKG_CONFIG --libs "$GLPROTO $LIBGL" 2>/dev/null`
19681else
19682  pkg_failed=yes
19683fi
19684 else
19685    pkg_failed=untried
19686fi
19687
19688
19689
19690if test $pkg_failed = yes; then
19691   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19692$as_echo "no" >&6; }
19693
19694if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19695        _pkg_short_errors_supported=yes
19696else
19697        _pkg_short_errors_supported=no
19698fi
19699        if test $_pkg_short_errors_supported = yes; then
19700	        GL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$GLPROTO $LIBGL" 2>&1`
19701        else
19702	        GL_PKG_ERRORS=`$PKG_CONFIG --print-errors "$GLPROTO $LIBGL" 2>&1`
19703        fi
19704	# Put the nasty error message in config.log where it belongs
19705	echo "$GL_PKG_ERRORS" >&5
19706
19707	as_fn_error $? "Package requirements ($GLPROTO $LIBGL) were not met:
19708
19709$GL_PKG_ERRORS
19710
19711Consider adjusting the PKG_CONFIG_PATH environment variable if you
19712installed software in a non-standard prefix.
19713
19714Alternatively, you may set the environment variables GL_CFLAGS
19715and GL_LIBS to avoid the need to call pkg-config.
19716See the pkg-config man page for more details." "$LINENO" 5
19717elif test $pkg_failed = untried; then
19718     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19719$as_echo "no" >&6; }
19720	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19721$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19722as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19723is in your PATH or set the PKG_CONFIG environment variable to the full
19724path to pkg-config.
19725
19726Alternatively, you may set the environment variables GL_CFLAGS
19727and GL_LIBS to avoid the need to call pkg-config.
19728See the pkg-config man page for more details.
19729
19730To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19731See \`config.log' for more details" "$LINENO" 5; }
19732else
19733	GL_CFLAGS=$pkg_cv_GL_CFLAGS
19734	GL_LIBS=$pkg_cv_GL_LIBS
19735        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19736$as_echo "yes" >&6; }
19737
19738fi
19739
19740
19741$as_echo "#define GLXEXT 1" >>confdefs.h
19742
19743	GLX_LIBS='$(top_builddir)/glx/libglx.la'
19744	GLX_SYS_LIBS="$GLX_SYS_LIBS"
19745else
19746        GLX=no
19747fi
19748 if test "x$GLX" = xyes; then
19749  GLX_TRUE=
19750  GLX_FALSE='#'
19751else
19752  GLX_TRUE='#'
19753  GLX_FALSE=
19754fi
19755
19756
19757if test "x$AIGLX" = xyes -a "x$GLX" = xyes -a "x$DRI" = xyes; then
19758
19759$as_echo "#define AIGLX 1" >>confdefs.h
19760
19761else
19762	AIGLX=no
19763fi
19764 if test "x$AIGLX" = xyes; then
19765  AIGLX_TRUE=
19766  AIGLX_FALSE='#'
19767else
19768  AIGLX_TRUE='#'
19769  AIGLX_FALSE=
19770fi
19771
19772
19773if test "x$GLX_USE_TLS" = xyes -a "x$AIGLX" = xyes; then
19774	GLX_DEFINES="-DGLX_USE_TLS -DPTHREADS"
19775	GLX_SYS_LIBS="$GLX_SYS_LIBS -lpthread"
19776fi
19777
19778
19779 if test "x$DRI" = xyes; then
19780  DRI_TRUE=
19781  DRI_FALSE='#'
19782else
19783  DRI_TRUE='#'
19784  DRI_FALSE=
19785fi
19786
19787if test "x$DRI" = xyes; then
19788
19789$as_echo "#define XF86DRI 1" >>confdefs.h
19790
19791
19792pkg_failed=no
19793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRIPROTO" >&5
19794$as_echo_n "checking for DRIPROTO... " >&6; }
19795
19796if test -n "$DRIPROTO_CFLAGS"; then
19797    pkg_cv_DRIPROTO_CFLAGS="$DRIPROTO_CFLAGS"
19798 elif test -n "$PKG_CONFIG"; then
19799    if test -n "$PKG_CONFIG" && \
19800    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRIPROTO\""; } >&5
19801  ($PKG_CONFIG --exists --print-errors "$DRIPROTO") 2>&5
19802  ac_status=$?
19803  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19804  test $ac_status = 0; }; then
19805  pkg_cv_DRIPROTO_CFLAGS=`$PKG_CONFIG --cflags "$DRIPROTO" 2>/dev/null`
19806else
19807  pkg_failed=yes
19808fi
19809 else
19810    pkg_failed=untried
19811fi
19812if test -n "$DRIPROTO_LIBS"; then
19813    pkg_cv_DRIPROTO_LIBS="$DRIPROTO_LIBS"
19814 elif test -n "$PKG_CONFIG"; then
19815    if test -n "$PKG_CONFIG" && \
19816    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRIPROTO\""; } >&5
19817  ($PKG_CONFIG --exists --print-errors "$DRIPROTO") 2>&5
19818  ac_status=$?
19819  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19820  test $ac_status = 0; }; then
19821  pkg_cv_DRIPROTO_LIBS=`$PKG_CONFIG --libs "$DRIPROTO" 2>/dev/null`
19822else
19823  pkg_failed=yes
19824fi
19825 else
19826    pkg_failed=untried
19827fi
19828
19829
19830
19831if test $pkg_failed = yes; then
19832   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19833$as_echo "no" >&6; }
19834
19835if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19836        _pkg_short_errors_supported=yes
19837else
19838        _pkg_short_errors_supported=no
19839fi
19840        if test $_pkg_short_errors_supported = yes; then
19841	        DRIPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$DRIPROTO" 2>&1`
19842        else
19843	        DRIPROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors "$DRIPROTO" 2>&1`
19844        fi
19845	# Put the nasty error message in config.log where it belongs
19846	echo "$DRIPROTO_PKG_ERRORS" >&5
19847
19848	as_fn_error $? "Package requirements ($DRIPROTO) were not met:
19849
19850$DRIPROTO_PKG_ERRORS
19851
19852Consider adjusting the PKG_CONFIG_PATH environment variable if you
19853installed software in a non-standard prefix.
19854
19855Alternatively, you may set the environment variables DRIPROTO_CFLAGS
19856and DRIPROTO_LIBS to avoid the need to call pkg-config.
19857See the pkg-config man page for more details." "$LINENO" 5
19858elif test $pkg_failed = untried; then
19859     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19860$as_echo "no" >&6; }
19861	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19862$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19863as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19864is in your PATH or set the PKG_CONFIG environment variable to the full
19865path to pkg-config.
19866
19867Alternatively, you may set the environment variables DRIPROTO_CFLAGS
19868and DRIPROTO_LIBS to avoid the need to call pkg-config.
19869See the pkg-config man page for more details.
19870
19871To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19872See \`config.log' for more details" "$LINENO" 5; }
19873else
19874	DRIPROTO_CFLAGS=$pkg_cv_DRIPROTO_CFLAGS
19875	DRIPROTO_LIBS=$pkg_cv_DRIPROTO_LIBS
19876        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19877$as_echo "yes" >&6; }
19878
19879fi
19880
19881pkg_failed=no
19882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI" >&5
19883$as_echo_n "checking for DRI... " >&6; }
19884
19885if test -n "$DRI_CFLAGS"; then
19886    pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
19887 elif test -n "$PKG_CONFIG"; then
19888    if test -n "$PKG_CONFIG" && \
19889    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLPROTO \$LIBDRI\""; } >&5
19890  ($PKG_CONFIG --exists --print-errors "$GLPROTO $LIBDRI") 2>&5
19891  ac_status=$?
19892  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19893  test $ac_status = 0; }; then
19894  pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "$GLPROTO $LIBDRI" 2>/dev/null`
19895else
19896  pkg_failed=yes
19897fi
19898 else
19899    pkg_failed=untried
19900fi
19901if test -n "$DRI_LIBS"; then
19902    pkg_cv_DRI_LIBS="$DRI_LIBS"
19903 elif test -n "$PKG_CONFIG"; then
19904    if test -n "$PKG_CONFIG" && \
19905    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLPROTO \$LIBDRI\""; } >&5
19906  ($PKG_CONFIG --exists --print-errors "$GLPROTO $LIBDRI") 2>&5
19907  ac_status=$?
19908  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19909  test $ac_status = 0; }; then
19910  pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "$GLPROTO $LIBDRI" 2>/dev/null`
19911else
19912  pkg_failed=yes
19913fi
19914 else
19915    pkg_failed=untried
19916fi
19917
19918
19919
19920if test $pkg_failed = yes; then
19921   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19922$as_echo "no" >&6; }
19923
19924if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19925        _pkg_short_errors_supported=yes
19926else
19927        _pkg_short_errors_supported=no
19928fi
19929        if test $_pkg_short_errors_supported = yes; then
19930	        DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$GLPROTO $LIBDRI" 2>&1`
19931        else
19932	        DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors "$GLPROTO $LIBDRI" 2>&1`
19933        fi
19934	# Put the nasty error message in config.log where it belongs
19935	echo "$DRI_PKG_ERRORS" >&5
19936
19937	as_fn_error $? "Package requirements ($GLPROTO $LIBDRI) were not met:
19938
19939$DRI_PKG_ERRORS
19940
19941Consider adjusting the PKG_CONFIG_PATH environment variable if you
19942installed software in a non-standard prefix.
19943
19944Alternatively, you may set the environment variables DRI_CFLAGS
19945and DRI_LIBS to avoid the need to call pkg-config.
19946See the pkg-config man page for more details." "$LINENO" 5
19947elif test $pkg_failed = untried; then
19948     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19949$as_echo "no" >&6; }
19950	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19951$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19952as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19953is in your PATH or set the PKG_CONFIG environment variable to the full
19954path to pkg-config.
19955
19956Alternatively, you may set the environment variables DRI_CFLAGS
19957and DRI_LIBS to avoid the need to call pkg-config.
19958See the pkg-config man page for more details.
19959
19960To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19961See \`config.log' for more details" "$LINENO" 5; }
19962else
19963	DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
19964	DRI_LIBS=$pkg_cv_DRI_LIBS
19965        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19966$as_echo "yes" >&6; }
19967
19968fi
19969
19970fi
19971
19972
19973pkg_failed=no
19974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI2PROTO" >&5
19975$as_echo_n "checking for DRI2PROTO... " >&6; }
19976
19977if test -n "$DRI2PROTO_CFLAGS"; then
19978    pkg_cv_DRI2PROTO_CFLAGS="$DRI2PROTO_CFLAGS"
19979 elif test -n "$PKG_CONFIG"; then
19980    if test -n "$PKG_CONFIG" && \
19981    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI2PROTO\""; } >&5
19982  ($PKG_CONFIG --exists --print-errors "$DRI2PROTO") 2>&5
19983  ac_status=$?
19984  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19985  test $ac_status = 0; }; then
19986  pkg_cv_DRI2PROTO_CFLAGS=`$PKG_CONFIG --cflags "$DRI2PROTO" 2>/dev/null`
19987else
19988  pkg_failed=yes
19989fi
19990 else
19991    pkg_failed=untried
19992fi
19993if test -n "$DRI2PROTO_LIBS"; then
19994    pkg_cv_DRI2PROTO_LIBS="$DRI2PROTO_LIBS"
19995 elif test -n "$PKG_CONFIG"; then
19996    if test -n "$PKG_CONFIG" && \
19997    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI2PROTO\""; } >&5
19998  ($PKG_CONFIG --exists --print-errors "$DRI2PROTO") 2>&5
19999  ac_status=$?
20000  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20001  test $ac_status = 0; }; then
20002  pkg_cv_DRI2PROTO_LIBS=`$PKG_CONFIG --libs "$DRI2PROTO" 2>/dev/null`
20003else
20004  pkg_failed=yes
20005fi
20006 else
20007    pkg_failed=untried
20008fi
20009
20010
20011
20012if test $pkg_failed = yes; then
20013   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20014$as_echo "no" >&6; }
20015
20016if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20017        _pkg_short_errors_supported=yes
20018else
20019        _pkg_short_errors_supported=no
20020fi
20021        if test $_pkg_short_errors_supported = yes; then
20022	        DRI2PROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$DRI2PROTO" 2>&1`
20023        else
20024	        DRI2PROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors "$DRI2PROTO" 2>&1`
20025        fi
20026	# Put the nasty error message in config.log where it belongs
20027	echo "$DRI2PROTO_PKG_ERRORS" >&5
20028
20029	HAVE_DRI2PROTO=no
20030elif test $pkg_failed = untried; then
20031     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20032$as_echo "no" >&6; }
20033	HAVE_DRI2PROTO=no
20034else
20035	DRI2PROTO_CFLAGS=$pkg_cv_DRI2PROTO_CFLAGS
20036	DRI2PROTO_LIBS=$pkg_cv_DRI2PROTO_LIBS
20037        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20038$as_echo "yes" >&6; }
20039	HAVE_DRI2PROTO=yes
20040fi
20041case "$DRI2,$HAVE_DRI2PROTO" in
20042	yes,no)
20043		as_fn_error $? "DRI2 requested, but dri2proto not found." "$LINENO" 5
20044		;;
20045	yes,yes | auto,yes)
20046
20047$as_echo "#define DRI2 1" >>confdefs.h
20048
20049		DRI2=yes
20050		SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $DRI2PROTO"
20051		;;
20052esac
20053 if test "x$DRI2" = xyes; then
20054  DRI2_TRUE=
20055  DRI2_FALSE='#'
20056else
20057  DRI2_TRUE='#'
20058  DRI2_FALSE=
20059fi
20060
20061
20062if test "x$DRI" = xyes || test "x$DRI2" = xyes; then
20063	if test "x$DRM" = xyes; then
20064
20065$as_echo "#define WITH_LIBDRM 1" >>confdefs.h
20066
20067
20068pkg_failed=no
20069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM" >&5
20070$as_echo_n "checking for LIBDRM... " >&6; }
20071
20072if test -n "$LIBDRM_CFLAGS"; then
20073    pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
20074 elif test -n "$PKG_CONFIG"; then
20075    if test -n "$PKG_CONFIG" && \
20076    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDRM\""; } >&5
20077  ($PKG_CONFIG --exists --print-errors "$LIBDRM") 2>&5
20078  ac_status=$?
20079  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20080  test $ac_status = 0; }; then
20081  pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "$LIBDRM" 2>/dev/null`
20082else
20083  pkg_failed=yes
20084fi
20085 else
20086    pkg_failed=untried
20087fi
20088if test -n "$LIBDRM_LIBS"; then
20089    pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
20090 elif test -n "$PKG_CONFIG"; then
20091    if test -n "$PKG_CONFIG" && \
20092    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDRM\""; } >&5
20093  ($PKG_CONFIG --exists --print-errors "$LIBDRM") 2>&5
20094  ac_status=$?
20095  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20096  test $ac_status = 0; }; then
20097  pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "$LIBDRM" 2>/dev/null`
20098else
20099  pkg_failed=yes
20100fi
20101 else
20102    pkg_failed=untried
20103fi
20104
20105
20106
20107if test $pkg_failed = yes; then
20108   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20109$as_echo "no" >&6; }
20110
20111if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20112        _pkg_short_errors_supported=yes
20113else
20114        _pkg_short_errors_supported=no
20115fi
20116        if test $_pkg_short_errors_supported = yes; then
20117	        LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBDRM" 2>&1`
20118        else
20119	        LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBDRM" 2>&1`
20120        fi
20121	# Put the nasty error message in config.log where it belongs
20122	echo "$LIBDRM_PKG_ERRORS" >&5
20123
20124	as_fn_error $? "Package requirements ($LIBDRM) were not met:
20125
20126$LIBDRM_PKG_ERRORS
20127
20128Consider adjusting the PKG_CONFIG_PATH environment variable if you
20129installed software in a non-standard prefix.
20130
20131Alternatively, you may set the environment variables LIBDRM_CFLAGS
20132and LIBDRM_LIBS to avoid the need to call pkg-config.
20133See the pkg-config man page for more details." "$LINENO" 5
20134elif test $pkg_failed = untried; then
20135     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20136$as_echo "no" >&6; }
20137	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20138$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20139as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20140is in your PATH or set the PKG_CONFIG environment variable to the full
20141path to pkg-config.
20142
20143Alternatively, you may set the environment variables LIBDRM_CFLAGS
20144and LIBDRM_LIBS to avoid the need to call pkg-config.
20145See the pkg-config man page for more details.
20146
20147To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20148See \`config.log' for more details" "$LINENO" 5; }
20149else
20150	LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
20151	LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
20152        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20153$as_echo "yes" >&6; }
20154
20155fi
20156	fi
20157fi
20158
20159if test "x$DRI2" = xyes; then
20160	save_CFLAGS=$CFLAGS
20161	CFLAGS="$GL_CFLAGS $LIBDRM_CFLAGS"
20162	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20163/* end confdefs.h.  */
20164#include <GL/gl.h>
20165#include <GL/internal/dri_interface.h>
20166#ifndef __DRI_DRI2
20167#error DRI2 extension not available.
20168#endif
20169_ACEOF
20170if ac_fn_c_try_compile "$LINENO"; then :
20171  HAVE_DRI2EXTENSION=yes
20172else
20173  HAVE_DRI2EXTENSION=no
20174fi
20175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20176	CFLAGS=$save_CFLAGS
20177	if test "x$HAVE_DRI2EXTENSION" = xyes; then
20178
20179$as_echo "#define DRI2_AIGLX 1" >>confdefs.h
20180
20181		DRI2_AIGLX=yes
20182	else
20183		{ $as_echo "$as_me:${as_lineno-$LINENO}: DRI2 AIGLX disabled, __DRI_DRI2 not defined in dri_interface.h." >&5
20184$as_echo "$as_me: DRI2 AIGLX disabled, __DRI_DRI2 not defined in dri_interface.h." >&6;}
20185		DRI2_AIGLX=no
20186	fi
20187fi
20188 if test "x$DRI2_AIGLX" = xyes; then
20189  DRI2_AIGLX_TRUE=
20190  DRI2_AIGLX_FALSE='#'
20191else
20192  DRI2_AIGLX_TRUE='#'
20193  DRI2_AIGLX_FALSE=
20194fi
20195
20196
20197
20198 if test "x$XINERAMA" = xyes; then
20199  XINERAMA_TRUE=
20200  XINERAMA_FALSE='#'
20201else
20202  XINERAMA_TRUE='#'
20203  XINERAMA_FALSE=
20204fi
20205
20206if test "x$XINERAMA" = xyes; then
20207
20208$as_echo "#define XINERAMA 1" >>confdefs.h
20209
20210
20211$as_echo "#define PANORAMIX 1" >>confdefs.h
20212
20213	REQUIRED_MODULES="$REQUIRED_MODULES $XINERAMAPROTO"
20214	SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $XINERAMAPROTO"
20215fi
20216
20217 if test "x$XACE" = xyes; then
20218  XACE_TRUE=
20219  XACE_FALSE='#'
20220else
20221  XACE_TRUE='#'
20222  XACE_FALSE=
20223fi
20224
20225if test "x$XACE" = xyes; then
20226
20227$as_echo "#define XACE 1" >>confdefs.h
20228
20229fi
20230
20231 if test "x$XSELINUX" = xyes; then
20232  XSELINUX_TRUE=
20233  XSELINUX_FALSE='#'
20234else
20235  XSELINUX_TRUE='#'
20236  XSELINUX_FALSE=
20237fi
20238
20239if test "x$XSELINUX" = xyes; then
20240	if test "x$XACE" != xyes; then
20241		as_fn_error $? "cannot build SELinux extension without X-ACE" "$LINENO" 5
20242	fi
20243	for ac_header in libaudit.h
20244do :
20245  ac_fn_c_check_header_mongrel "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default"
20246if test "x$ac_cv_header_libaudit_h" = xyes; then :
20247  cat >>confdefs.h <<_ACEOF
20248#define HAVE_LIBAUDIT_H 1
20249_ACEOF
20250
20251else
20252  as_fn_error $? "SELinux extension requires audit system headers" "$LINENO" 5
20253fi
20254
20255done
20256
20257	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for audit_open in -laudit" >&5
20258$as_echo_n "checking for audit_open in -laudit... " >&6; }
20259if ${ac_cv_lib_audit_audit_open+:} false; then :
20260  $as_echo_n "(cached) " >&6
20261else
20262  ac_check_lib_save_LIBS=$LIBS
20263LIBS="-laudit  $LIBS"
20264cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20265/* end confdefs.h.  */
20266
20267/* Override any GCC internal prototype to avoid an error.
20268   Use char because int might match the return type of a GCC
20269   builtin and then its argument prototype would still apply.  */
20270#ifdef __cplusplus
20271extern "C"
20272#endif
20273char audit_open ();
20274int
20275main ()
20276{
20277return audit_open ();
20278  ;
20279  return 0;
20280}
20281_ACEOF
20282if ac_fn_c_try_link "$LINENO"; then :
20283  ac_cv_lib_audit_audit_open=yes
20284else
20285  ac_cv_lib_audit_audit_open=no
20286fi
20287rm -f core conftest.err conftest.$ac_objext \
20288    conftest$ac_exeext conftest.$ac_ext
20289LIBS=$ac_check_lib_save_LIBS
20290fi
20291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_open" >&5
20292$as_echo "$ac_cv_lib_audit_audit_open" >&6; }
20293if test "x$ac_cv_lib_audit_audit_open" = xyes; then :
20294  cat >>confdefs.h <<_ACEOF
20295#define HAVE_LIBAUDIT 1
20296_ACEOF
20297
20298  LIBS="-laudit $LIBS"
20299
20300else
20301  as_fn_error $? "SELinux extension requires audit system library" "$LINENO" 5
20302fi
20303
20304
20305pkg_failed=no
20306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SELINUX" >&5
20307$as_echo_n "checking for SELINUX... " >&6; }
20308
20309if test -n "$SELINUX_CFLAGS"; then
20310    pkg_cv_SELINUX_CFLAGS="$SELINUX_CFLAGS"
20311 elif test -n "$PKG_CONFIG"; then
20312    if test -n "$PKG_CONFIG" && \
20313    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSELINUX\""; } >&5
20314  ($PKG_CONFIG --exists --print-errors "$LIBSELINUX") 2>&5
20315  ac_status=$?
20316  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20317  test $ac_status = 0; }; then
20318  pkg_cv_SELINUX_CFLAGS=`$PKG_CONFIG --cflags "$LIBSELINUX" 2>/dev/null`
20319else
20320  pkg_failed=yes
20321fi
20322 else
20323    pkg_failed=untried
20324fi
20325if test -n "$SELINUX_LIBS"; then
20326    pkg_cv_SELINUX_LIBS="$SELINUX_LIBS"
20327 elif test -n "$PKG_CONFIG"; then
20328    if test -n "$PKG_CONFIG" && \
20329    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSELINUX\""; } >&5
20330  ($PKG_CONFIG --exists --print-errors "$LIBSELINUX") 2>&5
20331  ac_status=$?
20332  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20333  test $ac_status = 0; }; then
20334  pkg_cv_SELINUX_LIBS=`$PKG_CONFIG --libs "$LIBSELINUX" 2>/dev/null`
20335else
20336  pkg_failed=yes
20337fi
20338 else
20339    pkg_failed=untried
20340fi
20341
20342
20343
20344if test $pkg_failed = yes; then
20345   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20346$as_echo "no" >&6; }
20347
20348if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20349        _pkg_short_errors_supported=yes
20350else
20351        _pkg_short_errors_supported=no
20352fi
20353        if test $_pkg_short_errors_supported = yes; then
20354	        SELINUX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBSELINUX" 2>&1`
20355        else
20356	        SELINUX_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBSELINUX" 2>&1`
20357        fi
20358	# Put the nasty error message in config.log where it belongs
20359	echo "$SELINUX_PKG_ERRORS" >&5
20360
20361	as_fn_error $? "Package requirements ($LIBSELINUX) were not met:
20362
20363$SELINUX_PKG_ERRORS
20364
20365Consider adjusting the PKG_CONFIG_PATH environment variable if you
20366installed software in a non-standard prefix.
20367
20368Alternatively, you may set the environment variables SELINUX_CFLAGS
20369and SELINUX_LIBS to avoid the need to call pkg-config.
20370See the pkg-config man page for more details." "$LINENO" 5
20371elif test $pkg_failed = untried; then
20372     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20373$as_echo "no" >&6; }
20374	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20375$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20376as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20377is in your PATH or set the PKG_CONFIG environment variable to the full
20378path to pkg-config.
20379
20380Alternatively, you may set the environment variables SELINUX_CFLAGS
20381and SELINUX_LIBS to avoid the need to call pkg-config.
20382See the pkg-config man page for more details.
20383
20384To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20385See \`config.log' for more details" "$LINENO" 5; }
20386else
20387	SELINUX_CFLAGS=$pkg_cv_SELINUX_CFLAGS
20388	SELINUX_LIBS=$pkg_cv_SELINUX_LIBS
20389        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20390$as_echo "yes" >&6; }
20391
20392fi
20393	SELINUX_LIBS="$SELINUX_LIBS -laudit"
20394
20395$as_echo "#define XSELINUX 1" >>confdefs.h
20396
20397fi
20398
20399 if test "x$XCSECURITY" = xyes; then
20400  XCSECURITY_TRUE=
20401  XCSECURITY_FALSE='#'
20402else
20403  XCSECURITY_TRUE='#'
20404  XCSECURITY_FALSE=
20405fi
20406
20407if test "x$XCSECURITY" = xyes; then
20408	if test "x$XACE" != xyes; then
20409		as_fn_error $? "cannot build Security extension without X-ACE" "$LINENO" 5
20410	fi
20411
20412$as_echo "#define XCSECURITY 1" >>confdefs.h
20413
20414fi
20415
20416 if test "x$DBE" = xyes; then
20417  DBE_TRUE=
20418  DBE_FALSE='#'
20419else
20420  DBE_TRUE='#'
20421  DBE_FALSE=
20422fi
20423
20424if test "x$DBE" = xyes; then
20425
20426$as_echo "#define DBE 1" >>confdefs.h
20427
20428	DBE_LIB='$(top_builddir)/dbe/libdbe.la'
20429fi
20430
20431 if test "x$XF86BIGFONT" = xyes; then
20432  XF86BIGFONT_TRUE=
20433  XF86BIGFONT_FALSE='#'
20434else
20435  XF86BIGFONT_TRUE='#'
20436  XF86BIGFONT_FALSE=
20437fi
20438
20439if test "x$XF86BIGFONT" = xyes; then
20440
20441$as_echo "#define XF86BIGFONT 1" >>confdefs.h
20442
20443	REQUIRED_MODULES="$REQUIRED_MODULES $BIGFONTPROTO"
20444fi
20445
20446 if test "x$DPMSExtension" = xyes; then
20447  DPMSExtension_TRUE=
20448  DPMSExtension_FALSE='#'
20449else
20450  DPMSExtension_TRUE='#'
20451  DPMSExtension_FALSE=
20452fi
20453
20454if test "x$DPMSExtension" = xyes; then
20455
20456$as_echo "#define DPMSExtension 1" >>confdefs.h
20457
20458fi
20459
20460if test "x$XCALIBRATE" = xyes && test "$KDRIVE" = yes; then
20461
20462$as_echo "#define XCALIBRATE 1" >>confdefs.h
20463
20464   REQUIRED_MODULES="$REQUIRED_MODULES $XCALIBRATEPROTO"
20465else
20466   XCALIBRATE=no
20467fi
20468 if test "x$XCALIBRATE" = xyes; then
20469  XCALIBRATE_TRUE=
20470  XCALIBRATE_FALSE='#'
20471else
20472  XCALIBRATE_TRUE='#'
20473  XCALIBRATE_FALSE=
20474fi
20475
20476
20477
20478$as_echo "#define RENDER 1" >>confdefs.h
20479
20480RENDER_LIB='$(top_builddir)/render/librender.la'
20481RENDER_INC='-I$(top_srcdir)/render'
20482
20483
20484$as_echo "#define RANDR 1" >>confdefs.h
20485
20486RANDR_LIB='$(top_builddir)/randr/librandr.la'
20487RANDR_INC='-I$(top_srcdir)/randr'
20488
20489
20490$as_echo "#define XFIXES 1" >>confdefs.h
20491
20492FIXES_LIB='$(top_builddir)/xfixes/libxfixes.la'
20493FIXES_INC='-I$(top_srcdir)/xfixes'
20494
20495
20496$as_echo "#define DAMAGE 1" >>confdefs.h
20497
20498DAMAGE_LIB='$(top_builddir)/damageext/libdamageext.la'
20499DAMAGE_INC='-I$(top_srcdir)/damageext'
20500MIEXT_DAMAGE_LIB='$(top_builddir)/miext/damage/libdamage.la'
20501MIEXT_DAMAGE_INC='-I$(top_srcdir)/miext/damage'
20502
20503# XINPUT extension is integral part of the server
20504
20505$as_echo "#define XINPUT 1" >>confdefs.h
20506
20507XI_LIB='$(top_builddir)/Xi/libXi.la'
20508XI_INC='-I$(top_srcdir)/Xi'
20509
20510 if test "x$XF86UTILS" = xyes; then
20511  XF86UTILS_TRUE=
20512  XF86UTILS_FALSE='#'
20513else
20514  XF86UTILS_TRUE='#'
20515  XF86UTILS_FALSE=
20516fi
20517
20518 if test "x$XAA" = xyes; then
20519  XAA_TRUE=
20520  XAA_FALSE='#'
20521else
20522  XAA_TRUE='#'
20523  XAA_FALSE=
20524fi
20525
20526 if test "x$VGAHW" = xyes; then
20527  VGAHW_TRUE=
20528  VGAHW_FALSE='#'
20529else
20530  VGAHW_TRUE='#'
20531  VGAHW_FALSE=
20532fi
20533
20534 if test "x$VBE" = xyes; then
20535  VBE_TRUE=
20536  VBE_FALSE='#'
20537else
20538  VBE_TRUE='#'
20539  VBE_FALSE=
20540fi
20541
20542 if test "x$INT10MODULE" = xyes; then
20543  INT10MODULE_TRUE=
20544  INT10MODULE_FALSE='#'
20545else
20546  INT10MODULE_TRUE='#'
20547  INT10MODULE_FALSE=
20548fi
20549
20550
20551
20552$as_echo "#define SHAPE 1" >>confdefs.h
20553
20554
20555
20556  prefix_NONE=
20557  exec_prefix_NONE=
20558  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
20559  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
20560  eval ac_define_dir="\"$XKBPATH\""
20561  eval ac_define_dir="\"$ac_define_dir\""
20562  XKB_BASE_DIRECTORY="$ac_define_dir"
20563
20564
20565cat >>confdefs.h <<_ACEOF
20566#define XKB_BASE_DIRECTORY "$ac_define_dir"
20567_ACEOF
20568
20569  test "$prefix_NONE" && prefix=NONE
20570  test "$exec_prefix_NONE" && exec_prefix=NONE
20571
20572
20573# Check whether --with-xkb-bin-directory was given.
20574if test "${with_xkb_bin_directory+set}" = set; then :
20575  withval=$with_xkb_bin_directory; XKB_BIN_DIRECTORY="$withval"
20576else
20577  XKB_BIN_DIRECTORY="$bindir"
20578fi
20579
20580
20581
20582  prefix_NONE=
20583  exec_prefix_NONE=
20584  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
20585  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
20586  eval ac_define_dir="\"$XKB_BIN_DIRECTORY\""
20587  eval ac_define_dir="\"$ac_define_dir\""
20588  XKB_BIN_DIRECTORY="$ac_define_dir"
20589
20590
20591cat >>confdefs.h <<_ACEOF
20592#define XKB_BIN_DIRECTORY "$ac_define_dir"
20593_ACEOF
20594
20595  test "$prefix_NONE" && prefix=NONE
20596  test "$exec_prefix_NONE" && exec_prefix=NONE
20597
20598
20599XKBOUTPUT_FIRSTCHAR=`echo $XKBOUTPUT | cut -b 1`
20600if [ x$XKBOUTPUT_FIRSTCHAR != x/ -a x$XKBOUTPUT_FIRSTCHAR != 'x$' ] ; then
20601   XKBOUTPUT="$XKB_BASE_DIRECTORY/$XKBOUTPUT"
20602fi
20603
20604
20605XKBOUTPUT=`echo $XKBOUTPUT/ | $SED 's|/*$|/|'`
20606XKB_COMPILED_DIR=`echo $XKBOUTPUT | $SED 's|/*$||'`
20607
20608  prefix_NONE=
20609  exec_prefix_NONE=
20610  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
20611  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
20612  eval ac_define_dir="\"$XKBOUTPUT\""
20613  eval ac_define_dir="\"$ac_define_dir\""
20614  XKM_OUTPUT_DIR="$ac_define_dir"
20615
20616
20617cat >>confdefs.h <<_ACEOF
20618#define XKM_OUTPUT_DIR "$ac_define_dir"
20619_ACEOF
20620
20621  test "$prefix_NONE" && prefix=NONE
20622  test "$exec_prefix_NONE" && exec_prefix=NONE
20623
20624
20625
20626if test "x$XKB_DFLT_RULES" = x; then
20627    case $host_os in
20628    linux*)
20629                if test "x$CONFIG_HAL" = xyes; then
20630            XKB_DFLT_RULES="evdev"
20631        else
20632            XKB_DFLT_RULES="base"
20633        fi
20634        ;;
20635    *)
20636        XKB_DFLT_RULES="base"
20637        ;;
20638    esac
20639fi
20640
20641cat >>confdefs.h <<_ACEOF
20642#define XKB_DFLT_RULES "$XKB_DFLT_RULES"
20643_ACEOF
20644
20645
20646cat >>confdefs.h <<_ACEOF
20647#define XKB_DFLT_MODEL "$XKB_DFLT_MODEL"
20648_ACEOF
20649
20650
20651cat >>confdefs.h <<_ACEOF
20652#define XKB_DFLT_LAYOUT "$XKB_DFLT_LAYOUT"
20653_ACEOF
20654
20655
20656cat >>confdefs.h <<_ACEOF
20657#define XKB_DFLT_VARIANT "$XKB_DFLT_VARIANT"
20658_ACEOF
20659
20660
20661cat >>confdefs.h <<_ACEOF
20662#define XKB_DFLT_OPTIONS "$XKB_DFLT_OPTIONS"
20663_ACEOF
20664
20665
20666XKB_LIB='$(top_builddir)/xkb/libxkb.la'
20667XKB_STUB_LIB='$(top_builddir)/xkb/libxkbstubs.la'
20668REQUIRED_MODULES="$REQUIRED_MODULES xkbfile"
20669
20670ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
20671if test "x$ac_cv_func_strcasecmp" = xyes; then :
20672
20673else
20674
20675$as_echo "#define NEED_STRCASECMP 1" >>confdefs.h
20676
20677fi
20678
20679ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
20680if test "x$ac_cv_func_strncasecmp" = xyes; then :
20681
20682else
20683
20684$as_echo "#define NEED_STRNCASECMP 1" >>confdefs.h
20685
20686fi
20687
20688ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
20689if test "x$ac_cv_func_strcasestr" = xyes; then :
20690
20691else
20692
20693$as_echo "#define NEED_STRCASESTR 1" >>confdefs.h
20694
20695fi
20696
20697
20698
20699pkg_failed=no
20700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDMCP" >&5
20701$as_echo_n "checking for XDMCP... " >&6; }
20702
20703if test -n "$XDMCP_CFLAGS"; then
20704    pkg_cv_XDMCP_CFLAGS="$XDMCP_CFLAGS"
20705 elif test -n "$PKG_CONFIG"; then
20706    if test -n "$PKG_CONFIG" && \
20707    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5
20708  ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
20709  ac_status=$?
20710  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20711  test $ac_status = 0; }; then
20712  pkg_cv_XDMCP_CFLAGS=`$PKG_CONFIG --cflags "xdmcp" 2>/dev/null`
20713else
20714  pkg_failed=yes
20715fi
20716 else
20717    pkg_failed=untried
20718fi
20719if test -n "$XDMCP_LIBS"; then
20720    pkg_cv_XDMCP_LIBS="$XDMCP_LIBS"
20721 elif test -n "$PKG_CONFIG"; then
20722    if test -n "$PKG_CONFIG" && \
20723    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5
20724  ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
20725  ac_status=$?
20726  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20727  test $ac_status = 0; }; then
20728  pkg_cv_XDMCP_LIBS=`$PKG_CONFIG --libs "xdmcp" 2>/dev/null`
20729else
20730  pkg_failed=yes
20731fi
20732 else
20733    pkg_failed=untried
20734fi
20735
20736
20737
20738if test $pkg_failed = yes; then
20739   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20740$as_echo "no" >&6; }
20741
20742if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20743        _pkg_short_errors_supported=yes
20744else
20745        _pkg_short_errors_supported=no
20746fi
20747        if test $_pkg_short_errors_supported = yes; then
20748	        XDMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xdmcp" 2>&1`
20749        else
20750	        XDMCP_PKG_ERRORS=`$PKG_CONFIG --print-errors "xdmcp" 2>&1`
20751        fi
20752	# Put the nasty error message in config.log where it belongs
20753	echo "$XDMCP_PKG_ERRORS" >&5
20754
20755	have_libxdmcp="no"
20756elif test $pkg_failed = untried; then
20757     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20758$as_echo "no" >&6; }
20759	have_libxdmcp="no"
20760else
20761	XDMCP_CFLAGS=$pkg_cv_XDMCP_CFLAGS
20762	XDMCP_LIBS=$pkg_cv_XDMCP_LIBS
20763        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20764$as_echo "yes" >&6; }
20765	have_libxdmcp="yes"
20766fi
20767if test "x$have_libxdmcp" = xyes; then
20768	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XdmcpWrap in -lXdmcp" >&5
20769$as_echo_n "checking for XdmcpWrap in -lXdmcp... " >&6; }
20770if ${ac_cv_lib_Xdmcp_XdmcpWrap+:} false; then :
20771  $as_echo_n "(cached) " >&6
20772else
20773  ac_check_lib_save_LIBS=$LIBS
20774LIBS="-lXdmcp $XDMCP_LIBS $LIBS"
20775cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20776/* end confdefs.h.  */
20777
20778/* Override any GCC internal prototype to avoid an error.
20779   Use char because int might match the return type of a GCC
20780   builtin and then its argument prototype would still apply.  */
20781#ifdef __cplusplus
20782extern "C"
20783#endif
20784char XdmcpWrap ();
20785int
20786main ()
20787{
20788return XdmcpWrap ();
20789  ;
20790  return 0;
20791}
20792_ACEOF
20793if ac_fn_c_try_link "$LINENO"; then :
20794  ac_cv_lib_Xdmcp_XdmcpWrap=yes
20795else
20796  ac_cv_lib_Xdmcp_XdmcpWrap=no
20797fi
20798rm -f core conftest.err conftest.$ac_objext \
20799    conftest$ac_exeext conftest.$ac_ext
20800LIBS=$ac_check_lib_save_LIBS
20801fi
20802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp_XdmcpWrap" >&5
20803$as_echo "$ac_cv_lib_Xdmcp_XdmcpWrap" >&6; }
20804if test "x$ac_cv_lib_Xdmcp_XdmcpWrap" = xyes; then :
20805  have_xdmcpwrap="yes"
20806else
20807  have_xdmcpwrap="no"
20808fi
20809
20810fi
20811if test "x$XDMCP" = xauto; then
20812	if test "x$have_libxdmcp" = xyes; then
20813		XDMCP=yes
20814	else
20815		XDMCP=no
20816	fi
20817fi
20818if test "x$XDMAUTH" = xauto; then
20819	if test "x$have_libxdmcp" = xyes && test "x$have_xdmcpwrap" = xyes; then
20820		XDMAUTH=yes
20821	else
20822		XDMAUTH=no
20823	fi
20824fi
20825
20826 if test "x$XDMCP" = xyes; then
20827  XDMCP_TRUE=
20828  XDMCP_FALSE='#'
20829else
20830  XDMCP_TRUE='#'
20831  XDMCP_FALSE=
20832fi
20833
20834if test "x$XDMCP" = xyes; then
20835
20836$as_echo "#define XDMCP 1" >>confdefs.h
20837
20838	REQUIRED_LIBS="$REQUIRED_LIBS xdmcp"
20839	XDMCP_MODULES="xdmcp"
20840fi
20841
20842 if test "x$XDMAUTH" = xyes; then
20843  XDMAUTH_TRUE=
20844  XDMAUTH_FALSE='#'
20845else
20846  XDMAUTH_TRUE='#'
20847  XDMAUTH_FALSE=
20848fi
20849
20850if test "x$XDMAUTH" = xyes; then
20851
20852$as_echo "#define HASXDMAUTH 1" >>confdefs.h
20853
20854	if ! test "x$XDMCP" = xyes; then
20855		REQUIRED_LIBS="$REQUIRED_LIBS xdmcp"
20856		XDMCP_MODULES="xdmcp"
20857	fi
20858fi
20859
20860
20861  prefix_NONE=
20862  exec_prefix_NONE=
20863  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
20864  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
20865  eval ac_define_dir="\"$FONTPATH\""
20866  eval ac_define_dir="\"$ac_define_dir\""
20867  COMPILEDDEFAULTFONTPATH="$ac_define_dir"
20868
20869
20870cat >>confdefs.h <<_ACEOF
20871#define COMPILEDDEFAULTFONTPATH "$ac_define_dir"
20872_ACEOF
20873
20874  test "$prefix_NONE" && prefix=NONE
20875  test "$exec_prefix_NONE" && exec_prefix=NONE
20876
20877
20878  prefix_NONE=
20879  exec_prefix_NONE=
20880  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
20881  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
20882  eval ac_define_dir="\"$PCI_TXT_IDS_DIR\""
20883  eval ac_define_dir="\"$ac_define_dir\""
20884  PCI_TXT_IDS_PATH="$ac_define_dir"
20885
20886
20887cat >>confdefs.h <<_ACEOF
20888#define PCI_TXT_IDS_PATH "$ac_define_dir"
20889_ACEOF
20890
20891  test "$prefix_NONE" && prefix=NONE
20892  test "$exec_prefix_NONE" && exec_prefix=NONE
20893
20894
20895  prefix_NONE=
20896  exec_prefix_NONE=
20897  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
20898  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
20899  eval ac_define_dir="\"$SERVERCONFIG\""
20900  eval ac_define_dir="\"$ac_define_dir\""
20901  SERVER_MISC_CONFIG_PATH="$ac_define_dir"
20902
20903
20904cat >>confdefs.h <<_ACEOF
20905#define SERVER_MISC_CONFIG_PATH "$ac_define_dir"
20906_ACEOF
20907
20908  test "$prefix_NONE" && prefix=NONE
20909  test "$exec_prefix_NONE" && exec_prefix=NONE
20910
20911
20912  prefix_NONE=
20913  exec_prefix_NONE=
20914  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
20915  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
20916  eval ac_define_dir="\"$FONTROOTDIR\""
20917  eval ac_define_dir="\"$ac_define_dir\""
20918  BASE_FONT_PATH="$ac_define_dir"
20919
20920
20921cat >>confdefs.h <<_ACEOF
20922#define BASE_FONT_PATH "$ac_define_dir"
20923_ACEOF
20924
20925  test "$prefix_NONE" && prefix=NONE
20926  test "$exec_prefix_NONE" && exec_prefix=NONE
20927
20928
20929  prefix_NONE=
20930  exec_prefix_NONE=
20931  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
20932  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
20933  eval ac_define_dir="\"$DRI_DRIVER_PATH\""
20934  eval ac_define_dir="\"$ac_define_dir\""
20935  DRI_DRIVER_PATH="$ac_define_dir"
20936
20937
20938cat >>confdefs.h <<_ACEOF
20939#define DRI_DRIVER_PATH "$ac_define_dir"
20940_ACEOF
20941
20942  test "$prefix_NONE" && prefix=NONE
20943  test "$exec_prefix_NONE" && exec_prefix=NONE
20944
20945
20946cat >>confdefs.h <<_ACEOF
20947#define XVENDORNAME "$VENDOR_NAME"
20948_ACEOF
20949
20950
20951cat >>confdefs.h <<_ACEOF
20952#define XVENDORNAMESHORT "$VENDOR_NAME_SHORT"
20953_ACEOF
20954
20955
20956cat >>confdefs.h <<_ACEOF
20957#define XORG_DATE "$RELEASE_DATE"
20958_ACEOF
20959
20960
20961cat >>confdefs.h <<_ACEOF
20962#define XORG_MAN_VERSION "$VENDOR_MAN_VERSION"
20963_ACEOF
20964
20965
20966cat >>confdefs.h <<_ACEOF
20967#define BUILDERADDR "$BUILDERADDR"
20968_ACEOF
20969
20970
20971if test -z "$OSNAME"; then
20972    OSNAME="UNKNOWN"
20973fi
20974
20975
20976cat >>confdefs.h <<_ACEOF
20977#define OSNAME "$OSNAME"
20978_ACEOF
20979
20980
20981cat >>confdefs.h <<_ACEOF
20982#define OSVENDOR "$OSVENDOR"
20983_ACEOF
20984
20985
20986cat >>confdefs.h <<_ACEOF
20987#define BUILDERSTRING "$BUILDERSTRING"
20988_ACEOF
20989
20990
20991
20992
20993cat >>confdefs.h <<_ACEOF
20994#define VENDOR_NAME "$VENDOR_NAME"
20995_ACEOF
20996
20997
20998cat >>confdefs.h <<_ACEOF
20999#define VENDOR_NAME_SHORT "$VENDOR_NAME_SHORT"
21000_ACEOF
21001
21002
21003cat >>confdefs.h <<_ACEOF
21004#define VENDOR_RELEASE $VENDOR_RELEASE
21005_ACEOF
21006
21007
21008cat >>confdefs.h <<_ACEOF
21009#define VENDOR_MAN_VERSION "$VENDOR_MAN_VERSION"
21010_ACEOF
21011
21012
21013
21014$as_echo "#define NO_LIBCWRAPPER 1" >>confdefs.h
21015
21016
21017if test "x$DEBUGGING" = xyes; then
21018
21019$as_echo "#define DEBUG 1" >>confdefs.h
21020
21021fi
21022 if test "x$DEBUGGING" = xyes; then
21023  DEBUG_TRUE=
21024  DEBUG_FALSE='#'
21025else
21026  DEBUG_TRUE='#'
21027  DEBUG_FALSE=
21028fi
21029
21030
21031# If unittests aren't explicitly disabled, check for required support
21032if test "x$UNITTESTS" != xno ; then
21033
21034pkg_failed=no
21035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
21036$as_echo_n "checking for GLIB... " >&6; }
21037
21038if test -n "$GLIB_CFLAGS"; then
21039    pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
21040 elif test -n "$PKG_CONFIG"; then
21041    if test -n "$PKG_CONFIG" && \
21042    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBGLIB\""; } >&5
21043  ($PKG_CONFIG --exists --print-errors "$LIBGLIB") 2>&5
21044  ac_status=$?
21045  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21046  test $ac_status = 0; }; then
21047  pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "$LIBGLIB" 2>/dev/null`
21048else
21049  pkg_failed=yes
21050fi
21051 else
21052    pkg_failed=untried
21053fi
21054if test -n "$GLIB_LIBS"; then
21055    pkg_cv_GLIB_LIBS="$GLIB_LIBS"
21056 elif test -n "$PKG_CONFIG"; then
21057    if test -n "$PKG_CONFIG" && \
21058    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBGLIB\""; } >&5
21059  ($PKG_CONFIG --exists --print-errors "$LIBGLIB") 2>&5
21060  ac_status=$?
21061  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21062  test $ac_status = 0; }; then
21063  pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "$LIBGLIB" 2>/dev/null`
21064else
21065  pkg_failed=yes
21066fi
21067 else
21068    pkg_failed=untried
21069fi
21070
21071
21072
21073if test $pkg_failed = yes; then
21074   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21075$as_echo "no" >&6; }
21076
21077if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21078        _pkg_short_errors_supported=yes
21079else
21080        _pkg_short_errors_supported=no
21081fi
21082        if test $_pkg_short_errors_supported = yes; then
21083	        GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBGLIB" 2>&1`
21084        else
21085	        GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBGLIB" 2>&1`
21086        fi
21087	# Put the nasty error message in config.log where it belongs
21088	echo "$GLIB_PKG_ERRORS" >&5
21089
21090	HAVE_GLIB=no
21091elif test $pkg_failed = untried; then
21092     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21093$as_echo "no" >&6; }
21094	HAVE_GLIB=no
21095else
21096	GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
21097	GLIB_LIBS=$pkg_cv_GLIB_LIBS
21098        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21099$as_echo "yes" >&6; }
21100	HAVE_GLIB=yes
21101fi
21102
21103       # Check if linker supports -wrap, passed via compiler flags
21104       # When cross-compiling, reports no, since unit tests run from
21105       # "make check", so would be running on build machine,  not target
21106       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker supports -wrap" >&5
21107$as_echo_n "checking whether the linker supports -wrap... " >&6; }
21108       save_LDFLAGS="$LDFLAGS"
21109       LDFLAGS="$LDFLAGS -Wl,-wrap,exit"
21110       if test "$cross_compiling" = yes; then :
21111  linker_can_wrap="no"
21112else
21113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21114/* end confdefs.h.  */
21115
21116	void __wrap_exit (int s)
21117	{
21118	    __real_exit (0);
21119	}
21120int
21121main ()
21122{
21123exit (1);
21124  ;
21125  return 0;
21126}
21127_ACEOF
21128if ac_fn_c_try_run "$LINENO"; then :
21129  linker_can_wrap="yes"
21130else
21131  linker_can_wrap="no"
21132fi
21133rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21134  conftest.$ac_objext conftest.beam conftest.$ac_ext
21135fi
21136
21137       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $linker_can_wrap" >&5
21138$as_echo "$linker_can_wrap" >&6; }
21139       LDFLAGS="$save_LDFLAGS"
21140fi
21141
21142if test "x$UNITTESTS" = xauto; then
21143       if test "x$HAVE_GLIB" = xyes && test "x$linker_can_wrap" = xyes; then
21144           UNITTESTS=yes
21145       else
21146           UNITTESTS=no
21147       fi
21148fi
21149if test "x$UNITTESTS" = xyes; then
21150       if test "x$HAVE_GLIB" = xno; then
21151           as_fn_error $? "glib required to build unit tests" "$LINENO" 5
21152       fi
21153       if test "x$linker_can_wrap" = xno; then
21154           as_fn_error $? "ld -wrap support required to build unit tests" "$LINENO" 5
21155       fi
21156
21157$as_echo "#define UNITTESTS 1" >>confdefs.h
21158
21159
21160
21161fi
21162 if test "x$UNITTESTS" = xyes; then
21163  UNITTESTS_TRUE=
21164  UNITTESTS_FALSE='#'
21165else
21166  UNITTESTS_TRUE='#'
21167  UNITTESTS_FALSE=
21168fi
21169
21170
21171
21172$as_echo "#define XTEST 1" >>confdefs.h
21173
21174
21175$as_echo "#define XSYNC 1" >>confdefs.h
21176
21177
21178$as_echo "#define XCMISC 1" >>confdefs.h
21179
21180
21181$as_echo "#define BIGREQS 1" >>confdefs.h
21182
21183
21184if test "x$SPECIAL_DTRACE_OBJECTS" = "xyes" ; then
21185  DIX_LIB='$(top_builddir)/dix/dix.O'
21186  OS_LIB='$(top_builddir)/os/os.O $(SHA1_LIBS) $(DLOPEN_LIBS)'
21187else
21188  DIX_LIB='$(top_builddir)/dix/libdix.la'
21189  OS_LIB='$(top_builddir)/os/libos.la'
21190fi
21191
21192
21193
21194MAIN_LIB='$(top_builddir)/dix/libmain.la'
21195
21196
21197MI_LIB='$(top_builddir)/mi/libmi.la'
21198MI_EXT_LIB='$(top_builddir)/mi/libmiext.la'
21199MI_INC='-I$(top_srcdir)/mi'
21200FB_LIB='$(top_builddir)/fb/libfb.la'
21201FB_INC='-I$(top_srcdir)/fb'
21202MIEXT_SHADOW_INC='-I$(top_srcdir)/miext/shadow'
21203MIEXT_SHADOW_LIB='$(top_builddir)/miext/shadow/libshadow.la'
21204CORE_INCS='-I$(top_srcdir)/include -I$(top_builddir)/include'
21205
21206# SHA1 hashing
21207
21208# Check whether --with-sha1 was given.
21209if test "${with_sha1+set}" = set; then :
21210  withval=$with_sha1;
21211fi
21212
21213ac_fn_c_check_func "$LINENO" "SHA1Init" "ac_cv_func_SHA1Init"
21214if test "x$ac_cv_func_SHA1Init" = xyes; then :
21215  HAVE_SHA1_IN_LIBC=yes
21216fi
21217
21218if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_LIBC" = xyes; then
21219	with_sha1=libc
21220fi
21221if test "x$with_sha1" = xlibc && test "x$HAVE_SHA1_IN_LIBC" != xyes; then
21222	as_fn_error $? "libc requested but not found" "$LINENO" 5
21223fi
21224if test "x$with_sha1" = xlibc; then
21225
21226$as_echo "#define HAVE_SHA1_IN_LIBC 1" >>confdefs.h
21227
21228	SHA1_LIBS=""
21229fi
21230ac_fn_c_check_func "$LINENO" "CC_SHA1_Init" "ac_cv_func_CC_SHA1_Init"
21231if test "x$ac_cv_func_CC_SHA1_Init" = xyes; then :
21232  HAVE_SHA1_IN_COMMONCRYPTO=yes
21233fi
21234
21235if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_COMMONCRYPTO" = xyes; then
21236	with_sha1=CommonCrypto
21237fi
21238if test "x$with_sha1" = xCommonCrypto && test "x$HAVE_SHA1_IN_COMMONCRYPTO" != xyes; then
21239	as_fn_error $? "CommonCrypto requested but not found" "$LINENO" 5
21240fi
21241if test "x$with_sha1" = xCommonCrypto; then
21242
21243$as_echo "#define HAVE_SHA1_IN_COMMONCRYPTO 1" >>confdefs.h
21244
21245	SHA1_LIBS=""
21246fi
21247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1Init in -lmd" >&5
21248$as_echo_n "checking for SHA1Init in -lmd... " >&6; }
21249if ${ac_cv_lib_md_SHA1Init+:} false; then :
21250  $as_echo_n "(cached) " >&6
21251else
21252  ac_check_lib_save_LIBS=$LIBS
21253LIBS="-lmd  $LIBS"
21254cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21255/* end confdefs.h.  */
21256
21257/* Override any GCC internal prototype to avoid an error.
21258   Use char because int might match the return type of a GCC
21259   builtin and then its argument prototype would still apply.  */
21260#ifdef __cplusplus
21261extern "C"
21262#endif
21263char SHA1Init ();
21264int
21265main ()
21266{
21267return SHA1Init ();
21268  ;
21269  return 0;
21270}
21271_ACEOF
21272if ac_fn_c_try_link "$LINENO"; then :
21273  ac_cv_lib_md_SHA1Init=yes
21274else
21275  ac_cv_lib_md_SHA1Init=no
21276fi
21277rm -f core conftest.err conftest.$ac_objext \
21278    conftest$ac_exeext conftest.$ac_ext
21279LIBS=$ac_check_lib_save_LIBS
21280fi
21281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_md_SHA1Init" >&5
21282$as_echo "$ac_cv_lib_md_SHA1Init" >&6; }
21283if test "x$ac_cv_lib_md_SHA1Init" = xyes; then :
21284  HAVE_LIBMD=yes
21285fi
21286
21287if test "x$with_sha1" = x && test "x$HAVE_LIBMD" = xyes; then
21288	with_sha1=libmd
21289fi
21290if test "x$with_sha1" = xlibmd && test "x$HAVE_LIBMD" != xyes; then
21291	as_fn_error $? "libmd requested but not found" "$LINENO" 5
21292fi
21293if test "x$with_sha1" = xlibmd; then
21294
21295$as_echo "#define HAVE_SHA1_IN_LIBMD 1" >>confdefs.h
21296
21297	SHA1_LIBS=-lmd
21298fi
21299
21300pkg_failed=no
21301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSHA1" >&5
21302$as_echo_n "checking for LIBSHA1... " >&6; }
21303
21304if test -n "$LIBSHA1_CFLAGS"; then
21305    pkg_cv_LIBSHA1_CFLAGS="$LIBSHA1_CFLAGS"
21306 elif test -n "$PKG_CONFIG"; then
21307    if test -n "$PKG_CONFIG" && \
21308    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsha1\""; } >&5
21309  ($PKG_CONFIG --exists --print-errors "libsha1") 2>&5
21310  ac_status=$?
21311  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21312  test $ac_status = 0; }; then
21313  pkg_cv_LIBSHA1_CFLAGS=`$PKG_CONFIG --cflags "libsha1" 2>/dev/null`
21314else
21315  pkg_failed=yes
21316fi
21317 else
21318    pkg_failed=untried
21319fi
21320if test -n "$LIBSHA1_LIBS"; then
21321    pkg_cv_LIBSHA1_LIBS="$LIBSHA1_LIBS"
21322 elif test -n "$PKG_CONFIG"; then
21323    if test -n "$PKG_CONFIG" && \
21324    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsha1\""; } >&5
21325  ($PKG_CONFIG --exists --print-errors "libsha1") 2>&5
21326  ac_status=$?
21327  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21328  test $ac_status = 0; }; then
21329  pkg_cv_LIBSHA1_LIBS=`$PKG_CONFIG --libs "libsha1" 2>/dev/null`
21330else
21331  pkg_failed=yes
21332fi
21333 else
21334    pkg_failed=untried
21335fi
21336
21337
21338
21339if test $pkg_failed = yes; then
21340   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21341$as_echo "no" >&6; }
21342
21343if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21344        _pkg_short_errors_supported=yes
21345else
21346        _pkg_short_errors_supported=no
21347fi
21348        if test $_pkg_short_errors_supported = yes; then
21349	        LIBSHA1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libsha1" 2>&1`
21350        else
21351	        LIBSHA1_PKG_ERRORS=`$PKG_CONFIG --print-errors "libsha1" 2>&1`
21352        fi
21353	# Put the nasty error message in config.log where it belongs
21354	echo "$LIBSHA1_PKG_ERRORS" >&5
21355
21356	HAVE_LIBSHA1=no
21357elif test $pkg_failed = untried; then
21358     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21359$as_echo "no" >&6; }
21360	HAVE_LIBSHA1=no
21361else
21362	LIBSHA1_CFLAGS=$pkg_cv_LIBSHA1_CFLAGS
21363	LIBSHA1_LIBS=$pkg_cv_LIBSHA1_LIBS
21364        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21365$as_echo "yes" >&6; }
21366	HAVE_LIBSHA1=yes
21367fi
21368if test "x$with_sha1" = x && test "x$HAVE_LIBSHA1" = xyes; then
21369   with_sha1=libsha1
21370fi
21371if test "x$with_sha1" = xlibsha1 && test "x$HAVE_LIBSHA1" != xyes; then
21372	as_fn_error $? "libsha1 requested but not found" "$LINENO" 5
21373fi
21374if test "x$with_sha1" = xlibsha1; then
21375
21376$as_echo "#define HAVE_SHA1_IN_LIBSHA1 1" >>confdefs.h
21377
21378	SHA1_LIBS=-lsha1
21379fi
21380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_md_open in -lgcrypt" >&5
21381$as_echo_n "checking for gcry_md_open in -lgcrypt... " >&6; }
21382if ${ac_cv_lib_gcrypt_gcry_md_open+:} false; then :
21383  $as_echo_n "(cached) " >&6
21384else
21385  ac_check_lib_save_LIBS=$LIBS
21386LIBS="-lgcrypt  $LIBS"
21387cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21388/* end confdefs.h.  */
21389
21390/* Override any GCC internal prototype to avoid an error.
21391   Use char because int might match the return type of a GCC
21392   builtin and then its argument prototype would still apply.  */
21393#ifdef __cplusplus
21394extern "C"
21395#endif
21396char gcry_md_open ();
21397int
21398main ()
21399{
21400return gcry_md_open ();
21401  ;
21402  return 0;
21403}
21404_ACEOF
21405if ac_fn_c_try_link "$LINENO"; then :
21406  ac_cv_lib_gcrypt_gcry_md_open=yes
21407else
21408  ac_cv_lib_gcrypt_gcry_md_open=no
21409fi
21410rm -f core conftest.err conftest.$ac_objext \
21411    conftest$ac_exeext conftest.$ac_ext
21412LIBS=$ac_check_lib_save_LIBS
21413fi
21414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_md_open" >&5
21415$as_echo "$ac_cv_lib_gcrypt_gcry_md_open" >&6; }
21416if test "x$ac_cv_lib_gcrypt_gcry_md_open" = xyes; then :
21417  HAVE_LIBGCRYPT=yes
21418fi
21419
21420if test "x$with_sha1" = x && test "x$HAVE_LIBGCRYPT" = xyes; then
21421	with_sha1=libgcrypt
21422fi
21423if test "x$with_sha1" = xlibgcrypt && test "x$HAVE_LIBGCRYPT" != xyes; then
21424	as_fn_error $? "libgcrypt requested but not found" "$LINENO" 5
21425fi
21426if test "x$with_sha1" = xlibgcrypt; then
21427
21428$as_echo "#define HAVE_SHA1_IN_LIBGCRYPT 1" >>confdefs.h
21429
21430	SHA1_LIBS=-lgcrypt
21431fi
21432# We don't need all of the OpenSSL libraries, just libcrypto
21433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1_Init in -lcrypto" >&5
21434$as_echo_n "checking for SHA1_Init in -lcrypto... " >&6; }
21435if ${ac_cv_lib_crypto_SHA1_Init+:} false; then :
21436  $as_echo_n "(cached) " >&6
21437else
21438  ac_check_lib_save_LIBS=$LIBS
21439LIBS="-lcrypto  $LIBS"
21440cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21441/* end confdefs.h.  */
21442
21443/* Override any GCC internal prototype to avoid an error.
21444   Use char because int might match the return type of a GCC
21445   builtin and then its argument prototype would still apply.  */
21446#ifdef __cplusplus
21447extern "C"
21448#endif
21449char SHA1_Init ();
21450int
21451main ()
21452{
21453return SHA1_Init ();
21454  ;
21455  return 0;
21456}
21457_ACEOF
21458if ac_fn_c_try_link "$LINENO"; then :
21459  ac_cv_lib_crypto_SHA1_Init=yes
21460else
21461  ac_cv_lib_crypto_SHA1_Init=no
21462fi
21463rm -f core conftest.err conftest.$ac_objext \
21464    conftest$ac_exeext conftest.$ac_ext
21465LIBS=$ac_check_lib_save_LIBS
21466fi
21467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA1_Init" >&5
21468$as_echo "$ac_cv_lib_crypto_SHA1_Init" >&6; }
21469if test "x$ac_cv_lib_crypto_SHA1_Init" = xyes; then :
21470  HAVE_LIBCRYPTO=yes
21471fi
21472
21473
21474pkg_failed=no
21475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
21476$as_echo_n "checking for OPENSSL... " >&6; }
21477
21478if test -n "$OPENSSL_CFLAGS"; then
21479    pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
21480 elif test -n "$PKG_CONFIG"; then
21481    if test -n "$PKG_CONFIG" && \
21482    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
21483  ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
21484  ac_status=$?
21485  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21486  test $ac_status = 0; }; then
21487  pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null`
21488else
21489  pkg_failed=yes
21490fi
21491 else
21492    pkg_failed=untried
21493fi
21494if test -n "$OPENSSL_LIBS"; then
21495    pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
21496 elif test -n "$PKG_CONFIG"; then
21497    if test -n "$PKG_CONFIG" && \
21498    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
21499  ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
21500  ac_status=$?
21501  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21502  test $ac_status = 0; }; then
21503  pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null`
21504else
21505  pkg_failed=yes
21506fi
21507 else
21508    pkg_failed=untried
21509fi
21510
21511
21512
21513if test $pkg_failed = yes; then
21514   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21515$as_echo "no" >&6; }
21516
21517if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21518        _pkg_short_errors_supported=yes
21519else
21520        _pkg_short_errors_supported=no
21521fi
21522        if test $_pkg_short_errors_supported = yes; then
21523	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "openssl" 2>&1`
21524        else
21525	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors "openssl" 2>&1`
21526        fi
21527	# Put the nasty error message in config.log where it belongs
21528	echo "$OPENSSL_PKG_ERRORS" >&5
21529
21530	HAVE_OPENSSL_PKC=no
21531elif test $pkg_failed = untried; then
21532     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21533$as_echo "no" >&6; }
21534	HAVE_OPENSSL_PKC=no
21535else
21536	OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
21537	OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
21538        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21539$as_echo "yes" >&6; }
21540	HAVE_OPENSSL_PKC=yes
21541fi
21542if test "x$HAVE_LIBCRYPTO" = xyes || test "x$HAVE_OPENSSL_PKC" = xyes; then
21543	if test "x$with_sha1" = x; then
21544		with_sha1=libcrypto
21545	fi
21546else
21547	if test "x$with_sha1" = xlibcrypto; then
21548		as_fn_error $? "OpenSSL libcrypto requested but not found" "$LINENO" 5
21549	fi
21550fi
21551if test "x$with_sha1" = xlibcrypto; then
21552	if test "x$HAVE_LIBCRYPTO" = xyes; then
21553		SHA1_LIBS=-lcrypto
21554	else
21555		SHA1_LIBS="$OPENSSL_LIBS"
21556		SHA1_CFLAGS="$OPENSSL_CFLAGS"
21557	fi
21558fi
21559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1 implementation" >&5
21560$as_echo_n "checking for SHA1 implementation... " >&6; }
21561if test "x$with_sha1" = x; then
21562	as_fn_error $? "No suitable SHA1 implementation found" "$LINENO" 5
21563fi
21564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sha1" >&5
21565$as_echo "$with_sha1" >&6; }
21566
21567
21568
21569
21570pkg_failed=no
21571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSERVERCFLAGS" >&5
21572$as_echo_n "checking for XSERVERCFLAGS... " >&6; }
21573
21574if test -n "$XSERVERCFLAGS_CFLAGS"; then
21575    pkg_cv_XSERVERCFLAGS_CFLAGS="$XSERVERCFLAGS_CFLAGS"
21576 elif test -n "$PKG_CONFIG"; then
21577    if test -n "$PKG_CONFIG" && \
21578    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_MODULES \$REQUIRED_LIBS\""; } >&5
21579  ($PKG_CONFIG --exists --print-errors "$REQUIRED_MODULES $REQUIRED_LIBS") 2>&5
21580  ac_status=$?
21581  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21582  test $ac_status = 0; }; then
21583  pkg_cv_XSERVERCFLAGS_CFLAGS=`$PKG_CONFIG --cflags "$REQUIRED_MODULES $REQUIRED_LIBS" 2>/dev/null`
21584else
21585  pkg_failed=yes
21586fi
21587 else
21588    pkg_failed=untried
21589fi
21590if test -n "$XSERVERCFLAGS_LIBS"; then
21591    pkg_cv_XSERVERCFLAGS_LIBS="$XSERVERCFLAGS_LIBS"
21592 elif test -n "$PKG_CONFIG"; then
21593    if test -n "$PKG_CONFIG" && \
21594    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_MODULES \$REQUIRED_LIBS\""; } >&5
21595  ($PKG_CONFIG --exists --print-errors "$REQUIRED_MODULES $REQUIRED_LIBS") 2>&5
21596  ac_status=$?
21597  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21598  test $ac_status = 0; }; then
21599  pkg_cv_XSERVERCFLAGS_LIBS=`$PKG_CONFIG --libs "$REQUIRED_MODULES $REQUIRED_LIBS" 2>/dev/null`
21600else
21601  pkg_failed=yes
21602fi
21603 else
21604    pkg_failed=untried
21605fi
21606
21607
21608
21609if test $pkg_failed = yes; then
21610   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21611$as_echo "no" >&6; }
21612
21613if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21614        _pkg_short_errors_supported=yes
21615else
21616        _pkg_short_errors_supported=no
21617fi
21618        if test $_pkg_short_errors_supported = yes; then
21619	        XSERVERCFLAGS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$REQUIRED_MODULES $REQUIRED_LIBS" 2>&1`
21620        else
21621	        XSERVERCFLAGS_PKG_ERRORS=`$PKG_CONFIG --print-errors "$REQUIRED_MODULES $REQUIRED_LIBS" 2>&1`
21622        fi
21623	# Put the nasty error message in config.log where it belongs
21624	echo "$XSERVERCFLAGS_PKG_ERRORS" >&5
21625
21626	as_fn_error $? "Package requirements ($REQUIRED_MODULES $REQUIRED_LIBS) were not met:
21627
21628$XSERVERCFLAGS_PKG_ERRORS
21629
21630Consider adjusting the PKG_CONFIG_PATH environment variable if you
21631installed software in a non-standard prefix.
21632
21633Alternatively, you may set the environment variables XSERVERCFLAGS_CFLAGS
21634and XSERVERCFLAGS_LIBS to avoid the need to call pkg-config.
21635See the pkg-config man page for more details." "$LINENO" 5
21636elif test $pkg_failed = untried; then
21637     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21638$as_echo "no" >&6; }
21639	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21640$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21641as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
21642is in your PATH or set the PKG_CONFIG environment variable to the full
21643path to pkg-config.
21644
21645Alternatively, you may set the environment variables XSERVERCFLAGS_CFLAGS
21646and XSERVERCFLAGS_LIBS to avoid the need to call pkg-config.
21647See the pkg-config man page for more details.
21648
21649To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21650See \`config.log' for more details" "$LINENO" 5; }
21651else
21652	XSERVERCFLAGS_CFLAGS=$pkg_cv_XSERVERCFLAGS_CFLAGS
21653	XSERVERCFLAGS_LIBS=$pkg_cv_XSERVERCFLAGS_LIBS
21654        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21655$as_echo "yes" >&6; }
21656
21657fi
21658
21659pkg_failed=no
21660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSERVERLIBS" >&5
21661$as_echo_n "checking for XSERVERLIBS... " >&6; }
21662
21663if test -n "$XSERVERLIBS_CFLAGS"; then
21664    pkg_cv_XSERVERLIBS_CFLAGS="$XSERVERLIBS_CFLAGS"
21665 elif test -n "$PKG_CONFIG"; then
21666    if test -n "$PKG_CONFIG" && \
21667    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_LIBS\""; } >&5
21668  ($PKG_CONFIG --exists --print-errors "$REQUIRED_LIBS") 2>&5
21669  ac_status=$?
21670  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21671  test $ac_status = 0; }; then
21672  pkg_cv_XSERVERLIBS_CFLAGS=`$PKG_CONFIG --cflags "$REQUIRED_LIBS" 2>/dev/null`
21673else
21674  pkg_failed=yes
21675fi
21676 else
21677    pkg_failed=untried
21678fi
21679if test -n "$XSERVERLIBS_LIBS"; then
21680    pkg_cv_XSERVERLIBS_LIBS="$XSERVERLIBS_LIBS"
21681 elif test -n "$PKG_CONFIG"; then
21682    if test -n "$PKG_CONFIG" && \
21683    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_LIBS\""; } >&5
21684  ($PKG_CONFIG --exists --print-errors "$REQUIRED_LIBS") 2>&5
21685  ac_status=$?
21686  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21687  test $ac_status = 0; }; then
21688  pkg_cv_XSERVERLIBS_LIBS=`$PKG_CONFIG --libs "$REQUIRED_LIBS" 2>/dev/null`
21689else
21690  pkg_failed=yes
21691fi
21692 else
21693    pkg_failed=untried
21694fi
21695
21696
21697
21698if test $pkg_failed = yes; then
21699   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21700$as_echo "no" >&6; }
21701
21702if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21703        _pkg_short_errors_supported=yes
21704else
21705        _pkg_short_errors_supported=no
21706fi
21707        if test $_pkg_short_errors_supported = yes; then
21708	        XSERVERLIBS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$REQUIRED_LIBS" 2>&1`
21709        else
21710	        XSERVERLIBS_PKG_ERRORS=`$PKG_CONFIG --print-errors "$REQUIRED_LIBS" 2>&1`
21711        fi
21712	# Put the nasty error message in config.log where it belongs
21713	echo "$XSERVERLIBS_PKG_ERRORS" >&5
21714
21715	as_fn_error $? "Package requirements ($REQUIRED_LIBS) were not met:
21716
21717$XSERVERLIBS_PKG_ERRORS
21718
21719Consider adjusting the PKG_CONFIG_PATH environment variable if you
21720installed software in a non-standard prefix.
21721
21722Alternatively, you may set the environment variables XSERVERLIBS_CFLAGS
21723and XSERVERLIBS_LIBS to avoid the need to call pkg-config.
21724See the pkg-config man page for more details." "$LINENO" 5
21725elif test $pkg_failed = untried; then
21726     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21727$as_echo "no" >&6; }
21728	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21729$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21730as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
21731is in your PATH or set the PKG_CONFIG environment variable to the full
21732path to pkg-config.
21733
21734Alternatively, you may set the environment variables XSERVERLIBS_CFLAGS
21735and XSERVERLIBS_LIBS to avoid the need to call pkg-config.
21736See the pkg-config man page for more details.
21737
21738To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21739See \`config.log' for more details" "$LINENO" 5; }
21740else
21741	XSERVERLIBS_CFLAGS=$pkg_cv_XSERVERLIBS_CFLAGS
21742	XSERVERLIBS_LIBS=$pkg_cv_XSERVERLIBS_LIBS
21743        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21744$as_echo "yes" >&6; }
21745
21746fi
21747
21748# Autotools has some unfortunate issues with library handling.  In order to
21749# get a server to rebuild when a dependency in the tree is changed, it must
21750# be listed in SERVERNAME_DEPENDENCIES.  However, no system libraries may be
21751# listed there, or some versions of autotools will break (especially if a -L
21752# is required to find the library).  So, we keep two sets of libraries
21753# detected: NAMESPACE_LIBS for in-tree libraries to be linked against, which
21754# will go into the _DEPENDENCIES and _LDADD of the server, and
21755# NAMESPACE_SYS_LIBS which will go into only the _LDADD.  The
21756# NAMESPACEMODULES_LIBS detected from pkgconfig should always go in
21757# NAMESPACE_SYS_LIBS.
21758#
21759# XSERVER_LIBS is the set of in-tree libraries which all servers require.
21760# XSERVER_SYS_LIBS is the set of out-of-tree libraries which all servers
21761# require.
21762#
21763XSERVER_CFLAGS="${XSERVER_CFLAGS} ${XSERVERCFLAGS_CFLAGS}"
21764XSERVER_LIBS="$DIX_LIB $MI_LIB $OS_LIB"
21765XSERVER_SYS_LIBS="${XSERVERLIBS_LIBS} ${SYS_LIBS} ${LIBS}"
21766
21767
21768
21769UTILS_SYS_LIBS="${SYS_LIBS}"
21770
21771
21772# The Xorg binary needs to export symbols so that they can be used from modules
21773# Some platforms require extra flags to do this.   libtool should set the
21774# necessary flags for each platform when -export-dynamic is passed to it.
21775LD_EXPORT_SYMBOLS_FLAG="-export-dynamic"
21776
21777
21778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SVR4 needs to be defined" >&5
21779$as_echo_n "checking if SVR4 needs to be defined... " >&6; }
21780cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21781/* end confdefs.h.  */
21782
21783#if defined(SVR4) || defined(__svr4__) || defined(__SVR4)
21784 I_AM_SVR4
21785#endif
21786
21787_ACEOF
21788if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21789  $EGREP "I_AM_SVR4" >/dev/null 2>&1; then :
21790
21791
21792$as_echo "#define SVR4 1" >>confdefs.h
21793
21794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21795$as_echo "yes" >&6; }
21796else
21797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21798$as_echo "no" >&6; }
21799fi
21800rm -f conftest*
21801
21802
21803XSERVER_CFLAGS="$XSERVER_CFLAGS $CORE_INCS $XEXT_INC $COMPOSITE_INC $DAMAGE_INC $FIXES_INC $XI_INC $MI_INC $MIEXT_SHADOW_INC $MIEXT_LAYER_INC $MIEXT_DAMAGE_INC $RENDER_INC $RANDR_INC $FB_INC"
21804
21805
21806
21807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xvfb DDX" >&5
21808$as_echo_n "checking whether to build Xvfb DDX... " >&6; }
21809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XVFB" >&5
21810$as_echo "$XVFB" >&6; }
21811 if test "x$XVFB" = xyes; then
21812  XVFB_TRUE=
21813  XVFB_FALSE='#'
21814else
21815  XVFB_TRUE='#'
21816  XVFB_FALSE=
21817fi
21818
21819
21820if test "x$XVFB" = xyes; then
21821	XVFB_LIBS="$FB_LIB $FIXES_LIB $XEXT_LIB $DBE_LIB $RECORD_LIB $GLX_LIBS $RANDR_LIB $RENDER_LIB $DAMAGE_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB"
21822	XVFB_SYS_LIBS="$XVFBMODULES_LIBS $GLX_SYS_LIBS"
21823
21824
21825fi
21826
21827
21828
21829
21830pkg_failed=no
21831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XNESTMODULES" >&5
21832$as_echo_n "checking for XNESTMODULES... " >&6; }
21833
21834if test -n "$XNESTMODULES_CFLAGS"; then
21835    pkg_cv_XNESTMODULES_CFLAGS="$XNESTMODULES_CFLAGS"
21836 elif test -n "$PKG_CONFIG"; then
21837    if test -n "$PKG_CONFIG" && \
21838    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11 xau \$XDMCP_MODULES\""; } >&5
21839  ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11 xau $XDMCP_MODULES") 2>&5
21840  ac_status=$?
21841  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21842  test $ac_status = 0; }; then
21843  pkg_cv_XNESTMODULES_CFLAGS=`$PKG_CONFIG --cflags "$LIBXEXT x11 xau $XDMCP_MODULES" 2>/dev/null`
21844else
21845  pkg_failed=yes
21846fi
21847 else
21848    pkg_failed=untried
21849fi
21850if test -n "$XNESTMODULES_LIBS"; then
21851    pkg_cv_XNESTMODULES_LIBS="$XNESTMODULES_LIBS"
21852 elif test -n "$PKG_CONFIG"; then
21853    if test -n "$PKG_CONFIG" && \
21854    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11 xau \$XDMCP_MODULES\""; } >&5
21855  ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11 xau $XDMCP_MODULES") 2>&5
21856  ac_status=$?
21857  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21858  test $ac_status = 0; }; then
21859  pkg_cv_XNESTMODULES_LIBS=`$PKG_CONFIG --libs "$LIBXEXT x11 xau $XDMCP_MODULES" 2>/dev/null`
21860else
21861  pkg_failed=yes
21862fi
21863 else
21864    pkg_failed=untried
21865fi
21866
21867
21868
21869if test $pkg_failed = yes; then
21870   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21871$as_echo "no" >&6; }
21872
21873if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21874        _pkg_short_errors_supported=yes
21875else
21876        _pkg_short_errors_supported=no
21877fi
21878        if test $_pkg_short_errors_supported = yes; then
21879	        XNESTMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBXEXT x11 xau $XDMCP_MODULES" 2>&1`
21880        else
21881	        XNESTMODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBXEXT x11 xau $XDMCP_MODULES" 2>&1`
21882        fi
21883	# Put the nasty error message in config.log where it belongs
21884	echo "$XNESTMODULES_PKG_ERRORS" >&5
21885
21886	have_xnest=no
21887elif test $pkg_failed = untried; then
21888     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21889$as_echo "no" >&6; }
21890	have_xnest=no
21891else
21892	XNESTMODULES_CFLAGS=$pkg_cv_XNESTMODULES_CFLAGS
21893	XNESTMODULES_LIBS=$pkg_cv_XNESTMODULES_LIBS
21894        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21895$as_echo "yes" >&6; }
21896	have_xnest=yes
21897fi
21898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xnest DDX" >&5
21899$as_echo_n "checking whether to build Xnest DDX... " >&6; }
21900if test "x$XNEST" = xauto; then
21901	XNEST="$have_xnest"
21902fi
21903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XNEST" >&5
21904$as_echo "$XNEST" >&6; }
21905 if test "x$XNEST" = xyes; then
21906  XNEST_TRUE=
21907  XNEST_FALSE='#'
21908else
21909  XNEST_TRUE='#'
21910  XNEST_FALSE=
21911fi
21912
21913
21914if test "x$XNEST" = xyes; then
21915	if test "x$have_xnest" = xno; then
21916		as_fn_error $? "Xnest build explicitly requested, but required modules not found." "$LINENO" 5
21917	fi
21918	XNEST_LIBS="$FB_LIB $FIXES_LIB $MI_LIB $XEXT_LIB $DBE_LIB $RECORD_LIB $GLX_LIBS $RANDR_LIB $RENDER_LIB $DAMAGE_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB $DIX_LIB $MAIN_LIB $OS_LIB"
21919	XNEST_SYS_LIBS="$XNESTMODULES_LIBS $GLX_SYS_LIBS"
21920
21921
21922fi
21923
21924
21925
21926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xorg DDX" >&5
21927$as_echo_n "checking whether to build Xorg DDX... " >&6; }
21928if test "x$XORG" = xauto; then
21929	XORG="yes"
21930	case $host_os in
21931		cygwin*) XORG="no" ;;
21932		darwin*) XORG="no" ;;
21933	esac
21934fi
21935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG" >&5
21936$as_echo "$XORG" >&6; }
21937
21938xorg_bus_linuxpci=no
21939xorg_bus_bsdpci=no
21940xorg_bus_sparc=no
21941
21942if test "x$XORG" = xyes; then
21943	XORG_DDXINCS='-I$(top_srcdir)/hw/xfree86 -I$(top_srcdir)/hw/xfree86/include -I$(top_srcdir)/hw/xfree86/common'
21944	XORG_OSINCS='-I$(top_srcdir)/hw/xfree86/os-support -I$(top_srcdir)/hw/xfree86/os-support/bus -I$(top_srcdir)/os'
21945	XORG_INCS="$XORG_DDXINCS $XORG_OSINCS"
21946	XORG_CFLAGS="$XORGSERVER_CFLAGS -DHAVE_XORG_CONFIG_H"
21947	XORG_LIBS="$COMPOSITE_LIB $FIXES_LIB $XEXTXORG_LIB $GLX_LIBS $RANDR_LIB $RENDER_LIB $DAMAGE_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB"
21948
21949			symbol_visibility=
21950	have_visibility=disabled
21951	if test x$SYMBOL_VISIBILITY != xno; then
21952	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symbol visibility support" >&5
21953$as_echo_n "checking for symbol visibility support... " >&6; }
21954	    if test x$GCC = xyes; then
21955		VISIBILITY_CFLAGS="-fvisibility=hidden"
21956	    else
21957		ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
21958if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
21959  SUNCC="yes"
21960else
21961  SUNCC="no"
21962fi
21963
21964		if test x$SUNCC = xyes; then
21965		    VISIBILITY_CFLAGS="-xldscope=hidden"
21966		else
21967		    have_visibility=no
21968		fi
21969	    fi
21970	    if test x$have_visibility != xno; then
21971		save_CFLAGS="$CFLAGS"
21972		CFLAGS="$CFLAGS $VISIBILITY_CFLAGS"
21973		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21974/* end confdefs.h.  */
21975#include <X11/Xfuncproto.h>
21976		     extern _X_HIDDEN int hidden_int;
21977		     extern _X_EXPORT int public_int;
21978		     extern _X_HIDDEN int hidden_int_func(void);
21979		     extern _X_EXPORT int public_int_func(void);
21980int
21981main ()
21982{
21983
21984  ;
21985  return 0;
21986}
21987_ACEOF
21988if ac_fn_c_try_compile "$LINENO"; then :
21989  have_visibility=yes
21990else
21991  have_visibility=no
21992fi
21993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21994		CFLAGS=$save_CFLAGS
21995	    fi
21996	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_visibility" >&5
21997$as_echo "$have_visibility" >&6; }
21998	    if test x$have_visibility != xno; then
21999		symbol_visibility=$VISIBILITY_CFLAGS
22000		XORG_CFLAGS="$XORG_CFLAGS $VISIBILITY_CFLAGS"
22001		XSERVER_CFLAGS="$XSERVER_CFLAGS $VISIBILITY_CFLAGS"
22002	    fi
22003	fi
22004
22005
22006
22007pkg_failed=no
22008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
22009$as_echo_n "checking for PCIACCESS... " >&6; }
22010
22011if test -n "$PCIACCESS_CFLAGS"; then
22012    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
22013 elif test -n "$PKG_CONFIG"; then
22014    if test -n "$PKG_CONFIG" && \
22015    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPCIACCESS\""; } >&5
22016  ($PKG_CONFIG --exists --print-errors "$LIBPCIACCESS") 2>&5
22017  ac_status=$?
22018  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22019  test $ac_status = 0; }; then
22020  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "$LIBPCIACCESS" 2>/dev/null`
22021else
22022  pkg_failed=yes
22023fi
22024 else
22025    pkg_failed=untried
22026fi
22027if test -n "$PCIACCESS_LIBS"; then
22028    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
22029 elif test -n "$PKG_CONFIG"; then
22030    if test -n "$PKG_CONFIG" && \
22031    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPCIACCESS\""; } >&5
22032  ($PKG_CONFIG --exists --print-errors "$LIBPCIACCESS") 2>&5
22033  ac_status=$?
22034  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22035  test $ac_status = 0; }; then
22036  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "$LIBPCIACCESS" 2>/dev/null`
22037else
22038  pkg_failed=yes
22039fi
22040 else
22041    pkg_failed=untried
22042fi
22043
22044
22045
22046if test $pkg_failed = yes; then
22047   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22048$as_echo "no" >&6; }
22049
22050if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22051        _pkg_short_errors_supported=yes
22052else
22053        _pkg_short_errors_supported=no
22054fi
22055        if test $_pkg_short_errors_supported = yes; then
22056	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBPCIACCESS" 2>&1`
22057        else
22058	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBPCIACCESS" 2>&1`
22059        fi
22060	# Put the nasty error message in config.log where it belongs
22061	echo "$PCIACCESS_PKG_ERRORS" >&5
22062
22063	as_fn_error $? "Package requirements ($LIBPCIACCESS) were not met:
22064
22065$PCIACCESS_PKG_ERRORS
22066
22067Consider adjusting the PKG_CONFIG_PATH environment variable if you
22068installed software in a non-standard prefix.
22069
22070Alternatively, you may set the environment variables PCIACCESS_CFLAGS
22071and PCIACCESS_LIBS to avoid the need to call pkg-config.
22072See the pkg-config man page for more details." "$LINENO" 5
22073elif test $pkg_failed = untried; then
22074     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22075$as_echo "no" >&6; }
22076	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22077$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22078as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
22079is in your PATH or set the PKG_CONFIG environment variable to the full
22080path to pkg-config.
22081
22082Alternatively, you may set the environment variables PCIACCESS_CFLAGS
22083and PCIACCESS_LIBS to avoid the need to call pkg-config.
22084See the pkg-config man page for more details.
22085
22086To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22087See \`config.log' for more details" "$LINENO" 5; }
22088else
22089	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
22090	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
22091        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22092$as_echo "yes" >&6; }
22093
22094fi
22095	SAVE_LIBS=$LIBS
22096	SAVE_CFLAGS=$CFLAGS
22097	CFLAGS=$PCIACCESS_CFLAGS
22098	LIBS=$PCIACCESS_LIBS
22099	for ac_func in pci_system_init_dev_mem
22100do :
22101  ac_fn_c_check_func "$LINENO" "pci_system_init_dev_mem" "ac_cv_func_pci_system_init_dev_mem"
22102if test "x$ac_cv_func_pci_system_init_dev_mem" = xyes; then :
22103  cat >>confdefs.h <<_ACEOF
22104#define HAVE_PCI_SYSTEM_INIT_DEV_MEM 1
22105_ACEOF
22106
22107fi
22108done
22109
22110	for ac_func in pci_device_enable
22111do :
22112  ac_fn_c_check_func "$LINENO" "pci_device_enable" "ac_cv_func_pci_device_enable"
22113if test "x$ac_cv_func_pci_device_enable" = xyes; then :
22114  cat >>confdefs.h <<_ACEOF
22115#define HAVE_PCI_DEVICE_ENABLE 1
22116_ACEOF
22117
22118fi
22119done
22120
22121	for ac_func in pci_device_is_boot_vga
22122do :
22123  ac_fn_c_check_func "$LINENO" "pci_device_is_boot_vga" "ac_cv_func_pci_device_is_boot_vga"
22124if test "x$ac_cv_func_pci_device_is_boot_vga" = xyes; then :
22125  cat >>confdefs.h <<_ACEOF
22126#define HAVE_PCI_DEVICE_IS_BOOT_VGA 1
22127_ACEOF
22128
22129fi
22130done
22131
22132	for ac_func in pci_device_vgaarb_init
22133do :
22134  ac_fn_c_check_func "$LINENO" "pci_device_vgaarb_init" "ac_cv_func_pci_device_vgaarb_init"
22135if test "x$ac_cv_func_pci_device_vgaarb_init" = xyes; then :
22136  cat >>confdefs.h <<_ACEOF
22137#define HAVE_PCI_DEVICE_VGAARB_INIT 1
22138_ACEOF
22139
22140fi
22141done
22142
22143	LIBS=$SAVE_LIBS
22144	CFLAGS=$SAVE_CFLAGS
22145	XORG_SYS_LIBS="$XORG_SYS_LIBS $PCIACCESS_LIBS $GLX_SYS_LIBS"
22146	XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
22147
22148	case $host_os in
22149	  linux*)
22150		if test "x$LNXAPM" = xyes; then
22151			XORG_CFLAGS="$XORG_CFLAGS -DXF86PM"
22152		fi
22153	  	XORG_OS="linux"
22154		XORG_OS_SUBDIR="linux"
22155		xorg_bus_linuxpci="yes"
22156		linux_acpi="no"
22157		case $host_cpu in
22158		  ia64*)
22159			linux_ia64=yes
22160			linux_acpi="yes"
22161			;;
22162		  alpha*)
22163		  	linux_alpha=yes
22164			;;
22165		  i*86|amd64*|x86_64*)
22166			linux_acpi="yes"
22167			;;
22168		  *)
22169			;;
22170		esac
22171		;;
22172	  freebsd* | kfreebsd*-gnu | dragonfly*)
22173	  	XORG_OS="freebsd"
22174		XORG_OS_SUBDIR="bsd"
22175		xorg_bus_bsdpci="yes"
22176		;;
22177	  netbsd*)
22178	  	XORG_OS="netbsd"
22179		XORG_OS_SUBDIR="bsd"
22180		xorg_bus_bsdpci="yes"
22181		;;
22182	  openbsd*)
22183		if test "x$ac_cv_BSD_APM" = xyes \
22184			-o "x$ac_cv_BSD_KQUEUE_APM" = xyes; then
22185			XORG_CFLAGS="$XORG_CFLAGS -DXF86PM"
22186		fi
22187	  	XORG_OS="openbsd"
22188		XORG_OS_SUBDIR="bsd"
22189		xorg_bus_bsdpci="yes"
22190		;;
22191	  solaris*)
22192	  	XORG_OS="solaris"
22193		XORG_OS_SUBDIR="solaris"
22194		XORG_CFLAGS="$XORG_CFLAGS -DXF86PM"
22195		# Use the same stubs as BSD for old functions, since we now
22196		# use libpciaccess for PCI
22197		xorg_bus_bsdpci="yes"
22198		for ac_header in sys/kd.h
22199do :
22200  ac_fn_c_check_header_mongrel "$LINENO" "sys/kd.h" "ac_cv_header_sys_kd_h" "$ac_includes_default"
22201if test "x$ac_cv_header_sys_kd_h" = xyes; then :
22202  cat >>confdefs.h <<_ACEOF
22203#define HAVE_SYS_KD_H 1
22204_ACEOF
22205
22206fi
22207
22208done
22209
22210		for ac_header in sys/vt.h
22211do :
22212  ac_fn_c_check_header_mongrel "$LINENO" "sys/vt.h" "ac_cv_header_sys_vt_h" "$ac_includes_default"
22213if test "x$ac_cv_header_sys_vt_h" = xyes; then :
22214  cat >>confdefs.h <<_ACEOF
22215#define HAVE_SYS_VT_H 1
22216_ACEOF
22217 solaris_vt=yes
22218else
22219  solaris_vt=no
22220fi
22221
22222done
22223
22224		# Check for minimum supported release
22225		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris version" >&5
22226$as_echo_n "checking Solaris version... " >&6; }
22227	        OS_MINOR=`echo ${host_os}|$SED -e 's/^.*solaris2\.//' -e s'/\..*$//'`
22228		if test "${OS_MINOR}" -ge 7 ; then
22229	        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris ${OS_MINOR}" >&5
22230$as_echo "Solaris ${OS_MINOR}" >&6; }
22231		else
22232			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris \`echo ${host_os}|$SED -e 's/^.*solaris//\`" >&5
22233$as_echo "Solaris \`echo ${host_os}|$SED -e 's/^.*solaris//\`" >&6; }
22234		fi
22235		if test "${OS_MINOR}" -lt 8 ; then
22236			as_fn_error $? "This release no longer supports Solaris versions older than Solaris 8." "$LINENO" 5
22237		fi
22238		ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
22239if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
22240  SUNCC="yes"
22241else
22242  SUNCC="no"
22243fi
22244
22245		if test "x$SUNCC" = "xyes"; then
22246			solaris_asm_inline="yes"
22247		fi
22248		ac_fn_c_check_decl "$LINENO" "_LP64" "ac_cv_have_decl__LP64" "$ac_includes_default"
22249if test "x$ac_cv_have_decl__LP64" = xyes; then :
22250  SOLARIS_64="yes"
22251else
22252  SOLARIS_64="no"
22253fi
22254
22255
22256		case $host_cpu in
22257		  sparc*)
22258			SOLARIS_INOUT_ARCH="sparcv8plus"
22259			;;
22260		  i*86)
22261			if test x$SOLARIS_64 = xyes ; then
22262				SOLARIS_INOUT_ARCH="amd64"
22263			else
22264				SOLARIS_INOUT_ARCH="ia32"
22265			fi
22266			;;
22267		  *)
22268			as_fn_error $? "Unsupported Solaris platform. Only SPARC & x86 \
22269			are supported on Solaris in this release.   If you are \
22270			interested in porting Xorg to your platform, please email \
22271			xorg@lists.freedesktop.org." "$LINENO" 5 ;;
22272		esac
22273
22274		if test x$solaris_asm_inline = xyes ; then
22275			SOLARIS_ASM_CFLAGS='$(top_srcdir)/hw/xfree86/os-support/solaris/solaris-$(SOLARIS_INOUT_ARCH).il'
22276			XORG_CFLAGS="${XORG_CFLAGS} "'$(SOLARIS_ASM_CFLAGS)'
22277		fi
22278
22279		if test "x$SUPPORT_PC98" = xauto; then
22280			SUPPORT_PC98="no"
22281		fi
22282		;;
22283	  gnu*)
22284	  	XORG_OS="gnu"
22285		XORG_OS_SUBDIR="hurd"
22286		# Use the same stubs as BSD for old functions, since we now
22287		# use libpciaccess for PCI
22288		xorg_bus_bsdpci="yes"
22289		;;
22290	  *)
22291	  	XORG_OS="unknown"
22292		XORG_OS_SUBDIR="unknown"
22293		as_fn_error $? "Your OS is unknown. Xorg currently only supports Linux,
22294Free/Open/Net/DragonFlyBSD, Solaris/OpenSolaris, & GNU Hurd. If you are
22295interested in porting Xorg to your platform, please email
22296xorg@lists.freedesktop.org." "$LINENO" 5
22297		;;
22298	esac
22299
22300	case $host_cpu in
22301	  sparc*)
22302		xorg_bus_sparc="yes"
22303		;;
22304	  i*86)
22305		if test "x$SUPPORT_PC98" = xauto; then
22306			SUPPORT_PC98="yes"
22307		fi
22308		;;
22309	esac
22310
22311	if test "x$SUPPORT_PC98" = xauto; then
22312		SUPPORT_PC98="no"
22313	fi
22314	if test "x$SUPPORT_PC98" = xyes; then
22315
22316$as_echo "#define SUPPORT_PC98 1" >>confdefs.h
22317
22318	fi
22319	if test "x$XORG_OS_PCI" = x ; then
22320		XORG_OS_PCI=$XORG_OS
22321	fi
22322	if test "x$DGA" = xauto; then
22323
22324pkg_failed=no
22325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGA" >&5
22326$as_echo_n "checking for DGA... " >&6; }
22327
22328if test -n "$DGA_CFLAGS"; then
22329    pkg_cv_DGA_CFLAGS="$DGA_CFLAGS"
22330 elif test -n "$PKG_CONFIG"; then
22331    if test -n "$PKG_CONFIG" && \
22332    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5
22333  ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5
22334  ac_status=$?
22335  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22336  test $ac_status = 0; }; then
22337  pkg_cv_DGA_CFLAGS=`$PKG_CONFIG --cflags "$DGAPROTO" 2>/dev/null`
22338else
22339  pkg_failed=yes
22340fi
22341 else
22342    pkg_failed=untried
22343fi
22344if test -n "$DGA_LIBS"; then
22345    pkg_cv_DGA_LIBS="$DGA_LIBS"
22346 elif test -n "$PKG_CONFIG"; then
22347    if test -n "$PKG_CONFIG" && \
22348    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5
22349  ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5
22350  ac_status=$?
22351  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22352  test $ac_status = 0; }; then
22353  pkg_cv_DGA_LIBS=`$PKG_CONFIG --libs "$DGAPROTO" 2>/dev/null`
22354else
22355  pkg_failed=yes
22356fi
22357 else
22358    pkg_failed=untried
22359fi
22360
22361
22362
22363if test $pkg_failed = yes; then
22364   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22365$as_echo "no" >&6; }
22366
22367if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22368        _pkg_short_errors_supported=yes
22369else
22370        _pkg_short_errors_supported=no
22371fi
22372        if test $_pkg_short_errors_supported = yes; then
22373	        DGA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$DGAPROTO" 2>&1`
22374        else
22375	        DGA_PKG_ERRORS=`$PKG_CONFIG --print-errors "$DGAPROTO" 2>&1`
22376        fi
22377	# Put the nasty error message in config.log where it belongs
22378	echo "$DGA_PKG_ERRORS" >&5
22379
22380	DGA=no
22381elif test $pkg_failed = untried; then
22382     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22383$as_echo "no" >&6; }
22384	DGA=no
22385else
22386	DGA_CFLAGS=$pkg_cv_DGA_CFLAGS
22387	DGA_LIBS=$pkg_cv_DGA_LIBS
22388        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22389$as_echo "yes" >&6; }
22390	DGA=yes
22391fi
22392	fi
22393	if test "x$DGA" = xyes; then
22394		XORG_MODULES="$XORG_MODULES $DGAPROTO"
22395
22396pkg_failed=no
22397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGA" >&5
22398$as_echo_n "checking for DGA... " >&6; }
22399
22400if test -n "$DGA_CFLAGS"; then
22401    pkg_cv_DGA_CFLAGS="$DGA_CFLAGS"
22402 elif test -n "$PKG_CONFIG"; then
22403    if test -n "$PKG_CONFIG" && \
22404    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5
22405  ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5
22406  ac_status=$?
22407  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22408  test $ac_status = 0; }; then
22409  pkg_cv_DGA_CFLAGS=`$PKG_CONFIG --cflags "$DGAPROTO" 2>/dev/null`
22410else
22411  pkg_failed=yes
22412fi
22413 else
22414    pkg_failed=untried
22415fi
22416if test -n "$DGA_LIBS"; then
22417    pkg_cv_DGA_LIBS="$DGA_LIBS"
22418 elif test -n "$PKG_CONFIG"; then
22419    if test -n "$PKG_CONFIG" && \
22420    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5
22421  ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5
22422  ac_status=$?
22423  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22424  test $ac_status = 0; }; then
22425  pkg_cv_DGA_LIBS=`$PKG_CONFIG --libs "$DGAPROTO" 2>/dev/null`
22426else
22427  pkg_failed=yes
22428fi
22429 else
22430    pkg_failed=untried
22431fi
22432
22433
22434
22435if test $pkg_failed = yes; then
22436   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22437$as_echo "no" >&6; }
22438
22439if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22440        _pkg_short_errors_supported=yes
22441else
22442        _pkg_short_errors_supported=no
22443fi
22444        if test $_pkg_short_errors_supported = yes; then
22445	        DGA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$DGAPROTO" 2>&1`
22446        else
22447	        DGA_PKG_ERRORS=`$PKG_CONFIG --print-errors "$DGAPROTO" 2>&1`
22448        fi
22449	# Put the nasty error message in config.log where it belongs
22450	echo "$DGA_PKG_ERRORS" >&5
22451
22452	as_fn_error $? "Package requirements ($DGAPROTO) were not met:
22453
22454$DGA_PKG_ERRORS
22455
22456Consider adjusting the PKG_CONFIG_PATH environment variable if you
22457installed software in a non-standard prefix.
22458
22459Alternatively, you may set the environment variables DGA_CFLAGS
22460and DGA_LIBS to avoid the need to call pkg-config.
22461See the pkg-config man page for more details." "$LINENO" 5
22462elif test $pkg_failed = untried; then
22463     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22464$as_echo "no" >&6; }
22465	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22466$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22467as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
22468is in your PATH or set the PKG_CONFIG environment variable to the full
22469path to pkg-config.
22470
22471Alternatively, you may set the environment variables DGA_CFLAGS
22472and DGA_LIBS to avoid the need to call pkg-config.
22473See the pkg-config man page for more details.
22474
22475To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22476See \`config.log' for more details" "$LINENO" 5; }
22477else
22478	DGA_CFLAGS=$pkg_cv_DGA_CFLAGS
22479	DGA_LIBS=$pkg_cv_DGA_LIBS
22480        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22481$as_echo "yes" >&6; }
22482
22483fi
22484
22485$as_echo "#define DGA 1" >>confdefs.h
22486
22487
22488$as_echo "#define XFreeXDGA 1" >>confdefs.h
22489
22490	fi
22491
22492	if test "x$XF86VIDMODE" = xauto; then
22493
22494pkg_failed=no
22495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VIDMODE" >&5
22496$as_echo_n "checking for XF86VIDMODE... " >&6; }
22497
22498if test -n "$XF86VIDMODE_CFLAGS"; then
22499    pkg_cv_XF86VIDMODE_CFLAGS="$XF86VIDMODE_CFLAGS"
22500 elif test -n "$PKG_CONFIG"; then
22501    if test -n "$PKG_CONFIG" && \
22502    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$VIDMODEPROTO\""; } >&5
22503  ($PKG_CONFIG --exists --print-errors "$VIDMODEPROTO") 2>&5
22504  ac_status=$?
22505  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22506  test $ac_status = 0; }; then
22507  pkg_cv_XF86VIDMODE_CFLAGS=`$PKG_CONFIG --cflags "$VIDMODEPROTO" 2>/dev/null`
22508else
22509  pkg_failed=yes
22510fi
22511 else
22512    pkg_failed=untried
22513fi
22514if test -n "$XF86VIDMODE_LIBS"; then
22515    pkg_cv_XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS"
22516 elif test -n "$PKG_CONFIG"; then
22517    if test -n "$PKG_CONFIG" && \
22518    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$VIDMODEPROTO\""; } >&5
22519  ($PKG_CONFIG --exists --print-errors "$VIDMODEPROTO") 2>&5
22520  ac_status=$?
22521  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22522  test $ac_status = 0; }; then
22523  pkg_cv_XF86VIDMODE_LIBS=`$PKG_CONFIG --libs "$VIDMODEPROTO" 2>/dev/null`
22524else
22525  pkg_failed=yes
22526fi
22527 else
22528    pkg_failed=untried
22529fi
22530
22531
22532
22533if test $pkg_failed = yes; then
22534   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22535$as_echo "no" >&6; }
22536
22537if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22538        _pkg_short_errors_supported=yes
22539else
22540        _pkg_short_errors_supported=no
22541fi
22542        if test $_pkg_short_errors_supported = yes; then
22543	        XF86VIDMODE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$VIDMODEPROTO" 2>&1`
22544        else
22545	        XF86VIDMODE_PKG_ERRORS=`$PKG_CONFIG --print-errors "$VIDMODEPROTO" 2>&1`
22546        fi
22547	# Put the nasty error message in config.log where it belongs
22548	echo "$XF86VIDMODE_PKG_ERRORS" >&5
22549
22550	XF86VIDMODE=no
22551elif test $pkg_failed = untried; then
22552     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22553$as_echo "no" >&6; }
22554	XF86VIDMODE=no
22555else
22556	XF86VIDMODE_CFLAGS=$pkg_cv_XF86VIDMODE_CFLAGS
22557	XF86VIDMODE_LIBS=$pkg_cv_XF86VIDMODE_LIBS
22558        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22559$as_echo "yes" >&6; }
22560	XF86VIDMODE=yes
22561fi
22562	fi
22563	if test "x$XF86VIDMODE" = xyes; then
22564		XORG_MODULES="$XORG_MODULES $VIDMODEPROTO"
22565
22566pkg_failed=no
22567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VIDMODE" >&5
22568$as_echo_n "checking for XF86VIDMODE... " >&6; }
22569
22570if test -n "$XF86VIDMODE_CFLAGS"; then
22571    pkg_cv_XF86VIDMODE_CFLAGS="$XF86VIDMODE_CFLAGS"
22572 elif test -n "$PKG_CONFIG"; then
22573    if test -n "$PKG_CONFIG" && \
22574    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$VIDMODEPROTO\""; } >&5
22575  ($PKG_CONFIG --exists --print-errors "$VIDMODEPROTO") 2>&5
22576  ac_status=$?
22577  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22578  test $ac_status = 0; }; then
22579  pkg_cv_XF86VIDMODE_CFLAGS=`$PKG_CONFIG --cflags "$VIDMODEPROTO" 2>/dev/null`
22580else
22581  pkg_failed=yes
22582fi
22583 else
22584    pkg_failed=untried
22585fi
22586if test -n "$XF86VIDMODE_LIBS"; then
22587    pkg_cv_XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS"
22588 elif test -n "$PKG_CONFIG"; then
22589    if test -n "$PKG_CONFIG" && \
22590    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$VIDMODEPROTO\""; } >&5
22591  ($PKG_CONFIG --exists --print-errors "$VIDMODEPROTO") 2>&5
22592  ac_status=$?
22593  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22594  test $ac_status = 0; }; then
22595  pkg_cv_XF86VIDMODE_LIBS=`$PKG_CONFIG --libs "$VIDMODEPROTO" 2>/dev/null`
22596else
22597  pkg_failed=yes
22598fi
22599 else
22600    pkg_failed=untried
22601fi
22602
22603
22604
22605if test $pkg_failed = yes; then
22606   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22607$as_echo "no" >&6; }
22608
22609if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22610        _pkg_short_errors_supported=yes
22611else
22612        _pkg_short_errors_supported=no
22613fi
22614        if test $_pkg_short_errors_supported = yes; then
22615	        XF86VIDMODE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$VIDMODEPROTO" 2>&1`
22616        else
22617	        XF86VIDMODE_PKG_ERRORS=`$PKG_CONFIG --print-errors "$VIDMODEPROTO" 2>&1`
22618        fi
22619	# Put the nasty error message in config.log where it belongs
22620	echo "$XF86VIDMODE_PKG_ERRORS" >&5
22621
22622	as_fn_error $? "Package requirements ($VIDMODEPROTO) were not met:
22623
22624$XF86VIDMODE_PKG_ERRORS
22625
22626Consider adjusting the PKG_CONFIG_PATH environment variable if you
22627installed software in a non-standard prefix.
22628
22629Alternatively, you may set the environment variables XF86VIDMODE_CFLAGS
22630and XF86VIDMODE_LIBS to avoid the need to call pkg-config.
22631See the pkg-config man page for more details." "$LINENO" 5
22632elif test $pkg_failed = untried; then
22633     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22634$as_echo "no" >&6; }
22635	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22636$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22637as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
22638is in your PATH or set the PKG_CONFIG environment variable to the full
22639path to pkg-config.
22640
22641Alternatively, you may set the environment variables XF86VIDMODE_CFLAGS
22642and XF86VIDMODE_LIBS to avoid the need to call pkg-config.
22643See the pkg-config man page for more details.
22644
22645To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22646See \`config.log' for more details" "$LINENO" 5; }
22647else
22648	XF86VIDMODE_CFLAGS=$pkg_cv_XF86VIDMODE_CFLAGS
22649	XF86VIDMODE_LIBS=$pkg_cv_XF86VIDMODE_LIBS
22650        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22651$as_echo "yes" >&6; }
22652
22653fi
22654
22655$as_echo "#define XF86VIDMODE 1" >>confdefs.h
22656
22657	fi
22658
22659	if test -n "$XORG_MODULES"; then
22660
22661pkg_failed=no
22662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG_MODULES" >&5
22663$as_echo_n "checking for XORG_MODULES... " >&6; }
22664
22665if test -n "$XORG_MODULES_CFLAGS"; then
22666    pkg_cv_XORG_MODULES_CFLAGS="$XORG_MODULES_CFLAGS"
22667 elif test -n "$PKG_CONFIG"; then
22668    if test -n "$PKG_CONFIG" && \
22669    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XORG_MODULES\""; } >&5
22670  ($PKG_CONFIG --exists --print-errors "$XORG_MODULES") 2>&5
22671  ac_status=$?
22672  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22673  test $ac_status = 0; }; then
22674  pkg_cv_XORG_MODULES_CFLAGS=`$PKG_CONFIG --cflags "$XORG_MODULES" 2>/dev/null`
22675else
22676  pkg_failed=yes
22677fi
22678 else
22679    pkg_failed=untried
22680fi
22681if test -n "$XORG_MODULES_LIBS"; then
22682    pkg_cv_XORG_MODULES_LIBS="$XORG_MODULES_LIBS"
22683 elif test -n "$PKG_CONFIG"; then
22684    if test -n "$PKG_CONFIG" && \
22685    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XORG_MODULES\""; } >&5
22686  ($PKG_CONFIG --exists --print-errors "$XORG_MODULES") 2>&5
22687  ac_status=$?
22688  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22689  test $ac_status = 0; }; then
22690  pkg_cv_XORG_MODULES_LIBS=`$PKG_CONFIG --libs "$XORG_MODULES" 2>/dev/null`
22691else
22692  pkg_failed=yes
22693fi
22694 else
22695    pkg_failed=untried
22696fi
22697
22698
22699
22700if test $pkg_failed = yes; then
22701   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22702$as_echo "no" >&6; }
22703
22704if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22705        _pkg_short_errors_supported=yes
22706else
22707        _pkg_short_errors_supported=no
22708fi
22709        if test $_pkg_short_errors_supported = yes; then
22710	        XORG_MODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$XORG_MODULES" 2>&1`
22711        else
22712	        XORG_MODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors "$XORG_MODULES" 2>&1`
22713        fi
22714	# Put the nasty error message in config.log where it belongs
22715	echo "$XORG_MODULES_PKG_ERRORS" >&5
22716
22717	as_fn_error $? "Package requirements ($XORG_MODULES) were not met:
22718
22719$XORG_MODULES_PKG_ERRORS
22720
22721Consider adjusting the PKG_CONFIG_PATH environment variable if you
22722installed software in a non-standard prefix.
22723
22724Alternatively, you may set the environment variables XORG_MODULES_CFLAGS
22725and XORG_MODULES_LIBS to avoid the need to call pkg-config.
22726See the pkg-config man page for more details." "$LINENO" 5
22727elif test $pkg_failed = untried; then
22728     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22729$as_echo "no" >&6; }
22730	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22731$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22732as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
22733is in your PATH or set the PKG_CONFIG environment variable to the full
22734path to pkg-config.
22735
22736Alternatively, you may set the environment variables XORG_MODULES_CFLAGS
22737and XORG_MODULES_LIBS to avoid the need to call pkg-config.
22738See the pkg-config man page for more details.
22739
22740To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22741See \`config.log' for more details" "$LINENO" 5; }
22742else
22743	XORG_MODULES_CFLAGS=$pkg_cv_XORG_MODULES_CFLAGS
22744	XORG_MODULES_LIBS=$pkg_cv_XORG_MODULES_LIBS
22745        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22746$as_echo "yes" >&6; }
22747
22748fi
22749	        XORG_CFLAGS="$XORG_CFLAGS $XORG_MODULES_CFLAGS"
22750	        XORG_SYS_LIBS="$XORG_SYS_LIBS $XORG_MODULES_LIBS"
22751	fi
22752
22753
22754
22755
22756
22757
22758
22759	# Extract the first word of "perl", so it can be a program name with args.
22760set dummy perl; ac_word=$2
22761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22762$as_echo_n "checking for $ac_word... " >&6; }
22763if ${ac_cv_path_PERL+:} false; then :
22764  $as_echo_n "(cached) " >&6
22765else
22766  case $PERL in
22767  [\\/]* | ?:[\\/]*)
22768  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
22769  ;;
22770  *)
22771  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22772for as_dir in $PATH
22773do
22774  IFS=$as_save_IFS
22775  test -z "$as_dir" && as_dir=.
22776    for ac_exec_ext in '' $ac_executable_extensions; do
22777  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22778    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
22779    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22780    break 2
22781  fi
22782done
22783  done
22784IFS=$as_save_IFS
22785
22786  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
22787  ;;
22788esac
22789fi
22790PERL=$ac_cv_path_PERL
22791if test -n "$PERL"; then
22792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
22793$as_echo "$PERL" >&6; }
22794else
22795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22796$as_echo "no" >&6; }
22797fi
22798
22799
22800		if test "x$PERL" = xno; then
22801		as_fn_error $? "Perl is required to build the XFree86/Xorg DDX." "$LINENO" 5
22802	fi
22803
22804
22805
22806
22807		XF86CONFIGFILE="xorg.conf"
22808	XF86CONFIGDIR="xorg.conf.d"
22809
22810	CONFIGFILE="$sysconfdir/$XF86CONFIGFILE"
22811	LOGPREFIX="$logdir/Xorg."
22812
22813$as_echo "#define XORG_SERVER 1" >>confdefs.h
22814
22815
22816$as_echo "#define XORGSERVER 1" >>confdefs.h
22817
22818
22819$as_echo "#define XFree86Server 1" >>confdefs.h
22820
22821
22822$as_echo "#define XFree86LOADER 1" >>confdefs.h
22823
22824
22825cat >>confdefs.h <<_ACEOF
22826#define XORG_VERSION_CURRENT $VENDOR_RELEASE
22827_ACEOF
22828
22829
22830$as_echo "#define NEED_XF86_TYPES 1" >>confdefs.h
22831
22832
22833$as_echo "#define NEED_XF86_PROTOTYPES 1" >>confdefs.h
22834
22835
22836$as_echo "#define __XSERVERNAME__ \"Xorg\"" >>confdefs.h
22837
22838
22839  prefix_NONE=
22840  exec_prefix_NONE=
22841  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
22842  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
22843  eval ac_define_dir="\"$XF86CONFIGFILE\""
22844  eval ac_define_dir="\"$ac_define_dir\""
22845  __XCONFIGFILE__="$ac_define_dir"
22846
22847
22848cat >>confdefs.h <<_ACEOF
22849#define __XCONFIGFILE__ "$ac_define_dir"
22850_ACEOF
22851
22852  test "$prefix_NONE" && prefix=NONE
22853  test "$exec_prefix_NONE" && exec_prefix=NONE
22854
22855
22856  prefix_NONE=
22857  exec_prefix_NONE=
22858  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
22859  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
22860  eval ac_define_dir="\"$XF86CONFIGFILE\""
22861  eval ac_define_dir="\"$ac_define_dir\""
22862  XF86CONFIGFILE="$ac_define_dir"
22863
22864
22865cat >>confdefs.h <<_ACEOF
22866#define XF86CONFIGFILE "$ac_define_dir"
22867_ACEOF
22868
22869  test "$prefix_NONE" && prefix=NONE
22870  test "$exec_prefix_NONE" && exec_prefix=NONE
22871
22872
22873  prefix_NONE=
22874  exec_prefix_NONE=
22875  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
22876  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
22877  eval ac_define_dir="\"$XF86CONFIGDIR\""
22878  eval ac_define_dir="\"$ac_define_dir\""
22879  __XCONFIGDIR__="$ac_define_dir"
22880
22881
22882cat >>confdefs.h <<_ACEOF
22883#define __XCONFIGDIR__ "$ac_define_dir"
22884_ACEOF
22885
22886  test "$prefix_NONE" && prefix=NONE
22887  test "$exec_prefix_NONE" && exec_prefix=NONE
22888
22889
22890  prefix_NONE=
22891  exec_prefix_NONE=
22892  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
22893  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
22894  eval ac_define_dir="\"$moduledir\""
22895  eval ac_define_dir="\"$ac_define_dir\""
22896  DEFAULT_MODULE_PATH="$ac_define_dir"
22897
22898
22899cat >>confdefs.h <<_ACEOF
22900#define DEFAULT_MODULE_PATH "$ac_define_dir"
22901_ACEOF
22902
22903  test "$prefix_NONE" && prefix=NONE
22904  test "$exec_prefix_NONE" && exec_prefix=NONE
22905
22906
22907  prefix_NONE=
22908  exec_prefix_NONE=
22909  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
22910  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
22911  eval ac_define_dir="\"$libdir\""
22912  eval ac_define_dir="\"$ac_define_dir\""
22913  DEFAULT_LIBRARY_PATH="$ac_define_dir"
22914
22915
22916cat >>confdefs.h <<_ACEOF
22917#define DEFAULT_LIBRARY_PATH "$ac_define_dir"
22918_ACEOF
22919
22920  test "$prefix_NONE" && prefix=NONE
22921  test "$exec_prefix_NONE" && exec_prefix=NONE
22922
22923
22924  prefix_NONE=
22925  exec_prefix_NONE=
22926  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
22927  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
22928  eval ac_define_dir="\"$LOGPREFIX\""
22929  eval ac_define_dir="\"$ac_define_dir\""
22930  DEFAULT_LOGPREFIX="$ac_define_dir"
22931
22932
22933cat >>confdefs.h <<_ACEOF
22934#define DEFAULT_LOGPREFIX "$ac_define_dir"
22935_ACEOF
22936
22937  test "$prefix_NONE" && prefix=NONE
22938  test "$exec_prefix_NONE" && exec_prefix=NONE
22939
22940
22941cat >>confdefs.h <<_ACEOF
22942#define __VENDORDWEBSUPPORT__ "$VENDOR_WEB"
22943_ACEOF
22944
22945
22946$as_echo "#define XSERVER_LIBPCIACCESS 1" >>confdefs.h
22947
22948	if test "x$VGAHW" = xyes; then
22949
22950$as_echo "#define WITH_VGAHW 1" >>confdefs.h
22951
22952	fi
22953
22954	driverdir="$moduledir/drivers"
22955
22956
22957	sdkdir="$includedir/xorg"
22958	extdir="$includedir/X11/extensions"
22959	sysconfigdir="$datadir/X11/$XF86CONFIGDIR"
22960
22961
22962
22963
22964
22965	# stuff the ABI versions into the pc file too
22966	extract_abi() {
22967	    grep ^.define.*${1}_VERSION ${srcdir}/hw/xfree86/common/xf86Module.h | tr '(),' '  .' | awk '{ print $4$5 }'
22968	}
22969	abi_ansic=`extract_abi ANSIC`
22970	abi_videodrv=`extract_abi VIDEODRV`
22971	abi_xinput=`extract_abi XINPUT`
22972	abi_extension=`extract_abi EXTENSION`
22973
22974
22975
22976
22977fi
22978 if test "x$XORG" = xyes; then
22979  XORG_TRUE=
22980  XORG_FALSE='#'
22981else
22982  XORG_TRUE='#'
22983  XORG_FALSE=
22984fi
22985
22986 if test "x$xorg_bus_linuxpci" = xyes; then
22987  XORG_BUS_LINUXPCI_TRUE=
22988  XORG_BUS_LINUXPCI_FALSE='#'
22989else
22990  XORG_BUS_LINUXPCI_TRUE='#'
22991  XORG_BUS_LINUXPCI_FALSE=
22992fi
22993
22994 if test "x$xorg_bus_bsdpci" = xyes; then
22995  XORG_BUS_BSDPCI_TRUE=
22996  XORG_BUS_BSDPCI_FALSE='#'
22997else
22998  XORG_BUS_BSDPCI_TRUE='#'
22999  XORG_BUS_BSDPCI_FALSE=
23000fi
23001
23002 if test "x$xorg_bus_sparc" = xyes; then
23003  XORG_BUS_SPARC_TRUE=
23004  XORG_BUS_SPARC_FALSE='#'
23005else
23006  XORG_BUS_SPARC_TRUE='#'
23007  XORG_BUS_SPARC_FALSE=
23008fi
23009
23010 if test "x$linux_ia64" = xyes; then
23011  LINUX_IA64_TRUE=
23012  LINUX_IA64_FALSE='#'
23013else
23014  LINUX_IA64_TRUE='#'
23015  LINUX_IA64_FALSE=
23016fi
23017
23018 if test "x$linux_alpha" = xyes; then
23019  LINUX_ALPHA_TRUE=
23020  LINUX_ALPHA_FALSE='#'
23021else
23022  LINUX_ALPHA_TRUE='#'
23023  LINUX_ALPHA_FALSE=
23024fi
23025
23026 if test "x$linux_acpi" = xyes; then
23027  LNXACPI_TRUE=
23028  LNXACPI_FALSE='#'
23029else
23030  LNXACPI_TRUE='#'
23031  LNXACPI_FALSE=
23032fi
23033
23034 if test "x$solaris_asm_inline" = xyes; then
23035  SOLARIS_ASM_INLINE_TRUE=
23036  SOLARIS_ASM_INLINE_FALSE='#'
23037else
23038  SOLARIS_ASM_INLINE_TRUE='#'
23039  SOLARIS_ASM_INLINE_FALSE=
23040fi
23041
23042 if test "x$solaris_vt" = xyes; then
23043  SOLARIS_VT_TRUE=
23044  SOLARIS_VT_FALSE='#'
23045else
23046  SOLARIS_VT_TRUE='#'
23047  SOLARIS_VT_FALSE=
23048fi
23049
23050 if test "x$DGA" = xyes; then
23051  DGA_TRUE=
23052  DGA_FALSE='#'
23053else
23054  DGA_TRUE='#'
23055  DGA_FALSE=
23056fi
23057
23058 if test "x$XF86VIDMODE" = xyes; then
23059  XF86VIDMODE_TRUE=
23060  XF86VIDMODE_FALSE='#'
23061else
23062  XF86VIDMODE_TRUE='#'
23063  XF86VIDMODE_FALSE=
23064fi
23065
23066
23067
23068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build XWin DDX" >&5
23069$as_echo_n "checking whether to build XWin DDX... " >&6; }
23070if test "x$XWIN" = xauto; then
23071	case $host_os in
23072		cygwin*) XWIN="yes" ;;
23073		mingw*) XWIN="yes" ;;
23074		*) XWIN="no" ;;
23075	esac
23076fi
23077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XWIN" >&5
23078$as_echo "$XWIN" >&6; }
23079
23080if test "x$XWIN" = xyes; then
23081
23082  prefix_NONE=
23083  exec_prefix_NONE=
23084  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23085  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23086  eval ac_define_dir="\"$sysconfdir\""
23087  eval ac_define_dir="\"$ac_define_dir\""
23088  SYSCONFDIR="$ac_define_dir"
23089
23090
23091cat >>confdefs.h <<_ACEOF
23092#define SYSCONFDIR "$ac_define_dir"
23093_ACEOF
23094
23095  test "$prefix_NONE" && prefix=NONE
23096  test "$exec_prefix_NONE" && exec_prefix=NONE
23097
23098
23099  prefix_NONE=
23100  exec_prefix_NONE=
23101  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23102  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23103  eval ac_define_dir="\"$logdir\""
23104  eval ac_define_dir="\"$ac_define_dir\""
23105  DEFAULT_LOGDIR="$ac_define_dir"
23106
23107
23108cat >>confdefs.h <<_ACEOF
23109#define DEFAULT_LOGDIR "$ac_define_dir"
23110_ACEOF
23111
23112  test "$prefix_NONE" && prefix=NONE
23113  test "$exec_prefix_NONE" && exec_prefix=NONE
23114
23115
23116cat >>confdefs.h <<_ACEOF
23117#define XORG_VERSION_CURRENT $VENDOR_RELEASE
23118_ACEOF
23119
23120
23121cat >>confdefs.h <<_ACEOF
23122#define __VENDORDWEBSUPPORT__ "$VENDOR_WEB"
23123_ACEOF
23124
23125	if test -n "$ac_tool_prefix"; then
23126  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
23127set dummy ${ac_tool_prefix}windres; ac_word=$2
23128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23129$as_echo_n "checking for $ac_word... " >&6; }
23130if ${ac_cv_prog_WINDRES+:} false; then :
23131  $as_echo_n "(cached) " >&6
23132else
23133  if test -n "$WINDRES"; then
23134  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
23135else
23136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23137for as_dir in $PATH
23138do
23139  IFS=$as_save_IFS
23140  test -z "$as_dir" && as_dir=.
23141    for ac_exec_ext in '' $ac_executable_extensions; do
23142  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23143    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
23144    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23145    break 2
23146  fi
23147done
23148  done
23149IFS=$as_save_IFS
23150
23151fi
23152fi
23153WINDRES=$ac_cv_prog_WINDRES
23154if test -n "$WINDRES"; then
23155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
23156$as_echo "$WINDRES" >&6; }
23157else
23158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23159$as_echo "no" >&6; }
23160fi
23161
23162
23163fi
23164if test -z "$ac_cv_prog_WINDRES"; then
23165  ac_ct_WINDRES=$WINDRES
23166  # Extract the first word of "windres", so it can be a program name with args.
23167set dummy windres; ac_word=$2
23168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23169$as_echo_n "checking for $ac_word... " >&6; }
23170if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
23171  $as_echo_n "(cached) " >&6
23172else
23173  if test -n "$ac_ct_WINDRES"; then
23174  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
23175else
23176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23177for as_dir in $PATH
23178do
23179  IFS=$as_save_IFS
23180  test -z "$as_dir" && as_dir=.
23181    for ac_exec_ext in '' $ac_executable_extensions; do
23182  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23183    ac_cv_prog_ac_ct_WINDRES="windres"
23184    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23185    break 2
23186  fi
23187done
23188  done
23189IFS=$as_save_IFS
23190
23191fi
23192fi
23193ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
23194if test -n "$ac_ct_WINDRES"; then
23195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
23196$as_echo "$ac_ct_WINDRES" >&6; }
23197else
23198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23199$as_echo "no" >&6; }
23200fi
23201
23202  if test "x$ac_ct_WINDRES" = x; then
23203    WINDRES=""
23204  else
23205    case $cross_compiling:$ac_tool_warned in
23206yes:)
23207{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23208$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23209ac_tool_warned=yes ;;
23210esac
23211    WINDRES=$ac_ct_WINDRES
23212  fi
23213else
23214  WINDRES="$ac_cv_prog_WINDRES"
23215fi
23216
23217
23218
23219pkg_failed=no
23220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XWINMODULES" >&5
23221$as_echo_n "checking for XWINMODULES... " >&6; }
23222
23223if test -n "$XWINMODULES_CFLAGS"; then
23224    pkg_cv_XWINMODULES_CFLAGS="$XWINMODULES_CFLAGS"
23225 elif test -n "$PKG_CONFIG"; then
23226    if test -n "$PKG_CONFIG" && \
23227    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xdmcp xau\""; } >&5
23228  ($PKG_CONFIG --exists --print-errors "x11 xdmcp xau") 2>&5
23229  ac_status=$?
23230  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23231  test $ac_status = 0; }; then
23232  pkg_cv_XWINMODULES_CFLAGS=`$PKG_CONFIG --cflags "x11 xdmcp xau" 2>/dev/null`
23233else
23234  pkg_failed=yes
23235fi
23236 else
23237    pkg_failed=untried
23238fi
23239if test -n "$XWINMODULES_LIBS"; then
23240    pkg_cv_XWINMODULES_LIBS="$XWINMODULES_LIBS"
23241 elif test -n "$PKG_CONFIG"; then
23242    if test -n "$PKG_CONFIG" && \
23243    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xdmcp xau\""; } >&5
23244  ($PKG_CONFIG --exists --print-errors "x11 xdmcp xau") 2>&5
23245  ac_status=$?
23246  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23247  test $ac_status = 0; }; then
23248  pkg_cv_XWINMODULES_LIBS=`$PKG_CONFIG --libs "x11 xdmcp xau" 2>/dev/null`
23249else
23250  pkg_failed=yes
23251fi
23252 else
23253    pkg_failed=untried
23254fi
23255
23256
23257
23258if test $pkg_failed = yes; then
23259   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23260$as_echo "no" >&6; }
23261
23262if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23263        _pkg_short_errors_supported=yes
23264else
23265        _pkg_short_errors_supported=no
23266fi
23267        if test $_pkg_short_errors_supported = yes; then
23268	        XWINMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xdmcp xau" 2>&1`
23269        else
23270	        XWINMODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xdmcp xau" 2>&1`
23271        fi
23272	# Put the nasty error message in config.log where it belongs
23273	echo "$XWINMODULES_PKG_ERRORS" >&5
23274
23275	as_fn_error $? "Package requirements (x11 xdmcp xau) were not met:
23276
23277$XWINMODULES_PKG_ERRORS
23278
23279Consider adjusting the PKG_CONFIG_PATH environment variable if you
23280installed software in a non-standard prefix.
23281
23282Alternatively, you may set the environment variables XWINMODULES_CFLAGS
23283and XWINMODULES_LIBS to avoid the need to call pkg-config.
23284See the pkg-config man page for more details." "$LINENO" 5
23285elif test $pkg_failed = untried; then
23286     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23287$as_echo "no" >&6; }
23288	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23289$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23290as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
23291is in your PATH or set the PKG_CONFIG environment variable to the full
23292path to pkg-config.
23293
23294Alternatively, you may set the environment variables XWINMODULES_CFLAGS
23295and XWINMODULES_LIBS to avoid the need to call pkg-config.
23296See the pkg-config man page for more details.
23297
23298To get pkg-config, see <http://pkg-config.freedesktop.org/>.
23299See \`config.log' for more details" "$LINENO" 5; }
23300else
23301	XWINMODULES_CFLAGS=$pkg_cv_XWINMODULES_CFLAGS
23302	XWINMODULES_LIBS=$pkg_cv_XWINMODULES_LIBS
23303        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23304$as_echo "yes" >&6; }
23305
23306fi
23307
23308	if test "x$WINDOWSWM" = xauto; then
23309		if test -n "$PKG_CONFIG" && \
23310    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WINDOWSWMPROTO\""; } >&5
23311  ($PKG_CONFIG --exists --print-errors "$WINDOWSWMPROTO") 2>&5
23312  ac_status=$?
23313  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23314  test $ac_status = 0; }; then
23315  WINDOWSWM=yes
23316else
23317  WINDOWSWM=no
23318fi
23319	fi
23320	if test "x$WINDOWSWM" = xyes ; then
23321
23322pkg_failed=no
23323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WINDOWSWM" >&5
23324$as_echo_n "checking for WINDOWSWM... " >&6; }
23325
23326if test -n "$WINDOWSWM_CFLAGS"; then
23327    pkg_cv_WINDOWSWM_CFLAGS="$WINDOWSWM_CFLAGS"
23328 elif test -n "$PKG_CONFIG"; then
23329    if test -n "$PKG_CONFIG" && \
23330    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WINDOWSWMPROTO\""; } >&5
23331  ($PKG_CONFIG --exists --print-errors "$WINDOWSWMPROTO") 2>&5
23332  ac_status=$?
23333  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23334  test $ac_status = 0; }; then
23335  pkg_cv_WINDOWSWM_CFLAGS=`$PKG_CONFIG --cflags "$WINDOWSWMPROTO" 2>/dev/null`
23336else
23337  pkg_failed=yes
23338fi
23339 else
23340    pkg_failed=untried
23341fi
23342if test -n "$WINDOWSWM_LIBS"; then
23343    pkg_cv_WINDOWSWM_LIBS="$WINDOWSWM_LIBS"
23344 elif test -n "$PKG_CONFIG"; then
23345    if test -n "$PKG_CONFIG" && \
23346    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WINDOWSWMPROTO\""; } >&5
23347  ($PKG_CONFIG --exists --print-errors "$WINDOWSWMPROTO") 2>&5
23348  ac_status=$?
23349  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23350  test $ac_status = 0; }; then
23351  pkg_cv_WINDOWSWM_LIBS=`$PKG_CONFIG --libs "$WINDOWSWMPROTO" 2>/dev/null`
23352else
23353  pkg_failed=yes
23354fi
23355 else
23356    pkg_failed=untried
23357fi
23358
23359
23360
23361if test $pkg_failed = yes; then
23362   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23363$as_echo "no" >&6; }
23364
23365if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23366        _pkg_short_errors_supported=yes
23367else
23368        _pkg_short_errors_supported=no
23369fi
23370        if test $_pkg_short_errors_supported = yes; then
23371	        WINDOWSWM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$WINDOWSWMPROTO" 2>&1`
23372        else
23373	        WINDOWSWM_PKG_ERRORS=`$PKG_CONFIG --print-errors "$WINDOWSWMPROTO" 2>&1`
23374        fi
23375	# Put the nasty error message in config.log where it belongs
23376	echo "$WINDOWSWM_PKG_ERRORS" >&5
23377
23378	as_fn_error $? "Package requirements ($WINDOWSWMPROTO) were not met:
23379
23380$WINDOWSWM_PKG_ERRORS
23381
23382Consider adjusting the PKG_CONFIG_PATH environment variable if you
23383installed software in a non-standard prefix.
23384
23385Alternatively, you may set the environment variables WINDOWSWM_CFLAGS
23386and WINDOWSWM_LIBS to avoid the need to call pkg-config.
23387See the pkg-config man page for more details." "$LINENO" 5
23388elif test $pkg_failed = untried; then
23389     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23390$as_echo "no" >&6; }
23391	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23392$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23393as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
23394is in your PATH or set the PKG_CONFIG environment variable to the full
23395path to pkg-config.
23396
23397Alternatively, you may set the environment variables WINDOWSWM_CFLAGS
23398and WINDOWSWM_LIBS to avoid the need to call pkg-config.
23399See the pkg-config man page for more details.
23400
23401To get pkg-config, see <http://pkg-config.freedesktop.org/>.
23402See \`config.log' for more details" "$LINENO" 5; }
23403else
23404	WINDOWSWM_CFLAGS=$pkg_cv_WINDOWSWM_CFLAGS
23405	WINDOWSWM_LIBS=$pkg_cv_WINDOWSWM_LIBS
23406        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23407$as_echo "yes" >&6; }
23408
23409fi
23410		XWINMODULES_CFLAGS="$XWINMODULES_CFLAGS $WINDOWSWM_CFLAGS"
23411
23412$as_echo "#define ROOTLESS 1" >>confdefs.h
23413
23414	fi
23415
23416	case $host_os in
23417		cygwin*)
23418			XWIN_SERVER_NAME=XWin
23419
23420$as_echo "#define HAS_DEVWINDOWS 1" >>confdefs.h
23421
23422			;;
23423		mingw*)
23424			XWIN_SERVER_NAME=Xming
23425
23426$as_echo "#define RELOCATE_PROJECTROOT 1" >>confdefs.h
23427
23428
23429$as_echo "#define HAS_WINSOCK 1" >>confdefs.h
23430
23431			XWIN_SYS_LIBS=-lwinsock2
23432			;;
23433	esac
23434	XWIN_LIBS="$FB_LIB $MI_LIB $FIXES_LIB $XEXT_LIB $RANDR_LIB $RENDER_LIB $DBE_LIB $RECORD_LIB $GLX_LIBS $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB $DAMAGE_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $OS_LIB"
23435	XWIN_SYS_LIBS="$XWIN_SYS_LIBS $XWINMODULES_LIBS"
23436
23437
23438
23439
23440	if test "x$DEBUGGING" = xyes; then
23441
23442$as_echo "#define CYGDEBUG 1" >>confdefs.h
23443
23444
23445$as_echo "#define CYGWINDOWING_DEBUG 1" >>confdefs.h
23446
23447
23448$as_echo "#define CYGMULTIWINDOW_DEBUG 1" >>confdefs.h
23449
23450	fi
23451
23452
23453$as_echo "#define DDXOSVERRORF 1" >>confdefs.h
23454
23455
23456$as_echo "#define DDXBEFORERESET 1" >>confdefs.h
23457
23458fi
23459 if test "x$XWIN" = xyes; then
23460  XWIN_TRUE=
23461  XWIN_FALSE='#'
23462else
23463  XWIN_TRUE='#'
23464  XWIN_FALSE=
23465fi
23466
23467 if test "x$XWIN" = xyes; then
23468  XWIN_MULTIWINDOW_TRUE=
23469  XWIN_MULTIWINDOW_FALSE='#'
23470else
23471  XWIN_MULTIWINDOW_TRUE='#'
23472  XWIN_MULTIWINDOW_FALSE=
23473fi
23474
23475 if test "x$XWIN" = xyes && test "x$WINDOWSWM" = xyes; then
23476  XWIN_MULTIWINDOWEXTWM_TRUE=
23477  XWIN_MULTIWINDOWEXTWM_FALSE='#'
23478else
23479  XWIN_MULTIWINDOWEXTWM_TRUE='#'
23480  XWIN_MULTIWINDOWEXTWM_FALSE=
23481fi
23482
23483 if test "x$XWIN" = xyes; then
23484  XWIN_CLIPBOARD_TRUE=
23485  XWIN_CLIPBOARD_FALSE='#'
23486else
23487  XWIN_CLIPBOARD_TRUE='#'
23488  XWIN_CLIPBOARD_FALSE=
23489fi
23490
23491 if test "x$XWIN" = xyes && false; then
23492  XWIN_GLX_WINDOWS_TRUE=
23493  XWIN_GLX_WINDOWS_FALSE='#'
23494else
23495  XWIN_GLX_WINDOWS_TRUE='#'
23496  XWIN_GLX_WINDOWS_FALSE=
23497fi
23498
23499 if test "x$XWIN" = xyes && false; then
23500  XWIN_NATIVEGDI_TRUE=
23501  XWIN_NATIVEGDI_FALSE='#'
23502else
23503  XWIN_NATIVEGDI_TRUE='#'
23504  XWIN_NATIVEGDI_FALSE=
23505fi
23506
23507 if test "x$XWIN" = xyes && false; then
23508  XWIN_PRIMARYFB_TRUE=
23509  XWIN_PRIMARYFB_FALSE='#'
23510else
23511  XWIN_PRIMARYFB_TRUE='#'
23512  XWIN_PRIMARYFB_FALSE=
23513fi
23514
23515 if test "x$XWIN" = xyes; then
23516  XWIN_RANDR_TRUE=
23517  XWIN_RANDR_FALSE='#'
23518else
23519  XWIN_RANDR_TRUE='#'
23520  XWIN_RANDR_FALSE=
23521fi
23522
23523 if test "x$XWIN" = xyes && test "x$XV" = xyes; then
23524  XWIN_XV_TRUE=
23525  XWIN_XV_FALSE='#'
23526else
23527  XWIN_XV_TRUE='#'
23528  XWIN_XV_FALSE=
23529fi
23530
23531
23532if test "x$XQUARTZ" = xyes; then
23533
23534$as_echo "#define XQUARTZ 1" >>confdefs.h
23535
23536
23537$as_echo "#define ROOTLESS 1" >>confdefs.h
23538
23539
23540	DARWIN_LIBS="$MI_LIB $OS_LIB $DIX_LIB $MAIN_LIB $FB_LIB $FIXES_LIB $XEXT_LIB $DBE_LIB $RECORD_LIB $RANDR_LIB $RENDER_LIB $DAMAGE_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $XPSTUBS_LIB"
23541
23542
23543	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xp_init in -lXplugin" >&5
23544$as_echo_n "checking for xp_init in -lXplugin... " >&6; }
23545if ${ac_cv_lib_Xplugin_xp_init+:} false; then :
23546  $as_echo_n "(cached) " >&6
23547else
23548  ac_check_lib_save_LIBS=$LIBS
23549LIBS="-lXplugin  $LIBS"
23550cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23551/* end confdefs.h.  */
23552
23553/* Override any GCC internal prototype to avoid an error.
23554   Use char because int might match the return type of a GCC
23555   builtin and then its argument prototype would still apply.  */
23556#ifdef __cplusplus
23557extern "C"
23558#endif
23559char xp_init ();
23560int
23561main ()
23562{
23563return xp_init ();
23564  ;
23565  return 0;
23566}
23567_ACEOF
23568if ac_fn_c_try_link "$LINENO"; then :
23569  ac_cv_lib_Xplugin_xp_init=yes
23570else
23571  ac_cv_lib_Xplugin_xp_init=no
23572fi
23573rm -f core conftest.err conftest.$ac_objext \
23574    conftest$ac_exeext conftest.$ac_ext
23575LIBS=$ac_check_lib_save_LIBS
23576fi
23577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xplugin_xp_init" >&5
23578$as_echo "$ac_cv_lib_Xplugin_xp_init" >&6; }
23579if test "x$ac_cv_lib_Xplugin_xp_init" = xyes; then :
23580  :
23581fi
23582
23583
23584	CFLAGS="${CFLAGS} -DROOTLESS_WORKAROUND -DROOTLESS_SAFEALPHA -DNO_ALLOCA"
23585
23586
23587pkg_failed=no
23588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPBPROXY" >&5
23589$as_echo_n "checking for XPBPROXY... " >&6; }
23590
23591if test -n "$XPBPROXY_CFLAGS"; then
23592    pkg_cv_XPBPROXY_CFLAGS="$XPBPROXY_CFLAGS"
23593 elif test -n "$PKG_CONFIG"; then
23594    if test -n "$PKG_CONFIG" && \
23595    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$APPLEWMPROTO \$LIBAPPLEWM xfixes x11\""; } >&5
23596  ($PKG_CONFIG --exists --print-errors "$APPLEWMPROTO $LIBAPPLEWM xfixes x11") 2>&5
23597  ac_status=$?
23598  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23599  test $ac_status = 0; }; then
23600  pkg_cv_XPBPROXY_CFLAGS=`$PKG_CONFIG --cflags "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>/dev/null`
23601else
23602  pkg_failed=yes
23603fi
23604 else
23605    pkg_failed=untried
23606fi
23607if test -n "$XPBPROXY_LIBS"; then
23608    pkg_cv_XPBPROXY_LIBS="$XPBPROXY_LIBS"
23609 elif test -n "$PKG_CONFIG"; then
23610    if test -n "$PKG_CONFIG" && \
23611    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$APPLEWMPROTO \$LIBAPPLEWM xfixes x11\""; } >&5
23612  ($PKG_CONFIG --exists --print-errors "$APPLEWMPROTO $LIBAPPLEWM xfixes x11") 2>&5
23613  ac_status=$?
23614  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23615  test $ac_status = 0; }; then
23616  pkg_cv_XPBPROXY_LIBS=`$PKG_CONFIG --libs "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>/dev/null`
23617else
23618  pkg_failed=yes
23619fi
23620 else
23621    pkg_failed=untried
23622fi
23623
23624
23625
23626if test $pkg_failed = yes; then
23627   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23628$as_echo "no" >&6; }
23629
23630if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23631        _pkg_short_errors_supported=yes
23632else
23633        _pkg_short_errors_supported=no
23634fi
23635        if test $_pkg_short_errors_supported = yes; then
23636	        XPBPROXY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>&1`
23637        else
23638	        XPBPROXY_PKG_ERRORS=`$PKG_CONFIG --print-errors "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>&1`
23639        fi
23640	# Put the nasty error message in config.log where it belongs
23641	echo "$XPBPROXY_PKG_ERRORS" >&5
23642
23643	as_fn_error $? "Package requirements ($APPLEWMPROTO $LIBAPPLEWM xfixes x11) were not met:
23644
23645$XPBPROXY_PKG_ERRORS
23646
23647Consider adjusting the PKG_CONFIG_PATH environment variable if you
23648installed software in a non-standard prefix.
23649
23650Alternatively, you may set the environment variables XPBPROXY_CFLAGS
23651and XPBPROXY_LIBS to avoid the need to call pkg-config.
23652See the pkg-config man page for more details." "$LINENO" 5
23653elif test $pkg_failed = untried; then
23654     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23655$as_echo "no" >&6; }
23656	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23657$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23658as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
23659is in your PATH or set the PKG_CONFIG environment variable to the full
23660path to pkg-config.
23661
23662Alternatively, you may set the environment variables XPBPROXY_CFLAGS
23663and XPBPROXY_LIBS to avoid the need to call pkg-config.
23664See the pkg-config man page for more details.
23665
23666To get pkg-config, see <http://pkg-config.freedesktop.org/>.
23667See \`config.log' for more details" "$LINENO" 5; }
23668else
23669	XPBPROXY_CFLAGS=$pkg_cv_XPBPROXY_CFLAGS
23670	XPBPROXY_LIBS=$pkg_cv_XPBPROXY_LIBS
23671        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23672$as_echo "yes" >&6; }
23673
23674fi
23675
23676        if test "x$XQUARTZ_SPARKLE" = xyes ; then
23677
23678$as_echo "#define XQUARTZ_SPARKLE 1" >>confdefs.h
23679
23680        fi
23681
23682	if test "x$STANDALONE_XPBPROXY" = xyes ; then
23683
23684$as_echo "#define STANDALONE_XPBPROXY 1" >>confdefs.h
23685
23686	fi
23687fi
23688
23689# Support for objc in autotools is minimal and not documented.
23690OBJC='$(CC)'
23691OBJCLD='$(CCLD)'
23692OBJCLINK='$(LINK)'
23693OBJCFLAGS='$(CFLAGS)'
23694
23695
23696
23697
23698# internal, undocumented automake func follows :(
23699
23700depcc="$OBJC" am_compiler_list='gcc3 gcc'
23701
23702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
23703$as_echo_n "checking dependency style of $depcc... " >&6; }
23704if ${am_cv_OBJC_dependencies_compiler_type+:} false; then :
23705  $as_echo_n "(cached) " >&6
23706else
23707  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23708  # We make a subdir and do the tests there.  Otherwise we can end up
23709  # making bogus files that we don't know about and never remove.  For
23710  # instance it was reported that on HP-UX the gcc test will end up
23711  # making a dummy file named `D' -- because `-MD' means `put the output
23712  # in D'.
23713  mkdir conftest.dir
23714  # Copy depcomp to subdir because otherwise we won't find it if we're
23715  # using a relative directory.
23716  cp "$am_depcomp" conftest.dir
23717  cd conftest.dir
23718  # We will build objects and dependencies in a subdirectory because
23719  # it helps to detect inapplicable dependency modes.  For instance
23720  # both Tru64's cc and ICC support -MD to output dependencies as a
23721  # side effect of compilation, but ICC will put the dependencies in
23722  # the current directory while Tru64 will put them in the object
23723  # directory.
23724  mkdir sub
23725
23726  am_cv_OBJC_dependencies_compiler_type=none
23727  if test "$am_compiler_list" = ""; then
23728     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23729  fi
23730  am__universal=false
23731
23732
23733  for depmode in $am_compiler_list; do
23734    # Setup a source with many dependencies, because some compilers
23735    # like to wrap large dependency lists on column 80 (with \), and
23736    # we should not choose a depcomp mode which is confused by this.
23737    #
23738    # We need to recreate these files for each test, as the compiler may
23739    # overwrite some of them when testing with obscure command lines.
23740    # This happens at least with the AIX C compiler.
23741    : > sub/conftest.c
23742    for i in 1 2 3 4 5 6; do
23743      echo '#include "conftst'$i'.h"' >> sub/conftest.c
23744      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23745      # Solaris 8's {/usr,}/bin/sh.
23746      touch sub/conftst$i.h
23747    done
23748    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23749
23750    # We check with `-c' and `-o' for the sake of the "dashmstdout"
23751    # mode.  It turns out that the SunPro C++ compiler does not properly
23752    # handle `-M -o', and we need to detect this.  Also, some Intel
23753    # versions had trouble with output in subdirs
23754    am__obj=sub/conftest.${OBJEXT-o}
23755    am__minus_obj="-o $am__obj"
23756    case $depmode in
23757    gcc)
23758      # This depmode causes a compiler race in universal mode.
23759      test "$am__universal" = false || continue
23760      ;;
23761    nosideeffect)
23762      # after this tag, mechanisms are not by side-effect, so they'll
23763      # only be used when explicitly requested
23764      if test "x$enable_dependency_tracking" = xyes; then
23765	continue
23766      else
23767	break
23768      fi
23769      ;;
23770    msvisualcpp | msvcmsys)
23771      # This compiler won't grok `-c -o', but also, the minuso test has
23772      # not run yet.  These depmodes are late enough in the game, and
23773      # so weak that their functioning should not be impacted.
23774      am__obj=conftest.${OBJEXT-o}
23775      am__minus_obj=
23776      ;;
23777    none) break ;;
23778    esac
23779    if depmode=$depmode \
23780       source=sub/conftest.c object=$am__obj \
23781       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23782       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23783         >/dev/null 2>conftest.err &&
23784       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23785       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23786       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23787       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23788      # icc doesn't choke on unknown options, it will just issue warnings
23789      # or remarks (even with -Werror).  So we grep stderr for any message
23790      # that says an option was ignored or not supported.
23791      # When given -MP, icc 7.0 and 7.1 complain thusly:
23792      #   icc: Command line warning: ignoring option '-M'; no argument required
23793      # The diagnosis changed in icc 8.0:
23794      #   icc: Command line remark: option '-MP' not supported
23795      if (grep 'ignoring option' conftest.err ||
23796          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23797        am_cv_OBJC_dependencies_compiler_type=$depmode
23798        break
23799      fi
23800    fi
23801  done
23802
23803  cd ..
23804  rm -rf conftest.dir
23805else
23806  am_cv_OBJC_dependencies_compiler_type=none
23807fi
23808
23809fi
23810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJC_dependencies_compiler_type" >&5
23811$as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; }
23812OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
23813
23814 if
23815  test "x$enable_dependency_tracking" != xno \
23816  && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
23817  am__fastdepOBJC_TRUE=
23818  am__fastdepOBJC_FALSE='#'
23819else
23820  am__fastdepOBJC_TRUE='#'
23821  am__fastdepOBJC_FALSE=
23822fi
23823
23824
23825 if test "x$XQUARTZ" = xyes; then
23826  XQUARTZ_TRUE=
23827  XQUARTZ_FALSE='#'
23828else
23829  XQUARTZ_TRUE='#'
23830  XQUARTZ_FALSE=
23831fi
23832
23833 if test "x$XQUARTZ_SPARKLE" != "xno"; then
23834  XQUARTZ_SPARKLE_TRUE=
23835  XQUARTZ_SPARKLE_FALSE='#'
23836else
23837  XQUARTZ_SPARKLE_TRUE='#'
23838  XQUARTZ_SPARKLE_FALSE=
23839fi
23840
23841 if test "x$STANDALONE_XPBPROXY" = xyes; then
23842  STANDALONE_XPBPROXY_TRUE=
23843  STANDALONE_XPBPROXY_FALSE='#'
23844else
23845  STANDALONE_XPBPROXY_TRUE='#'
23846  STANDALONE_XPBPROXY_FALSE=
23847fi
23848
23849
23850
23851pkg_failed=no
23852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DMXMODULES" >&5
23853$as_echo_n "checking for DMXMODULES... " >&6; }
23854
23855if test -n "$DMXMODULES_CFLAGS"; then
23856    pkg_cv_DMXMODULES_CFLAGS="$DMXMODULES_CFLAGS"
23857 elif test -n "$PKG_CONFIG"; then
23858    if test -n "$PKG_CONFIG" && \
23859    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmuu \$LIBXEXT x11 xrender xfixes \$LIBXI \$DMXPROTO xau \$XDMCP_MODULES\""; } >&5
23860  ($PKG_CONFIG --exists --print-errors "xmuu $LIBXEXT x11 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES") 2>&5
23861  ac_status=$?
23862  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23863  test $ac_status = 0; }; then
23864  pkg_cv_DMXMODULES_CFLAGS=`$PKG_CONFIG --cflags "xmuu $LIBXEXT x11 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES" 2>/dev/null`
23865else
23866  pkg_failed=yes
23867fi
23868 else
23869    pkg_failed=untried
23870fi
23871if test -n "$DMXMODULES_LIBS"; then
23872    pkg_cv_DMXMODULES_LIBS="$DMXMODULES_LIBS"
23873 elif test -n "$PKG_CONFIG"; then
23874    if test -n "$PKG_CONFIG" && \
23875    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmuu \$LIBXEXT x11 xrender xfixes \$LIBXI \$DMXPROTO xau \$XDMCP_MODULES\""; } >&5
23876  ($PKG_CONFIG --exists --print-errors "xmuu $LIBXEXT x11 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES") 2>&5
23877  ac_status=$?
23878  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23879  test $ac_status = 0; }; then
23880  pkg_cv_DMXMODULES_LIBS=`$PKG_CONFIG --libs "xmuu $LIBXEXT x11 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES" 2>/dev/null`
23881else
23882  pkg_failed=yes
23883fi
23884 else
23885    pkg_failed=untried
23886fi
23887
23888
23889
23890if test $pkg_failed = yes; then
23891   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23892$as_echo "no" >&6; }
23893
23894if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23895        _pkg_short_errors_supported=yes
23896else
23897        _pkg_short_errors_supported=no
23898fi
23899        if test $_pkg_short_errors_supported = yes; then
23900	        DMXMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xmuu $LIBXEXT x11 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES" 2>&1`
23901        else
23902	        DMXMODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors "xmuu $LIBXEXT x11 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES" 2>&1`
23903        fi
23904	# Put the nasty error message in config.log where it belongs
23905	echo "$DMXMODULES_PKG_ERRORS" >&5
23906
23907	have_dmx=no
23908elif test $pkg_failed = untried; then
23909     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23910$as_echo "no" >&6; }
23911	have_dmx=no
23912else
23913	DMXMODULES_CFLAGS=$pkg_cv_DMXMODULES_CFLAGS
23914	DMXMODULES_LIBS=$pkg_cv_DMXMODULES_LIBS
23915        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23916$as_echo "yes" >&6; }
23917
23918pkg_failed=no
23919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDMXCONFIG_DEP" >&5
23920$as_echo_n "checking for XDMXCONFIG_DEP... " >&6; }
23921
23922if test -n "$XDMXCONFIG_DEP_CFLAGS"; then
23923    pkg_cv_XDMXCONFIG_DEP_CFLAGS="$XDMXCONFIG_DEP_CFLAGS"
23924 elif test -n "$PKG_CONFIG"; then
23925    if test -n "$PKG_CONFIG" && \
23926    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt xpm x11\""; } >&5
23927  ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt xpm x11") 2>&5
23928  ac_status=$?
23929  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23930  test $ac_status = 0; }; then
23931  pkg_cv_XDMXCONFIG_DEP_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt xpm x11" 2>/dev/null`
23932else
23933  pkg_failed=yes
23934fi
23935 else
23936    pkg_failed=untried
23937fi
23938if test -n "$XDMXCONFIG_DEP_LIBS"; then
23939    pkg_cv_XDMXCONFIG_DEP_LIBS="$XDMXCONFIG_DEP_LIBS"
23940 elif test -n "$PKG_CONFIG"; then
23941    if test -n "$PKG_CONFIG" && \
23942    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt xpm x11\""; } >&5
23943  ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt xpm x11") 2>&5
23944  ac_status=$?
23945  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23946  test $ac_status = 0; }; then
23947  pkg_cv_XDMXCONFIG_DEP_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt xpm x11" 2>/dev/null`
23948else
23949  pkg_failed=yes
23950fi
23951 else
23952    pkg_failed=untried
23953fi
23954
23955
23956
23957if test $pkg_failed = yes; then
23958   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23959$as_echo "no" >&6; }
23960
23961if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23962        _pkg_short_errors_supported=yes
23963else
23964        _pkg_short_errors_supported=no
23965fi
23966        if test $_pkg_short_errors_supported = yes; then
23967	        XDMXCONFIG_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xaw7 xmu xt xpm x11" 2>&1`
23968        else
23969	        XDMXCONFIG_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors "xaw7 xmu xt xpm x11" 2>&1`
23970        fi
23971	# Put the nasty error message in config.log where it belongs
23972	echo "$XDMXCONFIG_DEP_PKG_ERRORS" >&5
23973
23974	have_dmx=no
23975elif test $pkg_failed = untried; then
23976     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23977$as_echo "no" >&6; }
23978	have_dmx=no
23979else
23980	XDMXCONFIG_DEP_CFLAGS=$pkg_cv_XDMXCONFIG_DEP_CFLAGS
23981	XDMXCONFIG_DEP_LIBS=$pkg_cv_XDMXCONFIG_DEP_LIBS
23982        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23983$as_echo "yes" >&6; }
23984	have_dmx=yes
23985fi
23986fi
23987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xdmx DDX" >&5
23988$as_echo_n "checking whether to build Xdmx DDX... " >&6; }
23989if test "x$DMX" = xauto; then
23990	DMX="$have_dmx"
23991	case $host_os in
23992		cygwin*) DMX="no" ;;
23993		darwin*) DMX="no" ;;
23994	esac
23995fi
23996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DMX" >&5
23997$as_echo "$DMX" >&6; }
23998 if test "x$DMX" = xyes; then
23999  DMX_TRUE=
24000  DMX_FALSE='#'
24001else
24002  DMX_TRUE='#'
24003  DMX_FALSE=
24004fi
24005
24006
24007if test "x$DMX" = xyes; then
24008	if test "x$have_dmx" = xno; then
24009		as_fn_error $? "Xdmx build explicitly requested, but required
24010		              modules not found." "$LINENO" 5
24011	fi
24012	DMX_INCLUDES="$XEXT_INC $RENDER_INC $RECORD_INC"
24013	XDMX_CFLAGS="$DMXMODULES_CFLAGS"
24014	XDMX_LIBS="$FB_LIB $MI_LIB $RENDER_LIB $RECORD_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $MIEXT_SHADOW_LIB $MIEXT_DAMAGE_LIB $XEXT_LIB $MAIN_LIB $DIX_LIB $OS_LIB $FIXES_LIB"
24015	XDMX_SYS_LIBS="$DMXMODULES_LIBS"
24016
24017
24018
24019
24020	ac_fn_c_check_header_mongrel "$LINENO" "linux/input.h" "ac_cv_header_linux_input_h" "$ac_includes_default"
24021if test "x$ac_cv_header_linux_input_h" = xyes; then :
24022  DMX_BUILD_USB="yes"
24023else
24024  DMX_BUILD_USB="no"
24025fi
24026
24027
24028	ac_fn_c_check_header_mongrel "$LINENO" "linux/keyboard.h" "ac_cv_header_linux_keyboard_h" "$ac_includes_default"
24029if test "x$ac_cv_header_linux_keyboard_h" = xyes; then :
24030  DMX_BUILD_LNX="yes"
24031else
24032  DMX_BUILD_LNX="no"
24033fi
24034
24035
24036
24037
24038
24039pkg_failed=no
24040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DMXEXAMPLES_DEP" >&5
24041$as_echo_n "checking for DMXEXAMPLES_DEP... " >&6; }
24042
24043if test -n "$DMXEXAMPLES_DEP_CFLAGS"; then
24044    pkg_cv_DMXEXAMPLES_DEP_CFLAGS="$DMXEXAMPLES_DEP_CFLAGS"
24045 elif test -n "$PKG_CONFIG"; then
24046    if test -n "$PKG_CONFIG" && \
24047    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX \$LIBXEXT x11\""; } >&5
24048  ($PKG_CONFIG --exists --print-errors "$LIBDMX $LIBXEXT x11") 2>&5
24049  ac_status=$?
24050  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24051  test $ac_status = 0; }; then
24052  pkg_cv_DMXEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBDMX $LIBXEXT x11" 2>/dev/null`
24053else
24054  pkg_failed=yes
24055fi
24056 else
24057    pkg_failed=untried
24058fi
24059if test -n "$DMXEXAMPLES_DEP_LIBS"; then
24060    pkg_cv_DMXEXAMPLES_DEP_LIBS="$DMXEXAMPLES_DEP_LIBS"
24061 elif test -n "$PKG_CONFIG"; then
24062    if test -n "$PKG_CONFIG" && \
24063    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX \$LIBXEXT x11\""; } >&5
24064  ($PKG_CONFIG --exists --print-errors "$LIBDMX $LIBXEXT x11") 2>&5
24065  ac_status=$?
24066  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24067  test $ac_status = 0; }; then
24068  pkg_cv_DMXEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBDMX $LIBXEXT x11" 2>/dev/null`
24069else
24070  pkg_failed=yes
24071fi
24072 else
24073    pkg_failed=untried
24074fi
24075
24076
24077
24078if test $pkg_failed = yes; then
24079   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24080$as_echo "no" >&6; }
24081
24082if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24083        _pkg_short_errors_supported=yes
24084else
24085        _pkg_short_errors_supported=no
24086fi
24087        if test $_pkg_short_errors_supported = yes; then
24088	        DMXEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBDMX $LIBXEXT x11" 2>&1`
24089        else
24090	        DMXEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBDMX $LIBXEXT x11" 2>&1`
24091        fi
24092	# Put the nasty error message in config.log where it belongs
24093	echo "$DMXEXAMPLES_DEP_PKG_ERRORS" >&5
24094
24095	as_fn_error $? "Package requirements ($LIBDMX $LIBXEXT x11) were not met:
24096
24097$DMXEXAMPLES_DEP_PKG_ERRORS
24098
24099Consider adjusting the PKG_CONFIG_PATH environment variable if you
24100installed software in a non-standard prefix.
24101
24102Alternatively, you may set the environment variables DMXEXAMPLES_DEP_CFLAGS
24103and DMXEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
24104See the pkg-config man page for more details." "$LINENO" 5
24105elif test $pkg_failed = untried; then
24106     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24107$as_echo "no" >&6; }
24108	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24109$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24110as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
24111is in your PATH or set the PKG_CONFIG environment variable to the full
24112path to pkg-config.
24113
24114Alternatively, you may set the environment variables DMXEXAMPLES_DEP_CFLAGS
24115and DMXEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
24116See the pkg-config man page for more details.
24117
24118To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24119See \`config.log' for more details" "$LINENO" 5; }
24120else
24121	DMXEXAMPLES_DEP_CFLAGS=$pkg_cv_DMXEXAMPLES_DEP_CFLAGS
24122	DMXEXAMPLES_DEP_LIBS=$pkg_cv_DMXEXAMPLES_DEP_LIBS
24123        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24124$as_echo "yes" >&6; }
24125
24126fi
24127
24128
24129pkg_failed=no
24130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DMXXMUEXAMPLES_DEP" >&5
24131$as_echo_n "checking for DMXXMUEXAMPLES_DEP... " >&6; }
24132
24133if test -n "$DMXXMUEXAMPLES_DEP_CFLAGS"; then
24134    pkg_cv_DMXXMUEXAMPLES_DEP_CFLAGS="$DMXXMUEXAMPLES_DEP_CFLAGS"
24135 elif test -n "$PKG_CONFIG"; then
24136    if test -n "$PKG_CONFIG" && \
24137    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX xmu \$LIBXEXT x11\""; } >&5
24138  ($PKG_CONFIG --exists --print-errors "$LIBDMX xmu $LIBXEXT x11") 2>&5
24139  ac_status=$?
24140  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24141  test $ac_status = 0; }; then
24142  pkg_cv_DMXXMUEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBDMX xmu $LIBXEXT x11" 2>/dev/null`
24143else
24144  pkg_failed=yes
24145fi
24146 else
24147    pkg_failed=untried
24148fi
24149if test -n "$DMXXMUEXAMPLES_DEP_LIBS"; then
24150    pkg_cv_DMXXMUEXAMPLES_DEP_LIBS="$DMXXMUEXAMPLES_DEP_LIBS"
24151 elif test -n "$PKG_CONFIG"; then
24152    if test -n "$PKG_CONFIG" && \
24153    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX xmu \$LIBXEXT x11\""; } >&5
24154  ($PKG_CONFIG --exists --print-errors "$LIBDMX xmu $LIBXEXT x11") 2>&5
24155  ac_status=$?
24156  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24157  test $ac_status = 0; }; then
24158  pkg_cv_DMXXMUEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBDMX xmu $LIBXEXT x11" 2>/dev/null`
24159else
24160  pkg_failed=yes
24161fi
24162 else
24163    pkg_failed=untried
24164fi
24165
24166
24167
24168if test $pkg_failed = yes; then
24169   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24170$as_echo "no" >&6; }
24171
24172if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24173        _pkg_short_errors_supported=yes
24174else
24175        _pkg_short_errors_supported=no
24176fi
24177        if test $_pkg_short_errors_supported = yes; then
24178	        DMXXMUEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBDMX xmu $LIBXEXT x11" 2>&1`
24179        else
24180	        DMXXMUEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBDMX xmu $LIBXEXT x11" 2>&1`
24181        fi
24182	# Put the nasty error message in config.log where it belongs
24183	echo "$DMXXMUEXAMPLES_DEP_PKG_ERRORS" >&5
24184
24185	as_fn_error $? "Package requirements ($LIBDMX xmu $LIBXEXT x11) were not met:
24186
24187$DMXXMUEXAMPLES_DEP_PKG_ERRORS
24188
24189Consider adjusting the PKG_CONFIG_PATH environment variable if you
24190installed software in a non-standard prefix.
24191
24192Alternatively, you may set the environment variables DMXXMUEXAMPLES_DEP_CFLAGS
24193and DMXXMUEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
24194See the pkg-config man page for more details." "$LINENO" 5
24195elif test $pkg_failed = untried; then
24196     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24197$as_echo "no" >&6; }
24198	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24199$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24200as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
24201is in your PATH or set the PKG_CONFIG environment variable to the full
24202path to pkg-config.
24203
24204Alternatively, you may set the environment variables DMXXMUEXAMPLES_DEP_CFLAGS
24205and DMXXMUEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
24206See the pkg-config man page for more details.
24207
24208To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24209See \`config.log' for more details" "$LINENO" 5; }
24210else
24211	DMXXMUEXAMPLES_DEP_CFLAGS=$pkg_cv_DMXXMUEXAMPLES_DEP_CFLAGS
24212	DMXXMUEXAMPLES_DEP_LIBS=$pkg_cv_DMXXMUEXAMPLES_DEP_LIBS
24213        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24214$as_echo "yes" >&6; }
24215
24216fi
24217
24218
24219pkg_failed=no
24220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DMXXIEXAMPLES_DEP" >&5
24221$as_echo_n "checking for DMXXIEXAMPLES_DEP... " >&6; }
24222
24223if test -n "$DMXXIEXAMPLES_DEP_CFLAGS"; then
24224    pkg_cv_DMXXIEXAMPLES_DEP_CFLAGS="$DMXXIEXAMPLES_DEP_CFLAGS"
24225 elif test -n "$PKG_CONFIG"; then
24226    if test -n "$PKG_CONFIG" && \
24227    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX \$LIBXI \$LIBXEXT x11\""; } >&5
24228  ($PKG_CONFIG --exists --print-errors "$LIBDMX $LIBXI $LIBXEXT x11") 2>&5
24229  ac_status=$?
24230  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24231  test $ac_status = 0; }; then
24232  pkg_cv_DMXXIEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBDMX $LIBXI $LIBXEXT x11" 2>/dev/null`
24233else
24234  pkg_failed=yes
24235fi
24236 else
24237    pkg_failed=untried
24238fi
24239if test -n "$DMXXIEXAMPLES_DEP_LIBS"; then
24240    pkg_cv_DMXXIEXAMPLES_DEP_LIBS="$DMXXIEXAMPLES_DEP_LIBS"
24241 elif test -n "$PKG_CONFIG"; then
24242    if test -n "$PKG_CONFIG" && \
24243    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX \$LIBXI \$LIBXEXT x11\""; } >&5
24244  ($PKG_CONFIG --exists --print-errors "$LIBDMX $LIBXI $LIBXEXT x11") 2>&5
24245  ac_status=$?
24246  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24247  test $ac_status = 0; }; then
24248  pkg_cv_DMXXIEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBDMX $LIBXI $LIBXEXT x11" 2>/dev/null`
24249else
24250  pkg_failed=yes
24251fi
24252 else
24253    pkg_failed=untried
24254fi
24255
24256
24257
24258if test $pkg_failed = yes; then
24259   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24260$as_echo "no" >&6; }
24261
24262if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24263        _pkg_short_errors_supported=yes
24264else
24265        _pkg_short_errors_supported=no
24266fi
24267        if test $_pkg_short_errors_supported = yes; then
24268	        DMXXIEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBDMX $LIBXI $LIBXEXT x11" 2>&1`
24269        else
24270	        DMXXIEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBDMX $LIBXI $LIBXEXT x11" 2>&1`
24271        fi
24272	# Put the nasty error message in config.log where it belongs
24273	echo "$DMXXIEXAMPLES_DEP_PKG_ERRORS" >&5
24274
24275	as_fn_error $? "Package requirements ($LIBDMX $LIBXI $LIBXEXT x11) were not met:
24276
24277$DMXXIEXAMPLES_DEP_PKG_ERRORS
24278
24279Consider adjusting the PKG_CONFIG_PATH environment variable if you
24280installed software in a non-standard prefix.
24281
24282Alternatively, you may set the environment variables DMXXIEXAMPLES_DEP_CFLAGS
24283and DMXXIEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
24284See the pkg-config man page for more details." "$LINENO" 5
24285elif test $pkg_failed = untried; then
24286     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24287$as_echo "no" >&6; }
24288	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24289$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24290as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
24291is in your PATH or set the PKG_CONFIG environment variable to the full
24292path to pkg-config.
24293
24294Alternatively, you may set the environment variables DMXXIEXAMPLES_DEP_CFLAGS
24295and DMXXIEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
24296See the pkg-config man page for more details.
24297
24298To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24299See \`config.log' for more details" "$LINENO" 5; }
24300else
24301	DMXXIEXAMPLES_DEP_CFLAGS=$pkg_cv_DMXXIEXAMPLES_DEP_CFLAGS
24302	DMXXIEXAMPLES_DEP_LIBS=$pkg_cv_DMXXIEXAMPLES_DEP_LIBS
24303        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24304$as_echo "yes" >&6; }
24305
24306fi
24307
24308
24309pkg_failed=no
24310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTSTEXAMPLES_DEP" >&5
24311$as_echo_n "checking for XTSTEXAMPLES_DEP... " >&6; }
24312
24313if test -n "$XTSTEXAMPLES_DEP_CFLAGS"; then
24314    pkg_cv_XTSTEXAMPLES_DEP_CFLAGS="$XTSTEXAMPLES_DEP_CFLAGS"
24315 elif test -n "$PKG_CONFIG"; then
24316    if test -n "$PKG_CONFIG" && \
24317    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXTST \$LIBXEXT x11\""; } >&5
24318  ($PKG_CONFIG --exists --print-errors "$LIBXTST $LIBXEXT x11") 2>&5
24319  ac_status=$?
24320  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24321  test $ac_status = 0; }; then
24322  pkg_cv_XTSTEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBXTST $LIBXEXT x11" 2>/dev/null`
24323else
24324  pkg_failed=yes
24325fi
24326 else
24327    pkg_failed=untried
24328fi
24329if test -n "$XTSTEXAMPLES_DEP_LIBS"; then
24330    pkg_cv_XTSTEXAMPLES_DEP_LIBS="$XTSTEXAMPLES_DEP_LIBS"
24331 elif test -n "$PKG_CONFIG"; then
24332    if test -n "$PKG_CONFIG" && \
24333    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXTST \$LIBXEXT x11\""; } >&5
24334  ($PKG_CONFIG --exists --print-errors "$LIBXTST $LIBXEXT x11") 2>&5
24335  ac_status=$?
24336  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24337  test $ac_status = 0; }; then
24338  pkg_cv_XTSTEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBXTST $LIBXEXT x11" 2>/dev/null`
24339else
24340  pkg_failed=yes
24341fi
24342 else
24343    pkg_failed=untried
24344fi
24345
24346
24347
24348if test $pkg_failed = yes; then
24349   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24350$as_echo "no" >&6; }
24351
24352if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24353        _pkg_short_errors_supported=yes
24354else
24355        _pkg_short_errors_supported=no
24356fi
24357        if test $_pkg_short_errors_supported = yes; then
24358	        XTSTEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBXTST $LIBXEXT x11" 2>&1`
24359        else
24360	        XTSTEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBXTST $LIBXEXT x11" 2>&1`
24361        fi
24362	# Put the nasty error message in config.log where it belongs
24363	echo "$XTSTEXAMPLES_DEP_PKG_ERRORS" >&5
24364
24365	as_fn_error $? "Package requirements ($LIBXTST $LIBXEXT x11) were not met:
24366
24367$XTSTEXAMPLES_DEP_PKG_ERRORS
24368
24369Consider adjusting the PKG_CONFIG_PATH environment variable if you
24370installed software in a non-standard prefix.
24371
24372Alternatively, you may set the environment variables XTSTEXAMPLES_DEP_CFLAGS
24373and XTSTEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
24374See the pkg-config man page for more details." "$LINENO" 5
24375elif test $pkg_failed = untried; then
24376     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24377$as_echo "no" >&6; }
24378	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24379$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24380as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
24381is in your PATH or set the PKG_CONFIG environment variable to the full
24382path to pkg-config.
24383
24384Alternatively, you may set the environment variables XTSTEXAMPLES_DEP_CFLAGS
24385and XTSTEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
24386See the pkg-config man page for more details.
24387
24388To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24389See \`config.log' for more details" "$LINENO" 5; }
24390else
24391	XTSTEXAMPLES_DEP_CFLAGS=$pkg_cv_XTSTEXAMPLES_DEP_CFLAGS
24392	XTSTEXAMPLES_DEP_LIBS=$pkg_cv_XTSTEXAMPLES_DEP_LIBS
24393        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24394$as_echo "yes" >&6; }
24395
24396fi
24397
24398
24399pkg_failed=no
24400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRESEXAMPLES_DEP" >&5
24401$as_echo_n "checking for XRESEXAMPLES_DEP... " >&6; }
24402
24403if test -n "$XRESEXAMPLES_DEP_CFLAGS"; then
24404    pkg_cv_XRESEXAMPLES_DEP_CFLAGS="$XRESEXAMPLES_DEP_CFLAGS"
24405 elif test -n "$PKG_CONFIG"; then
24406    if test -n "$PKG_CONFIG" && \
24407    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xres \$LIBXEXT x11\""; } >&5
24408  ($PKG_CONFIG --exists --print-errors "xres $LIBXEXT x11") 2>&5
24409  ac_status=$?
24410  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24411  test $ac_status = 0; }; then
24412  pkg_cv_XRESEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "xres $LIBXEXT x11" 2>/dev/null`
24413else
24414  pkg_failed=yes
24415fi
24416 else
24417    pkg_failed=untried
24418fi
24419if test -n "$XRESEXAMPLES_DEP_LIBS"; then
24420    pkg_cv_XRESEXAMPLES_DEP_LIBS="$XRESEXAMPLES_DEP_LIBS"
24421 elif test -n "$PKG_CONFIG"; then
24422    if test -n "$PKG_CONFIG" && \
24423    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xres \$LIBXEXT x11\""; } >&5
24424  ($PKG_CONFIG --exists --print-errors "xres $LIBXEXT x11") 2>&5
24425  ac_status=$?
24426  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24427  test $ac_status = 0; }; then
24428  pkg_cv_XRESEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "xres $LIBXEXT x11" 2>/dev/null`
24429else
24430  pkg_failed=yes
24431fi
24432 else
24433    pkg_failed=untried
24434fi
24435
24436
24437
24438if test $pkg_failed = yes; then
24439   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24440$as_echo "no" >&6; }
24441
24442if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24443        _pkg_short_errors_supported=yes
24444else
24445        _pkg_short_errors_supported=no
24446fi
24447        if test $_pkg_short_errors_supported = yes; then
24448	        XRESEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xres $LIBXEXT x11" 2>&1`
24449        else
24450	        XRESEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors "xres $LIBXEXT x11" 2>&1`
24451        fi
24452	# Put the nasty error message in config.log where it belongs
24453	echo "$XRESEXAMPLES_DEP_PKG_ERRORS" >&5
24454
24455	as_fn_error $? "Package requirements (xres $LIBXEXT x11) were not met:
24456
24457$XRESEXAMPLES_DEP_PKG_ERRORS
24458
24459Consider adjusting the PKG_CONFIG_PATH environment variable if you
24460installed software in a non-standard prefix.
24461
24462Alternatively, you may set the environment variables XRESEXAMPLES_DEP_CFLAGS
24463and XRESEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
24464See the pkg-config man page for more details." "$LINENO" 5
24465elif test $pkg_failed = untried; then
24466     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24467$as_echo "no" >&6; }
24468	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24469$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24470as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
24471is in your PATH or set the PKG_CONFIG environment variable to the full
24472path to pkg-config.
24473
24474Alternatively, you may set the environment variables XRESEXAMPLES_DEP_CFLAGS
24475and XRESEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
24476See the pkg-config man page for more details.
24477
24478To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24479See \`config.log' for more details" "$LINENO" 5; }
24480else
24481	XRESEXAMPLES_DEP_CFLAGS=$pkg_cv_XRESEXAMPLES_DEP_CFLAGS
24482	XRESEXAMPLES_DEP_LIBS=$pkg_cv_XRESEXAMPLES_DEP_LIBS
24483        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24484$as_echo "yes" >&6; }
24485
24486fi
24487
24488
24489pkg_failed=no
24490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11EXAMPLES_DEP" >&5
24491$as_echo_n "checking for X11EXAMPLES_DEP... " >&6; }
24492
24493if test -n "$X11EXAMPLES_DEP_CFLAGS"; then
24494    pkg_cv_X11EXAMPLES_DEP_CFLAGS="$X11EXAMPLES_DEP_CFLAGS"
24495 elif test -n "$PKG_CONFIG"; then
24496    if test -n "$PKG_CONFIG" && \
24497    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11\""; } >&5
24498  ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11") 2>&5
24499  ac_status=$?
24500  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24501  test $ac_status = 0; }; then
24502  pkg_cv_X11EXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBXEXT x11" 2>/dev/null`
24503else
24504  pkg_failed=yes
24505fi
24506 else
24507    pkg_failed=untried
24508fi
24509if test -n "$X11EXAMPLES_DEP_LIBS"; then
24510    pkg_cv_X11EXAMPLES_DEP_LIBS="$X11EXAMPLES_DEP_LIBS"
24511 elif test -n "$PKG_CONFIG"; then
24512    if test -n "$PKG_CONFIG" && \
24513    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11\""; } >&5
24514  ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11") 2>&5
24515  ac_status=$?
24516  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24517  test $ac_status = 0; }; then
24518  pkg_cv_X11EXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBXEXT x11" 2>/dev/null`
24519else
24520  pkg_failed=yes
24521fi
24522 else
24523    pkg_failed=untried
24524fi
24525
24526
24527
24528if test $pkg_failed = yes; then
24529   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24530$as_echo "no" >&6; }
24531
24532if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24533        _pkg_short_errors_supported=yes
24534else
24535        _pkg_short_errors_supported=no
24536fi
24537        if test $_pkg_short_errors_supported = yes; then
24538	        X11EXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBXEXT x11" 2>&1`
24539        else
24540	        X11EXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBXEXT x11" 2>&1`
24541        fi
24542	# Put the nasty error message in config.log where it belongs
24543	echo "$X11EXAMPLES_DEP_PKG_ERRORS" >&5
24544
24545	as_fn_error $? "Package requirements ($LIBXEXT x11) were not met:
24546
24547$X11EXAMPLES_DEP_PKG_ERRORS
24548
24549Consider adjusting the PKG_CONFIG_PATH environment variable if you
24550installed software in a non-standard prefix.
24551
24552Alternatively, you may set the environment variables X11EXAMPLES_DEP_CFLAGS
24553and X11EXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
24554See the pkg-config man page for more details." "$LINENO" 5
24555elif test $pkg_failed = untried; then
24556     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24557$as_echo "no" >&6; }
24558	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24559$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24560as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
24561is in your PATH or set the PKG_CONFIG environment variable to the full
24562path to pkg-config.
24563
24564Alternatively, you may set the environment variables X11EXAMPLES_DEP_CFLAGS
24565and X11EXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
24566See the pkg-config man page for more details.
24567
24568To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24569See \`config.log' for more details" "$LINENO" 5; }
24570else
24571	X11EXAMPLES_DEP_CFLAGS=$pkg_cv_X11EXAMPLES_DEP_CFLAGS
24572	X11EXAMPLES_DEP_LIBS=$pkg_cv_X11EXAMPLES_DEP_LIBS
24573        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24574$as_echo "yes" >&6; }
24575
24576fi
24577
24578
24579fi
24580 if test "x$DMX_BUILD_LNX" = xyes; then
24581  DMX_BUILD_LNX_TRUE=
24582  DMX_BUILD_LNX_FALSE='#'
24583else
24584  DMX_BUILD_LNX_TRUE='#'
24585  DMX_BUILD_LNX_FALSE=
24586fi
24587
24588 if test "x$DMX_BUILD_USB" = xyes; then
24589  DMX_BUILD_USB_TRUE=
24590  DMX_BUILD_USB_FALSE='#'
24591else
24592  DMX_BUILD_USB_TRUE='#'
24593  DMX_BUILD_USB_FALSE=
24594fi
24595
24596
24597
24598XEPHYR_LIBS=
24599XEPHYR_INCS=
24600
24601 if test x$KDRIVE = xyes; then
24602  KDRIVE_TRUE=
24603  KDRIVE_FALSE='#'
24604else
24605  KDRIVE_TRUE='#'
24606  KDRIVE_FALSE=
24607fi
24608
24609
24610if test "$KDRIVE" = yes; then
24611
24612$as_echo "#define KDRIVESERVER 1" >>confdefs.h
24613
24614
24615$as_echo "#define KDRIVEDDXACTIONS /**/" >>confdefs.h
24616
24617
24618    for ac_header in linux/fb.h
24619do :
24620  ac_fn_c_check_header_mongrel "$LINENO" "linux/fb.h" "ac_cv_header_linux_fb_h" "$ac_includes_default"
24621if test "x$ac_cv_header_linux_fb_h" = xyes; then :
24622  cat >>confdefs.h <<_ACEOF
24623#define HAVE_LINUX_FB_H 1
24624_ACEOF
24625
24626fi
24627
24628done
24629
24630    if test "$ac_cv_header_linux_fb_h" = yes && test "x$XFBDEV" = xauto; then
24631        XFBDEV=yes
24632    fi
24633
24634    if test "x$XFBDEV" = xyes; then
24635        KDRIVEFBDEVLIB=yes
24636
24637$as_echo "#define KDRIVEFBDEV 1" >>confdefs.h
24638
24639    fi
24640
24641
24642
24643pkg_failed=no
24644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TSLIB" >&5
24645$as_echo_n "checking for TSLIB... " >&6; }
24646
24647if test -n "$TSLIB_CFLAGS"; then
24648    pkg_cv_TSLIB_CFLAGS="$TSLIB_CFLAGS"
24649 elif test -n "$PKG_CONFIG"; then
24650    if test -n "$PKG_CONFIG" && \
24651    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tslib-0.0\""; } >&5
24652  ($PKG_CONFIG --exists --print-errors "tslib-0.0") 2>&5
24653  ac_status=$?
24654  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24655  test $ac_status = 0; }; then
24656  pkg_cv_TSLIB_CFLAGS=`$PKG_CONFIG --cflags "tslib-0.0" 2>/dev/null`
24657else
24658  pkg_failed=yes
24659fi
24660 else
24661    pkg_failed=untried
24662fi
24663if test -n "$TSLIB_LIBS"; then
24664    pkg_cv_TSLIB_LIBS="$TSLIB_LIBS"
24665 elif test -n "$PKG_CONFIG"; then
24666    if test -n "$PKG_CONFIG" && \
24667    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tslib-0.0\""; } >&5
24668  ($PKG_CONFIG --exists --print-errors "tslib-0.0") 2>&5
24669  ac_status=$?
24670  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24671  test $ac_status = 0; }; then
24672  pkg_cv_TSLIB_LIBS=`$PKG_CONFIG --libs "tslib-0.0" 2>/dev/null`
24673else
24674  pkg_failed=yes
24675fi
24676 else
24677    pkg_failed=untried
24678fi
24679
24680
24681
24682if test $pkg_failed = yes; then
24683   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24684$as_echo "no" >&6; }
24685
24686if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24687        _pkg_short_errors_supported=yes
24688else
24689        _pkg_short_errors_supported=no
24690fi
24691        if test $_pkg_short_errors_supported = yes; then
24692	        TSLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "tslib-0.0" 2>&1`
24693        else
24694	        TSLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "tslib-0.0" 2>&1`
24695        fi
24696	# Put the nasty error message in config.log where it belongs
24697	echo "$TSLIB_PKG_ERRORS" >&5
24698
24699	HAVE_TSLIB="no"
24700elif test $pkg_failed = untried; then
24701     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24702$as_echo "no" >&6; }
24703	HAVE_TSLIB="no"
24704else
24705	TSLIB_CFLAGS=$pkg_cv_TSLIB_CFLAGS
24706	TSLIB_LIBS=$pkg_cv_TSLIB_LIBS
24707        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24708$as_echo "yes" >&6; }
24709	HAVE_TSLIB="yes"
24710fi
24711    if test "x$HAVE_TSLIB" = xno; then
24712        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ts_open in -lts" >&5
24713$as_echo_n "checking for ts_open in -lts... " >&6; }
24714if ${ac_cv_lib_ts_ts_open+:} false; then :
24715  $as_echo_n "(cached) " >&6
24716else
24717  ac_check_lib_save_LIBS=$LIBS
24718LIBS="-lts  $LIBS"
24719cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24720/* end confdefs.h.  */
24721
24722/* Override any GCC internal prototype to avoid an error.
24723   Use char because int might match the return type of a GCC
24724   builtin and then its argument prototype would still apply.  */
24725#ifdef __cplusplus
24726extern "C"
24727#endif
24728char ts_open ();
24729int
24730main ()
24731{
24732return ts_open ();
24733  ;
24734  return 0;
24735}
24736_ACEOF
24737if ac_fn_c_try_link "$LINENO"; then :
24738  ac_cv_lib_ts_ts_open=yes
24739else
24740  ac_cv_lib_ts_ts_open=no
24741fi
24742rm -f core conftest.err conftest.$ac_objext \
24743    conftest$ac_exeext conftest.$ac_ext
24744LIBS=$ac_check_lib_save_LIBS
24745fi
24746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ts_ts_open" >&5
24747$as_echo "$ac_cv_lib_ts_ts_open" >&6; }
24748if test "x$ac_cv_lib_ts_ts_open" = xyes; then :
24749
24750			HAVE_TSLIB="yes"
24751			TSLIB_LIBS="-lts"
24752
24753fi
24754
24755    fi
24756
24757    if test "xTSLIB" = xauto; then
24758        TSLIB="$HAVE_TSLIB"
24759    fi
24760
24761    if test "x$TSLIB" = xyes; then
24762        if ! test "x$HAVE_TSLIB" = xyes; then
24763            as_fn_error $? "tslib must be installed to build the tslib driver. See http://tslib.berlios.de/" "$LINENO" 5
24764        else
24765
24766$as_echo "#define TSLIB 1" >>confdefs.h
24767
24768        fi
24769    fi
24770
24771    if test "x$KDRIVE_KBD" = xyes; then
24772
24773$as_echo "#define KDRIVE_KBD 1" >>confdefs.h
24774
24775    fi
24776    if test "x$KDRIVE_EVDEV" = xyes; then
24777
24778$as_echo "#define KDRIVE_EVDEV 1" >>confdefs.h
24779
24780    fi
24781    if test "x$KDRIVE_MOUSE" = xyes; then
24782
24783$as_echo "#define KDRIVE_MOUSE 1" >>confdefs.h
24784
24785    fi
24786
24787    XEPHYR_REQUIRED_LIBS="x11 $LIBXEXT xau xdmcp"
24788    if test "x$XV" = xyes; then
24789        XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS xv"
24790    fi
24791    if test "x$DRI" = xyes && test "x$GLX" = xyes; then
24792        XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS $LIBGL libdrm"
24793    fi
24794
24795
24796pkg_failed=no
24797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEPHYR" >&5
24798$as_echo_n "checking for XEPHYR... " >&6; }
24799
24800if test -n "$XEPHYR_CFLAGS"; then
24801    pkg_cv_XEPHYR_CFLAGS="$XEPHYR_CFLAGS"
24802 elif test -n "$PKG_CONFIG"; then
24803    if test -n "$PKG_CONFIG" && \
24804    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5
24805  ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5
24806  ac_status=$?
24807  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24808  test $ac_status = 0; }; then
24809  pkg_cv_XEPHYR_CFLAGS=`$PKG_CONFIG --cflags "$XEPHYR_REQUIRED_LIBS" 2>/dev/null`
24810else
24811  pkg_failed=yes
24812fi
24813 else
24814    pkg_failed=untried
24815fi
24816if test -n "$XEPHYR_LIBS"; then
24817    pkg_cv_XEPHYR_LIBS="$XEPHYR_LIBS"
24818 elif test -n "$PKG_CONFIG"; then
24819    if test -n "$PKG_CONFIG" && \
24820    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5
24821  ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5
24822  ac_status=$?
24823  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24824  test $ac_status = 0; }; then
24825  pkg_cv_XEPHYR_LIBS=`$PKG_CONFIG --libs "$XEPHYR_REQUIRED_LIBS" 2>/dev/null`
24826else
24827  pkg_failed=yes
24828fi
24829 else
24830    pkg_failed=untried
24831fi
24832
24833
24834
24835if test $pkg_failed = yes; then
24836   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24837$as_echo "no" >&6; }
24838
24839if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24840        _pkg_short_errors_supported=yes
24841else
24842        _pkg_short_errors_supported=no
24843fi
24844        if test $_pkg_short_errors_supported = yes; then
24845	        XEPHYR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$XEPHYR_REQUIRED_LIBS" 2>&1`
24846        else
24847	        XEPHYR_PKG_ERRORS=`$PKG_CONFIG --print-errors "$XEPHYR_REQUIRED_LIBS" 2>&1`
24848        fi
24849	# Put the nasty error message in config.log where it belongs
24850	echo "$XEPHYR_PKG_ERRORS" >&5
24851
24852	xephyr="no"
24853elif test $pkg_failed = untried; then
24854     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24855$as_echo "no" >&6; }
24856	xephyr="no"
24857else
24858	XEPHYR_CFLAGS=$pkg_cv_XEPHYR_CFLAGS
24859	XEPHYR_LIBS=$pkg_cv_XEPHYR_LIBS
24860        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24861$as_echo "yes" >&6; }
24862	xephyr="yes"
24863fi
24864    if test "x$XEPHYR" = xauto; then
24865        XEPHYR=$xephyr
24866    fi
24867    if test "x$XEPHYR" = xyes && test "x$xephyr" = xno; then
24868        as_fn_error $? "Xephyr dependencies missing" "$LINENO" 5
24869    fi
24870
24871    # Xephyr needs nanosleep() which is in librt on Solaris
24872    ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
24873if test "x$ac_cv_func_nanosleep" = xyes; then :
24874
24875else
24876  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
24877$as_echo_n "checking for nanosleep in -lrt... " >&6; }
24878if ${ac_cv_lib_rt_nanosleep+:} false; then :
24879  $as_echo_n "(cached) " >&6
24880else
24881  ac_check_lib_save_LIBS=$LIBS
24882LIBS="-lrt  $LIBS"
24883cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24884/* end confdefs.h.  */
24885
24886/* Override any GCC internal prototype to avoid an error.
24887   Use char because int might match the return type of a GCC
24888   builtin and then its argument prototype would still apply.  */
24889#ifdef __cplusplus
24890extern "C"
24891#endif
24892char nanosleep ();
24893int
24894main ()
24895{
24896return nanosleep ();
24897  ;
24898  return 0;
24899}
24900_ACEOF
24901if ac_fn_c_try_link "$LINENO"; then :
24902  ac_cv_lib_rt_nanosleep=yes
24903else
24904  ac_cv_lib_rt_nanosleep=no
24905fi
24906rm -f core conftest.err conftest.$ac_objext \
24907    conftest$ac_exeext conftest.$ac_ext
24908LIBS=$ac_check_lib_save_LIBS
24909fi
24910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
24911$as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
24912if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
24913  XEPHYR_LIBS="$XEPHYR_LIBS -lrt"
24914fi
24915
24916fi
24917
24918
24919    # damage shadow extension glx (NOTYET) fb mi
24920    KDRIVE_INC='-I$(top_srcdir)/hw/kdrive/src'
24921    KDRIVE_PURE_INCS="$KDRIVE_INC $MIEXT_DAMAGE_INC $MIEXT_SHADOW_INC $XEXT_INC $FB_INC $MI_INC"
24922    KDRIVE_OS_INC='-I$(top_srcdir)/hw/kdrive/linux'
24923    KDRIVE_INCS="$KDRIVE_PURE_INCS $KDRIVE_OS_INC"
24924
24925    KDRIVE_CFLAGS="$XSERVER_CFLAGS -DHAVE_KDRIVE_CONFIG_H $TSLIB_CFLAGS"
24926
24927    KDRIVE_PURE_LIBS="$FB_LIB $MI_LIB $FIXES_LIB $XEXT_LIB $DBE_LIB $RECORD_LIB $GLX_LIBS $RANDR_LIB $RENDER_LIB $DAMAGE_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB $OS_LIB"
24928    KDRIVE_LIB='$(top_builddir)/hw/kdrive/src/libkdrive.la'
24929    case $host_os in
24930	*linux*)
24931	    KDRIVE_OS_LIB='$(top_builddir)/hw/kdrive/linux/liblinux.la'
24932            KDRIVELINUX=yes
24933	    if test "x$KDRIVE_EVDEV" = xauto; then
24934		KDRIVE_EVDEV=yes
24935	    fi
24936	    if test "x$KDRIVE_KBD" = xauto; then
24937		KDRIVE_KBD=yes
24938	    fi
24939	    if test "x$KDRIVE_MOUSE" = xauto; then
24940		KDRIVE_MOUSE=yes
24941	    fi
24942	    ;;
24943	*)
24944	    if test "x$KDRIVE_EVDEV" = xauto; then
24945		KDRIVE_EVDEV=no
24946	    fi
24947	    if test "x$KDRIVE_KBD" = xauto; then
24948		KDRIVE_KBD=no
24949	    fi
24950	    if test "x$KDRIVE_MOUSE" = xauto; then
24951		KDRIVE_MOUSE=no
24952	    fi
24953	    ;;
24954    esac
24955    KDRIVE_STUB_LIB='$(top_builddir)/hw/kdrive/src/libkdrivestubs.la'
24956    KDRIVE_LOCAL_LIBS="$MAIN_LIB $DIX_LIB $KDRIVE_LIB $KDRIVE_STUB_LIB"
24957    KDRIVE_LOCAL_LIBS="$KDRIVE_LOCAL_LIBS $FB_LIB $MI_LIB $KDRIVE_PURE_LIBS"
24958    KDRIVE_LOCAL_LIBS="$KDRIVE_LOCAL_LIBS $KDRIVE_OS_LIB"
24959    KDRIVE_LIBS="$KDRIVE_LOCAL_LIBS $XSERVER_SYS_LIBS $GLX_SYS_LIBS $DLOPEN_LIBS $TSLIB_LIBS"
24960
24961
24962
24963fi
24964
24965
24966
24967
24968
24969
24970 if test "x$KDRIVELINUX" = xyes; then
24971  KDRIVELINUX_TRUE=
24972  KDRIVELINUX_FALSE='#'
24973else
24974  KDRIVELINUX_TRUE='#'
24975  KDRIVELINUX_FALSE=
24976fi
24977
24978 if test "x$KDRIVE_EVDEV" = xyes; then
24979  KDRIVE_EVDEV_TRUE=
24980  KDRIVE_EVDEV_FALSE='#'
24981else
24982  KDRIVE_EVDEV_TRUE='#'
24983  KDRIVE_EVDEV_FALSE=
24984fi
24985
24986 if test "x$KDRIVE_KBD" = xyes; then
24987  KDRIVE_KBD_TRUE=
24988  KDRIVE_KBD_FALSE='#'
24989else
24990  KDRIVE_KBD_TRUE='#'
24991  KDRIVE_KBD_FALSE=
24992fi
24993
24994 if test "x$KDRIVE_MOUSE" = xyes; then
24995  KDRIVE_MOUSE_TRUE=
24996  KDRIVE_MOUSE_FALSE='#'
24997else
24998  KDRIVE_MOUSE_TRUE='#'
24999  KDRIVE_MOUSE_FALSE=
25000fi
25001
25002 if test "x$HAVE_TSLIB" = xyes; then
25003  TSLIB_TRUE=
25004  TSLIB_FALSE='#'
25005else
25006  TSLIB_TRUE='#'
25007  TSLIB_FALSE=
25008fi
25009
25010 if test "x$XFBDEV" = xyes; then
25011  KDRIVEFBDEV_TRUE=
25012  KDRIVEFBDEV_FALSE='#'
25013else
25014  KDRIVEFBDEV_TRUE='#'
25015  KDRIVEFBDEV_FALSE=
25016fi
25017
25018 if test "x$KDRIVE" = xyes && test "x$XEPHYR" = xyes; then
25019  XEPHYR_TRUE=
25020  XEPHYR_FALSE='#'
25021else
25022  XEPHYR_TRUE='#'
25023  XEPHYR_FALSE=
25024fi
25025
25026 if test "x$KDRIVE" = xyes && test "x$KDRIVEFBDEVLIB" = xyes; then
25027  BUILD_KDRIVEFBDEVLIB_TRUE=
25028  BUILD_KDRIVEFBDEVLIB_FALSE='#'
25029else
25030  BUILD_KDRIVEFBDEVLIB_TRUE='#'
25031  BUILD_KDRIVEFBDEVLIB_FALSE=
25032fi
25033
25034 if test "x$KDRIVE" = xyes && test "x$XFAKE" = xyes; then
25035  XFAKESERVER_TRUE=
25036  XFAKESERVER_FALSE='#'
25037else
25038  XFAKESERVER_TRUE='#'
25039  XFAKESERVER_FALSE=
25040fi
25041
25042
25043
25044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25045/* end confdefs.h.  */
25046
25047#include <features.h>
25048#ifndef __GLIBC__
25049#error not glibc
25050#endif
25051
25052int
25053main ()
25054{
25055
25056  ;
25057  return 0;
25058}
25059_ACEOF
25060if ac_fn_c_try_compile "$LINENO"; then :
25061
25062$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
25063
25064fi
25065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25066
25067
25068  prefix_NONE=
25069  exec_prefix_NONE=
25070  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
25071  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
25072  eval ac_define_dir="\"$prefix\""
25073  eval ac_define_dir="\"$ac_define_dir\""
25074  PROJECTROOT="$ac_define_dir"
25075
25076
25077cat >>confdefs.h <<_ACEOF
25078#define PROJECTROOT "$ac_define_dir"
25079_ACEOF
25080
25081  test "$prefix_NONE" && prefix=NONE
25082  test "$exec_prefix_NONE" && exec_prefix=NONE
25083
25084
25085
25086BUILD_DATE="`date +'%Y%m%d'`"
25087
25088BUILD_TIME="`date +'1%H%M%S'`"
25089
25090
25091DIX_CFLAGS="-DHAVE_DIX_CONFIG_H $XSERVER_CFLAGS"
25092
25093
25094
25095
25096
25097
25098
25099ac_config_files="$ac_config_files Makefile glx/Makefile include/Makefile composite/Makefile damageext/Makefile dbe/Makefile dix/Makefile doc/Makefile doc/xml/Makefile doc/xml/dtrace/Makefile doc/xml/xserver.ent fb/Makefile record/Makefile config/Makefile mi/Makefile miext/Makefile miext/damage/Makefile miext/shadow/Makefile miext/cw/Makefile miext/rootless/Makefile os/Makefile randr/Makefile render/Makefile xkb/Makefile Xext/Makefile Xi/Makefile xfixes/Makefile exa/Makefile hw/Makefile hw/xfree86/Makefile hw/xfree86/common/Makefile hw/xfree86/common/xf86Build.h hw/xfree86/ddc/Makefile hw/xfree86/dixmods/Makefile hw/xfree86/dixmods/extmod/Makefile hw/xfree86/doc/Makefile hw/xfree86/doc/devel/Makefile hw/xfree86/doc/man/Makefile hw/xfree86/doc/sgml/Makefile hw/xfree86/dri/Makefile hw/xfree86/dri2/Makefile hw/xfree86/exa/Makefile hw/xfree86/fbdevhw/Makefile hw/xfree86/i2c/Makefile hw/xfree86/int10/Makefile hw/xfree86/loader/Makefile hw/xfree86/modes/Makefile hw/xfree86/os-support/Makefile hw/xfree86/os-support/bsd/Makefile hw/xfree86/os-support/bus/Makefile hw/xfree86/os-support/hurd/Makefile hw/xfree86/os-support/misc/Makefile hw/xfree86/os-support/linux/Makefile hw/xfree86/os-support/sco/Makefile hw/xfree86/os-support/solaris/Makefile hw/xfree86/os-support/sysv/Makefile hw/xfree86/parser/Makefile hw/xfree86/ramdac/Makefile hw/xfree86/shadowfb/Makefile hw/xfree86/vbe/Makefile hw/xfree86/vgahw/Makefile hw/xfree86/x86emu/Makefile hw/xfree86/xaa/Makefile hw/xfree86/xf8_16bpp/Makefile hw/xfree86/utils/Makefile hw/xfree86/utils/cvt/Makefile hw/xfree86/utils/gtf/Makefile hw/dmx/config/Makefile hw/dmx/doc/Makefile hw/dmx/examples/Makefile hw/dmx/input/Makefile hw/dmx/glxProxy/Makefile hw/dmx/Makefile hw/vfb/Makefile hw/xnest/Makefile hw/xwin/Makefile hw/xwin/glx/Makefile hw/xquartz/Makefile hw/xquartz/GL/Makefile hw/xquartz/bundle/Makefile hw/xquartz/doc/Makefile hw/xquartz/mach-startup/Makefile hw/xquartz/pbproxy/Makefile hw/xquartz/xpr/Makefile hw/kdrive/Makefile hw/kdrive/ephyr/Makefile hw/kdrive/fake/Makefile hw/kdrive/fbdev/Makefile hw/kdrive/linux/Makefile hw/kdrive/src/Makefile test/Makefile test/xi2/Makefile xorg-server.pc"
25100
25101cat >confcache <<\_ACEOF
25102# This file is a shell script that caches the results of configure
25103# tests run on this system so they can be shared between configure
25104# scripts and configure runs, see configure's option --config-cache.
25105# It is not useful on other systems.  If it contains results you don't
25106# want to keep, you may remove or edit it.
25107#
25108# config.status only pays attention to the cache file if you give it
25109# the --recheck option to rerun configure.
25110#
25111# `ac_cv_env_foo' variables (set or unset) will be overridden when
25112# loading this file, other *unset* `ac_cv_foo' will be assigned the
25113# following values.
25114
25115_ACEOF
25116
25117# The following way of writing the cache mishandles newlines in values,
25118# but we know of no workaround that is simple, portable, and efficient.
25119# So, we kill variables containing newlines.
25120# Ultrix sh set writes to stderr and can't be redirected directly,
25121# and sets the high bit in the cache file unless we assign to the vars.
25122(
25123  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25124    eval ac_val=\$$ac_var
25125    case $ac_val in #(
25126    *${as_nl}*)
25127      case $ac_var in #(
25128      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25129$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25130      esac
25131      case $ac_var in #(
25132      _ | IFS | as_nl) ;; #(
25133      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25134      *) { eval $ac_var=; unset $ac_var;} ;;
25135      esac ;;
25136    esac
25137  done
25138
25139  (set) 2>&1 |
25140    case $as_nl`(ac_space=' '; set) 2>&1` in #(
25141    *${as_nl}ac_space=\ *)
25142      # `set' does not quote correctly, so add quotes: double-quote
25143      # substitution turns \\\\ into \\, and sed turns \\ into \.
25144      sed -n \
25145	"s/'/'\\\\''/g;
25146	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25147      ;; #(
25148    *)
25149      # `set' quotes correctly as required by POSIX, so do not add quotes.
25150      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25151      ;;
25152    esac |
25153    sort
25154) |
25155  sed '
25156     /^ac_cv_env_/b end
25157     t clear
25158     :clear
25159     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25160     t end
25161     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25162     :end' >>confcache
25163if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25164  if test -w "$cache_file"; then
25165    if test "x$cache_file" != "x/dev/null"; then
25166      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25167$as_echo "$as_me: updating cache $cache_file" >&6;}
25168      if test ! -f "$cache_file" || test -h "$cache_file"; then
25169	cat confcache >"$cache_file"
25170      else
25171        case $cache_file in #(
25172        */* | ?:*)
25173	  mv -f confcache "$cache_file"$$ &&
25174	  mv -f "$cache_file"$$ "$cache_file" ;; #(
25175        *)
25176	  mv -f confcache "$cache_file" ;;
25177	esac
25178      fi
25179    fi
25180  else
25181    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25182$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25183  fi
25184fi
25185rm -f confcache
25186
25187test "x$prefix" = xNONE && prefix=$ac_default_prefix
25188# Let make expand exec_prefix.
25189test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25190
25191DEFS=-DHAVE_CONFIG_H
25192
25193ac_libobjs=
25194ac_ltlibobjs=
25195U=
25196for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25197  # 1. Remove the extension, and $U if already installed.
25198  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25199  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25200  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
25201  #    will be set to the directory where LIBOBJS objects are built.
25202  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25203  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25204done
25205LIBOBJS=$ac_libobjs
25206
25207LTLIBOBJS=$ac_ltlibobjs
25208
25209
25210 if test -n "$EXEEXT"; then
25211  am__EXEEXT_TRUE=
25212  am__EXEEXT_FALSE='#'
25213else
25214  am__EXEEXT_TRUE='#'
25215  am__EXEEXT_FALSE=
25216fi
25217
25218if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25219  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
25220Usually this means the macro was only invoked conditionally." "$LINENO" 5
25221fi
25222if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25223  as_fn_error $? "conditional \"AMDEP\" was never defined.
25224Usually this means the macro was only invoked conditionally." "$LINENO" 5
25225fi
25226if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25227  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
25228Usually this means the macro was only invoked conditionally." "$LINENO" 5
25229fi
25230if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
25231  as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
25232Usually this means the macro was only invoked conditionally." "$LINENO" 5
25233fi
25234if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
25235  as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
25236Usually this means the macro was only invoked conditionally." "$LINENO" 5
25237fi
25238if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25239  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
25240Usually this means the macro was only invoked conditionally." "$LINENO" 5
25241fi
25242if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
25243  as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
25244Usually this means the macro was only invoked conditionally." "$LINENO" 5
25245fi
25246if test -z "${XSERVER_DTRACE_TRUE}" && test -z "${XSERVER_DTRACE_FALSE}"; then
25247  as_fn_error $? "conditional \"XSERVER_DTRACE\" was never defined.
25248Usually this means the macro was only invoked conditionally." "$LINENO" 5
25249fi
25250if test -z "${SPECIAL_DTRACE_OBJECTS_TRUE}" && test -z "${SPECIAL_DTRACE_OBJECTS_FALSE}"; then
25251  as_fn_error $? "conditional \"SPECIAL_DTRACE_OBJECTS\" was never defined.
25252Usually this means the macro was only invoked conditionally." "$LINENO" 5
25253fi
25254
25255if test -z "${NEED_STRLCAT_TRUE}" && test -z "${NEED_STRLCAT_FALSE}"; then
25256  as_fn_error $? "conditional \"NEED_STRLCAT\" was never defined.
25257Usually this means the macro was only invoked conditionally." "$LINENO" 5
25258fi
25259if test -z "${NEED_VSNPRINTF_TRUE}" && test -z "${NEED_VSNPRINTF_FALSE}"; then
25260  as_fn_error $? "conditional \"NEED_VSNPRINTF\" was never defined.
25261Usually this means the macro was only invoked conditionally." "$LINENO" 5
25262fi
25263if test -z "${AGP_TRUE}" && test -z "${AGP_FALSE}"; then
25264  as_fn_error $? "conditional \"AGP\" was never defined.
25265Usually this means the macro was only invoked conditionally." "$LINENO" 5
25266fi
25267if test -z "${LNXAPM_TRUE}" && test -z "${LNXAPM_FALSE}"; then
25268  as_fn_error $? "conditional \"LNXAPM\" was never defined.
25269Usually this means the macro was only invoked conditionally." "$LINENO" 5
25270fi
25271if test -z "${FBDEVHW_TRUE}" && test -z "${FBDEVHW_FALSE}"; then
25272  as_fn_error $? "conditional \"FBDEVHW\" was never defined.
25273Usually this means the macro was only invoked conditionally." "$LINENO" 5
25274fi
25275if test -z "${FREEBSD_KLDLOAD_TRUE}" && test -z "${FREEBSD_KLDLOAD_FALSE}"; then
25276  as_fn_error $? "conditional \"FREEBSD_KLDLOAD\" was never defined.
25277Usually this means the macro was only invoked conditionally." "$LINENO" 5
25278fi
25279if test -z "${BSD_APM_TRUE}" && test -z "${BSD_APM_FALSE}"; then
25280  as_fn_error $? "conditional \"BSD_APM\" was never defined.
25281Usually this means the macro was only invoked conditionally." "$LINENO" 5
25282fi
25283if test -z "${BSD_KQUEUE_APM_TRUE}" && test -z "${BSD_KQUEUE_APM_FALSE}"; then
25284  as_fn_error $? "conditional \"BSD_KQUEUE_APM\" was never defined.
25285Usually this means the macro was only invoked conditionally." "$LINENO" 5
25286fi
25287if test -z "${ALPHA_VIDEO_TRUE}" && test -z "${ALPHA_VIDEO_FALSE}"; then
25288  as_fn_error $? "conditional \"ALPHA_VIDEO\" was never defined.
25289Usually this means the macro was only invoked conditionally." "$LINENO" 5
25290fi
25291if test -z "${ARM_VIDEO_TRUE}" && test -z "${ARM_VIDEO_FALSE}"; then
25292  as_fn_error $? "conditional \"ARM_VIDEO\" was never defined.
25293Usually this means the macro was only invoked conditionally." "$LINENO" 5
25294fi
25295if test -z "${I386_VIDEO_TRUE}" && test -z "${I386_VIDEO_FALSE}"; then
25296  as_fn_error $? "conditional \"I386_VIDEO\" was never defined.
25297Usually this means the macro was only invoked conditionally." "$LINENO" 5
25298fi
25299if test -z "${PPC_VIDEO_TRUE}" && test -z "${PPC_VIDEO_FALSE}"; then
25300  as_fn_error $? "conditional \"PPC_VIDEO\" was never defined.
25301Usually this means the macro was only invoked conditionally." "$LINENO" 5
25302fi
25303if test -z "${SPARC64_VIDEO_TRUE}" && test -z "${SPARC64_VIDEO_FALSE}"; then
25304  as_fn_error $? "conditional \"SPARC64_VIDEO\" was never defined.
25305Usually this means the macro was only invoked conditionally." "$LINENO" 5
25306fi
25307if test -z "${INSTALL_SETUID_TRUE}" && test -z "${INSTALL_SETUID_FALSE}"; then
25308  as_fn_error $? "conditional \"INSTALL_SETUID\" was never defined.
25309Usually this means the macro was only invoked conditionally." "$LINENO" 5
25310fi
25311if test -z "${SECURE_RPC_TRUE}" && test -z "${SECURE_RPC_FALSE}"; then
25312  as_fn_error $? "conditional \"SECURE_RPC\" was never defined.
25313Usually this means the macro was only invoked conditionally." "$LINENO" 5
25314fi
25315if test -z "${INT10_VM86_TRUE}" && test -z "${INT10_VM86_FALSE}"; then
25316  as_fn_error $? "conditional \"INT10_VM86\" was never defined.
25317Usually this means the macro was only invoked conditionally." "$LINENO" 5
25318fi
25319if test -z "${INT10_X86EMU_TRUE}" && test -z "${INT10_X86EMU_FALSE}"; then
25320  as_fn_error $? "conditional \"INT10_X86EMU\" was never defined.
25321Usually this means the macro was only invoked conditionally." "$LINENO" 5
25322fi
25323if test -z "${INT10_STUB_TRUE}" && test -z "${INT10_STUB_FALSE}"; then
25324  as_fn_error $? "conditional \"INT10_STUB\" was never defined.
25325Usually this means the macro was only invoked conditionally." "$LINENO" 5
25326fi
25327if test -z "${BUILDDOCS_TRUE}" && test -z "${BUILDDOCS_FALSE}"; then
25328  as_fn_error $? "conditional \"BUILDDOCS\" was never defined.
25329Usually this means the macro was only invoked conditionally." "$LINENO" 5
25330fi
25331if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
25332  as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
25333Usually this means the macro was only invoked conditionally." "$LINENO" 5
25334fi
25335if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then
25336  as_fn_error $? "conditional \"ENABLE_DEVEL_DOCS\" was never defined.
25337Usually this means the macro was only invoked conditionally." "$LINENO" 5
25338fi
25339if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
25340  as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
25341Usually this means the macro was only invoked conditionally." "$LINENO" 5
25342fi
25343if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
25344  as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
25345Usually this means the macro was only invoked conditionally." "$LINENO" 5
25346fi
25347if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
25348  as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
25349Usually this means the macro was only invoked conditionally." "$LINENO" 5
25350fi
25351if test -z "${INSTALL_LIBXF86CONFIG_TRUE}" && test -z "${INSTALL_LIBXF86CONFIG_FALSE}"; then
25352  as_fn_error $? "conditional \"INSTALL_LIBXF86CONFIG\" was never defined.
25353Usually this means the macro was only invoked conditionally." "$LINENO" 5
25354fi
25355if test -z "${CONFIG_UDEV_TRUE}" && test -z "${CONFIG_UDEV_FALSE}"; then
25356  as_fn_error $? "conditional \"CONFIG_UDEV\" was never defined.
25357Usually this means the macro was only invoked conditionally." "$LINENO" 5
25358fi
25359if test -z "${HAVE_DBUS_TRUE}" && test -z "${HAVE_DBUS_FALSE}"; then
25360  as_fn_error $? "conditional \"HAVE_DBUS\" was never defined.
25361Usually this means the macro was only invoked conditionally." "$LINENO" 5
25362fi
25363if test -z "${CONFIG_DBUS_API_TRUE}" && test -z "${CONFIG_DBUS_API_FALSE}"; then
25364  as_fn_error $? "conditional \"CONFIG_DBUS_API\" was never defined.
25365Usually this means the macro was only invoked conditionally." "$LINENO" 5
25366fi
25367if test -z "${CONFIG_HAL_TRUE}" && test -z "${CONFIG_HAL_FALSE}"; then
25368  as_fn_error $? "conditional \"CONFIG_HAL\" was never defined.
25369Usually this means the macro was only invoked conditionally." "$LINENO" 5
25370fi
25371if test -z "${CONFIG_NEED_DBUS_TRUE}" && test -z "${CONFIG_NEED_DBUS_FALSE}"; then
25372  as_fn_error $? "conditional \"CONFIG_NEED_DBUS\" was never defined.
25373Usually this means the macro was only invoked conditionally." "$LINENO" 5
25374fi
25375if test -z "${XV_TRUE}" && test -z "${XV_FALSE}"; then
25376  as_fn_error $? "conditional \"XV\" was never defined.
25377Usually this means the macro was only invoked conditionally." "$LINENO" 5
25378fi
25379if test -z "${XVMC_TRUE}" && test -z "${XVMC_FALSE}"; then
25380  as_fn_error $? "conditional \"XVMC\" was never defined.
25381Usually this means the macro was only invoked conditionally." "$LINENO" 5
25382fi
25383if test -z "${XREGISTRY_TRUE}" && test -z "${XREGISTRY_FALSE}"; then
25384  as_fn_error $? "conditional \"XREGISTRY\" was never defined.
25385Usually this means the macro was only invoked conditionally." "$LINENO" 5
25386fi
25387if test -z "${COMPOSITE_TRUE}" && test -z "${COMPOSITE_FALSE}"; then
25388  as_fn_error $? "conditional \"COMPOSITE\" was never defined.
25389Usually this means the macro was only invoked conditionally." "$LINENO" 5
25390fi
25391if test -z "${MITSHM_TRUE}" && test -z "${MITSHM_FALSE}"; then
25392  as_fn_error $? "conditional \"MITSHM\" was never defined.
25393Usually this means the macro was only invoked conditionally." "$LINENO" 5
25394fi
25395if test -z "${RECORD_TRUE}" && test -z "${RECORD_FALSE}"; then
25396  as_fn_error $? "conditional \"RECORD\" was never defined.
25397Usually this means the macro was only invoked conditionally." "$LINENO" 5
25398fi
25399if test -z "${SCREENSAVER_TRUE}" && test -z "${SCREENSAVER_FALSE}"; then
25400  as_fn_error $? "conditional \"SCREENSAVER\" was never defined.
25401Usually this means the macro was only invoked conditionally." "$LINENO" 5
25402fi
25403if test -z "${RES_TRUE}" && test -z "${RES_FALSE}"; then
25404  as_fn_error $? "conditional \"RES\" was never defined.
25405Usually this means the macro was only invoked conditionally." "$LINENO" 5
25406fi
25407if test -z "${GLX_TRUE}" && test -z "${GLX_FALSE}"; then
25408  as_fn_error $? "conditional \"GLX\" was never defined.
25409Usually this means the macro was only invoked conditionally." "$LINENO" 5
25410fi
25411if test -z "${AIGLX_TRUE}" && test -z "${AIGLX_FALSE}"; then
25412  as_fn_error $? "conditional \"AIGLX\" was never defined.
25413Usually this means the macro was only invoked conditionally." "$LINENO" 5
25414fi
25415if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
25416  as_fn_error $? "conditional \"DRI\" was never defined.
25417Usually this means the macro was only invoked conditionally." "$LINENO" 5
25418fi
25419if test -z "${DRI2_TRUE}" && test -z "${DRI2_FALSE}"; then
25420  as_fn_error $? "conditional \"DRI2\" was never defined.
25421Usually this means the macro was only invoked conditionally." "$LINENO" 5
25422fi
25423if test -z "${DRI2_AIGLX_TRUE}" && test -z "${DRI2_AIGLX_FALSE}"; then
25424  as_fn_error $? "conditional \"DRI2_AIGLX\" was never defined.
25425Usually this means the macro was only invoked conditionally." "$LINENO" 5
25426fi
25427if test -z "${XINERAMA_TRUE}" && test -z "${XINERAMA_FALSE}"; then
25428  as_fn_error $? "conditional \"XINERAMA\" was never defined.
25429Usually this means the macro was only invoked conditionally." "$LINENO" 5
25430fi
25431if test -z "${XACE_TRUE}" && test -z "${XACE_FALSE}"; then
25432  as_fn_error $? "conditional \"XACE\" was never defined.
25433Usually this means the macro was only invoked conditionally." "$LINENO" 5
25434fi
25435if test -z "${XSELINUX_TRUE}" && test -z "${XSELINUX_FALSE}"; then
25436  as_fn_error $? "conditional \"XSELINUX\" was never defined.
25437Usually this means the macro was only invoked conditionally." "$LINENO" 5
25438fi
25439if test -z "${XCSECURITY_TRUE}" && test -z "${XCSECURITY_FALSE}"; then
25440  as_fn_error $? "conditional \"XCSECURITY\" was never defined.
25441Usually this means the macro was only invoked conditionally." "$LINENO" 5
25442fi
25443if test -z "${DBE_TRUE}" && test -z "${DBE_FALSE}"; then
25444  as_fn_error $? "conditional \"DBE\" was never defined.
25445Usually this means the macro was only invoked conditionally." "$LINENO" 5
25446fi
25447if test -z "${XF86BIGFONT_TRUE}" && test -z "${XF86BIGFONT_FALSE}"; then
25448  as_fn_error $? "conditional \"XF86BIGFONT\" was never defined.
25449Usually this means the macro was only invoked conditionally." "$LINENO" 5
25450fi
25451if test -z "${DPMSExtension_TRUE}" && test -z "${DPMSExtension_FALSE}"; then
25452  as_fn_error $? "conditional \"DPMSExtension\" was never defined.
25453Usually this means the macro was only invoked conditionally." "$LINENO" 5
25454fi
25455if test -z "${XCALIBRATE_TRUE}" && test -z "${XCALIBRATE_FALSE}"; then
25456  as_fn_error $? "conditional \"XCALIBRATE\" was never defined.
25457Usually this means the macro was only invoked conditionally." "$LINENO" 5
25458fi
25459if test -z "${XF86UTILS_TRUE}" && test -z "${XF86UTILS_FALSE}"; then
25460  as_fn_error $? "conditional \"XF86UTILS\" was never defined.
25461Usually this means the macro was only invoked conditionally." "$LINENO" 5
25462fi
25463if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
25464  as_fn_error $? "conditional \"XAA\" was never defined.
25465Usually this means the macro was only invoked conditionally." "$LINENO" 5
25466fi
25467if test -z "${VGAHW_TRUE}" && test -z "${VGAHW_FALSE}"; then
25468  as_fn_error $? "conditional \"VGAHW\" was never defined.
25469Usually this means the macro was only invoked conditionally." "$LINENO" 5
25470fi
25471if test -z "${VBE_TRUE}" && test -z "${VBE_FALSE}"; then
25472  as_fn_error $? "conditional \"VBE\" was never defined.
25473Usually this means the macro was only invoked conditionally." "$LINENO" 5
25474fi
25475if test -z "${INT10MODULE_TRUE}" && test -z "${INT10MODULE_FALSE}"; then
25476  as_fn_error $? "conditional \"INT10MODULE\" was never defined.
25477Usually this means the macro was only invoked conditionally." "$LINENO" 5
25478fi
25479if test -z "${XDMCP_TRUE}" && test -z "${XDMCP_FALSE}"; then
25480  as_fn_error $? "conditional \"XDMCP\" was never defined.
25481Usually this means the macro was only invoked conditionally." "$LINENO" 5
25482fi
25483if test -z "${XDMAUTH_TRUE}" && test -z "${XDMAUTH_FALSE}"; then
25484  as_fn_error $? "conditional \"XDMAUTH\" was never defined.
25485Usually this means the macro was only invoked conditionally." "$LINENO" 5
25486fi
25487if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
25488  as_fn_error $? "conditional \"DEBUG\" was never defined.
25489Usually this means the macro was only invoked conditionally." "$LINENO" 5
25490fi
25491if test -z "${UNITTESTS_TRUE}" && test -z "${UNITTESTS_FALSE}"; then
25492  as_fn_error $? "conditional \"UNITTESTS\" was never defined.
25493Usually this means the macro was only invoked conditionally." "$LINENO" 5
25494fi
25495if test -z "${XVFB_TRUE}" && test -z "${XVFB_FALSE}"; then
25496  as_fn_error $? "conditional \"XVFB\" was never defined.
25497Usually this means the macro was only invoked conditionally." "$LINENO" 5
25498fi
25499if test -z "${XNEST_TRUE}" && test -z "${XNEST_FALSE}"; then
25500  as_fn_error $? "conditional \"XNEST\" was never defined.
25501Usually this means the macro was only invoked conditionally." "$LINENO" 5
25502fi
25503if test -z "${XORG_TRUE}" && test -z "${XORG_FALSE}"; then
25504  as_fn_error $? "conditional \"XORG\" was never defined.
25505Usually this means the macro was only invoked conditionally." "$LINENO" 5
25506fi
25507if test -z "${XORG_BUS_LINUXPCI_TRUE}" && test -z "${XORG_BUS_LINUXPCI_FALSE}"; then
25508  as_fn_error $? "conditional \"XORG_BUS_LINUXPCI\" was never defined.
25509Usually this means the macro was only invoked conditionally." "$LINENO" 5
25510fi
25511if test -z "${XORG_BUS_BSDPCI_TRUE}" && test -z "${XORG_BUS_BSDPCI_FALSE}"; then
25512  as_fn_error $? "conditional \"XORG_BUS_BSDPCI\" was never defined.
25513Usually this means the macro was only invoked conditionally." "$LINENO" 5
25514fi
25515if test -z "${XORG_BUS_SPARC_TRUE}" && test -z "${XORG_BUS_SPARC_FALSE}"; then
25516  as_fn_error $? "conditional \"XORG_BUS_SPARC\" was never defined.
25517Usually this means the macro was only invoked conditionally." "$LINENO" 5
25518fi
25519if test -z "${LINUX_IA64_TRUE}" && test -z "${LINUX_IA64_FALSE}"; then
25520  as_fn_error $? "conditional \"LINUX_IA64\" was never defined.
25521Usually this means the macro was only invoked conditionally." "$LINENO" 5
25522fi
25523if test -z "${LINUX_ALPHA_TRUE}" && test -z "${LINUX_ALPHA_FALSE}"; then
25524  as_fn_error $? "conditional \"LINUX_ALPHA\" was never defined.
25525Usually this means the macro was only invoked conditionally." "$LINENO" 5
25526fi
25527if test -z "${LNXACPI_TRUE}" && test -z "${LNXACPI_FALSE}"; then
25528  as_fn_error $? "conditional \"LNXACPI\" was never defined.
25529Usually this means the macro was only invoked conditionally." "$LINENO" 5
25530fi
25531if test -z "${SOLARIS_ASM_INLINE_TRUE}" && test -z "${SOLARIS_ASM_INLINE_FALSE}"; then
25532  as_fn_error $? "conditional \"SOLARIS_ASM_INLINE\" was never defined.
25533Usually this means the macro was only invoked conditionally." "$LINENO" 5
25534fi
25535if test -z "${SOLARIS_VT_TRUE}" && test -z "${SOLARIS_VT_FALSE}"; then
25536  as_fn_error $? "conditional \"SOLARIS_VT\" was never defined.
25537Usually this means the macro was only invoked conditionally." "$LINENO" 5
25538fi
25539if test -z "${DGA_TRUE}" && test -z "${DGA_FALSE}"; then
25540  as_fn_error $? "conditional \"DGA\" was never defined.
25541Usually this means the macro was only invoked conditionally." "$LINENO" 5
25542fi
25543if test -z "${XF86VIDMODE_TRUE}" && test -z "${XF86VIDMODE_FALSE}"; then
25544  as_fn_error $? "conditional \"XF86VIDMODE\" was never defined.
25545Usually this means the macro was only invoked conditionally." "$LINENO" 5
25546fi
25547if test -z "${XWIN_TRUE}" && test -z "${XWIN_FALSE}"; then
25548  as_fn_error $? "conditional \"XWIN\" was never defined.
25549Usually this means the macro was only invoked conditionally." "$LINENO" 5
25550fi
25551if test -z "${XWIN_MULTIWINDOW_TRUE}" && test -z "${XWIN_MULTIWINDOW_FALSE}"; then
25552  as_fn_error $? "conditional \"XWIN_MULTIWINDOW\" was never defined.
25553Usually this means the macro was only invoked conditionally." "$LINENO" 5
25554fi
25555if test -z "${XWIN_MULTIWINDOWEXTWM_TRUE}" && test -z "${XWIN_MULTIWINDOWEXTWM_FALSE}"; then
25556  as_fn_error $? "conditional \"XWIN_MULTIWINDOWEXTWM\" was never defined.
25557Usually this means the macro was only invoked conditionally." "$LINENO" 5
25558fi
25559if test -z "${XWIN_CLIPBOARD_TRUE}" && test -z "${XWIN_CLIPBOARD_FALSE}"; then
25560  as_fn_error $? "conditional \"XWIN_CLIPBOARD\" was never defined.
25561Usually this means the macro was only invoked conditionally." "$LINENO" 5
25562fi
25563if test -z "${XWIN_GLX_WINDOWS_TRUE}" && test -z "${XWIN_GLX_WINDOWS_FALSE}"; then
25564  as_fn_error $? "conditional \"XWIN_GLX_WINDOWS\" was never defined.
25565Usually this means the macro was only invoked conditionally." "$LINENO" 5
25566fi
25567if test -z "${XWIN_NATIVEGDI_TRUE}" && test -z "${XWIN_NATIVEGDI_FALSE}"; then
25568  as_fn_error $? "conditional \"XWIN_NATIVEGDI\" was never defined.
25569Usually this means the macro was only invoked conditionally." "$LINENO" 5
25570fi
25571if test -z "${XWIN_PRIMARYFB_TRUE}" && test -z "${XWIN_PRIMARYFB_FALSE}"; then
25572  as_fn_error $? "conditional \"XWIN_PRIMARYFB\" was never defined.
25573Usually this means the macro was only invoked conditionally." "$LINENO" 5
25574fi
25575if test -z "${XWIN_RANDR_TRUE}" && test -z "${XWIN_RANDR_FALSE}"; then
25576  as_fn_error $? "conditional \"XWIN_RANDR\" was never defined.
25577Usually this means the macro was only invoked conditionally." "$LINENO" 5
25578fi
25579if test -z "${XWIN_XV_TRUE}" && test -z "${XWIN_XV_FALSE}"; then
25580  as_fn_error $? "conditional \"XWIN_XV\" was never defined.
25581Usually this means the macro was only invoked conditionally." "$LINENO" 5
25582fi
25583if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
25584  as_fn_error $? "conditional \"am__fastdepOBJC\" was never defined.
25585Usually this means the macro was only invoked conditionally." "$LINENO" 5
25586fi
25587if test -z "${XQUARTZ_TRUE}" && test -z "${XQUARTZ_FALSE}"; then
25588  as_fn_error $? "conditional \"XQUARTZ\" was never defined.
25589Usually this means the macro was only invoked conditionally." "$LINENO" 5
25590fi
25591if test -z "${XQUARTZ_SPARKLE_TRUE}" && test -z "${XQUARTZ_SPARKLE_FALSE}"; then
25592  as_fn_error $? "conditional \"XQUARTZ_SPARKLE\" was never defined.
25593Usually this means the macro was only invoked conditionally." "$LINENO" 5
25594fi
25595if test -z "${STANDALONE_XPBPROXY_TRUE}" && test -z "${STANDALONE_XPBPROXY_FALSE}"; then
25596  as_fn_error $? "conditional \"STANDALONE_XPBPROXY\" was never defined.
25597Usually this means the macro was only invoked conditionally." "$LINENO" 5
25598fi
25599if test -z "${DMX_TRUE}" && test -z "${DMX_FALSE}"; then
25600  as_fn_error $? "conditional \"DMX\" was never defined.
25601Usually this means the macro was only invoked conditionally." "$LINENO" 5
25602fi
25603if test -z "${DMX_BUILD_LNX_TRUE}" && test -z "${DMX_BUILD_LNX_FALSE}"; then
25604  as_fn_error $? "conditional \"DMX_BUILD_LNX\" was never defined.
25605Usually this means the macro was only invoked conditionally." "$LINENO" 5
25606fi
25607if test -z "${DMX_BUILD_USB_TRUE}" && test -z "${DMX_BUILD_USB_FALSE}"; then
25608  as_fn_error $? "conditional \"DMX_BUILD_USB\" was never defined.
25609Usually this means the macro was only invoked conditionally." "$LINENO" 5
25610fi
25611if test -z "${KDRIVE_TRUE}" && test -z "${KDRIVE_FALSE}"; then
25612  as_fn_error $? "conditional \"KDRIVE\" was never defined.
25613Usually this means the macro was only invoked conditionally." "$LINENO" 5
25614fi
25615if test -z "${KDRIVELINUX_TRUE}" && test -z "${KDRIVELINUX_FALSE}"; then
25616  as_fn_error $? "conditional \"KDRIVELINUX\" was never defined.
25617Usually this means the macro was only invoked conditionally." "$LINENO" 5
25618fi
25619if test -z "${KDRIVE_EVDEV_TRUE}" && test -z "${KDRIVE_EVDEV_FALSE}"; then
25620  as_fn_error $? "conditional \"KDRIVE_EVDEV\" was never defined.
25621Usually this means the macro was only invoked conditionally." "$LINENO" 5
25622fi
25623if test -z "${KDRIVE_KBD_TRUE}" && test -z "${KDRIVE_KBD_FALSE}"; then
25624  as_fn_error $? "conditional \"KDRIVE_KBD\" was never defined.
25625Usually this means the macro was only invoked conditionally." "$LINENO" 5
25626fi
25627if test -z "${KDRIVE_MOUSE_TRUE}" && test -z "${KDRIVE_MOUSE_FALSE}"; then
25628  as_fn_error $? "conditional \"KDRIVE_MOUSE\" was never defined.
25629Usually this means the macro was only invoked conditionally." "$LINENO" 5
25630fi
25631if test -z "${TSLIB_TRUE}" && test -z "${TSLIB_FALSE}"; then
25632  as_fn_error $? "conditional \"TSLIB\" was never defined.
25633Usually this means the macro was only invoked conditionally." "$LINENO" 5
25634fi
25635if test -z "${KDRIVEFBDEV_TRUE}" && test -z "${KDRIVEFBDEV_FALSE}"; then
25636  as_fn_error $? "conditional \"KDRIVEFBDEV\" was never defined.
25637Usually this means the macro was only invoked conditionally." "$LINENO" 5
25638fi
25639if test -z "${XEPHYR_TRUE}" && test -z "${XEPHYR_FALSE}"; then
25640  as_fn_error $? "conditional \"XEPHYR\" was never defined.
25641Usually this means the macro was only invoked conditionally." "$LINENO" 5
25642fi
25643if test -z "${BUILD_KDRIVEFBDEVLIB_TRUE}" && test -z "${BUILD_KDRIVEFBDEVLIB_FALSE}"; then
25644  as_fn_error $? "conditional \"BUILD_KDRIVEFBDEVLIB\" was never defined.
25645Usually this means the macro was only invoked conditionally." "$LINENO" 5
25646fi
25647if test -z "${XFAKESERVER_TRUE}" && test -z "${XFAKESERVER_FALSE}"; then
25648  as_fn_error $? "conditional \"XFAKESERVER\" was never defined.
25649Usually this means the macro was only invoked conditionally." "$LINENO" 5
25650fi
25651
25652: "${CONFIG_STATUS=./config.status}"
25653ac_write_fail=0
25654ac_clean_files_save=$ac_clean_files
25655ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25656{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25657$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25658as_write_fail=0
25659cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25660#! $SHELL
25661# Generated by $as_me.
25662# Run this file to recreate the current configuration.
25663# Compiler output produced by configure, useful for debugging
25664# configure, is in config.log if it exists.
25665
25666debug=false
25667ac_cs_recheck=false
25668ac_cs_silent=false
25669
25670SHELL=\${CONFIG_SHELL-$SHELL}
25671export SHELL
25672_ASEOF
25673cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25674## -------------------- ##
25675## M4sh Initialization. ##
25676## -------------------- ##
25677
25678# Be more Bourne compatible
25679DUALCASE=1; export DUALCASE # for MKS sh
25680if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25681  emulate sh
25682  NULLCMD=:
25683  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25684  # is contrary to our usage.  Disable this feature.
25685  alias -g '${1+"$@"}'='"$@"'
25686  setopt NO_GLOB_SUBST
25687else
25688  case `(set -o) 2>/dev/null` in #(
25689  *posix*) :
25690    set -o posix ;; #(
25691  *) :
25692     ;;
25693esac
25694fi
25695
25696
25697as_nl='
25698'
25699export as_nl
25700# Printing a long string crashes Solaris 7 /usr/bin/printf.
25701as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25702as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25703as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25704# Prefer a ksh shell builtin over an external printf program on Solaris,
25705# but without wasting forks for bash or zsh.
25706if test -z "$BASH_VERSION$ZSH_VERSION" \
25707    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25708  as_echo='print -r --'
25709  as_echo_n='print -rn --'
25710elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25711  as_echo='printf %s\n'
25712  as_echo_n='printf %s'
25713else
25714  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25715    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25716    as_echo_n='/usr/ucb/echo -n'
25717  else
25718    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25719    as_echo_n_body='eval
25720      arg=$1;
25721      case $arg in #(
25722      *"$as_nl"*)
25723	expr "X$arg" : "X\\(.*\\)$as_nl";
25724	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25725      esac;
25726      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25727    '
25728    export as_echo_n_body
25729    as_echo_n='sh -c $as_echo_n_body as_echo'
25730  fi
25731  export as_echo_body
25732  as_echo='sh -c $as_echo_body as_echo'
25733fi
25734
25735# The user is always right.
25736if test "${PATH_SEPARATOR+set}" != set; then
25737  PATH_SEPARATOR=:
25738  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25739    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25740      PATH_SEPARATOR=';'
25741  }
25742fi
25743
25744
25745# IFS
25746# We need space, tab and new line, in precisely that order.  Quoting is
25747# there to prevent editors from complaining about space-tab.
25748# (If _AS_PATH_WALK were called with IFS unset, it would disable word
25749# splitting by setting IFS to empty value.)
25750IFS=" ""	$as_nl"
25751
25752# Find who we are.  Look in the path if we contain no directory separator.
25753as_myself=
25754case $0 in #((
25755  *[\\/]* ) as_myself=$0 ;;
25756  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25757for as_dir in $PATH
25758do
25759  IFS=$as_save_IFS
25760  test -z "$as_dir" && as_dir=.
25761    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25762  done
25763IFS=$as_save_IFS
25764
25765     ;;
25766esac
25767# We did not find ourselves, most probably we were run as `sh COMMAND'
25768# in which case we are not to be found in the path.
25769if test "x$as_myself" = x; then
25770  as_myself=$0
25771fi
25772if test ! -f "$as_myself"; then
25773  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25774  exit 1
25775fi
25776
25777# Unset variables that we do not need and which cause bugs (e.g. in
25778# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
25779# suppresses any "Segmentation fault" message there.  '((' could
25780# trigger a bug in pdksh 5.2.14.
25781for as_var in BASH_ENV ENV MAIL MAILPATH
25782do eval test x\${$as_var+set} = xset \
25783  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25784done
25785PS1='$ '
25786PS2='> '
25787PS4='+ '
25788
25789# NLS nuisances.
25790LC_ALL=C
25791export LC_ALL
25792LANGUAGE=C
25793export LANGUAGE
25794
25795# CDPATH.
25796(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25797
25798
25799# as_fn_error STATUS ERROR [LINENO LOG_FD]
25800# ----------------------------------------
25801# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25802# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25803# script with STATUS, using 1 if that was 0.
25804as_fn_error ()
25805{
25806  as_status=$1; test $as_status -eq 0 && as_status=1
25807  if test "$4"; then
25808    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25809    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
25810  fi
25811  $as_echo "$as_me: error: $2" >&2
25812  as_fn_exit $as_status
25813} # as_fn_error
25814
25815
25816# as_fn_set_status STATUS
25817# -----------------------
25818# Set $? to STATUS, without forking.
25819as_fn_set_status ()
25820{
25821  return $1
25822} # as_fn_set_status
25823
25824# as_fn_exit STATUS
25825# -----------------
25826# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25827as_fn_exit ()
25828{
25829  set +e
25830  as_fn_set_status $1
25831  exit $1
25832} # as_fn_exit
25833
25834# as_fn_unset VAR
25835# ---------------
25836# Portably unset VAR.
25837as_fn_unset ()
25838{
25839  { eval $1=; unset $1;}
25840}
25841as_unset=as_fn_unset
25842# as_fn_append VAR VALUE
25843# ----------------------
25844# Append the text in VALUE to the end of the definition contained in VAR. Take
25845# advantage of any shell optimizations that allow amortized linear growth over
25846# repeated appends, instead of the typical quadratic growth present in naive
25847# implementations.
25848if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25849  eval 'as_fn_append ()
25850  {
25851    eval $1+=\$2
25852  }'
25853else
25854  as_fn_append ()
25855  {
25856    eval $1=\$$1\$2
25857  }
25858fi # as_fn_append
25859
25860# as_fn_arith ARG...
25861# ------------------
25862# Perform arithmetic evaluation on the ARGs, and store the result in the
25863# global $as_val. Take advantage of shells that can avoid forks. The arguments
25864# must be portable across $(()) and expr.
25865if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25866  eval 'as_fn_arith ()
25867  {
25868    as_val=$(( $* ))
25869  }'
25870else
25871  as_fn_arith ()
25872  {
25873    as_val=`expr "$@" || test $? -eq 1`
25874  }
25875fi # as_fn_arith
25876
25877
25878if expr a : '\(a\)' >/dev/null 2>&1 &&
25879   test "X`expr 00001 : '.*\(...\)'`" = X001; then
25880  as_expr=expr
25881else
25882  as_expr=false
25883fi
25884
25885if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25886  as_basename=basename
25887else
25888  as_basename=false
25889fi
25890
25891if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25892  as_dirname=dirname
25893else
25894  as_dirname=false
25895fi
25896
25897as_me=`$as_basename -- "$0" ||
25898$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25899	 X"$0" : 'X\(//\)$' \| \
25900	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25901$as_echo X/"$0" |
25902    sed '/^.*\/\([^/][^/]*\)\/*$/{
25903	    s//\1/
25904	    q
25905	  }
25906	  /^X\/\(\/\/\)$/{
25907	    s//\1/
25908	    q
25909	  }
25910	  /^X\/\(\/\).*/{
25911	    s//\1/
25912	    q
25913	  }
25914	  s/.*/./; q'`
25915
25916# Avoid depending upon Character Ranges.
25917as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25918as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25919as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25920as_cr_digits='0123456789'
25921as_cr_alnum=$as_cr_Letters$as_cr_digits
25922
25923ECHO_C= ECHO_N= ECHO_T=
25924case `echo -n x` in #(((((
25925-n*)
25926  case `echo 'xy\c'` in
25927  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
25928  xy)  ECHO_C='\c';;
25929  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
25930       ECHO_T='	';;
25931  esac;;
25932*)
25933  ECHO_N='-n';;
25934esac
25935
25936rm -f conf$$ conf$$.exe conf$$.file
25937if test -d conf$$.dir; then
25938  rm -f conf$$.dir/conf$$.file
25939else
25940  rm -f conf$$.dir
25941  mkdir conf$$.dir 2>/dev/null
25942fi
25943if (echo >conf$$.file) 2>/dev/null; then
25944  if ln -s conf$$.file conf$$ 2>/dev/null; then
25945    as_ln_s='ln -s'
25946    # ... but there are two gotchas:
25947    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25948    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25949    # In both cases, we have to default to `cp -p'.
25950    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25951      as_ln_s='cp -p'
25952  elif ln conf$$.file conf$$ 2>/dev/null; then
25953    as_ln_s=ln
25954  else
25955    as_ln_s='cp -p'
25956  fi
25957else
25958  as_ln_s='cp -p'
25959fi
25960rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25961rmdir conf$$.dir 2>/dev/null
25962
25963
25964# as_fn_mkdir_p
25965# -------------
25966# Create "$as_dir" as a directory, including parents if necessary.
25967as_fn_mkdir_p ()
25968{
25969
25970  case $as_dir in #(
25971  -*) as_dir=./$as_dir;;
25972  esac
25973  test -d "$as_dir" || eval $as_mkdir_p || {
25974    as_dirs=
25975    while :; do
25976      case $as_dir in #(
25977      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25978      *) as_qdir=$as_dir;;
25979      esac
25980      as_dirs="'$as_qdir' $as_dirs"
25981      as_dir=`$as_dirname -- "$as_dir" ||
25982$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25983	 X"$as_dir" : 'X\(//\)[^/]' \| \
25984	 X"$as_dir" : 'X\(//\)$' \| \
25985	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25986$as_echo X"$as_dir" |
25987    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25988	    s//\1/
25989	    q
25990	  }
25991	  /^X\(\/\/\)[^/].*/{
25992	    s//\1/
25993	    q
25994	  }
25995	  /^X\(\/\/\)$/{
25996	    s//\1/
25997	    q
25998	  }
25999	  /^X\(\/\).*/{
26000	    s//\1/
26001	    q
26002	  }
26003	  s/.*/./; q'`
26004      test -d "$as_dir" && break
26005    done
26006    test -z "$as_dirs" || eval "mkdir $as_dirs"
26007  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
26008
26009
26010} # as_fn_mkdir_p
26011if mkdir -p . 2>/dev/null; then
26012  as_mkdir_p='mkdir -p "$as_dir"'
26013else
26014  test -d ./-p && rmdir ./-p
26015  as_mkdir_p=false
26016fi
26017
26018if test -x / >/dev/null 2>&1; then
26019  as_test_x='test -x'
26020else
26021  if ls -dL / >/dev/null 2>&1; then
26022    as_ls_L_option=L
26023  else
26024    as_ls_L_option=
26025  fi
26026  as_test_x='
26027    eval sh -c '\''
26028      if test -d "$1"; then
26029	test -d "$1/.";
26030      else
26031	case $1 in #(
26032	-*)set "./$1";;
26033	esac;
26034	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
26035	???[sx]*):;;*)false;;esac;fi
26036    '\'' sh
26037  '
26038fi
26039as_executable_p=$as_test_x
26040
26041# Sed expression to map a string onto a valid CPP name.
26042as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26043
26044# Sed expression to map a string onto a valid variable name.
26045as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26046
26047
26048exec 6>&1
26049## ----------------------------------- ##
26050## Main body of $CONFIG_STATUS script. ##
26051## ----------------------------------- ##
26052_ASEOF
26053test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26054
26055cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26056# Save the log message, to keep $0 and so on meaningful, and to
26057# report actual input values of CONFIG_FILES etc. instead of their
26058# values after options handling.
26059ac_log="
26060This file was extended by xorg-server $as_me 1.9.5, which was
26061generated by GNU Autoconf 2.68.  Invocation command line was
26062
26063  CONFIG_FILES    = $CONFIG_FILES
26064  CONFIG_HEADERS  = $CONFIG_HEADERS
26065  CONFIG_LINKS    = $CONFIG_LINKS
26066  CONFIG_COMMANDS = $CONFIG_COMMANDS
26067  $ $0 $@
26068
26069on `(hostname || uname -n) 2>/dev/null | sed 1q`
26070"
26071
26072_ACEOF
26073
26074case $ac_config_files in *"
26075"*) set x $ac_config_files; shift; ac_config_files=$*;;
26076esac
26077
26078case $ac_config_headers in *"
26079"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26080esac
26081
26082
26083cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26084# Files that config.status was made for.
26085config_files="$ac_config_files"
26086config_headers="$ac_config_headers"
26087config_commands="$ac_config_commands"
26088
26089_ACEOF
26090
26091cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26092ac_cs_usage="\
26093\`$as_me' instantiates files and other configuration actions
26094from templates according to the current configuration.  Unless the files
26095and actions are specified as TAGs, all are instantiated by default.
26096
26097Usage: $0 [OPTION]... [TAG]...
26098
26099  -h, --help       print this help, then exit
26100  -V, --version    print version number and configuration settings, then exit
26101      --config     print configuration, then exit
26102  -q, --quiet, --silent
26103                   do not print progress messages
26104  -d, --debug      don't remove temporary files
26105      --recheck    update $as_me by reconfiguring in the same conditions
26106      --file=FILE[:TEMPLATE]
26107                   instantiate the configuration file FILE
26108      --header=FILE[:TEMPLATE]
26109                   instantiate the configuration header FILE
26110
26111Configuration files:
26112$config_files
26113
26114Configuration headers:
26115$config_headers
26116
26117Configuration commands:
26118$config_commands
26119
26120Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
26121
26122_ACEOF
26123cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26124ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
26125ac_cs_version="\\
26126xorg-server config.status 1.9.5
26127configured by $0, generated by GNU Autoconf 2.68,
26128  with options \\"\$ac_cs_config\\"
26129
26130Copyright (C) 2010 Free Software Foundation, Inc.
26131This config.status script is free software; the Free Software Foundation
26132gives unlimited permission to copy, distribute and modify it."
26133
26134ac_pwd='$ac_pwd'
26135srcdir='$srcdir'
26136INSTALL='$INSTALL'
26137MKDIR_P='$MKDIR_P'
26138AWK='$AWK'
26139test -n "\$AWK" || AWK=awk
26140_ACEOF
26141
26142cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26143# The default lists apply if the user does not specify any file.
26144ac_need_defaults=:
26145while test $# != 0
26146do
26147  case $1 in
26148  --*=?*)
26149    ac_option=`expr "X$1" : 'X\([^=]*\)='`
26150    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26151    ac_shift=:
26152    ;;
26153  --*=)
26154    ac_option=`expr "X$1" : 'X\([^=]*\)='`
26155    ac_optarg=
26156    ac_shift=:
26157    ;;
26158  *)
26159    ac_option=$1
26160    ac_optarg=$2
26161    ac_shift=shift
26162    ;;
26163  esac
26164
26165  case $ac_option in
26166  # Handling of the options.
26167  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26168    ac_cs_recheck=: ;;
26169  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26170    $as_echo "$ac_cs_version"; exit ;;
26171  --config | --confi | --conf | --con | --co | --c )
26172    $as_echo "$ac_cs_config"; exit ;;
26173  --debug | --debu | --deb | --de | --d | -d )
26174    debug=: ;;
26175  --file | --fil | --fi | --f )
26176    $ac_shift
26177    case $ac_optarg in
26178    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26179    '') as_fn_error $? "missing file argument" ;;
26180    esac
26181    as_fn_append CONFIG_FILES " '$ac_optarg'"
26182    ac_need_defaults=false;;
26183  --header | --heade | --head | --hea )
26184    $ac_shift
26185    case $ac_optarg in
26186    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26187    esac
26188    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26189    ac_need_defaults=false;;
26190  --he | --h)
26191    # Conflict between --help and --header
26192    as_fn_error $? "ambiguous option: \`$1'
26193Try \`$0 --help' for more information.";;
26194  --help | --hel | -h )
26195    $as_echo "$ac_cs_usage"; exit ;;
26196  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26197  | -silent | --silent | --silen | --sile | --sil | --si | --s)
26198    ac_cs_silent=: ;;
26199
26200  # This is an error.
26201  -*) as_fn_error $? "unrecognized option: \`$1'
26202Try \`$0 --help' for more information." ;;
26203
26204  *) as_fn_append ac_config_targets " $1"
26205     ac_need_defaults=false ;;
26206
26207  esac
26208  shift
26209done
26210
26211ac_configure_extra_args=
26212
26213if $ac_cs_silent; then
26214  exec 6>/dev/null
26215  ac_configure_extra_args="$ac_configure_extra_args --silent"
26216fi
26217
26218_ACEOF
26219cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26220if \$ac_cs_recheck; then
26221  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26222  shift
26223  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26224  CONFIG_SHELL='$SHELL'
26225  export CONFIG_SHELL
26226  exec "\$@"
26227fi
26228
26229_ACEOF
26230cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26231exec 5>>config.log
26232{
26233  echo
26234  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26235## Running $as_me. ##
26236_ASBOX
26237  $as_echo "$ac_log"
26238} >&5
26239
26240_ACEOF
26241cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26242#
26243# INIT-COMMANDS
26244#
26245AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26246
26247
26248# The HP-UX ksh and POSIX shell print the target directory to stdout
26249# if CDPATH is set.
26250(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26251
26252sed_quote_subst='$sed_quote_subst'
26253double_quote_subst='$double_quote_subst'
26254delay_variable_subst='$delay_variable_subst'
26255AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
26256DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
26257OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
26258enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
26259macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
26260macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
26261enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
26262pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
26263enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
26264SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
26265ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
26266host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
26267host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
26268host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
26269build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
26270build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
26271build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
26272SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
26273Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
26274GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
26275EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
26276FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
26277LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
26278NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
26279LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
26280max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
26281ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
26282exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
26283lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
26284lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
26285lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
26286lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
26287lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
26288reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
26289reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
26290deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
26291file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
26292file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
26293want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
26294sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
26295AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
26296AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
26297archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
26298STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
26299RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
26300old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26301old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26302old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
26303lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
26304CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
26305CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
26306compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
26307GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
26308lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
26309lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
26310lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
26311lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
26312nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
26313lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
26314objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
26315MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
26316lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
26317lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
26318lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
26319lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
26320lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
26321need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
26322MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
26323DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
26324NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
26325LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
26326OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
26327OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
26328libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
26329shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
26330extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26331archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
26332enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
26333export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
26334whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
26335compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
26336old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
26337old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26338archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
26339archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26340module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
26341module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26342with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
26343allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
26344no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
26345hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
26346hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
26347hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
26348hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
26349hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
26350hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
26351hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
26352hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
26353inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
26354link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
26355always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
26356export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
26357exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
26358include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
26359prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
26360postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
26361file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
26362variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
26363need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
26364need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
26365version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
26366runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
26367shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
26368shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
26369libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
26370library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
26371soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
26372install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
26373postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26374postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26375finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
26376finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
26377hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
26378sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
26379sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
26380hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
26381enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
26382enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
26383enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
26384old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
26385striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
26386
26387LTCC='$LTCC'
26388LTCFLAGS='$LTCFLAGS'
26389compiler='$compiler_DEFAULT'
26390
26391# A function that is used when there is no print builtin or printf.
26392func_fallback_echo ()
26393{
26394  eval 'cat <<_LTECHO_EOF
26395\$1
26396_LTECHO_EOF'
26397}
26398
26399# Quote evaled strings.
26400for var in AS \
26401DLLTOOL \
26402OBJDUMP \
26403SHELL \
26404ECHO \
26405SED \
26406GREP \
26407EGREP \
26408FGREP \
26409LD \
26410NM \
26411LN_S \
26412lt_SP2NL \
26413lt_NL2SP \
26414reload_flag \
26415deplibs_check_method \
26416file_magic_cmd \
26417file_magic_glob \
26418want_nocaseglob \
26419sharedlib_from_linklib_cmd \
26420AR \
26421AR_FLAGS \
26422archiver_list_spec \
26423STRIP \
26424RANLIB \
26425CC \
26426CFLAGS \
26427compiler \
26428lt_cv_sys_global_symbol_pipe \
26429lt_cv_sys_global_symbol_to_cdecl \
26430lt_cv_sys_global_symbol_to_c_name_address \
26431lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
26432nm_file_list_spec \
26433lt_prog_compiler_no_builtin_flag \
26434lt_prog_compiler_pic \
26435lt_prog_compiler_wl \
26436lt_prog_compiler_static \
26437lt_cv_prog_compiler_c_o \
26438need_locks \
26439MANIFEST_TOOL \
26440DSYMUTIL \
26441NMEDIT \
26442LIPO \
26443OTOOL \
26444OTOOL64 \
26445shrext_cmds \
26446export_dynamic_flag_spec \
26447whole_archive_flag_spec \
26448compiler_needs_object \
26449with_gnu_ld \
26450allow_undefined_flag \
26451no_undefined_flag \
26452hardcode_libdir_flag_spec \
26453hardcode_libdir_flag_spec_ld \
26454hardcode_libdir_separator \
26455exclude_expsyms \
26456include_expsyms \
26457file_list_spec \
26458variables_saved_for_relink \
26459libname_spec \
26460library_names_spec \
26461soname_spec \
26462install_override_mode \
26463finish_eval \
26464old_striplib \
26465striplib; do
26466    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26467    *[\\\\\\\`\\"\\\$]*)
26468      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
26469      ;;
26470    *)
26471      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26472      ;;
26473    esac
26474done
26475
26476# Double-quote double-evaled strings.
26477for var in reload_cmds \
26478old_postinstall_cmds \
26479old_postuninstall_cmds \
26480old_archive_cmds \
26481extract_expsyms_cmds \
26482old_archive_from_new_cmds \
26483old_archive_from_expsyms_cmds \
26484archive_cmds \
26485archive_expsym_cmds \
26486module_cmds \
26487module_expsym_cmds \
26488export_symbols_cmds \
26489prelink_cmds \
26490postlink_cmds \
26491postinstall_cmds \
26492postuninstall_cmds \
26493finish_cmds \
26494sys_lib_search_path_spec \
26495sys_lib_dlsearch_path_spec; do
26496    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26497    *[\\\\\\\`\\"\\\$]*)
26498      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
26499      ;;
26500    *)
26501      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26502      ;;
26503    esac
26504done
26505
26506ac_aux_dir='$ac_aux_dir'
26507xsi_shell='$xsi_shell'
26508lt_shell_append='$lt_shell_append'
26509
26510# See if we are running on zsh, and set the options which allow our
26511# commands through without removal of \ escapes INIT.
26512if test -n "\${ZSH_VERSION+set}" ; then
26513   setopt NO_GLOB_SUBST
26514fi
26515
26516
26517    PACKAGE='$PACKAGE'
26518    VERSION='$VERSION'
26519    TIMESTAMP='$TIMESTAMP'
26520    RM='$RM'
26521    ofile='$ofile'
26522
26523
26524
26525
26526_ACEOF
26527
26528cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26529
26530# Handling of arguments.
26531for ac_config_target in $ac_config_targets
26532do
26533  case $ac_config_target in
26534    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26535    "include/do-not-use-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/do-not-use-config.h" ;;
26536    "include/xorg-server.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xorg-server.h" ;;
26537    "include/dix-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/dix-config.h" ;;
26538    "include/xorg-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xorg-config.h" ;;
26539    "include/xkb-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xkb-config.h" ;;
26540    "include/xwin-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xwin-config.h" ;;
26541    "include/kdrive-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/kdrive-config.h" ;;
26542    "include/version-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/version-config.h" ;;
26543    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26544    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26545    "glx/Makefile") CONFIG_FILES="$CONFIG_FILES glx/Makefile" ;;
26546    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
26547    "composite/Makefile") CONFIG_FILES="$CONFIG_FILES composite/Makefile" ;;
26548    "damageext/Makefile") CONFIG_FILES="$CONFIG_FILES damageext/Makefile" ;;
26549    "dbe/Makefile") CONFIG_FILES="$CONFIG_FILES dbe/Makefile" ;;
26550    "dix/Makefile") CONFIG_FILES="$CONFIG_FILES dix/Makefile" ;;
26551    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
26552    "doc/xml/Makefile") CONFIG_FILES="$CONFIG_FILES doc/xml/Makefile" ;;
26553    "doc/xml/dtrace/Makefile") CONFIG_FILES="$CONFIG_FILES doc/xml/dtrace/Makefile" ;;
26554    "doc/xml/xserver.ent") CONFIG_FILES="$CONFIG_FILES doc/xml/xserver.ent" ;;
26555    "fb/Makefile") CONFIG_FILES="$CONFIG_FILES fb/Makefile" ;;
26556    "record/Makefile") CONFIG_FILES="$CONFIG_FILES record/Makefile" ;;
26557    "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
26558    "mi/Makefile") CONFIG_FILES="$CONFIG_FILES mi/Makefile" ;;
26559    "miext/Makefile") CONFIG_FILES="$CONFIG_FILES miext/Makefile" ;;
26560    "miext/damage/Makefile") CONFIG_FILES="$CONFIG_FILES miext/damage/Makefile" ;;
26561    "miext/shadow/Makefile") CONFIG_FILES="$CONFIG_FILES miext/shadow/Makefile" ;;
26562    "miext/cw/Makefile") CONFIG_FILES="$CONFIG_FILES miext/cw/Makefile" ;;
26563    "miext/rootless/Makefile") CONFIG_FILES="$CONFIG_FILES miext/rootless/Makefile" ;;
26564    "os/Makefile") CONFIG_FILES="$CONFIG_FILES os/Makefile" ;;
26565    "randr/Makefile") CONFIG_FILES="$CONFIG_FILES randr/Makefile" ;;
26566    "render/Makefile") CONFIG_FILES="$CONFIG_FILES render/Makefile" ;;
26567    "xkb/Makefile") CONFIG_FILES="$CONFIG_FILES xkb/Makefile" ;;
26568    "Xext/Makefile") CONFIG_FILES="$CONFIG_FILES Xext/Makefile" ;;
26569    "Xi/Makefile") CONFIG_FILES="$CONFIG_FILES Xi/Makefile" ;;
26570    "xfixes/Makefile") CONFIG_FILES="$CONFIG_FILES xfixes/Makefile" ;;
26571    "exa/Makefile") CONFIG_FILES="$CONFIG_FILES exa/Makefile" ;;
26572    "hw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/Makefile" ;;
26573    "hw/xfree86/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/Makefile" ;;
26574    "hw/xfree86/common/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/common/Makefile" ;;
26575    "hw/xfree86/common/xf86Build.h") CONFIG_FILES="$CONFIG_FILES hw/xfree86/common/xf86Build.h" ;;
26576    "hw/xfree86/ddc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/ddc/Makefile" ;;
26577    "hw/xfree86/dixmods/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dixmods/Makefile" ;;
26578    "hw/xfree86/dixmods/extmod/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dixmods/extmod/Makefile" ;;
26579    "hw/xfree86/doc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/doc/Makefile" ;;
26580    "hw/xfree86/doc/devel/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/doc/devel/Makefile" ;;
26581    "hw/xfree86/doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/doc/man/Makefile" ;;
26582    "hw/xfree86/doc/sgml/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/doc/sgml/Makefile" ;;
26583    "hw/xfree86/dri/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dri/Makefile" ;;
26584    "hw/xfree86/dri2/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dri2/Makefile" ;;
26585    "hw/xfree86/exa/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/exa/Makefile" ;;
26586    "hw/xfree86/fbdevhw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/fbdevhw/Makefile" ;;
26587    "hw/xfree86/i2c/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/i2c/Makefile" ;;
26588    "hw/xfree86/int10/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/int10/Makefile" ;;
26589    "hw/xfree86/loader/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/loader/Makefile" ;;
26590    "hw/xfree86/modes/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/modes/Makefile" ;;
26591    "hw/xfree86/os-support/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/Makefile" ;;
26592    "hw/xfree86/os-support/bsd/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/bsd/Makefile" ;;
26593    "hw/xfree86/os-support/bus/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/bus/Makefile" ;;
26594    "hw/xfree86/os-support/hurd/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/hurd/Makefile" ;;
26595    "hw/xfree86/os-support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/misc/Makefile" ;;
26596    "hw/xfree86/os-support/linux/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/linux/Makefile" ;;
26597    "hw/xfree86/os-support/sco/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/sco/Makefile" ;;
26598    "hw/xfree86/os-support/solaris/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/solaris/Makefile" ;;
26599    "hw/xfree86/os-support/sysv/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/sysv/Makefile" ;;
26600    "hw/xfree86/parser/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/parser/Makefile" ;;
26601    "hw/xfree86/ramdac/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/ramdac/Makefile" ;;
26602    "hw/xfree86/shadowfb/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/shadowfb/Makefile" ;;
26603    "hw/xfree86/vbe/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/vbe/Makefile" ;;
26604    "hw/xfree86/vgahw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/vgahw/Makefile" ;;
26605    "hw/xfree86/x86emu/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/x86emu/Makefile" ;;
26606    "hw/xfree86/xaa/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/xaa/Makefile" ;;
26607    "hw/xfree86/xf8_16bpp/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/xf8_16bpp/Makefile" ;;
26608    "hw/xfree86/utils/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/Makefile" ;;
26609    "hw/xfree86/utils/cvt/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/cvt/Makefile" ;;
26610    "hw/xfree86/utils/gtf/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/gtf/Makefile" ;;
26611    "hw/dmx/config/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/config/Makefile" ;;
26612    "hw/dmx/doc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/doc/Makefile" ;;
26613    "hw/dmx/examples/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/examples/Makefile" ;;
26614    "hw/dmx/input/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/input/Makefile" ;;
26615    "hw/dmx/glxProxy/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/glxProxy/Makefile" ;;
26616    "hw/dmx/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/Makefile" ;;
26617    "hw/vfb/Makefile") CONFIG_FILES="$CONFIG_FILES hw/vfb/Makefile" ;;
26618    "hw/xnest/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xnest/Makefile" ;;
26619    "hw/xwin/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/Makefile" ;;
26620    "hw/xwin/glx/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/glx/Makefile" ;;
26621    "hw/xquartz/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/Makefile" ;;
26622    "hw/xquartz/GL/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/GL/Makefile" ;;
26623    "hw/xquartz/bundle/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/bundle/Makefile" ;;
26624    "hw/xquartz/doc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/doc/Makefile" ;;
26625    "hw/xquartz/mach-startup/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/mach-startup/Makefile" ;;
26626    "hw/xquartz/pbproxy/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/pbproxy/Makefile" ;;
26627    "hw/xquartz/xpr/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/xpr/Makefile" ;;
26628    "hw/kdrive/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/Makefile" ;;
26629    "hw/kdrive/ephyr/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/ephyr/Makefile" ;;
26630    "hw/kdrive/fake/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/fake/Makefile" ;;
26631    "hw/kdrive/fbdev/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/fbdev/Makefile" ;;
26632    "hw/kdrive/linux/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/linux/Makefile" ;;
26633    "hw/kdrive/src/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/src/Makefile" ;;
26634    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
26635    "test/xi2/Makefile") CONFIG_FILES="$CONFIG_FILES test/xi2/Makefile" ;;
26636    "xorg-server.pc") CONFIG_FILES="$CONFIG_FILES xorg-server.pc" ;;
26637
26638  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26639  esac
26640done
26641
26642
26643# If the user did not use the arguments to specify the items to instantiate,
26644# then the envvar interface is used.  Set only those that are not.
26645# We use the long form for the default assignment because of an extremely
26646# bizarre bug on SunOS 4.1.3.
26647if $ac_need_defaults; then
26648  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26649  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26650  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26651fi
26652
26653# Have a temporary directory for convenience.  Make it in the build tree
26654# simply because there is no reason against having it here, and in addition,
26655# creating and moving files from /tmp can sometimes cause problems.
26656# Hook for its removal unless debugging.
26657# Note that there is a small window in which the directory will not be cleaned:
26658# after its creation but before its name has been assigned to `$tmp'.
26659$debug ||
26660{
26661  tmp= ac_tmp=
26662  trap 'exit_status=$?
26663  : "${ac_tmp:=$tmp}"
26664  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
26665' 0
26666  trap 'as_fn_exit 1' 1 2 13 15
26667}
26668# Create a (secure) tmp directory for tmp files.
26669
26670{
26671  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26672  test -d "$tmp"
26673}  ||
26674{
26675  tmp=./conf$$-$RANDOM
26676  (umask 077 && mkdir "$tmp")
26677} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
26678ac_tmp=$tmp
26679
26680# Set up the scripts for CONFIG_FILES section.
26681# No need to generate them if there are no CONFIG_FILES.
26682# This happens for instance with `./config.status config.h'.
26683if test -n "$CONFIG_FILES"; then
26684
26685
26686ac_cr=`echo X | tr X '\015'`
26687# On cygwin, bash can eat \r inside `` if the user requested igncr.
26688# But we know of no other shell where ac_cr would be empty at this
26689# point, so we can use a bashism as a fallback.
26690if test "x$ac_cr" = x; then
26691  eval ac_cr=\$\'\\r\'
26692fi
26693ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26694if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26695  ac_cs_awk_cr='\\r'
26696else
26697  ac_cs_awk_cr=$ac_cr
26698fi
26699
26700echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
26701_ACEOF
26702
26703
26704{
26705  echo "cat >conf$$subs.awk <<_ACEOF" &&
26706  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26707  echo "_ACEOF"
26708} >conf$$subs.sh ||
26709  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26710ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
26711ac_delim='%!_!# '
26712for ac_last_try in false false false false false :; do
26713  . ./conf$$subs.sh ||
26714    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26715
26716  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26717  if test $ac_delim_n = $ac_delim_num; then
26718    break
26719  elif $ac_last_try; then
26720    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26721  else
26722    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26723  fi
26724done
26725rm -f conf$$subs.sh
26726
26727cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26728cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
26729_ACEOF
26730sed -n '
26731h
26732s/^/S["/; s/!.*/"]=/
26733p
26734g
26735s/^[^!]*!//
26736:repl
26737t repl
26738s/'"$ac_delim"'$//
26739t delim
26740:nl
26741h
26742s/\(.\{148\}\)..*/\1/
26743t more1
26744s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26745p
26746n
26747b repl
26748:more1
26749s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26750p
26751g
26752s/.\{148\}//
26753t nl
26754:delim
26755h
26756s/\(.\{148\}\)..*/\1/
26757t more2
26758s/["\\]/\\&/g; s/^/"/; s/$/"/
26759p
26760b
26761:more2
26762s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26763p
26764g
26765s/.\{148\}//
26766t delim
26767' <conf$$subs.awk | sed '
26768/^[^""]/{
26769  N
26770  s/\n//
26771}
26772' >>$CONFIG_STATUS || ac_write_fail=1
26773rm -f conf$$subs.awk
26774cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26775_ACAWK
26776cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
26777  for (key in S) S_is_set[key] = 1
26778  FS = ""
26779
26780}
26781{
26782  line = $ 0
26783  nfields = split(line, field, "@")
26784  substed = 0
26785  len = length(field[1])
26786  for (i = 2; i < nfields; i++) {
26787    key = field[i]
26788    keylen = length(key)
26789    if (S_is_set[key]) {
26790      value = S[key]
26791      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26792      len += length(value) + length(field[++i])
26793      substed = 1
26794    } else
26795      len += 1 + keylen
26796  }
26797
26798  print line
26799}
26800
26801_ACAWK
26802_ACEOF
26803cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26804if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26805  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26806else
26807  cat
26808fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
26809  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
26810_ACEOF
26811
26812# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
26813# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
26814# trailing colons and then remove the whole line if VPATH becomes empty
26815# (actually we leave an empty line to preserve line numbers).
26816if test "x$srcdir" = x.; then
26817  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
26818h
26819s///
26820s/^/:/
26821s/[	 ]*$/:/
26822s/:\$(srcdir):/:/g
26823s/:\${srcdir}:/:/g
26824s/:@srcdir@:/:/g
26825s/^:*//
26826s/:*$//
26827x
26828s/\(=[	 ]*\).*/\1/
26829G
26830s/\n//
26831s/^[^=]*=[	 ]*$//
26832}'
26833fi
26834
26835cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26836fi # test -n "$CONFIG_FILES"
26837
26838# Set up the scripts for CONFIG_HEADERS section.
26839# No need to generate them if there are no CONFIG_HEADERS.
26840# This happens for instance with `./config.status Makefile'.
26841if test -n "$CONFIG_HEADERS"; then
26842cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
26843BEGIN {
26844_ACEOF
26845
26846# Transform confdefs.h into an awk script `defines.awk', embedded as
26847# here-document in config.status, that substitutes the proper values into
26848# config.h.in to produce config.h.
26849
26850# Create a delimiter string that does not exist in confdefs.h, to ease
26851# handling of long lines.
26852ac_delim='%!_!# '
26853for ac_last_try in false false :; do
26854  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
26855  if test -z "$ac_tt"; then
26856    break
26857  elif $ac_last_try; then
26858    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
26859  else
26860    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26861  fi
26862done
26863
26864# For the awk script, D is an array of macro values keyed by name,
26865# likewise P contains macro parameters if any.  Preserve backslash
26866# newline sequences.
26867
26868ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26869sed -n '
26870s/.\{148\}/&'"$ac_delim"'/g
26871t rset
26872:rset
26873s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
26874t def
26875d
26876:def
26877s/\\$//
26878t bsnl
26879s/["\\]/\\&/g
26880s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
26881D["\1"]=" \3"/p
26882s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
26883d
26884:bsnl
26885s/["\\]/\\&/g
26886s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
26887D["\1"]=" \3\\\\\\n"\\/p
26888t cont
26889s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26890t cont
26891d
26892:cont
26893n
26894s/.\{148\}/&'"$ac_delim"'/g
26895t clear
26896:clear
26897s/\\$//
26898t bsnlc
26899s/["\\]/\\&/g; s/^/"/; s/$/"/p
26900d
26901:bsnlc
26902s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26903b cont
26904' <confdefs.h | sed '
26905s/'"$ac_delim"'/"\\\
26906"/g' >>$CONFIG_STATUS || ac_write_fail=1
26907
26908cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26909  for (key in D) D_is_set[key] = 1
26910  FS = ""
26911}
26912/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26913  line = \$ 0
26914  split(line, arg, " ")
26915  if (arg[1] == "#") {
26916    defundef = arg[2]
26917    mac1 = arg[3]
26918  } else {
26919    defundef = substr(arg[1], 2)
26920    mac1 = arg[2]
26921  }
26922  split(mac1, mac2, "(") #)
26923  macro = mac2[1]
26924  prefix = substr(line, 1, index(line, defundef) - 1)
26925  if (D_is_set[macro]) {
26926    # Preserve the white space surrounding the "#".
26927    print prefix "define", macro P[macro] D[macro]
26928    next
26929  } else {
26930    # Replace #undef with comments.  This is necessary, for example,
26931    # in the case of _POSIX_SOURCE, which is predefined and required
26932    # on some systems where configure will not decide to define it.
26933    if (defundef == "undef") {
26934      print "/*", prefix defundef, macro, "*/"
26935      next
26936    }
26937  }
26938}
26939{ print }
26940_ACAWK
26941_ACEOF
26942cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26943  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
26944fi # test -n "$CONFIG_HEADERS"
26945
26946
26947eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
26948shift
26949for ac_tag
26950do
26951  case $ac_tag in
26952  :[FHLC]) ac_mode=$ac_tag; continue;;
26953  esac
26954  case $ac_mode$ac_tag in
26955  :[FHL]*:*);;
26956  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
26957  :[FH]-) ac_tag=-:-;;
26958  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26959  esac
26960  ac_save_IFS=$IFS
26961  IFS=:
26962  set x $ac_tag
26963  IFS=$ac_save_IFS
26964  shift
26965  ac_file=$1
26966  shift
26967
26968  case $ac_mode in
26969  :L) ac_source=$1;;
26970  :[FH])
26971    ac_file_inputs=
26972    for ac_f
26973    do
26974      case $ac_f in
26975      -) ac_f="$ac_tmp/stdin";;
26976      *) # Look for the file first in the build tree, then in the source tree
26977	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
26978	 # because $ac_f cannot contain `:'.
26979	 test -f "$ac_f" ||
26980	   case $ac_f in
26981	   [\\/$]*) false;;
26982	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26983	   esac ||
26984	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26985      esac
26986      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26987      as_fn_append ac_file_inputs " '$ac_f'"
26988    done
26989
26990    # Let's still pretend it is `configure' which instantiates (i.e., don't
26991    # use $as_me), people would be surprised to read:
26992    #    /* config.h.  Generated by config.status.  */
26993    configure_input='Generated from '`
26994	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26995	`' by configure.'
26996    if test x"$ac_file" != x-; then
26997      configure_input="$ac_file.  $configure_input"
26998      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26999$as_echo "$as_me: creating $ac_file" >&6;}
27000    fi
27001    # Neutralize special characters interpreted by sed in replacement strings.
27002    case $configure_input in #(
27003    *\&* | *\|* | *\\* )
27004       ac_sed_conf_input=`$as_echo "$configure_input" |
27005       sed 's/[\\\\&|]/\\\\&/g'`;; #(
27006    *) ac_sed_conf_input=$configure_input;;
27007    esac
27008
27009    case $ac_tag in
27010    *:-:* | *:-) cat >"$ac_tmp/stdin" \
27011      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
27012    esac
27013    ;;
27014  esac
27015
27016  ac_dir=`$as_dirname -- "$ac_file" ||
27017$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27018	 X"$ac_file" : 'X\(//\)[^/]' \| \
27019	 X"$ac_file" : 'X\(//\)$' \| \
27020	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27021$as_echo X"$ac_file" |
27022    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27023	    s//\1/
27024	    q
27025	  }
27026	  /^X\(\/\/\)[^/].*/{
27027	    s//\1/
27028	    q
27029	  }
27030	  /^X\(\/\/\)$/{
27031	    s//\1/
27032	    q
27033	  }
27034	  /^X\(\/\).*/{
27035	    s//\1/
27036	    q
27037	  }
27038	  s/.*/./; q'`
27039  as_dir="$ac_dir"; as_fn_mkdir_p
27040  ac_builddir=.
27041
27042case "$ac_dir" in
27043.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27044*)
27045  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27046  # A ".." for each directory in $ac_dir_suffix.
27047  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27048  case $ac_top_builddir_sub in
27049  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27050  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27051  esac ;;
27052esac
27053ac_abs_top_builddir=$ac_pwd
27054ac_abs_builddir=$ac_pwd$ac_dir_suffix
27055# for backward compatibility:
27056ac_top_builddir=$ac_top_build_prefix
27057
27058case $srcdir in
27059  .)  # We are building in place.
27060    ac_srcdir=.
27061    ac_top_srcdir=$ac_top_builddir_sub
27062    ac_abs_top_srcdir=$ac_pwd ;;
27063  [\\/]* | ?:[\\/]* )  # Absolute name.
27064    ac_srcdir=$srcdir$ac_dir_suffix;
27065    ac_top_srcdir=$srcdir
27066    ac_abs_top_srcdir=$srcdir ;;
27067  *) # Relative name.
27068    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27069    ac_top_srcdir=$ac_top_build_prefix$srcdir
27070    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27071esac
27072ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27073
27074
27075  case $ac_mode in
27076  :F)
27077  #
27078  # CONFIG_FILE
27079  #
27080
27081  case $INSTALL in
27082  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27083  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27084  esac
27085  ac_MKDIR_P=$MKDIR_P
27086  case $MKDIR_P in
27087  [\\/$]* | ?:[\\/]* ) ;;
27088  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
27089  esac
27090_ACEOF
27091
27092cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27093# If the template does not know about datarootdir, expand it.
27094# FIXME: This hack should be removed a few years after 2.60.
27095ac_datarootdir_hack=; ac_datarootdir_seen=
27096ac_sed_dataroot='
27097/datarootdir/ {
27098  p
27099  q
27100}
27101/@datadir@/p
27102/@docdir@/p
27103/@infodir@/p
27104/@localedir@/p
27105/@mandir@/p'
27106case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27107*datarootdir*) ac_datarootdir_seen=yes;;
27108*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27109  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27110$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27111_ACEOF
27112cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27113  ac_datarootdir_hack='
27114  s&@datadir@&$datadir&g
27115  s&@docdir@&$docdir&g
27116  s&@infodir@&$infodir&g
27117  s&@localedir@&$localedir&g
27118  s&@mandir@&$mandir&g
27119  s&\\\${datarootdir}&$datarootdir&g' ;;
27120esac
27121_ACEOF
27122
27123# Neutralize VPATH when `$srcdir' = `.'.
27124# Shell code in configure.ac might set extrasub.
27125# FIXME: do we really want to maintain this feature?
27126cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27127ac_sed_extra="$ac_vpsub
27128$extrasub
27129_ACEOF
27130cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27131:t
27132/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27133s|@configure_input@|$ac_sed_conf_input|;t t
27134s&@top_builddir@&$ac_top_builddir_sub&;t t
27135s&@top_build_prefix@&$ac_top_build_prefix&;t t
27136s&@srcdir@&$ac_srcdir&;t t
27137s&@abs_srcdir@&$ac_abs_srcdir&;t t
27138s&@top_srcdir@&$ac_top_srcdir&;t t
27139s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27140s&@builddir@&$ac_builddir&;t t
27141s&@abs_builddir@&$ac_abs_builddir&;t t
27142s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27143s&@INSTALL@&$ac_INSTALL&;t t
27144s&@MKDIR_P@&$ac_MKDIR_P&;t t
27145$ac_datarootdir_hack
27146"
27147eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
27148  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27149
27150test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27151  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
27152  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
27153      "$ac_tmp/out"`; test -z "$ac_out"; } &&
27154  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27155which seems to be undefined.  Please make sure it is defined" >&5
27156$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27157which seems to be undefined.  Please make sure it is defined" >&2;}
27158
27159  rm -f "$ac_tmp/stdin"
27160  case $ac_file in
27161  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
27162  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
27163  esac \
27164  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27165 ;;
27166  :H)
27167  #
27168  # CONFIG_HEADER
27169  #
27170  if test x"$ac_file" != x-; then
27171    {
27172      $as_echo "/* $configure_input  */" \
27173      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
27174    } >"$ac_tmp/config.h" \
27175      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27176    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
27177      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27178$as_echo "$as_me: $ac_file is unchanged" >&6;}
27179    else
27180      rm -f "$ac_file"
27181      mv "$ac_tmp/config.h" "$ac_file" \
27182	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
27183    fi
27184  else
27185    $as_echo "/* $configure_input  */" \
27186      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
27187      || as_fn_error $? "could not create -" "$LINENO" 5
27188  fi
27189# Compute "$ac_file"'s index in $config_headers.
27190_am_arg="$ac_file"
27191_am_stamp_count=1
27192for _am_header in $config_headers :; do
27193  case $_am_header in
27194    $_am_arg | $_am_arg:* )
27195      break ;;
27196    * )
27197      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27198  esac
27199done
27200echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
27201$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27202	 X"$_am_arg" : 'X\(//\)[^/]' \| \
27203	 X"$_am_arg" : 'X\(//\)$' \| \
27204	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27205$as_echo X"$_am_arg" |
27206    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27207	    s//\1/
27208	    q
27209	  }
27210	  /^X\(\/\/\)[^/].*/{
27211	    s//\1/
27212	    q
27213	  }
27214	  /^X\(\/\/\)$/{
27215	    s//\1/
27216	    q
27217	  }
27218	  /^X\(\/\).*/{
27219	    s//\1/
27220	    q
27221	  }
27222	  s/.*/./; q'`/stamp-h$_am_stamp_count
27223 ;;
27224
27225  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27226$as_echo "$as_me: executing $ac_file commands" >&6;}
27227 ;;
27228  esac
27229
27230
27231  case $ac_file$ac_mode in
27232    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
27233  # Autoconf 2.62 quotes --file arguments for eval, but not when files
27234  # are listed without --file.  Let's play safe and only enable the eval
27235  # if we detect the quoting.
27236  case $CONFIG_FILES in
27237  *\'*) eval set x "$CONFIG_FILES" ;;
27238  *)   set x $CONFIG_FILES ;;
27239  esac
27240  shift
27241  for mf
27242  do
27243    # Strip MF so we end up with the name of the file.
27244    mf=`echo "$mf" | sed -e 's/:.*$//'`
27245    # Check whether this is an Automake generated Makefile or not.
27246    # We used to match only the files named `Makefile.in', but
27247    # some people rename them; so instead we look at the file content.
27248    # Grep'ing the first line is not enough: some people post-process
27249    # each Makefile.in and add a new line on top of each file to say so.
27250    # Grep'ing the whole file is not good either: AIX grep has a line
27251    # limit of 2048, but all sed's we know have understand at least 4000.
27252    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
27253      dirpart=`$as_dirname -- "$mf" ||
27254$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27255	 X"$mf" : 'X\(//\)[^/]' \| \
27256	 X"$mf" : 'X\(//\)$' \| \
27257	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27258$as_echo X"$mf" |
27259    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27260	    s//\1/
27261	    q
27262	  }
27263	  /^X\(\/\/\)[^/].*/{
27264	    s//\1/
27265	    q
27266	  }
27267	  /^X\(\/\/\)$/{
27268	    s//\1/
27269	    q
27270	  }
27271	  /^X\(\/\).*/{
27272	    s//\1/
27273	    q
27274	  }
27275	  s/.*/./; q'`
27276    else
27277      continue
27278    fi
27279    # Extract the definition of DEPDIR, am__include, and am__quote
27280    # from the Makefile without running `make'.
27281    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27282    test -z "$DEPDIR" && continue
27283    am__include=`sed -n 's/^am__include = //p' < "$mf"`
27284    test -z "am__include" && continue
27285    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27286    # When using ansi2knr, U may be empty or an underscore; expand it
27287    U=`sed -n 's/^U = //p' < "$mf"`
27288    # Find all dependency output files, they are included files with
27289    # $(DEPDIR) in their names.  We invoke sed twice because it is the
27290    # simplest approach to changing $(DEPDIR) to its actual value in the
27291    # expansion.
27292    for file in `sed -n "
27293      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27294	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27295      # Make sure the directory exists.
27296      test -f "$dirpart/$file" && continue
27297      fdir=`$as_dirname -- "$file" ||
27298$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27299	 X"$file" : 'X\(//\)[^/]' \| \
27300	 X"$file" : 'X\(//\)$' \| \
27301	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27302$as_echo X"$file" |
27303    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27304	    s//\1/
27305	    q
27306	  }
27307	  /^X\(\/\/\)[^/].*/{
27308	    s//\1/
27309	    q
27310	  }
27311	  /^X\(\/\/\)$/{
27312	    s//\1/
27313	    q
27314	  }
27315	  /^X\(\/\).*/{
27316	    s//\1/
27317	    q
27318	  }
27319	  s/.*/./; q'`
27320      as_dir=$dirpart/$fdir; as_fn_mkdir_p
27321      # echo "creating $dirpart/$file"
27322      echo '# dummy' > "$dirpart/$file"
27323    done
27324  done
27325}
27326 ;;
27327    "libtool":C)
27328
27329    # See if we are running on zsh, and set the options which allow our
27330    # commands through without removal of \ escapes.
27331    if test -n "${ZSH_VERSION+set}" ; then
27332      setopt NO_GLOB_SUBST
27333    fi
27334
27335    cfgfile="${ofile}T"
27336    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
27337    $RM "$cfgfile"
27338
27339    cat <<_LT_EOF >> "$cfgfile"
27340#! $SHELL
27341
27342# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
27343# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
27344# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27345# NOTE: Changes made to this file will be lost: look at ltmain.sh.
27346#
27347#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
27348#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
27349#                 Inc.
27350#   Written by Gordon Matzigkeit, 1996
27351#
27352#   This file is part of GNU Libtool.
27353#
27354# GNU Libtool is free software; you can redistribute it and/or
27355# modify it under the terms of the GNU General Public License as
27356# published by the Free Software Foundation; either version 2 of
27357# the License, or (at your option) any later version.
27358#
27359# As a special exception to the GNU General Public License,
27360# if you distribute this file as part of a program or library that
27361# is built using GNU Libtool, you may include this file under the
27362# same distribution terms that you use for the rest of that program.
27363#
27364# GNU Libtool is distributed in the hope that it will be useful,
27365# but WITHOUT ANY WARRANTY; without even the implied warranty of
27366# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
27367# GNU General Public License for more details.
27368#
27369# You should have received a copy of the GNU General Public License
27370# along with GNU Libtool; see the file COPYING.  If not, a copy
27371# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
27372# obtained by writing to the Free Software Foundation, Inc.,
27373# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
27374
27375
27376# The names of the tagged configurations supported by this script.
27377available_tags=""
27378
27379# ### BEGIN LIBTOOL CONFIG
27380
27381# Assembler program.
27382AS=$lt_AS
27383
27384# DLL creation program.
27385DLLTOOL=$lt_DLLTOOL
27386
27387# Object dumper program.
27388OBJDUMP=$lt_OBJDUMP
27389
27390# Whether or not to build static libraries.
27391build_old_libs=$enable_static
27392
27393# Which release of libtool.m4 was used?
27394macro_version=$macro_version
27395macro_revision=$macro_revision
27396
27397# Whether or not to build shared libraries.
27398build_libtool_libs=$enable_shared
27399
27400# What type of objects to build.
27401pic_mode=$pic_mode
27402
27403# Whether or not to optimize for fast installation.
27404fast_install=$enable_fast_install
27405
27406# Shell to use when invoking shell scripts.
27407SHELL=$lt_SHELL
27408
27409# An echo program that protects backslashes.
27410ECHO=$lt_ECHO
27411
27412# The host system.
27413host_alias=$host_alias
27414host=$host
27415host_os=$host_os
27416
27417# The build system.
27418build_alias=$build_alias
27419build=$build
27420build_os=$build_os
27421
27422# A sed program that does not truncate output.
27423SED=$lt_SED
27424
27425# Sed that helps us avoid accidentally triggering echo(1) options like -n.
27426Xsed="\$SED -e 1s/^X//"
27427
27428# A grep program that handles long lines.
27429GREP=$lt_GREP
27430
27431# An ERE matcher.
27432EGREP=$lt_EGREP
27433
27434# A literal string matcher.
27435FGREP=$lt_FGREP
27436
27437# A BSD- or MS-compatible name lister.
27438NM=$lt_NM
27439
27440# Whether we need soft or hard links.
27441LN_S=$lt_LN_S
27442
27443# What is the maximum length of a command?
27444max_cmd_len=$max_cmd_len
27445
27446# Object file suffix (normally "o").
27447objext=$ac_objext
27448
27449# Executable file suffix (normally "").
27450exeext=$exeext
27451
27452# whether the shell understands "unset".
27453lt_unset=$lt_unset
27454
27455# turn spaces into newlines.
27456SP2NL=$lt_lt_SP2NL
27457
27458# turn newlines into spaces.
27459NL2SP=$lt_lt_NL2SP
27460
27461# convert \$build file names to \$host format.
27462to_host_file_cmd=$lt_cv_to_host_file_cmd
27463
27464# convert \$build files to toolchain format.
27465to_tool_file_cmd=$lt_cv_to_tool_file_cmd
27466
27467# Method to check whether dependent libraries are shared objects.
27468deplibs_check_method=$lt_deplibs_check_method
27469
27470# Command to use when deplibs_check_method = "file_magic".
27471file_magic_cmd=$lt_file_magic_cmd
27472
27473# How to find potential files when deplibs_check_method = "file_magic".
27474file_magic_glob=$lt_file_magic_glob
27475
27476# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
27477want_nocaseglob=$lt_want_nocaseglob
27478
27479# Command to associate shared and link libraries.
27480sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
27481
27482# The archiver.
27483AR=$lt_AR
27484
27485# Flags to create an archive.
27486AR_FLAGS=$lt_AR_FLAGS
27487
27488# How to feed a file listing to the archiver.
27489archiver_list_spec=$lt_archiver_list_spec
27490
27491# A symbol stripping program.
27492STRIP=$lt_STRIP
27493
27494# Commands used to install an old-style archive.
27495RANLIB=$lt_RANLIB
27496old_postinstall_cmds=$lt_old_postinstall_cmds
27497old_postuninstall_cmds=$lt_old_postuninstall_cmds
27498
27499# Whether to use a lock for old archive extraction.
27500lock_old_archive_extraction=$lock_old_archive_extraction
27501
27502# A C compiler.
27503LTCC=$lt_CC
27504
27505# LTCC compiler flags.
27506LTCFLAGS=$lt_CFLAGS
27507
27508# Take the output of nm and produce a listing of raw symbols and C names.
27509global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27510
27511# Transform the output of nm in a proper C declaration.
27512global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27513
27514# Transform the output of nm in a C name address pair.
27515global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27516
27517# Transform the output of nm in a C name address pair when lib prefix is needed.
27518global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27519
27520# Specify filename containing input files for \$NM.
27521nm_file_list_spec=$lt_nm_file_list_spec
27522
27523# The root where to search for dependent libraries,and in which our libraries should be installed.
27524lt_sysroot=$lt_sysroot
27525
27526# The name of the directory that contains temporary libtool files.
27527objdir=$objdir
27528
27529# Used to examine libraries when file_magic_cmd begins with "file".
27530MAGIC_CMD=$MAGIC_CMD
27531
27532# Must we lock files when doing compilation?
27533need_locks=$lt_need_locks
27534
27535# Manifest tool.
27536MANIFEST_TOOL=$lt_MANIFEST_TOOL
27537
27538# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27539DSYMUTIL=$lt_DSYMUTIL
27540
27541# Tool to change global to local symbols on Mac OS X.
27542NMEDIT=$lt_NMEDIT
27543
27544# Tool to manipulate fat objects and archives on Mac OS X.
27545LIPO=$lt_LIPO
27546
27547# ldd/readelf like tool for Mach-O binaries on Mac OS X.
27548OTOOL=$lt_OTOOL
27549
27550# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27551OTOOL64=$lt_OTOOL64
27552
27553# Old archive suffix (normally "a").
27554libext=$libext
27555
27556# Shared library suffix (normally ".so").
27557shrext_cmds=$lt_shrext_cmds
27558
27559# The commands to extract the exported symbol list from a shared archive.
27560extract_expsyms_cmds=$lt_extract_expsyms_cmds
27561
27562# Variables whose values should be saved in libtool wrapper scripts and
27563# restored at link time.
27564variables_saved_for_relink=$lt_variables_saved_for_relink
27565
27566# Do we need the "lib" prefix for modules?
27567need_lib_prefix=$need_lib_prefix
27568
27569# Do we need a version for libraries?
27570need_version=$need_version
27571
27572# Library versioning type.
27573version_type=$version_type
27574
27575# Shared library runtime path variable.
27576runpath_var=$runpath_var
27577
27578# Shared library path variable.
27579shlibpath_var=$shlibpath_var
27580
27581# Is shlibpath searched before the hard-coded library search path?
27582shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27583
27584# Format of library name prefix.
27585libname_spec=$lt_libname_spec
27586
27587# List of archive names.  First name is the real one, the rest are links.
27588# The last name is the one that the linker finds with -lNAME
27589library_names_spec=$lt_library_names_spec
27590
27591# The coded name of the library, if different from the real name.
27592soname_spec=$lt_soname_spec
27593
27594# Permission mode override for installation of shared libraries.
27595install_override_mode=$lt_install_override_mode
27596
27597# Command to use after installation of a shared archive.
27598postinstall_cmds=$lt_postinstall_cmds
27599
27600# Command to use after uninstallation of a shared archive.
27601postuninstall_cmds=$lt_postuninstall_cmds
27602
27603# Commands used to finish a libtool library installation in a directory.
27604finish_cmds=$lt_finish_cmds
27605
27606# As "finish_cmds", except a single script fragment to be evaled but
27607# not shown.
27608finish_eval=$lt_finish_eval
27609
27610# Whether we should hardcode library paths into libraries.
27611hardcode_into_libs=$hardcode_into_libs
27612
27613# Compile-time system search path for libraries.
27614sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27615
27616# Run-time system search path for libraries.
27617sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27618
27619# Whether dlopen is supported.
27620dlopen_support=$enable_dlopen
27621
27622# Whether dlopen of programs is supported.
27623dlopen_self=$enable_dlopen_self
27624
27625# Whether dlopen of statically linked programs is supported.
27626dlopen_self_static=$enable_dlopen_self_static
27627
27628# Commands to strip libraries.
27629old_striplib=$lt_old_striplib
27630striplib=$lt_striplib
27631
27632
27633# The linker used to build libraries.
27634LD=$lt_LD
27635
27636# How to create reloadable object files.
27637reload_flag=$lt_reload_flag
27638reload_cmds=$lt_reload_cmds
27639
27640# Commands used to build an old-style archive.
27641old_archive_cmds=$lt_old_archive_cmds
27642
27643# A language specific compiler.
27644CC=$lt_compiler
27645
27646# Is the compiler the GNU compiler?
27647with_gcc=$GCC
27648
27649# Compiler flag to turn off builtin functions.
27650no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27651
27652# Additional compiler flags for building library objects.
27653pic_flag=$lt_lt_prog_compiler_pic
27654
27655# How to pass a linker flag through the compiler.
27656wl=$lt_lt_prog_compiler_wl
27657
27658# Compiler flag to prevent dynamic linking.
27659link_static_flag=$lt_lt_prog_compiler_static
27660
27661# Does compiler simultaneously support -c and -o options?
27662compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27663
27664# Whether or not to add -lc for building shared libraries.
27665build_libtool_need_lc=$archive_cmds_need_lc
27666
27667# Whether or not to disallow shared libs when runtime libs are static.
27668allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27669
27670# Compiler flag to allow reflexive dlopens.
27671export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27672
27673# Compiler flag to generate shared objects directly from archives.
27674whole_archive_flag_spec=$lt_whole_archive_flag_spec
27675
27676# Whether the compiler copes with passing no objects directly.
27677compiler_needs_object=$lt_compiler_needs_object
27678
27679# Create an old-style archive from a shared archive.
27680old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27681
27682# Create a temporary old-style archive to link instead of a shared archive.
27683old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27684
27685# Commands used to build a shared archive.
27686archive_cmds=$lt_archive_cmds
27687archive_expsym_cmds=$lt_archive_expsym_cmds
27688
27689# Commands used to build a loadable module if different from building
27690# a shared archive.
27691module_cmds=$lt_module_cmds
27692module_expsym_cmds=$lt_module_expsym_cmds
27693
27694# Whether we are building with GNU ld or not.
27695with_gnu_ld=$lt_with_gnu_ld
27696
27697# Flag that allows shared libraries with undefined symbols to be built.
27698allow_undefined_flag=$lt_allow_undefined_flag
27699
27700# Flag that enforces no undefined symbols.
27701no_undefined_flag=$lt_no_undefined_flag
27702
27703# Flag to hardcode \$libdir into a binary during linking.
27704# This must work even if \$libdir does not exist
27705hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27706
27707# If ld is used when linking, flag to hardcode \$libdir into a binary
27708# during linking.  This must work even if \$libdir does not exist.
27709hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
27710
27711# Whether we need a single "-rpath" flag with a separated argument.
27712hardcode_libdir_separator=$lt_hardcode_libdir_separator
27713
27714# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27715# DIR into the resulting binary.
27716hardcode_direct=$hardcode_direct
27717
27718# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27719# DIR into the resulting binary and the resulting library dependency is
27720# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27721# library is relocated.
27722hardcode_direct_absolute=$hardcode_direct_absolute
27723
27724# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27725# into the resulting binary.
27726hardcode_minus_L=$hardcode_minus_L
27727
27728# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27729# into the resulting binary.
27730hardcode_shlibpath_var=$hardcode_shlibpath_var
27731
27732# Set to "yes" if building a shared library automatically hardcodes DIR
27733# into the library and all subsequent libraries and executables linked
27734# against it.
27735hardcode_automatic=$hardcode_automatic
27736
27737# Set to yes if linker adds runtime paths of dependent libraries
27738# to runtime path list.
27739inherit_rpath=$inherit_rpath
27740
27741# Whether libtool must link a program against all its dependency libraries.
27742link_all_deplibs=$link_all_deplibs
27743
27744# Set to "yes" if exported symbols are required.
27745always_export_symbols=$always_export_symbols
27746
27747# The commands to list exported symbols.
27748export_symbols_cmds=$lt_export_symbols_cmds
27749
27750# Symbols that should not be listed in the preloaded symbols.
27751exclude_expsyms=$lt_exclude_expsyms
27752
27753# Symbols that must always be exported.
27754include_expsyms=$lt_include_expsyms
27755
27756# Commands necessary for linking programs (against libraries) with templates.
27757prelink_cmds=$lt_prelink_cmds
27758
27759# Commands necessary for finishing linking programs.
27760postlink_cmds=$lt_postlink_cmds
27761
27762# Specify filename containing input files.
27763file_list_spec=$lt_file_list_spec
27764
27765# How to hardcode a shared library path into an executable.
27766hardcode_action=$hardcode_action
27767
27768# ### END LIBTOOL CONFIG
27769
27770_LT_EOF
27771
27772  case $host_os in
27773  aix3*)
27774    cat <<\_LT_EOF >> "$cfgfile"
27775# AIX sometimes has problems with the GCC collect2 program.  For some
27776# reason, if we set the COLLECT_NAMES environment variable, the problems
27777# vanish in a puff of smoke.
27778if test "X${COLLECT_NAMES+set}" != Xset; then
27779  COLLECT_NAMES=
27780  export COLLECT_NAMES
27781fi
27782_LT_EOF
27783    ;;
27784  esac
27785
27786
27787ltmain="$ac_aux_dir/ltmain.sh"
27788
27789
27790  # We use sed instead of cat because bash on DJGPP gets confused if
27791  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
27792  # text mode, it properly converts lines to CR/LF.  This bash problem
27793  # is reportedly fixed, but why not run on old versions too?
27794  sed '$q' "$ltmain" >> "$cfgfile" \
27795     || (rm -f "$cfgfile"; exit 1)
27796
27797  if test x"$xsi_shell" = xyes; then
27798  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
27799func_dirname ()\
27800{\
27801\    case ${1} in\
27802\      */*) func_dirname_result="${1%/*}${2}" ;;\
27803\      *  ) func_dirname_result="${3}" ;;\
27804\    esac\
27805} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
27806  && mv -f "$cfgfile.tmp" "$cfgfile" \
27807    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27808test 0 -eq $? || _lt_function_replace_fail=:
27809
27810
27811  sed -e '/^func_basename ()$/,/^} # func_basename /c\
27812func_basename ()\
27813{\
27814\    func_basename_result="${1##*/}"\
27815} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
27816  && mv -f "$cfgfile.tmp" "$cfgfile" \
27817    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27818test 0 -eq $? || _lt_function_replace_fail=:
27819
27820
27821  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
27822func_dirname_and_basename ()\
27823{\
27824\    case ${1} in\
27825\      */*) func_dirname_result="${1%/*}${2}" ;;\
27826\      *  ) func_dirname_result="${3}" ;;\
27827\    esac\
27828\    func_basename_result="${1##*/}"\
27829} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
27830  && mv -f "$cfgfile.tmp" "$cfgfile" \
27831    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27832test 0 -eq $? || _lt_function_replace_fail=:
27833
27834
27835  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
27836func_stripname ()\
27837{\
27838\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
27839\    # positional parameters, so assign one to ordinary parameter first.\
27840\    func_stripname_result=${3}\
27841\    func_stripname_result=${func_stripname_result#"${1}"}\
27842\    func_stripname_result=${func_stripname_result%"${2}"}\
27843} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
27844  && mv -f "$cfgfile.tmp" "$cfgfile" \
27845    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27846test 0 -eq $? || _lt_function_replace_fail=:
27847
27848
27849  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
27850func_split_long_opt ()\
27851{\
27852\    func_split_long_opt_name=${1%%=*}\
27853\    func_split_long_opt_arg=${1#*=}\
27854} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
27855  && mv -f "$cfgfile.tmp" "$cfgfile" \
27856    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27857test 0 -eq $? || _lt_function_replace_fail=:
27858
27859
27860  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
27861func_split_short_opt ()\
27862{\
27863\    func_split_short_opt_arg=${1#??}\
27864\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
27865} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
27866  && mv -f "$cfgfile.tmp" "$cfgfile" \
27867    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27868test 0 -eq $? || _lt_function_replace_fail=:
27869
27870
27871  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
27872func_lo2o ()\
27873{\
27874\    case ${1} in\
27875\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
27876\      *)    func_lo2o_result=${1} ;;\
27877\    esac\
27878} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
27879  && mv -f "$cfgfile.tmp" "$cfgfile" \
27880    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27881test 0 -eq $? || _lt_function_replace_fail=:
27882
27883
27884  sed -e '/^func_xform ()$/,/^} # func_xform /c\
27885func_xform ()\
27886{\
27887    func_xform_result=${1%.*}.lo\
27888} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
27889  && mv -f "$cfgfile.tmp" "$cfgfile" \
27890    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27891test 0 -eq $? || _lt_function_replace_fail=:
27892
27893
27894  sed -e '/^func_arith ()$/,/^} # func_arith /c\
27895func_arith ()\
27896{\
27897    func_arith_result=$(( $* ))\
27898} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
27899  && mv -f "$cfgfile.tmp" "$cfgfile" \
27900    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27901test 0 -eq $? || _lt_function_replace_fail=:
27902
27903
27904  sed -e '/^func_len ()$/,/^} # func_len /c\
27905func_len ()\
27906{\
27907    func_len_result=${#1}\
27908} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
27909  && mv -f "$cfgfile.tmp" "$cfgfile" \
27910    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27911test 0 -eq $? || _lt_function_replace_fail=:
27912
27913fi
27914
27915if test x"$lt_shell_append" = xyes; then
27916  sed -e '/^func_append ()$/,/^} # func_append /c\
27917func_append ()\
27918{\
27919    eval "${1}+=\\${2}"\
27920} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
27921  && mv -f "$cfgfile.tmp" "$cfgfile" \
27922    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27923test 0 -eq $? || _lt_function_replace_fail=:
27924
27925
27926  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
27927func_append_quoted ()\
27928{\
27929\    func_quote_for_eval "${2}"\
27930\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
27931} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
27932  && mv -f "$cfgfile.tmp" "$cfgfile" \
27933    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27934test 0 -eq $? || _lt_function_replace_fail=:
27935
27936
27937  # Save a `func_append' function call where possible by direct use of '+='
27938  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
27939    && mv -f "$cfgfile.tmp" "$cfgfile" \
27940      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27941  test 0 -eq $? || _lt_function_replace_fail=:
27942else
27943  # Save a `func_append' function call even when '+=' is not available
27944  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
27945    && mv -f "$cfgfile.tmp" "$cfgfile" \
27946      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27947  test 0 -eq $? || _lt_function_replace_fail=:
27948fi
27949
27950if test x"$_lt_function_replace_fail" = x":"; then
27951  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
27952$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
27953fi
27954
27955
27956   mv -f "$cfgfile" "$ofile" ||
27957    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27958  chmod +x "$ofile"
27959
27960 ;;
27961
27962  esac
27963done # for ac_tag
27964
27965
27966as_fn_exit 0
27967_ACEOF
27968ac_clean_files=$ac_clean_files_save
27969
27970test $ac_write_fail = 0 ||
27971  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
27972
27973
27974# configure is writing to config.log, and then calls config.status.
27975# config.status does its own redirection, appending to config.log.
27976# Unfortunately, on DOS this fails, as config.log is still kept open
27977# by configure, so config.status won't be able to write to it; its
27978# output is simply discarded.  So we exec the FD to /dev/null,
27979# effectively closing config.log, so it can be properly (re)opened and
27980# appended to by config.status.  When coming back to configure, we
27981# need to make the FD available again.
27982if test "$no_create" != yes; then
27983  ac_cs_success=:
27984  ac_config_status_args=
27985  test "$silent" = yes &&
27986    ac_config_status_args="$ac_config_status_args --quiet"
27987  exec 5>/dev/null
27988  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27989  exec 5>>config.log
27990  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27991  # would make configure fail if this is the last instruction.
27992  $ac_cs_success || as_fn_exit 1
27993fi
27994if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27995  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27996$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27997fi
27998
27999