1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64 for xf86-video-intel 2.9.1.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 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='xf86-video-intel'
701PACKAGE_TARNAME='xf86-video-intel'
702PACKAGE_VERSION='2.9.1'
703PACKAGE_STRING='xf86-video-intel 2.9.1'
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
748Q
749V
750F77
751FC
752CXX
753AM_MAKEFLAGS
754MAKEFLAGS
755shavedir
756MAKE_HTML
757MAKE_PDF
758MAKE_PS
759MAKE_TEXT
760BUILD_PDFDOC_FALSE
761BUILD_PDFDOC_TRUE
762BUILD_LINUXDOC_FALSE
763BUILD_LINUXDOC_TRUE
764PS2PDF
765LINUXDOC
766ADMIN_MAN_DIR
767DRIVER_MAN_DIR
768MISC_MAN_DIR
769FILE_MAN_DIR
770LIB_MAN_DIR
771APP_MAN_DIR
772ADMIN_MAN_SUFFIX
773DRIVER_MAN_SUFFIX
774MISC_MAN_SUFFIX
775FILE_MAN_SUFFIX
776LIB_MAN_SUFFIX
777APP_MAN_SUFFIX
778DRIVER_NAME
779moduledir
780WARN_CFLAGS
781KMS_ONLY_FALSE
782KMS_ONLY_TRUE
783XVMC_FALSE
784XVMC_TRUE
785XVMCLIB_LIBS
786XVMCLIB_CFLAGS
787VIDEO_DEBUG_FALSE
788VIDEO_DEBUG_TRUE
789DRI_LIBS
790DRI_CFLAGS
791DRI_FALSE
792DRI_TRUE
793DRM_LIBS
794DRM_CFLAGS
795PCIACCESS_LIBS
796PCIACCESS_CFLAGS
797HAVE_XEXTPROTO_71_FALSE
798HAVE_XEXTPROTO_71_TRUE
799XEXT_LIBS
800XEXT_CFLAGS
801XORG_LIBS
802XORG_CFLAGS
803HAVE_GEN4ASM_FALSE
804HAVE_GEN4ASM_TRUE
805GEN4ASM_LIBS
806GEN4ASM_CFLAGS
807PKG_CONFIG
808LTCXXCOMPILE
809LTCOMPILE
810DOLT_BASH
811CPP
812OTOOL64
813OTOOL
814LIPO
815NMEDIT
816DSYMUTIL
817lt_ECHO
818RANLIB
819AR
820OBJDUMP
821LN_S
822NM
823ac_ct_DUMPBIN
824DUMPBIN
825LD
826FGREP
827EGREP
828GREP
829SED
830am__fastdepCC_FALSE
831am__fastdepCC_TRUE
832CCDEPMODE
833AMDEPBACKSLASH
834AMDEP_FALSE
835AMDEP_TRUE
836am__quote
837am__include
838DEPDIR
839OBJEXT
840EXEEXT
841ac_ct_CC
842CPPFLAGS
843LDFLAGS
844CFLAGS
845CC
846host_os
847host_vendor
848host_cpu
849host
850build_os
851build_vendor
852build_cpu
853build
854LIBTOOL
855MAINT
856MAINTAINER_MODE_FALSE
857MAINTAINER_MODE_TRUE
858am__untar
859am__tar
860AMTAR
861am__leading_dot
862SET_MAKE
863AWK
864mkdir_p
865MKDIR_P
866INSTALL_STRIP_PROGRAM
867STRIP
868install_sh
869MAKEINFO
870AUTOHEADER
871AUTOMAKE
872AUTOCONF
873ACLOCAL
874VERSION
875PACKAGE
876CYGPATH_W
877am__isrc
878INSTALL_DATA
879INSTALL_SCRIPT
880INSTALL_PROGRAM
881target_alias
882host_alias
883build_alias
884LIBS
885ECHO_T
886ECHO_N
887ECHO_C
888DEFS
889mandir
890localedir
891libdir
892psdir
893pdfdir
894dvidir
895htmldir
896infodir
897docdir
898oldincludedir
899includedir
900localstatedir
901sharedstatedir
902sysconfdir
903datadir
904datarootdir
905libexecdir
906sbindir
907bindir
908program_transform_name
909prefix
910exec_prefix
911PACKAGE_URL
912PACKAGE_BUGREPORT
913PACKAGE_STRING
914PACKAGE_VERSION
915PACKAGE_TARNAME
916PACKAGE_NAME
917PATH_SEPARATOR
918SHELL'
919ac_subst_files=''
920ac_user_opts='
921enable_option_checking
922enable_maintainer_mode
923enable_static
924enable_shared
925with_pic
926enable_fast_install
927enable_dependency_tracking
928with_gnu_ld
929enable_libtool_lock
930with_xorg_module_dir
931enable_dri
932enable_video_debug
933enable_debug
934enable_xvmc
935enable_kms_only
936with_release_version
937enable_shave
938'
939      ac_precious_vars='build_alias
940host_alias
941target_alias
942CC
943CFLAGS
944LDFLAGS
945LIBS
946CPPFLAGS
947CPP
948PKG_CONFIG
949GEN4ASM_CFLAGS
950GEN4ASM_LIBS
951XORG_CFLAGS
952XORG_LIBS
953XEXT_CFLAGS
954XEXT_LIBS
955PCIACCESS_CFLAGS
956PCIACCESS_LIBS
957DRM_CFLAGS
958DRM_LIBS
959DRI_CFLAGS
960DRI_LIBS
961XVMCLIB_CFLAGS
962XVMCLIB_LIBS'
963
964
965# Initialize some variables set by options.
966ac_init_help=
967ac_init_version=false
968ac_unrecognized_opts=
969ac_unrecognized_sep=
970# The variables have the same names as the options, with
971# dashes changed to underlines.
972cache_file=/dev/null
973exec_prefix=NONE
974no_create=
975no_recursion=
976prefix=NONE
977program_prefix=NONE
978program_suffix=NONE
979program_transform_name=s,x,x,
980silent=
981site=
982srcdir=
983verbose=
984x_includes=NONE
985x_libraries=NONE
986
987# Installation directory options.
988# These are left unexpanded so users can "make install exec_prefix=/foo"
989# and all the variables that are supposed to be based on exec_prefix
990# by default will actually change.
991# Use braces instead of parens because sh, perl, etc. also accept them.
992# (The list follows the same order as the GNU Coding Standards.)
993bindir='${exec_prefix}/bin'
994sbindir='${exec_prefix}/sbin'
995libexecdir='${exec_prefix}/libexec'
996datarootdir='${prefix}/share'
997datadir='${datarootdir}'
998sysconfdir='${prefix}/etc'
999sharedstatedir='${prefix}/com'
1000localstatedir='${prefix}/var'
1001includedir='${prefix}/include'
1002oldincludedir='/usr/include'
1003docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1004infodir='${datarootdir}/info'
1005htmldir='${docdir}'
1006dvidir='${docdir}'
1007pdfdir='${docdir}'
1008psdir='${docdir}'
1009libdir='${exec_prefix}/lib'
1010localedir='${datarootdir}/locale'
1011mandir='${datarootdir}/man'
1012
1013ac_prev=
1014ac_dashdash=
1015for ac_option
1016do
1017  # If the previous option needs an argument, assign it.
1018  if test -n "$ac_prev"; then
1019    eval $ac_prev=\$ac_option
1020    ac_prev=
1021    continue
1022  fi
1023
1024  case $ac_option in
1025  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1026  *)	ac_optarg=yes ;;
1027  esac
1028
1029  # Accept the important Cygnus configure options, so we can diagnose typos.
1030
1031  case $ac_dashdash$ac_option in
1032  --)
1033    ac_dashdash=yes ;;
1034
1035  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1036    ac_prev=bindir ;;
1037  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1038    bindir=$ac_optarg ;;
1039
1040  -build | --build | --buil | --bui | --bu)
1041    ac_prev=build_alias ;;
1042  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1043    build_alias=$ac_optarg ;;
1044
1045  -cache-file | --cache-file | --cache-fil | --cache-fi \
1046  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1047    ac_prev=cache_file ;;
1048  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1049  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1050    cache_file=$ac_optarg ;;
1051
1052  --config-cache | -C)
1053    cache_file=config.cache ;;
1054
1055  -datadir | --datadir | --datadi | --datad)
1056    ac_prev=datadir ;;
1057  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1058    datadir=$ac_optarg ;;
1059
1060  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1061  | --dataroo | --dataro | --datar)
1062    ac_prev=datarootdir ;;
1063  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1064  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1065    datarootdir=$ac_optarg ;;
1066
1067  -disable-* | --disable-*)
1068    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1069    # Reject names that are not valid shell variable names.
1070    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1071      as_fn_error "invalid feature name: $ac_useropt"
1072    ac_useropt_orig=$ac_useropt
1073    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1074    case $ac_user_opts in
1075      *"
1076"enable_$ac_useropt"
1077"*) ;;
1078      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1079	 ac_unrecognized_sep=', ';;
1080    esac
1081    eval enable_$ac_useropt=no ;;
1082
1083  -docdir | --docdir | --docdi | --doc | --do)
1084    ac_prev=docdir ;;
1085  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1086    docdir=$ac_optarg ;;
1087
1088  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1089    ac_prev=dvidir ;;
1090  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1091    dvidir=$ac_optarg ;;
1092
1093  -enable-* | --enable-*)
1094    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1095    # Reject names that are not valid shell variable names.
1096    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1097      as_fn_error "invalid feature name: $ac_useropt"
1098    ac_useropt_orig=$ac_useropt
1099    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1100    case $ac_user_opts in
1101      *"
1102"enable_$ac_useropt"
1103"*) ;;
1104      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1105	 ac_unrecognized_sep=', ';;
1106    esac
1107    eval enable_$ac_useropt=\$ac_optarg ;;
1108
1109  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1110  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1111  | --exec | --exe | --ex)
1112    ac_prev=exec_prefix ;;
1113  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1114  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1115  | --exec=* | --exe=* | --ex=*)
1116    exec_prefix=$ac_optarg ;;
1117
1118  -gas | --gas | --ga | --g)
1119    # Obsolete; use --with-gas.
1120    with_gas=yes ;;
1121
1122  -help | --help | --hel | --he | -h)
1123    ac_init_help=long ;;
1124  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1125    ac_init_help=recursive ;;
1126  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1127    ac_init_help=short ;;
1128
1129  -host | --host | --hos | --ho)
1130    ac_prev=host_alias ;;
1131  -host=* | --host=* | --hos=* | --ho=*)
1132    host_alias=$ac_optarg ;;
1133
1134  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1135    ac_prev=htmldir ;;
1136  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1137  | --ht=*)
1138    htmldir=$ac_optarg ;;
1139
1140  -includedir | --includedir | --includedi | --included | --include \
1141  | --includ | --inclu | --incl | --inc)
1142    ac_prev=includedir ;;
1143  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1144  | --includ=* | --inclu=* | --incl=* | --inc=*)
1145    includedir=$ac_optarg ;;
1146
1147  -infodir | --infodir | --infodi | --infod | --info | --inf)
1148    ac_prev=infodir ;;
1149  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1150    infodir=$ac_optarg ;;
1151
1152  -libdir | --libdir | --libdi | --libd)
1153    ac_prev=libdir ;;
1154  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1155    libdir=$ac_optarg ;;
1156
1157  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1158  | --libexe | --libex | --libe)
1159    ac_prev=libexecdir ;;
1160  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1161  | --libexe=* | --libex=* | --libe=*)
1162    libexecdir=$ac_optarg ;;
1163
1164  -localedir | --localedir | --localedi | --localed | --locale)
1165    ac_prev=localedir ;;
1166  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1167    localedir=$ac_optarg ;;
1168
1169  -localstatedir | --localstatedir | --localstatedi | --localstated \
1170  | --localstate | --localstat | --localsta | --localst | --locals)
1171    ac_prev=localstatedir ;;
1172  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1173  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1174    localstatedir=$ac_optarg ;;
1175
1176  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1177    ac_prev=mandir ;;
1178  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1179    mandir=$ac_optarg ;;
1180
1181  -nfp | --nfp | --nf)
1182    # Obsolete; use --without-fp.
1183    with_fp=no ;;
1184
1185  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1186  | --no-cr | --no-c | -n)
1187    no_create=yes ;;
1188
1189  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1190  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1191    no_recursion=yes ;;
1192
1193  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1194  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1195  | --oldin | --oldi | --old | --ol | --o)
1196    ac_prev=oldincludedir ;;
1197  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1198  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1199  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1200    oldincludedir=$ac_optarg ;;
1201
1202  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1203    ac_prev=prefix ;;
1204  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1205    prefix=$ac_optarg ;;
1206
1207  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1208  | --program-pre | --program-pr | --program-p)
1209    ac_prev=program_prefix ;;
1210  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1211  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1212    program_prefix=$ac_optarg ;;
1213
1214  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1215  | --program-suf | --program-su | --program-s)
1216    ac_prev=program_suffix ;;
1217  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1218  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1219    program_suffix=$ac_optarg ;;
1220
1221  -program-transform-name | --program-transform-name \
1222  | --program-transform-nam | --program-transform-na \
1223  | --program-transform-n | --program-transform- \
1224  | --program-transform | --program-transfor \
1225  | --program-transfo | --program-transf \
1226  | --program-trans | --program-tran \
1227  | --progr-tra | --program-tr | --program-t)
1228    ac_prev=program_transform_name ;;
1229  -program-transform-name=* | --program-transform-name=* \
1230  | --program-transform-nam=* | --program-transform-na=* \
1231  | --program-transform-n=* | --program-transform-=* \
1232  | --program-transform=* | --program-transfor=* \
1233  | --program-transfo=* | --program-transf=* \
1234  | --program-trans=* | --program-tran=* \
1235  | --progr-tra=* | --program-tr=* | --program-t=*)
1236    program_transform_name=$ac_optarg ;;
1237
1238  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1239    ac_prev=pdfdir ;;
1240  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1241    pdfdir=$ac_optarg ;;
1242
1243  -psdir | --psdir | --psdi | --psd | --ps)
1244    ac_prev=psdir ;;
1245  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1246    psdir=$ac_optarg ;;
1247
1248  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1249  | -silent | --silent | --silen | --sile | --sil)
1250    silent=yes ;;
1251
1252  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1253    ac_prev=sbindir ;;
1254  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1255  | --sbi=* | --sb=*)
1256    sbindir=$ac_optarg ;;
1257
1258  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1259  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1260  | --sharedst | --shareds | --shared | --share | --shar \
1261  | --sha | --sh)
1262    ac_prev=sharedstatedir ;;
1263  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1264  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1265  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1266  | --sha=* | --sh=*)
1267    sharedstatedir=$ac_optarg ;;
1268
1269  -site | --site | --sit)
1270    ac_prev=site ;;
1271  -site=* | --site=* | --sit=*)
1272    site=$ac_optarg ;;
1273
1274  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1275    ac_prev=srcdir ;;
1276  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1277    srcdir=$ac_optarg ;;
1278
1279  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1280  | --syscon | --sysco | --sysc | --sys | --sy)
1281    ac_prev=sysconfdir ;;
1282  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1283  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1284    sysconfdir=$ac_optarg ;;
1285
1286  -target | --target | --targe | --targ | --tar | --ta | --t)
1287    ac_prev=target_alias ;;
1288  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1289    target_alias=$ac_optarg ;;
1290
1291  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1292    verbose=yes ;;
1293
1294  -version | --version | --versio | --versi | --vers | -V)
1295    ac_init_version=: ;;
1296
1297  -with-* | --with-*)
1298    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1299    # Reject names that are not valid shell variable names.
1300    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1301      as_fn_error "invalid package name: $ac_useropt"
1302    ac_useropt_orig=$ac_useropt
1303    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1304    case $ac_user_opts in
1305      *"
1306"with_$ac_useropt"
1307"*) ;;
1308      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1309	 ac_unrecognized_sep=', ';;
1310    esac
1311    eval with_$ac_useropt=\$ac_optarg ;;
1312
1313  -without-* | --without-*)
1314    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1315    # Reject names that are not valid shell variable names.
1316    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1317      as_fn_error "invalid package name: $ac_useropt"
1318    ac_useropt_orig=$ac_useropt
1319    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1320    case $ac_user_opts in
1321      *"
1322"with_$ac_useropt"
1323"*) ;;
1324      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1325	 ac_unrecognized_sep=', ';;
1326    esac
1327    eval with_$ac_useropt=no ;;
1328
1329  --x)
1330    # Obsolete; use --with-x.
1331    with_x=yes ;;
1332
1333  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1334  | --x-incl | --x-inc | --x-in | --x-i)
1335    ac_prev=x_includes ;;
1336  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1337  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1338    x_includes=$ac_optarg ;;
1339
1340  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1341  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1342    ac_prev=x_libraries ;;
1343  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1344  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1345    x_libraries=$ac_optarg ;;
1346
1347  -*) as_fn_error "unrecognized option: \`$ac_option'
1348Try \`$0 --help' for more information."
1349    ;;
1350
1351  *=*)
1352    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1353    # Reject names that are not valid shell variable names.
1354    case $ac_envvar in #(
1355      '' | [0-9]* | *[!_$as_cr_alnum]* )
1356      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1357    esac
1358    eval $ac_envvar=\$ac_optarg
1359    export $ac_envvar ;;
1360
1361  *)
1362    # FIXME: should be removed in autoconf 3.0.
1363    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1364    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1365      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1366    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1367    ;;
1368
1369  esac
1370done
1371
1372if test -n "$ac_prev"; then
1373  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1374  as_fn_error "missing argument to $ac_option"
1375fi
1376
1377if test -n "$ac_unrecognized_opts"; then
1378  case $enable_option_checking in
1379    no) ;;
1380    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1381    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1382  esac
1383fi
1384
1385# Check all directory arguments for consistency.
1386for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1387		datadir sysconfdir sharedstatedir localstatedir includedir \
1388		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1389		libdir localedir mandir
1390do
1391  eval ac_val=\$$ac_var
1392  # Remove trailing slashes.
1393  case $ac_val in
1394    */ )
1395      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1396      eval $ac_var=\$ac_val;;
1397  esac
1398  # Be sure to have absolute directory names.
1399  case $ac_val in
1400    [\\/$]* | ?:[\\/]* )  continue;;
1401    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1402  esac
1403  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1404done
1405
1406# There might be people who depend on the old broken behavior: `$host'
1407# used to hold the argument of --host etc.
1408# FIXME: To remove some day.
1409build=$build_alias
1410host=$host_alias
1411target=$target_alias
1412
1413# FIXME: To remove some day.
1414if test "x$host_alias" != x; then
1415  if test "x$build_alias" = x; then
1416    cross_compiling=maybe
1417    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1418    If a cross compiler is detected then cross compile mode will be used." >&2
1419  elif test "x$build_alias" != "x$host_alias"; then
1420    cross_compiling=yes
1421  fi
1422fi
1423
1424ac_tool_prefix=
1425test -n "$host_alias" && ac_tool_prefix=$host_alias-
1426
1427test "$silent" = yes && exec 6>/dev/null
1428
1429
1430ac_pwd=`pwd` && test -n "$ac_pwd" &&
1431ac_ls_di=`ls -di .` &&
1432ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1433  as_fn_error "working directory cannot be determined"
1434test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1435  as_fn_error "pwd does not report name of working directory"
1436
1437
1438# Find the source files, if location was not specified.
1439if test -z "$srcdir"; then
1440  ac_srcdir_defaulted=yes
1441  # Try the directory containing this script, then the parent directory.
1442  ac_confdir=`$as_dirname -- "$as_myself" ||
1443$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1444	 X"$as_myself" : 'X\(//\)[^/]' \| \
1445	 X"$as_myself" : 'X\(//\)$' \| \
1446	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1447$as_echo X"$as_myself" |
1448    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1449	    s//\1/
1450	    q
1451	  }
1452	  /^X\(\/\/\)[^/].*/{
1453	    s//\1/
1454	    q
1455	  }
1456	  /^X\(\/\/\)$/{
1457	    s//\1/
1458	    q
1459	  }
1460	  /^X\(\/\).*/{
1461	    s//\1/
1462	    q
1463	  }
1464	  s/.*/./; q'`
1465  srcdir=$ac_confdir
1466  if test ! -r "$srcdir/$ac_unique_file"; then
1467    srcdir=..
1468  fi
1469else
1470  ac_srcdir_defaulted=no
1471fi
1472if test ! -r "$srcdir/$ac_unique_file"; then
1473  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1474  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1475fi
1476ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1477ac_abs_confdir=`(
1478	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1479	pwd)`
1480# When building in place, set srcdir=.
1481if test "$ac_abs_confdir" = "$ac_pwd"; then
1482  srcdir=.
1483fi
1484# Remove unnecessary trailing slashes from srcdir.
1485# Double slashes in file names in object file debugging info
1486# mess up M-x gdb in Emacs.
1487case $srcdir in
1488*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1489esac
1490for ac_var in $ac_precious_vars; do
1491  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1492  eval ac_env_${ac_var}_value=\$${ac_var}
1493  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1494  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1495done
1496
1497#
1498# Report the --help message.
1499#
1500if test "$ac_init_help" = "long"; then
1501  # Omit some internal or obsolete options to make the list less imposing.
1502  # This message is too long to be a string in the A/UX 3.1 sh.
1503  cat <<_ACEOF
1504\`configure' configures xf86-video-intel 2.9.1 to adapt to many kinds of systems.
1505
1506Usage: $0 [OPTION]... [VAR=VALUE]...
1507
1508To assign environment variables (e.g., CC, CFLAGS...), specify them as
1509VAR=VALUE.  See below for descriptions of some of the useful variables.
1510
1511Defaults for the options are specified in brackets.
1512
1513Configuration:
1514  -h, --help              display this help and exit
1515      --help=short        display options specific to this package
1516      --help=recursive    display the short help of all the included packages
1517  -V, --version           display version information and exit
1518  -q, --quiet, --silent   do not print \`checking...' messages
1519      --cache-file=FILE   cache test results in FILE [disabled]
1520  -C, --config-cache      alias for \`--cache-file=config.cache'
1521  -n, --no-create         do not create output files
1522      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1523
1524Installation directories:
1525  --prefix=PREFIX         install architecture-independent files in PREFIX
1526                          [$ac_default_prefix]
1527  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1528                          [PREFIX]
1529
1530By default, \`make install' will install all the files in
1531\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1532an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1533for instance \`--prefix=\$HOME'.
1534
1535For better control, use the options below.
1536
1537Fine tuning of the installation directories:
1538  --bindir=DIR            user executables [EPREFIX/bin]
1539  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1540  --libexecdir=DIR        program executables [EPREFIX/libexec]
1541  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1542  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1543  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1544  --libdir=DIR            object code libraries [EPREFIX/lib]
1545  --includedir=DIR        C header files [PREFIX/include]
1546  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1547  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1548  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1549  --infodir=DIR           info documentation [DATAROOTDIR/info]
1550  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1551  --mandir=DIR            man documentation [DATAROOTDIR/man]
1552  --docdir=DIR            documentation root
1553                          [DATAROOTDIR/doc/xf86-video-intel]
1554  --htmldir=DIR           html documentation [DOCDIR]
1555  --dvidir=DIR            dvi documentation [DOCDIR]
1556  --pdfdir=DIR            pdf documentation [DOCDIR]
1557  --psdir=DIR             ps documentation [DOCDIR]
1558_ACEOF
1559
1560  cat <<\_ACEOF
1561
1562Program names:
1563  --program-prefix=PREFIX            prepend PREFIX to installed program names
1564  --program-suffix=SUFFIX            append SUFFIX to installed program names
1565  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1566
1567System types:
1568  --build=BUILD     configure for building on BUILD [guessed]
1569  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1570_ACEOF
1571fi
1572
1573if test -n "$ac_init_help"; then
1574  case $ac_init_help in
1575     short | recursive ) echo "Configuration of xf86-video-intel 2.9.1:";;
1576   esac
1577  cat <<\_ACEOF
1578
1579Optional Features:
1580  --disable-option-checking  ignore unrecognized --enable/--with options
1581  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1582  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1583  --enable-maintainer-mode  enable make rules and dependencies not useful
1584			  (and sometimes confusing) to the casual installer
1585  --enable-static[=PKGS]  build static libraries [default=no]
1586  --enable-shared[=PKGS]  build shared libraries [default=yes]
1587  --enable-fast-install[=PKGS]
1588                          optimize for fast installation [default=yes]
1589  --disable-dependency-tracking  speeds up one-time build
1590  --enable-dependency-tracking   do not reject slow dependency extractors
1591  --disable-libtool-lock  avoid locking (might break parallel builds)
1592  --disable-dri           Disable DRI support [default=auto]
1593  --enable-video-debug    Enable video debugging support [default=no]
1594  --enable-debug          Compile with debug support [default=yes]
1595  --disable-xvmc          Disable XvMC support [default=yes]
1596  --enable-kms-only       Assume KMS support [default=no]
1597  --enable-shave          use shave to make the build pretty [default=yes]
1598
1599Optional Packages:
1600  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1601  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1602  --with-pic              try to use only PIC/non-PIC objects [default=use
1603                          both]
1604  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1605  --with-xorg-module-dir=DIR
1606                          Default xorg module directory
1607                          [default=$libdir/xorg/modules]
1608  --with-release-version=STRING
1609                          Use release version string in package name
1610
1611Some influential environment variables:
1612  CC          C compiler command
1613  CFLAGS      C compiler flags
1614  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1615              nonstandard directory <lib dir>
1616  LIBS        libraries to pass to the linker, e.g. -l<library>
1617  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1618              you have headers in a nonstandard directory <include dir>
1619  CPP         C preprocessor
1620  PKG_CONFIG  path to pkg-config utility
1621  GEN4ASM_CFLAGS
1622              C compiler flags for GEN4ASM, overriding pkg-config
1623  GEN4ASM_LIBS
1624              linker flags for GEN4ASM, overriding pkg-config
1625  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1626  XORG_LIBS   linker flags for XORG, overriding pkg-config
1627  XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1628  XEXT_LIBS   linker flags for XEXT, overriding pkg-config
1629  PCIACCESS_CFLAGS
1630              C compiler flags for PCIACCESS, overriding pkg-config
1631  PCIACCESS_LIBS
1632              linker flags for PCIACCESS, overriding pkg-config
1633  DRM_CFLAGS  C compiler flags for DRM, overriding pkg-config
1634  DRM_LIBS    linker flags for DRM, overriding pkg-config
1635  DRI_CFLAGS  C compiler flags for DRI, overriding pkg-config
1636  DRI_LIBS    linker flags for DRI, overriding pkg-config
1637  XVMCLIB_CFLAGS
1638              C compiler flags for XVMCLIB, overriding pkg-config
1639  XVMCLIB_LIBS
1640              linker flags for XVMCLIB, overriding pkg-config
1641
1642Use these variables to override the choices made by `configure' or to help
1643it to find libraries and programs with nonstandard names/locations.
1644
1645Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1646_ACEOF
1647ac_status=$?
1648fi
1649
1650if test "$ac_init_help" = "recursive"; then
1651  # If there are subdirs, report their specific --help.
1652  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1653    test -d "$ac_dir" ||
1654      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1655      continue
1656    ac_builddir=.
1657
1658case "$ac_dir" in
1659.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1660*)
1661  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1662  # A ".." for each directory in $ac_dir_suffix.
1663  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1664  case $ac_top_builddir_sub in
1665  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1666  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1667  esac ;;
1668esac
1669ac_abs_top_builddir=$ac_pwd
1670ac_abs_builddir=$ac_pwd$ac_dir_suffix
1671# for backward compatibility:
1672ac_top_builddir=$ac_top_build_prefix
1673
1674case $srcdir in
1675  .)  # We are building in place.
1676    ac_srcdir=.
1677    ac_top_srcdir=$ac_top_builddir_sub
1678    ac_abs_top_srcdir=$ac_pwd ;;
1679  [\\/]* | ?:[\\/]* )  # Absolute name.
1680    ac_srcdir=$srcdir$ac_dir_suffix;
1681    ac_top_srcdir=$srcdir
1682    ac_abs_top_srcdir=$srcdir ;;
1683  *) # Relative name.
1684    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1685    ac_top_srcdir=$ac_top_build_prefix$srcdir
1686    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1687esac
1688ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1689
1690    cd "$ac_dir" || { ac_status=$?; continue; }
1691    # Check for guested configure.
1692    if test -f "$ac_srcdir/configure.gnu"; then
1693      echo &&
1694      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1695    elif test -f "$ac_srcdir/configure"; then
1696      echo &&
1697      $SHELL "$ac_srcdir/configure" --help=recursive
1698    else
1699      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1700    fi || ac_status=$?
1701    cd "$ac_pwd" || { ac_status=$?; break; }
1702  done
1703fi
1704
1705test -n "$ac_init_help" && exit $ac_status
1706if $ac_init_version; then
1707  cat <<\_ACEOF
1708xf86-video-intel configure 2.9.1
1709generated by GNU Autoconf 2.64
1710
1711Copyright (C) 2009 Free Software Foundation, Inc.
1712This configure script is free software; the Free Software Foundation
1713gives unlimited permission to copy, distribute and modify it.
1714_ACEOF
1715  exit
1716fi
1717
1718## ------------------------ ##
1719## Autoconf initialization. ##
1720## ------------------------ ##
1721
1722# ac_fn_c_try_compile LINENO
1723# --------------------------
1724# Try to compile conftest.$ac_ext, and return whether this succeeded.
1725ac_fn_c_try_compile ()
1726{
1727  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728  rm -f conftest.$ac_objext
1729  if { { ac_try="$ac_compile"
1730case "(($ac_try" in
1731  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732  *) ac_try_echo=$ac_try;;
1733esac
1734eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735$as_echo "$ac_try_echo"; } >&5
1736  (eval "$ac_compile") 2>conftest.err
1737  ac_status=$?
1738  if test -s conftest.err; then
1739    grep -v '^ *+' conftest.err >conftest.er1
1740    cat conftest.er1 >&5
1741    mv -f conftest.er1 conftest.err
1742  fi
1743  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1744  test $ac_status = 0; } && {
1745	 test -z "$ac_c_werror_flag" ||
1746	 test ! -s conftest.err
1747       } && test -s conftest.$ac_objext; then :
1748  ac_retval=0
1749else
1750  $as_echo "$as_me: failed program was:" >&5
1751sed 's/^/| /' conftest.$ac_ext >&5
1752
1753	ac_retval=1
1754fi
1755  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1756  return $ac_retval
1757
1758} # ac_fn_c_try_compile
1759
1760# ac_fn_c_try_link LINENO
1761# -----------------------
1762# Try to link conftest.$ac_ext, and return whether this succeeded.
1763ac_fn_c_try_link ()
1764{
1765  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766  rm -f conftest.$ac_objext conftest$ac_exeext
1767  if { { ac_try="$ac_link"
1768case "(($ac_try" in
1769  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1770  *) ac_try_echo=$ac_try;;
1771esac
1772eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1773$as_echo "$ac_try_echo"; } >&5
1774  (eval "$ac_link") 2>conftest.err
1775  ac_status=$?
1776  if test -s conftest.err; then
1777    grep -v '^ *+' conftest.err >conftest.er1
1778    cat conftest.er1 >&5
1779    mv -f conftest.er1 conftest.err
1780  fi
1781  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782  test $ac_status = 0; } && {
1783	 test -z "$ac_c_werror_flag" ||
1784	 test ! -s conftest.err
1785       } && test -s conftest$ac_exeext && {
1786	 test "$cross_compiling" = yes ||
1787	 $as_test_x conftest$ac_exeext
1788       }; then :
1789  ac_retval=0
1790else
1791  $as_echo "$as_me: failed program was:" >&5
1792sed 's/^/| /' conftest.$ac_ext >&5
1793
1794	ac_retval=1
1795fi
1796  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1797  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1798  # interfere with the next link command; also delete a directory that is
1799  # left behind by Apple's compiler.  We do this before executing the actions.
1800  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1801  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1802  return $ac_retval
1803
1804} # ac_fn_c_try_link
1805
1806# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1807# -------------------------------------------------------
1808# Tests whether HEADER exists and can be compiled using the include files in
1809# INCLUDES, setting the cache variable VAR accordingly.
1810ac_fn_c_check_header_compile ()
1811{
1812  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1814$as_echo_n "checking for $2... " >&6; }
1815if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1816  $as_echo_n "(cached) " >&6
1817else
1818  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1819/* end confdefs.h.  */
1820$4
1821#include <$2>
1822_ACEOF
1823if ac_fn_c_try_compile "$LINENO"; then :
1824  eval "$3=yes"
1825else
1826  eval "$3=no"
1827fi
1828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1829fi
1830eval ac_res=\$$3
1831	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1832$as_echo "$ac_res" >&6; }
1833  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1834
1835} # ac_fn_c_check_header_compile
1836
1837# ac_fn_c_try_cpp LINENO
1838# ----------------------
1839# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1840ac_fn_c_try_cpp ()
1841{
1842  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843  if { { ac_try="$ac_cpp conftest.$ac_ext"
1844case "(($ac_try" in
1845  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1846  *) ac_try_echo=$ac_try;;
1847esac
1848eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1849$as_echo "$ac_try_echo"; } >&5
1850  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1851  ac_status=$?
1852  if test -s conftest.err; then
1853    grep -v '^ *+' conftest.err >conftest.er1
1854    cat conftest.er1 >&5
1855    mv -f conftest.er1 conftest.err
1856  fi
1857  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858  test $ac_status = 0; } >/dev/null && {
1859	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1860	 test ! -s conftest.err
1861       }; then :
1862  ac_retval=0
1863else
1864  $as_echo "$as_me: failed program was:" >&5
1865sed 's/^/| /' conftest.$ac_ext >&5
1866
1867    ac_retval=1
1868fi
1869  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1870  return $ac_retval
1871
1872} # ac_fn_c_try_cpp
1873
1874# ac_fn_c_try_run LINENO
1875# ----------------------
1876# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1877# that executables *can* be run.
1878ac_fn_c_try_run ()
1879{
1880  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881  if { { ac_try="$ac_link"
1882case "(($ac_try" in
1883  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884  *) ac_try_echo=$ac_try;;
1885esac
1886eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887$as_echo "$ac_try_echo"; } >&5
1888  (eval "$ac_link") 2>&5
1889  ac_status=$?
1890  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1891  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1892  { { case "(($ac_try" in
1893  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1894  *) ac_try_echo=$ac_try;;
1895esac
1896eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1897$as_echo "$ac_try_echo"; } >&5
1898  (eval "$ac_try") 2>&5
1899  ac_status=$?
1900  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1901  test $ac_status = 0; }; }; then :
1902  ac_retval=0
1903else
1904  $as_echo "$as_me: program exited with status $ac_status" >&5
1905       $as_echo "$as_me: failed program was:" >&5
1906sed 's/^/| /' conftest.$ac_ext >&5
1907
1908       ac_retval=$ac_status
1909fi
1910  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1911  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1912  return $ac_retval
1913
1914} # ac_fn_c_try_run
1915
1916# ac_fn_c_check_func LINENO FUNC VAR
1917# ----------------------------------
1918# Tests whether FUNC exists, setting the cache variable VAR accordingly
1919ac_fn_c_check_func ()
1920{
1921  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1923$as_echo_n "checking for $2... " >&6; }
1924if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1925  $as_echo_n "(cached) " >&6
1926else
1927  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1928/* end confdefs.h.  */
1929/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1930   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1931#define $2 innocuous_$2
1932
1933/* System header to define __stub macros and hopefully few prototypes,
1934    which can conflict with char $2 (); below.
1935    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1936    <limits.h> exists even on freestanding compilers.  */
1937
1938#ifdef __STDC__
1939# include <limits.h>
1940#else
1941# include <assert.h>
1942#endif
1943
1944#undef $2
1945
1946/* Override any GCC internal prototype to avoid an error.
1947   Use char because int might match the return type of a GCC
1948   builtin and then its argument prototype would still apply.  */
1949#ifdef __cplusplus
1950extern "C"
1951#endif
1952char $2 ();
1953/* The GNU C library defines this for functions which it implements
1954    to always fail with ENOSYS.  Some functions are actually named
1955    something starting with __ and the normal name is an alias.  */
1956#if defined __stub_$2 || defined __stub___$2
1957choke me
1958#endif
1959
1960int
1961main ()
1962{
1963return $2 ();
1964  ;
1965  return 0;
1966}
1967_ACEOF
1968if ac_fn_c_try_link "$LINENO"; then :
1969  eval "$3=yes"
1970else
1971  eval "$3=no"
1972fi
1973rm -f core conftest.err conftest.$ac_objext \
1974    conftest$ac_exeext conftest.$ac_ext
1975fi
1976eval ac_res=\$$3
1977	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1978$as_echo "$ac_res" >&6; }
1979  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1980
1981} # ac_fn_c_check_func
1982
1983# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1984# -------------------------------------------------------
1985# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1986# the include files in INCLUDES and setting the cache variable VAR
1987# accordingly.
1988ac_fn_c_check_header_mongrel ()
1989{
1990  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1991  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1992  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1993$as_echo_n "checking for $2... " >&6; }
1994if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1995  $as_echo_n "(cached) " >&6
1996fi
1997eval ac_res=\$$3
1998	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1999$as_echo "$ac_res" >&6; }
2000else
2001  # Is the header compilable?
2002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2003$as_echo_n "checking $2 usability... " >&6; }
2004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005/* end confdefs.h.  */
2006$4
2007#include <$2>
2008_ACEOF
2009if ac_fn_c_try_compile "$LINENO"; then :
2010  ac_header_compiler=yes
2011else
2012  ac_header_compiler=no
2013fi
2014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2016$as_echo "$ac_header_compiler" >&6; }
2017
2018# Is the header present?
2019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2020$as_echo_n "checking $2 presence... " >&6; }
2021cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022/* end confdefs.h.  */
2023#include <$2>
2024_ACEOF
2025if ac_fn_c_try_cpp "$LINENO"; then :
2026  ac_header_preproc=yes
2027else
2028  ac_header_preproc=no
2029fi
2030rm -f conftest.err conftest.$ac_ext
2031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2032$as_echo "$ac_header_preproc" >&6; }
2033
2034# So?  What about this header?
2035case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2036  yes:no: )
2037    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2038$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2039    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2040$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2041    ;;
2042  no:yes:* )
2043    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2044$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2045    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2046$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2047    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2048$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2049    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2050$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2051    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2052$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2053( cat <<\_ASBOX
2054## ---------------------------------------------------------------------- ##
2055## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
2056## ---------------------------------------------------------------------- ##
2057_ASBOX
2058     ) | sed "s/^/$as_me: WARNING:     /" >&2
2059    ;;
2060esac
2061  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2062$as_echo_n "checking for $2... " >&6; }
2063if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2064  $as_echo_n "(cached) " >&6
2065else
2066  eval "$3=\$ac_header_compiler"
2067fi
2068eval ac_res=\$$3
2069	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2070$as_echo "$ac_res" >&6; }
2071fi
2072  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2073
2074} # ac_fn_c_check_header_mongrel
2075cat >config.log <<_ACEOF
2076This file contains any messages produced by compilers while
2077running configure, to aid debugging if configure makes a mistake.
2078
2079It was created by xf86-video-intel $as_me 2.9.1, which was
2080generated by GNU Autoconf 2.64.  Invocation command line was
2081
2082  $ $0 $@
2083
2084_ACEOF
2085exec 5>>config.log
2086{
2087cat <<_ASUNAME
2088## --------- ##
2089## Platform. ##
2090## --------- ##
2091
2092hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2093uname -m = `(uname -m) 2>/dev/null || echo unknown`
2094uname -r = `(uname -r) 2>/dev/null || echo unknown`
2095uname -s = `(uname -s) 2>/dev/null || echo unknown`
2096uname -v = `(uname -v) 2>/dev/null || echo unknown`
2097
2098/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2099/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2100
2101/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2102/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2103/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2104/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2105/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2106/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2107/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2108
2109_ASUNAME
2110
2111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2112for as_dir in $PATH
2113do
2114  IFS=$as_save_IFS
2115  test -z "$as_dir" && as_dir=.
2116    $as_echo "PATH: $as_dir"
2117  done
2118IFS=$as_save_IFS
2119
2120} >&5
2121
2122cat >&5 <<_ACEOF
2123
2124
2125## ----------- ##
2126## Core tests. ##
2127## ----------- ##
2128
2129_ACEOF
2130
2131
2132# Keep a trace of the command line.
2133# Strip out --no-create and --no-recursion so they do not pile up.
2134# Strip out --silent because we don't want to record it for future runs.
2135# Also quote any args containing shell meta-characters.
2136# Make two passes to allow for proper duplicate-argument suppression.
2137ac_configure_args=
2138ac_configure_args0=
2139ac_configure_args1=
2140ac_must_keep_next=false
2141for ac_pass in 1 2
2142do
2143  for ac_arg
2144  do
2145    case $ac_arg in
2146    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2147    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2148    | -silent | --silent | --silen | --sile | --sil)
2149      continue ;;
2150    *\'*)
2151      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2152    esac
2153    case $ac_pass in
2154    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2155    2)
2156      as_fn_append ac_configure_args1 " '$ac_arg'"
2157      if test $ac_must_keep_next = true; then
2158	ac_must_keep_next=false # Got value, back to normal.
2159      else
2160	case $ac_arg in
2161	  *=* | --config-cache | -C | -disable-* | --disable-* \
2162	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2163	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2164	  | -with-* | --with-* | -without-* | --without-* | --x)
2165	    case "$ac_configure_args0 " in
2166	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2167	    esac
2168	    ;;
2169	  -* ) ac_must_keep_next=true ;;
2170	esac
2171      fi
2172      as_fn_append ac_configure_args " '$ac_arg'"
2173      ;;
2174    esac
2175  done
2176done
2177{ ac_configure_args0=; unset ac_configure_args0;}
2178{ ac_configure_args1=; unset ac_configure_args1;}
2179
2180# When interrupted or exit'd, cleanup temporary files, and complete
2181# config.log.  We remove comments because anyway the quotes in there
2182# would cause problems or look ugly.
2183# WARNING: Use '\'' to represent an apostrophe within the trap.
2184# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2185trap 'exit_status=$?
2186  # Save into config.log some information that might help in debugging.
2187  {
2188    echo
2189
2190    cat <<\_ASBOX
2191## ---------------- ##
2192## Cache variables. ##
2193## ---------------- ##
2194_ASBOX
2195    echo
2196    # The following way of writing the cache mishandles newlines in values,
2197(
2198  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2199    eval ac_val=\$$ac_var
2200    case $ac_val in #(
2201    *${as_nl}*)
2202      case $ac_var in #(
2203      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2204$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2205      esac
2206      case $ac_var in #(
2207      _ | IFS | as_nl) ;; #(
2208      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2209      *) { eval $ac_var=; unset $ac_var;} ;;
2210      esac ;;
2211    esac
2212  done
2213  (set) 2>&1 |
2214    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2215    *${as_nl}ac_space=\ *)
2216      sed -n \
2217	"s/'\''/'\''\\\\'\'''\''/g;
2218	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2219      ;; #(
2220    *)
2221      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2222      ;;
2223    esac |
2224    sort
2225)
2226    echo
2227
2228    cat <<\_ASBOX
2229## ----------------- ##
2230## Output variables. ##
2231## ----------------- ##
2232_ASBOX
2233    echo
2234    for ac_var in $ac_subst_vars
2235    do
2236      eval ac_val=\$$ac_var
2237      case $ac_val in
2238      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2239      esac
2240      $as_echo "$ac_var='\''$ac_val'\''"
2241    done | sort
2242    echo
2243
2244    if test -n "$ac_subst_files"; then
2245      cat <<\_ASBOX
2246## ------------------- ##
2247## File substitutions. ##
2248## ------------------- ##
2249_ASBOX
2250      echo
2251      for ac_var in $ac_subst_files
2252      do
2253	eval ac_val=\$$ac_var
2254	case $ac_val in
2255	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2256	esac
2257	$as_echo "$ac_var='\''$ac_val'\''"
2258      done | sort
2259      echo
2260    fi
2261
2262    if test -s confdefs.h; then
2263      cat <<\_ASBOX
2264## ----------- ##
2265## confdefs.h. ##
2266## ----------- ##
2267_ASBOX
2268      echo
2269      cat confdefs.h
2270      echo
2271    fi
2272    test "$ac_signal" != 0 &&
2273      $as_echo "$as_me: caught signal $ac_signal"
2274    $as_echo "$as_me: exit $exit_status"
2275  } >&5
2276  rm -f core *.core core.conftest.* &&
2277    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2278    exit $exit_status
2279' 0
2280for ac_signal in 1 2 13 15; do
2281  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2282done
2283ac_signal=0
2284
2285# confdefs.h avoids OS command line length limits that DEFS can exceed.
2286rm -f -r conftest* confdefs.h
2287
2288$as_echo "/* confdefs.h */" > confdefs.h
2289
2290# Predefined preprocessor variables.
2291
2292cat >>confdefs.h <<_ACEOF
2293#define PACKAGE_NAME "$PACKAGE_NAME"
2294_ACEOF
2295
2296cat >>confdefs.h <<_ACEOF
2297#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2298_ACEOF
2299
2300cat >>confdefs.h <<_ACEOF
2301#define PACKAGE_VERSION "$PACKAGE_VERSION"
2302_ACEOF
2303
2304cat >>confdefs.h <<_ACEOF
2305#define PACKAGE_STRING "$PACKAGE_STRING"
2306_ACEOF
2307
2308cat >>confdefs.h <<_ACEOF
2309#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2310_ACEOF
2311
2312cat >>confdefs.h <<_ACEOF
2313#define PACKAGE_URL "$PACKAGE_URL"
2314_ACEOF
2315
2316
2317# Let the site file select an alternate cache file if it wants to.
2318# Prefer an explicitly selected file to automatically selected ones.
2319ac_site_file1=NONE
2320ac_site_file2=NONE
2321if test -n "$CONFIG_SITE"; then
2322  ac_site_file1=$CONFIG_SITE
2323elif test "x$prefix" != xNONE; then
2324  ac_site_file1=$prefix/share/config.site
2325  ac_site_file2=$prefix/etc/config.site
2326else
2327  ac_site_file1=$ac_default_prefix/share/config.site
2328  ac_site_file2=$ac_default_prefix/etc/config.site
2329fi
2330for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2331do
2332  test "x$ac_site_file" = xNONE && continue
2333  if test -r "$ac_site_file"; then
2334    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2335$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2336    sed 's/^/| /' "$ac_site_file" >&5
2337    . "$ac_site_file"
2338  fi
2339done
2340
2341if test -r "$cache_file"; then
2342  # Some versions of bash will fail to source /dev/null (special
2343  # files actually), so we avoid doing that.
2344  if test -f "$cache_file"; then
2345    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2346$as_echo "$as_me: loading cache $cache_file" >&6;}
2347    case $cache_file in
2348      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2349      *)                      . "./$cache_file";;
2350    esac
2351  fi
2352else
2353  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2354$as_echo "$as_me: creating cache $cache_file" >&6;}
2355  >$cache_file
2356fi
2357
2358# Check that the precious variables saved in the cache have kept the same
2359# value.
2360ac_cache_corrupted=false
2361for ac_var in $ac_precious_vars; do
2362  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2363  eval ac_new_set=\$ac_env_${ac_var}_set
2364  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2365  eval ac_new_val=\$ac_env_${ac_var}_value
2366  case $ac_old_set,$ac_new_set in
2367    set,)
2368      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2369$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2370      ac_cache_corrupted=: ;;
2371    ,set)
2372      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2373$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2374      ac_cache_corrupted=: ;;
2375    ,);;
2376    *)
2377      if test "x$ac_old_val" != "x$ac_new_val"; then
2378	# differences in whitespace do not lead to failure.
2379	ac_old_val_w=`echo x $ac_old_val`
2380	ac_new_val_w=`echo x $ac_new_val`
2381	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2382	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2383$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2384	  ac_cache_corrupted=:
2385	else
2386	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2387$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2388	  eval $ac_var=\$ac_old_val
2389	fi
2390	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2391$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2392	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2393$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2394      fi;;
2395  esac
2396  # Pass precious variables to config.status.
2397  if test "$ac_new_set" = set; then
2398    case $ac_new_val in
2399    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2400    *) ac_arg=$ac_var=$ac_new_val ;;
2401    esac
2402    case " $ac_configure_args " in
2403      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2404      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2405    esac
2406  fi
2407done
2408if $ac_cache_corrupted; then
2409  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2410$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2411  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2412$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2413  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2414fi
2415## -------------------- ##
2416## Main body of script. ##
2417## -------------------- ##
2418
2419ac_ext=c
2420ac_cpp='$CPP $CPPFLAGS'
2421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2423ac_compiler_gnu=$ac_cv_c_compiler_gnu
2424
2425
2426
2427
2428ac_config_headers="$ac_config_headers config.h"
2429
2430ac_aux_dir=
2431for ac_dir in . "$srcdir"/.; do
2432  for ac_t in install-sh install.sh shtool; do
2433    if test -f "$ac_dir/$ac_t"; then
2434      ac_aux_dir=$ac_dir
2435      ac_install_sh="$ac_aux_dir/$ac_t -c"
2436      break 2
2437    fi
2438  done
2439done
2440if test -z "$ac_aux_dir"; then
2441  as_fn_error "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2442fi
2443
2444# These three variables are undocumented and unsupported,
2445# and are intended to be withdrawn in a future Autoconf release.
2446# They can cause serious problems if a builder's source tree is in a directory
2447# whose full name contains unusual characters.
2448ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2449ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2450ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2451
2452
2453
2454am__api_version='1.11'
2455
2456# Find a good install program.  We prefer a C program (faster),
2457# so one script is as good as another.  But avoid the broken or
2458# incompatible versions:
2459# SysV /etc/install, /usr/sbin/install
2460# SunOS /usr/etc/install
2461# IRIX /sbin/install
2462# AIX /bin/install
2463# AmigaOS /C/install, which installs bootblocks on floppy discs
2464# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2465# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2466# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2467# OS/2's system install, which has a completely different semantic
2468# ./install, which can be erroneously created by make from ./install.sh.
2469# Reject install programs that cannot install multiple files.
2470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2471$as_echo_n "checking for a BSD-compatible install... " >&6; }
2472if test -z "$INSTALL"; then
2473if test "${ac_cv_path_install+set}" = set; then :
2474  $as_echo_n "(cached) " >&6
2475else
2476  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477for as_dir in $PATH
2478do
2479  IFS=$as_save_IFS
2480  test -z "$as_dir" && as_dir=.
2481    # Account for people who put trailing slashes in PATH elements.
2482case $as_dir/ in #((
2483  ./ | .// | /[cC]/* | \
2484  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2485  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2486  /usr/ucb/* ) ;;
2487  *)
2488    # OSF1 and SCO ODT 3.0 have their own names for install.
2489    # Don't use installbsd from OSF since it installs stuff as root
2490    # by default.
2491    for ac_prog in ginstall scoinst install; do
2492      for ac_exec_ext in '' $ac_executable_extensions; do
2493	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2494	  if test $ac_prog = install &&
2495	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2496	    # AIX install.  It has an incompatible calling convention.
2497	    :
2498	  elif test $ac_prog = install &&
2499	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2500	    # program-specific install script used by HP pwplus--don't use.
2501	    :
2502	  else
2503	    rm -rf conftest.one conftest.two conftest.dir
2504	    echo one > conftest.one
2505	    echo two > conftest.two
2506	    mkdir conftest.dir
2507	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2508	      test -s conftest.one && test -s conftest.two &&
2509	      test -s conftest.dir/conftest.one &&
2510	      test -s conftest.dir/conftest.two
2511	    then
2512	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2513	      break 3
2514	    fi
2515	  fi
2516	fi
2517      done
2518    done
2519    ;;
2520esac
2521
2522  done
2523IFS=$as_save_IFS
2524
2525rm -rf conftest.one conftest.two conftest.dir
2526
2527fi
2528  if test "${ac_cv_path_install+set}" = set; then
2529    INSTALL=$ac_cv_path_install
2530  else
2531    # As a last resort, use the slow shell script.  Don't cache a
2532    # value for INSTALL within a source directory, because that will
2533    # break other packages using the cache if that directory is
2534    # removed, or if the value is a relative name.
2535    INSTALL=$ac_install_sh
2536  fi
2537fi
2538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2539$as_echo "$INSTALL" >&6; }
2540
2541# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2542# It thinks the first close brace ends the variable substitution.
2543test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2544
2545test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2546
2547test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2548
2549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2550$as_echo_n "checking whether build environment is sane... " >&6; }
2551# Just in case
2552sleep 1
2553echo timestamp > conftest.file
2554# Reject unsafe characters in $srcdir or the absolute working directory
2555# name.  Accept space and tab only in the latter.
2556am_lf='
2557'
2558case `pwd` in
2559  *[\\\"\#\$\&\'\`$am_lf]*)
2560    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2561esac
2562case $srcdir in
2563  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2564    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2565esac
2566
2567# Do `set' in a subshell so we don't clobber the current shell's
2568# arguments.  Must try -L first in case configure is actually a
2569# symlink; some systems play weird games with the mod time of symlinks
2570# (eg FreeBSD returns the mod time of the symlink's containing
2571# directory).
2572if (
2573   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2574   if test "$*" = "X"; then
2575      # -L didn't work.
2576      set X `ls -t "$srcdir/configure" conftest.file`
2577   fi
2578   rm -f conftest.file
2579   if test "$*" != "X $srcdir/configure conftest.file" \
2580      && test "$*" != "X conftest.file $srcdir/configure"; then
2581
2582      # If neither matched, then we have a broken ls.  This can happen
2583      # if, for instance, CONFIG_SHELL is bash and it inherits a
2584      # broken ls alias from the environment.  This has actually
2585      # happened.  Such a system could not be considered "sane".
2586      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2587alias in your environment" "$LINENO" 5
2588   fi
2589
2590   test "$2" = conftest.file
2591   )
2592then
2593   # Ok.
2594   :
2595else
2596   as_fn_error "newly created file is older than distributed files!
2597Check your system clock" "$LINENO" 5
2598fi
2599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2600$as_echo "yes" >&6; }
2601test "$program_prefix" != NONE &&
2602  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2603# Use a double $ so make ignores it.
2604test "$program_suffix" != NONE &&
2605  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2606# Double any \ or $.
2607# By default was `s,x,x', remove it if useless.
2608ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2609program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2610
2611# expand $ac_aux_dir to an absolute path
2612am_aux_dir=`cd $ac_aux_dir && pwd`
2613
2614if test x"${MISSING+set}" != xset; then
2615  case $am_aux_dir in
2616  *\ * | *\	*)
2617    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2618  *)
2619    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2620  esac
2621fi
2622# Use eval to expand $SHELL
2623if eval "$MISSING --run true"; then
2624  am_missing_run="$MISSING --run "
2625else
2626  am_missing_run=
2627  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2628$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2629fi
2630
2631if test x"${install_sh}" != xset; then
2632  case $am_aux_dir in
2633  *\ * | *\	*)
2634    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2635  *)
2636    install_sh="\${SHELL} $am_aux_dir/install-sh"
2637  esac
2638fi
2639
2640# Installed binaries are usually stripped using `strip' when the user
2641# run `make install-strip'.  However `strip' might not be the right
2642# tool to use in cross-compilation environments, therefore Automake
2643# will honor the `STRIP' environment variable to overrule this program.
2644if test "$cross_compiling" != no; then
2645  if test -n "$ac_tool_prefix"; then
2646  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2647set dummy ${ac_tool_prefix}strip; ac_word=$2
2648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2649$as_echo_n "checking for $ac_word... " >&6; }
2650if test "${ac_cv_prog_STRIP+set}" = set; then :
2651  $as_echo_n "(cached) " >&6
2652else
2653  if test -n "$STRIP"; then
2654  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2655else
2656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657for as_dir in $PATH
2658do
2659  IFS=$as_save_IFS
2660  test -z "$as_dir" && as_dir=.
2661    for ac_exec_ext in '' $ac_executable_extensions; do
2662  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2663    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2664    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2665    break 2
2666  fi
2667done
2668  done
2669IFS=$as_save_IFS
2670
2671fi
2672fi
2673STRIP=$ac_cv_prog_STRIP
2674if test -n "$STRIP"; then
2675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2676$as_echo "$STRIP" >&6; }
2677else
2678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2679$as_echo "no" >&6; }
2680fi
2681
2682
2683fi
2684if test -z "$ac_cv_prog_STRIP"; then
2685  ac_ct_STRIP=$STRIP
2686  # Extract the first word of "strip", so it can be a program name with args.
2687set dummy strip; ac_word=$2
2688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2689$as_echo_n "checking for $ac_word... " >&6; }
2690if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2691  $as_echo_n "(cached) " >&6
2692else
2693  if test -n "$ac_ct_STRIP"; then
2694  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2695else
2696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697for as_dir in $PATH
2698do
2699  IFS=$as_save_IFS
2700  test -z "$as_dir" && as_dir=.
2701    for ac_exec_ext in '' $ac_executable_extensions; do
2702  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2703    ac_cv_prog_ac_ct_STRIP="strip"
2704    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2705    break 2
2706  fi
2707done
2708  done
2709IFS=$as_save_IFS
2710
2711fi
2712fi
2713ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2714if test -n "$ac_ct_STRIP"; then
2715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2716$as_echo "$ac_ct_STRIP" >&6; }
2717else
2718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2719$as_echo "no" >&6; }
2720fi
2721
2722  if test "x$ac_ct_STRIP" = x; then
2723    STRIP=":"
2724  else
2725    case $cross_compiling:$ac_tool_warned in
2726yes:)
2727{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2728$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2729ac_tool_warned=yes ;;
2730esac
2731    STRIP=$ac_ct_STRIP
2732  fi
2733else
2734  STRIP="$ac_cv_prog_STRIP"
2735fi
2736
2737fi
2738INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2739
2740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2741$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2742if test -z "$MKDIR_P"; then
2743  if test "${ac_cv_path_mkdir+set}" = set; then :
2744  $as_echo_n "(cached) " >&6
2745else
2746  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2748do
2749  IFS=$as_save_IFS
2750  test -z "$as_dir" && as_dir=.
2751    for ac_prog in mkdir gmkdir; do
2752	 for ac_exec_ext in '' $ac_executable_extensions; do
2753	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2754	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2755	     'mkdir (GNU coreutils) '* | \
2756	     'mkdir (coreutils) '* | \
2757	     'mkdir (fileutils) '4.1*)
2758	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2759	       break 3;;
2760	   esac
2761	 done
2762       done
2763  done
2764IFS=$as_save_IFS
2765
2766fi
2767
2768  if test "${ac_cv_path_mkdir+set}" = set; then
2769    MKDIR_P="$ac_cv_path_mkdir -p"
2770  else
2771    # As a last resort, use the slow shell script.  Don't cache a
2772    # value for MKDIR_P within a source directory, because that will
2773    # break other packages using the cache if that directory is
2774    # removed, or if the value is a relative name.
2775    test -d ./--version && rmdir ./--version
2776    MKDIR_P="$ac_install_sh -d"
2777  fi
2778fi
2779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2780$as_echo "$MKDIR_P" >&6; }
2781
2782mkdir_p="$MKDIR_P"
2783case $mkdir_p in
2784  [\\/$]* | ?:[\\/]*) ;;
2785  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2786esac
2787
2788for ac_prog in gawk mawk nawk awk
2789do
2790  # Extract the first word of "$ac_prog", so it can be a program name with args.
2791set dummy $ac_prog; ac_word=$2
2792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2793$as_echo_n "checking for $ac_word... " >&6; }
2794if test "${ac_cv_prog_AWK+set}" = set; then :
2795  $as_echo_n "(cached) " >&6
2796else
2797  if test -n "$AWK"; then
2798  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2799else
2800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801for as_dir in $PATH
2802do
2803  IFS=$as_save_IFS
2804  test -z "$as_dir" && as_dir=.
2805    for ac_exec_ext in '' $ac_executable_extensions; do
2806  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2807    ac_cv_prog_AWK="$ac_prog"
2808    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2809    break 2
2810  fi
2811done
2812  done
2813IFS=$as_save_IFS
2814
2815fi
2816fi
2817AWK=$ac_cv_prog_AWK
2818if test -n "$AWK"; then
2819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2820$as_echo "$AWK" >&6; }
2821else
2822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2823$as_echo "no" >&6; }
2824fi
2825
2826
2827  test -n "$AWK" && break
2828done
2829
2830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2831$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2832set x ${MAKE-make}
2833ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2834if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2835  $as_echo_n "(cached) " >&6
2836else
2837  cat >conftest.make <<\_ACEOF
2838SHELL = /bin/sh
2839all:
2840	@echo '@@@%%%=$(MAKE)=@@@%%%'
2841_ACEOF
2842# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2843case `${MAKE-make} -f conftest.make 2>/dev/null` in
2844  *@@@%%%=?*=@@@%%%*)
2845    eval ac_cv_prog_make_${ac_make}_set=yes;;
2846  *)
2847    eval ac_cv_prog_make_${ac_make}_set=no;;
2848esac
2849rm -f conftest.make
2850fi
2851if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2853$as_echo "yes" >&6; }
2854  SET_MAKE=
2855else
2856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2857$as_echo "no" >&6; }
2858  SET_MAKE="MAKE=${MAKE-make}"
2859fi
2860
2861rm -rf .tst 2>/dev/null
2862mkdir .tst 2>/dev/null
2863if test -d .tst; then
2864  am__leading_dot=.
2865else
2866  am__leading_dot=_
2867fi
2868rmdir .tst 2>/dev/null
2869
2870if test "`cd $srcdir && pwd`" != "`pwd`"; then
2871  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2872  # is not polluted with repeated "-I."
2873  am__isrc=' -I$(srcdir)'
2874  # test to see if srcdir already configured
2875  if test -f $srcdir/config.status; then
2876    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2877  fi
2878fi
2879
2880# test whether we have cygpath
2881if test -z "$CYGPATH_W"; then
2882  if (cygpath --version) >/dev/null 2>/dev/null; then
2883    CYGPATH_W='cygpath -w'
2884  else
2885    CYGPATH_W=echo
2886  fi
2887fi
2888
2889
2890# Define the identity of the package.
2891 PACKAGE='xf86-video-intel'
2892 VERSION='2.9.1'
2893
2894
2895cat >>confdefs.h <<_ACEOF
2896#define PACKAGE "$PACKAGE"
2897_ACEOF
2898
2899
2900cat >>confdefs.h <<_ACEOF
2901#define VERSION "$VERSION"
2902_ACEOF
2903
2904# Some tools Automake needs.
2905
2906ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2907
2908
2909AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2910
2911
2912AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2913
2914
2915AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2916
2917
2918MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2919
2920# We need awk for the "check" target.  The system "awk" is bad on
2921# some platforms.
2922# Always define AMTAR for backward compatibility.
2923
2924AMTAR=${AMTAR-"${am_missing_run}tar"}
2925
2926am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2927
2928
2929
2930
2931
2932
2933
2934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2935$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2936    # Check whether --enable-maintainer-mode was given.
2937if test "${enable_maintainer_mode+set}" = set; then :
2938  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2939else
2940  USE_MAINTAINER_MODE=no
2941fi
2942
2943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2944$as_echo "$USE_MAINTAINER_MODE" >&6; }
2945   if test $USE_MAINTAINER_MODE = yes; then
2946  MAINTAINER_MODE_TRUE=
2947  MAINTAINER_MODE_FALSE='#'
2948else
2949  MAINTAINER_MODE_TRUE='#'
2950  MAINTAINER_MODE_FALSE=
2951fi
2952
2953  MAINT=$MAINTAINER_MODE_TRUE
2954
2955
2956
2957ac_config_files="$ac_config_files shave shave-libtool"
2958
2959
2960# Checks for programs.
2961# Check whether --enable-static was given.
2962if test "${enable_static+set}" = set; then :
2963  enableval=$enable_static; p=${PACKAGE-default}
2964    case $enableval in
2965    yes) enable_static=yes ;;
2966    no) enable_static=no ;;
2967    *)
2968     enable_static=no
2969      # Look at the argument we got.  We use all the common list separators.
2970      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2971      for pkg in $enableval; do
2972	IFS="$lt_save_ifs"
2973	if test "X$pkg" = "X$p"; then
2974	  enable_static=yes
2975	fi
2976      done
2977      IFS="$lt_save_ifs"
2978      ;;
2979    esac
2980else
2981  enable_static=no
2982fi
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992case `pwd` in
2993  *\ * | *\	*)
2994    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2995$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2996esac
2997
2998
2999
3000macro_version='2.2.6'
3001macro_revision='1.3012'
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015ltmain="$ac_aux_dir/ltmain.sh"
3016
3017# Make sure we can run config.sub.
3018$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3019  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3020
3021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3022$as_echo_n "checking build system type... " >&6; }
3023if test "${ac_cv_build+set}" = set; then :
3024  $as_echo_n "(cached) " >&6
3025else
3026  ac_build_alias=$build_alias
3027test "x$ac_build_alias" = x &&
3028  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3029test "x$ac_build_alias" = x &&
3030  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3031ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3032  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3033
3034fi
3035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3036$as_echo "$ac_cv_build" >&6; }
3037case $ac_cv_build in
3038*-*-*) ;;
3039*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3040esac
3041build=$ac_cv_build
3042ac_save_IFS=$IFS; IFS='-'
3043set x $ac_cv_build
3044shift
3045build_cpu=$1
3046build_vendor=$2
3047shift; shift
3048# Remember, the first character of IFS is used to create $*,
3049# except with old shells:
3050build_os=$*
3051IFS=$ac_save_IFS
3052case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3053
3054
3055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3056$as_echo_n "checking host system type... " >&6; }
3057if test "${ac_cv_host+set}" = set; then :
3058  $as_echo_n "(cached) " >&6
3059else
3060  if test "x$host_alias" = x; then
3061  ac_cv_host=$ac_cv_build
3062else
3063  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3064    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3065fi
3066
3067fi
3068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3069$as_echo "$ac_cv_host" >&6; }
3070case $ac_cv_host in
3071*-*-*) ;;
3072*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3073esac
3074host=$ac_cv_host
3075ac_save_IFS=$IFS; IFS='-'
3076set x $ac_cv_host
3077shift
3078host_cpu=$1
3079host_vendor=$2
3080shift; shift
3081# Remember, the first character of IFS is used to create $*,
3082# except with old shells:
3083host_os=$*
3084IFS=$ac_save_IFS
3085case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3086
3087
3088DEPDIR="${am__leading_dot}deps"
3089
3090ac_config_commands="$ac_config_commands depfiles"
3091
3092
3093am_make=${MAKE-make}
3094cat > confinc << 'END'
3095am__doit:
3096	@echo this is the am__doit target
3097.PHONY: am__doit
3098END
3099# If we don't find an include directive, just comment out the code.
3100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3101$as_echo_n "checking for style of include used by $am_make... " >&6; }
3102am__include="#"
3103am__quote=
3104_am_result=none
3105# First try GNU make style include.
3106echo "include confinc" > confmf
3107# Ignore all kinds of additional output from `make'.
3108case `$am_make -s -f confmf 2> /dev/null` in #(
3109*the\ am__doit\ target*)
3110  am__include=include
3111  am__quote=
3112  _am_result=GNU
3113  ;;
3114esac
3115# Now try BSD make style include.
3116if test "$am__include" = "#"; then
3117   echo '.include "confinc"' > confmf
3118   case `$am_make -s -f confmf 2> /dev/null` in #(
3119   *the\ am__doit\ target*)
3120     am__include=.include
3121     am__quote="\""
3122     _am_result=BSD
3123     ;;
3124   esac
3125fi
3126
3127
3128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3129$as_echo "$_am_result" >&6; }
3130rm -f confinc confmf
3131
3132# Check whether --enable-dependency-tracking was given.
3133if test "${enable_dependency_tracking+set}" = set; then :
3134  enableval=$enable_dependency_tracking;
3135fi
3136
3137if test "x$enable_dependency_tracking" != xno; then
3138  am_depcomp="$ac_aux_dir/depcomp"
3139  AMDEPBACKSLASH='\'
3140fi
3141 if test "x$enable_dependency_tracking" != xno; then
3142  AMDEP_TRUE=
3143  AMDEP_FALSE='#'
3144else
3145  AMDEP_TRUE='#'
3146  AMDEP_FALSE=
3147fi
3148
3149
3150ac_ext=c
3151ac_cpp='$CPP $CPPFLAGS'
3152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3154ac_compiler_gnu=$ac_cv_c_compiler_gnu
3155if test -n "$ac_tool_prefix"; then
3156  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3157set dummy ${ac_tool_prefix}gcc; ac_word=$2
3158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3159$as_echo_n "checking for $ac_word... " >&6; }
3160if test "${ac_cv_prog_CC+set}" = set; then :
3161  $as_echo_n "(cached) " >&6
3162else
3163  if test -n "$CC"; then
3164  ac_cv_prog_CC="$CC" # Let the user override the test.
3165else
3166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167for as_dir in $PATH
3168do
3169  IFS=$as_save_IFS
3170  test -z "$as_dir" && as_dir=.
3171    for ac_exec_ext in '' $ac_executable_extensions; do
3172  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3173    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3174    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3175    break 2
3176  fi
3177done
3178  done
3179IFS=$as_save_IFS
3180
3181fi
3182fi
3183CC=$ac_cv_prog_CC
3184if test -n "$CC"; then
3185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3186$as_echo "$CC" >&6; }
3187else
3188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3189$as_echo "no" >&6; }
3190fi
3191
3192
3193fi
3194if test -z "$ac_cv_prog_CC"; then
3195  ac_ct_CC=$CC
3196  # Extract the first word of "gcc", so it can be a program name with args.
3197set dummy gcc; ac_word=$2
3198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3199$as_echo_n "checking for $ac_word... " >&6; }
3200if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3201  $as_echo_n "(cached) " >&6
3202else
3203  if test -n "$ac_ct_CC"; then
3204  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3205else
3206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207for as_dir in $PATH
3208do
3209  IFS=$as_save_IFS
3210  test -z "$as_dir" && as_dir=.
3211    for ac_exec_ext in '' $ac_executable_extensions; do
3212  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3213    ac_cv_prog_ac_ct_CC="gcc"
3214    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3215    break 2
3216  fi
3217done
3218  done
3219IFS=$as_save_IFS
3220
3221fi
3222fi
3223ac_ct_CC=$ac_cv_prog_ac_ct_CC
3224if test -n "$ac_ct_CC"; then
3225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3226$as_echo "$ac_ct_CC" >&6; }
3227else
3228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3229$as_echo "no" >&6; }
3230fi
3231
3232  if test "x$ac_ct_CC" = x; then
3233    CC=""
3234  else
3235    case $cross_compiling:$ac_tool_warned in
3236yes:)
3237{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3238$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3239ac_tool_warned=yes ;;
3240esac
3241    CC=$ac_ct_CC
3242  fi
3243else
3244  CC="$ac_cv_prog_CC"
3245fi
3246
3247if test -z "$CC"; then
3248          if test -n "$ac_tool_prefix"; then
3249    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3250set dummy ${ac_tool_prefix}cc; ac_word=$2
3251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3252$as_echo_n "checking for $ac_word... " >&6; }
3253if test "${ac_cv_prog_CC+set}" = set; then :
3254  $as_echo_n "(cached) " >&6
3255else
3256  if test -n "$CC"; then
3257  ac_cv_prog_CC="$CC" # Let the user override the test.
3258else
3259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260for as_dir in $PATH
3261do
3262  IFS=$as_save_IFS
3263  test -z "$as_dir" && as_dir=.
3264    for ac_exec_ext in '' $ac_executable_extensions; do
3265  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3266    ac_cv_prog_CC="${ac_tool_prefix}cc"
3267    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3268    break 2
3269  fi
3270done
3271  done
3272IFS=$as_save_IFS
3273
3274fi
3275fi
3276CC=$ac_cv_prog_CC
3277if test -n "$CC"; then
3278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3279$as_echo "$CC" >&6; }
3280else
3281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3282$as_echo "no" >&6; }
3283fi
3284
3285
3286  fi
3287fi
3288if test -z "$CC"; then
3289  # Extract the first word of "cc", so it can be a program name with args.
3290set dummy cc; ac_word=$2
3291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3292$as_echo_n "checking for $ac_word... " >&6; }
3293if test "${ac_cv_prog_CC+set}" = set; then :
3294  $as_echo_n "(cached) " >&6
3295else
3296  if test -n "$CC"; then
3297  ac_cv_prog_CC="$CC" # Let the user override the test.
3298else
3299  ac_prog_rejected=no
3300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3301for as_dir in $PATH
3302do
3303  IFS=$as_save_IFS
3304  test -z "$as_dir" && as_dir=.
3305    for ac_exec_ext in '' $ac_executable_extensions; do
3306  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3307    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3308       ac_prog_rejected=yes
3309       continue
3310     fi
3311    ac_cv_prog_CC="cc"
3312    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3313    break 2
3314  fi
3315done
3316  done
3317IFS=$as_save_IFS
3318
3319if test $ac_prog_rejected = yes; then
3320  # We found a bogon in the path, so make sure we never use it.
3321  set dummy $ac_cv_prog_CC
3322  shift
3323  if test $# != 0; then
3324    # We chose a different compiler from the bogus one.
3325    # However, it has the same basename, so the bogon will be chosen
3326    # first if we set CC to just the basename; use the full file name.
3327    shift
3328    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3329  fi
3330fi
3331fi
3332fi
3333CC=$ac_cv_prog_CC
3334if test -n "$CC"; then
3335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3336$as_echo "$CC" >&6; }
3337else
3338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3339$as_echo "no" >&6; }
3340fi
3341
3342
3343fi
3344if test -z "$CC"; then
3345  if test -n "$ac_tool_prefix"; then
3346  for ac_prog in cl.exe
3347  do
3348    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3349set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3351$as_echo_n "checking for $ac_word... " >&6; }
3352if test "${ac_cv_prog_CC+set}" = set; then :
3353  $as_echo_n "(cached) " >&6
3354else
3355  if test -n "$CC"; then
3356  ac_cv_prog_CC="$CC" # Let the user override the test.
3357else
3358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3359for as_dir in $PATH
3360do
3361  IFS=$as_save_IFS
3362  test -z "$as_dir" && as_dir=.
3363    for ac_exec_ext in '' $ac_executable_extensions; do
3364  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3365    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3366    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3367    break 2
3368  fi
3369done
3370  done
3371IFS=$as_save_IFS
3372
3373fi
3374fi
3375CC=$ac_cv_prog_CC
3376if test -n "$CC"; then
3377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3378$as_echo "$CC" >&6; }
3379else
3380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3381$as_echo "no" >&6; }
3382fi
3383
3384
3385    test -n "$CC" && break
3386  done
3387fi
3388if test -z "$CC"; then
3389  ac_ct_CC=$CC
3390  for ac_prog in cl.exe
3391do
3392  # Extract the first word of "$ac_prog", so it can be a program name with args.
3393set dummy $ac_prog; ac_word=$2
3394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3395$as_echo_n "checking for $ac_word... " >&6; }
3396if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3397  $as_echo_n "(cached) " >&6
3398else
3399  if test -n "$ac_ct_CC"; then
3400  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3401else
3402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3403for as_dir in $PATH
3404do
3405  IFS=$as_save_IFS
3406  test -z "$as_dir" && as_dir=.
3407    for ac_exec_ext in '' $ac_executable_extensions; do
3408  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3409    ac_cv_prog_ac_ct_CC="$ac_prog"
3410    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3411    break 2
3412  fi
3413done
3414  done
3415IFS=$as_save_IFS
3416
3417fi
3418fi
3419ac_ct_CC=$ac_cv_prog_ac_ct_CC
3420if test -n "$ac_ct_CC"; then
3421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3422$as_echo "$ac_ct_CC" >&6; }
3423else
3424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3425$as_echo "no" >&6; }
3426fi
3427
3428
3429  test -n "$ac_ct_CC" && break
3430done
3431
3432  if test "x$ac_ct_CC" = x; then
3433    CC=""
3434  else
3435    case $cross_compiling:$ac_tool_warned in
3436yes:)
3437{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3438$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3439ac_tool_warned=yes ;;
3440esac
3441    CC=$ac_ct_CC
3442  fi
3443fi
3444
3445fi
3446
3447
3448test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3449$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3450as_fn_error "no acceptable C compiler found in \$PATH
3451See \`config.log' for more details." "$LINENO" 5; }
3452
3453# Provide some information about the compiler.
3454$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3455set X $ac_compile
3456ac_compiler=$2
3457for ac_option in --version -v -V -qversion; do
3458  { { ac_try="$ac_compiler $ac_option >&5"
3459case "(($ac_try" in
3460  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3461  *) ac_try_echo=$ac_try;;
3462esac
3463eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3464$as_echo "$ac_try_echo"; } >&5
3465  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3466  ac_status=$?
3467  if test -s conftest.err; then
3468    sed '10a\
3469... rest of stderr output deleted ...
3470         10q' conftest.err >conftest.er1
3471    cat conftest.er1 >&5
3472    rm -f conftest.er1 conftest.err
3473  fi
3474  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3475  test $ac_status = 0; }
3476done
3477
3478cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3479/* end confdefs.h.  */
3480#include <stdio.h>
3481int
3482main ()
3483{
3484FILE *f = fopen ("conftest.out", "w");
3485 return ferror (f) || fclose (f) != 0;
3486
3487  ;
3488  return 0;
3489}
3490_ACEOF
3491ac_clean_files_save=$ac_clean_files
3492ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3493# Try to create an executable without -o first, disregard a.out.
3494# It will help us diagnose broken compilers, and finding out an intuition
3495# of exeext.
3496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3497$as_echo_n "checking for C compiler default output file name... " >&6; }
3498ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3499
3500# The possible output files:
3501ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3502
3503ac_rmfiles=
3504for ac_file in $ac_files
3505do
3506  case $ac_file in
3507    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3508    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3509  esac
3510done
3511rm -f $ac_rmfiles
3512
3513if { { ac_try="$ac_link_default"
3514case "(($ac_try" in
3515  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516  *) ac_try_echo=$ac_try;;
3517esac
3518eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3519$as_echo "$ac_try_echo"; } >&5
3520  (eval "$ac_link_default") 2>&5
3521  ac_status=$?
3522  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3523  test $ac_status = 0; }; then :
3524  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3525# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3526# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3527# so that the user can short-circuit this test for compilers unknown to
3528# Autoconf.
3529for ac_file in $ac_files ''
3530do
3531  test -f "$ac_file" || continue
3532  case $ac_file in
3533    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3534	;;
3535    [ab].out )
3536	# We found the default executable, but exeext='' is most
3537	# certainly right.
3538	break;;
3539    *.* )
3540	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3541	then :; else
3542	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3543	fi
3544	# We set ac_cv_exeext here because the later test for it is not
3545	# safe: cross compilers may not add the suffix if given an `-o'
3546	# argument, so we may need to know it at that point already.
3547	# Even if this section looks crufty: it has the advantage of
3548	# actually working.
3549	break;;
3550    * )
3551	break;;
3552  esac
3553done
3554test "$ac_cv_exeext" = no && ac_cv_exeext=
3555
3556else
3557  ac_file=''
3558fi
3559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3560$as_echo "$ac_file" >&6; }
3561if test -z "$ac_file"; then :
3562  $as_echo "$as_me: failed program was:" >&5
3563sed 's/^/| /' conftest.$ac_ext >&5
3564
3565{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3566$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3567{ as_fn_set_status 77
3568as_fn_error "C compiler cannot create executables
3569See \`config.log' for more details." "$LINENO" 5; }; }
3570fi
3571ac_exeext=$ac_cv_exeext
3572
3573# Check that the compiler produces executables we can run.  If not, either
3574# the compiler is broken, or we cross compile.
3575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3576$as_echo_n "checking whether the C compiler works... " >&6; }
3577# If not cross compiling, check that we can run a simple program.
3578if test "$cross_compiling" != yes; then
3579  if { ac_try='./$ac_file'
3580  { { case "(($ac_try" in
3581  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3582  *) ac_try_echo=$ac_try;;
3583esac
3584eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3585$as_echo "$ac_try_echo"; } >&5
3586  (eval "$ac_try") 2>&5
3587  ac_status=$?
3588  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3589  test $ac_status = 0; }; }; then
3590    cross_compiling=no
3591  else
3592    if test "$cross_compiling" = maybe; then
3593	cross_compiling=yes
3594    else
3595	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3596$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3597as_fn_error "cannot run C compiled programs.
3598If you meant to cross compile, use \`--host'.
3599See \`config.log' for more details." "$LINENO" 5; }
3600    fi
3601  fi
3602fi
3603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3604$as_echo "yes" >&6; }
3605
3606rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3607ac_clean_files=$ac_clean_files_save
3608# Check that the compiler produces executables we can run.  If not, either
3609# the compiler is broken, or we cross compile.
3610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3611$as_echo_n "checking whether we are cross compiling... " >&6; }
3612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3613$as_echo "$cross_compiling" >&6; }
3614
3615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3616$as_echo_n "checking for suffix of executables... " >&6; }
3617if { { ac_try="$ac_link"
3618case "(($ac_try" in
3619  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3620  *) ac_try_echo=$ac_try;;
3621esac
3622eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3623$as_echo "$ac_try_echo"; } >&5
3624  (eval "$ac_link") 2>&5
3625  ac_status=$?
3626  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3627  test $ac_status = 0; }; then :
3628  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3629# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3630# work properly (i.e., refer to `conftest.exe'), while it won't with
3631# `rm'.
3632for ac_file in conftest.exe conftest conftest.*; do
3633  test -f "$ac_file" || continue
3634  case $ac_file in
3635    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3636    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3637	  break;;
3638    * ) break;;
3639  esac
3640done
3641else
3642  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3643$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3644as_fn_error "cannot compute suffix of executables: cannot compile and link
3645See \`config.log' for more details." "$LINENO" 5; }
3646fi
3647rm -f conftest$ac_cv_exeext
3648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3649$as_echo "$ac_cv_exeext" >&6; }
3650
3651rm -f conftest.$ac_ext
3652EXEEXT=$ac_cv_exeext
3653ac_exeext=$EXEEXT
3654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3655$as_echo_n "checking for suffix of object files... " >&6; }
3656if test "${ac_cv_objext+set}" = set; then :
3657  $as_echo_n "(cached) " >&6
3658else
3659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3660/* end confdefs.h.  */
3661
3662int
3663main ()
3664{
3665
3666  ;
3667  return 0;
3668}
3669_ACEOF
3670rm -f conftest.o conftest.obj
3671if { { ac_try="$ac_compile"
3672case "(($ac_try" in
3673  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3674  *) ac_try_echo=$ac_try;;
3675esac
3676eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3677$as_echo "$ac_try_echo"; } >&5
3678  (eval "$ac_compile") 2>&5
3679  ac_status=$?
3680  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3681  test $ac_status = 0; }; then :
3682  for ac_file in conftest.o conftest.obj conftest.*; do
3683  test -f "$ac_file" || continue;
3684  case $ac_file in
3685    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3686    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3687       break;;
3688  esac
3689done
3690else
3691  $as_echo "$as_me: failed program was:" >&5
3692sed 's/^/| /' conftest.$ac_ext >&5
3693
3694{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3695$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3696as_fn_error "cannot compute suffix of object files: cannot compile
3697See \`config.log' for more details." "$LINENO" 5; }
3698fi
3699rm -f conftest.$ac_cv_objext conftest.$ac_ext
3700fi
3701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3702$as_echo "$ac_cv_objext" >&6; }
3703OBJEXT=$ac_cv_objext
3704ac_objext=$OBJEXT
3705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3706$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3707if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3708  $as_echo_n "(cached) " >&6
3709else
3710  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3711/* end confdefs.h.  */
3712
3713int
3714main ()
3715{
3716#ifndef __GNUC__
3717       choke me
3718#endif
3719
3720  ;
3721  return 0;
3722}
3723_ACEOF
3724if ac_fn_c_try_compile "$LINENO"; then :
3725  ac_compiler_gnu=yes
3726else
3727  ac_compiler_gnu=no
3728fi
3729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3730ac_cv_c_compiler_gnu=$ac_compiler_gnu
3731
3732fi
3733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3734$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3735if test $ac_compiler_gnu = yes; then
3736  GCC=yes
3737else
3738  GCC=
3739fi
3740ac_test_CFLAGS=${CFLAGS+set}
3741ac_save_CFLAGS=$CFLAGS
3742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3743$as_echo_n "checking whether $CC accepts -g... " >&6; }
3744if test "${ac_cv_prog_cc_g+set}" = set; then :
3745  $as_echo_n "(cached) " >&6
3746else
3747  ac_save_c_werror_flag=$ac_c_werror_flag
3748   ac_c_werror_flag=yes
3749   ac_cv_prog_cc_g=no
3750   CFLAGS="-g"
3751   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3752/* end confdefs.h.  */
3753
3754int
3755main ()
3756{
3757
3758  ;
3759  return 0;
3760}
3761_ACEOF
3762if ac_fn_c_try_compile "$LINENO"; then :
3763  ac_cv_prog_cc_g=yes
3764else
3765  CFLAGS=""
3766      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3767/* end confdefs.h.  */
3768
3769int
3770main ()
3771{
3772
3773  ;
3774  return 0;
3775}
3776_ACEOF
3777if ac_fn_c_try_compile "$LINENO"; then :
3778
3779else
3780  ac_c_werror_flag=$ac_save_c_werror_flag
3781	 CFLAGS="-g"
3782	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3783/* end confdefs.h.  */
3784
3785int
3786main ()
3787{
3788
3789  ;
3790  return 0;
3791}
3792_ACEOF
3793if ac_fn_c_try_compile "$LINENO"; then :
3794  ac_cv_prog_cc_g=yes
3795fi
3796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3797fi
3798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3799fi
3800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3801   ac_c_werror_flag=$ac_save_c_werror_flag
3802fi
3803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3804$as_echo "$ac_cv_prog_cc_g" >&6; }
3805if test "$ac_test_CFLAGS" = set; then
3806  CFLAGS=$ac_save_CFLAGS
3807elif test $ac_cv_prog_cc_g = yes; then
3808  if test "$GCC" = yes; then
3809    CFLAGS="-g -O2"
3810  else
3811    CFLAGS="-g"
3812  fi
3813else
3814  if test "$GCC" = yes; then
3815    CFLAGS="-O2"
3816  else
3817    CFLAGS=
3818  fi
3819fi
3820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3821$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3822if test "${ac_cv_prog_cc_c89+set}" = set; then :
3823  $as_echo_n "(cached) " >&6
3824else
3825  ac_cv_prog_cc_c89=no
3826ac_save_CC=$CC
3827cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3828/* end confdefs.h.  */
3829#include <stdarg.h>
3830#include <stdio.h>
3831#include <sys/types.h>
3832#include <sys/stat.h>
3833/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3834struct buf { int x; };
3835FILE * (*rcsopen) (struct buf *, struct stat *, int);
3836static char *e (p, i)
3837     char **p;
3838     int i;
3839{
3840  return p[i];
3841}
3842static char *f (char * (*g) (char **, int), char **p, ...)
3843{
3844  char *s;
3845  va_list v;
3846  va_start (v,p);
3847  s = g (p, va_arg (v,int));
3848  va_end (v);
3849  return s;
3850}
3851
3852/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3853   function prototypes and stuff, but not '\xHH' hex character constants.
3854   These don't provoke an error unfortunately, instead are silently treated
3855   as 'x'.  The following induces an error, until -std is added to get
3856   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3857   array size at least.  It's necessary to write '\x00'==0 to get something
3858   that's true only with -std.  */
3859int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3860
3861/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3862   inside strings and character constants.  */
3863#define FOO(x) 'x'
3864int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3865
3866int test (int i, double x);
3867struct s1 {int (*f) (int a);};
3868struct s2 {int (*f) (double a);};
3869int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3870int argc;
3871char **argv;
3872int
3873main ()
3874{
3875return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3876  ;
3877  return 0;
3878}
3879_ACEOF
3880for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3881	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3882do
3883  CC="$ac_save_CC $ac_arg"
3884  if ac_fn_c_try_compile "$LINENO"; then :
3885  ac_cv_prog_cc_c89=$ac_arg
3886fi
3887rm -f core conftest.err conftest.$ac_objext
3888  test "x$ac_cv_prog_cc_c89" != "xno" && break
3889done
3890rm -f conftest.$ac_ext
3891CC=$ac_save_CC
3892
3893fi
3894# AC_CACHE_VAL
3895case "x$ac_cv_prog_cc_c89" in
3896  x)
3897    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3898$as_echo "none needed" >&6; } ;;
3899  xno)
3900    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3901$as_echo "unsupported" >&6; } ;;
3902  *)
3903    CC="$CC $ac_cv_prog_cc_c89"
3904    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3905$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3906esac
3907if test "x$ac_cv_prog_cc_c89" != xno; then :
3908
3909fi
3910
3911ac_ext=c
3912ac_cpp='$CPP $CPPFLAGS'
3913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3915ac_compiler_gnu=$ac_cv_c_compiler_gnu
3916
3917depcc="$CC"   am_compiler_list=
3918
3919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3920$as_echo_n "checking dependency style of $depcc... " >&6; }
3921if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3922  $as_echo_n "(cached) " >&6
3923else
3924  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3925  # We make a subdir and do the tests there.  Otherwise we can end up
3926  # making bogus files that we don't know about and never remove.  For
3927  # instance it was reported that on HP-UX the gcc test will end up
3928  # making a dummy file named `D' -- because `-MD' means `put the output
3929  # in D'.
3930  mkdir conftest.dir
3931  # Copy depcomp to subdir because otherwise we won't find it if we're
3932  # using a relative directory.
3933  cp "$am_depcomp" conftest.dir
3934  cd conftest.dir
3935  # We will build objects and dependencies in a subdirectory because
3936  # it helps to detect inapplicable dependency modes.  For instance
3937  # both Tru64's cc and ICC support -MD to output dependencies as a
3938  # side effect of compilation, but ICC will put the dependencies in
3939  # the current directory while Tru64 will put them in the object
3940  # directory.
3941  mkdir sub
3942
3943  am_cv_CC_dependencies_compiler_type=none
3944  if test "$am_compiler_list" = ""; then
3945     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3946  fi
3947  am__universal=false
3948  case " $depcc " in #(
3949     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3950     esac
3951
3952  for depmode in $am_compiler_list; do
3953    # Setup a source with many dependencies, because some compilers
3954    # like to wrap large dependency lists on column 80 (with \), and
3955    # we should not choose a depcomp mode which is confused by this.
3956    #
3957    # We need to recreate these files for each test, as the compiler may
3958    # overwrite some of them when testing with obscure command lines.
3959    # This happens at least with the AIX C compiler.
3960    : > sub/conftest.c
3961    for i in 1 2 3 4 5 6; do
3962      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3963      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3964      # Solaris 8's {/usr,}/bin/sh.
3965      touch sub/conftst$i.h
3966    done
3967    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3968
3969    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3970    # mode.  It turns out that the SunPro C++ compiler does not properly
3971    # handle `-M -o', and we need to detect this.  Also, some Intel
3972    # versions had trouble with output in subdirs
3973    am__obj=sub/conftest.${OBJEXT-o}
3974    am__minus_obj="-o $am__obj"
3975    case $depmode in
3976    gcc)
3977      # This depmode causes a compiler race in universal mode.
3978      test "$am__universal" = false || continue
3979      ;;
3980    nosideeffect)
3981      # after this tag, mechanisms are not by side-effect, so they'll
3982      # only be used when explicitly requested
3983      if test "x$enable_dependency_tracking" = xyes; then
3984	continue
3985      else
3986	break
3987      fi
3988      ;;
3989    msvisualcpp | msvcmsys)
3990      # This compiler won't grok `-c -o', but also, the minuso test has
3991      # not run yet.  These depmodes are late enough in the game, and
3992      # so weak that their functioning should not be impacted.
3993      am__obj=conftest.${OBJEXT-o}
3994      am__minus_obj=
3995      ;;
3996    none) break ;;
3997    esac
3998    if depmode=$depmode \
3999       source=sub/conftest.c object=$am__obj \
4000       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4001       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4002         >/dev/null 2>conftest.err &&
4003       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4004       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4005       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4006       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4007      # icc doesn't choke on unknown options, it will just issue warnings
4008      # or remarks (even with -Werror).  So we grep stderr for any message
4009      # that says an option was ignored or not supported.
4010      # When given -MP, icc 7.0 and 7.1 complain thusly:
4011      #   icc: Command line warning: ignoring option '-M'; no argument required
4012      # The diagnosis changed in icc 8.0:
4013      #   icc: Command line remark: option '-MP' not supported
4014      if (grep 'ignoring option' conftest.err ||
4015          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4016        am_cv_CC_dependencies_compiler_type=$depmode
4017        break
4018      fi
4019    fi
4020  done
4021
4022  cd ..
4023  rm -rf conftest.dir
4024else
4025  am_cv_CC_dependencies_compiler_type=none
4026fi
4027
4028fi
4029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4030$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4031CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4032
4033 if
4034  test "x$enable_dependency_tracking" != xno \
4035  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4036  am__fastdepCC_TRUE=
4037  am__fastdepCC_FALSE='#'
4038else
4039  am__fastdepCC_TRUE='#'
4040  am__fastdepCC_FALSE=
4041fi
4042
4043
4044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4045$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4046if test "${ac_cv_path_SED+set}" = set; then :
4047  $as_echo_n "(cached) " >&6
4048else
4049            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4050     for ac_i in 1 2 3 4 5 6 7; do
4051       ac_script="$ac_script$as_nl$ac_script"
4052     done
4053     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4054     { ac_script=; unset ac_script;}
4055     if test -z "$SED"; then
4056  ac_path_SED_found=false
4057  # Loop through the user's path and test for each of PROGNAME-LIST
4058  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4059for as_dir in $PATH
4060do
4061  IFS=$as_save_IFS
4062  test -z "$as_dir" && as_dir=.
4063    for ac_prog in sed gsed; do
4064    for ac_exec_ext in '' $ac_executable_extensions; do
4065      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4066      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4067# Check for GNU ac_path_SED and select it if it is found.
4068  # Check for GNU $ac_path_SED
4069case `"$ac_path_SED" --version 2>&1` in
4070*GNU*)
4071  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4072*)
4073  ac_count=0
4074  $as_echo_n 0123456789 >"conftest.in"
4075  while :
4076  do
4077    cat "conftest.in" "conftest.in" >"conftest.tmp"
4078    mv "conftest.tmp" "conftest.in"
4079    cp "conftest.in" "conftest.nl"
4080    $as_echo '' >> "conftest.nl"
4081    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4082    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4083    as_fn_arith $ac_count + 1 && ac_count=$as_val
4084    if test $ac_count -gt ${ac_path_SED_max-0}; then
4085      # Best one so far, save it but keep looking for a better one
4086      ac_cv_path_SED="$ac_path_SED"
4087      ac_path_SED_max=$ac_count
4088    fi
4089    # 10*(2^10) chars as input seems more than enough
4090    test $ac_count -gt 10 && break
4091  done
4092  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4093esac
4094
4095      $ac_path_SED_found && break 3
4096    done
4097  done
4098  done
4099IFS=$as_save_IFS
4100  if test -z "$ac_cv_path_SED"; then
4101    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4102  fi
4103else
4104  ac_cv_path_SED=$SED
4105fi
4106
4107fi
4108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4109$as_echo "$ac_cv_path_SED" >&6; }
4110 SED="$ac_cv_path_SED"
4111  rm -f conftest.sed
4112
4113test -z "$SED" && SED=sed
4114Xsed="$SED -e 1s/^X//"
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4127$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4128if test "${ac_cv_path_GREP+set}" = set; then :
4129  $as_echo_n "(cached) " >&6
4130else
4131  if test -z "$GREP"; then
4132  ac_path_GREP_found=false
4133  # Loop through the user's path and test for each of PROGNAME-LIST
4134  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4136do
4137  IFS=$as_save_IFS
4138  test -z "$as_dir" && as_dir=.
4139    for ac_prog in grep ggrep; do
4140    for ac_exec_ext in '' $ac_executable_extensions; do
4141      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4142      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4143# Check for GNU ac_path_GREP and select it if it is found.
4144  # Check for GNU $ac_path_GREP
4145case `"$ac_path_GREP" --version 2>&1` in
4146*GNU*)
4147  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4148*)
4149  ac_count=0
4150  $as_echo_n 0123456789 >"conftest.in"
4151  while :
4152  do
4153    cat "conftest.in" "conftest.in" >"conftest.tmp"
4154    mv "conftest.tmp" "conftest.in"
4155    cp "conftest.in" "conftest.nl"
4156    $as_echo 'GREP' >> "conftest.nl"
4157    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4158    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4159    as_fn_arith $ac_count + 1 && ac_count=$as_val
4160    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4161      # Best one so far, save it but keep looking for a better one
4162      ac_cv_path_GREP="$ac_path_GREP"
4163      ac_path_GREP_max=$ac_count
4164    fi
4165    # 10*(2^10) chars as input seems more than enough
4166    test $ac_count -gt 10 && break
4167  done
4168  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4169esac
4170
4171      $ac_path_GREP_found && break 3
4172    done
4173  done
4174  done
4175IFS=$as_save_IFS
4176  if test -z "$ac_cv_path_GREP"; then
4177    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4178  fi
4179else
4180  ac_cv_path_GREP=$GREP
4181fi
4182
4183fi
4184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4185$as_echo "$ac_cv_path_GREP" >&6; }
4186 GREP="$ac_cv_path_GREP"
4187
4188
4189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4190$as_echo_n "checking for egrep... " >&6; }
4191if test "${ac_cv_path_EGREP+set}" = set; then :
4192  $as_echo_n "(cached) " >&6
4193else
4194  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4195   then ac_cv_path_EGREP="$GREP -E"
4196   else
4197     if test -z "$EGREP"; then
4198  ac_path_EGREP_found=false
4199  # Loop through the user's path and test for each of PROGNAME-LIST
4200  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4202do
4203  IFS=$as_save_IFS
4204  test -z "$as_dir" && as_dir=.
4205    for ac_prog in egrep; do
4206    for ac_exec_ext in '' $ac_executable_extensions; do
4207      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4208      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4209# Check for GNU ac_path_EGREP and select it if it is found.
4210  # Check for GNU $ac_path_EGREP
4211case `"$ac_path_EGREP" --version 2>&1` in
4212*GNU*)
4213  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4214*)
4215  ac_count=0
4216  $as_echo_n 0123456789 >"conftest.in"
4217  while :
4218  do
4219    cat "conftest.in" "conftest.in" >"conftest.tmp"
4220    mv "conftest.tmp" "conftest.in"
4221    cp "conftest.in" "conftest.nl"
4222    $as_echo 'EGREP' >> "conftest.nl"
4223    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4224    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4225    as_fn_arith $ac_count + 1 && ac_count=$as_val
4226    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4227      # Best one so far, save it but keep looking for a better one
4228      ac_cv_path_EGREP="$ac_path_EGREP"
4229      ac_path_EGREP_max=$ac_count
4230    fi
4231    # 10*(2^10) chars as input seems more than enough
4232    test $ac_count -gt 10 && break
4233  done
4234  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4235esac
4236
4237      $ac_path_EGREP_found && break 3
4238    done
4239  done
4240  done
4241IFS=$as_save_IFS
4242  if test -z "$ac_cv_path_EGREP"; then
4243    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4244  fi
4245else
4246  ac_cv_path_EGREP=$EGREP
4247fi
4248
4249   fi
4250fi
4251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4252$as_echo "$ac_cv_path_EGREP" >&6; }
4253 EGREP="$ac_cv_path_EGREP"
4254
4255
4256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4257$as_echo_n "checking for fgrep... " >&6; }
4258if test "${ac_cv_path_FGREP+set}" = set; then :
4259  $as_echo_n "(cached) " >&6
4260else
4261  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4262   then ac_cv_path_FGREP="$GREP -F"
4263   else
4264     if test -z "$FGREP"; then
4265  ac_path_FGREP_found=false
4266  # Loop through the user's path and test for each of PROGNAME-LIST
4267  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4268for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4269do
4270  IFS=$as_save_IFS
4271  test -z "$as_dir" && as_dir=.
4272    for ac_prog in fgrep; do
4273    for ac_exec_ext in '' $ac_executable_extensions; do
4274      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4275      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4276# Check for GNU ac_path_FGREP and select it if it is found.
4277  # Check for GNU $ac_path_FGREP
4278case `"$ac_path_FGREP" --version 2>&1` in
4279*GNU*)
4280  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4281*)
4282  ac_count=0
4283  $as_echo_n 0123456789 >"conftest.in"
4284  while :
4285  do
4286    cat "conftest.in" "conftest.in" >"conftest.tmp"
4287    mv "conftest.tmp" "conftest.in"
4288    cp "conftest.in" "conftest.nl"
4289    $as_echo 'FGREP' >> "conftest.nl"
4290    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4291    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4292    as_fn_arith $ac_count + 1 && ac_count=$as_val
4293    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4294      # Best one so far, save it but keep looking for a better one
4295      ac_cv_path_FGREP="$ac_path_FGREP"
4296      ac_path_FGREP_max=$ac_count
4297    fi
4298    # 10*(2^10) chars as input seems more than enough
4299    test $ac_count -gt 10 && break
4300  done
4301  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4302esac
4303
4304      $ac_path_FGREP_found && break 3
4305    done
4306  done
4307  done
4308IFS=$as_save_IFS
4309  if test -z "$ac_cv_path_FGREP"; then
4310    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4311  fi
4312else
4313  ac_cv_path_FGREP=$FGREP
4314fi
4315
4316   fi
4317fi
4318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4319$as_echo "$ac_cv_path_FGREP" >&6; }
4320 FGREP="$ac_cv_path_FGREP"
4321
4322
4323test -z "$GREP" && GREP=grep
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343# Check whether --with-gnu-ld was given.
4344if test "${with_gnu_ld+set}" = set; then :
4345  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4346else
4347  with_gnu_ld=no
4348fi
4349
4350ac_prog=ld
4351if test "$GCC" = yes; then
4352  # Check if gcc -print-prog-name=ld gives a path.
4353  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4354$as_echo_n "checking for ld used by $CC... " >&6; }
4355  case $host in
4356  *-*-mingw*)
4357    # gcc leaves a trailing carriage return which upsets mingw
4358    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4359  *)
4360    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4361  esac
4362  case $ac_prog in
4363    # Accept absolute paths.
4364    [\\/]* | ?:[\\/]*)
4365      re_direlt='/[^/][^/]*/\.\./'
4366      # Canonicalize the pathname of ld
4367      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4368      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4369	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4370      done
4371      test -z "$LD" && LD="$ac_prog"
4372      ;;
4373  "")
4374    # If it fails, then pretend we aren't using GCC.
4375    ac_prog=ld
4376    ;;
4377  *)
4378    # If it is relative, then search for the first ld in PATH.
4379    with_gnu_ld=unknown
4380    ;;
4381  esac
4382elif test "$with_gnu_ld" = yes; then
4383  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4384$as_echo_n "checking for GNU ld... " >&6; }
4385else
4386  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4387$as_echo_n "checking for non-GNU ld... " >&6; }
4388fi
4389if test "${lt_cv_path_LD+set}" = set; then :
4390  $as_echo_n "(cached) " >&6
4391else
4392  if test -z "$LD"; then
4393  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4394  for ac_dir in $PATH; do
4395    IFS="$lt_save_ifs"
4396    test -z "$ac_dir" && ac_dir=.
4397    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4398      lt_cv_path_LD="$ac_dir/$ac_prog"
4399      # Check to see if the program is GNU ld.  I'd rather use --version,
4400      # but apparently some variants of GNU ld only accept -v.
4401      # Break only if it was the GNU/non-GNU ld that we prefer.
4402      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4403      *GNU* | *'with BFD'*)
4404	test "$with_gnu_ld" != no && break
4405	;;
4406      *)
4407	test "$with_gnu_ld" != yes && break
4408	;;
4409      esac
4410    fi
4411  done
4412  IFS="$lt_save_ifs"
4413else
4414  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4415fi
4416fi
4417
4418LD="$lt_cv_path_LD"
4419if test -n "$LD"; then
4420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4421$as_echo "$LD" >&6; }
4422else
4423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4424$as_echo "no" >&6; }
4425fi
4426test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4428$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4429if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4430  $as_echo_n "(cached) " >&6
4431else
4432  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4433case `$LD -v 2>&1 </dev/null` in
4434*GNU* | *'with BFD'*)
4435  lt_cv_prog_gnu_ld=yes
4436  ;;
4437*)
4438  lt_cv_prog_gnu_ld=no
4439  ;;
4440esac
4441fi
4442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4443$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4444with_gnu_ld=$lt_cv_prog_gnu_ld
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4455$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4456if test "${lt_cv_path_NM+set}" = set; then :
4457  $as_echo_n "(cached) " >&6
4458else
4459  if test -n "$NM"; then
4460  # Let the user override the test.
4461  lt_cv_path_NM="$NM"
4462else
4463  lt_nm_to_check="${ac_tool_prefix}nm"
4464  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4465    lt_nm_to_check="$lt_nm_to_check nm"
4466  fi
4467  for lt_tmp_nm in $lt_nm_to_check; do
4468    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4469    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4470      IFS="$lt_save_ifs"
4471      test -z "$ac_dir" && ac_dir=.
4472      tmp_nm="$ac_dir/$lt_tmp_nm"
4473      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4474	# Check to see if the nm accepts a BSD-compat flag.
4475	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4476	#   nm: unknown option "B" ignored
4477	# Tru64's nm complains that /dev/null is an invalid object file
4478	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4479	*/dev/null* | *'Invalid file or object type'*)
4480	  lt_cv_path_NM="$tmp_nm -B"
4481	  break
4482	  ;;
4483	*)
4484	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4485	  */dev/null*)
4486	    lt_cv_path_NM="$tmp_nm -p"
4487	    break
4488	    ;;
4489	  *)
4490	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4491	    continue # so that we can try to find one that supports BSD flags
4492	    ;;
4493	  esac
4494	  ;;
4495	esac
4496      fi
4497    done
4498    IFS="$lt_save_ifs"
4499  done
4500  : ${lt_cv_path_NM=no}
4501fi
4502fi
4503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4504$as_echo "$lt_cv_path_NM" >&6; }
4505if test "$lt_cv_path_NM" != "no"; then
4506  NM="$lt_cv_path_NM"
4507else
4508  # Didn't find any BSD compatible name lister, look for dumpbin.
4509  if test -n "$ac_tool_prefix"; then
4510  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4511  do
4512    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4513set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4515$as_echo_n "checking for $ac_word... " >&6; }
4516if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4517  $as_echo_n "(cached) " >&6
4518else
4519  if test -n "$DUMPBIN"; then
4520  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4521else
4522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523for as_dir in $PATH
4524do
4525  IFS=$as_save_IFS
4526  test -z "$as_dir" && as_dir=.
4527    for ac_exec_ext in '' $ac_executable_extensions; do
4528  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4529    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4530    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4531    break 2
4532  fi
4533done
4534  done
4535IFS=$as_save_IFS
4536
4537fi
4538fi
4539DUMPBIN=$ac_cv_prog_DUMPBIN
4540if test -n "$DUMPBIN"; then
4541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4542$as_echo "$DUMPBIN" >&6; }
4543else
4544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4545$as_echo "no" >&6; }
4546fi
4547
4548
4549    test -n "$DUMPBIN" && break
4550  done
4551fi
4552if test -z "$DUMPBIN"; then
4553  ac_ct_DUMPBIN=$DUMPBIN
4554  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4555do
4556  # Extract the first word of "$ac_prog", so it can be a program name with args.
4557set dummy $ac_prog; ac_word=$2
4558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4559$as_echo_n "checking for $ac_word... " >&6; }
4560if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4561  $as_echo_n "(cached) " >&6
4562else
4563  if test -n "$ac_ct_DUMPBIN"; then
4564  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4565else
4566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567for as_dir in $PATH
4568do
4569  IFS=$as_save_IFS
4570  test -z "$as_dir" && as_dir=.
4571    for ac_exec_ext in '' $ac_executable_extensions; do
4572  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4573    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4574    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4575    break 2
4576  fi
4577done
4578  done
4579IFS=$as_save_IFS
4580
4581fi
4582fi
4583ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4584if test -n "$ac_ct_DUMPBIN"; then
4585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4586$as_echo "$ac_ct_DUMPBIN" >&6; }
4587else
4588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4589$as_echo "no" >&6; }
4590fi
4591
4592
4593  test -n "$ac_ct_DUMPBIN" && break
4594done
4595
4596  if test "x$ac_ct_DUMPBIN" = x; then
4597    DUMPBIN=":"
4598  else
4599    case $cross_compiling:$ac_tool_warned in
4600yes:)
4601{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4602$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4603ac_tool_warned=yes ;;
4604esac
4605    DUMPBIN=$ac_ct_DUMPBIN
4606  fi
4607fi
4608
4609
4610  if test "$DUMPBIN" != ":"; then
4611    NM="$DUMPBIN"
4612  fi
4613fi
4614test -z "$NM" && NM=nm
4615
4616
4617
4618
4619
4620
4621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4622$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4623if test "${lt_cv_nm_interface+set}" = set; then :
4624  $as_echo_n "(cached) " >&6
4625else
4626  lt_cv_nm_interface="BSD nm"
4627  echo "int some_variable = 0;" > conftest.$ac_ext
4628  (eval echo "\"\$as_me:4628: $ac_compile\"" >&5)
4629  (eval "$ac_compile" 2>conftest.err)
4630  cat conftest.err >&5
4631  (eval echo "\"\$as_me:4631: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4632  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4633  cat conftest.err >&5
4634  (eval echo "\"\$as_me:4634: output\"" >&5)
4635  cat conftest.out >&5
4636  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4637    lt_cv_nm_interface="MS dumpbin"
4638  fi
4639  rm -f conftest*
4640fi
4641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4642$as_echo "$lt_cv_nm_interface" >&6; }
4643
4644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4645$as_echo_n "checking whether ln -s works... " >&6; }
4646LN_S=$as_ln_s
4647if test "$LN_S" = "ln -s"; then
4648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4649$as_echo "yes" >&6; }
4650else
4651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4652$as_echo "no, using $LN_S" >&6; }
4653fi
4654
4655# find the maximum length of command line arguments
4656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4657$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4658if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4659  $as_echo_n "(cached) " >&6
4660else
4661    i=0
4662  teststring="ABCD"
4663
4664  case $build_os in
4665  msdosdjgpp*)
4666    # On DJGPP, this test can blow up pretty badly due to problems in libc
4667    # (any single argument exceeding 2000 bytes causes a buffer overrun
4668    # during glob expansion).  Even if it were fixed, the result of this
4669    # check would be larger than it should be.
4670    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4671    ;;
4672
4673  gnu*)
4674    # Under GNU Hurd, this test is not required because there is
4675    # no limit to the length of command line arguments.
4676    # Libtool will interpret -1 as no limit whatsoever
4677    lt_cv_sys_max_cmd_len=-1;
4678    ;;
4679
4680  cygwin* | mingw* | cegcc*)
4681    # On Win9x/ME, this test blows up -- it succeeds, but takes
4682    # about 5 minutes as the teststring grows exponentially.
4683    # Worse, since 9x/ME are not pre-emptively multitasking,
4684    # you end up with a "frozen" computer, even though with patience
4685    # the test eventually succeeds (with a max line length of 256k).
4686    # Instead, let's just punt: use the minimum linelength reported by
4687    # all of the supported platforms: 8192 (on NT/2K/XP).
4688    lt_cv_sys_max_cmd_len=8192;
4689    ;;
4690
4691  amigaos*)
4692    # On AmigaOS with pdksh, this test takes hours, literally.
4693    # So we just punt and use a minimum line length of 8192.
4694    lt_cv_sys_max_cmd_len=8192;
4695    ;;
4696
4697  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4698    # This has been around since 386BSD, at least.  Likely further.
4699    if test -x /sbin/sysctl; then
4700      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4701    elif test -x /usr/sbin/sysctl; then
4702      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4703    else
4704      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4705    fi
4706    # And add a safety zone
4707    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4708    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4709    ;;
4710
4711  interix*)
4712    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4713    lt_cv_sys_max_cmd_len=196608
4714    ;;
4715
4716  osf*)
4717    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4718    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4719    # nice to cause kernel panics so lets avoid the loop below.
4720    # First set a reasonable default.
4721    lt_cv_sys_max_cmd_len=16384
4722    #
4723    if test -x /sbin/sysconfig; then
4724      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4725        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4726      esac
4727    fi
4728    ;;
4729  sco3.2v5*)
4730    lt_cv_sys_max_cmd_len=102400
4731    ;;
4732  sysv5* | sco5v6* | sysv4.2uw2*)
4733    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4734    if test -n "$kargmax"; then
4735      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4736    else
4737      lt_cv_sys_max_cmd_len=32768
4738    fi
4739    ;;
4740  *)
4741    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4742    if test -n "$lt_cv_sys_max_cmd_len"; then
4743      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4744      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4745    else
4746      # Make teststring a little bigger before we do anything with it.
4747      # a 1K string should be a reasonable start.
4748      for i in 1 2 3 4 5 6 7 8 ; do
4749        teststring=$teststring$teststring
4750      done
4751      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4752      # If test is not a shell built-in, we'll probably end up computing a
4753      # maximum length that is only half of the actual maximum length, but
4754      # we can't tell.
4755      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4756	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4757	      test $i != 17 # 1/2 MB should be enough
4758      do
4759        i=`expr $i + 1`
4760        teststring=$teststring$teststring
4761      done
4762      # Only check the string length outside the loop.
4763      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4764      teststring=
4765      # Add a significant safety factor because C++ compilers can tack on
4766      # massive amounts of additional arguments before passing them to the
4767      # linker.  It appears as though 1/2 is a usable value.
4768      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4769    fi
4770    ;;
4771  esac
4772
4773fi
4774
4775if test -n $lt_cv_sys_max_cmd_len ; then
4776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4777$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4778else
4779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4780$as_echo "none" >&6; }
4781fi
4782max_cmd_len=$lt_cv_sys_max_cmd_len
4783
4784
4785
4786
4787
4788
4789: ${CP="cp -f"}
4790: ${MV="mv -f"}
4791: ${RM="rm -f"}
4792
4793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4794$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4795# Try some XSI features
4796xsi_shell=no
4797( _lt_dummy="a/b/c"
4798  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4799      = c,a/b,, \
4800    && eval 'test $(( 1 + 1 )) -eq 2 \
4801    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4802  && xsi_shell=yes
4803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4804$as_echo "$xsi_shell" >&6; }
4805
4806
4807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4808$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4809lt_shell_append=no
4810( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4811    >/dev/null 2>&1 \
4812  && lt_shell_append=yes
4813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4814$as_echo "$lt_shell_append" >&6; }
4815
4816
4817if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4818  lt_unset=unset
4819else
4820  lt_unset=false
4821fi
4822
4823
4824
4825
4826
4827# test EBCDIC or ASCII
4828case `echo X|tr X '\101'` in
4829 A) # ASCII based system
4830    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4831  lt_SP2NL='tr \040 \012'
4832  lt_NL2SP='tr \015\012 \040\040'
4833  ;;
4834 *) # EBCDIC based system
4835  lt_SP2NL='tr \100 \n'
4836  lt_NL2SP='tr \r\n \100\100'
4837  ;;
4838esac
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4849$as_echo_n "checking for $LD option to reload object files... " >&6; }
4850if test "${lt_cv_ld_reload_flag+set}" = set; then :
4851  $as_echo_n "(cached) " >&6
4852else
4853  lt_cv_ld_reload_flag='-r'
4854fi
4855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4856$as_echo "$lt_cv_ld_reload_flag" >&6; }
4857reload_flag=$lt_cv_ld_reload_flag
4858case $reload_flag in
4859"" | " "*) ;;
4860*) reload_flag=" $reload_flag" ;;
4861esac
4862reload_cmds='$LD$reload_flag -o $output$reload_objs'
4863case $host_os in
4864  darwin*)
4865    if test "$GCC" = yes; then
4866      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4867    else
4868      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4869    fi
4870    ;;
4871esac
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881if test -n "$ac_tool_prefix"; then
4882  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4883set dummy ${ac_tool_prefix}objdump; ac_word=$2
4884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4885$as_echo_n "checking for $ac_word... " >&6; }
4886if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4887  $as_echo_n "(cached) " >&6
4888else
4889  if test -n "$OBJDUMP"; then
4890  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4891else
4892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4893for as_dir in $PATH
4894do
4895  IFS=$as_save_IFS
4896  test -z "$as_dir" && as_dir=.
4897    for ac_exec_ext in '' $ac_executable_extensions; do
4898  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4899    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4900    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4901    break 2
4902  fi
4903done
4904  done
4905IFS=$as_save_IFS
4906
4907fi
4908fi
4909OBJDUMP=$ac_cv_prog_OBJDUMP
4910if test -n "$OBJDUMP"; then
4911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4912$as_echo "$OBJDUMP" >&6; }
4913else
4914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4915$as_echo "no" >&6; }
4916fi
4917
4918
4919fi
4920if test -z "$ac_cv_prog_OBJDUMP"; then
4921  ac_ct_OBJDUMP=$OBJDUMP
4922  # Extract the first word of "objdump", so it can be a program name with args.
4923set dummy objdump; ac_word=$2
4924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4925$as_echo_n "checking for $ac_word... " >&6; }
4926if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4927  $as_echo_n "(cached) " >&6
4928else
4929  if test -n "$ac_ct_OBJDUMP"; then
4930  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4931else
4932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4933for as_dir in $PATH
4934do
4935  IFS=$as_save_IFS
4936  test -z "$as_dir" && as_dir=.
4937    for ac_exec_ext in '' $ac_executable_extensions; do
4938  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4939    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4940    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4941    break 2
4942  fi
4943done
4944  done
4945IFS=$as_save_IFS
4946
4947fi
4948fi
4949ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4950if test -n "$ac_ct_OBJDUMP"; then
4951  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4952$as_echo "$ac_ct_OBJDUMP" >&6; }
4953else
4954  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4955$as_echo "no" >&6; }
4956fi
4957
4958  if test "x$ac_ct_OBJDUMP" = x; then
4959    OBJDUMP="false"
4960  else
4961    case $cross_compiling:$ac_tool_warned in
4962yes:)
4963{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4964$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4965ac_tool_warned=yes ;;
4966esac
4967    OBJDUMP=$ac_ct_OBJDUMP
4968  fi
4969else
4970  OBJDUMP="$ac_cv_prog_OBJDUMP"
4971fi
4972
4973test -z "$OBJDUMP" && OBJDUMP=objdump
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4984$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4985if test "${lt_cv_deplibs_check_method+set}" = set; then :
4986  $as_echo_n "(cached) " >&6
4987else
4988  lt_cv_file_magic_cmd='$MAGIC_CMD'
4989lt_cv_file_magic_test_file=
4990lt_cv_deplibs_check_method='unknown'
4991# Need to set the preceding variable on all platforms that support
4992# interlibrary dependencies.
4993# 'none' -- dependencies not supported.
4994# `unknown' -- same as none, but documents that we really don't know.
4995# 'pass_all' -- all dependencies passed with no checks.
4996# 'test_compile' -- check by making test program.
4997# 'file_magic [[regex]]' -- check by looking for files in library path
4998# which responds to the $file_magic_cmd with a given extended regex.
4999# If you have `file' or equivalent on your system and you're not sure
5000# whether `pass_all' will *always* work, you probably want this one.
5001
5002case $host_os in
5003aix[4-9]*)
5004  lt_cv_deplibs_check_method=pass_all
5005  ;;
5006
5007beos*)
5008  lt_cv_deplibs_check_method=pass_all
5009  ;;
5010
5011bsdi[45]*)
5012  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5013  lt_cv_file_magic_cmd='/usr/bin/file -L'
5014  lt_cv_file_magic_test_file=/shlib/libc.so
5015  ;;
5016
5017cygwin*)
5018  # func_win32_libid is a shell function defined in ltmain.sh
5019  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5020  lt_cv_file_magic_cmd='func_win32_libid'
5021  ;;
5022
5023mingw* | pw32*)
5024  # Base MSYS/MinGW do not provide the 'file' command needed by
5025  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5026  # unless we find 'file', for example because we are cross-compiling.
5027  if ( file / ) >/dev/null 2>&1; then
5028    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5029    lt_cv_file_magic_cmd='func_win32_libid'
5030  else
5031    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5032    lt_cv_file_magic_cmd='$OBJDUMP -f'
5033  fi
5034  ;;
5035
5036cegcc)
5037  # use the weaker test based on 'objdump'. See mingw*.
5038  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5039  lt_cv_file_magic_cmd='$OBJDUMP -f'
5040  ;;
5041
5042darwin* | rhapsody*)
5043  lt_cv_deplibs_check_method=pass_all
5044  ;;
5045
5046freebsd* | dragonfly*)
5047  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5048    case $host_cpu in
5049    i*86 )
5050      # Not sure whether the presence of OpenBSD here was a mistake.
5051      # Let's accept both of them until this is cleared up.
5052      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5053      lt_cv_file_magic_cmd=/usr/bin/file
5054      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5055      ;;
5056    esac
5057  else
5058    lt_cv_deplibs_check_method=pass_all
5059  fi
5060  ;;
5061
5062gnu*)
5063  lt_cv_deplibs_check_method=pass_all
5064  ;;
5065
5066hpux10.20* | hpux11*)
5067  lt_cv_file_magic_cmd=/usr/bin/file
5068  case $host_cpu in
5069  ia64*)
5070    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5071    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5072    ;;
5073  hppa*64*)
5074    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]'
5075    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5076    ;;
5077  *)
5078    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5079    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5080    ;;
5081  esac
5082  ;;
5083
5084interix[3-9]*)
5085  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5086  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5087  ;;
5088
5089irix5* | irix6* | nonstopux*)
5090  case $LD in
5091  *-32|*"-32 ") libmagic=32-bit;;
5092  *-n32|*"-n32 ") libmagic=N32;;
5093  *-64|*"-64 ") libmagic=64-bit;;
5094  *) libmagic=never-match;;
5095  esac
5096  lt_cv_deplibs_check_method=pass_all
5097  ;;
5098
5099# This must be Linux ELF.
5100linux* | k*bsd*-gnu)
5101  lt_cv_deplibs_check_method=pass_all
5102  ;;
5103
5104netbsd* | netbsdelf*-gnu)
5105  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5106    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5107  else
5108    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5109  fi
5110  ;;
5111
5112newos6*)
5113  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5114  lt_cv_file_magic_cmd=/usr/bin/file
5115  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5116  ;;
5117
5118*nto* | *qnx*)
5119  lt_cv_deplibs_check_method=pass_all
5120  ;;
5121
5122openbsd*)
5123  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5124    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5125  else
5126    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5127  fi
5128  ;;
5129
5130osf3* | osf4* | osf5*)
5131  lt_cv_deplibs_check_method=pass_all
5132  ;;
5133
5134rdos*)
5135  lt_cv_deplibs_check_method=pass_all
5136  ;;
5137
5138solaris*)
5139  lt_cv_deplibs_check_method=pass_all
5140  ;;
5141
5142sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5143  lt_cv_deplibs_check_method=pass_all
5144  ;;
5145
5146sysv4 | sysv4.3*)
5147  case $host_vendor in
5148  motorola)
5149    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]'
5150    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5151    ;;
5152  ncr)
5153    lt_cv_deplibs_check_method=pass_all
5154    ;;
5155  sequent)
5156    lt_cv_file_magic_cmd='/bin/file'
5157    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5158    ;;
5159  sni)
5160    lt_cv_file_magic_cmd='/bin/file'
5161    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5162    lt_cv_file_magic_test_file=/lib/libc.so
5163    ;;
5164  siemens)
5165    lt_cv_deplibs_check_method=pass_all
5166    ;;
5167  pc)
5168    lt_cv_deplibs_check_method=pass_all
5169    ;;
5170  esac
5171  ;;
5172
5173tpf*)
5174  lt_cv_deplibs_check_method=pass_all
5175  ;;
5176esac
5177
5178fi
5179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5180$as_echo "$lt_cv_deplibs_check_method" >&6; }
5181file_magic_cmd=$lt_cv_file_magic_cmd
5182deplibs_check_method=$lt_cv_deplibs_check_method
5183test -z "$deplibs_check_method" && deplibs_check_method=unknown
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196if test -n "$ac_tool_prefix"; then
5197  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5198set dummy ${ac_tool_prefix}ar; ac_word=$2
5199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5200$as_echo_n "checking for $ac_word... " >&6; }
5201if test "${ac_cv_prog_AR+set}" = set; then :
5202  $as_echo_n "(cached) " >&6
5203else
5204  if test -n "$AR"; then
5205  ac_cv_prog_AR="$AR" # Let the user override the test.
5206else
5207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5208for as_dir in $PATH
5209do
5210  IFS=$as_save_IFS
5211  test -z "$as_dir" && as_dir=.
5212    for ac_exec_ext in '' $ac_executable_extensions; do
5213  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5214    ac_cv_prog_AR="${ac_tool_prefix}ar"
5215    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5216    break 2
5217  fi
5218done
5219  done
5220IFS=$as_save_IFS
5221
5222fi
5223fi
5224AR=$ac_cv_prog_AR
5225if test -n "$AR"; then
5226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5227$as_echo "$AR" >&6; }
5228else
5229  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5230$as_echo "no" >&6; }
5231fi
5232
5233
5234fi
5235if test -z "$ac_cv_prog_AR"; then
5236  ac_ct_AR=$AR
5237  # Extract the first word of "ar", so it can be a program name with args.
5238set dummy ar; ac_word=$2
5239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5240$as_echo_n "checking for $ac_word... " >&6; }
5241if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5242  $as_echo_n "(cached) " >&6
5243else
5244  if test -n "$ac_ct_AR"; then
5245  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5246else
5247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5248for as_dir in $PATH
5249do
5250  IFS=$as_save_IFS
5251  test -z "$as_dir" && as_dir=.
5252    for ac_exec_ext in '' $ac_executable_extensions; do
5253  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5254    ac_cv_prog_ac_ct_AR="ar"
5255    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5256    break 2
5257  fi
5258done
5259  done
5260IFS=$as_save_IFS
5261
5262fi
5263fi
5264ac_ct_AR=$ac_cv_prog_ac_ct_AR
5265if test -n "$ac_ct_AR"; then
5266  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5267$as_echo "$ac_ct_AR" >&6; }
5268else
5269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5270$as_echo "no" >&6; }
5271fi
5272
5273  if test "x$ac_ct_AR" = x; then
5274    AR="false"
5275  else
5276    case $cross_compiling:$ac_tool_warned in
5277yes:)
5278{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5279$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5280ac_tool_warned=yes ;;
5281esac
5282    AR=$ac_ct_AR
5283  fi
5284else
5285  AR="$ac_cv_prog_AR"
5286fi
5287
5288test -z "$AR" && AR=ar
5289test -z "$AR_FLAGS" && AR_FLAGS=cru
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301if test -n "$ac_tool_prefix"; then
5302  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5303set dummy ${ac_tool_prefix}strip; ac_word=$2
5304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5305$as_echo_n "checking for $ac_word... " >&6; }
5306if test "${ac_cv_prog_STRIP+set}" = set; then :
5307  $as_echo_n "(cached) " >&6
5308else
5309  if test -n "$STRIP"; then
5310  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5311else
5312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5313for as_dir in $PATH
5314do
5315  IFS=$as_save_IFS
5316  test -z "$as_dir" && as_dir=.
5317    for ac_exec_ext in '' $ac_executable_extensions; do
5318  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5319    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5320    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5321    break 2
5322  fi
5323done
5324  done
5325IFS=$as_save_IFS
5326
5327fi
5328fi
5329STRIP=$ac_cv_prog_STRIP
5330if test -n "$STRIP"; then
5331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5332$as_echo "$STRIP" >&6; }
5333else
5334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5335$as_echo "no" >&6; }
5336fi
5337
5338
5339fi
5340if test -z "$ac_cv_prog_STRIP"; then
5341  ac_ct_STRIP=$STRIP
5342  # Extract the first word of "strip", so it can be a program name with args.
5343set dummy strip; ac_word=$2
5344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5345$as_echo_n "checking for $ac_word... " >&6; }
5346if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5347  $as_echo_n "(cached) " >&6
5348else
5349  if test -n "$ac_ct_STRIP"; then
5350  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5351else
5352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5353for as_dir in $PATH
5354do
5355  IFS=$as_save_IFS
5356  test -z "$as_dir" && as_dir=.
5357    for ac_exec_ext in '' $ac_executable_extensions; do
5358  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5359    ac_cv_prog_ac_ct_STRIP="strip"
5360    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5361    break 2
5362  fi
5363done
5364  done
5365IFS=$as_save_IFS
5366
5367fi
5368fi
5369ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5370if test -n "$ac_ct_STRIP"; then
5371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5372$as_echo "$ac_ct_STRIP" >&6; }
5373else
5374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5375$as_echo "no" >&6; }
5376fi
5377
5378  if test "x$ac_ct_STRIP" = x; then
5379    STRIP=":"
5380  else
5381    case $cross_compiling:$ac_tool_warned in
5382yes:)
5383{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5384$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5385ac_tool_warned=yes ;;
5386esac
5387    STRIP=$ac_ct_STRIP
5388  fi
5389else
5390  STRIP="$ac_cv_prog_STRIP"
5391fi
5392
5393test -z "$STRIP" && STRIP=:
5394
5395
5396
5397
5398
5399
5400if test -n "$ac_tool_prefix"; then
5401  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5402set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5404$as_echo_n "checking for $ac_word... " >&6; }
5405if test "${ac_cv_prog_RANLIB+set}" = set; then :
5406  $as_echo_n "(cached) " >&6
5407else
5408  if test -n "$RANLIB"; then
5409  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5410else
5411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5412for as_dir in $PATH
5413do
5414  IFS=$as_save_IFS
5415  test -z "$as_dir" && as_dir=.
5416    for ac_exec_ext in '' $ac_executable_extensions; do
5417  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5418    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5419    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5420    break 2
5421  fi
5422done
5423  done
5424IFS=$as_save_IFS
5425
5426fi
5427fi
5428RANLIB=$ac_cv_prog_RANLIB
5429if test -n "$RANLIB"; then
5430  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5431$as_echo "$RANLIB" >&6; }
5432else
5433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5434$as_echo "no" >&6; }
5435fi
5436
5437
5438fi
5439if test -z "$ac_cv_prog_RANLIB"; then
5440  ac_ct_RANLIB=$RANLIB
5441  # Extract the first word of "ranlib", so it can be a program name with args.
5442set dummy ranlib; ac_word=$2
5443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5444$as_echo_n "checking for $ac_word... " >&6; }
5445if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5446  $as_echo_n "(cached) " >&6
5447else
5448  if test -n "$ac_ct_RANLIB"; then
5449  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5450else
5451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5452for as_dir in $PATH
5453do
5454  IFS=$as_save_IFS
5455  test -z "$as_dir" && as_dir=.
5456    for ac_exec_ext in '' $ac_executable_extensions; do
5457  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5458    ac_cv_prog_ac_ct_RANLIB="ranlib"
5459    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5460    break 2
5461  fi
5462done
5463  done
5464IFS=$as_save_IFS
5465
5466fi
5467fi
5468ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5469if test -n "$ac_ct_RANLIB"; then
5470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5471$as_echo "$ac_ct_RANLIB" >&6; }
5472else
5473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5474$as_echo "no" >&6; }
5475fi
5476
5477  if test "x$ac_ct_RANLIB" = x; then
5478    RANLIB=":"
5479  else
5480    case $cross_compiling:$ac_tool_warned in
5481yes:)
5482{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5483$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5484ac_tool_warned=yes ;;
5485esac
5486    RANLIB=$ac_ct_RANLIB
5487  fi
5488else
5489  RANLIB="$ac_cv_prog_RANLIB"
5490fi
5491
5492test -z "$RANLIB" && RANLIB=:
5493
5494
5495
5496
5497
5498
5499# Determine commands to create old-style static archives.
5500old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5501old_postinstall_cmds='chmod 644 $oldlib'
5502old_postuninstall_cmds=
5503
5504if test -n "$RANLIB"; then
5505  case $host_os in
5506  openbsd*)
5507    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5508    ;;
5509  *)
5510    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5511    ;;
5512  esac
5513  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5514fi
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549# If no C compiler was specified, use CC.
5550LTCC=${LTCC-"$CC"}
5551
5552# If no C compiler flags were specified, use CFLAGS.
5553LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5554
5555# Allow CC to be a program name with arguments.
5556compiler=$CC
5557
5558
5559# Check for command to grab the raw symbol name followed by C symbol from nm.
5560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5561$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5562if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5563  $as_echo_n "(cached) " >&6
5564else
5565
5566# These are sane defaults that work on at least a few old systems.
5567# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5568
5569# Character class describing NM global symbol codes.
5570symcode='[BCDEGRST]'
5571
5572# Regexp to match symbols that can be accessed directly from C.
5573sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5574
5575# Define system-specific variables.
5576case $host_os in
5577aix*)
5578  symcode='[BCDT]'
5579  ;;
5580cygwin* | mingw* | pw32* | cegcc*)
5581  symcode='[ABCDGISTW]'
5582  ;;
5583hpux*)
5584  if test "$host_cpu" = ia64; then
5585    symcode='[ABCDEGRST]'
5586  fi
5587  ;;
5588irix* | nonstopux*)
5589  symcode='[BCDEGRST]'
5590  ;;
5591osf*)
5592  symcode='[BCDEGQRST]'
5593  ;;
5594solaris*)
5595  symcode='[BDRT]'
5596  ;;
5597sco3.2v5*)
5598  symcode='[DT]'
5599  ;;
5600sysv4.2uw2*)
5601  symcode='[DT]'
5602  ;;
5603sysv5* | sco5v6* | unixware* | OpenUNIX*)
5604  symcode='[ABDT]'
5605  ;;
5606sysv4)
5607  symcode='[DFNSTU]'
5608  ;;
5609esac
5610
5611# If we're using GNU nm, then use its standard symbol codes.
5612case `$NM -V 2>&1` in
5613*GNU* | *'with BFD'*)
5614  symcode='[ABCDGIRSTW]' ;;
5615esac
5616
5617# Transform an extracted symbol line into a proper C declaration.
5618# Some systems (esp. on ia64) link data and code symbols differently,
5619# so use this general approach.
5620lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5621
5622# Transform an extracted symbol line into symbol name and symbol address
5623lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5624lt_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'"
5625
5626# Handle CRLF in mingw tool chain
5627opt_cr=
5628case $build_os in
5629mingw*)
5630  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5631  ;;
5632esac
5633
5634# Try without a prefix underscore, then with it.
5635for ac_symprfx in "" "_"; do
5636
5637  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5638  symxfrm="\\1 $ac_symprfx\\2 \\2"
5639
5640  # Write the raw and C identifiers.
5641  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5642    # Fake it for dumpbin and say T for any non-static function
5643    # and D for any global variable.
5644    # Also find C++ and __fastcall symbols from MSVC++,
5645    # which start with @ or ?.
5646    lt_cv_sys_global_symbol_pipe="$AWK '"\
5647"     {last_section=section; section=\$ 3};"\
5648"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5649"     \$ 0!~/External *\|/{next};"\
5650"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5651"     {if(hide[section]) next};"\
5652"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5653"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5654"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5655"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5656"     ' prfx=^$ac_symprfx"
5657  else
5658    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5659  fi
5660
5661  # Check to see that the pipe works correctly.
5662  pipe_works=no
5663
5664  rm -f conftest*
5665  cat > conftest.$ac_ext <<_LT_EOF
5666#ifdef __cplusplus
5667extern "C" {
5668#endif
5669char nm_test_var;
5670void nm_test_func(void);
5671void nm_test_func(void){}
5672#ifdef __cplusplus
5673}
5674#endif
5675int main(){nm_test_var='a';nm_test_func();return(0);}
5676_LT_EOF
5677
5678  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5679  (eval $ac_compile) 2>&5
5680  ac_status=$?
5681  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5682  test $ac_status = 0; }; then
5683    # Now try to grab the symbols.
5684    nlist=conftest.nm
5685    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5686  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5687  ac_status=$?
5688  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5689  test $ac_status = 0; } && test -s "$nlist"; then
5690      # Try sorting and uniquifying the output.
5691      if sort "$nlist" | uniq > "$nlist"T; then
5692	mv -f "$nlist"T "$nlist"
5693      else
5694	rm -f "$nlist"T
5695      fi
5696
5697      # Make sure that we snagged all the symbols we need.
5698      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5699	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5700	  cat <<_LT_EOF > conftest.$ac_ext
5701#ifdef __cplusplus
5702extern "C" {
5703#endif
5704
5705_LT_EOF
5706	  # Now generate the symbol file.
5707	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5708
5709	  cat <<_LT_EOF >> conftest.$ac_ext
5710
5711/* The mapping between symbol names and symbols.  */
5712const struct {
5713  const char *name;
5714  void       *address;
5715}
5716lt__PROGRAM__LTX_preloaded_symbols[] =
5717{
5718  { "@PROGRAM@", (void *) 0 },
5719_LT_EOF
5720	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5721	  cat <<\_LT_EOF >> conftest.$ac_ext
5722  {0, (void *) 0}
5723};
5724
5725/* This works around a problem in FreeBSD linker */
5726#ifdef FREEBSD_WORKAROUND
5727static const void *lt_preloaded_setup() {
5728  return lt__PROGRAM__LTX_preloaded_symbols;
5729}
5730#endif
5731
5732#ifdef __cplusplus
5733}
5734#endif
5735_LT_EOF
5736	  # Now try linking the two files.
5737	  mv conftest.$ac_objext conftstm.$ac_objext
5738	  lt_save_LIBS="$LIBS"
5739	  lt_save_CFLAGS="$CFLAGS"
5740	  LIBS="conftstm.$ac_objext"
5741	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5742	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5743  (eval $ac_link) 2>&5
5744  ac_status=$?
5745  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5746  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5747	    pipe_works=yes
5748	  fi
5749	  LIBS="$lt_save_LIBS"
5750	  CFLAGS="$lt_save_CFLAGS"
5751	else
5752	  echo "cannot find nm_test_func in $nlist" >&5
5753	fi
5754      else
5755	echo "cannot find nm_test_var in $nlist" >&5
5756      fi
5757    else
5758      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5759    fi
5760  else
5761    echo "$progname: failed program was:" >&5
5762    cat conftest.$ac_ext >&5
5763  fi
5764  rm -rf conftest* conftst*
5765
5766  # Do not use the global_symbol_pipe unless it works.
5767  if test "$pipe_works" = yes; then
5768    break
5769  else
5770    lt_cv_sys_global_symbol_pipe=
5771  fi
5772done
5773
5774fi
5775
5776if test -z "$lt_cv_sys_global_symbol_pipe"; then
5777  lt_cv_sys_global_symbol_to_cdecl=
5778fi
5779if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5781$as_echo "failed" >&6; }
5782else
5783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5784$as_echo "ok" >&6; }
5785fi
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809# Check whether --enable-libtool-lock was given.
5810if test "${enable_libtool_lock+set}" = set; then :
5811  enableval=$enable_libtool_lock;
5812fi
5813
5814test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5815
5816# Some flags need to be propagated to the compiler or linker for good
5817# libtool support.
5818case $host in
5819ia64-*-hpux*)
5820  # Find out which ABI we are using.
5821  echo 'int i;' > conftest.$ac_ext
5822  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5823  (eval $ac_compile) 2>&5
5824  ac_status=$?
5825  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5826  test $ac_status = 0; }; then
5827    case `/usr/bin/file conftest.$ac_objext` in
5828      *ELF-32*)
5829	HPUX_IA64_MODE="32"
5830	;;
5831      *ELF-64*)
5832	HPUX_IA64_MODE="64"
5833	;;
5834    esac
5835  fi
5836  rm -rf conftest*
5837  ;;
5838*-*-irix6*)
5839  # Find out which ABI we are using.
5840  echo '#line 5840 "configure"' > conftest.$ac_ext
5841  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5842  (eval $ac_compile) 2>&5
5843  ac_status=$?
5844  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5845  test $ac_status = 0; }; then
5846    if test "$lt_cv_prog_gnu_ld" = yes; then
5847      case `/usr/bin/file conftest.$ac_objext` in
5848	*32-bit*)
5849	  LD="${LD-ld} -melf32bsmip"
5850	  ;;
5851	*N32*)
5852	  LD="${LD-ld} -melf32bmipn32"
5853	  ;;
5854	*64-bit*)
5855	  LD="${LD-ld} -melf64bmip"
5856	;;
5857      esac
5858    else
5859      case `/usr/bin/file conftest.$ac_objext` in
5860	*32-bit*)
5861	  LD="${LD-ld} -32"
5862	  ;;
5863	*N32*)
5864	  LD="${LD-ld} -n32"
5865	  ;;
5866	*64-bit*)
5867	  LD="${LD-ld} -64"
5868	  ;;
5869      esac
5870    fi
5871  fi
5872  rm -rf conftest*
5873  ;;
5874
5875x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5876s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5877  # Find out which ABI we are using.
5878  echo 'int i;' > conftest.$ac_ext
5879  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5880  (eval $ac_compile) 2>&5
5881  ac_status=$?
5882  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5883  test $ac_status = 0; }; then
5884    case `/usr/bin/file conftest.o` in
5885      *32-bit*)
5886	case $host in
5887	  x86_64-*kfreebsd*-gnu)
5888	    LD="${LD-ld} -m elf_i386_fbsd"
5889	    ;;
5890	  x86_64-*linux*)
5891	    LD="${LD-ld} -m elf_i386"
5892	    ;;
5893	  ppc64-*linux*|powerpc64-*linux*)
5894	    LD="${LD-ld} -m elf32ppclinux"
5895	    ;;
5896	  s390x-*linux*)
5897	    LD="${LD-ld} -m elf_s390"
5898	    ;;
5899	  sparc64-*linux*)
5900	    LD="${LD-ld} -m elf32_sparc"
5901	    ;;
5902	esac
5903	;;
5904      *64-bit*)
5905	case $host in
5906	  x86_64-*kfreebsd*-gnu)
5907	    LD="${LD-ld} -m elf_x86_64_fbsd"
5908	    ;;
5909	  x86_64-*linux*)
5910	    LD="${LD-ld} -m elf_x86_64"
5911	    ;;
5912	  ppc*-*linux*|powerpc*-*linux*)
5913	    LD="${LD-ld} -m elf64ppc"
5914	    ;;
5915	  s390*-*linux*|s390*-*tpf*)
5916	    LD="${LD-ld} -m elf64_s390"
5917	    ;;
5918	  sparc*-*linux*)
5919	    LD="${LD-ld} -m elf64_sparc"
5920	    ;;
5921	esac
5922	;;
5923    esac
5924  fi
5925  rm -rf conftest*
5926  ;;
5927
5928*-*-sco3.2v5*)
5929  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5930  SAVE_CFLAGS="$CFLAGS"
5931  CFLAGS="$CFLAGS -belf"
5932  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5933$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5934if test "${lt_cv_cc_needs_belf+set}" = set; then :
5935  $as_echo_n "(cached) " >&6
5936else
5937  ac_ext=c
5938ac_cpp='$CPP $CPPFLAGS'
5939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5941ac_compiler_gnu=$ac_cv_c_compiler_gnu
5942
5943     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5944/* end confdefs.h.  */
5945
5946int
5947main ()
5948{
5949
5950  ;
5951  return 0;
5952}
5953_ACEOF
5954if ac_fn_c_try_link "$LINENO"; then :
5955  lt_cv_cc_needs_belf=yes
5956else
5957  lt_cv_cc_needs_belf=no
5958fi
5959rm -f core conftest.err conftest.$ac_objext \
5960    conftest$ac_exeext conftest.$ac_ext
5961     ac_ext=c
5962ac_cpp='$CPP $CPPFLAGS'
5963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5965ac_compiler_gnu=$ac_cv_c_compiler_gnu
5966
5967fi
5968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5969$as_echo "$lt_cv_cc_needs_belf" >&6; }
5970  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5971    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5972    CFLAGS="$SAVE_CFLAGS"
5973  fi
5974  ;;
5975sparc*-*solaris*)
5976  # Find out which ABI we are using.
5977  echo 'int i;' > conftest.$ac_ext
5978  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5979  (eval $ac_compile) 2>&5
5980  ac_status=$?
5981  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5982  test $ac_status = 0; }; then
5983    case `/usr/bin/file conftest.o` in
5984    *64-bit*)
5985      case $lt_cv_prog_gnu_ld in
5986      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5987      *)
5988	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5989	  LD="${LD-ld} -64"
5990	fi
5991	;;
5992      esac
5993      ;;
5994    esac
5995  fi
5996  rm -rf conftest*
5997  ;;
5998esac
5999
6000need_locks="$enable_libtool_lock"
6001
6002
6003  case $host_os in
6004    rhapsody* | darwin*)
6005    if test -n "$ac_tool_prefix"; then
6006  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6007set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6009$as_echo_n "checking for $ac_word... " >&6; }
6010if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6011  $as_echo_n "(cached) " >&6
6012else
6013  if test -n "$DSYMUTIL"; then
6014  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6015else
6016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6017for as_dir in $PATH
6018do
6019  IFS=$as_save_IFS
6020  test -z "$as_dir" && as_dir=.
6021    for ac_exec_ext in '' $ac_executable_extensions; do
6022  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6023    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6024    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6025    break 2
6026  fi
6027done
6028  done
6029IFS=$as_save_IFS
6030
6031fi
6032fi
6033DSYMUTIL=$ac_cv_prog_DSYMUTIL
6034if test -n "$DSYMUTIL"; then
6035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6036$as_echo "$DSYMUTIL" >&6; }
6037else
6038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6039$as_echo "no" >&6; }
6040fi
6041
6042
6043fi
6044if test -z "$ac_cv_prog_DSYMUTIL"; then
6045  ac_ct_DSYMUTIL=$DSYMUTIL
6046  # Extract the first word of "dsymutil", so it can be a program name with args.
6047set dummy dsymutil; ac_word=$2
6048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6049$as_echo_n "checking for $ac_word... " >&6; }
6050if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6051  $as_echo_n "(cached) " >&6
6052else
6053  if test -n "$ac_ct_DSYMUTIL"; then
6054  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6055else
6056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6057for as_dir in $PATH
6058do
6059  IFS=$as_save_IFS
6060  test -z "$as_dir" && as_dir=.
6061    for ac_exec_ext in '' $ac_executable_extensions; do
6062  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6063    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6064    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6065    break 2
6066  fi
6067done
6068  done
6069IFS=$as_save_IFS
6070
6071fi
6072fi
6073ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6074if test -n "$ac_ct_DSYMUTIL"; then
6075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6076$as_echo "$ac_ct_DSYMUTIL" >&6; }
6077else
6078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6079$as_echo "no" >&6; }
6080fi
6081
6082  if test "x$ac_ct_DSYMUTIL" = x; then
6083    DSYMUTIL=":"
6084  else
6085    case $cross_compiling:$ac_tool_warned in
6086yes:)
6087{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6088$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6089ac_tool_warned=yes ;;
6090esac
6091    DSYMUTIL=$ac_ct_DSYMUTIL
6092  fi
6093else
6094  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6095fi
6096
6097    if test -n "$ac_tool_prefix"; then
6098  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6099set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6101$as_echo_n "checking for $ac_word... " >&6; }
6102if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6103  $as_echo_n "(cached) " >&6
6104else
6105  if test -n "$NMEDIT"; then
6106  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6107else
6108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6109for as_dir in $PATH
6110do
6111  IFS=$as_save_IFS
6112  test -z "$as_dir" && as_dir=.
6113    for ac_exec_ext in '' $ac_executable_extensions; do
6114  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6115    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6116    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6117    break 2
6118  fi
6119done
6120  done
6121IFS=$as_save_IFS
6122
6123fi
6124fi
6125NMEDIT=$ac_cv_prog_NMEDIT
6126if test -n "$NMEDIT"; then
6127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6128$as_echo "$NMEDIT" >&6; }
6129else
6130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6131$as_echo "no" >&6; }
6132fi
6133
6134
6135fi
6136if test -z "$ac_cv_prog_NMEDIT"; then
6137  ac_ct_NMEDIT=$NMEDIT
6138  # Extract the first word of "nmedit", so it can be a program name with args.
6139set dummy nmedit; ac_word=$2
6140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6141$as_echo_n "checking for $ac_word... " >&6; }
6142if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6143  $as_echo_n "(cached) " >&6
6144else
6145  if test -n "$ac_ct_NMEDIT"; then
6146  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6147else
6148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149for as_dir in $PATH
6150do
6151  IFS=$as_save_IFS
6152  test -z "$as_dir" && as_dir=.
6153    for ac_exec_ext in '' $ac_executable_extensions; do
6154  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6155    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6156    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6157    break 2
6158  fi
6159done
6160  done
6161IFS=$as_save_IFS
6162
6163fi
6164fi
6165ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6166if test -n "$ac_ct_NMEDIT"; then
6167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6168$as_echo "$ac_ct_NMEDIT" >&6; }
6169else
6170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6171$as_echo "no" >&6; }
6172fi
6173
6174  if test "x$ac_ct_NMEDIT" = x; then
6175    NMEDIT=":"
6176  else
6177    case $cross_compiling:$ac_tool_warned in
6178yes:)
6179{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6180$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6181ac_tool_warned=yes ;;
6182esac
6183    NMEDIT=$ac_ct_NMEDIT
6184  fi
6185else
6186  NMEDIT="$ac_cv_prog_NMEDIT"
6187fi
6188
6189    if test -n "$ac_tool_prefix"; then
6190  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6191set dummy ${ac_tool_prefix}lipo; ac_word=$2
6192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6193$as_echo_n "checking for $ac_word... " >&6; }
6194if test "${ac_cv_prog_LIPO+set}" = set; then :
6195  $as_echo_n "(cached) " >&6
6196else
6197  if test -n "$LIPO"; then
6198  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6199else
6200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201for as_dir in $PATH
6202do
6203  IFS=$as_save_IFS
6204  test -z "$as_dir" && as_dir=.
6205    for ac_exec_ext in '' $ac_executable_extensions; do
6206  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6207    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6208    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6209    break 2
6210  fi
6211done
6212  done
6213IFS=$as_save_IFS
6214
6215fi
6216fi
6217LIPO=$ac_cv_prog_LIPO
6218if test -n "$LIPO"; then
6219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6220$as_echo "$LIPO" >&6; }
6221else
6222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6223$as_echo "no" >&6; }
6224fi
6225
6226
6227fi
6228if test -z "$ac_cv_prog_LIPO"; then
6229  ac_ct_LIPO=$LIPO
6230  # Extract the first word of "lipo", so it can be a program name with args.
6231set dummy lipo; ac_word=$2
6232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6233$as_echo_n "checking for $ac_word... " >&6; }
6234if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6235  $as_echo_n "(cached) " >&6
6236else
6237  if test -n "$ac_ct_LIPO"; then
6238  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6239else
6240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6241for as_dir in $PATH
6242do
6243  IFS=$as_save_IFS
6244  test -z "$as_dir" && as_dir=.
6245    for ac_exec_ext in '' $ac_executable_extensions; do
6246  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6247    ac_cv_prog_ac_ct_LIPO="lipo"
6248    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6249    break 2
6250  fi
6251done
6252  done
6253IFS=$as_save_IFS
6254
6255fi
6256fi
6257ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6258if test -n "$ac_ct_LIPO"; then
6259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6260$as_echo "$ac_ct_LIPO" >&6; }
6261else
6262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6263$as_echo "no" >&6; }
6264fi
6265
6266  if test "x$ac_ct_LIPO" = x; then
6267    LIPO=":"
6268  else
6269    case $cross_compiling:$ac_tool_warned in
6270yes:)
6271{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6272$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6273ac_tool_warned=yes ;;
6274esac
6275    LIPO=$ac_ct_LIPO
6276  fi
6277else
6278  LIPO="$ac_cv_prog_LIPO"
6279fi
6280
6281    if test -n "$ac_tool_prefix"; then
6282  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6283set dummy ${ac_tool_prefix}otool; ac_word=$2
6284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6285$as_echo_n "checking for $ac_word... " >&6; }
6286if test "${ac_cv_prog_OTOOL+set}" = set; then :
6287  $as_echo_n "(cached) " >&6
6288else
6289  if test -n "$OTOOL"; then
6290  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6291else
6292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6293for as_dir in $PATH
6294do
6295  IFS=$as_save_IFS
6296  test -z "$as_dir" && as_dir=.
6297    for ac_exec_ext in '' $ac_executable_extensions; do
6298  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6299    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6300    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6301    break 2
6302  fi
6303done
6304  done
6305IFS=$as_save_IFS
6306
6307fi
6308fi
6309OTOOL=$ac_cv_prog_OTOOL
6310if test -n "$OTOOL"; then
6311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6312$as_echo "$OTOOL" >&6; }
6313else
6314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6315$as_echo "no" >&6; }
6316fi
6317
6318
6319fi
6320if test -z "$ac_cv_prog_OTOOL"; then
6321  ac_ct_OTOOL=$OTOOL
6322  # Extract the first word of "otool", so it can be a program name with args.
6323set dummy otool; ac_word=$2
6324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6325$as_echo_n "checking for $ac_word... " >&6; }
6326if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6327  $as_echo_n "(cached) " >&6
6328else
6329  if test -n "$ac_ct_OTOOL"; then
6330  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6331else
6332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6333for as_dir in $PATH
6334do
6335  IFS=$as_save_IFS
6336  test -z "$as_dir" && as_dir=.
6337    for ac_exec_ext in '' $ac_executable_extensions; do
6338  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6339    ac_cv_prog_ac_ct_OTOOL="otool"
6340    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6341    break 2
6342  fi
6343done
6344  done
6345IFS=$as_save_IFS
6346
6347fi
6348fi
6349ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6350if test -n "$ac_ct_OTOOL"; then
6351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6352$as_echo "$ac_ct_OTOOL" >&6; }
6353else
6354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6355$as_echo "no" >&6; }
6356fi
6357
6358  if test "x$ac_ct_OTOOL" = x; then
6359    OTOOL=":"
6360  else
6361    case $cross_compiling:$ac_tool_warned in
6362yes:)
6363{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6364$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6365ac_tool_warned=yes ;;
6366esac
6367    OTOOL=$ac_ct_OTOOL
6368  fi
6369else
6370  OTOOL="$ac_cv_prog_OTOOL"
6371fi
6372
6373    if test -n "$ac_tool_prefix"; then
6374  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6375set dummy ${ac_tool_prefix}otool64; ac_word=$2
6376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6377$as_echo_n "checking for $ac_word... " >&6; }
6378if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6379  $as_echo_n "(cached) " >&6
6380else
6381  if test -n "$OTOOL64"; then
6382  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6383else
6384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6385for as_dir in $PATH
6386do
6387  IFS=$as_save_IFS
6388  test -z "$as_dir" && as_dir=.
6389    for ac_exec_ext in '' $ac_executable_extensions; do
6390  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6391    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6392    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6393    break 2
6394  fi
6395done
6396  done
6397IFS=$as_save_IFS
6398
6399fi
6400fi
6401OTOOL64=$ac_cv_prog_OTOOL64
6402if test -n "$OTOOL64"; then
6403  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6404$as_echo "$OTOOL64" >&6; }
6405else
6406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6407$as_echo "no" >&6; }
6408fi
6409
6410
6411fi
6412if test -z "$ac_cv_prog_OTOOL64"; then
6413  ac_ct_OTOOL64=$OTOOL64
6414  # Extract the first word of "otool64", so it can be a program name with args.
6415set dummy otool64; ac_word=$2
6416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6417$as_echo_n "checking for $ac_word... " >&6; }
6418if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6419  $as_echo_n "(cached) " >&6
6420else
6421  if test -n "$ac_ct_OTOOL64"; then
6422  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6423else
6424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6425for as_dir in $PATH
6426do
6427  IFS=$as_save_IFS
6428  test -z "$as_dir" && as_dir=.
6429    for ac_exec_ext in '' $ac_executable_extensions; do
6430  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6431    ac_cv_prog_ac_ct_OTOOL64="otool64"
6432    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6433    break 2
6434  fi
6435done
6436  done
6437IFS=$as_save_IFS
6438
6439fi
6440fi
6441ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6442if test -n "$ac_ct_OTOOL64"; then
6443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6444$as_echo "$ac_ct_OTOOL64" >&6; }
6445else
6446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6447$as_echo "no" >&6; }
6448fi
6449
6450  if test "x$ac_ct_OTOOL64" = x; then
6451    OTOOL64=":"
6452  else
6453    case $cross_compiling:$ac_tool_warned in
6454yes:)
6455{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6456$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6457ac_tool_warned=yes ;;
6458esac
6459    OTOOL64=$ac_ct_OTOOL64
6460  fi
6461else
6462  OTOOL64="$ac_cv_prog_OTOOL64"
6463fi
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6492$as_echo_n "checking for -single_module linker flag... " >&6; }
6493if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6494  $as_echo_n "(cached) " >&6
6495else
6496  lt_cv_apple_cc_single_mod=no
6497      if test -z "${LT_MULTI_MODULE}"; then
6498	# By default we will add the -single_module flag. You can override
6499	# by either setting the environment variable LT_MULTI_MODULE
6500	# non-empty at configure time, or by adding -multi_module to the
6501	# link flags.
6502	rm -rf libconftest.dylib*
6503	echo "int foo(void){return 1;}" > conftest.c
6504	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6505-dynamiclib -Wl,-single_module conftest.c" >&5
6506	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6507	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6508        _lt_result=$?
6509	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6510	  lt_cv_apple_cc_single_mod=yes
6511	else
6512	  cat conftest.err >&5
6513	fi
6514	rm -rf libconftest.dylib*
6515	rm -f conftest.*
6516      fi
6517fi
6518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6519$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6520    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6521$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6522if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6523  $as_echo_n "(cached) " >&6
6524else
6525  lt_cv_ld_exported_symbols_list=no
6526      save_LDFLAGS=$LDFLAGS
6527      echo "_main" > conftest.sym
6528      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6529      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6530/* end confdefs.h.  */
6531
6532int
6533main ()
6534{
6535
6536  ;
6537  return 0;
6538}
6539_ACEOF
6540if ac_fn_c_try_link "$LINENO"; then :
6541  lt_cv_ld_exported_symbols_list=yes
6542else
6543  lt_cv_ld_exported_symbols_list=no
6544fi
6545rm -f core conftest.err conftest.$ac_objext \
6546    conftest$ac_exeext conftest.$ac_ext
6547	LDFLAGS="$save_LDFLAGS"
6548
6549fi
6550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6551$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6552    case $host_os in
6553    rhapsody* | darwin1.[012])
6554      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6555    darwin1.*)
6556      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6557    darwin*) # darwin 5.x on
6558      # if running on 10.5 or later, the deployment target defaults
6559      # to the OS version, if on x86, and 10.4, the deployment
6560      # target defaults to 10.4. Don't you love it?
6561      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6562	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6563	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6564	10.[012]*)
6565	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6566	10.*)
6567	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6568      esac
6569    ;;
6570  esac
6571    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6572      _lt_dar_single_mod='$single_module'
6573    fi
6574    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6575      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6576    else
6577      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6578    fi
6579    if test "$DSYMUTIL" != ":"; then
6580      _lt_dsymutil='~$DSYMUTIL $lib || :'
6581    else
6582      _lt_dsymutil=
6583    fi
6584    ;;
6585  esac
6586
6587ac_ext=c
6588ac_cpp='$CPP $CPPFLAGS'
6589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6591ac_compiler_gnu=$ac_cv_c_compiler_gnu
6592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6593$as_echo_n "checking how to run the C preprocessor... " >&6; }
6594# On Suns, sometimes $CPP names a directory.
6595if test -n "$CPP" && test -d "$CPP"; then
6596  CPP=
6597fi
6598if test -z "$CPP"; then
6599  if test "${ac_cv_prog_CPP+set}" = set; then :
6600  $as_echo_n "(cached) " >&6
6601else
6602      # Double quotes because CPP needs to be expanded
6603    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6604    do
6605      ac_preproc_ok=false
6606for ac_c_preproc_warn_flag in '' yes
6607do
6608  # Use a header file that comes with gcc, so configuring glibc
6609  # with a fresh cross-compiler works.
6610  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6611  # <limits.h> exists even on freestanding compilers.
6612  # On the NeXT, cc -E runs the code through the compiler's parser,
6613  # not just through cpp. "Syntax error" is here to catch this case.
6614  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6615/* end confdefs.h.  */
6616#ifdef __STDC__
6617# include <limits.h>
6618#else
6619# include <assert.h>
6620#endif
6621		     Syntax error
6622_ACEOF
6623if ac_fn_c_try_cpp "$LINENO"; then :
6624
6625else
6626  # Broken: fails on valid input.
6627continue
6628fi
6629rm -f conftest.err conftest.$ac_ext
6630
6631  # OK, works on sane cases.  Now check whether nonexistent headers
6632  # can be detected and how.
6633  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6634/* end confdefs.h.  */
6635#include <ac_nonexistent.h>
6636_ACEOF
6637if ac_fn_c_try_cpp "$LINENO"; then :
6638  # Broken: success on invalid input.
6639continue
6640else
6641  # Passes both tests.
6642ac_preproc_ok=:
6643break
6644fi
6645rm -f conftest.err conftest.$ac_ext
6646
6647done
6648# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6649rm -f conftest.err conftest.$ac_ext
6650if $ac_preproc_ok; then :
6651  break
6652fi
6653
6654    done
6655    ac_cv_prog_CPP=$CPP
6656
6657fi
6658  CPP=$ac_cv_prog_CPP
6659else
6660  ac_cv_prog_CPP=$CPP
6661fi
6662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6663$as_echo "$CPP" >&6; }
6664ac_preproc_ok=false
6665for ac_c_preproc_warn_flag in '' yes
6666do
6667  # Use a header file that comes with gcc, so configuring glibc
6668  # with a fresh cross-compiler works.
6669  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6670  # <limits.h> exists even on freestanding compilers.
6671  # On the NeXT, cc -E runs the code through the compiler's parser,
6672  # not just through cpp. "Syntax error" is here to catch this case.
6673  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6674/* end confdefs.h.  */
6675#ifdef __STDC__
6676# include <limits.h>
6677#else
6678# include <assert.h>
6679#endif
6680		     Syntax error
6681_ACEOF
6682if ac_fn_c_try_cpp "$LINENO"; then :
6683
6684else
6685  # Broken: fails on valid input.
6686continue
6687fi
6688rm -f conftest.err conftest.$ac_ext
6689
6690  # OK, works on sane cases.  Now check whether nonexistent headers
6691  # can be detected and how.
6692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6693/* end confdefs.h.  */
6694#include <ac_nonexistent.h>
6695_ACEOF
6696if ac_fn_c_try_cpp "$LINENO"; then :
6697  # Broken: success on invalid input.
6698continue
6699else
6700  # Passes both tests.
6701ac_preproc_ok=:
6702break
6703fi
6704rm -f conftest.err conftest.$ac_ext
6705
6706done
6707# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6708rm -f conftest.err conftest.$ac_ext
6709if $ac_preproc_ok; then :
6710
6711else
6712  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6713$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6714as_fn_error "C preprocessor \"$CPP\" fails sanity check
6715See \`config.log' for more details." "$LINENO" 5; }
6716fi
6717
6718ac_ext=c
6719ac_cpp='$CPP $CPPFLAGS'
6720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6722ac_compiler_gnu=$ac_cv_c_compiler_gnu
6723
6724
6725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6726$as_echo_n "checking for ANSI C header files... " >&6; }
6727if test "${ac_cv_header_stdc+set}" = set; then :
6728  $as_echo_n "(cached) " >&6
6729else
6730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6731/* end confdefs.h.  */
6732#include <stdlib.h>
6733#include <stdarg.h>
6734#include <string.h>
6735#include <float.h>
6736
6737int
6738main ()
6739{
6740
6741  ;
6742  return 0;
6743}
6744_ACEOF
6745if ac_fn_c_try_compile "$LINENO"; then :
6746  ac_cv_header_stdc=yes
6747else
6748  ac_cv_header_stdc=no
6749fi
6750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6751
6752if test $ac_cv_header_stdc = yes; then
6753  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6754  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6755/* end confdefs.h.  */
6756#include <string.h>
6757
6758_ACEOF
6759if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6760  $EGREP "memchr" >/dev/null 2>&1; then :
6761
6762else
6763  ac_cv_header_stdc=no
6764fi
6765rm -f conftest*
6766
6767fi
6768
6769if test $ac_cv_header_stdc = yes; then
6770  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6771  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6772/* end confdefs.h.  */
6773#include <stdlib.h>
6774
6775_ACEOF
6776if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6777  $EGREP "free" >/dev/null 2>&1; then :
6778
6779else
6780  ac_cv_header_stdc=no
6781fi
6782rm -f conftest*
6783
6784fi
6785
6786if test $ac_cv_header_stdc = yes; then
6787  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6788  if test "$cross_compiling" = yes; then :
6789  :
6790else
6791  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6792/* end confdefs.h.  */
6793#include <ctype.h>
6794#include <stdlib.h>
6795#if ((' ' & 0x0FF) == 0x020)
6796# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6797# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6798#else
6799# define ISLOWER(c) \
6800		   (('a' <= (c) && (c) <= 'i') \
6801		     || ('j' <= (c) && (c) <= 'r') \
6802		     || ('s' <= (c) && (c) <= 'z'))
6803# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6804#endif
6805
6806#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6807int
6808main ()
6809{
6810  int i;
6811  for (i = 0; i < 256; i++)
6812    if (XOR (islower (i), ISLOWER (i))
6813	|| toupper (i) != TOUPPER (i))
6814      return 2;
6815  return 0;
6816}
6817_ACEOF
6818if ac_fn_c_try_run "$LINENO"; then :
6819
6820else
6821  ac_cv_header_stdc=no
6822fi
6823rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6824  conftest.$ac_objext conftest.beam conftest.$ac_ext
6825fi
6826
6827fi
6828fi
6829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6830$as_echo "$ac_cv_header_stdc" >&6; }
6831if test $ac_cv_header_stdc = yes; then
6832
6833$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6834
6835fi
6836
6837# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6838for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6839		  inttypes.h stdint.h unistd.h
6840do :
6841  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6842ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6843"
6844eval as_val=\$$as_ac_Header
6845   if test "x$as_val" = x""yes; then :
6846  cat >>confdefs.h <<_ACEOF
6847#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6848_ACEOF
6849
6850fi
6851
6852done
6853
6854
6855for ac_header in dlfcn.h
6856do :
6857  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6858"
6859if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6860  cat >>confdefs.h <<_ACEOF
6861#define HAVE_DLFCN_H 1
6862_ACEOF
6863
6864fi
6865
6866done
6867
6868
6869
6870# Set options
6871
6872
6873
6874        enable_dlopen=no
6875
6876
6877  enable_win32_dll=no
6878
6879
6880            # Check whether --enable-shared was given.
6881if test "${enable_shared+set}" = set; then :
6882  enableval=$enable_shared; p=${PACKAGE-default}
6883    case $enableval in
6884    yes) enable_shared=yes ;;
6885    no) enable_shared=no ;;
6886    *)
6887      enable_shared=no
6888      # Look at the argument we got.  We use all the common list separators.
6889      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6890      for pkg in $enableval; do
6891	IFS="$lt_save_ifs"
6892	if test "X$pkg" = "X$p"; then
6893	  enable_shared=yes
6894	fi
6895      done
6896      IFS="$lt_save_ifs"
6897      ;;
6898    esac
6899else
6900  enable_shared=yes
6901fi
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913# Check whether --with-pic was given.
6914if test "${with_pic+set}" = set; then :
6915  withval=$with_pic; pic_mode="$withval"
6916else
6917  pic_mode=default
6918fi
6919
6920
6921test -z "$pic_mode" && pic_mode=default
6922
6923
6924
6925
6926
6927
6928
6929  # Check whether --enable-fast-install was given.
6930if test "${enable_fast_install+set}" = set; then :
6931  enableval=$enable_fast_install; p=${PACKAGE-default}
6932    case $enableval in
6933    yes) enable_fast_install=yes ;;
6934    no) enable_fast_install=no ;;
6935    *)
6936      enable_fast_install=no
6937      # Look at the argument we got.  We use all the common list separators.
6938      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6939      for pkg in $enableval; do
6940	IFS="$lt_save_ifs"
6941	if test "X$pkg" = "X$p"; then
6942	  enable_fast_install=yes
6943	fi
6944      done
6945      IFS="$lt_save_ifs"
6946      ;;
6947    esac
6948else
6949  enable_fast_install=yes
6950fi
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962# This can be used to rebuild libtool when needed
6963LIBTOOL_DEPS="$ltmain"
6964
6965# Always use our own libtool.
6966LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992test -z "$LN_S" && LN_S="ln -s"
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007if test -n "${ZSH_VERSION+set}" ; then
7008   setopt NO_GLOB_SUBST
7009fi
7010
7011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7012$as_echo_n "checking for objdir... " >&6; }
7013if test "${lt_cv_objdir+set}" = set; then :
7014  $as_echo_n "(cached) " >&6
7015else
7016  rm -f .libs 2>/dev/null
7017mkdir .libs 2>/dev/null
7018if test -d .libs; then
7019  lt_cv_objdir=.libs
7020else
7021  # MS-DOS does not allow filenames that begin with a dot.
7022  lt_cv_objdir=_libs
7023fi
7024rmdir .libs 2>/dev/null
7025fi
7026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7027$as_echo "$lt_cv_objdir" >&6; }
7028objdir=$lt_cv_objdir
7029
7030
7031
7032
7033
7034cat >>confdefs.h <<_ACEOF
7035#define LT_OBJDIR "$lt_cv_objdir/"
7036_ACEOF
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054case $host_os in
7055aix3*)
7056  # AIX sometimes has problems with the GCC collect2 program.  For some
7057  # reason, if we set the COLLECT_NAMES environment variable, the problems
7058  # vanish in a puff of smoke.
7059  if test "X${COLLECT_NAMES+set}" != Xset; then
7060    COLLECT_NAMES=
7061    export COLLECT_NAMES
7062  fi
7063  ;;
7064esac
7065
7066# Sed substitution that helps us do robust quoting.  It backslashifies
7067# metacharacters that are still active within double-quoted strings.
7068sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7069
7070# Same as above, but do not quote variable references.
7071double_quote_subst='s/\(["`\\]\)/\\\1/g'
7072
7073# Sed substitution to delay expansion of an escaped shell variable in a
7074# double_quote_subst'ed string.
7075delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7076
7077# Sed substitution to delay expansion of an escaped single quote.
7078delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7079
7080# Sed substitution to avoid accidental globbing in evaled expressions
7081no_glob_subst='s/\*/\\\*/g'
7082
7083# Global variables:
7084ofile=libtool
7085can_build_shared=yes
7086
7087# All known linkers require a `.a' archive for static linking (except MSVC,
7088# which needs '.lib').
7089libext=a
7090
7091with_gnu_ld="$lt_cv_prog_gnu_ld"
7092
7093old_CC="$CC"
7094old_CFLAGS="$CFLAGS"
7095
7096# Set sane defaults for various variables
7097test -z "$CC" && CC=cc
7098test -z "$LTCC" && LTCC=$CC
7099test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7100test -z "$LD" && LD=ld
7101test -z "$ac_objext" && ac_objext=o
7102
7103for cc_temp in $compiler""; do
7104  case $cc_temp in
7105    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7106    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7107    \-*) ;;
7108    *) break;;
7109  esac
7110done
7111cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7112
7113
7114# Only perform the check for file, if the check method requires it
7115test -z "$MAGIC_CMD" && MAGIC_CMD=file
7116case $deplibs_check_method in
7117file_magic*)
7118  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7119    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7120$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7121if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7122  $as_echo_n "(cached) " >&6
7123else
7124  case $MAGIC_CMD in
7125[\\/*] |  ?:[\\/]*)
7126  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7127  ;;
7128*)
7129  lt_save_MAGIC_CMD="$MAGIC_CMD"
7130  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7131  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7132  for ac_dir in $ac_dummy; do
7133    IFS="$lt_save_ifs"
7134    test -z "$ac_dir" && ac_dir=.
7135    if test -f $ac_dir/${ac_tool_prefix}file; then
7136      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7137      if test -n "$file_magic_test_file"; then
7138	case $deplibs_check_method in
7139	"file_magic "*)
7140	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7141	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7142	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7143	    $EGREP "$file_magic_regex" > /dev/null; then
7144	    :
7145	  else
7146	    cat <<_LT_EOF 1>&2
7147
7148*** Warning: the command libtool uses to detect shared libraries,
7149*** $file_magic_cmd, produces output that libtool cannot recognize.
7150*** The result is that libtool may fail to recognize shared libraries
7151*** as such.  This will affect the creation of libtool libraries that
7152*** depend on shared libraries, but programs linked with such libtool
7153*** libraries will work regardless of this problem.  Nevertheless, you
7154*** may want to report the problem to your system manager and/or to
7155*** bug-libtool@gnu.org
7156
7157_LT_EOF
7158	  fi ;;
7159	esac
7160      fi
7161      break
7162    fi
7163  done
7164  IFS="$lt_save_ifs"
7165  MAGIC_CMD="$lt_save_MAGIC_CMD"
7166  ;;
7167esac
7168fi
7169
7170MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7171if test -n "$MAGIC_CMD"; then
7172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7173$as_echo "$MAGIC_CMD" >&6; }
7174else
7175  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7176$as_echo "no" >&6; }
7177fi
7178
7179
7180
7181
7182
7183if test -z "$lt_cv_path_MAGIC_CMD"; then
7184  if test -n "$ac_tool_prefix"; then
7185    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7186$as_echo_n "checking for file... " >&6; }
7187if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7188  $as_echo_n "(cached) " >&6
7189else
7190  case $MAGIC_CMD in
7191[\\/*] |  ?:[\\/]*)
7192  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7193  ;;
7194*)
7195  lt_save_MAGIC_CMD="$MAGIC_CMD"
7196  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7197  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7198  for ac_dir in $ac_dummy; do
7199    IFS="$lt_save_ifs"
7200    test -z "$ac_dir" && ac_dir=.
7201    if test -f $ac_dir/file; then
7202      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7203      if test -n "$file_magic_test_file"; then
7204	case $deplibs_check_method in
7205	"file_magic "*)
7206	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7207	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7208	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7209	    $EGREP "$file_magic_regex" > /dev/null; then
7210	    :
7211	  else
7212	    cat <<_LT_EOF 1>&2
7213
7214*** Warning: the command libtool uses to detect shared libraries,
7215*** $file_magic_cmd, produces output that libtool cannot recognize.
7216*** The result is that libtool may fail to recognize shared libraries
7217*** as such.  This will affect the creation of libtool libraries that
7218*** depend on shared libraries, but programs linked with such libtool
7219*** libraries will work regardless of this problem.  Nevertheless, you
7220*** may want to report the problem to your system manager and/or to
7221*** bug-libtool@gnu.org
7222
7223_LT_EOF
7224	  fi ;;
7225	esac
7226      fi
7227      break
7228    fi
7229  done
7230  IFS="$lt_save_ifs"
7231  MAGIC_CMD="$lt_save_MAGIC_CMD"
7232  ;;
7233esac
7234fi
7235
7236MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7237if test -n "$MAGIC_CMD"; then
7238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7239$as_echo "$MAGIC_CMD" >&6; }
7240else
7241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7242$as_echo "no" >&6; }
7243fi
7244
7245
7246  else
7247    MAGIC_CMD=:
7248  fi
7249fi
7250
7251  fi
7252  ;;
7253esac
7254
7255# Use C for the default configuration in the libtool script
7256
7257lt_save_CC="$CC"
7258ac_ext=c
7259ac_cpp='$CPP $CPPFLAGS'
7260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7262ac_compiler_gnu=$ac_cv_c_compiler_gnu
7263
7264
7265# Source file extension for C test sources.
7266ac_ext=c
7267
7268# Object file extension for compiled C test sources.
7269objext=o
7270objext=$objext
7271
7272# Code to be used in simple compile tests
7273lt_simple_compile_test_code="int some_variable = 0;"
7274
7275# Code to be used in simple link tests
7276lt_simple_link_test_code='int main(){return(0);}'
7277
7278
7279
7280
7281
7282
7283
7284# If no C compiler was specified, use CC.
7285LTCC=${LTCC-"$CC"}
7286
7287# If no C compiler flags were specified, use CFLAGS.
7288LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7289
7290# Allow CC to be a program name with arguments.
7291compiler=$CC
7292
7293# Save the default compiler, since it gets overwritten when the other
7294# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7295compiler_DEFAULT=$CC
7296
7297# save warnings/boilerplate of simple test code
7298ac_outfile=conftest.$ac_objext
7299echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7300eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7301_lt_compiler_boilerplate=`cat conftest.err`
7302$RM conftest*
7303
7304ac_outfile=conftest.$ac_objext
7305echo "$lt_simple_link_test_code" >conftest.$ac_ext
7306eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7307_lt_linker_boilerplate=`cat conftest.err`
7308$RM -r conftest*
7309
7310
7311## CAVEAT EMPTOR:
7312## There is no encapsulation within the following macros, do not change
7313## the running order or otherwise move them around unless you know exactly
7314## what you are doing...
7315if test -n "$compiler"; then
7316
7317lt_prog_compiler_no_builtin_flag=
7318
7319if test "$GCC" = yes; then
7320  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7321
7322  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7323$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7324if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7325  $as_echo_n "(cached) " >&6
7326else
7327  lt_cv_prog_compiler_rtti_exceptions=no
7328   ac_outfile=conftest.$ac_objext
7329   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7330   lt_compiler_flag="-fno-rtti -fno-exceptions"
7331   # Insert the option either (1) after the last *FLAGS variable, or
7332   # (2) before a word containing "conftest.", or (3) at the end.
7333   # Note that $ac_compile itself does not contain backslashes and begins
7334   # with a dollar sign (not a hyphen), so the echo should work correctly.
7335   # The option is referenced via a variable to avoid confusing sed.
7336   lt_compile=`echo "$ac_compile" | $SED \
7337   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7338   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7339   -e 's:$: $lt_compiler_flag:'`
7340   (eval echo "\"\$as_me:7340: $lt_compile\"" >&5)
7341   (eval "$lt_compile" 2>conftest.err)
7342   ac_status=$?
7343   cat conftest.err >&5
7344   echo "$as_me:7344: \$? = $ac_status" >&5
7345   if (exit $ac_status) && test -s "$ac_outfile"; then
7346     # The compiler can only warn and ignore the option if not recognized
7347     # So say no if there are warnings other than the usual output.
7348     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7349     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7350     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7351       lt_cv_prog_compiler_rtti_exceptions=yes
7352     fi
7353   fi
7354   $RM conftest*
7355
7356fi
7357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7358$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7359
7360if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7361    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7362else
7363    :
7364fi
7365
7366fi
7367
7368
7369
7370
7371
7372
7373  lt_prog_compiler_wl=
7374lt_prog_compiler_pic=
7375lt_prog_compiler_static=
7376
7377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7378$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7379
7380  if test "$GCC" = yes; then
7381    lt_prog_compiler_wl='-Wl,'
7382    lt_prog_compiler_static='-static'
7383
7384    case $host_os in
7385      aix*)
7386      # All AIX code is PIC.
7387      if test "$host_cpu" = ia64; then
7388	# AIX 5 now supports IA64 processor
7389	lt_prog_compiler_static='-Bstatic'
7390      fi
7391      ;;
7392
7393    amigaos*)
7394      case $host_cpu in
7395      powerpc)
7396            # see comment about AmigaOS4 .so support
7397            lt_prog_compiler_pic='-fPIC'
7398        ;;
7399      m68k)
7400            # FIXME: we need at least 68020 code to build shared libraries, but
7401            # adding the `-m68020' flag to GCC prevents building anything better,
7402            # like `-m68040'.
7403            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7404        ;;
7405      esac
7406      ;;
7407
7408    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7409      # PIC is the default for these OSes.
7410      ;;
7411
7412    mingw* | cygwin* | pw32* | os2* | cegcc*)
7413      # This hack is so that the source file can tell whether it is being
7414      # built for inclusion in a dll (and should export symbols for example).
7415      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7416      # (--disable-auto-import) libraries
7417      lt_prog_compiler_pic='-DDLL_EXPORT'
7418      ;;
7419
7420    darwin* | rhapsody*)
7421      # PIC is the default on this platform
7422      # Common symbols not allowed in MH_DYLIB files
7423      lt_prog_compiler_pic='-fno-common'
7424      ;;
7425
7426    hpux*)
7427      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7428      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7429      # sets the default TLS model and affects inlining.
7430      case $host_cpu in
7431      hppa*64*)
7432	# +Z the default
7433	;;
7434      *)
7435	lt_prog_compiler_pic='-fPIC'
7436	;;
7437      esac
7438      ;;
7439
7440    interix[3-9]*)
7441      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7442      # Instead, we relocate shared libraries at runtime.
7443      ;;
7444
7445    msdosdjgpp*)
7446      # Just because we use GCC doesn't mean we suddenly get shared libraries
7447      # on systems that don't support them.
7448      lt_prog_compiler_can_build_shared=no
7449      enable_shared=no
7450      ;;
7451
7452    *nto* | *qnx*)
7453      # QNX uses GNU C++, but need to define -shared option too, otherwise
7454      # it will coredump.
7455      lt_prog_compiler_pic='-fPIC -shared'
7456      ;;
7457
7458    sysv4*MP*)
7459      if test -d /usr/nec; then
7460	lt_prog_compiler_pic=-Kconform_pic
7461      fi
7462      ;;
7463
7464    *)
7465      lt_prog_compiler_pic='-fPIC'
7466      ;;
7467    esac
7468  else
7469    # PORTME Check for flag to pass linker flags through the system compiler.
7470    case $host_os in
7471    aix*)
7472      lt_prog_compiler_wl='-Wl,'
7473      if test "$host_cpu" = ia64; then
7474	# AIX 5 now supports IA64 processor
7475	lt_prog_compiler_static='-Bstatic'
7476      else
7477	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7478      fi
7479      ;;
7480
7481    mingw* | cygwin* | pw32* | os2* | cegcc*)
7482      # This hack is so that the source file can tell whether it is being
7483      # built for inclusion in a dll (and should export symbols for example).
7484      lt_prog_compiler_pic='-DDLL_EXPORT'
7485      ;;
7486
7487    hpux9* | hpux10* | hpux11*)
7488      lt_prog_compiler_wl='-Wl,'
7489      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7490      # not for PA HP-UX.
7491      case $host_cpu in
7492      hppa*64*|ia64*)
7493	# +Z the default
7494	;;
7495      *)
7496	lt_prog_compiler_pic='+Z'
7497	;;
7498      esac
7499      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7500      lt_prog_compiler_static='${wl}-a ${wl}archive'
7501      ;;
7502
7503    irix5* | irix6* | nonstopux*)
7504      lt_prog_compiler_wl='-Wl,'
7505      # PIC (with -KPIC) is the default.
7506      lt_prog_compiler_static='-non_shared'
7507      ;;
7508
7509    linux* | k*bsd*-gnu)
7510      case $cc_basename in
7511      # old Intel for x86_64 which still supported -KPIC.
7512      ecc*)
7513	lt_prog_compiler_wl='-Wl,'
7514	lt_prog_compiler_pic='-KPIC'
7515	lt_prog_compiler_static='-static'
7516        ;;
7517      # icc used to be incompatible with GCC.
7518      # ICC 10 doesn't accept -KPIC any more.
7519      icc* | ifort*)
7520	lt_prog_compiler_wl='-Wl,'
7521	lt_prog_compiler_pic='-fPIC'
7522	lt_prog_compiler_static='-static'
7523        ;;
7524      # Lahey Fortran 8.1.
7525      lf95*)
7526	lt_prog_compiler_wl='-Wl,'
7527	lt_prog_compiler_pic='--shared'
7528	lt_prog_compiler_static='--static'
7529	;;
7530      pgcc* | pgf77* | pgf90* | pgf95*)
7531        # Portland Group compilers (*not* the Pentium gcc compiler,
7532	# which looks to be a dead project)
7533	lt_prog_compiler_wl='-Wl,'
7534	lt_prog_compiler_pic='-fpic'
7535	lt_prog_compiler_static='-Bstatic'
7536        ;;
7537      ccc*)
7538        lt_prog_compiler_wl='-Wl,'
7539        # All Alpha code is PIC.
7540        lt_prog_compiler_static='-non_shared'
7541        ;;
7542      xl*)
7543	# IBM XL C 8.0/Fortran 10.1 on PPC
7544	lt_prog_compiler_wl='-Wl,'
7545	lt_prog_compiler_pic='-qpic'
7546	lt_prog_compiler_static='-qstaticlink'
7547	;;
7548      *)
7549	case `$CC -V 2>&1 | sed 5q` in
7550	*Sun\ C*)
7551	  # Sun C 5.9
7552	  lt_prog_compiler_pic='-KPIC'
7553	  lt_prog_compiler_static='-Bstatic'
7554	  lt_prog_compiler_wl='-Wl,'
7555	  ;;
7556	*Sun\ F*)
7557	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7558	  lt_prog_compiler_pic='-KPIC'
7559	  lt_prog_compiler_static='-Bstatic'
7560	  lt_prog_compiler_wl=''
7561	  ;;
7562	esac
7563	;;
7564      esac
7565      ;;
7566
7567    newsos6)
7568      lt_prog_compiler_pic='-KPIC'
7569      lt_prog_compiler_static='-Bstatic'
7570      ;;
7571
7572    *nto* | *qnx*)
7573      # QNX uses GNU C++, but need to define -shared option too, otherwise
7574      # it will coredump.
7575      lt_prog_compiler_pic='-fPIC -shared'
7576      ;;
7577
7578    osf3* | osf4* | osf5*)
7579      lt_prog_compiler_wl='-Wl,'
7580      # All OSF/1 code is PIC.
7581      lt_prog_compiler_static='-non_shared'
7582      ;;
7583
7584    rdos*)
7585      lt_prog_compiler_static='-non_shared'
7586      ;;
7587
7588    solaris*)
7589      lt_prog_compiler_pic='-KPIC'
7590      lt_prog_compiler_static='-Bstatic'
7591      case $cc_basename in
7592      f77* | f90* | f95*)
7593	lt_prog_compiler_wl='-Qoption ld ';;
7594      *)
7595	lt_prog_compiler_wl='-Wl,';;
7596      esac
7597      ;;
7598
7599    sunos4*)
7600      lt_prog_compiler_wl='-Qoption ld '
7601      lt_prog_compiler_pic='-PIC'
7602      lt_prog_compiler_static='-Bstatic'
7603      ;;
7604
7605    sysv4 | sysv4.2uw2* | sysv4.3*)
7606      lt_prog_compiler_wl='-Wl,'
7607      lt_prog_compiler_pic='-KPIC'
7608      lt_prog_compiler_static='-Bstatic'
7609      ;;
7610
7611    sysv4*MP*)
7612      if test -d /usr/nec ;then
7613	lt_prog_compiler_pic='-Kconform_pic'
7614	lt_prog_compiler_static='-Bstatic'
7615      fi
7616      ;;
7617
7618    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7619      lt_prog_compiler_wl='-Wl,'
7620      lt_prog_compiler_pic='-KPIC'
7621      lt_prog_compiler_static='-Bstatic'
7622      ;;
7623
7624    unicos*)
7625      lt_prog_compiler_wl='-Wl,'
7626      lt_prog_compiler_can_build_shared=no
7627      ;;
7628
7629    uts4*)
7630      lt_prog_compiler_pic='-pic'
7631      lt_prog_compiler_static='-Bstatic'
7632      ;;
7633
7634    *)
7635      lt_prog_compiler_can_build_shared=no
7636      ;;
7637    esac
7638  fi
7639
7640case $host_os in
7641  # For platforms which do not support PIC, -DPIC is meaningless:
7642  *djgpp*)
7643    lt_prog_compiler_pic=
7644    ;;
7645  *)
7646    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7647    ;;
7648esac
7649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7650$as_echo "$lt_prog_compiler_pic" >&6; }
7651
7652
7653
7654
7655
7656
7657#
7658# Check to make sure the PIC flag actually works.
7659#
7660if test -n "$lt_prog_compiler_pic"; then
7661  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7662$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7663if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7664  $as_echo_n "(cached) " >&6
7665else
7666  lt_cv_prog_compiler_pic_works=no
7667   ac_outfile=conftest.$ac_objext
7668   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7669   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7670   # Insert the option either (1) after the last *FLAGS variable, or
7671   # (2) before a word containing "conftest.", or (3) at the end.
7672   # Note that $ac_compile itself does not contain backslashes and begins
7673   # with a dollar sign (not a hyphen), so the echo should work correctly.
7674   # The option is referenced via a variable to avoid confusing sed.
7675   lt_compile=`echo "$ac_compile" | $SED \
7676   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7677   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7678   -e 's:$: $lt_compiler_flag:'`
7679   (eval echo "\"\$as_me:7679: $lt_compile\"" >&5)
7680   (eval "$lt_compile" 2>conftest.err)
7681   ac_status=$?
7682   cat conftest.err >&5
7683   echo "$as_me:7683: \$? = $ac_status" >&5
7684   if (exit $ac_status) && test -s "$ac_outfile"; then
7685     # The compiler can only warn and ignore the option if not recognized
7686     # So say no if there are warnings other than the usual output.
7687     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7688     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7689     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7690       lt_cv_prog_compiler_pic_works=yes
7691     fi
7692   fi
7693   $RM conftest*
7694
7695fi
7696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7697$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7698
7699if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7700    case $lt_prog_compiler_pic in
7701     "" | " "*) ;;
7702     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7703     esac
7704else
7705    lt_prog_compiler_pic=
7706     lt_prog_compiler_can_build_shared=no
7707fi
7708
7709fi
7710
7711
7712
7713
7714
7715
7716#
7717# Check to make sure the static flag actually works.
7718#
7719wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7721$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7722if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7723  $as_echo_n "(cached) " >&6
7724else
7725  lt_cv_prog_compiler_static_works=no
7726   save_LDFLAGS="$LDFLAGS"
7727   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7728   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7729   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7730     # The linker can only warn and ignore the option if not recognized
7731     # So say no if there are warnings
7732     if test -s conftest.err; then
7733       # Append any errors to the config.log.
7734       cat conftest.err 1>&5
7735       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7736       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7737       if diff conftest.exp conftest.er2 >/dev/null; then
7738         lt_cv_prog_compiler_static_works=yes
7739       fi
7740     else
7741       lt_cv_prog_compiler_static_works=yes
7742     fi
7743   fi
7744   $RM -r conftest*
7745   LDFLAGS="$save_LDFLAGS"
7746
7747fi
7748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7749$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7750
7751if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7752    :
7753else
7754    lt_prog_compiler_static=
7755fi
7756
7757
7758
7759
7760
7761
7762
7763  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7764$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7765if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7766  $as_echo_n "(cached) " >&6
7767else
7768  lt_cv_prog_compiler_c_o=no
7769   $RM -r conftest 2>/dev/null
7770   mkdir conftest
7771   cd conftest
7772   mkdir out
7773   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7774
7775   lt_compiler_flag="-o out/conftest2.$ac_objext"
7776   # Insert the option either (1) after the last *FLAGS variable, or
7777   # (2) before a word containing "conftest.", or (3) at the end.
7778   # Note that $ac_compile itself does not contain backslashes and begins
7779   # with a dollar sign (not a hyphen), so the echo should work correctly.
7780   lt_compile=`echo "$ac_compile" | $SED \
7781   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7782   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7783   -e 's:$: $lt_compiler_flag:'`
7784   (eval echo "\"\$as_me:7784: $lt_compile\"" >&5)
7785   (eval "$lt_compile" 2>out/conftest.err)
7786   ac_status=$?
7787   cat out/conftest.err >&5
7788   echo "$as_me:7788: \$? = $ac_status" >&5
7789   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7790   then
7791     # The compiler can only warn and ignore the option if not recognized
7792     # So say no if there are warnings
7793     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7794     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7795     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7796       lt_cv_prog_compiler_c_o=yes
7797     fi
7798   fi
7799   chmod u+w . 2>&5
7800   $RM conftest*
7801   # SGI C++ compiler will create directory out/ii_files/ for
7802   # template instantiation
7803   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7804   $RM out/* && rmdir out
7805   cd ..
7806   $RM -r conftest
7807   $RM conftest*
7808
7809fi
7810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7811$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7812
7813
7814
7815
7816
7817
7818  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7819$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7820if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7821  $as_echo_n "(cached) " >&6
7822else
7823  lt_cv_prog_compiler_c_o=no
7824   $RM -r conftest 2>/dev/null
7825   mkdir conftest
7826   cd conftest
7827   mkdir out
7828   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7829
7830   lt_compiler_flag="-o out/conftest2.$ac_objext"
7831   # Insert the option either (1) after the last *FLAGS variable, or
7832   # (2) before a word containing "conftest.", or (3) at the end.
7833   # Note that $ac_compile itself does not contain backslashes and begins
7834   # with a dollar sign (not a hyphen), so the echo should work correctly.
7835   lt_compile=`echo "$ac_compile" | $SED \
7836   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7837   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7838   -e 's:$: $lt_compiler_flag:'`
7839   (eval echo "\"\$as_me:7839: $lt_compile\"" >&5)
7840   (eval "$lt_compile" 2>out/conftest.err)
7841   ac_status=$?
7842   cat out/conftest.err >&5
7843   echo "$as_me:7843: \$? = $ac_status" >&5
7844   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7845   then
7846     # The compiler can only warn and ignore the option if not recognized
7847     # So say no if there are warnings
7848     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7849     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7850     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7851       lt_cv_prog_compiler_c_o=yes
7852     fi
7853   fi
7854   chmod u+w . 2>&5
7855   $RM conftest*
7856   # SGI C++ compiler will create directory out/ii_files/ for
7857   # template instantiation
7858   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7859   $RM out/* && rmdir out
7860   cd ..
7861   $RM -r conftest
7862   $RM conftest*
7863
7864fi
7865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7866$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7867
7868
7869
7870
7871hard_links="nottested"
7872if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7873  # do not overwrite the value of need_locks provided by the user
7874  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7875$as_echo_n "checking if we can lock with hard links... " >&6; }
7876  hard_links=yes
7877  $RM conftest*
7878  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7879  touch conftest.a
7880  ln conftest.a conftest.b 2>&5 || hard_links=no
7881  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7883$as_echo "$hard_links" >&6; }
7884  if test "$hard_links" = no; then
7885    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7886$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7887    need_locks=warn
7888  fi
7889else
7890  need_locks=no
7891fi
7892
7893
7894
7895
7896
7897
7898  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7899$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7900
7901  runpath_var=
7902  allow_undefined_flag=
7903  always_export_symbols=no
7904  archive_cmds=
7905  archive_expsym_cmds=
7906  compiler_needs_object=no
7907  enable_shared_with_static_runtimes=no
7908  export_dynamic_flag_spec=
7909  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7910  hardcode_automatic=no
7911  hardcode_direct=no
7912  hardcode_direct_absolute=no
7913  hardcode_libdir_flag_spec=
7914  hardcode_libdir_flag_spec_ld=
7915  hardcode_libdir_separator=
7916  hardcode_minus_L=no
7917  hardcode_shlibpath_var=unsupported
7918  inherit_rpath=no
7919  link_all_deplibs=unknown
7920  module_cmds=
7921  module_expsym_cmds=
7922  old_archive_from_new_cmds=
7923  old_archive_from_expsyms_cmds=
7924  thread_safe_flag_spec=
7925  whole_archive_flag_spec=
7926  # include_expsyms should be a list of space-separated symbols to be *always*
7927  # included in the symbol list
7928  include_expsyms=
7929  # exclude_expsyms can be an extended regexp of symbols to exclude
7930  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7931  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7932  # as well as any symbol that contains `d'.
7933  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7934  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7935  # platforms (ab)use it in PIC code, but their linkers get confused if
7936  # the symbol is explicitly referenced.  Since portable code cannot
7937  # rely on this symbol name, it's probably fine to never include it in
7938  # preloaded symbol tables.
7939  # Exclude shared library initialization/finalization symbols.
7940  extract_expsyms_cmds=
7941
7942  case $host_os in
7943  cygwin* | mingw* | pw32* | cegcc*)
7944    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7945    # When not using gcc, we currently assume that we are using
7946    # Microsoft Visual C++.
7947    if test "$GCC" != yes; then
7948      with_gnu_ld=no
7949    fi
7950    ;;
7951  interix*)
7952    # we just hope/assume this is gcc and not c89 (= MSVC++)
7953    with_gnu_ld=yes
7954    ;;
7955  openbsd*)
7956    with_gnu_ld=no
7957    ;;
7958  linux* | k*bsd*-gnu)
7959    link_all_deplibs=no
7960    ;;
7961  esac
7962
7963  ld_shlibs=yes
7964  if test "$with_gnu_ld" = yes; then
7965    # If archive_cmds runs LD, not CC, wlarc should be empty
7966    wlarc='${wl}'
7967
7968    # Set some defaults for GNU ld with shared library support. These
7969    # are reset later if shared libraries are not supported. Putting them
7970    # here allows them to be overridden if necessary.
7971    runpath_var=LD_RUN_PATH
7972    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7973    export_dynamic_flag_spec='${wl}--export-dynamic'
7974    # ancient GNU ld didn't support --whole-archive et. al.
7975    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7976      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7977    else
7978      whole_archive_flag_spec=
7979    fi
7980    supports_anon_versioning=no
7981    case `$LD -v 2>&1` in
7982      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7983      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7984      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7985      *\ 2.11.*) ;; # other 2.11 versions
7986      *) supports_anon_versioning=yes ;;
7987    esac
7988
7989    # See if GNU ld supports shared libraries.
7990    case $host_os in
7991    aix[3-9]*)
7992      # On AIX/PPC, the GNU linker is very broken
7993      if test "$host_cpu" != ia64; then
7994	ld_shlibs=no
7995	cat <<_LT_EOF 1>&2
7996
7997*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7998*** to be unable to reliably create shared libraries on AIX.
7999*** Therefore, libtool is disabling shared libraries support.  If you
8000*** really care for shared libraries, you may want to modify your PATH
8001*** so that a non-GNU linker is found, and then restart.
8002
8003_LT_EOF
8004      fi
8005      ;;
8006
8007    amigaos*)
8008      case $host_cpu in
8009      powerpc)
8010            # see comment about AmigaOS4 .so support
8011            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8012            archive_expsym_cmds=''
8013        ;;
8014      m68k)
8015            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)'
8016            hardcode_libdir_flag_spec='-L$libdir'
8017            hardcode_minus_L=yes
8018        ;;
8019      esac
8020      ;;
8021
8022    beos*)
8023      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8024	allow_undefined_flag=unsupported
8025	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8026	# support --undefined.  This deserves some investigation.  FIXME
8027	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8028      else
8029	ld_shlibs=no
8030      fi
8031      ;;
8032
8033    cygwin* | mingw* | pw32* | cegcc*)
8034      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8035      # as there is no search path for DLLs.
8036      hardcode_libdir_flag_spec='-L$libdir'
8037      allow_undefined_flag=unsupported
8038      always_export_symbols=no
8039      enable_shared_with_static_runtimes=yes
8040      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8041
8042      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8043        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8044	# If the export-symbols file already is a .def file (1st line
8045	# is EXPORTS), use it as is; otherwise, prepend...
8046	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8047	  cp $export_symbols $output_objdir/$soname.def;
8048	else
8049	  echo EXPORTS > $output_objdir/$soname.def;
8050	  cat $export_symbols >> $output_objdir/$soname.def;
8051	fi~
8052	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8053      else
8054	ld_shlibs=no
8055      fi
8056      ;;
8057
8058    interix[3-9]*)
8059      hardcode_direct=no
8060      hardcode_shlibpath_var=no
8061      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8062      export_dynamic_flag_spec='${wl}-E'
8063      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8064      # Instead, shared libraries are loaded at an image base (0x10000000 by
8065      # default) and relocated if they conflict, which is a slow very memory
8066      # consuming and fragmenting process.  To avoid this, we pick a random,
8067      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8068      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8069      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8070      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'
8071      ;;
8072
8073    gnu* | linux* | tpf* | k*bsd*-gnu)
8074      tmp_diet=no
8075      if test "$host_os" = linux-dietlibc; then
8076	case $cc_basename in
8077	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8078	esac
8079      fi
8080      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8081	 && test "$tmp_diet" = no
8082      then
8083	tmp_addflag=
8084	tmp_sharedflag='-shared'
8085	case $cc_basename,$host_cpu in
8086        pgcc*)				# Portland Group C compiler
8087	  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'
8088	  tmp_addflag=' $pic_flag'
8089	  ;;
8090	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8091	  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'
8092	  tmp_addflag=' $pic_flag -Mnomain' ;;
8093	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8094	  tmp_addflag=' -i_dynamic' ;;
8095	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8096	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8097	ifc* | ifort*)			# Intel Fortran compiler
8098	  tmp_addflag=' -nofor_main' ;;
8099	lf95*)				# Lahey Fortran 8.1
8100	  whole_archive_flag_spec=
8101	  tmp_sharedflag='--shared' ;;
8102	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
8103	  tmp_sharedflag='-qmkshrobj'
8104	  tmp_addflag= ;;
8105	esac
8106	case `$CC -V 2>&1 | sed 5q` in
8107	*Sun\ C*)			# Sun C 5.9
8108	  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'
8109	  compiler_needs_object=yes
8110	  tmp_sharedflag='-G' ;;
8111	*Sun\ F*)			# Sun Fortran 8.3
8112	  tmp_sharedflag='-G' ;;
8113	esac
8114	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8115
8116        if test "x$supports_anon_versioning" = xyes; then
8117          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8118	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8119	    echo "local: *; };" >> $output_objdir/$libname.ver~
8120	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8121        fi
8122
8123	case $cc_basename in
8124	xlf*)
8125	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8126	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8127	  hardcode_libdir_flag_spec=
8128	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8129	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8130	  if test "x$supports_anon_versioning" = xyes; then
8131	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8132	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8133	      echo "local: *; };" >> $output_objdir/$libname.ver~
8134	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8135	  fi
8136	  ;;
8137	esac
8138      else
8139        ld_shlibs=no
8140      fi
8141      ;;
8142
8143    netbsd* | netbsdelf*-gnu)
8144      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8145	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8146	wlarc=
8147      else
8148	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8149	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8150      fi
8151      ;;
8152
8153    solaris*)
8154      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8155	ld_shlibs=no
8156	cat <<_LT_EOF 1>&2
8157
8158*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8159*** create shared libraries on Solaris systems.  Therefore, libtool
8160*** is disabling shared libraries support.  We urge you to upgrade GNU
8161*** binutils to release 2.9.1 or newer.  Another option is to modify
8162*** your PATH or compiler configuration so that the native linker is
8163*** used, and then restart.
8164
8165_LT_EOF
8166      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8167	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8168	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8169      else
8170	ld_shlibs=no
8171      fi
8172      ;;
8173
8174    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8175      case `$LD -v 2>&1` in
8176        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8177	ld_shlibs=no
8178	cat <<_LT_EOF 1>&2
8179
8180*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8181*** reliably create shared libraries on SCO systems.  Therefore, libtool
8182*** is disabling shared libraries support.  We urge you to upgrade GNU
8183*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8184*** your PATH or compiler configuration so that the native linker is
8185*** used, and then restart.
8186
8187_LT_EOF
8188	;;
8189	*)
8190	  # For security reasons, it is highly recommended that you always
8191	  # use absolute paths for naming shared libraries, and exclude the
8192	  # DT_RUNPATH tag from executables and libraries.  But doing so
8193	  # requires that you compile everything twice, which is a pain.
8194	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8195	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8196	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8197	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8198	  else
8199	    ld_shlibs=no
8200	  fi
8201	;;
8202      esac
8203      ;;
8204
8205    sunos4*)
8206      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8207      wlarc=
8208      hardcode_direct=yes
8209      hardcode_shlibpath_var=no
8210      ;;
8211
8212    *)
8213      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8214	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8215	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8216      else
8217	ld_shlibs=no
8218      fi
8219      ;;
8220    esac
8221
8222    if test "$ld_shlibs" = no; then
8223      runpath_var=
8224      hardcode_libdir_flag_spec=
8225      export_dynamic_flag_spec=
8226      whole_archive_flag_spec=
8227    fi
8228  else
8229    # PORTME fill in a description of your system's linker (not GNU ld)
8230    case $host_os in
8231    aix3*)
8232      allow_undefined_flag=unsupported
8233      always_export_symbols=yes
8234      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'
8235      # Note: this linker hardcodes the directories in LIBPATH if there
8236      # are no directories specified by -L.
8237      hardcode_minus_L=yes
8238      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8239	# Neither direct hardcoding nor static linking is supported with a
8240	# broken collect2.
8241	hardcode_direct=unsupported
8242      fi
8243      ;;
8244
8245    aix[4-9]*)
8246      if test "$host_cpu" = ia64; then
8247	# On IA64, the linker does run time linking by default, so we don't
8248	# have to do anything special.
8249	aix_use_runtimelinking=no
8250	exp_sym_flag='-Bexport'
8251	no_entry_flag=""
8252      else
8253	# If we're using GNU nm, then we don't want the "-C" option.
8254	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8255	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8256	  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'
8257	else
8258	  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'
8259	fi
8260	aix_use_runtimelinking=no
8261
8262	# Test if we are trying to use run time linking or normal
8263	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8264	# need to do runtime linking.
8265	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8266	  for ld_flag in $LDFLAGS; do
8267	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8268	    aix_use_runtimelinking=yes
8269	    break
8270	  fi
8271	  done
8272	  ;;
8273	esac
8274
8275	exp_sym_flag='-bexport'
8276	no_entry_flag='-bnoentry'
8277      fi
8278
8279      # When large executables or shared objects are built, AIX ld can
8280      # have problems creating the table of contents.  If linking a library
8281      # or program results in "error TOC overflow" add -mminimal-toc to
8282      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8283      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8284
8285      archive_cmds=''
8286      hardcode_direct=yes
8287      hardcode_direct_absolute=yes
8288      hardcode_libdir_separator=':'
8289      link_all_deplibs=yes
8290      file_list_spec='${wl}-f,'
8291
8292      if test "$GCC" = yes; then
8293	case $host_os in aix4.[012]|aix4.[012].*)
8294	# We only want to do this on AIX 4.2 and lower, the check
8295	# below for broken collect2 doesn't work under 4.3+
8296	  collect2name=`${CC} -print-prog-name=collect2`
8297	  if test -f "$collect2name" &&
8298	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8299	  then
8300	  # We have reworked collect2
8301	  :
8302	  else
8303	  # We have old collect2
8304	  hardcode_direct=unsupported
8305	  # It fails to find uninstalled libraries when the uninstalled
8306	  # path is not listed in the libpath.  Setting hardcode_minus_L
8307	  # to unsupported forces relinking
8308	  hardcode_minus_L=yes
8309	  hardcode_libdir_flag_spec='-L$libdir'
8310	  hardcode_libdir_separator=
8311	  fi
8312	  ;;
8313	esac
8314	shared_flag='-shared'
8315	if test "$aix_use_runtimelinking" = yes; then
8316	  shared_flag="$shared_flag "'${wl}-G'
8317	fi
8318	link_all_deplibs=no
8319      else
8320	# not using gcc
8321	if test "$host_cpu" = ia64; then
8322	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8323	# chokes on -Wl,-G. The following line is correct:
8324	  shared_flag='-G'
8325	else
8326	  if test "$aix_use_runtimelinking" = yes; then
8327	    shared_flag='${wl}-G'
8328	  else
8329	    shared_flag='${wl}-bM:SRE'
8330	  fi
8331	fi
8332      fi
8333
8334      export_dynamic_flag_spec='${wl}-bexpall'
8335      # It seems that -bexpall does not export symbols beginning with
8336      # underscore (_), so it is better to generate a list of symbols to export.
8337      always_export_symbols=yes
8338      if test "$aix_use_runtimelinking" = yes; then
8339	# Warning - without using the other runtime loading flags (-brtl),
8340	# -berok will link without error, but may produce a broken library.
8341	allow_undefined_flag='-berok'
8342        # Determine the default libpath from the value encoded in an
8343        # empty executable.
8344        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8345/* end confdefs.h.  */
8346
8347int
8348main ()
8349{
8350
8351  ;
8352  return 0;
8353}
8354_ACEOF
8355if ac_fn_c_try_link "$LINENO"; then :
8356
8357lt_aix_libpath_sed='
8358    /Import File Strings/,/^$/ {
8359	/^0/ {
8360	    s/^0  *\(.*\)$/\1/
8361	    p
8362	}
8363    }'
8364aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8365# Check for a 64-bit object if we didn't find anything.
8366if test -z "$aix_libpath"; then
8367  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8368fi
8369fi
8370rm -f core conftest.err conftest.$ac_objext \
8371    conftest$ac_exeext conftest.$ac_ext
8372if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8373
8374        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8375        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"
8376      else
8377	if test "$host_cpu" = ia64; then
8378	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8379	  allow_undefined_flag="-z nodefs"
8380	  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"
8381	else
8382	 # Determine the default libpath from the value encoded in an
8383	 # empty executable.
8384	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8385/* end confdefs.h.  */
8386
8387int
8388main ()
8389{
8390
8391  ;
8392  return 0;
8393}
8394_ACEOF
8395if ac_fn_c_try_link "$LINENO"; then :
8396
8397lt_aix_libpath_sed='
8398    /Import File Strings/,/^$/ {
8399	/^0/ {
8400	    s/^0  *\(.*\)$/\1/
8401	    p
8402	}
8403    }'
8404aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8405# Check for a 64-bit object if we didn't find anything.
8406if test -z "$aix_libpath"; then
8407  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8408fi
8409fi
8410rm -f core conftest.err conftest.$ac_objext \
8411    conftest$ac_exeext conftest.$ac_ext
8412if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8413
8414	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8415	  # Warning - without using the other run time loading flags,
8416	  # -berok will link without error, but may produce a broken library.
8417	  no_undefined_flag=' ${wl}-bernotok'
8418	  allow_undefined_flag=' ${wl}-berok'
8419	  # Exported symbols can be pulled into shared objects from archives
8420	  whole_archive_flag_spec='$convenience'
8421	  archive_cmds_need_lc=yes
8422	  # This is similar to how AIX traditionally builds its shared libraries.
8423	  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'
8424	fi
8425      fi
8426      ;;
8427
8428    amigaos*)
8429      case $host_cpu in
8430      powerpc)
8431            # see comment about AmigaOS4 .so support
8432            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8433            archive_expsym_cmds=''
8434        ;;
8435      m68k)
8436            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)'
8437            hardcode_libdir_flag_spec='-L$libdir'
8438            hardcode_minus_L=yes
8439        ;;
8440      esac
8441      ;;
8442
8443    bsdi[45]*)
8444      export_dynamic_flag_spec=-rdynamic
8445      ;;
8446
8447    cygwin* | mingw* | pw32* | cegcc*)
8448      # When not using gcc, we currently assume that we are using
8449      # Microsoft Visual C++.
8450      # hardcode_libdir_flag_spec is actually meaningless, as there is
8451      # no search path for DLLs.
8452      hardcode_libdir_flag_spec=' '
8453      allow_undefined_flag=unsupported
8454      # Tell ltmain to make .lib files, not .a files.
8455      libext=lib
8456      # Tell ltmain to make .dll files, not .so files.
8457      shrext_cmds=".dll"
8458      # FIXME: Setting linknames here is a bad hack.
8459      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8460      # The linker will automatically build a .lib file if we build a DLL.
8461      old_archive_from_new_cmds='true'
8462      # FIXME: Should let the user specify the lib program.
8463      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8464      fix_srcfile_path='`cygpath -w "$srcfile"`'
8465      enable_shared_with_static_runtimes=yes
8466      ;;
8467
8468    darwin* | rhapsody*)
8469
8470
8471  archive_cmds_need_lc=no
8472  hardcode_direct=no
8473  hardcode_automatic=yes
8474  hardcode_shlibpath_var=unsupported
8475  whole_archive_flag_spec=''
8476  link_all_deplibs=yes
8477  allow_undefined_flag="$_lt_dar_allow_undefined"
8478  case $cc_basename in
8479     ifort*) _lt_dar_can_shared=yes ;;
8480     *) _lt_dar_can_shared=$GCC ;;
8481  esac
8482  if test "$_lt_dar_can_shared" = "yes"; then
8483    output_verbose_link_cmd=echo
8484    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8485    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8486    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}"
8487    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}"
8488
8489  else
8490  ld_shlibs=no
8491  fi
8492
8493      ;;
8494
8495    dgux*)
8496      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8497      hardcode_libdir_flag_spec='-L$libdir'
8498      hardcode_shlibpath_var=no
8499      ;;
8500
8501    freebsd1*)
8502      ld_shlibs=no
8503      ;;
8504
8505    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8506    # support.  Future versions do this automatically, but an explicit c++rt0.o
8507    # does not break anything, and helps significantly (at the cost of a little
8508    # extra space).
8509    freebsd2.2*)
8510      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8511      hardcode_libdir_flag_spec='-R$libdir'
8512      hardcode_direct=yes
8513      hardcode_shlibpath_var=no
8514      ;;
8515
8516    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8517    freebsd2*)
8518      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8519      hardcode_direct=yes
8520      hardcode_minus_L=yes
8521      hardcode_shlibpath_var=no
8522      ;;
8523
8524    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8525    freebsd* | dragonfly*)
8526      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8527      hardcode_libdir_flag_spec='-R$libdir'
8528      hardcode_direct=yes
8529      hardcode_shlibpath_var=no
8530      ;;
8531
8532    hpux9*)
8533      if test "$GCC" = yes; then
8534	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'
8535      else
8536	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'
8537      fi
8538      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8539      hardcode_libdir_separator=:
8540      hardcode_direct=yes
8541
8542      # hardcode_minus_L: Not really in the search PATH,
8543      # but as the default location of the library.
8544      hardcode_minus_L=yes
8545      export_dynamic_flag_spec='${wl}-E'
8546      ;;
8547
8548    hpux10*)
8549      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8550	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8551      else
8552	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8553      fi
8554      if test "$with_gnu_ld" = no; then
8555	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8556	hardcode_libdir_flag_spec_ld='+b $libdir'
8557	hardcode_libdir_separator=:
8558	hardcode_direct=yes
8559	hardcode_direct_absolute=yes
8560	export_dynamic_flag_spec='${wl}-E'
8561	# hardcode_minus_L: Not really in the search PATH,
8562	# but as the default location of the library.
8563	hardcode_minus_L=yes
8564      fi
8565      ;;
8566
8567    hpux11*)
8568      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8569	case $host_cpu in
8570	hppa*64*)
8571	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8572	  ;;
8573	ia64*)
8574	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8575	  ;;
8576	*)
8577	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8578	  ;;
8579	esac
8580      else
8581	case $host_cpu in
8582	hppa*64*)
8583	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8584	  ;;
8585	ia64*)
8586	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8587	  ;;
8588	*)
8589	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8590	  ;;
8591	esac
8592      fi
8593      if test "$with_gnu_ld" = no; then
8594	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8595	hardcode_libdir_separator=:
8596
8597	case $host_cpu in
8598	hppa*64*|ia64*)
8599	  hardcode_direct=no
8600	  hardcode_shlibpath_var=no
8601	  ;;
8602	*)
8603	  hardcode_direct=yes
8604	  hardcode_direct_absolute=yes
8605	  export_dynamic_flag_spec='${wl}-E'
8606
8607	  # hardcode_minus_L: Not really in the search PATH,
8608	  # but as the default location of the library.
8609	  hardcode_minus_L=yes
8610	  ;;
8611	esac
8612      fi
8613      ;;
8614
8615    irix5* | irix6* | nonstopux*)
8616      if test "$GCC" = yes; then
8617	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'
8618	# Try to use the -exported_symbol ld option, if it does not
8619	# work, assume that -exports_file does not work either and
8620	# implicitly export all symbols.
8621        save_LDFLAGS="$LDFLAGS"
8622        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8623        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8624/* end confdefs.h.  */
8625int foo(void) {}
8626_ACEOF
8627if ac_fn_c_try_link "$LINENO"; then :
8628  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'
8629
8630fi
8631rm -f core conftest.err conftest.$ac_objext \
8632    conftest$ac_exeext conftest.$ac_ext
8633        LDFLAGS="$save_LDFLAGS"
8634      else
8635	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'
8636	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'
8637      fi
8638      archive_cmds_need_lc='no'
8639      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8640      hardcode_libdir_separator=:
8641      inherit_rpath=yes
8642      link_all_deplibs=yes
8643      ;;
8644
8645    netbsd* | netbsdelf*-gnu)
8646      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8647	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8648      else
8649	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8650      fi
8651      hardcode_libdir_flag_spec='-R$libdir'
8652      hardcode_direct=yes
8653      hardcode_shlibpath_var=no
8654      ;;
8655
8656    newsos6)
8657      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8658      hardcode_direct=yes
8659      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8660      hardcode_libdir_separator=:
8661      hardcode_shlibpath_var=no
8662      ;;
8663
8664    *nto* | *qnx*)
8665      ;;
8666
8667    openbsd*)
8668      if test -f /usr/libexec/ld.so; then
8669	hardcode_direct=yes
8670	hardcode_shlibpath_var=no
8671	hardcode_direct_absolute=yes
8672	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8673	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8674	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8675	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8676	  export_dynamic_flag_spec='${wl}-E'
8677	else
8678	  case $host_os in
8679	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8680	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8681	     hardcode_libdir_flag_spec='-R$libdir'
8682	     ;;
8683	   *)
8684	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8685	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8686	     ;;
8687	  esac
8688	fi
8689      else
8690	ld_shlibs=no
8691      fi
8692      ;;
8693
8694    os2*)
8695      hardcode_libdir_flag_spec='-L$libdir'
8696      hardcode_minus_L=yes
8697      allow_undefined_flag=unsupported
8698      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'
8699      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8700      ;;
8701
8702    osf3*)
8703      if test "$GCC" = yes; then
8704	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8705	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'
8706      else
8707	allow_undefined_flag=' -expect_unresolved \*'
8708	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'
8709      fi
8710      archive_cmds_need_lc='no'
8711      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8712      hardcode_libdir_separator=:
8713      ;;
8714
8715    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8716      if test "$GCC" = yes; then
8717	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8718	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'
8719	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8720      else
8721	allow_undefined_flag=' -expect_unresolved \*'
8722	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'
8723	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~
8724	$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'
8725
8726	# Both c and cxx compiler support -rpath directly
8727	hardcode_libdir_flag_spec='-rpath $libdir'
8728      fi
8729      archive_cmds_need_lc='no'
8730      hardcode_libdir_separator=:
8731      ;;
8732
8733    solaris*)
8734      no_undefined_flag=' -z defs'
8735      if test "$GCC" = yes; then
8736	wlarc='${wl}'
8737	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8738	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8739	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8740      else
8741	case `$CC -V 2>&1` in
8742	*"Compilers 5.0"*)
8743	  wlarc=''
8744	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8745	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8746	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8747	  ;;
8748	*)
8749	  wlarc='${wl}'
8750	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8751	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8752	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8753	  ;;
8754	esac
8755      fi
8756      hardcode_libdir_flag_spec='-R$libdir'
8757      hardcode_shlibpath_var=no
8758      case $host_os in
8759      solaris2.[0-5] | solaris2.[0-5].*) ;;
8760      *)
8761	# The compiler driver will combine and reorder linker options,
8762	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8763	# but is careful enough not to reorder.
8764	# Supported since Solaris 2.6 (maybe 2.5.1?)
8765	if test "$GCC" = yes; then
8766	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8767	else
8768	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8769	fi
8770	;;
8771      esac
8772      link_all_deplibs=yes
8773      ;;
8774
8775    sunos4*)
8776      if test "x$host_vendor" = xsequent; then
8777	# Use $CC to link under sequent, because it throws in some extra .o
8778	# files that make .init and .fini sections work.
8779	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8780      else
8781	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8782      fi
8783      hardcode_libdir_flag_spec='-L$libdir'
8784      hardcode_direct=yes
8785      hardcode_minus_L=yes
8786      hardcode_shlibpath_var=no
8787      ;;
8788
8789    sysv4)
8790      case $host_vendor in
8791	sni)
8792	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8793	  hardcode_direct=yes # is this really true???
8794	;;
8795	siemens)
8796	  ## LD is ld it makes a PLAMLIB
8797	  ## CC just makes a GrossModule.
8798	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8799	  reload_cmds='$CC -r -o $output$reload_objs'
8800	  hardcode_direct=no
8801        ;;
8802	motorola)
8803	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8804	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8805	;;
8806      esac
8807      runpath_var='LD_RUN_PATH'
8808      hardcode_shlibpath_var=no
8809      ;;
8810
8811    sysv4.3*)
8812      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8813      hardcode_shlibpath_var=no
8814      export_dynamic_flag_spec='-Bexport'
8815      ;;
8816
8817    sysv4*MP*)
8818      if test -d /usr/nec; then
8819	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8820	hardcode_shlibpath_var=no
8821	runpath_var=LD_RUN_PATH
8822	hardcode_runpath_var=yes
8823	ld_shlibs=yes
8824      fi
8825      ;;
8826
8827    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8828      no_undefined_flag='${wl}-z,text'
8829      archive_cmds_need_lc=no
8830      hardcode_shlibpath_var=no
8831      runpath_var='LD_RUN_PATH'
8832
8833      if test "$GCC" = yes; then
8834	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8835	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8836      else
8837	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8838	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8839      fi
8840      ;;
8841
8842    sysv5* | sco3.2v5* | sco5v6*)
8843      # Note: We can NOT use -z defs as we might desire, because we do not
8844      # link with -lc, and that would cause any symbols used from libc to
8845      # always be unresolved, which means just about no library would
8846      # ever link correctly.  If we're not using GNU ld we use -z text
8847      # though, which does catch some bad symbols but isn't as heavy-handed
8848      # as -z defs.
8849      no_undefined_flag='${wl}-z,text'
8850      allow_undefined_flag='${wl}-z,nodefs'
8851      archive_cmds_need_lc=no
8852      hardcode_shlibpath_var=no
8853      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8854      hardcode_libdir_separator=':'
8855      link_all_deplibs=yes
8856      export_dynamic_flag_spec='${wl}-Bexport'
8857      runpath_var='LD_RUN_PATH'
8858
8859      if test "$GCC" = yes; then
8860	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8861	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8862      else
8863	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8864	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8865      fi
8866      ;;
8867
8868    uts4*)
8869      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8870      hardcode_libdir_flag_spec='-L$libdir'
8871      hardcode_shlibpath_var=no
8872      ;;
8873
8874    *)
8875      ld_shlibs=no
8876      ;;
8877    esac
8878
8879    if test x$host_vendor = xsni; then
8880      case $host in
8881      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8882	export_dynamic_flag_spec='${wl}-Blargedynsym'
8883	;;
8884      esac
8885    fi
8886  fi
8887
8888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8889$as_echo "$ld_shlibs" >&6; }
8890test "$ld_shlibs" = no && can_build_shared=no
8891
8892with_gnu_ld=$with_gnu_ld
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908#
8909# Do we need to explicitly link libc?
8910#
8911case "x$archive_cmds_need_lc" in
8912x|xyes)
8913  # Assume -lc should be added
8914  archive_cmds_need_lc=yes
8915
8916  if test "$enable_shared" = yes && test "$GCC" = yes; then
8917    case $archive_cmds in
8918    *'~'*)
8919      # FIXME: we may have to deal with multi-command sequences.
8920      ;;
8921    '$CC '*)
8922      # Test whether the compiler implicitly links with -lc since on some
8923      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8924      # to ld, don't add -lc before -lgcc.
8925      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8926$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8927      $RM conftest*
8928      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8929
8930      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8931  (eval $ac_compile) 2>&5
8932  ac_status=$?
8933  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8934  test $ac_status = 0; } 2>conftest.err; then
8935        soname=conftest
8936        lib=conftest
8937        libobjs=conftest.$ac_objext
8938        deplibs=
8939        wl=$lt_prog_compiler_wl
8940	pic_flag=$lt_prog_compiler_pic
8941        compiler_flags=-v
8942        linker_flags=-v
8943        verstring=
8944        output_objdir=.
8945        libname=conftest
8946        lt_save_allow_undefined_flag=$allow_undefined_flag
8947        allow_undefined_flag=
8948        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8949  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8950  ac_status=$?
8951  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8952  test $ac_status = 0; }
8953        then
8954	  archive_cmds_need_lc=no
8955        else
8956	  archive_cmds_need_lc=yes
8957        fi
8958        allow_undefined_flag=$lt_save_allow_undefined_flag
8959      else
8960        cat conftest.err 1>&5
8961      fi
8962      $RM conftest*
8963      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8964$as_echo "$archive_cmds_need_lc" >&6; }
8965      ;;
8966    esac
8967  fi
8968  ;;
8969esac
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9128$as_echo_n "checking dynamic linker characteristics... " >&6; }
9129
9130if test "$GCC" = yes; then
9131  case $host_os in
9132    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9133    *) lt_awk_arg="/^libraries:/" ;;
9134  esac
9135  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9136  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9137    # if the path contains ";" then we assume it to be the separator
9138    # otherwise default to the standard path separator (i.e. ":") - it is
9139    # assumed that no part of a normal pathname contains ";" but that should
9140    # okay in the real world where ";" in dirpaths is itself problematic.
9141    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9142  else
9143    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9144  fi
9145  # Ok, now we have the path, separated by spaces, we can step through it
9146  # and add multilib dir if necessary.
9147  lt_tmp_lt_search_path_spec=
9148  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9149  for lt_sys_path in $lt_search_path_spec; do
9150    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9151      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9152    else
9153      test -d "$lt_sys_path" && \
9154	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9155    fi
9156  done
9157  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9158BEGIN {RS=" "; FS="/|\n";} {
9159  lt_foo="";
9160  lt_count=0;
9161  for (lt_i = NF; lt_i > 0; lt_i--) {
9162    if ($lt_i != "" && $lt_i != ".") {
9163      if ($lt_i == "..") {
9164        lt_count++;
9165      } else {
9166        if (lt_count == 0) {
9167          lt_foo="/" $lt_i lt_foo;
9168        } else {
9169          lt_count--;
9170        }
9171      }
9172    }
9173  }
9174  if (lt_foo != "") { lt_freq[lt_foo]++; }
9175  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9176}'`
9177  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9178else
9179  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9180fi
9181library_names_spec=
9182libname_spec='lib$name'
9183soname_spec=
9184shrext_cmds=".so"
9185postinstall_cmds=
9186postuninstall_cmds=
9187finish_cmds=
9188finish_eval=
9189shlibpath_var=
9190shlibpath_overrides_runpath=unknown
9191version_type=none
9192dynamic_linker="$host_os ld.so"
9193sys_lib_dlsearch_path_spec="/lib /usr/lib"
9194need_lib_prefix=unknown
9195hardcode_into_libs=no
9196
9197# when you set need_version to no, make sure it does not cause -set_version
9198# flags to be left without arguments
9199need_version=unknown
9200
9201case $host_os in
9202aix3*)
9203  version_type=linux
9204  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9205  shlibpath_var=LIBPATH
9206
9207  # AIX 3 has no versioning support, so we append a major version to the name.
9208  soname_spec='${libname}${release}${shared_ext}$major'
9209  ;;
9210
9211aix[4-9]*)
9212  version_type=linux
9213  need_lib_prefix=no
9214  need_version=no
9215  hardcode_into_libs=yes
9216  if test "$host_cpu" = ia64; then
9217    # AIX 5 supports IA64
9218    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9219    shlibpath_var=LD_LIBRARY_PATH
9220  else
9221    # With GCC up to 2.95.x, collect2 would create an import file
9222    # for dependence libraries.  The import file would start with
9223    # the line `#! .'.  This would cause the generated library to
9224    # depend on `.', always an invalid library.  This was fixed in
9225    # development snapshots of GCC prior to 3.0.
9226    case $host_os in
9227      aix4 | aix4.[01] | aix4.[01].*)
9228      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9229	   echo ' yes '
9230	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9231	:
9232      else
9233	can_build_shared=no
9234      fi
9235      ;;
9236    esac
9237    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9238    # soname into executable. Probably we can add versioning support to
9239    # collect2, so additional links can be useful in future.
9240    if test "$aix_use_runtimelinking" = yes; then
9241      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9242      # instead of lib<name>.a to let people know that these are not
9243      # typical AIX shared libraries.
9244      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9245    else
9246      # We preserve .a as extension for shared libraries through AIX4.2
9247      # and later when we are not doing run time linking.
9248      library_names_spec='${libname}${release}.a $libname.a'
9249      soname_spec='${libname}${release}${shared_ext}$major'
9250    fi
9251    shlibpath_var=LIBPATH
9252  fi
9253  ;;
9254
9255amigaos*)
9256  case $host_cpu in
9257  powerpc)
9258    # Since July 2007 AmigaOS4 officially supports .so libraries.
9259    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9260    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9261    ;;
9262  m68k)
9263    library_names_spec='$libname.ixlibrary $libname.a'
9264    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9265    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'
9266    ;;
9267  esac
9268  ;;
9269
9270beos*)
9271  library_names_spec='${libname}${shared_ext}'
9272  dynamic_linker="$host_os ld.so"
9273  shlibpath_var=LIBRARY_PATH
9274  ;;
9275
9276bsdi[45]*)
9277  version_type=linux
9278  need_version=no
9279  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9280  soname_spec='${libname}${release}${shared_ext}$major'
9281  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9282  shlibpath_var=LD_LIBRARY_PATH
9283  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9284  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9285  # the default ld.so.conf also contains /usr/contrib/lib and
9286  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9287  # libtool to hard-code these into programs
9288  ;;
9289
9290cygwin* | mingw* | pw32* | cegcc*)
9291  version_type=windows
9292  shrext_cmds=".dll"
9293  need_version=no
9294  need_lib_prefix=no
9295
9296  case $GCC,$host_os in
9297  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9298    library_names_spec='$libname.dll.a'
9299    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9300    postinstall_cmds='base_file=`basename \${file}`~
9301      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9302      dldir=$destdir/`dirname \$dlpath`~
9303      test -d \$dldir || mkdir -p \$dldir~
9304      $install_prog $dir/$dlname \$dldir/$dlname~
9305      chmod a+x \$dldir/$dlname~
9306      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9307        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9308      fi'
9309    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9310      dlpath=$dir/\$dldll~
9311       $RM \$dlpath'
9312    shlibpath_overrides_runpath=yes
9313
9314    case $host_os in
9315    cygwin*)
9316      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9317      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9318      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9319      ;;
9320    mingw* | cegcc*)
9321      # MinGW DLLs use traditional 'lib' prefix
9322      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9323      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9324      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9325        # It is most probably a Windows format PATH printed by
9326        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9327        # path with ; separators, and with drive letters. We can handle the
9328        # drive letters (cygwin fileutils understands them), so leave them,
9329        # especially as we might pass files found there to a mingw objdump,
9330        # which wouldn't understand a cygwinified path. Ahh.
9331        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9332      else
9333        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9334      fi
9335      ;;
9336    pw32*)
9337      # pw32 DLLs use 'pw' prefix rather than 'lib'
9338      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9339      ;;
9340    esac
9341    ;;
9342
9343  *)
9344    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9345    ;;
9346  esac
9347  dynamic_linker='Win32 ld.exe'
9348  # FIXME: first we should search . and the directory the executable is in
9349  shlibpath_var=PATH
9350  ;;
9351
9352darwin* | rhapsody*)
9353  dynamic_linker="$host_os dyld"
9354  version_type=darwin
9355  need_lib_prefix=no
9356  need_version=no
9357  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9358  soname_spec='${libname}${release}${major}$shared_ext'
9359  shlibpath_overrides_runpath=yes
9360  shlibpath_var=DYLD_LIBRARY_PATH
9361  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9362
9363  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9364  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9365  ;;
9366
9367dgux*)
9368  version_type=linux
9369  need_lib_prefix=no
9370  need_version=no
9371  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9372  soname_spec='${libname}${release}${shared_ext}$major'
9373  shlibpath_var=LD_LIBRARY_PATH
9374  ;;
9375
9376freebsd1*)
9377  dynamic_linker=no
9378  ;;
9379
9380freebsd* | dragonfly*)
9381  # DragonFly does not have aout.  When/if they implement a new
9382  # versioning mechanism, adjust this.
9383  if test -x /usr/bin/objformat; then
9384    objformat=`/usr/bin/objformat`
9385  else
9386    case $host_os in
9387    freebsd[123]*) objformat=aout ;;
9388    *) objformat=elf ;;
9389    esac
9390  fi
9391  version_type=freebsd-$objformat
9392  case $version_type in
9393    freebsd-elf*)
9394      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9395      need_version=no
9396      need_lib_prefix=no
9397      ;;
9398    freebsd-*)
9399      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9400      need_version=yes
9401      ;;
9402  esac
9403  shlibpath_var=LD_LIBRARY_PATH
9404  case $host_os in
9405  freebsd2*)
9406    shlibpath_overrides_runpath=yes
9407    ;;
9408  freebsd3.[01]* | freebsdelf3.[01]*)
9409    shlibpath_overrides_runpath=yes
9410    hardcode_into_libs=yes
9411    ;;
9412  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9413  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9414    shlibpath_overrides_runpath=no
9415    hardcode_into_libs=yes
9416    ;;
9417  *) # from 4.6 on, and DragonFly
9418    shlibpath_overrides_runpath=yes
9419    hardcode_into_libs=yes
9420    ;;
9421  esac
9422  ;;
9423
9424gnu*)
9425  version_type=linux
9426  need_lib_prefix=no
9427  need_version=no
9428  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9429  soname_spec='${libname}${release}${shared_ext}$major'
9430  shlibpath_var=LD_LIBRARY_PATH
9431  hardcode_into_libs=yes
9432  ;;
9433
9434hpux9* | hpux10* | hpux11*)
9435  # Give a soname corresponding to the major version so that dld.sl refuses to
9436  # link against other versions.
9437  version_type=sunos
9438  need_lib_prefix=no
9439  need_version=no
9440  case $host_cpu in
9441  ia64*)
9442    shrext_cmds='.so'
9443    hardcode_into_libs=yes
9444    dynamic_linker="$host_os dld.so"
9445    shlibpath_var=LD_LIBRARY_PATH
9446    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9447    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9448    soname_spec='${libname}${release}${shared_ext}$major'
9449    if test "X$HPUX_IA64_MODE" = X32; then
9450      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9451    else
9452      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9453    fi
9454    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9455    ;;
9456  hppa*64*)
9457    shrext_cmds='.sl'
9458    hardcode_into_libs=yes
9459    dynamic_linker="$host_os dld.sl"
9460    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9461    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9462    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9463    soname_spec='${libname}${release}${shared_ext}$major'
9464    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9465    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9466    ;;
9467  *)
9468    shrext_cmds='.sl'
9469    dynamic_linker="$host_os dld.sl"
9470    shlibpath_var=SHLIB_PATH
9471    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9472    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9473    soname_spec='${libname}${release}${shared_ext}$major'
9474    ;;
9475  esac
9476  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9477  postinstall_cmds='chmod 555 $lib'
9478  ;;
9479
9480interix[3-9]*)
9481  version_type=linux
9482  need_lib_prefix=no
9483  need_version=no
9484  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9485  soname_spec='${libname}${release}${shared_ext}$major'
9486  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9487  shlibpath_var=LD_LIBRARY_PATH
9488  shlibpath_overrides_runpath=no
9489  hardcode_into_libs=yes
9490  ;;
9491
9492irix5* | irix6* | nonstopux*)
9493  case $host_os in
9494    nonstopux*) version_type=nonstopux ;;
9495    *)
9496	if test "$lt_cv_prog_gnu_ld" = yes; then
9497		version_type=linux
9498	else
9499		version_type=irix
9500	fi ;;
9501  esac
9502  need_lib_prefix=no
9503  need_version=no
9504  soname_spec='${libname}${release}${shared_ext}$major'
9505  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9506  case $host_os in
9507  irix5* | nonstopux*)
9508    libsuff= shlibsuff=
9509    ;;
9510  *)
9511    case $LD in # libtool.m4 will add one of these switches to LD
9512    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9513      libsuff= shlibsuff= libmagic=32-bit;;
9514    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9515      libsuff=32 shlibsuff=N32 libmagic=N32;;
9516    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9517      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9518    *) libsuff= shlibsuff= libmagic=never-match;;
9519    esac
9520    ;;
9521  esac
9522  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9523  shlibpath_overrides_runpath=no
9524  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9525  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9526  hardcode_into_libs=yes
9527  ;;
9528
9529# No shared lib support for Linux oldld, aout, or coff.
9530linux*oldld* | linux*aout* | linux*coff*)
9531  dynamic_linker=no
9532  ;;
9533
9534# This must be Linux ELF.
9535linux* | k*bsd*-gnu)
9536  version_type=linux
9537  need_lib_prefix=no
9538  need_version=no
9539  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9540  soname_spec='${libname}${release}${shared_ext}$major'
9541  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9542  shlibpath_var=LD_LIBRARY_PATH
9543  shlibpath_overrides_runpath=no
9544  # Some binutils ld are patched to set DT_RUNPATH
9545  save_LDFLAGS=$LDFLAGS
9546  save_libdir=$libdir
9547  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9548       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9550/* end confdefs.h.  */
9551
9552int
9553main ()
9554{
9555
9556  ;
9557  return 0;
9558}
9559_ACEOF
9560if ac_fn_c_try_link "$LINENO"; then :
9561  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9562  shlibpath_overrides_runpath=yes
9563fi
9564fi
9565rm -f core conftest.err conftest.$ac_objext \
9566    conftest$ac_exeext conftest.$ac_ext
9567  LDFLAGS=$save_LDFLAGS
9568  libdir=$save_libdir
9569
9570  # This implies no fast_install, which is unacceptable.
9571  # Some rework will be needed to allow for fast_install
9572  # before this can be enabled.
9573  hardcode_into_libs=yes
9574
9575  # Append ld.so.conf contents to the search path
9576  if test -f /etc/ld.so.conf; then
9577    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' ' '`
9578    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9579  fi
9580
9581  # We used to test for /lib/ld.so.1 and disable shared libraries on
9582  # powerpc, because MkLinux only supported shared libraries with the
9583  # GNU dynamic linker.  Since this was broken with cross compilers,
9584  # most powerpc-linux boxes support dynamic linking these days and
9585  # people can always --disable-shared, the test was removed, and we
9586  # assume the GNU/Linux dynamic linker is in use.
9587  dynamic_linker='GNU/Linux ld.so'
9588  ;;
9589
9590netbsdelf*-gnu)
9591  version_type=linux
9592  need_lib_prefix=no
9593  need_version=no
9594  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9595  soname_spec='${libname}${release}${shared_ext}$major'
9596  shlibpath_var=LD_LIBRARY_PATH
9597  shlibpath_overrides_runpath=no
9598  hardcode_into_libs=yes
9599  dynamic_linker='NetBSD ld.elf_so'
9600  ;;
9601
9602netbsd*)
9603  version_type=sunos
9604  need_lib_prefix=no
9605  need_version=no
9606  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9607    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9608    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9609    dynamic_linker='NetBSD (a.out) ld.so'
9610  else
9611    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9612    soname_spec='${libname}${release}${shared_ext}$major'
9613    dynamic_linker='NetBSD ld.elf_so'
9614  fi
9615  shlibpath_var=LD_LIBRARY_PATH
9616  shlibpath_overrides_runpath=yes
9617  hardcode_into_libs=yes
9618  ;;
9619
9620newsos6)
9621  version_type=linux
9622  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9623  shlibpath_var=LD_LIBRARY_PATH
9624  shlibpath_overrides_runpath=yes
9625  ;;
9626
9627*nto* | *qnx*)
9628  version_type=qnx
9629  need_lib_prefix=no
9630  need_version=no
9631  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9632  soname_spec='${libname}${release}${shared_ext}$major'
9633  shlibpath_var=LD_LIBRARY_PATH
9634  shlibpath_overrides_runpath=no
9635  hardcode_into_libs=yes
9636  dynamic_linker='ldqnx.so'
9637  ;;
9638
9639openbsd*)
9640  version_type=sunos
9641  sys_lib_dlsearch_path_spec="/usr/lib"
9642  need_lib_prefix=no
9643  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9644  case $host_os in
9645    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
9646    *)				need_version=no  ;;
9647  esac
9648  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9649  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9650  shlibpath_var=LD_LIBRARY_PATH
9651  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9652    case $host_os in
9653      openbsd2.[89] | openbsd2.[89].*)
9654	shlibpath_overrides_runpath=no
9655	;;
9656      *)
9657	shlibpath_overrides_runpath=yes
9658	;;
9659      esac
9660  else
9661    shlibpath_overrides_runpath=yes
9662  fi
9663  ;;
9664
9665os2*)
9666  libname_spec='$name'
9667  shrext_cmds=".dll"
9668  need_lib_prefix=no
9669  library_names_spec='$libname${shared_ext} $libname.a'
9670  dynamic_linker='OS/2 ld.exe'
9671  shlibpath_var=LIBPATH
9672  ;;
9673
9674osf3* | osf4* | osf5*)
9675  version_type=osf
9676  need_lib_prefix=no
9677  need_version=no
9678  soname_spec='${libname}${release}${shared_ext}$major'
9679  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9680  shlibpath_var=LD_LIBRARY_PATH
9681  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9682  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9683  ;;
9684
9685rdos*)
9686  dynamic_linker=no
9687  ;;
9688
9689solaris*)
9690  version_type=linux
9691  need_lib_prefix=no
9692  need_version=no
9693  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9694  soname_spec='${libname}${release}${shared_ext}$major'
9695  shlibpath_var=LD_LIBRARY_PATH
9696  shlibpath_overrides_runpath=yes
9697  hardcode_into_libs=yes
9698  # ldd complains unless libraries are executable
9699  postinstall_cmds='chmod +x $lib'
9700  ;;
9701
9702sunos4*)
9703  version_type=sunos
9704  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9705  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9706  shlibpath_var=LD_LIBRARY_PATH
9707  shlibpath_overrides_runpath=yes
9708  if test "$with_gnu_ld" = yes; then
9709    need_lib_prefix=no
9710  fi
9711  need_version=yes
9712  ;;
9713
9714sysv4 | sysv4.3*)
9715  version_type=linux
9716  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9717  soname_spec='${libname}${release}${shared_ext}$major'
9718  shlibpath_var=LD_LIBRARY_PATH
9719  case $host_vendor in
9720    sni)
9721      shlibpath_overrides_runpath=no
9722      need_lib_prefix=no
9723      runpath_var=LD_RUN_PATH
9724      ;;
9725    siemens)
9726      need_lib_prefix=no
9727      ;;
9728    motorola)
9729      need_lib_prefix=no
9730      need_version=no
9731      shlibpath_overrides_runpath=no
9732      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9733      ;;
9734  esac
9735  ;;
9736
9737sysv4*MP*)
9738  if test -d /usr/nec ;then
9739    version_type=linux
9740    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9741    soname_spec='$libname${shared_ext}.$major'
9742    shlibpath_var=LD_LIBRARY_PATH
9743  fi
9744  ;;
9745
9746sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9747  version_type=freebsd-elf
9748  need_lib_prefix=no
9749  need_version=no
9750  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9751  soname_spec='${libname}${release}${shared_ext}$major'
9752  shlibpath_var=LD_LIBRARY_PATH
9753  shlibpath_overrides_runpath=yes
9754  hardcode_into_libs=yes
9755  if test "$with_gnu_ld" = yes; then
9756    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9757  else
9758    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9759    case $host_os in
9760      sco3.2v5*)
9761        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9762	;;
9763    esac
9764  fi
9765  sys_lib_dlsearch_path_spec='/usr/lib'
9766  ;;
9767
9768tpf*)
9769  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9770  version_type=linux
9771  need_lib_prefix=no
9772  need_version=no
9773  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9774  shlibpath_var=LD_LIBRARY_PATH
9775  shlibpath_overrides_runpath=no
9776  hardcode_into_libs=yes
9777  ;;
9778
9779uts4*)
9780  version_type=linux
9781  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9782  soname_spec='${libname}${release}${shared_ext}$major'
9783  shlibpath_var=LD_LIBRARY_PATH
9784  ;;
9785
9786*)
9787  dynamic_linker=no
9788  ;;
9789esac
9790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9791$as_echo "$dynamic_linker" >&6; }
9792test "$dynamic_linker" = no && can_build_shared=no
9793
9794variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9795if test "$GCC" = yes; then
9796  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9797fi
9798
9799if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9800  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9801fi
9802if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9803  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9804fi
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9893$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9894hardcode_action=
9895if test -n "$hardcode_libdir_flag_spec" ||
9896   test -n "$runpath_var" ||
9897   test "X$hardcode_automatic" = "Xyes" ; then
9898
9899  # We can hardcode non-existent directories.
9900  if test "$hardcode_direct" != no &&
9901     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9902     # have to relink, otherwise we might link with an installed library
9903     # when we should be linking with a yet-to-be-installed one
9904     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9905     test "$hardcode_minus_L" != no; then
9906    # Linking always hardcodes the temporary library directory.
9907    hardcode_action=relink
9908  else
9909    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9910    hardcode_action=immediate
9911  fi
9912else
9913  # We cannot hardcode anything, or else we can only hardcode existing
9914  # directories.
9915  hardcode_action=unsupported
9916fi
9917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9918$as_echo "$hardcode_action" >&6; }
9919
9920if test "$hardcode_action" = relink ||
9921   test "$inherit_rpath" = yes; then
9922  # Fast installation is not supported
9923  enable_fast_install=no
9924elif test "$shlibpath_overrides_runpath" = yes ||
9925     test "$enable_shared" = no; then
9926  # Fast installation is not necessary
9927  enable_fast_install=needless
9928fi
9929
9930
9931
9932
9933
9934
9935  if test "x$enable_dlopen" != xyes; then
9936  enable_dlopen=unknown
9937  enable_dlopen_self=unknown
9938  enable_dlopen_self_static=unknown
9939else
9940  lt_cv_dlopen=no
9941  lt_cv_dlopen_libs=
9942
9943  case $host_os in
9944  beos*)
9945    lt_cv_dlopen="load_add_on"
9946    lt_cv_dlopen_libs=
9947    lt_cv_dlopen_self=yes
9948    ;;
9949
9950  mingw* | pw32* | cegcc*)
9951    lt_cv_dlopen="LoadLibrary"
9952    lt_cv_dlopen_libs=
9953    ;;
9954
9955  cygwin*)
9956    lt_cv_dlopen="dlopen"
9957    lt_cv_dlopen_libs=
9958    ;;
9959
9960  darwin*)
9961  # if libdl is installed we need to link against it
9962    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9963$as_echo_n "checking for dlopen in -ldl... " >&6; }
9964if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9965  $as_echo_n "(cached) " >&6
9966else
9967  ac_check_lib_save_LIBS=$LIBS
9968LIBS="-ldl  $LIBS"
9969cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9970/* end confdefs.h.  */
9971
9972/* Override any GCC internal prototype to avoid an error.
9973   Use char because int might match the return type of a GCC
9974   builtin and then its argument prototype would still apply.  */
9975#ifdef __cplusplus
9976extern "C"
9977#endif
9978char dlopen ();
9979int
9980main ()
9981{
9982return dlopen ();
9983  ;
9984  return 0;
9985}
9986_ACEOF
9987if ac_fn_c_try_link "$LINENO"; then :
9988  ac_cv_lib_dl_dlopen=yes
9989else
9990  ac_cv_lib_dl_dlopen=no
9991fi
9992rm -f core conftest.err conftest.$ac_objext \
9993    conftest$ac_exeext conftest.$ac_ext
9994LIBS=$ac_check_lib_save_LIBS
9995fi
9996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9997$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9998if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9999  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10000else
10001
10002    lt_cv_dlopen="dyld"
10003    lt_cv_dlopen_libs=
10004    lt_cv_dlopen_self=yes
10005
10006fi
10007
10008    ;;
10009
10010  *)
10011    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10012if test "x$ac_cv_func_shl_load" = x""yes; then :
10013  lt_cv_dlopen="shl_load"
10014else
10015  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10016$as_echo_n "checking for shl_load in -ldld... " >&6; }
10017if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10018  $as_echo_n "(cached) " >&6
10019else
10020  ac_check_lib_save_LIBS=$LIBS
10021LIBS="-ldld  $LIBS"
10022cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10023/* end confdefs.h.  */
10024
10025/* Override any GCC internal prototype to avoid an error.
10026   Use char because int might match the return type of a GCC
10027   builtin and then its argument prototype would still apply.  */
10028#ifdef __cplusplus
10029extern "C"
10030#endif
10031char shl_load ();
10032int
10033main ()
10034{
10035return shl_load ();
10036  ;
10037  return 0;
10038}
10039_ACEOF
10040if ac_fn_c_try_link "$LINENO"; then :
10041  ac_cv_lib_dld_shl_load=yes
10042else
10043  ac_cv_lib_dld_shl_load=no
10044fi
10045rm -f core conftest.err conftest.$ac_objext \
10046    conftest$ac_exeext conftest.$ac_ext
10047LIBS=$ac_check_lib_save_LIBS
10048fi
10049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10050$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10051if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10052  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10053else
10054  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10055if test "x$ac_cv_func_dlopen" = x""yes; then :
10056  lt_cv_dlopen="dlopen"
10057else
10058  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10059$as_echo_n "checking for dlopen in -ldl... " >&6; }
10060if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10061  $as_echo_n "(cached) " >&6
10062else
10063  ac_check_lib_save_LIBS=$LIBS
10064LIBS="-ldl  $LIBS"
10065cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10066/* end confdefs.h.  */
10067
10068/* Override any GCC internal prototype to avoid an error.
10069   Use char because int might match the return type of a GCC
10070   builtin and then its argument prototype would still apply.  */
10071#ifdef __cplusplus
10072extern "C"
10073#endif
10074char dlopen ();
10075int
10076main ()
10077{
10078return dlopen ();
10079  ;
10080  return 0;
10081}
10082_ACEOF
10083if ac_fn_c_try_link "$LINENO"; then :
10084  ac_cv_lib_dl_dlopen=yes
10085else
10086  ac_cv_lib_dl_dlopen=no
10087fi
10088rm -f core conftest.err conftest.$ac_objext \
10089    conftest$ac_exeext conftest.$ac_ext
10090LIBS=$ac_check_lib_save_LIBS
10091fi
10092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10093$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10094if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10095  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10096else
10097  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10098$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10099if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10100  $as_echo_n "(cached) " >&6
10101else
10102  ac_check_lib_save_LIBS=$LIBS
10103LIBS="-lsvld  $LIBS"
10104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10105/* end confdefs.h.  */
10106
10107/* Override any GCC internal prototype to avoid an error.
10108   Use char because int might match the return type of a GCC
10109   builtin and then its argument prototype would still apply.  */
10110#ifdef __cplusplus
10111extern "C"
10112#endif
10113char dlopen ();
10114int
10115main ()
10116{
10117return dlopen ();
10118  ;
10119  return 0;
10120}
10121_ACEOF
10122if ac_fn_c_try_link "$LINENO"; then :
10123  ac_cv_lib_svld_dlopen=yes
10124else
10125  ac_cv_lib_svld_dlopen=no
10126fi
10127rm -f core conftest.err conftest.$ac_objext \
10128    conftest$ac_exeext conftest.$ac_ext
10129LIBS=$ac_check_lib_save_LIBS
10130fi
10131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10132$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10133if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10134  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10135else
10136  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10137$as_echo_n "checking for dld_link in -ldld... " >&6; }
10138if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10139  $as_echo_n "(cached) " >&6
10140else
10141  ac_check_lib_save_LIBS=$LIBS
10142LIBS="-ldld  $LIBS"
10143cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10144/* end confdefs.h.  */
10145
10146/* Override any GCC internal prototype to avoid an error.
10147   Use char because int might match the return type of a GCC
10148   builtin and then its argument prototype would still apply.  */
10149#ifdef __cplusplus
10150extern "C"
10151#endif
10152char dld_link ();
10153int
10154main ()
10155{
10156return dld_link ();
10157  ;
10158  return 0;
10159}
10160_ACEOF
10161if ac_fn_c_try_link "$LINENO"; then :
10162  ac_cv_lib_dld_dld_link=yes
10163else
10164  ac_cv_lib_dld_dld_link=no
10165fi
10166rm -f core conftest.err conftest.$ac_objext \
10167    conftest$ac_exeext conftest.$ac_ext
10168LIBS=$ac_check_lib_save_LIBS
10169fi
10170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10171$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10172if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10173  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10174fi
10175
10176
10177fi
10178
10179
10180fi
10181
10182
10183fi
10184
10185
10186fi
10187
10188
10189fi
10190
10191    ;;
10192  esac
10193
10194  if test "x$lt_cv_dlopen" != xno; then
10195    enable_dlopen=yes
10196  else
10197    enable_dlopen=no
10198  fi
10199
10200  case $lt_cv_dlopen in
10201  dlopen)
10202    save_CPPFLAGS="$CPPFLAGS"
10203    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10204
10205    save_LDFLAGS="$LDFLAGS"
10206    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10207
10208    save_LIBS="$LIBS"
10209    LIBS="$lt_cv_dlopen_libs $LIBS"
10210
10211    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10212$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10213if test "${lt_cv_dlopen_self+set}" = set; then :
10214  $as_echo_n "(cached) " >&6
10215else
10216  	  if test "$cross_compiling" = yes; then :
10217  lt_cv_dlopen_self=cross
10218else
10219  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10220  lt_status=$lt_dlunknown
10221  cat > conftest.$ac_ext <<_LT_EOF
10222#line 10222 "configure"
10223#include "confdefs.h"
10224
10225#if HAVE_DLFCN_H
10226#include <dlfcn.h>
10227#endif
10228
10229#include <stdio.h>
10230
10231#ifdef RTLD_GLOBAL
10232#  define LT_DLGLOBAL		RTLD_GLOBAL
10233#else
10234#  ifdef DL_GLOBAL
10235#    define LT_DLGLOBAL		DL_GLOBAL
10236#  else
10237#    define LT_DLGLOBAL		0
10238#  endif
10239#endif
10240
10241/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10242   find out it does not work in some platform. */
10243#ifndef LT_DLLAZY_OR_NOW
10244#  ifdef RTLD_LAZY
10245#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10246#  else
10247#    ifdef DL_LAZY
10248#      define LT_DLLAZY_OR_NOW		DL_LAZY
10249#    else
10250#      ifdef RTLD_NOW
10251#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10252#      else
10253#        ifdef DL_NOW
10254#          define LT_DLLAZY_OR_NOW	DL_NOW
10255#        else
10256#          define LT_DLLAZY_OR_NOW	0
10257#        endif
10258#      endif
10259#    endif
10260#  endif
10261#endif
10262
10263void fnord() { int i=42;}
10264int main ()
10265{
10266  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10267  int status = $lt_dlunknown;
10268
10269  if (self)
10270    {
10271      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10272      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10273      /* dlclose (self); */
10274    }
10275  else
10276    puts (dlerror ());
10277
10278  return status;
10279}
10280_LT_EOF
10281  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10282  (eval $ac_link) 2>&5
10283  ac_status=$?
10284  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10285  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10286    (./conftest; exit; ) >&5 2>/dev/null
10287    lt_status=$?
10288    case x$lt_status in
10289      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10290      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10291      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10292    esac
10293  else :
10294    # compilation failed
10295    lt_cv_dlopen_self=no
10296  fi
10297fi
10298rm -fr conftest*
10299
10300
10301fi
10302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10303$as_echo "$lt_cv_dlopen_self" >&6; }
10304
10305    if test "x$lt_cv_dlopen_self" = xyes; then
10306      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10307      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10308$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10309if test "${lt_cv_dlopen_self_static+set}" = set; then :
10310  $as_echo_n "(cached) " >&6
10311else
10312  	  if test "$cross_compiling" = yes; then :
10313  lt_cv_dlopen_self_static=cross
10314else
10315  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10316  lt_status=$lt_dlunknown
10317  cat > conftest.$ac_ext <<_LT_EOF
10318#line 10318 "configure"
10319#include "confdefs.h"
10320
10321#if HAVE_DLFCN_H
10322#include <dlfcn.h>
10323#endif
10324
10325#include <stdio.h>
10326
10327#ifdef RTLD_GLOBAL
10328#  define LT_DLGLOBAL		RTLD_GLOBAL
10329#else
10330#  ifdef DL_GLOBAL
10331#    define LT_DLGLOBAL		DL_GLOBAL
10332#  else
10333#    define LT_DLGLOBAL		0
10334#  endif
10335#endif
10336
10337/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10338   find out it does not work in some platform. */
10339#ifndef LT_DLLAZY_OR_NOW
10340#  ifdef RTLD_LAZY
10341#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10342#  else
10343#    ifdef DL_LAZY
10344#      define LT_DLLAZY_OR_NOW		DL_LAZY
10345#    else
10346#      ifdef RTLD_NOW
10347#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10348#      else
10349#        ifdef DL_NOW
10350#          define LT_DLLAZY_OR_NOW	DL_NOW
10351#        else
10352#          define LT_DLLAZY_OR_NOW	0
10353#        endif
10354#      endif
10355#    endif
10356#  endif
10357#endif
10358
10359void fnord() { int i=42;}
10360int main ()
10361{
10362  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10363  int status = $lt_dlunknown;
10364
10365  if (self)
10366    {
10367      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10368      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10369      /* dlclose (self); */
10370    }
10371  else
10372    puts (dlerror ());
10373
10374  return status;
10375}
10376_LT_EOF
10377  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10378  (eval $ac_link) 2>&5
10379  ac_status=$?
10380  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10381  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10382    (./conftest; exit; ) >&5 2>/dev/null
10383    lt_status=$?
10384    case x$lt_status in
10385      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10386      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10387      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10388    esac
10389  else :
10390    # compilation failed
10391    lt_cv_dlopen_self_static=no
10392  fi
10393fi
10394rm -fr conftest*
10395
10396
10397fi
10398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10399$as_echo "$lt_cv_dlopen_self_static" >&6; }
10400    fi
10401
10402    CPPFLAGS="$save_CPPFLAGS"
10403    LDFLAGS="$save_LDFLAGS"
10404    LIBS="$save_LIBS"
10405    ;;
10406  esac
10407
10408  case $lt_cv_dlopen_self in
10409  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10410  *) enable_dlopen_self=unknown ;;
10411  esac
10412
10413  case $lt_cv_dlopen_self_static in
10414  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10415  *) enable_dlopen_self_static=unknown ;;
10416  esac
10417fi
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435striplib=
10436old_striplib=
10437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10438$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10439if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10440  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10441  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10443$as_echo "yes" >&6; }
10444else
10445# FIXME - insert some real tests, host_os isn't really good enough
10446  case $host_os in
10447  darwin*)
10448    if test -n "$STRIP" ; then
10449      striplib="$STRIP -x"
10450      old_striplib="$STRIP -S"
10451      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10452$as_echo "yes" >&6; }
10453    else
10454      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10455$as_echo "no" >&6; }
10456    fi
10457    ;;
10458  *)
10459    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10460$as_echo "no" >&6; }
10461    ;;
10462  esac
10463fi
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476  # Report which library types will actually be built
10477  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10478$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10480$as_echo "$can_build_shared" >&6; }
10481
10482  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10483$as_echo_n "checking whether to build shared libraries... " >&6; }
10484  test "$can_build_shared" = "no" && enable_shared=no
10485
10486  # On AIX, shared libraries and static libraries use the same namespace, and
10487  # are all built from PIC.
10488  case $host_os in
10489  aix3*)
10490    test "$enable_shared" = yes && enable_static=no
10491    if test -n "$RANLIB"; then
10492      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10493      postinstall_cmds='$RANLIB $lib'
10494    fi
10495    ;;
10496
10497  aix[4-9]*)
10498    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10499      test "$enable_shared" = yes && enable_static=no
10500    fi
10501    ;;
10502  esac
10503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10504$as_echo "$enable_shared" >&6; }
10505
10506  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10507$as_echo_n "checking whether to build static libraries... " >&6; }
10508  # Make sure either enable_shared or enable_static is yes.
10509  test "$enable_shared" = yes || enable_static=yes
10510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10511$as_echo "$enable_static" >&6; }
10512
10513
10514
10515
10516fi
10517ac_ext=c
10518ac_cpp='$CPP $CPPFLAGS'
10519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10521ac_compiler_gnu=$ac_cv_c_compiler_gnu
10522
10523CC="$lt_save_CC"
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537        ac_config_commands="$ac_config_commands libtool"
10538
10539
10540
10541
10542# Only expand once:
10543
10544
10545
10546
10547# dolt, a replacement for libtool
10548# Josh Triplett <josh@freedesktop.org>
10549# Extract the first word of "bash", so it can be a program name with args.
10550set dummy bash; ac_word=$2
10551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10552$as_echo_n "checking for $ac_word... " >&6; }
10553if test "${ac_cv_path_DOLT_BASH+set}" = set; then :
10554  $as_echo_n "(cached) " >&6
10555else
10556  case $DOLT_BASH in
10557  [\\/]* | ?:[\\/]*)
10558  ac_cv_path_DOLT_BASH="$DOLT_BASH" # Let the user override the test with a path.
10559  ;;
10560  *)
10561  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10562for as_dir in $PATH
10563do
10564  IFS=$as_save_IFS
10565  test -z "$as_dir" && as_dir=.
10566    for ac_exec_ext in '' $ac_executable_extensions; do
10567  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10568    ac_cv_path_DOLT_BASH="$as_dir/$ac_word$ac_exec_ext"
10569    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10570    break 2
10571  fi
10572done
10573  done
10574IFS=$as_save_IFS
10575
10576  ;;
10577esac
10578fi
10579DOLT_BASH=$ac_cv_path_DOLT_BASH
10580if test -n "$DOLT_BASH"; then
10581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOLT_BASH" >&5
10582$as_echo "$DOLT_BASH" >&6; }
10583else
10584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10585$as_echo "no" >&6; }
10586fi
10587
10588
10589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if dolt supports this host" >&5
10590$as_echo_n "checking if dolt supports this host... " >&6; }
10591dolt_supported=yes
10592if test x$DOLT_BASH = x; then
10593    dolt_supported=no
10594fi
10595if test x$GCC != xyes; then
10596    dolt_supported=no
10597fi
10598case $host in
10599i?86-*-linux*|x86_64-*-linux*|powerpc-*-linux* \
10600|amd64-*-freebsd*|i?86-*-freebsd*|ia64-*-freebsd*)
10601    pic_options='-fPIC'
10602    ;;
10603i?86-apple-darwin*)
10604    pic_options='-fno-common'
10605    ;;
10606*)
10607    dolt_supported=no
10608    ;;
10609esac
10610if test x$dolt_supported = xno ; then
10611    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, falling back to libtool" >&5
10612$as_echo "no, falling back to libtool" >&6; }
10613    LTCOMPILE='$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(COMPILE)'
10614    LTCXXCOMPILE='$(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXXCOMPILE)'
10615else
10616    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, replacing libtool" >&5
10617$as_echo "yes, replacing libtool" >&6; }
10618
10619    cat <<__DOLTCOMPILE__EOF__ >doltcompile
10620#!$DOLT_BASH
10621__DOLTCOMPILE__EOF__
10622    cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
10623args=("$@")
10624for ((arg=0; arg<${#args[@]}; arg++)) ; do
10625    if test x"${args[$arg]}" = x-o ; then
10626        objarg=$((arg+1))
10627        break
10628    fi
10629done
10630if test x$objarg = x ; then
10631    echo 'Error: no -o on compiler command line' 1>&2
10632    exit 1
10633fi
10634lo="${args[$objarg]}"
10635obj="${lo%.lo}"
10636if test x"$lo" = x"$obj" ; then
10637    echo "Error: libtool object file name \"$lo\" does not end in .lo" 1>&2
10638    exit 1
10639fi
10640objbase="${obj##*/}"
10641__DOLTCOMPILE__EOF__
10642
10643    if test x$enable_shared = xyes; then
10644        cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
10645libobjdir="${obj%$objbase}.libs"
10646if test ! -d "$libobjdir" ; then
10647    mkdir_out="$(mkdir "$libobjdir" 2>&1)"
10648    mkdir_ret=$?
10649    if test "$mkdir_ret" -ne 0 && test ! -d "$libobjdir" ; then
10650	echo "$mkdir_out" 1>&2
10651        exit $mkdir_ret
10652    fi
10653fi
10654pic_object="$libobjdir/$objbase.o"
10655args[$objarg]="$pic_object"
10656__DOLTCOMPILE__EOF__
10657    cat <<__DOLTCOMPILE__EOF__ >>doltcompile
10658"\${args[@]}" $pic_options -DPIC || exit \$?
10659__DOLTCOMPILE__EOF__
10660    fi
10661
10662    if test x$enable_static = xyes; then
10663        cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
10664non_pic_object="$obj.o"
10665args[$objarg]="$non_pic_object"
10666__DOLTCOMPILE__EOF__
10667        if test x$enable_shared = xyes; then
10668            cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
10669"${args[@]}" >/dev/null 2>&1 || exit $?
10670__DOLTCOMPILE__EOF__
10671        else
10672            cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
10673"${args[@]}" || exit $?
10674__DOLTCOMPILE__EOF__
10675        fi
10676    fi
10677
10678    cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
10679{
10680echo "# $lo - a libtool object file"
10681echo "# Generated by doltcompile, not libtool"
10682__DOLTCOMPILE__EOF__
10683
10684    if test x$enable_shared = xyes; then
10685        cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
10686echo "pic_object='.libs/${objbase}.o'"
10687__DOLTCOMPILE__EOF__
10688    else
10689        cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
10690echo pic_object=none
10691__DOLTCOMPILE__EOF__
10692    fi
10693
10694    if test x$enable_static = xyes; then
10695        cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
10696echo "non_pic_object='${objbase}.o'"
10697__DOLTCOMPILE__EOF__
10698    else
10699        cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
10700echo non_pic_object=none
10701__DOLTCOMPILE__EOF__
10702    fi
10703
10704    cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
10705} > "$lo"
10706__DOLTCOMPILE__EOF__
10707
10708    chmod +x doltcompile
10709    LTCOMPILE='$(top_builddir)/doltcompile $(COMPILE)'
10710    LTCXXCOMPILE='$(top_builddir)/doltcompile $(CXXCOMPILE)'
10711
10712    cat <<__DOLTLIBTOOL__EOF__ > doltlibtool
10713#!$DOLT_BASH
10714__DOLTLIBTOOL__EOF__
10715    cat <<'__DOLTLIBTOOL__EOF__' >>doltlibtool
10716top_builddir_slash="${0%%doltlibtool}"
10717: ${top_builddir_slash:=./}
10718args=()
10719modeok=false
10720tagok=false
10721for arg in "$@"; do
10722    case "$arg" in
10723        --silent) ;;
10724        --mode=compile) modeok=true ;;
10725        --tag=CC|--tag=CXX) tagok=true ;;
10726        *) args[${#args[@]}]="$arg" ;;
10727    esac
10728done
10729if $modeok && $tagok ; then
10730    . ${top_builddir_slash}doltcompile "${args[@]}"
10731else
10732    exec ${top_builddir_slash}libtool "$@"
10733fi
10734__DOLTLIBTOOL__EOF__
10735
10736    chmod +x doltlibtool
10737    LIBTOOL='$(top_builddir)/doltlibtool'
10738fi
10739
10740
10741# end dolt
10742
10743ac_ext=c
10744ac_cpp='$CPP $CPPFLAGS'
10745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10747ac_compiler_gnu=$ac_cv_c_compiler_gnu
10748if test -n "$ac_tool_prefix"; then
10749  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10750set dummy ${ac_tool_prefix}gcc; ac_word=$2
10751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10752$as_echo_n "checking for $ac_word... " >&6; }
10753if test "${ac_cv_prog_CC+set}" = set; then :
10754  $as_echo_n "(cached) " >&6
10755else
10756  if test -n "$CC"; then
10757  ac_cv_prog_CC="$CC" # Let the user override the test.
10758else
10759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10760for as_dir in $PATH
10761do
10762  IFS=$as_save_IFS
10763  test -z "$as_dir" && as_dir=.
10764    for ac_exec_ext in '' $ac_executable_extensions; do
10765  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10766    ac_cv_prog_CC="${ac_tool_prefix}gcc"
10767    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10768    break 2
10769  fi
10770done
10771  done
10772IFS=$as_save_IFS
10773
10774fi
10775fi
10776CC=$ac_cv_prog_CC
10777if test -n "$CC"; then
10778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10779$as_echo "$CC" >&6; }
10780else
10781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10782$as_echo "no" >&6; }
10783fi
10784
10785
10786fi
10787if test -z "$ac_cv_prog_CC"; then
10788  ac_ct_CC=$CC
10789  # Extract the first word of "gcc", so it can be a program name with args.
10790set dummy gcc; ac_word=$2
10791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10792$as_echo_n "checking for $ac_word... " >&6; }
10793if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
10794  $as_echo_n "(cached) " >&6
10795else
10796  if test -n "$ac_ct_CC"; then
10797  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10798else
10799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10800for as_dir in $PATH
10801do
10802  IFS=$as_save_IFS
10803  test -z "$as_dir" && as_dir=.
10804    for ac_exec_ext in '' $ac_executable_extensions; do
10805  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10806    ac_cv_prog_ac_ct_CC="gcc"
10807    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10808    break 2
10809  fi
10810done
10811  done
10812IFS=$as_save_IFS
10813
10814fi
10815fi
10816ac_ct_CC=$ac_cv_prog_ac_ct_CC
10817if test -n "$ac_ct_CC"; then
10818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10819$as_echo "$ac_ct_CC" >&6; }
10820else
10821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10822$as_echo "no" >&6; }
10823fi
10824
10825  if test "x$ac_ct_CC" = x; then
10826    CC=""
10827  else
10828    case $cross_compiling:$ac_tool_warned in
10829yes:)
10830{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10831$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10832ac_tool_warned=yes ;;
10833esac
10834    CC=$ac_ct_CC
10835  fi
10836else
10837  CC="$ac_cv_prog_CC"
10838fi
10839
10840if test -z "$CC"; then
10841          if test -n "$ac_tool_prefix"; then
10842    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10843set dummy ${ac_tool_prefix}cc; ac_word=$2
10844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10845$as_echo_n "checking for $ac_word... " >&6; }
10846if test "${ac_cv_prog_CC+set}" = set; then :
10847  $as_echo_n "(cached) " >&6
10848else
10849  if test -n "$CC"; then
10850  ac_cv_prog_CC="$CC" # Let the user override the test.
10851else
10852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10853for as_dir in $PATH
10854do
10855  IFS=$as_save_IFS
10856  test -z "$as_dir" && as_dir=.
10857    for ac_exec_ext in '' $ac_executable_extensions; do
10858  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10859    ac_cv_prog_CC="${ac_tool_prefix}cc"
10860    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10861    break 2
10862  fi
10863done
10864  done
10865IFS=$as_save_IFS
10866
10867fi
10868fi
10869CC=$ac_cv_prog_CC
10870if test -n "$CC"; then
10871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10872$as_echo "$CC" >&6; }
10873else
10874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10875$as_echo "no" >&6; }
10876fi
10877
10878
10879  fi
10880fi
10881if test -z "$CC"; then
10882  # Extract the first word of "cc", so it can be a program name with args.
10883set dummy cc; ac_word=$2
10884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10885$as_echo_n "checking for $ac_word... " >&6; }
10886if test "${ac_cv_prog_CC+set}" = set; then :
10887  $as_echo_n "(cached) " >&6
10888else
10889  if test -n "$CC"; then
10890  ac_cv_prog_CC="$CC" # Let the user override the test.
10891else
10892  ac_prog_rejected=no
10893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10894for as_dir in $PATH
10895do
10896  IFS=$as_save_IFS
10897  test -z "$as_dir" && as_dir=.
10898    for ac_exec_ext in '' $ac_executable_extensions; do
10899  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10900    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10901       ac_prog_rejected=yes
10902       continue
10903     fi
10904    ac_cv_prog_CC="cc"
10905    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10906    break 2
10907  fi
10908done
10909  done
10910IFS=$as_save_IFS
10911
10912if test $ac_prog_rejected = yes; then
10913  # We found a bogon in the path, so make sure we never use it.
10914  set dummy $ac_cv_prog_CC
10915  shift
10916  if test $# != 0; then
10917    # We chose a different compiler from the bogus one.
10918    # However, it has the same basename, so the bogon will be chosen
10919    # first if we set CC to just the basename; use the full file name.
10920    shift
10921    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10922  fi
10923fi
10924fi
10925fi
10926CC=$ac_cv_prog_CC
10927if test -n "$CC"; then
10928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10929$as_echo "$CC" >&6; }
10930else
10931  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10932$as_echo "no" >&6; }
10933fi
10934
10935
10936fi
10937if test -z "$CC"; then
10938  if test -n "$ac_tool_prefix"; then
10939  for ac_prog in cl.exe
10940  do
10941    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10942set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10944$as_echo_n "checking for $ac_word... " >&6; }
10945if test "${ac_cv_prog_CC+set}" = set; then :
10946  $as_echo_n "(cached) " >&6
10947else
10948  if test -n "$CC"; then
10949  ac_cv_prog_CC="$CC" # Let the user override the test.
10950else
10951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10952for as_dir in $PATH
10953do
10954  IFS=$as_save_IFS
10955  test -z "$as_dir" && as_dir=.
10956    for ac_exec_ext in '' $ac_executable_extensions; do
10957  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10958    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10959    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10960    break 2
10961  fi
10962done
10963  done
10964IFS=$as_save_IFS
10965
10966fi
10967fi
10968CC=$ac_cv_prog_CC
10969if test -n "$CC"; then
10970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10971$as_echo "$CC" >&6; }
10972else
10973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10974$as_echo "no" >&6; }
10975fi
10976
10977
10978    test -n "$CC" && break
10979  done
10980fi
10981if test -z "$CC"; then
10982  ac_ct_CC=$CC
10983  for ac_prog in cl.exe
10984do
10985  # Extract the first word of "$ac_prog", so it can be a program name with args.
10986set dummy $ac_prog; ac_word=$2
10987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10988$as_echo_n "checking for $ac_word... " >&6; }
10989if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
10990  $as_echo_n "(cached) " >&6
10991else
10992  if test -n "$ac_ct_CC"; then
10993  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10994else
10995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10996for as_dir in $PATH
10997do
10998  IFS=$as_save_IFS
10999  test -z "$as_dir" && as_dir=.
11000    for ac_exec_ext in '' $ac_executable_extensions; do
11001  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11002    ac_cv_prog_ac_ct_CC="$ac_prog"
11003    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11004    break 2
11005  fi
11006done
11007  done
11008IFS=$as_save_IFS
11009
11010fi
11011fi
11012ac_ct_CC=$ac_cv_prog_ac_ct_CC
11013if test -n "$ac_ct_CC"; then
11014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11015$as_echo "$ac_ct_CC" >&6; }
11016else
11017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11018$as_echo "no" >&6; }
11019fi
11020
11021
11022  test -n "$ac_ct_CC" && break
11023done
11024
11025  if test "x$ac_ct_CC" = x; then
11026    CC=""
11027  else
11028    case $cross_compiling:$ac_tool_warned in
11029yes:)
11030{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11031$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11032ac_tool_warned=yes ;;
11033esac
11034    CC=$ac_ct_CC
11035  fi
11036fi
11037
11038fi
11039
11040
11041test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11042$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11043as_fn_error "no acceptable C compiler found in \$PATH
11044See \`config.log' for more details." "$LINENO" 5; }
11045
11046# Provide some information about the compiler.
11047$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11048set X $ac_compile
11049ac_compiler=$2
11050for ac_option in --version -v -V -qversion; do
11051  { { ac_try="$ac_compiler $ac_option >&5"
11052case "(($ac_try" in
11053  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11054  *) ac_try_echo=$ac_try;;
11055esac
11056eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11057$as_echo "$ac_try_echo"; } >&5
11058  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11059  ac_status=$?
11060  if test -s conftest.err; then
11061    sed '10a\
11062... rest of stderr output deleted ...
11063         10q' conftest.err >conftest.er1
11064    cat conftest.er1 >&5
11065    rm -f conftest.er1 conftest.err
11066  fi
11067  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11068  test $ac_status = 0; }
11069done
11070
11071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11072$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11073if test "${ac_cv_c_compiler_gnu+set}" = set; then :
11074  $as_echo_n "(cached) " >&6
11075else
11076  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11077/* end confdefs.h.  */
11078
11079int
11080main ()
11081{
11082#ifndef __GNUC__
11083       choke me
11084#endif
11085
11086  ;
11087  return 0;
11088}
11089_ACEOF
11090if ac_fn_c_try_compile "$LINENO"; then :
11091  ac_compiler_gnu=yes
11092else
11093  ac_compiler_gnu=no
11094fi
11095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11096ac_cv_c_compiler_gnu=$ac_compiler_gnu
11097
11098fi
11099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11100$as_echo "$ac_cv_c_compiler_gnu" >&6; }
11101if test $ac_compiler_gnu = yes; then
11102  GCC=yes
11103else
11104  GCC=
11105fi
11106ac_test_CFLAGS=${CFLAGS+set}
11107ac_save_CFLAGS=$CFLAGS
11108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11109$as_echo_n "checking whether $CC accepts -g... " >&6; }
11110if test "${ac_cv_prog_cc_g+set}" = set; then :
11111  $as_echo_n "(cached) " >&6
11112else
11113  ac_save_c_werror_flag=$ac_c_werror_flag
11114   ac_c_werror_flag=yes
11115   ac_cv_prog_cc_g=no
11116   CFLAGS="-g"
11117   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11118/* end confdefs.h.  */
11119
11120int
11121main ()
11122{
11123
11124  ;
11125  return 0;
11126}
11127_ACEOF
11128if ac_fn_c_try_compile "$LINENO"; then :
11129  ac_cv_prog_cc_g=yes
11130else
11131  CFLAGS=""
11132      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11133/* end confdefs.h.  */
11134
11135int
11136main ()
11137{
11138
11139  ;
11140  return 0;
11141}
11142_ACEOF
11143if ac_fn_c_try_compile "$LINENO"; then :
11144
11145else
11146  ac_c_werror_flag=$ac_save_c_werror_flag
11147	 CFLAGS="-g"
11148	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11149/* end confdefs.h.  */
11150
11151int
11152main ()
11153{
11154
11155  ;
11156  return 0;
11157}
11158_ACEOF
11159if ac_fn_c_try_compile "$LINENO"; then :
11160  ac_cv_prog_cc_g=yes
11161fi
11162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11163fi
11164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11165fi
11166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11167   ac_c_werror_flag=$ac_save_c_werror_flag
11168fi
11169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11170$as_echo "$ac_cv_prog_cc_g" >&6; }
11171if test "$ac_test_CFLAGS" = set; then
11172  CFLAGS=$ac_save_CFLAGS
11173elif test $ac_cv_prog_cc_g = yes; then
11174  if test "$GCC" = yes; then
11175    CFLAGS="-g -O2"
11176  else
11177    CFLAGS="-g"
11178  fi
11179else
11180  if test "$GCC" = yes; then
11181    CFLAGS="-O2"
11182  else
11183    CFLAGS=
11184  fi
11185fi
11186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11187$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11188if test "${ac_cv_prog_cc_c89+set}" = set; then :
11189  $as_echo_n "(cached) " >&6
11190else
11191  ac_cv_prog_cc_c89=no
11192ac_save_CC=$CC
11193cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11194/* end confdefs.h.  */
11195#include <stdarg.h>
11196#include <stdio.h>
11197#include <sys/types.h>
11198#include <sys/stat.h>
11199/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11200struct buf { int x; };
11201FILE * (*rcsopen) (struct buf *, struct stat *, int);
11202static char *e (p, i)
11203     char **p;
11204     int i;
11205{
11206  return p[i];
11207}
11208static char *f (char * (*g) (char **, int), char **p, ...)
11209{
11210  char *s;
11211  va_list v;
11212  va_start (v,p);
11213  s = g (p, va_arg (v,int));
11214  va_end (v);
11215  return s;
11216}
11217
11218/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11219   function prototypes and stuff, but not '\xHH' hex character constants.
11220   These don't provoke an error unfortunately, instead are silently treated
11221   as 'x'.  The following induces an error, until -std is added to get
11222   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11223   array size at least.  It's necessary to write '\x00'==0 to get something
11224   that's true only with -std.  */
11225int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11226
11227/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11228   inside strings and character constants.  */
11229#define FOO(x) 'x'
11230int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11231
11232int test (int i, double x);
11233struct s1 {int (*f) (int a);};
11234struct s2 {int (*f) (double a);};
11235int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11236int argc;
11237char **argv;
11238int
11239main ()
11240{
11241return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11242  ;
11243  return 0;
11244}
11245_ACEOF
11246for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11247	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11248do
11249  CC="$ac_save_CC $ac_arg"
11250  if ac_fn_c_try_compile "$LINENO"; then :
11251  ac_cv_prog_cc_c89=$ac_arg
11252fi
11253rm -f core conftest.err conftest.$ac_objext
11254  test "x$ac_cv_prog_cc_c89" != "xno" && break
11255done
11256rm -f conftest.$ac_ext
11257CC=$ac_save_CC
11258
11259fi
11260# AC_CACHE_VAL
11261case "x$ac_cv_prog_cc_c89" in
11262  x)
11263    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11264$as_echo "none needed" >&6; } ;;
11265  xno)
11266    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11267$as_echo "unsupported" >&6; } ;;
11268  *)
11269    CC="$CC $ac_cv_prog_cc_c89"
11270    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11271$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11272esac
11273if test "x$ac_cv_prog_cc_c89" != xno; then :
11274
11275fi
11276
11277ac_ext=c
11278ac_cpp='$CPP $CPPFLAGS'
11279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11281ac_compiler_gnu=$ac_cv_c_compiler_gnu
11282
11283depcc="$CC"   am_compiler_list=
11284
11285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11286$as_echo_n "checking dependency style of $depcc... " >&6; }
11287if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
11288  $as_echo_n "(cached) " >&6
11289else
11290  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11291  # We make a subdir and do the tests there.  Otherwise we can end up
11292  # making bogus files that we don't know about and never remove.  For
11293  # instance it was reported that on HP-UX the gcc test will end up
11294  # making a dummy file named `D' -- because `-MD' means `put the output
11295  # in D'.
11296  mkdir conftest.dir
11297  # Copy depcomp to subdir because otherwise we won't find it if we're
11298  # using a relative directory.
11299  cp "$am_depcomp" conftest.dir
11300  cd conftest.dir
11301  # We will build objects and dependencies in a subdirectory because
11302  # it helps to detect inapplicable dependency modes.  For instance
11303  # both Tru64's cc and ICC support -MD to output dependencies as a
11304  # side effect of compilation, but ICC will put the dependencies in
11305  # the current directory while Tru64 will put them in the object
11306  # directory.
11307  mkdir sub
11308
11309  am_cv_CC_dependencies_compiler_type=none
11310  if test "$am_compiler_list" = ""; then
11311     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11312  fi
11313  am__universal=false
11314  case " $depcc " in #(
11315     *\ -arch\ *\ -arch\ *) am__universal=true ;;
11316     esac
11317
11318  for depmode in $am_compiler_list; do
11319    # Setup a source with many dependencies, because some compilers
11320    # like to wrap large dependency lists on column 80 (with \), and
11321    # we should not choose a depcomp mode which is confused by this.
11322    #
11323    # We need to recreate these files for each test, as the compiler may
11324    # overwrite some of them when testing with obscure command lines.
11325    # This happens at least with the AIX C compiler.
11326    : > sub/conftest.c
11327    for i in 1 2 3 4 5 6; do
11328      echo '#include "conftst'$i'.h"' >> sub/conftest.c
11329      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11330      # Solaris 8's {/usr,}/bin/sh.
11331      touch sub/conftst$i.h
11332    done
11333    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11334
11335    # We check with `-c' and `-o' for the sake of the "dashmstdout"
11336    # mode.  It turns out that the SunPro C++ compiler does not properly
11337    # handle `-M -o', and we need to detect this.  Also, some Intel
11338    # versions had trouble with output in subdirs
11339    am__obj=sub/conftest.${OBJEXT-o}
11340    am__minus_obj="-o $am__obj"
11341    case $depmode in
11342    gcc)
11343      # This depmode causes a compiler race in universal mode.
11344      test "$am__universal" = false || continue
11345      ;;
11346    nosideeffect)
11347      # after this tag, mechanisms are not by side-effect, so they'll
11348      # only be used when explicitly requested
11349      if test "x$enable_dependency_tracking" = xyes; then
11350	continue
11351      else
11352	break
11353      fi
11354      ;;
11355    msvisualcpp | msvcmsys)
11356      # This compiler won't grok `-c -o', but also, the minuso test has
11357      # not run yet.  These depmodes are late enough in the game, and
11358      # so weak that their functioning should not be impacted.
11359      am__obj=conftest.${OBJEXT-o}
11360      am__minus_obj=
11361      ;;
11362    none) break ;;
11363    esac
11364    if depmode=$depmode \
11365       source=sub/conftest.c object=$am__obj \
11366       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11367       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11368         >/dev/null 2>conftest.err &&
11369       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11370       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11371       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11372       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11373      # icc doesn't choke on unknown options, it will just issue warnings
11374      # or remarks (even with -Werror).  So we grep stderr for any message
11375      # that says an option was ignored or not supported.
11376      # When given -MP, icc 7.0 and 7.1 complain thusly:
11377      #   icc: Command line warning: ignoring option '-M'; no argument required
11378      # The diagnosis changed in icc 8.0:
11379      #   icc: Command line remark: option '-MP' not supported
11380      if (grep 'ignoring option' conftest.err ||
11381          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11382        am_cv_CC_dependencies_compiler_type=$depmode
11383        break
11384      fi
11385    fi
11386  done
11387
11388  cd ..
11389  rm -rf conftest.dir
11390else
11391  am_cv_CC_dependencies_compiler_type=none
11392fi
11393
11394fi
11395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11396$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11397CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11398
11399 if
11400  test "x$enable_dependency_tracking" != xno \
11401  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11402  am__fastdepCC_TRUE=
11403  am__fastdepCC_FALSE='#'
11404else
11405  am__fastdepCC_TRUE='#'
11406  am__fastdepCC_FALSE=
11407fi
11408
11409
11410if test "x$CC" != xcc; then
11411  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11412$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11413else
11414  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11415$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11416fi
11417set dummy $CC; ac_cc=`$as_echo "$2" |
11418		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11419if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
11420  $as_echo_n "(cached) " >&6
11421else
11422  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11423/* end confdefs.h.  */
11424
11425int
11426main ()
11427{
11428
11429  ;
11430  return 0;
11431}
11432_ACEOF
11433# Make sure it works both with $CC and with simple cc.
11434# We do the test twice because some compilers refuse to overwrite an
11435# existing .o file with -o, though they will create one.
11436ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11437rm -f conftest2.*
11438if { { case "(($ac_try" in
11439  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11440  *) ac_try_echo=$ac_try;;
11441esac
11442eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11443$as_echo "$ac_try_echo"; } >&5
11444  (eval "$ac_try") 2>&5
11445  ac_status=$?
11446  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11447  test $ac_status = 0; } &&
11448   test -f conftest2.$ac_objext && { { case "(($ac_try" in
11449  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11450  *) ac_try_echo=$ac_try;;
11451esac
11452eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11453$as_echo "$ac_try_echo"; } >&5
11454  (eval "$ac_try") 2>&5
11455  ac_status=$?
11456  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11457  test $ac_status = 0; };
11458then
11459  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11460  if test "x$CC" != xcc; then
11461    # Test first that cc exists at all.
11462    if { ac_try='cc -c conftest.$ac_ext >&5'
11463  { { case "(($ac_try" in
11464  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11465  *) ac_try_echo=$ac_try;;
11466esac
11467eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11468$as_echo "$ac_try_echo"; } >&5
11469  (eval "$ac_try") 2>&5
11470  ac_status=$?
11471  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11472  test $ac_status = 0; }; }; then
11473      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11474      rm -f conftest2.*
11475      if { { case "(($ac_try" in
11476  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11477  *) ac_try_echo=$ac_try;;
11478esac
11479eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11480$as_echo "$ac_try_echo"; } >&5
11481  (eval "$ac_try") 2>&5
11482  ac_status=$?
11483  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11484  test $ac_status = 0; } &&
11485	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11486  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11487  *) ac_try_echo=$ac_try;;
11488esac
11489eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11490$as_echo "$ac_try_echo"; } >&5
11491  (eval "$ac_try") 2>&5
11492  ac_status=$?
11493  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11494  test $ac_status = 0; };
11495      then
11496	# cc works too.
11497	:
11498      else
11499	# cc exists but doesn't like -o.
11500	eval ac_cv_prog_cc_${ac_cc}_c_o=no
11501      fi
11502    fi
11503  fi
11504else
11505  eval ac_cv_prog_cc_${ac_cc}_c_o=no
11506fi
11507rm -f core conftest*
11508
11509fi
11510if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11512$as_echo "yes" >&6; }
11513else
11514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11515$as_echo "no" >&6; }
11516
11517$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11518
11519fi
11520
11521# FIXME: we rely on the cache variable name because
11522# there is no other way.
11523set dummy $CC
11524am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11525eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11526if test "$am_t" != yes; then
11527   # Losing compiler, so override with the script.
11528   # FIXME: It is wrong to rewrite CC.
11529   # But if we don't then we get into trouble of one sort or another.
11530   # A longer-term fix would be to have automake use am__CC in this case,
11531   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11532   CC="$am_aux_dir/compile $CC"
11533fi
11534
11535
11536
11537
11538
11539if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11540	if test -n "$ac_tool_prefix"; then
11541  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11542set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11544$as_echo_n "checking for $ac_word... " >&6; }
11545if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11546  $as_echo_n "(cached) " >&6
11547else
11548  case $PKG_CONFIG in
11549  [\\/]* | ?:[\\/]*)
11550  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11551  ;;
11552  *)
11553  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11554for as_dir in $PATH
11555do
11556  IFS=$as_save_IFS
11557  test -z "$as_dir" && as_dir=.
11558    for ac_exec_ext in '' $ac_executable_extensions; do
11559  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11560    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11561    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11562    break 2
11563  fi
11564done
11565  done
11566IFS=$as_save_IFS
11567
11568  ;;
11569esac
11570fi
11571PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11572if test -n "$PKG_CONFIG"; then
11573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11574$as_echo "$PKG_CONFIG" >&6; }
11575else
11576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11577$as_echo "no" >&6; }
11578fi
11579
11580
11581fi
11582if test -z "$ac_cv_path_PKG_CONFIG"; then
11583  ac_pt_PKG_CONFIG=$PKG_CONFIG
11584  # Extract the first word of "pkg-config", so it can be a program name with args.
11585set dummy pkg-config; ac_word=$2
11586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11587$as_echo_n "checking for $ac_word... " >&6; }
11588if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
11589  $as_echo_n "(cached) " >&6
11590else
11591  case $ac_pt_PKG_CONFIG in
11592  [\\/]* | ?:[\\/]*)
11593  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11594  ;;
11595  *)
11596  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11597for as_dir in $PATH
11598do
11599  IFS=$as_save_IFS
11600  test -z "$as_dir" && as_dir=.
11601    for ac_exec_ext in '' $ac_executable_extensions; do
11602  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11603    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11604    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11605    break 2
11606  fi
11607done
11608  done
11609IFS=$as_save_IFS
11610
11611  ;;
11612esac
11613fi
11614ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11615if test -n "$ac_pt_PKG_CONFIG"; then
11616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11617$as_echo "$ac_pt_PKG_CONFIG" >&6; }
11618else
11619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11620$as_echo "no" >&6; }
11621fi
11622
11623  if test "x$ac_pt_PKG_CONFIG" = x; then
11624    PKG_CONFIG=""
11625  else
11626    case $cross_compiling:$ac_tool_warned in
11627yes:)
11628{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11629$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11630ac_tool_warned=yes ;;
11631esac
11632    PKG_CONFIG=$ac_pt_PKG_CONFIG
11633  fi
11634else
11635  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11636fi
11637
11638fi
11639if test -n "$PKG_CONFIG"; then
11640	_pkg_min_version=0.9.0
11641	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11642$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11643	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11644		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11645$as_echo "yes" >&6; }
11646	else
11647		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11648$as_echo "no" >&6; }
11649		PKG_CONFIG=""
11650	fi
11651
11652fi
11653
11654pkg_failed=no
11655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GEN4ASM" >&5
11656$as_echo_n "checking for GEN4ASM... " >&6; }
11657
11658if test -n "$PKG_CONFIG"; then
11659    if test -n "$GEN4ASM_CFLAGS"; then
11660        pkg_cv_GEN4ASM_CFLAGS="$GEN4ASM_CFLAGS"
11661    else
11662        if test -n "$PKG_CONFIG" && \
11663    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"intel-gen4asm >= 1.0\""; } >&5
11664  ($PKG_CONFIG --exists --print-errors "intel-gen4asm >= 1.0") 2>&5
11665  ac_status=$?
11666  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11667  test $ac_status = 0; }; then
11668  pkg_cv_GEN4ASM_CFLAGS=`$PKG_CONFIG --cflags "intel-gen4asm >= 1.0" 2>/dev/null`
11669else
11670  pkg_failed=yes
11671fi
11672    fi
11673else
11674	pkg_failed=untried
11675fi
11676if test -n "$PKG_CONFIG"; then
11677    if test -n "$GEN4ASM_LIBS"; then
11678        pkg_cv_GEN4ASM_LIBS="$GEN4ASM_LIBS"
11679    else
11680        if test -n "$PKG_CONFIG" && \
11681    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"intel-gen4asm >= 1.0\""; } >&5
11682  ($PKG_CONFIG --exists --print-errors "intel-gen4asm >= 1.0") 2>&5
11683  ac_status=$?
11684  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11685  test $ac_status = 0; }; then
11686  pkg_cv_GEN4ASM_LIBS=`$PKG_CONFIG --libs "intel-gen4asm >= 1.0" 2>/dev/null`
11687else
11688  pkg_failed=yes
11689fi
11690    fi
11691else
11692	pkg_failed=untried
11693fi
11694
11695
11696
11697if test $pkg_failed = yes; then
11698
11699if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11700        _pkg_short_errors_supported=yes
11701else
11702        _pkg_short_errors_supported=no
11703fi
11704        if test $_pkg_short_errors_supported = yes; then
11705	        GEN4ASM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "intel-gen4asm >= 1.0"`
11706        else
11707	        GEN4ASM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "intel-gen4asm >= 1.0"`
11708        fi
11709	# Put the nasty error message in config.log where it belongs
11710	echo "$GEN4ASM_PKG_ERRORS" >&5
11711
11712	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11713$as_echo "no" >&6; }
11714                gen4asm=no
11715elif test $pkg_failed = untried; then
11716	gen4asm=no
11717else
11718	GEN4ASM_CFLAGS=$pkg_cv_GEN4ASM_CFLAGS
11719	GEN4ASM_LIBS=$pkg_cv_GEN4ASM_LIBS
11720        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11721$as_echo "yes" >&6; }
11722	gen4asm=yes
11723fi
11724 if test x$gen4asm = xyes; then
11725  HAVE_GEN4ASM_TRUE=
11726  HAVE_GEN4ASM_FALSE='#'
11727else
11728  HAVE_GEN4ASM_TRUE='#'
11729  HAVE_GEN4ASM_FALSE=
11730fi
11731
11732
11733for ac_header in sys/mman.h
11734do :
11735  ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
11736if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
11737  cat >>confdefs.h <<_ACEOF
11738#define HAVE_SYS_MMAN_H 1
11739_ACEOF
11740
11741fi
11742
11743done
11744
11745for ac_func in mprotect
11746do :
11747  ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
11748if test "x$ac_cv_func_mprotect" = x""yes; then :
11749  cat >>confdefs.h <<_ACEOF
11750#define HAVE_MPROTECT 1
11751_ACEOF
11752
11753fi
11754done
11755
11756
11757
11758
11759
11760# Check whether --with-xorg-module-dir was given.
11761if test "${with_xorg_module_dir+set}" = set; then :
11762  withval=$with_xorg_module_dir; moduledir="$withval"
11763else
11764  moduledir="$libdir/xorg/modules"
11765fi
11766
11767
11768# Check whether --enable-dri was given.
11769if test "${enable_dri+set}" = set; then :
11770  enableval=$enable_dri; DRI="$enableval"
11771else
11772  DRI=auto
11773fi
11774
11775
11776# Check whether --enable-video-debug was given.
11777if test "${enable_video_debug+set}" = set; then :
11778  enableval=$enable_video_debug; VIDEO_DEBUG="$enableval"
11779else
11780  VIDEO_DEBUG=no
11781fi
11782
11783
11784# Check whether --enable-debug was given.
11785if test "${enable_debug+set}" = set; then :
11786  enableval=$enable_debug;
11787fi
11788
11789if test "x$enableval" == "xyes" ; then
11790	DEBUGFLAGS="-g"
11791else
11792	DEBUGFLAGS=""
11793fi
11794
11795# Check whether --enable-xvmc was given.
11796if test "${enable_xvmc+set}" = set; then :
11797  enableval=$enable_xvmc; XVMC="$enableval"
11798else
11799  XVMC=yes
11800fi
11801
11802
11803# Check whether --enable-kms-only was given.
11804if test "${enable_kms_only+set}" = set; then :
11805  enableval=$enable_kms_only; KMS_ONLY="$enableval"
11806else
11807  KMS_ONLY=no
11808fi
11809
11810
11811# Checks for extensions
11812
11813	SAVE_CFLAGS="$CFLAGS"
11814	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
11815	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11816/* end confdefs.h.  */
11817
11818#include "xorg-server.h"
11819#if !defined XINERAMA
11820#error XINERAMA not defined
11821#endif
11822
11823int
11824main ()
11825{
11826
11827  ;
11828  return 0;
11829}
11830_ACEOF
11831if ac_fn_c_try_compile "$LINENO"; then :
11832  _EXT_CHECK=yes
11833else
11834  _EXT_CHECK=no
11835fi
11836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11837	CFLAGS="$SAVE_CFLAGS"
11838	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XINERAMA is defined" >&5
11839$as_echo_n "checking if XINERAMA is defined... " >&6; }
11840	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
11841$as_echo "$_EXT_CHECK" >&6; }
11842	if test "$_EXT_CHECK" != no; then
11843		REQUIRED_MODULES="$REQUIRED_MODULES xineramaproto"
11844	fi
11845
11846
11847	SAVE_CFLAGS="$CFLAGS"
11848	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
11849	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11850/* end confdefs.h.  */
11851
11852#include "xorg-server.h"
11853#if !defined RANDR
11854#error RANDR not defined
11855#endif
11856
11857int
11858main ()
11859{
11860
11861  ;
11862  return 0;
11863}
11864_ACEOF
11865if ac_fn_c_try_compile "$LINENO"; then :
11866  _EXT_CHECK=yes
11867else
11868  _EXT_CHECK=no
11869fi
11870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11871	CFLAGS="$SAVE_CFLAGS"
11872	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
11873$as_echo_n "checking if RANDR is defined... " >&6; }
11874	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
11875$as_echo "$_EXT_CHECK" >&6; }
11876	if test "$_EXT_CHECK" != no; then
11877		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
11878	fi
11879
11880
11881	SAVE_CFLAGS="$CFLAGS"
11882	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
11883	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11884/* end confdefs.h.  */
11885
11886#include "xorg-server.h"
11887#if !defined RENDER
11888#error RENDER not defined
11889#endif
11890
11891int
11892main ()
11893{
11894
11895  ;
11896  return 0;
11897}
11898_ACEOF
11899if ac_fn_c_try_compile "$LINENO"; then :
11900  _EXT_CHECK=yes
11901else
11902  _EXT_CHECK=no
11903fi
11904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11905	CFLAGS="$SAVE_CFLAGS"
11906	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
11907$as_echo_n "checking if RENDER is defined... " >&6; }
11908	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
11909$as_echo "$_EXT_CHECK" >&6; }
11910	if test "$_EXT_CHECK" != no; then
11911		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
11912	fi
11913
11914
11915	SAVE_CFLAGS="$CFLAGS"
11916	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
11917	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11918/* end confdefs.h.  */
11919
11920#include "xorg-server.h"
11921#if !defined XF86DRI
11922#error XF86DRI not defined
11923#endif
11924
11925int
11926main ()
11927{
11928
11929  ;
11930  return 0;
11931}
11932_ACEOF
11933if ac_fn_c_try_compile "$LINENO"; then :
11934  _EXT_CHECK=yes
11935else
11936  _EXT_CHECK=no
11937fi
11938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11939	CFLAGS="$SAVE_CFLAGS"
11940	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XF86DRI is defined" >&5
11941$as_echo_n "checking if XF86DRI is defined... " >&6; }
11942	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
11943$as_echo "$_EXT_CHECK" >&6; }
11944	if test "$_EXT_CHECK" != no; then
11945		REQUIRED_MODULES="$REQUIRED_MODULES xextproto x11"
11946	fi
11947
11948
11949	SAVE_CFLAGS="$CFLAGS"
11950	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
11951	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11952/* end confdefs.h.  */
11953
11954#include "xorg-server.h"
11955#if !defined DPMSExtension
11956#error DPMSExtension not defined
11957#endif
11958
11959int
11960main ()
11961{
11962
11963  ;
11964  return 0;
11965}
11966_ACEOF
11967if ac_fn_c_try_compile "$LINENO"; then :
11968  _EXT_CHECK=yes
11969else
11970  _EXT_CHECK=no
11971fi
11972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11973	CFLAGS="$SAVE_CFLAGS"
11974	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
11975$as_echo_n "checking if DPMSExtension is defined... " >&6; }
11976	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
11977$as_echo "$_EXT_CHECK" >&6; }
11978	if test "$_EXT_CHECK" != no; then
11979		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
11980	fi
11981
11982
11983# Checks for pkg-config packages
11984
11985pkg_failed=no
11986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
11987$as_echo_n "checking for XORG... " >&6; }
11988
11989if test -n "$PKG_CONFIG"; then
11990    if test -n "$XORG_CFLAGS"; then
11991        pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
11992    else
11993        if test -n "$PKG_CONFIG" && \
11994    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.6 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
11995  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES") 2>&5
11996  ac_status=$?
11997  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11998  test $ac_status = 0; }; then
11999  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
12000else
12001  pkg_failed=yes
12002fi
12003    fi
12004else
12005	pkg_failed=untried
12006fi
12007if test -n "$PKG_CONFIG"; then
12008    if test -n "$XORG_LIBS"; then
12009        pkg_cv_XORG_LIBS="$XORG_LIBS"
12010    else
12011        if test -n "$PKG_CONFIG" && \
12012    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.6 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
12013  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES") 2>&5
12014  ac_status=$?
12015  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12016  test $ac_status = 0; }; then
12017  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
12018else
12019  pkg_failed=yes
12020fi
12021    fi
12022else
12023	pkg_failed=untried
12024fi
12025
12026
12027
12028if test $pkg_failed = yes; then
12029
12030if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12031        _pkg_short_errors_supported=yes
12032else
12033        _pkg_short_errors_supported=no
12034fi
12035        if test $_pkg_short_errors_supported = yes; then
12036	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES"`
12037        else
12038	        XORG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES"`
12039        fi
12040	# Put the nasty error message in config.log where it belongs
12041	echo "$XORG_PKG_ERRORS" >&5
12042
12043	as_fn_error "Package requirements (xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES) were not met:
12044
12045$XORG_PKG_ERRORS
12046
12047Consider adjusting the PKG_CONFIG_PATH environment variable if you
12048installed software in a non-standard prefix.
12049
12050Alternatively, you may set the environment variables XORG_CFLAGS
12051and XORG_LIBS to avoid the need to call pkg-config.
12052See the pkg-config man page for more details.
12053" "$LINENO" 5
12054elif test $pkg_failed = untried; then
12055	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12056$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12057as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
12058is in your PATH or set the PKG_CONFIG environment variable to the full
12059path to pkg-config.
12060
12061Alternatively, you may set the environment variables XORG_CFLAGS
12062and XORG_LIBS to avoid the need to call pkg-config.
12063See the pkg-config man page for more details.
12064
12065To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12066See \`config.log' for more details." "$LINENO" 5; }
12067else
12068	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
12069	XORG_LIBS=$pkg_cv_XORG_LIBS
12070        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12071$as_echo "yes" >&6; }
12072	:
12073fi
12074
12075pkg_failed=no
12076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
12077$as_echo_n "checking for XEXT... " >&6; }
12078
12079if test -n "$PKG_CONFIG"; then
12080    if test -n "$XEXT_CFLAGS"; then
12081        pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
12082    else
12083        if test -n "$PKG_CONFIG" && \
12084    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
12085  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
12086  ac_status=$?
12087  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12088  test $ac_status = 0; }; then
12089  pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
12090else
12091  pkg_failed=yes
12092fi
12093    fi
12094else
12095	pkg_failed=untried
12096fi
12097if test -n "$PKG_CONFIG"; then
12098    if test -n "$XEXT_LIBS"; then
12099        pkg_cv_XEXT_LIBS="$XEXT_LIBS"
12100    else
12101        if test -n "$PKG_CONFIG" && \
12102    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
12103  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
12104  ac_status=$?
12105  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12106  test $ac_status = 0; }; then
12107  pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
12108else
12109  pkg_failed=yes
12110fi
12111    fi
12112else
12113	pkg_failed=untried
12114fi
12115
12116
12117
12118if test $pkg_failed = yes; then
12119
12120if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12121        _pkg_short_errors_supported=yes
12122else
12123        _pkg_short_errors_supported=no
12124fi
12125        if test $_pkg_short_errors_supported = yes; then
12126	        XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xextproto >= 7.0.99.1"`
12127        else
12128	        XEXT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xextproto >= 7.0.99.1"`
12129        fi
12130	# Put the nasty error message in config.log where it belongs
12131	echo "$XEXT_PKG_ERRORS" >&5
12132
12133	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12134$as_echo "no" >&6; }
12135                HAVE_XEXTPROTO_71="no"
12136elif test $pkg_failed = untried; then
12137	HAVE_XEXTPROTO_71="no"
12138else
12139	XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
12140	XEXT_LIBS=$pkg_cv_XEXT_LIBS
12141        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12142$as_echo "yes" >&6; }
12143	HAVE_XEXTPROTO_71="yes";
12144$as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
12145
12146fi
12147 if  test "$HAVE_XEXTPROTO_71" = "yes" ; then
12148  HAVE_XEXTPROTO_71_TRUE=
12149  HAVE_XEXTPROTO_71_FALSE='#'
12150else
12151  HAVE_XEXTPROTO_71_TRUE='#'
12152  HAVE_XEXTPROTO_71_FALSE=
12153fi
12154
12155
12156sdkdir=$(pkg-config --variable=sdkdir xorg-server)
12157drm_cflags=$(pkg-config --cflags libdrm)
12158
12159# Checks for libraries.
12160
12161# Checks for header files.
12162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12163$as_echo_n "checking for ANSI C header files... " >&6; }
12164if test "${ac_cv_header_stdc+set}" = set; then :
12165  $as_echo_n "(cached) " >&6
12166else
12167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12168/* end confdefs.h.  */
12169#include <stdlib.h>
12170#include <stdarg.h>
12171#include <string.h>
12172#include <float.h>
12173
12174int
12175main ()
12176{
12177
12178  ;
12179  return 0;
12180}
12181_ACEOF
12182if ac_fn_c_try_compile "$LINENO"; then :
12183  ac_cv_header_stdc=yes
12184else
12185  ac_cv_header_stdc=no
12186fi
12187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12188
12189if test $ac_cv_header_stdc = yes; then
12190  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12192/* end confdefs.h.  */
12193#include <string.h>
12194
12195_ACEOF
12196if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12197  $EGREP "memchr" >/dev/null 2>&1; then :
12198
12199else
12200  ac_cv_header_stdc=no
12201fi
12202rm -f conftest*
12203
12204fi
12205
12206if test $ac_cv_header_stdc = yes; then
12207  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12208  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12209/* end confdefs.h.  */
12210#include <stdlib.h>
12211
12212_ACEOF
12213if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12214  $EGREP "free" >/dev/null 2>&1; then :
12215
12216else
12217  ac_cv_header_stdc=no
12218fi
12219rm -f conftest*
12220
12221fi
12222
12223if test $ac_cv_header_stdc = yes; then
12224  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12225  if test "$cross_compiling" = yes; then :
12226  :
12227else
12228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12229/* end confdefs.h.  */
12230#include <ctype.h>
12231#include <stdlib.h>
12232#if ((' ' & 0x0FF) == 0x020)
12233# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12234# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12235#else
12236# define ISLOWER(c) \
12237		   (('a' <= (c) && (c) <= 'i') \
12238		     || ('j' <= (c) && (c) <= 'r') \
12239		     || ('s' <= (c) && (c) <= 'z'))
12240# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12241#endif
12242
12243#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12244int
12245main ()
12246{
12247  int i;
12248  for (i = 0; i < 256; i++)
12249    if (XOR (islower (i), ISLOWER (i))
12250	|| toupper (i) != TOUPPER (i))
12251      return 2;
12252  return 0;
12253}
12254_ACEOF
12255if ac_fn_c_try_run "$LINENO"; then :
12256
12257else
12258  ac_cv_header_stdc=no
12259fi
12260rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12261  conftest.$ac_objext conftest.beam conftest.$ac_ext
12262fi
12263
12264fi
12265fi
12266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12267$as_echo "$ac_cv_header_stdc" >&6; }
12268if test $ac_cv_header_stdc = yes; then
12269
12270$as_echo "#define STDC_HEADERS 1" >>confdefs.h
12271
12272fi
12273
12274
12275save_CFLAGS="$CFLAGS"
12276CFLAGS="$XORG_CFLAGS $DRI_CFLAGS $drm_cflags"
12277CPPFLAGS="$XORG_CFLAGS $DRI_CFLAGS $drm_cflags"
12278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DRI support" >&5
12279$as_echo_n "checking whether to include DRI support... " >&6; }
12280if test x$DRI != xno; then
12281        as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh`
12282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dri.h" >&5
12283$as_echo_n "checking for ${sdkdir}/dri.h... " >&6; }
12284if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
12285  $as_echo_n "(cached) " >&6
12286else
12287  test "$cross_compiling" = yes &&
12288  as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
12289if test -r "${sdkdir}/dri.h"; then
12290  eval "$as_ac_File=yes"
12291else
12292  eval "$as_ac_File=no"
12293fi
12294fi
12295eval ac_res=\$$as_ac_File
12296	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12297$as_echo "$ac_res" >&6; }
12298eval as_val=\$$as_ac_File
12299   if test "x$as_val" = x""yes; then :
12300  have_dri_h="yes"
12301else
12302  have_dri_h="no"
12303fi
12304
12305        as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh`
12306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/sarea.h" >&5
12307$as_echo_n "checking for ${sdkdir}/sarea.h... " >&6; }
12308if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
12309  $as_echo_n "(cached) " >&6
12310else
12311  test "$cross_compiling" = yes &&
12312  as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
12313if test -r "${sdkdir}/sarea.h"; then
12314  eval "$as_ac_File=yes"
12315else
12316  eval "$as_ac_File=no"
12317fi
12318fi
12319eval ac_res=\$$as_ac_File
12320	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12321$as_echo "$ac_res" >&6; }
12322eval as_val=\$$as_ac_File
12323   if test "x$as_val" = x""yes; then :
12324  have_sarea_h="yes"
12325else
12326  have_sarea_h="no"
12327fi
12328
12329        as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh`
12330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dristruct.h" >&5
12331$as_echo_n "checking for ${sdkdir}/dristruct.h... " >&6; }
12332if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
12333  $as_echo_n "(cached) " >&6
12334else
12335  test "$cross_compiling" = yes &&
12336  as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
12337if test -r "${sdkdir}/dristruct.h"; then
12338  eval "$as_ac_File=yes"
12339else
12340  eval "$as_ac_File=no"
12341fi
12342fi
12343eval ac_res=\$$as_ac_File
12344	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12345$as_echo "$ac_res" >&6; }
12346eval as_val=\$$as_ac_File
12347   if test "x$as_val" = x""yes; then :
12348  have_dristruct_h="yes"
12349else
12350  have_dristruct_h="no"
12351fi
12352
12353fi
12354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DRI support" >&5
12355$as_echo_n "checking whether to include DRI support... " >&6; }
12356if test x$DRI = xauto; then
12357        if test "$have_dri_h" = yes -a \
12358                "$have_sarea_h" = yes -a \
12359                "$have_dristruct_h" = yes; then
12360                DRI="yes"
12361        else
12362                DRI="no"
12363        fi
12364fi
12365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DRI" >&5
12366$as_echo "$DRI" >&6; }
12367CFLAGS="$save_CFLAGS $DEBUGFLAGS"
12368
12369
12370pkg_failed=no
12371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
12372$as_echo_n "checking for PCIACCESS... " >&6; }
12373
12374if test -n "$PKG_CONFIG"; then
12375    if test -n "$PCIACCESS_CFLAGS"; then
12376        pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
12377    else
12378        if test -n "$PKG_CONFIG" && \
12379    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\""; } >&5
12380  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5
12381  ac_status=$?
12382  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12383  test $ac_status = 0; }; then
12384  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.10" 2>/dev/null`
12385else
12386  pkg_failed=yes
12387fi
12388    fi
12389else
12390	pkg_failed=untried
12391fi
12392if test -n "$PKG_CONFIG"; then
12393    if test -n "$PCIACCESS_LIBS"; then
12394        pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
12395    else
12396        if test -n "$PKG_CONFIG" && \
12397    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\""; } >&5
12398  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5
12399  ac_status=$?
12400  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12401  test $ac_status = 0; }; then
12402  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.10" 2>/dev/null`
12403else
12404  pkg_failed=yes
12405fi
12406    fi
12407else
12408	pkg_failed=untried
12409fi
12410
12411
12412
12413if test $pkg_failed = yes; then
12414
12415if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12416        _pkg_short_errors_supported=yes
12417else
12418        _pkg_short_errors_supported=no
12419fi
12420        if test $_pkg_short_errors_supported = yes; then
12421	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pciaccess >= 0.10"`
12422        else
12423	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pciaccess >= 0.10"`
12424        fi
12425	# Put the nasty error message in config.log where it belongs
12426	echo "$PCIACCESS_PKG_ERRORS" >&5
12427
12428	as_fn_error "Package requirements (pciaccess >= 0.10) were not met:
12429
12430$PCIACCESS_PKG_ERRORS
12431
12432Consider adjusting the PKG_CONFIG_PATH environment variable if you
12433installed software in a non-standard prefix.
12434
12435Alternatively, you may set the environment variables PCIACCESS_CFLAGS
12436and PCIACCESS_LIBS to avoid the need to call pkg-config.
12437See the pkg-config man page for more details.
12438" "$LINENO" 5
12439elif test $pkg_failed = untried; then
12440	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12441$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12442as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
12443is in your PATH or set the PKG_CONFIG environment variable to the full
12444path to pkg-config.
12445
12446Alternatively, you may set the environment variables PCIACCESS_CFLAGS
12447and PCIACCESS_LIBS to avoid the need to call pkg-config.
12448See the pkg-config man page for more details.
12449
12450To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12451See \`config.log' for more details." "$LINENO" 5; }
12452else
12453	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
12454	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
12455        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12456$as_echo "yes" >&6; }
12457	:
12458fi
12459
12460
12461WARN_CFLAGS=""
12462
12463if test "x$GCC" = "xyes"; then
12464	WARN_CFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes \
12465	-Wmissing-prototypes -Wmissing-declarations \
12466	-Wnested-externs -fno-strict-aliasing"
12467fi
12468
12469
12470pkg_failed=no
12471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRM" >&5
12472$as_echo_n "checking for DRM... " >&6; }
12473
12474if test -n "$PKG_CONFIG"; then
12475    if test -n "$DRM_CFLAGS"; then
12476        pkg_cv_DRM_CFLAGS="$DRM_CFLAGS"
12477    else
12478        if test -n "$PKG_CONFIG" && \
12479    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.11\""; } >&5
12480  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.11") 2>&5
12481  ac_status=$?
12482  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12483  test $ac_status = 0; }; then
12484  pkg_cv_DRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.4.11" 2>/dev/null`
12485else
12486  pkg_failed=yes
12487fi
12488    fi
12489else
12490	pkg_failed=untried
12491fi
12492if test -n "$PKG_CONFIG"; then
12493    if test -n "$DRM_LIBS"; then
12494        pkg_cv_DRM_LIBS="$DRM_LIBS"
12495    else
12496        if test -n "$PKG_CONFIG" && \
12497    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.11\""; } >&5
12498  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.11") 2>&5
12499  ac_status=$?
12500  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12501  test $ac_status = 0; }; then
12502  pkg_cv_DRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.4.11" 2>/dev/null`
12503else
12504  pkg_failed=yes
12505fi
12506    fi
12507else
12508	pkg_failed=untried
12509fi
12510
12511
12512
12513if test $pkg_failed = yes; then
12514
12515if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12516        _pkg_short_errors_supported=yes
12517else
12518        _pkg_short_errors_supported=no
12519fi
12520        if test $_pkg_short_errors_supported = yes; then
12521	        DRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libdrm >= 2.4.11"`
12522        else
12523	        DRM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libdrm >= 2.4.11"`
12524        fi
12525	# Put the nasty error message in config.log where it belongs
12526	echo "$DRM_PKG_ERRORS" >&5
12527
12528	as_fn_error "Package requirements (libdrm >= 2.4.11) were not met:
12529
12530$DRM_PKG_ERRORS
12531
12532Consider adjusting the PKG_CONFIG_PATH environment variable if you
12533installed software in a non-standard prefix.
12534
12535Alternatively, you may set the environment variables DRM_CFLAGS
12536and DRM_LIBS to avoid the need to call pkg-config.
12537See the pkg-config man page for more details.
12538" "$LINENO" 5
12539elif test $pkg_failed = untried; then
12540	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12541$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12542as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
12543is in your PATH or set the PKG_CONFIG environment variable to the full
12544path to pkg-config.
12545
12546Alternatively, you may set the environment variables DRM_CFLAGS
12547and DRM_LIBS to avoid the need to call pkg-config.
12548See the pkg-config man page for more details.
12549
12550To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12551See \`config.log' for more details." "$LINENO" 5; }
12552else
12553	DRM_CFLAGS=$pkg_cv_DRM_CFLAGS
12554	DRM_LIBS=$pkg_cv_DRM_LIBS
12555        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12556$as_echo "yes" >&6; }
12557	:
12558fi
12559 if test x$DRI = xyes; then
12560  DRI_TRUE=
12561  DRI_FALSE='#'
12562else
12563  DRI_TRUE='#'
12564  DRI_FALSE=
12565fi
12566
12567if test "$DRI" = yes; then
12568
12569pkg_failed=no
12570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI" >&5
12571$as_echo_n "checking for DRI... " >&6; }
12572
12573if test -n "$PKG_CONFIG"; then
12574    if test -n "$DRI_CFLAGS"; then
12575        pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
12576    else
12577        if test -n "$PKG_CONFIG" && \
12578    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86driproto glproto\""; } >&5
12579  ($PKG_CONFIG --exists --print-errors "xf86driproto glproto") 2>&5
12580  ac_status=$?
12581  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12582  test $ac_status = 0; }; then
12583  pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "xf86driproto glproto" 2>/dev/null`
12584else
12585  pkg_failed=yes
12586fi
12587    fi
12588else
12589	pkg_failed=untried
12590fi
12591if test -n "$PKG_CONFIG"; then
12592    if test -n "$DRI_LIBS"; then
12593        pkg_cv_DRI_LIBS="$DRI_LIBS"
12594    else
12595        if test -n "$PKG_CONFIG" && \
12596    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86driproto glproto\""; } >&5
12597  ($PKG_CONFIG --exists --print-errors "xf86driproto glproto") 2>&5
12598  ac_status=$?
12599  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12600  test $ac_status = 0; }; then
12601  pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "xf86driproto glproto" 2>/dev/null`
12602else
12603  pkg_failed=yes
12604fi
12605    fi
12606else
12607	pkg_failed=untried
12608fi
12609
12610
12611
12612if test $pkg_failed = yes; then
12613
12614if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12615        _pkg_short_errors_supported=yes
12616else
12617        _pkg_short_errors_supported=no
12618fi
12619        if test $_pkg_short_errors_supported = yes; then
12620	        DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xf86driproto glproto"`
12621        else
12622	        DRI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xf86driproto glproto"`
12623        fi
12624	# Put the nasty error message in config.log where it belongs
12625	echo "$DRI_PKG_ERRORS" >&5
12626
12627	as_fn_error "Package requirements (xf86driproto glproto) were not met:
12628
12629$DRI_PKG_ERRORS
12630
12631Consider adjusting the PKG_CONFIG_PATH environment variable if you
12632installed software in a non-standard prefix.
12633
12634Alternatively, you may set the environment variables DRI_CFLAGS
12635and DRI_LIBS to avoid the need to call pkg-config.
12636See the pkg-config man page for more details.
12637" "$LINENO" 5
12638elif test $pkg_failed = untried; then
12639	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12640$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12641as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
12642is in your PATH or set the PKG_CONFIG environment variable to the full
12643path to pkg-config.
12644
12645Alternatively, you may set the environment variables DRI_CFLAGS
12646and DRI_LIBS to avoid the need to call pkg-config.
12647See the pkg-config man page for more details.
12648
12649To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12650See \`config.log' for more details." "$LINENO" 5; }
12651else
12652	DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
12653	DRI_LIBS=$pkg_cv_DRI_LIBS
12654        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12655$as_echo "yes" >&6; }
12656	:
12657fi
12658
12659$as_echo "#define XF86DRI 1" >>confdefs.h
12660
12661
12662$as_echo "#define XF86DRI_DEVEL 1" >>confdefs.h
12663
12664fi
12665
12666 if test x$VIDEO_DEBUG = xyes; then
12667  VIDEO_DEBUG_TRUE=
12668  VIDEO_DEBUG_FALSE='#'
12669else
12670  VIDEO_DEBUG_TRUE='#'
12671  VIDEO_DEBUG_FALSE=
12672fi
12673
12674if test "$VIDEO_DEBUG" = yes; then
12675
12676$as_echo "#define VIDEO_DEBUG 1" >>confdefs.h
12677
12678fi
12679
12680if test "$XVMC" = yes; then
12681
12682pkg_failed=no
12683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XVMCLIB" >&5
12684$as_echo_n "checking for XVMCLIB... " >&6; }
12685
12686if test -n "$PKG_CONFIG"; then
12687    if test -n "$XVMCLIB_CFLAGS"; then
12688        pkg_cv_XVMCLIB_CFLAGS="$XVMCLIB_CFLAGS"
12689    else
12690        if test -n "$PKG_CONFIG" && \
12691    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xvmc xext xfixes dri2proto\""; } >&5
12692  ($PKG_CONFIG --exists --print-errors "xvmc xext xfixes dri2proto") 2>&5
12693  ac_status=$?
12694  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12695  test $ac_status = 0; }; then
12696  pkg_cv_XVMCLIB_CFLAGS=`$PKG_CONFIG --cflags "xvmc xext xfixes dri2proto" 2>/dev/null`
12697else
12698  pkg_failed=yes
12699fi
12700    fi
12701else
12702	pkg_failed=untried
12703fi
12704if test -n "$PKG_CONFIG"; then
12705    if test -n "$XVMCLIB_LIBS"; then
12706        pkg_cv_XVMCLIB_LIBS="$XVMCLIB_LIBS"
12707    else
12708        if test -n "$PKG_CONFIG" && \
12709    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xvmc xext xfixes dri2proto\""; } >&5
12710  ($PKG_CONFIG --exists --print-errors "xvmc xext xfixes dri2proto") 2>&5
12711  ac_status=$?
12712  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12713  test $ac_status = 0; }; then
12714  pkg_cv_XVMCLIB_LIBS=`$PKG_CONFIG --libs "xvmc xext xfixes dri2proto" 2>/dev/null`
12715else
12716  pkg_failed=yes
12717fi
12718    fi
12719else
12720	pkg_failed=untried
12721fi
12722
12723
12724
12725if test $pkg_failed = yes; then
12726
12727if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12728        _pkg_short_errors_supported=yes
12729else
12730        _pkg_short_errors_supported=no
12731fi
12732        if test $_pkg_short_errors_supported = yes; then
12733	        XVMCLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xvmc xext xfixes dri2proto"`
12734        else
12735	        XVMCLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xvmc xext xfixes dri2proto"`
12736        fi
12737	# Put the nasty error message in config.log where it belongs
12738	echo "$XVMCLIB_PKG_ERRORS" >&5
12739
12740	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12741$as_echo "no" >&6; }
12742                XVMC=no
12743elif test $pkg_failed = untried; then
12744	XVMC=no
12745else
12746	XVMCLIB_CFLAGS=$pkg_cv_XVMCLIB_CFLAGS
12747	XVMCLIB_LIBS=$pkg_cv_XVMCLIB_LIBS
12748        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12749$as_echo "yes" >&6; }
12750	XVMC=yes
12751fi
12752fi
12753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XvMC support" >&5
12754$as_echo_n "checking whether to include XvMC support... " >&6; }
12755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XVMC" >&5
12756$as_echo "$XVMC" >&6; }
12757 if test x$XVMC = xyes; then
12758  XVMC_TRUE=
12759  XVMC_FALSE='#'
12760else
12761  XVMC_TRUE='#'
12762  XVMC_FALSE=
12763fi
12764
12765if test "$XVMC" = yes; then
12766
12767$as_echo "#define ENABLE_XVMC 1" >>confdefs.h
12768
12769
12770fi
12771
12772 if test x$KMS_ONLY = xyes; then
12773  KMS_ONLY_TRUE=
12774  KMS_ONLY_FALSE='#'
12775else
12776  KMS_ONLY_TRUE='#'
12777  KMS_ONLY_FALSE=
12778fi
12779
12780if test "$KMS_ONLY" = yes; then
12781
12782$as_echo "#define KMS_ONLY 1" >>confdefs.h
12783
12784fi
12785
12786
12787
12788
12789
12790
12791DRIVER_NAME=intel
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808if test x$APP_MAN_SUFFIX = x    ; then
12809    APP_MAN_SUFFIX=1
12810fi
12811if test x$APP_MAN_DIR = x    ; then
12812    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
12813fi
12814
12815if test x$LIB_MAN_SUFFIX = x    ; then
12816    LIB_MAN_SUFFIX=3
12817fi
12818if test x$LIB_MAN_DIR = x    ; then
12819    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
12820fi
12821
12822if test x$FILE_MAN_SUFFIX = x    ; then
12823    case $host_os in
12824	solaris*)	FILE_MAN_SUFFIX=4  ;;
12825	*)		FILE_MAN_SUFFIX=5  ;;
12826    esac
12827fi
12828if test x$FILE_MAN_DIR = x    ; then
12829    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
12830fi
12831
12832if test x$MISC_MAN_SUFFIX = x    ; then
12833    case $host_os in
12834	solaris*)	MISC_MAN_SUFFIX=5  ;;
12835	*)		MISC_MAN_SUFFIX=7  ;;
12836    esac
12837fi
12838if test x$MISC_MAN_DIR = x    ; then
12839    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
12840fi
12841
12842if test x$DRIVER_MAN_SUFFIX = x    ; then
12843    case $host_os in
12844	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
12845	*)		DRIVER_MAN_SUFFIX=4  ;;
12846    esac
12847fi
12848if test x$DRIVER_MAN_DIR = x    ; then
12849    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
12850fi
12851
12852if test x$ADMIN_MAN_SUFFIX = x    ; then
12853    case $host_os in
12854	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
12855	*)		ADMIN_MAN_SUFFIX=8  ;;
12856    esac
12857fi
12858if test x$ADMIN_MAN_DIR = x    ; then
12859    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
12860fi
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878# Check whether --with-release-version was given.
12879if test "${with_release_version+set}" = set; then :
12880  withval=$with_release_version; RELEASE_VERSION="$withval"
12881else
12882  RELEASE_VERSION=""
12883fi
12884
12885	if test "x$RELEASE_VERSION" != "x"; then
12886		PACKAGE="$PACKAGE-$RELEASE_VERSION"
12887		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
12888		{ $as_echo "$as_me:${as_lineno-$LINENO}: Building with package name set to $PACKAGE" >&5
12889$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
12890	fi
12891
12892cat >>confdefs.h <<_ACEOF
12893#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
12894_ACEOF
12895
12896	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
12897	if test "x$PVM" = "x"; then
12898		PVM="0"
12899	fi
12900
12901cat >>confdefs.h <<_ACEOF
12902#define PACKAGE_VERSION_MINOR $PVM
12903_ACEOF
12904
12905	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
12906	if test "x$PVP" = "x"; then
12907		PVP="0"
12908	fi
12909
12910cat >>confdefs.h <<_ACEOF
12911#define PACKAGE_VERSION_PATCHLEVEL $PVP
12912_ACEOF
12913
12914
12915
12916
12917if test x$XORG_SGML_PATH = x ; then
12918    XORG_SGML_PATH=$prefix/share/sgml
12919fi
12920HAVE_DEFS_ENT=
12921
12922if test x"$cross_compiling" = x"yes" ; then
12923  HAVE_DEFS_ENT=no
12924else
12925  as_ac_File=`$as_echo "ac_cv_file_$XORG_SGML_PATH/X11/defs.ent" | $as_tr_sh`
12926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $XORG_SGML_PATH/X11/defs.ent" >&5
12927$as_echo_n "checking for $XORG_SGML_PATH/X11/defs.ent... " >&6; }
12928if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
12929  $as_echo_n "(cached) " >&6
12930else
12931  test "$cross_compiling" = yes &&
12932  as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
12933if test -r "$XORG_SGML_PATH/X11/defs.ent"; then
12934  eval "$as_ac_File=yes"
12935else
12936  eval "$as_ac_File=no"
12937fi
12938fi
12939eval ac_res=\$$as_ac_File
12940	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12941$as_echo "$ac_res" >&6; }
12942eval as_val=\$$as_ac_File
12943   if test "x$as_val" = x""yes; then :
12944  HAVE_DEFS_ENT=yes
12945fi
12946
12947fi
12948
12949# Extract the first word of "linuxdoc", so it can be a program name with args.
12950set dummy linuxdoc; ac_word=$2
12951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12952$as_echo_n "checking for $ac_word... " >&6; }
12953if test "${ac_cv_path_LINUXDOC+set}" = set; then :
12954  $as_echo_n "(cached) " >&6
12955else
12956  case $LINUXDOC in
12957  [\\/]* | ?:[\\/]*)
12958  ac_cv_path_LINUXDOC="$LINUXDOC" # Let the user override the test with a path.
12959  ;;
12960  *)
12961  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12962for as_dir in $PATH
12963do
12964  IFS=$as_save_IFS
12965  test -z "$as_dir" && as_dir=.
12966    for ac_exec_ext in '' $ac_executable_extensions; do
12967  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12968    ac_cv_path_LINUXDOC="$as_dir/$ac_word$ac_exec_ext"
12969    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12970    break 2
12971  fi
12972done
12973  done
12974IFS=$as_save_IFS
12975
12976  ;;
12977esac
12978fi
12979LINUXDOC=$ac_cv_path_LINUXDOC
12980if test -n "$LINUXDOC"; then
12981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUXDOC" >&5
12982$as_echo "$LINUXDOC" >&6; }
12983else
12984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12985$as_echo "no" >&6; }
12986fi
12987
12988
12989# Extract the first word of "ps2pdf", so it can be a program name with args.
12990set dummy ps2pdf; ac_word=$2
12991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12992$as_echo_n "checking for $ac_word... " >&6; }
12993if test "${ac_cv_path_PS2PDF+set}" = set; then :
12994  $as_echo_n "(cached) " >&6
12995else
12996  case $PS2PDF in
12997  [\\/]* | ?:[\\/]*)
12998  ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path.
12999  ;;
13000  *)
13001  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13002for as_dir in $PATH
13003do
13004  IFS=$as_save_IFS
13005  test -z "$as_dir" && as_dir=.
13006    for ac_exec_ext in '' $ac_executable_extensions; do
13007  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13008    ac_cv_path_PS2PDF="$as_dir/$ac_word$ac_exec_ext"
13009    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13010    break 2
13011  fi
13012done
13013  done
13014IFS=$as_save_IFS
13015
13016  ;;
13017esac
13018fi
13019PS2PDF=$ac_cv_path_PS2PDF
13020if test -n "$PS2PDF"; then
13021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS2PDF" >&5
13022$as_echo "$PS2PDF" >&6; }
13023else
13024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13025$as_echo "no" >&6; }
13026fi
13027
13028
13029
13030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Whether to build documentation" >&5
13031$as_echo_n "checking Whether to build documentation... " >&6; }
13032
13033if test x$HAVE_DEFS_ENT != x && test x$LINUXDOC != x ; then
13034   BUILDDOC=yes
13035else
13036   BUILDDOC=no
13037fi
13038
13039 if test x$BUILDDOC = xyes; then
13040  BUILD_LINUXDOC_TRUE=
13041  BUILD_LINUXDOC_FALSE='#'
13042else
13043  BUILD_LINUXDOC_TRUE='#'
13044  BUILD_LINUXDOC_FALSE=
13045fi
13046
13047
13048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILDDOC" >&5
13049$as_echo "$BUILDDOC" >&6; }
13050
13051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Whether to build pdf documentation" >&5
13052$as_echo_n "checking Whether to build pdf documentation... " >&6; }
13053
13054if test x$PS2PDF != x && test x$BUILD_PDFDOC != xno; then
13055   BUILDPDFDOC=yes
13056else
13057   BUILDPDFDOC=no
13058fi
13059
13060 if test x$BUILDPDFDOC = xyes; then
13061  BUILD_PDFDOC_TRUE=
13062  BUILD_PDFDOC_FALSE='#'
13063else
13064  BUILD_PDFDOC_TRUE='#'
13065  BUILD_PDFDOC_FALSE=
13066fi
13067
13068
13069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILDPDFDOC" >&5
13070$as_echo "$BUILDPDFDOC" >&6; }
13071
13072MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH GROFF_NO_SGR=y $LINUXDOC -B txt"
13073MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B latex --papersize=letter --output=ps"
13074MAKE_PDF="$PS2PDF"
13075MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC  -B html --split=0"
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085  # Check whether --enable-shave was given.
13086if test "${enable_shave+set}" = set; then :
13087  enableval=$enable_shave;
13088else
13089  enable_shave=yes
13090
13091fi
13092
13093
13094
13095  if test x"$enable_shave" = xyes; then
13096        shavedir="$ac_pwd/."
13097
13098
13099        MAKEFLAGS=-s
13100
13101    AM_MAKEFLAGS='`test -z $V && echo -s`'
13102
13103
13104        # Extract the first word of "sed", so it can be a program name with args.
13105set dummy sed; ac_word=$2
13106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13107$as_echo_n "checking for $ac_word... " >&6; }
13108if test "${ac_cv_prog_SED+set}" = set; then :
13109  $as_echo_n "(cached) " >&6
13110else
13111  if test -n "$SED"; then
13112  ac_cv_prog_SED="$SED" # Let the user override the test.
13113else
13114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13115for as_dir in $PATH
13116do
13117  IFS=$as_save_IFS
13118  test -z "$as_dir" && as_dir=.
13119    for ac_exec_ext in '' $ac_executable_extensions; do
13120  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13121    ac_cv_prog_SED="sed"
13122    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13123    break 2
13124  fi
13125done
13126  done
13127IFS=$as_save_IFS
13128
13129  test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="false"
13130fi
13131fi
13132SED=$ac_cv_prog_SED
13133if test -n "$SED"; then
13134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
13135$as_echo "$SED" >&6; }
13136else
13137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13138$as_echo "no" >&6; }
13139fi
13140
13141
13142
13143        SHAVE_SAVED_LIBTOOL=$LIBTOOL
13144    LIBTOOL="${SHELL} ${shavedir}/shave-libtool '${SHAVE_SAVED_LIBTOOL}'"
13145
13146
13147        SHAVE_SAVED_CC=$CC
13148    SHAVE_SAVED_CXX=$CXX
13149    SHAVE_SAVED_FC=$FC
13150    SHAVE_SAVED_F77=$F77
13151    CC="${SHELL} ${shavedir}/shave cc ${SHAVE_SAVED_CC}"
13152    CXX="${SHELL} ${shavedir}/shave cxx ${SHAVE_SAVED_CXX}"
13153    FC="${SHELL} ${shavedir}/shave fc ${SHAVE_SAVED_FC}"
13154    F77="${SHELL} ${shavedir}/shave f77 ${SHAVE_SAVED_F77}"
13155
13156
13157
13158
13159
13160    V=@
13161  else
13162    V=1
13163  fi
13164  Q='$(V:1=)'
13165
13166
13167
13168
13169ac_config_files="$ac_config_files Makefile uxa/Makefile src/Makefile src/xvmc/Makefile src/xvmc/shader/Makefile src/xvmc/shader/mc/Makefile src/xvmc/shader/vld/Makefile src/bios_reader/Makefile src/ch7017/Makefile src/ch7xxx/Makefile src/ivch/Makefile src/reg_dumper/Makefile src/sil164/Makefile src/tfp410/Makefile man/Makefile src/render_program/Makefile"
13170
13171cat >confcache <<\_ACEOF
13172# This file is a shell script that caches the results of configure
13173# tests run on this system so they can be shared between configure
13174# scripts and configure runs, see configure's option --config-cache.
13175# It is not useful on other systems.  If it contains results you don't
13176# want to keep, you may remove or edit it.
13177#
13178# config.status only pays attention to the cache file if you give it
13179# the --recheck option to rerun configure.
13180#
13181# `ac_cv_env_foo' variables (set or unset) will be overridden when
13182# loading this file, other *unset* `ac_cv_foo' will be assigned the
13183# following values.
13184
13185_ACEOF
13186
13187# The following way of writing the cache mishandles newlines in values,
13188# but we know of no workaround that is simple, portable, and efficient.
13189# So, we kill variables containing newlines.
13190# Ultrix sh set writes to stderr and can't be redirected directly,
13191# and sets the high bit in the cache file unless we assign to the vars.
13192(
13193  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13194    eval ac_val=\$$ac_var
13195    case $ac_val in #(
13196    *${as_nl}*)
13197      case $ac_var in #(
13198      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13199$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13200      esac
13201      case $ac_var in #(
13202      _ | IFS | as_nl) ;; #(
13203      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13204      *) { eval $ac_var=; unset $ac_var;} ;;
13205      esac ;;
13206    esac
13207  done
13208
13209  (set) 2>&1 |
13210    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13211    *${as_nl}ac_space=\ *)
13212      # `set' does not quote correctly, so add quotes: double-quote
13213      # substitution turns \\\\ into \\, and sed turns \\ into \.
13214      sed -n \
13215	"s/'/'\\\\''/g;
13216	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13217      ;; #(
13218    *)
13219      # `set' quotes correctly as required by POSIX, so do not add quotes.
13220      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13221      ;;
13222    esac |
13223    sort
13224) |
13225  sed '
13226     /^ac_cv_env_/b end
13227     t clear
13228     :clear
13229     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13230     t end
13231     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13232     :end' >>confcache
13233if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13234  if test -w "$cache_file"; then
13235    test "x$cache_file" != "x/dev/null" &&
13236      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13237$as_echo "$as_me: updating cache $cache_file" >&6;}
13238    cat confcache >$cache_file
13239  else
13240    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13241$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13242  fi
13243fi
13244rm -f confcache
13245
13246test "x$prefix" = xNONE && prefix=$ac_default_prefix
13247# Let make expand exec_prefix.
13248test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13249
13250DEFS=-DHAVE_CONFIG_H
13251
13252ac_libobjs=
13253ac_ltlibobjs=
13254for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13255  # 1. Remove the extension, and $U if already installed.
13256  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13257  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13258  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13259  #    will be set to the directory where LIBOBJS objects are built.
13260  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13261  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13262done
13263LIBOBJS=$ac_libobjs
13264
13265LTLIBOBJS=$ac_ltlibobjs
13266
13267
13268 if test -n "$EXEEXT"; then
13269  am__EXEEXT_TRUE=
13270  am__EXEEXT_FALSE='#'
13271else
13272  am__EXEEXT_TRUE='#'
13273  am__EXEEXT_FALSE=
13274fi
13275
13276if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13277  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13278Usually this means the macro was only invoked conditionally." "$LINENO" 5
13279fi
13280if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13281  as_fn_error "conditional \"AMDEP\" was never defined.
13282Usually this means the macro was only invoked conditionally." "$LINENO" 5
13283fi
13284if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13285  as_fn_error "conditional \"am__fastdepCC\" was never defined.
13286Usually this means the macro was only invoked conditionally." "$LINENO" 5
13287fi
13288if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13289  as_fn_error "conditional \"am__fastdepCC\" was never defined.
13290Usually this means the macro was only invoked conditionally." "$LINENO" 5
13291fi
13292if test -z "${HAVE_GEN4ASM_TRUE}" && test -z "${HAVE_GEN4ASM_FALSE}"; then
13293  as_fn_error "conditional \"HAVE_GEN4ASM\" was never defined.
13294Usually this means the macro was only invoked conditionally." "$LINENO" 5
13295fi
13296if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
13297  as_fn_error "conditional \"HAVE_XEXTPROTO_71\" was never defined.
13298Usually this means the macro was only invoked conditionally." "$LINENO" 5
13299fi
13300if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
13301  as_fn_error "conditional \"DRI\" was never defined.
13302Usually this means the macro was only invoked conditionally." "$LINENO" 5
13303fi
13304if test -z "${VIDEO_DEBUG_TRUE}" && test -z "${VIDEO_DEBUG_FALSE}"; then
13305  as_fn_error "conditional \"VIDEO_DEBUG\" was never defined.
13306Usually this means the macro was only invoked conditionally." "$LINENO" 5
13307fi
13308if test -z "${XVMC_TRUE}" && test -z "${XVMC_FALSE}"; then
13309  as_fn_error "conditional \"XVMC\" was never defined.
13310Usually this means the macro was only invoked conditionally." "$LINENO" 5
13311fi
13312if test -z "${KMS_ONLY_TRUE}" && test -z "${KMS_ONLY_FALSE}"; then
13313  as_fn_error "conditional \"KMS_ONLY\" was never defined.
13314Usually this means the macro was only invoked conditionally." "$LINENO" 5
13315fi
13316if test -z "${BUILD_LINUXDOC_TRUE}" && test -z "${BUILD_LINUXDOC_FALSE}"; then
13317  as_fn_error "conditional \"BUILD_LINUXDOC\" was never defined.
13318Usually this means the macro was only invoked conditionally." "$LINENO" 5
13319fi
13320if test -z "${BUILD_PDFDOC_TRUE}" && test -z "${BUILD_PDFDOC_FALSE}"; then
13321  as_fn_error "conditional \"BUILD_PDFDOC\" was never defined.
13322Usually this means the macro was only invoked conditionally." "$LINENO" 5
13323fi
13324
13325: ${CONFIG_STATUS=./config.status}
13326ac_write_fail=0
13327ac_clean_files_save=$ac_clean_files
13328ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13329{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13330$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13331as_write_fail=0
13332cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13333#! $SHELL
13334# Generated by $as_me.
13335# Run this file to recreate the current configuration.
13336# Compiler output produced by configure, useful for debugging
13337# configure, is in config.log if it exists.
13338
13339debug=false
13340ac_cs_recheck=false
13341ac_cs_silent=false
13342
13343SHELL=\${CONFIG_SHELL-$SHELL}
13344export SHELL
13345_ASEOF
13346cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13347## -------------------- ##
13348## M4sh Initialization. ##
13349## -------------------- ##
13350
13351# Be more Bourne compatible
13352DUALCASE=1; export DUALCASE # for MKS sh
13353if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13354  emulate sh
13355  NULLCMD=:
13356  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13357  # is contrary to our usage.  Disable this feature.
13358  alias -g '${1+"$@"}'='"$@"'
13359  setopt NO_GLOB_SUBST
13360else
13361  case `(set -o) 2>/dev/null` in #(
13362  *posix*) :
13363    set -o posix ;; #(
13364  *) :
13365     ;;
13366esac
13367fi
13368
13369
13370as_nl='
13371'
13372export as_nl
13373# Printing a long string crashes Solaris 7 /usr/bin/printf.
13374as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13375as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13376as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13377# Prefer a ksh shell builtin over an external printf program on Solaris,
13378# but without wasting forks for bash or zsh.
13379if test -z "$BASH_VERSION$ZSH_VERSION" \
13380    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13381  as_echo='print -r --'
13382  as_echo_n='print -rn --'
13383elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13384  as_echo='printf %s\n'
13385  as_echo_n='printf %s'
13386else
13387  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13388    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13389    as_echo_n='/usr/ucb/echo -n'
13390  else
13391    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13392    as_echo_n_body='eval
13393      arg=$1;
13394      case $arg in #(
13395      *"$as_nl"*)
13396	expr "X$arg" : "X\\(.*\\)$as_nl";
13397	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13398      esac;
13399      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13400    '
13401    export as_echo_n_body
13402    as_echo_n='sh -c $as_echo_n_body as_echo'
13403  fi
13404  export as_echo_body
13405  as_echo='sh -c $as_echo_body as_echo'
13406fi
13407
13408# The user is always right.
13409if test "${PATH_SEPARATOR+set}" != set; then
13410  PATH_SEPARATOR=:
13411  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13412    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13413      PATH_SEPARATOR=';'
13414  }
13415fi
13416
13417
13418# IFS
13419# We need space, tab and new line, in precisely that order.  Quoting is
13420# there to prevent editors from complaining about space-tab.
13421# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13422# splitting by setting IFS to empty value.)
13423IFS=" ""	$as_nl"
13424
13425# Find who we are.  Look in the path if we contain no directory separator.
13426case $0 in #((
13427  *[\\/]* ) as_myself=$0 ;;
13428  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13429for as_dir in $PATH
13430do
13431  IFS=$as_save_IFS
13432  test -z "$as_dir" && as_dir=.
13433    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13434  done
13435IFS=$as_save_IFS
13436
13437     ;;
13438esac
13439# We did not find ourselves, most probably we were run as `sh COMMAND'
13440# in which case we are not to be found in the path.
13441if test "x$as_myself" = x; then
13442  as_myself=$0
13443fi
13444if test ! -f "$as_myself"; then
13445  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13446  exit 1
13447fi
13448
13449# Unset variables that we do not need and which cause bugs (e.g. in
13450# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13451# suppresses any "Segmentation fault" message there.  '((' could
13452# trigger a bug in pdksh 5.2.14.
13453for as_var in BASH_ENV ENV MAIL MAILPATH
13454do eval test x\${$as_var+set} = xset \
13455  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13456done
13457PS1='$ '
13458PS2='> '
13459PS4='+ '
13460
13461# NLS nuisances.
13462LC_ALL=C
13463export LC_ALL
13464LANGUAGE=C
13465export LANGUAGE
13466
13467# CDPATH.
13468(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13469
13470
13471# as_fn_error ERROR [LINENO LOG_FD]
13472# ---------------------------------
13473# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13474# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13475# script with status $?, using 1 if that was 0.
13476as_fn_error ()
13477{
13478  as_status=$?; test $as_status -eq 0 && as_status=1
13479  if test "$3"; then
13480    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13481    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13482  fi
13483  $as_echo "$as_me: error: $1" >&2
13484  as_fn_exit $as_status
13485} # as_fn_error
13486
13487
13488# as_fn_set_status STATUS
13489# -----------------------
13490# Set $? to STATUS, without forking.
13491as_fn_set_status ()
13492{
13493  return $1
13494} # as_fn_set_status
13495
13496# as_fn_exit STATUS
13497# -----------------
13498# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13499as_fn_exit ()
13500{
13501  set +e
13502  as_fn_set_status $1
13503  exit $1
13504} # as_fn_exit
13505
13506# as_fn_unset VAR
13507# ---------------
13508# Portably unset VAR.
13509as_fn_unset ()
13510{
13511  { eval $1=; unset $1;}
13512}
13513as_unset=as_fn_unset
13514# as_fn_append VAR VALUE
13515# ----------------------
13516# Append the text in VALUE to the end of the definition contained in VAR. Take
13517# advantage of any shell optimizations that allow amortized linear growth over
13518# repeated appends, instead of the typical quadratic growth present in naive
13519# implementations.
13520if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13521  eval 'as_fn_append ()
13522  {
13523    eval $1+=\$2
13524  }'
13525else
13526  as_fn_append ()
13527  {
13528    eval $1=\$$1\$2
13529  }
13530fi # as_fn_append
13531
13532# as_fn_arith ARG...
13533# ------------------
13534# Perform arithmetic evaluation on the ARGs, and store the result in the
13535# global $as_val. Take advantage of shells that can avoid forks. The arguments
13536# must be portable across $(()) and expr.
13537if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13538  eval 'as_fn_arith ()
13539  {
13540    as_val=$(( $* ))
13541  }'
13542else
13543  as_fn_arith ()
13544  {
13545    as_val=`expr "$@" || test $? -eq 1`
13546  }
13547fi # as_fn_arith
13548
13549
13550if expr a : '\(a\)' >/dev/null 2>&1 &&
13551   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13552  as_expr=expr
13553else
13554  as_expr=false
13555fi
13556
13557if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13558  as_basename=basename
13559else
13560  as_basename=false
13561fi
13562
13563if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13564  as_dirname=dirname
13565else
13566  as_dirname=false
13567fi
13568
13569as_me=`$as_basename -- "$0" ||
13570$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13571	 X"$0" : 'X\(//\)$' \| \
13572	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13573$as_echo X/"$0" |
13574    sed '/^.*\/\([^/][^/]*\)\/*$/{
13575	    s//\1/
13576	    q
13577	  }
13578	  /^X\/\(\/\/\)$/{
13579	    s//\1/
13580	    q
13581	  }
13582	  /^X\/\(\/\).*/{
13583	    s//\1/
13584	    q
13585	  }
13586	  s/.*/./; q'`
13587
13588# Avoid depending upon Character Ranges.
13589as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13590as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13591as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13592as_cr_digits='0123456789'
13593as_cr_alnum=$as_cr_Letters$as_cr_digits
13594
13595ECHO_C= ECHO_N= ECHO_T=
13596case `echo -n x` in #(((((
13597-n*)
13598  case `echo 'xy\c'` in
13599  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13600  xy)  ECHO_C='\c';;
13601  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13602       ECHO_T='	';;
13603  esac;;
13604*)
13605  ECHO_N='-n';;
13606esac
13607
13608rm -f conf$$ conf$$.exe conf$$.file
13609if test -d conf$$.dir; then
13610  rm -f conf$$.dir/conf$$.file
13611else
13612  rm -f conf$$.dir
13613  mkdir conf$$.dir 2>/dev/null
13614fi
13615if (echo >conf$$.file) 2>/dev/null; then
13616  if ln -s conf$$.file conf$$ 2>/dev/null; then
13617    as_ln_s='ln -s'
13618    # ... but there are two gotchas:
13619    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13620    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13621    # In both cases, we have to default to `cp -p'.
13622    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13623      as_ln_s='cp -p'
13624  elif ln conf$$.file conf$$ 2>/dev/null; then
13625    as_ln_s=ln
13626  else
13627    as_ln_s='cp -p'
13628  fi
13629else
13630  as_ln_s='cp -p'
13631fi
13632rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13633rmdir conf$$.dir 2>/dev/null
13634
13635
13636# as_fn_mkdir_p
13637# -------------
13638# Create "$as_dir" as a directory, including parents if necessary.
13639as_fn_mkdir_p ()
13640{
13641
13642  case $as_dir in #(
13643  -*) as_dir=./$as_dir;;
13644  esac
13645  test -d "$as_dir" || eval $as_mkdir_p || {
13646    as_dirs=
13647    while :; do
13648      case $as_dir in #(
13649      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13650      *) as_qdir=$as_dir;;
13651      esac
13652      as_dirs="'$as_qdir' $as_dirs"
13653      as_dir=`$as_dirname -- "$as_dir" ||
13654$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13655	 X"$as_dir" : 'X\(//\)[^/]' \| \
13656	 X"$as_dir" : 'X\(//\)$' \| \
13657	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13658$as_echo X"$as_dir" |
13659    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13660	    s//\1/
13661	    q
13662	  }
13663	  /^X\(\/\/\)[^/].*/{
13664	    s//\1/
13665	    q
13666	  }
13667	  /^X\(\/\/\)$/{
13668	    s//\1/
13669	    q
13670	  }
13671	  /^X\(\/\).*/{
13672	    s//\1/
13673	    q
13674	  }
13675	  s/.*/./; q'`
13676      test -d "$as_dir" && break
13677    done
13678    test -z "$as_dirs" || eval "mkdir $as_dirs"
13679  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13680
13681
13682} # as_fn_mkdir_p
13683if mkdir -p . 2>/dev/null; then
13684  as_mkdir_p='mkdir -p "$as_dir"'
13685else
13686  test -d ./-p && rmdir ./-p
13687  as_mkdir_p=false
13688fi
13689
13690if test -x / >/dev/null 2>&1; then
13691  as_test_x='test -x'
13692else
13693  if ls -dL / >/dev/null 2>&1; then
13694    as_ls_L_option=L
13695  else
13696    as_ls_L_option=
13697  fi
13698  as_test_x='
13699    eval sh -c '\''
13700      if test -d "$1"; then
13701	test -d "$1/.";
13702      else
13703	case $1 in #(
13704	-*)set "./$1";;
13705	esac;
13706	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13707	???[sx]*):;;*)false;;esac;fi
13708    '\'' sh
13709  '
13710fi
13711as_executable_p=$as_test_x
13712
13713# Sed expression to map a string onto a valid CPP name.
13714as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13715
13716# Sed expression to map a string onto a valid variable name.
13717as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13718
13719
13720exec 6>&1
13721## ----------------------------------- ##
13722## Main body of $CONFIG_STATUS script. ##
13723## ----------------------------------- ##
13724_ASEOF
13725test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13726
13727cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13728# Save the log message, to keep $0 and so on meaningful, and to
13729# report actual input values of CONFIG_FILES etc. instead of their
13730# values after options handling.
13731ac_log="
13732This file was extended by xf86-video-intel $as_me 2.9.1, which was
13733generated by GNU Autoconf 2.64.  Invocation command line was
13734
13735  CONFIG_FILES    = $CONFIG_FILES
13736  CONFIG_HEADERS  = $CONFIG_HEADERS
13737  CONFIG_LINKS    = $CONFIG_LINKS
13738  CONFIG_COMMANDS = $CONFIG_COMMANDS
13739  $ $0 $@
13740
13741on `(hostname || uname -n) 2>/dev/null | sed 1q`
13742"
13743
13744_ACEOF
13745
13746case $ac_config_files in *"
13747"*) set x $ac_config_files; shift; ac_config_files=$*;;
13748esac
13749
13750case $ac_config_headers in *"
13751"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13752esac
13753
13754
13755cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13756# Files that config.status was made for.
13757config_files="$ac_config_files"
13758config_headers="$ac_config_headers"
13759config_commands="$ac_config_commands"
13760
13761_ACEOF
13762
13763cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13764ac_cs_usage="\
13765\`$as_me' instantiates files and other configuration actions
13766from templates according to the current configuration.  Unless the files
13767and actions are specified as TAGs, all are instantiated by default.
13768
13769Usage: $0 [OPTION]... [TAG]...
13770
13771  -h, --help       print this help, then exit
13772  -V, --version    print version number and configuration settings, then exit
13773  -q, --quiet, --silent
13774                   do not print progress messages
13775  -d, --debug      don't remove temporary files
13776      --recheck    update $as_me by reconfiguring in the same conditions
13777      --file=FILE[:TEMPLATE]
13778                   instantiate the configuration file FILE
13779      --header=FILE[:TEMPLATE]
13780                   instantiate the configuration header FILE
13781
13782Configuration files:
13783$config_files
13784
13785Configuration headers:
13786$config_headers
13787
13788Configuration commands:
13789$config_commands
13790
13791Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
13792
13793_ACEOF
13794cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13795ac_cs_version="\\
13796xf86-video-intel config.status 2.9.1
13797configured by $0, generated by GNU Autoconf 2.64,
13798  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13799
13800Copyright (C) 2009 Free Software Foundation, Inc.
13801This config.status script is free software; the Free Software Foundation
13802gives unlimited permission to copy, distribute and modify it."
13803
13804ac_pwd='$ac_pwd'
13805srcdir='$srcdir'
13806INSTALL='$INSTALL'
13807MKDIR_P='$MKDIR_P'
13808AWK='$AWK'
13809test -n "\$AWK" || AWK=awk
13810_ACEOF
13811
13812cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13813# The default lists apply if the user does not specify any file.
13814ac_need_defaults=:
13815while test $# != 0
13816do
13817  case $1 in
13818  --*=*)
13819    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13820    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13821    ac_shift=:
13822    ;;
13823  *)
13824    ac_option=$1
13825    ac_optarg=$2
13826    ac_shift=shift
13827    ;;
13828  esac
13829
13830  case $ac_option in
13831  # Handling of the options.
13832  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13833    ac_cs_recheck=: ;;
13834  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13835    $as_echo "$ac_cs_version"; exit ;;
13836  --debug | --debu | --deb | --de | --d | -d )
13837    debug=: ;;
13838  --file | --fil | --fi | --f )
13839    $ac_shift
13840    case $ac_optarg in
13841    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13842    esac
13843    as_fn_append CONFIG_FILES " '$ac_optarg'"
13844    ac_need_defaults=false;;
13845  --header | --heade | --head | --hea )
13846    $ac_shift
13847    case $ac_optarg in
13848    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13849    esac
13850    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13851    ac_need_defaults=false;;
13852  --he | --h)
13853    # Conflict between --help and --header
13854    as_fn_error "ambiguous option: \`$1'
13855Try \`$0 --help' for more information.";;
13856  --help | --hel | -h )
13857    $as_echo "$ac_cs_usage"; exit ;;
13858  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13859  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13860    ac_cs_silent=: ;;
13861
13862  # This is an error.
13863  -*) as_fn_error "unrecognized option: \`$1'
13864Try \`$0 --help' for more information." ;;
13865
13866  *) as_fn_append ac_config_targets " $1"
13867     ac_need_defaults=false ;;
13868
13869  esac
13870  shift
13871done
13872
13873ac_configure_extra_args=
13874
13875if $ac_cs_silent; then
13876  exec 6>/dev/null
13877  ac_configure_extra_args="$ac_configure_extra_args --silent"
13878fi
13879
13880_ACEOF
13881cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13882if \$ac_cs_recheck; then
13883  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13884  shift
13885  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13886  CONFIG_SHELL='$SHELL'
13887  export CONFIG_SHELL
13888  exec "\$@"
13889fi
13890
13891_ACEOF
13892cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13893exec 5>>config.log
13894{
13895  echo
13896  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13897## Running $as_me. ##
13898_ASBOX
13899  $as_echo "$ac_log"
13900} >&5
13901
13902_ACEOF
13903cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13904#
13905# INIT-COMMANDS
13906#
13907AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13908
13909
13910# The HP-UX ksh and POSIX shell print the target directory to stdout
13911# if CDPATH is set.
13912(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13913
13914sed_quote_subst='$sed_quote_subst'
13915double_quote_subst='$double_quote_subst'
13916delay_variable_subst='$delay_variable_subst'
13917enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13918macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13919macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13920enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13921pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13922enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13923host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13924host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13925host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13926build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13927build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13928build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13929SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13930Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13931GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13932EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13933FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13934LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13935NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13936LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13937max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13938ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13939exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13940lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13941lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13942lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13943reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13944reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13945OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13946deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13947file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13948AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13949AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13950STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13951RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13952old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13953old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13954old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13955CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13956CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13957compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13958GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13959lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13960lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13961lt_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"`'
13962lt_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"`'
13963objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13964SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13965ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13966MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13967lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13968lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13969lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13970lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13971lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13972need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13973DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13974NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13975LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13976OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13977OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13978libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13979shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13980extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13981archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13982enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13983export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13984whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13985compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13986old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13987old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13988archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13989archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13990module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13991module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13992with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13993allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13994no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13995hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13996hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13997hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13998hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13999hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14000hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14001hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14002hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14003inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14004link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14005fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14006always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14007export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14008exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14009include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14010prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14011file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14012variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14013need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14014need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14015version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14016runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14017shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14018shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14019libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14020library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14021soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14022postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14023postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14024finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14025finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14026hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14027sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14028sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14029hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14030enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14031enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14032enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14033old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14034striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14035
14036LTCC='$LTCC'
14037LTCFLAGS='$LTCFLAGS'
14038compiler='$compiler_DEFAULT'
14039
14040# Quote evaled strings.
14041for var in SED \
14042GREP \
14043EGREP \
14044FGREP \
14045LD \
14046NM \
14047LN_S \
14048lt_SP2NL \
14049lt_NL2SP \
14050reload_flag \
14051OBJDUMP \
14052deplibs_check_method \
14053file_magic_cmd \
14054AR \
14055AR_FLAGS \
14056STRIP \
14057RANLIB \
14058CC \
14059CFLAGS \
14060compiler \
14061lt_cv_sys_global_symbol_pipe \
14062lt_cv_sys_global_symbol_to_cdecl \
14063lt_cv_sys_global_symbol_to_c_name_address \
14064lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14065SHELL \
14066ECHO \
14067lt_prog_compiler_no_builtin_flag \
14068lt_prog_compiler_wl \
14069lt_prog_compiler_pic \
14070lt_prog_compiler_static \
14071lt_cv_prog_compiler_c_o \
14072need_locks \
14073DSYMUTIL \
14074NMEDIT \
14075LIPO \
14076OTOOL \
14077OTOOL64 \
14078shrext_cmds \
14079export_dynamic_flag_spec \
14080whole_archive_flag_spec \
14081compiler_needs_object \
14082with_gnu_ld \
14083allow_undefined_flag \
14084no_undefined_flag \
14085hardcode_libdir_flag_spec \
14086hardcode_libdir_flag_spec_ld \
14087hardcode_libdir_separator \
14088fix_srcfile_path \
14089exclude_expsyms \
14090include_expsyms \
14091file_list_spec \
14092variables_saved_for_relink \
14093libname_spec \
14094library_names_spec \
14095soname_spec \
14096finish_eval \
14097old_striplib \
14098striplib; do
14099    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14100    *[\\\\\\\`\\"\\\$]*)
14101      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14102      ;;
14103    *)
14104      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14105      ;;
14106    esac
14107done
14108
14109# Double-quote double-evaled strings.
14110for var in reload_cmds \
14111old_postinstall_cmds \
14112old_postuninstall_cmds \
14113old_archive_cmds \
14114extract_expsyms_cmds \
14115old_archive_from_new_cmds \
14116old_archive_from_expsyms_cmds \
14117archive_cmds \
14118archive_expsym_cmds \
14119module_cmds \
14120module_expsym_cmds \
14121export_symbols_cmds \
14122prelink_cmds \
14123postinstall_cmds \
14124postuninstall_cmds \
14125finish_cmds \
14126sys_lib_search_path_spec \
14127sys_lib_dlsearch_path_spec; do
14128    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14129    *[\\\\\\\`\\"\\\$]*)
14130      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14131      ;;
14132    *)
14133      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14134      ;;
14135    esac
14136done
14137
14138# Fix-up fallback echo if it was mangled by the above quoting rules.
14139case \$lt_ECHO in
14140*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14141  ;;
14142esac
14143
14144ac_aux_dir='$ac_aux_dir'
14145xsi_shell='$xsi_shell'
14146lt_shell_append='$lt_shell_append'
14147
14148# See if we are running on zsh, and set the options which allow our
14149# commands through without removal of \ escapes INIT.
14150if test -n "\${ZSH_VERSION+set}" ; then
14151   setopt NO_GLOB_SUBST
14152fi
14153
14154
14155    PACKAGE='$PACKAGE'
14156    VERSION='$VERSION'
14157    TIMESTAMP='$TIMESTAMP'
14158    RM='$RM'
14159    ofile='$ofile'
14160
14161
14162
14163
14164_ACEOF
14165
14166cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14167
14168# Handling of arguments.
14169for ac_config_target in $ac_config_targets
14170do
14171  case $ac_config_target in
14172    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14173    "shave") CONFIG_FILES="$CONFIG_FILES shave" ;;
14174    "shave-libtool") CONFIG_FILES="$CONFIG_FILES shave-libtool" ;;
14175    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14176    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14177    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14178    "uxa/Makefile") CONFIG_FILES="$CONFIG_FILES uxa/Makefile" ;;
14179    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14180    "src/xvmc/Makefile") CONFIG_FILES="$CONFIG_FILES src/xvmc/Makefile" ;;
14181    "src/xvmc/shader/Makefile") CONFIG_FILES="$CONFIG_FILES src/xvmc/shader/Makefile" ;;
14182    "src/xvmc/shader/mc/Makefile") CONFIG_FILES="$CONFIG_FILES src/xvmc/shader/mc/Makefile" ;;
14183    "src/xvmc/shader/vld/Makefile") CONFIG_FILES="$CONFIG_FILES src/xvmc/shader/vld/Makefile" ;;
14184    "src/bios_reader/Makefile") CONFIG_FILES="$CONFIG_FILES src/bios_reader/Makefile" ;;
14185    "src/ch7017/Makefile") CONFIG_FILES="$CONFIG_FILES src/ch7017/Makefile" ;;
14186    "src/ch7xxx/Makefile") CONFIG_FILES="$CONFIG_FILES src/ch7xxx/Makefile" ;;
14187    "src/ivch/Makefile") CONFIG_FILES="$CONFIG_FILES src/ivch/Makefile" ;;
14188    "src/reg_dumper/Makefile") CONFIG_FILES="$CONFIG_FILES src/reg_dumper/Makefile" ;;
14189    "src/sil164/Makefile") CONFIG_FILES="$CONFIG_FILES src/sil164/Makefile" ;;
14190    "src/tfp410/Makefile") CONFIG_FILES="$CONFIG_FILES src/tfp410/Makefile" ;;
14191    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
14192    "src/render_program/Makefile") CONFIG_FILES="$CONFIG_FILES src/render_program/Makefile" ;;
14193
14194  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14195  esac
14196done
14197
14198
14199# If the user did not use the arguments to specify the items to instantiate,
14200# then the envvar interface is used.  Set only those that are not.
14201# We use the long form for the default assignment because of an extremely
14202# bizarre bug on SunOS 4.1.3.
14203if $ac_need_defaults; then
14204  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14205  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14206  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14207fi
14208
14209# Have a temporary directory for convenience.  Make it in the build tree
14210# simply because there is no reason against having it here, and in addition,
14211# creating and moving files from /tmp can sometimes cause problems.
14212# Hook for its removal unless debugging.
14213# Note that there is a small window in which the directory will not be cleaned:
14214# after its creation but before its name has been assigned to `$tmp'.
14215$debug ||
14216{
14217  tmp=
14218  trap 'exit_status=$?
14219  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14220' 0
14221  trap 'as_fn_exit 1' 1 2 13 15
14222}
14223# Create a (secure) tmp directory for tmp files.
14224
14225{
14226  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14227  test -n "$tmp" && test -d "$tmp"
14228}  ||
14229{
14230  tmp=./conf$$-$RANDOM
14231  (umask 077 && mkdir "$tmp")
14232} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14233
14234# Set up the scripts for CONFIG_FILES section.
14235# No need to generate them if there are no CONFIG_FILES.
14236# This happens for instance with `./config.status config.h'.
14237if test -n "$CONFIG_FILES"; then
14238
14239
14240ac_cr=`echo X | tr X '\015'`
14241# On cygwin, bash can eat \r inside `` if the user requested igncr.
14242# But we know of no other shell where ac_cr would be empty at this
14243# point, so we can use a bashism as a fallback.
14244if test "x$ac_cr" = x; then
14245  eval ac_cr=\$\'\\r\'
14246fi
14247ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14248if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14249  ac_cs_awk_cr='\r'
14250else
14251  ac_cs_awk_cr=$ac_cr
14252fi
14253
14254echo 'BEGIN {' >"$tmp/subs1.awk" &&
14255_ACEOF
14256
14257
14258{
14259  echo "cat >conf$$subs.awk <<_ACEOF" &&
14260  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14261  echo "_ACEOF"
14262} >conf$$subs.sh ||
14263  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14264ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14265ac_delim='%!_!# '
14266for ac_last_try in false false false false false :; do
14267  . ./conf$$subs.sh ||
14268    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14269
14270  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14271  if test $ac_delim_n = $ac_delim_num; then
14272    break
14273  elif $ac_last_try; then
14274    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14275  else
14276    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14277  fi
14278done
14279rm -f conf$$subs.sh
14280
14281cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14282cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14283_ACEOF
14284sed -n '
14285h
14286s/^/S["/; s/!.*/"]=/
14287p
14288g
14289s/^[^!]*!//
14290:repl
14291t repl
14292s/'"$ac_delim"'$//
14293t delim
14294:nl
14295h
14296s/\(.\{148\}\).*/\1/
14297t more1
14298s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14299p
14300n
14301b repl
14302:more1
14303s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14304p
14305g
14306s/.\{148\}//
14307t nl
14308:delim
14309h
14310s/\(.\{148\}\).*/\1/
14311t more2
14312s/["\\]/\\&/g; s/^/"/; s/$/"/
14313p
14314b
14315:more2
14316s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14317p
14318g
14319s/.\{148\}//
14320t delim
14321' <conf$$subs.awk | sed '
14322/^[^""]/{
14323  N
14324  s/\n//
14325}
14326' >>$CONFIG_STATUS || ac_write_fail=1
14327rm -f conf$$subs.awk
14328cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14329_ACAWK
14330cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14331  for (key in S) S_is_set[key] = 1
14332  FS = ""
14333
14334}
14335{
14336  line = $ 0
14337  nfields = split(line, field, "@")
14338  substed = 0
14339  len = length(field[1])
14340  for (i = 2; i < nfields; i++) {
14341    key = field[i]
14342    keylen = length(key)
14343    if (S_is_set[key]) {
14344      value = S[key]
14345      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14346      len += length(value) + length(field[++i])
14347      substed = 1
14348    } else
14349      len += 1 + keylen
14350  }
14351
14352  print line
14353}
14354
14355_ACAWK
14356_ACEOF
14357cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14358if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14359  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14360else
14361  cat
14362fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14363  || as_fn_error "could not setup config files machinery" "$LINENO" 5
14364_ACEOF
14365
14366# VPATH may cause trouble with some makes, so we remove $(srcdir),
14367# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14368# trailing colons and then remove the whole line if VPATH becomes empty
14369# (actually we leave an empty line to preserve line numbers).
14370if test "x$srcdir" = x.; then
14371  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
14372s/:*\$(srcdir):*/:/
14373s/:*\${srcdir}:*/:/
14374s/:*@srcdir@:*/:/
14375s/^\([^=]*=[	 ]*\):*/\1/
14376s/:*$//
14377s/^[^=]*=[	 ]*$//
14378}'
14379fi
14380
14381cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14382fi # test -n "$CONFIG_FILES"
14383
14384# Set up the scripts for CONFIG_HEADERS section.
14385# No need to generate them if there are no CONFIG_HEADERS.
14386# This happens for instance with `./config.status Makefile'.
14387if test -n "$CONFIG_HEADERS"; then
14388cat >"$tmp/defines.awk" <<\_ACAWK ||
14389BEGIN {
14390_ACEOF
14391
14392# Transform confdefs.h into an awk script `defines.awk', embedded as
14393# here-document in config.status, that substitutes the proper values into
14394# config.h.in to produce config.h.
14395
14396# Create a delimiter string that does not exist in confdefs.h, to ease
14397# handling of long lines.
14398ac_delim='%!_!# '
14399for ac_last_try in false false :; do
14400  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14401  if test -z "$ac_t"; then
14402    break
14403  elif $ac_last_try; then
14404    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14405  else
14406    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14407  fi
14408done
14409
14410# For the awk script, D is an array of macro values keyed by name,
14411# likewise P contains macro parameters if any.  Preserve backslash
14412# newline sequences.
14413
14414ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14415sed -n '
14416s/.\{148\}/&'"$ac_delim"'/g
14417t rset
14418:rset
14419s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
14420t def
14421d
14422:def
14423s/\\$//
14424t bsnl
14425s/["\\]/\\&/g
14426s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14427D["\1"]=" \3"/p
14428s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
14429d
14430:bsnl
14431s/["\\]/\\&/g
14432s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14433D["\1"]=" \3\\\\\\n"\\/p
14434t cont
14435s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14436t cont
14437d
14438:cont
14439n
14440s/.\{148\}/&'"$ac_delim"'/g
14441t clear
14442:clear
14443s/\\$//
14444t bsnlc
14445s/["\\]/\\&/g; s/^/"/; s/$/"/p
14446d
14447:bsnlc
14448s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14449b cont
14450' <confdefs.h | sed '
14451s/'"$ac_delim"'/"\\\
14452"/g' >>$CONFIG_STATUS || ac_write_fail=1
14453
14454cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14455  for (key in D) D_is_set[key] = 1
14456  FS = ""
14457}
14458/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14459  line = \$ 0
14460  split(line, arg, " ")
14461  if (arg[1] == "#") {
14462    defundef = arg[2]
14463    mac1 = arg[3]
14464  } else {
14465    defundef = substr(arg[1], 2)
14466    mac1 = arg[2]
14467  }
14468  split(mac1, mac2, "(") #)
14469  macro = mac2[1]
14470  prefix = substr(line, 1, index(line, defundef) - 1)
14471  if (D_is_set[macro]) {
14472    # Preserve the white space surrounding the "#".
14473    print prefix "define", macro P[macro] D[macro]
14474    next
14475  } else {
14476    # Replace #undef with comments.  This is necessary, for example,
14477    # in the case of _POSIX_SOURCE, which is predefined and required
14478    # on some systems where configure will not decide to define it.
14479    if (defundef == "undef") {
14480      print "/*", prefix defundef, macro, "*/"
14481      next
14482    }
14483  }
14484}
14485{ print }
14486_ACAWK
14487_ACEOF
14488cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14489  as_fn_error "could not setup config headers machinery" "$LINENO" 5
14490fi # test -n "$CONFIG_HEADERS"
14491
14492
14493eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14494shift
14495for ac_tag
14496do
14497  case $ac_tag in
14498  :[FHLC]) ac_mode=$ac_tag; continue;;
14499  esac
14500  case $ac_mode$ac_tag in
14501  :[FHL]*:*);;
14502  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14503  :[FH]-) ac_tag=-:-;;
14504  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14505  esac
14506  ac_save_IFS=$IFS
14507  IFS=:
14508  set x $ac_tag
14509  IFS=$ac_save_IFS
14510  shift
14511  ac_file=$1
14512  shift
14513
14514  case $ac_mode in
14515  :L) ac_source=$1;;
14516  :[FH])
14517    ac_file_inputs=
14518    for ac_f
14519    do
14520      case $ac_f in
14521      -) ac_f="$tmp/stdin";;
14522      *) # Look for the file first in the build tree, then in the source tree
14523	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14524	 # because $ac_f cannot contain `:'.
14525	 test -f "$ac_f" ||
14526	   case $ac_f in
14527	   [\\/$]*) false;;
14528	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14529	   esac ||
14530	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14531      esac
14532      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14533      as_fn_append ac_file_inputs " '$ac_f'"
14534    done
14535
14536    # Let's still pretend it is `configure' which instantiates (i.e., don't
14537    # use $as_me), people would be surprised to read:
14538    #    /* config.h.  Generated by config.status.  */
14539    configure_input='Generated from '`
14540	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14541	`' by configure.'
14542    if test x"$ac_file" != x-; then
14543      configure_input="$ac_file.  $configure_input"
14544      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14545$as_echo "$as_me: creating $ac_file" >&6;}
14546    fi
14547    # Neutralize special characters interpreted by sed in replacement strings.
14548    case $configure_input in #(
14549    *\&* | *\|* | *\\* )
14550       ac_sed_conf_input=`$as_echo "$configure_input" |
14551       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14552    *) ac_sed_conf_input=$configure_input;;
14553    esac
14554
14555    case $ac_tag in
14556    *:-:* | *:-) cat >"$tmp/stdin" \
14557      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14558    esac
14559    ;;
14560  esac
14561
14562  ac_dir=`$as_dirname -- "$ac_file" ||
14563$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14564	 X"$ac_file" : 'X\(//\)[^/]' \| \
14565	 X"$ac_file" : 'X\(//\)$' \| \
14566	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14567$as_echo X"$ac_file" |
14568    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14569	    s//\1/
14570	    q
14571	  }
14572	  /^X\(\/\/\)[^/].*/{
14573	    s//\1/
14574	    q
14575	  }
14576	  /^X\(\/\/\)$/{
14577	    s//\1/
14578	    q
14579	  }
14580	  /^X\(\/\).*/{
14581	    s//\1/
14582	    q
14583	  }
14584	  s/.*/./; q'`
14585  as_dir="$ac_dir"; as_fn_mkdir_p
14586  ac_builddir=.
14587
14588case "$ac_dir" in
14589.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14590*)
14591  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14592  # A ".." for each directory in $ac_dir_suffix.
14593  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14594  case $ac_top_builddir_sub in
14595  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14596  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14597  esac ;;
14598esac
14599ac_abs_top_builddir=$ac_pwd
14600ac_abs_builddir=$ac_pwd$ac_dir_suffix
14601# for backward compatibility:
14602ac_top_builddir=$ac_top_build_prefix
14603
14604case $srcdir in
14605  .)  # We are building in place.
14606    ac_srcdir=.
14607    ac_top_srcdir=$ac_top_builddir_sub
14608    ac_abs_top_srcdir=$ac_pwd ;;
14609  [\\/]* | ?:[\\/]* )  # Absolute name.
14610    ac_srcdir=$srcdir$ac_dir_suffix;
14611    ac_top_srcdir=$srcdir
14612    ac_abs_top_srcdir=$srcdir ;;
14613  *) # Relative name.
14614    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14615    ac_top_srcdir=$ac_top_build_prefix$srcdir
14616    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14617esac
14618ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14619
14620
14621  case $ac_mode in
14622  :F)
14623  #
14624  # CONFIG_FILE
14625  #
14626
14627  case $INSTALL in
14628  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14629  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14630  esac
14631  ac_MKDIR_P=$MKDIR_P
14632  case $MKDIR_P in
14633  [\\/$]* | ?:[\\/]* ) ;;
14634  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14635  esac
14636_ACEOF
14637
14638cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14639# If the template does not know about datarootdir, expand it.
14640# FIXME: This hack should be removed a few years after 2.60.
14641ac_datarootdir_hack=; ac_datarootdir_seen=
14642ac_sed_dataroot='
14643/datarootdir/ {
14644  p
14645  q
14646}
14647/@datadir@/p
14648/@docdir@/p
14649/@infodir@/p
14650/@localedir@/p
14651/@mandir@/p'
14652case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14653*datarootdir*) ac_datarootdir_seen=yes;;
14654*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14655  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14656$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14657_ACEOF
14658cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14659  ac_datarootdir_hack='
14660  s&@datadir@&$datadir&g
14661  s&@docdir@&$docdir&g
14662  s&@infodir@&$infodir&g
14663  s&@localedir@&$localedir&g
14664  s&@mandir@&$mandir&g
14665  s&\\\${datarootdir}&$datarootdir&g' ;;
14666esac
14667_ACEOF
14668
14669# Neutralize VPATH when `$srcdir' = `.'.
14670# Shell code in configure.ac might set extrasub.
14671# FIXME: do we really want to maintain this feature?
14672cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14673ac_sed_extra="$ac_vpsub
14674$extrasub
14675_ACEOF
14676cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14677:t
14678/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14679s|@configure_input@|$ac_sed_conf_input|;t t
14680s&@top_builddir@&$ac_top_builddir_sub&;t t
14681s&@top_build_prefix@&$ac_top_build_prefix&;t t
14682s&@srcdir@&$ac_srcdir&;t t
14683s&@abs_srcdir@&$ac_abs_srcdir&;t t
14684s&@top_srcdir@&$ac_top_srcdir&;t t
14685s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14686s&@builddir@&$ac_builddir&;t t
14687s&@abs_builddir@&$ac_abs_builddir&;t t
14688s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14689s&@INSTALL@&$ac_INSTALL&;t t
14690s&@MKDIR_P@&$ac_MKDIR_P&;t t
14691$ac_datarootdir_hack
14692"
14693eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14694  || as_fn_error "could not create $ac_file" "$LINENO" 5
14695
14696test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14697  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14698  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14699  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14700which seems to be undefined.  Please make sure it is defined." >&5
14701$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14702which seems to be undefined.  Please make sure it is defined." >&2;}
14703
14704  rm -f "$tmp/stdin"
14705  case $ac_file in
14706  -) cat "$tmp/out" && rm -f "$tmp/out";;
14707  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14708  esac \
14709  || as_fn_error "could not create $ac_file" "$LINENO" 5
14710 ;;
14711  :H)
14712  #
14713  # CONFIG_HEADER
14714  #
14715  if test x"$ac_file" != x-; then
14716    {
14717      $as_echo "/* $configure_input  */" \
14718      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14719    } >"$tmp/config.h" \
14720      || as_fn_error "could not create $ac_file" "$LINENO" 5
14721    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14722      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14723$as_echo "$as_me: $ac_file is unchanged" >&6;}
14724    else
14725      rm -f "$ac_file"
14726      mv "$tmp/config.h" "$ac_file" \
14727	|| as_fn_error "could not create $ac_file" "$LINENO" 5
14728    fi
14729  else
14730    $as_echo "/* $configure_input  */" \
14731      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14732      || as_fn_error "could not create -" "$LINENO" 5
14733  fi
14734# Compute "$ac_file"'s index in $config_headers.
14735_am_arg="$ac_file"
14736_am_stamp_count=1
14737for _am_header in $config_headers :; do
14738  case $_am_header in
14739    $_am_arg | $_am_arg:* )
14740      break ;;
14741    * )
14742      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14743  esac
14744done
14745echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14746$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14747	 X"$_am_arg" : 'X\(//\)[^/]' \| \
14748	 X"$_am_arg" : 'X\(//\)$' \| \
14749	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14750$as_echo X"$_am_arg" |
14751    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14752	    s//\1/
14753	    q
14754	  }
14755	  /^X\(\/\/\)[^/].*/{
14756	    s//\1/
14757	    q
14758	  }
14759	  /^X\(\/\/\)$/{
14760	    s//\1/
14761	    q
14762	  }
14763	  /^X\(\/\).*/{
14764	    s//\1/
14765	    q
14766	  }
14767	  s/.*/./; q'`/stamp-h$_am_stamp_count
14768 ;;
14769
14770  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14771$as_echo "$as_me: executing $ac_file commands" >&6;}
14772 ;;
14773  esac
14774
14775
14776  case $ac_file$ac_mode in
14777    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14778  # Autoconf 2.62 quotes --file arguments for eval, but not when files
14779  # are listed without --file.  Let's play safe and only enable the eval
14780  # if we detect the quoting.
14781  case $CONFIG_FILES in
14782  *\'*) eval set x "$CONFIG_FILES" ;;
14783  *)   set x $CONFIG_FILES ;;
14784  esac
14785  shift
14786  for mf
14787  do
14788    # Strip MF so we end up with the name of the file.
14789    mf=`echo "$mf" | sed -e 's/:.*$//'`
14790    # Check whether this is an Automake generated Makefile or not.
14791    # We used to match only the files named `Makefile.in', but
14792    # some people rename them; so instead we look at the file content.
14793    # Grep'ing the first line is not enough: some people post-process
14794    # each Makefile.in and add a new line on top of each file to say so.
14795    # Grep'ing the whole file is not good either: AIX grep has a line
14796    # limit of 2048, but all sed's we know have understand at least 4000.
14797    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14798      dirpart=`$as_dirname -- "$mf" ||
14799$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14800	 X"$mf" : 'X\(//\)[^/]' \| \
14801	 X"$mf" : 'X\(//\)$' \| \
14802	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14803$as_echo X"$mf" |
14804    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14805	    s//\1/
14806	    q
14807	  }
14808	  /^X\(\/\/\)[^/].*/{
14809	    s//\1/
14810	    q
14811	  }
14812	  /^X\(\/\/\)$/{
14813	    s//\1/
14814	    q
14815	  }
14816	  /^X\(\/\).*/{
14817	    s//\1/
14818	    q
14819	  }
14820	  s/.*/./; q'`
14821    else
14822      continue
14823    fi
14824    # Extract the definition of DEPDIR, am__include, and am__quote
14825    # from the Makefile without running `make'.
14826    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14827    test -z "$DEPDIR" && continue
14828    am__include=`sed -n 's/^am__include = //p' < "$mf"`
14829    test -z "am__include" && continue
14830    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14831    # When using ansi2knr, U may be empty or an underscore; expand it
14832    U=`sed -n 's/^U = //p' < "$mf"`
14833    # Find all dependency output files, they are included files with
14834    # $(DEPDIR) in their names.  We invoke sed twice because it is the
14835    # simplest approach to changing $(DEPDIR) to its actual value in the
14836    # expansion.
14837    for file in `sed -n "
14838      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14839	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14840      # Make sure the directory exists.
14841      test -f "$dirpart/$file" && continue
14842      fdir=`$as_dirname -- "$file" ||
14843$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14844	 X"$file" : 'X\(//\)[^/]' \| \
14845	 X"$file" : 'X\(//\)$' \| \
14846	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14847$as_echo X"$file" |
14848    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14849	    s//\1/
14850	    q
14851	  }
14852	  /^X\(\/\/\)[^/].*/{
14853	    s//\1/
14854	    q
14855	  }
14856	  /^X\(\/\/\)$/{
14857	    s//\1/
14858	    q
14859	  }
14860	  /^X\(\/\).*/{
14861	    s//\1/
14862	    q
14863	  }
14864	  s/.*/./; q'`
14865      as_dir=$dirpart/$fdir; as_fn_mkdir_p
14866      # echo "creating $dirpart/$file"
14867      echo '# dummy' > "$dirpart/$file"
14868    done
14869  done
14870}
14871 ;;
14872    "libtool":C)
14873
14874    # See if we are running on zsh, and set the options which allow our
14875    # commands through without removal of \ escapes.
14876    if test -n "${ZSH_VERSION+set}" ; then
14877      setopt NO_GLOB_SUBST
14878    fi
14879
14880    cfgfile="${ofile}T"
14881    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14882    $RM "$cfgfile"
14883
14884    cat <<_LT_EOF >> "$cfgfile"
14885#! $SHELL
14886
14887# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14888# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14889# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14890# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14891#
14892#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14893#                 2006, 2007, 2008 Free Software Foundation, Inc.
14894#   Written by Gordon Matzigkeit, 1996
14895#
14896#   This file is part of GNU Libtool.
14897#
14898# GNU Libtool is free software; you can redistribute it and/or
14899# modify it under the terms of the GNU General Public License as
14900# published by the Free Software Foundation; either version 2 of
14901# the License, or (at your option) any later version.
14902#
14903# As a special exception to the GNU General Public License,
14904# if you distribute this file as part of a program or library that
14905# is built using GNU Libtool, you may include this file under the
14906# same distribution terms that you use for the rest of that program.
14907#
14908# GNU Libtool is distributed in the hope that it will be useful,
14909# but WITHOUT ANY WARRANTY; without even the implied warranty of
14910# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14911# GNU General Public License for more details.
14912#
14913# You should have received a copy of the GNU General Public License
14914# along with GNU Libtool; see the file COPYING.  If not, a copy
14915# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14916# obtained by writing to the Free Software Foundation, Inc.,
14917# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14918
14919
14920# The names of the tagged configurations supported by this script.
14921available_tags=""
14922
14923# ### BEGIN LIBTOOL CONFIG
14924
14925# Whether or not to build static libraries.
14926build_old_libs=$enable_static
14927
14928# Which release of libtool.m4 was used?
14929macro_version=$macro_version
14930macro_revision=$macro_revision
14931
14932# Whether or not to build shared libraries.
14933build_libtool_libs=$enable_shared
14934
14935# What type of objects to build.
14936pic_mode=$pic_mode
14937
14938# Whether or not to optimize for fast installation.
14939fast_install=$enable_fast_install
14940
14941# The host system.
14942host_alias=$host_alias
14943host=$host
14944host_os=$host_os
14945
14946# The build system.
14947build_alias=$build_alias
14948build=$build
14949build_os=$build_os
14950
14951# A sed program that does not truncate output.
14952SED=$lt_SED
14953
14954# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14955Xsed="\$SED -e 1s/^X//"
14956
14957# A grep program that handles long lines.
14958GREP=$lt_GREP
14959
14960# An ERE matcher.
14961EGREP=$lt_EGREP
14962
14963# A literal string matcher.
14964FGREP=$lt_FGREP
14965
14966# A BSD- or MS-compatible name lister.
14967NM=$lt_NM
14968
14969# Whether we need soft or hard links.
14970LN_S=$lt_LN_S
14971
14972# What is the maximum length of a command?
14973max_cmd_len=$max_cmd_len
14974
14975# Object file suffix (normally "o").
14976objext=$ac_objext
14977
14978# Executable file suffix (normally "").
14979exeext=$exeext
14980
14981# whether the shell understands "unset".
14982lt_unset=$lt_unset
14983
14984# turn spaces into newlines.
14985SP2NL=$lt_lt_SP2NL
14986
14987# turn newlines into spaces.
14988NL2SP=$lt_lt_NL2SP
14989
14990# How to create reloadable object files.
14991reload_flag=$lt_reload_flag
14992reload_cmds=$lt_reload_cmds
14993
14994# An object symbol dumper.
14995OBJDUMP=$lt_OBJDUMP
14996
14997# Method to check whether dependent libraries are shared objects.
14998deplibs_check_method=$lt_deplibs_check_method
14999
15000# Command to use when deplibs_check_method == "file_magic".
15001file_magic_cmd=$lt_file_magic_cmd
15002
15003# The archiver.
15004AR=$lt_AR
15005AR_FLAGS=$lt_AR_FLAGS
15006
15007# A symbol stripping program.
15008STRIP=$lt_STRIP
15009
15010# Commands used to install an old-style archive.
15011RANLIB=$lt_RANLIB
15012old_postinstall_cmds=$lt_old_postinstall_cmds
15013old_postuninstall_cmds=$lt_old_postuninstall_cmds
15014
15015# A C compiler.
15016LTCC=$lt_CC
15017
15018# LTCC compiler flags.
15019LTCFLAGS=$lt_CFLAGS
15020
15021# Take the output of nm and produce a listing of raw symbols and C names.
15022global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15023
15024# Transform the output of nm in a proper C declaration.
15025global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15026
15027# Transform the output of nm in a C name address pair.
15028global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15029
15030# Transform the output of nm in a C name address pair when lib prefix is needed.
15031global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15032
15033# The name of the directory that contains temporary libtool files.
15034objdir=$objdir
15035
15036# Shell to use when invoking shell scripts.
15037SHELL=$lt_SHELL
15038
15039# An echo program that does not interpret backslashes.
15040ECHO=$lt_ECHO
15041
15042# Used to examine libraries when file_magic_cmd begins with "file".
15043MAGIC_CMD=$MAGIC_CMD
15044
15045# Must we lock files when doing compilation?
15046need_locks=$lt_need_locks
15047
15048# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15049DSYMUTIL=$lt_DSYMUTIL
15050
15051# Tool to change global to local symbols on Mac OS X.
15052NMEDIT=$lt_NMEDIT
15053
15054# Tool to manipulate fat objects and archives on Mac OS X.
15055LIPO=$lt_LIPO
15056
15057# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15058OTOOL=$lt_OTOOL
15059
15060# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15061OTOOL64=$lt_OTOOL64
15062
15063# Old archive suffix (normally "a").
15064libext=$libext
15065
15066# Shared library suffix (normally ".so").
15067shrext_cmds=$lt_shrext_cmds
15068
15069# The commands to extract the exported symbol list from a shared archive.
15070extract_expsyms_cmds=$lt_extract_expsyms_cmds
15071
15072# Variables whose values should be saved in libtool wrapper scripts and
15073# restored at link time.
15074variables_saved_for_relink=$lt_variables_saved_for_relink
15075
15076# Do we need the "lib" prefix for modules?
15077need_lib_prefix=$need_lib_prefix
15078
15079# Do we need a version for libraries?
15080need_version=$need_version
15081
15082# Library versioning type.
15083version_type=$version_type
15084
15085# Shared library runtime path variable.
15086runpath_var=$runpath_var
15087
15088# Shared library path variable.
15089shlibpath_var=$shlibpath_var
15090
15091# Is shlibpath searched before the hard-coded library search path?
15092shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15093
15094# Format of library name prefix.
15095libname_spec=$lt_libname_spec
15096
15097# List of archive names.  First name is the real one, the rest are links.
15098# The last name is the one that the linker finds with -lNAME
15099library_names_spec=$lt_library_names_spec
15100
15101# The coded name of the library, if different from the real name.
15102soname_spec=$lt_soname_spec
15103
15104# Command to use after installation of a shared archive.
15105postinstall_cmds=$lt_postinstall_cmds
15106
15107# Command to use after uninstallation of a shared archive.
15108postuninstall_cmds=$lt_postuninstall_cmds
15109
15110# Commands used to finish a libtool library installation in a directory.
15111finish_cmds=$lt_finish_cmds
15112
15113# As "finish_cmds", except a single script fragment to be evaled but
15114# not shown.
15115finish_eval=$lt_finish_eval
15116
15117# Whether we should hardcode library paths into libraries.
15118hardcode_into_libs=$hardcode_into_libs
15119
15120# Compile-time system search path for libraries.
15121sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15122
15123# Run-time system search path for libraries.
15124sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15125
15126# Whether dlopen is supported.
15127dlopen_support=$enable_dlopen
15128
15129# Whether dlopen of programs is supported.
15130dlopen_self=$enable_dlopen_self
15131
15132# Whether dlopen of statically linked programs is supported.
15133dlopen_self_static=$enable_dlopen_self_static
15134
15135# Commands to strip libraries.
15136old_striplib=$lt_old_striplib
15137striplib=$lt_striplib
15138
15139
15140# The linker used to build libraries.
15141LD=$lt_LD
15142
15143# Commands used to build an old-style archive.
15144old_archive_cmds=$lt_old_archive_cmds
15145
15146# A language specific compiler.
15147CC=$lt_compiler
15148
15149# Is the compiler the GNU compiler?
15150with_gcc=$GCC
15151
15152# Compiler flag to turn off builtin functions.
15153no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15154
15155# How to pass a linker flag through the compiler.
15156wl=$lt_lt_prog_compiler_wl
15157
15158# Additional compiler flags for building library objects.
15159pic_flag=$lt_lt_prog_compiler_pic
15160
15161# Compiler flag to prevent dynamic linking.
15162link_static_flag=$lt_lt_prog_compiler_static
15163
15164# Does compiler simultaneously support -c and -o options?
15165compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15166
15167# Whether or not to add -lc for building shared libraries.
15168build_libtool_need_lc=$archive_cmds_need_lc
15169
15170# Whether or not to disallow shared libs when runtime libs are static.
15171allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15172
15173# Compiler flag to allow reflexive dlopens.
15174export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15175
15176# Compiler flag to generate shared objects directly from archives.
15177whole_archive_flag_spec=$lt_whole_archive_flag_spec
15178
15179# Whether the compiler copes with passing no objects directly.
15180compiler_needs_object=$lt_compiler_needs_object
15181
15182# Create an old-style archive from a shared archive.
15183old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15184
15185# Create a temporary old-style archive to link instead of a shared archive.
15186old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15187
15188# Commands used to build a shared archive.
15189archive_cmds=$lt_archive_cmds
15190archive_expsym_cmds=$lt_archive_expsym_cmds
15191
15192# Commands used to build a loadable module if different from building
15193# a shared archive.
15194module_cmds=$lt_module_cmds
15195module_expsym_cmds=$lt_module_expsym_cmds
15196
15197# Whether we are building with GNU ld or not.
15198with_gnu_ld=$lt_with_gnu_ld
15199
15200# Flag that allows shared libraries with undefined symbols to be built.
15201allow_undefined_flag=$lt_allow_undefined_flag
15202
15203# Flag that enforces no undefined symbols.
15204no_undefined_flag=$lt_no_undefined_flag
15205
15206# Flag to hardcode \$libdir into a binary during linking.
15207# This must work even if \$libdir does not exist
15208hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15209
15210# If ld is used when linking, flag to hardcode \$libdir into a binary
15211# during linking.  This must work even if \$libdir does not exist.
15212hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15213
15214# Whether we need a single "-rpath" flag with a separated argument.
15215hardcode_libdir_separator=$lt_hardcode_libdir_separator
15216
15217# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15218# DIR into the resulting binary.
15219hardcode_direct=$hardcode_direct
15220
15221# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15222# DIR into the resulting binary and the resulting library dependency is
15223# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15224# library is relocated.
15225hardcode_direct_absolute=$hardcode_direct_absolute
15226
15227# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15228# into the resulting binary.
15229hardcode_minus_L=$hardcode_minus_L
15230
15231# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15232# into the resulting binary.
15233hardcode_shlibpath_var=$hardcode_shlibpath_var
15234
15235# Set to "yes" if building a shared library automatically hardcodes DIR
15236# into the library and all subsequent libraries and executables linked
15237# against it.
15238hardcode_automatic=$hardcode_automatic
15239
15240# Set to yes if linker adds runtime paths of dependent libraries
15241# to runtime path list.
15242inherit_rpath=$inherit_rpath
15243
15244# Whether libtool must link a program against all its dependency libraries.
15245link_all_deplibs=$link_all_deplibs
15246
15247# Fix the shell variable \$srcfile for the compiler.
15248fix_srcfile_path=$lt_fix_srcfile_path
15249
15250# Set to "yes" if exported symbols are required.
15251always_export_symbols=$always_export_symbols
15252
15253# The commands to list exported symbols.
15254export_symbols_cmds=$lt_export_symbols_cmds
15255
15256# Symbols that should not be listed in the preloaded symbols.
15257exclude_expsyms=$lt_exclude_expsyms
15258
15259# Symbols that must always be exported.
15260include_expsyms=$lt_include_expsyms
15261
15262# Commands necessary for linking programs (against libraries) with templates.
15263prelink_cmds=$lt_prelink_cmds
15264
15265# Specify filename containing input files.
15266file_list_spec=$lt_file_list_spec
15267
15268# How to hardcode a shared library path into an executable.
15269hardcode_action=$hardcode_action
15270
15271# ### END LIBTOOL CONFIG
15272
15273_LT_EOF
15274
15275  case $host_os in
15276  aix3*)
15277    cat <<\_LT_EOF >> "$cfgfile"
15278# AIX sometimes has problems with the GCC collect2 program.  For some
15279# reason, if we set the COLLECT_NAMES environment variable, the problems
15280# vanish in a puff of smoke.
15281if test "X${COLLECT_NAMES+set}" != Xset; then
15282  COLLECT_NAMES=
15283  export COLLECT_NAMES
15284fi
15285_LT_EOF
15286    ;;
15287  esac
15288
15289
15290ltmain="$ac_aux_dir/ltmain.sh"
15291
15292
15293  # We use sed instead of cat because bash on DJGPP gets confused if
15294  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15295  # text mode, it properly converts lines to CR/LF.  This bash problem
15296  # is reportedly fixed, but why not run on old versions too?
15297  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15298    || (rm -f "$cfgfile"; exit 1)
15299
15300  case $xsi_shell in
15301  yes)
15302    cat << \_LT_EOF >> "$cfgfile"
15303
15304# func_dirname file append nondir_replacement
15305# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15306# otherwise set result to NONDIR_REPLACEMENT.
15307func_dirname ()
15308{
15309  case ${1} in
15310    */*) func_dirname_result="${1%/*}${2}" ;;
15311    *  ) func_dirname_result="${3}" ;;
15312  esac
15313}
15314
15315# func_basename file
15316func_basename ()
15317{
15318  func_basename_result="${1##*/}"
15319}
15320
15321# func_dirname_and_basename file append nondir_replacement
15322# perform func_basename and func_dirname in a single function
15323# call:
15324#   dirname:  Compute the dirname of FILE.  If nonempty,
15325#             add APPEND to the result, otherwise set result
15326#             to NONDIR_REPLACEMENT.
15327#             value returned in "$func_dirname_result"
15328#   basename: Compute filename of FILE.
15329#             value retuned in "$func_basename_result"
15330# Implementation must be kept synchronized with func_dirname
15331# and func_basename. For efficiency, we do not delegate to
15332# those functions but instead duplicate the functionality here.
15333func_dirname_and_basename ()
15334{
15335  case ${1} in
15336    */*) func_dirname_result="${1%/*}${2}" ;;
15337    *  ) func_dirname_result="${3}" ;;
15338  esac
15339  func_basename_result="${1##*/}"
15340}
15341
15342# func_stripname prefix suffix name
15343# strip PREFIX and SUFFIX off of NAME.
15344# PREFIX and SUFFIX must not contain globbing or regex special
15345# characters, hashes, percent signs, but SUFFIX may contain a leading
15346# dot (in which case that matches only a dot).
15347func_stripname ()
15348{
15349  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15350  # positional parameters, so assign one to ordinary parameter first.
15351  func_stripname_result=${3}
15352  func_stripname_result=${func_stripname_result#"${1}"}
15353  func_stripname_result=${func_stripname_result%"${2}"}
15354}
15355
15356# func_opt_split
15357func_opt_split ()
15358{
15359  func_opt_split_opt=${1%%=*}
15360  func_opt_split_arg=${1#*=}
15361}
15362
15363# func_lo2o object
15364func_lo2o ()
15365{
15366  case ${1} in
15367    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15368    *)    func_lo2o_result=${1} ;;
15369  esac
15370}
15371
15372# func_xform libobj-or-source
15373func_xform ()
15374{
15375  func_xform_result=${1%.*}.lo
15376}
15377
15378# func_arith arithmetic-term...
15379func_arith ()
15380{
15381  func_arith_result=$(( $* ))
15382}
15383
15384# func_len string
15385# STRING may not start with a hyphen.
15386func_len ()
15387{
15388  func_len_result=${#1}
15389}
15390
15391_LT_EOF
15392    ;;
15393  *) # Bourne compatible functions.
15394    cat << \_LT_EOF >> "$cfgfile"
15395
15396# func_dirname file append nondir_replacement
15397# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15398# otherwise set result to NONDIR_REPLACEMENT.
15399func_dirname ()
15400{
15401  # Extract subdirectory from the argument.
15402  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15403  if test "X$func_dirname_result" = "X${1}"; then
15404    func_dirname_result="${3}"
15405  else
15406    func_dirname_result="$func_dirname_result${2}"
15407  fi
15408}
15409
15410# func_basename file
15411func_basename ()
15412{
15413  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15414}
15415
15416
15417# func_stripname prefix suffix name
15418# strip PREFIX and SUFFIX off of NAME.
15419# PREFIX and SUFFIX must not contain globbing or regex special
15420# characters, hashes, percent signs, but SUFFIX may contain a leading
15421# dot (in which case that matches only a dot).
15422# func_strip_suffix prefix name
15423func_stripname ()
15424{
15425  case ${2} in
15426    .*) func_stripname_result=`$ECHO "X${3}" \
15427           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15428    *)  func_stripname_result=`$ECHO "X${3}" \
15429           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15430  esac
15431}
15432
15433# sed scripts:
15434my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15435my_sed_long_arg='1s/^-[^=]*=//'
15436
15437# func_opt_split
15438func_opt_split ()
15439{
15440  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15441  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15442}
15443
15444# func_lo2o object
15445func_lo2o ()
15446{
15447  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15448}
15449
15450# func_xform libobj-or-source
15451func_xform ()
15452{
15453  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15454}
15455
15456# func_arith arithmetic-term...
15457func_arith ()
15458{
15459  func_arith_result=`expr "$@"`
15460}
15461
15462# func_len string
15463# STRING may not start with a hyphen.
15464func_len ()
15465{
15466  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15467}
15468
15469_LT_EOF
15470esac
15471
15472case $lt_shell_append in
15473  yes)
15474    cat << \_LT_EOF >> "$cfgfile"
15475
15476# func_append var value
15477# Append VALUE to the end of shell variable VAR.
15478func_append ()
15479{
15480  eval "$1+=\$2"
15481}
15482_LT_EOF
15483    ;;
15484  *)
15485    cat << \_LT_EOF >> "$cfgfile"
15486
15487# func_append var value
15488# Append VALUE to the end of shell variable VAR.
15489func_append ()
15490{
15491  eval "$1=\$$1\$2"
15492}
15493
15494_LT_EOF
15495    ;;
15496  esac
15497
15498
15499  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15500    || (rm -f "$cfgfile"; exit 1)
15501
15502  mv -f "$cfgfile" "$ofile" ||
15503    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15504  chmod +x "$ofile"
15505
15506 ;;
15507
15508  esac
15509done # for ac_tag
15510
15511
15512as_fn_exit 0
15513_ACEOF
15514ac_clean_files=$ac_clean_files_save
15515
15516test $ac_write_fail = 0 ||
15517  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15518
15519
15520# configure is writing to config.log, and then calls config.status.
15521# config.status does its own redirection, appending to config.log.
15522# Unfortunately, on DOS this fails, as config.log is still kept open
15523# by configure, so config.status won't be able to write to it; its
15524# output is simply discarded.  So we exec the FD to /dev/null,
15525# effectively closing config.log, so it can be properly (re)opened and
15526# appended to by config.status.  When coming back to configure, we
15527# need to make the FD available again.
15528if test "$no_create" != yes; then
15529  ac_cs_success=:
15530  ac_config_status_args=
15531  test "$silent" = yes &&
15532    ac_config_status_args="$ac_config_status_args --quiet"
15533  exec 5>/dev/null
15534  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15535  exec 5>>config.log
15536  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15537  # would make configure fail if this is the last instruction.
15538  $ac_cs_success || as_fn_exit $?
15539fi
15540if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15541  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15542$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15543fi
15544
15545