configure revision b1d344b3
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64 for xorg-server 1.6.5.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9# Foundation, Inc.
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92case $0 in #((
93  *[\\/]* ) as_myself=$0 ;;
94  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH
96do
97  IFS=$as_save_IFS
98  test -z "$as_dir" && as_dir=.
99    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100  done
101IFS=$as_save_IFS
102
103     ;;
104esac
105# We did not find ourselves, most probably we were run as `sh COMMAND'
106# in which case we are not to be found in the path.
107if test "x$as_myself" = x; then
108  as_myself=$0
109fi
110if test ! -f "$as_myself"; then
111  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112  exit 1
113fi
114
115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there.  '((' could
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122done
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
132
133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if test "x$CONFIG_SHELL" = x; then
137  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138  emulate sh
139  NULLCMD=:
140  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141  # is contrary to our usage.  Disable this feature.
142  alias -g '\${1+\"\$@\"}'='\"\$@\"'
143  setopt NO_GLOB_SUBST
144else
145  case \`(set -o) 2>/dev/null\` in #(
146  *posix*) :
147    set -o posix ;; #(
148  *) :
149     ;;
150esac
151fi
152"
153  as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167  exitcode=1; echo positional parameters were not saved.
168fi
169test x\$exitcode = x0 || exit 1"
170  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174test \$(( 1 + 1 )) = 2 || exit 1"
175  if (eval "$as_required") 2>/dev/null; then :
176  as_have_required=yes
177else
178  as_have_required=no
179fi
180  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182else
183  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184as_found=false
185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186do
187  IFS=$as_save_IFS
188  test -z "$as_dir" && as_dir=.
189  as_found=:
190  case $as_dir in #(
191	 /*)
192	   for as_base in sh bash ksh sh5; do
193	     # Try only shells that exist, to save several forks.
194	     as_shell=$as_dir/$as_base
195	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197  CONFIG_SHELL=$as_shell as_have_required=yes
198		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199  break 2
200fi
201fi
202	   done;;
203       esac
204  as_found=false
205done
206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208  CONFIG_SHELL=$SHELL as_have_required=yes
209fi; }
210IFS=$as_save_IFS
211
212
213      if test "x$CONFIG_SHELL" != x; then :
214  # We cannot yet assume a decent shell, so we have to provide a
215	# neutralization value for shells without unset; and this also
216	# works around shells that cannot unset nonexistent variables.
217	BASH_ENV=/dev/null
218	ENV=/dev/null
219	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220	export CONFIG_SHELL
221	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222fi
223
224    if test x$as_have_required = xno; then :
225  $as_echo "$0: This script requires a shell more modern than all"
226  $as_echo "$0: the shells that I found on your system."
227  if test x${ZSH_VERSION+set} = xset ; then
228    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230  else
231    $as_echo "$0: Please tell bug-autoconf@gnu.org and
232$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
233$0: about your system, including any error possibly output
234$0: before this message. Then install a modern shell, or
235$0: manually run the script under such a shell if you do
236$0: have one."
237  fi
238  exit 1
239fi
240fi
241fi
242SHELL=${CONFIG_SHELL-/bin/sh}
243export SHELL
244# Unset more variables known to interfere with behavior of common tools.
245CLICOLOR_FORCE= GREP_OPTIONS=
246unset CLICOLOR_FORCE GREP_OPTIONS
247
248## --------------------- ##
249## M4sh Shell Functions. ##
250## --------------------- ##
251# as_fn_unset VAR
252# ---------------
253# Portably unset VAR.
254as_fn_unset ()
255{
256  { eval $1=; unset $1;}
257}
258as_unset=as_fn_unset
259
260# as_fn_set_status STATUS
261# -----------------------
262# Set $? to STATUS, without forking.
263as_fn_set_status ()
264{
265  return $1
266} # as_fn_set_status
267
268# as_fn_exit STATUS
269# -----------------
270# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
271as_fn_exit ()
272{
273  set +e
274  as_fn_set_status $1
275  exit $1
276} # as_fn_exit
277
278# as_fn_mkdir_p
279# -------------
280# Create "$as_dir" as a directory, including parents if necessary.
281as_fn_mkdir_p ()
282{
283
284  case $as_dir in #(
285  -*) as_dir=./$as_dir;;
286  esac
287  test -d "$as_dir" || eval $as_mkdir_p || {
288    as_dirs=
289    while :; do
290      case $as_dir in #(
291      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292      *) as_qdir=$as_dir;;
293      esac
294      as_dirs="'$as_qdir' $as_dirs"
295      as_dir=`$as_dirname -- "$as_dir" ||
296$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
297	 X"$as_dir" : 'X\(//\)[^/]' \| \
298	 X"$as_dir" : 'X\(//\)$' \| \
299	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
300$as_echo X"$as_dir" |
301    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
302	    s//\1/
303	    q
304	  }
305	  /^X\(\/\/\)[^/].*/{
306	    s//\1/
307	    q
308	  }
309	  /^X\(\/\/\)$/{
310	    s//\1/
311	    q
312	  }
313	  /^X\(\/\).*/{
314	    s//\1/
315	    q
316	  }
317	  s/.*/./; q'`
318      test -d "$as_dir" && break
319    done
320    test -z "$as_dirs" || eval "mkdir $as_dirs"
321  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
322
323
324} # as_fn_mkdir_p
325# as_fn_append VAR VALUE
326# ----------------------
327# Append the text in VALUE to the end of the definition contained in VAR. Take
328# advantage of any shell optimizations that allow amortized linear growth over
329# repeated appends, instead of the typical quadratic growth present in naive
330# implementations.
331if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
332  eval 'as_fn_append ()
333  {
334    eval $1+=\$2
335  }'
336else
337  as_fn_append ()
338  {
339    eval $1=\$$1\$2
340  }
341fi # as_fn_append
342
343# as_fn_arith ARG...
344# ------------------
345# Perform arithmetic evaluation on the ARGs, and store the result in the
346# global $as_val. Take advantage of shells that can avoid forks. The arguments
347# must be portable across $(()) and expr.
348if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
349  eval 'as_fn_arith ()
350  {
351    as_val=$(( $* ))
352  }'
353else
354  as_fn_arith ()
355  {
356    as_val=`expr "$@" || test $? -eq 1`
357  }
358fi # as_fn_arith
359
360
361# as_fn_error ERROR [LINENO LOG_FD]
362# ---------------------------------
363# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
364# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
365# script with status $?, using 1 if that was 0.
366as_fn_error ()
367{
368  as_status=$?; test $as_status -eq 0 && as_status=1
369  if test "$3"; then
370    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
371    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
372  fi
373  $as_echo "$as_me: error: $1" >&2
374  as_fn_exit $as_status
375} # as_fn_error
376
377if expr a : '\(a\)' >/dev/null 2>&1 &&
378   test "X`expr 00001 : '.*\(...\)'`" = X001; then
379  as_expr=expr
380else
381  as_expr=false
382fi
383
384if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
385  as_basename=basename
386else
387  as_basename=false
388fi
389
390if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
391  as_dirname=dirname
392else
393  as_dirname=false
394fi
395
396as_me=`$as_basename -- "$0" ||
397$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
398	 X"$0" : 'X\(//\)$' \| \
399	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
400$as_echo X/"$0" |
401    sed '/^.*\/\([^/][^/]*\)\/*$/{
402	    s//\1/
403	    q
404	  }
405	  /^X\/\(\/\/\)$/{
406	    s//\1/
407	    q
408	  }
409	  /^X\/\(\/\).*/{
410	    s//\1/
411	    q
412	  }
413	  s/.*/./; q'`
414
415# Avoid depending upon Character Ranges.
416as_cr_letters='abcdefghijklmnopqrstuvwxyz'
417as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
418as_cr_Letters=$as_cr_letters$as_cr_LETTERS
419as_cr_digits='0123456789'
420as_cr_alnum=$as_cr_Letters$as_cr_digits
421
422
423  as_lineno_1=$LINENO as_lineno_1a=$LINENO
424  as_lineno_2=$LINENO as_lineno_2a=$LINENO
425  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
426  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
427  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
428  sed -n '
429    p
430    /[$]LINENO/=
431  ' <$as_myself |
432    sed '
433      s/[$]LINENO.*/&-/
434      t lineno
435      b
436      :lineno
437      N
438      :loop
439      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
440      t loop
441      s/-\n.*//
442    ' >$as_me.lineno &&
443  chmod +x "$as_me.lineno" ||
444    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
445
446  # Don't try to exec as it changes $[0], causing all sort of problems
447  # (the dirname of $[0] is not the place where we might find the
448  # original and so on.  Autoconf is especially sensitive to this).
449  . "./$as_me.lineno"
450  # Exit status is that of the last command.
451  exit
452}
453
454ECHO_C= ECHO_N= ECHO_T=
455case `echo -n x` in #(((((
456-n*)
457  case `echo 'xy\c'` in
458  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
459  xy)  ECHO_C='\c';;
460  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
461       ECHO_T='	';;
462  esac;;
463*)
464  ECHO_N='-n';;
465esac
466
467rm -f conf$$ conf$$.exe conf$$.file
468if test -d conf$$.dir; then
469  rm -f conf$$.dir/conf$$.file
470else
471  rm -f conf$$.dir
472  mkdir conf$$.dir 2>/dev/null
473fi
474if (echo >conf$$.file) 2>/dev/null; then
475  if ln -s conf$$.file conf$$ 2>/dev/null; then
476    as_ln_s='ln -s'
477    # ... but there are two gotchas:
478    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
479    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
480    # In both cases, we have to default to `cp -p'.
481    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
482      as_ln_s='cp -p'
483  elif ln conf$$.file conf$$ 2>/dev/null; then
484    as_ln_s=ln
485  else
486    as_ln_s='cp -p'
487  fi
488else
489  as_ln_s='cp -p'
490fi
491rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
492rmdir conf$$.dir 2>/dev/null
493
494if mkdir -p . 2>/dev/null; then
495  as_mkdir_p='mkdir -p "$as_dir"'
496else
497  test -d ./-p && rmdir ./-p
498  as_mkdir_p=false
499fi
500
501if test -x / >/dev/null 2>&1; then
502  as_test_x='test -x'
503else
504  if ls -dL / >/dev/null 2>&1; then
505    as_ls_L_option=L
506  else
507    as_ls_L_option=
508  fi
509  as_test_x='
510    eval sh -c '\''
511      if test -d "$1"; then
512	test -d "$1/.";
513      else
514	case $1 in #(
515	-*)set "./$1";;
516	esac;
517	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
518	???[sx]*):;;*)false;;esac;fi
519    '\'' sh
520  '
521fi
522as_executable_p=$as_test_x
523
524# Sed expression to map a string onto a valid CPP name.
525as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
526
527# Sed expression to map a string onto a valid variable name.
528as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529
530
531
532# Check that we are running under the correct shell.
533SHELL=${CONFIG_SHELL-/bin/sh}
534
535case X$lt_ECHO in
536X*--fallback-echo)
537  # Remove one level of quotation (which was required for Make).
538  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
539  ;;
540esac
541
542ECHO=${lt_ECHO-echo}
543if test "X$1" = X--no-reexec; then
544  # Discard the --no-reexec flag, and continue.
545  shift
546elif test "X$1" = X--fallback-echo; then
547  # Avoid inline document here, it may be left over
548  :
549elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
550  # Yippee, $ECHO works!
551  :
552else
553  # Restart under the correct shell.
554  exec $SHELL "$0" --no-reexec ${1+"$@"}
555fi
556
557if test "X$1" = X--fallback-echo; then
558  # used as fallback echo
559  shift
560  cat <<_LT_EOF
561$*
562_LT_EOF
563  exit 0
564fi
565
566# The HP-UX ksh and POSIX shell print the target directory to stdout
567# if CDPATH is set.
568(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
569
570if test -z "$lt_ECHO"; then
571  if test "X${echo_test_string+set}" != Xset; then
572    # find a string as large as possible, as long as the shell can cope with it
573    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
574      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
575      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
576	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
577      then
578        break
579      fi
580    done
581  fi
582
583  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
584     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
585     test "X$echo_testing_string" = "X$echo_test_string"; then
586    :
587  else
588    # The Solaris, AIX, and Digital Unix default echo programs unquote
589    # backslashes.  This makes it impossible to quote backslashes using
590    #   echo "$something" | sed 's/\\/\\\\/g'
591    #
592    # So, first we look for a working echo in the user's PATH.
593
594    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
595    for dir in $PATH /usr/ucb; do
596      IFS="$lt_save_ifs"
597      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
598         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
599         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
600         test "X$echo_testing_string" = "X$echo_test_string"; then
601        ECHO="$dir/echo"
602        break
603      fi
604    done
605    IFS="$lt_save_ifs"
606
607    if test "X$ECHO" = Xecho; then
608      # We didn't find a better echo, so look for alternatives.
609      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
610         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
611         test "X$echo_testing_string" = "X$echo_test_string"; then
612        # This shell has a builtin print -r that does the trick.
613        ECHO='print -r'
614      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
615	   test "X$CONFIG_SHELL" != X/bin/ksh; then
616        # If we have ksh, try running configure again with it.
617        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
618        export ORIGINAL_CONFIG_SHELL
619        CONFIG_SHELL=/bin/ksh
620        export CONFIG_SHELL
621        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
622      else
623        # Try using printf.
624        ECHO='printf %s\n'
625        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
626	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
627	   test "X$echo_testing_string" = "X$echo_test_string"; then
628	  # Cool, printf works
629	  :
630        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
631	     test "X$echo_testing_string" = 'X\t' &&
632	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
633	     test "X$echo_testing_string" = "X$echo_test_string"; then
634	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
635	  export CONFIG_SHELL
636	  SHELL="$CONFIG_SHELL"
637	  export SHELL
638	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
639        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
640	     test "X$echo_testing_string" = 'X\t' &&
641	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
642	     test "X$echo_testing_string" = "X$echo_test_string"; then
643	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
644        else
645	  # maybe with a smaller string...
646	  prev=:
647
648	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
649	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
650	    then
651	      break
652	    fi
653	    prev="$cmd"
654	  done
655
656	  if test "$prev" != 'sed 50q "$0"'; then
657	    echo_test_string=`eval $prev`
658	    export echo_test_string
659	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
660	  else
661	    # Oops.  We lost completely, so just stick with echo.
662	    ECHO=echo
663	  fi
664        fi
665      fi
666    fi
667  fi
668fi
669
670# Copy echo and quote the copy suitably for passing to libtool from
671# the Makefile, instead of quoting the original, which is used later.
672lt_ECHO=$ECHO
673if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
674   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
675fi
676
677
678
679
680exec 7<&0 </dev/null 6>&1
681
682# Name of the host.
683# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
684# so uname gets run too.
685ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
686
687#
688# Initializations.
689#
690ac_default_prefix=/usr/local
691ac_clean_files=
692ac_config_libobj_dir=.
693LIBOBJS=
694cross_compiling=no
695subdirs=
696MFLAGS=
697MAKEFLAGS=
698
699# Identity of this package.
700PACKAGE_NAME='xorg-server'
701PACKAGE_TARNAME='xorg-server'
702PACKAGE_VERSION='1.6.5'
703PACKAGE_STRING='xorg-server 1.6.5'
704PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
705PACKAGE_URL=''
706
707ac_unique_file="Makefile.am"
708# Factoring default headers for most tests.
709ac_includes_default="\
710#include <stdio.h>
711#ifdef HAVE_SYS_TYPES_H
712# include <sys/types.h>
713#endif
714#ifdef HAVE_SYS_STAT_H
715# include <sys/stat.h>
716#endif
717#ifdef STDC_HEADERS
718# include <stdlib.h>
719# include <stddef.h>
720#else
721# ifdef HAVE_STDLIB_H
722#  include <stdlib.h>
723# endif
724#endif
725#ifdef HAVE_STRING_H
726# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
727#  include <memory.h>
728# endif
729# include <string.h>
730#endif
731#ifdef HAVE_STRINGS_H
732# include <strings.h>
733#endif
734#ifdef HAVE_INTTYPES_H
735# include <inttypes.h>
736#endif
737#ifdef HAVE_STDINT_H
738# include <stdint.h>
739#endif
740#ifdef HAVE_UNISTD_H
741# include <unistd.h>
742#endif"
743
744ac_subst_vars='am__EXEEXT_FALSE
745am__EXEEXT_TRUE
746LTLIBOBJS
747LIBOBJS
748ADMIN_MAN_DIR
749DRIVER_MAN_DIR
750MISC_MAN_DIR
751FILE_MAN_DIR
752LIB_MAN_DIR
753APP_MAN_DIR
754ADMIN_MAN_SUFFIX
755DRIVER_MAN_SUFFIX
756MISC_MAN_SUFFIX
757FILE_MAN_SUFFIX
758LIB_MAN_SUFFIX
759APP_MAN_SUFFIX
760DIX_CFLAGS
761BUILD_TIME
762BUILD_DATE
763PROJECTROOT
764XKB_COMPILED_DIR
765XKM_OUTPUT_DIR
766XKB_BIN_DIRECTORY
767XKB_BASE_DIRECTORY
768XFAKESERVER_FALSE
769XFAKESERVER_TRUE
770BUILD_KDRIVEFBDEVLIB_FALSE
771BUILD_KDRIVEFBDEVLIB_TRUE
772XEPHYR_FALSE
773XEPHYR_TRUE
774XSDLSERVER_FALSE
775XSDLSERVER_TRUE
776KDRIVEFBDEV_FALSE
777KDRIVEFBDEV_TRUE
778KDRIVEVESA_FALSE
779KDRIVEVESA_TRUE
780TSLIB_FALSE
781TSLIB_TRUE
782KDRIVELINUX_FALSE
783KDRIVELINUX_TRUE
784KDRIVE_LIBS
785KDRIVE_LOCAL_LIBS
786KDRIVE_PURE_LIBS
787KDRIVE_CFLAGS
788KDRIVE_PURE_INCS
789KDRIVE_INCS
790XSDL_INCS
791XSDL_LIBS
792XEPHYR_INCS
793TSLIB_LIBS
794TSLIB_CFLAGS
795XEPHYR_LIBS
796XEPHYR_CFLAGS
797KDRIVE_FALSE
798KDRIVE_TRUE
799DMX_BUILD_USB_FALSE
800DMX_BUILD_USB_TRUE
801DMX_BUILD_LNX_FALSE
802DMX_BUILD_LNX_TRUE
803X11EXAMPLES_DEP_LIBS
804X11EXAMPLES_DEP_CFLAGS
805XRESEXAMPLES_DEP_LIBS
806XRESEXAMPLES_DEP_CFLAGS
807XTSTEXAMPLES_DEP_LIBS
808XTSTEXAMPLES_DEP_CFLAGS
809DMXXIEXAMPLES_DEP_LIBS
810DMXXIEXAMPLES_DEP_CFLAGS
811DMXXMUEXAMPLES_DEP_LIBS
812DMXXMUEXAMPLES_DEP_CFLAGS
813DMXEXAMPLES_DEP_LIBS
814DMXEXAMPLES_DEP_CFLAGS
815XDMXCONFIG_DEP_LIBS
816XDMXCONFIG_DEP_CFLAGS
817XDMX_SYS_LIBS
818XDMX_LIBS
819XDMX_CFLAGS
820DMX_FALSE
821DMX_TRUE
822DMXMODULES_LIBS
823DMXMODULES_CFLAGS
824STANDALONE_XPBPROXY_FALSE
825STANDALONE_XPBPROXY_TRUE
826XQUARTZ_FALSE
827XQUARTZ_TRUE
828HAVE_AGL_FRAMEWORK_FALSE
829HAVE_AGL_FRAMEWORK_TRUE
830HAVE_XPLUGIN_FALSE
831HAVE_XPLUGIN_TRUE
832am__fastdepOBJC_FALSE
833am__fastdepOBJC_TRUE
834OBJCDEPMODE
835OBJCFLAGS
836OBJCLINK
837OBJCCLD
838OBJC
839XPBPROXY_LIBS
840XPBPROXY_CFLAGS
841DARWIN_LIBS
842XWIN_XV_FALSE
843XWIN_XV_TRUE
844XWIN_RANDR_FALSE
845XWIN_RANDR_TRUE
846XWIN_PRIMARYFB_FALSE
847XWIN_PRIMARYFB_TRUE
848XWIN_NATIVEGDI_FALSE
849XWIN_NATIVEGDI_TRUE
850XWIN_GLX_WINDOWS_FALSE
851XWIN_GLX_WINDOWS_TRUE
852XWIN_CLIPBOARD_FALSE
853XWIN_CLIPBOARD_TRUE
854XWIN_MULTIWINDOWEXTWM_FALSE
855XWIN_MULTIWINDOWEXTWM_TRUE
856XWIN_MULTIWINDOW_FALSE
857XWIN_MULTIWINDOW_TRUE
858XWIN_FALSE
859XWIN_TRUE
860XWIN_SYS_LIBS
861XWIN_SERVER_NAME
862XWINMODULES_LIBS
863XWINMODULES_CFLAGS
864XWIN_LIBS
865XF86VIDMODE_FALSE
866XF86VIDMODE_TRUE
867DGA_FALSE
868DGA_TRUE
869SOLARIS_ASM_INLINE_FALSE
870SOLARIS_ASM_INLINE_TRUE
871SOLARIS_USL_CONSOLE_FALSE
872SOLARIS_USL_CONSOLE_TRUE
873LNXACPI_FALSE
874LNXACPI_TRUE
875LINUX_ALPHA_FALSE
876LINUX_ALPHA_TRUE
877LINUX_IA64_FALSE
878LINUX_IA64_TRUE
879XORG_BUS_SPARC_FALSE
880XORG_BUS_SPARC_TRUE
881XORG_BUS_BSDPCI_FALSE
882XORG_BUS_BSDPCI_TRUE
883XORG_BUS_LINUXPCI_FALSE
884XORG_BUS_LINUXPCI_TRUE
885XORG_FALSE
886XORG_TRUE
887abi_font
888abi_extension
889abi_xinput
890abi_videodrv
891abi_ansic
892logdir
893extdir
894sdkdir
895driverdir
896moduledir
897DEFAULT_LOGPREFIX
898DEFAULT_LIBRARY_PATH
899DEFAULT_MODULE_PATH
900XF86CONFIGFILE
901__XCONFIGFILE__
902XORG_CFLAGS
903PERL
904XORG_OS_SUBDIR
905XORG_OS
906XORG_INCS
907XORG_SYS_LIBS
908XORG_LIBS
909XORG_MODULES_LIBS
910XORG_MODULES_CFLAGS
911XF86VIDMODE_LIBS
912XF86VIDMODE_CFLAGS
913DGA_LIBS
914DGA_CFLAGS
915SOLARIS_ASM_CFLAGS
916SOLARIS_INOUT_ARCH
917PCIACCESS_LIBS
918PCIACCESS_CFLAGS
919XNEST_SYS_LIBS
920XNEST_LIBS
921XNEST_FALSE
922XNEST_TRUE
923XNESTMODULES_LIBS
924XNESTMODULES_CFLAGS
925XVFB_SYS_LIBS
926XVFB_LIBS
927XVFB_FALSE
928XVFB_TRUE
929LD_EXPORT_SYMBOLS_FLAG
930UTILS_SYS_LIBS
931XSERVER_SYS_LIBS
932XSERVER_LIBS
933XSERVERLIBS_LIBS
934XSERVERLIBS_CFLAGS
935XSERVERCFLAGS_LIBS
936XSERVERCFLAGS_CFLAGS
937DEBUG_FALSE
938DEBUG_TRUE
939VENDOR_MAN_VERSION
940VENDOR_RELEASE
941VENDOR_NAME_SHORT
942VENDOR_NAME
943DRI_DRIVER_PATH
944BASE_FONT_PATH
945SERVER_MISC_CONFIG_PATH
946PCI_TXT_IDS_PATH
947COMPILEDDEFAULTFONTPATH
948XDMAUTH_FALSE
949XDMAUTH_TRUE
950XDMCP_FALSE
951XDMCP_TRUE
952XDMCP_LIBS
953XDMCP_CFLAGS
954XF86UTILS_FALSE
955XF86UTILS_TRUE
956XCALIBRATE_FALSE
957XCALIBRATE_TRUE
958DPMSExtension_FALSE
959DPMSExtension_TRUE
960XF86BIGFONT_FALSE
961XF86BIGFONT_TRUE
962DBE_FALSE
963DBE_TRUE
964MULTIBUFFER_FALSE
965MULTIBUFFER_TRUE
966XCSECURITY_FALSE
967XCSECURITY_TRUE
968XSELINUX_FALSE
969XSELINUX_TRUE
970XACE_FALSE
971XACE_TRUE
972XINERAMA_FALSE
973XINERAMA_TRUE
974DRI2_AIGLX_FALSE
975DRI2_AIGLX_TRUE
976LIBDRM_LIBS
977LIBDRM_CFLAGS
978DRI2_FALSE
979DRI2_TRUE
980DRI2PROTO_LIBS
981DRI2PROTO_CFLAGS
982DRIPROTO_LIBS
983DRIPROTO_CFLAGS
984DRI_FALSE
985DRI_TRUE
986GLX_DEFINES
987AIGLX_FALSE
988AIGLX_TRUE
989MESA_SOURCE
990GLX_FALSE
991GLX_TRUE
992GL_LIBS
993GL_CFLAGS
994XLIB_LIBS
995XLIB_CFLAGS
996RES_FALSE
997RES_TRUE
998SCREENSAVER_FALSE
999SCREENSAVER_TRUE
1000RECORD_FALSE
1001RECORD_TRUE
1002MITSHM_FALSE
1003MITSHM_TRUE
1004COMPOSITE_FALSE
1005COMPOSITE_TRUE
1006XREGISTRY_FALSE
1007XREGISTRY_TRUE
1008XVMC_FALSE
1009XVMC_TRUE
1010XV_FALSE
1011XV_TRUE
1012CONFIG_NEED_DBUS_FALSE
1013CONFIG_NEED_DBUS_TRUE
1014CONFIG_HAL_FALSE
1015CONFIG_HAL_TRUE
1016HAL_LIBS
1017HAL_CFLAGS
1018CONFIG_DBUS_API_FALSE
1019CONFIG_DBUS_API_TRUE
1020HAVE_DBUS_FALSE
1021HAVE_DBUS_TRUE
1022DBUS_LIBS
1023DBUS_CFLAGS
1024INSTALL_LIBXF86CONFIG_FALSE
1025INSTALL_LIBXF86CONFIG_TRUE
1026MAKE_HTML
1027MAKE_PDF
1028MAKE_PS
1029MAKE_TEXT
1030BUILD_PDFDOC_FALSE
1031BUILD_PDFDOC_TRUE
1032BUILD_LINUXDOC_FALSE
1033BUILD_LINUXDOC_TRUE
1034PS2PDF
1035LINUXDOC
1036BUILDDOCS_FALSE
1037BUILDDOCS_TRUE
1038INT10_STUB_FALSE
1039INT10_STUB_TRUE
1040INT10_X86EMU_FALSE
1041INT10_X86EMU_TRUE
1042INT10_VM86_FALSE
1043INT10_VM86_TRUE
1044SECURE_RPC_FALSE
1045SECURE_RPC_TRUE
1046INSTALL_SETUID_FALSE
1047INSTALL_SETUID_TRUE
1048APPLE_APPLICATION_ID
1049APPLE_APPLICATION_NAME
1050APPLE_APPLICATIONS_DIR
1051KDRIVE_HW_FALSE
1052KDRIVE_HW_TRUE
1053SPARC64_VIDEO_FALSE
1054SPARC64_VIDEO_TRUE
1055PPC_VIDEO_FALSE
1056PPC_VIDEO_TRUE
1057I386_VIDEO_FALSE
1058I386_VIDEO_TRUE
1059ARM_VIDEO_FALSE
1060ARM_VIDEO_TRUE
1061ALPHA_VIDEO_FALSE
1062ALPHA_VIDEO_TRUE
1063GLX_ARCH_DEFINES
1064BSD_KQUEUE_APM_FALSE
1065BSD_KQUEUE_APM_TRUE
1066BSD_APM_FALSE
1067BSD_APM_TRUE
1068FREEBSD_KLDLOAD_FALSE
1069FREEBSD_KLDLOAD_TRUE
1070FBDEVHW_FALSE
1071FBDEVHW_TRUE
1072LNXAPM_FALSE
1073LNXAPM_TRUE
1074AGP_FALSE
1075AGP_TRUE
1076NEED_VSNPRINTF_FALSE
1077NEED_VSNPRINTF_TRUE
1078NEED_STRLCAT_FALSE
1079NEED_STRLCAT_TRUE
1080ALLOCA
1081XSERVER_DTRACE_FALSE
1082XSERVER_DTRACE_TRUE
1083DTRACE
1084RAWCPPFLAGS
1085RAWCPP
1086YFLAGS
1087YACC
1088LEXLIB
1089LEX_OUTPUT_ROOT
1090LEX
1091PKG_CONFIG
1092LTCXXCOMPILE
1093LTCOMPILE
1094DOLT_BASH
1095CPP
1096OTOOL64
1097OTOOL
1098LIPO
1099NMEDIT
1100DSYMUTIL
1101lt_ECHO
1102RANLIB
1103AR
1104NM
1105ac_ct_DUMPBIN
1106DUMPBIN
1107LD
1108FGREP
1109EGREP
1110GREP
1111SED
1112LIBTOOL
1113OBJDUMP
1114DLLTOOL
1115AS
1116host_os
1117host_vendor
1118host_cpu
1119host
1120build_os
1121build_vendor
1122build_cpu
1123build
1124LN_S
1125am__fastdepCCAS_FALSE
1126am__fastdepCCAS_TRUE
1127CCASDEPMODE
1128CCASFLAGS
1129CCAS
1130am__fastdepCC_FALSE
1131am__fastdepCC_TRUE
1132CCDEPMODE
1133AMDEPBACKSLASH
1134AMDEP_FALSE
1135AMDEP_TRUE
1136am__quote
1137am__include
1138DEPDIR
1139OBJEXT
1140EXEEXT
1141ac_ct_CC
1142CPPFLAGS
1143LDFLAGS
1144CFLAGS
1145CC
1146MAINT
1147MAINTAINER_MODE_FALSE
1148MAINTAINER_MODE_TRUE
1149am__untar
1150am__tar
1151AMTAR
1152am__leading_dot
1153SET_MAKE
1154AWK
1155mkdir_p
1156MKDIR_P
1157INSTALL_STRIP_PROGRAM
1158STRIP
1159install_sh
1160MAKEINFO
1161AUTOHEADER
1162AUTOMAKE
1163AUTOCONF
1164ACLOCAL
1165VERSION
1166PACKAGE
1167CYGPATH_W
1168am__isrc
1169INSTALL_DATA
1170INSTALL_SCRIPT
1171INSTALL_PROGRAM
1172target_alias
1173host_alias
1174build_alias
1175LIBS
1176ECHO_T
1177ECHO_N
1178ECHO_C
1179DEFS
1180mandir
1181localedir
1182libdir
1183psdir
1184pdfdir
1185dvidir
1186htmldir
1187infodir
1188docdir
1189oldincludedir
1190includedir
1191localstatedir
1192sharedstatedir
1193sysconfdir
1194datadir
1195datarootdir
1196libexecdir
1197sbindir
1198bindir
1199program_transform_name
1200prefix
1201exec_prefix
1202PACKAGE_URL
1203PACKAGE_BUGREPORT
1204PACKAGE_STRING
1205PACKAGE_VERSION
1206PACKAGE_TARNAME
1207PACKAGE_NAME
1208PATH_SEPARATOR
1209SHELL'
1210ac_subst_files=''
1211ac_user_opts='
1212enable_option_checking
1213enable_maintainer_mode
1214enable_dependency_tracking
1215enable_static
1216enable_shared
1217with_pic
1218enable_fast_install
1219with_gnu_ld
1220enable_libtool_lock
1221enable_largefile
1222with_dtrace
1223with_release_version
1224enable_werror
1225enable_debug
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_fontdir
1237with_default_font_path
1238with_xkb_path
1239with_xkb_output
1240with_serverconfig_path
1241with_apple_applications_dir
1242with_apple_application_name
1243with_apple_application_id
1244enable_builddocs
1245enable_install_libxf86config
1246enable_null_root_cursor
1247with_mesa_source
1248with_dri_driver_path
1249enable_aiglx
1250enable_glx_tls
1251enable_registry
1252enable_composite
1253enable_mitshm
1254enable_xres
1255enable_record
1256enable_xv
1257enable_xvmc
1258enable_dga
1259enable_screensaver
1260enable_xdmcp
1261enable_xdm_auth_1
1262enable_glx
1263enable_dri
1264enable_dri2
1265enable_xinerama
1266enable_xf86vidmode
1267enable_xace
1268enable_xselinux
1269enable_xcsecurity
1270enable_xcalibrate
1271enable_tslib
1272enable_multibuffer
1273enable_dbe
1274enable_xf86bigfont
1275enable_dpms
1276enable_config_dbus
1277enable_config_hal
1278enable_xfree86_utils
1279enable_xorg
1280enable_dmx
1281enable_xvfb
1282enable_xnest
1283enable_xquartz
1284enable_standalone_xpbproxy
1285enable_xwin
1286enable_kdrive
1287enable_xephyr
1288enable_xsdl
1289enable_xfake
1290enable_xfbdev
1291enable_install_setuid
1292enable_unix_transport
1293enable_tcp_transport
1294enable_ipv6
1295enable_local_transport
1296enable_secure_rpc
1297'
1298      ac_precious_vars='build_alias
1299host_alias
1300target_alias
1301CC
1302CFLAGS
1303LDFLAGS
1304LIBS
1305CPPFLAGS
1306CCAS
1307CCASFLAGS
1308CPP
1309PKG_CONFIG
1310YACC
1311YFLAGS
1312DBUS_CFLAGS
1313DBUS_LIBS
1314HAL_CFLAGS
1315HAL_LIBS
1316XLIB_CFLAGS
1317XLIB_LIBS
1318GL_CFLAGS
1319GL_LIBS
1320DRIPROTO_CFLAGS
1321DRIPROTO_LIBS
1322DRI2PROTO_CFLAGS
1323DRI2PROTO_LIBS
1324LIBDRM_CFLAGS
1325LIBDRM_LIBS
1326XDMCP_CFLAGS
1327XDMCP_LIBS
1328XSERVERCFLAGS_CFLAGS
1329XSERVERCFLAGS_LIBS
1330XSERVERLIBS_CFLAGS
1331XSERVERLIBS_LIBS
1332XNESTMODULES_CFLAGS
1333XNESTMODULES_LIBS
1334PCIACCESS_CFLAGS
1335PCIACCESS_LIBS
1336DGA_CFLAGS
1337DGA_LIBS
1338XF86VIDMODE_CFLAGS
1339XF86VIDMODE_LIBS
1340XORG_MODULES_CFLAGS
1341XORG_MODULES_LIBS
1342XWINMODULES_CFLAGS
1343XWINMODULES_LIBS
1344XPBPROXY_CFLAGS
1345XPBPROXY_LIBS
1346DMXMODULES_CFLAGS
1347DMXMODULES_LIBS
1348XDMXCONFIG_DEP_CFLAGS
1349XDMXCONFIG_DEP_LIBS
1350DMXEXAMPLES_DEP_CFLAGS
1351DMXEXAMPLES_DEP_LIBS
1352DMXXMUEXAMPLES_DEP_CFLAGS
1353DMXXMUEXAMPLES_DEP_LIBS
1354DMXXIEXAMPLES_DEP_CFLAGS
1355DMXXIEXAMPLES_DEP_LIBS
1356XTSTEXAMPLES_DEP_CFLAGS
1357XTSTEXAMPLES_DEP_LIBS
1358XRESEXAMPLES_DEP_CFLAGS
1359XRESEXAMPLES_DEP_LIBS
1360X11EXAMPLES_DEP_CFLAGS
1361X11EXAMPLES_DEP_LIBS
1362XEPHYR_CFLAGS
1363XEPHYR_LIBS
1364TSLIB_CFLAGS
1365TSLIB_LIBS'
1366
1367
1368# Initialize some variables set by options.
1369ac_init_help=
1370ac_init_version=false
1371ac_unrecognized_opts=
1372ac_unrecognized_sep=
1373# The variables have the same names as the options, with
1374# dashes changed to underlines.
1375cache_file=/dev/null
1376exec_prefix=NONE
1377no_create=
1378no_recursion=
1379prefix=NONE
1380program_prefix=NONE
1381program_suffix=NONE
1382program_transform_name=s,x,x,
1383silent=
1384site=
1385srcdir=
1386verbose=
1387x_includes=NONE
1388x_libraries=NONE
1389
1390# Installation directory options.
1391# These are left unexpanded so users can "make install exec_prefix=/foo"
1392# and all the variables that are supposed to be based on exec_prefix
1393# by default will actually change.
1394# Use braces instead of parens because sh, perl, etc. also accept them.
1395# (The list follows the same order as the GNU Coding Standards.)
1396bindir='${exec_prefix}/bin'
1397sbindir='${exec_prefix}/sbin'
1398libexecdir='${exec_prefix}/libexec'
1399datarootdir='${prefix}/share'
1400datadir='${datarootdir}'
1401sysconfdir='${prefix}/etc'
1402sharedstatedir='${prefix}/com'
1403localstatedir='${prefix}/var'
1404includedir='${prefix}/include'
1405oldincludedir='/usr/include'
1406docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1407infodir='${datarootdir}/info'
1408htmldir='${docdir}'
1409dvidir='${docdir}'
1410pdfdir='${docdir}'
1411psdir='${docdir}'
1412libdir='${exec_prefix}/lib'
1413localedir='${datarootdir}/locale'
1414mandir='${datarootdir}/man'
1415
1416ac_prev=
1417ac_dashdash=
1418for ac_option
1419do
1420  # If the previous option needs an argument, assign it.
1421  if test -n "$ac_prev"; then
1422    eval $ac_prev=\$ac_option
1423    ac_prev=
1424    continue
1425  fi
1426
1427  case $ac_option in
1428  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1429  *)	ac_optarg=yes ;;
1430  esac
1431
1432  # Accept the important Cygnus configure options, so we can diagnose typos.
1433
1434  case $ac_dashdash$ac_option in
1435  --)
1436    ac_dashdash=yes ;;
1437
1438  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1439    ac_prev=bindir ;;
1440  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1441    bindir=$ac_optarg ;;
1442
1443  -build | --build | --buil | --bui | --bu)
1444    ac_prev=build_alias ;;
1445  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1446    build_alias=$ac_optarg ;;
1447
1448  -cache-file | --cache-file | --cache-fil | --cache-fi \
1449  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1450    ac_prev=cache_file ;;
1451  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1452  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1453    cache_file=$ac_optarg ;;
1454
1455  --config-cache | -C)
1456    cache_file=config.cache ;;
1457
1458  -datadir | --datadir | --datadi | --datad)
1459    ac_prev=datadir ;;
1460  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1461    datadir=$ac_optarg ;;
1462
1463  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1464  | --dataroo | --dataro | --datar)
1465    ac_prev=datarootdir ;;
1466  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1467  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1468    datarootdir=$ac_optarg ;;
1469
1470  -disable-* | --disable-*)
1471    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1472    # Reject names that are not valid shell variable names.
1473    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1474      as_fn_error "invalid feature name: $ac_useropt"
1475    ac_useropt_orig=$ac_useropt
1476    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1477    case $ac_user_opts in
1478      *"
1479"enable_$ac_useropt"
1480"*) ;;
1481      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1482	 ac_unrecognized_sep=', ';;
1483    esac
1484    eval enable_$ac_useropt=no ;;
1485
1486  -docdir | --docdir | --docdi | --doc | --do)
1487    ac_prev=docdir ;;
1488  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1489    docdir=$ac_optarg ;;
1490
1491  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1492    ac_prev=dvidir ;;
1493  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1494    dvidir=$ac_optarg ;;
1495
1496  -enable-* | --enable-*)
1497    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1498    # Reject names that are not valid shell variable names.
1499    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1500      as_fn_error "invalid feature name: $ac_useropt"
1501    ac_useropt_orig=$ac_useropt
1502    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1503    case $ac_user_opts in
1504      *"
1505"enable_$ac_useropt"
1506"*) ;;
1507      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1508	 ac_unrecognized_sep=', ';;
1509    esac
1510    eval enable_$ac_useropt=\$ac_optarg ;;
1511
1512  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1513  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1514  | --exec | --exe | --ex)
1515    ac_prev=exec_prefix ;;
1516  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1517  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1518  | --exec=* | --exe=* | --ex=*)
1519    exec_prefix=$ac_optarg ;;
1520
1521  -gas | --gas | --ga | --g)
1522    # Obsolete; use --with-gas.
1523    with_gas=yes ;;
1524
1525  -help | --help | --hel | --he | -h)
1526    ac_init_help=long ;;
1527  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1528    ac_init_help=recursive ;;
1529  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1530    ac_init_help=short ;;
1531
1532  -host | --host | --hos | --ho)
1533    ac_prev=host_alias ;;
1534  -host=* | --host=* | --hos=* | --ho=*)
1535    host_alias=$ac_optarg ;;
1536
1537  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1538    ac_prev=htmldir ;;
1539  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1540  | --ht=*)
1541    htmldir=$ac_optarg ;;
1542
1543  -includedir | --includedir | --includedi | --included | --include \
1544  | --includ | --inclu | --incl | --inc)
1545    ac_prev=includedir ;;
1546  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1547  | --includ=* | --inclu=* | --incl=* | --inc=*)
1548    includedir=$ac_optarg ;;
1549
1550  -infodir | --infodir | --infodi | --infod | --info | --inf)
1551    ac_prev=infodir ;;
1552  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1553    infodir=$ac_optarg ;;
1554
1555  -libdir | --libdir | --libdi | --libd)
1556    ac_prev=libdir ;;
1557  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1558    libdir=$ac_optarg ;;
1559
1560  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1561  | --libexe | --libex | --libe)
1562    ac_prev=libexecdir ;;
1563  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1564  | --libexe=* | --libex=* | --libe=*)
1565    libexecdir=$ac_optarg ;;
1566
1567  -localedir | --localedir | --localedi | --localed | --locale)
1568    ac_prev=localedir ;;
1569  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1570    localedir=$ac_optarg ;;
1571
1572  -localstatedir | --localstatedir | --localstatedi | --localstated \
1573  | --localstate | --localstat | --localsta | --localst | --locals)
1574    ac_prev=localstatedir ;;
1575  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1576  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1577    localstatedir=$ac_optarg ;;
1578
1579  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1580    ac_prev=mandir ;;
1581  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1582    mandir=$ac_optarg ;;
1583
1584  -nfp | --nfp | --nf)
1585    # Obsolete; use --without-fp.
1586    with_fp=no ;;
1587
1588  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1589  | --no-cr | --no-c | -n)
1590    no_create=yes ;;
1591
1592  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1593  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1594    no_recursion=yes ;;
1595
1596  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1597  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1598  | --oldin | --oldi | --old | --ol | --o)
1599    ac_prev=oldincludedir ;;
1600  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1601  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1602  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1603    oldincludedir=$ac_optarg ;;
1604
1605  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1606    ac_prev=prefix ;;
1607  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1608    prefix=$ac_optarg ;;
1609
1610  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1611  | --program-pre | --program-pr | --program-p)
1612    ac_prev=program_prefix ;;
1613  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1614  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1615    program_prefix=$ac_optarg ;;
1616
1617  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1618  | --program-suf | --program-su | --program-s)
1619    ac_prev=program_suffix ;;
1620  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1621  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1622    program_suffix=$ac_optarg ;;
1623
1624  -program-transform-name | --program-transform-name \
1625  | --program-transform-nam | --program-transform-na \
1626  | --program-transform-n | --program-transform- \
1627  | --program-transform | --program-transfor \
1628  | --program-transfo | --program-transf \
1629  | --program-trans | --program-tran \
1630  | --progr-tra | --program-tr | --program-t)
1631    ac_prev=program_transform_name ;;
1632  -program-transform-name=* | --program-transform-name=* \
1633  | --program-transform-nam=* | --program-transform-na=* \
1634  | --program-transform-n=* | --program-transform-=* \
1635  | --program-transform=* | --program-transfor=* \
1636  | --program-transfo=* | --program-transf=* \
1637  | --program-trans=* | --program-tran=* \
1638  | --progr-tra=* | --program-tr=* | --program-t=*)
1639    program_transform_name=$ac_optarg ;;
1640
1641  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1642    ac_prev=pdfdir ;;
1643  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1644    pdfdir=$ac_optarg ;;
1645
1646  -psdir | --psdir | --psdi | --psd | --ps)
1647    ac_prev=psdir ;;
1648  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1649    psdir=$ac_optarg ;;
1650
1651  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1652  | -silent | --silent | --silen | --sile | --sil)
1653    silent=yes ;;
1654
1655  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1656    ac_prev=sbindir ;;
1657  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1658  | --sbi=* | --sb=*)
1659    sbindir=$ac_optarg ;;
1660
1661  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1662  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1663  | --sharedst | --shareds | --shared | --share | --shar \
1664  | --sha | --sh)
1665    ac_prev=sharedstatedir ;;
1666  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1667  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1668  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1669  | --sha=* | --sh=*)
1670    sharedstatedir=$ac_optarg ;;
1671
1672  -site | --site | --sit)
1673    ac_prev=site ;;
1674  -site=* | --site=* | --sit=*)
1675    site=$ac_optarg ;;
1676
1677  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1678    ac_prev=srcdir ;;
1679  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1680    srcdir=$ac_optarg ;;
1681
1682  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1683  | --syscon | --sysco | --sysc | --sys | --sy)
1684    ac_prev=sysconfdir ;;
1685  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1686  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1687    sysconfdir=$ac_optarg ;;
1688
1689  -target | --target | --targe | --targ | --tar | --ta | --t)
1690    ac_prev=target_alias ;;
1691  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1692    target_alias=$ac_optarg ;;
1693
1694  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1695    verbose=yes ;;
1696
1697  -version | --version | --versio | --versi | --vers | -V)
1698    ac_init_version=: ;;
1699
1700  -with-* | --with-*)
1701    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1702    # Reject names that are not valid shell variable names.
1703    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1704      as_fn_error "invalid package name: $ac_useropt"
1705    ac_useropt_orig=$ac_useropt
1706    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1707    case $ac_user_opts in
1708      *"
1709"with_$ac_useropt"
1710"*) ;;
1711      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1712	 ac_unrecognized_sep=', ';;
1713    esac
1714    eval with_$ac_useropt=\$ac_optarg ;;
1715
1716  -without-* | --without-*)
1717    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1718    # Reject names that are not valid shell variable names.
1719    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1720      as_fn_error "invalid package name: $ac_useropt"
1721    ac_useropt_orig=$ac_useropt
1722    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1723    case $ac_user_opts in
1724      *"
1725"with_$ac_useropt"
1726"*) ;;
1727      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1728	 ac_unrecognized_sep=', ';;
1729    esac
1730    eval with_$ac_useropt=no ;;
1731
1732  --x)
1733    # Obsolete; use --with-x.
1734    with_x=yes ;;
1735
1736  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1737  | --x-incl | --x-inc | --x-in | --x-i)
1738    ac_prev=x_includes ;;
1739  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1740  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1741    x_includes=$ac_optarg ;;
1742
1743  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1744  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1745    ac_prev=x_libraries ;;
1746  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1747  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1748    x_libraries=$ac_optarg ;;
1749
1750  -*) as_fn_error "unrecognized option: \`$ac_option'
1751Try \`$0 --help' for more information."
1752    ;;
1753
1754  *=*)
1755    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1756    # Reject names that are not valid shell variable names.
1757    case $ac_envvar in #(
1758      '' | [0-9]* | *[!_$as_cr_alnum]* )
1759      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1760    esac
1761    eval $ac_envvar=\$ac_optarg
1762    export $ac_envvar ;;
1763
1764  *)
1765    # FIXME: should be removed in autoconf 3.0.
1766    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1767    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1768      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1769    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1770    ;;
1771
1772  esac
1773done
1774
1775if test -n "$ac_prev"; then
1776  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1777  as_fn_error "missing argument to $ac_option"
1778fi
1779
1780if test -n "$ac_unrecognized_opts"; then
1781  case $enable_option_checking in
1782    no) ;;
1783    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1784    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1785  esac
1786fi
1787
1788# Check all directory arguments for consistency.
1789for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1790		datadir sysconfdir sharedstatedir localstatedir includedir \
1791		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1792		libdir localedir mandir
1793do
1794  eval ac_val=\$$ac_var
1795  # Remove trailing slashes.
1796  case $ac_val in
1797    */ )
1798      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1799      eval $ac_var=\$ac_val;;
1800  esac
1801  # Be sure to have absolute directory names.
1802  case $ac_val in
1803    [\\/$]* | ?:[\\/]* )  continue;;
1804    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1805  esac
1806  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1807done
1808
1809# There might be people who depend on the old broken behavior: `$host'
1810# used to hold the argument of --host etc.
1811# FIXME: To remove some day.
1812build=$build_alias
1813host=$host_alias
1814target=$target_alias
1815
1816# FIXME: To remove some day.
1817if test "x$host_alias" != x; then
1818  if test "x$build_alias" = x; then
1819    cross_compiling=maybe
1820    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1821    If a cross compiler is detected then cross compile mode will be used." >&2
1822  elif test "x$build_alias" != "x$host_alias"; then
1823    cross_compiling=yes
1824  fi
1825fi
1826
1827ac_tool_prefix=
1828test -n "$host_alias" && ac_tool_prefix=$host_alias-
1829
1830test "$silent" = yes && exec 6>/dev/null
1831
1832
1833ac_pwd=`pwd` && test -n "$ac_pwd" &&
1834ac_ls_di=`ls -di .` &&
1835ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1836  as_fn_error "working directory cannot be determined"
1837test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1838  as_fn_error "pwd does not report name of working directory"
1839
1840
1841# Find the source files, if location was not specified.
1842if test -z "$srcdir"; then
1843  ac_srcdir_defaulted=yes
1844  # Try the directory containing this script, then the parent directory.
1845  ac_confdir=`$as_dirname -- "$as_myself" ||
1846$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1847	 X"$as_myself" : 'X\(//\)[^/]' \| \
1848	 X"$as_myself" : 'X\(//\)$' \| \
1849	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1850$as_echo X"$as_myself" |
1851    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1852	    s//\1/
1853	    q
1854	  }
1855	  /^X\(\/\/\)[^/].*/{
1856	    s//\1/
1857	    q
1858	  }
1859	  /^X\(\/\/\)$/{
1860	    s//\1/
1861	    q
1862	  }
1863	  /^X\(\/\).*/{
1864	    s//\1/
1865	    q
1866	  }
1867	  s/.*/./; q'`
1868  srcdir=$ac_confdir
1869  if test ! -r "$srcdir/$ac_unique_file"; then
1870    srcdir=..
1871  fi
1872else
1873  ac_srcdir_defaulted=no
1874fi
1875if test ! -r "$srcdir/$ac_unique_file"; then
1876  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1877  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1878fi
1879ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1880ac_abs_confdir=`(
1881	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1882	pwd)`
1883# When building in place, set srcdir=.
1884if test "$ac_abs_confdir" = "$ac_pwd"; then
1885  srcdir=.
1886fi
1887# Remove unnecessary trailing slashes from srcdir.
1888# Double slashes in file names in object file debugging info
1889# mess up M-x gdb in Emacs.
1890case $srcdir in
1891*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1892esac
1893for ac_var in $ac_precious_vars; do
1894  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1895  eval ac_env_${ac_var}_value=\$${ac_var}
1896  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1897  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1898done
1899
1900#
1901# Report the --help message.
1902#
1903if test "$ac_init_help" = "long"; then
1904  # Omit some internal or obsolete options to make the list less imposing.
1905  # This message is too long to be a string in the A/UX 3.1 sh.
1906  cat <<_ACEOF
1907\`configure' configures xorg-server 1.6.5 to adapt to many kinds of systems.
1908
1909Usage: $0 [OPTION]... [VAR=VALUE]...
1910
1911To assign environment variables (e.g., CC, CFLAGS...), specify them as
1912VAR=VALUE.  See below for descriptions of some of the useful variables.
1913
1914Defaults for the options are specified in brackets.
1915
1916Configuration:
1917  -h, --help              display this help and exit
1918      --help=short        display options specific to this package
1919      --help=recursive    display the short help of all the included packages
1920  -V, --version           display version information and exit
1921  -q, --quiet, --silent   do not print \`checking...' messages
1922      --cache-file=FILE   cache test results in FILE [disabled]
1923  -C, --config-cache      alias for \`--cache-file=config.cache'
1924  -n, --no-create         do not create output files
1925      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1926
1927Installation directories:
1928  --prefix=PREFIX         install architecture-independent files in PREFIX
1929                          [$ac_default_prefix]
1930  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1931                          [PREFIX]
1932
1933By default, \`make install' will install all the files in
1934\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1935an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1936for instance \`--prefix=\$HOME'.
1937
1938For better control, use the options below.
1939
1940Fine tuning of the installation directories:
1941  --bindir=DIR            user executables [EPREFIX/bin]
1942  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1943  --libexecdir=DIR        program executables [EPREFIX/libexec]
1944  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1945  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1946  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1947  --libdir=DIR            object code libraries [EPREFIX/lib]
1948  --includedir=DIR        C header files [PREFIX/include]
1949  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1950  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1951  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1952  --infodir=DIR           info documentation [DATAROOTDIR/info]
1953  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1954  --mandir=DIR            man documentation [DATAROOTDIR/man]
1955  --docdir=DIR            documentation root [DATAROOTDIR/doc/xorg-server]
1956  --htmldir=DIR           html documentation [DOCDIR]
1957  --dvidir=DIR            dvi documentation [DOCDIR]
1958  --pdfdir=DIR            pdf documentation [DOCDIR]
1959  --psdir=DIR             ps documentation [DOCDIR]
1960_ACEOF
1961
1962  cat <<\_ACEOF
1963
1964Program names:
1965  --program-prefix=PREFIX            prepend PREFIX to installed program names
1966  --program-suffix=SUFFIX            append SUFFIX to installed program names
1967  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1968
1969System types:
1970  --build=BUILD     configure for building on BUILD [guessed]
1971  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1972_ACEOF
1973fi
1974
1975if test -n "$ac_init_help"; then
1976  case $ac_init_help in
1977     short | recursive ) echo "Configuration of xorg-server 1.6.5:";;
1978   esac
1979  cat <<\_ACEOF
1980
1981Optional Features:
1982  --disable-option-checking  ignore unrecognized --enable/--with options
1983  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1984  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1985  --enable-maintainer-mode  enable make rules and dependencies not useful
1986			  (and sometimes confusing) to the casual installer
1987  --disable-dependency-tracking  speeds up one-time build
1988  --enable-dependency-tracking   do not reject slow dependency extractors
1989  --enable-static[=PKGS]  build static libraries [default=no]
1990  --enable-shared[=PKGS]  build shared libraries [default=yes]
1991  --enable-fast-install[=PKGS]
1992                          optimize for fast installation [default=yes]
1993  --disable-libtool-lock  avoid locking (might break parallel builds)
1994  --disable-largefile     omit support for large files
1995  --enable-werror         Treat warnings as errors (default: disabled)
1996  --enable-debug          Enable debugging (default: disabled)
1997  --enable-builddocs      Build docs (default: disabled)
1998  --enable-install-libxf86config
1999                          Install libxf86config (default: disabled)
2000  --enable-null-root-cursor
2001                          Use an empty root cursor (default: use core cursor)
2002  --enable-aiglx          Build accelerated indirect GLX (default: enabled)
2003  --enable-glx-tls        Build GLX with TLS support (default: disabled)
2004  --disable-registry      Build string registry module (default: enabled)
2005  --disable-composite     Build Composite extension (default: enabled)
2006  --disable-shm           Build SHM extension (default: enabled)
2007  --disable-xres          Build XRes extension (default: enabled)
2008  --enable-record         Build Record extension (default: disabled)
2009  --disable-xv            Build Xv extension (default: enabled)
2010  --disable-xvmc          Build XvMC extension (default: enabled)
2011  --disable-dga           Build DGA extension (default: auto)
2012  --disable-screensaver   Build ScreenSaver extension (default: enabled)
2013  --disable-xdmcp         Build XDMCP extension (default: auto)
2014  --disable-xdm-auth-1    Build XDM-Auth-1 extension (default: auto)
2015  --disable-glx           Build GLX extension (default: enabled)
2016  --enable-dri            Build DRI extension (default: auto)
2017  --enable-dri2           Build DRI2 extension (default: auto)
2018  --disable-xinerama      Build Xinerama extension (default: enabled)
2019  --disable-xf86vidmode   Build XF86VidMode extension (default: auto)
2020  --disable-xace          Build X-ACE extension (default: enabled)
2021  --disable-xselinux      Build SELinux extension (default: disabled)
2022  --disable-xcsecurity    Build Security extension (default: disabled)
2023  --enable-xcalibrate     Build XCalibrate extension (default: disabled)
2024  --enable-tslib          Build kdrive tslib touchscreen support (default:
2025                          disabled)
2026  --enable-multibuffer    Build Multibuffer extension (default: disabled)
2027  --disable-dbe           Build DBE extension (default: enabled)
2028  --disable-xf86bigfont   Build XF86 Big Font extension (default: disabled)
2029  --disable-dpms          Build DPMS extension (default: enabled)
2030  --enable-config-dbus    Build D-BUS API support (default: no)
2031  --disable-config-hal    Build HAL support (default: auto)
2032  --enable-xfree86-utils  Build xfree86 DDX utilities (default: enabled)
2033  --enable-xorg           Build Xorg server (default: auto)
2034  --enable-dmx            Build DMX server (default: no)
2035  --enable-xvfb           Build Xvfb server (default: yes)
2036  --enable-xnest          Build Xnest server (default: auto)
2037  --enable-xquartz        Build Xquartz server for OS-X (default: auto)
2038  --enable-standalone-xpbproxy
2039                          Build a standalone xpbproxy (in addigion to the one
2040                          integrated into Xquartz as a separate thread)
2041                          (default: no)
2042  --enable-xwin           Build XWin server (default: auto)
2043  --enable-kdrive         Build kdrive servers (default: no)
2044  --enable-xephyr         Build the kdrive Xephyr server (default: auto)
2045  --enable-xsdl           Build the kdrive Xsdl server (default: auto)
2046  --enable-xfake          Build the kdrive 'fake' server (default: auto)
2047  --enable-xfbdev         Build the kdrive framebuffer device server (default:
2048                          auto)
2049  --enable-install-setuid Install Xorg server as owned by root with setuid bit
2050                          (default: auto)
2051  --enable-secure-rpc     Enable Secure RPC
2052
2053Optional Packages:
2054  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2055  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2056  --with-pic              try to use only PIC/non-PIC objects [default=use
2057                          both]
2058  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2059  --with-dtrace=PATH      Enable dtrace probes (default: enabled if dtrace
2060                          found)
2061  --with-release-version=STRING
2062                          Use release version string in package name
2063  --with-int10=BACKEND    int10 backend: vm86, x86emu or stub
2064  --with-vendor-name=VENDOR
2065                          Vendor string reported by the server
2066  --with-vendor-name-short=VENDOR
2067                          Short version of vendor string reported by the
2068                          server
2069  --with-vendor-web=URL   Vendor web address reported by the server
2070  --with-module-dir=DIR   Directory where modules are installed (default:
2071                          $libdir/xorg/modules)
2072  --with-log-dir=DIR      Directory where log files are kept (default:
2073                          $localstatedir/log)
2074  --with-builder-addr=ADDRESS
2075                          Builder address (default:
2076                          xorg@lists.freedesktop.org)
2077  --with-os-name=OSNAME   Name of OS (default: output of "uname -srm")
2078  --with-os-vendor=OSVENDOR
2079                          Name of OS vendor
2080  --with-builderstring=BUILDERSTRING
2081                          Additional builder string
2082  --with-fontdir=FONTDIR  Path to top level dir where fonts are installed
2083                          (default: ${libdir}/X11/fonts)
2084  --with-default-font-path=PATH
2085                          Comma separated list of font dirs
2086  --with-xkb-path=PATH    Path to XKB base dir (default: ${datadir}/X11/xkb)
2087  --with-xkb-output=PATH  Path to XKB output dir (default:
2088                          ${datadir}/X11/xkb/compiled)
2089  --with-serverconfig-path=PATH
2090                          Directory where ancillary server config files are
2091                          installed (default: ${libdir}/xorg)
2092  --with-apple-applications-dir=PATH
2093                          Path to the Applications directory (default:
2094                          /Applications/Utilities)
2095  --with-apple-application-name=NAME
2096                          Name for the .app (default: X11)
2097  --with-apple-application-id=VALUE
2098                          CFBundleIdentification for the .app (default:
2099                          org.x.X11)
2100  --with-mesa-source=MESA_SOURCE
2101                          Path to Mesa source tree
2102  --with-dri-driver-path=PATH
2103                          Path to DRI drivers (default: ${libdir}/dri)
2104
2105Some influential environment variables:
2106  CC          C compiler command
2107  CFLAGS      C compiler flags
2108  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2109              nonstandard directory <lib dir>
2110  LIBS        libraries to pass to the linker, e.g. -l<library>
2111  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2112              you have headers in a nonstandard directory <include dir>
2113  CCAS        assembler compiler command (defaults to CC)
2114  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
2115  CPP         C preprocessor
2116  PKG_CONFIG  path to pkg-config utility
2117  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
2118              the first program found out of: `bison -y', `byacc', `yacc'.
2119  YFLAGS      The list of arguments that will be passed by default to $YACC.
2120              This script will default YFLAGS to the empty string to avoid a
2121              default value of `-d' given by some make applications.
2122  DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
2123  DBUS_LIBS   linker flags for DBUS, overriding pkg-config
2124  HAL_CFLAGS  C compiler flags for HAL, overriding pkg-config
2125  HAL_LIBS    linker flags for HAL, overriding pkg-config
2126  XLIB_CFLAGS C compiler flags for XLIB, overriding pkg-config
2127  XLIB_LIBS   linker flags for XLIB, overriding pkg-config
2128  GL_CFLAGS   C compiler flags for GL, overriding pkg-config
2129  GL_LIBS     linker flags for GL, overriding pkg-config
2130  DRIPROTO_CFLAGS
2131              C compiler flags for DRIPROTO, overriding pkg-config
2132  DRIPROTO_LIBS
2133              linker flags for DRIPROTO, overriding pkg-config
2134  DRI2PROTO_CFLAGS
2135              C compiler flags for DRI2PROTO, overriding pkg-config
2136  DRI2PROTO_LIBS
2137              linker flags for DRI2PROTO, overriding pkg-config
2138  LIBDRM_CFLAGS
2139              C compiler flags for LIBDRM, overriding pkg-config
2140  LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
2141  XDMCP_CFLAGS
2142              C compiler flags for XDMCP, overriding pkg-config
2143  XDMCP_LIBS  linker flags for XDMCP, overriding pkg-config
2144  XSERVERCFLAGS_CFLAGS
2145              C compiler flags for XSERVERCFLAGS, overriding pkg-config
2146  XSERVERCFLAGS_LIBS
2147              linker flags for XSERVERCFLAGS, overriding pkg-config
2148  XSERVERLIBS_CFLAGS
2149              C compiler flags for XSERVERLIBS, overriding pkg-config
2150  XSERVERLIBS_LIBS
2151              linker flags for XSERVERLIBS, overriding pkg-config
2152  XNESTMODULES_CFLAGS
2153              C compiler flags for XNESTMODULES, overriding pkg-config
2154  XNESTMODULES_LIBS
2155              linker flags for XNESTMODULES, overriding pkg-config
2156  PCIACCESS_CFLAGS
2157              C compiler flags for PCIACCESS, overriding pkg-config
2158  PCIACCESS_LIBS
2159              linker flags for PCIACCESS, overriding pkg-config
2160  DGA_CFLAGS  C compiler flags for DGA, overriding pkg-config
2161  DGA_LIBS    linker flags for DGA, overriding pkg-config
2162  XF86VIDMODE_CFLAGS
2163              C compiler flags for XF86VIDMODE, overriding pkg-config
2164  XF86VIDMODE_LIBS
2165              linker flags for XF86VIDMODE, overriding pkg-config
2166  XORG_MODULES_CFLAGS
2167              C compiler flags for XORG_MODULES, overriding pkg-config
2168  XORG_MODULES_LIBS
2169              linker flags for XORG_MODULES, overriding pkg-config
2170  XWINMODULES_CFLAGS
2171              C compiler flags for XWINMODULES, overriding pkg-config
2172  XWINMODULES_LIBS
2173              linker flags for XWINMODULES, overriding pkg-config
2174  XPBPROXY_CFLAGS
2175              C compiler flags for XPBPROXY, overriding pkg-config
2176  XPBPROXY_LIBS
2177              linker flags for XPBPROXY, overriding pkg-config
2178  DMXMODULES_CFLAGS
2179              C compiler flags for DMXMODULES, overriding pkg-config
2180  DMXMODULES_LIBS
2181              linker flags for DMXMODULES, overriding pkg-config
2182  XDMXCONFIG_DEP_CFLAGS
2183              C compiler flags for XDMXCONFIG_DEP, overriding pkg-config
2184  XDMXCONFIG_DEP_LIBS
2185              linker flags for XDMXCONFIG_DEP, overriding pkg-config
2186  DMXEXAMPLES_DEP_CFLAGS
2187              C compiler flags for DMXEXAMPLES_DEP, overriding pkg-config
2188  DMXEXAMPLES_DEP_LIBS
2189              linker flags for DMXEXAMPLES_DEP, overriding pkg-config
2190  DMXXMUEXAMPLES_DEP_CFLAGS
2191              C compiler flags for DMXXMUEXAMPLES_DEP, overriding pkg-config
2192  DMXXMUEXAMPLES_DEP_LIBS
2193              linker flags for DMXXMUEXAMPLES_DEP, overriding pkg-config
2194  DMXXIEXAMPLES_DEP_CFLAGS
2195              C compiler flags for DMXXIEXAMPLES_DEP, overriding pkg-config
2196  DMXXIEXAMPLES_DEP_LIBS
2197              linker flags for DMXXIEXAMPLES_DEP, overriding pkg-config
2198  XTSTEXAMPLES_DEP_CFLAGS
2199              C compiler flags for XTSTEXAMPLES_DEP, overriding pkg-config
2200  XTSTEXAMPLES_DEP_LIBS
2201              linker flags for XTSTEXAMPLES_DEP, overriding pkg-config
2202  XRESEXAMPLES_DEP_CFLAGS
2203              C compiler flags for XRESEXAMPLES_DEP, overriding pkg-config
2204  XRESEXAMPLES_DEP_LIBS
2205              linker flags for XRESEXAMPLES_DEP, overriding pkg-config
2206  X11EXAMPLES_DEP_CFLAGS
2207              C compiler flags for X11EXAMPLES_DEP, overriding pkg-config
2208  X11EXAMPLES_DEP_LIBS
2209              linker flags for X11EXAMPLES_DEP, overriding pkg-config
2210  XEPHYR_CFLAGS
2211              C compiler flags for XEPHYR, overriding pkg-config
2212  XEPHYR_LIBS linker flags for XEPHYR, overriding pkg-config
2213  TSLIB_CFLAGS
2214              C compiler flags for TSLIB, overriding pkg-config
2215  TSLIB_LIBS  linker flags for TSLIB, overriding pkg-config
2216
2217Use these variables to override the choices made by `configure' or to help
2218it to find libraries and programs with nonstandard names/locations.
2219
2220Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
2221_ACEOF
2222ac_status=$?
2223fi
2224
2225if test "$ac_init_help" = "recursive"; then
2226  # If there are subdirs, report their specific --help.
2227  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2228    test -d "$ac_dir" ||
2229      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2230      continue
2231    ac_builddir=.
2232
2233case "$ac_dir" in
2234.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2235*)
2236  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2237  # A ".." for each directory in $ac_dir_suffix.
2238  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2239  case $ac_top_builddir_sub in
2240  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2241  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2242  esac ;;
2243esac
2244ac_abs_top_builddir=$ac_pwd
2245ac_abs_builddir=$ac_pwd$ac_dir_suffix
2246# for backward compatibility:
2247ac_top_builddir=$ac_top_build_prefix
2248
2249case $srcdir in
2250  .)  # We are building in place.
2251    ac_srcdir=.
2252    ac_top_srcdir=$ac_top_builddir_sub
2253    ac_abs_top_srcdir=$ac_pwd ;;
2254  [\\/]* | ?:[\\/]* )  # Absolute name.
2255    ac_srcdir=$srcdir$ac_dir_suffix;
2256    ac_top_srcdir=$srcdir
2257    ac_abs_top_srcdir=$srcdir ;;
2258  *) # Relative name.
2259    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2260    ac_top_srcdir=$ac_top_build_prefix$srcdir
2261    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2262esac
2263ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2264
2265    cd "$ac_dir" || { ac_status=$?; continue; }
2266    # Check for guested configure.
2267    if test -f "$ac_srcdir/configure.gnu"; then
2268      echo &&
2269      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2270    elif test -f "$ac_srcdir/configure"; then
2271      echo &&
2272      $SHELL "$ac_srcdir/configure" --help=recursive
2273    else
2274      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2275    fi || ac_status=$?
2276    cd "$ac_pwd" || { ac_status=$?; break; }
2277  done
2278fi
2279
2280test -n "$ac_init_help" && exit $ac_status
2281if $ac_init_version; then
2282  cat <<\_ACEOF
2283xorg-server configure 1.6.5
2284generated by GNU Autoconf 2.64
2285
2286Copyright (C) 2009 Free Software Foundation, Inc.
2287This configure script is free software; the Free Software Foundation
2288gives unlimited permission to copy, distribute and modify it.
2289_ACEOF
2290  exit
2291fi
2292
2293## ------------------------ ##
2294## Autoconf initialization. ##
2295## ------------------------ ##
2296
2297# ac_fn_c_try_compile LINENO
2298# --------------------------
2299# Try to compile conftest.$ac_ext, and return whether this succeeded.
2300ac_fn_c_try_compile ()
2301{
2302  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2303  rm -f conftest.$ac_objext
2304  if { { ac_try="$ac_compile"
2305case "(($ac_try" in
2306  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2307  *) ac_try_echo=$ac_try;;
2308esac
2309eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2310$as_echo "$ac_try_echo"; } >&5
2311  (eval "$ac_compile") 2>conftest.err
2312  ac_status=$?
2313  if test -s conftest.err; then
2314    grep -v '^ *+' conftest.err >conftest.er1
2315    cat conftest.er1 >&5
2316    mv -f conftest.er1 conftest.err
2317  fi
2318  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2319  test $ac_status = 0; } && {
2320	 test -z "$ac_c_werror_flag" ||
2321	 test ! -s conftest.err
2322       } && test -s conftest.$ac_objext; then :
2323  ac_retval=0
2324else
2325  $as_echo "$as_me: failed program was:" >&5
2326sed 's/^/| /' conftest.$ac_ext >&5
2327
2328	ac_retval=1
2329fi
2330  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2331  return $ac_retval
2332
2333} # ac_fn_c_try_compile
2334
2335# ac_fn_c_try_link LINENO
2336# -----------------------
2337# Try to link conftest.$ac_ext, and return whether this succeeded.
2338ac_fn_c_try_link ()
2339{
2340  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2341  rm -f conftest.$ac_objext conftest$ac_exeext
2342  if { { ac_try="$ac_link"
2343case "(($ac_try" in
2344  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2345  *) ac_try_echo=$ac_try;;
2346esac
2347eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2348$as_echo "$ac_try_echo"; } >&5
2349  (eval "$ac_link") 2>conftest.err
2350  ac_status=$?
2351  if test -s conftest.err; then
2352    grep -v '^ *+' conftest.err >conftest.er1
2353    cat conftest.er1 >&5
2354    mv -f conftest.er1 conftest.err
2355  fi
2356  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2357  test $ac_status = 0; } && {
2358	 test -z "$ac_c_werror_flag" ||
2359	 test ! -s conftest.err
2360       } && test -s conftest$ac_exeext && {
2361	 test "$cross_compiling" = yes ||
2362	 $as_test_x conftest$ac_exeext
2363       }; then :
2364  ac_retval=0
2365else
2366  $as_echo "$as_me: failed program was:" >&5
2367sed 's/^/| /' conftest.$ac_ext >&5
2368
2369	ac_retval=1
2370fi
2371  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2372  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2373  # interfere with the next link command; also delete a directory that is
2374  # left behind by Apple's compiler.  We do this before executing the actions.
2375  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2376  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2377  return $ac_retval
2378
2379} # ac_fn_c_try_link
2380
2381# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2382# -------------------------------------------------------
2383# Tests whether HEADER exists and can be compiled using the include files in
2384# INCLUDES, setting the cache variable VAR accordingly.
2385ac_fn_c_check_header_compile ()
2386{
2387  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2388  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2389$as_echo_n "checking for $2... " >&6; }
2390if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2391  $as_echo_n "(cached) " >&6
2392else
2393  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2394/* end confdefs.h.  */
2395$4
2396#include <$2>
2397_ACEOF
2398if ac_fn_c_try_compile "$LINENO"; then :
2399  eval "$3=yes"
2400else
2401  eval "$3=no"
2402fi
2403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2404fi
2405eval ac_res=\$$3
2406	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2407$as_echo "$ac_res" >&6; }
2408  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2409
2410} # ac_fn_c_check_header_compile
2411
2412# ac_fn_c_try_cpp LINENO
2413# ----------------------
2414# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2415ac_fn_c_try_cpp ()
2416{
2417  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2418  if { { ac_try="$ac_cpp conftest.$ac_ext"
2419case "(($ac_try" in
2420  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2421  *) ac_try_echo=$ac_try;;
2422esac
2423eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2424$as_echo "$ac_try_echo"; } >&5
2425  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2426  ac_status=$?
2427  if test -s conftest.err; then
2428    grep -v '^ *+' conftest.err >conftest.er1
2429    cat conftest.er1 >&5
2430    mv -f conftest.er1 conftest.err
2431  fi
2432  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2433  test $ac_status = 0; } >/dev/null && {
2434	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2435	 test ! -s conftest.err
2436       }; then :
2437  ac_retval=0
2438else
2439  $as_echo "$as_me: failed program was:" >&5
2440sed 's/^/| /' conftest.$ac_ext >&5
2441
2442    ac_retval=1
2443fi
2444  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2445  return $ac_retval
2446
2447} # ac_fn_c_try_cpp
2448
2449# ac_fn_c_try_run LINENO
2450# ----------------------
2451# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2452# that executables *can* be run.
2453ac_fn_c_try_run ()
2454{
2455  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2456  if { { ac_try="$ac_link"
2457case "(($ac_try" in
2458  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2459  *) ac_try_echo=$ac_try;;
2460esac
2461eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2462$as_echo "$ac_try_echo"; } >&5
2463  (eval "$ac_link") 2>&5
2464  ac_status=$?
2465  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2466  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2467  { { case "(($ac_try" in
2468  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2469  *) ac_try_echo=$ac_try;;
2470esac
2471eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2472$as_echo "$ac_try_echo"; } >&5
2473  (eval "$ac_try") 2>&5
2474  ac_status=$?
2475  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2476  test $ac_status = 0; }; }; then :
2477  ac_retval=0
2478else
2479  $as_echo "$as_me: program exited with status $ac_status" >&5
2480       $as_echo "$as_me: failed program was:" >&5
2481sed 's/^/| /' conftest.$ac_ext >&5
2482
2483       ac_retval=$ac_status
2484fi
2485  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2486  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2487  return $ac_retval
2488
2489} # ac_fn_c_try_run
2490
2491# ac_fn_c_check_func LINENO FUNC VAR
2492# ----------------------------------
2493# Tests whether FUNC exists, setting the cache variable VAR accordingly
2494ac_fn_c_check_func ()
2495{
2496  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2497  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2498$as_echo_n "checking for $2... " >&6; }
2499if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2500  $as_echo_n "(cached) " >&6
2501else
2502  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2503/* end confdefs.h.  */
2504/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2505   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2506#define $2 innocuous_$2
2507
2508/* System header to define __stub macros and hopefully few prototypes,
2509    which can conflict with char $2 (); below.
2510    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2511    <limits.h> exists even on freestanding compilers.  */
2512
2513#ifdef __STDC__
2514# include <limits.h>
2515#else
2516# include <assert.h>
2517#endif
2518
2519#undef $2
2520
2521/* Override any GCC internal prototype to avoid an error.
2522   Use char because int might match the return type of a GCC
2523   builtin and then its argument prototype would still apply.  */
2524#ifdef __cplusplus
2525extern "C"
2526#endif
2527char $2 ();
2528/* The GNU C library defines this for functions which it implements
2529    to always fail with ENOSYS.  Some functions are actually named
2530    something starting with __ and the normal name is an alias.  */
2531#if defined __stub_$2 || defined __stub___$2
2532choke me
2533#endif
2534
2535int
2536main ()
2537{
2538return $2 ();
2539  ;
2540  return 0;
2541}
2542_ACEOF
2543if ac_fn_c_try_link "$LINENO"; then :
2544  eval "$3=yes"
2545else
2546  eval "$3=no"
2547fi
2548rm -f core conftest.err conftest.$ac_objext \
2549    conftest$ac_exeext conftest.$ac_ext
2550fi
2551eval ac_res=\$$3
2552	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2553$as_echo "$ac_res" >&6; }
2554  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2555
2556} # ac_fn_c_check_func
2557
2558# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2559# -------------------------------------------------------
2560# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2561# the include files in INCLUDES and setting the cache variable VAR
2562# accordingly.
2563ac_fn_c_check_header_mongrel ()
2564{
2565  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2566  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2567  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2568$as_echo_n "checking for $2... " >&6; }
2569if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2570  $as_echo_n "(cached) " >&6
2571fi
2572eval ac_res=\$$3
2573	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2574$as_echo "$ac_res" >&6; }
2575else
2576  # Is the header compilable?
2577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2578$as_echo_n "checking $2 usability... " >&6; }
2579cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2580/* end confdefs.h.  */
2581$4
2582#include <$2>
2583_ACEOF
2584if ac_fn_c_try_compile "$LINENO"; then :
2585  ac_header_compiler=yes
2586else
2587  ac_header_compiler=no
2588fi
2589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2591$as_echo "$ac_header_compiler" >&6; }
2592
2593# Is the header present?
2594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2595$as_echo_n "checking $2 presence... " >&6; }
2596cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2597/* end confdefs.h.  */
2598#include <$2>
2599_ACEOF
2600if ac_fn_c_try_cpp "$LINENO"; then :
2601  ac_header_preproc=yes
2602else
2603  ac_header_preproc=no
2604fi
2605rm -f conftest.err conftest.$ac_ext
2606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2607$as_echo "$ac_header_preproc" >&6; }
2608
2609# So?  What about this header?
2610case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2611  yes:no: )
2612    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2613$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2614    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2615$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2616    ;;
2617  no:yes:* )
2618    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2619$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2620    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2621$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2622    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2623$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2624    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2625$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2626    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2627$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2628( cat <<\_ASBOX
2629## ---------------------------------------------------------------------- ##
2630## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
2631## ---------------------------------------------------------------------- ##
2632_ASBOX
2633     ) | sed "s/^/$as_me: WARNING:     /" >&2
2634    ;;
2635esac
2636  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2637$as_echo_n "checking for $2... " >&6; }
2638if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2639  $as_echo_n "(cached) " >&6
2640else
2641  eval "$3=\$ac_header_compiler"
2642fi
2643eval ac_res=\$$3
2644	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2645$as_echo "$ac_res" >&6; }
2646fi
2647  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2648
2649} # ac_fn_c_check_header_mongrel
2650
2651# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2652# --------------------------------------------
2653# Tries to find the compile-time value of EXPR in a program that includes
2654# INCLUDES, setting VAR accordingly. Returns whether the value could be
2655# computed
2656ac_fn_c_compute_int ()
2657{
2658  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2659  if test "$cross_compiling" = yes; then
2660    # Depending upon the size, compute the lo and hi bounds.
2661cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2662/* end confdefs.h.  */
2663$4
2664int
2665main ()
2666{
2667static int test_array [1 - 2 * !(($2) >= 0)];
2668test_array [0] = 0
2669
2670  ;
2671  return 0;
2672}
2673_ACEOF
2674if ac_fn_c_try_compile "$LINENO"; then :
2675  ac_lo=0 ac_mid=0
2676  while :; do
2677    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2678/* end confdefs.h.  */
2679$4
2680int
2681main ()
2682{
2683static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2684test_array [0] = 0
2685
2686  ;
2687  return 0;
2688}
2689_ACEOF
2690if ac_fn_c_try_compile "$LINENO"; then :
2691  ac_hi=$ac_mid; break
2692else
2693  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2694			if test $ac_lo -le $ac_mid; then
2695			  ac_lo= ac_hi=
2696			  break
2697			fi
2698			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2699fi
2700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2701  done
2702else
2703  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2704/* end confdefs.h.  */
2705$4
2706int
2707main ()
2708{
2709static int test_array [1 - 2 * !(($2) < 0)];
2710test_array [0] = 0
2711
2712  ;
2713  return 0;
2714}
2715_ACEOF
2716if ac_fn_c_try_compile "$LINENO"; then :
2717  ac_hi=-1 ac_mid=-1
2718  while :; do
2719    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2720/* end confdefs.h.  */
2721$4
2722int
2723main ()
2724{
2725static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2726test_array [0] = 0
2727
2728  ;
2729  return 0;
2730}
2731_ACEOF
2732if ac_fn_c_try_compile "$LINENO"; then :
2733  ac_lo=$ac_mid; break
2734else
2735  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2736			if test $ac_mid -le $ac_hi; then
2737			  ac_lo= ac_hi=
2738			  break
2739			fi
2740			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2741fi
2742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2743  done
2744else
2745  ac_lo= ac_hi=
2746fi
2747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2748fi
2749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2750# Binary search between lo and hi bounds.
2751while test "x$ac_lo" != "x$ac_hi"; do
2752  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2754/* end confdefs.h.  */
2755$4
2756int
2757main ()
2758{
2759static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2760test_array [0] = 0
2761
2762  ;
2763  return 0;
2764}
2765_ACEOF
2766if ac_fn_c_try_compile "$LINENO"; then :
2767  ac_hi=$ac_mid
2768else
2769  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2770fi
2771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2772done
2773case $ac_lo in #((
2774?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2775'') ac_retval=1 ;;
2776esac
2777  else
2778    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2779/* end confdefs.h.  */
2780$4
2781static long int longval () { return $2; }
2782static unsigned long int ulongval () { return $2; }
2783#include <stdio.h>
2784#include <stdlib.h>
2785int
2786main ()
2787{
2788
2789  FILE *f = fopen ("conftest.val", "w");
2790  if (! f)
2791    return 1;
2792  if (($2) < 0)
2793    {
2794      long int i = longval ();
2795      if (i != ($2))
2796	return 1;
2797      fprintf (f, "%ld", i);
2798    }
2799  else
2800    {
2801      unsigned long int i = ulongval ();
2802      if (i != ($2))
2803	return 1;
2804      fprintf (f, "%lu", i);
2805    }
2806  /* Do not output a trailing newline, as this causes \r\n confusion
2807     on some platforms.  */
2808  return ferror (f) || fclose (f) != 0;
2809
2810  ;
2811  return 0;
2812}
2813_ACEOF
2814if ac_fn_c_try_run "$LINENO"; then :
2815  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2816else
2817  ac_retval=1
2818fi
2819rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2820  conftest.$ac_objext conftest.beam conftest.$ac_ext
2821rm -f conftest.val
2822
2823  fi
2824  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2825  return $ac_retval
2826
2827} # ac_fn_c_compute_int
2828
2829# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2830# -------------------------------------------
2831# Tests whether TYPE exists after having included INCLUDES, setting cache
2832# variable VAR accordingly.
2833ac_fn_c_check_type ()
2834{
2835  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2836  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2837$as_echo_n "checking for $2... " >&6; }
2838if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2839  $as_echo_n "(cached) " >&6
2840else
2841  eval "$3=no"
2842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2843/* end confdefs.h.  */
2844$4
2845int
2846main ()
2847{
2848if (sizeof ($2))
2849	 return 0;
2850  ;
2851  return 0;
2852}
2853_ACEOF
2854if ac_fn_c_try_compile "$LINENO"; then :
2855  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2856/* end confdefs.h.  */
2857$4
2858int
2859main ()
2860{
2861if (sizeof (($2)))
2862	    return 0;
2863  ;
2864  return 0;
2865}
2866_ACEOF
2867if ac_fn_c_try_compile "$LINENO"; then :
2868
2869else
2870  eval "$3=yes"
2871fi
2872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2873fi
2874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2875fi
2876eval ac_res=\$$3
2877	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2878$as_echo "$ac_res" >&6; }
2879  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2880
2881} # ac_fn_c_check_type
2882
2883# ac_fn_c_check_decl LINENO SYMBOL VAR
2884# ------------------------------------
2885# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2886ac_fn_c_check_decl ()
2887{
2888  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2889  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2890$as_echo_n "checking whether $2 is declared... " >&6; }
2891if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2892  $as_echo_n "(cached) " >&6
2893else
2894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2895/* end confdefs.h.  */
2896$4
2897int
2898main ()
2899{
2900#ifndef $2
2901  (void) $2;
2902#endif
2903
2904  ;
2905  return 0;
2906}
2907_ACEOF
2908if ac_fn_c_try_compile "$LINENO"; then :
2909  eval "$3=yes"
2910else
2911  eval "$3=no"
2912fi
2913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2914fi
2915eval ac_res=\$$3
2916	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2917$as_echo "$ac_res" >&6; }
2918  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2919
2920} # ac_fn_c_check_decl
2921cat >config.log <<_ACEOF
2922This file contains any messages produced by compilers while
2923running configure, to aid debugging if configure makes a mistake.
2924
2925It was created by xorg-server $as_me 1.6.5, which was
2926generated by GNU Autoconf 2.64.  Invocation command line was
2927
2928  $ $0 $@
2929
2930_ACEOF
2931exec 5>>config.log
2932{
2933cat <<_ASUNAME
2934## --------- ##
2935## Platform. ##
2936## --------- ##
2937
2938hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2939uname -m = `(uname -m) 2>/dev/null || echo unknown`
2940uname -r = `(uname -r) 2>/dev/null || echo unknown`
2941uname -s = `(uname -s) 2>/dev/null || echo unknown`
2942uname -v = `(uname -v) 2>/dev/null || echo unknown`
2943
2944/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2945/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2946
2947/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2948/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2949/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2950/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2951/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2952/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2953/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2954
2955_ASUNAME
2956
2957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2958for as_dir in $PATH
2959do
2960  IFS=$as_save_IFS
2961  test -z "$as_dir" && as_dir=.
2962    $as_echo "PATH: $as_dir"
2963  done
2964IFS=$as_save_IFS
2965
2966} >&5
2967
2968cat >&5 <<_ACEOF
2969
2970
2971## ----------- ##
2972## Core tests. ##
2973## ----------- ##
2974
2975_ACEOF
2976
2977
2978# Keep a trace of the command line.
2979# Strip out --no-create and --no-recursion so they do not pile up.
2980# Strip out --silent because we don't want to record it for future runs.
2981# Also quote any args containing shell meta-characters.
2982# Make two passes to allow for proper duplicate-argument suppression.
2983ac_configure_args=
2984ac_configure_args0=
2985ac_configure_args1=
2986ac_must_keep_next=false
2987for ac_pass in 1 2
2988do
2989  for ac_arg
2990  do
2991    case $ac_arg in
2992    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2993    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2994    | -silent | --silent | --silen | --sile | --sil)
2995      continue ;;
2996    *\'*)
2997      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2998    esac
2999    case $ac_pass in
3000    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3001    2)
3002      as_fn_append ac_configure_args1 " '$ac_arg'"
3003      if test $ac_must_keep_next = true; then
3004	ac_must_keep_next=false # Got value, back to normal.
3005      else
3006	case $ac_arg in
3007	  *=* | --config-cache | -C | -disable-* | --disable-* \
3008	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3009	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3010	  | -with-* | --with-* | -without-* | --without-* | --x)
3011	    case "$ac_configure_args0 " in
3012	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3013	    esac
3014	    ;;
3015	  -* ) ac_must_keep_next=true ;;
3016	esac
3017      fi
3018      as_fn_append ac_configure_args " '$ac_arg'"
3019      ;;
3020    esac
3021  done
3022done
3023{ ac_configure_args0=; unset ac_configure_args0;}
3024{ ac_configure_args1=; unset ac_configure_args1;}
3025
3026# When interrupted or exit'd, cleanup temporary files, and complete
3027# config.log.  We remove comments because anyway the quotes in there
3028# would cause problems or look ugly.
3029# WARNING: Use '\'' to represent an apostrophe within the trap.
3030# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3031trap 'exit_status=$?
3032  # Save into config.log some information that might help in debugging.
3033  {
3034    echo
3035
3036    cat <<\_ASBOX
3037## ---------------- ##
3038## Cache variables. ##
3039## ---------------- ##
3040_ASBOX
3041    echo
3042    # The following way of writing the cache mishandles newlines in values,
3043(
3044  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3045    eval ac_val=\$$ac_var
3046    case $ac_val in #(
3047    *${as_nl}*)
3048      case $ac_var in #(
3049      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3050$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3051      esac
3052      case $ac_var in #(
3053      _ | IFS | as_nl) ;; #(
3054      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3055      *) { eval $ac_var=; unset $ac_var;} ;;
3056      esac ;;
3057    esac
3058  done
3059  (set) 2>&1 |
3060    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3061    *${as_nl}ac_space=\ *)
3062      sed -n \
3063	"s/'\''/'\''\\\\'\'''\''/g;
3064	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3065      ;; #(
3066    *)
3067      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3068      ;;
3069    esac |
3070    sort
3071)
3072    echo
3073
3074    cat <<\_ASBOX
3075## ----------------- ##
3076## Output variables. ##
3077## ----------------- ##
3078_ASBOX
3079    echo
3080    for ac_var in $ac_subst_vars
3081    do
3082      eval ac_val=\$$ac_var
3083      case $ac_val in
3084      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3085      esac
3086      $as_echo "$ac_var='\''$ac_val'\''"
3087    done | sort
3088    echo
3089
3090    if test -n "$ac_subst_files"; then
3091      cat <<\_ASBOX
3092## ------------------- ##
3093## File substitutions. ##
3094## ------------------- ##
3095_ASBOX
3096      echo
3097      for ac_var in $ac_subst_files
3098      do
3099	eval ac_val=\$$ac_var
3100	case $ac_val in
3101	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3102	esac
3103	$as_echo "$ac_var='\''$ac_val'\''"
3104      done | sort
3105      echo
3106    fi
3107
3108    if test -s confdefs.h; then
3109      cat <<\_ASBOX
3110## ----------- ##
3111## confdefs.h. ##
3112## ----------- ##
3113_ASBOX
3114      echo
3115      cat confdefs.h
3116      echo
3117    fi
3118    test "$ac_signal" != 0 &&
3119      $as_echo "$as_me: caught signal $ac_signal"
3120    $as_echo "$as_me: exit $exit_status"
3121  } >&5
3122  rm -f core *.core core.conftest.* &&
3123    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3124    exit $exit_status
3125' 0
3126for ac_signal in 1 2 13 15; do
3127  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3128done
3129ac_signal=0
3130
3131# confdefs.h avoids OS command line length limits that DEFS can exceed.
3132rm -f -r conftest* confdefs.h
3133
3134$as_echo "/* confdefs.h */" > confdefs.h
3135
3136# Predefined preprocessor variables.
3137
3138cat >>confdefs.h <<_ACEOF
3139#define PACKAGE_NAME "$PACKAGE_NAME"
3140_ACEOF
3141
3142cat >>confdefs.h <<_ACEOF
3143#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3144_ACEOF
3145
3146cat >>confdefs.h <<_ACEOF
3147#define PACKAGE_VERSION "$PACKAGE_VERSION"
3148_ACEOF
3149
3150cat >>confdefs.h <<_ACEOF
3151#define PACKAGE_STRING "$PACKAGE_STRING"
3152_ACEOF
3153
3154cat >>confdefs.h <<_ACEOF
3155#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3156_ACEOF
3157
3158cat >>confdefs.h <<_ACEOF
3159#define PACKAGE_URL "$PACKAGE_URL"
3160_ACEOF
3161
3162
3163# Let the site file select an alternate cache file if it wants to.
3164# Prefer an explicitly selected file to automatically selected ones.
3165ac_site_file1=NONE
3166ac_site_file2=NONE
3167if test -n "$CONFIG_SITE"; then
3168  ac_site_file1=$CONFIG_SITE
3169elif test "x$prefix" != xNONE; then
3170  ac_site_file1=$prefix/share/config.site
3171  ac_site_file2=$prefix/etc/config.site
3172else
3173  ac_site_file1=$ac_default_prefix/share/config.site
3174  ac_site_file2=$ac_default_prefix/etc/config.site
3175fi
3176for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3177do
3178  test "x$ac_site_file" = xNONE && continue
3179  if test -r "$ac_site_file"; then
3180    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3181$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3182    sed 's/^/| /' "$ac_site_file" >&5
3183    . "$ac_site_file"
3184  fi
3185done
3186
3187if test -r "$cache_file"; then
3188  # Some versions of bash will fail to source /dev/null (special
3189  # files actually), so we avoid doing that.
3190  if test -f "$cache_file"; then
3191    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3192$as_echo "$as_me: loading cache $cache_file" >&6;}
3193    case $cache_file in
3194      [\\/]* | ?:[\\/]* ) . "$cache_file";;
3195      *)                      . "./$cache_file";;
3196    esac
3197  fi
3198else
3199  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3200$as_echo "$as_me: creating cache $cache_file" >&6;}
3201  >$cache_file
3202fi
3203
3204# Check that the precious variables saved in the cache have kept the same
3205# value.
3206ac_cache_corrupted=false
3207for ac_var in $ac_precious_vars; do
3208  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3209  eval ac_new_set=\$ac_env_${ac_var}_set
3210  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3211  eval ac_new_val=\$ac_env_${ac_var}_value
3212  case $ac_old_set,$ac_new_set in
3213    set,)
3214      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3215$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3216      ac_cache_corrupted=: ;;
3217    ,set)
3218      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3219$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3220      ac_cache_corrupted=: ;;
3221    ,);;
3222    *)
3223      if test "x$ac_old_val" != "x$ac_new_val"; then
3224	# differences in whitespace do not lead to failure.
3225	ac_old_val_w=`echo x $ac_old_val`
3226	ac_new_val_w=`echo x $ac_new_val`
3227	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3228	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3229$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3230	  ac_cache_corrupted=:
3231	else
3232	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3233$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3234	  eval $ac_var=\$ac_old_val
3235	fi
3236	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3237$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3238	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3239$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3240      fi;;
3241  esac
3242  # Pass precious variables to config.status.
3243  if test "$ac_new_set" = set; then
3244    case $ac_new_val in
3245    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3246    *) ac_arg=$ac_var=$ac_new_val ;;
3247    esac
3248    case " $ac_configure_args " in
3249      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3250      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3251    esac
3252  fi
3253done
3254if $ac_cache_corrupted; then
3255  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3256$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3257  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3258$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3259  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3260fi
3261## -------------------- ##
3262## Main body of script. ##
3263## -------------------- ##
3264
3265ac_ext=c
3266ac_cpp='$CPP $CPPFLAGS'
3267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3269ac_compiler_gnu=$ac_cv_c_compiler_gnu
3270
3271
3272
3273am__api_version='1.11'
3274
3275ac_aux_dir=
3276for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3277  for ac_t in install-sh install.sh shtool; do
3278    if test -f "$ac_dir/$ac_t"; then
3279      ac_aux_dir=$ac_dir
3280      ac_install_sh="$ac_aux_dir/$ac_t -c"
3281      break 2
3282    fi
3283  done
3284done
3285if test -z "$ac_aux_dir"; then
3286  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3287fi
3288
3289# These three variables are undocumented and unsupported,
3290# and are intended to be withdrawn in a future Autoconf release.
3291# They can cause serious problems if a builder's source tree is in a directory
3292# whose full name contains unusual characters.
3293ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3294ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3295ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3296
3297
3298# Find a good install program.  We prefer a C program (faster),
3299# so one script is as good as another.  But avoid the broken or
3300# incompatible versions:
3301# SysV /etc/install, /usr/sbin/install
3302# SunOS /usr/etc/install
3303# IRIX /sbin/install
3304# AIX /bin/install
3305# AmigaOS /C/install, which installs bootblocks on floppy discs
3306# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3307# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3308# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3309# OS/2's system install, which has a completely different semantic
3310# ./install, which can be erroneously created by make from ./install.sh.
3311# Reject install programs that cannot install multiple files.
3312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3313$as_echo_n "checking for a BSD-compatible install... " >&6; }
3314if test -z "$INSTALL"; then
3315if test "${ac_cv_path_install+set}" = set; then :
3316  $as_echo_n "(cached) " >&6
3317else
3318  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3319for as_dir in $PATH
3320do
3321  IFS=$as_save_IFS
3322  test -z "$as_dir" && as_dir=.
3323    # Account for people who put trailing slashes in PATH elements.
3324case $as_dir/ in #((
3325  ./ | .// | /[cC]/* | \
3326  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3327  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3328  /usr/ucb/* ) ;;
3329  *)
3330    # OSF1 and SCO ODT 3.0 have their own names for install.
3331    # Don't use installbsd from OSF since it installs stuff as root
3332    # by default.
3333    for ac_prog in ginstall scoinst install; do
3334      for ac_exec_ext in '' $ac_executable_extensions; do
3335	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3336	  if test $ac_prog = install &&
3337	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3338	    # AIX install.  It has an incompatible calling convention.
3339	    :
3340	  elif test $ac_prog = install &&
3341	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3342	    # program-specific install script used by HP pwplus--don't use.
3343	    :
3344	  else
3345	    rm -rf conftest.one conftest.two conftest.dir
3346	    echo one > conftest.one
3347	    echo two > conftest.two
3348	    mkdir conftest.dir
3349	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3350	      test -s conftest.one && test -s conftest.two &&
3351	      test -s conftest.dir/conftest.one &&
3352	      test -s conftest.dir/conftest.two
3353	    then
3354	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3355	      break 3
3356	    fi
3357	  fi
3358	fi
3359      done
3360    done
3361    ;;
3362esac
3363
3364  done
3365IFS=$as_save_IFS
3366
3367rm -rf conftest.one conftest.two conftest.dir
3368
3369fi
3370  if test "${ac_cv_path_install+set}" = set; then
3371    INSTALL=$ac_cv_path_install
3372  else
3373    # As a last resort, use the slow shell script.  Don't cache a
3374    # value for INSTALL within a source directory, because that will
3375    # break other packages using the cache if that directory is
3376    # removed, or if the value is a relative name.
3377    INSTALL=$ac_install_sh
3378  fi
3379fi
3380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3381$as_echo "$INSTALL" >&6; }
3382
3383# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3384# It thinks the first close brace ends the variable substitution.
3385test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3386
3387test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3388
3389test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3390
3391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3392$as_echo_n "checking whether build environment is sane... " >&6; }
3393# Just in case
3394sleep 1
3395echo timestamp > conftest.file
3396# Reject unsafe characters in $srcdir or the absolute working directory
3397# name.  Accept space and tab only in the latter.
3398am_lf='
3399'
3400case `pwd` in
3401  *[\\\"\#\$\&\'\`$am_lf]*)
3402    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3403esac
3404case $srcdir in
3405  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3406    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3407esac
3408
3409# Do `set' in a subshell so we don't clobber the current shell's
3410# arguments.  Must try -L first in case configure is actually a
3411# symlink; some systems play weird games with the mod time of symlinks
3412# (eg FreeBSD returns the mod time of the symlink's containing
3413# directory).
3414if (
3415   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3416   if test "$*" = "X"; then
3417      # -L didn't work.
3418      set X `ls -t "$srcdir/configure" conftest.file`
3419   fi
3420   rm -f conftest.file
3421   if test "$*" != "X $srcdir/configure conftest.file" \
3422      && test "$*" != "X conftest.file $srcdir/configure"; then
3423
3424      # If neither matched, then we have a broken ls.  This can happen
3425      # if, for instance, CONFIG_SHELL is bash and it inherits a
3426      # broken ls alias from the environment.  This has actually
3427      # happened.  Such a system could not be considered "sane".
3428      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
3429alias in your environment" "$LINENO" 5
3430   fi
3431
3432   test "$2" = conftest.file
3433   )
3434then
3435   # Ok.
3436   :
3437else
3438   as_fn_error "newly created file is older than distributed files!
3439Check your system clock" "$LINENO" 5
3440fi
3441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3442$as_echo "yes" >&6; }
3443test "$program_prefix" != NONE &&
3444  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3445# Use a double $ so make ignores it.
3446test "$program_suffix" != NONE &&
3447  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3448# Double any \ or $.
3449# By default was `s,x,x', remove it if useless.
3450ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3451program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3452
3453# expand $ac_aux_dir to an absolute path
3454am_aux_dir=`cd $ac_aux_dir && pwd`
3455
3456if test x"${MISSING+set}" != xset; then
3457  case $am_aux_dir in
3458  *\ * | *\	*)
3459    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3460  *)
3461    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3462  esac
3463fi
3464# Use eval to expand $SHELL
3465if eval "$MISSING --run true"; then
3466  am_missing_run="$MISSING --run "
3467else
3468  am_missing_run=
3469  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3470$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3471fi
3472
3473if test x"${install_sh}" != xset; then
3474  case $am_aux_dir in
3475  *\ * | *\	*)
3476    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3477  *)
3478    install_sh="\${SHELL} $am_aux_dir/install-sh"
3479  esac
3480fi
3481
3482# Installed binaries are usually stripped using `strip' when the user
3483# run `make install-strip'.  However `strip' might not be the right
3484# tool to use in cross-compilation environments, therefore Automake
3485# will honor the `STRIP' environment variable to overrule this program.
3486if test "$cross_compiling" != no; then
3487  if test -n "$ac_tool_prefix"; then
3488  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3489set dummy ${ac_tool_prefix}strip; ac_word=$2
3490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3491$as_echo_n "checking for $ac_word... " >&6; }
3492if test "${ac_cv_prog_STRIP+set}" = set; then :
3493  $as_echo_n "(cached) " >&6
3494else
3495  if test -n "$STRIP"; then
3496  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3497else
3498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3499for as_dir in $PATH
3500do
3501  IFS=$as_save_IFS
3502  test -z "$as_dir" && as_dir=.
3503    for ac_exec_ext in '' $ac_executable_extensions; do
3504  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3505    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3506    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3507    break 2
3508  fi
3509done
3510  done
3511IFS=$as_save_IFS
3512
3513fi
3514fi
3515STRIP=$ac_cv_prog_STRIP
3516if test -n "$STRIP"; then
3517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3518$as_echo "$STRIP" >&6; }
3519else
3520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3521$as_echo "no" >&6; }
3522fi
3523
3524
3525fi
3526if test -z "$ac_cv_prog_STRIP"; then
3527  ac_ct_STRIP=$STRIP
3528  # Extract the first word of "strip", so it can be a program name with args.
3529set dummy strip; ac_word=$2
3530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3531$as_echo_n "checking for $ac_word... " >&6; }
3532if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3533  $as_echo_n "(cached) " >&6
3534else
3535  if test -n "$ac_ct_STRIP"; then
3536  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3537else
3538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3539for as_dir in $PATH
3540do
3541  IFS=$as_save_IFS
3542  test -z "$as_dir" && as_dir=.
3543    for ac_exec_ext in '' $ac_executable_extensions; do
3544  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3545    ac_cv_prog_ac_ct_STRIP="strip"
3546    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3547    break 2
3548  fi
3549done
3550  done
3551IFS=$as_save_IFS
3552
3553fi
3554fi
3555ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3556if test -n "$ac_ct_STRIP"; then
3557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3558$as_echo "$ac_ct_STRIP" >&6; }
3559else
3560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3561$as_echo "no" >&6; }
3562fi
3563
3564  if test "x$ac_ct_STRIP" = x; then
3565    STRIP=":"
3566  else
3567    case $cross_compiling:$ac_tool_warned in
3568yes:)
3569{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3570$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3571ac_tool_warned=yes ;;
3572esac
3573    STRIP=$ac_ct_STRIP
3574  fi
3575else
3576  STRIP="$ac_cv_prog_STRIP"
3577fi
3578
3579fi
3580INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3581
3582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3583$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3584if test -z "$MKDIR_P"; then
3585  if test "${ac_cv_path_mkdir+set}" = set; then :
3586  $as_echo_n "(cached) " >&6
3587else
3588  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3589for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3590do
3591  IFS=$as_save_IFS
3592  test -z "$as_dir" && as_dir=.
3593    for ac_prog in mkdir gmkdir; do
3594	 for ac_exec_ext in '' $ac_executable_extensions; do
3595	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3596	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3597	     'mkdir (GNU coreutils) '* | \
3598	     'mkdir (coreutils) '* | \
3599	     'mkdir (fileutils) '4.1*)
3600	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3601	       break 3;;
3602	   esac
3603	 done
3604       done
3605  done
3606IFS=$as_save_IFS
3607
3608fi
3609
3610  if test "${ac_cv_path_mkdir+set}" = set; then
3611    MKDIR_P="$ac_cv_path_mkdir -p"
3612  else
3613    # As a last resort, use the slow shell script.  Don't cache a
3614    # value for MKDIR_P within a source directory, because that will
3615    # break other packages using the cache if that directory is
3616    # removed, or if the value is a relative name.
3617    test -d ./--version && rmdir ./--version
3618    MKDIR_P="$ac_install_sh -d"
3619  fi
3620fi
3621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3622$as_echo "$MKDIR_P" >&6; }
3623
3624mkdir_p="$MKDIR_P"
3625case $mkdir_p in
3626  [\\/$]* | ?:[\\/]*) ;;
3627  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3628esac
3629
3630for ac_prog in gawk mawk nawk awk
3631do
3632  # Extract the first word of "$ac_prog", so it can be a program name with args.
3633set dummy $ac_prog; ac_word=$2
3634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3635$as_echo_n "checking for $ac_word... " >&6; }
3636if test "${ac_cv_prog_AWK+set}" = set; then :
3637  $as_echo_n "(cached) " >&6
3638else
3639  if test -n "$AWK"; then
3640  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3641else
3642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3643for as_dir in $PATH
3644do
3645  IFS=$as_save_IFS
3646  test -z "$as_dir" && as_dir=.
3647    for ac_exec_ext in '' $ac_executable_extensions; do
3648  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3649    ac_cv_prog_AWK="$ac_prog"
3650    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3651    break 2
3652  fi
3653done
3654  done
3655IFS=$as_save_IFS
3656
3657fi
3658fi
3659AWK=$ac_cv_prog_AWK
3660if test -n "$AWK"; then
3661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3662$as_echo "$AWK" >&6; }
3663else
3664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3665$as_echo "no" >&6; }
3666fi
3667
3668
3669  test -n "$AWK" && break
3670done
3671
3672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3673$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3674set x ${MAKE-make}
3675ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3676if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3677  $as_echo_n "(cached) " >&6
3678else
3679  cat >conftest.make <<\_ACEOF
3680SHELL = /bin/sh
3681all:
3682	@echo '@@@%%%=$(MAKE)=@@@%%%'
3683_ACEOF
3684# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3685case `${MAKE-make} -f conftest.make 2>/dev/null` in
3686  *@@@%%%=?*=@@@%%%*)
3687    eval ac_cv_prog_make_${ac_make}_set=yes;;
3688  *)
3689    eval ac_cv_prog_make_${ac_make}_set=no;;
3690esac
3691rm -f conftest.make
3692fi
3693if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3695$as_echo "yes" >&6; }
3696  SET_MAKE=
3697else
3698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3699$as_echo "no" >&6; }
3700  SET_MAKE="MAKE=${MAKE-make}"
3701fi
3702
3703rm -rf .tst 2>/dev/null
3704mkdir .tst 2>/dev/null
3705if test -d .tst; then
3706  am__leading_dot=.
3707else
3708  am__leading_dot=_
3709fi
3710rmdir .tst 2>/dev/null
3711
3712if test "`cd $srcdir && pwd`" != "`pwd`"; then
3713  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3714  # is not polluted with repeated "-I."
3715  am__isrc=' -I$(srcdir)'
3716  # test to see if srcdir already configured
3717  if test -f $srcdir/config.status; then
3718    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3719  fi
3720fi
3721
3722# test whether we have cygpath
3723if test -z "$CYGPATH_W"; then
3724  if (cygpath --version) >/dev/null 2>/dev/null; then
3725    CYGPATH_W='cygpath -w'
3726  else
3727    CYGPATH_W=echo
3728  fi
3729fi
3730
3731
3732# Define the identity of the package.
3733 PACKAGE='xorg-server'
3734 VERSION='1.6.5'
3735
3736
3737cat >>confdefs.h <<_ACEOF
3738#define PACKAGE "$PACKAGE"
3739_ACEOF
3740
3741
3742cat >>confdefs.h <<_ACEOF
3743#define VERSION "$VERSION"
3744_ACEOF
3745
3746# Some tools Automake needs.
3747
3748ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3749
3750
3751AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3752
3753
3754AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3755
3756
3757AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3758
3759
3760MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3761
3762# We need awk for the "check" target.  The system "awk" is bad on
3763# some platforms.
3764# Always define AMTAR for backward compatibility.
3765
3766AMTAR=${AMTAR-"${am_missing_run}tar"}
3767
3768am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3769
3770
3771
3772
3773
3774
3775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3776$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3777    # Check whether --enable-maintainer-mode was given.
3778if test "${enable_maintainer_mode+set}" = set; then :
3779  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3780else
3781  USE_MAINTAINER_MODE=no
3782fi
3783
3784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3785$as_echo "$USE_MAINTAINER_MODE" >&6; }
3786   if test $USE_MAINTAINER_MODE = yes; then
3787  MAINTAINER_MODE_TRUE=
3788  MAINTAINER_MODE_FALSE='#'
3789else
3790  MAINTAINER_MODE_TRUE='#'
3791  MAINTAINER_MODE_FALSE=
3792fi
3793
3794  MAINT=$MAINTAINER_MODE_TRUE
3795
3796
3797
3798RELEASE_DATE="2009-10-11"
3799
3800ac_config_headers="$ac_config_headers include/do-not-use-config.h"
3801
3802ac_config_headers="$ac_config_headers include/xorg-server.h"
3803
3804ac_config_headers="$ac_config_headers include/dix-config.h"
3805
3806ac_config_headers="$ac_config_headers include/xorg-config.h"
3807
3808ac_config_headers="$ac_config_headers include/xkb-config.h"
3809
3810ac_config_headers="$ac_config_headers include/xwin-config.h"
3811
3812ac_config_headers="$ac_config_headers include/kdrive-config.h"
3813
3814
3815ac_ext=c
3816ac_cpp='$CPP $CPPFLAGS'
3817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3819ac_compiler_gnu=$ac_cv_c_compiler_gnu
3820if test -n "$ac_tool_prefix"; then
3821  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3822set dummy ${ac_tool_prefix}gcc; ac_word=$2
3823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3824$as_echo_n "checking for $ac_word... " >&6; }
3825if test "${ac_cv_prog_CC+set}" = set; then :
3826  $as_echo_n "(cached) " >&6
3827else
3828  if test -n "$CC"; then
3829  ac_cv_prog_CC="$CC" # Let the user override the test.
3830else
3831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3832for as_dir in $PATH
3833do
3834  IFS=$as_save_IFS
3835  test -z "$as_dir" && as_dir=.
3836    for ac_exec_ext in '' $ac_executable_extensions; do
3837  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3838    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3839    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3840    break 2
3841  fi
3842done
3843  done
3844IFS=$as_save_IFS
3845
3846fi
3847fi
3848CC=$ac_cv_prog_CC
3849if test -n "$CC"; then
3850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3851$as_echo "$CC" >&6; }
3852else
3853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3854$as_echo "no" >&6; }
3855fi
3856
3857
3858fi
3859if test -z "$ac_cv_prog_CC"; then
3860  ac_ct_CC=$CC
3861  # Extract the first word of "gcc", so it can be a program name with args.
3862set dummy gcc; ac_word=$2
3863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3864$as_echo_n "checking for $ac_word... " >&6; }
3865if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3866  $as_echo_n "(cached) " >&6
3867else
3868  if test -n "$ac_ct_CC"; then
3869  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3870else
3871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3872for as_dir in $PATH
3873do
3874  IFS=$as_save_IFS
3875  test -z "$as_dir" && as_dir=.
3876    for ac_exec_ext in '' $ac_executable_extensions; do
3877  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3878    ac_cv_prog_ac_ct_CC="gcc"
3879    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3880    break 2
3881  fi
3882done
3883  done
3884IFS=$as_save_IFS
3885
3886fi
3887fi
3888ac_ct_CC=$ac_cv_prog_ac_ct_CC
3889if test -n "$ac_ct_CC"; then
3890  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3891$as_echo "$ac_ct_CC" >&6; }
3892else
3893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3894$as_echo "no" >&6; }
3895fi
3896
3897  if test "x$ac_ct_CC" = x; then
3898    CC=""
3899  else
3900    case $cross_compiling:$ac_tool_warned in
3901yes:)
3902{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3903$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3904ac_tool_warned=yes ;;
3905esac
3906    CC=$ac_ct_CC
3907  fi
3908else
3909  CC="$ac_cv_prog_CC"
3910fi
3911
3912if test -z "$CC"; then
3913          if test -n "$ac_tool_prefix"; then
3914    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3915set dummy ${ac_tool_prefix}cc; ac_word=$2
3916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3917$as_echo_n "checking for $ac_word... " >&6; }
3918if test "${ac_cv_prog_CC+set}" = set; then :
3919  $as_echo_n "(cached) " >&6
3920else
3921  if test -n "$CC"; then
3922  ac_cv_prog_CC="$CC" # Let the user override the test.
3923else
3924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3925for as_dir in $PATH
3926do
3927  IFS=$as_save_IFS
3928  test -z "$as_dir" && as_dir=.
3929    for ac_exec_ext in '' $ac_executable_extensions; do
3930  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3931    ac_cv_prog_CC="${ac_tool_prefix}cc"
3932    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3933    break 2
3934  fi
3935done
3936  done
3937IFS=$as_save_IFS
3938
3939fi
3940fi
3941CC=$ac_cv_prog_CC
3942if test -n "$CC"; then
3943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3944$as_echo "$CC" >&6; }
3945else
3946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3947$as_echo "no" >&6; }
3948fi
3949
3950
3951  fi
3952fi
3953if test -z "$CC"; then
3954  # Extract the first word of "cc", so it can be a program name with args.
3955set dummy cc; ac_word=$2
3956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3957$as_echo_n "checking for $ac_word... " >&6; }
3958if test "${ac_cv_prog_CC+set}" = set; then :
3959  $as_echo_n "(cached) " >&6
3960else
3961  if test -n "$CC"; then
3962  ac_cv_prog_CC="$CC" # Let the user override the test.
3963else
3964  ac_prog_rejected=no
3965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3966for as_dir in $PATH
3967do
3968  IFS=$as_save_IFS
3969  test -z "$as_dir" && as_dir=.
3970    for ac_exec_ext in '' $ac_executable_extensions; do
3971  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3972    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3973       ac_prog_rejected=yes
3974       continue
3975     fi
3976    ac_cv_prog_CC="cc"
3977    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3978    break 2
3979  fi
3980done
3981  done
3982IFS=$as_save_IFS
3983
3984if test $ac_prog_rejected = yes; then
3985  # We found a bogon in the path, so make sure we never use it.
3986  set dummy $ac_cv_prog_CC
3987  shift
3988  if test $# != 0; then
3989    # We chose a different compiler from the bogus one.
3990    # However, it has the same basename, so the bogon will be chosen
3991    # first if we set CC to just the basename; use the full file name.
3992    shift
3993    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3994  fi
3995fi
3996fi
3997fi
3998CC=$ac_cv_prog_CC
3999if test -n "$CC"; then
4000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4001$as_echo "$CC" >&6; }
4002else
4003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4004$as_echo "no" >&6; }
4005fi
4006
4007
4008fi
4009if test -z "$CC"; then
4010  if test -n "$ac_tool_prefix"; then
4011  for ac_prog in cl.exe
4012  do
4013    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4014set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4016$as_echo_n "checking for $ac_word... " >&6; }
4017if test "${ac_cv_prog_CC+set}" = set; then :
4018  $as_echo_n "(cached) " >&6
4019else
4020  if test -n "$CC"; then
4021  ac_cv_prog_CC="$CC" # Let the user override the test.
4022else
4023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4024for as_dir in $PATH
4025do
4026  IFS=$as_save_IFS
4027  test -z "$as_dir" && as_dir=.
4028    for ac_exec_ext in '' $ac_executable_extensions; do
4029  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4030    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4031    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4032    break 2
4033  fi
4034done
4035  done
4036IFS=$as_save_IFS
4037
4038fi
4039fi
4040CC=$ac_cv_prog_CC
4041if test -n "$CC"; then
4042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4043$as_echo "$CC" >&6; }
4044else
4045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4046$as_echo "no" >&6; }
4047fi
4048
4049
4050    test -n "$CC" && break
4051  done
4052fi
4053if test -z "$CC"; then
4054  ac_ct_CC=$CC
4055  for ac_prog in cl.exe
4056do
4057  # Extract the first word of "$ac_prog", so it can be a program name with args.
4058set dummy $ac_prog; ac_word=$2
4059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4060$as_echo_n "checking for $ac_word... " >&6; }
4061if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4062  $as_echo_n "(cached) " >&6
4063else
4064  if test -n "$ac_ct_CC"; then
4065  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4066else
4067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4068for as_dir in $PATH
4069do
4070  IFS=$as_save_IFS
4071  test -z "$as_dir" && as_dir=.
4072    for ac_exec_ext in '' $ac_executable_extensions; do
4073  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4074    ac_cv_prog_ac_ct_CC="$ac_prog"
4075    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4076    break 2
4077  fi
4078done
4079  done
4080IFS=$as_save_IFS
4081
4082fi
4083fi
4084ac_ct_CC=$ac_cv_prog_ac_ct_CC
4085if test -n "$ac_ct_CC"; then
4086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4087$as_echo "$ac_ct_CC" >&6; }
4088else
4089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4090$as_echo "no" >&6; }
4091fi
4092
4093
4094  test -n "$ac_ct_CC" && break
4095done
4096
4097  if test "x$ac_ct_CC" = x; then
4098    CC=""
4099  else
4100    case $cross_compiling:$ac_tool_warned in
4101yes:)
4102{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4103$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4104ac_tool_warned=yes ;;
4105esac
4106    CC=$ac_ct_CC
4107  fi
4108fi
4109
4110fi
4111
4112
4113test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4114$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4115as_fn_error "no acceptable C compiler found in \$PATH
4116See \`config.log' for more details." "$LINENO" 5; }
4117
4118# Provide some information about the compiler.
4119$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4120set X $ac_compile
4121ac_compiler=$2
4122for ac_option in --version -v -V -qversion; do
4123  { { ac_try="$ac_compiler $ac_option >&5"
4124case "(($ac_try" in
4125  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4126  *) ac_try_echo=$ac_try;;
4127esac
4128eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4129$as_echo "$ac_try_echo"; } >&5
4130  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4131  ac_status=$?
4132  if test -s conftest.err; then
4133    sed '10a\
4134... rest of stderr output deleted ...
4135         10q' conftest.err >conftest.er1
4136    cat conftest.er1 >&5
4137    rm -f conftest.er1 conftest.err
4138  fi
4139  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4140  test $ac_status = 0; }
4141done
4142
4143cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4144/* end confdefs.h.  */
4145#include <stdio.h>
4146int
4147main ()
4148{
4149FILE *f = fopen ("conftest.out", "w");
4150 return ferror (f) || fclose (f) != 0;
4151
4152  ;
4153  return 0;
4154}
4155_ACEOF
4156ac_clean_files_save=$ac_clean_files
4157ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4158# Try to create an executable without -o first, disregard a.out.
4159# It will help us diagnose broken compilers, and finding out an intuition
4160# of exeext.
4161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4162$as_echo_n "checking for C compiler default output file name... " >&6; }
4163ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4164
4165# The possible output files:
4166ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4167
4168ac_rmfiles=
4169for ac_file in $ac_files
4170do
4171  case $ac_file in
4172    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4173    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4174  esac
4175done
4176rm -f $ac_rmfiles
4177
4178if { { ac_try="$ac_link_default"
4179case "(($ac_try" in
4180  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4181  *) ac_try_echo=$ac_try;;
4182esac
4183eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4184$as_echo "$ac_try_echo"; } >&5
4185  (eval "$ac_link_default") 2>&5
4186  ac_status=$?
4187  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4188  test $ac_status = 0; }; then :
4189  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4190# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4191# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4192# so that the user can short-circuit this test for compilers unknown to
4193# Autoconf.
4194for ac_file in $ac_files ''
4195do
4196  test -f "$ac_file" || continue
4197  case $ac_file in
4198    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4199	;;
4200    [ab].out )
4201	# We found the default executable, but exeext='' is most
4202	# certainly right.
4203	break;;
4204    *.* )
4205	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4206	then :; else
4207	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4208	fi
4209	# We set ac_cv_exeext here because the later test for it is not
4210	# safe: cross compilers may not add the suffix if given an `-o'
4211	# argument, so we may need to know it at that point already.
4212	# Even if this section looks crufty: it has the advantage of
4213	# actually working.
4214	break;;
4215    * )
4216	break;;
4217  esac
4218done
4219test "$ac_cv_exeext" = no && ac_cv_exeext=
4220
4221else
4222  ac_file=''
4223fi
4224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4225$as_echo "$ac_file" >&6; }
4226if test -z "$ac_file"; then :
4227  $as_echo "$as_me: failed program was:" >&5
4228sed 's/^/| /' conftest.$ac_ext >&5
4229
4230{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4231$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4232{ as_fn_set_status 77
4233as_fn_error "C compiler cannot create executables
4234See \`config.log' for more details." "$LINENO" 5; }; }
4235fi
4236ac_exeext=$ac_cv_exeext
4237
4238# Check that the compiler produces executables we can run.  If not, either
4239# the compiler is broken, or we cross compile.
4240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4241$as_echo_n "checking whether the C compiler works... " >&6; }
4242# If not cross compiling, check that we can run a simple program.
4243if test "$cross_compiling" != yes; then
4244  if { ac_try='./$ac_file'
4245  { { case "(($ac_try" in
4246  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247  *) ac_try_echo=$ac_try;;
4248esac
4249eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4250$as_echo "$ac_try_echo"; } >&5
4251  (eval "$ac_try") 2>&5
4252  ac_status=$?
4253  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4254  test $ac_status = 0; }; }; then
4255    cross_compiling=no
4256  else
4257    if test "$cross_compiling" = maybe; then
4258	cross_compiling=yes
4259    else
4260	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4261$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4262as_fn_error "cannot run C compiled programs.
4263If you meant to cross compile, use \`--host'.
4264See \`config.log' for more details." "$LINENO" 5; }
4265    fi
4266  fi
4267fi
4268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4269$as_echo "yes" >&6; }
4270
4271rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4272ac_clean_files=$ac_clean_files_save
4273# Check that the compiler produces executables we can run.  If not, either
4274# the compiler is broken, or we cross compile.
4275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4276$as_echo_n "checking whether we are cross compiling... " >&6; }
4277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4278$as_echo "$cross_compiling" >&6; }
4279
4280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4281$as_echo_n "checking for suffix of executables... " >&6; }
4282if { { ac_try="$ac_link"
4283case "(($ac_try" in
4284  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4285  *) ac_try_echo=$ac_try;;
4286esac
4287eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4288$as_echo "$ac_try_echo"; } >&5
4289  (eval "$ac_link") 2>&5
4290  ac_status=$?
4291  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4292  test $ac_status = 0; }; then :
4293  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4294# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4295# work properly (i.e., refer to `conftest.exe'), while it won't with
4296# `rm'.
4297for ac_file in conftest.exe conftest conftest.*; do
4298  test -f "$ac_file" || continue
4299  case $ac_file in
4300    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4301    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4302	  break;;
4303    * ) break;;
4304  esac
4305done
4306else
4307  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4308$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4309as_fn_error "cannot compute suffix of executables: cannot compile and link
4310See \`config.log' for more details." "$LINENO" 5; }
4311fi
4312rm -f conftest$ac_cv_exeext
4313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4314$as_echo "$ac_cv_exeext" >&6; }
4315
4316rm -f conftest.$ac_ext
4317EXEEXT=$ac_cv_exeext
4318ac_exeext=$EXEEXT
4319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4320$as_echo_n "checking for suffix of object files... " >&6; }
4321if test "${ac_cv_objext+set}" = set; then :
4322  $as_echo_n "(cached) " >&6
4323else
4324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325/* end confdefs.h.  */
4326
4327int
4328main ()
4329{
4330
4331  ;
4332  return 0;
4333}
4334_ACEOF
4335rm -f conftest.o conftest.obj
4336if { { ac_try="$ac_compile"
4337case "(($ac_try" in
4338  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4339  *) ac_try_echo=$ac_try;;
4340esac
4341eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4342$as_echo "$ac_try_echo"; } >&5
4343  (eval "$ac_compile") 2>&5
4344  ac_status=$?
4345  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4346  test $ac_status = 0; }; then :
4347  for ac_file in conftest.o conftest.obj conftest.*; do
4348  test -f "$ac_file" || continue;
4349  case $ac_file in
4350    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4351    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4352       break;;
4353  esac
4354done
4355else
4356  $as_echo "$as_me: failed program was:" >&5
4357sed 's/^/| /' conftest.$ac_ext >&5
4358
4359{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4360$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4361as_fn_error "cannot compute suffix of object files: cannot compile
4362See \`config.log' for more details." "$LINENO" 5; }
4363fi
4364rm -f conftest.$ac_cv_objext conftest.$ac_ext
4365fi
4366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4367$as_echo "$ac_cv_objext" >&6; }
4368OBJEXT=$ac_cv_objext
4369ac_objext=$OBJEXT
4370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4371$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4372if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4373  $as_echo_n "(cached) " >&6
4374else
4375  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4376/* end confdefs.h.  */
4377
4378int
4379main ()
4380{
4381#ifndef __GNUC__
4382       choke me
4383#endif
4384
4385  ;
4386  return 0;
4387}
4388_ACEOF
4389if ac_fn_c_try_compile "$LINENO"; then :
4390  ac_compiler_gnu=yes
4391else
4392  ac_compiler_gnu=no
4393fi
4394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4395ac_cv_c_compiler_gnu=$ac_compiler_gnu
4396
4397fi
4398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4399$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4400if test $ac_compiler_gnu = yes; then
4401  GCC=yes
4402else
4403  GCC=
4404fi
4405ac_test_CFLAGS=${CFLAGS+set}
4406ac_save_CFLAGS=$CFLAGS
4407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4408$as_echo_n "checking whether $CC accepts -g... " >&6; }
4409if test "${ac_cv_prog_cc_g+set}" = set; then :
4410  $as_echo_n "(cached) " >&6
4411else
4412  ac_save_c_werror_flag=$ac_c_werror_flag
4413   ac_c_werror_flag=yes
4414   ac_cv_prog_cc_g=no
4415   CFLAGS="-g"
4416   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4417/* end confdefs.h.  */
4418
4419int
4420main ()
4421{
4422
4423  ;
4424  return 0;
4425}
4426_ACEOF
4427if ac_fn_c_try_compile "$LINENO"; then :
4428  ac_cv_prog_cc_g=yes
4429else
4430  CFLAGS=""
4431      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4432/* end confdefs.h.  */
4433
4434int
4435main ()
4436{
4437
4438  ;
4439  return 0;
4440}
4441_ACEOF
4442if ac_fn_c_try_compile "$LINENO"; then :
4443
4444else
4445  ac_c_werror_flag=$ac_save_c_werror_flag
4446	 CFLAGS="-g"
4447	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4448/* end confdefs.h.  */
4449
4450int
4451main ()
4452{
4453
4454  ;
4455  return 0;
4456}
4457_ACEOF
4458if ac_fn_c_try_compile "$LINENO"; then :
4459  ac_cv_prog_cc_g=yes
4460fi
4461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4462fi
4463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4464fi
4465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4466   ac_c_werror_flag=$ac_save_c_werror_flag
4467fi
4468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4469$as_echo "$ac_cv_prog_cc_g" >&6; }
4470if test "$ac_test_CFLAGS" = set; then
4471  CFLAGS=$ac_save_CFLAGS
4472elif test $ac_cv_prog_cc_g = yes; then
4473  if test "$GCC" = yes; then
4474    CFLAGS="-g -O2"
4475  else
4476    CFLAGS="-g"
4477  fi
4478else
4479  if test "$GCC" = yes; then
4480    CFLAGS="-O2"
4481  else
4482    CFLAGS=
4483  fi
4484fi
4485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4486$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4487if test "${ac_cv_prog_cc_c89+set}" = set; then :
4488  $as_echo_n "(cached) " >&6
4489else
4490  ac_cv_prog_cc_c89=no
4491ac_save_CC=$CC
4492cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4493/* end confdefs.h.  */
4494#include <stdarg.h>
4495#include <stdio.h>
4496#include <sys/types.h>
4497#include <sys/stat.h>
4498/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4499struct buf { int x; };
4500FILE * (*rcsopen) (struct buf *, struct stat *, int);
4501static char *e (p, i)
4502     char **p;
4503     int i;
4504{
4505  return p[i];
4506}
4507static char *f (char * (*g) (char **, int), char **p, ...)
4508{
4509  char *s;
4510  va_list v;
4511  va_start (v,p);
4512  s = g (p, va_arg (v,int));
4513  va_end (v);
4514  return s;
4515}
4516
4517/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4518   function prototypes and stuff, but not '\xHH' hex character constants.
4519   These don't provoke an error unfortunately, instead are silently treated
4520   as 'x'.  The following induces an error, until -std is added to get
4521   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4522   array size at least.  It's necessary to write '\x00'==0 to get something
4523   that's true only with -std.  */
4524int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4525
4526/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4527   inside strings and character constants.  */
4528#define FOO(x) 'x'
4529int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4530
4531int test (int i, double x);
4532struct s1 {int (*f) (int a);};
4533struct s2 {int (*f) (double a);};
4534int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4535int argc;
4536char **argv;
4537int
4538main ()
4539{
4540return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4541  ;
4542  return 0;
4543}
4544_ACEOF
4545for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4546	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4547do
4548  CC="$ac_save_CC $ac_arg"
4549  if ac_fn_c_try_compile "$LINENO"; then :
4550  ac_cv_prog_cc_c89=$ac_arg
4551fi
4552rm -f core conftest.err conftest.$ac_objext
4553  test "x$ac_cv_prog_cc_c89" != "xno" && break
4554done
4555rm -f conftest.$ac_ext
4556CC=$ac_save_CC
4557
4558fi
4559# AC_CACHE_VAL
4560case "x$ac_cv_prog_cc_c89" in
4561  x)
4562    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4563$as_echo "none needed" >&6; } ;;
4564  xno)
4565    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4566$as_echo "unsupported" >&6; } ;;
4567  *)
4568    CC="$CC $ac_cv_prog_cc_c89"
4569    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4570$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4571esac
4572if test "x$ac_cv_prog_cc_c89" != xno; then :
4573
4574fi
4575
4576ac_ext=c
4577ac_cpp='$CPP $CPPFLAGS'
4578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4580ac_compiler_gnu=$ac_cv_c_compiler_gnu
4581DEPDIR="${am__leading_dot}deps"
4582
4583ac_config_commands="$ac_config_commands depfiles"
4584
4585
4586am_make=${MAKE-make}
4587cat > confinc << 'END'
4588am__doit:
4589	@echo this is the am__doit target
4590.PHONY: am__doit
4591END
4592# If we don't find an include directive, just comment out the code.
4593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4594$as_echo_n "checking for style of include used by $am_make... " >&6; }
4595am__include="#"
4596am__quote=
4597_am_result=none
4598# First try GNU make style include.
4599echo "include confinc" > confmf
4600# Ignore all kinds of additional output from `make'.
4601case `$am_make -s -f confmf 2> /dev/null` in #(
4602*the\ am__doit\ target*)
4603  am__include=include
4604  am__quote=
4605  _am_result=GNU
4606  ;;
4607esac
4608# Now try BSD make style include.
4609if test "$am__include" = "#"; then
4610   echo '.include "confinc"' > confmf
4611   case `$am_make -s -f confmf 2> /dev/null` in #(
4612   *the\ am__doit\ target*)
4613     am__include=.include
4614     am__quote="\""
4615     _am_result=BSD
4616     ;;
4617   esac
4618fi
4619
4620
4621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4622$as_echo "$_am_result" >&6; }
4623rm -f confinc confmf
4624
4625# Check whether --enable-dependency-tracking was given.
4626if test "${enable_dependency_tracking+set}" = set; then :
4627  enableval=$enable_dependency_tracking;
4628fi
4629
4630if test "x$enable_dependency_tracking" != xno; then
4631  am_depcomp="$ac_aux_dir/depcomp"
4632  AMDEPBACKSLASH='\'
4633fi
4634 if test "x$enable_dependency_tracking" != xno; then
4635  AMDEP_TRUE=
4636  AMDEP_FALSE='#'
4637else
4638  AMDEP_TRUE='#'
4639  AMDEP_FALSE=
4640fi
4641
4642
4643
4644depcc="$CC"   am_compiler_list=
4645
4646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4647$as_echo_n "checking dependency style of $depcc... " >&6; }
4648if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4649  $as_echo_n "(cached) " >&6
4650else
4651  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4652  # We make a subdir and do the tests there.  Otherwise we can end up
4653  # making bogus files that we don't know about and never remove.  For
4654  # instance it was reported that on HP-UX the gcc test will end up
4655  # making a dummy file named `D' -- because `-MD' means `put the output
4656  # in D'.
4657  mkdir conftest.dir
4658  # Copy depcomp to subdir because otherwise we won't find it if we're
4659  # using a relative directory.
4660  cp "$am_depcomp" conftest.dir
4661  cd conftest.dir
4662  # We will build objects and dependencies in a subdirectory because
4663  # it helps to detect inapplicable dependency modes.  For instance
4664  # both Tru64's cc and ICC support -MD to output dependencies as a
4665  # side effect of compilation, but ICC will put the dependencies in
4666  # the current directory while Tru64 will put them in the object
4667  # directory.
4668  mkdir sub
4669
4670  am_cv_CC_dependencies_compiler_type=none
4671  if test "$am_compiler_list" = ""; then
4672     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4673  fi
4674  am__universal=false
4675  case " $depcc " in #(
4676     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4677     esac
4678
4679  for depmode in $am_compiler_list; do
4680    # Setup a source with many dependencies, because some compilers
4681    # like to wrap large dependency lists on column 80 (with \), and
4682    # we should not choose a depcomp mode which is confused by this.
4683    #
4684    # We need to recreate these files for each test, as the compiler may
4685    # overwrite some of them when testing with obscure command lines.
4686    # This happens at least with the AIX C compiler.
4687    : > sub/conftest.c
4688    for i in 1 2 3 4 5 6; do
4689      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4690      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4691      # Solaris 8's {/usr,}/bin/sh.
4692      touch sub/conftst$i.h
4693    done
4694    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4695
4696    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4697    # mode.  It turns out that the SunPro C++ compiler does not properly
4698    # handle `-M -o', and we need to detect this.  Also, some Intel
4699    # versions had trouble with output in subdirs
4700    am__obj=sub/conftest.${OBJEXT-o}
4701    am__minus_obj="-o $am__obj"
4702    case $depmode in
4703    gcc)
4704      # This depmode causes a compiler race in universal mode.
4705      test "$am__universal" = false || continue
4706      ;;
4707    nosideeffect)
4708      # after this tag, mechanisms are not by side-effect, so they'll
4709      # only be used when explicitly requested
4710      if test "x$enable_dependency_tracking" = xyes; then
4711	continue
4712      else
4713	break
4714      fi
4715      ;;
4716    msvisualcpp | msvcmsys)
4717      # This compiler won't grok `-c -o', but also, the minuso test has
4718      # not run yet.  These depmodes are late enough in the game, and
4719      # so weak that their functioning should not be impacted.
4720      am__obj=conftest.${OBJEXT-o}
4721      am__minus_obj=
4722      ;;
4723    none) break ;;
4724    esac
4725    if depmode=$depmode \
4726       source=sub/conftest.c object=$am__obj \
4727       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4728       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4729         >/dev/null 2>conftest.err &&
4730       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4731       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4732       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4733       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4734      # icc doesn't choke on unknown options, it will just issue warnings
4735      # or remarks (even with -Werror).  So we grep stderr for any message
4736      # that says an option was ignored or not supported.
4737      # When given -MP, icc 7.0 and 7.1 complain thusly:
4738      #   icc: Command line warning: ignoring option '-M'; no argument required
4739      # The diagnosis changed in icc 8.0:
4740      #   icc: Command line remark: option '-MP' not supported
4741      if (grep 'ignoring option' conftest.err ||
4742          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4743        am_cv_CC_dependencies_compiler_type=$depmode
4744        break
4745      fi
4746    fi
4747  done
4748
4749  cd ..
4750  rm -rf conftest.dir
4751else
4752  am_cv_CC_dependencies_compiler_type=none
4753fi
4754
4755fi
4756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4757$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4758CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4759
4760 if
4761  test "x$enable_dependency_tracking" != xno \
4762  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4763  am__fastdepCC_TRUE=
4764  am__fastdepCC_FALSE='#'
4765else
4766  am__fastdepCC_TRUE='#'
4767  am__fastdepCC_FALSE=
4768fi
4769
4770
4771# By default we simply use the C compiler to build assembly code.
4772
4773test "${CCAS+set}" = set || CCAS=$CC
4774test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4775
4776
4777
4778depcc="$CCAS"   am_compiler_list=
4779
4780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4781$as_echo_n "checking dependency style of $depcc... " >&6; }
4782if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
4783  $as_echo_n "(cached) " >&6
4784else
4785  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4786  # We make a subdir and do the tests there.  Otherwise we can end up
4787  # making bogus files that we don't know about and never remove.  For
4788  # instance it was reported that on HP-UX the gcc test will end up
4789  # making a dummy file named `D' -- because `-MD' means `put the output
4790  # in D'.
4791  mkdir conftest.dir
4792  # Copy depcomp to subdir because otherwise we won't find it if we're
4793  # using a relative directory.
4794  cp "$am_depcomp" conftest.dir
4795  cd conftest.dir
4796  # We will build objects and dependencies in a subdirectory because
4797  # it helps to detect inapplicable dependency modes.  For instance
4798  # both Tru64's cc and ICC support -MD to output dependencies as a
4799  # side effect of compilation, but ICC will put the dependencies in
4800  # the current directory while Tru64 will put them in the object
4801  # directory.
4802  mkdir sub
4803
4804  am_cv_CCAS_dependencies_compiler_type=none
4805  if test "$am_compiler_list" = ""; then
4806     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4807  fi
4808  am__universal=false
4809
4810
4811  for depmode in $am_compiler_list; do
4812    # Setup a source with many dependencies, because some compilers
4813    # like to wrap large dependency lists on column 80 (with \), and
4814    # we should not choose a depcomp mode which is confused by this.
4815    #
4816    # We need to recreate these files for each test, as the compiler may
4817    # overwrite some of them when testing with obscure command lines.
4818    # This happens at least with the AIX C compiler.
4819    : > sub/conftest.c
4820    for i in 1 2 3 4 5 6; do
4821      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4822      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4823      # Solaris 8's {/usr,}/bin/sh.
4824      touch sub/conftst$i.h
4825    done
4826    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4827
4828    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4829    # mode.  It turns out that the SunPro C++ compiler does not properly
4830    # handle `-M -o', and we need to detect this.  Also, some Intel
4831    # versions had trouble with output in subdirs
4832    am__obj=sub/conftest.${OBJEXT-o}
4833    am__minus_obj="-o $am__obj"
4834    case $depmode in
4835    gcc)
4836      # This depmode causes a compiler race in universal mode.
4837      test "$am__universal" = false || continue
4838      ;;
4839    nosideeffect)
4840      # after this tag, mechanisms are not by side-effect, so they'll
4841      # only be used when explicitly requested
4842      if test "x$enable_dependency_tracking" = xyes; then
4843	continue
4844      else
4845	break
4846      fi
4847      ;;
4848    msvisualcpp | msvcmsys)
4849      # This compiler won't grok `-c -o', but also, the minuso test has
4850      # not run yet.  These depmodes are late enough in the game, and
4851      # so weak that their functioning should not be impacted.
4852      am__obj=conftest.${OBJEXT-o}
4853      am__minus_obj=
4854      ;;
4855    none) break ;;
4856    esac
4857    if depmode=$depmode \
4858       source=sub/conftest.c object=$am__obj \
4859       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4860       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4861         >/dev/null 2>conftest.err &&
4862       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4863       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4864       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4865       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4866      # icc doesn't choke on unknown options, it will just issue warnings
4867      # or remarks (even with -Werror).  So we grep stderr for any message
4868      # that says an option was ignored or not supported.
4869      # When given -MP, icc 7.0 and 7.1 complain thusly:
4870      #   icc: Command line warning: ignoring option '-M'; no argument required
4871      # The diagnosis changed in icc 8.0:
4872      #   icc: Command line remark: option '-MP' not supported
4873      if (grep 'ignoring option' conftest.err ||
4874          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4875        am_cv_CCAS_dependencies_compiler_type=$depmode
4876        break
4877      fi
4878    fi
4879  done
4880
4881  cd ..
4882  rm -rf conftest.dir
4883else
4884  am_cv_CCAS_dependencies_compiler_type=none
4885fi
4886
4887fi
4888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4889$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4890CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4891
4892 if
4893  test "x$enable_dependency_tracking" != xno \
4894  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4895  am__fastdepCCAS_TRUE=
4896  am__fastdepCCAS_FALSE='#'
4897else
4898  am__fastdepCCAS_TRUE='#'
4899  am__fastdepCCAS_FALSE=
4900fi
4901
4902
4903
4904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4905$as_echo_n "checking whether ln -s works... " >&6; }
4906LN_S=$as_ln_s
4907if test "$LN_S" = "ln -s"; then
4908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4909$as_echo "yes" >&6; }
4910else
4911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4912$as_echo "no, using $LN_S" >&6; }
4913fi
4914
4915# Make sure we can run config.sub.
4916$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4917  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4918
4919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4920$as_echo_n "checking build system type... " >&6; }
4921if test "${ac_cv_build+set}" = set; then :
4922  $as_echo_n "(cached) " >&6
4923else
4924  ac_build_alias=$build_alias
4925test "x$ac_build_alias" = x &&
4926  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4927test "x$ac_build_alias" = x &&
4928  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4929ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4930  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4931
4932fi
4933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4934$as_echo "$ac_cv_build" >&6; }
4935case $ac_cv_build in
4936*-*-*) ;;
4937*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4938esac
4939build=$ac_cv_build
4940ac_save_IFS=$IFS; IFS='-'
4941set x $ac_cv_build
4942shift
4943build_cpu=$1
4944build_vendor=$2
4945shift; shift
4946# Remember, the first character of IFS is used to create $*,
4947# except with old shells:
4948build_os=$*
4949IFS=$ac_save_IFS
4950case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4951
4952
4953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4954$as_echo_n "checking host system type... " >&6; }
4955if test "${ac_cv_host+set}" = set; then :
4956  $as_echo_n "(cached) " >&6
4957else
4958  if test "x$host_alias" = x; then
4959  ac_cv_host=$ac_cv_build
4960else
4961  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4962    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4963fi
4964
4965fi
4966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4967$as_echo "$ac_cv_host" >&6; }
4968case $ac_cv_host in
4969*-*-*) ;;
4970*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4971esac
4972host=$ac_cv_host
4973ac_save_IFS=$IFS; IFS='-'
4974set x $ac_cv_host
4975shift
4976host_cpu=$1
4977host_vendor=$2
4978shift; shift
4979# Remember, the first character of IFS is used to create $*,
4980# except with old shells:
4981host_os=$*
4982IFS=$ac_save_IFS
4983case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4984
4985
4986enable_win32_dll=yes
4987
4988case $host in
4989*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
4990  if test -n "$ac_tool_prefix"; then
4991  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4992set dummy ${ac_tool_prefix}as; ac_word=$2
4993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4994$as_echo_n "checking for $ac_word... " >&6; }
4995if test "${ac_cv_prog_AS+set}" = set; then :
4996  $as_echo_n "(cached) " >&6
4997else
4998  if test -n "$AS"; then
4999  ac_cv_prog_AS="$AS" # Let the user override the test.
5000else
5001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5002for as_dir in $PATH
5003do
5004  IFS=$as_save_IFS
5005  test -z "$as_dir" && as_dir=.
5006    for ac_exec_ext in '' $ac_executable_extensions; do
5007  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5008    ac_cv_prog_AS="${ac_tool_prefix}as"
5009    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5010    break 2
5011  fi
5012done
5013  done
5014IFS=$as_save_IFS
5015
5016fi
5017fi
5018AS=$ac_cv_prog_AS
5019if test -n "$AS"; then
5020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5021$as_echo "$AS" >&6; }
5022else
5023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5024$as_echo "no" >&6; }
5025fi
5026
5027
5028fi
5029if test -z "$ac_cv_prog_AS"; then
5030  ac_ct_AS=$AS
5031  # Extract the first word of "as", so it can be a program name with args.
5032set dummy as; ac_word=$2
5033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5034$as_echo_n "checking for $ac_word... " >&6; }
5035if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5036  $as_echo_n "(cached) " >&6
5037else
5038  if test -n "$ac_ct_AS"; then
5039  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5040else
5041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042for as_dir in $PATH
5043do
5044  IFS=$as_save_IFS
5045  test -z "$as_dir" && as_dir=.
5046    for ac_exec_ext in '' $ac_executable_extensions; do
5047  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5048    ac_cv_prog_ac_ct_AS="as"
5049    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5050    break 2
5051  fi
5052done
5053  done
5054IFS=$as_save_IFS
5055
5056fi
5057fi
5058ac_ct_AS=$ac_cv_prog_ac_ct_AS
5059if test -n "$ac_ct_AS"; then
5060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5061$as_echo "$ac_ct_AS" >&6; }
5062else
5063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5064$as_echo "no" >&6; }
5065fi
5066
5067  if test "x$ac_ct_AS" = x; then
5068    AS="false"
5069  else
5070    case $cross_compiling:$ac_tool_warned in
5071yes:)
5072{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5073$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5074ac_tool_warned=yes ;;
5075esac
5076    AS=$ac_ct_AS
5077  fi
5078else
5079  AS="$ac_cv_prog_AS"
5080fi
5081
5082  if test -n "$ac_tool_prefix"; then
5083  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5084set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5086$as_echo_n "checking for $ac_word... " >&6; }
5087if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
5088  $as_echo_n "(cached) " >&6
5089else
5090  if test -n "$DLLTOOL"; then
5091  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5092else
5093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094for as_dir in $PATH
5095do
5096  IFS=$as_save_IFS
5097  test -z "$as_dir" && as_dir=.
5098    for ac_exec_ext in '' $ac_executable_extensions; do
5099  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5100    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5101    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5102    break 2
5103  fi
5104done
5105  done
5106IFS=$as_save_IFS
5107
5108fi
5109fi
5110DLLTOOL=$ac_cv_prog_DLLTOOL
5111if test -n "$DLLTOOL"; then
5112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5113$as_echo "$DLLTOOL" >&6; }
5114else
5115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5116$as_echo "no" >&6; }
5117fi
5118
5119
5120fi
5121if test -z "$ac_cv_prog_DLLTOOL"; then
5122  ac_ct_DLLTOOL=$DLLTOOL
5123  # Extract the first word of "dlltool", so it can be a program name with args.
5124set dummy dlltool; ac_word=$2
5125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5126$as_echo_n "checking for $ac_word... " >&6; }
5127if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
5128  $as_echo_n "(cached) " >&6
5129else
5130  if test -n "$ac_ct_DLLTOOL"; then
5131  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5132else
5133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134for as_dir in $PATH
5135do
5136  IFS=$as_save_IFS
5137  test -z "$as_dir" && as_dir=.
5138    for ac_exec_ext in '' $ac_executable_extensions; do
5139  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5140    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5141    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5142    break 2
5143  fi
5144done
5145  done
5146IFS=$as_save_IFS
5147
5148fi
5149fi
5150ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5151if test -n "$ac_ct_DLLTOOL"; then
5152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5153$as_echo "$ac_ct_DLLTOOL" >&6; }
5154else
5155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5156$as_echo "no" >&6; }
5157fi
5158
5159  if test "x$ac_ct_DLLTOOL" = x; then
5160    DLLTOOL="false"
5161  else
5162    case $cross_compiling:$ac_tool_warned in
5163yes:)
5164{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5165$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5166ac_tool_warned=yes ;;
5167esac
5168    DLLTOOL=$ac_ct_DLLTOOL
5169  fi
5170else
5171  DLLTOOL="$ac_cv_prog_DLLTOOL"
5172fi
5173
5174  if test -n "$ac_tool_prefix"; then
5175  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5176set dummy ${ac_tool_prefix}objdump; ac_word=$2
5177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5178$as_echo_n "checking for $ac_word... " >&6; }
5179if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5180  $as_echo_n "(cached) " >&6
5181else
5182  if test -n "$OBJDUMP"; then
5183  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5184else
5185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186for as_dir in $PATH
5187do
5188  IFS=$as_save_IFS
5189  test -z "$as_dir" && as_dir=.
5190    for ac_exec_ext in '' $ac_executable_extensions; do
5191  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5192    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5193    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5194    break 2
5195  fi
5196done
5197  done
5198IFS=$as_save_IFS
5199
5200fi
5201fi
5202OBJDUMP=$ac_cv_prog_OBJDUMP
5203if test -n "$OBJDUMP"; then
5204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5205$as_echo "$OBJDUMP" >&6; }
5206else
5207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5208$as_echo "no" >&6; }
5209fi
5210
5211
5212fi
5213if test -z "$ac_cv_prog_OBJDUMP"; then
5214  ac_ct_OBJDUMP=$OBJDUMP
5215  # Extract the first word of "objdump", so it can be a program name with args.
5216set dummy objdump; ac_word=$2
5217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5218$as_echo_n "checking for $ac_word... " >&6; }
5219if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5220  $as_echo_n "(cached) " >&6
5221else
5222  if test -n "$ac_ct_OBJDUMP"; then
5223  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5224else
5225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226for as_dir in $PATH
5227do
5228  IFS=$as_save_IFS
5229  test -z "$as_dir" && as_dir=.
5230    for ac_exec_ext in '' $ac_executable_extensions; do
5231  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5232    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5233    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5234    break 2
5235  fi
5236done
5237  done
5238IFS=$as_save_IFS
5239
5240fi
5241fi
5242ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5243if test -n "$ac_ct_OBJDUMP"; then
5244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5245$as_echo "$ac_ct_OBJDUMP" >&6; }
5246else
5247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5248$as_echo "no" >&6; }
5249fi
5250
5251  if test "x$ac_ct_OBJDUMP" = x; then
5252    OBJDUMP="false"
5253  else
5254    case $cross_compiling:$ac_tool_warned in
5255yes:)
5256{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5257$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5258ac_tool_warned=yes ;;
5259esac
5260    OBJDUMP=$ac_ct_OBJDUMP
5261  fi
5262else
5263  OBJDUMP="$ac_cv_prog_OBJDUMP"
5264fi
5265
5266  ;;
5267esac
5268
5269test -z "$AS" && AS=as
5270
5271
5272
5273
5274
5275test -z "$DLLTOOL" && DLLTOOL=dlltool
5276
5277
5278
5279
5280
5281test -z "$OBJDUMP" && OBJDUMP=objdump
5282
5283
5284
5285
5286
5287
5288
5289# Check whether --enable-static was given.
5290if test "${enable_static+set}" = set; then :
5291  enableval=$enable_static; p=${PACKAGE-default}
5292    case $enableval in
5293    yes) enable_static=yes ;;
5294    no) enable_static=no ;;
5295    *)
5296     enable_static=no
5297      # Look at the argument we got.  We use all the common list separators.
5298      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5299      for pkg in $enableval; do
5300	IFS="$lt_save_ifs"
5301	if test "X$pkg" = "X$p"; then
5302	  enable_static=yes
5303	fi
5304      done
5305      IFS="$lt_save_ifs"
5306      ;;
5307    esac
5308else
5309  enable_static=no
5310fi
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320case `pwd` in
5321  *\ * | *\	*)
5322    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5323$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5324esac
5325
5326
5327
5328macro_version='2.2.6'
5329macro_revision='1.3012'
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343ltmain="$ac_aux_dir/ltmain.sh"
5344
5345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5346$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5347if test "${ac_cv_path_SED+set}" = set; then :
5348  $as_echo_n "(cached) " >&6
5349else
5350            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5351     for ac_i in 1 2 3 4 5 6 7; do
5352       ac_script="$ac_script$as_nl$ac_script"
5353     done
5354     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5355     { ac_script=; unset ac_script;}
5356     if test -z "$SED"; then
5357  ac_path_SED_found=false
5358  # Loop through the user's path and test for each of PROGNAME-LIST
5359  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5360for as_dir in $PATH
5361do
5362  IFS=$as_save_IFS
5363  test -z "$as_dir" && as_dir=.
5364    for ac_prog in sed gsed; do
5365    for ac_exec_ext in '' $ac_executable_extensions; do
5366      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5367      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5368# Check for GNU ac_path_SED and select it if it is found.
5369  # Check for GNU $ac_path_SED
5370case `"$ac_path_SED" --version 2>&1` in
5371*GNU*)
5372  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5373*)
5374  ac_count=0
5375  $as_echo_n 0123456789 >"conftest.in"
5376  while :
5377  do
5378    cat "conftest.in" "conftest.in" >"conftest.tmp"
5379    mv "conftest.tmp" "conftest.in"
5380    cp "conftest.in" "conftest.nl"
5381    $as_echo '' >> "conftest.nl"
5382    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5383    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5384    as_fn_arith $ac_count + 1 && ac_count=$as_val
5385    if test $ac_count -gt ${ac_path_SED_max-0}; then
5386      # Best one so far, save it but keep looking for a better one
5387      ac_cv_path_SED="$ac_path_SED"
5388      ac_path_SED_max=$ac_count
5389    fi
5390    # 10*(2^10) chars as input seems more than enough
5391    test $ac_count -gt 10 && break
5392  done
5393  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5394esac
5395
5396      $ac_path_SED_found && break 3
5397    done
5398  done
5399  done
5400IFS=$as_save_IFS
5401  if test -z "$ac_cv_path_SED"; then
5402    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5403  fi
5404else
5405  ac_cv_path_SED=$SED
5406fi
5407
5408fi
5409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5410$as_echo "$ac_cv_path_SED" >&6; }
5411 SED="$ac_cv_path_SED"
5412  rm -f conftest.sed
5413
5414test -z "$SED" && SED=sed
5415Xsed="$SED -e 1s/^X//"
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5428$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5429if test "${ac_cv_path_GREP+set}" = set; then :
5430  $as_echo_n "(cached) " >&6
5431else
5432  if test -z "$GREP"; then
5433  ac_path_GREP_found=false
5434  # Loop through the user's path and test for each of PROGNAME-LIST
5435  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5436for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5437do
5438  IFS=$as_save_IFS
5439  test -z "$as_dir" && as_dir=.
5440    for ac_prog in grep ggrep; do
5441    for ac_exec_ext in '' $ac_executable_extensions; do
5442      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5443      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5444# Check for GNU ac_path_GREP and select it if it is found.
5445  # Check for GNU $ac_path_GREP
5446case `"$ac_path_GREP" --version 2>&1` in
5447*GNU*)
5448  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5449*)
5450  ac_count=0
5451  $as_echo_n 0123456789 >"conftest.in"
5452  while :
5453  do
5454    cat "conftest.in" "conftest.in" >"conftest.tmp"
5455    mv "conftest.tmp" "conftest.in"
5456    cp "conftest.in" "conftest.nl"
5457    $as_echo 'GREP' >> "conftest.nl"
5458    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5459    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5460    as_fn_arith $ac_count + 1 && ac_count=$as_val
5461    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5462      # Best one so far, save it but keep looking for a better one
5463      ac_cv_path_GREP="$ac_path_GREP"
5464      ac_path_GREP_max=$ac_count
5465    fi
5466    # 10*(2^10) chars as input seems more than enough
5467    test $ac_count -gt 10 && break
5468  done
5469  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5470esac
5471
5472      $ac_path_GREP_found && break 3
5473    done
5474  done
5475  done
5476IFS=$as_save_IFS
5477  if test -z "$ac_cv_path_GREP"; then
5478    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5479  fi
5480else
5481  ac_cv_path_GREP=$GREP
5482fi
5483
5484fi
5485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5486$as_echo "$ac_cv_path_GREP" >&6; }
5487 GREP="$ac_cv_path_GREP"
5488
5489
5490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5491$as_echo_n "checking for egrep... " >&6; }
5492if test "${ac_cv_path_EGREP+set}" = set; then :
5493  $as_echo_n "(cached) " >&6
5494else
5495  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5496   then ac_cv_path_EGREP="$GREP -E"
5497   else
5498     if test -z "$EGREP"; then
5499  ac_path_EGREP_found=false
5500  # Loop through the user's path and test for each of PROGNAME-LIST
5501  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5502for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5503do
5504  IFS=$as_save_IFS
5505  test -z "$as_dir" && as_dir=.
5506    for ac_prog in egrep; do
5507    for ac_exec_ext in '' $ac_executable_extensions; do
5508      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5509      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5510# Check for GNU ac_path_EGREP and select it if it is found.
5511  # Check for GNU $ac_path_EGREP
5512case `"$ac_path_EGREP" --version 2>&1` in
5513*GNU*)
5514  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5515*)
5516  ac_count=0
5517  $as_echo_n 0123456789 >"conftest.in"
5518  while :
5519  do
5520    cat "conftest.in" "conftest.in" >"conftest.tmp"
5521    mv "conftest.tmp" "conftest.in"
5522    cp "conftest.in" "conftest.nl"
5523    $as_echo 'EGREP' >> "conftest.nl"
5524    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5525    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5526    as_fn_arith $ac_count + 1 && ac_count=$as_val
5527    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5528      # Best one so far, save it but keep looking for a better one
5529      ac_cv_path_EGREP="$ac_path_EGREP"
5530      ac_path_EGREP_max=$ac_count
5531    fi
5532    # 10*(2^10) chars as input seems more than enough
5533    test $ac_count -gt 10 && break
5534  done
5535  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5536esac
5537
5538      $ac_path_EGREP_found && break 3
5539    done
5540  done
5541  done
5542IFS=$as_save_IFS
5543  if test -z "$ac_cv_path_EGREP"; then
5544    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5545  fi
5546else
5547  ac_cv_path_EGREP=$EGREP
5548fi
5549
5550   fi
5551fi
5552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5553$as_echo "$ac_cv_path_EGREP" >&6; }
5554 EGREP="$ac_cv_path_EGREP"
5555
5556
5557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5558$as_echo_n "checking for fgrep... " >&6; }
5559if test "${ac_cv_path_FGREP+set}" = set; then :
5560  $as_echo_n "(cached) " >&6
5561else
5562  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5563   then ac_cv_path_FGREP="$GREP -F"
5564   else
5565     if test -z "$FGREP"; then
5566  ac_path_FGREP_found=false
5567  # Loop through the user's path and test for each of PROGNAME-LIST
5568  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5569for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5570do
5571  IFS=$as_save_IFS
5572  test -z "$as_dir" && as_dir=.
5573    for ac_prog in fgrep; do
5574    for ac_exec_ext in '' $ac_executable_extensions; do
5575      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5576      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5577# Check for GNU ac_path_FGREP and select it if it is found.
5578  # Check for GNU $ac_path_FGREP
5579case `"$ac_path_FGREP" --version 2>&1` in
5580*GNU*)
5581  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5582*)
5583  ac_count=0
5584  $as_echo_n 0123456789 >"conftest.in"
5585  while :
5586  do
5587    cat "conftest.in" "conftest.in" >"conftest.tmp"
5588    mv "conftest.tmp" "conftest.in"
5589    cp "conftest.in" "conftest.nl"
5590    $as_echo 'FGREP' >> "conftest.nl"
5591    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5592    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5593    as_fn_arith $ac_count + 1 && ac_count=$as_val
5594    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5595      # Best one so far, save it but keep looking for a better one
5596      ac_cv_path_FGREP="$ac_path_FGREP"
5597      ac_path_FGREP_max=$ac_count
5598    fi
5599    # 10*(2^10) chars as input seems more than enough
5600    test $ac_count -gt 10 && break
5601  done
5602  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5603esac
5604
5605      $ac_path_FGREP_found && break 3
5606    done
5607  done
5608  done
5609IFS=$as_save_IFS
5610  if test -z "$ac_cv_path_FGREP"; then
5611    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5612  fi
5613else
5614  ac_cv_path_FGREP=$FGREP
5615fi
5616
5617   fi
5618fi
5619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5620$as_echo "$ac_cv_path_FGREP" >&6; }
5621 FGREP="$ac_cv_path_FGREP"
5622
5623
5624test -z "$GREP" && GREP=grep
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644# Check whether --with-gnu-ld was given.
5645if test "${with_gnu_ld+set}" = set; then :
5646  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5647else
5648  with_gnu_ld=no
5649fi
5650
5651ac_prog=ld
5652if test "$GCC" = yes; then
5653  # Check if gcc -print-prog-name=ld gives a path.
5654  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5655$as_echo_n "checking for ld used by $CC... " >&6; }
5656  case $host in
5657  *-*-mingw*)
5658    # gcc leaves a trailing carriage return which upsets mingw
5659    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5660  *)
5661    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5662  esac
5663  case $ac_prog in
5664    # Accept absolute paths.
5665    [\\/]* | ?:[\\/]*)
5666      re_direlt='/[^/][^/]*/\.\./'
5667      # Canonicalize the pathname of ld
5668      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5669      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5670	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5671      done
5672      test -z "$LD" && LD="$ac_prog"
5673      ;;
5674  "")
5675    # If it fails, then pretend we aren't using GCC.
5676    ac_prog=ld
5677    ;;
5678  *)
5679    # If it is relative, then search for the first ld in PATH.
5680    with_gnu_ld=unknown
5681    ;;
5682  esac
5683elif test "$with_gnu_ld" = yes; then
5684  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5685$as_echo_n "checking for GNU ld... " >&6; }
5686else
5687  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5688$as_echo_n "checking for non-GNU ld... " >&6; }
5689fi
5690if test "${lt_cv_path_LD+set}" = set; then :
5691  $as_echo_n "(cached) " >&6
5692else
5693  if test -z "$LD"; then
5694  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5695  for ac_dir in $PATH; do
5696    IFS="$lt_save_ifs"
5697    test -z "$ac_dir" && ac_dir=.
5698    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5699      lt_cv_path_LD="$ac_dir/$ac_prog"
5700      # Check to see if the program is GNU ld.  I'd rather use --version,
5701      # but apparently some variants of GNU ld only accept -v.
5702      # Break only if it was the GNU/non-GNU ld that we prefer.
5703      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5704      *GNU* | *'with BFD'*)
5705	test "$with_gnu_ld" != no && break
5706	;;
5707      *)
5708	test "$with_gnu_ld" != yes && break
5709	;;
5710      esac
5711    fi
5712  done
5713  IFS="$lt_save_ifs"
5714else
5715  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5716fi
5717fi
5718
5719LD="$lt_cv_path_LD"
5720if test -n "$LD"; then
5721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5722$as_echo "$LD" >&6; }
5723else
5724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5725$as_echo "no" >&6; }
5726fi
5727test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5729$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5730if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5731  $as_echo_n "(cached) " >&6
5732else
5733  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5734case `$LD -v 2>&1 </dev/null` in
5735*GNU* | *'with BFD'*)
5736  lt_cv_prog_gnu_ld=yes
5737  ;;
5738*)
5739  lt_cv_prog_gnu_ld=no
5740  ;;
5741esac
5742fi
5743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5744$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5745with_gnu_ld=$lt_cv_prog_gnu_ld
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5756$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5757if test "${lt_cv_path_NM+set}" = set; then :
5758  $as_echo_n "(cached) " >&6
5759else
5760  if test -n "$NM"; then
5761  # Let the user override the test.
5762  lt_cv_path_NM="$NM"
5763else
5764  lt_nm_to_check="${ac_tool_prefix}nm"
5765  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5766    lt_nm_to_check="$lt_nm_to_check nm"
5767  fi
5768  for lt_tmp_nm in $lt_nm_to_check; do
5769    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5770    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5771      IFS="$lt_save_ifs"
5772      test -z "$ac_dir" && ac_dir=.
5773      tmp_nm="$ac_dir/$lt_tmp_nm"
5774      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5775	# Check to see if the nm accepts a BSD-compat flag.
5776	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5777	#   nm: unknown option "B" ignored
5778	# Tru64's nm complains that /dev/null is an invalid object file
5779	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5780	*/dev/null* | *'Invalid file or object type'*)
5781	  lt_cv_path_NM="$tmp_nm -B"
5782	  break
5783	  ;;
5784	*)
5785	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5786	  */dev/null*)
5787	    lt_cv_path_NM="$tmp_nm -p"
5788	    break
5789	    ;;
5790	  *)
5791	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5792	    continue # so that we can try to find one that supports BSD flags
5793	    ;;
5794	  esac
5795	  ;;
5796	esac
5797      fi
5798    done
5799    IFS="$lt_save_ifs"
5800  done
5801  : ${lt_cv_path_NM=no}
5802fi
5803fi
5804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5805$as_echo "$lt_cv_path_NM" >&6; }
5806if test "$lt_cv_path_NM" != "no"; then
5807  NM="$lt_cv_path_NM"
5808else
5809  # Didn't find any BSD compatible name lister, look for dumpbin.
5810  if test -n "$ac_tool_prefix"; then
5811  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5812  do
5813    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5814set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5816$as_echo_n "checking for $ac_word... " >&6; }
5817if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5818  $as_echo_n "(cached) " >&6
5819else
5820  if test -n "$DUMPBIN"; then
5821  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5822else
5823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5824for as_dir in $PATH
5825do
5826  IFS=$as_save_IFS
5827  test -z "$as_dir" && as_dir=.
5828    for ac_exec_ext in '' $ac_executable_extensions; do
5829  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5830    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5831    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5832    break 2
5833  fi
5834done
5835  done
5836IFS=$as_save_IFS
5837
5838fi
5839fi
5840DUMPBIN=$ac_cv_prog_DUMPBIN
5841if test -n "$DUMPBIN"; then
5842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5843$as_echo "$DUMPBIN" >&6; }
5844else
5845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5846$as_echo "no" >&6; }
5847fi
5848
5849
5850    test -n "$DUMPBIN" && break
5851  done
5852fi
5853if test -z "$DUMPBIN"; then
5854  ac_ct_DUMPBIN=$DUMPBIN
5855  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5856do
5857  # Extract the first word of "$ac_prog", so it can be a program name with args.
5858set dummy $ac_prog; ac_word=$2
5859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5860$as_echo_n "checking for $ac_word... " >&6; }
5861if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5862  $as_echo_n "(cached) " >&6
5863else
5864  if test -n "$ac_ct_DUMPBIN"; then
5865  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5866else
5867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5868for as_dir in $PATH
5869do
5870  IFS=$as_save_IFS
5871  test -z "$as_dir" && as_dir=.
5872    for ac_exec_ext in '' $ac_executable_extensions; do
5873  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5874    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5875    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5876    break 2
5877  fi
5878done
5879  done
5880IFS=$as_save_IFS
5881
5882fi
5883fi
5884ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5885if test -n "$ac_ct_DUMPBIN"; then
5886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5887$as_echo "$ac_ct_DUMPBIN" >&6; }
5888else
5889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5890$as_echo "no" >&6; }
5891fi
5892
5893
5894  test -n "$ac_ct_DUMPBIN" && break
5895done
5896
5897  if test "x$ac_ct_DUMPBIN" = x; then
5898    DUMPBIN=":"
5899  else
5900    case $cross_compiling:$ac_tool_warned in
5901yes:)
5902{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5903$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5904ac_tool_warned=yes ;;
5905esac
5906    DUMPBIN=$ac_ct_DUMPBIN
5907  fi
5908fi
5909
5910
5911  if test "$DUMPBIN" != ":"; then
5912    NM="$DUMPBIN"
5913  fi
5914fi
5915test -z "$NM" && NM=nm
5916
5917
5918
5919
5920
5921
5922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5923$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5924if test "${lt_cv_nm_interface+set}" = set; then :
5925  $as_echo_n "(cached) " >&6
5926else
5927  lt_cv_nm_interface="BSD nm"
5928  echo "int some_variable = 0;" > conftest.$ac_ext
5929  (eval echo "\"\$as_me:5929: $ac_compile\"" >&5)
5930  (eval "$ac_compile" 2>conftest.err)
5931  cat conftest.err >&5
5932  (eval echo "\"\$as_me:5932: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5933  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5934  cat conftest.err >&5
5935  (eval echo "\"\$as_me:5935: output\"" >&5)
5936  cat conftest.out >&5
5937  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5938    lt_cv_nm_interface="MS dumpbin"
5939  fi
5940  rm -f conftest*
5941fi
5942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5943$as_echo "$lt_cv_nm_interface" >&6; }
5944
5945# find the maximum length of command line arguments
5946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5947$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5948if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5949  $as_echo_n "(cached) " >&6
5950else
5951    i=0
5952  teststring="ABCD"
5953
5954  case $build_os in
5955  msdosdjgpp*)
5956    # On DJGPP, this test can blow up pretty badly due to problems in libc
5957    # (any single argument exceeding 2000 bytes causes a buffer overrun
5958    # during glob expansion).  Even if it were fixed, the result of this
5959    # check would be larger than it should be.
5960    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5961    ;;
5962
5963  gnu*)
5964    # Under GNU Hurd, this test is not required because there is
5965    # no limit to the length of command line arguments.
5966    # Libtool will interpret -1 as no limit whatsoever
5967    lt_cv_sys_max_cmd_len=-1;
5968    ;;
5969
5970  cygwin* | mingw* | cegcc*)
5971    # On Win9x/ME, this test blows up -- it succeeds, but takes
5972    # about 5 minutes as the teststring grows exponentially.
5973    # Worse, since 9x/ME are not pre-emptively multitasking,
5974    # you end up with a "frozen" computer, even though with patience
5975    # the test eventually succeeds (with a max line length of 256k).
5976    # Instead, let's just punt: use the minimum linelength reported by
5977    # all of the supported platforms: 8192 (on NT/2K/XP).
5978    lt_cv_sys_max_cmd_len=8192;
5979    ;;
5980
5981  amigaos*)
5982    # On AmigaOS with pdksh, this test takes hours, literally.
5983    # So we just punt and use a minimum line length of 8192.
5984    lt_cv_sys_max_cmd_len=8192;
5985    ;;
5986
5987  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5988    # This has been around since 386BSD, at least.  Likely further.
5989    if test -x /sbin/sysctl; then
5990      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5991    elif test -x /usr/sbin/sysctl; then
5992      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5993    else
5994      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5995    fi
5996    # And add a safety zone
5997    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5998    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5999    ;;
6000
6001  interix*)
6002    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6003    lt_cv_sys_max_cmd_len=196608
6004    ;;
6005
6006  osf*)
6007    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6008    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6009    # nice to cause kernel panics so lets avoid the loop below.
6010    # First set a reasonable default.
6011    lt_cv_sys_max_cmd_len=16384
6012    #
6013    if test -x /sbin/sysconfig; then
6014      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6015        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6016      esac
6017    fi
6018    ;;
6019  sco3.2v5*)
6020    lt_cv_sys_max_cmd_len=102400
6021    ;;
6022  sysv5* | sco5v6* | sysv4.2uw2*)
6023    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6024    if test -n "$kargmax"; then
6025      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6026    else
6027      lt_cv_sys_max_cmd_len=32768
6028    fi
6029    ;;
6030  *)
6031    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6032    if test -n "$lt_cv_sys_max_cmd_len"; then
6033      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6034      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6035    else
6036      # Make teststring a little bigger before we do anything with it.
6037      # a 1K string should be a reasonable start.
6038      for i in 1 2 3 4 5 6 7 8 ; do
6039        teststring=$teststring$teststring
6040      done
6041      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6042      # If test is not a shell built-in, we'll probably end up computing a
6043      # maximum length that is only half of the actual maximum length, but
6044      # we can't tell.
6045      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6046	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6047	      test $i != 17 # 1/2 MB should be enough
6048      do
6049        i=`expr $i + 1`
6050        teststring=$teststring$teststring
6051      done
6052      # Only check the string length outside the loop.
6053      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6054      teststring=
6055      # Add a significant safety factor because C++ compilers can tack on
6056      # massive amounts of additional arguments before passing them to the
6057      # linker.  It appears as though 1/2 is a usable value.
6058      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6059    fi
6060    ;;
6061  esac
6062
6063fi
6064
6065if test -n $lt_cv_sys_max_cmd_len ; then
6066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6067$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6068else
6069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6070$as_echo "none" >&6; }
6071fi
6072max_cmd_len=$lt_cv_sys_max_cmd_len
6073
6074
6075
6076
6077
6078
6079: ${CP="cp -f"}
6080: ${MV="mv -f"}
6081: ${RM="rm -f"}
6082
6083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6084$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6085# Try some XSI features
6086xsi_shell=no
6087( _lt_dummy="a/b/c"
6088  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6089      = c,a/b,, \
6090    && eval 'test $(( 1 + 1 )) -eq 2 \
6091    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6092  && xsi_shell=yes
6093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6094$as_echo "$xsi_shell" >&6; }
6095
6096
6097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6098$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6099lt_shell_append=no
6100( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6101    >/dev/null 2>&1 \
6102  && lt_shell_append=yes
6103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6104$as_echo "$lt_shell_append" >&6; }
6105
6106
6107if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6108  lt_unset=unset
6109else
6110  lt_unset=false
6111fi
6112
6113
6114
6115
6116
6117# test EBCDIC or ASCII
6118case `echo X|tr X '\101'` in
6119 A) # ASCII based system
6120    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6121  lt_SP2NL='tr \040 \012'
6122  lt_NL2SP='tr \015\012 \040\040'
6123  ;;
6124 *) # EBCDIC based system
6125  lt_SP2NL='tr \100 \n'
6126  lt_NL2SP='tr \r\n \100\100'
6127  ;;
6128esac
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6139$as_echo_n "checking for $LD option to reload object files... " >&6; }
6140if test "${lt_cv_ld_reload_flag+set}" = set; then :
6141  $as_echo_n "(cached) " >&6
6142else
6143  lt_cv_ld_reload_flag='-r'
6144fi
6145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6146$as_echo "$lt_cv_ld_reload_flag" >&6; }
6147reload_flag=$lt_cv_ld_reload_flag
6148case $reload_flag in
6149"" | " "*) ;;
6150*) reload_flag=" $reload_flag" ;;
6151esac
6152reload_cmds='$LD$reload_flag -o $output$reload_objs'
6153case $host_os in
6154  darwin*)
6155    if test "$GCC" = yes; then
6156      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6157    else
6158      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6159    fi
6160    ;;
6161esac
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171if test -n "$ac_tool_prefix"; then
6172  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6173set dummy ${ac_tool_prefix}objdump; ac_word=$2
6174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6175$as_echo_n "checking for $ac_word... " >&6; }
6176if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6177  $as_echo_n "(cached) " >&6
6178else
6179  if test -n "$OBJDUMP"; then
6180  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6181else
6182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6183for as_dir in $PATH
6184do
6185  IFS=$as_save_IFS
6186  test -z "$as_dir" && as_dir=.
6187    for ac_exec_ext in '' $ac_executable_extensions; do
6188  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6189    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6190    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6191    break 2
6192  fi
6193done
6194  done
6195IFS=$as_save_IFS
6196
6197fi
6198fi
6199OBJDUMP=$ac_cv_prog_OBJDUMP
6200if test -n "$OBJDUMP"; then
6201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6202$as_echo "$OBJDUMP" >&6; }
6203else
6204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6205$as_echo "no" >&6; }
6206fi
6207
6208
6209fi
6210if test -z "$ac_cv_prog_OBJDUMP"; then
6211  ac_ct_OBJDUMP=$OBJDUMP
6212  # Extract the first word of "objdump", so it can be a program name with args.
6213set dummy objdump; ac_word=$2
6214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6215$as_echo_n "checking for $ac_word... " >&6; }
6216if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6217  $as_echo_n "(cached) " >&6
6218else
6219  if test -n "$ac_ct_OBJDUMP"; then
6220  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6221else
6222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6223for as_dir in $PATH
6224do
6225  IFS=$as_save_IFS
6226  test -z "$as_dir" && as_dir=.
6227    for ac_exec_ext in '' $ac_executable_extensions; do
6228  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6229    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6230    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6231    break 2
6232  fi
6233done
6234  done
6235IFS=$as_save_IFS
6236
6237fi
6238fi
6239ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6240if test -n "$ac_ct_OBJDUMP"; then
6241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6242$as_echo "$ac_ct_OBJDUMP" >&6; }
6243else
6244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6245$as_echo "no" >&6; }
6246fi
6247
6248  if test "x$ac_ct_OBJDUMP" = x; then
6249    OBJDUMP="false"
6250  else
6251    case $cross_compiling:$ac_tool_warned in
6252yes:)
6253{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6254$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6255ac_tool_warned=yes ;;
6256esac
6257    OBJDUMP=$ac_ct_OBJDUMP
6258  fi
6259else
6260  OBJDUMP="$ac_cv_prog_OBJDUMP"
6261fi
6262
6263test -z "$OBJDUMP" && OBJDUMP=objdump
6264
6265
6266
6267
6268
6269
6270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6271$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6272if test "${lt_cv_deplibs_check_method+set}" = set; then :
6273  $as_echo_n "(cached) " >&6
6274else
6275  lt_cv_file_magic_cmd='$MAGIC_CMD'
6276lt_cv_file_magic_test_file=
6277lt_cv_deplibs_check_method='unknown'
6278# Need to set the preceding variable on all platforms that support
6279# interlibrary dependencies.
6280# 'none' -- dependencies not supported.
6281# `unknown' -- same as none, but documents that we really don't know.
6282# 'pass_all' -- all dependencies passed with no checks.
6283# 'test_compile' -- check by making test program.
6284# 'file_magic [[regex]]' -- check by looking for files in library path
6285# which responds to the $file_magic_cmd with a given extended regex.
6286# If you have `file' or equivalent on your system and you're not sure
6287# whether `pass_all' will *always* work, you probably want this one.
6288
6289case $host_os in
6290aix[4-9]*)
6291  lt_cv_deplibs_check_method=pass_all
6292  ;;
6293
6294beos*)
6295  lt_cv_deplibs_check_method=pass_all
6296  ;;
6297
6298bsdi[45]*)
6299  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6300  lt_cv_file_magic_cmd='/usr/bin/file -L'
6301  lt_cv_file_magic_test_file=/shlib/libc.so
6302  ;;
6303
6304cygwin*)
6305  # func_win32_libid is a shell function defined in ltmain.sh
6306  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6307  lt_cv_file_magic_cmd='func_win32_libid'
6308  ;;
6309
6310mingw* | pw32*)
6311  # Base MSYS/MinGW do not provide the 'file' command needed by
6312  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6313  # unless we find 'file', for example because we are cross-compiling.
6314  if ( file / ) >/dev/null 2>&1; then
6315    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6316    lt_cv_file_magic_cmd='func_win32_libid'
6317  else
6318    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6319    lt_cv_file_magic_cmd='$OBJDUMP -f'
6320  fi
6321  ;;
6322
6323cegcc)
6324  # use the weaker test based on 'objdump'. See mingw*.
6325  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6326  lt_cv_file_magic_cmd='$OBJDUMP -f'
6327  ;;
6328
6329darwin* | rhapsody*)
6330  lt_cv_deplibs_check_method=pass_all
6331  ;;
6332
6333freebsd* | dragonfly*)
6334  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6335    case $host_cpu in
6336    i*86 )
6337      # Not sure whether the presence of OpenBSD here was a mistake.
6338      # Let's accept both of them until this is cleared up.
6339      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6340      lt_cv_file_magic_cmd=/usr/bin/file
6341      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6342      ;;
6343    esac
6344  else
6345    lt_cv_deplibs_check_method=pass_all
6346  fi
6347  ;;
6348
6349gnu*)
6350  lt_cv_deplibs_check_method=pass_all
6351  ;;
6352
6353hpux10.20* | hpux11*)
6354  lt_cv_file_magic_cmd=/usr/bin/file
6355  case $host_cpu in
6356  ia64*)
6357    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6358    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6359    ;;
6360  hppa*64*)
6361    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6362    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6363    ;;
6364  *)
6365    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6366    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6367    ;;
6368  esac
6369  ;;
6370
6371interix[3-9]*)
6372  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6373  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6374  ;;
6375
6376irix5* | irix6* | nonstopux*)
6377  case $LD in
6378  *-32|*"-32 ") libmagic=32-bit;;
6379  *-n32|*"-n32 ") libmagic=N32;;
6380  *-64|*"-64 ") libmagic=64-bit;;
6381  *) libmagic=never-match;;
6382  esac
6383  lt_cv_deplibs_check_method=pass_all
6384  ;;
6385
6386# This must be Linux ELF.
6387linux* | k*bsd*-gnu)
6388  lt_cv_deplibs_check_method=pass_all
6389  ;;
6390
6391netbsd* | netbsdelf*-gnu)
6392  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6393    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6394  else
6395    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6396  fi
6397  ;;
6398
6399newos6*)
6400  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6401  lt_cv_file_magic_cmd=/usr/bin/file
6402  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6403  ;;
6404
6405*nto* | *qnx*)
6406  lt_cv_deplibs_check_method=pass_all
6407  ;;
6408
6409openbsd*)
6410  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6411    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6412  else
6413    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6414  fi
6415  ;;
6416
6417osf3* | osf4* | osf5*)
6418  lt_cv_deplibs_check_method=pass_all
6419  ;;
6420
6421rdos*)
6422  lt_cv_deplibs_check_method=pass_all
6423  ;;
6424
6425solaris*)
6426  lt_cv_deplibs_check_method=pass_all
6427  ;;
6428
6429sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6430  lt_cv_deplibs_check_method=pass_all
6431  ;;
6432
6433sysv4 | sysv4.3*)
6434  case $host_vendor in
6435  motorola)
6436    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]'
6437    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6438    ;;
6439  ncr)
6440    lt_cv_deplibs_check_method=pass_all
6441    ;;
6442  sequent)
6443    lt_cv_file_magic_cmd='/bin/file'
6444    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6445    ;;
6446  sni)
6447    lt_cv_file_magic_cmd='/bin/file'
6448    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6449    lt_cv_file_magic_test_file=/lib/libc.so
6450    ;;
6451  siemens)
6452    lt_cv_deplibs_check_method=pass_all
6453    ;;
6454  pc)
6455    lt_cv_deplibs_check_method=pass_all
6456    ;;
6457  esac
6458  ;;
6459
6460tpf*)
6461  lt_cv_deplibs_check_method=pass_all
6462  ;;
6463esac
6464
6465fi
6466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6467$as_echo "$lt_cv_deplibs_check_method" >&6; }
6468file_magic_cmd=$lt_cv_file_magic_cmd
6469deplibs_check_method=$lt_cv_deplibs_check_method
6470test -z "$deplibs_check_method" && deplibs_check_method=unknown
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483if test -n "$ac_tool_prefix"; then
6484  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6485set dummy ${ac_tool_prefix}ar; ac_word=$2
6486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6487$as_echo_n "checking for $ac_word... " >&6; }
6488if test "${ac_cv_prog_AR+set}" = set; then :
6489  $as_echo_n "(cached) " >&6
6490else
6491  if test -n "$AR"; then
6492  ac_cv_prog_AR="$AR" # Let the user override the test.
6493else
6494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6495for as_dir in $PATH
6496do
6497  IFS=$as_save_IFS
6498  test -z "$as_dir" && as_dir=.
6499    for ac_exec_ext in '' $ac_executable_extensions; do
6500  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6501    ac_cv_prog_AR="${ac_tool_prefix}ar"
6502    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6503    break 2
6504  fi
6505done
6506  done
6507IFS=$as_save_IFS
6508
6509fi
6510fi
6511AR=$ac_cv_prog_AR
6512if test -n "$AR"; then
6513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6514$as_echo "$AR" >&6; }
6515else
6516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6517$as_echo "no" >&6; }
6518fi
6519
6520
6521fi
6522if test -z "$ac_cv_prog_AR"; then
6523  ac_ct_AR=$AR
6524  # Extract the first word of "ar", so it can be a program name with args.
6525set dummy ar; ac_word=$2
6526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6527$as_echo_n "checking for $ac_word... " >&6; }
6528if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6529  $as_echo_n "(cached) " >&6
6530else
6531  if test -n "$ac_ct_AR"; then
6532  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6533else
6534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535for as_dir in $PATH
6536do
6537  IFS=$as_save_IFS
6538  test -z "$as_dir" && as_dir=.
6539    for ac_exec_ext in '' $ac_executable_extensions; do
6540  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6541    ac_cv_prog_ac_ct_AR="ar"
6542    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6543    break 2
6544  fi
6545done
6546  done
6547IFS=$as_save_IFS
6548
6549fi
6550fi
6551ac_ct_AR=$ac_cv_prog_ac_ct_AR
6552if test -n "$ac_ct_AR"; then
6553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6554$as_echo "$ac_ct_AR" >&6; }
6555else
6556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6557$as_echo "no" >&6; }
6558fi
6559
6560  if test "x$ac_ct_AR" = x; then
6561    AR="false"
6562  else
6563    case $cross_compiling:$ac_tool_warned in
6564yes:)
6565{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6566$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6567ac_tool_warned=yes ;;
6568esac
6569    AR=$ac_ct_AR
6570  fi
6571else
6572  AR="$ac_cv_prog_AR"
6573fi
6574
6575test -z "$AR" && AR=ar
6576test -z "$AR_FLAGS" && AR_FLAGS=cru
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588if test -n "$ac_tool_prefix"; then
6589  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6590set dummy ${ac_tool_prefix}strip; ac_word=$2
6591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6592$as_echo_n "checking for $ac_word... " >&6; }
6593if test "${ac_cv_prog_STRIP+set}" = set; then :
6594  $as_echo_n "(cached) " >&6
6595else
6596  if test -n "$STRIP"; then
6597  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6598else
6599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6600for as_dir in $PATH
6601do
6602  IFS=$as_save_IFS
6603  test -z "$as_dir" && as_dir=.
6604    for ac_exec_ext in '' $ac_executable_extensions; do
6605  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6606    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6607    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6608    break 2
6609  fi
6610done
6611  done
6612IFS=$as_save_IFS
6613
6614fi
6615fi
6616STRIP=$ac_cv_prog_STRIP
6617if test -n "$STRIP"; then
6618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6619$as_echo "$STRIP" >&6; }
6620else
6621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6622$as_echo "no" >&6; }
6623fi
6624
6625
6626fi
6627if test -z "$ac_cv_prog_STRIP"; then
6628  ac_ct_STRIP=$STRIP
6629  # Extract the first word of "strip", so it can be a program name with args.
6630set dummy strip; ac_word=$2
6631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6632$as_echo_n "checking for $ac_word... " >&6; }
6633if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6634  $as_echo_n "(cached) " >&6
6635else
6636  if test -n "$ac_ct_STRIP"; then
6637  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6638else
6639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6640for as_dir in $PATH
6641do
6642  IFS=$as_save_IFS
6643  test -z "$as_dir" && as_dir=.
6644    for ac_exec_ext in '' $ac_executable_extensions; do
6645  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6646    ac_cv_prog_ac_ct_STRIP="strip"
6647    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6648    break 2
6649  fi
6650done
6651  done
6652IFS=$as_save_IFS
6653
6654fi
6655fi
6656ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6657if test -n "$ac_ct_STRIP"; then
6658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6659$as_echo "$ac_ct_STRIP" >&6; }
6660else
6661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6662$as_echo "no" >&6; }
6663fi
6664
6665  if test "x$ac_ct_STRIP" = x; then
6666    STRIP=":"
6667  else
6668    case $cross_compiling:$ac_tool_warned in
6669yes:)
6670{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6671$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6672ac_tool_warned=yes ;;
6673esac
6674    STRIP=$ac_ct_STRIP
6675  fi
6676else
6677  STRIP="$ac_cv_prog_STRIP"
6678fi
6679
6680test -z "$STRIP" && STRIP=:
6681
6682
6683
6684
6685
6686
6687if test -n "$ac_tool_prefix"; then
6688  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6689set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6691$as_echo_n "checking for $ac_word... " >&6; }
6692if test "${ac_cv_prog_RANLIB+set}" = set; then :
6693  $as_echo_n "(cached) " >&6
6694else
6695  if test -n "$RANLIB"; then
6696  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6697else
6698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6699for as_dir in $PATH
6700do
6701  IFS=$as_save_IFS
6702  test -z "$as_dir" && as_dir=.
6703    for ac_exec_ext in '' $ac_executable_extensions; do
6704  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6705    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6706    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6707    break 2
6708  fi
6709done
6710  done
6711IFS=$as_save_IFS
6712
6713fi
6714fi
6715RANLIB=$ac_cv_prog_RANLIB
6716if test -n "$RANLIB"; then
6717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6718$as_echo "$RANLIB" >&6; }
6719else
6720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6721$as_echo "no" >&6; }
6722fi
6723
6724
6725fi
6726if test -z "$ac_cv_prog_RANLIB"; then
6727  ac_ct_RANLIB=$RANLIB
6728  # Extract the first word of "ranlib", so it can be a program name with args.
6729set dummy ranlib; ac_word=$2
6730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6731$as_echo_n "checking for $ac_word... " >&6; }
6732if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6733  $as_echo_n "(cached) " >&6
6734else
6735  if test -n "$ac_ct_RANLIB"; then
6736  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6737else
6738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739for as_dir in $PATH
6740do
6741  IFS=$as_save_IFS
6742  test -z "$as_dir" && as_dir=.
6743    for ac_exec_ext in '' $ac_executable_extensions; do
6744  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6745    ac_cv_prog_ac_ct_RANLIB="ranlib"
6746    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6747    break 2
6748  fi
6749done
6750  done
6751IFS=$as_save_IFS
6752
6753fi
6754fi
6755ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6756if test -n "$ac_ct_RANLIB"; then
6757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6758$as_echo "$ac_ct_RANLIB" >&6; }
6759else
6760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6761$as_echo "no" >&6; }
6762fi
6763
6764  if test "x$ac_ct_RANLIB" = x; then
6765    RANLIB=":"
6766  else
6767    case $cross_compiling:$ac_tool_warned in
6768yes:)
6769{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6770$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6771ac_tool_warned=yes ;;
6772esac
6773    RANLIB=$ac_ct_RANLIB
6774  fi
6775else
6776  RANLIB="$ac_cv_prog_RANLIB"
6777fi
6778
6779test -z "$RANLIB" && RANLIB=:
6780
6781
6782
6783
6784
6785
6786# Determine commands to create old-style static archives.
6787old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6788old_postinstall_cmds='chmod 644 $oldlib'
6789old_postuninstall_cmds=
6790
6791if test -n "$RANLIB"; then
6792  case $host_os in
6793  openbsd*)
6794    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6795    ;;
6796  *)
6797    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6798    ;;
6799  esac
6800  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6801fi
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836# If no C compiler was specified, use CC.
6837LTCC=${LTCC-"$CC"}
6838
6839# If no C compiler flags were specified, use CFLAGS.
6840LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6841
6842# Allow CC to be a program name with arguments.
6843compiler=$CC
6844
6845
6846# Check for command to grab the raw symbol name followed by C symbol from nm.
6847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6848$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6849if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6850  $as_echo_n "(cached) " >&6
6851else
6852
6853# These are sane defaults that work on at least a few old systems.
6854# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6855
6856# Character class describing NM global symbol codes.
6857symcode='[BCDEGRST]'
6858
6859# Regexp to match symbols that can be accessed directly from C.
6860sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6861
6862# Define system-specific variables.
6863case $host_os in
6864aix*)
6865  symcode='[BCDT]'
6866  ;;
6867cygwin* | mingw* | pw32* | cegcc*)
6868  symcode='[ABCDGISTW]'
6869  ;;
6870hpux*)
6871  if test "$host_cpu" = ia64; then
6872    symcode='[ABCDEGRST]'
6873  fi
6874  ;;
6875irix* | nonstopux*)
6876  symcode='[BCDEGRST]'
6877  ;;
6878osf*)
6879  symcode='[BCDEGQRST]'
6880  ;;
6881solaris*)
6882  symcode='[BDRT]'
6883  ;;
6884sco3.2v5*)
6885  symcode='[DT]'
6886  ;;
6887sysv4.2uw2*)
6888  symcode='[DT]'
6889  ;;
6890sysv5* | sco5v6* | unixware* | OpenUNIX*)
6891  symcode='[ABDT]'
6892  ;;
6893sysv4)
6894  symcode='[DFNSTU]'
6895  ;;
6896esac
6897
6898# If we're using GNU nm, then use its standard symbol codes.
6899case `$NM -V 2>&1` in
6900*GNU* | *'with BFD'*)
6901  symcode='[ABCDGIRSTW]' ;;
6902esac
6903
6904# Transform an extracted symbol line into a proper C declaration.
6905# Some systems (esp. on ia64) link data and code symbols differently,
6906# so use this general approach.
6907lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6908
6909# Transform an extracted symbol line into symbol name and symbol address
6910lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6911lt_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'"
6912
6913# Handle CRLF in mingw tool chain
6914opt_cr=
6915case $build_os in
6916mingw*)
6917  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6918  ;;
6919esac
6920
6921# Try without a prefix underscore, then with it.
6922for ac_symprfx in "" "_"; do
6923
6924  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6925  symxfrm="\\1 $ac_symprfx\\2 \\2"
6926
6927  # Write the raw and C identifiers.
6928  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6929    # Fake it for dumpbin and say T for any non-static function
6930    # and D for any global variable.
6931    # Also find C++ and __fastcall symbols from MSVC++,
6932    # which start with @ or ?.
6933    lt_cv_sys_global_symbol_pipe="$AWK '"\
6934"     {last_section=section; section=\$ 3};"\
6935"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6936"     \$ 0!~/External *\|/{next};"\
6937"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6938"     {if(hide[section]) next};"\
6939"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6940"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6941"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6942"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6943"     ' prfx=^$ac_symprfx"
6944  else
6945    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6946  fi
6947
6948  # Check to see that the pipe works correctly.
6949  pipe_works=no
6950
6951  rm -f conftest*
6952  cat > conftest.$ac_ext <<_LT_EOF
6953#ifdef __cplusplus
6954extern "C" {
6955#endif
6956char nm_test_var;
6957void nm_test_func(void);
6958void nm_test_func(void){}
6959#ifdef __cplusplus
6960}
6961#endif
6962int main(){nm_test_var='a';nm_test_func();return(0);}
6963_LT_EOF
6964
6965  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6966  (eval $ac_compile) 2>&5
6967  ac_status=$?
6968  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6969  test $ac_status = 0; }; then
6970    # Now try to grab the symbols.
6971    nlist=conftest.nm
6972    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6973  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6974  ac_status=$?
6975  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6976  test $ac_status = 0; } && test -s "$nlist"; then
6977      # Try sorting and uniquifying the output.
6978      if sort "$nlist" | uniq > "$nlist"T; then
6979	mv -f "$nlist"T "$nlist"
6980      else
6981	rm -f "$nlist"T
6982      fi
6983
6984      # Make sure that we snagged all the symbols we need.
6985      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6986	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6987	  cat <<_LT_EOF > conftest.$ac_ext
6988#ifdef __cplusplus
6989extern "C" {
6990#endif
6991
6992_LT_EOF
6993	  # Now generate the symbol file.
6994	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6995
6996	  cat <<_LT_EOF >> conftest.$ac_ext
6997
6998/* The mapping between symbol names and symbols.  */
6999const struct {
7000  const char *name;
7001  void       *address;
7002}
7003lt__PROGRAM__LTX_preloaded_symbols[] =
7004{
7005  { "@PROGRAM@", (void *) 0 },
7006_LT_EOF
7007	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7008	  cat <<\_LT_EOF >> conftest.$ac_ext
7009  {0, (void *) 0}
7010};
7011
7012/* This works around a problem in FreeBSD linker */
7013#ifdef FREEBSD_WORKAROUND
7014static const void *lt_preloaded_setup() {
7015  return lt__PROGRAM__LTX_preloaded_symbols;
7016}
7017#endif
7018
7019#ifdef __cplusplus
7020}
7021#endif
7022_LT_EOF
7023	  # Now try linking the two files.
7024	  mv conftest.$ac_objext conftstm.$ac_objext
7025	  lt_save_LIBS="$LIBS"
7026	  lt_save_CFLAGS="$CFLAGS"
7027	  LIBS="conftstm.$ac_objext"
7028	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7029	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7030  (eval $ac_link) 2>&5
7031  ac_status=$?
7032  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7033  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7034	    pipe_works=yes
7035	  fi
7036	  LIBS="$lt_save_LIBS"
7037	  CFLAGS="$lt_save_CFLAGS"
7038	else
7039	  echo "cannot find nm_test_func in $nlist" >&5
7040	fi
7041      else
7042	echo "cannot find nm_test_var in $nlist" >&5
7043      fi
7044    else
7045      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7046    fi
7047  else
7048    echo "$progname: failed program was:" >&5
7049    cat conftest.$ac_ext >&5
7050  fi
7051  rm -rf conftest* conftst*
7052
7053  # Do not use the global_symbol_pipe unless it works.
7054  if test "$pipe_works" = yes; then
7055    break
7056  else
7057    lt_cv_sys_global_symbol_pipe=
7058  fi
7059done
7060
7061fi
7062
7063if test -z "$lt_cv_sys_global_symbol_pipe"; then
7064  lt_cv_sys_global_symbol_to_cdecl=
7065fi
7066if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7068$as_echo "failed" >&6; }
7069else
7070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7071$as_echo "ok" >&6; }
7072fi
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096# Check whether --enable-libtool-lock was given.
7097if test "${enable_libtool_lock+set}" = set; then :
7098  enableval=$enable_libtool_lock;
7099fi
7100
7101test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7102
7103# Some flags need to be propagated to the compiler or linker for good
7104# libtool support.
7105case $host in
7106ia64-*-hpux*)
7107  # Find out which ABI we are using.
7108  echo 'int i;' > conftest.$ac_ext
7109  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7110  (eval $ac_compile) 2>&5
7111  ac_status=$?
7112  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7113  test $ac_status = 0; }; then
7114    case `/usr/bin/file conftest.$ac_objext` in
7115      *ELF-32*)
7116	HPUX_IA64_MODE="32"
7117	;;
7118      *ELF-64*)
7119	HPUX_IA64_MODE="64"
7120	;;
7121    esac
7122  fi
7123  rm -rf conftest*
7124  ;;
7125*-*-irix6*)
7126  # Find out which ABI we are using.
7127  echo '#line 7127 "configure"' > conftest.$ac_ext
7128  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7129  (eval $ac_compile) 2>&5
7130  ac_status=$?
7131  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7132  test $ac_status = 0; }; then
7133    if test "$lt_cv_prog_gnu_ld" = yes; then
7134      case `/usr/bin/file conftest.$ac_objext` in
7135	*32-bit*)
7136	  LD="${LD-ld} -melf32bsmip"
7137	  ;;
7138	*N32*)
7139	  LD="${LD-ld} -melf32bmipn32"
7140	  ;;
7141	*64-bit*)
7142	  LD="${LD-ld} -melf64bmip"
7143	;;
7144      esac
7145    else
7146      case `/usr/bin/file conftest.$ac_objext` in
7147	*32-bit*)
7148	  LD="${LD-ld} -32"
7149	  ;;
7150	*N32*)
7151	  LD="${LD-ld} -n32"
7152	  ;;
7153	*64-bit*)
7154	  LD="${LD-ld} -64"
7155	  ;;
7156      esac
7157    fi
7158  fi
7159  rm -rf conftest*
7160  ;;
7161
7162x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7163s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7164  # Find out which ABI we are using.
7165  echo 'int i;' > conftest.$ac_ext
7166  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7167  (eval $ac_compile) 2>&5
7168  ac_status=$?
7169  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7170  test $ac_status = 0; }; then
7171    case `/usr/bin/file conftest.o` in
7172      *32-bit*)
7173	case $host in
7174	  x86_64-*kfreebsd*-gnu)
7175	    LD="${LD-ld} -m elf_i386_fbsd"
7176	    ;;
7177	  x86_64-*linux*)
7178	    LD="${LD-ld} -m elf_i386"
7179	    ;;
7180	  ppc64-*linux*|powerpc64-*linux*)
7181	    LD="${LD-ld} -m elf32ppclinux"
7182	    ;;
7183	  s390x-*linux*)
7184	    LD="${LD-ld} -m elf_s390"
7185	    ;;
7186	  sparc64-*linux*)
7187	    LD="${LD-ld} -m elf32_sparc"
7188	    ;;
7189	esac
7190	;;
7191      *64-bit*)
7192	case $host in
7193	  x86_64-*kfreebsd*-gnu)
7194	    LD="${LD-ld} -m elf_x86_64_fbsd"
7195	    ;;
7196	  x86_64-*linux*)
7197	    LD="${LD-ld} -m elf_x86_64"
7198	    ;;
7199	  ppc*-*linux*|powerpc*-*linux*)
7200	    LD="${LD-ld} -m elf64ppc"
7201	    ;;
7202	  s390*-*linux*|s390*-*tpf*)
7203	    LD="${LD-ld} -m elf64_s390"
7204	    ;;
7205	  sparc*-*linux*)
7206	    LD="${LD-ld} -m elf64_sparc"
7207	    ;;
7208	esac
7209	;;
7210    esac
7211  fi
7212  rm -rf conftest*
7213  ;;
7214
7215*-*-sco3.2v5*)
7216  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7217  SAVE_CFLAGS="$CFLAGS"
7218  CFLAGS="$CFLAGS -belf"
7219  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7220$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7221if test "${lt_cv_cc_needs_belf+set}" = set; then :
7222  $as_echo_n "(cached) " >&6
7223else
7224  ac_ext=c
7225ac_cpp='$CPP $CPPFLAGS'
7226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7228ac_compiler_gnu=$ac_cv_c_compiler_gnu
7229
7230     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7231/* end confdefs.h.  */
7232
7233int
7234main ()
7235{
7236
7237  ;
7238  return 0;
7239}
7240_ACEOF
7241if ac_fn_c_try_link "$LINENO"; then :
7242  lt_cv_cc_needs_belf=yes
7243else
7244  lt_cv_cc_needs_belf=no
7245fi
7246rm -f core conftest.err conftest.$ac_objext \
7247    conftest$ac_exeext conftest.$ac_ext
7248     ac_ext=c
7249ac_cpp='$CPP $CPPFLAGS'
7250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7252ac_compiler_gnu=$ac_cv_c_compiler_gnu
7253
7254fi
7255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7256$as_echo "$lt_cv_cc_needs_belf" >&6; }
7257  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7258    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7259    CFLAGS="$SAVE_CFLAGS"
7260  fi
7261  ;;
7262sparc*-*solaris*)
7263  # Find out which ABI we are using.
7264  echo 'int i;' > conftest.$ac_ext
7265  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7266  (eval $ac_compile) 2>&5
7267  ac_status=$?
7268  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7269  test $ac_status = 0; }; then
7270    case `/usr/bin/file conftest.o` in
7271    *64-bit*)
7272      case $lt_cv_prog_gnu_ld in
7273      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7274      *)
7275	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7276	  LD="${LD-ld} -64"
7277	fi
7278	;;
7279      esac
7280      ;;
7281    esac
7282  fi
7283  rm -rf conftest*
7284  ;;
7285esac
7286
7287need_locks="$enable_libtool_lock"
7288
7289
7290  case $host_os in
7291    rhapsody* | darwin*)
7292    if test -n "$ac_tool_prefix"; then
7293  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7294set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7296$as_echo_n "checking for $ac_word... " >&6; }
7297if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7298  $as_echo_n "(cached) " >&6
7299else
7300  if test -n "$DSYMUTIL"; then
7301  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7302else
7303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7304for as_dir in $PATH
7305do
7306  IFS=$as_save_IFS
7307  test -z "$as_dir" && as_dir=.
7308    for ac_exec_ext in '' $ac_executable_extensions; do
7309  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7310    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7311    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7312    break 2
7313  fi
7314done
7315  done
7316IFS=$as_save_IFS
7317
7318fi
7319fi
7320DSYMUTIL=$ac_cv_prog_DSYMUTIL
7321if test -n "$DSYMUTIL"; then
7322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7323$as_echo "$DSYMUTIL" >&6; }
7324else
7325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7326$as_echo "no" >&6; }
7327fi
7328
7329
7330fi
7331if test -z "$ac_cv_prog_DSYMUTIL"; then
7332  ac_ct_DSYMUTIL=$DSYMUTIL
7333  # Extract the first word of "dsymutil", so it can be a program name with args.
7334set dummy dsymutil; ac_word=$2
7335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7336$as_echo_n "checking for $ac_word... " >&6; }
7337if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7338  $as_echo_n "(cached) " >&6
7339else
7340  if test -n "$ac_ct_DSYMUTIL"; then
7341  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7342else
7343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7344for as_dir in $PATH
7345do
7346  IFS=$as_save_IFS
7347  test -z "$as_dir" && as_dir=.
7348    for ac_exec_ext in '' $ac_executable_extensions; do
7349  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7350    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7351    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7352    break 2
7353  fi
7354done
7355  done
7356IFS=$as_save_IFS
7357
7358fi
7359fi
7360ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7361if test -n "$ac_ct_DSYMUTIL"; then
7362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7363$as_echo "$ac_ct_DSYMUTIL" >&6; }
7364else
7365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7366$as_echo "no" >&6; }
7367fi
7368
7369  if test "x$ac_ct_DSYMUTIL" = x; then
7370    DSYMUTIL=":"
7371  else
7372    case $cross_compiling:$ac_tool_warned in
7373yes:)
7374{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7375$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7376ac_tool_warned=yes ;;
7377esac
7378    DSYMUTIL=$ac_ct_DSYMUTIL
7379  fi
7380else
7381  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7382fi
7383
7384    if test -n "$ac_tool_prefix"; then
7385  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7386set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7388$as_echo_n "checking for $ac_word... " >&6; }
7389if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7390  $as_echo_n "(cached) " >&6
7391else
7392  if test -n "$NMEDIT"; then
7393  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7394else
7395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7396for as_dir in $PATH
7397do
7398  IFS=$as_save_IFS
7399  test -z "$as_dir" && as_dir=.
7400    for ac_exec_ext in '' $ac_executable_extensions; do
7401  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7402    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7403    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7404    break 2
7405  fi
7406done
7407  done
7408IFS=$as_save_IFS
7409
7410fi
7411fi
7412NMEDIT=$ac_cv_prog_NMEDIT
7413if test -n "$NMEDIT"; then
7414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7415$as_echo "$NMEDIT" >&6; }
7416else
7417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7418$as_echo "no" >&6; }
7419fi
7420
7421
7422fi
7423if test -z "$ac_cv_prog_NMEDIT"; then
7424  ac_ct_NMEDIT=$NMEDIT
7425  # Extract the first word of "nmedit", so it can be a program name with args.
7426set dummy nmedit; ac_word=$2
7427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7428$as_echo_n "checking for $ac_word... " >&6; }
7429if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7430  $as_echo_n "(cached) " >&6
7431else
7432  if test -n "$ac_ct_NMEDIT"; then
7433  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7434else
7435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7436for as_dir in $PATH
7437do
7438  IFS=$as_save_IFS
7439  test -z "$as_dir" && as_dir=.
7440    for ac_exec_ext in '' $ac_executable_extensions; do
7441  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7442    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7443    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7444    break 2
7445  fi
7446done
7447  done
7448IFS=$as_save_IFS
7449
7450fi
7451fi
7452ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7453if test -n "$ac_ct_NMEDIT"; then
7454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7455$as_echo "$ac_ct_NMEDIT" >&6; }
7456else
7457  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7458$as_echo "no" >&6; }
7459fi
7460
7461  if test "x$ac_ct_NMEDIT" = x; then
7462    NMEDIT=":"
7463  else
7464    case $cross_compiling:$ac_tool_warned in
7465yes:)
7466{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7467$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7468ac_tool_warned=yes ;;
7469esac
7470    NMEDIT=$ac_ct_NMEDIT
7471  fi
7472else
7473  NMEDIT="$ac_cv_prog_NMEDIT"
7474fi
7475
7476    if test -n "$ac_tool_prefix"; then
7477  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7478set dummy ${ac_tool_prefix}lipo; ac_word=$2
7479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7480$as_echo_n "checking for $ac_word... " >&6; }
7481if test "${ac_cv_prog_LIPO+set}" = set; then :
7482  $as_echo_n "(cached) " >&6
7483else
7484  if test -n "$LIPO"; then
7485  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7486else
7487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7488for as_dir in $PATH
7489do
7490  IFS=$as_save_IFS
7491  test -z "$as_dir" && as_dir=.
7492    for ac_exec_ext in '' $ac_executable_extensions; do
7493  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7494    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7495    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7496    break 2
7497  fi
7498done
7499  done
7500IFS=$as_save_IFS
7501
7502fi
7503fi
7504LIPO=$ac_cv_prog_LIPO
7505if test -n "$LIPO"; then
7506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7507$as_echo "$LIPO" >&6; }
7508else
7509  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7510$as_echo "no" >&6; }
7511fi
7512
7513
7514fi
7515if test -z "$ac_cv_prog_LIPO"; then
7516  ac_ct_LIPO=$LIPO
7517  # Extract the first word of "lipo", so it can be a program name with args.
7518set dummy lipo; ac_word=$2
7519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7520$as_echo_n "checking for $ac_word... " >&6; }
7521if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7522  $as_echo_n "(cached) " >&6
7523else
7524  if test -n "$ac_ct_LIPO"; then
7525  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7526else
7527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7528for as_dir in $PATH
7529do
7530  IFS=$as_save_IFS
7531  test -z "$as_dir" && as_dir=.
7532    for ac_exec_ext in '' $ac_executable_extensions; do
7533  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7534    ac_cv_prog_ac_ct_LIPO="lipo"
7535    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7536    break 2
7537  fi
7538done
7539  done
7540IFS=$as_save_IFS
7541
7542fi
7543fi
7544ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7545if test -n "$ac_ct_LIPO"; then
7546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7547$as_echo "$ac_ct_LIPO" >&6; }
7548else
7549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7550$as_echo "no" >&6; }
7551fi
7552
7553  if test "x$ac_ct_LIPO" = x; then
7554    LIPO=":"
7555  else
7556    case $cross_compiling:$ac_tool_warned in
7557yes:)
7558{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7559$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7560ac_tool_warned=yes ;;
7561esac
7562    LIPO=$ac_ct_LIPO
7563  fi
7564else
7565  LIPO="$ac_cv_prog_LIPO"
7566fi
7567
7568    if test -n "$ac_tool_prefix"; then
7569  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7570set dummy ${ac_tool_prefix}otool; ac_word=$2
7571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7572$as_echo_n "checking for $ac_word... " >&6; }
7573if test "${ac_cv_prog_OTOOL+set}" = set; then :
7574  $as_echo_n "(cached) " >&6
7575else
7576  if test -n "$OTOOL"; then
7577  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7578else
7579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7580for as_dir in $PATH
7581do
7582  IFS=$as_save_IFS
7583  test -z "$as_dir" && as_dir=.
7584    for ac_exec_ext in '' $ac_executable_extensions; do
7585  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7586    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7587    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7588    break 2
7589  fi
7590done
7591  done
7592IFS=$as_save_IFS
7593
7594fi
7595fi
7596OTOOL=$ac_cv_prog_OTOOL
7597if test -n "$OTOOL"; then
7598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7599$as_echo "$OTOOL" >&6; }
7600else
7601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7602$as_echo "no" >&6; }
7603fi
7604
7605
7606fi
7607if test -z "$ac_cv_prog_OTOOL"; then
7608  ac_ct_OTOOL=$OTOOL
7609  # Extract the first word of "otool", so it can be a program name with args.
7610set dummy otool; ac_word=$2
7611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7612$as_echo_n "checking for $ac_word... " >&6; }
7613if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7614  $as_echo_n "(cached) " >&6
7615else
7616  if test -n "$ac_ct_OTOOL"; then
7617  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7618else
7619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7620for as_dir in $PATH
7621do
7622  IFS=$as_save_IFS
7623  test -z "$as_dir" && as_dir=.
7624    for ac_exec_ext in '' $ac_executable_extensions; do
7625  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7626    ac_cv_prog_ac_ct_OTOOL="otool"
7627    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7628    break 2
7629  fi
7630done
7631  done
7632IFS=$as_save_IFS
7633
7634fi
7635fi
7636ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7637if test -n "$ac_ct_OTOOL"; then
7638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7639$as_echo "$ac_ct_OTOOL" >&6; }
7640else
7641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7642$as_echo "no" >&6; }
7643fi
7644
7645  if test "x$ac_ct_OTOOL" = x; then
7646    OTOOL=":"
7647  else
7648    case $cross_compiling:$ac_tool_warned in
7649yes:)
7650{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7651$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7652ac_tool_warned=yes ;;
7653esac
7654    OTOOL=$ac_ct_OTOOL
7655  fi
7656else
7657  OTOOL="$ac_cv_prog_OTOOL"
7658fi
7659
7660    if test -n "$ac_tool_prefix"; then
7661  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7662set dummy ${ac_tool_prefix}otool64; ac_word=$2
7663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7664$as_echo_n "checking for $ac_word... " >&6; }
7665if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7666  $as_echo_n "(cached) " >&6
7667else
7668  if test -n "$OTOOL64"; then
7669  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7670else
7671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672for as_dir in $PATH
7673do
7674  IFS=$as_save_IFS
7675  test -z "$as_dir" && as_dir=.
7676    for ac_exec_ext in '' $ac_executable_extensions; do
7677  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7678    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7679    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7680    break 2
7681  fi
7682done
7683  done
7684IFS=$as_save_IFS
7685
7686fi
7687fi
7688OTOOL64=$ac_cv_prog_OTOOL64
7689if test -n "$OTOOL64"; then
7690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7691$as_echo "$OTOOL64" >&6; }
7692else
7693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7694$as_echo "no" >&6; }
7695fi
7696
7697
7698fi
7699if test -z "$ac_cv_prog_OTOOL64"; then
7700  ac_ct_OTOOL64=$OTOOL64
7701  # Extract the first word of "otool64", so it can be a program name with args.
7702set dummy otool64; ac_word=$2
7703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7704$as_echo_n "checking for $ac_word... " >&6; }
7705if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7706  $as_echo_n "(cached) " >&6
7707else
7708  if test -n "$ac_ct_OTOOL64"; then
7709  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7710else
7711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7712for as_dir in $PATH
7713do
7714  IFS=$as_save_IFS
7715  test -z "$as_dir" && as_dir=.
7716    for ac_exec_ext in '' $ac_executable_extensions; do
7717  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7718    ac_cv_prog_ac_ct_OTOOL64="otool64"
7719    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7720    break 2
7721  fi
7722done
7723  done
7724IFS=$as_save_IFS
7725
7726fi
7727fi
7728ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7729if test -n "$ac_ct_OTOOL64"; then
7730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7731$as_echo "$ac_ct_OTOOL64" >&6; }
7732else
7733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7734$as_echo "no" >&6; }
7735fi
7736
7737  if test "x$ac_ct_OTOOL64" = x; then
7738    OTOOL64=":"
7739  else
7740    case $cross_compiling:$ac_tool_warned in
7741yes:)
7742{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7743$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7744ac_tool_warned=yes ;;
7745esac
7746    OTOOL64=$ac_ct_OTOOL64
7747  fi
7748else
7749  OTOOL64="$ac_cv_prog_OTOOL64"
7750fi
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7779$as_echo_n "checking for -single_module linker flag... " >&6; }
7780if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7781  $as_echo_n "(cached) " >&6
7782else
7783  lt_cv_apple_cc_single_mod=no
7784      if test -z "${LT_MULTI_MODULE}"; then
7785	# By default we will add the -single_module flag. You can override
7786	# by either setting the environment variable LT_MULTI_MODULE
7787	# non-empty at configure time, or by adding -multi_module to the
7788	# link flags.
7789	rm -rf libconftest.dylib*
7790	echo "int foo(void){return 1;}" > conftest.c
7791	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7792-dynamiclib -Wl,-single_module conftest.c" >&5
7793	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7794	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7795        _lt_result=$?
7796	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7797	  lt_cv_apple_cc_single_mod=yes
7798	else
7799	  cat conftest.err >&5
7800	fi
7801	rm -rf libconftest.dylib*
7802	rm -f conftest.*
7803      fi
7804fi
7805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7806$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7807    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7808$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7809if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7810  $as_echo_n "(cached) " >&6
7811else
7812  lt_cv_ld_exported_symbols_list=no
7813      save_LDFLAGS=$LDFLAGS
7814      echo "_main" > conftest.sym
7815      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7816      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7817/* end confdefs.h.  */
7818
7819int
7820main ()
7821{
7822
7823  ;
7824  return 0;
7825}
7826_ACEOF
7827if ac_fn_c_try_link "$LINENO"; then :
7828  lt_cv_ld_exported_symbols_list=yes
7829else
7830  lt_cv_ld_exported_symbols_list=no
7831fi
7832rm -f core conftest.err conftest.$ac_objext \
7833    conftest$ac_exeext conftest.$ac_ext
7834	LDFLAGS="$save_LDFLAGS"
7835
7836fi
7837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7838$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7839    case $host_os in
7840    rhapsody* | darwin1.[012])
7841      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7842    darwin1.*)
7843      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7844    darwin*) # darwin 5.x on
7845      # if running on 10.5 or later, the deployment target defaults
7846      # to the OS version, if on x86, and 10.4, the deployment
7847      # target defaults to 10.4. Don't you love it?
7848      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7849	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7850	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7851	10.[012]*)
7852	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7853	10.*)
7854	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7855      esac
7856    ;;
7857  esac
7858    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7859      _lt_dar_single_mod='$single_module'
7860    fi
7861    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7862      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7863    else
7864      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7865    fi
7866    if test "$DSYMUTIL" != ":"; then
7867      _lt_dsymutil='~$DSYMUTIL $lib || :'
7868    else
7869      _lt_dsymutil=
7870    fi
7871    ;;
7872  esac
7873
7874ac_ext=c
7875ac_cpp='$CPP $CPPFLAGS'
7876ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7877ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7878ac_compiler_gnu=$ac_cv_c_compiler_gnu
7879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7880$as_echo_n "checking how to run the C preprocessor... " >&6; }
7881# On Suns, sometimes $CPP names a directory.
7882if test -n "$CPP" && test -d "$CPP"; then
7883  CPP=
7884fi
7885if test -z "$CPP"; then
7886  if test "${ac_cv_prog_CPP+set}" = set; then :
7887  $as_echo_n "(cached) " >&6
7888else
7889      # Double quotes because CPP needs to be expanded
7890    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7891    do
7892      ac_preproc_ok=false
7893for ac_c_preproc_warn_flag in '' yes
7894do
7895  # Use a header file that comes with gcc, so configuring glibc
7896  # with a fresh cross-compiler works.
7897  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7898  # <limits.h> exists even on freestanding compilers.
7899  # On the NeXT, cc -E runs the code through the compiler's parser,
7900  # not just through cpp. "Syntax error" is here to catch this case.
7901  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7902/* end confdefs.h.  */
7903#ifdef __STDC__
7904# include <limits.h>
7905#else
7906# include <assert.h>
7907#endif
7908		     Syntax error
7909_ACEOF
7910if ac_fn_c_try_cpp "$LINENO"; then :
7911
7912else
7913  # Broken: fails on valid input.
7914continue
7915fi
7916rm -f conftest.err conftest.$ac_ext
7917
7918  # OK, works on sane cases.  Now check whether nonexistent headers
7919  # can be detected and how.
7920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7921/* end confdefs.h.  */
7922#include <ac_nonexistent.h>
7923_ACEOF
7924if ac_fn_c_try_cpp "$LINENO"; then :
7925  # Broken: success on invalid input.
7926continue
7927else
7928  # Passes both tests.
7929ac_preproc_ok=:
7930break
7931fi
7932rm -f conftest.err conftest.$ac_ext
7933
7934done
7935# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7936rm -f conftest.err conftest.$ac_ext
7937if $ac_preproc_ok; then :
7938  break
7939fi
7940
7941    done
7942    ac_cv_prog_CPP=$CPP
7943
7944fi
7945  CPP=$ac_cv_prog_CPP
7946else
7947  ac_cv_prog_CPP=$CPP
7948fi
7949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7950$as_echo "$CPP" >&6; }
7951ac_preproc_ok=false
7952for ac_c_preproc_warn_flag in '' yes
7953do
7954  # Use a header file that comes with gcc, so configuring glibc
7955  # with a fresh cross-compiler works.
7956  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7957  # <limits.h> exists even on freestanding compilers.
7958  # On the NeXT, cc -E runs the code through the compiler's parser,
7959  # not just through cpp. "Syntax error" is here to catch this case.
7960  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7961/* end confdefs.h.  */
7962#ifdef __STDC__
7963# include <limits.h>
7964#else
7965# include <assert.h>
7966#endif
7967		     Syntax error
7968_ACEOF
7969if ac_fn_c_try_cpp "$LINENO"; then :
7970
7971else
7972  # Broken: fails on valid input.
7973continue
7974fi
7975rm -f conftest.err conftest.$ac_ext
7976
7977  # OK, works on sane cases.  Now check whether nonexistent headers
7978  # can be detected and how.
7979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7980/* end confdefs.h.  */
7981#include <ac_nonexistent.h>
7982_ACEOF
7983if ac_fn_c_try_cpp "$LINENO"; then :
7984  # Broken: success on invalid input.
7985continue
7986else
7987  # Passes both tests.
7988ac_preproc_ok=:
7989break
7990fi
7991rm -f conftest.err conftest.$ac_ext
7992
7993done
7994# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7995rm -f conftest.err conftest.$ac_ext
7996if $ac_preproc_ok; then :
7997
7998else
7999  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8000$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8001as_fn_error "C preprocessor \"$CPP\" fails sanity check
8002See \`config.log' for more details." "$LINENO" 5; }
8003fi
8004
8005ac_ext=c
8006ac_cpp='$CPP $CPPFLAGS'
8007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8009ac_compiler_gnu=$ac_cv_c_compiler_gnu
8010
8011
8012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8013$as_echo_n "checking for ANSI C header files... " >&6; }
8014if test "${ac_cv_header_stdc+set}" = set; then :
8015  $as_echo_n "(cached) " >&6
8016else
8017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8018/* end confdefs.h.  */
8019#include <stdlib.h>
8020#include <stdarg.h>
8021#include <string.h>
8022#include <float.h>
8023
8024int
8025main ()
8026{
8027
8028  ;
8029  return 0;
8030}
8031_ACEOF
8032if ac_fn_c_try_compile "$LINENO"; then :
8033  ac_cv_header_stdc=yes
8034else
8035  ac_cv_header_stdc=no
8036fi
8037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8038
8039if test $ac_cv_header_stdc = yes; then
8040  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8041  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8042/* end confdefs.h.  */
8043#include <string.h>
8044
8045_ACEOF
8046if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8047  $EGREP "memchr" >/dev/null 2>&1; then :
8048
8049else
8050  ac_cv_header_stdc=no
8051fi
8052rm -f conftest*
8053
8054fi
8055
8056if test $ac_cv_header_stdc = yes; then
8057  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8058  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8059/* end confdefs.h.  */
8060#include <stdlib.h>
8061
8062_ACEOF
8063if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8064  $EGREP "free" >/dev/null 2>&1; then :
8065
8066else
8067  ac_cv_header_stdc=no
8068fi
8069rm -f conftest*
8070
8071fi
8072
8073if test $ac_cv_header_stdc = yes; then
8074  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8075  if test "$cross_compiling" = yes; then :
8076  :
8077else
8078  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8079/* end confdefs.h.  */
8080#include <ctype.h>
8081#include <stdlib.h>
8082#if ((' ' & 0x0FF) == 0x020)
8083# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8084# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8085#else
8086# define ISLOWER(c) \
8087		   (('a' <= (c) && (c) <= 'i') \
8088		     || ('j' <= (c) && (c) <= 'r') \
8089		     || ('s' <= (c) && (c) <= 'z'))
8090# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8091#endif
8092
8093#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8094int
8095main ()
8096{
8097  int i;
8098  for (i = 0; i < 256; i++)
8099    if (XOR (islower (i), ISLOWER (i))
8100	|| toupper (i) != TOUPPER (i))
8101      return 2;
8102  return 0;
8103}
8104_ACEOF
8105if ac_fn_c_try_run "$LINENO"; then :
8106
8107else
8108  ac_cv_header_stdc=no
8109fi
8110rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8111  conftest.$ac_objext conftest.beam conftest.$ac_ext
8112fi
8113
8114fi
8115fi
8116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8117$as_echo "$ac_cv_header_stdc" >&6; }
8118if test $ac_cv_header_stdc = yes; then
8119
8120$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8121
8122fi
8123
8124# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8125for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8126		  inttypes.h stdint.h unistd.h
8127do :
8128  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8129ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8130"
8131eval as_val=\$$as_ac_Header
8132   if test "x$as_val" = x""yes; then :
8133  cat >>confdefs.h <<_ACEOF
8134#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8135_ACEOF
8136
8137fi
8138
8139done
8140
8141
8142for ac_header in dlfcn.h
8143do :
8144  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8145"
8146if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8147  cat >>confdefs.h <<_ACEOF
8148#define HAVE_DLFCN_H 1
8149_ACEOF
8150
8151fi
8152
8153done
8154
8155
8156
8157# Set options
8158
8159
8160
8161        enable_dlopen=no
8162
8163
8164
8165            # Check whether --enable-shared was given.
8166if test "${enable_shared+set}" = set; then :
8167  enableval=$enable_shared; p=${PACKAGE-default}
8168    case $enableval in
8169    yes) enable_shared=yes ;;
8170    no) enable_shared=no ;;
8171    *)
8172      enable_shared=no
8173      # Look at the argument we got.  We use all the common list separators.
8174      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8175      for pkg in $enableval; do
8176	IFS="$lt_save_ifs"
8177	if test "X$pkg" = "X$p"; then
8178	  enable_shared=yes
8179	fi
8180      done
8181      IFS="$lt_save_ifs"
8182      ;;
8183    esac
8184else
8185  enable_shared=yes
8186fi
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198# Check whether --with-pic was given.
8199if test "${with_pic+set}" = set; then :
8200  withval=$with_pic; pic_mode="$withval"
8201else
8202  pic_mode=default
8203fi
8204
8205
8206test -z "$pic_mode" && pic_mode=default
8207
8208
8209
8210
8211
8212
8213
8214  # Check whether --enable-fast-install was given.
8215if test "${enable_fast_install+set}" = set; then :
8216  enableval=$enable_fast_install; p=${PACKAGE-default}
8217    case $enableval in
8218    yes) enable_fast_install=yes ;;
8219    no) enable_fast_install=no ;;
8220    *)
8221      enable_fast_install=no
8222      # Look at the argument we got.  We use all the common list separators.
8223      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8224      for pkg in $enableval; do
8225	IFS="$lt_save_ifs"
8226	if test "X$pkg" = "X$p"; then
8227	  enable_fast_install=yes
8228	fi
8229      done
8230      IFS="$lt_save_ifs"
8231      ;;
8232    esac
8233else
8234  enable_fast_install=yes
8235fi
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247# This can be used to rebuild libtool when needed
8248LIBTOOL_DEPS="$ltmain"
8249
8250# Always use our own libtool.
8251LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277test -z "$LN_S" && LN_S="ln -s"
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292if test -n "${ZSH_VERSION+set}" ; then
8293   setopt NO_GLOB_SUBST
8294fi
8295
8296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8297$as_echo_n "checking for objdir... " >&6; }
8298if test "${lt_cv_objdir+set}" = set; then :
8299  $as_echo_n "(cached) " >&6
8300else
8301  rm -f .libs 2>/dev/null
8302mkdir .libs 2>/dev/null
8303if test -d .libs; then
8304  lt_cv_objdir=.libs
8305else
8306  # MS-DOS does not allow filenames that begin with a dot.
8307  lt_cv_objdir=_libs
8308fi
8309rmdir .libs 2>/dev/null
8310fi
8311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8312$as_echo "$lt_cv_objdir" >&6; }
8313objdir=$lt_cv_objdir
8314
8315
8316
8317
8318
8319cat >>confdefs.h <<_ACEOF
8320#define LT_OBJDIR "$lt_cv_objdir/"
8321_ACEOF
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339case $host_os in
8340aix3*)
8341  # AIX sometimes has problems with the GCC collect2 program.  For some
8342  # reason, if we set the COLLECT_NAMES environment variable, the problems
8343  # vanish in a puff of smoke.
8344  if test "X${COLLECT_NAMES+set}" != Xset; then
8345    COLLECT_NAMES=
8346    export COLLECT_NAMES
8347  fi
8348  ;;
8349esac
8350
8351# Sed substitution that helps us do robust quoting.  It backslashifies
8352# metacharacters that are still active within double-quoted strings.
8353sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8354
8355# Same as above, but do not quote variable references.
8356double_quote_subst='s/\(["`\\]\)/\\\1/g'
8357
8358# Sed substitution to delay expansion of an escaped shell variable in a
8359# double_quote_subst'ed string.
8360delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8361
8362# Sed substitution to delay expansion of an escaped single quote.
8363delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8364
8365# Sed substitution to avoid accidental globbing in evaled expressions
8366no_glob_subst='s/\*/\\\*/g'
8367
8368# Global variables:
8369ofile=libtool
8370can_build_shared=yes
8371
8372# All known linkers require a `.a' archive for static linking (except MSVC,
8373# which needs '.lib').
8374libext=a
8375
8376with_gnu_ld="$lt_cv_prog_gnu_ld"
8377
8378old_CC="$CC"
8379old_CFLAGS="$CFLAGS"
8380
8381# Set sane defaults for various variables
8382test -z "$CC" && CC=cc
8383test -z "$LTCC" && LTCC=$CC
8384test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8385test -z "$LD" && LD=ld
8386test -z "$ac_objext" && ac_objext=o
8387
8388for cc_temp in $compiler""; do
8389  case $cc_temp in
8390    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8391    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8392    \-*) ;;
8393    *) break;;
8394  esac
8395done
8396cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8397
8398
8399# Only perform the check for file, if the check method requires it
8400test -z "$MAGIC_CMD" && MAGIC_CMD=file
8401case $deplibs_check_method in
8402file_magic*)
8403  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8404    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8405$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8406if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8407  $as_echo_n "(cached) " >&6
8408else
8409  case $MAGIC_CMD in
8410[\\/*] |  ?:[\\/]*)
8411  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8412  ;;
8413*)
8414  lt_save_MAGIC_CMD="$MAGIC_CMD"
8415  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8416  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8417  for ac_dir in $ac_dummy; do
8418    IFS="$lt_save_ifs"
8419    test -z "$ac_dir" && ac_dir=.
8420    if test -f $ac_dir/${ac_tool_prefix}file; then
8421      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8422      if test -n "$file_magic_test_file"; then
8423	case $deplibs_check_method in
8424	"file_magic "*)
8425	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8426	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8427	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8428	    $EGREP "$file_magic_regex" > /dev/null; then
8429	    :
8430	  else
8431	    cat <<_LT_EOF 1>&2
8432
8433*** Warning: the command libtool uses to detect shared libraries,
8434*** $file_magic_cmd, produces output that libtool cannot recognize.
8435*** The result is that libtool may fail to recognize shared libraries
8436*** as such.  This will affect the creation of libtool libraries that
8437*** depend on shared libraries, but programs linked with such libtool
8438*** libraries will work regardless of this problem.  Nevertheless, you
8439*** may want to report the problem to your system manager and/or to
8440*** bug-libtool@gnu.org
8441
8442_LT_EOF
8443	  fi ;;
8444	esac
8445      fi
8446      break
8447    fi
8448  done
8449  IFS="$lt_save_ifs"
8450  MAGIC_CMD="$lt_save_MAGIC_CMD"
8451  ;;
8452esac
8453fi
8454
8455MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8456if test -n "$MAGIC_CMD"; then
8457  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8458$as_echo "$MAGIC_CMD" >&6; }
8459else
8460  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8461$as_echo "no" >&6; }
8462fi
8463
8464
8465
8466
8467
8468if test -z "$lt_cv_path_MAGIC_CMD"; then
8469  if test -n "$ac_tool_prefix"; then
8470    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8471$as_echo_n "checking for file... " >&6; }
8472if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8473  $as_echo_n "(cached) " >&6
8474else
8475  case $MAGIC_CMD in
8476[\\/*] |  ?:[\\/]*)
8477  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8478  ;;
8479*)
8480  lt_save_MAGIC_CMD="$MAGIC_CMD"
8481  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8482  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8483  for ac_dir in $ac_dummy; do
8484    IFS="$lt_save_ifs"
8485    test -z "$ac_dir" && ac_dir=.
8486    if test -f $ac_dir/file; then
8487      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8488      if test -n "$file_magic_test_file"; then
8489	case $deplibs_check_method in
8490	"file_magic "*)
8491	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8492	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8493	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8494	    $EGREP "$file_magic_regex" > /dev/null; then
8495	    :
8496	  else
8497	    cat <<_LT_EOF 1>&2
8498
8499*** Warning: the command libtool uses to detect shared libraries,
8500*** $file_magic_cmd, produces output that libtool cannot recognize.
8501*** The result is that libtool may fail to recognize shared libraries
8502*** as such.  This will affect the creation of libtool libraries that
8503*** depend on shared libraries, but programs linked with such libtool
8504*** libraries will work regardless of this problem.  Nevertheless, you
8505*** may want to report the problem to your system manager and/or to
8506*** bug-libtool@gnu.org
8507
8508_LT_EOF
8509	  fi ;;
8510	esac
8511      fi
8512      break
8513    fi
8514  done
8515  IFS="$lt_save_ifs"
8516  MAGIC_CMD="$lt_save_MAGIC_CMD"
8517  ;;
8518esac
8519fi
8520
8521MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8522if test -n "$MAGIC_CMD"; then
8523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8524$as_echo "$MAGIC_CMD" >&6; }
8525else
8526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8527$as_echo "no" >&6; }
8528fi
8529
8530
8531  else
8532    MAGIC_CMD=:
8533  fi
8534fi
8535
8536  fi
8537  ;;
8538esac
8539
8540# Use C for the default configuration in the libtool script
8541
8542lt_save_CC="$CC"
8543ac_ext=c
8544ac_cpp='$CPP $CPPFLAGS'
8545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8547ac_compiler_gnu=$ac_cv_c_compiler_gnu
8548
8549
8550# Source file extension for C test sources.
8551ac_ext=c
8552
8553# Object file extension for compiled C test sources.
8554objext=o
8555objext=$objext
8556
8557# Code to be used in simple compile tests
8558lt_simple_compile_test_code="int some_variable = 0;"
8559
8560# Code to be used in simple link tests
8561lt_simple_link_test_code='int main(){return(0);}'
8562
8563
8564
8565
8566
8567
8568
8569# If no C compiler was specified, use CC.
8570LTCC=${LTCC-"$CC"}
8571
8572# If no C compiler flags were specified, use CFLAGS.
8573LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8574
8575# Allow CC to be a program name with arguments.
8576compiler=$CC
8577
8578# Save the default compiler, since it gets overwritten when the other
8579# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8580compiler_DEFAULT=$CC
8581
8582# save warnings/boilerplate of simple test code
8583ac_outfile=conftest.$ac_objext
8584echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8585eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8586_lt_compiler_boilerplate=`cat conftest.err`
8587$RM conftest*
8588
8589ac_outfile=conftest.$ac_objext
8590echo "$lt_simple_link_test_code" >conftest.$ac_ext
8591eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8592_lt_linker_boilerplate=`cat conftest.err`
8593$RM -r conftest*
8594
8595
8596if test -n "$compiler"; then
8597
8598lt_prog_compiler_no_builtin_flag=
8599
8600if test "$GCC" = yes; then
8601  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8602
8603  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8604$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8605if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8606  $as_echo_n "(cached) " >&6
8607else
8608  lt_cv_prog_compiler_rtti_exceptions=no
8609   ac_outfile=conftest.$ac_objext
8610   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8611   lt_compiler_flag="-fno-rtti -fno-exceptions"
8612   # Insert the option either (1) after the last *FLAGS variable, or
8613   # (2) before a word containing "conftest.", or (3) at the end.
8614   # Note that $ac_compile itself does not contain backslashes and begins
8615   # with a dollar sign (not a hyphen), so the echo should work correctly.
8616   # The option is referenced via a variable to avoid confusing sed.
8617   lt_compile=`echo "$ac_compile" | $SED \
8618   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8619   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8620   -e 's:$: $lt_compiler_flag:'`
8621   (eval echo "\"\$as_me:8621: $lt_compile\"" >&5)
8622   (eval "$lt_compile" 2>conftest.err)
8623   ac_status=$?
8624   cat conftest.err >&5
8625   echo "$as_me:8625: \$? = $ac_status" >&5
8626   if (exit $ac_status) && test -s "$ac_outfile"; then
8627     # The compiler can only warn and ignore the option if not recognized
8628     # So say no if there are warnings other than the usual output.
8629     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8630     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8631     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8632       lt_cv_prog_compiler_rtti_exceptions=yes
8633     fi
8634   fi
8635   $RM conftest*
8636
8637fi
8638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8639$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8640
8641if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8642    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8643else
8644    :
8645fi
8646
8647fi
8648
8649
8650
8651
8652
8653
8654  lt_prog_compiler_wl=
8655lt_prog_compiler_pic=
8656lt_prog_compiler_static=
8657
8658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8659$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8660
8661  if test "$GCC" = yes; then
8662    lt_prog_compiler_wl='-Wl,'
8663    lt_prog_compiler_static='-static'
8664
8665    case $host_os in
8666      aix*)
8667      # All AIX code is PIC.
8668      if test "$host_cpu" = ia64; then
8669	# AIX 5 now supports IA64 processor
8670	lt_prog_compiler_static='-Bstatic'
8671      fi
8672      ;;
8673
8674    amigaos*)
8675      case $host_cpu in
8676      powerpc)
8677            # see comment about AmigaOS4 .so support
8678            lt_prog_compiler_pic='-fPIC'
8679        ;;
8680      m68k)
8681            # FIXME: we need at least 68020 code to build shared libraries, but
8682            # adding the `-m68020' flag to GCC prevents building anything better,
8683            # like `-m68040'.
8684            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8685        ;;
8686      esac
8687      ;;
8688
8689    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8690      # PIC is the default for these OSes.
8691      ;;
8692
8693    mingw* | cygwin* | pw32* | os2* | cegcc*)
8694      # This hack is so that the source file can tell whether it is being
8695      # built for inclusion in a dll (and should export symbols for example).
8696      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8697      # (--disable-auto-import) libraries
8698      lt_prog_compiler_pic='-DDLL_EXPORT'
8699      ;;
8700
8701    darwin* | rhapsody*)
8702      # PIC is the default on this platform
8703      # Common symbols not allowed in MH_DYLIB files
8704      lt_prog_compiler_pic='-fno-common'
8705      ;;
8706
8707    hpux*)
8708      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8709      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8710      # sets the default TLS model and affects inlining.
8711      case $host_cpu in
8712      hppa*64*)
8713	# +Z the default
8714	;;
8715      *)
8716	lt_prog_compiler_pic='-fPIC'
8717	;;
8718      esac
8719      ;;
8720
8721    interix[3-9]*)
8722      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8723      # Instead, we relocate shared libraries at runtime.
8724      ;;
8725
8726    msdosdjgpp*)
8727      # Just because we use GCC doesn't mean we suddenly get shared libraries
8728      # on systems that don't support them.
8729      lt_prog_compiler_can_build_shared=no
8730      enable_shared=no
8731      ;;
8732
8733    *nto* | *qnx*)
8734      # QNX uses GNU C++, but need to define -shared option too, otherwise
8735      # it will coredump.
8736      lt_prog_compiler_pic='-fPIC -shared'
8737      ;;
8738
8739    sysv4*MP*)
8740      if test -d /usr/nec; then
8741	lt_prog_compiler_pic=-Kconform_pic
8742      fi
8743      ;;
8744
8745    *)
8746      lt_prog_compiler_pic='-fPIC'
8747      ;;
8748    esac
8749  else
8750    # PORTME Check for flag to pass linker flags through the system compiler.
8751    case $host_os in
8752    aix*)
8753      lt_prog_compiler_wl='-Wl,'
8754      if test "$host_cpu" = ia64; then
8755	# AIX 5 now supports IA64 processor
8756	lt_prog_compiler_static='-Bstatic'
8757      else
8758	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8759      fi
8760      ;;
8761
8762    mingw* | cygwin* | pw32* | os2* | cegcc*)
8763      # This hack is so that the source file can tell whether it is being
8764      # built for inclusion in a dll (and should export symbols for example).
8765      lt_prog_compiler_pic='-DDLL_EXPORT'
8766      ;;
8767
8768    hpux9* | hpux10* | hpux11*)
8769      lt_prog_compiler_wl='-Wl,'
8770      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8771      # not for PA HP-UX.
8772      case $host_cpu in
8773      hppa*64*|ia64*)
8774	# +Z the default
8775	;;
8776      *)
8777	lt_prog_compiler_pic='+Z'
8778	;;
8779      esac
8780      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8781      lt_prog_compiler_static='${wl}-a ${wl}archive'
8782      ;;
8783
8784    irix5* | irix6* | nonstopux*)
8785      lt_prog_compiler_wl='-Wl,'
8786      # PIC (with -KPIC) is the default.
8787      lt_prog_compiler_static='-non_shared'
8788      ;;
8789
8790    linux* | k*bsd*-gnu)
8791      case $cc_basename in
8792      # old Intel for x86_64 which still supported -KPIC.
8793      ecc*)
8794	lt_prog_compiler_wl='-Wl,'
8795	lt_prog_compiler_pic='-KPIC'
8796	lt_prog_compiler_static='-static'
8797        ;;
8798      # icc used to be incompatible with GCC.
8799      # ICC 10 doesn't accept -KPIC any more.
8800      icc* | ifort*)
8801	lt_prog_compiler_wl='-Wl,'
8802	lt_prog_compiler_pic='-fPIC'
8803	lt_prog_compiler_static='-static'
8804        ;;
8805      # Lahey Fortran 8.1.
8806      lf95*)
8807	lt_prog_compiler_wl='-Wl,'
8808	lt_prog_compiler_pic='--shared'
8809	lt_prog_compiler_static='--static'
8810	;;
8811      pgcc* | pgf77* | pgf90* | pgf95*)
8812        # Portland Group compilers (*not* the Pentium gcc compiler,
8813	# which looks to be a dead project)
8814	lt_prog_compiler_wl='-Wl,'
8815	lt_prog_compiler_pic='-fpic'
8816	lt_prog_compiler_static='-Bstatic'
8817        ;;
8818      ccc*)
8819        lt_prog_compiler_wl='-Wl,'
8820        # All Alpha code is PIC.
8821        lt_prog_compiler_static='-non_shared'
8822        ;;
8823      xl*)
8824	# IBM XL C 8.0/Fortran 10.1 on PPC
8825	lt_prog_compiler_wl='-Wl,'
8826	lt_prog_compiler_pic='-qpic'
8827	lt_prog_compiler_static='-qstaticlink'
8828	;;
8829      *)
8830	case `$CC -V 2>&1 | sed 5q` in
8831	*Sun\ C*)
8832	  # Sun C 5.9
8833	  lt_prog_compiler_pic='-KPIC'
8834	  lt_prog_compiler_static='-Bstatic'
8835	  lt_prog_compiler_wl='-Wl,'
8836	  ;;
8837	*Sun\ F*)
8838	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8839	  lt_prog_compiler_pic='-KPIC'
8840	  lt_prog_compiler_static='-Bstatic'
8841	  lt_prog_compiler_wl=''
8842	  ;;
8843	esac
8844	;;
8845      esac
8846      ;;
8847
8848    newsos6)
8849      lt_prog_compiler_pic='-KPIC'
8850      lt_prog_compiler_static='-Bstatic'
8851      ;;
8852
8853    *nto* | *qnx*)
8854      # QNX uses GNU C++, but need to define -shared option too, otherwise
8855      # it will coredump.
8856      lt_prog_compiler_pic='-fPIC -shared'
8857      ;;
8858
8859    osf3* | osf4* | osf5*)
8860      lt_prog_compiler_wl='-Wl,'
8861      # All OSF/1 code is PIC.
8862      lt_prog_compiler_static='-non_shared'
8863      ;;
8864
8865    rdos*)
8866      lt_prog_compiler_static='-non_shared'
8867      ;;
8868
8869    solaris*)
8870      lt_prog_compiler_pic='-KPIC'
8871      lt_prog_compiler_static='-Bstatic'
8872      case $cc_basename in
8873      f77* | f90* | f95*)
8874	lt_prog_compiler_wl='-Qoption ld ';;
8875      *)
8876	lt_prog_compiler_wl='-Wl,';;
8877      esac
8878      ;;
8879
8880    sunos4*)
8881      lt_prog_compiler_wl='-Qoption ld '
8882      lt_prog_compiler_pic='-PIC'
8883      lt_prog_compiler_static='-Bstatic'
8884      ;;
8885
8886    sysv4 | sysv4.2uw2* | sysv4.3*)
8887      lt_prog_compiler_wl='-Wl,'
8888      lt_prog_compiler_pic='-KPIC'
8889      lt_prog_compiler_static='-Bstatic'
8890      ;;
8891
8892    sysv4*MP*)
8893      if test -d /usr/nec ;then
8894	lt_prog_compiler_pic='-Kconform_pic'
8895	lt_prog_compiler_static='-Bstatic'
8896      fi
8897      ;;
8898
8899    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8900      lt_prog_compiler_wl='-Wl,'
8901      lt_prog_compiler_pic='-KPIC'
8902      lt_prog_compiler_static='-Bstatic'
8903      ;;
8904
8905    unicos*)
8906      lt_prog_compiler_wl='-Wl,'
8907      lt_prog_compiler_can_build_shared=no
8908      ;;
8909
8910    uts4*)
8911      lt_prog_compiler_pic='-pic'
8912      lt_prog_compiler_static='-Bstatic'
8913      ;;
8914
8915    *)
8916      lt_prog_compiler_can_build_shared=no
8917      ;;
8918    esac
8919  fi
8920
8921case $host_os in
8922  # For platforms which do not support PIC, -DPIC is meaningless:
8923  *djgpp*)
8924    lt_prog_compiler_pic=
8925    ;;
8926  *)
8927    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8928    ;;
8929esac
8930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8931$as_echo "$lt_prog_compiler_pic" >&6; }
8932
8933
8934
8935
8936
8937
8938#
8939# Check to make sure the PIC flag actually works.
8940#
8941if test -n "$lt_prog_compiler_pic"; then
8942  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8943$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8944if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8945  $as_echo_n "(cached) " >&6
8946else
8947  lt_cv_prog_compiler_pic_works=no
8948   ac_outfile=conftest.$ac_objext
8949   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8950   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8951   # Insert the option either (1) after the last *FLAGS variable, or
8952   # (2) before a word containing "conftest.", or (3) at the end.
8953   # Note that $ac_compile itself does not contain backslashes and begins
8954   # with a dollar sign (not a hyphen), so the echo should work correctly.
8955   # The option is referenced via a variable to avoid confusing sed.
8956   lt_compile=`echo "$ac_compile" | $SED \
8957   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8958   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8959   -e 's:$: $lt_compiler_flag:'`
8960   (eval echo "\"\$as_me:8960: $lt_compile\"" >&5)
8961   (eval "$lt_compile" 2>conftest.err)
8962   ac_status=$?
8963   cat conftest.err >&5
8964   echo "$as_me:8964: \$? = $ac_status" >&5
8965   if (exit $ac_status) && test -s "$ac_outfile"; then
8966     # The compiler can only warn and ignore the option if not recognized
8967     # So say no if there are warnings other than the usual output.
8968     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8969     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8970     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8971       lt_cv_prog_compiler_pic_works=yes
8972     fi
8973   fi
8974   $RM conftest*
8975
8976fi
8977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8978$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8979
8980if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8981    case $lt_prog_compiler_pic in
8982     "" | " "*) ;;
8983     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8984     esac
8985else
8986    lt_prog_compiler_pic=
8987     lt_prog_compiler_can_build_shared=no
8988fi
8989
8990fi
8991
8992
8993
8994
8995
8996
8997#
8998# Check to make sure the static flag actually works.
8999#
9000wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9002$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9003if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9004  $as_echo_n "(cached) " >&6
9005else
9006  lt_cv_prog_compiler_static_works=no
9007   save_LDFLAGS="$LDFLAGS"
9008   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9009   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9010   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9011     # The linker can only warn and ignore the option if not recognized
9012     # So say no if there are warnings
9013     if test -s conftest.err; then
9014       # Append any errors to the config.log.
9015       cat conftest.err 1>&5
9016       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9017       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9018       if diff conftest.exp conftest.er2 >/dev/null; then
9019         lt_cv_prog_compiler_static_works=yes
9020       fi
9021     else
9022       lt_cv_prog_compiler_static_works=yes
9023     fi
9024   fi
9025   $RM -r conftest*
9026   LDFLAGS="$save_LDFLAGS"
9027
9028fi
9029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9030$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9031
9032if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9033    :
9034else
9035    lt_prog_compiler_static=
9036fi
9037
9038
9039
9040
9041
9042
9043
9044  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9045$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9046if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9047  $as_echo_n "(cached) " >&6
9048else
9049  lt_cv_prog_compiler_c_o=no
9050   $RM -r conftest 2>/dev/null
9051   mkdir conftest
9052   cd conftest
9053   mkdir out
9054   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9055
9056   lt_compiler_flag="-o out/conftest2.$ac_objext"
9057   # Insert the option either (1) after the last *FLAGS variable, or
9058   # (2) before a word containing "conftest.", or (3) at the end.
9059   # Note that $ac_compile itself does not contain backslashes and begins
9060   # with a dollar sign (not a hyphen), so the echo should work correctly.
9061   lt_compile=`echo "$ac_compile" | $SED \
9062   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9063   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9064   -e 's:$: $lt_compiler_flag:'`
9065   (eval echo "\"\$as_me:9065: $lt_compile\"" >&5)
9066   (eval "$lt_compile" 2>out/conftest.err)
9067   ac_status=$?
9068   cat out/conftest.err >&5
9069   echo "$as_me:9069: \$? = $ac_status" >&5
9070   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9071   then
9072     # The compiler can only warn and ignore the option if not recognized
9073     # So say no if there are warnings
9074     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9075     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9076     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9077       lt_cv_prog_compiler_c_o=yes
9078     fi
9079   fi
9080   chmod u+w . 2>&5
9081   $RM conftest*
9082   # SGI C++ compiler will create directory out/ii_files/ for
9083   # template instantiation
9084   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9085   $RM out/* && rmdir out
9086   cd ..
9087   $RM -r conftest
9088   $RM conftest*
9089
9090fi
9091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9092$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9093
9094
9095
9096
9097
9098
9099  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9100$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9101if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9102  $as_echo_n "(cached) " >&6
9103else
9104  lt_cv_prog_compiler_c_o=no
9105   $RM -r conftest 2>/dev/null
9106   mkdir conftest
9107   cd conftest
9108   mkdir out
9109   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9110
9111   lt_compiler_flag="-o out/conftest2.$ac_objext"
9112   # Insert the option either (1) after the last *FLAGS variable, or
9113   # (2) before a word containing "conftest.", or (3) at the end.
9114   # Note that $ac_compile itself does not contain backslashes and begins
9115   # with a dollar sign (not a hyphen), so the echo should work correctly.
9116   lt_compile=`echo "$ac_compile" | $SED \
9117   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9118   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9119   -e 's:$: $lt_compiler_flag:'`
9120   (eval echo "\"\$as_me:9120: $lt_compile\"" >&5)
9121   (eval "$lt_compile" 2>out/conftest.err)
9122   ac_status=$?
9123   cat out/conftest.err >&5
9124   echo "$as_me:9124: \$? = $ac_status" >&5
9125   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9126   then
9127     # The compiler can only warn and ignore the option if not recognized
9128     # So say no if there are warnings
9129     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9130     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9131     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9132       lt_cv_prog_compiler_c_o=yes
9133     fi
9134   fi
9135   chmod u+w . 2>&5
9136   $RM conftest*
9137   # SGI C++ compiler will create directory out/ii_files/ for
9138   # template instantiation
9139   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9140   $RM out/* && rmdir out
9141   cd ..
9142   $RM -r conftest
9143   $RM conftest*
9144
9145fi
9146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9147$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9148
9149
9150
9151
9152hard_links="nottested"
9153if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9154  # do not overwrite the value of need_locks provided by the user
9155  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9156$as_echo_n "checking if we can lock with hard links... " >&6; }
9157  hard_links=yes
9158  $RM conftest*
9159  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9160  touch conftest.a
9161  ln conftest.a conftest.b 2>&5 || hard_links=no
9162  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9163  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9164$as_echo "$hard_links" >&6; }
9165  if test "$hard_links" = no; then
9166    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9167$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9168    need_locks=warn
9169  fi
9170else
9171  need_locks=no
9172fi
9173
9174
9175
9176
9177
9178
9179  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9180$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9181
9182  runpath_var=
9183  allow_undefined_flag=
9184  always_export_symbols=no
9185  archive_cmds=
9186  archive_expsym_cmds=
9187  compiler_needs_object=no
9188  enable_shared_with_static_runtimes=no
9189  export_dynamic_flag_spec=
9190  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9191  hardcode_automatic=no
9192  hardcode_direct=no
9193  hardcode_direct_absolute=no
9194  hardcode_libdir_flag_spec=
9195  hardcode_libdir_flag_spec_ld=
9196  hardcode_libdir_separator=
9197  hardcode_minus_L=no
9198  hardcode_shlibpath_var=unsupported
9199  inherit_rpath=no
9200  link_all_deplibs=unknown
9201  module_cmds=
9202  module_expsym_cmds=
9203  old_archive_from_new_cmds=
9204  old_archive_from_expsyms_cmds=
9205  thread_safe_flag_spec=
9206  whole_archive_flag_spec=
9207  # include_expsyms should be a list of space-separated symbols to be *always*
9208  # included in the symbol list
9209  include_expsyms=
9210  # exclude_expsyms can be an extended regexp of symbols to exclude
9211  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9212  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9213  # as well as any symbol that contains `d'.
9214  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9215  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9216  # platforms (ab)use it in PIC code, but their linkers get confused if
9217  # the symbol is explicitly referenced.  Since portable code cannot
9218  # rely on this symbol name, it's probably fine to never include it in
9219  # preloaded symbol tables.
9220  # Exclude shared library initialization/finalization symbols.
9221  extract_expsyms_cmds=
9222
9223  case $host_os in
9224  cygwin* | mingw* | pw32* | cegcc*)
9225    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9226    # When not using gcc, we currently assume that we are using
9227    # Microsoft Visual C++.
9228    if test "$GCC" != yes; then
9229      with_gnu_ld=no
9230    fi
9231    ;;
9232  interix*)
9233    # we just hope/assume this is gcc and not c89 (= MSVC++)
9234    with_gnu_ld=yes
9235    ;;
9236  openbsd*)
9237    with_gnu_ld=no
9238    ;;
9239  linux* | k*bsd*-gnu)
9240    link_all_deplibs=no
9241    ;;
9242  esac
9243
9244  ld_shlibs=yes
9245  if test "$with_gnu_ld" = yes; then
9246    # If archive_cmds runs LD, not CC, wlarc should be empty
9247    wlarc='${wl}'
9248
9249    # Set some defaults for GNU ld with shared library support. These
9250    # are reset later if shared libraries are not supported. Putting them
9251    # here allows them to be overridden if necessary.
9252    runpath_var=LD_RUN_PATH
9253    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9254    export_dynamic_flag_spec='${wl}--export-dynamic'
9255    # ancient GNU ld didn't support --whole-archive et. al.
9256    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9257      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9258    else
9259      whole_archive_flag_spec=
9260    fi
9261    supports_anon_versioning=no
9262    case `$LD -v 2>&1` in
9263      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9264      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9265      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9266      *\ 2.11.*) ;; # other 2.11 versions
9267      *) supports_anon_versioning=yes ;;
9268    esac
9269
9270    # See if GNU ld supports shared libraries.
9271    case $host_os in
9272    aix[3-9]*)
9273      # On AIX/PPC, the GNU linker is very broken
9274      if test "$host_cpu" != ia64; then
9275	ld_shlibs=no
9276	cat <<_LT_EOF 1>&2
9277
9278*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9279*** to be unable to reliably create shared libraries on AIX.
9280*** Therefore, libtool is disabling shared libraries support.  If you
9281*** really care for shared libraries, you may want to modify your PATH
9282*** so that a non-GNU linker is found, and then restart.
9283
9284_LT_EOF
9285      fi
9286      ;;
9287
9288    amigaos*)
9289      case $host_cpu in
9290      powerpc)
9291            # see comment about AmigaOS4 .so support
9292            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9293            archive_expsym_cmds=''
9294        ;;
9295      m68k)
9296            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)'
9297            hardcode_libdir_flag_spec='-L$libdir'
9298            hardcode_minus_L=yes
9299        ;;
9300      esac
9301      ;;
9302
9303    beos*)
9304      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9305	allow_undefined_flag=unsupported
9306	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9307	# support --undefined.  This deserves some investigation.  FIXME
9308	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9309      else
9310	ld_shlibs=no
9311      fi
9312      ;;
9313
9314    cygwin* | mingw* | pw32* | cegcc*)
9315      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9316      # as there is no search path for DLLs.
9317      hardcode_libdir_flag_spec='-L$libdir'
9318      allow_undefined_flag=unsupported
9319      always_export_symbols=no
9320      enable_shared_with_static_runtimes=yes
9321      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9322
9323      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9324        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9325	# If the export-symbols file already is a .def file (1st line
9326	# is EXPORTS), use it as is; otherwise, prepend...
9327	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9328	  cp $export_symbols $output_objdir/$soname.def;
9329	else
9330	  echo EXPORTS > $output_objdir/$soname.def;
9331	  cat $export_symbols >> $output_objdir/$soname.def;
9332	fi~
9333	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9334      else
9335	ld_shlibs=no
9336      fi
9337      ;;
9338
9339    interix[3-9]*)
9340      hardcode_direct=no
9341      hardcode_shlibpath_var=no
9342      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9343      export_dynamic_flag_spec='${wl}-E'
9344      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9345      # Instead, shared libraries are loaded at an image base (0x10000000 by
9346      # default) and relocated if they conflict, which is a slow very memory
9347      # consuming and fragmenting process.  To avoid this, we pick a random,
9348      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9349      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9350      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9351      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'
9352      ;;
9353
9354    gnu* | linux* | tpf* | k*bsd*-gnu)
9355      tmp_diet=no
9356      if test "$host_os" = linux-dietlibc; then
9357	case $cc_basename in
9358	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9359	esac
9360      fi
9361      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9362	 && test "$tmp_diet" = no
9363      then
9364	tmp_addflag=
9365	tmp_sharedflag='-shared'
9366	case $cc_basename,$host_cpu in
9367        pgcc*)				# Portland Group C compiler
9368	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9369	  tmp_addflag=' $pic_flag'
9370	  ;;
9371	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
9372	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9373	  tmp_addflag=' $pic_flag -Mnomain' ;;
9374	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9375	  tmp_addflag=' -i_dynamic' ;;
9376	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9377	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9378	ifc* | ifort*)			# Intel Fortran compiler
9379	  tmp_addflag=' -nofor_main' ;;
9380	lf95*)				# Lahey Fortran 8.1
9381	  whole_archive_flag_spec=
9382	  tmp_sharedflag='--shared' ;;
9383	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
9384	  tmp_sharedflag='-qmkshrobj'
9385	  tmp_addflag= ;;
9386	esac
9387	case `$CC -V 2>&1 | sed 5q` in
9388	*Sun\ C*)			# Sun C 5.9
9389	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9390	  compiler_needs_object=yes
9391	  tmp_sharedflag='-G' ;;
9392	*Sun\ F*)			# Sun Fortran 8.3
9393	  tmp_sharedflag='-G' ;;
9394	esac
9395	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9396
9397        if test "x$supports_anon_versioning" = xyes; then
9398          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9399	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9400	    echo "local: *; };" >> $output_objdir/$libname.ver~
9401	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9402        fi
9403
9404	case $cc_basename in
9405	xlf*)
9406	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9407	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9408	  hardcode_libdir_flag_spec=
9409	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9410	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9411	  if test "x$supports_anon_versioning" = xyes; then
9412	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9413	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9414	      echo "local: *; };" >> $output_objdir/$libname.ver~
9415	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9416	  fi
9417	  ;;
9418	esac
9419      else
9420        ld_shlibs=no
9421      fi
9422      ;;
9423
9424    netbsd* | netbsdelf*-gnu)
9425      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9426	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9427	wlarc=
9428      else
9429	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9430	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9431      fi
9432      ;;
9433
9434    solaris*)
9435      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9436	ld_shlibs=no
9437	cat <<_LT_EOF 1>&2
9438
9439*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9440*** create shared libraries on Solaris systems.  Therefore, libtool
9441*** is disabling shared libraries support.  We urge you to upgrade GNU
9442*** binutils to release 2.9.1 or newer.  Another option is to modify
9443*** your PATH or compiler configuration so that the native linker is
9444*** used, and then restart.
9445
9446_LT_EOF
9447      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9448	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9449	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9450      else
9451	ld_shlibs=no
9452      fi
9453      ;;
9454
9455    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9456      case `$LD -v 2>&1` in
9457        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9458	ld_shlibs=no
9459	cat <<_LT_EOF 1>&2
9460
9461*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9462*** reliably create shared libraries on SCO systems.  Therefore, libtool
9463*** is disabling shared libraries support.  We urge you to upgrade GNU
9464*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9465*** your PATH or compiler configuration so that the native linker is
9466*** used, and then restart.
9467
9468_LT_EOF
9469	;;
9470	*)
9471	  # For security reasons, it is highly recommended that you always
9472	  # use absolute paths for naming shared libraries, and exclude the
9473	  # DT_RUNPATH tag from executables and libraries.  But doing so
9474	  # requires that you compile everything twice, which is a pain.
9475	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9476	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9477	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9478	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9479	  else
9480	    ld_shlibs=no
9481	  fi
9482	;;
9483      esac
9484      ;;
9485
9486    sunos4*)
9487      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9488      wlarc=
9489      hardcode_direct=yes
9490      hardcode_shlibpath_var=no
9491      ;;
9492
9493    *)
9494      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9495	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9496	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9497      else
9498	ld_shlibs=no
9499      fi
9500      ;;
9501    esac
9502
9503    if test "$ld_shlibs" = no; then
9504      runpath_var=
9505      hardcode_libdir_flag_spec=
9506      export_dynamic_flag_spec=
9507      whole_archive_flag_spec=
9508    fi
9509  else
9510    # PORTME fill in a description of your system's linker (not GNU ld)
9511    case $host_os in
9512    aix3*)
9513      allow_undefined_flag=unsupported
9514      always_export_symbols=yes
9515      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'
9516      # Note: this linker hardcodes the directories in LIBPATH if there
9517      # are no directories specified by -L.
9518      hardcode_minus_L=yes
9519      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9520	# Neither direct hardcoding nor static linking is supported with a
9521	# broken collect2.
9522	hardcode_direct=unsupported
9523      fi
9524      ;;
9525
9526    aix[4-9]*)
9527      if test "$host_cpu" = ia64; then
9528	# On IA64, the linker does run time linking by default, so we don't
9529	# have to do anything special.
9530	aix_use_runtimelinking=no
9531	exp_sym_flag='-Bexport'
9532	no_entry_flag=""
9533      else
9534	# If we're using GNU nm, then we don't want the "-C" option.
9535	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9536	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9537	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9538	else
9539	  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'
9540	fi
9541	aix_use_runtimelinking=no
9542
9543	# Test if we are trying to use run time linking or normal
9544	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9545	# need to do runtime linking.
9546	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9547	  for ld_flag in $LDFLAGS; do
9548	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9549	    aix_use_runtimelinking=yes
9550	    break
9551	  fi
9552	  done
9553	  ;;
9554	esac
9555
9556	exp_sym_flag='-bexport'
9557	no_entry_flag='-bnoentry'
9558      fi
9559
9560      # When large executables or shared objects are built, AIX ld can
9561      # have problems creating the table of contents.  If linking a library
9562      # or program results in "error TOC overflow" add -mminimal-toc to
9563      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9564      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9565
9566      archive_cmds=''
9567      hardcode_direct=yes
9568      hardcode_direct_absolute=yes
9569      hardcode_libdir_separator=':'
9570      link_all_deplibs=yes
9571      file_list_spec='${wl}-f,'
9572
9573      if test "$GCC" = yes; then
9574	case $host_os in aix4.[012]|aix4.[012].*)
9575	# We only want to do this on AIX 4.2 and lower, the check
9576	# below for broken collect2 doesn't work under 4.3+
9577	  collect2name=`${CC} -print-prog-name=collect2`
9578	  if test -f "$collect2name" &&
9579	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9580	  then
9581	  # We have reworked collect2
9582	  :
9583	  else
9584	  # We have old collect2
9585	  hardcode_direct=unsupported
9586	  # It fails to find uninstalled libraries when the uninstalled
9587	  # path is not listed in the libpath.  Setting hardcode_minus_L
9588	  # to unsupported forces relinking
9589	  hardcode_minus_L=yes
9590	  hardcode_libdir_flag_spec='-L$libdir'
9591	  hardcode_libdir_separator=
9592	  fi
9593	  ;;
9594	esac
9595	shared_flag='-shared'
9596	if test "$aix_use_runtimelinking" = yes; then
9597	  shared_flag="$shared_flag "'${wl}-G'
9598	fi
9599	link_all_deplibs=no
9600      else
9601	# not using gcc
9602	if test "$host_cpu" = ia64; then
9603	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9604	# chokes on -Wl,-G. The following line is correct:
9605	  shared_flag='-G'
9606	else
9607	  if test "$aix_use_runtimelinking" = yes; then
9608	    shared_flag='${wl}-G'
9609	  else
9610	    shared_flag='${wl}-bM:SRE'
9611	  fi
9612	fi
9613      fi
9614
9615      export_dynamic_flag_spec='${wl}-bexpall'
9616      # It seems that -bexpall does not export symbols beginning with
9617      # underscore (_), so it is better to generate a list of symbols to export.
9618      always_export_symbols=yes
9619      if test "$aix_use_runtimelinking" = yes; then
9620	# Warning - without using the other runtime loading flags (-brtl),
9621	# -berok will link without error, but may produce a broken library.
9622	allow_undefined_flag='-berok'
9623        # Determine the default libpath from the value encoded in an
9624        # empty executable.
9625        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9626/* end confdefs.h.  */
9627
9628int
9629main ()
9630{
9631
9632  ;
9633  return 0;
9634}
9635_ACEOF
9636if ac_fn_c_try_link "$LINENO"; then :
9637
9638lt_aix_libpath_sed='
9639    /Import File Strings/,/^$/ {
9640	/^0/ {
9641	    s/^0  *\(.*\)$/\1/
9642	    p
9643	}
9644    }'
9645aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9646# Check for a 64-bit object if we didn't find anything.
9647if test -z "$aix_libpath"; then
9648  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9649fi
9650fi
9651rm -f core conftest.err conftest.$ac_objext \
9652    conftest$ac_exeext conftest.$ac_ext
9653if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9654
9655        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9656        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9657      else
9658	if test "$host_cpu" = ia64; then
9659	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9660	  allow_undefined_flag="-z nodefs"
9661	  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"
9662	else
9663	 # Determine the default libpath from the value encoded in an
9664	 # empty executable.
9665	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9666/* end confdefs.h.  */
9667
9668int
9669main ()
9670{
9671
9672  ;
9673  return 0;
9674}
9675_ACEOF
9676if ac_fn_c_try_link "$LINENO"; then :
9677
9678lt_aix_libpath_sed='
9679    /Import File Strings/,/^$/ {
9680	/^0/ {
9681	    s/^0  *\(.*\)$/\1/
9682	    p
9683	}
9684    }'
9685aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9686# Check for a 64-bit object if we didn't find anything.
9687if test -z "$aix_libpath"; then
9688  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9689fi
9690fi
9691rm -f core conftest.err conftest.$ac_objext \
9692    conftest$ac_exeext conftest.$ac_ext
9693if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9694
9695	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9696	  # Warning - without using the other run time loading flags,
9697	  # -berok will link without error, but may produce a broken library.
9698	  no_undefined_flag=' ${wl}-bernotok'
9699	  allow_undefined_flag=' ${wl}-berok'
9700	  # Exported symbols can be pulled into shared objects from archives
9701	  whole_archive_flag_spec='$convenience'
9702	  archive_cmds_need_lc=yes
9703	  # This is similar to how AIX traditionally builds its shared libraries.
9704	  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'
9705	fi
9706      fi
9707      ;;
9708
9709    amigaos*)
9710      case $host_cpu in
9711      powerpc)
9712            # see comment about AmigaOS4 .so support
9713            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9714            archive_expsym_cmds=''
9715        ;;
9716      m68k)
9717            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)'
9718            hardcode_libdir_flag_spec='-L$libdir'
9719            hardcode_minus_L=yes
9720        ;;
9721      esac
9722      ;;
9723
9724    bsdi[45]*)
9725      export_dynamic_flag_spec=-rdynamic
9726      ;;
9727
9728    cygwin* | mingw* | pw32* | cegcc*)
9729      # When not using gcc, we currently assume that we are using
9730      # Microsoft Visual C++.
9731      # hardcode_libdir_flag_spec is actually meaningless, as there is
9732      # no search path for DLLs.
9733      hardcode_libdir_flag_spec=' '
9734      allow_undefined_flag=unsupported
9735      # Tell ltmain to make .lib files, not .a files.
9736      libext=lib
9737      # Tell ltmain to make .dll files, not .so files.
9738      shrext_cmds=".dll"
9739      # FIXME: Setting linknames here is a bad hack.
9740      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9741      # The linker will automatically build a .lib file if we build a DLL.
9742      old_archive_from_new_cmds='true'
9743      # FIXME: Should let the user specify the lib program.
9744      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9745      fix_srcfile_path='`cygpath -w "$srcfile"`'
9746      enable_shared_with_static_runtimes=yes
9747      ;;
9748
9749    darwin* | rhapsody*)
9750
9751
9752  archive_cmds_need_lc=no
9753  hardcode_direct=no
9754  hardcode_automatic=yes
9755  hardcode_shlibpath_var=unsupported
9756  whole_archive_flag_spec=''
9757  link_all_deplibs=yes
9758  allow_undefined_flag="$_lt_dar_allow_undefined"
9759  case $cc_basename in
9760     ifort*) _lt_dar_can_shared=yes ;;
9761     *) _lt_dar_can_shared=$GCC ;;
9762  esac
9763  if test "$_lt_dar_can_shared" = "yes"; then
9764    output_verbose_link_cmd=echo
9765    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9766    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9767    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}"
9768    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}"
9769
9770  else
9771  ld_shlibs=no
9772  fi
9773
9774      ;;
9775
9776    dgux*)
9777      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9778      hardcode_libdir_flag_spec='-L$libdir'
9779      hardcode_shlibpath_var=no
9780      ;;
9781
9782    freebsd1*)
9783      ld_shlibs=no
9784      ;;
9785
9786    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9787    # support.  Future versions do this automatically, but an explicit c++rt0.o
9788    # does not break anything, and helps significantly (at the cost of a little
9789    # extra space).
9790    freebsd2.2*)
9791      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9792      hardcode_libdir_flag_spec='-R$libdir'
9793      hardcode_direct=yes
9794      hardcode_shlibpath_var=no
9795      ;;
9796
9797    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9798    freebsd2*)
9799      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9800      hardcode_direct=yes
9801      hardcode_minus_L=yes
9802      hardcode_shlibpath_var=no
9803      ;;
9804
9805    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9806    freebsd* | dragonfly*)
9807      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9808      hardcode_libdir_flag_spec='-R$libdir'
9809      hardcode_direct=yes
9810      hardcode_shlibpath_var=no
9811      ;;
9812
9813    hpux9*)
9814      if test "$GCC" = yes; then
9815	archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9816      else
9817	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'
9818      fi
9819      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9820      hardcode_libdir_separator=:
9821      hardcode_direct=yes
9822
9823      # hardcode_minus_L: Not really in the search PATH,
9824      # but as the default location of the library.
9825      hardcode_minus_L=yes
9826      export_dynamic_flag_spec='${wl}-E'
9827      ;;
9828
9829    hpux10*)
9830      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9831	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9832      else
9833	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9834      fi
9835      if test "$with_gnu_ld" = no; then
9836	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9837	hardcode_libdir_flag_spec_ld='+b $libdir'
9838	hardcode_libdir_separator=:
9839	hardcode_direct=yes
9840	hardcode_direct_absolute=yes
9841	export_dynamic_flag_spec='${wl}-E'
9842	# hardcode_minus_L: Not really in the search PATH,
9843	# but as the default location of the library.
9844	hardcode_minus_L=yes
9845      fi
9846      ;;
9847
9848    hpux11*)
9849      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9850	case $host_cpu in
9851	hppa*64*)
9852	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9853	  ;;
9854	ia64*)
9855	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9856	  ;;
9857	*)
9858	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9859	  ;;
9860	esac
9861      else
9862	case $host_cpu in
9863	hppa*64*)
9864	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9865	  ;;
9866	ia64*)
9867	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9868	  ;;
9869	*)
9870	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9871	  ;;
9872	esac
9873      fi
9874      if test "$with_gnu_ld" = no; then
9875	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9876	hardcode_libdir_separator=:
9877
9878	case $host_cpu in
9879	hppa*64*|ia64*)
9880	  hardcode_direct=no
9881	  hardcode_shlibpath_var=no
9882	  ;;
9883	*)
9884	  hardcode_direct=yes
9885	  hardcode_direct_absolute=yes
9886	  export_dynamic_flag_spec='${wl}-E'
9887
9888	  # hardcode_minus_L: Not really in the search PATH,
9889	  # but as the default location of the library.
9890	  hardcode_minus_L=yes
9891	  ;;
9892	esac
9893      fi
9894      ;;
9895
9896    irix5* | irix6* | nonstopux*)
9897      if test "$GCC" = yes; then
9898	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9899	# Try to use the -exported_symbol ld option, if it does not
9900	# work, assume that -exports_file does not work either and
9901	# implicitly export all symbols.
9902        save_LDFLAGS="$LDFLAGS"
9903        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9904        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9905/* end confdefs.h.  */
9906int foo(void) {}
9907_ACEOF
9908if ac_fn_c_try_link "$LINENO"; then :
9909  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9910
9911fi
9912rm -f core conftest.err conftest.$ac_objext \
9913    conftest$ac_exeext conftest.$ac_ext
9914        LDFLAGS="$save_LDFLAGS"
9915      else
9916	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9917	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9918      fi
9919      archive_cmds_need_lc='no'
9920      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9921      hardcode_libdir_separator=:
9922      inherit_rpath=yes
9923      link_all_deplibs=yes
9924      ;;
9925
9926    netbsd* | netbsdelf*-gnu)
9927      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9928	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9929      else
9930	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9931      fi
9932      hardcode_libdir_flag_spec='-R$libdir'
9933      hardcode_direct=yes
9934      hardcode_shlibpath_var=no
9935      ;;
9936
9937    newsos6)
9938      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9939      hardcode_direct=yes
9940      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9941      hardcode_libdir_separator=:
9942      hardcode_shlibpath_var=no
9943      ;;
9944
9945    *nto* | *qnx*)
9946      ;;
9947
9948    openbsd*)
9949      if test -f /usr/libexec/ld.so; then
9950	hardcode_direct=yes
9951	hardcode_shlibpath_var=no
9952	hardcode_direct_absolute=yes
9953	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9954	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9955	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9956	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9957	  export_dynamic_flag_spec='${wl}-E'
9958	else
9959	  case $host_os in
9960	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9961	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9962	     hardcode_libdir_flag_spec='-R$libdir'
9963	     ;;
9964	   *)
9965	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9966	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9967	     ;;
9968	  esac
9969	fi
9970      else
9971	ld_shlibs=no
9972      fi
9973      ;;
9974
9975    os2*)
9976      hardcode_libdir_flag_spec='-L$libdir'
9977      hardcode_minus_L=yes
9978      allow_undefined_flag=unsupported
9979      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'
9980      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9981      ;;
9982
9983    osf3*)
9984      if test "$GCC" = yes; then
9985	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9986	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9987      else
9988	allow_undefined_flag=' -expect_unresolved \*'
9989	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9990      fi
9991      archive_cmds_need_lc='no'
9992      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9993      hardcode_libdir_separator=:
9994      ;;
9995
9996    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9997      if test "$GCC" = yes; then
9998	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9999	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10000	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10001      else
10002	allow_undefined_flag=' -expect_unresolved \*'
10003	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10004	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~
10005	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10006
10007	# Both c and cxx compiler support -rpath directly
10008	hardcode_libdir_flag_spec='-rpath $libdir'
10009      fi
10010      archive_cmds_need_lc='no'
10011      hardcode_libdir_separator=:
10012      ;;
10013
10014    solaris*)
10015      no_undefined_flag=' -z defs'
10016      if test "$GCC" = yes; then
10017	wlarc='${wl}'
10018	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10019	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10020	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10021      else
10022	case `$CC -V 2>&1` in
10023	*"Compilers 5.0"*)
10024	  wlarc=''
10025	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10026	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10027	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10028	  ;;
10029	*)
10030	  wlarc='${wl}'
10031	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10032	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10033	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10034	  ;;
10035	esac
10036      fi
10037      hardcode_libdir_flag_spec='-R$libdir'
10038      hardcode_shlibpath_var=no
10039      case $host_os in
10040      solaris2.[0-5] | solaris2.[0-5].*) ;;
10041      *)
10042	# The compiler driver will combine and reorder linker options,
10043	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10044	# but is careful enough not to reorder.
10045	# Supported since Solaris 2.6 (maybe 2.5.1?)
10046	if test "$GCC" = yes; then
10047	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10048	else
10049	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10050	fi
10051	;;
10052      esac
10053      link_all_deplibs=yes
10054      ;;
10055
10056    sunos4*)
10057      if test "x$host_vendor" = xsequent; then
10058	# Use $CC to link under sequent, because it throws in some extra .o
10059	# files that make .init and .fini sections work.
10060	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10061      else
10062	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10063      fi
10064      hardcode_libdir_flag_spec='-L$libdir'
10065      hardcode_direct=yes
10066      hardcode_minus_L=yes
10067      hardcode_shlibpath_var=no
10068      ;;
10069
10070    sysv4)
10071      case $host_vendor in
10072	sni)
10073	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10074	  hardcode_direct=yes # is this really true???
10075	;;
10076	siemens)
10077	  ## LD is ld it makes a PLAMLIB
10078	  ## CC just makes a GrossModule.
10079	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10080	  reload_cmds='$CC -r -o $output$reload_objs'
10081	  hardcode_direct=no
10082        ;;
10083	motorola)
10084	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10085	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10086	;;
10087      esac
10088      runpath_var='LD_RUN_PATH'
10089      hardcode_shlibpath_var=no
10090      ;;
10091
10092    sysv4.3*)
10093      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10094      hardcode_shlibpath_var=no
10095      export_dynamic_flag_spec='-Bexport'
10096      ;;
10097
10098    sysv4*MP*)
10099      if test -d /usr/nec; then
10100	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10101	hardcode_shlibpath_var=no
10102	runpath_var=LD_RUN_PATH
10103	hardcode_runpath_var=yes
10104	ld_shlibs=yes
10105      fi
10106      ;;
10107
10108    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10109      no_undefined_flag='${wl}-z,text'
10110      archive_cmds_need_lc=no
10111      hardcode_shlibpath_var=no
10112      runpath_var='LD_RUN_PATH'
10113
10114      if test "$GCC" = yes; then
10115	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10116	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10117      else
10118	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10119	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10120      fi
10121      ;;
10122
10123    sysv5* | sco3.2v5* | sco5v6*)
10124      # Note: We can NOT use -z defs as we might desire, because we do not
10125      # link with -lc, and that would cause any symbols used from libc to
10126      # always be unresolved, which means just about no library would
10127      # ever link correctly.  If we're not using GNU ld we use -z text
10128      # though, which does catch some bad symbols but isn't as heavy-handed
10129      # as -z defs.
10130      no_undefined_flag='${wl}-z,text'
10131      allow_undefined_flag='${wl}-z,nodefs'
10132      archive_cmds_need_lc=no
10133      hardcode_shlibpath_var=no
10134      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10135      hardcode_libdir_separator=':'
10136      link_all_deplibs=yes
10137      export_dynamic_flag_spec='${wl}-Bexport'
10138      runpath_var='LD_RUN_PATH'
10139
10140      if test "$GCC" = yes; then
10141	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10142	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10143      else
10144	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10145	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10146      fi
10147      ;;
10148
10149    uts4*)
10150      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10151      hardcode_libdir_flag_spec='-L$libdir'
10152      hardcode_shlibpath_var=no
10153      ;;
10154
10155    *)
10156      ld_shlibs=no
10157      ;;
10158    esac
10159
10160    if test x$host_vendor = xsni; then
10161      case $host in
10162      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10163	export_dynamic_flag_spec='${wl}-Blargedynsym'
10164	;;
10165      esac
10166    fi
10167  fi
10168
10169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10170$as_echo "$ld_shlibs" >&6; }
10171test "$ld_shlibs" = no && can_build_shared=no
10172
10173with_gnu_ld=$with_gnu_ld
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189#
10190# Do we need to explicitly link libc?
10191#
10192case "x$archive_cmds_need_lc" in
10193x|xyes)
10194  # Assume -lc should be added
10195  archive_cmds_need_lc=yes
10196
10197  if test "$enable_shared" = yes && test "$GCC" = yes; then
10198    case $archive_cmds in
10199    *'~'*)
10200      # FIXME: we may have to deal with multi-command sequences.
10201      ;;
10202    '$CC '*)
10203      # Test whether the compiler implicitly links with -lc since on some
10204      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10205      # to ld, don't add -lc before -lgcc.
10206      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10207$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10208      $RM conftest*
10209      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10210
10211      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10212  (eval $ac_compile) 2>&5
10213  ac_status=$?
10214  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10215  test $ac_status = 0; } 2>conftest.err; then
10216        soname=conftest
10217        lib=conftest
10218        libobjs=conftest.$ac_objext
10219        deplibs=
10220        wl=$lt_prog_compiler_wl
10221	pic_flag=$lt_prog_compiler_pic
10222        compiler_flags=-v
10223        linker_flags=-v
10224        verstring=
10225        output_objdir=.
10226        libname=conftest
10227        lt_save_allow_undefined_flag=$allow_undefined_flag
10228        allow_undefined_flag=
10229        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10230  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10231  ac_status=$?
10232  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10233  test $ac_status = 0; }
10234        then
10235	  archive_cmds_need_lc=no
10236        else
10237	  archive_cmds_need_lc=yes
10238        fi
10239        allow_undefined_flag=$lt_save_allow_undefined_flag
10240      else
10241        cat conftest.err 1>&5
10242      fi
10243      $RM conftest*
10244      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10245$as_echo "$archive_cmds_need_lc" >&6; }
10246      ;;
10247    esac
10248  fi
10249  ;;
10250esac
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
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
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10409$as_echo_n "checking dynamic linker characteristics... " >&6; }
10410
10411if test "$GCC" = yes; then
10412  case $host_os in
10413    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10414    *) lt_awk_arg="/^libraries:/" ;;
10415  esac
10416  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10417  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10418    # if the path contains ";" then we assume it to be the separator
10419    # otherwise default to the standard path separator (i.e. ":") - it is
10420    # assumed that no part of a normal pathname contains ";" but that should
10421    # okay in the real world where ";" in dirpaths is itself problematic.
10422    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10423  else
10424    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10425  fi
10426  # Ok, now we have the path, separated by spaces, we can step through it
10427  # and add multilib dir if necessary.
10428  lt_tmp_lt_search_path_spec=
10429  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10430  for lt_sys_path in $lt_search_path_spec; do
10431    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10432      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10433    else
10434      test -d "$lt_sys_path" && \
10435	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10436    fi
10437  done
10438  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10439BEGIN {RS=" "; FS="/|\n";} {
10440  lt_foo="";
10441  lt_count=0;
10442  for (lt_i = NF; lt_i > 0; lt_i--) {
10443    if ($lt_i != "" && $lt_i != ".") {
10444      if ($lt_i == "..") {
10445        lt_count++;
10446      } else {
10447        if (lt_count == 0) {
10448          lt_foo="/" $lt_i lt_foo;
10449        } else {
10450          lt_count--;
10451        }
10452      }
10453    }
10454  }
10455  if (lt_foo != "") { lt_freq[lt_foo]++; }
10456  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10457}'`
10458  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10459else
10460  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10461fi
10462library_names_spec=
10463libname_spec='lib$name'
10464soname_spec=
10465shrext_cmds=".so"
10466postinstall_cmds=
10467postuninstall_cmds=
10468finish_cmds=
10469finish_eval=
10470shlibpath_var=
10471shlibpath_overrides_runpath=unknown
10472version_type=none
10473dynamic_linker="$host_os ld.so"
10474sys_lib_dlsearch_path_spec="/lib /usr/lib"
10475need_lib_prefix=unknown
10476hardcode_into_libs=no
10477
10478# when you set need_version to no, make sure it does not cause -set_version
10479# flags to be left without arguments
10480need_version=unknown
10481
10482case $host_os in
10483aix3*)
10484  version_type=linux
10485  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10486  shlibpath_var=LIBPATH
10487
10488  # AIX 3 has no versioning support, so we append a major version to the name.
10489  soname_spec='${libname}${release}${shared_ext}$major'
10490  ;;
10491
10492aix[4-9]*)
10493  version_type=linux
10494  need_lib_prefix=no
10495  need_version=no
10496  hardcode_into_libs=yes
10497  if test "$host_cpu" = ia64; then
10498    # AIX 5 supports IA64
10499    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10500    shlibpath_var=LD_LIBRARY_PATH
10501  else
10502    # With GCC up to 2.95.x, collect2 would create an import file
10503    # for dependence libraries.  The import file would start with
10504    # the line `#! .'.  This would cause the generated library to
10505    # depend on `.', always an invalid library.  This was fixed in
10506    # development snapshots of GCC prior to 3.0.
10507    case $host_os in
10508      aix4 | aix4.[01] | aix4.[01].*)
10509      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10510	   echo ' yes '
10511	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10512	:
10513      else
10514	can_build_shared=no
10515      fi
10516      ;;
10517    esac
10518    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10519    # soname into executable. Probably we can add versioning support to
10520    # collect2, so additional links can be useful in future.
10521    if test "$aix_use_runtimelinking" = yes; then
10522      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10523      # instead of lib<name>.a to let people know that these are not
10524      # typical AIX shared libraries.
10525      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10526    else
10527      # We preserve .a as extension for shared libraries through AIX4.2
10528      # and later when we are not doing run time linking.
10529      library_names_spec='${libname}${release}.a $libname.a'
10530      soname_spec='${libname}${release}${shared_ext}$major'
10531    fi
10532    shlibpath_var=LIBPATH
10533  fi
10534  ;;
10535
10536amigaos*)
10537  case $host_cpu in
10538  powerpc)
10539    # Since July 2007 AmigaOS4 officially supports .so libraries.
10540    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10541    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10542    ;;
10543  m68k)
10544    library_names_spec='$libname.ixlibrary $libname.a'
10545    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10546    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
10547    ;;
10548  esac
10549  ;;
10550
10551beos*)
10552  library_names_spec='${libname}${shared_ext}'
10553  dynamic_linker="$host_os ld.so"
10554  shlibpath_var=LIBRARY_PATH
10555  ;;
10556
10557bsdi[45]*)
10558  version_type=linux
10559  need_version=no
10560  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10561  soname_spec='${libname}${release}${shared_ext}$major'
10562  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10563  shlibpath_var=LD_LIBRARY_PATH
10564  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10565  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10566  # the default ld.so.conf also contains /usr/contrib/lib and
10567  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10568  # libtool to hard-code these into programs
10569  ;;
10570
10571cygwin* | mingw* | pw32* | cegcc*)
10572  version_type=windows
10573  shrext_cmds=".dll"
10574  need_version=no
10575  need_lib_prefix=no
10576
10577  case $GCC,$host_os in
10578  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10579    library_names_spec='$libname.dll.a'
10580    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10581    postinstall_cmds='base_file=`basename \${file}`~
10582      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10583      dldir=$destdir/`dirname \$dlpath`~
10584      test -d \$dldir || mkdir -p \$dldir~
10585      $install_prog $dir/$dlname \$dldir/$dlname~
10586      chmod a+x \$dldir/$dlname~
10587      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10588        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10589      fi'
10590    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10591      dlpath=$dir/\$dldll~
10592       $RM \$dlpath'
10593    shlibpath_overrides_runpath=yes
10594
10595    case $host_os in
10596    cygwin*)
10597      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10598      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10599      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10600      ;;
10601    mingw* | cegcc*)
10602      # MinGW DLLs use traditional 'lib' prefix
10603      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10604      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10605      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10606        # It is most probably a Windows format PATH printed by
10607        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10608        # path with ; separators, and with drive letters. We can handle the
10609        # drive letters (cygwin fileutils understands them), so leave them,
10610        # especially as we might pass files found there to a mingw objdump,
10611        # which wouldn't understand a cygwinified path. Ahh.
10612        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10613      else
10614        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10615      fi
10616      ;;
10617    pw32*)
10618      # pw32 DLLs use 'pw' prefix rather than 'lib'
10619      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10620      ;;
10621    esac
10622    ;;
10623
10624  *)
10625    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10626    ;;
10627  esac
10628  dynamic_linker='Win32 ld.exe'
10629  # FIXME: first we should search . and the directory the executable is in
10630  shlibpath_var=PATH
10631  ;;
10632
10633darwin* | rhapsody*)
10634  dynamic_linker="$host_os dyld"
10635  version_type=darwin
10636  need_lib_prefix=no
10637  need_version=no
10638  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10639  soname_spec='${libname}${release}${major}$shared_ext'
10640  shlibpath_overrides_runpath=yes
10641  shlibpath_var=DYLD_LIBRARY_PATH
10642  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10643
10644  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10645  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10646  ;;
10647
10648dgux*)
10649  version_type=linux
10650  need_lib_prefix=no
10651  need_version=no
10652  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10653  soname_spec='${libname}${release}${shared_ext}$major'
10654  shlibpath_var=LD_LIBRARY_PATH
10655  ;;
10656
10657freebsd1*)
10658  dynamic_linker=no
10659  ;;
10660
10661freebsd* | dragonfly*)
10662  # DragonFly does not have aout.  When/if they implement a new
10663  # versioning mechanism, adjust this.
10664  if test -x /usr/bin/objformat; then
10665    objformat=`/usr/bin/objformat`
10666  else
10667    case $host_os in
10668    freebsd[123]*) objformat=aout ;;
10669    *) objformat=elf ;;
10670    esac
10671  fi
10672  version_type=freebsd-$objformat
10673  case $version_type in
10674    freebsd-elf*)
10675      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10676      need_version=no
10677      need_lib_prefix=no
10678      ;;
10679    freebsd-*)
10680      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10681      need_version=yes
10682      ;;
10683  esac
10684  shlibpath_var=LD_LIBRARY_PATH
10685  case $host_os in
10686  freebsd2*)
10687    shlibpath_overrides_runpath=yes
10688    ;;
10689  freebsd3.[01]* | freebsdelf3.[01]*)
10690    shlibpath_overrides_runpath=yes
10691    hardcode_into_libs=yes
10692    ;;
10693  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10694  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10695    shlibpath_overrides_runpath=no
10696    hardcode_into_libs=yes
10697    ;;
10698  *) # from 4.6 on, and DragonFly
10699    shlibpath_overrides_runpath=yes
10700    hardcode_into_libs=yes
10701    ;;
10702  esac
10703  ;;
10704
10705gnu*)
10706  version_type=linux
10707  need_lib_prefix=no
10708  need_version=no
10709  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10710  soname_spec='${libname}${release}${shared_ext}$major'
10711  shlibpath_var=LD_LIBRARY_PATH
10712  hardcode_into_libs=yes
10713  ;;
10714
10715hpux9* | hpux10* | hpux11*)
10716  # Give a soname corresponding to the major version so that dld.sl refuses to
10717  # link against other versions.
10718  version_type=sunos
10719  need_lib_prefix=no
10720  need_version=no
10721  case $host_cpu in
10722  ia64*)
10723    shrext_cmds='.so'
10724    hardcode_into_libs=yes
10725    dynamic_linker="$host_os dld.so"
10726    shlibpath_var=LD_LIBRARY_PATH
10727    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10728    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10729    soname_spec='${libname}${release}${shared_ext}$major'
10730    if test "X$HPUX_IA64_MODE" = X32; then
10731      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10732    else
10733      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10734    fi
10735    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10736    ;;
10737  hppa*64*)
10738    shrext_cmds='.sl'
10739    hardcode_into_libs=yes
10740    dynamic_linker="$host_os dld.sl"
10741    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10742    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10743    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10744    soname_spec='${libname}${release}${shared_ext}$major'
10745    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10746    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10747    ;;
10748  *)
10749    shrext_cmds='.sl'
10750    dynamic_linker="$host_os dld.sl"
10751    shlibpath_var=SHLIB_PATH
10752    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10753    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10754    soname_spec='${libname}${release}${shared_ext}$major'
10755    ;;
10756  esac
10757  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10758  postinstall_cmds='chmod 555 $lib'
10759  ;;
10760
10761interix[3-9]*)
10762  version_type=linux
10763  need_lib_prefix=no
10764  need_version=no
10765  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10766  soname_spec='${libname}${release}${shared_ext}$major'
10767  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10768  shlibpath_var=LD_LIBRARY_PATH
10769  shlibpath_overrides_runpath=no
10770  hardcode_into_libs=yes
10771  ;;
10772
10773irix5* | irix6* | nonstopux*)
10774  case $host_os in
10775    nonstopux*) version_type=nonstopux ;;
10776    *)
10777	if test "$lt_cv_prog_gnu_ld" = yes; then
10778		version_type=linux
10779	else
10780		version_type=irix
10781	fi ;;
10782  esac
10783  need_lib_prefix=no
10784  need_version=no
10785  soname_spec='${libname}${release}${shared_ext}$major'
10786  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10787  case $host_os in
10788  irix5* | nonstopux*)
10789    libsuff= shlibsuff=
10790    ;;
10791  *)
10792    case $LD in # libtool.m4 will add one of these switches to LD
10793    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10794      libsuff= shlibsuff= libmagic=32-bit;;
10795    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10796      libsuff=32 shlibsuff=N32 libmagic=N32;;
10797    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10798      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10799    *) libsuff= shlibsuff= libmagic=never-match;;
10800    esac
10801    ;;
10802  esac
10803  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10804  shlibpath_overrides_runpath=no
10805  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10806  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10807  hardcode_into_libs=yes
10808  ;;
10809
10810# No shared lib support for Linux oldld, aout, or coff.
10811linux*oldld* | linux*aout* | linux*coff*)
10812  dynamic_linker=no
10813  ;;
10814
10815# This must be Linux ELF.
10816linux* | k*bsd*-gnu)
10817  version_type=linux
10818  need_lib_prefix=no
10819  need_version=no
10820  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10821  soname_spec='${libname}${release}${shared_ext}$major'
10822  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10823  shlibpath_var=LD_LIBRARY_PATH
10824  shlibpath_overrides_runpath=no
10825  # Some binutils ld are patched to set DT_RUNPATH
10826  save_LDFLAGS=$LDFLAGS
10827  save_libdir=$libdir
10828  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10829       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10830  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10831/* end confdefs.h.  */
10832
10833int
10834main ()
10835{
10836
10837  ;
10838  return 0;
10839}
10840_ACEOF
10841if ac_fn_c_try_link "$LINENO"; then :
10842  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10843  shlibpath_overrides_runpath=yes
10844fi
10845fi
10846rm -f core conftest.err conftest.$ac_objext \
10847    conftest$ac_exeext conftest.$ac_ext
10848  LDFLAGS=$save_LDFLAGS
10849  libdir=$save_libdir
10850
10851  # This implies no fast_install, which is unacceptable.
10852  # Some rework will be needed to allow for fast_install
10853  # before this can be enabled.
10854  hardcode_into_libs=yes
10855
10856  # Append ld.so.conf contents to the search path
10857  if test -f /etc/ld.so.conf; then
10858    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;/^$/d' | tr '\n' ' '`
10859    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10860  fi
10861
10862  # We used to test for /lib/ld.so.1 and disable shared libraries on
10863  # powerpc, because MkLinux only supported shared libraries with the
10864  # GNU dynamic linker.  Since this was broken with cross compilers,
10865  # most powerpc-linux boxes support dynamic linking these days and
10866  # people can always --disable-shared, the test was removed, and we
10867  # assume the GNU/Linux dynamic linker is in use.
10868  dynamic_linker='GNU/Linux ld.so'
10869  ;;
10870
10871netbsdelf*-gnu)
10872  version_type=linux
10873  need_lib_prefix=no
10874  need_version=no
10875  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10876  soname_spec='${libname}${release}${shared_ext}$major'
10877  shlibpath_var=LD_LIBRARY_PATH
10878  shlibpath_overrides_runpath=no
10879  hardcode_into_libs=yes
10880  dynamic_linker='NetBSD ld.elf_so'
10881  ;;
10882
10883netbsd*)
10884  version_type=sunos
10885  need_lib_prefix=no
10886  need_version=no
10887  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10888    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10889    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10890    dynamic_linker='NetBSD (a.out) ld.so'
10891  else
10892    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10893    soname_spec='${libname}${release}${shared_ext}$major'
10894    dynamic_linker='NetBSD ld.elf_so'
10895  fi
10896  shlibpath_var=LD_LIBRARY_PATH
10897  shlibpath_overrides_runpath=yes
10898  hardcode_into_libs=yes
10899  ;;
10900
10901newsos6)
10902  version_type=linux
10903  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10904  shlibpath_var=LD_LIBRARY_PATH
10905  shlibpath_overrides_runpath=yes
10906  ;;
10907
10908*nto* | *qnx*)
10909  version_type=qnx
10910  need_lib_prefix=no
10911  need_version=no
10912  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10913  soname_spec='${libname}${release}${shared_ext}$major'
10914  shlibpath_var=LD_LIBRARY_PATH
10915  shlibpath_overrides_runpath=no
10916  hardcode_into_libs=yes
10917  dynamic_linker='ldqnx.so'
10918  ;;
10919
10920openbsd*)
10921  version_type=sunos
10922  sys_lib_dlsearch_path_spec="/usr/lib"
10923  need_lib_prefix=no
10924  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10925  case $host_os in
10926    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10927    *)				need_version=no  ;;
10928  esac
10929  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10930  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10931  shlibpath_var=LD_LIBRARY_PATH
10932  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10933    case $host_os in
10934      openbsd2.[89] | openbsd2.[89].*)
10935	shlibpath_overrides_runpath=no
10936	;;
10937      *)
10938	shlibpath_overrides_runpath=yes
10939	;;
10940      esac
10941  else
10942    shlibpath_overrides_runpath=yes
10943  fi
10944  ;;
10945
10946os2*)
10947  libname_spec='$name'
10948  shrext_cmds=".dll"
10949  need_lib_prefix=no
10950  library_names_spec='$libname${shared_ext} $libname.a'
10951  dynamic_linker='OS/2 ld.exe'
10952  shlibpath_var=LIBPATH
10953  ;;
10954
10955osf3* | osf4* | osf5*)
10956  version_type=osf
10957  need_lib_prefix=no
10958  need_version=no
10959  soname_spec='${libname}${release}${shared_ext}$major'
10960  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10961  shlibpath_var=LD_LIBRARY_PATH
10962  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10963  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10964  ;;
10965
10966rdos*)
10967  dynamic_linker=no
10968  ;;
10969
10970solaris*)
10971  version_type=linux
10972  need_lib_prefix=no
10973  need_version=no
10974  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10975  soname_spec='${libname}${release}${shared_ext}$major'
10976  shlibpath_var=LD_LIBRARY_PATH
10977  shlibpath_overrides_runpath=yes
10978  hardcode_into_libs=yes
10979  # ldd complains unless libraries are executable
10980  postinstall_cmds='chmod +x $lib'
10981  ;;
10982
10983sunos4*)
10984  version_type=sunos
10985  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10986  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10987  shlibpath_var=LD_LIBRARY_PATH
10988  shlibpath_overrides_runpath=yes
10989  if test "$with_gnu_ld" = yes; then
10990    need_lib_prefix=no
10991  fi
10992  need_version=yes
10993  ;;
10994
10995sysv4 | sysv4.3*)
10996  version_type=linux
10997  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10998  soname_spec='${libname}${release}${shared_ext}$major'
10999  shlibpath_var=LD_LIBRARY_PATH
11000  case $host_vendor in
11001    sni)
11002      shlibpath_overrides_runpath=no
11003      need_lib_prefix=no
11004      runpath_var=LD_RUN_PATH
11005      ;;
11006    siemens)
11007      need_lib_prefix=no
11008      ;;
11009    motorola)
11010      need_lib_prefix=no
11011      need_version=no
11012      shlibpath_overrides_runpath=no
11013      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11014      ;;
11015  esac
11016  ;;
11017
11018sysv4*MP*)
11019  if test -d /usr/nec ;then
11020    version_type=linux
11021    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11022    soname_spec='$libname${shared_ext}.$major'
11023    shlibpath_var=LD_LIBRARY_PATH
11024  fi
11025  ;;
11026
11027sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11028  version_type=freebsd-elf
11029  need_lib_prefix=no
11030  need_version=no
11031  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11032  soname_spec='${libname}${release}${shared_ext}$major'
11033  shlibpath_var=LD_LIBRARY_PATH
11034  shlibpath_overrides_runpath=yes
11035  hardcode_into_libs=yes
11036  if test "$with_gnu_ld" = yes; then
11037    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11038  else
11039    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11040    case $host_os in
11041      sco3.2v5*)
11042        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11043	;;
11044    esac
11045  fi
11046  sys_lib_dlsearch_path_spec='/usr/lib'
11047  ;;
11048
11049tpf*)
11050  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11051  version_type=linux
11052  need_lib_prefix=no
11053  need_version=no
11054  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11055  shlibpath_var=LD_LIBRARY_PATH
11056  shlibpath_overrides_runpath=no
11057  hardcode_into_libs=yes
11058  ;;
11059
11060uts4*)
11061  version_type=linux
11062  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11063  soname_spec='${libname}${release}${shared_ext}$major'
11064  shlibpath_var=LD_LIBRARY_PATH
11065  ;;
11066
11067*)
11068  dynamic_linker=no
11069  ;;
11070esac
11071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11072$as_echo "$dynamic_linker" >&6; }
11073test "$dynamic_linker" = no && can_build_shared=no
11074
11075variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11076if test "$GCC" = yes; then
11077  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11078fi
11079
11080if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11081  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11082fi
11083if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11084  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11085fi
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11174$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11175hardcode_action=
11176if test -n "$hardcode_libdir_flag_spec" ||
11177   test -n "$runpath_var" ||
11178   test "X$hardcode_automatic" = "Xyes" ; then
11179
11180  # We can hardcode non-existent directories.
11181  if test "$hardcode_direct" != no &&
11182     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11183     # have to relink, otherwise we might link with an installed library
11184     # when we should be linking with a yet-to-be-installed one
11185     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11186     test "$hardcode_minus_L" != no; then
11187    # Linking always hardcodes the temporary library directory.
11188    hardcode_action=relink
11189  else
11190    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11191    hardcode_action=immediate
11192  fi
11193else
11194  # We cannot hardcode anything, or else we can only hardcode existing
11195  # directories.
11196  hardcode_action=unsupported
11197fi
11198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11199$as_echo "$hardcode_action" >&6; }
11200
11201if test "$hardcode_action" = relink ||
11202   test "$inherit_rpath" = yes; then
11203  # Fast installation is not supported
11204  enable_fast_install=no
11205elif test "$shlibpath_overrides_runpath" = yes ||
11206     test "$enable_shared" = no; then
11207  # Fast installation is not necessary
11208  enable_fast_install=needless
11209fi
11210
11211
11212
11213
11214
11215
11216  if test "x$enable_dlopen" != xyes; then
11217  enable_dlopen=unknown
11218  enable_dlopen_self=unknown
11219  enable_dlopen_self_static=unknown
11220else
11221  lt_cv_dlopen=no
11222  lt_cv_dlopen_libs=
11223
11224  case $host_os in
11225  beos*)
11226    lt_cv_dlopen="load_add_on"
11227    lt_cv_dlopen_libs=
11228    lt_cv_dlopen_self=yes
11229    ;;
11230
11231  mingw* | pw32* | cegcc*)
11232    lt_cv_dlopen="LoadLibrary"
11233    lt_cv_dlopen_libs=
11234    ;;
11235
11236  cygwin*)
11237    lt_cv_dlopen="dlopen"
11238    lt_cv_dlopen_libs=
11239    ;;
11240
11241  darwin*)
11242  # if libdl is installed we need to link against it
11243    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11244$as_echo_n "checking for dlopen in -ldl... " >&6; }
11245if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11246  $as_echo_n "(cached) " >&6
11247else
11248  ac_check_lib_save_LIBS=$LIBS
11249LIBS="-ldl  $LIBS"
11250cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11251/* end confdefs.h.  */
11252
11253/* Override any GCC internal prototype to avoid an error.
11254   Use char because int might match the return type of a GCC
11255   builtin and then its argument prototype would still apply.  */
11256#ifdef __cplusplus
11257extern "C"
11258#endif
11259char dlopen ();
11260int
11261main ()
11262{
11263return dlopen ();
11264  ;
11265  return 0;
11266}
11267_ACEOF
11268if ac_fn_c_try_link "$LINENO"; then :
11269  ac_cv_lib_dl_dlopen=yes
11270else
11271  ac_cv_lib_dl_dlopen=no
11272fi
11273rm -f core conftest.err conftest.$ac_objext \
11274    conftest$ac_exeext conftest.$ac_ext
11275LIBS=$ac_check_lib_save_LIBS
11276fi
11277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11278$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11279if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11280  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11281else
11282
11283    lt_cv_dlopen="dyld"
11284    lt_cv_dlopen_libs=
11285    lt_cv_dlopen_self=yes
11286
11287fi
11288
11289    ;;
11290
11291  *)
11292    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11293if test "x$ac_cv_func_shl_load" = x""yes; then :
11294  lt_cv_dlopen="shl_load"
11295else
11296  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11297$as_echo_n "checking for shl_load in -ldld... " >&6; }
11298if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11299  $as_echo_n "(cached) " >&6
11300else
11301  ac_check_lib_save_LIBS=$LIBS
11302LIBS="-ldld  $LIBS"
11303cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11304/* end confdefs.h.  */
11305
11306/* Override any GCC internal prototype to avoid an error.
11307   Use char because int might match the return type of a GCC
11308   builtin and then its argument prototype would still apply.  */
11309#ifdef __cplusplus
11310extern "C"
11311#endif
11312char shl_load ();
11313int
11314main ()
11315{
11316return shl_load ();
11317  ;
11318  return 0;
11319}
11320_ACEOF
11321if ac_fn_c_try_link "$LINENO"; then :
11322  ac_cv_lib_dld_shl_load=yes
11323else
11324  ac_cv_lib_dld_shl_load=no
11325fi
11326rm -f core conftest.err conftest.$ac_objext \
11327    conftest$ac_exeext conftest.$ac_ext
11328LIBS=$ac_check_lib_save_LIBS
11329fi
11330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11331$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11332if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11333  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11334else
11335  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11336if test "x$ac_cv_func_dlopen" = x""yes; then :
11337  lt_cv_dlopen="dlopen"
11338else
11339  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11340$as_echo_n "checking for dlopen in -ldl... " >&6; }
11341if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11342  $as_echo_n "(cached) " >&6
11343else
11344  ac_check_lib_save_LIBS=$LIBS
11345LIBS="-ldl  $LIBS"
11346cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11347/* end confdefs.h.  */
11348
11349/* Override any GCC internal prototype to avoid an error.
11350   Use char because int might match the return type of a GCC
11351   builtin and then its argument prototype would still apply.  */
11352#ifdef __cplusplus
11353extern "C"
11354#endif
11355char dlopen ();
11356int
11357main ()
11358{
11359return dlopen ();
11360  ;
11361  return 0;
11362}
11363_ACEOF
11364if ac_fn_c_try_link "$LINENO"; then :
11365  ac_cv_lib_dl_dlopen=yes
11366else
11367  ac_cv_lib_dl_dlopen=no
11368fi
11369rm -f core conftest.err conftest.$ac_objext \
11370    conftest$ac_exeext conftest.$ac_ext
11371LIBS=$ac_check_lib_save_LIBS
11372fi
11373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11374$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11375if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11376  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11377else
11378  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11379$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11380if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11381  $as_echo_n "(cached) " >&6
11382else
11383  ac_check_lib_save_LIBS=$LIBS
11384LIBS="-lsvld  $LIBS"
11385cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11386/* end confdefs.h.  */
11387
11388/* Override any GCC internal prototype to avoid an error.
11389   Use char because int might match the return type of a GCC
11390   builtin and then its argument prototype would still apply.  */
11391#ifdef __cplusplus
11392extern "C"
11393#endif
11394char dlopen ();
11395int
11396main ()
11397{
11398return dlopen ();
11399  ;
11400  return 0;
11401}
11402_ACEOF
11403if ac_fn_c_try_link "$LINENO"; then :
11404  ac_cv_lib_svld_dlopen=yes
11405else
11406  ac_cv_lib_svld_dlopen=no
11407fi
11408rm -f core conftest.err conftest.$ac_objext \
11409    conftest$ac_exeext conftest.$ac_ext
11410LIBS=$ac_check_lib_save_LIBS
11411fi
11412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11413$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11414if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11415  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11416else
11417  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11418$as_echo_n "checking for dld_link in -ldld... " >&6; }
11419if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11420  $as_echo_n "(cached) " >&6
11421else
11422  ac_check_lib_save_LIBS=$LIBS
11423LIBS="-ldld  $LIBS"
11424cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11425/* end confdefs.h.  */
11426
11427/* Override any GCC internal prototype to avoid an error.
11428   Use char because int might match the return type of a GCC
11429   builtin and then its argument prototype would still apply.  */
11430#ifdef __cplusplus
11431extern "C"
11432#endif
11433char dld_link ();
11434int
11435main ()
11436{
11437return dld_link ();
11438  ;
11439  return 0;
11440}
11441_ACEOF
11442if ac_fn_c_try_link "$LINENO"; then :
11443  ac_cv_lib_dld_dld_link=yes
11444else
11445  ac_cv_lib_dld_dld_link=no
11446fi
11447rm -f core conftest.err conftest.$ac_objext \
11448    conftest$ac_exeext conftest.$ac_ext
11449LIBS=$ac_check_lib_save_LIBS
11450fi
11451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11452$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11453if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11454  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11455fi
11456
11457
11458fi
11459
11460
11461fi
11462
11463
11464fi
11465
11466
11467fi
11468
11469
11470fi
11471
11472    ;;
11473  esac
11474
11475  if test "x$lt_cv_dlopen" != xno; then
11476    enable_dlopen=yes
11477  else
11478    enable_dlopen=no
11479  fi
11480
11481  case $lt_cv_dlopen in
11482  dlopen)
11483    save_CPPFLAGS="$CPPFLAGS"
11484    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11485
11486    save_LDFLAGS="$LDFLAGS"
11487    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11488
11489    save_LIBS="$LIBS"
11490    LIBS="$lt_cv_dlopen_libs $LIBS"
11491
11492    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11493$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11494if test "${lt_cv_dlopen_self+set}" = set; then :
11495  $as_echo_n "(cached) " >&6
11496else
11497  	  if test "$cross_compiling" = yes; then :
11498  lt_cv_dlopen_self=cross
11499else
11500  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11501  lt_status=$lt_dlunknown
11502  cat > conftest.$ac_ext <<_LT_EOF
11503#line 11503 "configure"
11504#include "confdefs.h"
11505
11506#if HAVE_DLFCN_H
11507#include <dlfcn.h>
11508#endif
11509
11510#include <stdio.h>
11511
11512#ifdef RTLD_GLOBAL
11513#  define LT_DLGLOBAL		RTLD_GLOBAL
11514#else
11515#  ifdef DL_GLOBAL
11516#    define LT_DLGLOBAL		DL_GLOBAL
11517#  else
11518#    define LT_DLGLOBAL		0
11519#  endif
11520#endif
11521
11522/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11523   find out it does not work in some platform. */
11524#ifndef LT_DLLAZY_OR_NOW
11525#  ifdef RTLD_LAZY
11526#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11527#  else
11528#    ifdef DL_LAZY
11529#      define LT_DLLAZY_OR_NOW		DL_LAZY
11530#    else
11531#      ifdef RTLD_NOW
11532#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11533#      else
11534#        ifdef DL_NOW
11535#          define LT_DLLAZY_OR_NOW	DL_NOW
11536#        else
11537#          define LT_DLLAZY_OR_NOW	0
11538#        endif
11539#      endif
11540#    endif
11541#  endif
11542#endif
11543
11544void fnord() { int i=42;}
11545int main ()
11546{
11547  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11548  int status = $lt_dlunknown;
11549
11550  if (self)
11551    {
11552      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11553      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11554      /* dlclose (self); */
11555    }
11556  else
11557    puts (dlerror ());
11558
11559  return status;
11560}
11561_LT_EOF
11562  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11563  (eval $ac_link) 2>&5
11564  ac_status=$?
11565  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11566  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11567    (./conftest; exit; ) >&5 2>/dev/null
11568    lt_status=$?
11569    case x$lt_status in
11570      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11571      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11572      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11573    esac
11574  else :
11575    # compilation failed
11576    lt_cv_dlopen_self=no
11577  fi
11578fi
11579rm -fr conftest*
11580
11581
11582fi
11583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11584$as_echo "$lt_cv_dlopen_self" >&6; }
11585
11586    if test "x$lt_cv_dlopen_self" = xyes; then
11587      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11588      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11589$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11590if test "${lt_cv_dlopen_self_static+set}" = set; then :
11591  $as_echo_n "(cached) " >&6
11592else
11593  	  if test "$cross_compiling" = yes; then :
11594  lt_cv_dlopen_self_static=cross
11595else
11596  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11597  lt_status=$lt_dlunknown
11598  cat > conftest.$ac_ext <<_LT_EOF
11599#line 11599 "configure"
11600#include "confdefs.h"
11601
11602#if HAVE_DLFCN_H
11603#include <dlfcn.h>
11604#endif
11605
11606#include <stdio.h>
11607
11608#ifdef RTLD_GLOBAL
11609#  define LT_DLGLOBAL		RTLD_GLOBAL
11610#else
11611#  ifdef DL_GLOBAL
11612#    define LT_DLGLOBAL		DL_GLOBAL
11613#  else
11614#    define LT_DLGLOBAL		0
11615#  endif
11616#endif
11617
11618/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11619   find out it does not work in some platform. */
11620#ifndef LT_DLLAZY_OR_NOW
11621#  ifdef RTLD_LAZY
11622#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11623#  else
11624#    ifdef DL_LAZY
11625#      define LT_DLLAZY_OR_NOW		DL_LAZY
11626#    else
11627#      ifdef RTLD_NOW
11628#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11629#      else
11630#        ifdef DL_NOW
11631#          define LT_DLLAZY_OR_NOW	DL_NOW
11632#        else
11633#          define LT_DLLAZY_OR_NOW	0
11634#        endif
11635#      endif
11636#    endif
11637#  endif
11638#endif
11639
11640void fnord() { int i=42;}
11641int main ()
11642{
11643  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11644  int status = $lt_dlunknown;
11645
11646  if (self)
11647    {
11648      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11649      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11650      /* dlclose (self); */
11651    }
11652  else
11653    puts (dlerror ());
11654
11655  return status;
11656}
11657_LT_EOF
11658  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11659  (eval $ac_link) 2>&5
11660  ac_status=$?
11661  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11662  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11663    (./conftest; exit; ) >&5 2>/dev/null
11664    lt_status=$?
11665    case x$lt_status in
11666      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11667      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11668      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11669    esac
11670  else :
11671    # compilation failed
11672    lt_cv_dlopen_self_static=no
11673  fi
11674fi
11675rm -fr conftest*
11676
11677
11678fi
11679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11680$as_echo "$lt_cv_dlopen_self_static" >&6; }
11681    fi
11682
11683    CPPFLAGS="$save_CPPFLAGS"
11684    LDFLAGS="$save_LDFLAGS"
11685    LIBS="$save_LIBS"
11686    ;;
11687  esac
11688
11689  case $lt_cv_dlopen_self in
11690  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11691  *) enable_dlopen_self=unknown ;;
11692  esac
11693
11694  case $lt_cv_dlopen_self_static in
11695  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11696  *) enable_dlopen_self_static=unknown ;;
11697  esac
11698fi
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716striplib=
11717old_striplib=
11718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11719$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11720if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11721  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11722  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11724$as_echo "yes" >&6; }
11725else
11726# FIXME - insert some real tests, host_os isn't really good enough
11727  case $host_os in
11728  darwin*)
11729    if test -n "$STRIP" ; then
11730      striplib="$STRIP -x"
11731      old_striplib="$STRIP -S"
11732      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11733$as_echo "yes" >&6; }
11734    else
11735      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11736$as_echo "no" >&6; }
11737    fi
11738    ;;
11739  *)
11740    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11741$as_echo "no" >&6; }
11742    ;;
11743  esac
11744fi
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757  # Report which library types will actually be built
11758  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11759$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11761$as_echo "$can_build_shared" >&6; }
11762
11763  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11764$as_echo_n "checking whether to build shared libraries... " >&6; }
11765  test "$can_build_shared" = "no" && enable_shared=no
11766
11767  # On AIX, shared libraries and static libraries use the same namespace, and
11768  # are all built from PIC.
11769  case $host_os in
11770  aix3*)
11771    test "$enable_shared" = yes && enable_static=no
11772    if test -n "$RANLIB"; then
11773      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11774      postinstall_cmds='$RANLIB $lib'
11775    fi
11776    ;;
11777
11778  aix[4-9]*)
11779    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11780      test "$enable_shared" = yes && enable_static=no
11781    fi
11782    ;;
11783  esac
11784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11785$as_echo "$enable_shared" >&6; }
11786
11787  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11788$as_echo_n "checking whether to build static libraries... " >&6; }
11789  # Make sure either enable_shared or enable_static is yes.
11790  test "$enable_shared" = yes || enable_static=yes
11791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11792$as_echo "$enable_static" >&6; }
11793
11794
11795
11796
11797fi
11798ac_ext=c
11799ac_cpp='$CPP $CPPFLAGS'
11800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11802ac_compiler_gnu=$ac_cv_c_compiler_gnu
11803
11804CC="$lt_save_CC"
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818        ac_config_commands="$ac_config_commands libtool"
11819
11820
11821
11822
11823# Only expand once:
11824
11825
11826
11827
11828# dolt, a replacement for libtool
11829# Josh Triplett <josh@freedesktop.org>
11830# Extract the first word of "bash", so it can be a program name with args.
11831set dummy bash; ac_word=$2
11832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11833$as_echo_n "checking for $ac_word... " >&6; }
11834if test "${ac_cv_path_DOLT_BASH+set}" = set; then :
11835  $as_echo_n "(cached) " >&6
11836else
11837  case $DOLT_BASH in
11838  [\\/]* | ?:[\\/]*)
11839  ac_cv_path_DOLT_BASH="$DOLT_BASH" # Let the user override the test with a path.
11840  ;;
11841  *)
11842  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11843for as_dir in $PATH
11844do
11845  IFS=$as_save_IFS
11846  test -z "$as_dir" && as_dir=.
11847    for ac_exec_ext in '' $ac_executable_extensions; do
11848  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11849    ac_cv_path_DOLT_BASH="$as_dir/$ac_word$ac_exec_ext"
11850    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11851    break 2
11852  fi
11853done
11854  done
11855IFS=$as_save_IFS
11856
11857  ;;
11858esac
11859fi
11860DOLT_BASH=$ac_cv_path_DOLT_BASH
11861if test -n "$DOLT_BASH"; then
11862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOLT_BASH" >&5
11863$as_echo "$DOLT_BASH" >&6; }
11864else
11865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11866$as_echo "no" >&6; }
11867fi
11868
11869
11870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if dolt supports this host" >&5
11871$as_echo_n "checking if dolt supports this host... " >&6; }
11872dolt_supported=yes
11873if test x$DOLT_BASH = x; then
11874    dolt_supported=no
11875fi
11876if test x$GCC != xyes; then
11877    dolt_supported=no
11878fi
11879case $host in
11880i?86-*-linux*|x86_64-*-linux*|powerpc-*-linux* \
11881|amd64-*-freebsd*|i?86-*-freebsd*|ia64-*-freebsd*)
11882    pic_options='-fPIC'
11883    ;;
11884i?86-apple-darwin*)
11885    pic_options='-fno-common'
11886    ;;
11887*)
11888    dolt_supported=no
11889    ;;
11890esac
11891if test x$dolt_supported = xno ; then
11892    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, falling back to libtool" >&5
11893$as_echo "no, falling back to libtool" >&6; }
11894    LTCOMPILE='$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(COMPILE)'
11895    LTCXXCOMPILE='$(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXXCOMPILE)'
11896else
11897    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, replacing libtool" >&5
11898$as_echo "yes, replacing libtool" >&6; }
11899
11900    cat <<__DOLTCOMPILE__EOF__ >doltcompile
11901#!$DOLT_BASH
11902__DOLTCOMPILE__EOF__
11903    cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
11904args=("$@")
11905for ((arg=0; arg<${#args[@]}; arg++)) ; do
11906    if test x"${args[$arg]}" = x-o ; then
11907        objarg=$((arg+1))
11908        break
11909    fi
11910done
11911if test x$objarg = x ; then
11912    echo 'Error: no -o on compiler command line' 1>&2
11913    exit 1
11914fi
11915lo="${args[$objarg]}"
11916obj="${lo%.lo}"
11917if test x"$lo" = x"$obj" ; then
11918    echo "Error: libtool object file name \"$lo\" does not end in .lo" 1>&2
11919    exit 1
11920fi
11921objbase="${obj##*/}"
11922__DOLTCOMPILE__EOF__
11923
11924    if test x$enable_shared = xyes; then
11925        cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
11926libobjdir="${obj%$objbase}.libs"
11927if test ! -d "$libobjdir" ; then
11928    mkdir_out="$(mkdir "$libobjdir" 2>&1)"
11929    mkdir_ret=$?
11930    if test "$mkdir_ret" -ne 0 && test ! -d "$libobjdir" ; then
11931	echo "$mkdir_out" 1>&2
11932        exit $mkdir_ret
11933    fi
11934fi
11935pic_object="$libobjdir/$objbase.o"
11936args[$objarg]="$pic_object"
11937__DOLTCOMPILE__EOF__
11938    cat <<__DOLTCOMPILE__EOF__ >>doltcompile
11939"\${args[@]}" $pic_options -DPIC || exit \$?
11940__DOLTCOMPILE__EOF__
11941    fi
11942
11943    if test x$enable_static = xyes; then
11944        cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
11945non_pic_object="$obj.o"
11946args[$objarg]="$non_pic_object"
11947__DOLTCOMPILE__EOF__
11948        if test x$enable_shared = xyes; then
11949            cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
11950"${args[@]}" >/dev/null 2>&1 || exit $?
11951__DOLTCOMPILE__EOF__
11952        else
11953            cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
11954"${args[@]}" || exit $?
11955__DOLTCOMPILE__EOF__
11956        fi
11957    fi
11958
11959    cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
11960{
11961echo "# $lo - a libtool object file"
11962echo "# Generated by doltcompile, not libtool"
11963__DOLTCOMPILE__EOF__
11964
11965    if test x$enable_shared = xyes; then
11966        cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
11967echo "pic_object='.libs/${objbase}.o'"
11968__DOLTCOMPILE__EOF__
11969    else
11970        cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
11971echo pic_object=none
11972__DOLTCOMPILE__EOF__
11973    fi
11974
11975    if test x$enable_static = xyes; then
11976        cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
11977echo "non_pic_object='${objbase}.o'"
11978__DOLTCOMPILE__EOF__
11979    else
11980        cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
11981echo non_pic_object=none
11982__DOLTCOMPILE__EOF__
11983    fi
11984
11985    cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
11986} > "$lo"
11987__DOLTCOMPILE__EOF__
11988
11989    chmod +x doltcompile
11990    LTCOMPILE='$(top_builddir)/doltcompile $(COMPILE)'
11991    LTCXXCOMPILE='$(top_builddir)/doltcompile $(CXXCOMPILE)'
11992
11993    cat <<__DOLTLIBTOOL__EOF__ > doltlibtool
11994#!$DOLT_BASH
11995__DOLTLIBTOOL__EOF__
11996    cat <<'__DOLTLIBTOOL__EOF__' >>doltlibtool
11997top_builddir_slash="${0%%doltlibtool}"
11998: ${top_builddir_slash:=./}
11999args=()
12000modeok=false
12001tagok=false
12002for arg in "$@"; do
12003    case "$arg" in
12004        --mode=compile) modeok=true ;;
12005        --tag=CC|--tag=CXX) tagok=true ;;
12006        *) args[${#args[@]}]="$arg" ;;
12007    esac
12008done
12009if $modeok && $tagok ; then
12010    . ${top_builddir_slash}doltcompile "${args[@]}"
12011else
12012    exec ${top_builddir_slash}libtool "$@"
12013fi
12014__DOLTLIBTOOL__EOF__
12015
12016    chmod +x doltlibtool
12017    LIBTOOL='$(top_builddir)/doltlibtool'
12018fi
12019
12020
12021# end dolt
12022
12023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12024$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
12025set x ${MAKE-make}
12026ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12027if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
12028  $as_echo_n "(cached) " >&6
12029else
12030  cat >conftest.make <<\_ACEOF
12031SHELL = /bin/sh
12032all:
12033	@echo '@@@%%%=$(MAKE)=@@@%%%'
12034_ACEOF
12035# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
12036case `${MAKE-make} -f conftest.make 2>/dev/null` in
12037  *@@@%%%=?*=@@@%%%*)
12038    eval ac_cv_prog_make_${ac_make}_set=yes;;
12039  *)
12040    eval ac_cv_prog_make_${ac_make}_set=no;;
12041esac
12042rm -f conftest.make
12043fi
12044if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
12045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12046$as_echo "yes" >&6; }
12047  SET_MAKE=
12048else
12049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12050$as_echo "no" >&6; }
12051  SET_MAKE="MAKE=${MAKE-make}"
12052fi
12053
12054
12055
12056if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12057	if test -n "$ac_tool_prefix"; then
12058  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12059set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12061$as_echo_n "checking for $ac_word... " >&6; }
12062if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12063  $as_echo_n "(cached) " >&6
12064else
12065  case $PKG_CONFIG in
12066  [\\/]* | ?:[\\/]*)
12067  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12068  ;;
12069  *)
12070  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12071for as_dir in $PATH
12072do
12073  IFS=$as_save_IFS
12074  test -z "$as_dir" && as_dir=.
12075    for ac_exec_ext in '' $ac_executable_extensions; do
12076  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12077    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12078    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12079    break 2
12080  fi
12081done
12082  done
12083IFS=$as_save_IFS
12084
12085  ;;
12086esac
12087fi
12088PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12089if test -n "$PKG_CONFIG"; then
12090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12091$as_echo "$PKG_CONFIG" >&6; }
12092else
12093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12094$as_echo "no" >&6; }
12095fi
12096
12097
12098fi
12099if test -z "$ac_cv_path_PKG_CONFIG"; then
12100  ac_pt_PKG_CONFIG=$PKG_CONFIG
12101  # Extract the first word of "pkg-config", so it can be a program name with args.
12102set dummy pkg-config; ac_word=$2
12103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12104$as_echo_n "checking for $ac_word... " >&6; }
12105if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
12106  $as_echo_n "(cached) " >&6
12107else
12108  case $ac_pt_PKG_CONFIG in
12109  [\\/]* | ?:[\\/]*)
12110  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12111  ;;
12112  *)
12113  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12114for as_dir in $PATH
12115do
12116  IFS=$as_save_IFS
12117  test -z "$as_dir" && as_dir=.
12118    for ac_exec_ext in '' $ac_executable_extensions; do
12119  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12120    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12121    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12122    break 2
12123  fi
12124done
12125  done
12126IFS=$as_save_IFS
12127
12128  ;;
12129esac
12130fi
12131ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12132if test -n "$ac_pt_PKG_CONFIG"; then
12133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12134$as_echo "$ac_pt_PKG_CONFIG" >&6; }
12135else
12136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12137$as_echo "no" >&6; }
12138fi
12139
12140  if test "x$ac_pt_PKG_CONFIG" = x; then
12141    PKG_CONFIG=""
12142  else
12143    case $cross_compiling:$ac_tool_warned in
12144yes:)
12145{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12146$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12147ac_tool_warned=yes ;;
12148esac
12149    PKG_CONFIG=$ac_pt_PKG_CONFIG
12150  fi
12151else
12152  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12153fi
12154
12155fi
12156if test -n "$PKG_CONFIG"; then
12157	_pkg_min_version=0.9.0
12158	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12159$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12160	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12161		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12162$as_echo "yes" >&6; }
12163	else
12164		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12165$as_echo "no" >&6; }
12166		PKG_CONFIG=""
12167	fi
12168
12169fi
12170for ac_prog in flex lex
12171do
12172  # Extract the first word of "$ac_prog", so it can be a program name with args.
12173set dummy $ac_prog; ac_word=$2
12174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12175$as_echo_n "checking for $ac_word... " >&6; }
12176if test "${ac_cv_prog_LEX+set}" = set; then :
12177  $as_echo_n "(cached) " >&6
12178else
12179  if test -n "$LEX"; then
12180  ac_cv_prog_LEX="$LEX" # Let the user override the test.
12181else
12182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12183for as_dir in $PATH
12184do
12185  IFS=$as_save_IFS
12186  test -z "$as_dir" && as_dir=.
12187    for ac_exec_ext in '' $ac_executable_extensions; do
12188  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12189    ac_cv_prog_LEX="$ac_prog"
12190    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12191    break 2
12192  fi
12193done
12194  done
12195IFS=$as_save_IFS
12196
12197fi
12198fi
12199LEX=$ac_cv_prog_LEX
12200if test -n "$LEX"; then
12201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12202$as_echo "$LEX" >&6; }
12203else
12204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12205$as_echo "no" >&6; }
12206fi
12207
12208
12209  test -n "$LEX" && break
12210done
12211test -n "$LEX" || LEX=":"
12212
12213if test "x$LEX" != "x:"; then
12214  cat >conftest.l <<_ACEOF
12215%%
12216a { ECHO; }
12217b { REJECT; }
12218c { yymore (); }
12219d { yyless (1); }
12220e { yyless (input () != 0); }
12221f { unput (yytext[0]); }
12222. { BEGIN INITIAL; }
12223%%
12224#ifdef YYTEXT_POINTER
12225extern char *yytext;
12226#endif
12227int
12228main (void)
12229{
12230  return ! yylex () + ! yywrap ();
12231}
12232_ACEOF
12233{ { ac_try="$LEX conftest.l"
12234case "(($ac_try" in
12235  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12236  *) ac_try_echo=$ac_try;;
12237esac
12238eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12239$as_echo "$ac_try_echo"; } >&5
12240  (eval "$LEX conftest.l") 2>&5
12241  ac_status=$?
12242  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12243  test $ac_status = 0; }
12244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12245$as_echo_n "checking lex output file root... " >&6; }
12246if test "${ac_cv_prog_lex_root+set}" = set; then :
12247  $as_echo_n "(cached) " >&6
12248else
12249
12250if test -f lex.yy.c; then
12251  ac_cv_prog_lex_root=lex.yy
12252elif test -f lexyy.c; then
12253  ac_cv_prog_lex_root=lexyy
12254else
12255  as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
12256fi
12257fi
12258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12259$as_echo "$ac_cv_prog_lex_root" >&6; }
12260LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12261
12262if test -z "${LEXLIB+set}"; then
12263  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12264$as_echo_n "checking lex library... " >&6; }
12265if test "${ac_cv_lib_lex+set}" = set; then :
12266  $as_echo_n "(cached) " >&6
12267else
12268
12269    ac_save_LIBS=$LIBS
12270    ac_cv_lib_lex='none needed'
12271    for ac_lib in '' -lfl -ll; do
12272      LIBS="$ac_lib $ac_save_LIBS"
12273      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12274/* end confdefs.h.  */
12275`cat $LEX_OUTPUT_ROOT.c`
12276_ACEOF
12277if ac_fn_c_try_link "$LINENO"; then :
12278  ac_cv_lib_lex=$ac_lib
12279fi
12280rm -f core conftest.err conftest.$ac_objext \
12281    conftest$ac_exeext conftest.$ac_ext
12282      test "$ac_cv_lib_lex" != 'none needed' && break
12283    done
12284    LIBS=$ac_save_LIBS
12285
12286fi
12287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12288$as_echo "$ac_cv_lib_lex" >&6; }
12289  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12290fi
12291
12292
12293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12294$as_echo_n "checking whether yytext is a pointer... " >&6; }
12295if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
12296  $as_echo_n "(cached) " >&6
12297else
12298  # POSIX says lex can declare yytext either as a pointer or an array; the
12299# default is implementation-dependent.  Figure out which it is, since
12300# not all implementations provide the %pointer and %array declarations.
12301ac_cv_prog_lex_yytext_pointer=no
12302ac_save_LIBS=$LIBS
12303LIBS="$LEXLIB $ac_save_LIBS"
12304cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12305/* end confdefs.h.  */
12306#define YYTEXT_POINTER 1
12307`cat $LEX_OUTPUT_ROOT.c`
12308_ACEOF
12309if ac_fn_c_try_link "$LINENO"; then :
12310  ac_cv_prog_lex_yytext_pointer=yes
12311fi
12312rm -f core conftest.err conftest.$ac_objext \
12313    conftest$ac_exeext conftest.$ac_ext
12314LIBS=$ac_save_LIBS
12315
12316fi
12317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12318$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12319if test $ac_cv_prog_lex_yytext_pointer = yes; then
12320
12321$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12322
12323fi
12324rm -f conftest.l $LEX_OUTPUT_ROOT.c
12325
12326fi
12327for ac_prog in 'bison -y' byacc
12328do
12329  # Extract the first word of "$ac_prog", so it can be a program name with args.
12330set dummy $ac_prog; ac_word=$2
12331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12332$as_echo_n "checking for $ac_word... " >&6; }
12333if test "${ac_cv_prog_YACC+set}" = set; then :
12334  $as_echo_n "(cached) " >&6
12335else
12336  if test -n "$YACC"; then
12337  ac_cv_prog_YACC="$YACC" # Let the user override the test.
12338else
12339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12340for as_dir in $PATH
12341do
12342  IFS=$as_save_IFS
12343  test -z "$as_dir" && as_dir=.
12344    for ac_exec_ext in '' $ac_executable_extensions; do
12345  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12346    ac_cv_prog_YACC="$ac_prog"
12347    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12348    break 2
12349  fi
12350done
12351  done
12352IFS=$as_save_IFS
12353
12354fi
12355fi
12356YACC=$ac_cv_prog_YACC
12357if test -n "$YACC"; then
12358  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12359$as_echo "$YACC" >&6; }
12360else
12361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12362$as_echo "no" >&6; }
12363fi
12364
12365
12366  test -n "$YACC" && break
12367done
12368test -n "$YACC" || YACC="yacc"
12369
12370# Check whether --enable-largefile was given.
12371if test "${enable_largefile+set}" = set; then :
12372  enableval=$enable_largefile;
12373fi
12374
12375if test "$enable_largefile" != no; then
12376
12377  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12378$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12379if test "${ac_cv_sys_largefile_CC+set}" = set; then :
12380  $as_echo_n "(cached) " >&6
12381else
12382  ac_cv_sys_largefile_CC=no
12383     if test "$GCC" != yes; then
12384       ac_save_CC=$CC
12385       while :; do
12386	 # IRIX 6.2 and later do not support large files by default,
12387	 # so use the C compiler's -n32 option if that helps.
12388	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12389/* end confdefs.h.  */
12390#include <sys/types.h>
12391 /* Check that off_t can represent 2**63 - 1 correctly.
12392    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12393    since some C++ compilers masquerading as C compilers
12394    incorrectly reject 9223372036854775807.  */
12395#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12396  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12397		       && LARGE_OFF_T % 2147483647 == 1)
12398		      ? 1 : -1];
12399int
12400main ()
12401{
12402
12403  ;
12404  return 0;
12405}
12406_ACEOF
12407	 if ac_fn_c_try_compile "$LINENO"; then :
12408  break
12409fi
12410rm -f core conftest.err conftest.$ac_objext
12411	 CC="$CC -n32"
12412	 if ac_fn_c_try_compile "$LINENO"; then :
12413  ac_cv_sys_largefile_CC=' -n32'; break
12414fi
12415rm -f core conftest.err conftest.$ac_objext
12416	 break
12417       done
12418       CC=$ac_save_CC
12419       rm -f conftest.$ac_ext
12420    fi
12421fi
12422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12423$as_echo "$ac_cv_sys_largefile_CC" >&6; }
12424  if test "$ac_cv_sys_largefile_CC" != no; then
12425    CC=$CC$ac_cv_sys_largefile_CC
12426  fi
12427
12428  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12429$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12430if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
12431  $as_echo_n "(cached) " >&6
12432else
12433  while :; do
12434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12435/* end confdefs.h.  */
12436#include <sys/types.h>
12437 /* Check that off_t can represent 2**63 - 1 correctly.
12438    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12439    since some C++ compilers masquerading as C compilers
12440    incorrectly reject 9223372036854775807.  */
12441#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12442  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12443		       && LARGE_OFF_T % 2147483647 == 1)
12444		      ? 1 : -1];
12445int
12446main ()
12447{
12448
12449  ;
12450  return 0;
12451}
12452_ACEOF
12453if ac_fn_c_try_compile "$LINENO"; then :
12454  ac_cv_sys_file_offset_bits=no; break
12455fi
12456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12457  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12458/* end confdefs.h.  */
12459#define _FILE_OFFSET_BITS 64
12460#include <sys/types.h>
12461 /* Check that off_t can represent 2**63 - 1 correctly.
12462    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12463    since some C++ compilers masquerading as C compilers
12464    incorrectly reject 9223372036854775807.  */
12465#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12466  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12467		       && LARGE_OFF_T % 2147483647 == 1)
12468		      ? 1 : -1];
12469int
12470main ()
12471{
12472
12473  ;
12474  return 0;
12475}
12476_ACEOF
12477if ac_fn_c_try_compile "$LINENO"; then :
12478  ac_cv_sys_file_offset_bits=64; break
12479fi
12480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12481  ac_cv_sys_file_offset_bits=unknown
12482  break
12483done
12484fi
12485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12486$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12487case $ac_cv_sys_file_offset_bits in #(
12488  no | unknown) ;;
12489  *)
12490cat >>confdefs.h <<_ACEOF
12491#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12492_ACEOF
12493;;
12494esac
12495rm -rf conftest*
12496  if test $ac_cv_sys_file_offset_bits = unknown; then
12497    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12498$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12499if test "${ac_cv_sys_large_files+set}" = set; then :
12500  $as_echo_n "(cached) " >&6
12501else
12502  while :; do
12503  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12504/* end confdefs.h.  */
12505#include <sys/types.h>
12506 /* Check that off_t can represent 2**63 - 1 correctly.
12507    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12508    since some C++ compilers masquerading as C compilers
12509    incorrectly reject 9223372036854775807.  */
12510#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12511  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12512		       && LARGE_OFF_T % 2147483647 == 1)
12513		      ? 1 : -1];
12514int
12515main ()
12516{
12517
12518  ;
12519  return 0;
12520}
12521_ACEOF
12522if ac_fn_c_try_compile "$LINENO"; then :
12523  ac_cv_sys_large_files=no; break
12524fi
12525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12527/* end confdefs.h.  */
12528#define _LARGE_FILES 1
12529#include <sys/types.h>
12530 /* Check that off_t can represent 2**63 - 1 correctly.
12531    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12532    since some C++ compilers masquerading as C compilers
12533    incorrectly reject 9223372036854775807.  */
12534#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12535  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12536		       && LARGE_OFF_T % 2147483647 == 1)
12537		      ? 1 : -1];
12538int
12539main ()
12540{
12541
12542  ;
12543  return 0;
12544}
12545_ACEOF
12546if ac_fn_c_try_compile "$LINENO"; then :
12547  ac_cv_sys_large_files=1; break
12548fi
12549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12550  ac_cv_sys_large_files=unknown
12551  break
12552done
12553fi
12554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12555$as_echo "$ac_cv_sys_large_files" >&6; }
12556case $ac_cv_sys_large_files in #(
12557  no | unknown) ;;
12558  *)
12559cat >>confdefs.h <<_ACEOF
12560#define _LARGE_FILES $ac_cv_sys_large_files
12561_ACEOF
12562;;
12563esac
12564rm -rf conftest*
12565  fi
12566fi
12567
12568
12569
12570for ac_prog in cpp
12571do
12572  # Extract the first word of "$ac_prog", so it can be a program name with args.
12573set dummy $ac_prog; ac_word=$2
12574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12575$as_echo_n "checking for $ac_word... " >&6; }
12576if test "${ac_cv_path_RAWCPP+set}" = set; then :
12577  $as_echo_n "(cached) " >&6
12578else
12579  case $RAWCPP in
12580  [\\/]* | ?:[\\/]*)
12581  ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
12582  ;;
12583  *)
12584  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12585as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
12586for as_dir in $as_dummy
12587do
12588  IFS=$as_save_IFS
12589  test -z "$as_dir" && as_dir=.
12590    for ac_exec_ext in '' $ac_executable_extensions; do
12591  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12592    ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext"
12593    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12594    break 2
12595  fi
12596done
12597  done
12598IFS=$as_save_IFS
12599
12600  ;;
12601esac
12602fi
12603RAWCPP=$ac_cv_path_RAWCPP
12604if test -n "$RAWCPP"; then
12605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5
12606$as_echo "$RAWCPP" >&6; }
12607else
12608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12609$as_echo "no" >&6; }
12610fi
12611
12612
12613  test -n "$RAWCPP" && break
12614done
12615test -n "$RAWCPP" || RAWCPP="${CPP}"
12616
12617
12618# Check for flag to avoid builtin definitions - assumes unix is predefined,
12619# which is not the best choice for supporting other OS'es, but covers most
12620# of the ones we need for now.
12621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5
12622$as_echo_n "checking if $RAWCPP requires -undef... " >&6; }
12623cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12624/* end confdefs.h.  */
12625Does cpp redefine unix ?
12626_ACEOF
12627if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
12628	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12629$as_echo "no" >&6; }
12630else
12631	if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
12632		RAWCPPFLAGS=-undef
12633		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12634$as_echo "yes" >&6; }
12635	# under Cygwin unix is still defined even with -undef
12636	elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
12637		RAWCPPFLAGS="-undef -ansi"
12638		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5
12639$as_echo "yes, with -ansi" >&6; }
12640	else
12641		as_fn_error "${RAWCPP} defines unix with or without -undef.  I don't know what to do." "$LINENO" 5
12642	fi
12643fi
12644rm -f conftest.$ac_ext
12645
12646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5
12647$as_echo_n "checking if $RAWCPP requires -traditional... " >&6; }
12648cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12649/* end confdefs.h.  */
12650Does cpp preserve   "whitespace"?
12651_ACEOF
12652if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
12653	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12654$as_echo "no" >&6; }
12655else
12656	if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
12657		RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
12658		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12659$as_echo "yes" >&6; }
12660	else
12661		as_fn_error "${RAWCPP} does not preserve whitespace with or without -traditional.  I don't know what to do." "$LINENO" 5
12662	fi
12663fi
12664rm -f conftest.$ac_ext
12665
12666
12667# Extract the first word of "sed", so it can be a program name with args.
12668set dummy sed; ac_word=$2
12669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12670$as_echo_n "checking for $ac_word... " >&6; }
12671if test "${ac_cv_path_SED+set}" = set; then :
12672  $as_echo_n "(cached) " >&6
12673else
12674  case $SED in
12675  [\\/]* | ?:[\\/]*)
12676  ac_cv_path_SED="$SED" # Let the user override the test with a path.
12677  ;;
12678  *)
12679  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12680for as_dir in $PATH
12681do
12682  IFS=$as_save_IFS
12683  test -z "$as_dir" && as_dir=.
12684    for ac_exec_ext in '' $ac_executable_extensions; do
12685  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12686    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
12687    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12688    break 2
12689  fi
12690done
12691  done
12692IFS=$as_save_IFS
12693
12694  ;;
12695esac
12696fi
12697SED=$ac_cv_path_SED
12698if test -n "$SED"; then
12699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
12700$as_echo "$SED" >&6; }
12701else
12702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12703$as_echo "no" >&6; }
12704fi
12705
12706
12707
12708
12709# Check whether --with-dtrace was given.
12710if test "${with_dtrace+set}" = set; then :
12711  withval=$with_dtrace; WDTRACE=$withval
12712else
12713  WDTRACE=auto
12714fi
12715
12716if test "x$WDTRACE" = xauto; then
12717	case $host_os in
12718		darwin*) WDTRACE="no" ;;
12719	esac
12720fi
12721if test "x$WDTRACE" = "xyes" -o "x$WDTRACE" = "xauto" ; then
12722	# Extract the first word of "dtrace", so it can be a program name with args.
12723set dummy dtrace; ac_word=$2
12724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12725$as_echo_n "checking for $ac_word... " >&6; }
12726if test "${ac_cv_path_DTRACE+set}" = set; then :
12727  $as_echo_n "(cached) " >&6
12728else
12729  case $DTRACE in
12730  [\\/]* | ?:[\\/]*)
12731  ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
12732  ;;
12733  *)
12734  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12735as_dummy="$PATH:/usr/sbin"
12736for as_dir in $as_dummy
12737do
12738  IFS=$as_save_IFS
12739  test -z "$as_dir" && as_dir=.
12740    for ac_exec_ext in '' $ac_executable_extensions; do
12741  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12742    ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
12743    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12744    break 2
12745  fi
12746done
12747  done
12748IFS=$as_save_IFS
12749
12750  test -z "$ac_cv_path_DTRACE" && ac_cv_path_DTRACE="not_found"
12751  ;;
12752esac
12753fi
12754DTRACE=$ac_cv_path_DTRACE
12755if test -n "$DTRACE"; then
12756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
12757$as_echo "$DTRACE" >&6; }
12758else
12759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12760$as_echo "no" >&6; }
12761fi
12762
12763
12764	if test "x$DTRACE" = "xnot_found" ; then
12765		if test "x$WDTRACE" = "xyes" ; then
12766			{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12767$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12768as_fn_error "dtrace requested but not found
12769See \`config.log' for more details." "$LINENO" 5; }
12770		fi
12771		WDTRACE="no"
12772	else
12773		ac_fn_c_check_header_mongrel "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default"
12774if test "x$ac_cv_header_sys_sdt_h" = x""yes; then :
12775  HAS_SDT_H="yes"
12776else
12777  HAS_SDT_H="no"
12778fi
12779
12780
12781		if test "x$WDTRACE" = "xauto" -a "x$HAS_SDT_H" = "xno" ; then
12782			WDTRACE="no"
12783		fi
12784	fi
12785fi
12786if test "x$WDTRACE" != "xno" ; then
12787
12788$as_echo "#define XSERVER_DTRACE 1" >>confdefs.h
12789
12790fi
12791 if test "x$WDTRACE" != "xno"; then
12792  XSERVER_DTRACE_TRUE=
12793  XSERVER_DTRACE_FALSE='#'
12794else
12795  XSERVER_DTRACE_TRUE='#'
12796  XSERVER_DTRACE_FALSE=
12797fi
12798
12799
12800ac_header_dirent=no
12801for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
12802  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
12804$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
12805if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
12806  $as_echo_n "(cached) " >&6
12807else
12808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12809/* end confdefs.h.  */
12810#include <sys/types.h>
12811#include <$ac_hdr>
12812
12813int
12814main ()
12815{
12816if ((DIR *) 0)
12817return 0;
12818  ;
12819  return 0;
12820}
12821_ACEOF
12822if ac_fn_c_try_compile "$LINENO"; then :
12823  eval "$as_ac_Header=yes"
12824else
12825  eval "$as_ac_Header=no"
12826fi
12827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12828fi
12829eval ac_res=\$$as_ac_Header
12830	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12831$as_echo "$ac_res" >&6; }
12832eval as_val=\$$as_ac_Header
12833   if test "x$as_val" = x""yes; then :
12834  cat >>confdefs.h <<_ACEOF
12835#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
12836_ACEOF
12837
12838ac_header_dirent=$ac_hdr; break
12839fi
12840
12841done
12842# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12843if test $ac_header_dirent = dirent.h; then
12844  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12845$as_echo_n "checking for library containing opendir... " >&6; }
12846if test "${ac_cv_search_opendir+set}" = set; then :
12847  $as_echo_n "(cached) " >&6
12848else
12849  ac_func_search_save_LIBS=$LIBS
12850cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12851/* end confdefs.h.  */
12852
12853/* Override any GCC internal prototype to avoid an error.
12854   Use char because int might match the return type of a GCC
12855   builtin and then its argument prototype would still apply.  */
12856#ifdef __cplusplus
12857extern "C"
12858#endif
12859char opendir ();
12860int
12861main ()
12862{
12863return opendir ();
12864  ;
12865  return 0;
12866}
12867_ACEOF
12868for ac_lib in '' dir; do
12869  if test -z "$ac_lib"; then
12870    ac_res="none required"
12871  else
12872    ac_res=-l$ac_lib
12873    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12874  fi
12875  if ac_fn_c_try_link "$LINENO"; then :
12876  ac_cv_search_opendir=$ac_res
12877fi
12878rm -f core conftest.err conftest.$ac_objext \
12879    conftest$ac_exeext
12880  if test "${ac_cv_search_opendir+set}" = set; then :
12881  break
12882fi
12883done
12884if test "${ac_cv_search_opendir+set}" = set; then :
12885
12886else
12887  ac_cv_search_opendir=no
12888fi
12889rm conftest.$ac_ext
12890LIBS=$ac_func_search_save_LIBS
12891fi
12892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12893$as_echo "$ac_cv_search_opendir" >&6; }
12894ac_res=$ac_cv_search_opendir
12895if test "$ac_res" != no; then :
12896  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12897
12898fi
12899
12900else
12901  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12902$as_echo_n "checking for library containing opendir... " >&6; }
12903if test "${ac_cv_search_opendir+set}" = set; then :
12904  $as_echo_n "(cached) " >&6
12905else
12906  ac_func_search_save_LIBS=$LIBS
12907cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12908/* end confdefs.h.  */
12909
12910/* Override any GCC internal prototype to avoid an error.
12911   Use char because int might match the return type of a GCC
12912   builtin and then its argument prototype would still apply.  */
12913#ifdef __cplusplus
12914extern "C"
12915#endif
12916char opendir ();
12917int
12918main ()
12919{
12920return opendir ();
12921  ;
12922  return 0;
12923}
12924_ACEOF
12925for ac_lib in '' x; do
12926  if test -z "$ac_lib"; then
12927    ac_res="none required"
12928  else
12929    ac_res=-l$ac_lib
12930    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12931  fi
12932  if ac_fn_c_try_link "$LINENO"; then :
12933  ac_cv_search_opendir=$ac_res
12934fi
12935rm -f core conftest.err conftest.$ac_objext \
12936    conftest$ac_exeext
12937  if test "${ac_cv_search_opendir+set}" = set; then :
12938  break
12939fi
12940done
12941if test "${ac_cv_search_opendir+set}" = set; then :
12942
12943else
12944  ac_cv_search_opendir=no
12945fi
12946rm conftest.$ac_ext
12947LIBS=$ac_func_search_save_LIBS
12948fi
12949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12950$as_echo "$ac_cv_search_opendir" >&6; }
12951ac_res=$ac_cv_search_opendir
12952if test "$ac_res" != no; then :
12953  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12954
12955fi
12956
12957fi
12958
12959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12960$as_echo_n "checking for ANSI C header files... " >&6; }
12961if test "${ac_cv_header_stdc+set}" = set; then :
12962  $as_echo_n "(cached) " >&6
12963else
12964  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12965/* end confdefs.h.  */
12966#include <stdlib.h>
12967#include <stdarg.h>
12968#include <string.h>
12969#include <float.h>
12970
12971int
12972main ()
12973{
12974
12975  ;
12976  return 0;
12977}
12978_ACEOF
12979if ac_fn_c_try_compile "$LINENO"; then :
12980  ac_cv_header_stdc=yes
12981else
12982  ac_cv_header_stdc=no
12983fi
12984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12985
12986if test $ac_cv_header_stdc = yes; then
12987  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12988  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12989/* end confdefs.h.  */
12990#include <string.h>
12991
12992_ACEOF
12993if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12994  $EGREP "memchr" >/dev/null 2>&1; then :
12995
12996else
12997  ac_cv_header_stdc=no
12998fi
12999rm -f conftest*
13000
13001fi
13002
13003if test $ac_cv_header_stdc = yes; then
13004  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13005  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13006/* end confdefs.h.  */
13007#include <stdlib.h>
13008
13009_ACEOF
13010if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13011  $EGREP "free" >/dev/null 2>&1; then :
13012
13013else
13014  ac_cv_header_stdc=no
13015fi
13016rm -f conftest*
13017
13018fi
13019
13020if test $ac_cv_header_stdc = yes; then
13021  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13022  if test "$cross_compiling" = yes; then :
13023  :
13024else
13025  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13026/* end confdefs.h.  */
13027#include <ctype.h>
13028#include <stdlib.h>
13029#if ((' ' & 0x0FF) == 0x020)
13030# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13031# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13032#else
13033# define ISLOWER(c) \
13034		   (('a' <= (c) && (c) <= 'i') \
13035		     || ('j' <= (c) && (c) <= 'r') \
13036		     || ('s' <= (c) && (c) <= 'z'))
13037# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13038#endif
13039
13040#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13041int
13042main ()
13043{
13044  int i;
13045  for (i = 0; i < 256; i++)
13046    if (XOR (islower (i), ISLOWER (i))
13047	|| toupper (i) != TOUPPER (i))
13048      return 2;
13049  return 0;
13050}
13051_ACEOF
13052if ac_fn_c_try_run "$LINENO"; then :
13053
13054else
13055  ac_cv_header_stdc=no
13056fi
13057rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13058  conftest.$ac_objext conftest.beam conftest.$ac_ext
13059fi
13060
13061fi
13062fi
13063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13064$as_echo "$ac_cv_header_stdc" >&6; }
13065if test $ac_cv_header_stdc = yes; then
13066
13067$as_echo "#define STDC_HEADERS 1" >>confdefs.h
13068
13069fi
13070
13071for ac_header in fcntl.h stdlib.h string.h unistd.h
13072do :
13073  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13074ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13075eval as_val=\$$as_ac_Header
13076   if test "x$as_val" = x""yes; then :
13077  cat >>confdefs.h <<_ACEOF
13078#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13079_ACEOF
13080
13081fi
13082
13083done
13084
13085
13086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13087$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13088if test "${ac_cv_c_const+set}" = set; then :
13089  $as_echo_n "(cached) " >&6
13090else
13091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13092/* end confdefs.h.  */
13093
13094int
13095main ()
13096{
13097/* FIXME: Include the comments suggested by Paul. */
13098#ifndef __cplusplus
13099  /* Ultrix mips cc rejects this.  */
13100  typedef int charset[2];
13101  const charset cs;
13102  /* SunOS 4.1.1 cc rejects this.  */
13103  char const *const *pcpcc;
13104  char **ppc;
13105  /* NEC SVR4.0.2 mips cc rejects this.  */
13106  struct point {int x, y;};
13107  static struct point const zero = {0,0};
13108  /* AIX XL C 1.02.0.0 rejects this.
13109     It does not let you subtract one const X* pointer from another in
13110     an arm of an if-expression whose if-part is not a constant
13111     expression */
13112  const char *g = "string";
13113  pcpcc = &g + (g ? g-g : 0);
13114  /* HPUX 7.0 cc rejects these. */
13115  ++pcpcc;
13116  ppc = (char**) pcpcc;
13117  pcpcc = (char const *const *) ppc;
13118  { /* SCO 3.2v4 cc rejects this.  */
13119    char *t;
13120    char const *s = 0 ? (char *) 0 : (char const *) 0;
13121
13122    *t++ = 0;
13123    if (s) return 0;
13124  }
13125  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13126    int x[] = {25, 17};
13127    const int *foo = &x[0];
13128    ++foo;
13129  }
13130  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13131    typedef const int *iptr;
13132    iptr p = 0;
13133    ++p;
13134  }
13135  { /* AIX XL C 1.02.0.0 rejects this saying
13136       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13137    struct s { int j; const int *ap[3]; };
13138    struct s *b; b->j = 5;
13139  }
13140  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13141    const int foo = 10;
13142    if (!foo) return 0;
13143  }
13144  return !cs[0] && !zero.x;
13145#endif
13146
13147  ;
13148  return 0;
13149}
13150_ACEOF
13151if ac_fn_c_try_compile "$LINENO"; then :
13152  ac_cv_c_const=yes
13153else
13154  ac_cv_c_const=no
13155fi
13156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13157fi
13158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13159$as_echo "$ac_cv_c_const" >&6; }
13160if test $ac_cv_c_const = no; then
13161
13162$as_echo "#define const /**/" >>confdefs.h
13163
13164fi
13165
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13167$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13168if test "${ac_cv_c_bigendian+set}" = set; then :
13169  $as_echo_n "(cached) " >&6
13170else
13171  ac_cv_c_bigendian=unknown
13172    # See if we're dealing with a universal compiler.
13173    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13174/* end confdefs.h.  */
13175#ifndef __APPLE_CC__
13176	       not a universal capable compiler
13177	     #endif
13178	     typedef int dummy;
13179
13180_ACEOF
13181if ac_fn_c_try_compile "$LINENO"; then :
13182
13183	# Check for potential -arch flags.  It is not universal unless
13184	# there are at least two -arch flags with different values.
13185	ac_arch=
13186	ac_prev=
13187	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13188	 if test -n "$ac_prev"; then
13189	   case $ac_word in
13190	     i?86 | x86_64 | ppc | ppc64)
13191	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13192		 ac_arch=$ac_word
13193	       else
13194		 ac_cv_c_bigendian=universal
13195		 break
13196	       fi
13197	       ;;
13198	   esac
13199	   ac_prev=
13200	 elif test "x$ac_word" = "x-arch"; then
13201	   ac_prev=arch
13202	 fi
13203       done
13204fi
13205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13206    if test $ac_cv_c_bigendian = unknown; then
13207      # See if sys/param.h defines the BYTE_ORDER macro.
13208      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13209/* end confdefs.h.  */
13210#include <sys/types.h>
13211	     #include <sys/param.h>
13212
13213int
13214main ()
13215{
13216#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13217		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13218		     && LITTLE_ENDIAN)
13219	      bogus endian macros
13220	     #endif
13221
13222  ;
13223  return 0;
13224}
13225_ACEOF
13226if ac_fn_c_try_compile "$LINENO"; then :
13227  # It does; now see whether it defined to BIG_ENDIAN or not.
13228	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13229/* end confdefs.h.  */
13230#include <sys/types.h>
13231		#include <sys/param.h>
13232
13233int
13234main ()
13235{
13236#if BYTE_ORDER != BIG_ENDIAN
13237		 not big endian
13238		#endif
13239
13240  ;
13241  return 0;
13242}
13243_ACEOF
13244if ac_fn_c_try_compile "$LINENO"; then :
13245  ac_cv_c_bigendian=yes
13246else
13247  ac_cv_c_bigendian=no
13248fi
13249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13250fi
13251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13252    fi
13253    if test $ac_cv_c_bigendian = unknown; then
13254      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13255      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13256/* end confdefs.h.  */
13257#include <limits.h>
13258
13259int
13260main ()
13261{
13262#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13263	      bogus endian macros
13264	     #endif
13265
13266  ;
13267  return 0;
13268}
13269_ACEOF
13270if ac_fn_c_try_compile "$LINENO"; then :
13271  # It does; now see whether it defined to _BIG_ENDIAN or not.
13272	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13273/* end confdefs.h.  */
13274#include <limits.h>
13275
13276int
13277main ()
13278{
13279#ifndef _BIG_ENDIAN
13280		 not big endian
13281		#endif
13282
13283  ;
13284  return 0;
13285}
13286_ACEOF
13287if ac_fn_c_try_compile "$LINENO"; then :
13288  ac_cv_c_bigendian=yes
13289else
13290  ac_cv_c_bigendian=no
13291fi
13292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13293fi
13294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13295    fi
13296    if test $ac_cv_c_bigendian = unknown; then
13297      # Compile a test program.
13298      if test "$cross_compiling" = yes; then :
13299  # Try to guess by grepping values from an object file.
13300	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13301/* end confdefs.h.  */
13302short int ascii_mm[] =
13303		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13304		short int ascii_ii[] =
13305		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13306		int use_ascii (int i) {
13307		  return ascii_mm[i] + ascii_ii[i];
13308		}
13309		short int ebcdic_ii[] =
13310		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13311		short int ebcdic_mm[] =
13312		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13313		int use_ebcdic (int i) {
13314		  return ebcdic_mm[i] + ebcdic_ii[i];
13315		}
13316		extern int foo;
13317
13318int
13319main ()
13320{
13321return use_ascii (foo) == use_ebcdic (foo);
13322  ;
13323  return 0;
13324}
13325_ACEOF
13326if ac_fn_c_try_compile "$LINENO"; then :
13327  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13328	      ac_cv_c_bigendian=yes
13329	    fi
13330	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13331	      if test "$ac_cv_c_bigendian" = unknown; then
13332		ac_cv_c_bigendian=no
13333	      else
13334		# finding both strings is unlikely to happen, but who knows?
13335		ac_cv_c_bigendian=unknown
13336	      fi
13337	    fi
13338fi
13339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13340else
13341  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13342/* end confdefs.h.  */
13343$ac_includes_default
13344int
13345main ()
13346{
13347
13348	     /* Are we little or big endian?  From Harbison&Steele.  */
13349	     union
13350	     {
13351	       long int l;
13352	       char c[sizeof (long int)];
13353	     } u;
13354	     u.l = 1;
13355	     return u.c[sizeof (long int) - 1] == 1;
13356
13357  ;
13358  return 0;
13359}
13360_ACEOF
13361if ac_fn_c_try_run "$LINENO"; then :
13362  ac_cv_c_bigendian=no
13363else
13364  ac_cv_c_bigendian=yes
13365fi
13366rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13367  conftest.$ac_objext conftest.beam conftest.$ac_ext
13368fi
13369
13370    fi
13371fi
13372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13373$as_echo "$ac_cv_c_bigendian" >&6; }
13374 case $ac_cv_c_bigendian in #(
13375   yes)
13376     ENDIAN="X_BIG_ENDIAN";; #(
13377   no)
13378     ENDIAN="X_LITTLE_ENDIAN" ;; #(
13379   universal)
13380
13381$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13382
13383     ;; #(
13384   *)
13385     as_fn_error "unknown endianness
13386 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13387 esac
13388
13389
13390# The cast to long int works around a bug in the HP C Compiler
13391# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13392# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13393# This bug is HP SR number 8606223364.
13394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
13395$as_echo_n "checking size of unsigned long... " >&6; }
13396if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
13397  $as_echo_n "(cached) " >&6
13398else
13399  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
13400
13401else
13402  if test "$ac_cv_type_unsigned_long" = yes; then
13403     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13404$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13405{ as_fn_set_status 77
13406as_fn_error "cannot compute sizeof (unsigned long)
13407See \`config.log' for more details." "$LINENO" 5; }; }
13408   else
13409     ac_cv_sizeof_unsigned_long=0
13410   fi
13411fi
13412
13413fi
13414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
13415$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
13416
13417
13418
13419cat >>confdefs.h <<_ACEOF
13420#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
13421_ACEOF
13422
13423
13424if test "$ac_cv_sizeof_unsigned_long" = 8; then
13425
13426$as_echo "#define _XSERVER64 1" >>confdefs.h
13427
13428fi
13429
13430ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13431if test "x$ac_cv_type_pid_t" = x""yes; then :
13432
13433else
13434
13435cat >>confdefs.h <<_ACEOF
13436#define pid_t int
13437_ACEOF
13438
13439fi
13440
13441
13442# Checks for headers/macros for byte swapping
13443# Known variants:
13444#	<byteswap.h> bswap_16, bswap_32, bswap_64  (glibc)
13445#	<sys/endian.h> __swap16, __swap32, __swap64 (OpenBSD)
13446#	<sys/endian.h> bswap16, bswap32, bswap64 (other BSD's)
13447#	and a fallback to local macros if none of the above are found
13448
13449# if <byteswap.h> is found, assume it's the correct version
13450for ac_header in byteswap.h
13451do :
13452  ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
13453if test "x$ac_cv_header_byteswap_h" = x""yes; then :
13454  cat >>confdefs.h <<_ACEOF
13455#define HAVE_BYTESWAP_H 1
13456_ACEOF
13457
13458fi
13459
13460done
13461
13462
13463# if <sys/endian.h> is found, have to check which version
13464ac_fn_c_check_header_mongrel "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
13465if test "x$ac_cv_header_sys_endian_h" = x""yes; then :
13466  HAVE_SYS_ENDIAN_H="yes"
13467else
13468  HAVE_SYS_ENDIAN_H="no"
13469fi
13470
13471
13472
13473if test "x$HAVE_SYS_ENDIAN_H" = "xyes" ; then
13474	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __swap16 variant of <sys/endian.h> byteswapping macros" >&5
13475$as_echo_n "checking for __swap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
13476	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13477/* end confdefs.h.  */
13478
13479#include <sys/types.h>
13480#include <sys/endian.h>
13481
13482int
13483main ()
13484{
13485
13486int a = 1, b;
13487b = __swap16(a);
13488
13489  ;
13490  return 0;
13491}
13492
13493_ACEOF
13494if ac_fn_c_try_link "$LINENO"; then :
13495  SYS_ENDIAN__SWAP='yes'
13496else
13497  SYS_ENDIAN__SWAP='no'
13498fi
13499rm -f core conftest.err conftest.$ac_objext \
13500    conftest$ac_exeext conftest.$ac_ext
13501	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN__SWAP" >&5
13502$as_echo "$SYS_ENDIAN__SWAP" >&6; }
13503
13504	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap16 variant of <sys/endian.h> byteswapping macros" >&5
13505$as_echo_n "checking for bswap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
13506	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13507/* end confdefs.h.  */
13508
13509#include <sys/types.h>
13510#include <sys/endian.h>
13511
13512int
13513main ()
13514{
13515
13516int a = 1, b;
13517b = bswap16(a);
13518
13519  ;
13520  return 0;
13521}
13522
13523_ACEOF
13524if ac_fn_c_try_link "$LINENO"; then :
13525  SYS_ENDIAN_BSWAP='yes'
13526else
13527  SYS_ENDIAN_BSWAP='no'
13528fi
13529rm -f core conftest.err conftest.$ac_objext \
13530    conftest$ac_exeext conftest.$ac_ext
13531	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN_BSWAP" >&5
13532$as_echo "$SYS_ENDIAN_BSWAP" >&6; }
13533
13534    	if test "$SYS_ENDIAN_BSWAP" = "yes" ; then
13535		USE_SYS_ENDIAN_H=yes
13536		BSWAP=bswap
13537	else
13538	    	if test "$SYS_ENDIAN__SWAP" = "yes" ; then
13539			USE_SYS_ENDIAN_H=yes
13540			BSWAP=__swap
13541		else
13542			USE_SYS_ENDIAN_H=no
13543		fi
13544	fi
13545
13546	if test "$USE_SYS_ENDIAN_H" = "yes" ; then
13547
13548$as_echo "#define USE_SYS_ENDIAN_H 1" >>confdefs.h
13549
13550
13551cat >>confdefs.h <<_ACEOF
13552#define bswap_16 ${BSWAP}16
13553_ACEOF
13554
13555
13556cat >>confdefs.h <<_ACEOF
13557#define bswap_32 ${BSWAP}32
13558_ACEOF
13559
13560
13561cat >>confdefs.h <<_ACEOF
13562#define bswap_64 ${BSWAP}64
13563_ACEOF
13564
13565	fi
13566fi
13567
13568ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13569if test "x$ac_cv_func_dlopen" = x""yes; then :
13570
13571else
13572  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13573$as_echo_n "checking for dlopen in -ldl... " >&6; }
13574if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13575  $as_echo_n "(cached) " >&6
13576else
13577  ac_check_lib_save_LIBS=$LIBS
13578LIBS="-ldl  $LIBS"
13579cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13580/* end confdefs.h.  */
13581
13582/* Override any GCC internal prototype to avoid an error.
13583   Use char because int might match the return type of a GCC
13584   builtin and then its argument prototype would still apply.  */
13585#ifdef __cplusplus
13586extern "C"
13587#endif
13588char dlopen ();
13589int
13590main ()
13591{
13592return dlopen ();
13593  ;
13594  return 0;
13595}
13596_ACEOF
13597if ac_fn_c_try_link "$LINENO"; then :
13598  ac_cv_lib_dl_dlopen=yes
13599else
13600  ac_cv_lib_dl_dlopen=no
13601fi
13602rm -f core conftest.err conftest.$ac_objext \
13603    conftest$ac_exeext conftest.$ac_ext
13604LIBS=$ac_check_lib_save_LIBS
13605fi
13606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13607$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13608if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13609  DLOPEN_LIBS="-ldl"
13610fi
13611
13612fi
13613
13614
13615for ac_func in vprintf
13616do :
13617  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
13618if test "x$ac_cv_func_vprintf" = x""yes; then :
13619  cat >>confdefs.h <<_ACEOF
13620#define HAVE_VPRINTF 1
13621_ACEOF
13622
13623ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
13624if test "x$ac_cv_func__doprnt" = x""yes; then :
13625
13626$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
13627
13628fi
13629
13630fi
13631done
13632
13633
13634for ac_func in geteuid getuid link memmove memset mkstemp strchr strrchr \
13635		strtol getopt getopt_long vsnprintf walkcontext backtrace \
13636		getisax getzoneid shmctl64 strcasestr ffs
13637do :
13638  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13639ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13640eval as_val=\$$as_ac_var
13641   if test "x$as_val" = x""yes; then :
13642  cat >>confdefs.h <<_ACEOF
13643#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13644_ACEOF
13645
13646fi
13647done
13648
13649# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13650# for constant arguments.  Useless!
13651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13652$as_echo_n "checking for working alloca.h... " >&6; }
13653if test "${ac_cv_working_alloca_h+set}" = set; then :
13654  $as_echo_n "(cached) " >&6
13655else
13656  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13657/* end confdefs.h.  */
13658#include <alloca.h>
13659int
13660main ()
13661{
13662char *p = (char *) alloca (2 * sizeof (int));
13663			  if (p) return 0;
13664  ;
13665  return 0;
13666}
13667_ACEOF
13668if ac_fn_c_try_link "$LINENO"; then :
13669  ac_cv_working_alloca_h=yes
13670else
13671  ac_cv_working_alloca_h=no
13672fi
13673rm -f core conftest.err conftest.$ac_objext \
13674    conftest$ac_exeext conftest.$ac_ext
13675fi
13676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13677$as_echo "$ac_cv_working_alloca_h" >&6; }
13678if test $ac_cv_working_alloca_h = yes; then
13679
13680$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13681
13682fi
13683
13684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13685$as_echo_n "checking for alloca... " >&6; }
13686if test "${ac_cv_func_alloca_works+set}" = set; then :
13687  $as_echo_n "(cached) " >&6
13688else
13689  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13690/* end confdefs.h.  */
13691#ifdef __GNUC__
13692# define alloca __builtin_alloca
13693#else
13694# ifdef _MSC_VER
13695#  include <malloc.h>
13696#  define alloca _alloca
13697# else
13698#  ifdef HAVE_ALLOCA_H
13699#   include <alloca.h>
13700#  else
13701#   ifdef _AIX
13702 #pragma alloca
13703#   else
13704#    ifndef alloca /* predefined by HP cc +Olibcalls */
13705char *alloca ();
13706#    endif
13707#   endif
13708#  endif
13709# endif
13710#endif
13711
13712int
13713main ()
13714{
13715char *p = (char *) alloca (1);
13716				    if (p) return 0;
13717  ;
13718  return 0;
13719}
13720_ACEOF
13721if ac_fn_c_try_link "$LINENO"; then :
13722  ac_cv_func_alloca_works=yes
13723else
13724  ac_cv_func_alloca_works=no
13725fi
13726rm -f core conftest.err conftest.$ac_objext \
13727    conftest$ac_exeext conftest.$ac_ext
13728fi
13729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13730$as_echo "$ac_cv_func_alloca_works" >&6; }
13731
13732if test $ac_cv_func_alloca_works = yes; then
13733
13734$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13735
13736else
13737  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13738# that cause trouble.  Some versions do not even contain alloca or
13739# contain a buggy version.  If you still want to use their alloca,
13740# use ar to extract alloca.o from them instead of compiling alloca.c.
13741
13742ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13743
13744$as_echo "#define C_ALLOCA 1" >>confdefs.h
13745
13746
13747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13748$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13749if test "${ac_cv_os_cray+set}" = set; then :
13750  $as_echo_n "(cached) " >&6
13751else
13752  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13753/* end confdefs.h.  */
13754#if defined CRAY && ! defined CRAY2
13755webecray
13756#else
13757wenotbecray
13758#endif
13759
13760_ACEOF
13761if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13762  $EGREP "webecray" >/dev/null 2>&1; then :
13763  ac_cv_os_cray=yes
13764else
13765  ac_cv_os_cray=no
13766fi
13767rm -f conftest*
13768
13769fi
13770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13771$as_echo "$ac_cv_os_cray" >&6; }
13772if test $ac_cv_os_cray = yes; then
13773  for ac_func in _getb67 GETB67 getb67; do
13774    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13775ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13776eval as_val=\$$as_ac_var
13777   if test "x$as_val" = x""yes; then :
13778
13779cat >>confdefs.h <<_ACEOF
13780#define CRAY_STACKSEG_END $ac_func
13781_ACEOF
13782
13783    break
13784fi
13785
13786  done
13787fi
13788
13789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13790$as_echo_n "checking stack direction for C alloca... " >&6; }
13791if test "${ac_cv_c_stack_direction+set}" = set; then :
13792  $as_echo_n "(cached) " >&6
13793else
13794  if test "$cross_compiling" = yes; then :
13795  ac_cv_c_stack_direction=0
13796else
13797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13798/* end confdefs.h.  */
13799$ac_includes_default
13800int
13801find_stack_direction ()
13802{
13803  static char *addr = 0;
13804  auto char dummy;
13805  if (addr == 0)
13806    {
13807      addr = &dummy;
13808      return find_stack_direction ();
13809    }
13810  else
13811    return (&dummy > addr) ? 1 : -1;
13812}
13813
13814int
13815main ()
13816{
13817  return find_stack_direction () < 0;
13818}
13819_ACEOF
13820if ac_fn_c_try_run "$LINENO"; then :
13821  ac_cv_c_stack_direction=1
13822else
13823  ac_cv_c_stack_direction=-1
13824fi
13825rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13826  conftest.$ac_objext conftest.beam conftest.$ac_ext
13827fi
13828
13829fi
13830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13831$as_echo "$ac_cv_c_stack_direction" >&6; }
13832cat >>confdefs.h <<_ACEOF
13833#define STACK_DIRECTION $ac_cv_c_stack_direction
13834_ACEOF
13835
13836
13837fi
13838
13839ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize"
13840if test "x$ac_cv_func_getdtablesize" = x""yes; then :
13841
13842$as_echo "#define HAS_GETDTABLESIZE 1" >>confdefs.h
13843
13844fi
13845
13846ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
13847if test "x$ac_cv_func_getifaddrs" = x""yes; then :
13848
13849$as_echo "#define HAS_GETIFADDRS 1" >>confdefs.h
13850
13851fi
13852
13853ac_fn_c_check_func "$LINENO" "getpeereid" "ac_cv_func_getpeereid"
13854if test "x$ac_cv_func_getpeereid" = x""yes; then :
13855
13856$as_echo "#define HAS_GETPEEREID 1" >>confdefs.h
13857
13858fi
13859
13860ac_fn_c_check_func "$LINENO" "getpeerucred" "ac_cv_func_getpeerucred"
13861if test "x$ac_cv_func_getpeerucred" = x""yes; then :
13862
13863$as_echo "#define HAS_GETPEERUCRED 1" >>confdefs.h
13864
13865fi
13866
13867ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
13868if test "x$ac_cv_func_strlcat" = x""yes; then :
13869  HAVE_STRLCAT=yes
13870else
13871  HAVE_STRLCAT=no
13872fi
13873
13874 if test x$HAVE_STRLCAT = xno; then
13875  NEED_STRLCAT_TRUE=
13876  NEED_STRLCAT_FALSE='#'
13877else
13878  NEED_STRLCAT_TRUE='#'
13879  NEED_STRLCAT_FALSE=
13880fi
13881
13882ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
13883if test "x$ac_cv_func_strlcpy" = x""yes; then :
13884
13885$as_echo "#define HAS_STRLCPY 1" >>confdefs.h
13886
13887fi
13888
13889
13890 if test x$HAVE_VSNPRINTF = xno; then
13891  NEED_VSNPRINTF_TRUE=
13892  NEED_VSNPRINTF_FALSE='#'
13893else
13894  NEED_VSNPRINTF_TRUE='#'
13895  NEED_VSNPRINTF_FALSE=
13896fi
13897
13898
13899ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13900if test "x$ac_cv_func_mmap" = x""yes; then :
13901
13902$as_echo "#define HAS_MMAP 1" >>confdefs.h
13903
13904fi
13905
13906
13907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13908$as_echo_n "checking for sqrt in -lm... " >&6; }
13909if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13910  $as_echo_n "(cached) " >&6
13911else
13912  ac_check_lib_save_LIBS=$LIBS
13913LIBS="-lm  $LIBS"
13914cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13915/* end confdefs.h.  */
13916
13917/* Override any GCC internal prototype to avoid an error.
13918   Use char because int might match the return type of a GCC
13919   builtin and then its argument prototype would still apply.  */
13920#ifdef __cplusplus
13921extern "C"
13922#endif
13923char sqrt ();
13924int
13925main ()
13926{
13927return sqrt ();
13928  ;
13929  return 0;
13930}
13931_ACEOF
13932if ac_fn_c_try_link "$LINENO"; then :
13933  ac_cv_lib_m_sqrt=yes
13934else
13935  ac_cv_lib_m_sqrt=no
13936fi
13937rm -f core conftest.err conftest.$ac_objext \
13938    conftest$ac_exeext conftest.$ac_ext
13939LIBS=$ac_check_lib_save_LIBS
13940fi
13941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13942$as_echo "$ac_cv_lib_m_sqrt" >&6; }
13943if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13944  cat >>confdefs.h <<_ACEOF
13945#define HAVE_LIBM 1
13946_ACEOF
13947
13948  LIBS="-lm $LIBS"
13949
13950fi
13951
13952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cbrt in -lm" >&5
13953$as_echo_n "checking for cbrt in -lm... " >&6; }
13954if test "${ac_cv_lib_m_cbrt+set}" = set; then :
13955  $as_echo_n "(cached) " >&6
13956else
13957  ac_check_lib_save_LIBS=$LIBS
13958LIBS="-lm  $LIBS"
13959cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13960/* end confdefs.h.  */
13961
13962/* Override any GCC internal prototype to avoid an error.
13963   Use char because int might match the return type of a GCC
13964   builtin and then its argument prototype would still apply.  */
13965#ifdef __cplusplus
13966extern "C"
13967#endif
13968char cbrt ();
13969int
13970main ()
13971{
13972return cbrt ();
13973  ;
13974  return 0;
13975}
13976_ACEOF
13977if ac_fn_c_try_link "$LINENO"; then :
13978  ac_cv_lib_m_cbrt=yes
13979else
13980  ac_cv_lib_m_cbrt=no
13981fi
13982rm -f core conftest.err conftest.$ac_objext \
13983    conftest$ac_exeext conftest.$ac_ext
13984LIBS=$ac_check_lib_save_LIBS
13985fi
13986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cbrt" >&5
13987$as_echo "$ac_cv_lib_m_cbrt" >&6; }
13988if test "x$ac_cv_lib_m_cbrt" = x""yes; then :
13989
13990$as_echo "#define HAVE_CBRT 1" >>confdefs.h
13991
13992fi
13993
13994
13995for ac_header in ndbm.h dbm.h rpcsvc/dbm.h
13996do :
13997  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13998ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13999eval as_val=\$$as_ac_Header
14000   if test "x$as_val" = x""yes; then :
14001  cat >>confdefs.h <<_ACEOF
14002#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14003_ACEOF
14004
14005fi
14006
14007done
14008
14009
14010for ac_header in linux/agpgart.h sys/agpio.h
14011do :
14012  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14013ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14014eval as_val=\$$as_ac_Header
14015   if test "x$as_val" = x""yes; then :
14016  cat >>confdefs.h <<_ACEOF
14017#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14018_ACEOF
14019 AGP=yes
14020fi
14021
14022done
14023
14024 if test "x$AGP" = xyes; then
14025  AGP_TRUE=
14026  AGP_FALSE='#'
14027else
14028  AGP_TRUE='#'
14029  AGP_FALSE=
14030fi
14031
14032
14033for ac_header in linux/apm_bios.h
14034do :
14035  ac_fn_c_check_header_mongrel "$LINENO" "linux/apm_bios.h" "ac_cv_header_linux_apm_bios_h" "$ac_includes_default"
14036if test "x$ac_cv_header_linux_apm_bios_h" = x""yes; then :
14037  cat >>confdefs.h <<_ACEOF
14038#define HAVE_LINUX_APM_BIOS_H 1
14039_ACEOF
14040 LNXAPM=yes
14041fi
14042
14043done
14044
14045 if test "x$LNXAPM" = xyes; then
14046  LNXAPM_TRUE=
14047  LNXAPM_FALSE='#'
14048else
14049  LNXAPM_TRUE='#'
14050  LNXAPM_FALSE=
14051fi
14052
14053
14054for ac_header in linux/fb.h
14055do :
14056  ac_fn_c_check_header_mongrel "$LINENO" "linux/fb.h" "ac_cv_header_linux_fb_h" "$ac_includes_default"
14057if test "x$ac_cv_header_linux_fb_h" = x""yes; then :
14058  cat >>confdefs.h <<_ACEOF
14059#define HAVE_LINUX_FB_H 1
14060_ACEOF
14061 FBDEV=yes
14062fi
14063
14064done
14065
14066 if test "x$FBDEV" = xyes; then
14067  FBDEVHW_TRUE=
14068  FBDEVHW_FALSE='#'
14069else
14070  FBDEVHW_TRUE='#'
14071  FBDEVHW_FALSE=
14072fi
14073
14074
14075for ac_header in asm/mtrr.h
14076do :
14077  ac_fn_c_check_header_mongrel "$LINENO" "asm/mtrr.h" "ac_cv_header_asm_mtrr_h" "$ac_includes_default"
14078if test "x$ac_cv_header_asm_mtrr_h" = x""yes; then :
14079  cat >>confdefs.h <<_ACEOF
14080#define HAVE_ASM_MTRR_H 1
14081_ACEOF
14082 ac_cv_asm_mtrr_h=yes
14083fi
14084
14085done
14086
14087if test "x$ac_cv_asm_mtrr_h" = xyes; then
14088	HAVE_MTRR=yes
14089fi
14090
14091for ac_header in sys/memrange.h
14092do :
14093  ac_fn_c_check_header_mongrel "$LINENO" "sys/memrange.h" "ac_cv_header_sys_memrange_h" "$ac_includes_default"
14094if test "x$ac_cv_header_sys_memrange_h" = x""yes; then :
14095  cat >>confdefs.h <<_ACEOF
14096#define HAVE_SYS_MEMRANGE_H 1
14097_ACEOF
14098 ac_cv_memrange_h=yes
14099fi
14100
14101done
14102
14103if test "x$ac_cv_memrange_h" = xyes; then
14104	HAVE_MTRR=yes
14105fi
14106
14107if test "x$HAVE_MTRR" = xyes; then
14108
14109$as_echo "#define HAS_MTRR_SUPPORT 1" >>confdefs.h
14110
14111fi
14112
14113for ac_header in machine/mtrr.h
14114do :
14115  ac_fn_c_check_header_mongrel "$LINENO" "machine/mtrr.h" "ac_cv_header_machine_mtrr_h" "$ac_includes_default"
14116if test "x$ac_cv_header_machine_mtrr_h" = x""yes; then :
14117  cat >>confdefs.h <<_ACEOF
14118#define HAVE_MACHINE_MTRR_H 1
14119_ACEOF
14120 ac_cv_machine_mtrr_h=yes
14121fi
14122
14123done
14124
14125if test "x$ac_cv_machine_mtrr_h" = xyes; then
14126
14127$as_echo "#define HAS_MTRR_BUILTIN 1" >>confdefs.h
14128
14129fi
14130
14131for ac_header in sys/linker.h
14132do :
14133  ac_fn_c_check_header_compile "$LINENO" "sys/linker.h" "ac_cv_header_sys_linker_h" "#include <sys/param.h>
14134"
14135if test "x$ac_cv_header_sys_linker_h" = x""yes; then :
14136  cat >>confdefs.h <<_ACEOF
14137#define HAVE_SYS_LINKER_H 1
14138_ACEOF
14139 ac_cv_sys_linker_h=yes
14140else
14141  ac_cv_sys_linker_h=no
14142fi
14143
14144done
14145
14146 if test "x$ac_cv_sys_linker_h" = xyes; then
14147  FREEBSD_KLDLOAD_TRUE=
14148  FREEBSD_KLDLOAD_FALSE='#'
14149else
14150  FREEBSD_KLDLOAD_TRUE='#'
14151  FREEBSD_KLDLOAD_FALSE=
14152fi
14153
14154
14155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSV IPC" >&5
14156$as_echo_n "checking for SYSV IPC... " >&6; }
14157if test "${ac_cv_sysv_ipc+set}" = set; then :
14158  $as_echo_n "(cached) " >&6
14159else
14160  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14161/* end confdefs.h.  */
14162
14163#include <sys/types.h>
14164#include <sys/ipc.h>
14165#include <sys/shm.h>
14166
14167int
14168main ()
14169{
14170
14171{
14172    int id;
14173    id = shmget(IPC_PRIVATE, 512, SHM_W | SHM_R);
14174    if (id < 0) return -1;
14175    return shmctl(id, IPC_RMID, 0);
14176}
14177  ;
14178  return 0;
14179}
14180_ACEOF
14181if ac_fn_c_try_link "$LINENO"; then :
14182  ac_cv_sysv_ipc=yes
14183else
14184  ac_cv_sysv_ipc=no
14185fi
14186rm -f core conftest.err conftest.$ac_objext \
14187    conftest$ac_exeext conftest.$ac_ext
14188fi
14189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_ipc" >&5
14190$as_echo "$ac_cv_sysv_ipc" >&6; }
14191if test "x$ac_cv_sysv_ipc" = xyes; then
14192
14193$as_echo "#define HAVE_SYSV_IPC 1" >>confdefs.h
14194
14195fi
14196
14197if test -c /dev/xf86 ; then
14198
14199$as_echo "#define HAS_APERTURE_DRV 1" >>confdefs.h
14200
14201fi
14202
14203ac_fn_c_check_header_mongrel "$LINENO" "machine/apmvar.h" "ac_cv_header_machine_apmvar_h" "$ac_includes_default"
14204if test "x$ac_cv_header_machine_apmvar_h" = x""yes; then :
14205
14206	ac_fn_c_check_header_mongrel "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default"
14207if test "x$ac_cv_header_sys_event_h" = x""yes; then :
14208  ac_cv_BSD_KQUEUE_APM=yes
14209else
14210  ac_cv_BSD_APM=yes
14211fi
14212
14213
14214fi
14215
14216
14217
14218 if test "x$ac_cv_BSD_APM" = xyes; then
14219  BSD_APM_TRUE=
14220  BSD_APM_FALSE='#'
14221else
14222  BSD_APM_TRUE='#'
14223  BSD_APM_FALSE=
14224fi
14225
14226 if test "x$ac_cv_BSD_KQUEUE_APM" = xyes; then
14227  BSD_KQUEUE_APM_TRUE=
14228  BSD_KQUEUE_APM_FALSE='#'
14229else
14230  BSD_KQUEUE_APM_TRUE='#'
14231  BSD_KQUEUE_APM_FALSE=
14232fi
14233
14234
14235ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
14236if test "x$ac_cv_header_execinfo_h" = x""yes; then :
14237
14238    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lc" >&5
14239$as_echo_n "checking for backtrace in -lc... " >&6; }
14240if test "${ac_cv_lib_c_backtrace+set}" = set; then :
14241  $as_echo_n "(cached) " >&6
14242else
14243  ac_check_lib_save_LIBS=$LIBS
14244LIBS="-lc  $LIBS"
14245cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14246/* end confdefs.h.  */
14247
14248/* Override any GCC internal prototype to avoid an error.
14249   Use char because int might match the return type of a GCC
14250   builtin and then its argument prototype would still apply.  */
14251#ifdef __cplusplus
14252extern "C"
14253#endif
14254char backtrace ();
14255int
14256main ()
14257{
14258return backtrace ();
14259  ;
14260  return 0;
14261}
14262_ACEOF
14263if ac_fn_c_try_link "$LINENO"; then :
14264  ac_cv_lib_c_backtrace=yes
14265else
14266  ac_cv_lib_c_backtrace=no
14267fi
14268rm -f core conftest.err conftest.$ac_objext \
14269    conftest$ac_exeext conftest.$ac_ext
14270LIBS=$ac_check_lib_save_LIBS
14271fi
14272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_backtrace" >&5
14273$as_echo "$ac_cv_lib_c_backtrace" >&6; }
14274if test "x$ac_cv_lib_c_backtrace" = x""yes; then :
14275
14276
14277$as_echo "#define HAVE_BACKTRACE 1" >>confdefs.h
14278
14279
14280$as_echo "#define HAVE_EXECINFO_H 1" >>confdefs.h
14281
14282
14283fi
14284
14285
14286fi
14287
14288
14289
14290DEFAULT_INT10="x86emu"
14291
14292
14293case $host_cpu in
14294  alpha*)
14295	ALPHA_VIDEO=yes
14296	case $host_os in
14297	        *freebsd*)	SYS_LIBS=-lio ;;
14298		*netbsd*)
14299$as_echo "#define USE_ALPHA_PIO 1" >>confdefs.h
14300 ;;
14301	esac
14302	GLX_ARCH_DEFINES="-D__GLX_ALIGN64 -mieee"
14303	;;
14304  arm*)
14305	ARM_VIDEO=yes
14306	;;
14307  i*86)
14308	I386_VIDEO=yes
14309	case $host_os in
14310		*freebsd*)	$as_echo "#define USE_DEV_IO 1" >>confdefs.h
14311 ;;
14312		*dragonfly*)	$as_echo "#define USE_DEV_IO 1" >>confdefs.h
14313 ;;
14314		*netbsd*)	$as_echo "#define USE_I386_IOPL 1" >>confdefs.h
14315
14316				SYS_LIBS=-li386
14317				;;
14318		*openbsd*)	$as_echo "#define USE_I386_IOPL 1" >>confdefs.h
14319
14320				SYS_LIBS=-li386
14321				;;
14322	esac
14323        ;;
14324  powerpc*)
14325	PPC_VIDEO=yes
14326	case $host_os in
14327		*freebsd*)	DEFAULT_INT10=stub ;;
14328	esac
14329	;;
14330  sparc*)
14331	SPARC64_VIDEO=yes
14332	BSD_ARCH_SOURCES="sparc64_video.c ioperm_noop.c"
14333	GLX_ARCH_DEFINES="-D__GLX_ALIGN64"
14334	;;
14335  x86_64*|amd64*)
14336	I386_VIDEO=yes
14337	case $host_os in
14338		*freebsd*)
14339$as_echo "#define USE_DEV_IO 1" >>confdefs.h
14340 ;;
14341		*dragonfly*)
14342$as_echo "#define USE_DEV_IO 1" >>confdefs.h
14343 ;;
14344		*netbsd*)
14345$as_echo "#define USE_I386_IOPL 1" >>confdefs.h
14346
14347				SYS_LIBS=-lx86_64
14348				;;
14349		*openbsd*)
14350$as_echo "#define USE_AMD64_IOPL 1" >>confdefs.h
14351
14352				SYS_LIBS=-lamd64
14353				;;
14354	esac
14355	GLX_ARCH_DEFINES="-D__GLX_ALIGN64"
14356	;;
14357  ia64*)
14358  	GLX_ARCH_DEFINES="-D__GLX_ALIGN64"
14359	;;
14360  s390*)
14361  	GLX_ARCH_DEFINES="-D__GLX_ALIGN64"
14362	;;
14363esac
14364
14365
14366 if test "x$ALPHA_VIDEO" = xyes; then
14367  ALPHA_VIDEO_TRUE=
14368  ALPHA_VIDEO_FALSE='#'
14369else
14370  ALPHA_VIDEO_TRUE='#'
14371  ALPHA_VIDEO_FALSE=
14372fi
14373
14374 if test "x$ARM_VIDEO" = xyes; then
14375  ARM_VIDEO_TRUE=
14376  ARM_VIDEO_FALSE='#'
14377else
14378  ARM_VIDEO_TRUE='#'
14379  ARM_VIDEO_FALSE=
14380fi
14381
14382 if test "x$I386_VIDEO" = xyes; then
14383  I386_VIDEO_TRUE=
14384  I386_VIDEO_FALSE='#'
14385else
14386  I386_VIDEO_TRUE='#'
14387  I386_VIDEO_FALSE=
14388fi
14389
14390 if test "x$PPC_VIDEO" = xyes; then
14391  PPC_VIDEO_TRUE=
14392  PPC_VIDEO_FALSE='#'
14393else
14394  PPC_VIDEO_TRUE='#'
14395  PPC_VIDEO_FALSE=
14396fi
14397
14398 if test "x$SPARC64_VIDEO" = xyes; then
14399  SPARC64_VIDEO_TRUE=
14400  SPARC64_VIDEO_FALSE='#'
14401else
14402  SPARC64_VIDEO_TRUE='#'
14403  SPARC64_VIDEO_FALSE=
14404fi
14405
14406
14407DRI=no
14408KDRIVE_HW=no
14409case $host_os in
14410  *freebsd* | *dragonfly*)
14411	case $host_os in
14412		kfreebsd*-gnu) ;;
14413		*)
14414$as_echo "#define CSRG_BASED 1" >>confdefs.h
14415 ;;
14416	esac
14417
14418$as_echo "#define PCCONS_SUPPORT 1" >>confdefs.h
14419
14420
14421$as_echo "#define PCVT_SUPPORT 1" >>confdefs.h
14422
14423
14424$as_echo "#define SYSCONS_SUPPORT 1" >>confdefs.h
14425
14426	DRI=yes
14427	;;
14428  *netbsd*)
14429
14430$as_echo "#define CSRG_BASED 1" >>confdefs.h
14431
14432
14433$as_echo "#define PCCONS_SUPPORT 1" >>confdefs.h
14434
14435
14436$as_echo "#define PCVT_SUPPORT 1" >>confdefs.h
14437
14438
14439$as_echo "#define WSCONS_SUPPORT 1" >>confdefs.h
14440
14441	DRI=yes
14442	;;
14443  *openbsd*)
14444
14445$as_echo "#define CSRG_BASED 1" >>confdefs.h
14446
14447
14448$as_echo "#define PCVT_SUPPORT 1" >>confdefs.h
14449
14450
14451$as_echo "#define WSCONS_SUPPORT 1" >>confdefs.h
14452
14453	;;
14454  *linux*)
14455	DRI=yes
14456	KDRIVE_HW=yes
14457	;;
14458  *solaris*)
14459	if test -n "$PKG_CONFIG" && \
14460    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm\""; } >&5
14461  ($PKG_CONFIG --exists --print-errors "libdrm") 2>&5
14462  ac_status=$?
14463  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14464  test $ac_status = 0; }; then
14465  DRI=yes
14466else
14467  DRI=no
14468fi
14469	;;
14470  darwin*)
14471
14472$as_echo "#define CSRG_BASED 1" >>confdefs.h
14473
14474	;;
14475esac
14476 if test "x$KDRIVE_HW" = xyes; then
14477  KDRIVE_HW_TRUE=
14478  KDRIVE_HW_FALSE='#'
14479else
14480  KDRIVE_HW_TRUE='#'
14481  KDRIVE_HW_FALSE=
14482fi
14483
14484
14485
14486
14487# Check whether --with-release-version was given.
14488if test "${with_release_version+set}" = set; then :
14489  withval=$with_release_version; RELEASE_VERSION="$withval"
14490else
14491  RELEASE_VERSION=""
14492fi
14493
14494	if test "x$RELEASE_VERSION" != "x"; then
14495		PACKAGE="$PACKAGE-$RELEASE_VERSION"
14496		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
14497		{ $as_echo "$as_me:${as_lineno-$LINENO}: Building with package name set to $PACKAGE" >&5
14498$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
14499	fi
14500
14501cat >>confdefs.h <<_ACEOF
14502#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
14503_ACEOF
14504
14505	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
14506	if test "x$PVM" = "x"; then
14507		PVM="0"
14508	fi
14509
14510cat >>confdefs.h <<_ACEOF
14511#define PACKAGE_VERSION_MINOR $PVM
14512_ACEOF
14513
14514	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
14515	if test "x$PVP" = "x"; then
14516		PVP="0"
14517	fi
14518
14519cat >>confdefs.h <<_ACEOF
14520#define PACKAGE_VERSION_PATCHLEVEL $PVP
14521_ACEOF
14522
14523
14524PVMAJOR=`echo $PACKAGE_VERSION | cut -d . -f 1`
14525PVS=`echo $PACKAGE_VERSION | cut -d . -f 4 | cut -d - -f 1`
14526if test "x$PVS" = "x"; then
14527	PVS="0"
14528fi
14529
14530VENDOR_RELEASE="((($PVMAJOR) * 10000000) + (($PVM) * 100000) + (($PVP) * 1000) + $PVS)"
14531VENDOR_MAN_VERSION="Version ${PACKAGE_VERSION}"
14532
14533VENDOR_NAME="The X.Org Foundation"
14534VENDOR_NAME_SHORT="X.Org"
14535VENDOR_WEB="http://wiki.x.org"
14536
14537
14538
14539# Check whether --enable-werror was given.
14540if test "${enable_werror+set}" = set; then :
14541  enableval=$enable_werror; WERROR=$enableval
14542else
14543  WERROR=no
14544fi
14545
14546# Check whether --enable-debug was given.
14547if test "${enable_debug+set}" = set; then :
14548  enableval=$enable_debug; DEBUGGING=$enableval
14549else
14550  DEBUGGING=no
14551fi
14552
14553
14554# Check whether --with-int10 was given.
14555if test "${with_int10+set}" = set; then :
14556  withval=$with_int10; INT10="$withval"
14557else
14558  INT10="$DEFAULT_INT10"
14559fi
14560
14561
14562# Check whether --with-vendor-name was given.
14563if test "${with_vendor_name+set}" = set; then :
14564  withval=$with_vendor_name;  VENDOR_NAME="$withval"
14565fi
14566
14567
14568# Check whether --with-vendor-name-short was given.
14569if test "${with_vendor_name_short+set}" = set; then :
14570  withval=$with_vendor_name_short;  VENDOR_NAME_SHORT="$withval"
14571fi
14572
14573
14574# Check whether --with-vendor-web was given.
14575if test "${with_vendor_web+set}" = set; then :
14576  withval=$with_vendor_web;  VENDOR_WEB="$withval"
14577fi
14578
14579
14580# Check whether --with-module-dir was given.
14581if test "${with_module_dir+set}" = set; then :
14582  withval=$with_module_dir;  moduledir="$withval"
14583else
14584   moduledir="${libdir}/xorg/modules"
14585fi
14586
14587
14588# Check whether --with-log-dir was given.
14589if test "${with_log_dir+set}" = set; then :
14590  withval=$with_log_dir;  logdir="$withval"
14591else
14592   logdir="$localstatedir/log"
14593fi
14594
14595
14596# Check whether --with-builder-addr was given.
14597if test "${with_builder_addr+set}" = set; then :
14598  withval=$with_builder_addr;  BUILDERADDR="$withval"
14599else
14600   BUILDERADDR="xorg@lists.freedesktop.org"
14601fi
14602
14603
14604# Check whether --with-os-name was given.
14605if test "${with_os_name+set}" = set; then :
14606  withval=$with_os_name;  OSNAME="$withval"
14607else
14608   OSNAME=`uname -srm`
14609fi
14610
14611
14612# Check whether --with-os-vendor was given.
14613if test "${with_os_vendor+set}" = set; then :
14614  withval=$with_os_vendor;  OSVENDOR="$withval"
14615else
14616   OSVENDOR=""
14617fi
14618
14619
14620# Check whether --with-builderstring was given.
14621if test "${with_builderstring+set}" = set; then :
14622  withval=$with_builderstring;  BUILDERSTRING="$withval"
14623
14624fi
14625
14626
14627# Check whether --with-fontdir was given.
14628if test "${with_fontdir+set}" = set; then :
14629  withval=$with_fontdir;  FONTDIR="$withval"
14630else
14631   FONTDIR="${libdir}/X11/fonts"
14632fi
14633
14634DEFAULT_FONT_PATH="${FONTDIR}/misc/,${FONTDIR}/TTF/,${FONTDIR}/OTF,${FONTDIR}/Type1/,${FONTDIR}/100dpi/,${FONTDIR}/75dpi/"
14635case $host_os in
14636	darwin*)    DEFAULT_FONT_PATH="${DEFAULT_FONT_PATH},/Library/Fonts,/System/Library/Fonts" ;;
14637esac
14638
14639# Check whether --with-default-font-path was given.
14640if test "${with_default_font_path+set}" = set; then :
14641  withval=$with_default_font_path;  FONTPATH="$withval"
14642else
14643   FONTPATH="${DEFAULT_FONT_PATH}"
14644fi
14645
14646
14647# Check whether --with-xkb-path was given.
14648if test "${with_xkb_path+set}" = set; then :
14649  withval=$with_xkb_path;  XKBPATH="$withval"
14650else
14651   XKBPATH="${datadir}/X11/xkb"
14652fi
14653
14654
14655# Check whether --with-xkb-output was given.
14656if test "${with_xkb_output+set}" = set; then :
14657  withval=$with_xkb_output;  XKBOUTPUT="$withval"
14658else
14659   XKBOUTPUT="compiled"
14660fi
14661
14662
14663# Check whether --with-serverconfig-path was given.
14664if test "${with_serverconfig_path+set}" = set; then :
14665  withval=$with_serverconfig_path;  SERVERCONFIG="$withval"
14666else
14667   SERVERCONFIG="${libdir}/xorg"
14668fi
14669
14670
14671# Check whether --with-apple-applications-dir was given.
14672if test "${with_apple_applications_dir+set}" = set; then :
14673  withval=$with_apple_applications_dir;  APPLE_APPLICATIONS_DIR="${withval}"
14674else
14675   APPLE_APPLICATIONS_DIR="/Applications/Utilities"
14676fi
14677
14678
14679
14680# Check whether --with-apple-application-name was given.
14681if test "${with_apple_application_name+set}" = set; then :
14682  withval=$with_apple_application_name;  APPLE_APPLICATION_NAME="${withval}"
14683else
14684   APPLE_APPLICATION_NAME="X11"
14685fi
14686
14687
14688
14689# Check whether --with-apple-application-id was given.
14690if test "${with_apple_application_id+set}" = set; then :
14691  withval=$with_apple_application_id;  APPLE_APPLICATION_ID="${withval}"
14692else
14693   APPLE_APPLICATION_ID="org.x.X11"
14694fi
14695
14696
14697# Check whether --enable-builddocs was given.
14698if test "${enable_builddocs+set}" = set; then :
14699  enableval=$enable_builddocs; BUILDDOCS=$enableval
14700else
14701  BUILDDOCS=no
14702fi
14703
14704# Check whether --enable-install-libxf86config was given.
14705if test "${enable_install_libxf86config+set}" = set; then :
14706  enableval=$enable_install_libxf86config; INSTALL_LIBXF86CONFIG=$enableval
14707else
14708  INSTALL_LIBXF86CONFIG=no
14709fi
14710
14711# Check whether --enable-null-root-cursor was given.
14712if test "${enable_null_root_cursor+set}" = set; then :
14713  enableval=$enable_null_root_cursor; NULL_ROOT_CURSOR=$enableval
14714else
14715  NULL_ROOT_CURSOR=no
14716fi
14717
14718
14719
14720# Check whether --with-mesa-source was given.
14721if test "${with_mesa_source+set}" = set; then :
14722  withval=$with_mesa_source;  MESA_SOURCE="$withval"
14723else
14724   MESA_SOURCE=""
14725fi
14726
14727
14728# Check whether --with-dri-driver-path was given.
14729if test "${with_dri_driver_path+set}" = set; then :
14730  withval=$with_dri_driver_path;  DRI_DRIVER_PATH="$withval"
14731else
14732   DRI_DRIVER_PATH="${libdir}/dri"
14733fi
14734
14735# Check whether --enable-aiglx was given.
14736if test "${enable_aiglx+set}" = set; then :
14737  enableval=$enable_aiglx; AIGLX=$enableval
14738else
14739  AIGLX=yes
14740fi
14741
14742# Check whether --enable-glx-tls was given.
14743if test "${enable_glx_tls+set}" = set; then :
14744  enableval=$enable_glx_tls; GLX_USE_TLS=$enableval
14745else
14746  GLX_USE_TLS=no
14747fi
14748
14749
14750# Check whether --enable-registry was given.
14751if test "${enable_registry+set}" = set; then :
14752  enableval=$enable_registry; XREGISTRY=$enableval
14753else
14754  XREGISTRY=yes
14755fi
14756
14757# Check whether --enable-composite was given.
14758if test "${enable_composite+set}" = set; then :
14759  enableval=$enable_composite; COMPOSITE=$enableval
14760else
14761  COMPOSITE=yes
14762fi
14763
14764# Check whether --enable-mitshm was given.
14765if test "${enable_mitshm+set}" = set; then :
14766  enableval=$enable_mitshm; MITSHM=$enableval
14767else
14768  MITSHM=yes
14769fi
14770
14771# Check whether --enable-xres was given.
14772if test "${enable_xres+set}" = set; then :
14773  enableval=$enable_xres; RES=$enableval
14774else
14775  RES=yes
14776fi
14777
14778# Check whether --enable-record was given.
14779if test "${enable_record+set}" = set; then :
14780  enableval=$enable_record; RECORD=$enableval
14781else
14782  RECORD=no
14783fi
14784
14785# Check whether --enable-xv was given.
14786if test "${enable_xv+set}" = set; then :
14787  enableval=$enable_xv; XV=$enableval
14788else
14789  XV=yes
14790fi
14791
14792# Check whether --enable-xvmc was given.
14793if test "${enable_xvmc+set}" = set; then :
14794  enableval=$enable_xvmc; XVMC=$enableval
14795else
14796  XVMC=yes
14797fi
14798
14799# Check whether --enable-dga was given.
14800if test "${enable_dga+set}" = set; then :
14801  enableval=$enable_dga; DGA=$enableval
14802else
14803  DGA=auto
14804fi
14805
14806# Check whether --enable-screensaver was given.
14807if test "${enable_screensaver+set}" = set; then :
14808  enableval=$enable_screensaver; SCREENSAVER=$enableval
14809else
14810  SCREENSAVER=yes
14811fi
14812
14813# Check whether --enable-xdmcp was given.
14814if test "${enable_xdmcp+set}" = set; then :
14815  enableval=$enable_xdmcp; XDMCP=$enableval
14816else
14817  XDMCP=auto
14818fi
14819
14820# Check whether --enable-xdm-auth-1 was given.
14821if test "${enable_xdm_auth_1+set}" = set; then :
14822  enableval=$enable_xdm_auth_1; XDMAUTH=$enableval
14823else
14824  XDMAUTH=auto
14825fi
14826
14827# Check whether --enable-glx was given.
14828if test "${enable_glx+set}" = set; then :
14829  enableval=$enable_glx; GLX=$enableval
14830else
14831  GLX=yes
14832fi
14833
14834# Check whether --enable-dri was given.
14835if test "${enable_dri+set}" = set; then :
14836  enableval=$enable_dri; DRI=$enableval
14837fi
14838
14839# Check whether --enable-dri2 was given.
14840if test "${enable_dri2+set}" = set; then :
14841  enableval=$enable_dri2; DRI2=$enableval
14842else
14843  DRI2=auto
14844fi
14845
14846# Check whether --enable-xinerama was given.
14847if test "${enable_xinerama+set}" = set; then :
14848  enableval=$enable_xinerama; XINERAMA=$enableval
14849else
14850  XINERAMA=yes
14851fi
14852
14853# Check whether --enable-xf86vidmode was given.
14854if test "${enable_xf86vidmode+set}" = set; then :
14855  enableval=$enable_xf86vidmode; XF86VIDMODE=$enableval
14856else
14857  XF86VIDMODE=auto
14858fi
14859
14860# Check whether --enable-xace was given.
14861if test "${enable_xace+set}" = set; then :
14862  enableval=$enable_xace; XACE=$enableval
14863else
14864  XACE=yes
14865fi
14866
14867# Check whether --enable-xselinux was given.
14868if test "${enable_xselinux+set}" = set; then :
14869  enableval=$enable_xselinux; XSELINUX=$enableval
14870else
14871  XSELINUX=no
14872fi
14873
14874# Check whether --enable-xcsecurity was given.
14875if test "${enable_xcsecurity+set}" = set; then :
14876  enableval=$enable_xcsecurity; XCSECURITY=$enableval
14877else
14878  XCSECURITY=no
14879fi
14880
14881# Check whether --enable-xcalibrate was given.
14882if test "${enable_xcalibrate+set}" = set; then :
14883  enableval=$enable_xcalibrate; XCALIBRATE=$enableval
14884else
14885  XCALIBRATE=no
14886fi
14887
14888# Check whether --enable-tslib was given.
14889if test "${enable_tslib+set}" = set; then :
14890  enableval=$enable_tslib; TSLIB=$enableval
14891else
14892  TSLIB=no
14893fi
14894
14895# Check whether --enable-multibuffer was given.
14896if test "${enable_multibuffer+set}" = set; then :
14897  enableval=$enable_multibuffer; MULTIBUFFER=$enableval
14898else
14899  MULTIBUFFER=no
14900fi
14901
14902# Check whether --enable-dbe was given.
14903if test "${enable_dbe+set}" = set; then :
14904  enableval=$enable_dbe; DBE=$enableval
14905else
14906  DBE=yes
14907fi
14908
14909# Check whether --enable-xf86bigfont was given.
14910if test "${enable_xf86bigfont+set}" = set; then :
14911  enableval=$enable_xf86bigfont; XF86BIGFONT=$enableval
14912else
14913  XF86BIGFONT=no
14914fi
14915
14916# Check whether --enable-dpms was given.
14917if test "${enable_dpms+set}" = set; then :
14918  enableval=$enable_dpms; DPMSExtension=$enableval
14919else
14920  DPMSExtension=yes
14921fi
14922
14923# Check whether --enable-config-dbus was given.
14924if test "${enable_config_dbus+set}" = set; then :
14925  enableval=$enable_config_dbus; CONFIG_DBUS_API=$enableval
14926else
14927  CONFIG_DBUS_API=no
14928fi
14929
14930# Check whether --enable-config-hal was given.
14931if test "${enable_config_hal+set}" = set; then :
14932  enableval=$enable_config_hal; CONFIG_HAL=$enableval
14933else
14934  CONFIG_HAL=auto
14935fi
14936
14937# Check whether --enable-xfree86-utils was given.
14938if test "${enable_xfree86_utils+set}" = set; then :
14939  enableval=$enable_xfree86_utils; XF86UTILS=$enableval
14940else
14941  XF86UTILS=yes
14942fi
14943
14944
14945# Check whether --enable-xorg was given.
14946if test "${enable_xorg+set}" = set; then :
14947  enableval=$enable_xorg; XORG=$enableval
14948else
14949  XORG=auto
14950fi
14951
14952# Check whether --enable-dmx was given.
14953if test "${enable_dmx+set}" = set; then :
14954  enableval=$enable_dmx; DMX=$enableval
14955else
14956  DMX=no
14957fi
14958
14959# Check whether --enable-xvfb was given.
14960if test "${enable_xvfb+set}" = set; then :
14961  enableval=$enable_xvfb; XVFB=$enableval
14962else
14963  XVFB=yes
14964fi
14965
14966# Check whether --enable-xnest was given.
14967if test "${enable_xnest+set}" = set; then :
14968  enableval=$enable_xnest; XNEST=$enableval
14969else
14970  XNEST=auto
14971fi
14972
14973# Check whether --enable-xquartz was given.
14974if test "${enable_xquartz+set}" = set; then :
14975  enableval=$enable_xquartz; XQUARTZ=$enableval
14976else
14977  XQUARTZ=auto
14978fi
14979
14980# Check whether --enable-standalone-xpbproxy was given.
14981if test "${enable_standalone_xpbproxy+set}" = set; then :
14982  enableval=$enable_standalone_xpbproxy; STANDALONE_XPBPROXY=$enableval
14983else
14984  STANDALONE_XPBPROXY=no
14985fi
14986
14987# Check whether --enable-xwin was given.
14988if test "${enable_xwin+set}" = set; then :
14989  enableval=$enable_xwin; XWIN=$enableval
14990else
14991  XWIN=auto
14992fi
14993
14994# Check whether --enable-kdrive was given.
14995if test "${enable_kdrive+set}" = set; then :
14996  enableval=$enable_kdrive; KDRIVE=$enableval
14997else
14998  KDRIVE=no
14999fi
15000
15001# Check whether --enable-xephyr was given.
15002if test "${enable_xephyr+set}" = set; then :
15003  enableval=$enable_xephyr; XEPHYR=$enableval
15004else
15005  XEPHYR=auto
15006fi
15007
15008# Check whether --enable-xsdl was given.
15009if test "${enable_xsdl+set}" = set; then :
15010  enableval=$enable_xsdl; XSDL=$enableval
15011else
15012  XSDL=auto
15013fi
15014
15015# Check whether --enable-xfake was given.
15016if test "${enable_xfake+set}" = set; then :
15017  enableval=$enable_xfake; XFAKE=$enableval
15018else
15019  XFAKE=auto
15020fi
15021
15022# Check whether --enable-xfbdev was given.
15023if test "${enable_xfbdev+set}" = set; then :
15024  enableval=$enable_xfbdev; XFBDEV=$enableval
15025else
15026  XFBDEV=auto
15027fi
15028
15029
15030
15031# Check whether --enable-install-setuid was given.
15032if test "${enable_install_setuid+set}" = set; then :
15033  enableval=$enable_install_setuid; SETUID=$enableval
15034else
15035  SETUID=auto
15036fi
15037
15038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if we can install the Xorg server as root" >&5
15039$as_echo_n "checking to see if we can install the Xorg server as root... " >&6; }
15040if test "x$SETUID" = "xauto" ; then
15041	case $host_os in
15042	    darwin*)		SETUID="no"  ;;
15043	    *)
15044	   	case $host_cpu in
15045		    sparc)	SETUID="no"  ;;
15046		    *)		SETUID="yes" ;;
15047		esac
15048	esac
15049	if test "x$SETUID" = xyes; then
15050		touch testfile
15051		chown root testfile > /dev/null 2>&1 || SETUID="no"
15052		rm -f testfile
15053	fi
15054fi
15055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETUID" >&5
15056$as_echo "$SETUID" >&6; }
15057 if test "x$SETUID" = "xyes"; then
15058  INSTALL_SETUID_TRUE=
15059  INSTALL_SETUID_FALSE='#'
15060else
15061  INSTALL_SETUID_TRUE='#'
15062  INSTALL_SETUID_FALSE=
15063fi
15064
15065
15066
15067
15068# Transport selection macro from xtrans.m4
15069
15070
15071
15072 case $host_os in
15073	mingw*)	unixdef="no"   ;;
15074	*)	unixdef="yes"  ;;
15075 esac
15076 # Check whether --enable-unix-transport was given.
15077if test "${enable_unix_transport+set}" = set; then :
15078  enableval=$enable_unix_transport; UNIXCONN=$enableval
15079else
15080  UNIXCONN=$unixdef
15081fi
15082
15083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
15084$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
15085 if test "$UNIXCONN" = "yes"; then
15086
15087$as_echo "#define UNIXCONN 1" >>confdefs.h
15088
15089 fi
15090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
15091$as_echo "$UNIXCONN" >&6; }
15092 # Check whether --enable-tcp-transport was given.
15093if test "${enable_tcp_transport+set}" = set; then :
15094  enableval=$enable_tcp_transport; TCPCONN=$enableval
15095else
15096  TCPCONN=yes
15097fi
15098
15099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
15100$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
15101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
15102$as_echo "$TCPCONN" >&6; }
15103 if test "$TCPCONN" = "yes"; then
15104
15105$as_echo "#define TCPCONN 1" >>confdefs.h
15106
15107
15108 # SVR4 hides these in libraries other than libc
15109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
15110$as_echo_n "checking for library containing socket... " >&6; }
15111if test "${ac_cv_search_socket+set}" = set; then :
15112  $as_echo_n "(cached) " >&6
15113else
15114  ac_func_search_save_LIBS=$LIBS
15115cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15116/* end confdefs.h.  */
15117
15118/* Override any GCC internal prototype to avoid an error.
15119   Use char because int might match the return type of a GCC
15120   builtin and then its argument prototype would still apply.  */
15121#ifdef __cplusplus
15122extern "C"
15123#endif
15124char socket ();
15125int
15126main ()
15127{
15128return socket ();
15129  ;
15130  return 0;
15131}
15132_ACEOF
15133for ac_lib in '' socket; do
15134  if test -z "$ac_lib"; then
15135    ac_res="none required"
15136  else
15137    ac_res=-l$ac_lib
15138    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15139  fi
15140  if ac_fn_c_try_link "$LINENO"; then :
15141  ac_cv_search_socket=$ac_res
15142fi
15143rm -f core conftest.err conftest.$ac_objext \
15144    conftest$ac_exeext
15145  if test "${ac_cv_search_socket+set}" = set; then :
15146  break
15147fi
15148done
15149if test "${ac_cv_search_socket+set}" = set; then :
15150
15151else
15152  ac_cv_search_socket=no
15153fi
15154rm conftest.$ac_ext
15155LIBS=$ac_func_search_save_LIBS
15156fi
15157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
15158$as_echo "$ac_cv_search_socket" >&6; }
15159ac_res=$ac_cv_search_socket
15160if test "$ac_res" != no; then :
15161  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15162
15163fi
15164
15165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
15166$as_echo_n "checking for library containing gethostbyname... " >&6; }
15167if test "${ac_cv_search_gethostbyname+set}" = set; then :
15168  $as_echo_n "(cached) " >&6
15169else
15170  ac_func_search_save_LIBS=$LIBS
15171cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15172/* end confdefs.h.  */
15173
15174/* Override any GCC internal prototype to avoid an error.
15175   Use char because int might match the return type of a GCC
15176   builtin and then its argument prototype would still apply.  */
15177#ifdef __cplusplus
15178extern "C"
15179#endif
15180char gethostbyname ();
15181int
15182main ()
15183{
15184return gethostbyname ();
15185  ;
15186  return 0;
15187}
15188_ACEOF
15189for ac_lib in '' nsl; do
15190  if test -z "$ac_lib"; then
15191    ac_res="none required"
15192  else
15193    ac_res=-l$ac_lib
15194    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15195  fi
15196  if ac_fn_c_try_link "$LINENO"; then :
15197  ac_cv_search_gethostbyname=$ac_res
15198fi
15199rm -f core conftest.err conftest.$ac_objext \
15200    conftest$ac_exeext
15201  if test "${ac_cv_search_gethostbyname+set}" = set; then :
15202  break
15203fi
15204done
15205if test "${ac_cv_search_gethostbyname+set}" = set; then :
15206
15207else
15208  ac_cv_search_gethostbyname=no
15209fi
15210rm conftest.$ac_ext
15211LIBS=$ac_func_search_save_LIBS
15212fi
15213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
15214$as_echo "$ac_cv_search_gethostbyname" >&6; }
15215ac_res=$ac_cv_search_gethostbyname
15216if test "$ac_res" != no; then :
15217  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15218
15219fi
15220
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
15222$as_echo_n "checking for main in -lws2_32... " >&6; }
15223if test "${ac_cv_lib_ws2_32_main+set}" = set; then :
15224  $as_echo_n "(cached) " >&6
15225else
15226  ac_check_lib_save_LIBS=$LIBS
15227LIBS="-lws2_32  $LIBS"
15228cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15229/* end confdefs.h.  */
15230
15231
15232int
15233main ()
15234{
15235return main ();
15236  ;
15237  return 0;
15238}
15239_ACEOF
15240if ac_fn_c_try_link "$LINENO"; then :
15241  ac_cv_lib_ws2_32_main=yes
15242else
15243  ac_cv_lib_ws2_32_main=no
15244fi
15245rm -f core conftest.err conftest.$ac_objext \
15246    conftest$ac_exeext conftest.$ac_ext
15247LIBS=$ac_check_lib_save_LIBS
15248fi
15249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
15250$as_echo "$ac_cv_lib_ws2_32_main" >&6; }
15251if test "x$ac_cv_lib_ws2_32_main" = x""yes; then :
15252  cat >>confdefs.h <<_ACEOF
15253#define HAVE_LIBWS2_32 1
15254_ACEOF
15255
15256  LIBS="-lws2_32 $LIBS"
15257
15258fi
15259ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main
15260
15261
15262 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
15263 # Check whether --enable-ipv6 was given.
15264if test "${enable_ipv6+set}" = set; then :
15265  enableval=$enable_ipv6; IPV6CONN=$enableval
15266else
15267  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
15268if test "x$ac_cv_func_getaddrinfo" = x""yes; then :
15269  IPV6CONN=yes
15270else
15271  IPV6CONN=no
15272fi
15273
15274fi
15275
15276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
15277$as_echo_n "checking if IPv6 support should be built... " >&6; }
15278 if test "$IPV6CONN" = "yes"; then
15279
15280$as_echo "#define IPv6 1" >>confdefs.h
15281
15282 fi
15283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
15284$as_echo "$IPV6CONN" >&6; }
15285
15286 # 4.3BSD-Reno added a new member to struct sockaddr_in
15287 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
15288#include <sys/types.h>
15289#include <sys/socket.h>
15290#include <netinet/in.h>
15291
15292"
15293if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then :
15294
15295$as_echo "#define BSD44SOCKETS 1" >>confdefs.h
15296
15297fi
15298
15299
15300 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
15301 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
15302$ac_includes_default
15303#include <sys/socket.h>
15304"
15305if test "x$ac_cv_type_socklen_t" = x""yes; then :
15306
15307cat >>confdefs.h <<_ACEOF
15308#define HAVE_SOCKLEN_T 1
15309_ACEOF
15310
15311
15312fi
15313
15314
15315
15316 fi
15317 case $host_os in
15318	solaris*|sco*|sysv4*)	localdef="yes" ;;
15319	*)			localdef="no"  ;;
15320 esac
15321 # Check whether --enable-local-transport was given.
15322if test "${enable_local_transport+set}" = set; then :
15323  enableval=$enable_local_transport; LOCALCONN=$enableval
15324else
15325  LOCALCONN=$localdef
15326fi
15327
15328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
15329$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
15331$as_echo "$LOCALCONN" >&6; }
15332 if test "$LOCALCONN" = "yes"; then
15333
15334$as_echo "#define LOCALCONN 1" >>confdefs.h
15335
15336 fi
15337
15338
15339
15340# Secure RPC detection macro from xtrans.m4
15341
15342 # Check whether --enable-secure-rpc was given.
15343if test "${enable_secure_rpc+set}" = set; then :
15344  enableval=$enable_secure_rpc; SECURE_RPC=$enableval
15345else
15346  SECURE_RPC="try"
15347fi
15348
15349
15350 if test "x$SECURE_RPC" = "xyes" -o "x$SECURE_RPC" = "xtry" ; then
15351	FOUND_SECURE_RPC="no"
15352	for ac_func in authdes_seccreate authdes_create
15353do :
15354  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15355ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15356eval as_val=\$$as_ac_var
15357   if test "x$as_val" = x""yes; then :
15358  cat >>confdefs.h <<_ACEOF
15359#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15360_ACEOF
15361 FOUND_SECURE_RPC="yes"
15362fi
15363done
15364
15365	if test "x$FOUND_SECURE_RPC" = "xno" ; then
15366		if test "x$SECURE_RPC" = "xyes" ; then
15367	as_fn_error "Secure RPC requested, but required functions not found" "$LINENO" 5
15368		fi
15369		SECURE_RPC="no"
15370	else
15371				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsecretkey" >&5
15372$as_echo_n "checking for library containing getsecretkey... " >&6; }
15373if test "${ac_cv_search_getsecretkey+set}" = set; then :
15374  $as_echo_n "(cached) " >&6
15375else
15376  ac_func_search_save_LIBS=$LIBS
15377cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15378/* end confdefs.h.  */
15379
15380/* Override any GCC internal prototype to avoid an error.
15381   Use char because int might match the return type of a GCC
15382   builtin and then its argument prototype would still apply.  */
15383#ifdef __cplusplus
15384extern "C"
15385#endif
15386char getsecretkey ();
15387int
15388main ()
15389{
15390return getsecretkey ();
15391  ;
15392  return 0;
15393}
15394_ACEOF
15395for ac_lib in '' rpcsvc; do
15396  if test -z "$ac_lib"; then
15397    ac_res="none required"
15398  else
15399    ac_res=-l$ac_lib
15400    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15401  fi
15402  if ac_fn_c_try_link "$LINENO"; then :
15403  ac_cv_search_getsecretkey=$ac_res
15404fi
15405rm -f core conftest.err conftest.$ac_objext \
15406    conftest$ac_exeext
15407  if test "${ac_cv_search_getsecretkey+set}" = set; then :
15408  break
15409fi
15410done
15411if test "${ac_cv_search_getsecretkey+set}" = set; then :
15412
15413else
15414  ac_cv_search_getsecretkey=no
15415fi
15416rm conftest.$ac_ext
15417LIBS=$ac_func_search_save_LIBS
15418fi
15419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsecretkey" >&5
15420$as_echo "$ac_cv_search_getsecretkey" >&6; }
15421ac_res=$ac_cv_search_getsecretkey
15422if test "$ac_res" != no; then :
15423  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15424
15425fi
15426
15427		SECURE_RPC="yes"
15428	fi
15429 fi
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Secure RPC authentication (\"SUN-DES-1\") should be supported" >&5
15431$as_echo_n "checking if Secure RPC authentication (\"SUN-DES-1\") should be supported... " >&6; }
15432 if test "x$SECURE_RPC" = "xyes" ; then
15433
15434$as_echo "#define SECURE_RPC 1" >>confdefs.h
15435
15436 fi
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SECURE_RPC" >&5
15438$as_echo "$SECURE_RPC" >&6; }
15439
15440 if test "x$SECURE_RPC" = xyes; then
15441  SECURE_RPC_TRUE=
15442  SECURE_RPC_FALSE='#'
15443else
15444  SECURE_RPC_TRUE='#'
15445  SECURE_RPC_FALSE=
15446fi
15447
15448
15449 if test "x$INT10" = xvm86; then
15450  INT10_VM86_TRUE=
15451  INT10_VM86_FALSE='#'
15452else
15453  INT10_VM86_TRUE='#'
15454  INT10_VM86_FALSE=
15455fi
15456
15457 if test "x$INT10" = xx86emu; then
15458  INT10_X86EMU_TRUE=
15459  INT10_X86EMU_FALSE='#'
15460else
15461  INT10_X86EMU_TRUE='#'
15462  INT10_X86EMU_FALSE=
15463fi
15464
15465 if test "x$INT10" = xstub; then
15466  INT10_STUB_TRUE=
15467  INT10_STUB_FALSE='#'
15468else
15469  INT10_STUB_TRUE='#'
15470  INT10_STUB_FALSE=
15471fi
15472
15473if test "x$INT10" = xyes; then
15474		for ac_header in sys/vm86.h sys/io.h
15475do :
15476  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15477ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15478eval as_val=\$$as_ac_Header
15479   if test "x$as_val" = x""yes; then :
15480  cat >>confdefs.h <<_ACEOF
15481#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15482_ACEOF
15483
15484fi
15485
15486done
15487
15488fi
15489
15490 if test "x$BUILDDOCS" = xyes; then
15491  BUILDDOCS_TRUE=
15492  BUILDDOCS_FALSE='#'
15493else
15494  BUILDDOCS_TRUE='#'
15495  BUILDDOCS_FALSE=
15496fi
15497
15498
15499
15500if test x$XORG_SGML_PATH = x ; then
15501    XORG_SGML_PATH=$prefix/share/sgml
15502fi
15503HAVE_DEFS_ENT=
15504
15505if test x"$cross_compiling" = x"yes" ; then
15506  HAVE_DEFS_ENT=no
15507else
15508  as_ac_File=`$as_echo "ac_cv_file_$XORG_SGML_PATH/X11/defs.ent" | $as_tr_sh`
15509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $XORG_SGML_PATH/X11/defs.ent" >&5
15510$as_echo_n "checking for $XORG_SGML_PATH/X11/defs.ent... " >&6; }
15511if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
15512  $as_echo_n "(cached) " >&6
15513else
15514  test "$cross_compiling" = yes &&
15515  as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
15516if test -r "$XORG_SGML_PATH/X11/defs.ent"; then
15517  eval "$as_ac_File=yes"
15518else
15519  eval "$as_ac_File=no"
15520fi
15521fi
15522eval ac_res=\$$as_ac_File
15523	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15524$as_echo "$ac_res" >&6; }
15525eval as_val=\$$as_ac_File
15526   if test "x$as_val" = x""yes; then :
15527  HAVE_DEFS_ENT=yes
15528fi
15529
15530fi
15531
15532# Extract the first word of "linuxdoc", so it can be a program name with args.
15533set dummy linuxdoc; ac_word=$2
15534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15535$as_echo_n "checking for $ac_word... " >&6; }
15536if test "${ac_cv_path_LINUXDOC+set}" = set; then :
15537  $as_echo_n "(cached) " >&6
15538else
15539  case $LINUXDOC in
15540  [\\/]* | ?:[\\/]*)
15541  ac_cv_path_LINUXDOC="$LINUXDOC" # Let the user override the test with a path.
15542  ;;
15543  *)
15544  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15545for as_dir in $PATH
15546do
15547  IFS=$as_save_IFS
15548  test -z "$as_dir" && as_dir=.
15549    for ac_exec_ext in '' $ac_executable_extensions; do
15550  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15551    ac_cv_path_LINUXDOC="$as_dir/$ac_word$ac_exec_ext"
15552    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15553    break 2
15554  fi
15555done
15556  done
15557IFS=$as_save_IFS
15558
15559  ;;
15560esac
15561fi
15562LINUXDOC=$ac_cv_path_LINUXDOC
15563if test -n "$LINUXDOC"; then
15564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUXDOC" >&5
15565$as_echo "$LINUXDOC" >&6; }
15566else
15567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15568$as_echo "no" >&6; }
15569fi
15570
15571
15572# Extract the first word of "ps2pdf", so it can be a program name with args.
15573set dummy ps2pdf; ac_word=$2
15574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15575$as_echo_n "checking for $ac_word... " >&6; }
15576if test "${ac_cv_path_PS2PDF+set}" = set; then :
15577  $as_echo_n "(cached) " >&6
15578else
15579  case $PS2PDF in
15580  [\\/]* | ?:[\\/]*)
15581  ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path.
15582  ;;
15583  *)
15584  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15585for as_dir in $PATH
15586do
15587  IFS=$as_save_IFS
15588  test -z "$as_dir" && as_dir=.
15589    for ac_exec_ext in '' $ac_executable_extensions; do
15590  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15591    ac_cv_path_PS2PDF="$as_dir/$ac_word$ac_exec_ext"
15592    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15593    break 2
15594  fi
15595done
15596  done
15597IFS=$as_save_IFS
15598
15599  ;;
15600esac
15601fi
15602PS2PDF=$ac_cv_path_PS2PDF
15603if test -n "$PS2PDF"; then
15604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS2PDF" >&5
15605$as_echo "$PS2PDF" >&6; }
15606else
15607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15608$as_echo "no" >&6; }
15609fi
15610
15611
15612
15613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Whether to build documentation" >&5
15614$as_echo_n "checking Whether to build documentation... " >&6; }
15615
15616if test x$HAVE_DEFS_ENT != x && test x$LINUXDOC != x ; then
15617   BUILDDOC=yes
15618else
15619   BUILDDOC=no
15620fi
15621
15622 if test x$BUILDDOC = xyes; then
15623  BUILD_LINUXDOC_TRUE=
15624  BUILD_LINUXDOC_FALSE='#'
15625else
15626  BUILD_LINUXDOC_TRUE='#'
15627  BUILD_LINUXDOC_FALSE=
15628fi
15629
15630
15631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILDDOC" >&5
15632$as_echo "$BUILDDOC" >&6; }
15633
15634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Whether to build pdf documentation" >&5
15635$as_echo_n "checking Whether to build pdf documentation... " >&6; }
15636
15637if test x$PS2PDF != x && test x$BUILD_PDFDOC != xno; then
15638   BUILDPDFDOC=yes
15639else
15640   BUILDPDFDOC=no
15641fi
15642
15643 if test x$BUILDPDFDOC = xyes; then
15644  BUILD_PDFDOC_TRUE=
15645  BUILD_PDFDOC_FALSE='#'
15646else
15647  BUILD_PDFDOC_TRUE='#'
15648  BUILD_PDFDOC_FALSE=
15649fi
15650
15651
15652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILDPDFDOC" >&5
15653$as_echo "$BUILDPDFDOC" >&6; }
15654
15655MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH GROFF_NO_SGR=y $LINUXDOC -B txt"
15656MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B latex --papersize=letter --output=ps"
15657MAKE_PDF="$PS2PDF"
15658MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC  -B html --split=0"
15659
15660
15661
15662
15663
15664
15665
15666 if test "x$INSTALL_LIBXF86CONFIG" = xyes; then
15667  INSTALL_LIBXF86CONFIG_TRUE=
15668  INSTALL_LIBXF86CONFIG_FALSE='#'
15669else
15670  INSTALL_LIBXF86CONFIG_TRUE='#'
15671  INSTALL_LIBXF86CONFIG_FALSE=
15672fi
15673
15674
15675case $host_os in
15676	darwin*)
15677		DRI2=no
15678
15679		if test x$XQUARTZ = xauto; then
15680			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xquartz" >&5
15681$as_echo_n "checking whether to build Xquartz... " >&6; }
15682if test "${xorg_cv_Carbon_framework+set}" = set; then :
15683  $as_echo_n "(cached) " >&6
15684else
15685
15686		 		save_LDFLAGS=$LDFLAGS
15687				LDFLAGS="$LDFLAGS -framework Carbon"
15688				cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15689/* end confdefs.h.  */
15690char FSFindFolder(); int main() { FSFindFolder(); return 0;}
15691_ACEOF
15692if ac_fn_c_try_link "$LINENO"; then :
15693  xorg_cv_Carbon_framework=yes
15694else
15695  xorg_cv_Carbon_framework=no
15696fi
15697rm -f core conftest.err conftest.$ac_objext \
15698    conftest$ac_exeext conftest.$ac_ext
15699			LDFLAGS=$save_LDFLAGS
15700fi
15701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_Carbon_framework" >&5
15702$as_echo "$xorg_cv_Carbon_framework" >&6; }
15703
15704			if test "X$xorg_cv_Carbon_framework" = Xyes; then
15705				XQUARTZ=yes
15706			else
15707				XQUARTZ=no
15708			fi
15709		fi
15710
15711		if test "x$XQUARTZ" = xyes ; then
15712			XQUARTZ=yes
15713			XVFB=no
15714			XNEST=no
15715
15716			COMPOSITE=no
15717			DGA=no
15718			DPMSExtension=no
15719			XF86VIDMODE=no
15720		fi
15721		;;
15722esac
15723
15724XEXT_INC='-I$(top_srcdir)/Xext'
15725XEXT_LIB='$(top_builddir)/Xext/libXext.la'
15726XEXTXORG_LIB='$(top_builddir)/Xext/libXextbuiltin.la'
15727
15728REQUIRED_MODULES="randrproto >= 1.2.99.1 renderproto >= 0.9.3 fixesproto >= 4.0 damageproto >= 1.1 xcmiscproto xextproto >= 7.0.3 xproto >= 7.0.13 xtrans >= 1.2.2 bigreqsproto resourceproto fontsproto inputproto >= 1.5 kbproto >= 1.0.3"
15729REQUIRED_LIBS="xfont xau fontenc pixman-1 >= 0.13.2"
15730
15731
15732pkg_failed=no
15733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
15734$as_echo_n "checking for DBUS... " >&6; }
15735
15736if test -n "$PKG_CONFIG"; then
15737    if test -n "$DBUS_CFLAGS"; then
15738        pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
15739    else
15740        if test -n "$PKG_CONFIG" && \
15741    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
15742  ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
15743  ac_status=$?
15744  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15745  test $ac_status = 0; }; then
15746  pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
15747else
15748  pkg_failed=yes
15749fi
15750    fi
15751else
15752	pkg_failed=untried
15753fi
15754if test -n "$PKG_CONFIG"; then
15755    if test -n "$DBUS_LIBS"; then
15756        pkg_cv_DBUS_LIBS="$DBUS_LIBS"
15757    else
15758        if test -n "$PKG_CONFIG" && \
15759    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
15760  ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
15761  ac_status=$?
15762  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15763  test $ac_status = 0; }; then
15764  pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
15765else
15766  pkg_failed=yes
15767fi
15768    fi
15769else
15770	pkg_failed=untried
15771fi
15772
15773
15774
15775if test $pkg_failed = yes; then
15776
15777if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15778        _pkg_short_errors_supported=yes
15779else
15780        _pkg_short_errors_supported=no
15781fi
15782        if test $_pkg_short_errors_supported = yes; then
15783	        DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "dbus-1"`
15784        else
15785	        DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1"`
15786        fi
15787	# Put the nasty error message in config.log where it belongs
15788	echo "$DBUS_PKG_ERRORS" >&5
15789
15790	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15791$as_echo "no" >&6; }
15792                HAVE_DBUS=no
15793elif test $pkg_failed = untried; then
15794	HAVE_DBUS=no
15795else
15796	DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
15797	DBUS_LIBS=$pkg_cv_DBUS_LIBS
15798        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15799$as_echo "yes" >&6; }
15800	HAVE_DBUS=yes
15801fi
15802if test "x$HAVE_DBUS" = xyes; then
15803
15804$as_echo "#define HAVE_DBUS 1" >>confdefs.h
15805
15806fi
15807 if test "x$HAVE_DBUS" = xyes; then
15808  HAVE_DBUS_TRUE=
15809  HAVE_DBUS_FALSE='#'
15810else
15811  HAVE_DBUS_TRUE='#'
15812  HAVE_DBUS_FALSE=
15813fi
15814
15815
15816if test "x$CONFIG_DBUS_API" = xauto; then
15817	CONFIG_DBUS_API="$HAVE_DBUS"
15818fi
15819if test "x$CONFIG_DBUS_API" = xyes; then
15820	if ! test "x$HAVE_DBUS" = xyes; then
15821		as_fn_error "D-Bus configuration API requested, but D-Bus is not installed." "$LINENO" 5
15822	fi
15823
15824
15825$as_echo "#define CONFIG_DBUS_API 1" >>confdefs.h
15826
15827	CONFIG_NEED_DBUS="yes"
15828fi
15829 if test "x$CONFIG_DBUS_API" = xyes; then
15830  CONFIG_DBUS_API_TRUE=
15831  CONFIG_DBUS_API_FALSE='#'
15832else
15833  CONFIG_DBUS_API_TRUE='#'
15834  CONFIG_DBUS_API_FALSE=
15835fi
15836
15837
15838
15839pkg_failed=no
15840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for HAL" >&5
15841$as_echo_n "checking for HAL... " >&6; }
15842
15843if test -n "$PKG_CONFIG"; then
15844    if test -n "$HAL_CFLAGS"; then
15845        pkg_cv_HAL_CFLAGS="$HAL_CFLAGS"
15846    else
15847        if test -n "$PKG_CONFIG" && \
15848    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hal\""; } >&5
15849  ($PKG_CONFIG --exists --print-errors "hal") 2>&5
15850  ac_status=$?
15851  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15852  test $ac_status = 0; }; then
15853  pkg_cv_HAL_CFLAGS=`$PKG_CONFIG --cflags "hal" 2>/dev/null`
15854else
15855  pkg_failed=yes
15856fi
15857    fi
15858else
15859	pkg_failed=untried
15860fi
15861if test -n "$PKG_CONFIG"; then
15862    if test -n "$HAL_LIBS"; then
15863        pkg_cv_HAL_LIBS="$HAL_LIBS"
15864    else
15865        if test -n "$PKG_CONFIG" && \
15866    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hal\""; } >&5
15867  ($PKG_CONFIG --exists --print-errors "hal") 2>&5
15868  ac_status=$?
15869  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15870  test $ac_status = 0; }; then
15871  pkg_cv_HAL_LIBS=`$PKG_CONFIG --libs "hal" 2>/dev/null`
15872else
15873  pkg_failed=yes
15874fi
15875    fi
15876else
15877	pkg_failed=untried
15878fi
15879
15880
15881
15882if test $pkg_failed = yes; then
15883
15884if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15885        _pkg_short_errors_supported=yes
15886else
15887        _pkg_short_errors_supported=no
15888fi
15889        if test $_pkg_short_errors_supported = yes; then
15890	        HAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hal"`
15891        else
15892	        HAL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hal"`
15893        fi
15894	# Put the nasty error message in config.log where it belongs
15895	echo "$HAL_PKG_ERRORS" >&5
15896
15897	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15898$as_echo "no" >&6; }
15899                HAVE_HAL=no
15900elif test $pkg_failed = untried; then
15901	HAVE_HAL=no
15902else
15903	HAL_CFLAGS=$pkg_cv_HAL_CFLAGS
15904	HAL_LIBS=$pkg_cv_HAL_LIBS
15905        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15906$as_echo "yes" >&6; }
15907	HAVE_HAL=yes
15908fi
15909if test "x$CONFIG_HAL" = xauto; then
15910	CONFIG_HAL="$HAVE_HAL"
15911fi
15912if test "x$CONFIG_HAL" = xyes; then
15913	if ! test "x$HAVE_HAL" = xyes; then
15914		as_fn_error "HAL hotplug API requested, but HAL is not installed." "$LINENO" 5
15915	fi
15916
15917
15918$as_echo "#define CONFIG_HAL 1" >>confdefs.h
15919
15920        REQUIRED_LIBS="$REQUIRED_LIBS hal"
15921	CONFIG_NEED_DBUS="yes"
15922fi
15923 if test "x$CONFIG_HAL" = xyes; then
15924  CONFIG_HAL_TRUE=
15925  CONFIG_HAL_FALSE='#'
15926else
15927  CONFIG_HAL_TRUE='#'
15928  CONFIG_HAL_FALSE=
15929fi
15930
15931
15932if test "x$CONFIG_NEED_DBUS" = xyes; then
15933	REQUIRED_LIBS="$REQUIRED_LIBS dbus-1"
15934
15935$as_echo "#define CONFIG_NEED_DBUS 1" >>confdefs.h
15936
15937fi
15938 if test "x$CONFIG_NEED_DBUS" = xyes; then
15939  CONFIG_NEED_DBUS_TRUE=
15940  CONFIG_NEED_DBUS_FALSE='#'
15941else
15942  CONFIG_NEED_DBUS_TRUE='#'
15943  CONFIG_NEED_DBUS_FALSE=
15944fi
15945
15946CONFIG_LIB='$(top_builddir)/config/libconfig.a'
15947
15948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc..." >&5
15949$as_echo_n "checking for glibc...... " >&6; }
15950cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15951/* end confdefs.h.  */
15952
15953#include <features.h>
15954#ifndef __GLIBC__
15955#error
15956#endif
15957
15958_ACEOF
15959if ac_fn_c_try_cpp "$LINENO"; then :
15960  glibc=yes
15961else
15962  glibc=no
15963fi
15964rm -f conftest.err conftest.$ac_ext
15965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc" >&5
15966$as_echo "$glibc" >&6; }
15967
15968for ac_func in clock_gettime
15969do :
15970  ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
15971if test "x$ac_cv_func_clock_gettime" = x""yes; then :
15972  cat >>confdefs.h <<_ACEOF
15973#define HAVE_CLOCK_GETTIME 1
15974_ACEOF
15975 have_clock_gettime=yes
15976else
15977  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15978$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15979if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
15980  $as_echo_n "(cached) " >&6
15981else
15982  ac_check_lib_save_LIBS=$LIBS
15983LIBS="-lrt  $LIBS"
15984cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15985/* end confdefs.h.  */
15986
15987/* Override any GCC internal prototype to avoid an error.
15988   Use char because int might match the return type of a GCC
15989   builtin and then its argument prototype would still apply.  */
15990#ifdef __cplusplus
15991extern "C"
15992#endif
15993char clock_gettime ();
15994int
15995main ()
15996{
15997return clock_gettime ();
15998  ;
15999  return 0;
16000}
16001_ACEOF
16002if ac_fn_c_try_link "$LINENO"; then :
16003  ac_cv_lib_rt_clock_gettime=yes
16004else
16005  ac_cv_lib_rt_clock_gettime=no
16006fi
16007rm -f core conftest.err conftest.$ac_objext \
16008    conftest$ac_exeext conftest.$ac_ext
16009LIBS=$ac_check_lib_save_LIBS
16010fi
16011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
16012$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
16013if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
16014  have_clock_gettime=-lrt
16015else
16016  have_clock_gettime=no
16017fi
16018
16019fi
16020done
16021
16022
16023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a useful monotonic clock ..." >&5
16024$as_echo_n "checking for a useful monotonic clock ...... " >&6; }
16025
16026if ! test "x$have_clock_gettime" = xno; then
16027    if ! test "x$have_clock_gettime" = xyes; then
16028        CLOCK_LIBS="$have_clock_gettime"
16029    else
16030        CLOCK_LIBS=""
16031    fi
16032
16033    LIBS_SAVE="$LIBS"
16034    LIBS="$CLOCK_LIBS"
16035    CPPFLAGS_SAVE="$CPPFLAGS"
16036
16037    if test x"$glibc" = xyes; then
16038        CPPFLAGS="$CPPFLAGS -D_POSIX_C_SOURCE=200112L"
16039    fi
16040
16041    if test "$cross_compiling" = yes; then :
16042  MONOTONIC_CLOCK="cross compiling"
16043else
16044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16045/* end confdefs.h.  */
16046
16047#include <time.h>
16048
16049int main(int argc, char *argv[]) {
16050    struct timespec tp;
16051
16052    if (clock_gettime(CLOCK_MONOTONIC, &tp) == 0)
16053        return 0;
16054    else
16055        return 1;
16056}
16057
16058_ACEOF
16059if ac_fn_c_try_run "$LINENO"; then :
16060  MONOTONIC_CLOCK=yes
16061else
16062  MONOTONIC_CLOCK=no
16063fi
16064rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16065  conftest.$ac_objext conftest.beam conftest.$ac_ext
16066fi
16067
16068
16069    LIBS="$LIBS_SAVE"
16070    CPPFLAGS="$CPPFLAGS_SAVE"
16071else
16072    MONOTONIC_CLOCK=no
16073fi
16074
16075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MONOTONIC_CLOCK" >&5
16076$as_echo "$MONOTONIC_CLOCK" >&6; }
16077
16078if test "x$MONOTONIC_CLOCK" = xyes; then
16079
16080$as_echo "#define MONOTONIC_CLOCK 1" >>confdefs.h
16081
16082    LIBS="$LIBS $CLOCK_LIBS"
16083fi
16084
16085 if test "x$XV" = xyes; then
16086  XV_TRUE=
16087  XV_FALSE='#'
16088else
16089  XV_TRUE='#'
16090  XV_FALSE=
16091fi
16092
16093if test "x$XV" = xyes; then
16094
16095$as_echo "#define XV 1" >>confdefs.h
16096
16097
16098$as_echo "#define XvExtension 1" >>confdefs.h
16099
16100	REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
16101else
16102	XVMC=no
16103fi
16104
16105 if test "x$XVMC" = xyes; then
16106  XVMC_TRUE=
16107  XVMC_FALSE='#'
16108else
16109  XVMC_TRUE='#'
16110  XVMC_FALSE=
16111fi
16112
16113if test "x$XVMC" = xyes; then
16114
16115$as_echo "#define XvMCExtension 1" >>confdefs.h
16116
16117fi
16118
16119 if test "x$XREGISTRY" = xyes; then
16120  XREGISTRY_TRUE=
16121  XREGISTRY_FALSE='#'
16122else
16123  XREGISTRY_TRUE='#'
16124  XREGISTRY_FALSE=
16125fi
16126
16127if test "x$XREGISTRY" = xyes; then
16128
16129$as_echo "#define XREGISTRY 1" >>confdefs.h
16130
16131fi
16132
16133 if test "x$COMPOSITE" = xyes; then
16134  COMPOSITE_TRUE=
16135  COMPOSITE_FALSE='#'
16136else
16137  COMPOSITE_TRUE='#'
16138  COMPOSITE_FALSE=
16139fi
16140
16141if test "x$COMPOSITE" = xyes; then
16142
16143$as_echo "#define COMPOSITE 1" >>confdefs.h
16144
16145	REQUIRED_MODULES="$REQUIRED_MODULES compositeproto >= 0.4"
16146	COMPOSITE_LIB='$(top_builddir)/composite/libcomposite.la'
16147	COMPOSITE_INC='-I$(top_srcdir)/composite'
16148fi
16149
16150 if test "x$MITSHM" = xyes; then
16151  MITSHM_TRUE=
16152  MITSHM_FALSE='#'
16153else
16154  MITSHM_TRUE='#'
16155  MITSHM_FALSE=
16156fi
16157
16158if test "x$MITSHM" = xyes; then
16159
16160$as_echo "#define MITSHM 1" >>confdefs.h
16161
16162
16163$as_echo "#define HAS_SHM 1" >>confdefs.h
16164
16165fi
16166
16167 if test "x$RECORD" = xyes; then
16168  RECORD_TRUE=
16169  RECORD_FALSE='#'
16170else
16171  RECORD_TRUE='#'
16172  RECORD_FALSE=
16173fi
16174
16175if test "x$RECORD" = xyes; then
16176
16177$as_echo "#define XRECORD 1" >>confdefs.h
16178
16179	REQUIRED_MODULES="$REQUIRED_MODULES recordproto"
16180	RECORD_LIB='$(top_builddir)/record/librecord.la'
16181fi
16182
16183 if test "x$SCREENSAVER" = xyes; then
16184  SCREENSAVER_TRUE=
16185  SCREENSAVER_FALSE='#'
16186else
16187  SCREENSAVER_TRUE='#'
16188  SCREENSAVER_FALSE=
16189fi
16190
16191if test "x$SCREENSAVER" = xyes; then
16192
16193$as_echo "#define SCREENSAVER 1" >>confdefs.h
16194
16195	REQUIRED_MODULES="$REQUIRED_MODULES scrnsaverproto >= 1.1"
16196fi
16197
16198 if test "x$RES" = xyes; then
16199  RES_TRUE=
16200  RES_FALSE='#'
16201else
16202  RES_TRUE='#'
16203  RES_FALSE=
16204fi
16205
16206if test "x$RES" = xyes; then
16207
16208$as_echo "#define RES 1" >>confdefs.h
16209
16210	REQUIRED_MODULES="$REQUIRED_MODULES resourceproto"
16211fi
16212
16213if test "x$GLX" = xyes; then
16214
16215pkg_failed=no
16216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLIB" >&5
16217$as_echo_n "checking for XLIB... " >&6; }
16218
16219if test -n "$PKG_CONFIG"; then
16220    if test -n "$XLIB_CFLAGS"; then
16221        pkg_cv_XLIB_CFLAGS="$XLIB_CFLAGS"
16222    else
16223        if test -n "$PKG_CONFIG" && \
16224    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
16225  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
16226  ac_status=$?
16227  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16228  test $ac_status = 0; }; then
16229  pkg_cv_XLIB_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
16230else
16231  pkg_failed=yes
16232fi
16233    fi
16234else
16235	pkg_failed=untried
16236fi
16237if test -n "$PKG_CONFIG"; then
16238    if test -n "$XLIB_LIBS"; then
16239        pkg_cv_XLIB_LIBS="$XLIB_LIBS"
16240    else
16241        if test -n "$PKG_CONFIG" && \
16242    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
16243  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
16244  ac_status=$?
16245  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16246  test $ac_status = 0; }; then
16247  pkg_cv_XLIB_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
16248else
16249  pkg_failed=yes
16250fi
16251    fi
16252else
16253	pkg_failed=untried
16254fi
16255
16256
16257
16258if test $pkg_failed = yes; then
16259
16260if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16261        _pkg_short_errors_supported=yes
16262else
16263        _pkg_short_errors_supported=no
16264fi
16265        if test $_pkg_short_errors_supported = yes; then
16266	        XLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "x11"`
16267        else
16268	        XLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11"`
16269        fi
16270	# Put the nasty error message in config.log where it belongs
16271	echo "$XLIB_PKG_ERRORS" >&5
16272
16273	as_fn_error "Package requirements (x11) were not met:
16274
16275$XLIB_PKG_ERRORS
16276
16277Consider adjusting the PKG_CONFIG_PATH environment variable if you
16278installed software in a non-standard prefix.
16279
16280Alternatively, you may set the environment variables XLIB_CFLAGS
16281and XLIB_LIBS to avoid the need to call pkg-config.
16282See the pkg-config man page for more details.
16283" "$LINENO" 5
16284elif test $pkg_failed = untried; then
16285	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16286$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16287as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
16288is in your PATH or set the PKG_CONFIG environment variable to the full
16289path to pkg-config.
16290
16291Alternatively, you may set the environment variables XLIB_CFLAGS
16292and XLIB_LIBS to avoid the need to call pkg-config.
16293See the pkg-config man page for more details.
16294
16295To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16296See \`config.log' for more details." "$LINENO" 5; }
16297else
16298	XLIB_CFLAGS=$pkg_cv_XLIB_CFLAGS
16299	XLIB_LIBS=$pkg_cv_XLIB_LIBS
16300        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16301$as_echo "yes" >&6; }
16302	:
16303fi
16304
16305pkg_failed=no
16306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GL" >&5
16307$as_echo_n "checking for GL... " >&6; }
16308
16309if test -n "$PKG_CONFIG"; then
16310    if test -n "$GL_CFLAGS"; then
16311        pkg_cv_GL_CFLAGS="$GL_CFLAGS"
16312    else
16313        if test -n "$PKG_CONFIG" && \
16314    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glproto >= 1.4.9 gl >= 7.1.0\""; } >&5
16315  ($PKG_CONFIG --exists --print-errors "glproto >= 1.4.9 gl >= 7.1.0") 2>&5
16316  ac_status=$?
16317  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16318  test $ac_status = 0; }; then
16319  pkg_cv_GL_CFLAGS=`$PKG_CONFIG --cflags "glproto >= 1.4.9 gl >= 7.1.0" 2>/dev/null`
16320else
16321  pkg_failed=yes
16322fi
16323    fi
16324else
16325	pkg_failed=untried
16326fi
16327if test -n "$PKG_CONFIG"; then
16328    if test -n "$GL_LIBS"; then
16329        pkg_cv_GL_LIBS="$GL_LIBS"
16330    else
16331        if test -n "$PKG_CONFIG" && \
16332    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glproto >= 1.4.9 gl >= 7.1.0\""; } >&5
16333  ($PKG_CONFIG --exists --print-errors "glproto >= 1.4.9 gl >= 7.1.0") 2>&5
16334  ac_status=$?
16335  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16336  test $ac_status = 0; }; then
16337  pkg_cv_GL_LIBS=`$PKG_CONFIG --libs "glproto >= 1.4.9 gl >= 7.1.0" 2>/dev/null`
16338else
16339  pkg_failed=yes
16340fi
16341    fi
16342else
16343	pkg_failed=untried
16344fi
16345
16346
16347
16348if test $pkg_failed = yes; then
16349
16350if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16351        _pkg_short_errors_supported=yes
16352else
16353        _pkg_short_errors_supported=no
16354fi
16355        if test $_pkg_short_errors_supported = yes; then
16356	        GL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glproto >= 1.4.9 gl >= 7.1.0"`
16357        else
16358	        GL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glproto >= 1.4.9 gl >= 7.1.0"`
16359        fi
16360	# Put the nasty error message in config.log where it belongs
16361	echo "$GL_PKG_ERRORS" >&5
16362
16363	as_fn_error "Package requirements (glproto >= 1.4.9 gl >= 7.1.0) were not met:
16364
16365$GL_PKG_ERRORS
16366
16367Consider adjusting the PKG_CONFIG_PATH environment variable if you
16368installed software in a non-standard prefix.
16369
16370Alternatively, you may set the environment variables GL_CFLAGS
16371and GL_LIBS to avoid the need to call pkg-config.
16372See the pkg-config man page for more details.
16373" "$LINENO" 5
16374elif test $pkg_failed = untried; then
16375	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16376$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16377as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
16378is in your PATH or set the PKG_CONFIG environment variable to the full
16379path to pkg-config.
16380
16381Alternatively, you may set the environment variables GL_CFLAGS
16382and GL_LIBS to avoid the need to call pkg-config.
16383See the pkg-config man page for more details.
16384
16385To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16386See \`config.log' for more details." "$LINENO" 5; }
16387else
16388	GL_CFLAGS=$pkg_cv_GL_CFLAGS
16389	GL_LIBS=$pkg_cv_GL_LIBS
16390        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16391$as_echo "yes" >&6; }
16392	:
16393fi
16394
16395
16396$as_echo "#define GLXEXT 1" >>confdefs.h
16397
16398	GLX_LIBS='$(top_builddir)/glx/libglx.la'
16399	GLX_SYS_LIBS="$GLX_SYS_LIBS $DLOPEN_LIBS"
16400else
16401        GLX=no
16402fi
16403 if test "x$GLX" = xyes; then
16404  GLX_TRUE=
16405  GLX_FALSE='#'
16406else
16407  GLX_TRUE='#'
16408  GLX_FALSE=
16409fi
16410
16411
16412
16413if test "x$AIGLX" = xyes -a "x$GLX" = xyes -a "x$DRI" = xyes; then
16414
16415$as_echo "#define AIGLX 1" >>confdefs.h
16416
16417else
16418	AIGLX=no
16419fi
16420 if test "x$AIGLX" = xyes; then
16421  AIGLX_TRUE=
16422  AIGLX_FALSE='#'
16423else
16424  AIGLX_TRUE='#'
16425  AIGLX_FALSE=
16426fi
16427
16428
16429if test "x$GLX_USE_TLS" = xyes -a "x$AIGLX" = xyes; then
16430	GLX_DEFINES="-DGLX_USE_TLS -DPTHREADS"
16431	GLX_SYS_LIBS="$GLX_SYS_LIBS -lpthread"
16432fi
16433
16434
16435 if test "x$DRI" = xyes; then
16436  DRI_TRUE=
16437  DRI_FALSE='#'
16438else
16439  DRI_TRUE='#'
16440  DRI_FALSE=
16441fi
16442
16443if test "x$DRI" = xyes; then
16444
16445$as_echo "#define XF86DRI 1" >>confdefs.h
16446
16447
16448pkg_failed=no
16449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRIPROTO" >&5
16450$as_echo_n "checking for DRIPROTO... " >&6; }
16451
16452if test -n "$PKG_CONFIG"; then
16453    if test -n "$DRIPROTO_CFLAGS"; then
16454        pkg_cv_DRIPROTO_CFLAGS="$DRIPROTO_CFLAGS"
16455    else
16456        if test -n "$PKG_CONFIG" && \
16457    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86driproto\""; } >&5
16458  ($PKG_CONFIG --exists --print-errors "xf86driproto") 2>&5
16459  ac_status=$?
16460  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16461  test $ac_status = 0; }; then
16462  pkg_cv_DRIPROTO_CFLAGS=`$PKG_CONFIG --cflags "xf86driproto" 2>/dev/null`
16463else
16464  pkg_failed=yes
16465fi
16466    fi
16467else
16468	pkg_failed=untried
16469fi
16470if test -n "$PKG_CONFIG"; then
16471    if test -n "$DRIPROTO_LIBS"; then
16472        pkg_cv_DRIPROTO_LIBS="$DRIPROTO_LIBS"
16473    else
16474        if test -n "$PKG_CONFIG" && \
16475    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86driproto\""; } >&5
16476  ($PKG_CONFIG --exists --print-errors "xf86driproto") 2>&5
16477  ac_status=$?
16478  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16479  test $ac_status = 0; }; then
16480  pkg_cv_DRIPROTO_LIBS=`$PKG_CONFIG --libs "xf86driproto" 2>/dev/null`
16481else
16482  pkg_failed=yes
16483fi
16484    fi
16485else
16486	pkg_failed=untried
16487fi
16488
16489
16490
16491if test $pkg_failed = yes; then
16492
16493if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16494        _pkg_short_errors_supported=yes
16495else
16496        _pkg_short_errors_supported=no
16497fi
16498        if test $_pkg_short_errors_supported = yes; then
16499	        DRIPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xf86driproto"`
16500        else
16501	        DRIPROTO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xf86driproto"`
16502        fi
16503	# Put the nasty error message in config.log where it belongs
16504	echo "$DRIPROTO_PKG_ERRORS" >&5
16505
16506	as_fn_error "Package requirements (xf86driproto) were not met:
16507
16508$DRIPROTO_PKG_ERRORS
16509
16510Consider adjusting the PKG_CONFIG_PATH environment variable if you
16511installed software in a non-standard prefix.
16512
16513Alternatively, you may set the environment variables DRIPROTO_CFLAGS
16514and DRIPROTO_LIBS to avoid the need to call pkg-config.
16515See the pkg-config man page for more details.
16516" "$LINENO" 5
16517elif test $pkg_failed = untried; then
16518	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16519$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16520as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
16521is in your PATH or set the PKG_CONFIG environment variable to the full
16522path to pkg-config.
16523
16524Alternatively, you may set the environment variables DRIPROTO_CFLAGS
16525and DRIPROTO_LIBS to avoid the need to call pkg-config.
16526See the pkg-config man page for more details.
16527
16528To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16529See \`config.log' for more details." "$LINENO" 5; }
16530else
16531	DRIPROTO_CFLAGS=$pkg_cv_DRIPROTO_CFLAGS
16532	DRIPROTO_LIBS=$pkg_cv_DRIPROTO_LIBS
16533        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16534$as_echo "yes" >&6; }
16535	:
16536fi
16537
16538pkg_failed=no
16539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GL" >&5
16540$as_echo_n "checking for GL... " >&6; }
16541
16542if test -n "$PKG_CONFIG"; then
16543    if test -n "$GL_CFLAGS"; then
16544        pkg_cv_GL_CFLAGS="$GL_CFLAGS"
16545    else
16546        if test -n "$PKG_CONFIG" && \
16547    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glproto >= 1.4.1 dri >= 7.1.0\""; } >&5
16548  ($PKG_CONFIG --exists --print-errors "glproto >= 1.4.1 dri >= 7.1.0") 2>&5
16549  ac_status=$?
16550  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16551  test $ac_status = 0; }; then
16552  pkg_cv_GL_CFLAGS=`$PKG_CONFIG --cflags "glproto >= 1.4.1 dri >= 7.1.0" 2>/dev/null`
16553else
16554  pkg_failed=yes
16555fi
16556    fi
16557else
16558	pkg_failed=untried
16559fi
16560if test -n "$PKG_CONFIG"; then
16561    if test -n "$GL_LIBS"; then
16562        pkg_cv_GL_LIBS="$GL_LIBS"
16563    else
16564        if test -n "$PKG_CONFIG" && \
16565    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glproto >= 1.4.1 dri >= 7.1.0\""; } >&5
16566  ($PKG_CONFIG --exists --print-errors "glproto >= 1.4.1 dri >= 7.1.0") 2>&5
16567  ac_status=$?
16568  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16569  test $ac_status = 0; }; then
16570  pkg_cv_GL_LIBS=`$PKG_CONFIG --libs "glproto >= 1.4.1 dri >= 7.1.0" 2>/dev/null`
16571else
16572  pkg_failed=yes
16573fi
16574    fi
16575else
16576	pkg_failed=untried
16577fi
16578
16579
16580
16581if test $pkg_failed = yes; then
16582
16583if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16584        _pkg_short_errors_supported=yes
16585else
16586        _pkg_short_errors_supported=no
16587fi
16588        if test $_pkg_short_errors_supported = yes; then
16589	        GL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glproto >= 1.4.1 dri >= 7.1.0"`
16590        else
16591	        GL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glproto >= 1.4.1 dri >= 7.1.0"`
16592        fi
16593	# Put the nasty error message in config.log where it belongs
16594	echo "$GL_PKG_ERRORS" >&5
16595
16596	as_fn_error "Package requirements (glproto >= 1.4.1 dri >= 7.1.0) were not met:
16597
16598$GL_PKG_ERRORS
16599
16600Consider adjusting the PKG_CONFIG_PATH environment variable if you
16601installed software in a non-standard prefix.
16602
16603Alternatively, you may set the environment variables GL_CFLAGS
16604and GL_LIBS to avoid the need to call pkg-config.
16605See the pkg-config man page for more details.
16606" "$LINENO" 5
16607elif test $pkg_failed = untried; then
16608	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16609$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16610as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
16611is in your PATH or set the PKG_CONFIG environment variable to the full
16612path to pkg-config.
16613
16614Alternatively, you may set the environment variables GL_CFLAGS
16615and GL_LIBS to avoid the need to call pkg-config.
16616See the pkg-config man page for more details.
16617
16618To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16619See \`config.log' for more details." "$LINENO" 5; }
16620else
16621	GL_CFLAGS=$pkg_cv_GL_CFLAGS
16622	GL_LIBS=$pkg_cv_GL_LIBS
16623        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16624$as_echo "yes" >&6; }
16625	:
16626fi
16627
16628
16629fi
16630
16631
16632pkg_failed=no
16633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI2PROTO" >&5
16634$as_echo_n "checking for DRI2PROTO... " >&6; }
16635
16636if test -n "$PKG_CONFIG"; then
16637    if test -n "$DRI2PROTO_CFLAGS"; then
16638        pkg_cv_DRI2PROTO_CFLAGS="$DRI2PROTO_CFLAGS"
16639    else
16640        if test -n "$PKG_CONFIG" && \
16641    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dri2proto >= 2.1\""; } >&5
16642  ($PKG_CONFIG --exists --print-errors "dri2proto >= 2.1") 2>&5
16643  ac_status=$?
16644  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16645  test $ac_status = 0; }; then
16646  pkg_cv_DRI2PROTO_CFLAGS=`$PKG_CONFIG --cflags "dri2proto >= 2.1" 2>/dev/null`
16647else
16648  pkg_failed=yes
16649fi
16650    fi
16651else
16652	pkg_failed=untried
16653fi
16654if test -n "$PKG_CONFIG"; then
16655    if test -n "$DRI2PROTO_LIBS"; then
16656        pkg_cv_DRI2PROTO_LIBS="$DRI2PROTO_LIBS"
16657    else
16658        if test -n "$PKG_CONFIG" && \
16659    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dri2proto >= 2.1\""; } >&5
16660  ($PKG_CONFIG --exists --print-errors "dri2proto >= 2.1") 2>&5
16661  ac_status=$?
16662  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16663  test $ac_status = 0; }; then
16664  pkg_cv_DRI2PROTO_LIBS=`$PKG_CONFIG --libs "dri2proto >= 2.1" 2>/dev/null`
16665else
16666  pkg_failed=yes
16667fi
16668    fi
16669else
16670	pkg_failed=untried
16671fi
16672
16673
16674
16675if test $pkg_failed = yes; then
16676
16677if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16678        _pkg_short_errors_supported=yes
16679else
16680        _pkg_short_errors_supported=no
16681fi
16682        if test $_pkg_short_errors_supported = yes; then
16683	        DRI2PROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "dri2proto >= 2.1"`
16684        else
16685	        DRI2PROTO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dri2proto >= 2.1"`
16686        fi
16687	# Put the nasty error message in config.log where it belongs
16688	echo "$DRI2PROTO_PKG_ERRORS" >&5
16689
16690	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16691$as_echo "no" >&6; }
16692                HAVE_DRI2PROTO=no
16693elif test $pkg_failed = untried; then
16694	HAVE_DRI2PROTO=no
16695else
16696	DRI2PROTO_CFLAGS=$pkg_cv_DRI2PROTO_CFLAGS
16697	DRI2PROTO_LIBS=$pkg_cv_DRI2PROTO_LIBS
16698        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16699$as_echo "yes" >&6; }
16700	HAVE_DRI2PROTO=yes
16701fi
16702case "$DRI2,$HAVE_DRI2PROTO" in
16703	yes,no)
16704		as_fn_error "DRI2 requested, but dri2proto not found." "$LINENO" 5
16705		;;
16706	yes,yes | auto,yes)
16707
16708$as_echo "#define DRI2 1" >>confdefs.h
16709
16710		DRI2=yes
16711		;;
16712esac
16713 if test "x$DRI2" = xyes; then
16714  DRI2_TRUE=
16715  DRI2_FALSE='#'
16716else
16717  DRI2_TRUE='#'
16718  DRI2_FALSE=
16719fi
16720
16721
16722if test "x$DRI" = xyes || test "x$DRI2" = xyes; then
16723
16724pkg_failed=no
16725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM" >&5
16726$as_echo_n "checking for LIBDRM... " >&6; }
16727
16728if test -n "$PKG_CONFIG"; then
16729    if test -n "$LIBDRM_CFLAGS"; then
16730        pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
16731    else
16732        if test -n "$PKG_CONFIG" && \
16733    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.3.0\""; } >&5
16734  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.3.0") 2>&5
16735  ac_status=$?
16736  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16737  test $ac_status = 0; }; then
16738  pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.3.0" 2>/dev/null`
16739else
16740  pkg_failed=yes
16741fi
16742    fi
16743else
16744	pkg_failed=untried
16745fi
16746if test -n "$PKG_CONFIG"; then
16747    if test -n "$LIBDRM_LIBS"; then
16748        pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
16749    else
16750        if test -n "$PKG_CONFIG" && \
16751    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.3.0\""; } >&5
16752  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.3.0") 2>&5
16753  ac_status=$?
16754  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16755  test $ac_status = 0; }; then
16756  pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.3.0" 2>/dev/null`
16757else
16758  pkg_failed=yes
16759fi
16760    fi
16761else
16762	pkg_failed=untried
16763fi
16764
16765
16766
16767if test $pkg_failed = yes; then
16768
16769if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16770        _pkg_short_errors_supported=yes
16771else
16772        _pkg_short_errors_supported=no
16773fi
16774        if test $_pkg_short_errors_supported = yes; then
16775	        LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libdrm >= 2.3.0"`
16776        else
16777	        LIBDRM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libdrm >= 2.3.0"`
16778        fi
16779	# Put the nasty error message in config.log where it belongs
16780	echo "$LIBDRM_PKG_ERRORS" >&5
16781
16782	as_fn_error "Package requirements (libdrm >= 2.3.0) were not met:
16783
16784$LIBDRM_PKG_ERRORS
16785
16786Consider adjusting the PKG_CONFIG_PATH environment variable if you
16787installed software in a non-standard prefix.
16788
16789Alternatively, you may set the environment variables LIBDRM_CFLAGS
16790and LIBDRM_LIBS to avoid the need to call pkg-config.
16791See the pkg-config man page for more details.
16792" "$LINENO" 5
16793elif test $pkg_failed = untried; then
16794	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16795$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16796as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
16797is in your PATH or set the PKG_CONFIG environment variable to the full
16798path to pkg-config.
16799
16800Alternatively, you may set the environment variables LIBDRM_CFLAGS
16801and LIBDRM_LIBS to avoid the need to call pkg-config.
16802See the pkg-config man page for more details.
16803
16804To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16805See \`config.log' for more details." "$LINENO" 5; }
16806else
16807	LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
16808	LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
16809        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16810$as_echo "yes" >&6; }
16811	:
16812fi
16813
16814
16815fi
16816
16817if test "x$DRI2" = xyes; then
16818	save_CFLAGS=$CFLAGS
16819	CFLAGS="$GL_CFLAGS $LIBDRM_CFLAGS"
16820	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16821/* end confdefs.h.  */
16822#include <GL/gl.h>
16823#include <GL/internal/dri_interface.h>
16824#ifndef __DRI_DRI2
16825#error DRI2 extension not available.
16826#endif
16827_ACEOF
16828if ac_fn_c_try_compile "$LINENO"; then :
16829  HAVE_DRI2EXTENSION=yes
16830else
16831  HAVE_DRI2EXTENSION=no
16832fi
16833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16834	CFLAGS=$save_CFLAGS
16835	if test "x$HAVE_DRI2EXTENSION" = xyes; then
16836
16837$as_echo "#define DRI2_AIGLX 1" >>confdefs.h
16838
16839		DRI2_AIGLX=yes
16840	else
16841		{ $as_echo "$as_me:${as_lineno-$LINENO}: DRI2 AIGLX disabled, __DRI_DRI2 not defined in dri_interface.h." >&5
16842$as_echo "$as_me: DRI2 AIGLX disabled, __DRI_DRI2 not defined in dri_interface.h." >&6;}
16843		DRI2_AIGLX=no
16844	fi
16845fi
16846 if test "x$DRI2_AIGLX" = xyes; then
16847  DRI2_AIGLX_TRUE=
16848  DRI2_AIGLX_FALSE='#'
16849else
16850  DRI2_AIGLX_TRUE='#'
16851  DRI2_AIGLX_FALSE=
16852fi
16853
16854
16855
16856 if test "x$XINERAMA" = xyes; then
16857  XINERAMA_TRUE=
16858  XINERAMA_FALSE='#'
16859else
16860  XINERAMA_TRUE='#'
16861  XINERAMA_FALSE=
16862fi
16863
16864if test "x$XINERAMA" = xyes; then
16865
16866$as_echo "#define XINERAMA 1" >>confdefs.h
16867
16868
16869$as_echo "#define PANORAMIX 1" >>confdefs.h
16870
16871	REQUIRED_MODULES="$REQUIRED_MODULES xineramaproto"
16872fi
16873
16874 if test "x$XACE" = xyes; then
16875  XACE_TRUE=
16876  XACE_FALSE='#'
16877else
16878  XACE_TRUE='#'
16879  XACE_FALSE=
16880fi
16881
16882if test "x$XACE" = xyes; then
16883
16884$as_echo "#define XACE 1" >>confdefs.h
16885
16886fi
16887
16888 if test "x$XSELINUX" = xyes; then
16889  XSELINUX_TRUE=
16890  XSELINUX_FALSE='#'
16891else
16892  XSELINUX_TRUE='#'
16893  XSELINUX_FALSE=
16894fi
16895
16896if test "x$XSELINUX" = xyes; then
16897	if test "x$XACE" != xyes; then
16898		as_fn_error "cannot build SELinux extension without X-ACE" "$LINENO" 5
16899	fi
16900	for ac_header in selinux/selinux.h selinux/avc.h
16901do :
16902  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16903ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16904eval as_val=\$$as_ac_Header
16905   if test "x$as_val" = x""yes; then :
16906  cat >>confdefs.h <<_ACEOF
16907#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16908_ACEOF
16909
16910else
16911  as_fn_error "SELinux include files not found" "$LINENO" 5
16912fi
16913
16914done
16915
16916	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for avc_init in -lselinux" >&5
16917$as_echo_n "checking for avc_init in -lselinux... " >&6; }
16918if test "${ac_cv_lib_selinux_avc_init+set}" = set; then :
16919  $as_echo_n "(cached) " >&6
16920else
16921  ac_check_lib_save_LIBS=$LIBS
16922LIBS="-lselinux  $LIBS"
16923cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16924/* end confdefs.h.  */
16925
16926/* Override any GCC internal prototype to avoid an error.
16927   Use char because int might match the return type of a GCC
16928   builtin and then its argument prototype would still apply.  */
16929#ifdef __cplusplus
16930extern "C"
16931#endif
16932char avc_init ();
16933int
16934main ()
16935{
16936return avc_init ();
16937  ;
16938  return 0;
16939}
16940_ACEOF
16941if ac_fn_c_try_link "$LINENO"; then :
16942  ac_cv_lib_selinux_avc_init=yes
16943else
16944  ac_cv_lib_selinux_avc_init=no
16945fi
16946rm -f core conftest.err conftest.$ac_objext \
16947    conftest$ac_exeext conftest.$ac_ext
16948LIBS=$ac_check_lib_save_LIBS
16949fi
16950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_avc_init" >&5
16951$as_echo "$ac_cv_lib_selinux_avc_init" >&6; }
16952if test "x$ac_cv_lib_selinux_avc_init" = x""yes; then :
16953  cat >>confdefs.h <<_ACEOF
16954#define HAVE_LIBSELINUX 1
16955_ACEOF
16956
16957  LIBS="-lselinux $LIBS"
16958
16959else
16960  as_fn_error "SELinux library not found" "$LINENO" 5
16961fi
16962
16963	for ac_header in libaudit.h
16964do :
16965  ac_fn_c_check_header_mongrel "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default"
16966if test "x$ac_cv_header_libaudit_h" = x""yes; then :
16967  cat >>confdefs.h <<_ACEOF
16968#define HAVE_LIBAUDIT_H 1
16969_ACEOF
16970
16971else
16972  as_fn_error "SELinux extension requires audit system headers" "$LINENO" 5
16973fi
16974
16975done
16976
16977	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for audit_open in -laudit" >&5
16978$as_echo_n "checking for audit_open in -laudit... " >&6; }
16979if test "${ac_cv_lib_audit_audit_open+set}" = set; then :
16980  $as_echo_n "(cached) " >&6
16981else
16982  ac_check_lib_save_LIBS=$LIBS
16983LIBS="-laudit  $LIBS"
16984cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16985/* end confdefs.h.  */
16986
16987/* Override any GCC internal prototype to avoid an error.
16988   Use char because int might match the return type of a GCC
16989   builtin and then its argument prototype would still apply.  */
16990#ifdef __cplusplus
16991extern "C"
16992#endif
16993char audit_open ();
16994int
16995main ()
16996{
16997return audit_open ();
16998  ;
16999  return 0;
17000}
17001_ACEOF
17002if ac_fn_c_try_link "$LINENO"; then :
17003  ac_cv_lib_audit_audit_open=yes
17004else
17005  ac_cv_lib_audit_audit_open=no
17006fi
17007rm -f core conftest.err conftest.$ac_objext \
17008    conftest$ac_exeext conftest.$ac_ext
17009LIBS=$ac_check_lib_save_LIBS
17010fi
17011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_open" >&5
17012$as_echo "$ac_cv_lib_audit_audit_open" >&6; }
17013if test "x$ac_cv_lib_audit_audit_open" = x""yes; then :
17014  cat >>confdefs.h <<_ACEOF
17015#define HAVE_LIBAUDIT 1
17016_ACEOF
17017
17018  LIBS="-laudit $LIBS"
17019
17020else
17021  as_fn_error "SELinux extension requires audit system library" "$LINENO" 5
17022fi
17023
17024        ac_fn_c_check_decl "$LINENO" "avc_netlink_acquire_fd" "ac_cv_have_decl_avc_netlink_acquire_fd" "#include <selinux/avc.h>
17025"
17026if test "x$ac_cv_have_decl_avc_netlink_acquire_fd" = x""yes; then :
17027
17028$as_echo "#define HAVE_AVC_NETLINK_ACQUIRE_FD 1" >>confdefs.h
17029
17030fi
17031
17032
17033$as_echo "#define XSELINUX 1" >>confdefs.h
17034
17035	SELINUX_LIB="-lselinux -laudit"
17036fi
17037
17038 if test "x$XCSECURITY" = xyes; then
17039  XCSECURITY_TRUE=
17040  XCSECURITY_FALSE='#'
17041else
17042  XCSECURITY_TRUE='#'
17043  XCSECURITY_FALSE=
17044fi
17045
17046if test "x$XCSECURITY" = xyes; then
17047	if test "x$XACE" != xyes; then
17048		as_fn_error "cannot build Security extension without X-ACE" "$LINENO" 5
17049	fi
17050
17051$as_echo "#define XCSECURITY 1" >>confdefs.h
17052
17053fi
17054
17055 if test "x$MULTIBUFFER" = xyes; then
17056  MULTIBUFFER_TRUE=
17057  MULTIBUFFER_FALSE='#'
17058else
17059  MULTIBUFFER_TRUE='#'
17060  MULTIBUFFER_FALSE=
17061fi
17062
17063if test "x$MULTIBUFFER" = xyes; then
17064
17065$as_echo "#define MULTIBUFFER 1" >>confdefs.h
17066
17067	# Requires xextproto which is always required
17068fi
17069
17070 if test "x$DBE" = xyes; then
17071  DBE_TRUE=
17072  DBE_FALSE='#'
17073else
17074  DBE_TRUE='#'
17075  DBE_FALSE=
17076fi
17077
17078if test "x$DBE" = xyes; then
17079
17080$as_echo "#define DBE 1" >>confdefs.h
17081
17082	DBE_LIB='$(top_builddir)/dbe/libdbe.la'
17083fi
17084
17085 if test "x$XF86BIGFONT" = xyes; then
17086  XF86BIGFONT_TRUE=
17087  XF86BIGFONT_FALSE='#'
17088else
17089  XF86BIGFONT_TRUE='#'
17090  XF86BIGFONT_FALSE=
17091fi
17092
17093if test "x$XF86BIGFONT" = xyes; then
17094
17095$as_echo "#define XF86BIGFONT 1" >>confdefs.h
17096
17097fi
17098
17099 if test "x$DPMSExtension" = xyes; then
17100  DPMSExtension_TRUE=
17101  DPMSExtension_FALSE='#'
17102else
17103  DPMSExtension_TRUE='#'
17104  DPMSExtension_FALSE=
17105fi
17106
17107if test "x$DPMSExtension" = xyes; then
17108
17109$as_echo "#define DPMSExtension 1" >>confdefs.h
17110
17111fi
17112
17113if test "x$XCALIBRATE" = xyes && test "$KDRIVE" = yes; then
17114
17115$as_echo "#define XCALIBRATE 1" >>confdefs.h
17116
17117   REQUIRED_MODULES="$REQUIRED_MODULES xcalibrateproto"
17118else
17119   XCALIBRATE=no
17120fi
17121 if test "x$XCALIBRATE" = xyes; then
17122  XCALIBRATE_TRUE=
17123  XCALIBRATE_FALSE='#'
17124else
17125  XCALIBRATE_TRUE='#'
17126  XCALIBRATE_FALSE=
17127fi
17128
17129
17130
17131$as_echo "#define RENDER 1" >>confdefs.h
17132
17133RENDER_LIB='$(top_builddir)/render/librender.la'
17134RENDER_INC='-I$(top_srcdir)/render'
17135
17136
17137$as_echo "#define RANDR 1" >>confdefs.h
17138
17139RANDR_LIB='$(top_builddir)/randr/librandr.la'
17140RANDR_INC='-I$(top_srcdir)/randr'
17141
17142
17143$as_echo "#define XFIXES 1" >>confdefs.h
17144
17145FIXES_LIB='$(top_builddir)/xfixes/libxfixes.la'
17146FIXES_INC='-I$(top_srcdir)/xfixes'
17147
17148
17149$as_echo "#define DAMAGE 1" >>confdefs.h
17150
17151DAMAGE_LIB='$(top_builddir)/damageext/libdamageext.la'
17152DAMAGE_INC='-I$(top_srcdir)/damageext'
17153MIEXT_DAMAGE_LIB='$(top_builddir)/miext/damage/libdamage.la'
17154MIEXT_DAMAGE_INC='-I$(top_srcdir)/miext/damage'
17155
17156# XINPUT extension is integral part of the server
17157XI_LIB='$(top_builddir)/Xi/libXi.la'
17158XI_INC='-I$(top_srcdir)/Xi'
17159
17160 if test "x$XF86UTILS" = xyes; then
17161  XF86UTILS_TRUE=
17162  XF86UTILS_FALSE='#'
17163else
17164  XF86UTILS_TRUE='#'
17165  XF86UTILS_FALSE=
17166fi
17167
17168
17169
17170$as_echo "#define SHAPE 1" >>confdefs.h
17171
17172
17173
17174$as_echo "#define XKB 1" >>confdefs.h
17175
17176
17177$as_echo "#define XKB_IN_SERVER 1" >>confdefs.h
17178
17179
17180$as_echo "#define XKB_DFLT_DISABLED 0" >>confdefs.h
17181
17182REQUIRED_MODULES="$REQUIRED_MODULES xkbfile"
17183XKB_LIB='$(top_builddir)/xkb/libxkb.la'
17184XKB_STUB_LIB='$(top_builddir)/xkb/libxkbstubs.la'
17185
17186ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
17187if test "x$ac_cv_func_strcasecmp" = x""yes; then :
17188
17189else
17190
17191$as_echo "#define NEED_STRCASECMP 1" >>confdefs.h
17192
17193fi
17194
17195ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
17196if test "x$ac_cv_func_strncasecmp" = x""yes; then :
17197
17198else
17199
17200$as_echo "#define NEED_STRNCASECMP 1" >>confdefs.h
17201
17202fi
17203
17204ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
17205if test "x$ac_cv_func_strcasestr" = x""yes; then :
17206
17207else
17208
17209$as_echo "#define NEED_STRCASESTR 1" >>confdefs.h
17210
17211fi
17212
17213
17214if test "x$NULL_ROOT_CURSOR" = xyes; then
17215
17216$as_echo "#define NULL_ROOT_CURSOR 1" >>confdefs.h
17217
17218fi
17219
17220
17221pkg_failed=no
17222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDMCP" >&5
17223$as_echo_n "checking for XDMCP... " >&6; }
17224
17225if test -n "$PKG_CONFIG"; then
17226    if test -n "$XDMCP_CFLAGS"; then
17227        pkg_cv_XDMCP_CFLAGS="$XDMCP_CFLAGS"
17228    else
17229        if test -n "$PKG_CONFIG" && \
17230    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5
17231  ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
17232  ac_status=$?
17233  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17234  test $ac_status = 0; }; then
17235  pkg_cv_XDMCP_CFLAGS=`$PKG_CONFIG --cflags "xdmcp" 2>/dev/null`
17236else
17237  pkg_failed=yes
17238fi
17239    fi
17240else
17241	pkg_failed=untried
17242fi
17243if test -n "$PKG_CONFIG"; then
17244    if test -n "$XDMCP_LIBS"; then
17245        pkg_cv_XDMCP_LIBS="$XDMCP_LIBS"
17246    else
17247        if test -n "$PKG_CONFIG" && \
17248    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5
17249  ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
17250  ac_status=$?
17251  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17252  test $ac_status = 0; }; then
17253  pkg_cv_XDMCP_LIBS=`$PKG_CONFIG --libs "xdmcp" 2>/dev/null`
17254else
17255  pkg_failed=yes
17256fi
17257    fi
17258else
17259	pkg_failed=untried
17260fi
17261
17262
17263
17264if test $pkg_failed = yes; then
17265
17266if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17267        _pkg_short_errors_supported=yes
17268else
17269        _pkg_short_errors_supported=no
17270fi
17271        if test $_pkg_short_errors_supported = yes; then
17272	        XDMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xdmcp"`
17273        else
17274	        XDMCP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xdmcp"`
17275        fi
17276	# Put the nasty error message in config.log where it belongs
17277	echo "$XDMCP_PKG_ERRORS" >&5
17278
17279	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17280$as_echo "no" >&6; }
17281                have_libxdmcp="no"
17282elif test $pkg_failed = untried; then
17283	have_libxdmcp="no"
17284else
17285	XDMCP_CFLAGS=$pkg_cv_XDMCP_CFLAGS
17286	XDMCP_LIBS=$pkg_cv_XDMCP_LIBS
17287        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17288$as_echo "yes" >&6; }
17289	have_libxdmcp="yes"
17290fi
17291if test "x$have_libxdmcp" = xyes; then
17292	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XdmcpWrap in -lXdmcp" >&5
17293$as_echo_n "checking for XdmcpWrap in -lXdmcp... " >&6; }
17294if test "${ac_cv_lib_Xdmcp_XdmcpWrap+set}" = set; then :
17295  $as_echo_n "(cached) " >&6
17296else
17297  ac_check_lib_save_LIBS=$LIBS
17298LIBS="-lXdmcp $XDMCP_LIBS $LIBS"
17299cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17300/* end confdefs.h.  */
17301
17302/* Override any GCC internal prototype to avoid an error.
17303   Use char because int might match the return type of a GCC
17304   builtin and then its argument prototype would still apply.  */
17305#ifdef __cplusplus
17306extern "C"
17307#endif
17308char XdmcpWrap ();
17309int
17310main ()
17311{
17312return XdmcpWrap ();
17313  ;
17314  return 0;
17315}
17316_ACEOF
17317if ac_fn_c_try_link "$LINENO"; then :
17318  ac_cv_lib_Xdmcp_XdmcpWrap=yes
17319else
17320  ac_cv_lib_Xdmcp_XdmcpWrap=no
17321fi
17322rm -f core conftest.err conftest.$ac_objext \
17323    conftest$ac_exeext conftest.$ac_ext
17324LIBS=$ac_check_lib_save_LIBS
17325fi
17326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp_XdmcpWrap" >&5
17327$as_echo "$ac_cv_lib_Xdmcp_XdmcpWrap" >&6; }
17328if test "x$ac_cv_lib_Xdmcp_XdmcpWrap" = x""yes; then :
17329  have_xdmcpwrap="yes"
17330else
17331  have_xdmcpwrap="no"
17332fi
17333
17334fi
17335if test "x$XDMCP" = xauto; then
17336	if test "x$have_libxdmcp" = xyes; then
17337		XDMCP=yes
17338	else
17339		XDMCP=no
17340	fi
17341fi
17342if test "x$XDMAUTH" = xauto; then
17343	if test "x$have_libxdmcp" = xyes && test "x$have_xdmcpwrap" = xyes; then
17344		XDMAUTH=yes
17345	else
17346		XDMAUTH=no
17347	fi
17348fi
17349
17350 if test "x$XDMCP" = xyes; then
17351  XDMCP_TRUE=
17352  XDMCP_FALSE='#'
17353else
17354  XDMCP_TRUE='#'
17355  XDMCP_FALSE=
17356fi
17357
17358if test "x$XDMCP" = xyes; then
17359
17360$as_echo "#define XDMCP 1" >>confdefs.h
17361
17362	REQUIRED_LIBS="$REQUIRED_LIBS xdmcp"
17363	XDMCP_MODULES="xdmcp"
17364fi
17365
17366 if test "x$XDMAUTH" = xyes; then
17367  XDMAUTH_TRUE=
17368  XDMAUTH_FALSE='#'
17369else
17370  XDMAUTH_TRUE='#'
17371  XDMAUTH_FALSE=
17372fi
17373
17374if test "x$XDMAUTH" = xyes; then
17375
17376$as_echo "#define HASXDMAUTH 1" >>confdefs.h
17377
17378	if ! test "x$XDMCP" = xyes; then
17379		REQUIRED_LIBS="$REQUIRED_LIBS xdmcp"
17380		XDMCP_MODULES="xdmcp"
17381	fi
17382fi
17383
17384
17385  prefix_NONE=
17386  exec_prefix_NONE=
17387  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
17388  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
17389  eval ac_define_dir="\"$FONTPATH\""
17390  eval ac_define_dir="\"$ac_define_dir\""
17391  COMPILEDDEFAULTFONTPATH="$ac_define_dir"
17392
17393
17394cat >>confdefs.h <<_ACEOF
17395#define COMPILEDDEFAULTFONTPATH "$ac_define_dir"
17396_ACEOF
17397
17398  test "$prefix_NONE" && prefix=NONE
17399  test "$exec_prefix_NONE" && exec_prefix=NONE
17400
17401
17402  prefix_NONE=
17403  exec_prefix_NONE=
17404  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
17405  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
17406  eval ac_define_dir="\"$PCI_TXT_IDS_DIR\""
17407  eval ac_define_dir="\"$ac_define_dir\""
17408  PCI_TXT_IDS_PATH="$ac_define_dir"
17409
17410
17411cat >>confdefs.h <<_ACEOF
17412#define PCI_TXT_IDS_PATH "$ac_define_dir"
17413_ACEOF
17414
17415  test "$prefix_NONE" && prefix=NONE
17416  test "$exec_prefix_NONE" && exec_prefix=NONE
17417
17418
17419  prefix_NONE=
17420  exec_prefix_NONE=
17421  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
17422  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
17423  eval ac_define_dir="\"$SERVERCONFIG\""
17424  eval ac_define_dir="\"$ac_define_dir\""
17425  SERVER_MISC_CONFIG_PATH="$ac_define_dir"
17426
17427
17428cat >>confdefs.h <<_ACEOF
17429#define SERVER_MISC_CONFIG_PATH "$ac_define_dir"
17430_ACEOF
17431
17432  test "$prefix_NONE" && prefix=NONE
17433  test "$exec_prefix_NONE" && exec_prefix=NONE
17434
17435
17436  prefix_NONE=
17437  exec_prefix_NONE=
17438  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
17439  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
17440  eval ac_define_dir="\"$FONTDIR\""
17441  eval ac_define_dir="\"$ac_define_dir\""
17442  BASE_FONT_PATH="$ac_define_dir"
17443
17444
17445cat >>confdefs.h <<_ACEOF
17446#define BASE_FONT_PATH "$ac_define_dir"
17447_ACEOF
17448
17449  test "$prefix_NONE" && prefix=NONE
17450  test "$exec_prefix_NONE" && exec_prefix=NONE
17451
17452
17453  prefix_NONE=
17454  exec_prefix_NONE=
17455  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
17456  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
17457  eval ac_define_dir="\"$DRI_DRIVER_PATH\""
17458  eval ac_define_dir="\"$ac_define_dir\""
17459  DRI_DRIVER_PATH="$ac_define_dir"
17460
17461
17462cat >>confdefs.h <<_ACEOF
17463#define DRI_DRIVER_PATH "$ac_define_dir"
17464_ACEOF
17465
17466  test "$prefix_NONE" && prefix=NONE
17467  test "$exec_prefix_NONE" && exec_prefix=NONE
17468
17469
17470cat >>confdefs.h <<_ACEOF
17471#define XVENDORNAME "$VENDOR_NAME"
17472_ACEOF
17473
17474
17475cat >>confdefs.h <<_ACEOF
17476#define XVENDORNAMESHORT "$VENDOR_NAME_SHORT"
17477_ACEOF
17478
17479
17480cat >>confdefs.h <<_ACEOF
17481#define XORG_DATE "$RELEASE_DATE"
17482_ACEOF
17483
17484
17485cat >>confdefs.h <<_ACEOF
17486#define XORG_MAN_VERSION "$VENDOR_MAN_VERSION"
17487_ACEOF
17488
17489
17490cat >>confdefs.h <<_ACEOF
17491#define BUILDERADDR "$BUILDERADDR"
17492_ACEOF
17493
17494
17495if test -z "$OSNAME"; then
17496    OSNAME="UNKNOWN"
17497fi
17498
17499
17500cat >>confdefs.h <<_ACEOF
17501#define OSNAME "$OSNAME"
17502_ACEOF
17503
17504
17505cat >>confdefs.h <<_ACEOF
17506#define OSVENDOR "$OSVENDOR"
17507_ACEOF
17508
17509
17510cat >>confdefs.h <<_ACEOF
17511#define BUILDERSTRING "$BUILDERSTRING"
17512_ACEOF
17513
17514
17515
17516
17517
17518
17519
17520
17521$as_echo "#define NO_LIBCWRAPPER 1" >>confdefs.h
17522
17523
17524if test "x$DEBUGGING" = xyes; then
17525
17526$as_echo "#define DEBUG 1" >>confdefs.h
17527
17528fi
17529 if test "x$DEBUGGING" = xyes; then
17530  DEBUG_TRUE=
17531  DEBUG_FALSE='#'
17532else
17533  DEBUG_TRUE='#'
17534  DEBUG_FALSE=
17535fi
17536
17537
17538
17539$as_echo "#define XTEST 1" >>confdefs.h
17540
17541
17542$as_echo "#define XSYNC 1" >>confdefs.h
17543
17544
17545$as_echo "#define XCMISC 1" >>confdefs.h
17546
17547
17548$as_echo "#define BIGREQS 1" >>confdefs.h
17549
17550
17551if test "x$WDTRACE" != "xno" ; then
17552  DIX_LIB='$(top_builddir)/dix/dix.O'
17553  OS_LIB='$(top_builddir)/os/os.O'
17554else
17555  DIX_LIB='$(top_builddir)/dix/libdix.la'
17556  OS_LIB='$(top_builddir)/os/libos.la'
17557fi
17558MI_LIB='$(top_builddir)/mi/libmi.la'
17559MI_EXT_LIB='$(top_builddir)/mi/libmiext.la'
17560MI_INC='-I$(top_srcdir)/mi'
17561FB_LIB='$(top_builddir)/fb/libfb.la'
17562FB_INC='-I$(top_srcdir)/fb'
17563MIEXT_SHADOW_INC='-I$(top_srcdir)/miext/shadow'
17564MIEXT_SHADOW_LIB='$(top_builddir)/miext/shadow/libshadow.la'
17565CORE_INCS='-I$(top_srcdir)/include -I$(top_builddir)/include'
17566
17567# OpenSSL used for SHA1 hashing in render/glyph.c, but we don't need all of
17568# the OpenSSL libraries, just libcrypto
17569# Some systems have matching functionality in the smaller/simpler libmd
17570# Builders who want to force a choice can set SHA1_LIB and SHA1_CFLAGS
17571if test "x$SHA1_LIB" = "x" ; then
17572  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1Init in -lmd" >&5
17573$as_echo_n "checking for SHA1Init in -lmd... " >&6; }
17574if test "${ac_cv_lib_md_SHA1Init+set}" = set; then :
17575  $as_echo_n "(cached) " >&6
17576else
17577  ac_check_lib_save_LIBS=$LIBS
17578LIBS="-lmd  $LIBS"
17579cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17580/* end confdefs.h.  */
17581
17582/* Override any GCC internal prototype to avoid an error.
17583   Use char because int might match the return type of a GCC
17584   builtin and then its argument prototype would still apply.  */
17585#ifdef __cplusplus
17586extern "C"
17587#endif
17588char SHA1Init ();
17589int
17590main ()
17591{
17592return SHA1Init ();
17593  ;
17594  return 0;
17595}
17596_ACEOF
17597if ac_fn_c_try_link "$LINENO"; then :
17598  ac_cv_lib_md_SHA1Init=yes
17599else
17600  ac_cv_lib_md_SHA1Init=no
17601fi
17602rm -f core conftest.err conftest.$ac_objext \
17603    conftest$ac_exeext conftest.$ac_ext
17604LIBS=$ac_check_lib_save_LIBS
17605fi
17606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_md_SHA1Init" >&5
17607$as_echo "$ac_cv_lib_md_SHA1Init" >&6; }
17608if test "x$ac_cv_lib_md_SHA1Init" = x""yes; then :
17609  SHA1_LIB="-lmd"
17610
17611$as_echo "#define HAVE_SHA1_IN_LIBMD 1" >>confdefs.h
17612
17613fi
17614
17615fi
17616
17617if test "x$SHA1_LIB" = "x" ; then
17618  if test -n "$PKG_CONFIG" && \
17619    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OPENSSL\""; } >&5
17620  ($PKG_CONFIG --exists --print-errors "OPENSSL") 2>&5
17621  ac_status=$?
17622  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17623  test $ac_status = 0; }; then
17624  openssl
17625else
17626  HAVE_OPENSSL_PKC=yes
17627fi
17628  if test "x$HAVE_OPENSSL_PKC" = xyes; then
17629    REQUIRED_LIBS="$REQUIRED_LIBS openssl"
17630  else
17631    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1_Init in -lcrypto" >&5
17632$as_echo_n "checking for SHA1_Init in -lcrypto... " >&6; }
17633if test "${ac_cv_lib_crypto_SHA1_Init+set}" = set; then :
17634  $as_echo_n "(cached) " >&6
17635else
17636  ac_check_lib_save_LIBS=$LIBS
17637LIBS="-lcrypto  $LIBS"
17638cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17639/* end confdefs.h.  */
17640
17641/* Override any GCC internal prototype to avoid an error.
17642   Use char because int might match the return type of a GCC
17643   builtin and then its argument prototype would still apply.  */
17644#ifdef __cplusplus
17645extern "C"
17646#endif
17647char SHA1_Init ();
17648int
17649main ()
17650{
17651return SHA1_Init ();
17652  ;
17653  return 0;
17654}
17655_ACEOF
17656if ac_fn_c_try_link "$LINENO"; then :
17657  ac_cv_lib_crypto_SHA1_Init=yes
17658else
17659  ac_cv_lib_crypto_SHA1_Init=no
17660fi
17661rm -f core conftest.err conftest.$ac_objext \
17662    conftest$ac_exeext conftest.$ac_ext
17663LIBS=$ac_check_lib_save_LIBS
17664fi
17665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA1_Init" >&5
17666$as_echo "$ac_cv_lib_crypto_SHA1_Init" >&6; }
17667if test "x$ac_cv_lib_crypto_SHA1_Init" = x""yes; then :
17668  SHA1_LIB="-lcrypto"
17669else
17670  as_fn_error "OpenSSL must be installed in order to build the X server." "$LINENO" 5
17671fi
17672
17673  fi
17674fi
17675
17676
17677pkg_failed=no
17678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSERVERCFLAGS" >&5
17679$as_echo_n "checking for XSERVERCFLAGS... " >&6; }
17680
17681if test -n "$PKG_CONFIG"; then
17682    if test -n "$XSERVERCFLAGS_CFLAGS"; then
17683        pkg_cv_XSERVERCFLAGS_CFLAGS="$XSERVERCFLAGS_CFLAGS"
17684    else
17685        if test -n "$PKG_CONFIG" && \
17686    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_MODULES \$REQUIRED_LIBS\""; } >&5
17687  ($PKG_CONFIG --exists --print-errors "$REQUIRED_MODULES $REQUIRED_LIBS") 2>&5
17688  ac_status=$?
17689  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17690  test $ac_status = 0; }; then
17691  pkg_cv_XSERVERCFLAGS_CFLAGS=`$PKG_CONFIG --cflags "$REQUIRED_MODULES $REQUIRED_LIBS" 2>/dev/null`
17692else
17693  pkg_failed=yes
17694fi
17695    fi
17696else
17697	pkg_failed=untried
17698fi
17699if test -n "$PKG_CONFIG"; then
17700    if test -n "$XSERVERCFLAGS_LIBS"; then
17701        pkg_cv_XSERVERCFLAGS_LIBS="$XSERVERCFLAGS_LIBS"
17702    else
17703        if test -n "$PKG_CONFIG" && \
17704    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_MODULES \$REQUIRED_LIBS\""; } >&5
17705  ($PKG_CONFIG --exists --print-errors "$REQUIRED_MODULES $REQUIRED_LIBS") 2>&5
17706  ac_status=$?
17707  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17708  test $ac_status = 0; }; then
17709  pkg_cv_XSERVERCFLAGS_LIBS=`$PKG_CONFIG --libs "$REQUIRED_MODULES $REQUIRED_LIBS" 2>/dev/null`
17710else
17711  pkg_failed=yes
17712fi
17713    fi
17714else
17715	pkg_failed=untried
17716fi
17717
17718
17719
17720if test $pkg_failed = yes; then
17721
17722if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17723        _pkg_short_errors_supported=yes
17724else
17725        _pkg_short_errors_supported=no
17726fi
17727        if test $_pkg_short_errors_supported = yes; then
17728	        XSERVERCFLAGS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$REQUIRED_MODULES $REQUIRED_LIBS"`
17729        else
17730	        XSERVERCFLAGS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$REQUIRED_MODULES $REQUIRED_LIBS"`
17731        fi
17732	# Put the nasty error message in config.log where it belongs
17733	echo "$XSERVERCFLAGS_PKG_ERRORS" >&5
17734
17735	as_fn_error "Package requirements ($REQUIRED_MODULES $REQUIRED_LIBS) were not met:
17736
17737$XSERVERCFLAGS_PKG_ERRORS
17738
17739Consider adjusting the PKG_CONFIG_PATH environment variable if you
17740installed software in a non-standard prefix.
17741
17742Alternatively, you may set the environment variables XSERVERCFLAGS_CFLAGS
17743and XSERVERCFLAGS_LIBS to avoid the need to call pkg-config.
17744See the pkg-config man page for more details.
17745" "$LINENO" 5
17746elif test $pkg_failed = untried; then
17747	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17748$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17749as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
17750is in your PATH or set the PKG_CONFIG environment variable to the full
17751path to pkg-config.
17752
17753Alternatively, you may set the environment variables XSERVERCFLAGS_CFLAGS
17754and XSERVERCFLAGS_LIBS to avoid the need to call pkg-config.
17755See the pkg-config man page for more details.
17756
17757To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17758See \`config.log' for more details." "$LINENO" 5; }
17759else
17760	XSERVERCFLAGS_CFLAGS=$pkg_cv_XSERVERCFLAGS_CFLAGS
17761	XSERVERCFLAGS_LIBS=$pkg_cv_XSERVERCFLAGS_LIBS
17762        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17763$as_echo "yes" >&6; }
17764	:
17765fi
17766
17767pkg_failed=no
17768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSERVERLIBS" >&5
17769$as_echo_n "checking for XSERVERLIBS... " >&6; }
17770
17771if test -n "$PKG_CONFIG"; then
17772    if test -n "$XSERVERLIBS_CFLAGS"; then
17773        pkg_cv_XSERVERLIBS_CFLAGS="$XSERVERLIBS_CFLAGS"
17774    else
17775        if test -n "$PKG_CONFIG" && \
17776    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_LIBS\""; } >&5
17777  ($PKG_CONFIG --exists --print-errors "$REQUIRED_LIBS") 2>&5
17778  ac_status=$?
17779  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17780  test $ac_status = 0; }; then
17781  pkg_cv_XSERVERLIBS_CFLAGS=`$PKG_CONFIG --cflags "$REQUIRED_LIBS" 2>/dev/null`
17782else
17783  pkg_failed=yes
17784fi
17785    fi
17786else
17787	pkg_failed=untried
17788fi
17789if test -n "$PKG_CONFIG"; then
17790    if test -n "$XSERVERLIBS_LIBS"; then
17791        pkg_cv_XSERVERLIBS_LIBS="$XSERVERLIBS_LIBS"
17792    else
17793        if test -n "$PKG_CONFIG" && \
17794    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_LIBS\""; } >&5
17795  ($PKG_CONFIG --exists --print-errors "$REQUIRED_LIBS") 2>&5
17796  ac_status=$?
17797  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17798  test $ac_status = 0; }; then
17799  pkg_cv_XSERVERLIBS_LIBS=`$PKG_CONFIG --libs "$REQUIRED_LIBS" 2>/dev/null`
17800else
17801  pkg_failed=yes
17802fi
17803    fi
17804else
17805	pkg_failed=untried
17806fi
17807
17808
17809
17810if test $pkg_failed = yes; then
17811
17812if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17813        _pkg_short_errors_supported=yes
17814else
17815        _pkg_short_errors_supported=no
17816fi
17817        if test $_pkg_short_errors_supported = yes; then
17818	        XSERVERLIBS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$REQUIRED_LIBS"`
17819        else
17820	        XSERVERLIBS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$REQUIRED_LIBS"`
17821        fi
17822	# Put the nasty error message in config.log where it belongs
17823	echo "$XSERVERLIBS_PKG_ERRORS" >&5
17824
17825	as_fn_error "Package requirements ($REQUIRED_LIBS) were not met:
17826
17827$XSERVERLIBS_PKG_ERRORS
17828
17829Consider adjusting the PKG_CONFIG_PATH environment variable if you
17830installed software in a non-standard prefix.
17831
17832Alternatively, you may set the environment variables XSERVERLIBS_CFLAGS
17833and XSERVERLIBS_LIBS to avoid the need to call pkg-config.
17834See the pkg-config man page for more details.
17835" "$LINENO" 5
17836elif test $pkg_failed = untried; then
17837	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17838$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17839as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
17840is in your PATH or set the PKG_CONFIG environment variable to the full
17841path to pkg-config.
17842
17843Alternatively, you may set the environment variables XSERVERLIBS_CFLAGS
17844and XSERVERLIBS_LIBS to avoid the need to call pkg-config.
17845See the pkg-config man page for more details.
17846
17847To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17848See \`config.log' for more details." "$LINENO" 5; }
17849else
17850	XSERVERLIBS_CFLAGS=$pkg_cv_XSERVERLIBS_CFLAGS
17851	XSERVERLIBS_LIBS=$pkg_cv_XSERVERLIBS_LIBS
17852        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17853$as_echo "yes" >&6; }
17854	:
17855fi
17856
17857# Autotools has some unfortunate issues with library handling.  In order to
17858# get a server to rebuild when a dependency in the tree is changed, it must
17859# be listed in SERVERNAME_DEPENDENCIES.  However, no system libraries may be
17860# listed there, or some versions of autotools will break (especially if a -L
17861# is required to find the library).  So, we keep two sets of libraries
17862# detected: NAMESPACE_LIBS for in-tree libraries to be linked against, which
17863# will go into the _DEPENDENCIES and _LDADD of the server, and
17864# NAMESPACE_SYS_LIBS which will go into only the _LDADD.  The
17865# NAMESPACEMODULES_LIBS detected from pkgconfig should always go in
17866# NAMESPACE_SYS_LIBS.
17867#
17868# XSERVER_LIBS is the set of in-tree libraries which all servers require.
17869# XSERVER_SYS_LIBS is the set of out-of-tree libraries which all servers
17870# require.
17871#
17872XSERVER_CFLAGS="${XSERVERCFLAGS_CFLAGS} ${SHA1_CFLAGS}"
17873XSERVER_LIBS="$DIX_LIB $CONFIG_LIB $MI_LIB $OS_LIB"
17874XSERVER_SYS_LIBS="${XSERVERLIBS_LIBS} ${SYS_LIBS} ${LIBS} ${SHA1_LIB}"
17875
17876
17877
17878UTILS_SYS_LIBS="${SYS_LIBS}"
17879
17880
17881# The Xorg binary needs to export symbols so that they can be used from modules
17882# Some platforms require extra flags to do this.   gcc should set these flags
17883# when -rdynamic is passed to it, other compilers/linkers may need to be added
17884# here.
17885if test "x$GCC" = "xyes"; then
17886       GCC_WARNINGS1="-Wall -Wpointer-arith -Wstrict-prototypes"
17887       GCC_WARNINGS2="-Wmissing-prototypes -Wmissing-declarations"
17888       GCC_WARNINGS3="-Wnested-externs -fno-strict-aliasing"
17889       GCC_WARNINGS="$GCC_WARNINGS1 $GCC_WARNINGS2 $GCC_WARNINGS3"
17890       if test "x$WERROR" = "xyes"; then
17891               GCC_WARNINGS="${GCC_WARNINGS} -Werror"
17892       fi
17893       XSERVER_CFLAGS="$GCC_WARNINGS $XSERVER_CFLAGS"
17894
17895       LD_EXPORT_SYMBOLS_FLAG="-rdynamic"
17896fi
17897case $host_os in
17898       openbsd*)
17899       LD_EXPORT_SYMBOLS_FLAG="-Wl,--export-dynamic"
17900       ;;
17901esac
17902
17903
17904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SVR4 needs to be defined" >&5
17905$as_echo_n "checking if SVR4 needs to be defined... " >&6; }
17906cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17907/* end confdefs.h.  */
17908
17909#if defined(SVR4) || defined(__svr4__) || defined(__SVR4)
17910 I_AM_SVR4
17911#endif
17912
17913_ACEOF
17914if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17915  $EGREP "I_AM_SVR4" >/dev/null 2>&1; then :
17916
17917
17918$as_echo "#define SVR4 1" >>confdefs.h
17919
17920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17921$as_echo "yes" >&6; }
17922else
17923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17924$as_echo "no" >&6; }
17925fi
17926rm -f conftest*
17927
17928
17929XSERVER_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"
17930
17931
17932
17933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xvfb DDX" >&5
17934$as_echo_n "checking whether to build Xvfb DDX... " >&6; }
17935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XVFB" >&5
17936$as_echo "$XVFB" >&6; }
17937 if test "x$XVFB" = xyes; then
17938  XVFB_TRUE=
17939  XVFB_FALSE='#'
17940else
17941  XVFB_TRUE='#'
17942  XVFB_FALSE=
17943fi
17944
17945
17946if test "x$XVFB" = xyes; then
17947	XVFB_LIBS="$FB_LIB $FIXES_LIB $XEXT_LIB $CONFIG_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"
17948	XVFB_SYS_LIBS="$XVFBMODULES_LIBS $GLX_SYS_LIBS"
17949
17950
17951fi
17952
17953
17954
17955
17956pkg_failed=no
17957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XNESTMODULES" >&5
17958$as_echo_n "checking for XNESTMODULES... " >&6; }
17959
17960if test -n "$PKG_CONFIG"; then
17961    if test -n "$XNESTMODULES_CFLAGS"; then
17962        pkg_cv_XNESTMODULES_CFLAGS="$XNESTMODULES_CFLAGS"
17963    else
17964        if test -n "$PKG_CONFIG" && \
17965    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfont xext x11 xau \$XDMCP_MODULES\""; } >&5
17966  ($PKG_CONFIG --exists --print-errors "xfont xext x11 xau $XDMCP_MODULES") 2>&5
17967  ac_status=$?
17968  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17969  test $ac_status = 0; }; then
17970  pkg_cv_XNESTMODULES_CFLAGS=`$PKG_CONFIG --cflags "xfont xext x11 xau $XDMCP_MODULES" 2>/dev/null`
17971else
17972  pkg_failed=yes
17973fi
17974    fi
17975else
17976	pkg_failed=untried
17977fi
17978if test -n "$PKG_CONFIG"; then
17979    if test -n "$XNESTMODULES_LIBS"; then
17980        pkg_cv_XNESTMODULES_LIBS="$XNESTMODULES_LIBS"
17981    else
17982        if test -n "$PKG_CONFIG" && \
17983    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfont xext x11 xau \$XDMCP_MODULES\""; } >&5
17984  ($PKG_CONFIG --exists --print-errors "xfont xext x11 xau $XDMCP_MODULES") 2>&5
17985  ac_status=$?
17986  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17987  test $ac_status = 0; }; then
17988  pkg_cv_XNESTMODULES_LIBS=`$PKG_CONFIG --libs "xfont xext x11 xau $XDMCP_MODULES" 2>/dev/null`
17989else
17990  pkg_failed=yes
17991fi
17992    fi
17993else
17994	pkg_failed=untried
17995fi
17996
17997
17998
17999if test $pkg_failed = yes; then
18000
18001if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18002        _pkg_short_errors_supported=yes
18003else
18004        _pkg_short_errors_supported=no
18005fi
18006        if test $_pkg_short_errors_supported = yes; then
18007	        XNESTMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xfont xext x11 xau $XDMCP_MODULES"`
18008        else
18009	        XNESTMODULES_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xfont xext x11 xau $XDMCP_MODULES"`
18010        fi
18011	# Put the nasty error message in config.log where it belongs
18012	echo "$XNESTMODULES_PKG_ERRORS" >&5
18013
18014	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18015$as_echo "no" >&6; }
18016                have_xnest=no
18017elif test $pkg_failed = untried; then
18018	have_xnest=no
18019else
18020	XNESTMODULES_CFLAGS=$pkg_cv_XNESTMODULES_CFLAGS
18021	XNESTMODULES_LIBS=$pkg_cv_XNESTMODULES_LIBS
18022        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18023$as_echo "yes" >&6; }
18024	have_xnest=yes
18025fi
18026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xnest DDX" >&5
18027$as_echo_n "checking whether to build Xnest DDX... " >&6; }
18028if test "x$XNEST" = xauto; then
18029	XNEST="$have_xnest"
18030fi
18031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XNEST" >&5
18032$as_echo "$XNEST" >&6; }
18033 if test "x$XNEST" = xyes; then
18034  XNEST_TRUE=
18035  XNEST_FALSE='#'
18036else
18037  XNEST_TRUE='#'
18038  XNEST_FALSE=
18039fi
18040
18041
18042if test "x$XNEST" = xyes; then
18043	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 $OS_LIB $CONFIG_LIB"
18044	XNEST_SYS_LIBS="$XNESTMODULES_LIBS $GLX_SYS_LIBS"
18045
18046
18047fi
18048
18049
18050
18051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xorg DDX" >&5
18052$as_echo_n "checking whether to build Xorg DDX... " >&6; }
18053if test "x$XORG" = xauto; then
18054	XORG="yes"
18055	case $host_os in
18056		cygwin*) XORG="no" ;;
18057		darwin*) XORG="no" ;;
18058	esac
18059fi
18060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG" >&5
18061$as_echo "$XORG" >&6; }
18062
18063xorg_bus_linuxpci=no
18064xorg_bus_bsdpci=no
18065xorg_bus_sparc=no
18066
18067if test "x$XORG" = xyes; then
18068	XORG_DDXINCS='-I$(top_srcdir)/hw/xfree86 -I$(top_srcdir)/hw/xfree86/include -I$(top_srcdir)/hw/xfree86/common'
18069	XORG_OSINCS='-I$(top_srcdir)/hw/xfree86/os-support -I$(top_srcdir)/hw/xfree86/os-support/bus -I$(top_srcdir)/os'
18070	XORG_INCS="$XORG_DDXINCS $XORG_OSINCS"
18071	XORG_CFLAGS="$XORGSERVER_CFLAGS -DHAVE_XORG_CONFIG_H"
18072	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"
18073
18074
18075pkg_failed=no
18076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
18077$as_echo_n "checking for PCIACCESS... " >&6; }
18078
18079if test -n "$PKG_CONFIG"; then
18080    if test -n "$PCIACCESS_CFLAGS"; then
18081        pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
18082    else
18083        if test -n "$PKG_CONFIG" && \
18084    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18085  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18086  ac_status=$?
18087  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18088  test $ac_status = 0; }; then
18089  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
18090else
18091  pkg_failed=yes
18092fi
18093    fi
18094else
18095	pkg_failed=untried
18096fi
18097if test -n "$PKG_CONFIG"; then
18098    if test -n "$PCIACCESS_LIBS"; then
18099        pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
18100    else
18101        if test -n "$PKG_CONFIG" && \
18102    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18103  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18104  ac_status=$?
18105  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18106  test $ac_status = 0; }; then
18107  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
18108else
18109  pkg_failed=yes
18110fi
18111    fi
18112else
18113	pkg_failed=untried
18114fi
18115
18116
18117
18118if test $pkg_failed = yes; then
18119
18120if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18121        _pkg_short_errors_supported=yes
18122else
18123        _pkg_short_errors_supported=no
18124fi
18125        if test $_pkg_short_errors_supported = yes; then
18126	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pciaccess >= 0.8.0"`
18127        else
18128	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pciaccess >= 0.8.0"`
18129        fi
18130	# Put the nasty error message in config.log where it belongs
18131	echo "$PCIACCESS_PKG_ERRORS" >&5
18132
18133	as_fn_error "Package requirements (pciaccess >= 0.8.0) were not met:
18134
18135$PCIACCESS_PKG_ERRORS
18136
18137Consider adjusting the PKG_CONFIG_PATH environment variable if you
18138installed software in a non-standard prefix.
18139
18140Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18141and PCIACCESS_LIBS to avoid the need to call pkg-config.
18142See the pkg-config man page for more details.
18143" "$LINENO" 5
18144elif test $pkg_failed = untried; then
18145	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18146$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18147as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
18148is in your PATH or set the PKG_CONFIG environment variable to the full
18149path to pkg-config.
18150
18151Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18152and PCIACCESS_LIBS to avoid the need to call pkg-config.
18153See the pkg-config man page for more details.
18154
18155To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18156See \`config.log' for more details." "$LINENO" 5; }
18157else
18158	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
18159	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
18160        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18161$as_echo "yes" >&6; }
18162	:
18163fi
18164	SAVE_LIBS=$LIBS
18165	SAVE_CFLAGS=$CFLAGS
18166	CFLAGS=$PCIACCESS_CFLAGS
18167	LIBS=$PCIACCESS_LIBS
18168	for ac_func in pci_system_init_dev_mem
18169do :
18170  ac_fn_c_check_func "$LINENO" "pci_system_init_dev_mem" "ac_cv_func_pci_system_init_dev_mem"
18171if test "x$ac_cv_func_pci_system_init_dev_mem" = x""yes; then :
18172  cat >>confdefs.h <<_ACEOF
18173#define HAVE_PCI_SYSTEM_INIT_DEV_MEM 1
18174_ACEOF
18175
18176fi
18177done
18178
18179	for ac_func in pci_device_enable
18180do :
18181  ac_fn_c_check_func "$LINENO" "pci_device_enable" "ac_cv_func_pci_device_enable"
18182if test "x$ac_cv_func_pci_device_enable" = x""yes; then :
18183  cat >>confdefs.h <<_ACEOF
18184#define HAVE_PCI_DEVICE_ENABLE 1
18185_ACEOF
18186
18187fi
18188done
18189
18190	LIBS=$SAVE_LIBS
18191	CFLAGS=$SAVE_CFLAGS
18192	XORG_SYS_LIBS="$XORG_SYS_LIBS $PCIACCESS_LIBS $DLOPEN_LIBS $GLX_SYS_LIBS $SELINUX_LIB"
18193	XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
18194
18195	case $host_os in
18196	  linux*)
18197		if test "x$LNXAPM" = xyes; then
18198			XORG_CFLAGS="$XORG_CFLAGS -DXF86PM"
18199		fi
18200	  	XORG_OS="linux"
18201		XORG_OS_SUBDIR="linux"
18202		xorg_bus_linuxpci="yes"
18203		linux_acpi="no"
18204		case $host_cpu in
18205		  ia64*)
18206			linux_ia64=yes
18207			linux_acpi="yes"
18208			;;
18209		  alpha*)
18210		  	linux_alpha=yes
18211			;;
18212		  i*86|amd64*|x86_64*)
18213			linux_acpi="yes"
18214			;;
18215		  *)
18216			;;
18217		esac
18218		;;
18219	  freebsd* | kfreebsd*-gnu | dragonfly*)
18220	  	XORG_OS="freebsd"
18221		XORG_OS_SUBDIR="bsd"
18222		xorg_bus_bsdpci="yes"
18223		;;
18224	  netbsd*)
18225	  	XORG_OS="netbsd"
18226		XORG_OS_SUBDIR="bsd"
18227		xorg_bus_bsdpci="yes"
18228		;;
18229	  openbsd*)
18230		if test "x$ac_cv_BSD_APM" = xyes \
18231			-o "x$ac_cv_BSD_KQUEUE_APM" = xyes; then
18232			XORG_CFLAGS="$XORG_CFLAGS -DXF86PM"
18233		fi
18234	  	XORG_OS="openbsd"
18235		XORG_OS_SUBDIR="bsd"
18236		xorg_bus_bsdpci="yes"
18237		;;
18238	  solaris*)
18239	  	XORG_OS="solaris"
18240		XORG_OS_SUBDIR="solaris"
18241		# Use the same stubs as BSD for old functions, since we now
18242		# use libpciaccess for PCI
18243		xorg_bus_bsdpci="yes"
18244		for ac_header in sys/kd.h
18245do :
18246  ac_fn_c_check_header_mongrel "$LINENO" "sys/kd.h" "ac_cv_header_sys_kd_h" "$ac_includes_default"
18247if test "x$ac_cv_header_sys_kd_h" = x""yes; then :
18248  cat >>confdefs.h <<_ACEOF
18249#define HAVE_SYS_KD_H 1
18250_ACEOF
18251
18252fi
18253
18254done
18255
18256		# This really should be tests for specific features, but the #ifdef's
18257		# were done as a simple version check in XFree86 4.x and haven't been
18258		# fixed yet
18259		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris version" >&5
18260$as_echo_n "checking Solaris version... " >&6; }
18261	        OS_MINOR=`echo ${host_os}|sed -e 's/^.*solaris2\.//' -e s'/\..*$//'`
18262		if test "${OS_MINOR}" -ge 7 ; then
18263	        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris ${OS_MINOR}" >&5
18264$as_echo "Solaris ${OS_MINOR}" >&6; }
18265		else
18266			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris \`echo ${host_os}|sed -e 's/^.*solaris//\`" >&5
18267$as_echo "Solaris \`echo ${host_os}|sed -e 's/^.*solaris//\`" >&6; }
18268		fi
18269		if test "${OS_MINOR}" -ge 8 ; then
18270
18271$as_echo "#define __SOL8__ 1" >>confdefs.h
18272
18273		fi
18274		ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
18275if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
18276  SUNCC="yes"
18277else
18278  SUNCC="no"
18279fi
18280
18281		if test "x$SUNCC" = "xyes"; then
18282			solaris_asm_inline="yes"
18283		fi
18284		ac_fn_c_check_decl "$LINENO" "_LP64" "ac_cv_have_decl__LP64" "$ac_includes_default"
18285if test "x$ac_cv_have_decl__LP64" = x""yes; then :
18286  SOLARIS_64="yes"
18287else
18288  SOLARIS_64="no"
18289fi
18290
18291
18292		case $host_cpu in
18293		  sparc*)
18294			SOLARIS_INOUT_ARCH="sparcv8plus"
18295			;;
18296		  i*86)
18297			if test x$SOLARIS_64 = xyes ; then
18298				SOLARIS_INOUT_ARCH="amd64"
18299			else
18300				SOLARIS_INOUT_ARCH="ia32"
18301			fi
18302			if test "${OS_MINOR}" -lt 8 ; then
18303				solaris_usl_console="yes"
18304			else
18305				XORG_CFLAGS="$XORG_CFLAGS -DXF86PM"
18306			fi
18307			;;
18308		  *)
18309			as_fn_error "Unsupported Solaris platform. Only SPARC & x86 \
18310			are supported on Solaris in this release.   If you are \
18311			interested in porting Xorg to your platform, please email \
18312			xorg@lists.freedesktop.org." "$LINENO" 5 ;;
18313		esac
18314
18315		if test x$solaris_asm_inline = xyes ; then
18316			SOLARIS_ASM_CFLAGS='$(top_srcdir)/hw/xfree86/os-support/solaris/solaris-$(SOLARIS_INOUT_ARCH).il'
18317			XORG_CFLAGS="${XORG_CFLAGS} "'$(SOLARIS_ASM_CFLAGS)'
18318		fi
18319
18320		;;
18321	  gnu*)
18322	  	XORG_OS="gnu"
18323		XORG_OS_SUBDIR="hurd"
18324		;;
18325	  *)
18326	  	XORG_OS="unknown"
18327		XORG_OS_SUBDIR="unknown"
18328		as_fn_error "Your OS is unknown. Xorg currently only supports Linux, \
18329		Free/Open/NetBSD, Solaris, and OS X. If you are interested in porting \
18330	        Xorg to your platform, please email xorg@lists.freedesktop.org." "$LINENO" 5
18331		;;
18332	esac
18333
18334	case $host_cpu in
18335	  sparc*)
18336		xorg_bus_sparc="yes"
18337		;;
18338	esac
18339
18340	if test "x$XORG_OS_PCI" = x ; then
18341		XORG_OS_PCI=$XORG_OS
18342	fi
18343	if test "x$DGA" = xauto; then
18344
18345pkg_failed=no
18346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGA" >&5
18347$as_echo_n "checking for DGA... " >&6; }
18348
18349if test -n "$PKG_CONFIG"; then
18350    if test -n "$DGA_CFLAGS"; then
18351        pkg_cv_DGA_CFLAGS="$DGA_CFLAGS"
18352    else
18353        if test -n "$PKG_CONFIG" && \
18354    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86dgaproto\""; } >&5
18355  ($PKG_CONFIG --exists --print-errors "xf86dgaproto") 2>&5
18356  ac_status=$?
18357  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18358  test $ac_status = 0; }; then
18359  pkg_cv_DGA_CFLAGS=`$PKG_CONFIG --cflags "xf86dgaproto" 2>/dev/null`
18360else
18361  pkg_failed=yes
18362fi
18363    fi
18364else
18365	pkg_failed=untried
18366fi
18367if test -n "$PKG_CONFIG"; then
18368    if test -n "$DGA_LIBS"; then
18369        pkg_cv_DGA_LIBS="$DGA_LIBS"
18370    else
18371        if test -n "$PKG_CONFIG" && \
18372    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86dgaproto\""; } >&5
18373  ($PKG_CONFIG --exists --print-errors "xf86dgaproto") 2>&5
18374  ac_status=$?
18375  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18376  test $ac_status = 0; }; then
18377  pkg_cv_DGA_LIBS=`$PKG_CONFIG --libs "xf86dgaproto" 2>/dev/null`
18378else
18379  pkg_failed=yes
18380fi
18381    fi
18382else
18383	pkg_failed=untried
18384fi
18385
18386
18387
18388if test $pkg_failed = yes; then
18389
18390if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18391        _pkg_short_errors_supported=yes
18392else
18393        _pkg_short_errors_supported=no
18394fi
18395        if test $_pkg_short_errors_supported = yes; then
18396	        DGA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xf86dgaproto"`
18397        else
18398	        DGA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xf86dgaproto"`
18399        fi
18400	# Put the nasty error message in config.log where it belongs
18401	echo "$DGA_PKG_ERRORS" >&5
18402
18403	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18404$as_echo "no" >&6; }
18405                DGA=no
18406elif test $pkg_failed = untried; then
18407	DGA=no
18408else
18409	DGA_CFLAGS=$pkg_cv_DGA_CFLAGS
18410	DGA_LIBS=$pkg_cv_DGA_LIBS
18411        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18412$as_echo "yes" >&6; }
18413	DGA=yes
18414fi
18415	fi
18416	if test "x$DGA" = xyes; then
18417		XORG_MODULES="$XORG_MODULES xf86dgaproto"
18418
18419pkg_failed=no
18420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGA" >&5
18421$as_echo_n "checking for DGA... " >&6; }
18422
18423if test -n "$PKG_CONFIG"; then
18424    if test -n "$DGA_CFLAGS"; then
18425        pkg_cv_DGA_CFLAGS="$DGA_CFLAGS"
18426    else
18427        if test -n "$PKG_CONFIG" && \
18428    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86dgaproto\""; } >&5
18429  ($PKG_CONFIG --exists --print-errors "xf86dgaproto") 2>&5
18430  ac_status=$?
18431  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18432  test $ac_status = 0; }; then
18433  pkg_cv_DGA_CFLAGS=`$PKG_CONFIG --cflags "xf86dgaproto" 2>/dev/null`
18434else
18435  pkg_failed=yes
18436fi
18437    fi
18438else
18439	pkg_failed=untried
18440fi
18441if test -n "$PKG_CONFIG"; then
18442    if test -n "$DGA_LIBS"; then
18443        pkg_cv_DGA_LIBS="$DGA_LIBS"
18444    else
18445        if test -n "$PKG_CONFIG" && \
18446    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86dgaproto\""; } >&5
18447  ($PKG_CONFIG --exists --print-errors "xf86dgaproto") 2>&5
18448  ac_status=$?
18449  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18450  test $ac_status = 0; }; then
18451  pkg_cv_DGA_LIBS=`$PKG_CONFIG --libs "xf86dgaproto" 2>/dev/null`
18452else
18453  pkg_failed=yes
18454fi
18455    fi
18456else
18457	pkg_failed=untried
18458fi
18459
18460
18461
18462if test $pkg_failed = yes; then
18463
18464if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18465        _pkg_short_errors_supported=yes
18466else
18467        _pkg_short_errors_supported=no
18468fi
18469        if test $_pkg_short_errors_supported = yes; then
18470	        DGA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xf86dgaproto"`
18471        else
18472	        DGA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xf86dgaproto"`
18473        fi
18474	# Put the nasty error message in config.log where it belongs
18475	echo "$DGA_PKG_ERRORS" >&5
18476
18477	as_fn_error "Package requirements (xf86dgaproto) were not met:
18478
18479$DGA_PKG_ERRORS
18480
18481Consider adjusting the PKG_CONFIG_PATH environment variable if you
18482installed software in a non-standard prefix.
18483
18484Alternatively, you may set the environment variables DGA_CFLAGS
18485and DGA_LIBS to avoid the need to call pkg-config.
18486See the pkg-config man page for more details.
18487" "$LINENO" 5
18488elif test $pkg_failed = untried; then
18489	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18490$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18491as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
18492is in your PATH or set the PKG_CONFIG environment variable to the full
18493path to pkg-config.
18494
18495Alternatively, you may set the environment variables DGA_CFLAGS
18496and DGA_LIBS to avoid the need to call pkg-config.
18497See the pkg-config man page for more details.
18498
18499To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18500See \`config.log' for more details." "$LINENO" 5; }
18501else
18502	DGA_CFLAGS=$pkg_cv_DGA_CFLAGS
18503	DGA_LIBS=$pkg_cv_DGA_LIBS
18504        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18505$as_echo "yes" >&6; }
18506	:
18507fi
18508
18509$as_echo "#define DGA 1" >>confdefs.h
18510
18511
18512$as_echo "#define XFreeXDGA 1" >>confdefs.h
18513
18514	fi
18515
18516	if test "x$XF86VIDMODE" = xauto; then
18517
18518pkg_failed=no
18519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VIDMODE" >&5
18520$as_echo_n "checking for XF86VIDMODE... " >&6; }
18521
18522if test -n "$PKG_CONFIG"; then
18523    if test -n "$XF86VIDMODE_CFLAGS"; then
18524        pkg_cv_XF86VIDMODE_CFLAGS="$XF86VIDMODE_CFLAGS"
18525    else
18526        if test -n "$PKG_CONFIG" && \
18527    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86vidmodeproto\""; } >&5
18528  ($PKG_CONFIG --exists --print-errors "xf86vidmodeproto") 2>&5
18529  ac_status=$?
18530  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18531  test $ac_status = 0; }; then
18532  pkg_cv_XF86VIDMODE_CFLAGS=`$PKG_CONFIG --cflags "xf86vidmodeproto" 2>/dev/null`
18533else
18534  pkg_failed=yes
18535fi
18536    fi
18537else
18538	pkg_failed=untried
18539fi
18540if test -n "$PKG_CONFIG"; then
18541    if test -n "$XF86VIDMODE_LIBS"; then
18542        pkg_cv_XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS"
18543    else
18544        if test -n "$PKG_CONFIG" && \
18545    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86vidmodeproto\""; } >&5
18546  ($PKG_CONFIG --exists --print-errors "xf86vidmodeproto") 2>&5
18547  ac_status=$?
18548  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18549  test $ac_status = 0; }; then
18550  pkg_cv_XF86VIDMODE_LIBS=`$PKG_CONFIG --libs "xf86vidmodeproto" 2>/dev/null`
18551else
18552  pkg_failed=yes
18553fi
18554    fi
18555else
18556	pkg_failed=untried
18557fi
18558
18559
18560
18561if test $pkg_failed = yes; then
18562
18563if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18564        _pkg_short_errors_supported=yes
18565else
18566        _pkg_short_errors_supported=no
18567fi
18568        if test $_pkg_short_errors_supported = yes; then
18569	        XF86VIDMODE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xf86vidmodeproto"`
18570        else
18571	        XF86VIDMODE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xf86vidmodeproto"`
18572        fi
18573	# Put the nasty error message in config.log where it belongs
18574	echo "$XF86VIDMODE_PKG_ERRORS" >&5
18575
18576	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18577$as_echo "no" >&6; }
18578                XF86VIDMODE=no
18579elif test $pkg_failed = untried; then
18580	XF86VIDMODE=no
18581else
18582	XF86VIDMODE_CFLAGS=$pkg_cv_XF86VIDMODE_CFLAGS
18583	XF86VIDMODE_LIBS=$pkg_cv_XF86VIDMODE_LIBS
18584        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18585$as_echo "yes" >&6; }
18586	XF86VIDMODE=yes
18587fi
18588	fi
18589	if test "x$XF86VIDMODE" = xyes; then
18590		XORG_MODULES="$XORG_MODULES xf86vidmodeproto"
18591
18592pkg_failed=no
18593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VIDMODE" >&5
18594$as_echo_n "checking for XF86VIDMODE... " >&6; }
18595
18596if test -n "$PKG_CONFIG"; then
18597    if test -n "$XF86VIDMODE_CFLAGS"; then
18598        pkg_cv_XF86VIDMODE_CFLAGS="$XF86VIDMODE_CFLAGS"
18599    else
18600        if test -n "$PKG_CONFIG" && \
18601    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86vidmodeproto\""; } >&5
18602  ($PKG_CONFIG --exists --print-errors "xf86vidmodeproto") 2>&5
18603  ac_status=$?
18604  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18605  test $ac_status = 0; }; then
18606  pkg_cv_XF86VIDMODE_CFLAGS=`$PKG_CONFIG --cflags "xf86vidmodeproto" 2>/dev/null`
18607else
18608  pkg_failed=yes
18609fi
18610    fi
18611else
18612	pkg_failed=untried
18613fi
18614if test -n "$PKG_CONFIG"; then
18615    if test -n "$XF86VIDMODE_LIBS"; then
18616        pkg_cv_XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS"
18617    else
18618        if test -n "$PKG_CONFIG" && \
18619    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86vidmodeproto\""; } >&5
18620  ($PKG_CONFIG --exists --print-errors "xf86vidmodeproto") 2>&5
18621  ac_status=$?
18622  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18623  test $ac_status = 0; }; then
18624  pkg_cv_XF86VIDMODE_LIBS=`$PKG_CONFIG --libs "xf86vidmodeproto" 2>/dev/null`
18625else
18626  pkg_failed=yes
18627fi
18628    fi
18629else
18630	pkg_failed=untried
18631fi
18632
18633
18634
18635if test $pkg_failed = yes; then
18636
18637if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18638        _pkg_short_errors_supported=yes
18639else
18640        _pkg_short_errors_supported=no
18641fi
18642        if test $_pkg_short_errors_supported = yes; then
18643	        XF86VIDMODE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xf86vidmodeproto"`
18644        else
18645	        XF86VIDMODE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xf86vidmodeproto"`
18646        fi
18647	# Put the nasty error message in config.log where it belongs
18648	echo "$XF86VIDMODE_PKG_ERRORS" >&5
18649
18650	as_fn_error "Package requirements (xf86vidmodeproto) were not met:
18651
18652$XF86VIDMODE_PKG_ERRORS
18653
18654Consider adjusting the PKG_CONFIG_PATH environment variable if you
18655installed software in a non-standard prefix.
18656
18657Alternatively, you may set the environment variables XF86VIDMODE_CFLAGS
18658and XF86VIDMODE_LIBS to avoid the need to call pkg-config.
18659See the pkg-config man page for more details.
18660" "$LINENO" 5
18661elif test $pkg_failed = untried; then
18662	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18663$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18664as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
18665is in your PATH or set the PKG_CONFIG environment variable to the full
18666path to pkg-config.
18667
18668Alternatively, you may set the environment variables XF86VIDMODE_CFLAGS
18669and XF86VIDMODE_LIBS to avoid the need to call pkg-config.
18670See the pkg-config man page for more details.
18671
18672To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18673See \`config.log' for more details." "$LINENO" 5; }
18674else
18675	XF86VIDMODE_CFLAGS=$pkg_cv_XF86VIDMODE_CFLAGS
18676	XF86VIDMODE_LIBS=$pkg_cv_XF86VIDMODE_LIBS
18677        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18678$as_echo "yes" >&6; }
18679	:
18680fi
18681
18682$as_echo "#define XF86VIDMODE 1" >>confdefs.h
18683
18684	fi
18685
18686	if test -n "$XORG_MODULES"; then
18687
18688pkg_failed=no
18689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG_MODULES" >&5
18690$as_echo_n "checking for XORG_MODULES... " >&6; }
18691
18692if test -n "$PKG_CONFIG"; then
18693    if test -n "$XORG_MODULES_CFLAGS"; then
18694        pkg_cv_XORG_MODULES_CFLAGS="$XORG_MODULES_CFLAGS"
18695    else
18696        if test -n "$PKG_CONFIG" && \
18697    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XORG_MODULES\""; } >&5
18698  ($PKG_CONFIG --exists --print-errors "$XORG_MODULES") 2>&5
18699  ac_status=$?
18700  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18701  test $ac_status = 0; }; then
18702  pkg_cv_XORG_MODULES_CFLAGS=`$PKG_CONFIG --cflags "$XORG_MODULES" 2>/dev/null`
18703else
18704  pkg_failed=yes
18705fi
18706    fi
18707else
18708	pkg_failed=untried
18709fi
18710if test -n "$PKG_CONFIG"; then
18711    if test -n "$XORG_MODULES_LIBS"; then
18712        pkg_cv_XORG_MODULES_LIBS="$XORG_MODULES_LIBS"
18713    else
18714        if test -n "$PKG_CONFIG" && \
18715    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XORG_MODULES\""; } >&5
18716  ($PKG_CONFIG --exists --print-errors "$XORG_MODULES") 2>&5
18717  ac_status=$?
18718  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18719  test $ac_status = 0; }; then
18720  pkg_cv_XORG_MODULES_LIBS=`$PKG_CONFIG --libs "$XORG_MODULES" 2>/dev/null`
18721else
18722  pkg_failed=yes
18723fi
18724    fi
18725else
18726	pkg_failed=untried
18727fi
18728
18729
18730
18731if test $pkg_failed = yes; then
18732
18733if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18734        _pkg_short_errors_supported=yes
18735else
18736        _pkg_short_errors_supported=no
18737fi
18738        if test $_pkg_short_errors_supported = yes; then
18739	        XORG_MODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$XORG_MODULES"`
18740        else
18741	        XORG_MODULES_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$XORG_MODULES"`
18742        fi
18743	# Put the nasty error message in config.log where it belongs
18744	echo "$XORG_MODULES_PKG_ERRORS" >&5
18745
18746	as_fn_error "Package requirements ($XORG_MODULES) were not met:
18747
18748$XORG_MODULES_PKG_ERRORS
18749
18750Consider adjusting the PKG_CONFIG_PATH environment variable if you
18751installed software in a non-standard prefix.
18752
18753Alternatively, you may set the environment variables XORG_MODULES_CFLAGS
18754and XORG_MODULES_LIBS to avoid the need to call pkg-config.
18755See the pkg-config man page for more details.
18756" "$LINENO" 5
18757elif test $pkg_failed = untried; then
18758	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18759$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18760as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
18761is in your PATH or set the PKG_CONFIG environment variable to the full
18762path to pkg-config.
18763
18764Alternatively, you may set the environment variables XORG_MODULES_CFLAGS
18765and XORG_MODULES_LIBS to avoid the need to call pkg-config.
18766See the pkg-config man page for more details.
18767
18768To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18769See \`config.log' for more details." "$LINENO" 5; }
18770else
18771	XORG_MODULES_CFLAGS=$pkg_cv_XORG_MODULES_CFLAGS
18772	XORG_MODULES_LIBS=$pkg_cv_XORG_MODULES_LIBS
18773        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18774$as_echo "yes" >&6; }
18775	:
18776fi
18777	        XORG_CFLAGS="$XORG_CFLAGS $XORG_MODULES_CFLAGS"
18778	        XORG_SYS_LIBS="$XORG_SYS_LIBS $XORG_MODULES_LIBS"
18779	fi
18780
18781
18782
18783
18784
18785
18786
18787	# Extract the first word of "perl", so it can be a program name with args.
18788set dummy perl; ac_word=$2
18789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18790$as_echo_n "checking for $ac_word... " >&6; }
18791if test "${ac_cv_path_PERL+set}" = set; then :
18792  $as_echo_n "(cached) " >&6
18793else
18794  case $PERL in
18795  [\\/]* | ?:[\\/]*)
18796  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
18797  ;;
18798  *)
18799  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18800for as_dir in $PATH
18801do
18802  IFS=$as_save_IFS
18803  test -z "$as_dir" && as_dir=.
18804    for ac_exec_ext in '' $ac_executable_extensions; do
18805  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18806    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
18807    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18808    break 2
18809  fi
18810done
18811  done
18812IFS=$as_save_IFS
18813
18814  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
18815  ;;
18816esac
18817fi
18818PERL=$ac_cv_path_PERL
18819if test -n "$PERL"; then
18820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
18821$as_echo "$PERL" >&6; }
18822else
18823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18824$as_echo "no" >&6; }
18825fi
18826
18827
18828		if test "x$PERL" = xno; then
18829		as_fn_error "Perl is required to build the XFree86/Xorg DDX." "$LINENO" 5
18830	fi
18831
18832
18833
18834
18835		XF86CONFIGFILE="xorg.conf"
18836	CONFIGFILE="$sysconfdir/$XF86CONFIGFILE"
18837	LOGPREFIX="$logdir/Xorg."
18838
18839$as_echo "#define XORG_SERVER 1" >>confdefs.h
18840
18841
18842$as_echo "#define XORGSERVER 1" >>confdefs.h
18843
18844
18845$as_echo "#define XFree86Server 1" >>confdefs.h
18846
18847
18848$as_echo "#define XFree86LOADER 1" >>confdefs.h
18849
18850
18851cat >>confdefs.h <<_ACEOF
18852#define XORG_VERSION_CURRENT $VENDOR_RELEASE
18853_ACEOF
18854
18855
18856$as_echo "#define NEED_XF86_TYPES 1" >>confdefs.h
18857
18858
18859$as_echo "#define NEED_XF86_PROTOTYPES 1" >>confdefs.h
18860
18861
18862$as_echo "#define __XSERVERNAME__ \"Xorg\"" >>confdefs.h
18863
18864
18865$as_echo "#define WITH_VGAHW 1" >>confdefs.h
18866
18867
18868  prefix_NONE=
18869  exec_prefix_NONE=
18870  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
18871  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
18872  eval ac_define_dir="\"$XF86CONFIGFILE\""
18873  eval ac_define_dir="\"$ac_define_dir\""
18874  __XCONFIGFILE__="$ac_define_dir"
18875
18876
18877cat >>confdefs.h <<_ACEOF
18878#define __XCONFIGFILE__ "$ac_define_dir"
18879_ACEOF
18880
18881  test "$prefix_NONE" && prefix=NONE
18882  test "$exec_prefix_NONE" && exec_prefix=NONE
18883
18884
18885  prefix_NONE=
18886  exec_prefix_NONE=
18887  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
18888  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
18889  eval ac_define_dir="\"$XF86CONFIGFILE\""
18890  eval ac_define_dir="\"$ac_define_dir\""
18891  XF86CONFIGFILE="$ac_define_dir"
18892
18893
18894cat >>confdefs.h <<_ACEOF
18895#define XF86CONFIGFILE "$ac_define_dir"
18896_ACEOF
18897
18898  test "$prefix_NONE" && prefix=NONE
18899  test "$exec_prefix_NONE" && exec_prefix=NONE
18900
18901
18902  prefix_NONE=
18903  exec_prefix_NONE=
18904  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
18905  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
18906  eval ac_define_dir="\"$moduledir\""
18907  eval ac_define_dir="\"$ac_define_dir\""
18908  DEFAULT_MODULE_PATH="$ac_define_dir"
18909
18910
18911cat >>confdefs.h <<_ACEOF
18912#define DEFAULT_MODULE_PATH "$ac_define_dir"
18913_ACEOF
18914
18915  test "$prefix_NONE" && prefix=NONE
18916  test "$exec_prefix_NONE" && exec_prefix=NONE
18917
18918
18919  prefix_NONE=
18920  exec_prefix_NONE=
18921  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
18922  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
18923  eval ac_define_dir="\"$libdir\""
18924  eval ac_define_dir="\"$ac_define_dir\""
18925  DEFAULT_LIBRARY_PATH="$ac_define_dir"
18926
18927
18928cat >>confdefs.h <<_ACEOF
18929#define DEFAULT_LIBRARY_PATH "$ac_define_dir"
18930_ACEOF
18931
18932  test "$prefix_NONE" && prefix=NONE
18933  test "$exec_prefix_NONE" && exec_prefix=NONE
18934
18935
18936  prefix_NONE=
18937  exec_prefix_NONE=
18938  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
18939  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
18940  eval ac_define_dir="\"$LOGPREFIX\""
18941  eval ac_define_dir="\"$ac_define_dir\""
18942  DEFAULT_LOGPREFIX="$ac_define_dir"
18943
18944
18945cat >>confdefs.h <<_ACEOF
18946#define DEFAULT_LOGPREFIX "$ac_define_dir"
18947_ACEOF
18948
18949  test "$prefix_NONE" && prefix=NONE
18950  test "$exec_prefix_NONE" && exec_prefix=NONE
18951
18952
18953cat >>confdefs.h <<_ACEOF
18954#define __VENDORDWEBSUPPORT__ "$VENDOR_WEB"
18955_ACEOF
18956
18957
18958$as_echo "#define XSERVER_LIBPCIACCESS 1" >>confdefs.h
18959
18960
18961	driverdir="$moduledir/drivers"
18962
18963
18964	sdkdir="$includedir/xorg"
18965	extdir="$includedir/X11/extensions"
18966
18967
18968
18969
18970	# stuff the ABI versions into the pc file too
18971	extract_abi() {
18972	    grep ^.define.*${1}_VERSION ${srcdir}/hw/xfree86/common/xf86Module.h | tr '(),' '  .' | awk '{ print $4$5 }'
18973	}
18974	abi_ansic=`extract_abi ANSIC`
18975	abi_videodrv=`extract_abi VIDEODRV`
18976	abi_xinput=`extract_abi XINPUT`
18977	abi_extension=`extract_abi EXTENSION`
18978	abi_font=`extract_abi FONT`
18979
18980
18981
18982
18983
18984fi
18985 if test "x$XORG" = xyes; then
18986  XORG_TRUE=
18987  XORG_FALSE='#'
18988else
18989  XORG_TRUE='#'
18990  XORG_FALSE=
18991fi
18992
18993 if test "x$xorg_bus_linuxpci" = xyes; then
18994  XORG_BUS_LINUXPCI_TRUE=
18995  XORG_BUS_LINUXPCI_FALSE='#'
18996else
18997  XORG_BUS_LINUXPCI_TRUE='#'
18998  XORG_BUS_LINUXPCI_FALSE=
18999fi
19000
19001 if test "x$xorg_bus_bsdpci" = xyes; then
19002  XORG_BUS_BSDPCI_TRUE=
19003  XORG_BUS_BSDPCI_FALSE='#'
19004else
19005  XORG_BUS_BSDPCI_TRUE='#'
19006  XORG_BUS_BSDPCI_FALSE=
19007fi
19008
19009 if test "x$xorg_bus_sparc" = xyes; then
19010  XORG_BUS_SPARC_TRUE=
19011  XORG_BUS_SPARC_FALSE='#'
19012else
19013  XORG_BUS_SPARC_TRUE='#'
19014  XORG_BUS_SPARC_FALSE=
19015fi
19016
19017 if test "x$linux_ia64" = xyes; then
19018  LINUX_IA64_TRUE=
19019  LINUX_IA64_FALSE='#'
19020else
19021  LINUX_IA64_TRUE='#'
19022  LINUX_IA64_FALSE=
19023fi
19024
19025 if test "x$linux_alpha" = xyes; then
19026  LINUX_ALPHA_TRUE=
19027  LINUX_ALPHA_FALSE='#'
19028else
19029  LINUX_ALPHA_TRUE='#'
19030  LINUX_ALPHA_FALSE=
19031fi
19032
19033 if test "x$linux_acpi" = xyes; then
19034  LNXACPI_TRUE=
19035  LNXACPI_FALSE='#'
19036else
19037  LNXACPI_TRUE='#'
19038  LNXACPI_FALSE=
19039fi
19040
19041 if test "x$solaris_usl_console" = xyes; then
19042  SOLARIS_USL_CONSOLE_TRUE=
19043  SOLARIS_USL_CONSOLE_FALSE='#'
19044else
19045  SOLARIS_USL_CONSOLE_TRUE='#'
19046  SOLARIS_USL_CONSOLE_FALSE=
19047fi
19048
19049 if test "x$solaris_asm_inline" = xyes; then
19050  SOLARIS_ASM_INLINE_TRUE=
19051  SOLARIS_ASM_INLINE_FALSE='#'
19052else
19053  SOLARIS_ASM_INLINE_TRUE='#'
19054  SOLARIS_ASM_INLINE_FALSE=
19055fi
19056
19057 if test "x$DGA" = xyes; then
19058  DGA_TRUE=
19059  DGA_FALSE='#'
19060else
19061  DGA_TRUE='#'
19062  DGA_FALSE=
19063fi
19064
19065 if test "x$XF86VIDMODE" = xyes; then
19066  XF86VIDMODE_TRUE=
19067  XF86VIDMODE_FALSE='#'
19068else
19069  XF86VIDMODE_TRUE='#'
19070  XF86VIDMODE_FALSE=
19071fi
19072
19073
19074
19075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build XWin DDX" >&5
19076$as_echo_n "checking whether to build XWin DDX... " >&6; }
19077if test "x$XWIN" = xauto; then
19078	case $host_os in
19079		cygwin*) XWIN="yes" ;;
19080		mingw*) XWIN="yes" ;;
19081		*) XWIN="no" ;;
19082	esac
19083	XWIN_LIBS="$FB_LIB $XEXT_LIB $CONFIG_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB $DAMAGE_LIB $LAYER_LIB $XPSTUBS_LIB $SHADOW_LIB"
19084
19085fi
19086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XWIN" >&5
19087$as_echo "$XWIN" >&6; }
19088
19089if test "x$XWIN" = xyes; then
19090	case $host_os in
19091		cygwin*)
19092			XWIN_SERVER_NAME=XWin
19093
19094pkg_failed=no
19095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XWINMODULES" >&5
19096$as_echo_n "checking for XWINMODULES... " >&6; }
19097
19098if test -n "$PKG_CONFIG"; then
19099    if test -n "$XWINMODULES_CFLAGS"; then
19100        pkg_cv_XWINMODULES_CFLAGS="$XWINMODULES_CFLAGS"
19101    else
19102        if test -n "$PKG_CONFIG" && \
19103    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xdmcp xau xfont\""; } >&5
19104  ($PKG_CONFIG --exists --print-errors "x11 xdmcp xau xfont") 2>&5
19105  ac_status=$?
19106  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19107  test $ac_status = 0; }; then
19108  pkg_cv_XWINMODULES_CFLAGS=`$PKG_CONFIG --cflags "x11 xdmcp xau xfont" 2>/dev/null`
19109else
19110  pkg_failed=yes
19111fi
19112    fi
19113else
19114	pkg_failed=untried
19115fi
19116if test -n "$PKG_CONFIG"; then
19117    if test -n "$XWINMODULES_LIBS"; then
19118        pkg_cv_XWINMODULES_LIBS="$XWINMODULES_LIBS"
19119    else
19120        if test -n "$PKG_CONFIG" && \
19121    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xdmcp xau xfont\""; } >&5
19122  ($PKG_CONFIG --exists --print-errors "x11 xdmcp xau xfont") 2>&5
19123  ac_status=$?
19124  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19125  test $ac_status = 0; }; then
19126  pkg_cv_XWINMODULES_LIBS=`$PKG_CONFIG --libs "x11 xdmcp xau xfont" 2>/dev/null`
19127else
19128  pkg_failed=yes
19129fi
19130    fi
19131else
19132	pkg_failed=untried
19133fi
19134
19135
19136
19137if test $pkg_failed = yes; then
19138
19139if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19140        _pkg_short_errors_supported=yes
19141else
19142        _pkg_short_errors_supported=no
19143fi
19144        if test $_pkg_short_errors_supported = yes; then
19145	        XWINMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "x11 xdmcp xau xfont"`
19146        else
19147	        XWINMODULES_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11 xdmcp xau xfont"`
19148        fi
19149	# Put the nasty error message in config.log where it belongs
19150	echo "$XWINMODULES_PKG_ERRORS" >&5
19151
19152	as_fn_error "Package requirements (x11 xdmcp xau xfont) were not met:
19153
19154$XWINMODULES_PKG_ERRORS
19155
19156Consider adjusting the PKG_CONFIG_PATH environment variable if you
19157installed software in a non-standard prefix.
19158
19159Alternatively, you may set the environment variables XWINMODULES_CFLAGS
19160and XWINMODULES_LIBS to avoid the need to call pkg-config.
19161See the pkg-config man page for more details.
19162" "$LINENO" 5
19163elif test $pkg_failed = untried; then
19164	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19165$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19166as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
19167is in your PATH or set the PKG_CONFIG environment variable to the full
19168path to pkg-config.
19169
19170Alternatively, you may set the environment variables XWINMODULES_CFLAGS
19171and XWINMODULES_LIBS to avoid the need to call pkg-config.
19172See the pkg-config man page for more details.
19173
19174To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19175See \`config.log' for more details." "$LINENO" 5; }
19176else
19177	XWINMODULES_CFLAGS=$pkg_cv_XWINMODULES_CFLAGS
19178	XWINMODULES_LIBS=$pkg_cv_XWINMODULES_LIBS
19179        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19180$as_echo "yes" >&6; }
19181	:
19182fi
19183
19184$as_echo "#define HAS_DEVWINDOWS 1" >>confdefs.h
19185
19186
19187$as_echo "#define ROOTLESS 1" >>confdefs.h
19188
19189			CFLAGS="$CFLAGS -DFD_SETSIZE=256"
19190			;;
19191		mingw*)
19192			XWIN_SERVER_NAME=Xming
19193
19194pkg_failed=no
19195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XWINMODULES" >&5
19196$as_echo_n "checking for XWINMODULES... " >&6; }
19197
19198if test -n "$PKG_CONFIG"; then
19199    if test -n "$XWINMODULES_CFLAGS"; then
19200        pkg_cv_XWINMODULES_CFLAGS="$XWINMODULES_CFLAGS"
19201    else
19202        if test -n "$PKG_CONFIG" && \
19203    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xdmcp xau xfont\""; } >&5
19204  ($PKG_CONFIG --exists --print-errors "x11 xdmcp xau xfont") 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_XWINMODULES_CFLAGS=`$PKG_CONFIG --cflags "x11 xdmcp xau xfont" 2>/dev/null`
19209else
19210  pkg_failed=yes
19211fi
19212    fi
19213else
19214	pkg_failed=untried
19215fi
19216if test -n "$PKG_CONFIG"; then
19217    if test -n "$XWINMODULES_LIBS"; then
19218        pkg_cv_XWINMODULES_LIBS="$XWINMODULES_LIBS"
19219    else
19220        if test -n "$PKG_CONFIG" && \
19221    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xdmcp xau xfont\""; } >&5
19222  ($PKG_CONFIG --exists --print-errors "x11 xdmcp xau xfont") 2>&5
19223  ac_status=$?
19224  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19225  test $ac_status = 0; }; then
19226  pkg_cv_XWINMODULES_LIBS=`$PKG_CONFIG --libs "x11 xdmcp xau xfont" 2>/dev/null`
19227else
19228  pkg_failed=yes
19229fi
19230    fi
19231else
19232	pkg_failed=untried
19233fi
19234
19235
19236
19237if test $pkg_failed = yes; then
19238
19239if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19240        _pkg_short_errors_supported=yes
19241else
19242        _pkg_short_errors_supported=no
19243fi
19244        if test $_pkg_short_errors_supported = yes; then
19245	        XWINMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "x11 xdmcp xau xfont"`
19246        else
19247	        XWINMODULES_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11 xdmcp xau xfont"`
19248        fi
19249	# Put the nasty error message in config.log where it belongs
19250	echo "$XWINMODULES_PKG_ERRORS" >&5
19251
19252	as_fn_error "Package requirements (x11 xdmcp xau xfont) were not met:
19253
19254$XWINMODULES_PKG_ERRORS
19255
19256Consider adjusting the PKG_CONFIG_PATH environment variable if you
19257installed software in a non-standard prefix.
19258
19259Alternatively, you may set the environment variables XWINMODULES_CFLAGS
19260and XWINMODULES_LIBS to avoid the need to call pkg-config.
19261See the pkg-config man page for more details.
19262" "$LINENO" 5
19263elif test $pkg_failed = untried; then
19264	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19265$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19266as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
19267is in your PATH or set the PKG_CONFIG environment variable to the full
19268path to pkg-config.
19269
19270Alternatively, you may set the environment variables XWINMODULES_CFLAGS
19271and XWINMODULES_LIBS to avoid the need to call pkg-config.
19272See the pkg-config man page for more details.
19273
19274To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19275See \`config.log' for more details." "$LINENO" 5; }
19276else
19277	XWINMODULES_CFLAGS=$pkg_cv_XWINMODULES_CFLAGS
19278	XWINMODULES_LIBS=$pkg_cv_XWINMODULES_LIBS
19279        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19280$as_echo "yes" >&6; }
19281	:
19282fi
19283
19284$as_echo "#define RELOCATE_PROJECTROOT 1" >>confdefs.h
19285
19286
19287$as_echo "#define HAS_WINSOCK 1" >>confdefs.h
19288
19289			XWIN_SYS_LIBS=-lwinsock2
19290			;;
19291	esac
19292	XWIN_SYS_LIBS="$XWIN_SYS_LIBS $(XWINMODULES_LIBS)"
19293
19294
19295
19296	if test "x$DEBUGGING" = xyes; then
19297
19298$as_echo "#define CYGDEBUG 1" >>confdefs.h
19299
19300
19301$as_echo "#define CYGWINDOWING_DEBUG 1" >>confdefs.h
19302
19303
19304$as_echo "#define CYGMULTIWINDOW_DEBUG 1" >>confdefs.h
19305
19306	fi
19307
19308
19309$as_echo "#define DDXOSVERRORF 1" >>confdefs.h
19310
19311
19312$as_echo "#define DDXBEFORERESET 1" >>confdefs.h
19313
19314	if test "x$XF86VIDMODE" = xyes; then
19315		{ $as_echo "$as_me:${as_lineno-$LINENO}: Disabling XF86VidMode extension" >&5
19316$as_echo "$as_me: Disabling XF86VidMode extension" >&6;}
19317		XF86VIDMODE=no
19318	fi
19319	if test "x$COMPOSITE" = xyes; then
19320		{ $as_echo "$as_me:${as_lineno-$LINENO}: Disabling Composite extension" >&5
19321$as_echo "$as_me: Disabling Composite extension" >&6;}
19322		COMPOSITE=no
19323	fi
19324fi
19325 if test "x$XWIN" = xyes; then
19326  XWIN_TRUE=
19327  XWIN_FALSE='#'
19328else
19329  XWIN_TRUE='#'
19330  XWIN_FALSE=
19331fi
19332
19333 if test "x$XWIN" = xyes; then
19334  XWIN_MULTIWINDOW_TRUE=
19335  XWIN_MULTIWINDOW_FALSE='#'
19336else
19337  XWIN_MULTIWINDOW_TRUE='#'
19338  XWIN_MULTIWINDOW_FALSE=
19339fi
19340
19341 if test "x$XWIN" = xyes && false; then
19342  XWIN_MULTIWINDOWEXTWM_TRUE=
19343  XWIN_MULTIWINDOWEXTWM_FALSE='#'
19344else
19345  XWIN_MULTIWINDOWEXTWM_TRUE='#'
19346  XWIN_MULTIWINDOWEXTWM_FALSE=
19347fi
19348
19349 if test "x$XWIN" = xyes; then
19350  XWIN_CLIPBOARD_TRUE=
19351  XWIN_CLIPBOARD_FALSE='#'
19352else
19353  XWIN_CLIPBOARD_TRUE='#'
19354  XWIN_CLIPBOARD_FALSE=
19355fi
19356
19357 if test "x$XWIN" = xyes && false; then
19358  XWIN_GLX_WINDOWS_TRUE=
19359  XWIN_GLX_WINDOWS_FALSE='#'
19360else
19361  XWIN_GLX_WINDOWS_TRUE='#'
19362  XWIN_GLX_WINDOWS_FALSE=
19363fi
19364
19365 if test "x$XWIN" = xyes && false; then
19366  XWIN_NATIVEGDI_TRUE=
19367  XWIN_NATIVEGDI_FALSE='#'
19368else
19369  XWIN_NATIVEGDI_TRUE='#'
19370  XWIN_NATIVEGDI_FALSE=
19371fi
19372
19373 if test "x$XWIN" = xyes && false; then
19374  XWIN_PRIMARYFB_TRUE=
19375  XWIN_PRIMARYFB_FALSE='#'
19376else
19377  XWIN_PRIMARYFB_TRUE='#'
19378  XWIN_PRIMARYFB_FALSE=
19379fi
19380
19381 if test "x$XWIN" = xyes; then
19382  XWIN_RANDR_TRUE=
19383  XWIN_RANDR_FALSE='#'
19384else
19385  XWIN_RANDR_TRUE='#'
19386  XWIN_RANDR_FALSE=
19387fi
19388
19389 if test "x$XWIN" = xyes && test "x$XV" = xyes; then
19390  XWIN_XV_TRUE=
19391  XWIN_XV_FALSE='#'
19392else
19393  XWIN_XV_TRUE='#'
19394  XWIN_XV_FALSE=
19395fi
19396
19397
19398if test "x$XQUARTZ" = xyes; then
19399
19400$as_echo "#define XQUARTZ 1" >>confdefs.h
19401
19402
19403$as_echo "#define ROOTLESS 1" >>confdefs.h
19404
19405
19406	DARWIN_LIBS="$MI_LIB $OS_LIB $DIX_LIB $FB_LIB $FIXES_LIB $XEXT_LIB $CONFIG_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"
19407
19408
19409	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xp_init in -lXplugin" >&5
19410$as_echo_n "checking for xp_init in -lXplugin... " >&6; }
19411if test "${ac_cv_lib_Xplugin_xp_init+set}" = set; then :
19412  $as_echo_n "(cached) " >&6
19413else
19414  ac_check_lib_save_LIBS=$LIBS
19415LIBS="-lXplugin  $LIBS"
19416cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19417/* end confdefs.h.  */
19418
19419/* Override any GCC internal prototype to avoid an error.
19420   Use char because int might match the return type of a GCC
19421   builtin and then its argument prototype would still apply.  */
19422#ifdef __cplusplus
19423extern "C"
19424#endif
19425char xp_init ();
19426int
19427main ()
19428{
19429return xp_init ();
19430  ;
19431  return 0;
19432}
19433_ACEOF
19434if ac_fn_c_try_link "$LINENO"; then :
19435  ac_cv_lib_Xplugin_xp_init=yes
19436else
19437  ac_cv_lib_Xplugin_xp_init=no
19438fi
19439rm -f core conftest.err conftest.$ac_objext \
19440    conftest$ac_exeext conftest.$ac_ext
19441LIBS=$ac_check_lib_save_LIBS
19442fi
19443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xplugin_xp_init" >&5
19444$as_echo "$ac_cv_lib_Xplugin_xp_init" >&6; }
19445if test "x$ac_cv_lib_Xplugin_xp_init" = x""yes; then :
19446  :
19447fi
19448
19449
19450	CFLAGS="${CFLAGS} -DROOTLESS_WORKAROUND -DNO_ALLOCA"
19451
19452
19453pkg_failed=no
19454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPBPROXY" >&5
19455$as_echo_n "checking for XPBPROXY... " >&6; }
19456
19457if test -n "$PKG_CONFIG"; then
19458    if test -n "$XPBPROXY_CFLAGS"; then
19459        pkg_cv_XPBPROXY_CFLAGS="$XPBPROXY_CFLAGS"
19460    else
19461        if test -n "$PKG_CONFIG" && \
19462    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"applewmproto >= 1.1.1 applewm >= 1.0.0 xfixes fixesproto x11\""; } >&5
19463  ($PKG_CONFIG --exists --print-errors "applewmproto >= 1.1.1 applewm >= 1.0.0 xfixes fixesproto x11") 2>&5
19464  ac_status=$?
19465  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19466  test $ac_status = 0; }; then
19467  pkg_cv_XPBPROXY_CFLAGS=`$PKG_CONFIG --cflags "applewmproto >= 1.1.1 applewm >= 1.0.0 xfixes fixesproto x11" 2>/dev/null`
19468else
19469  pkg_failed=yes
19470fi
19471    fi
19472else
19473	pkg_failed=untried
19474fi
19475if test -n "$PKG_CONFIG"; then
19476    if test -n "$XPBPROXY_LIBS"; then
19477        pkg_cv_XPBPROXY_LIBS="$XPBPROXY_LIBS"
19478    else
19479        if test -n "$PKG_CONFIG" && \
19480    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"applewmproto >= 1.1.1 applewm >= 1.0.0 xfixes fixesproto x11\""; } >&5
19481  ($PKG_CONFIG --exists --print-errors "applewmproto >= 1.1.1 applewm >= 1.0.0 xfixes fixesproto x11") 2>&5
19482  ac_status=$?
19483  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19484  test $ac_status = 0; }; then
19485  pkg_cv_XPBPROXY_LIBS=`$PKG_CONFIG --libs "applewmproto >= 1.1.1 applewm >= 1.0.0 xfixes fixesproto x11" 2>/dev/null`
19486else
19487  pkg_failed=yes
19488fi
19489    fi
19490else
19491	pkg_failed=untried
19492fi
19493
19494
19495
19496if test $pkg_failed = yes; then
19497
19498if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19499        _pkg_short_errors_supported=yes
19500else
19501        _pkg_short_errors_supported=no
19502fi
19503        if test $_pkg_short_errors_supported = yes; then
19504	        XPBPROXY_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "applewmproto >= 1.1.1 applewm >= 1.0.0 xfixes fixesproto x11"`
19505        else
19506	        XPBPROXY_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "applewmproto >= 1.1.1 applewm >= 1.0.0 xfixes fixesproto x11"`
19507        fi
19508	# Put the nasty error message in config.log where it belongs
19509	echo "$XPBPROXY_PKG_ERRORS" >&5
19510
19511	as_fn_error "Package requirements (applewmproto >= 1.1.1 applewm >= 1.0.0 xfixes fixesproto x11) were not met:
19512
19513$XPBPROXY_PKG_ERRORS
19514
19515Consider adjusting the PKG_CONFIG_PATH environment variable if you
19516installed software in a non-standard prefix.
19517
19518Alternatively, you may set the environment variables XPBPROXY_CFLAGS
19519and XPBPROXY_LIBS to avoid the need to call pkg-config.
19520See the pkg-config man page for more details.
19521" "$LINENO" 5
19522elif test $pkg_failed = untried; then
19523	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19524$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19525as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
19526is in your PATH or set the PKG_CONFIG environment variable to the full
19527path to pkg-config.
19528
19529Alternatively, you may set the environment variables XPBPROXY_CFLAGS
19530and XPBPROXY_LIBS to avoid the need to call pkg-config.
19531See the pkg-config man page for more details.
19532
19533To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19534See \`config.log' for more details." "$LINENO" 5; }
19535else
19536	XPBPROXY_CFLAGS=$pkg_cv_XPBPROXY_CFLAGS
19537	XPBPROXY_LIBS=$pkg_cv_XPBPROXY_LIBS
19538        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19539$as_echo "yes" >&6; }
19540	:
19541fi
19542
19543	if test "x$STANDALONE_XPBPROXY" = xyes ; then
19544
19545$as_echo "#define STANDALONE_XPBPROXY 1" >>confdefs.h
19546
19547	fi
19548fi
19549
19550# Support for objc in autotools is minimal and not documented.
19551OBJC='$(CC)'
19552OBJCLD='$(CCLD)'
19553OBJCLINK='$(LINK)'
19554OBJCFLAGS='$(CFLAGS)'
19555
19556
19557
19558
19559# internal, undocumented automake func follows :(
19560
19561depcc="$OBJC" am_compiler_list='gcc3 gcc'
19562
19563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
19564$as_echo_n "checking dependency style of $depcc... " >&6; }
19565if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then :
19566  $as_echo_n "(cached) " >&6
19567else
19568  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19569  # We make a subdir and do the tests there.  Otherwise we can end up
19570  # making bogus files that we don't know about and never remove.  For
19571  # instance it was reported that on HP-UX the gcc test will end up
19572  # making a dummy file named `D' -- because `-MD' means `put the output
19573  # in D'.
19574  mkdir conftest.dir
19575  # Copy depcomp to subdir because otherwise we won't find it if we're
19576  # using a relative directory.
19577  cp "$am_depcomp" conftest.dir
19578  cd conftest.dir
19579  # We will build objects and dependencies in a subdirectory because
19580  # it helps to detect inapplicable dependency modes.  For instance
19581  # both Tru64's cc and ICC support -MD to output dependencies as a
19582  # side effect of compilation, but ICC will put the dependencies in
19583  # the current directory while Tru64 will put them in the object
19584  # directory.
19585  mkdir sub
19586
19587  am_cv_OBJC_dependencies_compiler_type=none
19588  if test "$am_compiler_list" = ""; then
19589     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19590  fi
19591  am__universal=false
19592
19593
19594  for depmode in $am_compiler_list; do
19595    # Setup a source with many dependencies, because some compilers
19596    # like to wrap large dependency lists on column 80 (with \), and
19597    # we should not choose a depcomp mode which is confused by this.
19598    #
19599    # We need to recreate these files for each test, as the compiler may
19600    # overwrite some of them when testing with obscure command lines.
19601    # This happens at least with the AIX C compiler.
19602    : > sub/conftest.c
19603    for i in 1 2 3 4 5 6; do
19604      echo '#include "conftst'$i'.h"' >> sub/conftest.c
19605      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19606      # Solaris 8's {/usr,}/bin/sh.
19607      touch sub/conftst$i.h
19608    done
19609    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19610
19611    # We check with `-c' and `-o' for the sake of the "dashmstdout"
19612    # mode.  It turns out that the SunPro C++ compiler does not properly
19613    # handle `-M -o', and we need to detect this.  Also, some Intel
19614    # versions had trouble with output in subdirs
19615    am__obj=sub/conftest.${OBJEXT-o}
19616    am__minus_obj="-o $am__obj"
19617    case $depmode in
19618    gcc)
19619      # This depmode causes a compiler race in universal mode.
19620      test "$am__universal" = false || continue
19621      ;;
19622    nosideeffect)
19623      # after this tag, mechanisms are not by side-effect, so they'll
19624      # only be used when explicitly requested
19625      if test "x$enable_dependency_tracking" = xyes; then
19626	continue
19627      else
19628	break
19629      fi
19630      ;;
19631    msvisualcpp | msvcmsys)
19632      # This compiler won't grok `-c -o', but also, the minuso test has
19633      # not run yet.  These depmodes are late enough in the game, and
19634      # so weak that their functioning should not be impacted.
19635      am__obj=conftest.${OBJEXT-o}
19636      am__minus_obj=
19637      ;;
19638    none) break ;;
19639    esac
19640    if depmode=$depmode \
19641       source=sub/conftest.c object=$am__obj \
19642       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19643       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
19644         >/dev/null 2>conftest.err &&
19645       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
19646       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19647       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
19648       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19649      # icc doesn't choke on unknown options, it will just issue warnings
19650      # or remarks (even with -Werror).  So we grep stderr for any message
19651      # that says an option was ignored or not supported.
19652      # When given -MP, icc 7.0 and 7.1 complain thusly:
19653      #   icc: Command line warning: ignoring option '-M'; no argument required
19654      # The diagnosis changed in icc 8.0:
19655      #   icc: Command line remark: option '-MP' not supported
19656      if (grep 'ignoring option' conftest.err ||
19657          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19658        am_cv_OBJC_dependencies_compiler_type=$depmode
19659        break
19660      fi
19661    fi
19662  done
19663
19664  cd ..
19665  rm -rf conftest.dir
19666else
19667  am_cv_OBJC_dependencies_compiler_type=none
19668fi
19669
19670fi
19671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJC_dependencies_compiler_type" >&5
19672$as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; }
19673OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
19674
19675 if
19676  test "x$enable_dependency_tracking" != xno \
19677  && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
19678  am__fastdepOBJC_TRUE=
19679  am__fastdepOBJC_FALSE='#'
19680else
19681  am__fastdepOBJC_TRUE='#'
19682  am__fastdepOBJC_FALSE=
19683fi
19684
19685
19686 if test "x$ac_cv_lib_Xplugin_xp_init" = xyes; then
19687  HAVE_XPLUGIN_TRUE=
19688  HAVE_XPLUGIN_FALSE='#'
19689else
19690  HAVE_XPLUGIN_TRUE='#'
19691  HAVE_XPLUGIN_FALSE=
19692fi
19693
19694 if test "x$xorg_cv_AGL_framework" = xyes; then
19695  HAVE_AGL_FRAMEWORK_TRUE=
19696  HAVE_AGL_FRAMEWORK_FALSE='#'
19697else
19698  HAVE_AGL_FRAMEWORK_TRUE='#'
19699  HAVE_AGL_FRAMEWORK_FALSE=
19700fi
19701
19702 if test "x$XQUARTZ" = xyes; then
19703  XQUARTZ_TRUE=
19704  XQUARTZ_FALSE='#'
19705else
19706  XQUARTZ_TRUE='#'
19707  XQUARTZ_FALSE=
19708fi
19709
19710 if test "x$STANDALONE_XPBPROXY" = xyes; then
19711  STANDALONE_XPBPROXY_TRUE=
19712  STANDALONE_XPBPROXY_FALSE='#'
19713else
19714  STANDALONE_XPBPROXY_TRUE='#'
19715  STANDALONE_XPBPROXY_FALSE=
19716fi
19717
19718
19719
19720
19721pkg_failed=no
19722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DMXMODULES" >&5
19723$as_echo_n "checking for DMXMODULES... " >&6; }
19724
19725if test -n "$PKG_CONFIG"; then
19726    if test -n "$DMXMODULES_CFLAGS"; then
19727        pkg_cv_DMXMODULES_CFLAGS="$DMXMODULES_CFLAGS"
19728    else
19729        if test -n "$PKG_CONFIG" && \
19730    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmuu xext x11 xrender xfixes xfont xi dmxproto xau \$XDMCP_MODULES\""; } >&5
19731  ($PKG_CONFIG --exists --print-errors "xmuu xext x11 xrender xfixes xfont xi dmxproto xau $XDMCP_MODULES") 2>&5
19732  ac_status=$?
19733  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19734  test $ac_status = 0; }; then
19735  pkg_cv_DMXMODULES_CFLAGS=`$PKG_CONFIG --cflags "xmuu xext x11 xrender xfixes xfont xi dmxproto xau $XDMCP_MODULES" 2>/dev/null`
19736else
19737  pkg_failed=yes
19738fi
19739    fi
19740else
19741	pkg_failed=untried
19742fi
19743if test -n "$PKG_CONFIG"; then
19744    if test -n "$DMXMODULES_LIBS"; then
19745        pkg_cv_DMXMODULES_LIBS="$DMXMODULES_LIBS"
19746    else
19747        if test -n "$PKG_CONFIG" && \
19748    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmuu xext x11 xrender xfixes xfont xi dmxproto xau \$XDMCP_MODULES\""; } >&5
19749  ($PKG_CONFIG --exists --print-errors "xmuu xext x11 xrender xfixes xfont xi dmxproto xau $XDMCP_MODULES") 2>&5
19750  ac_status=$?
19751  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19752  test $ac_status = 0; }; then
19753  pkg_cv_DMXMODULES_LIBS=`$PKG_CONFIG --libs "xmuu xext x11 xrender xfixes xfont xi dmxproto xau $XDMCP_MODULES" 2>/dev/null`
19754else
19755  pkg_failed=yes
19756fi
19757    fi
19758else
19759	pkg_failed=untried
19760fi
19761
19762
19763
19764if test $pkg_failed = yes; then
19765
19766if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19767        _pkg_short_errors_supported=yes
19768else
19769        _pkg_short_errors_supported=no
19770fi
19771        if test $_pkg_short_errors_supported = yes; then
19772	        DMXMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xmuu xext x11 xrender xfixes xfont xi dmxproto xau $XDMCP_MODULES"`
19773        else
19774	        DMXMODULES_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xmuu xext x11 xrender xfixes xfont xi dmxproto xau $XDMCP_MODULES"`
19775        fi
19776	# Put the nasty error message in config.log where it belongs
19777	echo "$DMXMODULES_PKG_ERRORS" >&5
19778
19779	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19780$as_echo "no" >&6; }
19781                have_dmx=no
19782elif test $pkg_failed = untried; then
19783	have_dmx=no
19784else
19785	DMXMODULES_CFLAGS=$pkg_cv_DMXMODULES_CFLAGS
19786	DMXMODULES_LIBS=$pkg_cv_DMXMODULES_LIBS
19787        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19788$as_echo "yes" >&6; }
19789	have_dmx=yes
19790fi
19791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xdmx DDX" >&5
19792$as_echo_n "checking whether to build Xdmx DDX... " >&6; }
19793if test "x$DMX" = xauto; then
19794	DMX="$have_dmx"
19795	case $host_os in
19796		cygwin*) DMX="no" ;;
19797		darwin*) DMX="no" ;;
19798	esac
19799fi
19800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DMX" >&5
19801$as_echo "$DMX" >&6; }
19802 if test "x$DMX" = xyes; then
19803  DMX_TRUE=
19804  DMX_FALSE='#'
19805else
19806  DMX_TRUE='#'
19807  DMX_FALSE=
19808fi
19809
19810
19811if test "x$DMX" = xyes; then
19812	if test "x$have_dmx" = xno; then
19813		as_fn_error "Xdmx build explicitly requested, but required
19814		              modules not found." "$LINENO" 5
19815	fi
19816	DMX_INCLUDES="$XEXT_INC $RENDER_INC $RECORD_INC"
19817	XDMX_CFLAGS="$DMXMODULES_CFLAGS"
19818	XDMX_LIBS="$XEXT_LIB $FB_LIB $CONFIG_LIB $RENDER_LIB $RECORD_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $MIEXT_SHADOW_LIB $MIEXT_DAMAGE_LIB"
19819	XDMX_SYS_LIBS="$DMXMODULES_LIBS"
19820
19821
19822
19823
19824	ac_fn_c_check_header_mongrel "$LINENO" "linux/input.h" "ac_cv_header_linux_input_h" "$ac_includes_default"
19825if test "x$ac_cv_header_linux_input_h" = x""yes; then :
19826  DMX_BUILD_USB="yes"
19827else
19828  DMX_BUILD_USB="no"
19829fi
19830
19831
19832	ac_fn_c_check_header_mongrel "$LINENO" "linux/keyboard.h" "ac_cv_header_linux_keyboard_h" "$ac_includes_default"
19833if test "x$ac_cv_header_linux_keyboard_h" = x""yes; then :
19834  DMX_BUILD_LNX="yes"
19835else
19836  DMX_BUILD_LNX="no"
19837fi
19838
19839
19840	if test "x$GLX" = xyes; then
19841
19842pkg_failed=no
19843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GL" >&5
19844$as_echo_n "checking for GL... " >&6; }
19845
19846if test -n "$PKG_CONFIG"; then
19847    if test -n "$GL_CFLAGS"; then
19848        pkg_cv_GL_CFLAGS="$GL_CFLAGS"
19849    else
19850        if test -n "$PKG_CONFIG" && \
19851    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glproto\""; } >&5
19852  ($PKG_CONFIG --exists --print-errors "glproto") 2>&5
19853  ac_status=$?
19854  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19855  test $ac_status = 0; }; then
19856  pkg_cv_GL_CFLAGS=`$PKG_CONFIG --cflags "glproto" 2>/dev/null`
19857else
19858  pkg_failed=yes
19859fi
19860    fi
19861else
19862	pkg_failed=untried
19863fi
19864if test -n "$PKG_CONFIG"; then
19865    if test -n "$GL_LIBS"; then
19866        pkg_cv_GL_LIBS="$GL_LIBS"
19867    else
19868        if test -n "$PKG_CONFIG" && \
19869    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glproto\""; } >&5
19870  ($PKG_CONFIG --exists --print-errors "glproto") 2>&5
19871  ac_status=$?
19872  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19873  test $ac_status = 0; }; then
19874  pkg_cv_GL_LIBS=`$PKG_CONFIG --libs "glproto" 2>/dev/null`
19875else
19876  pkg_failed=yes
19877fi
19878    fi
19879else
19880	pkg_failed=untried
19881fi
19882
19883
19884
19885if test $pkg_failed = yes; then
19886
19887if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19888        _pkg_short_errors_supported=yes
19889else
19890        _pkg_short_errors_supported=no
19891fi
19892        if test $_pkg_short_errors_supported = yes; then
19893	        GL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glproto"`
19894        else
19895	        GL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glproto"`
19896        fi
19897	# Put the nasty error message in config.log where it belongs
19898	echo "$GL_PKG_ERRORS" >&5
19899
19900	as_fn_error "Package requirements (glproto) were not met:
19901
19902$GL_PKG_ERRORS
19903
19904Consider adjusting the PKG_CONFIG_PATH environment variable if you
19905installed software in a non-standard prefix.
19906
19907Alternatively, you may set the environment variables GL_CFLAGS
19908and GL_LIBS to avoid the need to call pkg-config.
19909See the pkg-config man page for more details.
19910" "$LINENO" 5
19911elif test $pkg_failed = untried; then
19912	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19913$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19914as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
19915is in your PATH or set the PKG_CONFIG environment variable to the full
19916path to pkg-config.
19917
19918Alternatively, you may set the environment variables GL_CFLAGS
19919and GL_LIBS to avoid the need to call pkg-config.
19920See the pkg-config man page for more details.
19921
19922To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19923See \`config.log' for more details." "$LINENO" 5; }
19924else
19925	GL_CFLAGS=$pkg_cv_GL_CFLAGS
19926	GL_LIBS=$pkg_cv_GL_LIBS
19927        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19928$as_echo "yes" >&6; }
19929	:
19930fi
19931	fi
19932
19933pkg_failed=no
19934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDMXCONFIG_DEP" >&5
19935$as_echo_n "checking for XDMXCONFIG_DEP... " >&6; }
19936
19937if test -n "$PKG_CONFIG"; then
19938    if test -n "$XDMXCONFIG_DEP_CFLAGS"; then
19939        pkg_cv_XDMXCONFIG_DEP_CFLAGS="$XDMXCONFIG_DEP_CFLAGS"
19940    else
19941        if test -n "$PKG_CONFIG" && \
19942    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt xpm x11\""; } >&5
19943  ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt xpm x11") 2>&5
19944  ac_status=$?
19945  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19946  test $ac_status = 0; }; then
19947  pkg_cv_XDMXCONFIG_DEP_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt xpm x11" 2>/dev/null`
19948else
19949  pkg_failed=yes
19950fi
19951    fi
19952else
19953	pkg_failed=untried
19954fi
19955if test -n "$PKG_CONFIG"; then
19956    if test -n "$XDMXCONFIG_DEP_LIBS"; then
19957        pkg_cv_XDMXCONFIG_DEP_LIBS="$XDMXCONFIG_DEP_LIBS"
19958    else
19959        if test -n "$PKG_CONFIG" && \
19960    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt xpm x11\""; } >&5
19961  ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt xpm x11") 2>&5
19962  ac_status=$?
19963  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19964  test $ac_status = 0; }; then
19965  pkg_cv_XDMXCONFIG_DEP_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt xpm x11" 2>/dev/null`
19966else
19967  pkg_failed=yes
19968fi
19969    fi
19970else
19971	pkg_failed=untried
19972fi
19973
19974
19975
19976if test $pkg_failed = yes; then
19977
19978if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19979        _pkg_short_errors_supported=yes
19980else
19981        _pkg_short_errors_supported=no
19982fi
19983        if test $_pkg_short_errors_supported = yes; then
19984	        XDMXCONFIG_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xaw7 xmu xt xpm x11"`
19985        else
19986	        XDMXCONFIG_DEP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xaw7 xmu xt xpm x11"`
19987        fi
19988	# Put the nasty error message in config.log where it belongs
19989	echo "$XDMXCONFIG_DEP_PKG_ERRORS" >&5
19990
19991	as_fn_error "Package requirements (xaw7 xmu xt xpm x11) were not met:
19992
19993$XDMXCONFIG_DEP_PKG_ERRORS
19994
19995Consider adjusting the PKG_CONFIG_PATH environment variable if you
19996installed software in a non-standard prefix.
19997
19998Alternatively, you may set the environment variables XDMXCONFIG_DEP_CFLAGS
19999and XDMXCONFIG_DEP_LIBS to avoid the need to call pkg-config.
20000See the pkg-config man page for more details.
20001" "$LINENO" 5
20002elif test $pkg_failed = untried; then
20003	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20004$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20005as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
20006is in your PATH or set the PKG_CONFIG environment variable to the full
20007path to pkg-config.
20008
20009Alternatively, you may set the environment variables XDMXCONFIG_DEP_CFLAGS
20010and XDMXCONFIG_DEP_LIBS to avoid the need to call pkg-config.
20011See the pkg-config man page for more details.
20012
20013To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20014See \`config.log' for more details." "$LINENO" 5; }
20015else
20016	XDMXCONFIG_DEP_CFLAGS=$pkg_cv_XDMXCONFIG_DEP_CFLAGS
20017	XDMXCONFIG_DEP_LIBS=$pkg_cv_XDMXCONFIG_DEP_LIBS
20018        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20019$as_echo "yes" >&6; }
20020	:
20021fi
20022
20023
20024
20025pkg_failed=no
20026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DMXEXAMPLES_DEP" >&5
20027$as_echo_n "checking for DMXEXAMPLES_DEP... " >&6; }
20028
20029if test -n "$PKG_CONFIG"; then
20030    if test -n "$DMXEXAMPLES_DEP_CFLAGS"; then
20031        pkg_cv_DMXEXAMPLES_DEP_CFLAGS="$DMXEXAMPLES_DEP_CFLAGS"
20032    else
20033        if test -n "$PKG_CONFIG" && \
20034    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dmx xext x11\""; } >&5
20035  ($PKG_CONFIG --exists --print-errors "dmx xext x11") 2>&5
20036  ac_status=$?
20037  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20038  test $ac_status = 0; }; then
20039  pkg_cv_DMXEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "dmx xext x11" 2>/dev/null`
20040else
20041  pkg_failed=yes
20042fi
20043    fi
20044else
20045	pkg_failed=untried
20046fi
20047if test -n "$PKG_CONFIG"; then
20048    if test -n "$DMXEXAMPLES_DEP_LIBS"; then
20049        pkg_cv_DMXEXAMPLES_DEP_LIBS="$DMXEXAMPLES_DEP_LIBS"
20050    else
20051        if test -n "$PKG_CONFIG" && \
20052    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dmx xext x11\""; } >&5
20053  ($PKG_CONFIG --exists --print-errors "dmx xext x11") 2>&5
20054  ac_status=$?
20055  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20056  test $ac_status = 0; }; then
20057  pkg_cv_DMXEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "dmx xext x11" 2>/dev/null`
20058else
20059  pkg_failed=yes
20060fi
20061    fi
20062else
20063	pkg_failed=untried
20064fi
20065
20066
20067
20068if test $pkg_failed = yes; then
20069
20070if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20071        _pkg_short_errors_supported=yes
20072else
20073        _pkg_short_errors_supported=no
20074fi
20075        if test $_pkg_short_errors_supported = yes; then
20076	        DMXEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "dmx xext x11"`
20077        else
20078	        DMXEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dmx xext x11"`
20079        fi
20080	# Put the nasty error message in config.log where it belongs
20081	echo "$DMXEXAMPLES_DEP_PKG_ERRORS" >&5
20082
20083	as_fn_error "Package requirements (dmx xext x11) were not met:
20084
20085$DMXEXAMPLES_DEP_PKG_ERRORS
20086
20087Consider adjusting the PKG_CONFIG_PATH environment variable if you
20088installed software in a non-standard prefix.
20089
20090Alternatively, you may set the environment variables DMXEXAMPLES_DEP_CFLAGS
20091and DMXEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
20092See the pkg-config man page for more details.
20093" "$LINENO" 5
20094elif test $pkg_failed = untried; then
20095	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20096$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20097as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
20098is in your PATH or set the PKG_CONFIG environment variable to the full
20099path to pkg-config.
20100
20101Alternatively, you may set the environment variables DMXEXAMPLES_DEP_CFLAGS
20102and DMXEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
20103See the pkg-config man page for more details.
20104
20105To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20106See \`config.log' for more details." "$LINENO" 5; }
20107else
20108	DMXEXAMPLES_DEP_CFLAGS=$pkg_cv_DMXEXAMPLES_DEP_CFLAGS
20109	DMXEXAMPLES_DEP_LIBS=$pkg_cv_DMXEXAMPLES_DEP_LIBS
20110        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20111$as_echo "yes" >&6; }
20112	:
20113fi
20114
20115
20116pkg_failed=no
20117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DMXXMUEXAMPLES_DEP" >&5
20118$as_echo_n "checking for DMXXMUEXAMPLES_DEP... " >&6; }
20119
20120if test -n "$PKG_CONFIG"; then
20121    if test -n "$DMXXMUEXAMPLES_DEP_CFLAGS"; then
20122        pkg_cv_DMXXMUEXAMPLES_DEP_CFLAGS="$DMXXMUEXAMPLES_DEP_CFLAGS"
20123    else
20124        if test -n "$PKG_CONFIG" && \
20125    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dmx xmu xext x11\""; } >&5
20126  ($PKG_CONFIG --exists --print-errors "dmx xmu xext x11") 2>&5
20127  ac_status=$?
20128  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20129  test $ac_status = 0; }; then
20130  pkg_cv_DMXXMUEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "dmx xmu xext x11" 2>/dev/null`
20131else
20132  pkg_failed=yes
20133fi
20134    fi
20135else
20136	pkg_failed=untried
20137fi
20138if test -n "$PKG_CONFIG"; then
20139    if test -n "$DMXXMUEXAMPLES_DEP_LIBS"; then
20140        pkg_cv_DMXXMUEXAMPLES_DEP_LIBS="$DMXXMUEXAMPLES_DEP_LIBS"
20141    else
20142        if test -n "$PKG_CONFIG" && \
20143    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dmx xmu xext x11\""; } >&5
20144  ($PKG_CONFIG --exists --print-errors "dmx xmu xext x11") 2>&5
20145  ac_status=$?
20146  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20147  test $ac_status = 0; }; then
20148  pkg_cv_DMXXMUEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "dmx xmu xext x11" 2>/dev/null`
20149else
20150  pkg_failed=yes
20151fi
20152    fi
20153else
20154	pkg_failed=untried
20155fi
20156
20157
20158
20159if test $pkg_failed = yes; then
20160
20161if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20162        _pkg_short_errors_supported=yes
20163else
20164        _pkg_short_errors_supported=no
20165fi
20166        if test $_pkg_short_errors_supported = yes; then
20167	        DMXXMUEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "dmx xmu xext x11"`
20168        else
20169	        DMXXMUEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dmx xmu xext x11"`
20170        fi
20171	# Put the nasty error message in config.log where it belongs
20172	echo "$DMXXMUEXAMPLES_DEP_PKG_ERRORS" >&5
20173
20174	as_fn_error "Package requirements (dmx xmu xext x11) were not met:
20175
20176$DMXXMUEXAMPLES_DEP_PKG_ERRORS
20177
20178Consider adjusting the PKG_CONFIG_PATH environment variable if you
20179installed software in a non-standard prefix.
20180
20181Alternatively, you may set the environment variables DMXXMUEXAMPLES_DEP_CFLAGS
20182and DMXXMUEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
20183See the pkg-config man page for more details.
20184" "$LINENO" 5
20185elif test $pkg_failed = untried; then
20186	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20187$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20188as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
20189is in your PATH or set the PKG_CONFIG environment variable to the full
20190path to pkg-config.
20191
20192Alternatively, you may set the environment variables DMXXMUEXAMPLES_DEP_CFLAGS
20193and DMXXMUEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
20194See the pkg-config man page for more details.
20195
20196To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20197See \`config.log' for more details." "$LINENO" 5; }
20198else
20199	DMXXMUEXAMPLES_DEP_CFLAGS=$pkg_cv_DMXXMUEXAMPLES_DEP_CFLAGS
20200	DMXXMUEXAMPLES_DEP_LIBS=$pkg_cv_DMXXMUEXAMPLES_DEP_LIBS
20201        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20202$as_echo "yes" >&6; }
20203	:
20204fi
20205
20206
20207pkg_failed=no
20208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DMXXIEXAMPLES_DEP" >&5
20209$as_echo_n "checking for DMXXIEXAMPLES_DEP... " >&6; }
20210
20211if test -n "$PKG_CONFIG"; then
20212    if test -n "$DMXXIEXAMPLES_DEP_CFLAGS"; then
20213        pkg_cv_DMXXIEXAMPLES_DEP_CFLAGS="$DMXXIEXAMPLES_DEP_CFLAGS"
20214    else
20215        if test -n "$PKG_CONFIG" && \
20216    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dmx xi xext x11\""; } >&5
20217  ($PKG_CONFIG --exists --print-errors "dmx xi xext x11") 2>&5
20218  ac_status=$?
20219  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20220  test $ac_status = 0; }; then
20221  pkg_cv_DMXXIEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "dmx xi xext x11" 2>/dev/null`
20222else
20223  pkg_failed=yes
20224fi
20225    fi
20226else
20227	pkg_failed=untried
20228fi
20229if test -n "$PKG_CONFIG"; then
20230    if test -n "$DMXXIEXAMPLES_DEP_LIBS"; then
20231        pkg_cv_DMXXIEXAMPLES_DEP_LIBS="$DMXXIEXAMPLES_DEP_LIBS"
20232    else
20233        if test -n "$PKG_CONFIG" && \
20234    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dmx xi xext x11\""; } >&5
20235  ($PKG_CONFIG --exists --print-errors "dmx xi xext x11") 2>&5
20236  ac_status=$?
20237  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20238  test $ac_status = 0; }; then
20239  pkg_cv_DMXXIEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "dmx xi xext x11" 2>/dev/null`
20240else
20241  pkg_failed=yes
20242fi
20243    fi
20244else
20245	pkg_failed=untried
20246fi
20247
20248
20249
20250if test $pkg_failed = yes; then
20251
20252if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20253        _pkg_short_errors_supported=yes
20254else
20255        _pkg_short_errors_supported=no
20256fi
20257        if test $_pkg_short_errors_supported = yes; then
20258	        DMXXIEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "dmx xi xext x11"`
20259        else
20260	        DMXXIEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dmx xi xext x11"`
20261        fi
20262	# Put the nasty error message in config.log where it belongs
20263	echo "$DMXXIEXAMPLES_DEP_PKG_ERRORS" >&5
20264
20265	as_fn_error "Package requirements (dmx xi xext x11) were not met:
20266
20267$DMXXIEXAMPLES_DEP_PKG_ERRORS
20268
20269Consider adjusting the PKG_CONFIG_PATH environment variable if you
20270installed software in a non-standard prefix.
20271
20272Alternatively, you may set the environment variables DMXXIEXAMPLES_DEP_CFLAGS
20273and DMXXIEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
20274See the pkg-config man page for more details.
20275" "$LINENO" 5
20276elif test $pkg_failed = untried; then
20277	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20278$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20279as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
20280is in your PATH or set the PKG_CONFIG environment variable to the full
20281path to pkg-config.
20282
20283Alternatively, you may set the environment variables DMXXIEXAMPLES_DEP_CFLAGS
20284and DMXXIEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
20285See the pkg-config man page for more details.
20286
20287To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20288See \`config.log' for more details." "$LINENO" 5; }
20289else
20290	DMXXIEXAMPLES_DEP_CFLAGS=$pkg_cv_DMXXIEXAMPLES_DEP_CFLAGS
20291	DMXXIEXAMPLES_DEP_LIBS=$pkg_cv_DMXXIEXAMPLES_DEP_LIBS
20292        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20293$as_echo "yes" >&6; }
20294	:
20295fi
20296
20297
20298pkg_failed=no
20299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTSTEXAMPLES_DEP" >&5
20300$as_echo_n "checking for XTSTEXAMPLES_DEP... " >&6; }
20301
20302if test -n "$PKG_CONFIG"; then
20303    if test -n "$XTSTEXAMPLES_DEP_CFLAGS"; then
20304        pkg_cv_XTSTEXAMPLES_DEP_CFLAGS="$XTSTEXAMPLES_DEP_CFLAGS"
20305    else
20306        if test -n "$PKG_CONFIG" && \
20307    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xtst xext x11\""; } >&5
20308  ($PKG_CONFIG --exists --print-errors "xtst xext x11") 2>&5
20309  ac_status=$?
20310  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20311  test $ac_status = 0; }; then
20312  pkg_cv_XTSTEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "xtst xext x11" 2>/dev/null`
20313else
20314  pkg_failed=yes
20315fi
20316    fi
20317else
20318	pkg_failed=untried
20319fi
20320if test -n "$PKG_CONFIG"; then
20321    if test -n "$XTSTEXAMPLES_DEP_LIBS"; then
20322        pkg_cv_XTSTEXAMPLES_DEP_LIBS="$XTSTEXAMPLES_DEP_LIBS"
20323    else
20324        if test -n "$PKG_CONFIG" && \
20325    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xtst xext x11\""; } >&5
20326  ($PKG_CONFIG --exists --print-errors "xtst xext x11") 2>&5
20327  ac_status=$?
20328  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20329  test $ac_status = 0; }; then
20330  pkg_cv_XTSTEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "xtst xext x11" 2>/dev/null`
20331else
20332  pkg_failed=yes
20333fi
20334    fi
20335else
20336	pkg_failed=untried
20337fi
20338
20339
20340
20341if test $pkg_failed = yes; then
20342
20343if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20344        _pkg_short_errors_supported=yes
20345else
20346        _pkg_short_errors_supported=no
20347fi
20348        if test $_pkg_short_errors_supported = yes; then
20349	        XTSTEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xtst xext x11"`
20350        else
20351	        XTSTEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xtst xext x11"`
20352        fi
20353	# Put the nasty error message in config.log where it belongs
20354	echo "$XTSTEXAMPLES_DEP_PKG_ERRORS" >&5
20355
20356	as_fn_error "Package requirements (xtst xext x11) were not met:
20357
20358$XTSTEXAMPLES_DEP_PKG_ERRORS
20359
20360Consider adjusting the PKG_CONFIG_PATH environment variable if you
20361installed software in a non-standard prefix.
20362
20363Alternatively, you may set the environment variables XTSTEXAMPLES_DEP_CFLAGS
20364and XTSTEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
20365See the pkg-config man page for more details.
20366" "$LINENO" 5
20367elif test $pkg_failed = untried; then
20368	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20369$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20370as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
20371is in your PATH or set the PKG_CONFIG environment variable to the full
20372path to pkg-config.
20373
20374Alternatively, you may set the environment variables XTSTEXAMPLES_DEP_CFLAGS
20375and XTSTEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
20376See the pkg-config man page for more details.
20377
20378To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20379See \`config.log' for more details." "$LINENO" 5; }
20380else
20381	XTSTEXAMPLES_DEP_CFLAGS=$pkg_cv_XTSTEXAMPLES_DEP_CFLAGS
20382	XTSTEXAMPLES_DEP_LIBS=$pkg_cv_XTSTEXAMPLES_DEP_LIBS
20383        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20384$as_echo "yes" >&6; }
20385	:
20386fi
20387
20388
20389pkg_failed=no
20390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRESEXAMPLES_DEP" >&5
20391$as_echo_n "checking for XRESEXAMPLES_DEP... " >&6; }
20392
20393if test -n "$PKG_CONFIG"; then
20394    if test -n "$XRESEXAMPLES_DEP_CFLAGS"; then
20395        pkg_cv_XRESEXAMPLES_DEP_CFLAGS="$XRESEXAMPLES_DEP_CFLAGS"
20396    else
20397        if test -n "$PKG_CONFIG" && \
20398    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xres xext x11\""; } >&5
20399  ($PKG_CONFIG --exists --print-errors "xres xext x11") 2>&5
20400  ac_status=$?
20401  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20402  test $ac_status = 0; }; then
20403  pkg_cv_XRESEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "xres xext x11" 2>/dev/null`
20404else
20405  pkg_failed=yes
20406fi
20407    fi
20408else
20409	pkg_failed=untried
20410fi
20411if test -n "$PKG_CONFIG"; then
20412    if test -n "$XRESEXAMPLES_DEP_LIBS"; then
20413        pkg_cv_XRESEXAMPLES_DEP_LIBS="$XRESEXAMPLES_DEP_LIBS"
20414    else
20415        if test -n "$PKG_CONFIG" && \
20416    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xres xext x11\""; } >&5
20417  ($PKG_CONFIG --exists --print-errors "xres xext x11") 2>&5
20418  ac_status=$?
20419  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20420  test $ac_status = 0; }; then
20421  pkg_cv_XRESEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "xres xext x11" 2>/dev/null`
20422else
20423  pkg_failed=yes
20424fi
20425    fi
20426else
20427	pkg_failed=untried
20428fi
20429
20430
20431
20432if test $pkg_failed = yes; then
20433
20434if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20435        _pkg_short_errors_supported=yes
20436else
20437        _pkg_short_errors_supported=no
20438fi
20439        if test $_pkg_short_errors_supported = yes; then
20440	        XRESEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xres xext x11"`
20441        else
20442	        XRESEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xres xext x11"`
20443        fi
20444	# Put the nasty error message in config.log where it belongs
20445	echo "$XRESEXAMPLES_DEP_PKG_ERRORS" >&5
20446
20447	as_fn_error "Package requirements (xres xext x11) were not met:
20448
20449$XRESEXAMPLES_DEP_PKG_ERRORS
20450
20451Consider adjusting the PKG_CONFIG_PATH environment variable if you
20452installed software in a non-standard prefix.
20453
20454Alternatively, you may set the environment variables XRESEXAMPLES_DEP_CFLAGS
20455and XRESEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
20456See the pkg-config man page for more details.
20457" "$LINENO" 5
20458elif test $pkg_failed = untried; then
20459	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20460$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20461as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
20462is in your PATH or set the PKG_CONFIG environment variable to the full
20463path to pkg-config.
20464
20465Alternatively, you may set the environment variables XRESEXAMPLES_DEP_CFLAGS
20466and XRESEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
20467See the pkg-config man page for more details.
20468
20469To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20470See \`config.log' for more details." "$LINENO" 5; }
20471else
20472	XRESEXAMPLES_DEP_CFLAGS=$pkg_cv_XRESEXAMPLES_DEP_CFLAGS
20473	XRESEXAMPLES_DEP_LIBS=$pkg_cv_XRESEXAMPLES_DEP_LIBS
20474        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20475$as_echo "yes" >&6; }
20476	:
20477fi
20478
20479
20480pkg_failed=no
20481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11EXAMPLES_DEP" >&5
20482$as_echo_n "checking for X11EXAMPLES_DEP... " >&6; }
20483
20484if test -n "$PKG_CONFIG"; then
20485    if test -n "$X11EXAMPLES_DEP_CFLAGS"; then
20486        pkg_cv_X11EXAMPLES_DEP_CFLAGS="$X11EXAMPLES_DEP_CFLAGS"
20487    else
20488        if test -n "$PKG_CONFIG" && \
20489    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext x11\""; } >&5
20490  ($PKG_CONFIG --exists --print-errors "xext x11") 2>&5
20491  ac_status=$?
20492  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20493  test $ac_status = 0; }; then
20494  pkg_cv_X11EXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "xext x11" 2>/dev/null`
20495else
20496  pkg_failed=yes
20497fi
20498    fi
20499else
20500	pkg_failed=untried
20501fi
20502if test -n "$PKG_CONFIG"; then
20503    if test -n "$X11EXAMPLES_DEP_LIBS"; then
20504        pkg_cv_X11EXAMPLES_DEP_LIBS="$X11EXAMPLES_DEP_LIBS"
20505    else
20506        if test -n "$PKG_CONFIG" && \
20507    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext x11\""; } >&5
20508  ($PKG_CONFIG --exists --print-errors "xext x11") 2>&5
20509  ac_status=$?
20510  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20511  test $ac_status = 0; }; then
20512  pkg_cv_X11EXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "xext x11" 2>/dev/null`
20513else
20514  pkg_failed=yes
20515fi
20516    fi
20517else
20518	pkg_failed=untried
20519fi
20520
20521
20522
20523if test $pkg_failed = yes; then
20524
20525if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20526        _pkg_short_errors_supported=yes
20527else
20528        _pkg_short_errors_supported=no
20529fi
20530        if test $_pkg_short_errors_supported = yes; then
20531	        X11EXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xext x11"`
20532        else
20533	        X11EXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xext x11"`
20534        fi
20535	# Put the nasty error message in config.log where it belongs
20536	echo "$X11EXAMPLES_DEP_PKG_ERRORS" >&5
20537
20538	as_fn_error "Package requirements (xext x11) were not met:
20539
20540$X11EXAMPLES_DEP_PKG_ERRORS
20541
20542Consider adjusting the PKG_CONFIG_PATH environment variable if you
20543installed software in a non-standard prefix.
20544
20545Alternatively, you may set the environment variables X11EXAMPLES_DEP_CFLAGS
20546and X11EXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
20547See the pkg-config man page for more details.
20548" "$LINENO" 5
20549elif test $pkg_failed = untried; then
20550	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20551$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20552as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
20553is in your PATH or set the PKG_CONFIG environment variable to the full
20554path to pkg-config.
20555
20556Alternatively, you may set the environment variables X11EXAMPLES_DEP_CFLAGS
20557and X11EXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
20558See the pkg-config man page for more details.
20559
20560To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20561See \`config.log' for more details." "$LINENO" 5; }
20562else
20563	X11EXAMPLES_DEP_CFLAGS=$pkg_cv_X11EXAMPLES_DEP_CFLAGS
20564	X11EXAMPLES_DEP_LIBS=$pkg_cv_X11EXAMPLES_DEP_LIBS
20565        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20566$as_echo "yes" >&6; }
20567	:
20568fi
20569
20570fi
20571 if test "x$DMX_BUILD_LNX" = xyes; then
20572  DMX_BUILD_LNX_TRUE=
20573  DMX_BUILD_LNX_FALSE='#'
20574else
20575  DMX_BUILD_LNX_TRUE='#'
20576  DMX_BUILD_LNX_FALSE=
20577fi
20578
20579 if test "x$DMX_BUILD_USB" = xyes; then
20580  DMX_BUILD_USB_TRUE=
20581  DMX_BUILD_USB_FALSE='#'
20582else
20583  DMX_BUILD_USB_TRUE='#'
20584  DMX_BUILD_USB_FALSE=
20585fi
20586
20587
20588
20589XEPHYR_LIBS=
20590XEPHYR_INCS=
20591XSDL_LIBS=
20592XSDL_INCS=
20593XSDL_DIRS=
20594
20595 if test x$KDRIVE = xyes; then
20596  KDRIVE_TRUE=
20597  KDRIVE_FALSE='#'
20598else
20599  KDRIVE_TRUE='#'
20600  KDRIVE_FALSE=
20601fi
20602
20603if test "$KDRIVE" = yes; then
20604
20605$as_echo "#define KDRIVESERVER 1" >>confdefs.h
20606
20607
20608$as_echo "#define KDRIVEDDXACTIONS /**/" >>confdefs.h
20609
20610
20611    for ac_header in sys/vm86.h sys/io.h
20612do :
20613  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20614ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20615eval as_val=\$$as_ac_Header
20616   if test "x$as_val" = x""yes; then :
20617  cat >>confdefs.h <<_ACEOF
20618#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20619_ACEOF
20620
20621fi
20622
20623done
20624
20625    if test "$ac_cv_header_sys_vm86_h" = yes && test "x$KDRIVEVESA" = xauto; then
20626        KDRIVEVESA=yes
20627    fi
20628
20629    if test "x$KDRIVEVESA" = xyes; then
20630        KDRIVEFBDEVLIB=yes
20631
20632$as_echo "#define KDRIVEVESA 1" >>confdefs.h
20633
20634    fi
20635
20636    for ac_header in linux/fb.h
20637do :
20638  ac_fn_c_check_header_mongrel "$LINENO" "linux/fb.h" "ac_cv_header_linux_fb_h" "$ac_includes_default"
20639if test "x$ac_cv_header_linux_fb_h" = x""yes; then :
20640  cat >>confdefs.h <<_ACEOF
20641#define HAVE_LINUX_FB_H 1
20642_ACEOF
20643
20644fi
20645
20646done
20647
20648    if test "$ac_cv_header_linux_fb_h" = yes && test "x$XFBDEV" = xauto; then
20649        XFBDEV=yes
20650    fi
20651
20652    if test "x$XFBDEV" = xyes; then
20653        KDRIVEFBDEVLIB=yes
20654
20655$as_echo "#define KDRIVEFBDEV 1" >>confdefs.h
20656
20657    fi
20658
20659    # tslib...
20660    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ts_open in -lts" >&5
20661$as_echo_n "checking for ts_open in -lts... " >&6; }
20662if test "${ac_cv_lib_ts_ts_open+set}" = set; then :
20663  $as_echo_n "(cached) " >&6
20664else
20665  ac_check_lib_save_LIBS=$LIBS
20666LIBS="-lts  $LIBS"
20667cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20668/* end confdefs.h.  */
20669
20670/* Override any GCC internal prototype to avoid an error.
20671   Use char because int might match the return type of a GCC
20672   builtin and then its argument prototype would still apply.  */
20673#ifdef __cplusplus
20674extern "C"
20675#endif
20676char ts_open ();
20677int
20678main ()
20679{
20680return ts_open ();
20681  ;
20682  return 0;
20683}
20684_ACEOF
20685if ac_fn_c_try_link "$LINENO"; then :
20686  ac_cv_lib_ts_ts_open=yes
20687else
20688  ac_cv_lib_ts_ts_open=no
20689fi
20690rm -f core conftest.err conftest.$ac_objext \
20691    conftest$ac_exeext conftest.$ac_ext
20692LIBS=$ac_check_lib_save_LIBS
20693fi
20694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ts_ts_open" >&5
20695$as_echo "$ac_cv_lib_ts_ts_open" >&6; }
20696if test "x$ac_cv_lib_ts_ts_open" = x""yes; then :
20697  HAVE_TSLIB="yes"
20698fi
20699
20700    if test "x$TSLIB" = xauto && test "x$HAVE_TSLIB" = xyes; then
20701        TSLIB=yes
20702    fi
20703
20704    if test "x$TSLIB" = xyes; then
20705        if ! test "x$HAVE_TSLIB" = xyes; then
20706            as_fn_error "tslib must be installed to build the tslib input driver." "$LINENO" 5
20707        fi
20708        TSLIB_LIBS="-lts"
20709
20710$as_echo "#define TSLIB 1" >>confdefs.h
20711
20712    fi
20713
20714    for ac_header in SDL/SDL.h
20715do :
20716  ac_fn_c_check_header_mongrel "$LINENO" "SDL/SDL.h" "ac_cv_header_SDL_SDL_h" "$ac_includes_default"
20717if test "x$ac_cv_header_SDL_SDL_h" = x""yes; then :
20718  cat >>confdefs.h <<_ACEOF
20719#define HAVE_SDL_SDL_H 1
20720_ACEOF
20721
20722fi
20723
20724done
20725
20726    if test x"$ac_cv_header_SDL_SDL_h" = xyes && test "x$XSDL" = xauto; then
20727       XSDL=yes
20728    fi
20729
20730    if test x"$XSDL" = xyes; then
20731       # PKG_CHECK_MODULES(XSDL_EXTRA, Xfont xau $XDMCP_MODULES)
20732
20733$as_echo "#define XSDLSERVER 1" >>confdefs.h
20734
20735       XSDL_LIBS="`sdl-config --libs`"
20736       XSDL_INCS="`sdl-config --cflags` $XSERVER_CFLAGS"
20737    fi
20738
20739    XEPHYR_REQUIRED_LIBS="x11 xext xfont xau xdmcp"
20740    if test "x$XV" = xyes; then
20741        XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS xv"
20742    fi
20743    if test "x$DRI" = xyes && test "x$GLX" = xyes; then
20744        XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS gl libdrm"
20745    fi
20746
20747
20748pkg_failed=no
20749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEPHYR" >&5
20750$as_echo_n "checking for XEPHYR... " >&6; }
20751
20752if test -n "$PKG_CONFIG"; then
20753    if test -n "$XEPHYR_CFLAGS"; then
20754        pkg_cv_XEPHYR_CFLAGS="$XEPHYR_CFLAGS"
20755    else
20756        if test -n "$PKG_CONFIG" && \
20757    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5
20758  ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5
20759  ac_status=$?
20760  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20761  test $ac_status = 0; }; then
20762  pkg_cv_XEPHYR_CFLAGS=`$PKG_CONFIG --cflags "$XEPHYR_REQUIRED_LIBS" 2>/dev/null`
20763else
20764  pkg_failed=yes
20765fi
20766    fi
20767else
20768	pkg_failed=untried
20769fi
20770if test -n "$PKG_CONFIG"; then
20771    if test -n "$XEPHYR_LIBS"; then
20772        pkg_cv_XEPHYR_LIBS="$XEPHYR_LIBS"
20773    else
20774        if test -n "$PKG_CONFIG" && \
20775    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5
20776  ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5
20777  ac_status=$?
20778  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20779  test $ac_status = 0; }; then
20780  pkg_cv_XEPHYR_LIBS=`$PKG_CONFIG --libs "$XEPHYR_REQUIRED_LIBS" 2>/dev/null`
20781else
20782  pkg_failed=yes
20783fi
20784    fi
20785else
20786	pkg_failed=untried
20787fi
20788
20789
20790
20791if test $pkg_failed = yes; then
20792
20793if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20794        _pkg_short_errors_supported=yes
20795else
20796        _pkg_short_errors_supported=no
20797fi
20798        if test $_pkg_short_errors_supported = yes; then
20799	        XEPHYR_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$XEPHYR_REQUIRED_LIBS"`
20800        else
20801	        XEPHYR_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$XEPHYR_REQUIRED_LIBS"`
20802        fi
20803	# Put the nasty error message in config.log where it belongs
20804	echo "$XEPHYR_PKG_ERRORS" >&5
20805
20806	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20807$as_echo "no" >&6; }
20808                xephyr="no"
20809elif test $pkg_failed = untried; then
20810	xephyr="no"
20811else
20812	XEPHYR_CFLAGS=$pkg_cv_XEPHYR_CFLAGS
20813	XEPHYR_LIBS=$pkg_cv_XEPHYR_LIBS
20814        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20815$as_echo "yes" >&6; }
20816	xephyr="yes"
20817fi
20818    if test "x$XEPHYR" = xauto; then
20819        XEPHYR=$xephyr
20820    fi
20821
20822    # Xephyr needs nanosleep() which is in librt on Solaris
20823    ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
20824if test "x$ac_cv_func_nanosleep" = x""yes; then :
20825
20826else
20827  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
20828$as_echo_n "checking for nanosleep in -lrt... " >&6; }
20829if test "${ac_cv_lib_rt_nanosleep+set}" = set; then :
20830  $as_echo_n "(cached) " >&6
20831else
20832  ac_check_lib_save_LIBS=$LIBS
20833LIBS="-lrt  $LIBS"
20834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20835/* end confdefs.h.  */
20836
20837/* Override any GCC internal prototype to avoid an error.
20838   Use char because int might match the return type of a GCC
20839   builtin and then its argument prototype would still apply.  */
20840#ifdef __cplusplus
20841extern "C"
20842#endif
20843char nanosleep ();
20844int
20845main ()
20846{
20847return nanosleep ();
20848  ;
20849  return 0;
20850}
20851_ACEOF
20852if ac_fn_c_try_link "$LINENO"; then :
20853  ac_cv_lib_rt_nanosleep=yes
20854else
20855  ac_cv_lib_rt_nanosleep=no
20856fi
20857rm -f core conftest.err conftest.$ac_objext \
20858    conftest$ac_exeext conftest.$ac_ext
20859LIBS=$ac_check_lib_save_LIBS
20860fi
20861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
20862$as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
20863if test "x$ac_cv_lib_rt_nanosleep" = x""yes; then :
20864  XEPHYR_LIBS="$XEPHYR_LIBS -lrt"
20865fi
20866
20867fi
20868
20869
20870    if test "x$TSLIB" = xyes; then
20871
20872pkg_failed=no
20873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TSLIB" >&5
20874$as_echo_n "checking for TSLIB... " >&6; }
20875
20876if test -n "$PKG_CONFIG"; then
20877    if test -n "$TSLIB_CFLAGS"; then
20878        pkg_cv_TSLIB_CFLAGS="$TSLIB_CFLAGS"
20879    else
20880        if test -n "$PKG_CONFIG" && \
20881    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tslib-1.0\""; } >&5
20882  ($PKG_CONFIG --exists --print-errors "tslib-1.0") 2>&5
20883  ac_status=$?
20884  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20885  test $ac_status = 0; }; then
20886  pkg_cv_TSLIB_CFLAGS=`$PKG_CONFIG --cflags "tslib-1.0" 2>/dev/null`
20887else
20888  pkg_failed=yes
20889fi
20890    fi
20891else
20892	pkg_failed=untried
20893fi
20894if test -n "$PKG_CONFIG"; then
20895    if test -n "$TSLIB_LIBS"; then
20896        pkg_cv_TSLIB_LIBS="$TSLIB_LIBS"
20897    else
20898        if test -n "$PKG_CONFIG" && \
20899    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tslib-1.0\""; } >&5
20900  ($PKG_CONFIG --exists --print-errors "tslib-1.0") 2>&5
20901  ac_status=$?
20902  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20903  test $ac_status = 0; }; then
20904  pkg_cv_TSLIB_LIBS=`$PKG_CONFIG --libs "tslib-1.0" 2>/dev/null`
20905else
20906  pkg_failed=yes
20907fi
20908    fi
20909else
20910	pkg_failed=untried
20911fi
20912
20913
20914
20915if test $pkg_failed = yes; then
20916
20917if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20918        _pkg_short_errors_supported=yes
20919else
20920        _pkg_short_errors_supported=no
20921fi
20922        if test $_pkg_short_errors_supported = yes; then
20923	        TSLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "tslib-1.0"`
20924        else
20925	        TSLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "tslib-1.0"`
20926        fi
20927	# Put the nasty error message in config.log where it belongs
20928	echo "$TSLIB_PKG_ERRORS" >&5
20929
20930	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20931$as_echo "no" >&6; }
20932                HAVE_TSLIB="no"
20933elif test $pkg_failed = untried; then
20934	HAVE_TSLIB="no"
20935else
20936	TSLIB_CFLAGS=$pkg_cv_TSLIB_CFLAGS
20937	TSLIB_LIBS=$pkg_cv_TSLIB_LIBS
20938        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20939$as_echo "yes" >&6; }
20940	HAVE_TSLIB="yes"
20941fi
20942        if test "x$HAVE_TSLIB" = xno; then
20943            as_fn_error "tslib must be installed to build the tslib driver. See http://tslib.berlios.de/" "$LINENO" 5
20944        fi
20945
20946$as_echo "#define TSLIB 1" >>confdefs.h
20947
20948    fi
20949
20950    # damage shadow extension glx (NOTYET) fb mi
20951    KDRIVE_INC='-I$(top_srcdir)/hw/kdrive/src'
20952    KDRIVE_PURE_INCS="$KDRIVE_INC $MIEXT_DAMAGE_INC $MIEXT_SHADOW_INC $XEXT_INC $FB_INC $MI_INC"
20953    KDRIVE_OS_INC='-I$(top_srcdir)/hw/kdrive/linux'
20954    KDRIVE_INCS="$KDRIVE_PURE_INCS $KDRIVE_OS_INC"
20955
20956    KDRIVE_CFLAGS="$XSERVER_CFLAGS -DHAVE_KDRIVE_CONFIG_H $TSLIB_CFLAGS"
20957
20958    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"
20959    KDRIVE_LIB='$(top_builddir)/hw/kdrive/src/libkdrive.a'
20960    case $host_os in
20961	*linux*)
20962	    KDRIVE_OS_LIB='$(top_builddir)/hw/kdrive/linux/liblinux.a'
20963            KDRIVELINUX=yes
20964	    ;;
20965    esac
20966    KDRIVE_STUB_LIB='$(top_builddir)/hw/kdrive/src/libkdrivestubs.a'
20967    KDRIVE_LOCAL_LIBS="$DIX_LIB $KDRIVE_LIB $KDRIVE_STUB_LIB $CONFIG_LIB"
20968    KDRIVE_LOCAL_LIBS="$KDRIVE_LOCAL_LIBS $FB_LIB $MI_LIB $KDRIVE_PURE_LIBS"
20969    KDRIVE_LOCAL_LIBS="$KDRIVE_LOCAL_LIBS $KDRIVE_OS_LIB $OS_LIB"
20970    KDRIVE_LIBS="$TSLIB_LIBS $KDRIVE_LOCAL_LIBS $XSERVER_SYS_LIBS $GLX_SYS_LIBS"
20971
20972
20973
20974
20975
20976fi
20977
20978
20979
20980
20981
20982
20983 if test "x$KDRIVELINUX" = xyes; then
20984  KDRIVELINUX_TRUE=
20985  KDRIVELINUX_FALSE='#'
20986else
20987  KDRIVELINUX_TRUE='#'
20988  KDRIVELINUX_FALSE=
20989fi
20990
20991 if test "x$HAVE_TSLIB" = xyes; then
20992  TSLIB_TRUE=
20993  TSLIB_FALSE='#'
20994else
20995  TSLIB_TRUE='#'
20996  TSLIB_FALSE=
20997fi
20998
20999 if test "x$KDRIVEVESA" = xyes; then
21000  KDRIVEVESA_TRUE=
21001  KDRIVEVESA_FALSE='#'
21002else
21003  KDRIVEVESA_TRUE='#'
21004  KDRIVEVESA_FALSE=
21005fi
21006
21007 if test "x$XFBDEV" = xyes; then
21008  KDRIVEFBDEV_TRUE=
21009  KDRIVEFBDEV_FALSE='#'
21010else
21011  KDRIVEFBDEV_TRUE='#'
21012  KDRIVEFBDEV_FALSE=
21013fi
21014
21015 if test x"$XSDL" = xyes; then
21016  XSDLSERVER_TRUE=
21017  XSDLSERVER_FALSE='#'
21018else
21019  XSDLSERVER_TRUE='#'
21020  XSDLSERVER_FALSE=
21021fi
21022
21023 if test "x$KDRIVE" = xyes && test "x$XEPHYR" = xyes; then
21024  XEPHYR_TRUE=
21025  XEPHYR_FALSE='#'
21026else
21027  XEPHYR_TRUE='#'
21028  XEPHYR_FALSE=
21029fi
21030
21031 if test "x$KDRIVE" = xyes && test "x$KDRIVEFBDEVLIB" = xyes; then
21032  BUILD_KDRIVEFBDEVLIB_TRUE=
21033  BUILD_KDRIVEFBDEVLIB_FALSE='#'
21034else
21035  BUILD_KDRIVEFBDEVLIB_TRUE='#'
21036  BUILD_KDRIVEFBDEVLIB_FALSE=
21037fi
21038
21039 if test "x$KDRIVE" = xyes && test "x$XFAKE" = xyes; then
21040  XFAKESERVER_TRUE=
21041  XFAKESERVER_FALSE='#'
21042else
21043  XFAKESERVER_TRUE='#'
21044  XFAKESERVER_FALSE=
21045fi
21046
21047
21048
21049$as_echo "#define __XKBDEFRULES__ \"xorg\"" >>confdefs.h
21050
21051
21052  prefix_NONE=
21053  exec_prefix_NONE=
21054  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
21055  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
21056  eval ac_define_dir="\"$XKBPATH\""
21057  eval ac_define_dir="\"$ac_define_dir\""
21058  XKB_BASE_DIRECTORY="$ac_define_dir"
21059
21060
21061cat >>confdefs.h <<_ACEOF
21062#define XKB_BASE_DIRECTORY "$ac_define_dir"
21063_ACEOF
21064
21065  test "$prefix_NONE" && prefix=NONE
21066  test "$exec_prefix_NONE" && exec_prefix=NONE
21067
21068
21069  prefix_NONE=
21070  exec_prefix_NONE=
21071  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
21072  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
21073  eval ac_define_dir="\"$bindir\""
21074  eval ac_define_dir="\"$ac_define_dir\""
21075  XKB_BIN_DIRECTORY="$ac_define_dir"
21076
21077
21078cat >>confdefs.h <<_ACEOF
21079#define XKB_BIN_DIRECTORY "$ac_define_dir"
21080_ACEOF
21081
21082  test "$prefix_NONE" && prefix=NONE
21083  test "$exec_prefix_NONE" && exec_prefix=NONE
21084
21085
21086# Make sure XKM_OUTPUT_DIR is an absolute path
21087XKBOUTPUT_FIRSTCHAR=`echo $XKBOUTPUT | cut -b 1`
21088
21089if [ x$XKBOUTPUT_FIRSTCHAR != x/ ] ; then
21090   XKBOUTPUT="$XKB_BASE_DIRECTORY/$XKBOUTPUT"
21091fi
21092
21093# XKM_OUTPUT_DIR (used in code) must end in / or file names get hosed
21094# XKB_COMPILED_DIR (used in Makefiles) must not or install-sh gets confused
21095
21096XKBOUTPUT=`echo $XKBOUTPUT/ | sed 's|/*$|/|'`
21097XKB_COMPILED_DIR=`echo $XKBOUTPUT | sed 's|/*$||'`
21098
21099
21100  prefix_NONE=
21101  exec_prefix_NONE=
21102  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
21103  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
21104  eval ac_define_dir="\"$XKBOUTPUT\""
21105  eval ac_define_dir="\"$ac_define_dir\""
21106  XKM_OUTPUT_DIR="$ac_define_dir"
21107
21108
21109cat >>confdefs.h <<_ACEOF
21110#define XKM_OUTPUT_DIR "$ac_define_dir"
21111_ACEOF
21112
21113  test "$prefix_NONE" && prefix=NONE
21114  test "$exec_prefix_NONE" && exec_prefix=NONE
21115
21116
21117
21118
21119
21120cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21121/* end confdefs.h.  */
21122
21123#include <features.h>
21124#ifndef __GLIBC__
21125#error not glibc
21126#endif
21127
21128int
21129main ()
21130{
21131
21132  ;
21133  return 0;
21134}
21135_ACEOF
21136if ac_fn_c_try_compile "$LINENO"; then :
21137
21138$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
21139
21140fi
21141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21142
21143
21144  prefix_NONE=
21145  exec_prefix_NONE=
21146  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
21147  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
21148  eval ac_define_dir="\"$prefix\""
21149  eval ac_define_dir="\"$ac_define_dir\""
21150  PROJECTROOT="$ac_define_dir"
21151
21152
21153cat >>confdefs.h <<_ACEOF
21154#define PROJECTROOT "$ac_define_dir"
21155_ACEOF
21156
21157  test "$prefix_NONE" && prefix=NONE
21158  test "$exec_prefix_NONE" && exec_prefix=NONE
21159
21160
21161BUILD_DATE="$(date +'%Y%m%d')"
21162
21163BUILD_TIME="$(date +'1%H%M%S')"
21164
21165
21166DIX_CFLAGS="-DHAVE_DIX_CONFIG_H $XSERVER_CFLAGS"
21167
21168
21169
21170
21171
21172
21173
21174# Man page sections - used in config utils & generating man pages
21175
21176
21177
21178if test x$APP_MAN_SUFFIX = x    ; then
21179    APP_MAN_SUFFIX=1
21180fi
21181if test x$APP_MAN_DIR = x    ; then
21182    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
21183fi
21184
21185if test x$LIB_MAN_SUFFIX = x    ; then
21186    LIB_MAN_SUFFIX=3
21187fi
21188if test x$LIB_MAN_DIR = x    ; then
21189    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
21190fi
21191
21192if test x$FILE_MAN_SUFFIX = x    ; then
21193    case $host_os in
21194	solaris*)	FILE_MAN_SUFFIX=4  ;;
21195	*)		FILE_MAN_SUFFIX=5  ;;
21196    esac
21197fi
21198if test x$FILE_MAN_DIR = x    ; then
21199    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
21200fi
21201
21202if test x$MISC_MAN_SUFFIX = x    ; then
21203    case $host_os in
21204	solaris*)	MISC_MAN_SUFFIX=5  ;;
21205	*)		MISC_MAN_SUFFIX=7  ;;
21206    esac
21207fi
21208if test x$MISC_MAN_DIR = x    ; then
21209    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
21210fi
21211
21212if test x$DRIVER_MAN_SUFFIX = x    ; then
21213    case $host_os in
21214	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
21215	*)		DRIVER_MAN_SUFFIX=4  ;;
21216    esac
21217fi
21218if test x$DRIVER_MAN_DIR = x    ; then
21219    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
21220fi
21221
21222if test x$ADMIN_MAN_SUFFIX = x    ; then
21223    case $host_os in
21224	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
21225	*)		ADMIN_MAN_SUFFIX=8  ;;
21226    esac
21227fi
21228if test x$ADMIN_MAN_DIR = x    ; then
21229    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
21230fi
21231
21232
21233
21234
21235
21236
21237
21238
21239
21240
21241
21242
21243
21244
21245
21246
21247ac_config_files="$ac_config_files Makefile glx/Makefile include/Makefile composite/Makefile damageext/Makefile dbe/Makefile dix/Makefile doc/Makefile 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/dummylib/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/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/sdl/Makefile hw/kdrive/src/Makefile xorg-server.pc"
21248
21249cat >confcache <<\_ACEOF
21250# This file is a shell script that caches the results of configure
21251# tests run on this system so they can be shared between configure
21252# scripts and configure runs, see configure's option --config-cache.
21253# It is not useful on other systems.  If it contains results you don't
21254# want to keep, you may remove or edit it.
21255#
21256# config.status only pays attention to the cache file if you give it
21257# the --recheck option to rerun configure.
21258#
21259# `ac_cv_env_foo' variables (set or unset) will be overridden when
21260# loading this file, other *unset* `ac_cv_foo' will be assigned the
21261# following values.
21262
21263_ACEOF
21264
21265# The following way of writing the cache mishandles newlines in values,
21266# but we know of no workaround that is simple, portable, and efficient.
21267# So, we kill variables containing newlines.
21268# Ultrix sh set writes to stderr and can't be redirected directly,
21269# and sets the high bit in the cache file unless we assign to the vars.
21270(
21271  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21272    eval ac_val=\$$ac_var
21273    case $ac_val in #(
21274    *${as_nl}*)
21275      case $ac_var in #(
21276      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21277$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21278      esac
21279      case $ac_var in #(
21280      _ | IFS | as_nl) ;; #(
21281      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21282      *) { eval $ac_var=; unset $ac_var;} ;;
21283      esac ;;
21284    esac
21285  done
21286
21287  (set) 2>&1 |
21288    case $as_nl`(ac_space=' '; set) 2>&1` in #(
21289    *${as_nl}ac_space=\ *)
21290      # `set' does not quote correctly, so add quotes: double-quote
21291      # substitution turns \\\\ into \\, and sed turns \\ into \.
21292      sed -n \
21293	"s/'/'\\\\''/g;
21294	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21295      ;; #(
21296    *)
21297      # `set' quotes correctly as required by POSIX, so do not add quotes.
21298      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21299      ;;
21300    esac |
21301    sort
21302) |
21303  sed '
21304     /^ac_cv_env_/b end
21305     t clear
21306     :clear
21307     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21308     t end
21309     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21310     :end' >>confcache
21311if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21312  if test -w "$cache_file"; then
21313    test "x$cache_file" != "x/dev/null" &&
21314      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21315$as_echo "$as_me: updating cache $cache_file" >&6;}
21316    cat confcache >$cache_file
21317  else
21318    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21319$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21320  fi
21321fi
21322rm -f confcache
21323
21324test "x$prefix" = xNONE && prefix=$ac_default_prefix
21325# Let make expand exec_prefix.
21326test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21327
21328DEFS=-DHAVE_CONFIG_H
21329
21330ac_libobjs=
21331ac_ltlibobjs=
21332for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21333  # 1. Remove the extension, and $U if already installed.
21334  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21335  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21336  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21337  #    will be set to the directory where LIBOBJS objects are built.
21338  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21339  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21340done
21341LIBOBJS=$ac_libobjs
21342
21343LTLIBOBJS=$ac_ltlibobjs
21344
21345
21346 if test -n "$EXEEXT"; then
21347  am__EXEEXT_TRUE=
21348  am__EXEEXT_FALSE='#'
21349else
21350  am__EXEEXT_TRUE='#'
21351  am__EXEEXT_FALSE=
21352fi
21353
21354if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21355  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
21356Usually this means the macro was only invoked conditionally." "$LINENO" 5
21357fi
21358if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21359  as_fn_error "conditional \"AMDEP\" was never defined.
21360Usually this means the macro was only invoked conditionally." "$LINENO" 5
21361fi
21362if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21363  as_fn_error "conditional \"am__fastdepCC\" was never defined.
21364Usually this means the macro was only invoked conditionally." "$LINENO" 5
21365fi
21366if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
21367  as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
21368Usually this means the macro was only invoked conditionally." "$LINENO" 5
21369fi
21370if test -z "${XSERVER_DTRACE_TRUE}" && test -z "${XSERVER_DTRACE_FALSE}"; then
21371  as_fn_error "conditional \"XSERVER_DTRACE\" was never defined.
21372Usually this means the macro was only invoked conditionally." "$LINENO" 5
21373fi
21374
21375if test -z "${NEED_STRLCAT_TRUE}" && test -z "${NEED_STRLCAT_FALSE}"; then
21376  as_fn_error "conditional \"NEED_STRLCAT\" was never defined.
21377Usually this means the macro was only invoked conditionally." "$LINENO" 5
21378fi
21379if test -z "${NEED_VSNPRINTF_TRUE}" && test -z "${NEED_VSNPRINTF_FALSE}"; then
21380  as_fn_error "conditional \"NEED_VSNPRINTF\" was never defined.
21381Usually this means the macro was only invoked conditionally." "$LINENO" 5
21382fi
21383if test -z "${AGP_TRUE}" && test -z "${AGP_FALSE}"; then
21384  as_fn_error "conditional \"AGP\" was never defined.
21385Usually this means the macro was only invoked conditionally." "$LINENO" 5
21386fi
21387if test -z "${LNXAPM_TRUE}" && test -z "${LNXAPM_FALSE}"; then
21388  as_fn_error "conditional \"LNXAPM\" was never defined.
21389Usually this means the macro was only invoked conditionally." "$LINENO" 5
21390fi
21391if test -z "${FBDEVHW_TRUE}" && test -z "${FBDEVHW_FALSE}"; then
21392  as_fn_error "conditional \"FBDEVHW\" was never defined.
21393Usually this means the macro was only invoked conditionally." "$LINENO" 5
21394fi
21395if test -z "${FREEBSD_KLDLOAD_TRUE}" && test -z "${FREEBSD_KLDLOAD_FALSE}"; then
21396  as_fn_error "conditional \"FREEBSD_KLDLOAD\" was never defined.
21397Usually this means the macro was only invoked conditionally." "$LINENO" 5
21398fi
21399if test -z "${BSD_APM_TRUE}" && test -z "${BSD_APM_FALSE}"; then
21400  as_fn_error "conditional \"BSD_APM\" was never defined.
21401Usually this means the macro was only invoked conditionally." "$LINENO" 5
21402fi
21403if test -z "${BSD_KQUEUE_APM_TRUE}" && test -z "${BSD_KQUEUE_APM_FALSE}"; then
21404  as_fn_error "conditional \"BSD_KQUEUE_APM\" was never defined.
21405Usually this means the macro was only invoked conditionally." "$LINENO" 5
21406fi
21407if test -z "${ALPHA_VIDEO_TRUE}" && test -z "${ALPHA_VIDEO_FALSE}"; then
21408  as_fn_error "conditional \"ALPHA_VIDEO\" was never defined.
21409Usually this means the macro was only invoked conditionally." "$LINENO" 5
21410fi
21411if test -z "${ARM_VIDEO_TRUE}" && test -z "${ARM_VIDEO_FALSE}"; then
21412  as_fn_error "conditional \"ARM_VIDEO\" was never defined.
21413Usually this means the macro was only invoked conditionally." "$LINENO" 5
21414fi
21415if test -z "${I386_VIDEO_TRUE}" && test -z "${I386_VIDEO_FALSE}"; then
21416  as_fn_error "conditional \"I386_VIDEO\" was never defined.
21417Usually this means the macro was only invoked conditionally." "$LINENO" 5
21418fi
21419if test -z "${PPC_VIDEO_TRUE}" && test -z "${PPC_VIDEO_FALSE}"; then
21420  as_fn_error "conditional \"PPC_VIDEO\" was never defined.
21421Usually this means the macro was only invoked conditionally." "$LINENO" 5
21422fi
21423if test -z "${SPARC64_VIDEO_TRUE}" && test -z "${SPARC64_VIDEO_FALSE}"; then
21424  as_fn_error "conditional \"SPARC64_VIDEO\" was never defined.
21425Usually this means the macro was only invoked conditionally." "$LINENO" 5
21426fi
21427if test -z "${KDRIVE_HW_TRUE}" && test -z "${KDRIVE_HW_FALSE}"; then
21428  as_fn_error "conditional \"KDRIVE_HW\" was never defined.
21429Usually this means the macro was only invoked conditionally." "$LINENO" 5
21430fi
21431if test -z "${INSTALL_SETUID_TRUE}" && test -z "${INSTALL_SETUID_FALSE}"; then
21432  as_fn_error "conditional \"INSTALL_SETUID\" was never defined.
21433Usually this means the macro was only invoked conditionally." "$LINENO" 5
21434fi
21435if test -z "${SECURE_RPC_TRUE}" && test -z "${SECURE_RPC_FALSE}"; then
21436  as_fn_error "conditional \"SECURE_RPC\" was never defined.
21437Usually this means the macro was only invoked conditionally." "$LINENO" 5
21438fi
21439if test -z "${INT10_VM86_TRUE}" && test -z "${INT10_VM86_FALSE}"; then
21440  as_fn_error "conditional \"INT10_VM86\" was never defined.
21441Usually this means the macro was only invoked conditionally." "$LINENO" 5
21442fi
21443if test -z "${INT10_X86EMU_TRUE}" && test -z "${INT10_X86EMU_FALSE}"; then
21444  as_fn_error "conditional \"INT10_X86EMU\" was never defined.
21445Usually this means the macro was only invoked conditionally." "$LINENO" 5
21446fi
21447if test -z "${INT10_STUB_TRUE}" && test -z "${INT10_STUB_FALSE}"; then
21448  as_fn_error "conditional \"INT10_STUB\" was never defined.
21449Usually this means the macro was only invoked conditionally." "$LINENO" 5
21450fi
21451if test -z "${BUILDDOCS_TRUE}" && test -z "${BUILDDOCS_FALSE}"; then
21452  as_fn_error "conditional \"BUILDDOCS\" was never defined.
21453Usually this means the macro was only invoked conditionally." "$LINENO" 5
21454fi
21455if test -z "${BUILD_LINUXDOC_TRUE}" && test -z "${BUILD_LINUXDOC_FALSE}"; then
21456  as_fn_error "conditional \"BUILD_LINUXDOC\" was never defined.
21457Usually this means the macro was only invoked conditionally." "$LINENO" 5
21458fi
21459if test -z "${BUILD_PDFDOC_TRUE}" && test -z "${BUILD_PDFDOC_FALSE}"; then
21460  as_fn_error "conditional \"BUILD_PDFDOC\" was never defined.
21461Usually this means the macro was only invoked conditionally." "$LINENO" 5
21462fi
21463if test -z "${INSTALL_LIBXF86CONFIG_TRUE}" && test -z "${INSTALL_LIBXF86CONFIG_FALSE}"; then
21464  as_fn_error "conditional \"INSTALL_LIBXF86CONFIG\" was never defined.
21465Usually this means the macro was only invoked conditionally." "$LINENO" 5
21466fi
21467if test -z "${HAVE_DBUS_TRUE}" && test -z "${HAVE_DBUS_FALSE}"; then
21468  as_fn_error "conditional \"HAVE_DBUS\" was never defined.
21469Usually this means the macro was only invoked conditionally." "$LINENO" 5
21470fi
21471if test -z "${CONFIG_DBUS_API_TRUE}" && test -z "${CONFIG_DBUS_API_FALSE}"; then
21472  as_fn_error "conditional \"CONFIG_DBUS_API\" was never defined.
21473Usually this means the macro was only invoked conditionally." "$LINENO" 5
21474fi
21475if test -z "${CONFIG_HAL_TRUE}" && test -z "${CONFIG_HAL_FALSE}"; then
21476  as_fn_error "conditional \"CONFIG_HAL\" was never defined.
21477Usually this means the macro was only invoked conditionally." "$LINENO" 5
21478fi
21479if test -z "${CONFIG_NEED_DBUS_TRUE}" && test -z "${CONFIG_NEED_DBUS_FALSE}"; then
21480  as_fn_error "conditional \"CONFIG_NEED_DBUS\" was never defined.
21481Usually this means the macro was only invoked conditionally." "$LINENO" 5
21482fi
21483if test -z "${XV_TRUE}" && test -z "${XV_FALSE}"; then
21484  as_fn_error "conditional \"XV\" was never defined.
21485Usually this means the macro was only invoked conditionally." "$LINENO" 5
21486fi
21487if test -z "${XVMC_TRUE}" && test -z "${XVMC_FALSE}"; then
21488  as_fn_error "conditional \"XVMC\" was never defined.
21489Usually this means the macro was only invoked conditionally." "$LINENO" 5
21490fi
21491if test -z "${XREGISTRY_TRUE}" && test -z "${XREGISTRY_FALSE}"; then
21492  as_fn_error "conditional \"XREGISTRY\" was never defined.
21493Usually this means the macro was only invoked conditionally." "$LINENO" 5
21494fi
21495if test -z "${COMPOSITE_TRUE}" && test -z "${COMPOSITE_FALSE}"; then
21496  as_fn_error "conditional \"COMPOSITE\" was never defined.
21497Usually this means the macro was only invoked conditionally." "$LINENO" 5
21498fi
21499if test -z "${MITSHM_TRUE}" && test -z "${MITSHM_FALSE}"; then
21500  as_fn_error "conditional \"MITSHM\" was never defined.
21501Usually this means the macro was only invoked conditionally." "$LINENO" 5
21502fi
21503if test -z "${RECORD_TRUE}" && test -z "${RECORD_FALSE}"; then
21504  as_fn_error "conditional \"RECORD\" was never defined.
21505Usually this means the macro was only invoked conditionally." "$LINENO" 5
21506fi
21507if test -z "${SCREENSAVER_TRUE}" && test -z "${SCREENSAVER_FALSE}"; then
21508  as_fn_error "conditional \"SCREENSAVER\" was never defined.
21509Usually this means the macro was only invoked conditionally." "$LINENO" 5
21510fi
21511if test -z "${RES_TRUE}" && test -z "${RES_FALSE}"; then
21512  as_fn_error "conditional \"RES\" was never defined.
21513Usually this means the macro was only invoked conditionally." "$LINENO" 5
21514fi
21515if test -z "${GLX_TRUE}" && test -z "${GLX_FALSE}"; then
21516  as_fn_error "conditional \"GLX\" was never defined.
21517Usually this means the macro was only invoked conditionally." "$LINENO" 5
21518fi
21519if test -z "${AIGLX_TRUE}" && test -z "${AIGLX_FALSE}"; then
21520  as_fn_error "conditional \"AIGLX\" was never defined.
21521Usually this means the macro was only invoked conditionally." "$LINENO" 5
21522fi
21523if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
21524  as_fn_error "conditional \"DRI\" was never defined.
21525Usually this means the macro was only invoked conditionally." "$LINENO" 5
21526fi
21527if test -z "${DRI2_TRUE}" && test -z "${DRI2_FALSE}"; then
21528  as_fn_error "conditional \"DRI2\" was never defined.
21529Usually this means the macro was only invoked conditionally." "$LINENO" 5
21530fi
21531if test -z "${DRI2_AIGLX_TRUE}" && test -z "${DRI2_AIGLX_FALSE}"; then
21532  as_fn_error "conditional \"DRI2_AIGLX\" was never defined.
21533Usually this means the macro was only invoked conditionally." "$LINENO" 5
21534fi
21535if test -z "${XINERAMA_TRUE}" && test -z "${XINERAMA_FALSE}"; then
21536  as_fn_error "conditional \"XINERAMA\" was never defined.
21537Usually this means the macro was only invoked conditionally." "$LINENO" 5
21538fi
21539if test -z "${XACE_TRUE}" && test -z "${XACE_FALSE}"; then
21540  as_fn_error "conditional \"XACE\" was never defined.
21541Usually this means the macro was only invoked conditionally." "$LINENO" 5
21542fi
21543if test -z "${XSELINUX_TRUE}" && test -z "${XSELINUX_FALSE}"; then
21544  as_fn_error "conditional \"XSELINUX\" was never defined.
21545Usually this means the macro was only invoked conditionally." "$LINENO" 5
21546fi
21547if test -z "${XCSECURITY_TRUE}" && test -z "${XCSECURITY_FALSE}"; then
21548  as_fn_error "conditional \"XCSECURITY\" was never defined.
21549Usually this means the macro was only invoked conditionally." "$LINENO" 5
21550fi
21551if test -z "${MULTIBUFFER_TRUE}" && test -z "${MULTIBUFFER_FALSE}"; then
21552  as_fn_error "conditional \"MULTIBUFFER\" was never defined.
21553Usually this means the macro was only invoked conditionally." "$LINENO" 5
21554fi
21555if test -z "${DBE_TRUE}" && test -z "${DBE_FALSE}"; then
21556  as_fn_error "conditional \"DBE\" was never defined.
21557Usually this means the macro was only invoked conditionally." "$LINENO" 5
21558fi
21559if test -z "${XF86BIGFONT_TRUE}" && test -z "${XF86BIGFONT_FALSE}"; then
21560  as_fn_error "conditional \"XF86BIGFONT\" was never defined.
21561Usually this means the macro was only invoked conditionally." "$LINENO" 5
21562fi
21563if test -z "${DPMSExtension_TRUE}" && test -z "${DPMSExtension_FALSE}"; then
21564  as_fn_error "conditional \"DPMSExtension\" was never defined.
21565Usually this means the macro was only invoked conditionally." "$LINENO" 5
21566fi
21567if test -z "${XCALIBRATE_TRUE}" && test -z "${XCALIBRATE_FALSE}"; then
21568  as_fn_error "conditional \"XCALIBRATE\" was never defined.
21569Usually this means the macro was only invoked conditionally." "$LINENO" 5
21570fi
21571if test -z "${XF86UTILS_TRUE}" && test -z "${XF86UTILS_FALSE}"; then
21572  as_fn_error "conditional \"XF86UTILS\" was never defined.
21573Usually this means the macro was only invoked conditionally." "$LINENO" 5
21574fi
21575if test -z "${XDMCP_TRUE}" && test -z "${XDMCP_FALSE}"; then
21576  as_fn_error "conditional \"XDMCP\" was never defined.
21577Usually this means the macro was only invoked conditionally." "$LINENO" 5
21578fi
21579if test -z "${XDMAUTH_TRUE}" && test -z "${XDMAUTH_FALSE}"; then
21580  as_fn_error "conditional \"XDMAUTH\" was never defined.
21581Usually this means the macro was only invoked conditionally." "$LINENO" 5
21582fi
21583if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
21584  as_fn_error "conditional \"DEBUG\" was never defined.
21585Usually this means the macro was only invoked conditionally." "$LINENO" 5
21586fi
21587if test -z "${XVFB_TRUE}" && test -z "${XVFB_FALSE}"; then
21588  as_fn_error "conditional \"XVFB\" was never defined.
21589Usually this means the macro was only invoked conditionally." "$LINENO" 5
21590fi
21591if test -z "${XNEST_TRUE}" && test -z "${XNEST_FALSE}"; then
21592  as_fn_error "conditional \"XNEST\" was never defined.
21593Usually this means the macro was only invoked conditionally." "$LINENO" 5
21594fi
21595if test -z "${XORG_TRUE}" && test -z "${XORG_FALSE}"; then
21596  as_fn_error "conditional \"XORG\" was never defined.
21597Usually this means the macro was only invoked conditionally." "$LINENO" 5
21598fi
21599if test -z "${XORG_BUS_LINUXPCI_TRUE}" && test -z "${XORG_BUS_LINUXPCI_FALSE}"; then
21600  as_fn_error "conditional \"XORG_BUS_LINUXPCI\" was never defined.
21601Usually this means the macro was only invoked conditionally." "$LINENO" 5
21602fi
21603if test -z "${XORG_BUS_BSDPCI_TRUE}" && test -z "${XORG_BUS_BSDPCI_FALSE}"; then
21604  as_fn_error "conditional \"XORG_BUS_BSDPCI\" was never defined.
21605Usually this means the macro was only invoked conditionally." "$LINENO" 5
21606fi
21607if test -z "${XORG_BUS_SPARC_TRUE}" && test -z "${XORG_BUS_SPARC_FALSE}"; then
21608  as_fn_error "conditional \"XORG_BUS_SPARC\" was never defined.
21609Usually this means the macro was only invoked conditionally." "$LINENO" 5
21610fi
21611if test -z "${LINUX_IA64_TRUE}" && test -z "${LINUX_IA64_FALSE}"; then
21612  as_fn_error "conditional \"LINUX_IA64\" was never defined.
21613Usually this means the macro was only invoked conditionally." "$LINENO" 5
21614fi
21615if test -z "${LINUX_ALPHA_TRUE}" && test -z "${LINUX_ALPHA_FALSE}"; then
21616  as_fn_error "conditional \"LINUX_ALPHA\" was never defined.
21617Usually this means the macro was only invoked conditionally." "$LINENO" 5
21618fi
21619if test -z "${LNXACPI_TRUE}" && test -z "${LNXACPI_FALSE}"; then
21620  as_fn_error "conditional \"LNXACPI\" was never defined.
21621Usually this means the macro was only invoked conditionally." "$LINENO" 5
21622fi
21623if test -z "${SOLARIS_USL_CONSOLE_TRUE}" && test -z "${SOLARIS_USL_CONSOLE_FALSE}"; then
21624  as_fn_error "conditional \"SOLARIS_USL_CONSOLE\" was never defined.
21625Usually this means the macro was only invoked conditionally." "$LINENO" 5
21626fi
21627if test -z "${SOLARIS_ASM_INLINE_TRUE}" && test -z "${SOLARIS_ASM_INLINE_FALSE}"; then
21628  as_fn_error "conditional \"SOLARIS_ASM_INLINE\" was never defined.
21629Usually this means the macro was only invoked conditionally." "$LINENO" 5
21630fi
21631if test -z "${DGA_TRUE}" && test -z "${DGA_FALSE}"; then
21632  as_fn_error "conditional \"DGA\" was never defined.
21633Usually this means the macro was only invoked conditionally." "$LINENO" 5
21634fi
21635if test -z "${XF86VIDMODE_TRUE}" && test -z "${XF86VIDMODE_FALSE}"; then
21636  as_fn_error "conditional \"XF86VIDMODE\" was never defined.
21637Usually this means the macro was only invoked conditionally." "$LINENO" 5
21638fi
21639if test -z "${XWIN_TRUE}" && test -z "${XWIN_FALSE}"; then
21640  as_fn_error "conditional \"XWIN\" was never defined.
21641Usually this means the macro was only invoked conditionally." "$LINENO" 5
21642fi
21643if test -z "${XWIN_MULTIWINDOW_TRUE}" && test -z "${XWIN_MULTIWINDOW_FALSE}"; then
21644  as_fn_error "conditional \"XWIN_MULTIWINDOW\" was never defined.
21645Usually this means the macro was only invoked conditionally." "$LINENO" 5
21646fi
21647if test -z "${XWIN_MULTIWINDOWEXTWM_TRUE}" && test -z "${XWIN_MULTIWINDOWEXTWM_FALSE}"; then
21648  as_fn_error "conditional \"XWIN_MULTIWINDOWEXTWM\" was never defined.
21649Usually this means the macro was only invoked conditionally." "$LINENO" 5
21650fi
21651if test -z "${XWIN_CLIPBOARD_TRUE}" && test -z "${XWIN_CLIPBOARD_FALSE}"; then
21652  as_fn_error "conditional \"XWIN_CLIPBOARD\" was never defined.
21653Usually this means the macro was only invoked conditionally." "$LINENO" 5
21654fi
21655if test -z "${XWIN_GLX_WINDOWS_TRUE}" && test -z "${XWIN_GLX_WINDOWS_FALSE}"; then
21656  as_fn_error "conditional \"XWIN_GLX_WINDOWS\" was never defined.
21657Usually this means the macro was only invoked conditionally." "$LINENO" 5
21658fi
21659if test -z "${XWIN_NATIVEGDI_TRUE}" && test -z "${XWIN_NATIVEGDI_FALSE}"; then
21660  as_fn_error "conditional \"XWIN_NATIVEGDI\" was never defined.
21661Usually this means the macro was only invoked conditionally." "$LINENO" 5
21662fi
21663if test -z "${XWIN_PRIMARYFB_TRUE}" && test -z "${XWIN_PRIMARYFB_FALSE}"; then
21664  as_fn_error "conditional \"XWIN_PRIMARYFB\" was never defined.
21665Usually this means the macro was only invoked conditionally." "$LINENO" 5
21666fi
21667if test -z "${XWIN_RANDR_TRUE}" && test -z "${XWIN_RANDR_FALSE}"; then
21668  as_fn_error "conditional \"XWIN_RANDR\" was never defined.
21669Usually this means the macro was only invoked conditionally." "$LINENO" 5
21670fi
21671if test -z "${XWIN_XV_TRUE}" && test -z "${XWIN_XV_FALSE}"; then
21672  as_fn_error "conditional \"XWIN_XV\" was never defined.
21673Usually this means the macro was only invoked conditionally." "$LINENO" 5
21674fi
21675if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
21676  as_fn_error "conditional \"am__fastdepOBJC\" was never defined.
21677Usually this means the macro was only invoked conditionally." "$LINENO" 5
21678fi
21679if test -z "${HAVE_XPLUGIN_TRUE}" && test -z "${HAVE_XPLUGIN_FALSE}"; then
21680  as_fn_error "conditional \"HAVE_XPLUGIN\" was never defined.
21681Usually this means the macro was only invoked conditionally." "$LINENO" 5
21682fi
21683if test -z "${HAVE_AGL_FRAMEWORK_TRUE}" && test -z "${HAVE_AGL_FRAMEWORK_FALSE}"; then
21684  as_fn_error "conditional \"HAVE_AGL_FRAMEWORK\" was never defined.
21685Usually this means the macro was only invoked conditionally." "$LINENO" 5
21686fi
21687if test -z "${XQUARTZ_TRUE}" && test -z "${XQUARTZ_FALSE}"; then
21688  as_fn_error "conditional \"XQUARTZ\" was never defined.
21689Usually this means the macro was only invoked conditionally." "$LINENO" 5
21690fi
21691if test -z "${STANDALONE_XPBPROXY_TRUE}" && test -z "${STANDALONE_XPBPROXY_FALSE}"; then
21692  as_fn_error "conditional \"STANDALONE_XPBPROXY\" was never defined.
21693Usually this means the macro was only invoked conditionally." "$LINENO" 5
21694fi
21695if test -z "${DMX_TRUE}" && test -z "${DMX_FALSE}"; then
21696  as_fn_error "conditional \"DMX\" was never defined.
21697Usually this means the macro was only invoked conditionally." "$LINENO" 5
21698fi
21699if test -z "${DMX_BUILD_LNX_TRUE}" && test -z "${DMX_BUILD_LNX_FALSE}"; then
21700  as_fn_error "conditional \"DMX_BUILD_LNX\" was never defined.
21701Usually this means the macro was only invoked conditionally." "$LINENO" 5
21702fi
21703if test -z "${DMX_BUILD_USB_TRUE}" && test -z "${DMX_BUILD_USB_FALSE}"; then
21704  as_fn_error "conditional \"DMX_BUILD_USB\" was never defined.
21705Usually this means the macro was only invoked conditionally." "$LINENO" 5
21706fi
21707if test -z "${KDRIVE_TRUE}" && test -z "${KDRIVE_FALSE}"; then
21708  as_fn_error "conditional \"KDRIVE\" was never defined.
21709Usually this means the macro was only invoked conditionally." "$LINENO" 5
21710fi
21711if test -z "${KDRIVELINUX_TRUE}" && test -z "${KDRIVELINUX_FALSE}"; then
21712  as_fn_error "conditional \"KDRIVELINUX\" was never defined.
21713Usually this means the macro was only invoked conditionally." "$LINENO" 5
21714fi
21715if test -z "${TSLIB_TRUE}" && test -z "${TSLIB_FALSE}"; then
21716  as_fn_error "conditional \"TSLIB\" was never defined.
21717Usually this means the macro was only invoked conditionally." "$LINENO" 5
21718fi
21719if test -z "${KDRIVEVESA_TRUE}" && test -z "${KDRIVEVESA_FALSE}"; then
21720  as_fn_error "conditional \"KDRIVEVESA\" was never defined.
21721Usually this means the macro was only invoked conditionally." "$LINENO" 5
21722fi
21723if test -z "${KDRIVEFBDEV_TRUE}" && test -z "${KDRIVEFBDEV_FALSE}"; then
21724  as_fn_error "conditional \"KDRIVEFBDEV\" was never defined.
21725Usually this means the macro was only invoked conditionally." "$LINENO" 5
21726fi
21727if test -z "${XSDLSERVER_TRUE}" && test -z "${XSDLSERVER_FALSE}"; then
21728  as_fn_error "conditional \"XSDLSERVER\" was never defined.
21729Usually this means the macro was only invoked conditionally." "$LINENO" 5
21730fi
21731if test -z "${XEPHYR_TRUE}" && test -z "${XEPHYR_FALSE}"; then
21732  as_fn_error "conditional \"XEPHYR\" was never defined.
21733Usually this means the macro was only invoked conditionally." "$LINENO" 5
21734fi
21735if test -z "${BUILD_KDRIVEFBDEVLIB_TRUE}" && test -z "${BUILD_KDRIVEFBDEVLIB_FALSE}"; then
21736  as_fn_error "conditional \"BUILD_KDRIVEFBDEVLIB\" was never defined.
21737Usually this means the macro was only invoked conditionally." "$LINENO" 5
21738fi
21739if test -z "${XFAKESERVER_TRUE}" && test -z "${XFAKESERVER_FALSE}"; then
21740  as_fn_error "conditional \"XFAKESERVER\" was never defined.
21741Usually this means the macro was only invoked conditionally." "$LINENO" 5
21742fi
21743
21744: ${CONFIG_STATUS=./config.status}
21745ac_write_fail=0
21746ac_clean_files_save=$ac_clean_files
21747ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21748{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21749$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21750as_write_fail=0
21751cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21752#! $SHELL
21753# Generated by $as_me.
21754# Run this file to recreate the current configuration.
21755# Compiler output produced by configure, useful for debugging
21756# configure, is in config.log if it exists.
21757
21758debug=false
21759ac_cs_recheck=false
21760ac_cs_silent=false
21761
21762SHELL=\${CONFIG_SHELL-$SHELL}
21763export SHELL
21764_ASEOF
21765cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21766## -------------------- ##
21767## M4sh Initialization. ##
21768## -------------------- ##
21769
21770# Be more Bourne compatible
21771DUALCASE=1; export DUALCASE # for MKS sh
21772if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21773  emulate sh
21774  NULLCMD=:
21775  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21776  # is contrary to our usage.  Disable this feature.
21777  alias -g '${1+"$@"}'='"$@"'
21778  setopt NO_GLOB_SUBST
21779else
21780  case `(set -o) 2>/dev/null` in #(
21781  *posix*) :
21782    set -o posix ;; #(
21783  *) :
21784     ;;
21785esac
21786fi
21787
21788
21789as_nl='
21790'
21791export as_nl
21792# Printing a long string crashes Solaris 7 /usr/bin/printf.
21793as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21794as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21795as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21796# Prefer a ksh shell builtin over an external printf program on Solaris,
21797# but without wasting forks for bash or zsh.
21798if test -z "$BASH_VERSION$ZSH_VERSION" \
21799    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21800  as_echo='print -r --'
21801  as_echo_n='print -rn --'
21802elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21803  as_echo='printf %s\n'
21804  as_echo_n='printf %s'
21805else
21806  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21807    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21808    as_echo_n='/usr/ucb/echo -n'
21809  else
21810    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21811    as_echo_n_body='eval
21812      arg=$1;
21813      case $arg in #(
21814      *"$as_nl"*)
21815	expr "X$arg" : "X\\(.*\\)$as_nl";
21816	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21817      esac;
21818      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21819    '
21820    export as_echo_n_body
21821    as_echo_n='sh -c $as_echo_n_body as_echo'
21822  fi
21823  export as_echo_body
21824  as_echo='sh -c $as_echo_body as_echo'
21825fi
21826
21827# The user is always right.
21828if test "${PATH_SEPARATOR+set}" != set; then
21829  PATH_SEPARATOR=:
21830  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21831    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21832      PATH_SEPARATOR=';'
21833  }
21834fi
21835
21836
21837# IFS
21838# We need space, tab and new line, in precisely that order.  Quoting is
21839# there to prevent editors from complaining about space-tab.
21840# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21841# splitting by setting IFS to empty value.)
21842IFS=" ""	$as_nl"
21843
21844# Find who we are.  Look in the path if we contain no directory separator.
21845case $0 in #((
21846  *[\\/]* ) as_myself=$0 ;;
21847  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21848for as_dir in $PATH
21849do
21850  IFS=$as_save_IFS
21851  test -z "$as_dir" && as_dir=.
21852    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21853  done
21854IFS=$as_save_IFS
21855
21856     ;;
21857esac
21858# We did not find ourselves, most probably we were run as `sh COMMAND'
21859# in which case we are not to be found in the path.
21860if test "x$as_myself" = x; then
21861  as_myself=$0
21862fi
21863if test ! -f "$as_myself"; then
21864  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21865  exit 1
21866fi
21867
21868# Unset variables that we do not need and which cause bugs (e.g. in
21869# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
21870# suppresses any "Segmentation fault" message there.  '((' could
21871# trigger a bug in pdksh 5.2.14.
21872for as_var in BASH_ENV ENV MAIL MAILPATH
21873do eval test x\${$as_var+set} = xset \
21874  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21875done
21876PS1='$ '
21877PS2='> '
21878PS4='+ '
21879
21880# NLS nuisances.
21881LC_ALL=C
21882export LC_ALL
21883LANGUAGE=C
21884export LANGUAGE
21885
21886# CDPATH.
21887(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21888
21889
21890# as_fn_error ERROR [LINENO LOG_FD]
21891# ---------------------------------
21892# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21893# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21894# script with status $?, using 1 if that was 0.
21895as_fn_error ()
21896{
21897  as_status=$?; test $as_status -eq 0 && as_status=1
21898  if test "$3"; then
21899    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21900    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
21901  fi
21902  $as_echo "$as_me: error: $1" >&2
21903  as_fn_exit $as_status
21904} # as_fn_error
21905
21906
21907# as_fn_set_status STATUS
21908# -----------------------
21909# Set $? to STATUS, without forking.
21910as_fn_set_status ()
21911{
21912  return $1
21913} # as_fn_set_status
21914
21915# as_fn_exit STATUS
21916# -----------------
21917# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21918as_fn_exit ()
21919{
21920  set +e
21921  as_fn_set_status $1
21922  exit $1
21923} # as_fn_exit
21924
21925# as_fn_unset VAR
21926# ---------------
21927# Portably unset VAR.
21928as_fn_unset ()
21929{
21930  { eval $1=; unset $1;}
21931}
21932as_unset=as_fn_unset
21933# as_fn_append VAR VALUE
21934# ----------------------
21935# Append the text in VALUE to the end of the definition contained in VAR. Take
21936# advantage of any shell optimizations that allow amortized linear growth over
21937# repeated appends, instead of the typical quadratic growth present in naive
21938# implementations.
21939if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21940  eval 'as_fn_append ()
21941  {
21942    eval $1+=\$2
21943  }'
21944else
21945  as_fn_append ()
21946  {
21947    eval $1=\$$1\$2
21948  }
21949fi # as_fn_append
21950
21951# as_fn_arith ARG...
21952# ------------------
21953# Perform arithmetic evaluation on the ARGs, and store the result in the
21954# global $as_val. Take advantage of shells that can avoid forks. The arguments
21955# must be portable across $(()) and expr.
21956if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21957  eval 'as_fn_arith ()
21958  {
21959    as_val=$(( $* ))
21960  }'
21961else
21962  as_fn_arith ()
21963  {
21964    as_val=`expr "$@" || test $? -eq 1`
21965  }
21966fi # as_fn_arith
21967
21968
21969if expr a : '\(a\)' >/dev/null 2>&1 &&
21970   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21971  as_expr=expr
21972else
21973  as_expr=false
21974fi
21975
21976if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21977  as_basename=basename
21978else
21979  as_basename=false
21980fi
21981
21982if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21983  as_dirname=dirname
21984else
21985  as_dirname=false
21986fi
21987
21988as_me=`$as_basename -- "$0" ||
21989$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21990	 X"$0" : 'X\(//\)$' \| \
21991	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21992$as_echo X/"$0" |
21993    sed '/^.*\/\([^/][^/]*\)\/*$/{
21994	    s//\1/
21995	    q
21996	  }
21997	  /^X\/\(\/\/\)$/{
21998	    s//\1/
21999	    q
22000	  }
22001	  /^X\/\(\/\).*/{
22002	    s//\1/
22003	    q
22004	  }
22005	  s/.*/./; q'`
22006
22007# Avoid depending upon Character Ranges.
22008as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22009as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22010as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22011as_cr_digits='0123456789'
22012as_cr_alnum=$as_cr_Letters$as_cr_digits
22013
22014ECHO_C= ECHO_N= ECHO_T=
22015case `echo -n x` in #(((((
22016-n*)
22017  case `echo 'xy\c'` in
22018  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
22019  xy)  ECHO_C='\c';;
22020  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
22021       ECHO_T='	';;
22022  esac;;
22023*)
22024  ECHO_N='-n';;
22025esac
22026
22027rm -f conf$$ conf$$.exe conf$$.file
22028if test -d conf$$.dir; then
22029  rm -f conf$$.dir/conf$$.file
22030else
22031  rm -f conf$$.dir
22032  mkdir conf$$.dir 2>/dev/null
22033fi
22034if (echo >conf$$.file) 2>/dev/null; then
22035  if ln -s conf$$.file conf$$ 2>/dev/null; then
22036    as_ln_s='ln -s'
22037    # ... but there are two gotchas:
22038    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22039    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22040    # In both cases, we have to default to `cp -p'.
22041    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22042      as_ln_s='cp -p'
22043  elif ln conf$$.file conf$$ 2>/dev/null; then
22044    as_ln_s=ln
22045  else
22046    as_ln_s='cp -p'
22047  fi
22048else
22049  as_ln_s='cp -p'
22050fi
22051rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22052rmdir conf$$.dir 2>/dev/null
22053
22054
22055# as_fn_mkdir_p
22056# -------------
22057# Create "$as_dir" as a directory, including parents if necessary.
22058as_fn_mkdir_p ()
22059{
22060
22061  case $as_dir in #(
22062  -*) as_dir=./$as_dir;;
22063  esac
22064  test -d "$as_dir" || eval $as_mkdir_p || {
22065    as_dirs=
22066    while :; do
22067      case $as_dir in #(
22068      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22069      *) as_qdir=$as_dir;;
22070      esac
22071      as_dirs="'$as_qdir' $as_dirs"
22072      as_dir=`$as_dirname -- "$as_dir" ||
22073$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22074	 X"$as_dir" : 'X\(//\)[^/]' \| \
22075	 X"$as_dir" : 'X\(//\)$' \| \
22076	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22077$as_echo X"$as_dir" |
22078    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22079	    s//\1/
22080	    q
22081	  }
22082	  /^X\(\/\/\)[^/].*/{
22083	    s//\1/
22084	    q
22085	  }
22086	  /^X\(\/\/\)$/{
22087	    s//\1/
22088	    q
22089	  }
22090	  /^X\(\/\).*/{
22091	    s//\1/
22092	    q
22093	  }
22094	  s/.*/./; q'`
22095      test -d "$as_dir" && break
22096    done
22097    test -z "$as_dirs" || eval "mkdir $as_dirs"
22098  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
22099
22100
22101} # as_fn_mkdir_p
22102if mkdir -p . 2>/dev/null; then
22103  as_mkdir_p='mkdir -p "$as_dir"'
22104else
22105  test -d ./-p && rmdir ./-p
22106  as_mkdir_p=false
22107fi
22108
22109if test -x / >/dev/null 2>&1; then
22110  as_test_x='test -x'
22111else
22112  if ls -dL / >/dev/null 2>&1; then
22113    as_ls_L_option=L
22114  else
22115    as_ls_L_option=
22116  fi
22117  as_test_x='
22118    eval sh -c '\''
22119      if test -d "$1"; then
22120	test -d "$1/.";
22121      else
22122	case $1 in #(
22123	-*)set "./$1";;
22124	esac;
22125	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
22126	???[sx]*):;;*)false;;esac;fi
22127    '\'' sh
22128  '
22129fi
22130as_executable_p=$as_test_x
22131
22132# Sed expression to map a string onto a valid CPP name.
22133as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22134
22135# Sed expression to map a string onto a valid variable name.
22136as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22137
22138
22139exec 6>&1
22140## ----------------------------------- ##
22141## Main body of $CONFIG_STATUS script. ##
22142## ----------------------------------- ##
22143_ASEOF
22144test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22145
22146cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22147# Save the log message, to keep $0 and so on meaningful, and to
22148# report actual input values of CONFIG_FILES etc. instead of their
22149# values after options handling.
22150ac_log="
22151This file was extended by xorg-server $as_me 1.6.5, which was
22152generated by GNU Autoconf 2.64.  Invocation command line was
22153
22154  CONFIG_FILES    = $CONFIG_FILES
22155  CONFIG_HEADERS  = $CONFIG_HEADERS
22156  CONFIG_LINKS    = $CONFIG_LINKS
22157  CONFIG_COMMANDS = $CONFIG_COMMANDS
22158  $ $0 $@
22159
22160on `(hostname || uname -n) 2>/dev/null | sed 1q`
22161"
22162
22163_ACEOF
22164
22165case $ac_config_files in *"
22166"*) set x $ac_config_files; shift; ac_config_files=$*;;
22167esac
22168
22169case $ac_config_headers in *"
22170"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22171esac
22172
22173
22174cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22175# Files that config.status was made for.
22176config_files="$ac_config_files"
22177config_headers="$ac_config_headers"
22178config_commands="$ac_config_commands"
22179
22180_ACEOF
22181
22182cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22183ac_cs_usage="\
22184\`$as_me' instantiates files and other configuration actions
22185from templates according to the current configuration.  Unless the files
22186and actions are specified as TAGs, all are instantiated by default.
22187
22188Usage: $0 [OPTION]... [TAG]...
22189
22190  -h, --help       print this help, then exit
22191  -V, --version    print version number and configuration settings, then exit
22192  -q, --quiet, --silent
22193                   do not print progress messages
22194  -d, --debug      don't remove temporary files
22195      --recheck    update $as_me by reconfiguring in the same conditions
22196      --file=FILE[:TEMPLATE]
22197                   instantiate the configuration file FILE
22198      --header=FILE[:TEMPLATE]
22199                   instantiate the configuration header FILE
22200
22201Configuration files:
22202$config_files
22203
22204Configuration headers:
22205$config_headers
22206
22207Configuration commands:
22208$config_commands
22209
22210Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
22211
22212_ACEOF
22213cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22214ac_cs_version="\\
22215xorg-server config.status 1.6.5
22216configured by $0, generated by GNU Autoconf 2.64,
22217  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22218
22219Copyright (C) 2009 Free Software Foundation, Inc.
22220This config.status script is free software; the Free Software Foundation
22221gives unlimited permission to copy, distribute and modify it."
22222
22223ac_pwd='$ac_pwd'
22224srcdir='$srcdir'
22225INSTALL='$INSTALL'
22226MKDIR_P='$MKDIR_P'
22227AWK='$AWK'
22228test -n "\$AWK" || AWK=awk
22229_ACEOF
22230
22231cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22232# The default lists apply if the user does not specify any file.
22233ac_need_defaults=:
22234while test $# != 0
22235do
22236  case $1 in
22237  --*=*)
22238    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22239    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22240    ac_shift=:
22241    ;;
22242  *)
22243    ac_option=$1
22244    ac_optarg=$2
22245    ac_shift=shift
22246    ;;
22247  esac
22248
22249  case $ac_option in
22250  # Handling of the options.
22251  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22252    ac_cs_recheck=: ;;
22253  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22254    $as_echo "$ac_cs_version"; exit ;;
22255  --debug | --debu | --deb | --de | --d | -d )
22256    debug=: ;;
22257  --file | --fil | --fi | --f )
22258    $ac_shift
22259    case $ac_optarg in
22260    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22261    esac
22262    as_fn_append CONFIG_FILES " '$ac_optarg'"
22263    ac_need_defaults=false;;
22264  --header | --heade | --head | --hea )
22265    $ac_shift
22266    case $ac_optarg in
22267    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22268    esac
22269    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22270    ac_need_defaults=false;;
22271  --he | --h)
22272    # Conflict between --help and --header
22273    as_fn_error "ambiguous option: \`$1'
22274Try \`$0 --help' for more information.";;
22275  --help | --hel | -h )
22276    $as_echo "$ac_cs_usage"; exit ;;
22277  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22278  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22279    ac_cs_silent=: ;;
22280
22281  # This is an error.
22282  -*) as_fn_error "unrecognized option: \`$1'
22283Try \`$0 --help' for more information." ;;
22284
22285  *) as_fn_append ac_config_targets " $1"
22286     ac_need_defaults=false ;;
22287
22288  esac
22289  shift
22290done
22291
22292ac_configure_extra_args=
22293
22294if $ac_cs_silent; then
22295  exec 6>/dev/null
22296  ac_configure_extra_args="$ac_configure_extra_args --silent"
22297fi
22298
22299_ACEOF
22300cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22301if \$ac_cs_recheck; then
22302  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22303  shift
22304  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22305  CONFIG_SHELL='$SHELL'
22306  export CONFIG_SHELL
22307  exec "\$@"
22308fi
22309
22310_ACEOF
22311cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22312exec 5>>config.log
22313{
22314  echo
22315  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22316## Running $as_me. ##
22317_ASBOX
22318  $as_echo "$ac_log"
22319} >&5
22320
22321_ACEOF
22322cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22323#
22324# INIT-COMMANDS
22325#
22326AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22327
22328
22329# The HP-UX ksh and POSIX shell print the target directory to stdout
22330# if CDPATH is set.
22331(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22332
22333sed_quote_subst='$sed_quote_subst'
22334double_quote_subst='$double_quote_subst'
22335delay_variable_subst='$delay_variable_subst'
22336AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
22337DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
22338OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
22339enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
22340macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
22341macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
22342enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
22343pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
22344enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
22345host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
22346host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
22347host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
22348build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
22349build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
22350build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
22351SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
22352Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
22353GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
22354EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
22355FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
22356LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
22357NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
22358LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
22359max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
22360ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
22361exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
22362lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
22363lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
22364lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
22365reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
22366reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22367deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
22368file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
22369AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
22370AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
22371STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
22372RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
22373old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22374old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22375old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22376CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
22377CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
22378compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
22379GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
22380lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
22381lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
22382lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
22383lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
22384objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
22385SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
22386ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
22387MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
22388lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
22389lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
22390lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
22391lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
22392lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
22393need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
22394DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
22395NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
22396LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
22397OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
22398OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
22399libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
22400shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22401extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22402archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
22403enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
22404export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22405whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22406compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
22407old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22408old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22409archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22410archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22411module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22412module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22413with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
22414allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
22415no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
22416hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22417hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
22418hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
22419hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
22420hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
22421hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
22422hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22423hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
22424inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
22425link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
22426fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
22427always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
22428export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22429exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
22430include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
22431prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22432file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
22433variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
22434need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
22435need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
22436version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
22437runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22438shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22439shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
22440libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
22441library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
22442soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
22443postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22444postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22445finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22446finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
22447hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
22448sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
22449sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
22450hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
22451enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
22452enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
22453enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
22454old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
22455striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
22456
22457LTCC='$LTCC'
22458LTCFLAGS='$LTCFLAGS'
22459compiler='$compiler_DEFAULT'
22460
22461# Quote evaled strings.
22462for var in SED \
22463GREP \
22464EGREP \
22465FGREP \
22466LD \
22467NM \
22468LN_S \
22469lt_SP2NL \
22470lt_NL2SP \
22471reload_flag \
22472deplibs_check_method \
22473file_magic_cmd \
22474AR \
22475AR_FLAGS \
22476STRIP \
22477RANLIB \
22478CC \
22479CFLAGS \
22480compiler \
22481lt_cv_sys_global_symbol_pipe \
22482lt_cv_sys_global_symbol_to_cdecl \
22483lt_cv_sys_global_symbol_to_c_name_address \
22484lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22485SHELL \
22486ECHO \
22487lt_prog_compiler_no_builtin_flag \
22488lt_prog_compiler_wl \
22489lt_prog_compiler_pic \
22490lt_prog_compiler_static \
22491lt_cv_prog_compiler_c_o \
22492need_locks \
22493DSYMUTIL \
22494NMEDIT \
22495LIPO \
22496OTOOL \
22497OTOOL64 \
22498shrext_cmds \
22499export_dynamic_flag_spec \
22500whole_archive_flag_spec \
22501compiler_needs_object \
22502with_gnu_ld \
22503allow_undefined_flag \
22504no_undefined_flag \
22505hardcode_libdir_flag_spec \
22506hardcode_libdir_flag_spec_ld \
22507hardcode_libdir_separator \
22508fix_srcfile_path \
22509exclude_expsyms \
22510include_expsyms \
22511file_list_spec \
22512variables_saved_for_relink \
22513libname_spec \
22514library_names_spec \
22515soname_spec \
22516finish_eval \
22517old_striplib \
22518striplib; do
22519    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
22520    *[\\\\\\\`\\"\\\$]*)
22521      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
22522      ;;
22523    *)
22524      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22525      ;;
22526    esac
22527done
22528
22529# Double-quote double-evaled strings.
22530for var in reload_cmds \
22531old_postinstall_cmds \
22532old_postuninstall_cmds \
22533old_archive_cmds \
22534extract_expsyms_cmds \
22535old_archive_from_new_cmds \
22536old_archive_from_expsyms_cmds \
22537archive_cmds \
22538archive_expsym_cmds \
22539module_cmds \
22540module_expsym_cmds \
22541export_symbols_cmds \
22542prelink_cmds \
22543postinstall_cmds \
22544postuninstall_cmds \
22545finish_cmds \
22546sys_lib_search_path_spec \
22547sys_lib_dlsearch_path_spec; do
22548    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
22549    *[\\\\\\\`\\"\\\$]*)
22550      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
22551      ;;
22552    *)
22553      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22554      ;;
22555    esac
22556done
22557
22558# Fix-up fallback echo if it was mangled by the above quoting rules.
22559case \$lt_ECHO in
22560*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
22561  ;;
22562esac
22563
22564ac_aux_dir='$ac_aux_dir'
22565xsi_shell='$xsi_shell'
22566lt_shell_append='$lt_shell_append'
22567
22568# See if we are running on zsh, and set the options which allow our
22569# commands through without removal of \ escapes INIT.
22570if test -n "\${ZSH_VERSION+set}" ; then
22571   setopt NO_GLOB_SUBST
22572fi
22573
22574
22575    PACKAGE='$PACKAGE'
22576    VERSION='$VERSION'
22577    TIMESTAMP='$TIMESTAMP'
22578    RM='$RM'
22579    ofile='$ofile'
22580
22581
22582
22583
22584_ACEOF
22585
22586cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22587
22588# Handling of arguments.
22589for ac_config_target in $ac_config_targets
22590do
22591  case $ac_config_target in
22592    "include/do-not-use-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/do-not-use-config.h" ;;
22593    "include/xorg-server.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xorg-server.h" ;;
22594    "include/dix-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/dix-config.h" ;;
22595    "include/xorg-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xorg-config.h" ;;
22596    "include/xkb-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xkb-config.h" ;;
22597    "include/xwin-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xwin-config.h" ;;
22598    "include/kdrive-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/kdrive-config.h" ;;
22599    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22600    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22601    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22602    "glx/Makefile") CONFIG_FILES="$CONFIG_FILES glx/Makefile" ;;
22603    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
22604    "composite/Makefile") CONFIG_FILES="$CONFIG_FILES composite/Makefile" ;;
22605    "damageext/Makefile") CONFIG_FILES="$CONFIG_FILES damageext/Makefile" ;;
22606    "dbe/Makefile") CONFIG_FILES="$CONFIG_FILES dbe/Makefile" ;;
22607    "dix/Makefile") CONFIG_FILES="$CONFIG_FILES dix/Makefile" ;;
22608    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22609    "fb/Makefile") CONFIG_FILES="$CONFIG_FILES fb/Makefile" ;;
22610    "record/Makefile") CONFIG_FILES="$CONFIG_FILES record/Makefile" ;;
22611    "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
22612    "mi/Makefile") CONFIG_FILES="$CONFIG_FILES mi/Makefile" ;;
22613    "miext/Makefile") CONFIG_FILES="$CONFIG_FILES miext/Makefile" ;;
22614    "miext/damage/Makefile") CONFIG_FILES="$CONFIG_FILES miext/damage/Makefile" ;;
22615    "miext/shadow/Makefile") CONFIG_FILES="$CONFIG_FILES miext/shadow/Makefile" ;;
22616    "miext/cw/Makefile") CONFIG_FILES="$CONFIG_FILES miext/cw/Makefile" ;;
22617    "miext/rootless/Makefile") CONFIG_FILES="$CONFIG_FILES miext/rootless/Makefile" ;;
22618    "os/Makefile") CONFIG_FILES="$CONFIG_FILES os/Makefile" ;;
22619    "randr/Makefile") CONFIG_FILES="$CONFIG_FILES randr/Makefile" ;;
22620    "render/Makefile") CONFIG_FILES="$CONFIG_FILES render/Makefile" ;;
22621    "xkb/Makefile") CONFIG_FILES="$CONFIG_FILES xkb/Makefile" ;;
22622    "Xext/Makefile") CONFIG_FILES="$CONFIG_FILES Xext/Makefile" ;;
22623    "Xi/Makefile") CONFIG_FILES="$CONFIG_FILES Xi/Makefile" ;;
22624    "xfixes/Makefile") CONFIG_FILES="$CONFIG_FILES xfixes/Makefile" ;;
22625    "exa/Makefile") CONFIG_FILES="$CONFIG_FILES exa/Makefile" ;;
22626    "hw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/Makefile" ;;
22627    "hw/xfree86/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/Makefile" ;;
22628    "hw/xfree86/common/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/common/Makefile" ;;
22629    "hw/xfree86/common/xf86Build.h") CONFIG_FILES="$CONFIG_FILES hw/xfree86/common/xf86Build.h" ;;
22630    "hw/xfree86/ddc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/ddc/Makefile" ;;
22631    "hw/xfree86/dixmods/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dixmods/Makefile" ;;
22632    "hw/xfree86/dixmods/extmod/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dixmods/extmod/Makefile" ;;
22633    "hw/xfree86/doc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/doc/Makefile" ;;
22634    "hw/xfree86/doc/devel/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/doc/devel/Makefile" ;;
22635    "hw/xfree86/doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/doc/man/Makefile" ;;
22636    "hw/xfree86/doc/sgml/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/doc/sgml/Makefile" ;;
22637    "hw/xfree86/dri/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dri/Makefile" ;;
22638    "hw/xfree86/dri2/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dri2/Makefile" ;;
22639    "hw/xfree86/dummylib/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dummylib/Makefile" ;;
22640    "hw/xfree86/exa/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/exa/Makefile" ;;
22641    "hw/xfree86/fbdevhw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/fbdevhw/Makefile" ;;
22642    "hw/xfree86/i2c/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/i2c/Makefile" ;;
22643    "hw/xfree86/int10/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/int10/Makefile" ;;
22644    "hw/xfree86/loader/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/loader/Makefile" ;;
22645    "hw/xfree86/modes/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/modes/Makefile" ;;
22646    "hw/xfree86/os-support/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/Makefile" ;;
22647    "hw/xfree86/os-support/bsd/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/bsd/Makefile" ;;
22648    "hw/xfree86/os-support/bus/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/bus/Makefile" ;;
22649    "hw/xfree86/os-support/hurd/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/hurd/Makefile" ;;
22650    "hw/xfree86/os-support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/misc/Makefile" ;;
22651    "hw/xfree86/os-support/linux/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/linux/Makefile" ;;
22652    "hw/xfree86/os-support/sco/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/sco/Makefile" ;;
22653    "hw/xfree86/os-support/solaris/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/solaris/Makefile" ;;
22654    "hw/xfree86/os-support/sysv/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/sysv/Makefile" ;;
22655    "hw/xfree86/parser/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/parser/Makefile" ;;
22656    "hw/xfree86/ramdac/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/ramdac/Makefile" ;;
22657    "hw/xfree86/shadowfb/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/shadowfb/Makefile" ;;
22658    "hw/xfree86/vbe/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/vbe/Makefile" ;;
22659    "hw/xfree86/vgahw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/vgahw/Makefile" ;;
22660    "hw/xfree86/x86emu/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/x86emu/Makefile" ;;
22661    "hw/xfree86/xaa/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/xaa/Makefile" ;;
22662    "hw/xfree86/xf8_16bpp/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/xf8_16bpp/Makefile" ;;
22663    "hw/xfree86/utils/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/Makefile" ;;
22664    "hw/xfree86/utils/cvt/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/cvt/Makefile" ;;
22665    "hw/xfree86/utils/gtf/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/gtf/Makefile" ;;
22666    "hw/dmx/config/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/config/Makefile" ;;
22667    "hw/dmx/doc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/doc/Makefile" ;;
22668    "hw/dmx/examples/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/examples/Makefile" ;;
22669    "hw/dmx/input/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/input/Makefile" ;;
22670    "hw/dmx/glxProxy/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/glxProxy/Makefile" ;;
22671    "hw/dmx/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/Makefile" ;;
22672    "hw/vfb/Makefile") CONFIG_FILES="$CONFIG_FILES hw/vfb/Makefile" ;;
22673    "hw/xnest/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xnest/Makefile" ;;
22674    "hw/xwin/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/Makefile" ;;
22675    "hw/xquartz/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/Makefile" ;;
22676    "hw/xquartz/GL/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/GL/Makefile" ;;
22677    "hw/xquartz/bundle/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/bundle/Makefile" ;;
22678    "hw/xquartz/doc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/doc/Makefile" ;;
22679    "hw/xquartz/mach-startup/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/mach-startup/Makefile" ;;
22680    "hw/xquartz/pbproxy/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/pbproxy/Makefile" ;;
22681    "hw/xquartz/xpr/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/xpr/Makefile" ;;
22682    "hw/kdrive/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/Makefile" ;;
22683    "hw/kdrive/ephyr/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/ephyr/Makefile" ;;
22684    "hw/kdrive/fake/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/fake/Makefile" ;;
22685    "hw/kdrive/fbdev/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/fbdev/Makefile" ;;
22686    "hw/kdrive/linux/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/linux/Makefile" ;;
22687    "hw/kdrive/sdl/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/sdl/Makefile" ;;
22688    "hw/kdrive/src/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/src/Makefile" ;;
22689    "xorg-server.pc") CONFIG_FILES="$CONFIG_FILES xorg-server.pc" ;;
22690
22691  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22692  esac
22693done
22694
22695
22696# If the user did not use the arguments to specify the items to instantiate,
22697# then the envvar interface is used.  Set only those that are not.
22698# We use the long form for the default assignment because of an extremely
22699# bizarre bug on SunOS 4.1.3.
22700if $ac_need_defaults; then
22701  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22702  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22703  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22704fi
22705
22706# Have a temporary directory for convenience.  Make it in the build tree
22707# simply because there is no reason against having it here, and in addition,
22708# creating and moving files from /tmp can sometimes cause problems.
22709# Hook for its removal unless debugging.
22710# Note that there is a small window in which the directory will not be cleaned:
22711# after its creation but before its name has been assigned to `$tmp'.
22712$debug ||
22713{
22714  tmp=
22715  trap 'exit_status=$?
22716  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22717' 0
22718  trap 'as_fn_exit 1' 1 2 13 15
22719}
22720# Create a (secure) tmp directory for tmp files.
22721
22722{
22723  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22724  test -n "$tmp" && test -d "$tmp"
22725}  ||
22726{
22727  tmp=./conf$$-$RANDOM
22728  (umask 077 && mkdir "$tmp")
22729} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
22730
22731# Set up the scripts for CONFIG_FILES section.
22732# No need to generate them if there are no CONFIG_FILES.
22733# This happens for instance with `./config.status config.h'.
22734if test -n "$CONFIG_FILES"; then
22735
22736
22737ac_cr=`echo X | tr X '\015'`
22738# On cygwin, bash can eat \r inside `` if the user requested igncr.
22739# But we know of no other shell where ac_cr would be empty at this
22740# point, so we can use a bashism as a fallback.
22741if test "x$ac_cr" = x; then
22742  eval ac_cr=\$\'\\r\'
22743fi
22744ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22745if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22746  ac_cs_awk_cr='\r'
22747else
22748  ac_cs_awk_cr=$ac_cr
22749fi
22750
22751echo 'BEGIN {' >"$tmp/subs1.awk" &&
22752_ACEOF
22753
22754
22755{
22756  echo "cat >conf$$subs.awk <<_ACEOF" &&
22757  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22758  echo "_ACEOF"
22759} >conf$$subs.sh ||
22760  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
22761ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
22762ac_delim='%!_!# '
22763for ac_last_try in false false false false false :; do
22764  . ./conf$$subs.sh ||
22765    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
22766
22767  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22768  if test $ac_delim_n = $ac_delim_num; then
22769    break
22770  elif $ac_last_try; then
22771    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
22772  else
22773    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22774  fi
22775done
22776rm -f conf$$subs.sh
22777
22778cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22779cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
22780_ACEOF
22781sed -n '
22782h
22783s/^/S["/; s/!.*/"]=/
22784p
22785g
22786s/^[^!]*!//
22787:repl
22788t repl
22789s/'"$ac_delim"'$//
22790t delim
22791:nl
22792h
22793s/\(.\{148\}\).*/\1/
22794t more1
22795s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22796p
22797n
22798b repl
22799:more1
22800s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22801p
22802g
22803s/.\{148\}//
22804t nl
22805:delim
22806h
22807s/\(.\{148\}\).*/\1/
22808t more2
22809s/["\\]/\\&/g; s/^/"/; s/$/"/
22810p
22811b
22812:more2
22813s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22814p
22815g
22816s/.\{148\}//
22817t delim
22818' <conf$$subs.awk | sed '
22819/^[^""]/{
22820  N
22821  s/\n//
22822}
22823' >>$CONFIG_STATUS || ac_write_fail=1
22824rm -f conf$$subs.awk
22825cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22826_ACAWK
22827cat >>"\$tmp/subs1.awk" <<_ACAWK &&
22828  for (key in S) S_is_set[key] = 1
22829  FS = ""
22830
22831}
22832{
22833  line = $ 0
22834  nfields = split(line, field, "@")
22835  substed = 0
22836  len = length(field[1])
22837  for (i = 2; i < nfields; i++) {
22838    key = field[i]
22839    keylen = length(key)
22840    if (S_is_set[key]) {
22841      value = S[key]
22842      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22843      len += length(value) + length(field[++i])
22844      substed = 1
22845    } else
22846      len += 1 + keylen
22847  }
22848
22849  print line
22850}
22851
22852_ACAWK
22853_ACEOF
22854cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22855if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22856  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22857else
22858  cat
22859fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
22860  || as_fn_error "could not setup config files machinery" "$LINENO" 5
22861_ACEOF
22862
22863# VPATH may cause trouble with some makes, so we remove $(srcdir),
22864# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22865# trailing colons and then remove the whole line if VPATH becomes empty
22866# (actually we leave an empty line to preserve line numbers).
22867if test "x$srcdir" = x.; then
22868  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
22869s/:*\$(srcdir):*/:/
22870s/:*\${srcdir}:*/:/
22871s/:*@srcdir@:*/:/
22872s/^\([^=]*=[	 ]*\):*/\1/
22873s/:*$//
22874s/^[^=]*=[	 ]*$//
22875}'
22876fi
22877
22878cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22879fi # test -n "$CONFIG_FILES"
22880
22881# Set up the scripts for CONFIG_HEADERS section.
22882# No need to generate them if there are no CONFIG_HEADERS.
22883# This happens for instance with `./config.status Makefile'.
22884if test -n "$CONFIG_HEADERS"; then
22885cat >"$tmp/defines.awk" <<\_ACAWK ||
22886BEGIN {
22887_ACEOF
22888
22889# Transform confdefs.h into an awk script `defines.awk', embedded as
22890# here-document in config.status, that substitutes the proper values into
22891# config.h.in to produce config.h.
22892
22893# Create a delimiter string that does not exist in confdefs.h, to ease
22894# handling of long lines.
22895ac_delim='%!_!# '
22896for ac_last_try in false false :; do
22897  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
22898  if test -z "$ac_t"; then
22899    break
22900  elif $ac_last_try; then
22901    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
22902  else
22903    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22904  fi
22905done
22906
22907# For the awk script, D is an array of macro values keyed by name,
22908# likewise P contains macro parameters if any.  Preserve backslash
22909# newline sequences.
22910
22911ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22912sed -n '
22913s/.\{148\}/&'"$ac_delim"'/g
22914t rset
22915:rset
22916s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
22917t def
22918d
22919:def
22920s/\\$//
22921t bsnl
22922s/["\\]/\\&/g
22923s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22924D["\1"]=" \3"/p
22925s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
22926d
22927:bsnl
22928s/["\\]/\\&/g
22929s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22930D["\1"]=" \3\\\\\\n"\\/p
22931t cont
22932s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22933t cont
22934d
22935:cont
22936n
22937s/.\{148\}/&'"$ac_delim"'/g
22938t clear
22939:clear
22940s/\\$//
22941t bsnlc
22942s/["\\]/\\&/g; s/^/"/; s/$/"/p
22943d
22944:bsnlc
22945s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22946b cont
22947' <confdefs.h | sed '
22948s/'"$ac_delim"'/"\\\
22949"/g' >>$CONFIG_STATUS || ac_write_fail=1
22950
22951cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22952  for (key in D) D_is_set[key] = 1
22953  FS = ""
22954}
22955/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22956  line = \$ 0
22957  split(line, arg, " ")
22958  if (arg[1] == "#") {
22959    defundef = arg[2]
22960    mac1 = arg[3]
22961  } else {
22962    defundef = substr(arg[1], 2)
22963    mac1 = arg[2]
22964  }
22965  split(mac1, mac2, "(") #)
22966  macro = mac2[1]
22967  prefix = substr(line, 1, index(line, defundef) - 1)
22968  if (D_is_set[macro]) {
22969    # Preserve the white space surrounding the "#".
22970    print prefix "define", macro P[macro] D[macro]
22971    next
22972  } else {
22973    # Replace #undef with comments.  This is necessary, for example,
22974    # in the case of _POSIX_SOURCE, which is predefined and required
22975    # on some systems where configure will not decide to define it.
22976    if (defundef == "undef") {
22977      print "/*", prefix defundef, macro, "*/"
22978      next
22979    }
22980  }
22981}
22982{ print }
22983_ACAWK
22984_ACEOF
22985cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22986  as_fn_error "could not setup config headers machinery" "$LINENO" 5
22987fi # test -n "$CONFIG_HEADERS"
22988
22989
22990eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22991shift
22992for ac_tag
22993do
22994  case $ac_tag in
22995  :[FHLC]) ac_mode=$ac_tag; continue;;
22996  esac
22997  case $ac_mode$ac_tag in
22998  :[FHL]*:*);;
22999  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
23000  :[FH]-) ac_tag=-:-;;
23001  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23002  esac
23003  ac_save_IFS=$IFS
23004  IFS=:
23005  set x $ac_tag
23006  IFS=$ac_save_IFS
23007  shift
23008  ac_file=$1
23009  shift
23010
23011  case $ac_mode in
23012  :L) ac_source=$1;;
23013  :[FH])
23014    ac_file_inputs=
23015    for ac_f
23016    do
23017      case $ac_f in
23018      -) ac_f="$tmp/stdin";;
23019      *) # Look for the file first in the build tree, then in the source tree
23020	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
23021	 # because $ac_f cannot contain `:'.
23022	 test -f "$ac_f" ||
23023	   case $ac_f in
23024	   [\\/$]*) false;;
23025	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23026	   esac ||
23027	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23028      esac
23029      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23030      as_fn_append ac_file_inputs " '$ac_f'"
23031    done
23032
23033    # Let's still pretend it is `configure' which instantiates (i.e., don't
23034    # use $as_me), people would be surprised to read:
23035    #    /* config.h.  Generated by config.status.  */
23036    configure_input='Generated from '`
23037	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23038	`' by configure.'
23039    if test x"$ac_file" != x-; then
23040      configure_input="$ac_file.  $configure_input"
23041      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23042$as_echo "$as_me: creating $ac_file" >&6;}
23043    fi
23044    # Neutralize special characters interpreted by sed in replacement strings.
23045    case $configure_input in #(
23046    *\&* | *\|* | *\\* )
23047       ac_sed_conf_input=`$as_echo "$configure_input" |
23048       sed 's/[\\\\&|]/\\\\&/g'`;; #(
23049    *) ac_sed_conf_input=$configure_input;;
23050    esac
23051
23052    case $ac_tag in
23053    *:-:* | *:-) cat >"$tmp/stdin" \
23054      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
23055    esac
23056    ;;
23057  esac
23058
23059  ac_dir=`$as_dirname -- "$ac_file" ||
23060$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23061	 X"$ac_file" : 'X\(//\)[^/]' \| \
23062	 X"$ac_file" : 'X\(//\)$' \| \
23063	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23064$as_echo X"$ac_file" |
23065    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23066	    s//\1/
23067	    q
23068	  }
23069	  /^X\(\/\/\)[^/].*/{
23070	    s//\1/
23071	    q
23072	  }
23073	  /^X\(\/\/\)$/{
23074	    s//\1/
23075	    q
23076	  }
23077	  /^X\(\/\).*/{
23078	    s//\1/
23079	    q
23080	  }
23081	  s/.*/./; q'`
23082  as_dir="$ac_dir"; as_fn_mkdir_p
23083  ac_builddir=.
23084
23085case "$ac_dir" in
23086.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23087*)
23088  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23089  # A ".." for each directory in $ac_dir_suffix.
23090  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23091  case $ac_top_builddir_sub in
23092  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23093  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23094  esac ;;
23095esac
23096ac_abs_top_builddir=$ac_pwd
23097ac_abs_builddir=$ac_pwd$ac_dir_suffix
23098# for backward compatibility:
23099ac_top_builddir=$ac_top_build_prefix
23100
23101case $srcdir in
23102  .)  # We are building in place.
23103    ac_srcdir=.
23104    ac_top_srcdir=$ac_top_builddir_sub
23105    ac_abs_top_srcdir=$ac_pwd ;;
23106  [\\/]* | ?:[\\/]* )  # Absolute name.
23107    ac_srcdir=$srcdir$ac_dir_suffix;
23108    ac_top_srcdir=$srcdir
23109    ac_abs_top_srcdir=$srcdir ;;
23110  *) # Relative name.
23111    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23112    ac_top_srcdir=$ac_top_build_prefix$srcdir
23113    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23114esac
23115ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23116
23117
23118  case $ac_mode in
23119  :F)
23120  #
23121  # CONFIG_FILE
23122  #
23123
23124  case $INSTALL in
23125  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23126  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23127  esac
23128  ac_MKDIR_P=$MKDIR_P
23129  case $MKDIR_P in
23130  [\\/$]* | ?:[\\/]* ) ;;
23131  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23132  esac
23133_ACEOF
23134
23135cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23136# If the template does not know about datarootdir, expand it.
23137# FIXME: This hack should be removed a few years after 2.60.
23138ac_datarootdir_hack=; ac_datarootdir_seen=
23139ac_sed_dataroot='
23140/datarootdir/ {
23141  p
23142  q
23143}
23144/@datadir@/p
23145/@docdir@/p
23146/@infodir@/p
23147/@localedir@/p
23148/@mandir@/p'
23149case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23150*datarootdir*) ac_datarootdir_seen=yes;;
23151*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23152  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23153$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23154_ACEOF
23155cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23156  ac_datarootdir_hack='
23157  s&@datadir@&$datadir&g
23158  s&@docdir@&$docdir&g
23159  s&@infodir@&$infodir&g
23160  s&@localedir@&$localedir&g
23161  s&@mandir@&$mandir&g
23162  s&\\\${datarootdir}&$datarootdir&g' ;;
23163esac
23164_ACEOF
23165
23166# Neutralize VPATH when `$srcdir' = `.'.
23167# Shell code in configure.ac might set extrasub.
23168# FIXME: do we really want to maintain this feature?
23169cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23170ac_sed_extra="$ac_vpsub
23171$extrasub
23172_ACEOF
23173cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23174:t
23175/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23176s|@configure_input@|$ac_sed_conf_input|;t t
23177s&@top_builddir@&$ac_top_builddir_sub&;t t
23178s&@top_build_prefix@&$ac_top_build_prefix&;t t
23179s&@srcdir@&$ac_srcdir&;t t
23180s&@abs_srcdir@&$ac_abs_srcdir&;t t
23181s&@top_srcdir@&$ac_top_srcdir&;t t
23182s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23183s&@builddir@&$ac_builddir&;t t
23184s&@abs_builddir@&$ac_abs_builddir&;t t
23185s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23186s&@INSTALL@&$ac_INSTALL&;t t
23187s&@MKDIR_P@&$ac_MKDIR_P&;t t
23188$ac_datarootdir_hack
23189"
23190eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
23191  || as_fn_error "could not create $ac_file" "$LINENO" 5
23192
23193test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23194  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23195  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23196  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23197which seems to be undefined.  Please make sure it is defined." >&5
23198$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23199which seems to be undefined.  Please make sure it is defined." >&2;}
23200
23201  rm -f "$tmp/stdin"
23202  case $ac_file in
23203  -) cat "$tmp/out" && rm -f "$tmp/out";;
23204  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
23205  esac \
23206  || as_fn_error "could not create $ac_file" "$LINENO" 5
23207 ;;
23208  :H)
23209  #
23210  # CONFIG_HEADER
23211  #
23212  if test x"$ac_file" != x-; then
23213    {
23214      $as_echo "/* $configure_input  */" \
23215      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
23216    } >"$tmp/config.h" \
23217      || as_fn_error "could not create $ac_file" "$LINENO" 5
23218    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
23219      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23220$as_echo "$as_me: $ac_file is unchanged" >&6;}
23221    else
23222      rm -f "$ac_file"
23223      mv "$tmp/config.h" "$ac_file" \
23224	|| as_fn_error "could not create $ac_file" "$LINENO" 5
23225    fi
23226  else
23227    $as_echo "/* $configure_input  */" \
23228      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
23229      || as_fn_error "could not create -" "$LINENO" 5
23230  fi
23231# Compute "$ac_file"'s index in $config_headers.
23232_am_arg="$ac_file"
23233_am_stamp_count=1
23234for _am_header in $config_headers :; do
23235  case $_am_header in
23236    $_am_arg | $_am_arg:* )
23237      break ;;
23238    * )
23239      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23240  esac
23241done
23242echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23243$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23244	 X"$_am_arg" : 'X\(//\)[^/]' \| \
23245	 X"$_am_arg" : 'X\(//\)$' \| \
23246	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23247$as_echo X"$_am_arg" |
23248    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23249	    s//\1/
23250	    q
23251	  }
23252	  /^X\(\/\/\)[^/].*/{
23253	    s//\1/
23254	    q
23255	  }
23256	  /^X\(\/\/\)$/{
23257	    s//\1/
23258	    q
23259	  }
23260	  /^X\(\/\).*/{
23261	    s//\1/
23262	    q
23263	  }
23264	  s/.*/./; q'`/stamp-h$_am_stamp_count
23265 ;;
23266
23267  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23268$as_echo "$as_me: executing $ac_file commands" >&6;}
23269 ;;
23270  esac
23271
23272
23273  case $ac_file$ac_mode in
23274    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23275  # Autoconf 2.62 quotes --file arguments for eval, but not when files
23276  # are listed without --file.  Let's play safe and only enable the eval
23277  # if we detect the quoting.
23278  case $CONFIG_FILES in
23279  *\'*) eval set x "$CONFIG_FILES" ;;
23280  *)   set x $CONFIG_FILES ;;
23281  esac
23282  shift
23283  for mf
23284  do
23285    # Strip MF so we end up with the name of the file.
23286    mf=`echo "$mf" | sed -e 's/:.*$//'`
23287    # Check whether this is an Automake generated Makefile or not.
23288    # We used to match only the files named `Makefile.in', but
23289    # some people rename them; so instead we look at the file content.
23290    # Grep'ing the first line is not enough: some people post-process
23291    # each Makefile.in and add a new line on top of each file to say so.
23292    # Grep'ing the whole file is not good either: AIX grep has a line
23293    # limit of 2048, but all sed's we know have understand at least 4000.
23294    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23295      dirpart=`$as_dirname -- "$mf" ||
23296$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23297	 X"$mf" : 'X\(//\)[^/]' \| \
23298	 X"$mf" : 'X\(//\)$' \| \
23299	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23300$as_echo X"$mf" |
23301    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23302	    s//\1/
23303	    q
23304	  }
23305	  /^X\(\/\/\)[^/].*/{
23306	    s//\1/
23307	    q
23308	  }
23309	  /^X\(\/\/\)$/{
23310	    s//\1/
23311	    q
23312	  }
23313	  /^X\(\/\).*/{
23314	    s//\1/
23315	    q
23316	  }
23317	  s/.*/./; q'`
23318    else
23319      continue
23320    fi
23321    # Extract the definition of DEPDIR, am__include, and am__quote
23322    # from the Makefile without running `make'.
23323    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23324    test -z "$DEPDIR" && continue
23325    am__include=`sed -n 's/^am__include = //p' < "$mf"`
23326    test -z "am__include" && continue
23327    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23328    # When using ansi2knr, U may be empty or an underscore; expand it
23329    U=`sed -n 's/^U = //p' < "$mf"`
23330    # Find all dependency output files, they are included files with
23331    # $(DEPDIR) in their names.  We invoke sed twice because it is the
23332    # simplest approach to changing $(DEPDIR) to its actual value in the
23333    # expansion.
23334    for file in `sed -n "
23335      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23336	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23337      # Make sure the directory exists.
23338      test -f "$dirpart/$file" && continue
23339      fdir=`$as_dirname -- "$file" ||
23340$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23341	 X"$file" : 'X\(//\)[^/]' \| \
23342	 X"$file" : 'X\(//\)$' \| \
23343	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23344$as_echo X"$file" |
23345    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23346	    s//\1/
23347	    q
23348	  }
23349	  /^X\(\/\/\)[^/].*/{
23350	    s//\1/
23351	    q
23352	  }
23353	  /^X\(\/\/\)$/{
23354	    s//\1/
23355	    q
23356	  }
23357	  /^X\(\/\).*/{
23358	    s//\1/
23359	    q
23360	  }
23361	  s/.*/./; q'`
23362      as_dir=$dirpart/$fdir; as_fn_mkdir_p
23363      # echo "creating $dirpart/$file"
23364      echo '# dummy' > "$dirpart/$file"
23365    done
23366  done
23367}
23368 ;;
23369    "libtool":C)
23370
23371    # See if we are running on zsh, and set the options which allow our
23372    # commands through without removal of \ escapes.
23373    if test -n "${ZSH_VERSION+set}" ; then
23374      setopt NO_GLOB_SUBST
23375    fi
23376
23377    cfgfile="${ofile}T"
23378    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23379    $RM "$cfgfile"
23380
23381    cat <<_LT_EOF >> "$cfgfile"
23382#! $SHELL
23383
23384# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
23385# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
23386# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23387# NOTE: Changes made to this file will be lost: look at ltmain.sh.
23388#
23389#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
23390#                 2006, 2007, 2008 Free Software Foundation, Inc.
23391#   Written by Gordon Matzigkeit, 1996
23392#
23393#   This file is part of GNU Libtool.
23394#
23395# GNU Libtool is free software; you can redistribute it and/or
23396# modify it under the terms of the GNU General Public License as
23397# published by the Free Software Foundation; either version 2 of
23398# the License, or (at your option) any later version.
23399#
23400# As a special exception to the GNU General Public License,
23401# if you distribute this file as part of a program or library that
23402# is built using GNU Libtool, you may include this file under the
23403# same distribution terms that you use for the rest of that program.
23404#
23405# GNU Libtool is distributed in the hope that it will be useful,
23406# but WITHOUT ANY WARRANTY; without even the implied warranty of
23407# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23408# GNU General Public License for more details.
23409#
23410# You should have received a copy of the GNU General Public License
23411# along with GNU Libtool; see the file COPYING.  If not, a copy
23412# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
23413# obtained by writing to the Free Software Foundation, Inc.,
23414# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23415
23416
23417# The names of the tagged configurations supported by this script.
23418available_tags=""
23419
23420# ### BEGIN LIBTOOL CONFIG
23421
23422# Assembler program.
23423AS=$AS
23424
23425# DLL creation program.
23426DLLTOOL=$DLLTOOL
23427
23428# Object dumper program.
23429OBJDUMP=$OBJDUMP
23430
23431# Whether or not to build static libraries.
23432build_old_libs=$enable_static
23433
23434# Which release of libtool.m4 was used?
23435macro_version=$macro_version
23436macro_revision=$macro_revision
23437
23438# Whether or not to build shared libraries.
23439build_libtool_libs=$enable_shared
23440
23441# What type of objects to build.
23442pic_mode=$pic_mode
23443
23444# Whether or not to optimize for fast installation.
23445fast_install=$enable_fast_install
23446
23447# The host system.
23448host_alias=$host_alias
23449host=$host
23450host_os=$host_os
23451
23452# The build system.
23453build_alias=$build_alias
23454build=$build
23455build_os=$build_os
23456
23457# A sed program that does not truncate output.
23458SED=$lt_SED
23459
23460# Sed that helps us avoid accidentally triggering echo(1) options like -n.
23461Xsed="\$SED -e 1s/^X//"
23462
23463# A grep program that handles long lines.
23464GREP=$lt_GREP
23465
23466# An ERE matcher.
23467EGREP=$lt_EGREP
23468
23469# A literal string matcher.
23470FGREP=$lt_FGREP
23471
23472# A BSD- or MS-compatible name lister.
23473NM=$lt_NM
23474
23475# Whether we need soft or hard links.
23476LN_S=$lt_LN_S
23477
23478# What is the maximum length of a command?
23479max_cmd_len=$max_cmd_len
23480
23481# Object file suffix (normally "o").
23482objext=$ac_objext
23483
23484# Executable file suffix (normally "").
23485exeext=$exeext
23486
23487# whether the shell understands "unset".
23488lt_unset=$lt_unset
23489
23490# turn spaces into newlines.
23491SP2NL=$lt_lt_SP2NL
23492
23493# turn newlines into spaces.
23494NL2SP=$lt_lt_NL2SP
23495
23496# How to create reloadable object files.
23497reload_flag=$lt_reload_flag
23498reload_cmds=$lt_reload_cmds
23499
23500# Method to check whether dependent libraries are shared objects.
23501deplibs_check_method=$lt_deplibs_check_method
23502
23503# Command to use when deplibs_check_method == "file_magic".
23504file_magic_cmd=$lt_file_magic_cmd
23505
23506# The archiver.
23507AR=$lt_AR
23508AR_FLAGS=$lt_AR_FLAGS
23509
23510# A symbol stripping program.
23511STRIP=$lt_STRIP
23512
23513# Commands used to install an old-style archive.
23514RANLIB=$lt_RANLIB
23515old_postinstall_cmds=$lt_old_postinstall_cmds
23516old_postuninstall_cmds=$lt_old_postuninstall_cmds
23517
23518# A C compiler.
23519LTCC=$lt_CC
23520
23521# LTCC compiler flags.
23522LTCFLAGS=$lt_CFLAGS
23523
23524# Take the output of nm and produce a listing of raw symbols and C names.
23525global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23526
23527# Transform the output of nm in a proper C declaration.
23528global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23529
23530# Transform the output of nm in a C name address pair.
23531global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23532
23533# Transform the output of nm in a C name address pair when lib prefix is needed.
23534global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23535
23536# The name of the directory that contains temporary libtool files.
23537objdir=$objdir
23538
23539# Shell to use when invoking shell scripts.
23540SHELL=$lt_SHELL
23541
23542# An echo program that does not interpret backslashes.
23543ECHO=$lt_ECHO
23544
23545# Used to examine libraries when file_magic_cmd begins with "file".
23546MAGIC_CMD=$MAGIC_CMD
23547
23548# Must we lock files when doing compilation?
23549need_locks=$lt_need_locks
23550
23551# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23552DSYMUTIL=$lt_DSYMUTIL
23553
23554# Tool to change global to local symbols on Mac OS X.
23555NMEDIT=$lt_NMEDIT
23556
23557# Tool to manipulate fat objects and archives on Mac OS X.
23558LIPO=$lt_LIPO
23559
23560# ldd/readelf like tool for Mach-O binaries on Mac OS X.
23561OTOOL=$lt_OTOOL
23562
23563# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23564OTOOL64=$lt_OTOOL64
23565
23566# Old archive suffix (normally "a").
23567libext=$libext
23568
23569# Shared library suffix (normally ".so").
23570shrext_cmds=$lt_shrext_cmds
23571
23572# The commands to extract the exported symbol list from a shared archive.
23573extract_expsyms_cmds=$lt_extract_expsyms_cmds
23574
23575# Variables whose values should be saved in libtool wrapper scripts and
23576# restored at link time.
23577variables_saved_for_relink=$lt_variables_saved_for_relink
23578
23579# Do we need the "lib" prefix for modules?
23580need_lib_prefix=$need_lib_prefix
23581
23582# Do we need a version for libraries?
23583need_version=$need_version
23584
23585# Library versioning type.
23586version_type=$version_type
23587
23588# Shared library runtime path variable.
23589runpath_var=$runpath_var
23590
23591# Shared library path variable.
23592shlibpath_var=$shlibpath_var
23593
23594# Is shlibpath searched before the hard-coded library search path?
23595shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23596
23597# Format of library name prefix.
23598libname_spec=$lt_libname_spec
23599
23600# List of archive names.  First name is the real one, the rest are links.
23601# The last name is the one that the linker finds with -lNAME
23602library_names_spec=$lt_library_names_spec
23603
23604# The coded name of the library, if different from the real name.
23605soname_spec=$lt_soname_spec
23606
23607# Command to use after installation of a shared archive.
23608postinstall_cmds=$lt_postinstall_cmds
23609
23610# Command to use after uninstallation of a shared archive.
23611postuninstall_cmds=$lt_postuninstall_cmds
23612
23613# Commands used to finish a libtool library installation in a directory.
23614finish_cmds=$lt_finish_cmds
23615
23616# As "finish_cmds", except a single script fragment to be evaled but
23617# not shown.
23618finish_eval=$lt_finish_eval
23619
23620# Whether we should hardcode library paths into libraries.
23621hardcode_into_libs=$hardcode_into_libs
23622
23623# Compile-time system search path for libraries.
23624sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23625
23626# Run-time system search path for libraries.
23627sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23628
23629# Whether dlopen is supported.
23630dlopen_support=$enable_dlopen
23631
23632# Whether dlopen of programs is supported.
23633dlopen_self=$enable_dlopen_self
23634
23635# Whether dlopen of statically linked programs is supported.
23636dlopen_self_static=$enable_dlopen_self_static
23637
23638# Commands to strip libraries.
23639old_striplib=$lt_old_striplib
23640striplib=$lt_striplib
23641
23642
23643# The linker used to build libraries.
23644LD=$lt_LD
23645
23646# Commands used to build an old-style archive.
23647old_archive_cmds=$lt_old_archive_cmds
23648
23649# A language specific compiler.
23650CC=$lt_compiler
23651
23652# Is the compiler the GNU compiler?
23653with_gcc=$GCC
23654
23655# Compiler flag to turn off builtin functions.
23656no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23657
23658# How to pass a linker flag through the compiler.
23659wl=$lt_lt_prog_compiler_wl
23660
23661# Additional compiler flags for building library objects.
23662pic_flag=$lt_lt_prog_compiler_pic
23663
23664# Compiler flag to prevent dynamic linking.
23665link_static_flag=$lt_lt_prog_compiler_static
23666
23667# Does compiler simultaneously support -c and -o options?
23668compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23669
23670# Whether or not to add -lc for building shared libraries.
23671build_libtool_need_lc=$archive_cmds_need_lc
23672
23673# Whether or not to disallow shared libs when runtime libs are static.
23674allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23675
23676# Compiler flag to allow reflexive dlopens.
23677export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23678
23679# Compiler flag to generate shared objects directly from archives.
23680whole_archive_flag_spec=$lt_whole_archive_flag_spec
23681
23682# Whether the compiler copes with passing no objects directly.
23683compiler_needs_object=$lt_compiler_needs_object
23684
23685# Create an old-style archive from a shared archive.
23686old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23687
23688# Create a temporary old-style archive to link instead of a shared archive.
23689old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23690
23691# Commands used to build a shared archive.
23692archive_cmds=$lt_archive_cmds
23693archive_expsym_cmds=$lt_archive_expsym_cmds
23694
23695# Commands used to build a loadable module if different from building
23696# a shared archive.
23697module_cmds=$lt_module_cmds
23698module_expsym_cmds=$lt_module_expsym_cmds
23699
23700# Whether we are building with GNU ld or not.
23701with_gnu_ld=$lt_with_gnu_ld
23702
23703# Flag that allows shared libraries with undefined symbols to be built.
23704allow_undefined_flag=$lt_allow_undefined_flag
23705
23706# Flag that enforces no undefined symbols.
23707no_undefined_flag=$lt_no_undefined_flag
23708
23709# Flag to hardcode \$libdir into a binary during linking.
23710# This must work even if \$libdir does not exist
23711hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23712
23713# If ld is used when linking, flag to hardcode \$libdir into a binary
23714# during linking.  This must work even if \$libdir does not exist.
23715hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
23716
23717# Whether we need a single "-rpath" flag with a separated argument.
23718hardcode_libdir_separator=$lt_hardcode_libdir_separator
23719
23720# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23721# DIR into the resulting binary.
23722hardcode_direct=$hardcode_direct
23723
23724# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23725# DIR into the resulting binary and the resulting library dependency is
23726# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23727# library is relocated.
23728hardcode_direct_absolute=$hardcode_direct_absolute
23729
23730# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23731# into the resulting binary.
23732hardcode_minus_L=$hardcode_minus_L
23733
23734# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23735# into the resulting binary.
23736hardcode_shlibpath_var=$hardcode_shlibpath_var
23737
23738# Set to "yes" if building a shared library automatically hardcodes DIR
23739# into the library and all subsequent libraries and executables linked
23740# against it.
23741hardcode_automatic=$hardcode_automatic
23742
23743# Set to yes if linker adds runtime paths of dependent libraries
23744# to runtime path list.
23745inherit_rpath=$inherit_rpath
23746
23747# Whether libtool must link a program against all its dependency libraries.
23748link_all_deplibs=$link_all_deplibs
23749
23750# Fix the shell variable \$srcfile for the compiler.
23751fix_srcfile_path=$lt_fix_srcfile_path
23752
23753# Set to "yes" if exported symbols are required.
23754always_export_symbols=$always_export_symbols
23755
23756# The commands to list exported symbols.
23757export_symbols_cmds=$lt_export_symbols_cmds
23758
23759# Symbols that should not be listed in the preloaded symbols.
23760exclude_expsyms=$lt_exclude_expsyms
23761
23762# Symbols that must always be exported.
23763include_expsyms=$lt_include_expsyms
23764
23765# Commands necessary for linking programs (against libraries) with templates.
23766prelink_cmds=$lt_prelink_cmds
23767
23768# Specify filename containing input files.
23769file_list_spec=$lt_file_list_spec
23770
23771# How to hardcode a shared library path into an executable.
23772hardcode_action=$hardcode_action
23773
23774# ### END LIBTOOL CONFIG
23775
23776_LT_EOF
23777
23778  case $host_os in
23779  aix3*)
23780    cat <<\_LT_EOF >> "$cfgfile"
23781# AIX sometimes has problems with the GCC collect2 program.  For some
23782# reason, if we set the COLLECT_NAMES environment variable, the problems
23783# vanish in a puff of smoke.
23784if test "X${COLLECT_NAMES+set}" != Xset; then
23785  COLLECT_NAMES=
23786  export COLLECT_NAMES
23787fi
23788_LT_EOF
23789    ;;
23790  esac
23791
23792
23793ltmain="$ac_aux_dir/ltmain.sh"
23794
23795
23796  # We use sed instead of cat because bash on DJGPP gets confused if
23797  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
23798  # text mode, it properly converts lines to CR/LF.  This bash problem
23799  # is reportedly fixed, but why not run on old versions too?
23800  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
23801    || (rm -f "$cfgfile"; exit 1)
23802
23803  case $xsi_shell in
23804  yes)
23805    cat << \_LT_EOF >> "$cfgfile"
23806
23807# func_dirname file append nondir_replacement
23808# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
23809# otherwise set result to NONDIR_REPLACEMENT.
23810func_dirname ()
23811{
23812  case ${1} in
23813    */*) func_dirname_result="${1%/*}${2}" ;;
23814    *  ) func_dirname_result="${3}" ;;
23815  esac
23816}
23817
23818# func_basename file
23819func_basename ()
23820{
23821  func_basename_result="${1##*/}"
23822}
23823
23824# func_dirname_and_basename file append nondir_replacement
23825# perform func_basename and func_dirname in a single function
23826# call:
23827#   dirname:  Compute the dirname of FILE.  If nonempty,
23828#             add APPEND to the result, otherwise set result
23829#             to NONDIR_REPLACEMENT.
23830#             value returned in "$func_dirname_result"
23831#   basename: Compute filename of FILE.
23832#             value retuned in "$func_basename_result"
23833# Implementation must be kept synchronized with func_dirname
23834# and func_basename. For efficiency, we do not delegate to
23835# those functions but instead duplicate the functionality here.
23836func_dirname_and_basename ()
23837{
23838  case ${1} in
23839    */*) func_dirname_result="${1%/*}${2}" ;;
23840    *  ) func_dirname_result="${3}" ;;
23841  esac
23842  func_basename_result="${1##*/}"
23843}
23844
23845# func_stripname prefix suffix name
23846# strip PREFIX and SUFFIX off of NAME.
23847# PREFIX and SUFFIX must not contain globbing or regex special
23848# characters, hashes, percent signs, but SUFFIX may contain a leading
23849# dot (in which case that matches only a dot).
23850func_stripname ()
23851{
23852  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
23853  # positional parameters, so assign one to ordinary parameter first.
23854  func_stripname_result=${3}
23855  func_stripname_result=${func_stripname_result#"${1}"}
23856  func_stripname_result=${func_stripname_result%"${2}"}
23857}
23858
23859# func_opt_split
23860func_opt_split ()
23861{
23862  func_opt_split_opt=${1%%=*}
23863  func_opt_split_arg=${1#*=}
23864}
23865
23866# func_lo2o object
23867func_lo2o ()
23868{
23869  case ${1} in
23870    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
23871    *)    func_lo2o_result=${1} ;;
23872  esac
23873}
23874
23875# func_xform libobj-or-source
23876func_xform ()
23877{
23878  func_xform_result=${1%.*}.lo
23879}
23880
23881# func_arith arithmetic-term...
23882func_arith ()
23883{
23884  func_arith_result=$(( $* ))
23885}
23886
23887# func_len string
23888# STRING may not start with a hyphen.
23889func_len ()
23890{
23891  func_len_result=${#1}
23892}
23893
23894_LT_EOF
23895    ;;
23896  *) # Bourne compatible functions.
23897    cat << \_LT_EOF >> "$cfgfile"
23898
23899# func_dirname file append nondir_replacement
23900# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
23901# otherwise set result to NONDIR_REPLACEMENT.
23902func_dirname ()
23903{
23904  # Extract subdirectory from the argument.
23905  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
23906  if test "X$func_dirname_result" = "X${1}"; then
23907    func_dirname_result="${3}"
23908  else
23909    func_dirname_result="$func_dirname_result${2}"
23910  fi
23911}
23912
23913# func_basename file
23914func_basename ()
23915{
23916  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
23917}
23918
23919
23920# func_stripname prefix suffix name
23921# strip PREFIX and SUFFIX off of NAME.
23922# PREFIX and SUFFIX must not contain globbing or regex special
23923# characters, hashes, percent signs, but SUFFIX may contain a leading
23924# dot (in which case that matches only a dot).
23925# func_strip_suffix prefix name
23926func_stripname ()
23927{
23928  case ${2} in
23929    .*) func_stripname_result=`$ECHO "X${3}" \
23930           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
23931    *)  func_stripname_result=`$ECHO "X${3}" \
23932           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
23933  esac
23934}
23935
23936# sed scripts:
23937my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
23938my_sed_long_arg='1s/^-[^=]*=//'
23939
23940# func_opt_split
23941func_opt_split ()
23942{
23943  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
23944  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
23945}
23946
23947# func_lo2o object
23948func_lo2o ()
23949{
23950  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
23951}
23952
23953# func_xform libobj-or-source
23954func_xform ()
23955{
23956  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
23957}
23958
23959# func_arith arithmetic-term...
23960func_arith ()
23961{
23962  func_arith_result=`expr "$@"`
23963}
23964
23965# func_len string
23966# STRING may not start with a hyphen.
23967func_len ()
23968{
23969  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
23970}
23971
23972_LT_EOF
23973esac
23974
23975case $lt_shell_append in
23976  yes)
23977    cat << \_LT_EOF >> "$cfgfile"
23978
23979# func_append var value
23980# Append VALUE to the end of shell variable VAR.
23981func_append ()
23982{
23983  eval "$1+=\$2"
23984}
23985_LT_EOF
23986    ;;
23987  *)
23988    cat << \_LT_EOF >> "$cfgfile"
23989
23990# func_append var value
23991# Append VALUE to the end of shell variable VAR.
23992func_append ()
23993{
23994  eval "$1=\$$1\$2"
23995}
23996
23997_LT_EOF
23998    ;;
23999  esac
24000
24001
24002  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
24003    || (rm -f "$cfgfile"; exit 1)
24004
24005  mv -f "$cfgfile" "$ofile" ||
24006    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24007  chmod +x "$ofile"
24008
24009 ;;
24010
24011  esac
24012done # for ac_tag
24013
24014
24015as_fn_exit 0
24016_ACEOF
24017ac_clean_files=$ac_clean_files_save
24018
24019test $ac_write_fail = 0 ||
24020  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
24021
24022
24023# configure is writing to config.log, and then calls config.status.
24024# config.status does its own redirection, appending to config.log.
24025# Unfortunately, on DOS this fails, as config.log is still kept open
24026# by configure, so config.status won't be able to write to it; its
24027# output is simply discarded.  So we exec the FD to /dev/null,
24028# effectively closing config.log, so it can be properly (re)opened and
24029# appended to by config.status.  When coming back to configure, we
24030# need to make the FD available again.
24031if test "$no_create" != yes; then
24032  ac_cs_success=:
24033  ac_config_status_args=
24034  test "$silent" = yes &&
24035    ac_config_status_args="$ac_config_status_args --quiet"
24036  exec 5>/dev/null
24037  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24038  exec 5>>config.log
24039  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24040  # would make configure fail if this is the last instruction.
24041  $ac_cs_success || as_fn_exit $?
24042fi
24043if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24044  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24045$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24046fi
24047
24048