1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for xf86-video-wsfb 0.4.0.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1
178
179  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183    PATH=/empty FPATH=/empty; export PATH FPATH
184    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186  if (eval "$as_required") 2>/dev/null; then :
187  as_have_required=yes
188else
189  as_have_required=no
190fi
191  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193else
194  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195as_found=false
196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197do
198  IFS=$as_save_IFS
199  test -z "$as_dir" && as_dir=.
200  as_found=:
201  case $as_dir in #(
202	 /*)
203	   for as_base in sh bash ksh sh5; do
204	     # Try only shells that exist, to save several forks.
205	     as_shell=$as_dir/$as_base
206	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208  CONFIG_SHELL=$as_shell as_have_required=yes
209		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210  break 2
211fi
212fi
213	   done;;
214       esac
215  as_found=false
216done
217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219  CONFIG_SHELL=$SHELL as_have_required=yes
220fi; }
221IFS=$as_save_IFS
222
223
224      if test "x$CONFIG_SHELL" != x; then :
225  # We cannot yet assume a decent shell, so we have to provide a
226	# neutralization value for shells without unset; and this also
227	# works around shells that cannot unset nonexistent variables.
228	# Preserve -v and -x to the replacement shell.
229	BASH_ENV=/dev/null
230	ENV=/dev/null
231	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232	export CONFIG_SHELL
233	case $- in # ((((
234	  *v*x* | *x*v* ) as_opts=-vx ;;
235	  *v* ) as_opts=-v ;;
236	  *x* ) as_opts=-x ;;
237	  * ) as_opts= ;;
238	esac
239	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240fi
241
242    if test x$as_have_required = xno; then :
243  $as_echo "$0: This script requires a shell more modern than all"
244  $as_echo "$0: the shells that I found on your system."
245  if test x${ZSH_VERSION+set} = xset ; then
246    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248  else
249    $as_echo "$0: Please tell bug-autoconf@gnu.org and
250$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
251$0: about your system, including any error possibly output
252$0: before this message. Then install a modern shell, or
253$0: manually run the script under such a shell if you do
254$0: have one."
255  fi
256  exit 1
257fi
258fi
259fi
260SHELL=${CONFIG_SHELL-/bin/sh}
261export SHELL
262# Unset more variables known to interfere with behavior of common tools.
263CLICOLOR_FORCE= GREP_OPTIONS=
264unset CLICOLOR_FORCE GREP_OPTIONS
265
266## --------------------- ##
267## M4sh Shell Functions. ##
268## --------------------- ##
269# as_fn_unset VAR
270# ---------------
271# Portably unset VAR.
272as_fn_unset ()
273{
274  { eval $1=; unset $1;}
275}
276as_unset=as_fn_unset
277
278# as_fn_set_status STATUS
279# -----------------------
280# Set $? to STATUS, without forking.
281as_fn_set_status ()
282{
283  return $1
284} # as_fn_set_status
285
286# as_fn_exit STATUS
287# -----------------
288# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289as_fn_exit ()
290{
291  set +e
292  as_fn_set_status $1
293  exit $1
294} # as_fn_exit
295
296# as_fn_mkdir_p
297# -------------
298# Create "$as_dir" as a directory, including parents if necessary.
299as_fn_mkdir_p ()
300{
301
302  case $as_dir in #(
303  -*) as_dir=./$as_dir;;
304  esac
305  test -d "$as_dir" || eval $as_mkdir_p || {
306    as_dirs=
307    while :; do
308      case $as_dir in #(
309      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310      *) as_qdir=$as_dir;;
311      esac
312      as_dirs="'$as_qdir' $as_dirs"
313      as_dir=`$as_dirname -- "$as_dir" ||
314$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315	 X"$as_dir" : 'X\(//\)[^/]' \| \
316	 X"$as_dir" : 'X\(//\)$' \| \
317	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318$as_echo X"$as_dir" |
319    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320	    s//\1/
321	    q
322	  }
323	  /^X\(\/\/\)[^/].*/{
324	    s//\1/
325	    q
326	  }
327	  /^X\(\/\/\)$/{
328	    s//\1/
329	    q
330	  }
331	  /^X\(\/\).*/{
332	    s//\1/
333	    q
334	  }
335	  s/.*/./; q'`
336      test -d "$as_dir" && break
337    done
338    test -z "$as_dirs" || eval "mkdir $as_dirs"
339  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340
341
342} # as_fn_mkdir_p
343# as_fn_append VAR VALUE
344# ----------------------
345# Append the text in VALUE to the end of the definition contained in VAR. Take
346# advantage of any shell optimizations that allow amortized linear growth over
347# repeated appends, instead of the typical quadratic growth present in naive
348# implementations.
349if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350  eval 'as_fn_append ()
351  {
352    eval $1+=\$2
353  }'
354else
355  as_fn_append ()
356  {
357    eval $1=\$$1\$2
358  }
359fi # as_fn_append
360
361# as_fn_arith ARG...
362# ------------------
363# Perform arithmetic evaluation on the ARGs, and store the result in the
364# global $as_val. Take advantage of shells that can avoid forks. The arguments
365# must be portable across $(()) and expr.
366if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367  eval 'as_fn_arith ()
368  {
369    as_val=$(( $* ))
370  }'
371else
372  as_fn_arith ()
373  {
374    as_val=`expr "$@" || test $? -eq 1`
375  }
376fi # as_fn_arith
377
378
379# as_fn_error STATUS ERROR [LINENO LOG_FD]
380# ----------------------------------------
381# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383# script with STATUS, using 1 if that was 0.
384as_fn_error ()
385{
386  as_status=$1; test $as_status -eq 0 && as_status=1
387  if test "$4"; then
388    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390  fi
391  $as_echo "$as_me: error: $2" >&2
392  as_fn_exit $as_status
393} # as_fn_error
394
395if expr a : '\(a\)' >/dev/null 2>&1 &&
396   test "X`expr 00001 : '.*\(...\)'`" = X001; then
397  as_expr=expr
398else
399  as_expr=false
400fi
401
402if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403  as_basename=basename
404else
405  as_basename=false
406fi
407
408if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
409  as_dirname=dirname
410else
411  as_dirname=false
412fi
413
414as_me=`$as_basename -- "$0" ||
415$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416	 X"$0" : 'X\(//\)$' \| \
417	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418$as_echo X/"$0" |
419    sed '/^.*\/\([^/][^/]*\)\/*$/{
420	    s//\1/
421	    q
422	  }
423	  /^X\/\(\/\/\)$/{
424	    s//\1/
425	    q
426	  }
427	  /^X\/\(\/\).*/{
428	    s//\1/
429	    q
430	  }
431	  s/.*/./; q'`
432
433# Avoid depending upon Character Ranges.
434as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437as_cr_digits='0123456789'
438as_cr_alnum=$as_cr_Letters$as_cr_digits
439
440
441  as_lineno_1=$LINENO as_lineno_1a=$LINENO
442  as_lineno_2=$LINENO as_lineno_2a=$LINENO
443  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
446  sed -n '
447    p
448    /[$]LINENO/=
449  ' <$as_myself |
450    sed '
451      s/[$]LINENO.*/&-/
452      t lineno
453      b
454      :lineno
455      N
456      :loop
457      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458      t loop
459      s/-\n.*//
460    ' >$as_me.lineno &&
461  chmod +x "$as_me.lineno" ||
462    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
464  # Don't try to exec as it changes $[0], causing all sort of problems
465  # (the dirname of $[0] is not the place where we might find the
466  # original and so on.  Autoconf is especially sensitive to this).
467  . "./$as_me.lineno"
468  # Exit status is that of the last command.
469  exit
470}
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in #(((((
474-n*)
475  case `echo 'xy\c'` in
476  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
477  xy)  ECHO_C='\c';;
478  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
479       ECHO_T='	';;
480  esac;;
481*)
482  ECHO_N='-n';;
483esac
484
485rm -f conf$$ conf$$.exe conf$$.file
486if test -d conf$$.dir; then
487  rm -f conf$$.dir/conf$$.file
488else
489  rm -f conf$$.dir
490  mkdir conf$$.dir 2>/dev/null
491fi
492if (echo >conf$$.file) 2>/dev/null; then
493  if ln -s conf$$.file conf$$ 2>/dev/null; then
494    as_ln_s='ln -s'
495    # ... but there are two gotchas:
496    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498    # In both cases, we have to default to `cp -p'.
499    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500      as_ln_s='cp -p'
501  elif ln conf$$.file conf$$ 2>/dev/null; then
502    as_ln_s=ln
503  else
504    as_ln_s='cp -p'
505  fi
506else
507  as_ln_s='cp -p'
508fi
509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
511
512if mkdir -p . 2>/dev/null; then
513  as_mkdir_p='mkdir -p "$as_dir"'
514else
515  test -d ./-p && rmdir ./-p
516  as_mkdir_p=false
517fi
518
519if test -x / >/dev/null 2>&1; then
520  as_test_x='test -x'
521else
522  if ls -dL / >/dev/null 2>&1; then
523    as_ls_L_option=L
524  else
525    as_ls_L_option=
526  fi
527  as_test_x='
528    eval sh -c '\''
529      if test -d "$1"; then
530	test -d "$1/.";
531      else
532	case $1 in #(
533	-*)set "./$1";;
534	esac;
535	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536	???[sx]*):;;*)false;;esac;fi
537    '\'' sh
538  '
539fi
540as_executable_p=$as_test_x
541
542# Sed expression to map a string onto a valid CPP name.
543as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
545# Sed expression to map a string onto a valid variable name.
546as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
548SHELL=${CONFIG_SHELL-/bin/sh}
549
550
551test -n "$DJDIR" || exec 7<&0 </dev/null
552exec 6>&1
553
554# Name of the host.
555# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556# so uname gets run too.
557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559#
560# Initializations.
561#
562ac_default_prefix=/usr/local
563ac_clean_files=
564ac_config_libobj_dir=.
565LIBOBJS=
566cross_compiling=no
567subdirs=
568MFLAGS=
569MAKEFLAGS=
570
571# Identity of this package.
572PACKAGE_NAME='xf86-video-wsfb'
573PACKAGE_TARNAME='xf86-video-wsfb'
574PACKAGE_VERSION='0.4.0'
575PACKAGE_STRING='xf86-video-wsfb 0.4.0'
576PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
577PACKAGE_URL=''
578
579ac_unique_file="Makefile.am"
580# Factoring default headers for most tests.
581ac_includes_default="\
582#include <stdio.h>
583#ifdef HAVE_SYS_TYPES_H
584# include <sys/types.h>
585#endif
586#ifdef HAVE_SYS_STAT_H
587# include <sys/stat.h>
588#endif
589#ifdef STDC_HEADERS
590# include <stdlib.h>
591# include <stddef.h>
592#else
593# ifdef HAVE_STDLIB_H
594#  include <stdlib.h>
595# endif
596#endif
597#ifdef HAVE_STRING_H
598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599#  include <memory.h>
600# endif
601# include <string.h>
602#endif
603#ifdef HAVE_STRINGS_H
604# include <strings.h>
605#endif
606#ifdef HAVE_INTTYPES_H
607# include <inttypes.h>
608#endif
609#ifdef HAVE_STDINT_H
610# include <stdint.h>
611#endif
612#ifdef HAVE_UNISTD_H
613# include <unistd.h>
614#endif"
615
616ac_subst_vars='am__EXEEXT_FALSE
617am__EXEEXT_TRUE
618LTLIBOBJS
619LIBOBJS
620DRIVER_NAME
621moduledir
622XORG_LIBS
623XORG_CFLAGS
624OTOOL64
625OTOOL
626LIPO
627NMEDIT
628DSYMUTIL
629MANIFEST_TOOL
630RANLIB
631ac_ct_AR
632AR
633DLLTOOL
634OBJDUMP
635LN_S
636NM
637ac_ct_DUMPBIN
638DUMPBIN
639LD
640FGREP
641LIBTOOL
642MAINT
643MAINTAINER_MODE_FALSE
644MAINTAINER_MODE_TRUE
645am__fastdepCC_FALSE
646am__fastdepCC_TRUE
647CCDEPMODE
648AMDEPBACKSLASH
649AMDEP_FALSE
650AMDEP_TRUE
651am__quote
652am__include
653DEPDIR
654am__untar
655am__tar
656AMTAR
657am__leading_dot
658SET_MAKE
659AWK
660mkdir_p
661MKDIR_P
662INSTALL_STRIP_PROGRAM
663STRIP
664install_sh
665MAKEINFO
666AUTOHEADER
667AUTOMAKE
668AUTOCONF
669ACLOCAL
670VERSION
671PACKAGE
672CYGPATH_W
673am__isrc
674AM_BACKSLASH
675AM_DEFAULT_VERBOSITY
676MAN_SUBSTS
677XORG_MAN_PAGE
678ADMIN_MAN_DIR
679DRIVER_MAN_DIR
680MISC_MAN_DIR
681FILE_MAN_DIR
682LIB_MAN_DIR
683APP_MAN_DIR
684ADMIN_MAN_SUFFIX
685DRIVER_MAN_SUFFIX
686MISC_MAN_SUFFIX
687FILE_MAN_SUFFIX
688LIB_MAN_SUFFIX
689APP_MAN_SUFFIX
690SED
691host_os
692host_vendor
693host_cpu
694host
695build_os
696build_vendor
697build_cpu
698build
699INSTALL_CMD
700PKG_CONFIG_LIBDIR
701PKG_CONFIG_PATH
702PKG_CONFIG
703CHANGELOG_CMD
704STRICT_CFLAGS
705CWARNFLAGS
706EGREP
707GREP
708CPP
709OBJEXT
710EXEEXT
711ac_ct_CC
712CPPFLAGS
713LDFLAGS
714CFLAGS
715CC
716INSTALL_DATA
717INSTALL_SCRIPT
718INSTALL_PROGRAM
719target_alias
720host_alias
721build_alias
722LIBS
723ECHO_T
724ECHO_N
725ECHO_C
726DEFS
727mandir
728localedir
729libdir
730psdir
731pdfdir
732dvidir
733htmldir
734infodir
735docdir
736oldincludedir
737includedir
738localstatedir
739sharedstatedir
740sysconfdir
741datadir
742datarootdir
743libexecdir
744sbindir
745bindir
746program_transform_name
747prefix
748exec_prefix
749PACKAGE_URL
750PACKAGE_BUGREPORT
751PACKAGE_STRING
752PACKAGE_VERSION
753PACKAGE_TARNAME
754PACKAGE_NAME
755PATH_SEPARATOR
756SHELL'
757ac_subst_files=''
758ac_user_opts='
759enable_option_checking
760enable_strict_compilation
761enable_silent_rules
762enable_dependency_tracking
763enable_maintainer_mode
764enable_static
765enable_shared
766with_pic
767enable_fast_install
768with_gnu_ld
769with_sysroot
770enable_libtool_lock
771with_xorg_module_dir
772'
773      ac_precious_vars='build_alias
774host_alias
775target_alias
776CC
777CFLAGS
778LDFLAGS
779LIBS
780CPPFLAGS
781CPP
782PKG_CONFIG
783PKG_CONFIG_PATH
784PKG_CONFIG_LIBDIR
785XORG_CFLAGS
786XORG_LIBS'
787
788
789# Initialize some variables set by options.
790ac_init_help=
791ac_init_version=false
792ac_unrecognized_opts=
793ac_unrecognized_sep=
794# The variables have the same names as the options, with
795# dashes changed to underlines.
796cache_file=/dev/null
797exec_prefix=NONE
798no_create=
799no_recursion=
800prefix=NONE
801program_prefix=NONE
802program_suffix=NONE
803program_transform_name=s,x,x,
804silent=
805site=
806srcdir=
807verbose=
808x_includes=NONE
809x_libraries=NONE
810
811# Installation directory options.
812# These are left unexpanded so users can "make install exec_prefix=/foo"
813# and all the variables that are supposed to be based on exec_prefix
814# by default will actually change.
815# Use braces instead of parens because sh, perl, etc. also accept them.
816# (The list follows the same order as the GNU Coding Standards.)
817bindir='${exec_prefix}/bin'
818sbindir='${exec_prefix}/sbin'
819libexecdir='${exec_prefix}/libexec'
820datarootdir='${prefix}/share'
821datadir='${datarootdir}'
822sysconfdir='${prefix}/etc'
823sharedstatedir='${prefix}/com'
824localstatedir='${prefix}/var'
825includedir='${prefix}/include'
826oldincludedir='/usr/include'
827docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
828infodir='${datarootdir}/info'
829htmldir='${docdir}'
830dvidir='${docdir}'
831pdfdir='${docdir}'
832psdir='${docdir}'
833libdir='${exec_prefix}/lib'
834localedir='${datarootdir}/locale'
835mandir='${datarootdir}/man'
836
837ac_prev=
838ac_dashdash=
839for ac_option
840do
841  # If the previous option needs an argument, assign it.
842  if test -n "$ac_prev"; then
843    eval $ac_prev=\$ac_option
844    ac_prev=
845    continue
846  fi
847
848  case $ac_option in
849  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
850  *=)   ac_optarg= ;;
851  *)    ac_optarg=yes ;;
852  esac
853
854  # Accept the important Cygnus configure options, so we can diagnose typos.
855
856  case $ac_dashdash$ac_option in
857  --)
858    ac_dashdash=yes ;;
859
860  -bindir | --bindir | --bindi | --bind | --bin | --bi)
861    ac_prev=bindir ;;
862  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
863    bindir=$ac_optarg ;;
864
865  -build | --build | --buil | --bui | --bu)
866    ac_prev=build_alias ;;
867  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
868    build_alias=$ac_optarg ;;
869
870  -cache-file | --cache-file | --cache-fil | --cache-fi \
871  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
872    ac_prev=cache_file ;;
873  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
874  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
875    cache_file=$ac_optarg ;;
876
877  --config-cache | -C)
878    cache_file=config.cache ;;
879
880  -datadir | --datadir | --datadi | --datad)
881    ac_prev=datadir ;;
882  -datadir=* | --datadir=* | --datadi=* | --datad=*)
883    datadir=$ac_optarg ;;
884
885  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
886  | --dataroo | --dataro | --datar)
887    ac_prev=datarootdir ;;
888  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
889  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
890    datarootdir=$ac_optarg ;;
891
892  -disable-* | --disable-*)
893    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
894    # Reject names that are not valid shell variable names.
895    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
896      as_fn_error $? "invalid feature name: $ac_useropt"
897    ac_useropt_orig=$ac_useropt
898    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
899    case $ac_user_opts in
900      *"
901"enable_$ac_useropt"
902"*) ;;
903      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
904	 ac_unrecognized_sep=', ';;
905    esac
906    eval enable_$ac_useropt=no ;;
907
908  -docdir | --docdir | --docdi | --doc | --do)
909    ac_prev=docdir ;;
910  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
911    docdir=$ac_optarg ;;
912
913  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
914    ac_prev=dvidir ;;
915  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
916    dvidir=$ac_optarg ;;
917
918  -enable-* | --enable-*)
919    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
920    # Reject names that are not valid shell variable names.
921    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
922      as_fn_error $? "invalid feature name: $ac_useropt"
923    ac_useropt_orig=$ac_useropt
924    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925    case $ac_user_opts in
926      *"
927"enable_$ac_useropt"
928"*) ;;
929      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
930	 ac_unrecognized_sep=', ';;
931    esac
932    eval enable_$ac_useropt=\$ac_optarg ;;
933
934  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
935  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
936  | --exec | --exe | --ex)
937    ac_prev=exec_prefix ;;
938  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
939  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
940  | --exec=* | --exe=* | --ex=*)
941    exec_prefix=$ac_optarg ;;
942
943  -gas | --gas | --ga | --g)
944    # Obsolete; use --with-gas.
945    with_gas=yes ;;
946
947  -help | --help | --hel | --he | -h)
948    ac_init_help=long ;;
949  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
950    ac_init_help=recursive ;;
951  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
952    ac_init_help=short ;;
953
954  -host | --host | --hos | --ho)
955    ac_prev=host_alias ;;
956  -host=* | --host=* | --hos=* | --ho=*)
957    host_alias=$ac_optarg ;;
958
959  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
960    ac_prev=htmldir ;;
961  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
962  | --ht=*)
963    htmldir=$ac_optarg ;;
964
965  -includedir | --includedir | --includedi | --included | --include \
966  | --includ | --inclu | --incl | --inc)
967    ac_prev=includedir ;;
968  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
969  | --includ=* | --inclu=* | --incl=* | --inc=*)
970    includedir=$ac_optarg ;;
971
972  -infodir | --infodir | --infodi | --infod | --info | --inf)
973    ac_prev=infodir ;;
974  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
975    infodir=$ac_optarg ;;
976
977  -libdir | --libdir | --libdi | --libd)
978    ac_prev=libdir ;;
979  -libdir=* | --libdir=* | --libdi=* | --libd=*)
980    libdir=$ac_optarg ;;
981
982  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
983  | --libexe | --libex | --libe)
984    ac_prev=libexecdir ;;
985  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
986  | --libexe=* | --libex=* | --libe=*)
987    libexecdir=$ac_optarg ;;
988
989  -localedir | --localedir | --localedi | --localed | --locale)
990    ac_prev=localedir ;;
991  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
992    localedir=$ac_optarg ;;
993
994  -localstatedir | --localstatedir | --localstatedi | --localstated \
995  | --localstate | --localstat | --localsta | --localst | --locals)
996    ac_prev=localstatedir ;;
997  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
998  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
999    localstatedir=$ac_optarg ;;
1000
1001  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1002    ac_prev=mandir ;;
1003  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1004    mandir=$ac_optarg ;;
1005
1006  -nfp | --nfp | --nf)
1007    # Obsolete; use --without-fp.
1008    with_fp=no ;;
1009
1010  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1011  | --no-cr | --no-c | -n)
1012    no_create=yes ;;
1013
1014  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1015  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1016    no_recursion=yes ;;
1017
1018  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1019  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1020  | --oldin | --oldi | --old | --ol | --o)
1021    ac_prev=oldincludedir ;;
1022  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1023  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1024  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1025    oldincludedir=$ac_optarg ;;
1026
1027  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1028    ac_prev=prefix ;;
1029  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1030    prefix=$ac_optarg ;;
1031
1032  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1033  | --program-pre | --program-pr | --program-p)
1034    ac_prev=program_prefix ;;
1035  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1036  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1037    program_prefix=$ac_optarg ;;
1038
1039  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1040  | --program-suf | --program-su | --program-s)
1041    ac_prev=program_suffix ;;
1042  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1043  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1044    program_suffix=$ac_optarg ;;
1045
1046  -program-transform-name | --program-transform-name \
1047  | --program-transform-nam | --program-transform-na \
1048  | --program-transform-n | --program-transform- \
1049  | --program-transform | --program-transfor \
1050  | --program-transfo | --program-transf \
1051  | --program-trans | --program-tran \
1052  | --progr-tra | --program-tr | --program-t)
1053    ac_prev=program_transform_name ;;
1054  -program-transform-name=* | --program-transform-name=* \
1055  | --program-transform-nam=* | --program-transform-na=* \
1056  | --program-transform-n=* | --program-transform-=* \
1057  | --program-transform=* | --program-transfor=* \
1058  | --program-transfo=* | --program-transf=* \
1059  | --program-trans=* | --program-tran=* \
1060  | --progr-tra=* | --program-tr=* | --program-t=*)
1061    program_transform_name=$ac_optarg ;;
1062
1063  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1064    ac_prev=pdfdir ;;
1065  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1066    pdfdir=$ac_optarg ;;
1067
1068  -psdir | --psdir | --psdi | --psd | --ps)
1069    ac_prev=psdir ;;
1070  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1071    psdir=$ac_optarg ;;
1072
1073  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074  | -silent | --silent | --silen | --sile | --sil)
1075    silent=yes ;;
1076
1077  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1078    ac_prev=sbindir ;;
1079  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1080  | --sbi=* | --sb=*)
1081    sbindir=$ac_optarg ;;
1082
1083  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1084  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1085  | --sharedst | --shareds | --shared | --share | --shar \
1086  | --sha | --sh)
1087    ac_prev=sharedstatedir ;;
1088  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1089  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1090  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1091  | --sha=* | --sh=*)
1092    sharedstatedir=$ac_optarg ;;
1093
1094  -site | --site | --sit)
1095    ac_prev=site ;;
1096  -site=* | --site=* | --sit=*)
1097    site=$ac_optarg ;;
1098
1099  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1100    ac_prev=srcdir ;;
1101  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1102    srcdir=$ac_optarg ;;
1103
1104  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1105  | --syscon | --sysco | --sysc | --sys | --sy)
1106    ac_prev=sysconfdir ;;
1107  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1108  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1109    sysconfdir=$ac_optarg ;;
1110
1111  -target | --target | --targe | --targ | --tar | --ta | --t)
1112    ac_prev=target_alias ;;
1113  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1114    target_alias=$ac_optarg ;;
1115
1116  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1117    verbose=yes ;;
1118
1119  -version | --version | --versio | --versi | --vers | -V)
1120    ac_init_version=: ;;
1121
1122  -with-* | --with-*)
1123    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1124    # Reject names that are not valid shell variable names.
1125    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126      as_fn_error $? "invalid package name: $ac_useropt"
1127    ac_useropt_orig=$ac_useropt
1128    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129    case $ac_user_opts in
1130      *"
1131"with_$ac_useropt"
1132"*) ;;
1133      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1134	 ac_unrecognized_sep=', ';;
1135    esac
1136    eval with_$ac_useropt=\$ac_optarg ;;
1137
1138  -without-* | --without-*)
1139    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1140    # Reject names that are not valid shell variable names.
1141    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142      as_fn_error $? "invalid package name: $ac_useropt"
1143    ac_useropt_orig=$ac_useropt
1144    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145    case $ac_user_opts in
1146      *"
1147"with_$ac_useropt"
1148"*) ;;
1149      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1150	 ac_unrecognized_sep=', ';;
1151    esac
1152    eval with_$ac_useropt=no ;;
1153
1154  --x)
1155    # Obsolete; use --with-x.
1156    with_x=yes ;;
1157
1158  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159  | --x-incl | --x-inc | --x-in | --x-i)
1160    ac_prev=x_includes ;;
1161  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1163    x_includes=$ac_optarg ;;
1164
1165  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167    ac_prev=x_libraries ;;
1168  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1170    x_libraries=$ac_optarg ;;
1171
1172  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1173Try \`$0 --help' for more information"
1174    ;;
1175
1176  *=*)
1177    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178    # Reject names that are not valid shell variable names.
1179    case $ac_envvar in #(
1180      '' | [0-9]* | *[!_$as_cr_alnum]* )
1181      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1182    esac
1183    eval $ac_envvar=\$ac_optarg
1184    export $ac_envvar ;;
1185
1186  *)
1187    # FIXME: should be removed in autoconf 3.0.
1188    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1189    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1191    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1192    ;;
1193
1194  esac
1195done
1196
1197if test -n "$ac_prev"; then
1198  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1199  as_fn_error $? "missing argument to $ac_option"
1200fi
1201
1202if test -n "$ac_unrecognized_opts"; then
1203  case $enable_option_checking in
1204    no) ;;
1205    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1206    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1207  esac
1208fi
1209
1210# Check all directory arguments for consistency.
1211for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1212		datadir sysconfdir sharedstatedir localstatedir includedir \
1213		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1214		libdir localedir mandir
1215do
1216  eval ac_val=\$$ac_var
1217  # Remove trailing slashes.
1218  case $ac_val in
1219    */ )
1220      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1221      eval $ac_var=\$ac_val;;
1222  esac
1223  # Be sure to have absolute directory names.
1224  case $ac_val in
1225    [\\/$]* | ?:[\\/]* )  continue;;
1226    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1227  esac
1228  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1229done
1230
1231# There might be people who depend on the old broken behavior: `$host'
1232# used to hold the argument of --host etc.
1233# FIXME: To remove some day.
1234build=$build_alias
1235host=$host_alias
1236target=$target_alias
1237
1238# FIXME: To remove some day.
1239if test "x$host_alias" != x; then
1240  if test "x$build_alias" = x; then
1241    cross_compiling=maybe
1242    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1243    If a cross compiler is detected then cross compile mode will be used" >&2
1244  elif test "x$build_alias" != "x$host_alias"; then
1245    cross_compiling=yes
1246  fi
1247fi
1248
1249ac_tool_prefix=
1250test -n "$host_alias" && ac_tool_prefix=$host_alias-
1251
1252test "$silent" = yes && exec 6>/dev/null
1253
1254
1255ac_pwd=`pwd` && test -n "$ac_pwd" &&
1256ac_ls_di=`ls -di .` &&
1257ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1258  as_fn_error $? "working directory cannot be determined"
1259test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1260  as_fn_error $? "pwd does not report name of working directory"
1261
1262
1263# Find the source files, if location was not specified.
1264if test -z "$srcdir"; then
1265  ac_srcdir_defaulted=yes
1266  # Try the directory containing this script, then the parent directory.
1267  ac_confdir=`$as_dirname -- "$as_myself" ||
1268$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1269	 X"$as_myself" : 'X\(//\)[^/]' \| \
1270	 X"$as_myself" : 'X\(//\)$' \| \
1271	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1272$as_echo X"$as_myself" |
1273    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1274	    s//\1/
1275	    q
1276	  }
1277	  /^X\(\/\/\)[^/].*/{
1278	    s//\1/
1279	    q
1280	  }
1281	  /^X\(\/\/\)$/{
1282	    s//\1/
1283	    q
1284	  }
1285	  /^X\(\/\).*/{
1286	    s//\1/
1287	    q
1288	  }
1289	  s/.*/./; q'`
1290  srcdir=$ac_confdir
1291  if test ! -r "$srcdir/$ac_unique_file"; then
1292    srcdir=..
1293  fi
1294else
1295  ac_srcdir_defaulted=no
1296fi
1297if test ! -r "$srcdir/$ac_unique_file"; then
1298  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1299  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1300fi
1301ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1302ac_abs_confdir=`(
1303	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1304	pwd)`
1305# When building in place, set srcdir=.
1306if test "$ac_abs_confdir" = "$ac_pwd"; then
1307  srcdir=.
1308fi
1309# Remove unnecessary trailing slashes from srcdir.
1310# Double slashes in file names in object file debugging info
1311# mess up M-x gdb in Emacs.
1312case $srcdir in
1313*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1314esac
1315for ac_var in $ac_precious_vars; do
1316  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1317  eval ac_env_${ac_var}_value=\$${ac_var}
1318  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1319  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1320done
1321
1322#
1323# Report the --help message.
1324#
1325if test "$ac_init_help" = "long"; then
1326  # Omit some internal or obsolete options to make the list less imposing.
1327  # This message is too long to be a string in the A/UX 3.1 sh.
1328  cat <<_ACEOF
1329\`configure' configures xf86-video-wsfb 0.4.0 to adapt to many kinds of systems.
1330
1331Usage: $0 [OPTION]... [VAR=VALUE]...
1332
1333To assign environment variables (e.g., CC, CFLAGS...), specify them as
1334VAR=VALUE.  See below for descriptions of some of the useful variables.
1335
1336Defaults for the options are specified in brackets.
1337
1338Configuration:
1339  -h, --help              display this help and exit
1340      --help=short        display options specific to this package
1341      --help=recursive    display the short help of all the included packages
1342  -V, --version           display version information and exit
1343  -q, --quiet, --silent   do not print \`checking ...' messages
1344      --cache-file=FILE   cache test results in FILE [disabled]
1345  -C, --config-cache      alias for \`--cache-file=config.cache'
1346  -n, --no-create         do not create output files
1347      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1348
1349Installation directories:
1350  --prefix=PREFIX         install architecture-independent files in PREFIX
1351                          [$ac_default_prefix]
1352  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1353                          [PREFIX]
1354
1355By default, \`make install' will install all the files in
1356\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1357an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1358for instance \`--prefix=\$HOME'.
1359
1360For better control, use the options below.
1361
1362Fine tuning of the installation directories:
1363  --bindir=DIR            user executables [EPREFIX/bin]
1364  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1365  --libexecdir=DIR        program executables [EPREFIX/libexec]
1366  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1367  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1368  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1369  --libdir=DIR            object code libraries [EPREFIX/lib]
1370  --includedir=DIR        C header files [PREFIX/include]
1371  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1372  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1373  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1374  --infodir=DIR           info documentation [DATAROOTDIR/info]
1375  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1376  --mandir=DIR            man documentation [DATAROOTDIR/man]
1377  --docdir=DIR            documentation root [DATAROOTDIR/doc/xf86-video-wsfb]
1378  --htmldir=DIR           html documentation [DOCDIR]
1379  --dvidir=DIR            dvi documentation [DOCDIR]
1380  --pdfdir=DIR            pdf documentation [DOCDIR]
1381  --psdir=DIR             ps documentation [DOCDIR]
1382_ACEOF
1383
1384  cat <<\_ACEOF
1385
1386Program names:
1387  --program-prefix=PREFIX            prepend PREFIX to installed program names
1388  --program-suffix=SUFFIX            append SUFFIX to installed program names
1389  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1390
1391System types:
1392  --build=BUILD     configure for building on BUILD [guessed]
1393  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1394_ACEOF
1395fi
1396
1397if test -n "$ac_init_help"; then
1398  case $ac_init_help in
1399     short | recursive ) echo "Configuration of xf86-video-wsfb 0.4.0:";;
1400   esac
1401  cat <<\_ACEOF
1402
1403Optional Features:
1404  --disable-option-checking  ignore unrecognized --enable/--with options
1405  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1406  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1407  --enable-strict-compilation
1408                          Enable all warnings from compiler and make them
1409                          errors (default: disabled)
1410  --enable-silent-rules          less verbose build output (undo: `make V=1')
1411  --disable-silent-rules         verbose build output (undo: `make V=0')
1412  --disable-dependency-tracking  speeds up one-time build
1413  --enable-dependency-tracking   do not reject slow dependency extractors
1414  --enable-maintainer-mode  enable make rules and dependencies not useful
1415			  (and sometimes confusing) to the casual installer
1416  --enable-static[=PKGS]  build static libraries [default=no]
1417  --enable-shared[=PKGS]  build shared libraries [default=yes]
1418  --enable-fast-install[=PKGS]
1419                          optimize for fast installation [default=yes]
1420  --disable-libtool-lock  avoid locking (might break parallel builds)
1421
1422Optional Packages:
1423  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1424  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1425  --with-pic              try to use only PIC/non-PIC objects [default=use
1426                          both]
1427  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1428  --with-sysroot=DIR Search for dependent libraries within DIR
1429                        (or the compiler's sysroot if not specified).
1430  --with-xorg-module-dir=DIR
1431                          Default xorg module directory
1432                          [[default=$libdir/xorg/modules]]
1433
1434Some influential environment variables:
1435  CC          C compiler command
1436  CFLAGS      C compiler flags
1437  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1438              nonstandard directory <lib dir>
1439  LIBS        libraries to pass to the linker, e.g. -l<library>
1440  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1441              you have headers in a nonstandard directory <include dir>
1442  CPP         C preprocessor
1443  PKG_CONFIG  path to pkg-config utility
1444  PKG_CONFIG_PATH
1445              directories to add to pkg-config's search path
1446  PKG_CONFIG_LIBDIR
1447              path overriding pkg-config's built-in search path
1448  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1449  XORG_LIBS   linker flags for XORG, overriding pkg-config
1450
1451Use these variables to override the choices made by `configure' or to help
1452it to find libraries and programs with nonstandard names/locations.
1453
1454Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1455_ACEOF
1456ac_status=$?
1457fi
1458
1459if test "$ac_init_help" = "recursive"; then
1460  # If there are subdirs, report their specific --help.
1461  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1462    test -d "$ac_dir" ||
1463      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1464      continue
1465    ac_builddir=.
1466
1467case "$ac_dir" in
1468.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1469*)
1470  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1471  # A ".." for each directory in $ac_dir_suffix.
1472  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1473  case $ac_top_builddir_sub in
1474  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1475  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1476  esac ;;
1477esac
1478ac_abs_top_builddir=$ac_pwd
1479ac_abs_builddir=$ac_pwd$ac_dir_suffix
1480# for backward compatibility:
1481ac_top_builddir=$ac_top_build_prefix
1482
1483case $srcdir in
1484  .)  # We are building in place.
1485    ac_srcdir=.
1486    ac_top_srcdir=$ac_top_builddir_sub
1487    ac_abs_top_srcdir=$ac_pwd ;;
1488  [\\/]* | ?:[\\/]* )  # Absolute name.
1489    ac_srcdir=$srcdir$ac_dir_suffix;
1490    ac_top_srcdir=$srcdir
1491    ac_abs_top_srcdir=$srcdir ;;
1492  *) # Relative name.
1493    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1494    ac_top_srcdir=$ac_top_build_prefix$srcdir
1495    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1496esac
1497ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1498
1499    cd "$ac_dir" || { ac_status=$?; continue; }
1500    # Check for guested configure.
1501    if test -f "$ac_srcdir/configure.gnu"; then
1502      echo &&
1503      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1504    elif test -f "$ac_srcdir/configure"; then
1505      echo &&
1506      $SHELL "$ac_srcdir/configure" --help=recursive
1507    else
1508      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1509    fi || ac_status=$?
1510    cd "$ac_pwd" || { ac_status=$?; break; }
1511  done
1512fi
1513
1514test -n "$ac_init_help" && exit $ac_status
1515if $ac_init_version; then
1516  cat <<\_ACEOF
1517xf86-video-wsfb configure 0.4.0
1518generated by GNU Autoconf 2.68
1519
1520Copyright (C) 2010 Free Software Foundation, Inc.
1521This configure script is free software; the Free Software Foundation
1522gives unlimited permission to copy, distribute and modify it.
1523_ACEOF
1524  exit
1525fi
1526
1527## ------------------------ ##
1528## Autoconf initialization. ##
1529## ------------------------ ##
1530
1531# ac_fn_c_try_compile LINENO
1532# --------------------------
1533# Try to compile conftest.$ac_ext, and return whether this succeeded.
1534ac_fn_c_try_compile ()
1535{
1536  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1537  rm -f conftest.$ac_objext
1538  if { { ac_try="$ac_compile"
1539case "(($ac_try" in
1540  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1541  *) ac_try_echo=$ac_try;;
1542esac
1543eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1544$as_echo "$ac_try_echo"; } >&5
1545  (eval "$ac_compile") 2>conftest.err
1546  ac_status=$?
1547  if test -s conftest.err; then
1548    grep -v '^ *+' conftest.err >conftest.er1
1549    cat conftest.er1 >&5
1550    mv -f conftest.er1 conftest.err
1551  fi
1552  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1553  test $ac_status = 0; } && {
1554	 test -z "$ac_c_werror_flag" ||
1555	 test ! -s conftest.err
1556       } && test -s conftest.$ac_objext; then :
1557  ac_retval=0
1558else
1559  $as_echo "$as_me: failed program was:" >&5
1560sed 's/^/| /' conftest.$ac_ext >&5
1561
1562	ac_retval=1
1563fi
1564  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1565  as_fn_set_status $ac_retval
1566
1567} # ac_fn_c_try_compile
1568
1569# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1570# ---------------------------------------------
1571# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1572# accordingly.
1573ac_fn_c_check_decl ()
1574{
1575  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576  as_decl_name=`echo $2|sed 's/ *(.*//'`
1577  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1578  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1579$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1580if eval \${$3+:} false; then :
1581  $as_echo_n "(cached) " >&6
1582else
1583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1584/* end confdefs.h.  */
1585$4
1586int
1587main ()
1588{
1589#ifndef $as_decl_name
1590#ifdef __cplusplus
1591  (void) $as_decl_use;
1592#else
1593  (void) $as_decl_name;
1594#endif
1595#endif
1596
1597  ;
1598  return 0;
1599}
1600_ACEOF
1601if ac_fn_c_try_compile "$LINENO"; then :
1602  eval "$3=yes"
1603else
1604  eval "$3=no"
1605fi
1606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1607fi
1608eval ac_res=\$$3
1609	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1610$as_echo "$ac_res" >&6; }
1611  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1612
1613} # ac_fn_c_check_decl
1614
1615# ac_fn_c_try_cpp LINENO
1616# ----------------------
1617# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1618ac_fn_c_try_cpp ()
1619{
1620  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621  if { { ac_try="$ac_cpp conftest.$ac_ext"
1622case "(($ac_try" in
1623  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1624  *) ac_try_echo=$ac_try;;
1625esac
1626eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1627$as_echo "$ac_try_echo"; } >&5
1628  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1629  ac_status=$?
1630  if test -s conftest.err; then
1631    grep -v '^ *+' conftest.err >conftest.er1
1632    cat conftest.er1 >&5
1633    mv -f conftest.er1 conftest.err
1634  fi
1635  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1636  test $ac_status = 0; } > conftest.i && {
1637	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1638	 test ! -s conftest.err
1639       }; then :
1640  ac_retval=0
1641else
1642  $as_echo "$as_me: failed program was:" >&5
1643sed 's/^/| /' conftest.$ac_ext >&5
1644
1645    ac_retval=1
1646fi
1647  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648  as_fn_set_status $ac_retval
1649
1650} # ac_fn_c_try_cpp
1651
1652# ac_fn_c_try_run LINENO
1653# ----------------------
1654# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1655# that executables *can* be run.
1656ac_fn_c_try_run ()
1657{
1658  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659  if { { ac_try="$ac_link"
1660case "(($ac_try" in
1661  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662  *) ac_try_echo=$ac_try;;
1663esac
1664eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665$as_echo "$ac_try_echo"; } >&5
1666  (eval "$ac_link") 2>&5
1667  ac_status=$?
1668  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1670  { { case "(($ac_try" in
1671  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672  *) ac_try_echo=$ac_try;;
1673esac
1674eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675$as_echo "$ac_try_echo"; } >&5
1676  (eval "$ac_try") 2>&5
1677  ac_status=$?
1678  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679  test $ac_status = 0; }; }; then :
1680  ac_retval=0
1681else
1682  $as_echo "$as_me: program exited with status $ac_status" >&5
1683       $as_echo "$as_me: failed program was:" >&5
1684sed 's/^/| /' conftest.$ac_ext >&5
1685
1686       ac_retval=$ac_status
1687fi
1688  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1689  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690  as_fn_set_status $ac_retval
1691
1692} # ac_fn_c_try_run
1693
1694# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1695# -------------------------------------------------------
1696# Tests whether HEADER exists and can be compiled using the include files in
1697# INCLUDES, setting the cache variable VAR accordingly.
1698ac_fn_c_check_header_compile ()
1699{
1700  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1702$as_echo_n "checking for $2... " >&6; }
1703if eval \${$3+:} false; then :
1704  $as_echo_n "(cached) " >&6
1705else
1706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1707/* end confdefs.h.  */
1708$4
1709#include <$2>
1710_ACEOF
1711if ac_fn_c_try_compile "$LINENO"; then :
1712  eval "$3=yes"
1713else
1714  eval "$3=no"
1715fi
1716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1717fi
1718eval ac_res=\$$3
1719	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1720$as_echo "$ac_res" >&6; }
1721  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722
1723} # ac_fn_c_check_header_compile
1724
1725# ac_fn_c_try_link LINENO
1726# -----------------------
1727# Try to link conftest.$ac_ext, and return whether this succeeded.
1728ac_fn_c_try_link ()
1729{
1730  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731  rm -f conftest.$ac_objext conftest$ac_exeext
1732  if { { ac_try="$ac_link"
1733case "(($ac_try" in
1734  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735  *) ac_try_echo=$ac_try;;
1736esac
1737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738$as_echo "$ac_try_echo"; } >&5
1739  (eval "$ac_link") 2>conftest.err
1740  ac_status=$?
1741  if test -s conftest.err; then
1742    grep -v '^ *+' conftest.err >conftest.er1
1743    cat conftest.er1 >&5
1744    mv -f conftest.er1 conftest.err
1745  fi
1746  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747  test $ac_status = 0; } && {
1748	 test -z "$ac_c_werror_flag" ||
1749	 test ! -s conftest.err
1750       } && test -s conftest$ac_exeext && {
1751	 test "$cross_compiling" = yes ||
1752	 $as_test_x conftest$ac_exeext
1753       }; then :
1754  ac_retval=0
1755else
1756  $as_echo "$as_me: failed program was:" >&5
1757sed 's/^/| /' conftest.$ac_ext >&5
1758
1759	ac_retval=1
1760fi
1761  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1762  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1763  # interfere with the next link command; also delete a directory that is
1764  # left behind by Apple's compiler.  We do this before executing the actions.
1765  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1766  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1767  as_fn_set_status $ac_retval
1768
1769} # ac_fn_c_try_link
1770
1771# ac_fn_c_check_func LINENO FUNC VAR
1772# ----------------------------------
1773# Tests whether FUNC exists, setting the cache variable VAR accordingly
1774ac_fn_c_check_func ()
1775{
1776  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1778$as_echo_n "checking for $2... " >&6; }
1779if eval \${$3+:} false; then :
1780  $as_echo_n "(cached) " >&6
1781else
1782  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1783/* end confdefs.h.  */
1784/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1785   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1786#define $2 innocuous_$2
1787
1788/* System header to define __stub macros and hopefully few prototypes,
1789    which can conflict with char $2 (); below.
1790    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1791    <limits.h> exists even on freestanding compilers.  */
1792
1793#ifdef __STDC__
1794# include <limits.h>
1795#else
1796# include <assert.h>
1797#endif
1798
1799#undef $2
1800
1801/* Override any GCC internal prototype to avoid an error.
1802   Use char because int might match the return type of a GCC
1803   builtin and then its argument prototype would still apply.  */
1804#ifdef __cplusplus
1805extern "C"
1806#endif
1807char $2 ();
1808/* The GNU C library defines this for functions which it implements
1809    to always fail with ENOSYS.  Some functions are actually named
1810    something starting with __ and the normal name is an alias.  */
1811#if defined __stub_$2 || defined __stub___$2
1812choke me
1813#endif
1814
1815int
1816main ()
1817{
1818return $2 ();
1819  ;
1820  return 0;
1821}
1822_ACEOF
1823if ac_fn_c_try_link "$LINENO"; then :
1824  eval "$3=yes"
1825else
1826  eval "$3=no"
1827fi
1828rm -f core conftest.err conftest.$ac_objext \
1829    conftest$ac_exeext conftest.$ac_ext
1830fi
1831eval ac_res=\$$3
1832	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1833$as_echo "$ac_res" >&6; }
1834  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835
1836} # ac_fn_c_check_func
1837
1838# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1839# -------------------------------------------------------
1840# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1841# the include files in INCLUDES and setting the cache variable VAR
1842# accordingly.
1843ac_fn_c_check_header_mongrel ()
1844{
1845  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846  if eval \${$3+:} false; then :
1847  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848$as_echo_n "checking for $2... " >&6; }
1849if eval \${$3+:} false; then :
1850  $as_echo_n "(cached) " >&6
1851fi
1852eval ac_res=\$$3
1853	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1854$as_echo "$ac_res" >&6; }
1855else
1856  # Is the header compilable?
1857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1858$as_echo_n "checking $2 usability... " >&6; }
1859cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1860/* end confdefs.h.  */
1861$4
1862#include <$2>
1863_ACEOF
1864if ac_fn_c_try_compile "$LINENO"; then :
1865  ac_header_compiler=yes
1866else
1867  ac_header_compiler=no
1868fi
1869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1871$as_echo "$ac_header_compiler" >&6; }
1872
1873# Is the header present?
1874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1875$as_echo_n "checking $2 presence... " >&6; }
1876cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1877/* end confdefs.h.  */
1878#include <$2>
1879_ACEOF
1880if ac_fn_c_try_cpp "$LINENO"; then :
1881  ac_header_preproc=yes
1882else
1883  ac_header_preproc=no
1884fi
1885rm -f conftest.err conftest.i conftest.$ac_ext
1886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1887$as_echo "$ac_header_preproc" >&6; }
1888
1889# So?  What about this header?
1890case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1891  yes:no: )
1892    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1893$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1894    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1895$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1896    ;;
1897  no:yes:* )
1898    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1899$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1900    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1901$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1902    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1903$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1904    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1905$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1906    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1907$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1908( $as_echo "## ---------------------------------------------------------------------- ##
1909## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1910## ---------------------------------------------------------------------- ##"
1911     ) | sed "s/^/$as_me: WARNING:     /" >&2
1912    ;;
1913esac
1914  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1915$as_echo_n "checking for $2... " >&6; }
1916if eval \${$3+:} false; then :
1917  $as_echo_n "(cached) " >&6
1918else
1919  eval "$3=\$ac_header_compiler"
1920fi
1921eval ac_res=\$$3
1922	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923$as_echo "$ac_res" >&6; }
1924fi
1925  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926
1927} # ac_fn_c_check_header_mongrel
1928cat >config.log <<_ACEOF
1929This file contains any messages produced by compilers while
1930running configure, to aid debugging if configure makes a mistake.
1931
1932It was created by xf86-video-wsfb $as_me 0.4.0, which was
1933generated by GNU Autoconf 2.68.  Invocation command line was
1934
1935  $ $0 $@
1936
1937_ACEOF
1938exec 5>>config.log
1939{
1940cat <<_ASUNAME
1941## --------- ##
1942## Platform. ##
1943## --------- ##
1944
1945hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1946uname -m = `(uname -m) 2>/dev/null || echo unknown`
1947uname -r = `(uname -r) 2>/dev/null || echo unknown`
1948uname -s = `(uname -s) 2>/dev/null || echo unknown`
1949uname -v = `(uname -v) 2>/dev/null || echo unknown`
1950
1951/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1952/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1953
1954/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1955/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1956/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1957/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1958/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1959/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1960/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1961
1962_ASUNAME
1963
1964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965for as_dir in $PATH
1966do
1967  IFS=$as_save_IFS
1968  test -z "$as_dir" && as_dir=.
1969    $as_echo "PATH: $as_dir"
1970  done
1971IFS=$as_save_IFS
1972
1973} >&5
1974
1975cat >&5 <<_ACEOF
1976
1977
1978## ----------- ##
1979## Core tests. ##
1980## ----------- ##
1981
1982_ACEOF
1983
1984
1985# Keep a trace of the command line.
1986# Strip out --no-create and --no-recursion so they do not pile up.
1987# Strip out --silent because we don't want to record it for future runs.
1988# Also quote any args containing shell meta-characters.
1989# Make two passes to allow for proper duplicate-argument suppression.
1990ac_configure_args=
1991ac_configure_args0=
1992ac_configure_args1=
1993ac_must_keep_next=false
1994for ac_pass in 1 2
1995do
1996  for ac_arg
1997  do
1998    case $ac_arg in
1999    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2000    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2001    | -silent | --silent | --silen | --sile | --sil)
2002      continue ;;
2003    *\'*)
2004      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2005    esac
2006    case $ac_pass in
2007    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2008    2)
2009      as_fn_append ac_configure_args1 " '$ac_arg'"
2010      if test $ac_must_keep_next = true; then
2011	ac_must_keep_next=false # Got value, back to normal.
2012      else
2013	case $ac_arg in
2014	  *=* | --config-cache | -C | -disable-* | --disable-* \
2015	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2016	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2017	  | -with-* | --with-* | -without-* | --without-* | --x)
2018	    case "$ac_configure_args0 " in
2019	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2020	    esac
2021	    ;;
2022	  -* ) ac_must_keep_next=true ;;
2023	esac
2024      fi
2025      as_fn_append ac_configure_args " '$ac_arg'"
2026      ;;
2027    esac
2028  done
2029done
2030{ ac_configure_args0=; unset ac_configure_args0;}
2031{ ac_configure_args1=; unset ac_configure_args1;}
2032
2033# When interrupted or exit'd, cleanup temporary files, and complete
2034# config.log.  We remove comments because anyway the quotes in there
2035# would cause problems or look ugly.
2036# WARNING: Use '\'' to represent an apostrophe within the trap.
2037# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2038trap 'exit_status=$?
2039  # Save into config.log some information that might help in debugging.
2040  {
2041    echo
2042
2043    $as_echo "## ---------------- ##
2044## Cache variables. ##
2045## ---------------- ##"
2046    echo
2047    # The following way of writing the cache mishandles newlines in values,
2048(
2049  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2050    eval ac_val=\$$ac_var
2051    case $ac_val in #(
2052    *${as_nl}*)
2053      case $ac_var in #(
2054      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2055$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2056      esac
2057      case $ac_var in #(
2058      _ | IFS | as_nl) ;; #(
2059      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2060      *) { eval $ac_var=; unset $ac_var;} ;;
2061      esac ;;
2062    esac
2063  done
2064  (set) 2>&1 |
2065    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2066    *${as_nl}ac_space=\ *)
2067      sed -n \
2068	"s/'\''/'\''\\\\'\'''\''/g;
2069	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2070      ;; #(
2071    *)
2072      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2073      ;;
2074    esac |
2075    sort
2076)
2077    echo
2078
2079    $as_echo "## ----------------- ##
2080## Output variables. ##
2081## ----------------- ##"
2082    echo
2083    for ac_var in $ac_subst_vars
2084    do
2085      eval ac_val=\$$ac_var
2086      case $ac_val in
2087      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2088      esac
2089      $as_echo "$ac_var='\''$ac_val'\''"
2090    done | sort
2091    echo
2092
2093    if test -n "$ac_subst_files"; then
2094      $as_echo "## ------------------- ##
2095## File substitutions. ##
2096## ------------------- ##"
2097      echo
2098      for ac_var in $ac_subst_files
2099      do
2100	eval ac_val=\$$ac_var
2101	case $ac_val in
2102	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2103	esac
2104	$as_echo "$ac_var='\''$ac_val'\''"
2105      done | sort
2106      echo
2107    fi
2108
2109    if test -s confdefs.h; then
2110      $as_echo "## ----------- ##
2111## confdefs.h. ##
2112## ----------- ##"
2113      echo
2114      cat confdefs.h
2115      echo
2116    fi
2117    test "$ac_signal" != 0 &&
2118      $as_echo "$as_me: caught signal $ac_signal"
2119    $as_echo "$as_me: exit $exit_status"
2120  } >&5
2121  rm -f core *.core core.conftest.* &&
2122    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2123    exit $exit_status
2124' 0
2125for ac_signal in 1 2 13 15; do
2126  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2127done
2128ac_signal=0
2129
2130# confdefs.h avoids OS command line length limits that DEFS can exceed.
2131rm -f -r conftest* confdefs.h
2132
2133$as_echo "/* confdefs.h */" > confdefs.h
2134
2135# Predefined preprocessor variables.
2136
2137cat >>confdefs.h <<_ACEOF
2138#define PACKAGE_NAME "$PACKAGE_NAME"
2139_ACEOF
2140
2141cat >>confdefs.h <<_ACEOF
2142#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2143_ACEOF
2144
2145cat >>confdefs.h <<_ACEOF
2146#define PACKAGE_VERSION "$PACKAGE_VERSION"
2147_ACEOF
2148
2149cat >>confdefs.h <<_ACEOF
2150#define PACKAGE_STRING "$PACKAGE_STRING"
2151_ACEOF
2152
2153cat >>confdefs.h <<_ACEOF
2154#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2155_ACEOF
2156
2157cat >>confdefs.h <<_ACEOF
2158#define PACKAGE_URL "$PACKAGE_URL"
2159_ACEOF
2160
2161
2162# Let the site file select an alternate cache file if it wants to.
2163# Prefer an explicitly selected file to automatically selected ones.
2164ac_site_file1=NONE
2165ac_site_file2=NONE
2166if test -n "$CONFIG_SITE"; then
2167  # We do not want a PATH search for config.site.
2168  case $CONFIG_SITE in #((
2169    -*)  ac_site_file1=./$CONFIG_SITE;;
2170    */*) ac_site_file1=$CONFIG_SITE;;
2171    *)   ac_site_file1=./$CONFIG_SITE;;
2172  esac
2173elif test "x$prefix" != xNONE; then
2174  ac_site_file1=$prefix/share/config.site
2175  ac_site_file2=$prefix/etc/config.site
2176else
2177  ac_site_file1=$ac_default_prefix/share/config.site
2178  ac_site_file2=$ac_default_prefix/etc/config.site
2179fi
2180for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2181do
2182  test "x$ac_site_file" = xNONE && continue
2183  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2184    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2185$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2186    sed 's/^/| /' "$ac_site_file" >&5
2187    . "$ac_site_file" \
2188      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2189$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2190as_fn_error $? "failed to load site script $ac_site_file
2191See \`config.log' for more details" "$LINENO" 5; }
2192  fi
2193done
2194
2195if test -r "$cache_file"; then
2196  # Some versions of bash will fail to source /dev/null (special files
2197  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2198  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2199    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2200$as_echo "$as_me: loading cache $cache_file" >&6;}
2201    case $cache_file in
2202      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2203      *)                      . "./$cache_file";;
2204    esac
2205  fi
2206else
2207  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2208$as_echo "$as_me: creating cache $cache_file" >&6;}
2209  >$cache_file
2210fi
2211
2212# Check that the precious variables saved in the cache have kept the same
2213# value.
2214ac_cache_corrupted=false
2215for ac_var in $ac_precious_vars; do
2216  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2217  eval ac_new_set=\$ac_env_${ac_var}_set
2218  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2219  eval ac_new_val=\$ac_env_${ac_var}_value
2220  case $ac_old_set,$ac_new_set in
2221    set,)
2222      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2223$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2224      ac_cache_corrupted=: ;;
2225    ,set)
2226      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2227$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2228      ac_cache_corrupted=: ;;
2229    ,);;
2230    *)
2231      if test "x$ac_old_val" != "x$ac_new_val"; then
2232	# differences in whitespace do not lead to failure.
2233	ac_old_val_w=`echo x $ac_old_val`
2234	ac_new_val_w=`echo x $ac_new_val`
2235	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2236	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2237$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2238	  ac_cache_corrupted=:
2239	else
2240	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2241$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2242	  eval $ac_var=\$ac_old_val
2243	fi
2244	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2245$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2246	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2247$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2248      fi;;
2249  esac
2250  # Pass precious variables to config.status.
2251  if test "$ac_new_set" = set; then
2252    case $ac_new_val in
2253    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2254    *) ac_arg=$ac_var=$ac_new_val ;;
2255    esac
2256    case " $ac_configure_args " in
2257      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2258      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2259    esac
2260  fi
2261done
2262if $ac_cache_corrupted; then
2263  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2264$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2265  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2266$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2267  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2268fi
2269## -------------------- ##
2270## Main body of script. ##
2271## -------------------- ##
2272
2273ac_ext=c
2274ac_cpp='$CPP $CPPFLAGS'
2275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2277ac_compiler_gnu=$ac_cv_c_compiler_gnu
2278
2279
2280
2281ac_config_headers="$ac_config_headers config.h"
2282
2283
2284# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296ac_aux_dir=
2297for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2298  if test -f "$ac_dir/install-sh"; then
2299    ac_aux_dir=$ac_dir
2300    ac_install_sh="$ac_aux_dir/install-sh -c"
2301    break
2302  elif test -f "$ac_dir/install.sh"; then
2303    ac_aux_dir=$ac_dir
2304    ac_install_sh="$ac_aux_dir/install.sh -c"
2305    break
2306  elif test -f "$ac_dir/shtool"; then
2307    ac_aux_dir=$ac_dir
2308    ac_install_sh="$ac_aux_dir/shtool install -c"
2309    break
2310  fi
2311done
2312if test -z "$ac_aux_dir"; then
2313  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2314fi
2315
2316# These three variables are undocumented and unsupported,
2317# and are intended to be withdrawn in a future Autoconf release.
2318# They can cause serious problems if a builder's source tree is in a directory
2319# whose full name contains unusual characters.
2320ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2321ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2322ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2323
2324
2325# Find a good install program.  We prefer a C program (faster),
2326# so one script is as good as another.  But avoid the broken or
2327# incompatible versions:
2328# SysV /etc/install, /usr/sbin/install
2329# SunOS /usr/etc/install
2330# IRIX /sbin/install
2331# AIX /bin/install
2332# AmigaOS /C/install, which installs bootblocks on floppy discs
2333# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2334# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2335# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2336# OS/2's system install, which has a completely different semantic
2337# ./install, which can be erroneously created by make from ./install.sh.
2338# Reject install programs that cannot install multiple files.
2339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2340$as_echo_n "checking for a BSD-compatible install... " >&6; }
2341if test -z "$INSTALL"; then
2342if ${ac_cv_path_install+:} false; then :
2343  $as_echo_n "(cached) " >&6
2344else
2345  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346for as_dir in $PATH
2347do
2348  IFS=$as_save_IFS
2349  test -z "$as_dir" && as_dir=.
2350    # Account for people who put trailing slashes in PATH elements.
2351case $as_dir/ in #((
2352  ./ | .// | /[cC]/* | \
2353  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2354  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2355  /usr/ucb/* ) ;;
2356  *)
2357    # OSF1 and SCO ODT 3.0 have their own names for install.
2358    # Don't use installbsd from OSF since it installs stuff as root
2359    # by default.
2360    for ac_prog in ginstall scoinst install; do
2361      for ac_exec_ext in '' $ac_executable_extensions; do
2362	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2363	  if test $ac_prog = install &&
2364	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2365	    # AIX install.  It has an incompatible calling convention.
2366	    :
2367	  elif test $ac_prog = install &&
2368	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2369	    # program-specific install script used by HP pwplus--don't use.
2370	    :
2371	  else
2372	    rm -rf conftest.one conftest.two conftest.dir
2373	    echo one > conftest.one
2374	    echo two > conftest.two
2375	    mkdir conftest.dir
2376	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2377	      test -s conftest.one && test -s conftest.two &&
2378	      test -s conftest.dir/conftest.one &&
2379	      test -s conftest.dir/conftest.two
2380	    then
2381	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2382	      break 3
2383	    fi
2384	  fi
2385	fi
2386      done
2387    done
2388    ;;
2389esac
2390
2391  done
2392IFS=$as_save_IFS
2393
2394rm -rf conftest.one conftest.two conftest.dir
2395
2396fi
2397  if test "${ac_cv_path_install+set}" = set; then
2398    INSTALL=$ac_cv_path_install
2399  else
2400    # As a last resort, use the slow shell script.  Don't cache a
2401    # value for INSTALL within a source directory, because that will
2402    # break other packages using the cache if that directory is
2403    # removed, or if the value is a relative name.
2404    INSTALL=$ac_install_sh
2405  fi
2406fi
2407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2408$as_echo "$INSTALL" >&6; }
2409
2410# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2411# It thinks the first close brace ends the variable substitution.
2412test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2413
2414test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2415
2416test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2417
2418ac_ext=c
2419ac_cpp='$CPP $CPPFLAGS'
2420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2422ac_compiler_gnu=$ac_cv_c_compiler_gnu
2423if test -n "$ac_tool_prefix"; then
2424  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2425set dummy ${ac_tool_prefix}gcc; ac_word=$2
2426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2427$as_echo_n "checking for $ac_word... " >&6; }
2428if ${ac_cv_prog_CC+:} false; then :
2429  $as_echo_n "(cached) " >&6
2430else
2431  if test -n "$CC"; then
2432  ac_cv_prog_CC="$CC" # Let the user override the test.
2433else
2434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2435for as_dir in $PATH
2436do
2437  IFS=$as_save_IFS
2438  test -z "$as_dir" && as_dir=.
2439    for ac_exec_ext in '' $ac_executable_extensions; do
2440  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2441    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2442    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2443    break 2
2444  fi
2445done
2446  done
2447IFS=$as_save_IFS
2448
2449fi
2450fi
2451CC=$ac_cv_prog_CC
2452if test -n "$CC"; then
2453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2454$as_echo "$CC" >&6; }
2455else
2456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2457$as_echo "no" >&6; }
2458fi
2459
2460
2461fi
2462if test -z "$ac_cv_prog_CC"; then
2463  ac_ct_CC=$CC
2464  # Extract the first word of "gcc", so it can be a program name with args.
2465set dummy gcc; ac_word=$2
2466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2467$as_echo_n "checking for $ac_word... " >&6; }
2468if ${ac_cv_prog_ac_ct_CC+:} false; then :
2469  $as_echo_n "(cached) " >&6
2470else
2471  if test -n "$ac_ct_CC"; then
2472  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2473else
2474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475for as_dir in $PATH
2476do
2477  IFS=$as_save_IFS
2478  test -z "$as_dir" && as_dir=.
2479    for ac_exec_ext in '' $ac_executable_extensions; do
2480  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2481    ac_cv_prog_ac_ct_CC="gcc"
2482    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2483    break 2
2484  fi
2485done
2486  done
2487IFS=$as_save_IFS
2488
2489fi
2490fi
2491ac_ct_CC=$ac_cv_prog_ac_ct_CC
2492if test -n "$ac_ct_CC"; then
2493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2494$as_echo "$ac_ct_CC" >&6; }
2495else
2496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2497$as_echo "no" >&6; }
2498fi
2499
2500  if test "x$ac_ct_CC" = x; then
2501    CC=""
2502  else
2503    case $cross_compiling:$ac_tool_warned in
2504yes:)
2505{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2506$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2507ac_tool_warned=yes ;;
2508esac
2509    CC=$ac_ct_CC
2510  fi
2511else
2512  CC="$ac_cv_prog_CC"
2513fi
2514
2515if test -z "$CC"; then
2516          if test -n "$ac_tool_prefix"; then
2517    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2518set dummy ${ac_tool_prefix}cc; ac_word=$2
2519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2520$as_echo_n "checking for $ac_word... " >&6; }
2521if ${ac_cv_prog_CC+:} false; then :
2522  $as_echo_n "(cached) " >&6
2523else
2524  if test -n "$CC"; then
2525  ac_cv_prog_CC="$CC" # Let the user override the test.
2526else
2527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2528for as_dir in $PATH
2529do
2530  IFS=$as_save_IFS
2531  test -z "$as_dir" && as_dir=.
2532    for ac_exec_ext in '' $ac_executable_extensions; do
2533  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2534    ac_cv_prog_CC="${ac_tool_prefix}cc"
2535    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2536    break 2
2537  fi
2538done
2539  done
2540IFS=$as_save_IFS
2541
2542fi
2543fi
2544CC=$ac_cv_prog_CC
2545if test -n "$CC"; then
2546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2547$as_echo "$CC" >&6; }
2548else
2549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2550$as_echo "no" >&6; }
2551fi
2552
2553
2554  fi
2555fi
2556if test -z "$CC"; then
2557  # Extract the first word of "cc", so it can be a program name with args.
2558set dummy cc; ac_word=$2
2559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2560$as_echo_n "checking for $ac_word... " >&6; }
2561if ${ac_cv_prog_CC+:} false; then :
2562  $as_echo_n "(cached) " >&6
2563else
2564  if test -n "$CC"; then
2565  ac_cv_prog_CC="$CC" # Let the user override the test.
2566else
2567  ac_prog_rejected=no
2568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569for as_dir in $PATH
2570do
2571  IFS=$as_save_IFS
2572  test -z "$as_dir" && as_dir=.
2573    for ac_exec_ext in '' $ac_executable_extensions; do
2574  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2575    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2576       ac_prog_rejected=yes
2577       continue
2578     fi
2579    ac_cv_prog_CC="cc"
2580    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2581    break 2
2582  fi
2583done
2584  done
2585IFS=$as_save_IFS
2586
2587if test $ac_prog_rejected = yes; then
2588  # We found a bogon in the path, so make sure we never use it.
2589  set dummy $ac_cv_prog_CC
2590  shift
2591  if test $# != 0; then
2592    # We chose a different compiler from the bogus one.
2593    # However, it has the same basename, so the bogon will be chosen
2594    # first if we set CC to just the basename; use the full file name.
2595    shift
2596    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2597  fi
2598fi
2599fi
2600fi
2601CC=$ac_cv_prog_CC
2602if test -n "$CC"; then
2603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2604$as_echo "$CC" >&6; }
2605else
2606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2607$as_echo "no" >&6; }
2608fi
2609
2610
2611fi
2612if test -z "$CC"; then
2613  if test -n "$ac_tool_prefix"; then
2614  for ac_prog in cl.exe
2615  do
2616    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2617set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2619$as_echo_n "checking for $ac_word... " >&6; }
2620if ${ac_cv_prog_CC+:} false; then :
2621  $as_echo_n "(cached) " >&6
2622else
2623  if test -n "$CC"; then
2624  ac_cv_prog_CC="$CC" # Let the user override the test.
2625else
2626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627for as_dir in $PATH
2628do
2629  IFS=$as_save_IFS
2630  test -z "$as_dir" && as_dir=.
2631    for ac_exec_ext in '' $ac_executable_extensions; do
2632  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2633    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2634    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2635    break 2
2636  fi
2637done
2638  done
2639IFS=$as_save_IFS
2640
2641fi
2642fi
2643CC=$ac_cv_prog_CC
2644if test -n "$CC"; then
2645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2646$as_echo "$CC" >&6; }
2647else
2648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2649$as_echo "no" >&6; }
2650fi
2651
2652
2653    test -n "$CC" && break
2654  done
2655fi
2656if test -z "$CC"; then
2657  ac_ct_CC=$CC
2658  for ac_prog in cl.exe
2659do
2660  # Extract the first word of "$ac_prog", so it can be a program name with args.
2661set dummy $ac_prog; ac_word=$2
2662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2663$as_echo_n "checking for $ac_word... " >&6; }
2664if ${ac_cv_prog_ac_ct_CC+:} false; then :
2665  $as_echo_n "(cached) " >&6
2666else
2667  if test -n "$ac_ct_CC"; then
2668  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2669else
2670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671for as_dir in $PATH
2672do
2673  IFS=$as_save_IFS
2674  test -z "$as_dir" && as_dir=.
2675    for ac_exec_ext in '' $ac_executable_extensions; do
2676  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2677    ac_cv_prog_ac_ct_CC="$ac_prog"
2678    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2679    break 2
2680  fi
2681done
2682  done
2683IFS=$as_save_IFS
2684
2685fi
2686fi
2687ac_ct_CC=$ac_cv_prog_ac_ct_CC
2688if test -n "$ac_ct_CC"; then
2689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2690$as_echo "$ac_ct_CC" >&6; }
2691else
2692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2693$as_echo "no" >&6; }
2694fi
2695
2696
2697  test -n "$ac_ct_CC" && break
2698done
2699
2700  if test "x$ac_ct_CC" = x; then
2701    CC=""
2702  else
2703    case $cross_compiling:$ac_tool_warned in
2704yes:)
2705{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2706$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2707ac_tool_warned=yes ;;
2708esac
2709    CC=$ac_ct_CC
2710  fi
2711fi
2712
2713fi
2714
2715
2716test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2717$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2718as_fn_error $? "no acceptable C compiler found in \$PATH
2719See \`config.log' for more details" "$LINENO" 5; }
2720
2721# Provide some information about the compiler.
2722$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2723set X $ac_compile
2724ac_compiler=$2
2725for ac_option in --version -v -V -qversion; do
2726  { { ac_try="$ac_compiler $ac_option >&5"
2727case "(($ac_try" in
2728  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2729  *) ac_try_echo=$ac_try;;
2730esac
2731eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2732$as_echo "$ac_try_echo"; } >&5
2733  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2734  ac_status=$?
2735  if test -s conftest.err; then
2736    sed '10a\
2737... rest of stderr output deleted ...
2738         10q' conftest.err >conftest.er1
2739    cat conftest.er1 >&5
2740  fi
2741  rm -f conftest.er1 conftest.err
2742  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2743  test $ac_status = 0; }
2744done
2745
2746cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2747/* end confdefs.h.  */
2748
2749int
2750main ()
2751{
2752
2753  ;
2754  return 0;
2755}
2756_ACEOF
2757ac_clean_files_save=$ac_clean_files
2758ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2759# Try to create an executable without -o first, disregard a.out.
2760# It will help us diagnose broken compilers, and finding out an intuition
2761# of exeext.
2762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2763$as_echo_n "checking whether the C compiler works... " >&6; }
2764ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2765
2766# The possible output files:
2767ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2768
2769ac_rmfiles=
2770for ac_file in $ac_files
2771do
2772  case $ac_file in
2773    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2774    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2775  esac
2776done
2777rm -f $ac_rmfiles
2778
2779if { { ac_try="$ac_link_default"
2780case "(($ac_try" in
2781  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2782  *) ac_try_echo=$ac_try;;
2783esac
2784eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2785$as_echo "$ac_try_echo"; } >&5
2786  (eval "$ac_link_default") 2>&5
2787  ac_status=$?
2788  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2789  test $ac_status = 0; }; then :
2790  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2791# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2792# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2793# so that the user can short-circuit this test for compilers unknown to
2794# Autoconf.
2795for ac_file in $ac_files ''
2796do
2797  test -f "$ac_file" || continue
2798  case $ac_file in
2799    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2800	;;
2801    [ab].out )
2802	# We found the default executable, but exeext='' is most
2803	# certainly right.
2804	break;;
2805    *.* )
2806	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2807	then :; else
2808	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2809	fi
2810	# We set ac_cv_exeext here because the later test for it is not
2811	# safe: cross compilers may not add the suffix if given an `-o'
2812	# argument, so we may need to know it at that point already.
2813	# Even if this section looks crufty: it has the advantage of
2814	# actually working.
2815	break;;
2816    * )
2817	break;;
2818  esac
2819done
2820test "$ac_cv_exeext" = no && ac_cv_exeext=
2821
2822else
2823  ac_file=''
2824fi
2825if test -z "$ac_file"; then :
2826  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2827$as_echo "no" >&6; }
2828$as_echo "$as_me: failed program was:" >&5
2829sed 's/^/| /' conftest.$ac_ext >&5
2830
2831{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2832$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2833as_fn_error 77 "C compiler cannot create executables
2834See \`config.log' for more details" "$LINENO" 5; }
2835else
2836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2837$as_echo "yes" >&6; }
2838fi
2839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2840$as_echo_n "checking for C compiler default output file name... " >&6; }
2841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2842$as_echo "$ac_file" >&6; }
2843ac_exeext=$ac_cv_exeext
2844
2845rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2846ac_clean_files=$ac_clean_files_save
2847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2848$as_echo_n "checking for suffix of executables... " >&6; }
2849if { { ac_try="$ac_link"
2850case "(($ac_try" in
2851  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2852  *) ac_try_echo=$ac_try;;
2853esac
2854eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2855$as_echo "$ac_try_echo"; } >&5
2856  (eval "$ac_link") 2>&5
2857  ac_status=$?
2858  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2859  test $ac_status = 0; }; then :
2860  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2861# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2862# work properly (i.e., refer to `conftest.exe'), while it won't with
2863# `rm'.
2864for ac_file in conftest.exe conftest conftest.*; do
2865  test -f "$ac_file" || continue
2866  case $ac_file in
2867    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2868    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2869	  break;;
2870    * ) break;;
2871  esac
2872done
2873else
2874  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2875$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2876as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2877See \`config.log' for more details" "$LINENO" 5; }
2878fi
2879rm -f conftest conftest$ac_cv_exeext
2880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2881$as_echo "$ac_cv_exeext" >&6; }
2882
2883rm -f conftest.$ac_ext
2884EXEEXT=$ac_cv_exeext
2885ac_exeext=$EXEEXT
2886cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2887/* end confdefs.h.  */
2888#include <stdio.h>
2889int
2890main ()
2891{
2892FILE *f = fopen ("conftest.out", "w");
2893 return ferror (f) || fclose (f) != 0;
2894
2895  ;
2896  return 0;
2897}
2898_ACEOF
2899ac_clean_files="$ac_clean_files conftest.out"
2900# Check that the compiler produces executables we can run.  If not, either
2901# the compiler is broken, or we cross compile.
2902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2903$as_echo_n "checking whether we are cross compiling... " >&6; }
2904if test "$cross_compiling" != yes; then
2905  { { ac_try="$ac_link"
2906case "(($ac_try" in
2907  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2908  *) ac_try_echo=$ac_try;;
2909esac
2910eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2911$as_echo "$ac_try_echo"; } >&5
2912  (eval "$ac_link") 2>&5
2913  ac_status=$?
2914  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2915  test $ac_status = 0; }
2916  if { ac_try='./conftest$ac_cv_exeext'
2917  { { case "(($ac_try" in
2918  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2919  *) ac_try_echo=$ac_try;;
2920esac
2921eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2922$as_echo "$ac_try_echo"; } >&5
2923  (eval "$ac_try") 2>&5
2924  ac_status=$?
2925  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2926  test $ac_status = 0; }; }; then
2927    cross_compiling=no
2928  else
2929    if test "$cross_compiling" = maybe; then
2930	cross_compiling=yes
2931    else
2932	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2933$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2934as_fn_error $? "cannot run C compiled programs.
2935If you meant to cross compile, use \`--host'.
2936See \`config.log' for more details" "$LINENO" 5; }
2937    fi
2938  fi
2939fi
2940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2941$as_echo "$cross_compiling" >&6; }
2942
2943rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2944ac_clean_files=$ac_clean_files_save
2945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2946$as_echo_n "checking for suffix of object files... " >&6; }
2947if ${ac_cv_objext+:} false; then :
2948  $as_echo_n "(cached) " >&6
2949else
2950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2951/* end confdefs.h.  */
2952
2953int
2954main ()
2955{
2956
2957  ;
2958  return 0;
2959}
2960_ACEOF
2961rm -f conftest.o conftest.obj
2962if { { ac_try="$ac_compile"
2963case "(($ac_try" in
2964  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2965  *) ac_try_echo=$ac_try;;
2966esac
2967eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2968$as_echo "$ac_try_echo"; } >&5
2969  (eval "$ac_compile") 2>&5
2970  ac_status=$?
2971  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2972  test $ac_status = 0; }; then :
2973  for ac_file in conftest.o conftest.obj conftest.*; do
2974  test -f "$ac_file" || continue;
2975  case $ac_file in
2976    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2977    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2978       break;;
2979  esac
2980done
2981else
2982  $as_echo "$as_me: failed program was:" >&5
2983sed 's/^/| /' conftest.$ac_ext >&5
2984
2985{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2986$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2987as_fn_error $? "cannot compute suffix of object files: cannot compile
2988See \`config.log' for more details" "$LINENO" 5; }
2989fi
2990rm -f conftest.$ac_cv_objext conftest.$ac_ext
2991fi
2992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2993$as_echo "$ac_cv_objext" >&6; }
2994OBJEXT=$ac_cv_objext
2995ac_objext=$OBJEXT
2996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2997$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2998if ${ac_cv_c_compiler_gnu+:} false; then :
2999  $as_echo_n "(cached) " >&6
3000else
3001  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3002/* end confdefs.h.  */
3003
3004int
3005main ()
3006{
3007#ifndef __GNUC__
3008       choke me
3009#endif
3010
3011  ;
3012  return 0;
3013}
3014_ACEOF
3015if ac_fn_c_try_compile "$LINENO"; then :
3016  ac_compiler_gnu=yes
3017else
3018  ac_compiler_gnu=no
3019fi
3020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3021ac_cv_c_compiler_gnu=$ac_compiler_gnu
3022
3023fi
3024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3025$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3026if test $ac_compiler_gnu = yes; then
3027  GCC=yes
3028else
3029  GCC=
3030fi
3031ac_test_CFLAGS=${CFLAGS+set}
3032ac_save_CFLAGS=$CFLAGS
3033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3034$as_echo_n "checking whether $CC accepts -g... " >&6; }
3035if ${ac_cv_prog_cc_g+:} false; then :
3036  $as_echo_n "(cached) " >&6
3037else
3038  ac_save_c_werror_flag=$ac_c_werror_flag
3039   ac_c_werror_flag=yes
3040   ac_cv_prog_cc_g=no
3041   CFLAGS="-g"
3042   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3043/* end confdefs.h.  */
3044
3045int
3046main ()
3047{
3048
3049  ;
3050  return 0;
3051}
3052_ACEOF
3053if ac_fn_c_try_compile "$LINENO"; then :
3054  ac_cv_prog_cc_g=yes
3055else
3056  CFLAGS=""
3057      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3058/* end confdefs.h.  */
3059
3060int
3061main ()
3062{
3063
3064  ;
3065  return 0;
3066}
3067_ACEOF
3068if ac_fn_c_try_compile "$LINENO"; then :
3069
3070else
3071  ac_c_werror_flag=$ac_save_c_werror_flag
3072	 CFLAGS="-g"
3073	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3074/* end confdefs.h.  */
3075
3076int
3077main ()
3078{
3079
3080  ;
3081  return 0;
3082}
3083_ACEOF
3084if ac_fn_c_try_compile "$LINENO"; then :
3085  ac_cv_prog_cc_g=yes
3086fi
3087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3088fi
3089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3090fi
3091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3092   ac_c_werror_flag=$ac_save_c_werror_flag
3093fi
3094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3095$as_echo "$ac_cv_prog_cc_g" >&6; }
3096if test "$ac_test_CFLAGS" = set; then
3097  CFLAGS=$ac_save_CFLAGS
3098elif test $ac_cv_prog_cc_g = yes; then
3099  if test "$GCC" = yes; then
3100    CFLAGS="-g -O2"
3101  else
3102    CFLAGS="-g"
3103  fi
3104else
3105  if test "$GCC" = yes; then
3106    CFLAGS="-O2"
3107  else
3108    CFLAGS=
3109  fi
3110fi
3111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3112$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3113if ${ac_cv_prog_cc_c89+:} false; then :
3114  $as_echo_n "(cached) " >&6
3115else
3116  ac_cv_prog_cc_c89=no
3117ac_save_CC=$CC
3118cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3119/* end confdefs.h.  */
3120#include <stdarg.h>
3121#include <stdio.h>
3122#include <sys/types.h>
3123#include <sys/stat.h>
3124/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3125struct buf { int x; };
3126FILE * (*rcsopen) (struct buf *, struct stat *, int);
3127static char *e (p, i)
3128     char **p;
3129     int i;
3130{
3131  return p[i];
3132}
3133static char *f (char * (*g) (char **, int), char **p, ...)
3134{
3135  char *s;
3136  va_list v;
3137  va_start (v,p);
3138  s = g (p, va_arg (v,int));
3139  va_end (v);
3140  return s;
3141}
3142
3143/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3144   function prototypes and stuff, but not '\xHH' hex character constants.
3145   These don't provoke an error unfortunately, instead are silently treated
3146   as 'x'.  The following induces an error, until -std is added to get
3147   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3148   array size at least.  It's necessary to write '\x00'==0 to get something
3149   that's true only with -std.  */
3150int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3151
3152/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3153   inside strings and character constants.  */
3154#define FOO(x) 'x'
3155int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3156
3157int test (int i, double x);
3158struct s1 {int (*f) (int a);};
3159struct s2 {int (*f) (double a);};
3160int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3161int argc;
3162char **argv;
3163int
3164main ()
3165{
3166return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3167  ;
3168  return 0;
3169}
3170_ACEOF
3171for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3172	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3173do
3174  CC="$ac_save_CC $ac_arg"
3175  if ac_fn_c_try_compile "$LINENO"; then :
3176  ac_cv_prog_cc_c89=$ac_arg
3177fi
3178rm -f core conftest.err conftest.$ac_objext
3179  test "x$ac_cv_prog_cc_c89" != "xno" && break
3180done
3181rm -f conftest.$ac_ext
3182CC=$ac_save_CC
3183
3184fi
3185# AC_CACHE_VAL
3186case "x$ac_cv_prog_cc_c89" in
3187  x)
3188    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3189$as_echo "none needed" >&6; } ;;
3190  xno)
3191    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3192$as_echo "unsupported" >&6; } ;;
3193  *)
3194    CC="$CC $ac_cv_prog_cc_c89"
3195    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3196$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3197esac
3198if test "x$ac_cv_prog_cc_c89" != xno; then :
3199
3200fi
3201
3202ac_ext=c
3203ac_cpp='$CPP $CPPFLAGS'
3204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3206ac_compiler_gnu=$ac_cv_c_compiler_gnu
3207
3208   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3209$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3210if ${ac_cv_prog_cc_c99+:} false; then :
3211  $as_echo_n "(cached) " >&6
3212else
3213  ac_cv_prog_cc_c99=no
3214ac_save_CC=$CC
3215cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3216/* end confdefs.h.  */
3217#include <stdarg.h>
3218#include <stdbool.h>
3219#include <stdlib.h>
3220#include <wchar.h>
3221#include <stdio.h>
3222
3223// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3224#define debug(...) fprintf (stderr, __VA_ARGS__)
3225#define showlist(...) puts (#__VA_ARGS__)
3226#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3227static void
3228test_varargs_macros (void)
3229{
3230  int x = 1234;
3231  int y = 5678;
3232  debug ("Flag");
3233  debug ("X = %d\n", x);
3234  showlist (The first, second, and third items.);
3235  report (x>y, "x is %d but y is %d", x, y);
3236}
3237
3238// Check long long types.
3239#define BIG64 18446744073709551615ull
3240#define BIG32 4294967295ul
3241#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3242#if !BIG_OK
3243  your preprocessor is broken;
3244#endif
3245#if BIG_OK
3246#else
3247  your preprocessor is broken;
3248#endif
3249static long long int bignum = -9223372036854775807LL;
3250static unsigned long long int ubignum = BIG64;
3251
3252struct incomplete_array
3253{
3254  int datasize;
3255  double data[];
3256};
3257
3258struct named_init {
3259  int number;
3260  const wchar_t *name;
3261  double average;
3262};
3263
3264typedef const char *ccp;
3265
3266static inline int
3267test_restrict (ccp restrict text)
3268{
3269  // See if C++-style comments work.
3270  // Iterate through items via the restricted pointer.
3271  // Also check for declarations in for loops.
3272  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3273    continue;
3274  return 0;
3275}
3276
3277// Check varargs and va_copy.
3278static void
3279test_varargs (const char *format, ...)
3280{
3281  va_list args;
3282  va_start (args, format);
3283  va_list args_copy;
3284  va_copy (args_copy, args);
3285
3286  const char *str;
3287  int number;
3288  float fnumber;
3289
3290  while (*format)
3291    {
3292      switch (*format++)
3293	{
3294	case 's': // string
3295	  str = va_arg (args_copy, const char *);
3296	  break;
3297	case 'd': // int
3298	  number = va_arg (args_copy, int);
3299	  break;
3300	case 'f': // float
3301	  fnumber = va_arg (args_copy, double);
3302	  break;
3303	default:
3304	  break;
3305	}
3306    }
3307  va_end (args_copy);
3308  va_end (args);
3309}
3310
3311int
3312main ()
3313{
3314
3315  // Check bool.
3316  _Bool success = false;
3317
3318  // Check restrict.
3319  if (test_restrict ("String literal") == 0)
3320    success = true;
3321  char *restrict newvar = "Another string";
3322
3323  // Check varargs.
3324  test_varargs ("s, d' f .", "string", 65, 34.234);
3325  test_varargs_macros ();
3326
3327  // Check flexible array members.
3328  struct incomplete_array *ia =
3329    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3330  ia->datasize = 10;
3331  for (int i = 0; i < ia->datasize; ++i)
3332    ia->data[i] = i * 1.234;
3333
3334  // Check named initializers.
3335  struct named_init ni = {
3336    .number = 34,
3337    .name = L"Test wide string",
3338    .average = 543.34343,
3339  };
3340
3341  ni.number = 58;
3342
3343  int dynamic_array[ni.number];
3344  dynamic_array[ni.number - 1] = 543;
3345
3346  // work around unused variable warnings
3347  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3348	  || dynamic_array[ni.number - 1] != 543);
3349
3350  ;
3351  return 0;
3352}
3353_ACEOF
3354for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3355do
3356  CC="$ac_save_CC $ac_arg"
3357  if ac_fn_c_try_compile "$LINENO"; then :
3358  ac_cv_prog_cc_c99=$ac_arg
3359fi
3360rm -f core conftest.err conftest.$ac_objext
3361  test "x$ac_cv_prog_cc_c99" != "xno" && break
3362done
3363rm -f conftest.$ac_ext
3364CC=$ac_save_CC
3365
3366fi
3367# AC_CACHE_VAL
3368case "x$ac_cv_prog_cc_c99" in
3369  x)
3370    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3371$as_echo "none needed" >&6; } ;;
3372  xno)
3373    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3374$as_echo "unsupported" >&6; } ;;
3375  *)
3376    CC="$CC $ac_cv_prog_cc_c99"
3377    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3378$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3379esac
3380if test "x$ac_cv_prog_cc_c99" != xno; then :
3381
3382fi
3383
3384
3385
3386ac_ext=c
3387ac_cpp='$CPP $CPPFLAGS'
3388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3390ac_compiler_gnu=$ac_cv_c_compiler_gnu
3391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3392$as_echo_n "checking how to run the C preprocessor... " >&6; }
3393# On Suns, sometimes $CPP names a directory.
3394if test -n "$CPP" && test -d "$CPP"; then
3395  CPP=
3396fi
3397if test -z "$CPP"; then
3398  if ${ac_cv_prog_CPP+:} false; then :
3399  $as_echo_n "(cached) " >&6
3400else
3401      # Double quotes because CPP needs to be expanded
3402    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3403    do
3404      ac_preproc_ok=false
3405for ac_c_preproc_warn_flag in '' yes
3406do
3407  # Use a header file that comes with gcc, so configuring glibc
3408  # with a fresh cross-compiler works.
3409  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3410  # <limits.h> exists even on freestanding compilers.
3411  # On the NeXT, cc -E runs the code through the compiler's parser,
3412  # not just through cpp. "Syntax error" is here to catch this case.
3413  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3414/* end confdefs.h.  */
3415#ifdef __STDC__
3416# include <limits.h>
3417#else
3418# include <assert.h>
3419#endif
3420		     Syntax error
3421_ACEOF
3422if ac_fn_c_try_cpp "$LINENO"; then :
3423
3424else
3425  # Broken: fails on valid input.
3426continue
3427fi
3428rm -f conftest.err conftest.i conftest.$ac_ext
3429
3430  # OK, works on sane cases.  Now check whether nonexistent headers
3431  # can be detected and how.
3432  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3433/* end confdefs.h.  */
3434#include <ac_nonexistent.h>
3435_ACEOF
3436if ac_fn_c_try_cpp "$LINENO"; then :
3437  # Broken: success on invalid input.
3438continue
3439else
3440  # Passes both tests.
3441ac_preproc_ok=:
3442break
3443fi
3444rm -f conftest.err conftest.i conftest.$ac_ext
3445
3446done
3447# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3448rm -f conftest.i conftest.err conftest.$ac_ext
3449if $ac_preproc_ok; then :
3450  break
3451fi
3452
3453    done
3454    ac_cv_prog_CPP=$CPP
3455
3456fi
3457  CPP=$ac_cv_prog_CPP
3458else
3459  ac_cv_prog_CPP=$CPP
3460fi
3461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3462$as_echo "$CPP" >&6; }
3463ac_preproc_ok=false
3464for ac_c_preproc_warn_flag in '' yes
3465do
3466  # Use a header file that comes with gcc, so configuring glibc
3467  # with a fresh cross-compiler works.
3468  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3469  # <limits.h> exists even on freestanding compilers.
3470  # On the NeXT, cc -E runs the code through the compiler's parser,
3471  # not just through cpp. "Syntax error" is here to catch this case.
3472  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3473/* end confdefs.h.  */
3474#ifdef __STDC__
3475# include <limits.h>
3476#else
3477# include <assert.h>
3478#endif
3479		     Syntax error
3480_ACEOF
3481if ac_fn_c_try_cpp "$LINENO"; then :
3482
3483else
3484  # Broken: fails on valid input.
3485continue
3486fi
3487rm -f conftest.err conftest.i conftest.$ac_ext
3488
3489  # OK, works on sane cases.  Now check whether nonexistent headers
3490  # can be detected and how.
3491  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3492/* end confdefs.h.  */
3493#include <ac_nonexistent.h>
3494_ACEOF
3495if ac_fn_c_try_cpp "$LINENO"; then :
3496  # Broken: success on invalid input.
3497continue
3498else
3499  # Passes both tests.
3500ac_preproc_ok=:
3501break
3502fi
3503rm -f conftest.err conftest.i conftest.$ac_ext
3504
3505done
3506# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3507rm -f conftest.i conftest.err conftest.$ac_ext
3508if $ac_preproc_ok; then :
3509
3510else
3511  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3512$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3513as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3514See \`config.log' for more details" "$LINENO" 5; }
3515fi
3516
3517ac_ext=c
3518ac_cpp='$CPP $CPPFLAGS'
3519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3521ac_compiler_gnu=$ac_cv_c_compiler_gnu
3522
3523
3524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3525$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3526if ${ac_cv_path_GREP+:} false; then :
3527  $as_echo_n "(cached) " >&6
3528else
3529  if test -z "$GREP"; then
3530  ac_path_GREP_found=false
3531  # Loop through the user's path and test for each of PROGNAME-LIST
3532  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3533for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3534do
3535  IFS=$as_save_IFS
3536  test -z "$as_dir" && as_dir=.
3537    for ac_prog in grep ggrep; do
3538    for ac_exec_ext in '' $ac_executable_extensions; do
3539      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3540      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3541# Check for GNU ac_path_GREP and select it if it is found.
3542  # Check for GNU $ac_path_GREP
3543case `"$ac_path_GREP" --version 2>&1` in
3544*GNU*)
3545  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3546*)
3547  ac_count=0
3548  $as_echo_n 0123456789 >"conftest.in"
3549  while :
3550  do
3551    cat "conftest.in" "conftest.in" >"conftest.tmp"
3552    mv "conftest.tmp" "conftest.in"
3553    cp "conftest.in" "conftest.nl"
3554    $as_echo 'GREP' >> "conftest.nl"
3555    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3556    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3557    as_fn_arith $ac_count + 1 && ac_count=$as_val
3558    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3559      # Best one so far, save it but keep looking for a better one
3560      ac_cv_path_GREP="$ac_path_GREP"
3561      ac_path_GREP_max=$ac_count
3562    fi
3563    # 10*(2^10) chars as input seems more than enough
3564    test $ac_count -gt 10 && break
3565  done
3566  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3567esac
3568
3569      $ac_path_GREP_found && break 3
3570    done
3571  done
3572  done
3573IFS=$as_save_IFS
3574  if test -z "$ac_cv_path_GREP"; then
3575    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3576  fi
3577else
3578  ac_cv_path_GREP=$GREP
3579fi
3580
3581fi
3582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3583$as_echo "$ac_cv_path_GREP" >&6; }
3584 GREP="$ac_cv_path_GREP"
3585
3586
3587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3588$as_echo_n "checking for egrep... " >&6; }
3589if ${ac_cv_path_EGREP+:} false; then :
3590  $as_echo_n "(cached) " >&6
3591else
3592  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3593   then ac_cv_path_EGREP="$GREP -E"
3594   else
3595     if test -z "$EGREP"; then
3596  ac_path_EGREP_found=false
3597  # Loop through the user's path and test for each of PROGNAME-LIST
3598  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3600do
3601  IFS=$as_save_IFS
3602  test -z "$as_dir" && as_dir=.
3603    for ac_prog in egrep; do
3604    for ac_exec_ext in '' $ac_executable_extensions; do
3605      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3606      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3607# Check for GNU ac_path_EGREP and select it if it is found.
3608  # Check for GNU $ac_path_EGREP
3609case `"$ac_path_EGREP" --version 2>&1` in
3610*GNU*)
3611  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3612*)
3613  ac_count=0
3614  $as_echo_n 0123456789 >"conftest.in"
3615  while :
3616  do
3617    cat "conftest.in" "conftest.in" >"conftest.tmp"
3618    mv "conftest.tmp" "conftest.in"
3619    cp "conftest.in" "conftest.nl"
3620    $as_echo 'EGREP' >> "conftest.nl"
3621    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3622    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3623    as_fn_arith $ac_count + 1 && ac_count=$as_val
3624    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3625      # Best one so far, save it but keep looking for a better one
3626      ac_cv_path_EGREP="$ac_path_EGREP"
3627      ac_path_EGREP_max=$ac_count
3628    fi
3629    # 10*(2^10) chars as input seems more than enough
3630    test $ac_count -gt 10 && break
3631  done
3632  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3633esac
3634
3635      $ac_path_EGREP_found && break 3
3636    done
3637  done
3638  done
3639IFS=$as_save_IFS
3640  if test -z "$ac_cv_path_EGREP"; then
3641    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3642  fi
3643else
3644  ac_cv_path_EGREP=$EGREP
3645fi
3646
3647   fi
3648fi
3649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3650$as_echo "$ac_cv_path_EGREP" >&6; }
3651 EGREP="$ac_cv_path_EGREP"
3652
3653
3654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3655$as_echo_n "checking for ANSI C header files... " >&6; }
3656if ${ac_cv_header_stdc+:} false; then :
3657  $as_echo_n "(cached) " >&6
3658else
3659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3660/* end confdefs.h.  */
3661#include <stdlib.h>
3662#include <stdarg.h>
3663#include <string.h>
3664#include <float.h>
3665
3666int
3667main ()
3668{
3669
3670  ;
3671  return 0;
3672}
3673_ACEOF
3674if ac_fn_c_try_compile "$LINENO"; then :
3675  ac_cv_header_stdc=yes
3676else
3677  ac_cv_header_stdc=no
3678fi
3679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3680
3681if test $ac_cv_header_stdc = yes; then
3682  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3683  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3684/* end confdefs.h.  */
3685#include <string.h>
3686
3687_ACEOF
3688if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3689  $EGREP "memchr" >/dev/null 2>&1; then :
3690
3691else
3692  ac_cv_header_stdc=no
3693fi
3694rm -f conftest*
3695
3696fi
3697
3698if test $ac_cv_header_stdc = yes; then
3699  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3700  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3701/* end confdefs.h.  */
3702#include <stdlib.h>
3703
3704_ACEOF
3705if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3706  $EGREP "free" >/dev/null 2>&1; then :
3707
3708else
3709  ac_cv_header_stdc=no
3710fi
3711rm -f conftest*
3712
3713fi
3714
3715if test $ac_cv_header_stdc = yes; then
3716  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3717  if test "$cross_compiling" = yes; then :
3718  :
3719else
3720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721/* end confdefs.h.  */
3722#include <ctype.h>
3723#include <stdlib.h>
3724#if ((' ' & 0x0FF) == 0x020)
3725# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3726# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3727#else
3728# define ISLOWER(c) \
3729		   (('a' <= (c) && (c) <= 'i') \
3730		     || ('j' <= (c) && (c) <= 'r') \
3731		     || ('s' <= (c) && (c) <= 'z'))
3732# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3733#endif
3734
3735#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3736int
3737main ()
3738{
3739  int i;
3740  for (i = 0; i < 256; i++)
3741    if (XOR (islower (i), ISLOWER (i))
3742	|| toupper (i) != TOUPPER (i))
3743      return 2;
3744  return 0;
3745}
3746_ACEOF
3747if ac_fn_c_try_run "$LINENO"; then :
3748
3749else
3750  ac_cv_header_stdc=no
3751fi
3752rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3753  conftest.$ac_objext conftest.beam conftest.$ac_ext
3754fi
3755
3756fi
3757fi
3758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3759$as_echo "$ac_cv_header_stdc" >&6; }
3760if test $ac_cv_header_stdc = yes; then
3761
3762$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3763
3764fi
3765
3766# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3767for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3768		  inttypes.h stdint.h unistd.h
3769do :
3770  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3771ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3772"
3773if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3774  cat >>confdefs.h <<_ACEOF
3775#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3776_ACEOF
3777
3778fi
3779
3780done
3781
3782
3783
3784
3785ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
3786if test "x$ac_cv_have_decl___clang__" = xyes; then :
3787  CLANGCC="yes"
3788else
3789  CLANGCC="no"
3790fi
3791
3792ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
3793if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
3794  INTELCC="yes"
3795else
3796  INTELCC="no"
3797fi
3798
3799ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
3800if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
3801  SUNCC="yes"
3802else
3803  SUNCC="no"
3804fi
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3815	if test -n "$ac_tool_prefix"; then
3816  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3817set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3819$as_echo_n "checking for $ac_word... " >&6; }
3820if ${ac_cv_path_PKG_CONFIG+:} false; then :
3821  $as_echo_n "(cached) " >&6
3822else
3823  case $PKG_CONFIG in
3824  [\\/]* | ?:[\\/]*)
3825  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3826  ;;
3827  *)
3828  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3829for as_dir in $PATH
3830do
3831  IFS=$as_save_IFS
3832  test -z "$as_dir" && as_dir=.
3833    for ac_exec_ext in '' $ac_executable_extensions; do
3834  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3835    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3836    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3837    break 2
3838  fi
3839done
3840  done
3841IFS=$as_save_IFS
3842
3843  ;;
3844esac
3845fi
3846PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3847if test -n "$PKG_CONFIG"; then
3848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3849$as_echo "$PKG_CONFIG" >&6; }
3850else
3851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3852$as_echo "no" >&6; }
3853fi
3854
3855
3856fi
3857if test -z "$ac_cv_path_PKG_CONFIG"; then
3858  ac_pt_PKG_CONFIG=$PKG_CONFIG
3859  # Extract the first word of "pkg-config", so it can be a program name with args.
3860set dummy pkg-config; ac_word=$2
3861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3862$as_echo_n "checking for $ac_word... " >&6; }
3863if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
3864  $as_echo_n "(cached) " >&6
3865else
3866  case $ac_pt_PKG_CONFIG in
3867  [\\/]* | ?:[\\/]*)
3868  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3869  ;;
3870  *)
3871  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3872for as_dir in $PATH
3873do
3874  IFS=$as_save_IFS
3875  test -z "$as_dir" && as_dir=.
3876    for ac_exec_ext in '' $ac_executable_extensions; do
3877  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3878    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3879    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3880    break 2
3881  fi
3882done
3883  done
3884IFS=$as_save_IFS
3885
3886  ;;
3887esac
3888fi
3889ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3890if test -n "$ac_pt_PKG_CONFIG"; then
3891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3892$as_echo "$ac_pt_PKG_CONFIG" >&6; }
3893else
3894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3895$as_echo "no" >&6; }
3896fi
3897
3898  if test "x$ac_pt_PKG_CONFIG" = x; then
3899    PKG_CONFIG=""
3900  else
3901    case $cross_compiling:$ac_tool_warned in
3902yes:)
3903{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3904$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3905ac_tool_warned=yes ;;
3906esac
3907    PKG_CONFIG=$ac_pt_PKG_CONFIG
3908  fi
3909else
3910  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3911fi
3912
3913fi
3914if test -n "$PKG_CONFIG"; then
3915	_pkg_min_version=0.9.0
3916	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3917$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3918	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3919		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3920$as_echo "yes" >&6; }
3921	else
3922		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3923$as_echo "no" >&6; }
3924		PKG_CONFIG=""
3925	fi
3926fi
3927# Make sure we can run config.sub.
3928$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3929  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3930
3931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3932$as_echo_n "checking build system type... " >&6; }
3933if ${ac_cv_build+:} false; then :
3934  $as_echo_n "(cached) " >&6
3935else
3936  ac_build_alias=$build_alias
3937test "x$ac_build_alias" = x &&
3938  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3939test "x$ac_build_alias" = x &&
3940  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3941ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3942  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3943
3944fi
3945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3946$as_echo "$ac_cv_build" >&6; }
3947case $ac_cv_build in
3948*-*-*) ;;
3949*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3950esac
3951build=$ac_cv_build
3952ac_save_IFS=$IFS; IFS='-'
3953set x $ac_cv_build
3954shift
3955build_cpu=$1
3956build_vendor=$2
3957shift; shift
3958# Remember, the first character of IFS is used to create $*,
3959# except with old shells:
3960build_os=$*
3961IFS=$ac_save_IFS
3962case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3963
3964
3965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3966$as_echo_n "checking host system type... " >&6; }
3967if ${ac_cv_host+:} false; then :
3968  $as_echo_n "(cached) " >&6
3969else
3970  if test "x$host_alias" = x; then
3971  ac_cv_host=$ac_cv_build
3972else
3973  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3974    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3975fi
3976
3977fi
3978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3979$as_echo "$ac_cv_host" >&6; }
3980case $ac_cv_host in
3981*-*-*) ;;
3982*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3983esac
3984host=$ac_cv_host
3985ac_save_IFS=$IFS; IFS='-'
3986set x $ac_cv_host
3987shift
3988host_cpu=$1
3989host_vendor=$2
3990shift; shift
3991# Remember, the first character of IFS is used to create $*,
3992# except with old shells:
3993host_os=$*
3994IFS=$ac_save_IFS
3995case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3996
3997
3998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3999$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4000if ${ac_cv_path_SED+:} false; then :
4001  $as_echo_n "(cached) " >&6
4002else
4003            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4004     for ac_i in 1 2 3 4 5 6 7; do
4005       ac_script="$ac_script$as_nl$ac_script"
4006     done
4007     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4008     { ac_script=; unset ac_script;}
4009     if test -z "$SED"; then
4010  ac_path_SED_found=false
4011  # Loop through the user's path and test for each of PROGNAME-LIST
4012  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013for as_dir in $PATH
4014do
4015  IFS=$as_save_IFS
4016  test -z "$as_dir" && as_dir=.
4017    for ac_prog in sed gsed; do
4018    for ac_exec_ext in '' $ac_executable_extensions; do
4019      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4020      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4021# Check for GNU ac_path_SED and select it if it is found.
4022  # Check for GNU $ac_path_SED
4023case `"$ac_path_SED" --version 2>&1` in
4024*GNU*)
4025  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4026*)
4027  ac_count=0
4028  $as_echo_n 0123456789 >"conftest.in"
4029  while :
4030  do
4031    cat "conftest.in" "conftest.in" >"conftest.tmp"
4032    mv "conftest.tmp" "conftest.in"
4033    cp "conftest.in" "conftest.nl"
4034    $as_echo '' >> "conftest.nl"
4035    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4036    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4037    as_fn_arith $ac_count + 1 && ac_count=$as_val
4038    if test $ac_count -gt ${ac_path_SED_max-0}; then
4039      # Best one so far, save it but keep looking for a better one
4040      ac_cv_path_SED="$ac_path_SED"
4041      ac_path_SED_max=$ac_count
4042    fi
4043    # 10*(2^10) chars as input seems more than enough
4044    test $ac_count -gt 10 && break
4045  done
4046  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4047esac
4048
4049      $ac_path_SED_found && break 3
4050    done
4051  done
4052  done
4053IFS=$as_save_IFS
4054  if test -z "$ac_cv_path_SED"; then
4055    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4056  fi
4057else
4058  ac_cv_path_SED=$SED
4059fi
4060
4061fi
4062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4063$as_echo "$ac_cv_path_SED" >&6; }
4064 SED="$ac_cv_path_SED"
4065  rm -f conftest.sed
4066
4067
4068
4069
4070
4071
4072if  test "x$GCC" = xyes ; then
4073    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4074-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4075-Wbad-function-cast -Wformat=2"
4076    case `$CC -dumpversion` in
4077    3.4.* | 4.*)
4078	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4079	;;
4080    esac
4081else
4082    if test "x$SUNCC" = "xyes"; then
4083	CWARNFLAGS="-v"
4084    fi
4085fi
4086
4087
4088
4089# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
4090
4091
4092
4093
4094# Check whether --enable-strict-compilation was given.
4095if test "${enable_strict_compilation+set}" = set; then :
4096  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4097else
4098  STRICT_COMPILE=no
4099fi
4100
4101if test "x$GCC" = xyes ; then
4102    STRICT_CFLAGS="-pedantic -Werror"
4103    # Add -Werror=attributes if supported (gcc 4.2 & later)
4104    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
4105$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
4106    save_CFLAGS="$CFLAGS"
4107    CFLAGS="$CFLAGS $STRICT_CFLAGS -Werror=attributes"
4108    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109/* end confdefs.h.  */
4110return 0;
4111_ACEOF
4112if ac_fn_c_try_compile "$LINENO"; then :
4113  STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
4114		       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4115$as_echo "yes" >&6; }
4116else
4117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4118$as_echo "no" >&6; }
4119fi
4120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4121    CFLAGS="$save_CFLAGS"
4122elif test "x$SUNCC" = "xyes"; then
4123    STRICT_CFLAGS="-errwarn"
4124elif test "x$INTELCC" = "xyes"; then
4125    STRICT_CFLAGS="-Werror"
4126fi
4127if test "x$STRICT_COMPILE" = "xyes"; then
4128    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4129fi
4130
4131
4132
4133
4134
4135cat >>confdefs.h <<_ACEOF
4136#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4137_ACEOF
4138
4139	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4140	if test "x$PVM" = "x"; then
4141		PVM="0"
4142	fi
4143
4144cat >>confdefs.h <<_ACEOF
4145#define PACKAGE_VERSION_MINOR $PVM
4146_ACEOF
4147
4148	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
4149	if test "x$PVP" = "x"; then
4150		PVP="0"
4151	fi
4152
4153cat >>confdefs.h <<_ACEOF
4154#define PACKAGE_VERSION_PATCHLEVEL $PVP
4155_ACEOF
4156
4157
4158
4159CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
4160mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
4161|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
4162echo 'git directory not found: installing possibly empty changelog.' >&2)"
4163
4164
4165
4166
4167macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
4168INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
4169mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
4170|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
4171echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
4172
4173
4174
4175
4176
4177
4178if test x$APP_MAN_SUFFIX = x    ; then
4179    APP_MAN_SUFFIX=1
4180fi
4181if test x$APP_MAN_DIR = x    ; then
4182    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4183fi
4184
4185if test x$LIB_MAN_SUFFIX = x    ; then
4186    LIB_MAN_SUFFIX=3
4187fi
4188if test x$LIB_MAN_DIR = x    ; then
4189    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
4190fi
4191
4192if test x$FILE_MAN_SUFFIX = x    ; then
4193    case $host_os in
4194	solaris*)	FILE_MAN_SUFFIX=4  ;;
4195	*)		FILE_MAN_SUFFIX=5  ;;
4196    esac
4197fi
4198if test x$FILE_MAN_DIR = x    ; then
4199    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
4200fi
4201
4202if test x$MISC_MAN_SUFFIX = x    ; then
4203    case $host_os in
4204	solaris*)	MISC_MAN_SUFFIX=5  ;;
4205	*)		MISC_MAN_SUFFIX=7  ;;
4206    esac
4207fi
4208if test x$MISC_MAN_DIR = x    ; then
4209    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
4210fi
4211
4212if test x$DRIVER_MAN_SUFFIX = x    ; then
4213    case $host_os in
4214	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
4215	*)		DRIVER_MAN_SUFFIX=4  ;;
4216    esac
4217fi
4218if test x$DRIVER_MAN_DIR = x    ; then
4219    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
4220fi
4221
4222if test x$ADMIN_MAN_SUFFIX = x    ; then
4223    case $host_os in
4224	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
4225	*)		ADMIN_MAN_SUFFIX=8  ;;
4226    esac
4227fi
4228if test x$ADMIN_MAN_DIR = x    ; then
4229    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
4230fi
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246XORG_MAN_PAGE="X Version 11"
4247
4248MAN_SUBSTS="\
4249	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4250	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4251	-e 's|__xservername__|Xorg|g' \
4252	-e 's|__xconfigfile__|xorg.conf|g' \
4253	-e 's|__projectroot__|\$(prefix)|g' \
4254	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
4255	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
4256	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
4257	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
4258	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
4259	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
4260	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
4261
4262
4263
4264# Check whether --enable-silent-rules was given.
4265if test "${enable_silent_rules+set}" = set; then :
4266  enableval=$enable_silent_rules;
4267fi
4268
4269case $enable_silent_rules in
4270yes) AM_DEFAULT_VERBOSITY=0;;
4271no)  AM_DEFAULT_VERBOSITY=1;;
4272*)   AM_DEFAULT_VERBOSITY=0;;
4273esac
4274AM_BACKSLASH='\'
4275
4276
4277
4278ac_aux_dir=
4279for ac_dir in . "$srcdir"/.; do
4280  if test -f "$ac_dir/install-sh"; then
4281    ac_aux_dir=$ac_dir
4282    ac_install_sh="$ac_aux_dir/install-sh -c"
4283    break
4284  elif test -f "$ac_dir/install.sh"; then
4285    ac_aux_dir=$ac_dir
4286    ac_install_sh="$ac_aux_dir/install.sh -c"
4287    break
4288  elif test -f "$ac_dir/shtool"; then
4289    ac_aux_dir=$ac_dir
4290    ac_install_sh="$ac_aux_dir/shtool install -c"
4291    break
4292  fi
4293done
4294if test -z "$ac_aux_dir"; then
4295  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
4296fi
4297
4298# These three variables are undocumented and unsupported,
4299# and are intended to be withdrawn in a future Autoconf release.
4300# They can cause serious problems if a builder's source tree is in a directory
4301# whose full name contains unusual characters.
4302ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4303ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4304ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4305
4306
4307
4308# Initialize Automake
4309am__api_version='1.11'
4310
4311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4312$as_echo_n "checking whether build environment is sane... " >&6; }
4313# Just in case
4314sleep 1
4315echo timestamp > conftest.file
4316# Reject unsafe characters in $srcdir or the absolute working directory
4317# name.  Accept space and tab only in the latter.
4318am_lf='
4319'
4320case `pwd` in
4321  *[\\\"\#\$\&\'\`$am_lf]*)
4322    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4323esac
4324case $srcdir in
4325  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
4326    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4327esac
4328
4329# Do `set' in a subshell so we don't clobber the current shell's
4330# arguments.  Must try -L first in case configure is actually a
4331# symlink; some systems play weird games with the mod time of symlinks
4332# (eg FreeBSD returns the mod time of the symlink's containing
4333# directory).
4334if (
4335   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4336   if test "$*" = "X"; then
4337      # -L didn't work.
4338      set X `ls -t "$srcdir/configure" conftest.file`
4339   fi
4340   rm -f conftest.file
4341   if test "$*" != "X $srcdir/configure conftest.file" \
4342      && test "$*" != "X conftest.file $srcdir/configure"; then
4343
4344      # If neither matched, then we have a broken ls.  This can happen
4345      # if, for instance, CONFIG_SHELL is bash and it inherits a
4346      # broken ls alias from the environment.  This has actually
4347      # happened.  Such a system could not be considered "sane".
4348      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4349alias in your environment" "$LINENO" 5
4350   fi
4351
4352   test "$2" = conftest.file
4353   )
4354then
4355   # Ok.
4356   :
4357else
4358   as_fn_error $? "newly created file is older than distributed files!
4359Check your system clock" "$LINENO" 5
4360fi
4361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4362$as_echo "yes" >&6; }
4363test "$program_prefix" != NONE &&
4364  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4365# Use a double $ so make ignores it.
4366test "$program_suffix" != NONE &&
4367  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4368# Double any \ or $.
4369# By default was `s,x,x', remove it if useless.
4370ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4371program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4372
4373# expand $ac_aux_dir to an absolute path
4374am_aux_dir=`cd $ac_aux_dir && pwd`
4375
4376if test x"${MISSING+set}" != xset; then
4377  case $am_aux_dir in
4378  *\ * | *\	*)
4379    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4380  *)
4381    MISSING="\${SHELL} $am_aux_dir/missing" ;;
4382  esac
4383fi
4384# Use eval to expand $SHELL
4385if eval "$MISSING --run true"; then
4386  am_missing_run="$MISSING --run "
4387else
4388  am_missing_run=
4389  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4390$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4391fi
4392
4393if test x"${install_sh}" != xset; then
4394  case $am_aux_dir in
4395  *\ * | *\	*)
4396    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4397  *)
4398    install_sh="\${SHELL} $am_aux_dir/install-sh"
4399  esac
4400fi
4401
4402# Installed binaries are usually stripped using `strip' when the user
4403# run `make install-strip'.  However `strip' might not be the right
4404# tool to use in cross-compilation environments, therefore Automake
4405# will honor the `STRIP' environment variable to overrule this program.
4406if test "$cross_compiling" != no; then
4407  if test -n "$ac_tool_prefix"; then
4408  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4409set dummy ${ac_tool_prefix}strip; ac_word=$2
4410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4411$as_echo_n "checking for $ac_word... " >&6; }
4412if ${ac_cv_prog_STRIP+:} false; then :
4413  $as_echo_n "(cached) " >&6
4414else
4415  if test -n "$STRIP"; then
4416  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4417else
4418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419for as_dir in $PATH
4420do
4421  IFS=$as_save_IFS
4422  test -z "$as_dir" && as_dir=.
4423    for ac_exec_ext in '' $ac_executable_extensions; do
4424  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4425    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4426    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4427    break 2
4428  fi
4429done
4430  done
4431IFS=$as_save_IFS
4432
4433fi
4434fi
4435STRIP=$ac_cv_prog_STRIP
4436if test -n "$STRIP"; then
4437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4438$as_echo "$STRIP" >&6; }
4439else
4440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4441$as_echo "no" >&6; }
4442fi
4443
4444
4445fi
4446if test -z "$ac_cv_prog_STRIP"; then
4447  ac_ct_STRIP=$STRIP
4448  # Extract the first word of "strip", so it can be a program name with args.
4449set dummy strip; ac_word=$2
4450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4451$as_echo_n "checking for $ac_word... " >&6; }
4452if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4453  $as_echo_n "(cached) " >&6
4454else
4455  if test -n "$ac_ct_STRIP"; then
4456  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4457else
4458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4459for as_dir in $PATH
4460do
4461  IFS=$as_save_IFS
4462  test -z "$as_dir" && as_dir=.
4463    for ac_exec_ext in '' $ac_executable_extensions; do
4464  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4465    ac_cv_prog_ac_ct_STRIP="strip"
4466    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4467    break 2
4468  fi
4469done
4470  done
4471IFS=$as_save_IFS
4472
4473fi
4474fi
4475ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4476if test -n "$ac_ct_STRIP"; then
4477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4478$as_echo "$ac_ct_STRIP" >&6; }
4479else
4480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4481$as_echo "no" >&6; }
4482fi
4483
4484  if test "x$ac_ct_STRIP" = x; then
4485    STRIP=":"
4486  else
4487    case $cross_compiling:$ac_tool_warned in
4488yes:)
4489{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4490$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4491ac_tool_warned=yes ;;
4492esac
4493    STRIP=$ac_ct_STRIP
4494  fi
4495else
4496  STRIP="$ac_cv_prog_STRIP"
4497fi
4498
4499fi
4500INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4501
4502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4503$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4504if test -z "$MKDIR_P"; then
4505  if ${ac_cv_path_mkdir+:} false; then :
4506  $as_echo_n "(cached) " >&6
4507else
4508  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4509for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4510do
4511  IFS=$as_save_IFS
4512  test -z "$as_dir" && as_dir=.
4513    for ac_prog in mkdir gmkdir; do
4514	 for ac_exec_ext in '' $ac_executable_extensions; do
4515	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4516	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4517	     'mkdir (GNU coreutils) '* | \
4518	     'mkdir (coreutils) '* | \
4519	     'mkdir (fileutils) '4.1*)
4520	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4521	       break 3;;
4522	   esac
4523	 done
4524       done
4525  done
4526IFS=$as_save_IFS
4527
4528fi
4529
4530  test -d ./--version && rmdir ./--version
4531  if test "${ac_cv_path_mkdir+set}" = set; then
4532    MKDIR_P="$ac_cv_path_mkdir -p"
4533  else
4534    # As a last resort, use the slow shell script.  Don't cache a
4535    # value for MKDIR_P within a source directory, because that will
4536    # break other packages using the cache if that directory is
4537    # removed, or if the value is a relative name.
4538    MKDIR_P="$ac_install_sh -d"
4539  fi
4540fi
4541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4542$as_echo "$MKDIR_P" >&6; }
4543
4544mkdir_p="$MKDIR_P"
4545case $mkdir_p in
4546  [\\/$]* | ?:[\\/]*) ;;
4547  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4548esac
4549
4550for ac_prog in gawk mawk nawk awk
4551do
4552  # Extract the first word of "$ac_prog", so it can be a program name with args.
4553set dummy $ac_prog; ac_word=$2
4554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4555$as_echo_n "checking for $ac_word... " >&6; }
4556if ${ac_cv_prog_AWK+:} false; then :
4557  $as_echo_n "(cached) " >&6
4558else
4559  if test -n "$AWK"; then
4560  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4561else
4562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563for as_dir in $PATH
4564do
4565  IFS=$as_save_IFS
4566  test -z "$as_dir" && as_dir=.
4567    for ac_exec_ext in '' $ac_executable_extensions; do
4568  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4569    ac_cv_prog_AWK="$ac_prog"
4570    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4571    break 2
4572  fi
4573done
4574  done
4575IFS=$as_save_IFS
4576
4577fi
4578fi
4579AWK=$ac_cv_prog_AWK
4580if test -n "$AWK"; then
4581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4582$as_echo "$AWK" >&6; }
4583else
4584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4585$as_echo "no" >&6; }
4586fi
4587
4588
4589  test -n "$AWK" && break
4590done
4591
4592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4593$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4594set x ${MAKE-make}
4595ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4596if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4597  $as_echo_n "(cached) " >&6
4598else
4599  cat >conftest.make <<\_ACEOF
4600SHELL = /bin/sh
4601all:
4602	@echo '@@@%%%=$(MAKE)=@@@%%%'
4603_ACEOF
4604# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4605case `${MAKE-make} -f conftest.make 2>/dev/null` in
4606  *@@@%%%=?*=@@@%%%*)
4607    eval ac_cv_prog_make_${ac_make}_set=yes;;
4608  *)
4609    eval ac_cv_prog_make_${ac_make}_set=no;;
4610esac
4611rm -f conftest.make
4612fi
4613if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4615$as_echo "yes" >&6; }
4616  SET_MAKE=
4617else
4618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4619$as_echo "no" >&6; }
4620  SET_MAKE="MAKE=${MAKE-make}"
4621fi
4622
4623rm -rf .tst 2>/dev/null
4624mkdir .tst 2>/dev/null
4625if test -d .tst; then
4626  am__leading_dot=.
4627else
4628  am__leading_dot=_
4629fi
4630rmdir .tst 2>/dev/null
4631
4632DEPDIR="${am__leading_dot}deps"
4633
4634ac_config_commands="$ac_config_commands depfiles"
4635
4636
4637am_make=${MAKE-make}
4638cat > confinc << 'END'
4639am__doit:
4640	@echo this is the am__doit target
4641.PHONY: am__doit
4642END
4643# If we don't find an include directive, just comment out the code.
4644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4645$as_echo_n "checking for style of include used by $am_make... " >&6; }
4646am__include="#"
4647am__quote=
4648_am_result=none
4649# First try GNU make style include.
4650echo "include confinc" > confmf
4651# Ignore all kinds of additional output from `make'.
4652case `$am_make -s -f confmf 2> /dev/null` in #(
4653*the\ am__doit\ target*)
4654  am__include=include
4655  am__quote=
4656  _am_result=GNU
4657  ;;
4658esac
4659# Now try BSD make style include.
4660if test "$am__include" = "#"; then
4661   echo '.include "confinc"' > confmf
4662   case `$am_make -s -f confmf 2> /dev/null` in #(
4663   *the\ am__doit\ target*)
4664     am__include=.include
4665     am__quote="\""
4666     _am_result=BSD
4667     ;;
4668   esac
4669fi
4670
4671
4672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4673$as_echo "$_am_result" >&6; }
4674rm -f confinc confmf
4675
4676# Check whether --enable-dependency-tracking was given.
4677if test "${enable_dependency_tracking+set}" = set; then :
4678  enableval=$enable_dependency_tracking;
4679fi
4680
4681if test "x$enable_dependency_tracking" != xno; then
4682  am_depcomp="$ac_aux_dir/depcomp"
4683  AMDEPBACKSLASH='\'
4684fi
4685 if test "x$enable_dependency_tracking" != xno; then
4686  AMDEP_TRUE=
4687  AMDEP_FALSE='#'
4688else
4689  AMDEP_TRUE='#'
4690  AMDEP_FALSE=
4691fi
4692
4693
4694if test "`cd $srcdir && pwd`" != "`pwd`"; then
4695  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4696  # is not polluted with repeated "-I."
4697  am__isrc=' -I$(srcdir)'
4698  # test to see if srcdir already configured
4699  if test -f $srcdir/config.status; then
4700    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4701  fi
4702fi
4703
4704# test whether we have cygpath
4705if test -z "$CYGPATH_W"; then
4706  if (cygpath --version) >/dev/null 2>/dev/null; then
4707    CYGPATH_W='cygpath -w'
4708  else
4709    CYGPATH_W=echo
4710  fi
4711fi
4712
4713
4714# Define the identity of the package.
4715 PACKAGE='xf86-video-wsfb'
4716 VERSION='0.4.0'
4717
4718
4719cat >>confdefs.h <<_ACEOF
4720#define PACKAGE "$PACKAGE"
4721_ACEOF
4722
4723
4724cat >>confdefs.h <<_ACEOF
4725#define VERSION "$VERSION"
4726_ACEOF
4727
4728# Some tools Automake needs.
4729
4730ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4731
4732
4733AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4734
4735
4736AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4737
4738
4739AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4740
4741
4742MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4743
4744# We need awk for the "check" target.  The system "awk" is bad on
4745# some platforms.
4746# Always define AMTAR for backward compatibility.
4747
4748AMTAR=${AMTAR-"${am_missing_run}tar"}
4749
4750am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4751
4752
4753
4754
4755depcc="$CC"   am_compiler_list=
4756
4757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4758$as_echo_n "checking dependency style of $depcc... " >&6; }
4759if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4760  $as_echo_n "(cached) " >&6
4761else
4762  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4763  # We make a subdir and do the tests there.  Otherwise we can end up
4764  # making bogus files that we don't know about and never remove.  For
4765  # instance it was reported that on HP-UX the gcc test will end up
4766  # making a dummy file named `D' -- because `-MD' means `put the output
4767  # in D'.
4768  mkdir conftest.dir
4769  # Copy depcomp to subdir because otherwise we won't find it if we're
4770  # using a relative directory.
4771  cp "$am_depcomp" conftest.dir
4772  cd conftest.dir
4773  # We will build objects and dependencies in a subdirectory because
4774  # it helps to detect inapplicable dependency modes.  For instance
4775  # both Tru64's cc and ICC support -MD to output dependencies as a
4776  # side effect of compilation, but ICC will put the dependencies in
4777  # the current directory while Tru64 will put them in the object
4778  # directory.
4779  mkdir sub
4780
4781  am_cv_CC_dependencies_compiler_type=none
4782  if test "$am_compiler_list" = ""; then
4783     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4784  fi
4785  am__universal=false
4786  case " $depcc " in #(
4787     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4788     esac
4789
4790  for depmode in $am_compiler_list; do
4791    # Setup a source with many dependencies, because some compilers
4792    # like to wrap large dependency lists on column 80 (with \), and
4793    # we should not choose a depcomp mode which is confused by this.
4794    #
4795    # We need to recreate these files for each test, as the compiler may
4796    # overwrite some of them when testing with obscure command lines.
4797    # This happens at least with the AIX C compiler.
4798    : > sub/conftest.c
4799    for i in 1 2 3 4 5 6; do
4800      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4801      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4802      # Solaris 8's {/usr,}/bin/sh.
4803      touch sub/conftst$i.h
4804    done
4805    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4806
4807    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4808    # mode.  It turns out that the SunPro C++ compiler does not properly
4809    # handle `-M -o', and we need to detect this.  Also, some Intel
4810    # versions had trouble with output in subdirs
4811    am__obj=sub/conftest.${OBJEXT-o}
4812    am__minus_obj="-o $am__obj"
4813    case $depmode in
4814    gcc)
4815      # This depmode causes a compiler race in universal mode.
4816      test "$am__universal" = false || continue
4817      ;;
4818    nosideeffect)
4819      # after this tag, mechanisms are not by side-effect, so they'll
4820      # only be used when explicitly requested
4821      if test "x$enable_dependency_tracking" = xyes; then
4822	continue
4823      else
4824	break
4825      fi
4826      ;;
4827    msvisualcpp | msvcmsys)
4828      # This compiler won't grok `-c -o', but also, the minuso test has
4829      # not run yet.  These depmodes are late enough in the game, and
4830      # so weak that their functioning should not be impacted.
4831      am__obj=conftest.${OBJEXT-o}
4832      am__minus_obj=
4833      ;;
4834    none) break ;;
4835    esac
4836    if depmode=$depmode \
4837       source=sub/conftest.c object=$am__obj \
4838       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4839       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4840         >/dev/null 2>conftest.err &&
4841       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4842       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4843       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4844       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4845      # icc doesn't choke on unknown options, it will just issue warnings
4846      # or remarks (even with -Werror).  So we grep stderr for any message
4847      # that says an option was ignored or not supported.
4848      # When given -MP, icc 7.0 and 7.1 complain thusly:
4849      #   icc: Command line warning: ignoring option '-M'; no argument required
4850      # The diagnosis changed in icc 8.0:
4851      #   icc: Command line remark: option '-MP' not supported
4852      if (grep 'ignoring option' conftest.err ||
4853          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4854        am_cv_CC_dependencies_compiler_type=$depmode
4855        break
4856      fi
4857    fi
4858  done
4859
4860  cd ..
4861  rm -rf conftest.dir
4862else
4863  am_cv_CC_dependencies_compiler_type=none
4864fi
4865
4866fi
4867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4868$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4869CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4870
4871 if
4872  test "x$enable_dependency_tracking" != xno \
4873  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4874  am__fastdepCC_TRUE=
4875  am__fastdepCC_FALSE='#'
4876else
4877  am__fastdepCC_TRUE='#'
4878  am__fastdepCC_FALSE=
4879fi
4880
4881
4882
4883
4884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4885$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4886    # Check whether --enable-maintainer-mode was given.
4887if test "${enable_maintainer_mode+set}" = set; then :
4888  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4889else
4890  USE_MAINTAINER_MODE=no
4891fi
4892
4893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4894$as_echo "$USE_MAINTAINER_MODE" >&6; }
4895   if test $USE_MAINTAINER_MODE = yes; then
4896  MAINTAINER_MODE_TRUE=
4897  MAINTAINER_MODE_FALSE='#'
4898else
4899  MAINTAINER_MODE_TRUE='#'
4900  MAINTAINER_MODE_FALSE=
4901fi
4902
4903  MAINT=$MAINTAINER_MODE_TRUE
4904
4905
4906
4907# Initialize libtool
4908# Check whether --enable-static was given.
4909if test "${enable_static+set}" = set; then :
4910  enableval=$enable_static; p=${PACKAGE-default}
4911    case $enableval in
4912    yes) enable_static=yes ;;
4913    no) enable_static=no ;;
4914    *)
4915     enable_static=no
4916      # Look at the argument we got.  We use all the common list separators.
4917      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4918      for pkg in $enableval; do
4919	IFS="$lt_save_ifs"
4920	if test "X$pkg" = "X$p"; then
4921	  enable_static=yes
4922	fi
4923      done
4924      IFS="$lt_save_ifs"
4925      ;;
4926    esac
4927else
4928  enable_static=no
4929fi
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939case `pwd` in
4940  *\ * | *\	*)
4941    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4942$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4943esac
4944
4945
4946
4947macro_version='2.4'
4948macro_revision='1.3293'
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962ltmain="$ac_aux_dir/ltmain.sh"
4963
4964# Backslashify metacharacters that are still active within
4965# double-quoted strings.
4966sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4967
4968# Same as above, but do not quote variable references.
4969double_quote_subst='s/\(["`\\]\)/\\\1/g'
4970
4971# Sed substitution to delay expansion of an escaped shell variable in a
4972# double_quote_subst'ed string.
4973delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4974
4975# Sed substitution to delay expansion of an escaped single quote.
4976delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4977
4978# Sed substitution to avoid accidental globbing in evaled expressions
4979no_glob_subst='s/\*/\\\*/g'
4980
4981ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4982ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4983ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4984
4985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4986$as_echo_n "checking how to print strings... " >&6; }
4987# Test print first, because it will be a builtin if present.
4988if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4989   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4990  ECHO='print -r --'
4991elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4992  ECHO='printf %s\n'
4993else
4994  # Use this function as a fallback that always works.
4995  func_fallback_echo ()
4996  {
4997    eval 'cat <<_LTECHO_EOF
4998$1
4999_LTECHO_EOF'
5000  }
5001  ECHO='func_fallback_echo'
5002fi
5003
5004# func_echo_all arg...
5005# Invoke $ECHO with all args, space-separated.
5006func_echo_all ()
5007{
5008    $ECHO ""
5009}
5010
5011case "$ECHO" in
5012  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5013$as_echo "printf" >&6; } ;;
5014  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5015$as_echo "print -r" >&6; } ;;
5016  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5017$as_echo "cat" >&6; } ;;
5018esac
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5034$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5035if ${ac_cv_path_SED+:} false; then :
5036  $as_echo_n "(cached) " >&6
5037else
5038            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5039     for ac_i in 1 2 3 4 5 6 7; do
5040       ac_script="$ac_script$as_nl$ac_script"
5041     done
5042     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5043     { ac_script=; unset ac_script;}
5044     if test -z "$SED"; then
5045  ac_path_SED_found=false
5046  # Loop through the user's path and test for each of PROGNAME-LIST
5047  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5048for as_dir in $PATH
5049do
5050  IFS=$as_save_IFS
5051  test -z "$as_dir" && as_dir=.
5052    for ac_prog in sed gsed; do
5053    for ac_exec_ext in '' $ac_executable_extensions; do
5054      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5055      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5056# Check for GNU ac_path_SED and select it if it is found.
5057  # Check for GNU $ac_path_SED
5058case `"$ac_path_SED" --version 2>&1` in
5059*GNU*)
5060  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5061*)
5062  ac_count=0
5063  $as_echo_n 0123456789 >"conftest.in"
5064  while :
5065  do
5066    cat "conftest.in" "conftest.in" >"conftest.tmp"
5067    mv "conftest.tmp" "conftest.in"
5068    cp "conftest.in" "conftest.nl"
5069    $as_echo '' >> "conftest.nl"
5070    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5071    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5072    as_fn_arith $ac_count + 1 && ac_count=$as_val
5073    if test $ac_count -gt ${ac_path_SED_max-0}; then
5074      # Best one so far, save it but keep looking for a better one
5075      ac_cv_path_SED="$ac_path_SED"
5076      ac_path_SED_max=$ac_count
5077    fi
5078    # 10*(2^10) chars as input seems more than enough
5079    test $ac_count -gt 10 && break
5080  done
5081  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5082esac
5083
5084      $ac_path_SED_found && break 3
5085    done
5086  done
5087  done
5088IFS=$as_save_IFS
5089  if test -z "$ac_cv_path_SED"; then
5090    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5091  fi
5092else
5093  ac_cv_path_SED=$SED
5094fi
5095
5096fi
5097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5098$as_echo "$ac_cv_path_SED" >&6; }
5099 SED="$ac_cv_path_SED"
5100  rm -f conftest.sed
5101
5102test -z "$SED" && SED=sed
5103Xsed="$SED -e 1s/^X//"
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5116$as_echo_n "checking for fgrep... " >&6; }
5117if ${ac_cv_path_FGREP+:} false; then :
5118  $as_echo_n "(cached) " >&6
5119else
5120  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5121   then ac_cv_path_FGREP="$GREP -F"
5122   else
5123     if test -z "$FGREP"; then
5124  ac_path_FGREP_found=false
5125  # Loop through the user's path and test for each of PROGNAME-LIST
5126  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5128do
5129  IFS=$as_save_IFS
5130  test -z "$as_dir" && as_dir=.
5131    for ac_prog in fgrep; do
5132    for ac_exec_ext in '' $ac_executable_extensions; do
5133      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5134      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5135# Check for GNU ac_path_FGREP and select it if it is found.
5136  # Check for GNU $ac_path_FGREP
5137case `"$ac_path_FGREP" --version 2>&1` in
5138*GNU*)
5139  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5140*)
5141  ac_count=0
5142  $as_echo_n 0123456789 >"conftest.in"
5143  while :
5144  do
5145    cat "conftest.in" "conftest.in" >"conftest.tmp"
5146    mv "conftest.tmp" "conftest.in"
5147    cp "conftest.in" "conftest.nl"
5148    $as_echo 'FGREP' >> "conftest.nl"
5149    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5150    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5151    as_fn_arith $ac_count + 1 && ac_count=$as_val
5152    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5153      # Best one so far, save it but keep looking for a better one
5154      ac_cv_path_FGREP="$ac_path_FGREP"
5155      ac_path_FGREP_max=$ac_count
5156    fi
5157    # 10*(2^10) chars as input seems more than enough
5158    test $ac_count -gt 10 && break
5159  done
5160  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5161esac
5162
5163      $ac_path_FGREP_found && break 3
5164    done
5165  done
5166  done
5167IFS=$as_save_IFS
5168  if test -z "$ac_cv_path_FGREP"; then
5169    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5170  fi
5171else
5172  ac_cv_path_FGREP=$FGREP
5173fi
5174
5175   fi
5176fi
5177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5178$as_echo "$ac_cv_path_FGREP" >&6; }
5179 FGREP="$ac_cv_path_FGREP"
5180
5181
5182test -z "$GREP" && GREP=grep
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202# Check whether --with-gnu-ld was given.
5203if test "${with_gnu_ld+set}" = set; then :
5204  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5205else
5206  with_gnu_ld=no
5207fi
5208
5209ac_prog=ld
5210if test "$GCC" = yes; then
5211  # Check if gcc -print-prog-name=ld gives a path.
5212  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5213$as_echo_n "checking for ld used by $CC... " >&6; }
5214  case $host in
5215  *-*-mingw*)
5216    # gcc leaves a trailing carriage return which upsets mingw
5217    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5218  *)
5219    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5220  esac
5221  case $ac_prog in
5222    # Accept absolute paths.
5223    [\\/]* | ?:[\\/]*)
5224      re_direlt='/[^/][^/]*/\.\./'
5225      # Canonicalize the pathname of ld
5226      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5227      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5228	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5229      done
5230      test -z "$LD" && LD="$ac_prog"
5231      ;;
5232  "")
5233    # If it fails, then pretend we aren't using GCC.
5234    ac_prog=ld
5235    ;;
5236  *)
5237    # If it is relative, then search for the first ld in PATH.
5238    with_gnu_ld=unknown
5239    ;;
5240  esac
5241elif test "$with_gnu_ld" = yes; then
5242  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5243$as_echo_n "checking for GNU ld... " >&6; }
5244else
5245  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5246$as_echo_n "checking for non-GNU ld... " >&6; }
5247fi
5248if ${lt_cv_path_LD+:} false; then :
5249  $as_echo_n "(cached) " >&6
5250else
5251  if test -z "$LD"; then
5252  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5253  for ac_dir in $PATH; do
5254    IFS="$lt_save_ifs"
5255    test -z "$ac_dir" && ac_dir=.
5256    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5257      lt_cv_path_LD="$ac_dir/$ac_prog"
5258      # Check to see if the program is GNU ld.  I'd rather use --version,
5259      # but apparently some variants of GNU ld only accept -v.
5260      # Break only if it was the GNU/non-GNU ld that we prefer.
5261      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5262      *GNU* | *'with BFD'*)
5263	test "$with_gnu_ld" != no && break
5264	;;
5265      *)
5266	test "$with_gnu_ld" != yes && break
5267	;;
5268      esac
5269    fi
5270  done
5271  IFS="$lt_save_ifs"
5272else
5273  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5274fi
5275fi
5276
5277LD="$lt_cv_path_LD"
5278if test -n "$LD"; then
5279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5280$as_echo "$LD" >&6; }
5281else
5282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5283$as_echo "no" >&6; }
5284fi
5285test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5287$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5288if ${lt_cv_prog_gnu_ld+:} false; then :
5289  $as_echo_n "(cached) " >&6
5290else
5291  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5292case `$LD -v 2>&1 </dev/null` in
5293*GNU* | *'with BFD'*)
5294  lt_cv_prog_gnu_ld=yes
5295  ;;
5296*)
5297  lt_cv_prog_gnu_ld=no
5298  ;;
5299esac
5300fi
5301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5302$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5303with_gnu_ld=$lt_cv_prog_gnu_ld
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5314$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5315if ${lt_cv_path_NM+:} false; then :
5316  $as_echo_n "(cached) " >&6
5317else
5318  if test -n "$NM"; then
5319  # Let the user override the test.
5320  lt_cv_path_NM="$NM"
5321else
5322  lt_nm_to_check="${ac_tool_prefix}nm"
5323  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5324    lt_nm_to_check="$lt_nm_to_check nm"
5325  fi
5326  for lt_tmp_nm in $lt_nm_to_check; do
5327    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5328    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5329      IFS="$lt_save_ifs"
5330      test -z "$ac_dir" && ac_dir=.
5331      tmp_nm="$ac_dir/$lt_tmp_nm"
5332      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5333	# Check to see if the nm accepts a BSD-compat flag.
5334	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5335	#   nm: unknown option "B" ignored
5336	# Tru64's nm complains that /dev/null is an invalid object file
5337	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5338	*/dev/null* | *'Invalid file or object type'*)
5339	  lt_cv_path_NM="$tmp_nm -B"
5340	  break
5341	  ;;
5342	*)
5343	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5344	  */dev/null*)
5345	    lt_cv_path_NM="$tmp_nm -p"
5346	    break
5347	    ;;
5348	  *)
5349	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5350	    continue # so that we can try to find one that supports BSD flags
5351	    ;;
5352	  esac
5353	  ;;
5354	esac
5355      fi
5356    done
5357    IFS="$lt_save_ifs"
5358  done
5359  : ${lt_cv_path_NM=no}
5360fi
5361fi
5362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5363$as_echo "$lt_cv_path_NM" >&6; }
5364if test "$lt_cv_path_NM" != "no"; then
5365  NM="$lt_cv_path_NM"
5366else
5367  # Didn't find any BSD compatible name lister, look for dumpbin.
5368  if test -n "$DUMPBIN"; then :
5369    # Let the user override the test.
5370  else
5371    if test -n "$ac_tool_prefix"; then
5372  for ac_prog in dumpbin "link -dump"
5373  do
5374    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5375set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5377$as_echo_n "checking for $ac_word... " >&6; }
5378if ${ac_cv_prog_DUMPBIN+:} false; then :
5379  $as_echo_n "(cached) " >&6
5380else
5381  if test -n "$DUMPBIN"; then
5382  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5383else
5384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5385for as_dir in $PATH
5386do
5387  IFS=$as_save_IFS
5388  test -z "$as_dir" && as_dir=.
5389    for ac_exec_ext in '' $ac_executable_extensions; do
5390  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5391    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5392    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5393    break 2
5394  fi
5395done
5396  done
5397IFS=$as_save_IFS
5398
5399fi
5400fi
5401DUMPBIN=$ac_cv_prog_DUMPBIN
5402if test -n "$DUMPBIN"; then
5403  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5404$as_echo "$DUMPBIN" >&6; }
5405else
5406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5407$as_echo "no" >&6; }
5408fi
5409
5410
5411    test -n "$DUMPBIN" && break
5412  done
5413fi
5414if test -z "$DUMPBIN"; then
5415  ac_ct_DUMPBIN=$DUMPBIN
5416  for ac_prog in dumpbin "link -dump"
5417do
5418  # Extract the first word of "$ac_prog", so it can be a program name with args.
5419set dummy $ac_prog; ac_word=$2
5420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5421$as_echo_n "checking for $ac_word... " >&6; }
5422if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5423  $as_echo_n "(cached) " >&6
5424else
5425  if test -n "$ac_ct_DUMPBIN"; then
5426  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5427else
5428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5429for as_dir in $PATH
5430do
5431  IFS=$as_save_IFS
5432  test -z "$as_dir" && as_dir=.
5433    for ac_exec_ext in '' $ac_executable_extensions; do
5434  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5435    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5436    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5437    break 2
5438  fi
5439done
5440  done
5441IFS=$as_save_IFS
5442
5443fi
5444fi
5445ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5446if test -n "$ac_ct_DUMPBIN"; then
5447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5448$as_echo "$ac_ct_DUMPBIN" >&6; }
5449else
5450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5451$as_echo "no" >&6; }
5452fi
5453
5454
5455  test -n "$ac_ct_DUMPBIN" && break
5456done
5457
5458  if test "x$ac_ct_DUMPBIN" = x; then
5459    DUMPBIN=":"
5460  else
5461    case $cross_compiling:$ac_tool_warned in
5462yes:)
5463{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5464$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5465ac_tool_warned=yes ;;
5466esac
5467    DUMPBIN=$ac_ct_DUMPBIN
5468  fi
5469fi
5470
5471    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5472    *COFF*)
5473      DUMPBIN="$DUMPBIN -symbols"
5474      ;;
5475    *)
5476      DUMPBIN=:
5477      ;;
5478    esac
5479  fi
5480
5481  if test "$DUMPBIN" != ":"; then
5482    NM="$DUMPBIN"
5483  fi
5484fi
5485test -z "$NM" && NM=nm
5486
5487
5488
5489
5490
5491
5492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5493$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5494if ${lt_cv_nm_interface+:} false; then :
5495  $as_echo_n "(cached) " >&6
5496else
5497  lt_cv_nm_interface="BSD nm"
5498  echo "int some_variable = 0;" > conftest.$ac_ext
5499  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5500  (eval "$ac_compile" 2>conftest.err)
5501  cat conftest.err >&5
5502  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5503  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5504  cat conftest.err >&5
5505  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5506  cat conftest.out >&5
5507  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5508    lt_cv_nm_interface="MS dumpbin"
5509  fi
5510  rm -f conftest*
5511fi
5512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5513$as_echo "$lt_cv_nm_interface" >&6; }
5514
5515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5516$as_echo_n "checking whether ln -s works... " >&6; }
5517LN_S=$as_ln_s
5518if test "$LN_S" = "ln -s"; then
5519  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5520$as_echo "yes" >&6; }
5521else
5522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5523$as_echo "no, using $LN_S" >&6; }
5524fi
5525
5526# find the maximum length of command line arguments
5527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5528$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5529if ${lt_cv_sys_max_cmd_len+:} false; then :
5530  $as_echo_n "(cached) " >&6
5531else
5532    i=0
5533  teststring="ABCD"
5534
5535  case $build_os in
5536  msdosdjgpp*)
5537    # On DJGPP, this test can blow up pretty badly due to problems in libc
5538    # (any single argument exceeding 2000 bytes causes a buffer overrun
5539    # during glob expansion).  Even if it were fixed, the result of this
5540    # check would be larger than it should be.
5541    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5542    ;;
5543
5544  gnu*)
5545    # Under GNU Hurd, this test is not required because there is
5546    # no limit to the length of command line arguments.
5547    # Libtool will interpret -1 as no limit whatsoever
5548    lt_cv_sys_max_cmd_len=-1;
5549    ;;
5550
5551  cygwin* | mingw* | cegcc*)
5552    # On Win9x/ME, this test blows up -- it succeeds, but takes
5553    # about 5 minutes as the teststring grows exponentially.
5554    # Worse, since 9x/ME are not pre-emptively multitasking,
5555    # you end up with a "frozen" computer, even though with patience
5556    # the test eventually succeeds (with a max line length of 256k).
5557    # Instead, let's just punt: use the minimum linelength reported by
5558    # all of the supported platforms: 8192 (on NT/2K/XP).
5559    lt_cv_sys_max_cmd_len=8192;
5560    ;;
5561
5562  mint*)
5563    # On MiNT this can take a long time and run out of memory.
5564    lt_cv_sys_max_cmd_len=8192;
5565    ;;
5566
5567  amigaos*)
5568    # On AmigaOS with pdksh, this test takes hours, literally.
5569    # So we just punt and use a minimum line length of 8192.
5570    lt_cv_sys_max_cmd_len=8192;
5571    ;;
5572
5573  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5574    # This has been around since 386BSD, at least.  Likely further.
5575    if test -x /sbin/sysctl; then
5576      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5577    elif test -x /usr/sbin/sysctl; then
5578      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5579    else
5580      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5581    fi
5582    # And add a safety zone
5583    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5584    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5585    ;;
5586
5587  interix*)
5588    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5589    lt_cv_sys_max_cmd_len=196608
5590    ;;
5591
5592  osf*)
5593    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5594    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5595    # nice to cause kernel panics so lets avoid the loop below.
5596    # First set a reasonable default.
5597    lt_cv_sys_max_cmd_len=16384
5598    #
5599    if test -x /sbin/sysconfig; then
5600      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5601        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5602      esac
5603    fi
5604    ;;
5605  sco3.2v5*)
5606    lt_cv_sys_max_cmd_len=102400
5607    ;;
5608  sysv5* | sco5v6* | sysv4.2uw2*)
5609    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5610    if test -n "$kargmax"; then
5611      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5612    else
5613      lt_cv_sys_max_cmd_len=32768
5614    fi
5615    ;;
5616  *)
5617    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5618    if test -n "$lt_cv_sys_max_cmd_len"; then
5619      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5620      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5621    else
5622      # Make teststring a little bigger before we do anything with it.
5623      # a 1K string should be a reasonable start.
5624      for i in 1 2 3 4 5 6 7 8 ; do
5625        teststring=$teststring$teststring
5626      done
5627      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5628      # If test is not a shell built-in, we'll probably end up computing a
5629      # maximum length that is only half of the actual maximum length, but
5630      # we can't tell.
5631      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5632	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5633	      test $i != 17 # 1/2 MB should be enough
5634      do
5635        i=`expr $i + 1`
5636        teststring=$teststring$teststring
5637      done
5638      # Only check the string length outside the loop.
5639      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5640      teststring=
5641      # Add a significant safety factor because C++ compilers can tack on
5642      # massive amounts of additional arguments before passing them to the
5643      # linker.  It appears as though 1/2 is a usable value.
5644      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5645    fi
5646    ;;
5647  esac
5648
5649fi
5650
5651if test -n $lt_cv_sys_max_cmd_len ; then
5652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5653$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5654else
5655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5656$as_echo "none" >&6; }
5657fi
5658max_cmd_len=$lt_cv_sys_max_cmd_len
5659
5660
5661
5662
5663
5664
5665: ${CP="cp -f"}
5666: ${MV="mv -f"}
5667: ${RM="rm -f"}
5668
5669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5670$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5671# Try some XSI features
5672xsi_shell=no
5673( _lt_dummy="a/b/c"
5674  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5675      = c,a/b,b/c, \
5676    && eval 'test $(( 1 + 1 )) -eq 2 \
5677    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5678  && xsi_shell=yes
5679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5680$as_echo "$xsi_shell" >&6; }
5681
5682
5683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5684$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5685lt_shell_append=no
5686( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5687    >/dev/null 2>&1 \
5688  && lt_shell_append=yes
5689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5690$as_echo "$lt_shell_append" >&6; }
5691
5692
5693if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5694  lt_unset=unset
5695else
5696  lt_unset=false
5697fi
5698
5699
5700
5701
5702
5703# test EBCDIC or ASCII
5704case `echo X|tr X '\101'` in
5705 A) # ASCII based system
5706    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5707  lt_SP2NL='tr \040 \012'
5708  lt_NL2SP='tr \015\012 \040\040'
5709  ;;
5710 *) # EBCDIC based system
5711  lt_SP2NL='tr \100 \n'
5712  lt_NL2SP='tr \r\n \100\100'
5713  ;;
5714esac
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5725$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5726if ${lt_cv_to_host_file_cmd+:} false; then :
5727  $as_echo_n "(cached) " >&6
5728else
5729  case $host in
5730  *-*-mingw* )
5731    case $build in
5732      *-*-mingw* ) # actually msys
5733        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5734        ;;
5735      *-*-cygwin* )
5736        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5737        ;;
5738      * ) # otherwise, assume *nix
5739        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5740        ;;
5741    esac
5742    ;;
5743  *-*-cygwin* )
5744    case $build in
5745      *-*-mingw* ) # actually msys
5746        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5747        ;;
5748      *-*-cygwin* )
5749        lt_cv_to_host_file_cmd=func_convert_file_noop
5750        ;;
5751      * ) # otherwise, assume *nix
5752        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5753        ;;
5754    esac
5755    ;;
5756  * ) # unhandled hosts (and "normal" native builds)
5757    lt_cv_to_host_file_cmd=func_convert_file_noop
5758    ;;
5759esac
5760
5761fi
5762
5763to_host_file_cmd=$lt_cv_to_host_file_cmd
5764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5765$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5766
5767
5768
5769
5770
5771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5772$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5773if ${lt_cv_to_tool_file_cmd+:} false; then :
5774  $as_echo_n "(cached) " >&6
5775else
5776  #assume ordinary cross tools, or native build.
5777lt_cv_to_tool_file_cmd=func_convert_file_noop
5778case $host in
5779  *-*-mingw* )
5780    case $build in
5781      *-*-mingw* ) # actually msys
5782        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5783        ;;
5784    esac
5785    ;;
5786esac
5787
5788fi
5789
5790to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5792$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5793
5794
5795
5796
5797
5798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5799$as_echo_n "checking for $LD option to reload object files... " >&6; }
5800if ${lt_cv_ld_reload_flag+:} false; then :
5801  $as_echo_n "(cached) " >&6
5802else
5803  lt_cv_ld_reload_flag='-r'
5804fi
5805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5806$as_echo "$lt_cv_ld_reload_flag" >&6; }
5807reload_flag=$lt_cv_ld_reload_flag
5808case $reload_flag in
5809"" | " "*) ;;
5810*) reload_flag=" $reload_flag" ;;
5811esac
5812reload_cmds='$LD$reload_flag -o $output$reload_objs'
5813case $host_os in
5814  cygwin* | mingw* | pw32* | cegcc*)
5815    if test "$GCC" != yes; then
5816      reload_cmds=false
5817    fi
5818    ;;
5819  darwin*)
5820    if test "$GCC" = yes; then
5821      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5822    else
5823      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5824    fi
5825    ;;
5826esac
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836if test -n "$ac_tool_prefix"; then
5837  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5838set dummy ${ac_tool_prefix}objdump; ac_word=$2
5839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5840$as_echo_n "checking for $ac_word... " >&6; }
5841if ${ac_cv_prog_OBJDUMP+:} false; then :
5842  $as_echo_n "(cached) " >&6
5843else
5844  if test -n "$OBJDUMP"; then
5845  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5846else
5847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848for as_dir in $PATH
5849do
5850  IFS=$as_save_IFS
5851  test -z "$as_dir" && as_dir=.
5852    for ac_exec_ext in '' $ac_executable_extensions; do
5853  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5854    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5855    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5856    break 2
5857  fi
5858done
5859  done
5860IFS=$as_save_IFS
5861
5862fi
5863fi
5864OBJDUMP=$ac_cv_prog_OBJDUMP
5865if test -n "$OBJDUMP"; then
5866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5867$as_echo "$OBJDUMP" >&6; }
5868else
5869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5870$as_echo "no" >&6; }
5871fi
5872
5873
5874fi
5875if test -z "$ac_cv_prog_OBJDUMP"; then
5876  ac_ct_OBJDUMP=$OBJDUMP
5877  # Extract the first word of "objdump", so it can be a program name with args.
5878set dummy objdump; ac_word=$2
5879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5880$as_echo_n "checking for $ac_word... " >&6; }
5881if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5882  $as_echo_n "(cached) " >&6
5883else
5884  if test -n "$ac_ct_OBJDUMP"; then
5885  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5886else
5887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888for as_dir in $PATH
5889do
5890  IFS=$as_save_IFS
5891  test -z "$as_dir" && as_dir=.
5892    for ac_exec_ext in '' $ac_executable_extensions; do
5893  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5894    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5895    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5896    break 2
5897  fi
5898done
5899  done
5900IFS=$as_save_IFS
5901
5902fi
5903fi
5904ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5905if test -n "$ac_ct_OBJDUMP"; then
5906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5907$as_echo "$ac_ct_OBJDUMP" >&6; }
5908else
5909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5910$as_echo "no" >&6; }
5911fi
5912
5913  if test "x$ac_ct_OBJDUMP" = x; then
5914    OBJDUMP="false"
5915  else
5916    case $cross_compiling:$ac_tool_warned in
5917yes:)
5918{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5919$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5920ac_tool_warned=yes ;;
5921esac
5922    OBJDUMP=$ac_ct_OBJDUMP
5923  fi
5924else
5925  OBJDUMP="$ac_cv_prog_OBJDUMP"
5926fi
5927
5928test -z "$OBJDUMP" && OBJDUMP=objdump
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5939$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5940if ${lt_cv_deplibs_check_method+:} false; then :
5941  $as_echo_n "(cached) " >&6
5942else
5943  lt_cv_file_magic_cmd='$MAGIC_CMD'
5944lt_cv_file_magic_test_file=
5945lt_cv_deplibs_check_method='unknown'
5946# Need to set the preceding variable on all platforms that support
5947# interlibrary dependencies.
5948# 'none' -- dependencies not supported.
5949# `unknown' -- same as none, but documents that we really don't know.
5950# 'pass_all' -- all dependencies passed with no checks.
5951# 'test_compile' -- check by making test program.
5952# 'file_magic [[regex]]' -- check by looking for files in library path
5953# which responds to the $file_magic_cmd with a given extended regex.
5954# If you have `file' or equivalent on your system and you're not sure
5955# whether `pass_all' will *always* work, you probably want this one.
5956
5957case $host_os in
5958aix[4-9]*)
5959  lt_cv_deplibs_check_method=pass_all
5960  ;;
5961
5962beos*)
5963  lt_cv_deplibs_check_method=pass_all
5964  ;;
5965
5966bsdi[45]*)
5967  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5968  lt_cv_file_magic_cmd='/usr/bin/file -L'
5969  lt_cv_file_magic_test_file=/shlib/libc.so
5970  ;;
5971
5972cygwin*)
5973  # func_win32_libid is a shell function defined in ltmain.sh
5974  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5975  lt_cv_file_magic_cmd='func_win32_libid'
5976  ;;
5977
5978mingw* | pw32*)
5979  # Base MSYS/MinGW do not provide the 'file' command needed by
5980  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5981  # unless we find 'file', for example because we are cross-compiling.
5982  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5983  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5984    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5985    lt_cv_file_magic_cmd='func_win32_libid'
5986  else
5987    # Keep this pattern in sync with the one in func_win32_libid.
5988    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5989    lt_cv_file_magic_cmd='$OBJDUMP -f'
5990  fi
5991  ;;
5992
5993cegcc*)
5994  # use the weaker test based on 'objdump'. See mingw*.
5995  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5996  lt_cv_file_magic_cmd='$OBJDUMP -f'
5997  ;;
5998
5999darwin* | rhapsody*)
6000  lt_cv_deplibs_check_method=pass_all
6001  ;;
6002
6003freebsd* | dragonfly*)
6004  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6005    case $host_cpu in
6006    i*86 )
6007      # Not sure whether the presence of OpenBSD here was a mistake.
6008      # Let's accept both of them until this is cleared up.
6009      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6010      lt_cv_file_magic_cmd=/usr/bin/file
6011      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6012      ;;
6013    esac
6014  else
6015    lt_cv_deplibs_check_method=pass_all
6016  fi
6017  ;;
6018
6019gnu*)
6020  lt_cv_deplibs_check_method=pass_all
6021  ;;
6022
6023haiku*)
6024  lt_cv_deplibs_check_method=pass_all
6025  ;;
6026
6027hpux10.20* | hpux11*)
6028  lt_cv_file_magic_cmd=/usr/bin/file
6029  case $host_cpu in
6030  ia64*)
6031    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6032    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6033    ;;
6034  hppa*64*)
6035    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6036    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6037    ;;
6038  *)
6039    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6040    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6041    ;;
6042  esac
6043  ;;
6044
6045interix[3-9]*)
6046  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6047  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6048  ;;
6049
6050irix5* | irix6* | nonstopux*)
6051  case $LD in
6052  *-32|*"-32 ") libmagic=32-bit;;
6053  *-n32|*"-n32 ") libmagic=N32;;
6054  *-64|*"-64 ") libmagic=64-bit;;
6055  *) libmagic=never-match;;
6056  esac
6057  lt_cv_deplibs_check_method=pass_all
6058  ;;
6059
6060# This must be Linux ELF.
6061linux* | k*bsd*-gnu | kopensolaris*-gnu)
6062  lt_cv_deplibs_check_method=pass_all
6063  ;;
6064
6065netbsd* | netbsdelf*-gnu)
6066  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6067    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6068  else
6069    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6070  fi
6071  ;;
6072
6073newos6*)
6074  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6075  lt_cv_file_magic_cmd=/usr/bin/file
6076  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6077  ;;
6078
6079*nto* | *qnx*)
6080  lt_cv_deplibs_check_method=pass_all
6081  ;;
6082
6083openbsd*)
6084  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6085    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6086  else
6087    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6088  fi
6089  ;;
6090
6091osf3* | osf4* | osf5*)
6092  lt_cv_deplibs_check_method=pass_all
6093  ;;
6094
6095rdos*)
6096  lt_cv_deplibs_check_method=pass_all
6097  ;;
6098
6099solaris*)
6100  lt_cv_deplibs_check_method=pass_all
6101  ;;
6102
6103sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6104  lt_cv_deplibs_check_method=pass_all
6105  ;;
6106
6107sysv4 | sysv4.3*)
6108  case $host_vendor in
6109  motorola)
6110    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]'
6111    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6112    ;;
6113  ncr)
6114    lt_cv_deplibs_check_method=pass_all
6115    ;;
6116  sequent)
6117    lt_cv_file_magic_cmd='/bin/file'
6118    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6119    ;;
6120  sni)
6121    lt_cv_file_magic_cmd='/bin/file'
6122    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6123    lt_cv_file_magic_test_file=/lib/libc.so
6124    ;;
6125  siemens)
6126    lt_cv_deplibs_check_method=pass_all
6127    ;;
6128  pc)
6129    lt_cv_deplibs_check_method=pass_all
6130    ;;
6131  esac
6132  ;;
6133
6134tpf*)
6135  lt_cv_deplibs_check_method=pass_all
6136  ;;
6137esac
6138
6139fi
6140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6141$as_echo "$lt_cv_deplibs_check_method" >&6; }
6142
6143file_magic_glob=
6144want_nocaseglob=no
6145if test "$build" = "$host"; then
6146  case $host_os in
6147  mingw* | pw32*)
6148    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6149      want_nocaseglob=yes
6150    else
6151      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6152    fi
6153    ;;
6154  esac
6155fi
6156
6157file_magic_cmd=$lt_cv_file_magic_cmd
6158deplibs_check_method=$lt_cv_deplibs_check_method
6159test -z "$deplibs_check_method" && deplibs_check_method=unknown
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182if test -n "$ac_tool_prefix"; then
6183  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6184set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6186$as_echo_n "checking for $ac_word... " >&6; }
6187if ${ac_cv_prog_DLLTOOL+:} false; then :
6188  $as_echo_n "(cached) " >&6
6189else
6190  if test -n "$DLLTOOL"; then
6191  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6192else
6193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6194for as_dir in $PATH
6195do
6196  IFS=$as_save_IFS
6197  test -z "$as_dir" && as_dir=.
6198    for ac_exec_ext in '' $ac_executable_extensions; do
6199  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6200    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6201    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6202    break 2
6203  fi
6204done
6205  done
6206IFS=$as_save_IFS
6207
6208fi
6209fi
6210DLLTOOL=$ac_cv_prog_DLLTOOL
6211if test -n "$DLLTOOL"; then
6212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6213$as_echo "$DLLTOOL" >&6; }
6214else
6215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6216$as_echo "no" >&6; }
6217fi
6218
6219
6220fi
6221if test -z "$ac_cv_prog_DLLTOOL"; then
6222  ac_ct_DLLTOOL=$DLLTOOL
6223  # Extract the first word of "dlltool", so it can be a program name with args.
6224set dummy dlltool; ac_word=$2
6225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6226$as_echo_n "checking for $ac_word... " >&6; }
6227if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6228  $as_echo_n "(cached) " >&6
6229else
6230  if test -n "$ac_ct_DLLTOOL"; then
6231  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6232else
6233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6234for as_dir in $PATH
6235do
6236  IFS=$as_save_IFS
6237  test -z "$as_dir" && as_dir=.
6238    for ac_exec_ext in '' $ac_executable_extensions; do
6239  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6240    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6241    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6242    break 2
6243  fi
6244done
6245  done
6246IFS=$as_save_IFS
6247
6248fi
6249fi
6250ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6251if test -n "$ac_ct_DLLTOOL"; then
6252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6253$as_echo "$ac_ct_DLLTOOL" >&6; }
6254else
6255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6256$as_echo "no" >&6; }
6257fi
6258
6259  if test "x$ac_ct_DLLTOOL" = x; then
6260    DLLTOOL="false"
6261  else
6262    case $cross_compiling:$ac_tool_warned in
6263yes:)
6264{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6265$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6266ac_tool_warned=yes ;;
6267esac
6268    DLLTOOL=$ac_ct_DLLTOOL
6269  fi
6270else
6271  DLLTOOL="$ac_cv_prog_DLLTOOL"
6272fi
6273
6274test -z "$DLLTOOL" && DLLTOOL=dlltool
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6286$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6287if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6288  $as_echo_n "(cached) " >&6
6289else
6290  lt_cv_sharedlib_from_linklib_cmd='unknown'
6291
6292case $host_os in
6293cygwin* | mingw* | pw32* | cegcc*)
6294  # two different shell functions defined in ltmain.sh
6295  # decide which to use based on capabilities of $DLLTOOL
6296  case `$DLLTOOL --help 2>&1` in
6297  *--identify-strict*)
6298    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6299    ;;
6300  *)
6301    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6302    ;;
6303  esac
6304  ;;
6305*)
6306  # fallback: assume linklib IS sharedlib
6307  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6308  ;;
6309esac
6310
6311fi
6312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6313$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6314sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6315test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6316
6317
6318
6319
6320
6321
6322
6323if test -n "$ac_tool_prefix"; then
6324  for ac_prog in ar
6325  do
6326    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6327set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6329$as_echo_n "checking for $ac_word... " >&6; }
6330if ${ac_cv_prog_AR+:} false; then :
6331  $as_echo_n "(cached) " >&6
6332else
6333  if test -n "$AR"; then
6334  ac_cv_prog_AR="$AR" # Let the user override the test.
6335else
6336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6337for as_dir in $PATH
6338do
6339  IFS=$as_save_IFS
6340  test -z "$as_dir" && as_dir=.
6341    for ac_exec_ext in '' $ac_executable_extensions; do
6342  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6343    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6344    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6345    break 2
6346  fi
6347done
6348  done
6349IFS=$as_save_IFS
6350
6351fi
6352fi
6353AR=$ac_cv_prog_AR
6354if test -n "$AR"; then
6355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6356$as_echo "$AR" >&6; }
6357else
6358  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6359$as_echo "no" >&6; }
6360fi
6361
6362
6363    test -n "$AR" && break
6364  done
6365fi
6366if test -z "$AR"; then
6367  ac_ct_AR=$AR
6368  for ac_prog in ar
6369do
6370  # Extract the first word of "$ac_prog", so it can be a program name with args.
6371set dummy $ac_prog; ac_word=$2
6372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6373$as_echo_n "checking for $ac_word... " >&6; }
6374if ${ac_cv_prog_ac_ct_AR+:} false; then :
6375  $as_echo_n "(cached) " >&6
6376else
6377  if test -n "$ac_ct_AR"; then
6378  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6379else
6380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6381for as_dir in $PATH
6382do
6383  IFS=$as_save_IFS
6384  test -z "$as_dir" && as_dir=.
6385    for ac_exec_ext in '' $ac_executable_extensions; do
6386  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6387    ac_cv_prog_ac_ct_AR="$ac_prog"
6388    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6389    break 2
6390  fi
6391done
6392  done
6393IFS=$as_save_IFS
6394
6395fi
6396fi
6397ac_ct_AR=$ac_cv_prog_ac_ct_AR
6398if test -n "$ac_ct_AR"; then
6399  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6400$as_echo "$ac_ct_AR" >&6; }
6401else
6402  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6403$as_echo "no" >&6; }
6404fi
6405
6406
6407  test -n "$ac_ct_AR" && break
6408done
6409
6410  if test "x$ac_ct_AR" = x; then
6411    AR="false"
6412  else
6413    case $cross_compiling:$ac_tool_warned in
6414yes:)
6415{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6416$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6417ac_tool_warned=yes ;;
6418esac
6419    AR=$ac_ct_AR
6420  fi
6421fi
6422
6423: ${AR=ar}
6424: ${AR_FLAGS=cru}
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6437$as_echo_n "checking for archiver @FILE support... " >&6; }
6438if ${lt_cv_ar_at_file+:} false; then :
6439  $as_echo_n "(cached) " >&6
6440else
6441  lt_cv_ar_at_file=no
6442   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6443/* end confdefs.h.  */
6444
6445int
6446main ()
6447{
6448
6449  ;
6450  return 0;
6451}
6452_ACEOF
6453if ac_fn_c_try_compile "$LINENO"; then :
6454  echo conftest.$ac_objext > conftest.lst
6455      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6456      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6457  (eval $lt_ar_try) 2>&5
6458  ac_status=$?
6459  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6460  test $ac_status = 0; }
6461      if test "$ac_status" -eq 0; then
6462	# Ensure the archiver fails upon bogus file names.
6463	rm -f conftest.$ac_objext libconftest.a
6464	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6465  (eval $lt_ar_try) 2>&5
6466  ac_status=$?
6467  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6468  test $ac_status = 0; }
6469	if test "$ac_status" -ne 0; then
6470          lt_cv_ar_at_file=@
6471        fi
6472      fi
6473      rm -f conftest.* libconftest.a
6474
6475fi
6476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6477
6478fi
6479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6480$as_echo "$lt_cv_ar_at_file" >&6; }
6481
6482if test "x$lt_cv_ar_at_file" = xno; then
6483  archiver_list_spec=
6484else
6485  archiver_list_spec=$lt_cv_ar_at_file
6486fi
6487
6488
6489
6490
6491
6492
6493
6494if test -n "$ac_tool_prefix"; then
6495  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6496set dummy ${ac_tool_prefix}strip; ac_word=$2
6497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6498$as_echo_n "checking for $ac_word... " >&6; }
6499if ${ac_cv_prog_STRIP+:} false; then :
6500  $as_echo_n "(cached) " >&6
6501else
6502  if test -n "$STRIP"; then
6503  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6504else
6505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6506for as_dir in $PATH
6507do
6508  IFS=$as_save_IFS
6509  test -z "$as_dir" && as_dir=.
6510    for ac_exec_ext in '' $ac_executable_extensions; do
6511  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6512    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6513    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6514    break 2
6515  fi
6516done
6517  done
6518IFS=$as_save_IFS
6519
6520fi
6521fi
6522STRIP=$ac_cv_prog_STRIP
6523if test -n "$STRIP"; then
6524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6525$as_echo "$STRIP" >&6; }
6526else
6527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6528$as_echo "no" >&6; }
6529fi
6530
6531
6532fi
6533if test -z "$ac_cv_prog_STRIP"; then
6534  ac_ct_STRIP=$STRIP
6535  # Extract the first word of "strip", so it can be a program name with args.
6536set dummy strip; ac_word=$2
6537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6538$as_echo_n "checking for $ac_word... " >&6; }
6539if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6540  $as_echo_n "(cached) " >&6
6541else
6542  if test -n "$ac_ct_STRIP"; then
6543  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6544else
6545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546for as_dir in $PATH
6547do
6548  IFS=$as_save_IFS
6549  test -z "$as_dir" && as_dir=.
6550    for ac_exec_ext in '' $ac_executable_extensions; do
6551  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6552    ac_cv_prog_ac_ct_STRIP="strip"
6553    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6554    break 2
6555  fi
6556done
6557  done
6558IFS=$as_save_IFS
6559
6560fi
6561fi
6562ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6563if test -n "$ac_ct_STRIP"; then
6564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6565$as_echo "$ac_ct_STRIP" >&6; }
6566else
6567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6568$as_echo "no" >&6; }
6569fi
6570
6571  if test "x$ac_ct_STRIP" = x; then
6572    STRIP=":"
6573  else
6574    case $cross_compiling:$ac_tool_warned in
6575yes:)
6576{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6577$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6578ac_tool_warned=yes ;;
6579esac
6580    STRIP=$ac_ct_STRIP
6581  fi
6582else
6583  STRIP="$ac_cv_prog_STRIP"
6584fi
6585
6586test -z "$STRIP" && STRIP=:
6587
6588
6589
6590
6591
6592
6593if test -n "$ac_tool_prefix"; then
6594  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6595set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6597$as_echo_n "checking for $ac_word... " >&6; }
6598if ${ac_cv_prog_RANLIB+:} false; then :
6599  $as_echo_n "(cached) " >&6
6600else
6601  if test -n "$RANLIB"; then
6602  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6603else
6604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6605for as_dir in $PATH
6606do
6607  IFS=$as_save_IFS
6608  test -z "$as_dir" && as_dir=.
6609    for ac_exec_ext in '' $ac_executable_extensions; do
6610  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6611    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6612    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6613    break 2
6614  fi
6615done
6616  done
6617IFS=$as_save_IFS
6618
6619fi
6620fi
6621RANLIB=$ac_cv_prog_RANLIB
6622if test -n "$RANLIB"; then
6623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6624$as_echo "$RANLIB" >&6; }
6625else
6626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6627$as_echo "no" >&6; }
6628fi
6629
6630
6631fi
6632if test -z "$ac_cv_prog_RANLIB"; then
6633  ac_ct_RANLIB=$RANLIB
6634  # Extract the first word of "ranlib", so it can be a program name with args.
6635set dummy ranlib; ac_word=$2
6636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6637$as_echo_n "checking for $ac_word... " >&6; }
6638if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6639  $as_echo_n "(cached) " >&6
6640else
6641  if test -n "$ac_ct_RANLIB"; then
6642  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6643else
6644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6645for as_dir in $PATH
6646do
6647  IFS=$as_save_IFS
6648  test -z "$as_dir" && as_dir=.
6649    for ac_exec_ext in '' $ac_executable_extensions; do
6650  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6651    ac_cv_prog_ac_ct_RANLIB="ranlib"
6652    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6653    break 2
6654  fi
6655done
6656  done
6657IFS=$as_save_IFS
6658
6659fi
6660fi
6661ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6662if test -n "$ac_ct_RANLIB"; then
6663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6664$as_echo "$ac_ct_RANLIB" >&6; }
6665else
6666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6667$as_echo "no" >&6; }
6668fi
6669
6670  if test "x$ac_ct_RANLIB" = x; then
6671    RANLIB=":"
6672  else
6673    case $cross_compiling:$ac_tool_warned in
6674yes:)
6675{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6676$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6677ac_tool_warned=yes ;;
6678esac
6679    RANLIB=$ac_ct_RANLIB
6680  fi
6681else
6682  RANLIB="$ac_cv_prog_RANLIB"
6683fi
6684
6685test -z "$RANLIB" && RANLIB=:
6686
6687
6688
6689
6690
6691
6692# Determine commands to create old-style static archives.
6693old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6694old_postinstall_cmds='chmod 644 $oldlib'
6695old_postuninstall_cmds=
6696
6697if test -n "$RANLIB"; then
6698  case $host_os in
6699  openbsd*)
6700    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6701    ;;
6702  *)
6703    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6704    ;;
6705  esac
6706  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6707fi
6708
6709case $host_os in
6710  darwin*)
6711    lock_old_archive_extraction=yes ;;
6712  *)
6713    lock_old_archive_extraction=no ;;
6714esac
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754# If no C compiler was specified, use CC.
6755LTCC=${LTCC-"$CC"}
6756
6757# If no C compiler flags were specified, use CFLAGS.
6758LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6759
6760# Allow CC to be a program name with arguments.
6761compiler=$CC
6762
6763
6764# Check for command to grab the raw symbol name followed by C symbol from nm.
6765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6766$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6767if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6768  $as_echo_n "(cached) " >&6
6769else
6770
6771# These are sane defaults that work on at least a few old systems.
6772# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6773
6774# Character class describing NM global symbol codes.
6775symcode='[BCDEGRST]'
6776
6777# Regexp to match symbols that can be accessed directly from C.
6778sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6779
6780# Define system-specific variables.
6781case $host_os in
6782aix*)
6783  symcode='[BCDT]'
6784  ;;
6785cygwin* | mingw* | pw32* | cegcc*)
6786  symcode='[ABCDGISTW]'
6787  ;;
6788hpux*)
6789  if test "$host_cpu" = ia64; then
6790    symcode='[ABCDEGRST]'
6791  fi
6792  ;;
6793irix* | nonstopux*)
6794  symcode='[BCDEGRST]'
6795  ;;
6796osf*)
6797  symcode='[BCDEGQRST]'
6798  ;;
6799solaris*)
6800  symcode='[BDRT]'
6801  ;;
6802sco3.2v5*)
6803  symcode='[DT]'
6804  ;;
6805sysv4.2uw2*)
6806  symcode='[DT]'
6807  ;;
6808sysv5* | sco5v6* | unixware* | OpenUNIX*)
6809  symcode='[ABDT]'
6810  ;;
6811sysv4)
6812  symcode='[DFNSTU]'
6813  ;;
6814esac
6815
6816# If we're using GNU nm, then use its standard symbol codes.
6817case `$NM -V 2>&1` in
6818*GNU* | *'with BFD'*)
6819  symcode='[ABCDGIRSTW]' ;;
6820esac
6821
6822# Transform an extracted symbol line into a proper C declaration.
6823# Some systems (esp. on ia64) link data and code symbols differently,
6824# so use this general approach.
6825lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6826
6827# Transform an extracted symbol line into symbol name and symbol address
6828lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6829lt_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'"
6830
6831# Handle CRLF in mingw tool chain
6832opt_cr=
6833case $build_os in
6834mingw*)
6835  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6836  ;;
6837esac
6838
6839# Try without a prefix underscore, then with it.
6840for ac_symprfx in "" "_"; do
6841
6842  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6843  symxfrm="\\1 $ac_symprfx\\2 \\2"
6844
6845  # Write the raw and C identifiers.
6846  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6847    # Fake it for dumpbin and say T for any non-static function
6848    # and D for any global variable.
6849    # Also find C++ and __fastcall symbols from MSVC++,
6850    # which start with @ or ?.
6851    lt_cv_sys_global_symbol_pipe="$AWK '"\
6852"     {last_section=section; section=\$ 3};"\
6853"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6854"     \$ 0!~/External *\|/{next};"\
6855"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6856"     {if(hide[section]) next};"\
6857"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6858"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6859"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6860"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6861"     ' prfx=^$ac_symprfx"
6862  else
6863    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6864  fi
6865  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6866
6867  # Check to see that the pipe works correctly.
6868  pipe_works=no
6869
6870  rm -f conftest*
6871  cat > conftest.$ac_ext <<_LT_EOF
6872#ifdef __cplusplus
6873extern "C" {
6874#endif
6875char nm_test_var;
6876void nm_test_func(void);
6877void nm_test_func(void){}
6878#ifdef __cplusplus
6879}
6880#endif
6881int main(){nm_test_var='a';nm_test_func();return(0);}
6882_LT_EOF
6883
6884  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6885  (eval $ac_compile) 2>&5
6886  ac_status=$?
6887  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6888  test $ac_status = 0; }; then
6889    # Now try to grab the symbols.
6890    nlist=conftest.nm
6891    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6892  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6893  ac_status=$?
6894  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6895  test $ac_status = 0; } && test -s "$nlist"; then
6896      # Try sorting and uniquifying the output.
6897      if sort "$nlist" | uniq > "$nlist"T; then
6898	mv -f "$nlist"T "$nlist"
6899      else
6900	rm -f "$nlist"T
6901      fi
6902
6903      # Make sure that we snagged all the symbols we need.
6904      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6905	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6906	  cat <<_LT_EOF > conftest.$ac_ext
6907/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6908#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6909/* DATA imports from DLLs on WIN32 con't be const, because runtime
6910   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6911# define LT_DLSYM_CONST
6912#elif defined(__osf__)
6913/* This system does not cope well with relocations in const data.  */
6914# define LT_DLSYM_CONST
6915#else
6916# define LT_DLSYM_CONST const
6917#endif
6918
6919#ifdef __cplusplus
6920extern "C" {
6921#endif
6922
6923_LT_EOF
6924	  # Now generate the symbol file.
6925	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6926
6927	  cat <<_LT_EOF >> conftest.$ac_ext
6928
6929/* The mapping between symbol names and symbols.  */
6930LT_DLSYM_CONST struct {
6931  const char *name;
6932  void       *address;
6933}
6934lt__PROGRAM__LTX_preloaded_symbols[] =
6935{
6936  { "@PROGRAM@", (void *) 0 },
6937_LT_EOF
6938	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6939	  cat <<\_LT_EOF >> conftest.$ac_ext
6940  {0, (void *) 0}
6941};
6942
6943/* This works around a problem in FreeBSD linker */
6944#ifdef FREEBSD_WORKAROUND
6945static const void *lt_preloaded_setup() {
6946  return lt__PROGRAM__LTX_preloaded_symbols;
6947}
6948#endif
6949
6950#ifdef __cplusplus
6951}
6952#endif
6953_LT_EOF
6954	  # Now try linking the two files.
6955	  mv conftest.$ac_objext conftstm.$ac_objext
6956	  lt_globsym_save_LIBS=$LIBS
6957	  lt_globsym_save_CFLAGS=$CFLAGS
6958	  LIBS="conftstm.$ac_objext"
6959	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6960	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6961  (eval $ac_link) 2>&5
6962  ac_status=$?
6963  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6964  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6965	    pipe_works=yes
6966	  fi
6967	  LIBS=$lt_globsym_save_LIBS
6968	  CFLAGS=$lt_globsym_save_CFLAGS
6969	else
6970	  echo "cannot find nm_test_func in $nlist" >&5
6971	fi
6972      else
6973	echo "cannot find nm_test_var in $nlist" >&5
6974      fi
6975    else
6976      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6977    fi
6978  else
6979    echo "$progname: failed program was:" >&5
6980    cat conftest.$ac_ext >&5
6981  fi
6982  rm -rf conftest* conftst*
6983
6984  # Do not use the global_symbol_pipe unless it works.
6985  if test "$pipe_works" = yes; then
6986    break
6987  else
6988    lt_cv_sys_global_symbol_pipe=
6989  fi
6990done
6991
6992fi
6993
6994if test -z "$lt_cv_sys_global_symbol_pipe"; then
6995  lt_cv_sys_global_symbol_to_cdecl=
6996fi
6997if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6999$as_echo "failed" >&6; }
7000else
7001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7002$as_echo "ok" >&6; }
7003fi
7004
7005# Response file support.
7006if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7007  nm_file_list_spec='@'
7008elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7009  nm_file_list_spec='@'
7010fi
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7039$as_echo_n "checking for sysroot... " >&6; }
7040
7041# Check whether --with-sysroot was given.
7042if test "${with_sysroot+set}" = set; then :
7043  withval=$with_sysroot;
7044else
7045  with_sysroot=no
7046fi
7047
7048
7049lt_sysroot=
7050case ${with_sysroot} in #(
7051 yes)
7052   if test "$GCC" = yes; then
7053     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7054   fi
7055   ;; #(
7056 /*)
7057   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7058   ;; #(
7059 no|'')
7060   ;; #(
7061 *)
7062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7063$as_echo "${with_sysroot}" >&6; }
7064   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7065   ;;
7066esac
7067
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7069$as_echo "${lt_sysroot:-no}" >&6; }
7070
7071
7072
7073
7074
7075# Check whether --enable-libtool-lock was given.
7076if test "${enable_libtool_lock+set}" = set; then :
7077  enableval=$enable_libtool_lock;
7078fi
7079
7080test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7081
7082# Some flags need to be propagated to the compiler or linker for good
7083# libtool support.
7084case $host in
7085ia64-*-hpux*)
7086  # Find out which ABI we are using.
7087  echo 'int i;' > conftest.$ac_ext
7088  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7089  (eval $ac_compile) 2>&5
7090  ac_status=$?
7091  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7092  test $ac_status = 0; }; then
7093    case `/usr/bin/file conftest.$ac_objext` in
7094      *ELF-32*)
7095	HPUX_IA64_MODE="32"
7096	;;
7097      *ELF-64*)
7098	HPUX_IA64_MODE="64"
7099	;;
7100    esac
7101  fi
7102  rm -rf conftest*
7103  ;;
7104*-*-irix6*)
7105  # Find out which ABI we are using.
7106  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7107  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7108  (eval $ac_compile) 2>&5
7109  ac_status=$?
7110  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7111  test $ac_status = 0; }; then
7112    if test "$lt_cv_prog_gnu_ld" = yes; then
7113      case `/usr/bin/file conftest.$ac_objext` in
7114	*32-bit*)
7115	  LD="${LD-ld} -melf32bsmip"
7116	  ;;
7117	*N32*)
7118	  LD="${LD-ld} -melf32bmipn32"
7119	  ;;
7120	*64-bit*)
7121	  LD="${LD-ld} -melf64bmip"
7122	;;
7123      esac
7124    else
7125      case `/usr/bin/file conftest.$ac_objext` in
7126	*32-bit*)
7127	  LD="${LD-ld} -32"
7128	  ;;
7129	*N32*)
7130	  LD="${LD-ld} -n32"
7131	  ;;
7132	*64-bit*)
7133	  LD="${LD-ld} -64"
7134	  ;;
7135      esac
7136    fi
7137  fi
7138  rm -rf conftest*
7139  ;;
7140
7141x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7142s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7143  # Find out which ABI we are using.
7144  echo 'int i;' > conftest.$ac_ext
7145  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7146  (eval $ac_compile) 2>&5
7147  ac_status=$?
7148  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7149  test $ac_status = 0; }; then
7150    case `/usr/bin/file conftest.o` in
7151      *32-bit*)
7152	case $host in
7153	  x86_64-*kfreebsd*-gnu)
7154	    LD="${LD-ld} -m elf_i386_fbsd"
7155	    ;;
7156	  x86_64-*linux*)
7157	    LD="${LD-ld} -m elf_i386"
7158	    ;;
7159	  ppc64-*linux*|powerpc64-*linux*)
7160	    LD="${LD-ld} -m elf32ppclinux"
7161	    ;;
7162	  s390x-*linux*)
7163	    LD="${LD-ld} -m elf_s390"
7164	    ;;
7165	  sparc64-*linux*)
7166	    LD="${LD-ld} -m elf32_sparc"
7167	    ;;
7168	esac
7169	;;
7170      *64-bit*)
7171	case $host in
7172	  x86_64-*kfreebsd*-gnu)
7173	    LD="${LD-ld} -m elf_x86_64_fbsd"
7174	    ;;
7175	  x86_64-*linux*)
7176	    LD="${LD-ld} -m elf_x86_64"
7177	    ;;
7178	  ppc*-*linux*|powerpc*-*linux*)
7179	    LD="${LD-ld} -m elf64ppc"
7180	    ;;
7181	  s390*-*linux*|s390*-*tpf*)
7182	    LD="${LD-ld} -m elf64_s390"
7183	    ;;
7184	  sparc*-*linux*)
7185	    LD="${LD-ld} -m elf64_sparc"
7186	    ;;
7187	esac
7188	;;
7189    esac
7190  fi
7191  rm -rf conftest*
7192  ;;
7193
7194*-*-sco3.2v5*)
7195  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7196  SAVE_CFLAGS="$CFLAGS"
7197  CFLAGS="$CFLAGS -belf"
7198  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7199$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7200if ${lt_cv_cc_needs_belf+:} false; then :
7201  $as_echo_n "(cached) " >&6
7202else
7203  ac_ext=c
7204ac_cpp='$CPP $CPPFLAGS'
7205ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7206ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7207ac_compiler_gnu=$ac_cv_c_compiler_gnu
7208
7209     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7210/* end confdefs.h.  */
7211
7212int
7213main ()
7214{
7215
7216  ;
7217  return 0;
7218}
7219_ACEOF
7220if ac_fn_c_try_link "$LINENO"; then :
7221  lt_cv_cc_needs_belf=yes
7222else
7223  lt_cv_cc_needs_belf=no
7224fi
7225rm -f core conftest.err conftest.$ac_objext \
7226    conftest$ac_exeext conftest.$ac_ext
7227     ac_ext=c
7228ac_cpp='$CPP $CPPFLAGS'
7229ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7230ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7231ac_compiler_gnu=$ac_cv_c_compiler_gnu
7232
7233fi
7234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7235$as_echo "$lt_cv_cc_needs_belf" >&6; }
7236  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7237    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7238    CFLAGS="$SAVE_CFLAGS"
7239  fi
7240  ;;
7241sparc*-*solaris*)
7242  # Find out which ABI we are using.
7243  echo 'int i;' > conftest.$ac_ext
7244  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7245  (eval $ac_compile) 2>&5
7246  ac_status=$?
7247  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7248  test $ac_status = 0; }; then
7249    case `/usr/bin/file conftest.o` in
7250    *64-bit*)
7251      case $lt_cv_prog_gnu_ld in
7252      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7253      *)
7254	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7255	  LD="${LD-ld} -64"
7256	fi
7257	;;
7258      esac
7259      ;;
7260    esac
7261  fi
7262  rm -rf conftest*
7263  ;;
7264esac
7265
7266need_locks="$enable_libtool_lock"
7267
7268if test -n "$ac_tool_prefix"; then
7269  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7270set dummy ${ac_tool_prefix}mt; ac_word=$2
7271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7272$as_echo_n "checking for $ac_word... " >&6; }
7273if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7274  $as_echo_n "(cached) " >&6
7275else
7276  if test -n "$MANIFEST_TOOL"; then
7277  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7278else
7279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7280for as_dir in $PATH
7281do
7282  IFS=$as_save_IFS
7283  test -z "$as_dir" && as_dir=.
7284    for ac_exec_ext in '' $ac_executable_extensions; do
7285  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7286    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7287    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7288    break 2
7289  fi
7290done
7291  done
7292IFS=$as_save_IFS
7293
7294fi
7295fi
7296MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7297if test -n "$MANIFEST_TOOL"; then
7298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7299$as_echo "$MANIFEST_TOOL" >&6; }
7300else
7301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7302$as_echo "no" >&6; }
7303fi
7304
7305
7306fi
7307if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7308  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7309  # Extract the first word of "mt", so it can be a program name with args.
7310set dummy mt; ac_word=$2
7311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7312$as_echo_n "checking for $ac_word... " >&6; }
7313if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7314  $as_echo_n "(cached) " >&6
7315else
7316  if test -n "$ac_ct_MANIFEST_TOOL"; then
7317  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7318else
7319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7320for as_dir in $PATH
7321do
7322  IFS=$as_save_IFS
7323  test -z "$as_dir" && as_dir=.
7324    for ac_exec_ext in '' $ac_executable_extensions; do
7325  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7326    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7327    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7328    break 2
7329  fi
7330done
7331  done
7332IFS=$as_save_IFS
7333
7334fi
7335fi
7336ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7337if test -n "$ac_ct_MANIFEST_TOOL"; then
7338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7339$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7340else
7341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7342$as_echo "no" >&6; }
7343fi
7344
7345  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7346    MANIFEST_TOOL=":"
7347  else
7348    case $cross_compiling:$ac_tool_warned in
7349yes:)
7350{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7351$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7352ac_tool_warned=yes ;;
7353esac
7354    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7355  fi
7356else
7357  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7358fi
7359
7360test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7362$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7363if ${lt_cv_path_mainfest_tool+:} false; then :
7364  $as_echo_n "(cached) " >&6
7365else
7366  lt_cv_path_mainfest_tool=no
7367  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7368  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7369  cat conftest.err >&5
7370  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7371    lt_cv_path_mainfest_tool=yes
7372  fi
7373  rm -f conftest*
7374fi
7375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7376$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7377if test "x$lt_cv_path_mainfest_tool" != xyes; then
7378  MANIFEST_TOOL=:
7379fi
7380
7381
7382
7383
7384
7385
7386  case $host_os in
7387    rhapsody* | darwin*)
7388    if test -n "$ac_tool_prefix"; then
7389  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7390set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7392$as_echo_n "checking for $ac_word... " >&6; }
7393if ${ac_cv_prog_DSYMUTIL+:} false; then :
7394  $as_echo_n "(cached) " >&6
7395else
7396  if test -n "$DSYMUTIL"; then
7397  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7398else
7399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400for as_dir in $PATH
7401do
7402  IFS=$as_save_IFS
7403  test -z "$as_dir" && as_dir=.
7404    for ac_exec_ext in '' $ac_executable_extensions; do
7405  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7406    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7407    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7408    break 2
7409  fi
7410done
7411  done
7412IFS=$as_save_IFS
7413
7414fi
7415fi
7416DSYMUTIL=$ac_cv_prog_DSYMUTIL
7417if test -n "$DSYMUTIL"; then
7418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7419$as_echo "$DSYMUTIL" >&6; }
7420else
7421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7422$as_echo "no" >&6; }
7423fi
7424
7425
7426fi
7427if test -z "$ac_cv_prog_DSYMUTIL"; then
7428  ac_ct_DSYMUTIL=$DSYMUTIL
7429  # Extract the first word of "dsymutil", so it can be a program name with args.
7430set dummy dsymutil; ac_word=$2
7431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7432$as_echo_n "checking for $ac_word... " >&6; }
7433if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7434  $as_echo_n "(cached) " >&6
7435else
7436  if test -n "$ac_ct_DSYMUTIL"; then
7437  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7438else
7439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7440for as_dir in $PATH
7441do
7442  IFS=$as_save_IFS
7443  test -z "$as_dir" && as_dir=.
7444    for ac_exec_ext in '' $ac_executable_extensions; do
7445  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7446    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7447    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7448    break 2
7449  fi
7450done
7451  done
7452IFS=$as_save_IFS
7453
7454fi
7455fi
7456ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7457if test -n "$ac_ct_DSYMUTIL"; then
7458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7459$as_echo "$ac_ct_DSYMUTIL" >&6; }
7460else
7461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7462$as_echo "no" >&6; }
7463fi
7464
7465  if test "x$ac_ct_DSYMUTIL" = x; then
7466    DSYMUTIL=":"
7467  else
7468    case $cross_compiling:$ac_tool_warned in
7469yes:)
7470{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7471$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7472ac_tool_warned=yes ;;
7473esac
7474    DSYMUTIL=$ac_ct_DSYMUTIL
7475  fi
7476else
7477  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7478fi
7479
7480    if test -n "$ac_tool_prefix"; then
7481  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7482set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7484$as_echo_n "checking for $ac_word... " >&6; }
7485if ${ac_cv_prog_NMEDIT+:} false; then :
7486  $as_echo_n "(cached) " >&6
7487else
7488  if test -n "$NMEDIT"; then
7489  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7490else
7491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7492for as_dir in $PATH
7493do
7494  IFS=$as_save_IFS
7495  test -z "$as_dir" && as_dir=.
7496    for ac_exec_ext in '' $ac_executable_extensions; do
7497  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7498    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7499    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7500    break 2
7501  fi
7502done
7503  done
7504IFS=$as_save_IFS
7505
7506fi
7507fi
7508NMEDIT=$ac_cv_prog_NMEDIT
7509if test -n "$NMEDIT"; then
7510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7511$as_echo "$NMEDIT" >&6; }
7512else
7513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7514$as_echo "no" >&6; }
7515fi
7516
7517
7518fi
7519if test -z "$ac_cv_prog_NMEDIT"; then
7520  ac_ct_NMEDIT=$NMEDIT
7521  # Extract the first word of "nmedit", so it can be a program name with args.
7522set dummy nmedit; ac_word=$2
7523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7524$as_echo_n "checking for $ac_word... " >&6; }
7525if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7526  $as_echo_n "(cached) " >&6
7527else
7528  if test -n "$ac_ct_NMEDIT"; then
7529  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7530else
7531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7532for as_dir in $PATH
7533do
7534  IFS=$as_save_IFS
7535  test -z "$as_dir" && as_dir=.
7536    for ac_exec_ext in '' $ac_executable_extensions; do
7537  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7538    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7539    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7540    break 2
7541  fi
7542done
7543  done
7544IFS=$as_save_IFS
7545
7546fi
7547fi
7548ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7549if test -n "$ac_ct_NMEDIT"; then
7550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7551$as_echo "$ac_ct_NMEDIT" >&6; }
7552else
7553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7554$as_echo "no" >&6; }
7555fi
7556
7557  if test "x$ac_ct_NMEDIT" = x; then
7558    NMEDIT=":"
7559  else
7560    case $cross_compiling:$ac_tool_warned in
7561yes:)
7562{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7563$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7564ac_tool_warned=yes ;;
7565esac
7566    NMEDIT=$ac_ct_NMEDIT
7567  fi
7568else
7569  NMEDIT="$ac_cv_prog_NMEDIT"
7570fi
7571
7572    if test -n "$ac_tool_prefix"; then
7573  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7574set dummy ${ac_tool_prefix}lipo; ac_word=$2
7575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7576$as_echo_n "checking for $ac_word... " >&6; }
7577if ${ac_cv_prog_LIPO+:} false; then :
7578  $as_echo_n "(cached) " >&6
7579else
7580  if test -n "$LIPO"; then
7581  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7582else
7583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7584for as_dir in $PATH
7585do
7586  IFS=$as_save_IFS
7587  test -z "$as_dir" && as_dir=.
7588    for ac_exec_ext in '' $ac_executable_extensions; do
7589  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7590    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7591    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7592    break 2
7593  fi
7594done
7595  done
7596IFS=$as_save_IFS
7597
7598fi
7599fi
7600LIPO=$ac_cv_prog_LIPO
7601if test -n "$LIPO"; then
7602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7603$as_echo "$LIPO" >&6; }
7604else
7605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7606$as_echo "no" >&6; }
7607fi
7608
7609
7610fi
7611if test -z "$ac_cv_prog_LIPO"; then
7612  ac_ct_LIPO=$LIPO
7613  # Extract the first word of "lipo", so it can be a program name with args.
7614set dummy lipo; ac_word=$2
7615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7616$as_echo_n "checking for $ac_word... " >&6; }
7617if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7618  $as_echo_n "(cached) " >&6
7619else
7620  if test -n "$ac_ct_LIPO"; then
7621  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7622else
7623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7624for as_dir in $PATH
7625do
7626  IFS=$as_save_IFS
7627  test -z "$as_dir" && as_dir=.
7628    for ac_exec_ext in '' $ac_executable_extensions; do
7629  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7630    ac_cv_prog_ac_ct_LIPO="lipo"
7631    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7632    break 2
7633  fi
7634done
7635  done
7636IFS=$as_save_IFS
7637
7638fi
7639fi
7640ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7641if test -n "$ac_ct_LIPO"; then
7642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7643$as_echo "$ac_ct_LIPO" >&6; }
7644else
7645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7646$as_echo "no" >&6; }
7647fi
7648
7649  if test "x$ac_ct_LIPO" = x; then
7650    LIPO=":"
7651  else
7652    case $cross_compiling:$ac_tool_warned in
7653yes:)
7654{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7655$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7656ac_tool_warned=yes ;;
7657esac
7658    LIPO=$ac_ct_LIPO
7659  fi
7660else
7661  LIPO="$ac_cv_prog_LIPO"
7662fi
7663
7664    if test -n "$ac_tool_prefix"; then
7665  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7666set dummy ${ac_tool_prefix}otool; ac_word=$2
7667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7668$as_echo_n "checking for $ac_word... " >&6; }
7669if ${ac_cv_prog_OTOOL+:} false; then :
7670  $as_echo_n "(cached) " >&6
7671else
7672  if test -n "$OTOOL"; then
7673  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7674else
7675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7676for as_dir in $PATH
7677do
7678  IFS=$as_save_IFS
7679  test -z "$as_dir" && as_dir=.
7680    for ac_exec_ext in '' $ac_executable_extensions; do
7681  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7682    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7683    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7684    break 2
7685  fi
7686done
7687  done
7688IFS=$as_save_IFS
7689
7690fi
7691fi
7692OTOOL=$ac_cv_prog_OTOOL
7693if test -n "$OTOOL"; then
7694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7695$as_echo "$OTOOL" >&6; }
7696else
7697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7698$as_echo "no" >&6; }
7699fi
7700
7701
7702fi
7703if test -z "$ac_cv_prog_OTOOL"; then
7704  ac_ct_OTOOL=$OTOOL
7705  # Extract the first word of "otool", so it can be a program name with args.
7706set dummy otool; ac_word=$2
7707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7708$as_echo_n "checking for $ac_word... " >&6; }
7709if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7710  $as_echo_n "(cached) " >&6
7711else
7712  if test -n "$ac_ct_OTOOL"; then
7713  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7714else
7715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7716for as_dir in $PATH
7717do
7718  IFS=$as_save_IFS
7719  test -z "$as_dir" && as_dir=.
7720    for ac_exec_ext in '' $ac_executable_extensions; do
7721  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7722    ac_cv_prog_ac_ct_OTOOL="otool"
7723    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7724    break 2
7725  fi
7726done
7727  done
7728IFS=$as_save_IFS
7729
7730fi
7731fi
7732ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7733if test -n "$ac_ct_OTOOL"; then
7734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7735$as_echo "$ac_ct_OTOOL" >&6; }
7736else
7737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7738$as_echo "no" >&6; }
7739fi
7740
7741  if test "x$ac_ct_OTOOL" = x; then
7742    OTOOL=":"
7743  else
7744    case $cross_compiling:$ac_tool_warned in
7745yes:)
7746{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7747$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7748ac_tool_warned=yes ;;
7749esac
7750    OTOOL=$ac_ct_OTOOL
7751  fi
7752else
7753  OTOOL="$ac_cv_prog_OTOOL"
7754fi
7755
7756    if test -n "$ac_tool_prefix"; then
7757  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7758set dummy ${ac_tool_prefix}otool64; ac_word=$2
7759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7760$as_echo_n "checking for $ac_word... " >&6; }
7761if ${ac_cv_prog_OTOOL64+:} false; then :
7762  $as_echo_n "(cached) " >&6
7763else
7764  if test -n "$OTOOL64"; then
7765  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7766else
7767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7768for as_dir in $PATH
7769do
7770  IFS=$as_save_IFS
7771  test -z "$as_dir" && as_dir=.
7772    for ac_exec_ext in '' $ac_executable_extensions; do
7773  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7774    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7775    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7776    break 2
7777  fi
7778done
7779  done
7780IFS=$as_save_IFS
7781
7782fi
7783fi
7784OTOOL64=$ac_cv_prog_OTOOL64
7785if test -n "$OTOOL64"; then
7786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7787$as_echo "$OTOOL64" >&6; }
7788else
7789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7790$as_echo "no" >&6; }
7791fi
7792
7793
7794fi
7795if test -z "$ac_cv_prog_OTOOL64"; then
7796  ac_ct_OTOOL64=$OTOOL64
7797  # Extract the first word of "otool64", so it can be a program name with args.
7798set dummy otool64; ac_word=$2
7799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7800$as_echo_n "checking for $ac_word... " >&6; }
7801if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7802  $as_echo_n "(cached) " >&6
7803else
7804  if test -n "$ac_ct_OTOOL64"; then
7805  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7806else
7807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7808for as_dir in $PATH
7809do
7810  IFS=$as_save_IFS
7811  test -z "$as_dir" && as_dir=.
7812    for ac_exec_ext in '' $ac_executable_extensions; do
7813  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7814    ac_cv_prog_ac_ct_OTOOL64="otool64"
7815    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7816    break 2
7817  fi
7818done
7819  done
7820IFS=$as_save_IFS
7821
7822fi
7823fi
7824ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7825if test -n "$ac_ct_OTOOL64"; then
7826  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7827$as_echo "$ac_ct_OTOOL64" >&6; }
7828else
7829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7830$as_echo "no" >&6; }
7831fi
7832
7833  if test "x$ac_ct_OTOOL64" = x; then
7834    OTOOL64=":"
7835  else
7836    case $cross_compiling:$ac_tool_warned in
7837yes:)
7838{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7839$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7840ac_tool_warned=yes ;;
7841esac
7842    OTOOL64=$ac_ct_OTOOL64
7843  fi
7844else
7845  OTOOL64="$ac_cv_prog_OTOOL64"
7846fi
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7875$as_echo_n "checking for -single_module linker flag... " >&6; }
7876if ${lt_cv_apple_cc_single_mod+:} false; then :
7877  $as_echo_n "(cached) " >&6
7878else
7879  lt_cv_apple_cc_single_mod=no
7880      if test -z "${LT_MULTI_MODULE}"; then
7881	# By default we will add the -single_module flag. You can override
7882	# by either setting the environment variable LT_MULTI_MODULE
7883	# non-empty at configure time, or by adding -multi_module to the
7884	# link flags.
7885	rm -rf libconftest.dylib*
7886	echo "int foo(void){return 1;}" > conftest.c
7887	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7888-dynamiclib -Wl,-single_module conftest.c" >&5
7889	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7890	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7891        _lt_result=$?
7892	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7893	  lt_cv_apple_cc_single_mod=yes
7894	else
7895	  cat conftest.err >&5
7896	fi
7897	rm -rf libconftest.dylib*
7898	rm -f conftest.*
7899      fi
7900fi
7901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7902$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7903    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7904$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7905if ${lt_cv_ld_exported_symbols_list+:} false; then :
7906  $as_echo_n "(cached) " >&6
7907else
7908  lt_cv_ld_exported_symbols_list=no
7909      save_LDFLAGS=$LDFLAGS
7910      echo "_main" > conftest.sym
7911      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7912      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7913/* end confdefs.h.  */
7914
7915int
7916main ()
7917{
7918
7919  ;
7920  return 0;
7921}
7922_ACEOF
7923if ac_fn_c_try_link "$LINENO"; then :
7924  lt_cv_ld_exported_symbols_list=yes
7925else
7926  lt_cv_ld_exported_symbols_list=no
7927fi
7928rm -f core conftest.err conftest.$ac_objext \
7929    conftest$ac_exeext conftest.$ac_ext
7930	LDFLAGS="$save_LDFLAGS"
7931
7932fi
7933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7934$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7935    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7936$as_echo_n "checking for -force_load linker flag... " >&6; }
7937if ${lt_cv_ld_force_load+:} false; then :
7938  $as_echo_n "(cached) " >&6
7939else
7940  lt_cv_ld_force_load=no
7941      cat > conftest.c << _LT_EOF
7942int forced_loaded() { return 2;}
7943_LT_EOF
7944      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7945      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7946      echo "$AR cru libconftest.a conftest.o" >&5
7947      $AR cru libconftest.a conftest.o 2>&5
7948      echo "$RANLIB libconftest.a" >&5
7949      $RANLIB libconftest.a 2>&5
7950      cat > conftest.c << _LT_EOF
7951int main() { return 0;}
7952_LT_EOF
7953      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7954      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7955      _lt_result=$?
7956      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7957	lt_cv_ld_force_load=yes
7958      else
7959	cat conftest.err >&5
7960      fi
7961        rm -f conftest.err libconftest.a conftest conftest.c
7962        rm -rf conftest.dSYM
7963
7964fi
7965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7966$as_echo "$lt_cv_ld_force_load" >&6; }
7967    case $host_os in
7968    rhapsody* | darwin1.[012])
7969      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7970    darwin1.*)
7971      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7972    darwin*) # darwin 5.x on
7973      # if running on 10.5 or later, the deployment target defaults
7974      # to the OS version, if on x86, and 10.4, the deployment
7975      # target defaults to 10.4. Don't you love it?
7976      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7977	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7978	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7979	10.[012]*)
7980	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7981	10.*)
7982	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7983      esac
7984    ;;
7985  esac
7986    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7987      _lt_dar_single_mod='$single_module'
7988    fi
7989    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7990      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7991    else
7992      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7993    fi
7994    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7995      _lt_dsymutil='~$DSYMUTIL $lib || :'
7996    else
7997      _lt_dsymutil=
7998    fi
7999    ;;
8000  esac
8001
8002for ac_header in dlfcn.h
8003do :
8004  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8005"
8006if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8007  cat >>confdefs.h <<_ACEOF
8008#define HAVE_DLFCN_H 1
8009_ACEOF
8010
8011fi
8012
8013done
8014
8015
8016
8017
8018
8019# Set options
8020
8021
8022
8023        enable_dlopen=no
8024
8025
8026  enable_win32_dll=no
8027
8028
8029            # Check whether --enable-shared was given.
8030if test "${enable_shared+set}" = set; then :
8031  enableval=$enable_shared; p=${PACKAGE-default}
8032    case $enableval in
8033    yes) enable_shared=yes ;;
8034    no) enable_shared=no ;;
8035    *)
8036      enable_shared=no
8037      # Look at the argument we got.  We use all the common list separators.
8038      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8039      for pkg in $enableval; do
8040	IFS="$lt_save_ifs"
8041	if test "X$pkg" = "X$p"; then
8042	  enable_shared=yes
8043	fi
8044      done
8045      IFS="$lt_save_ifs"
8046      ;;
8047    esac
8048else
8049  enable_shared=yes
8050fi
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062# Check whether --with-pic was given.
8063if test "${with_pic+set}" = set; then :
8064  withval=$with_pic; pic_mode="$withval"
8065else
8066  pic_mode=default
8067fi
8068
8069
8070test -z "$pic_mode" && pic_mode=default
8071
8072
8073
8074
8075
8076
8077
8078  # Check whether --enable-fast-install was given.
8079if test "${enable_fast_install+set}" = set; then :
8080  enableval=$enable_fast_install; p=${PACKAGE-default}
8081    case $enableval in
8082    yes) enable_fast_install=yes ;;
8083    no) enable_fast_install=no ;;
8084    *)
8085      enable_fast_install=no
8086      # Look at the argument we got.  We use all the common list separators.
8087      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8088      for pkg in $enableval; do
8089	IFS="$lt_save_ifs"
8090	if test "X$pkg" = "X$p"; then
8091	  enable_fast_install=yes
8092	fi
8093      done
8094      IFS="$lt_save_ifs"
8095      ;;
8096    esac
8097else
8098  enable_fast_install=yes
8099fi
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111# This can be used to rebuild libtool when needed
8112LIBTOOL_DEPS="$ltmain"
8113
8114# Always use our own libtool.
8115LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142test -z "$LN_S" && LN_S="ln -s"
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157if test -n "${ZSH_VERSION+set}" ; then
8158   setopt NO_GLOB_SUBST
8159fi
8160
8161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8162$as_echo_n "checking for objdir... " >&6; }
8163if ${lt_cv_objdir+:} false; then :
8164  $as_echo_n "(cached) " >&6
8165else
8166  rm -f .libs 2>/dev/null
8167mkdir .libs 2>/dev/null
8168if test -d .libs; then
8169  lt_cv_objdir=.libs
8170else
8171  # MS-DOS does not allow filenames that begin with a dot.
8172  lt_cv_objdir=_libs
8173fi
8174rmdir .libs 2>/dev/null
8175fi
8176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8177$as_echo "$lt_cv_objdir" >&6; }
8178objdir=$lt_cv_objdir
8179
8180
8181
8182
8183
8184cat >>confdefs.h <<_ACEOF
8185#define LT_OBJDIR "$lt_cv_objdir/"
8186_ACEOF
8187
8188
8189
8190
8191case $host_os in
8192aix3*)
8193  # AIX sometimes has problems with the GCC collect2 program.  For some
8194  # reason, if we set the COLLECT_NAMES environment variable, the problems
8195  # vanish in a puff of smoke.
8196  if test "X${COLLECT_NAMES+set}" != Xset; then
8197    COLLECT_NAMES=
8198    export COLLECT_NAMES
8199  fi
8200  ;;
8201esac
8202
8203# Global variables:
8204ofile=libtool
8205can_build_shared=yes
8206
8207# All known linkers require a `.a' archive for static linking (except MSVC,
8208# which needs '.lib').
8209libext=a
8210
8211with_gnu_ld="$lt_cv_prog_gnu_ld"
8212
8213old_CC="$CC"
8214old_CFLAGS="$CFLAGS"
8215
8216# Set sane defaults for various variables
8217test -z "$CC" && CC=cc
8218test -z "$LTCC" && LTCC=$CC
8219test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8220test -z "$LD" && LD=ld
8221test -z "$ac_objext" && ac_objext=o
8222
8223for cc_temp in $compiler""; do
8224  case $cc_temp in
8225    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8226    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8227    \-*) ;;
8228    *) break;;
8229  esac
8230done
8231cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8232
8233
8234# Only perform the check for file, if the check method requires it
8235test -z "$MAGIC_CMD" && MAGIC_CMD=file
8236case $deplibs_check_method in
8237file_magic*)
8238  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8239    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8240$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8241if ${lt_cv_path_MAGIC_CMD+:} false; then :
8242  $as_echo_n "(cached) " >&6
8243else
8244  case $MAGIC_CMD in
8245[\\/*] |  ?:[\\/]*)
8246  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8247  ;;
8248*)
8249  lt_save_MAGIC_CMD="$MAGIC_CMD"
8250  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8251  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8252  for ac_dir in $ac_dummy; do
8253    IFS="$lt_save_ifs"
8254    test -z "$ac_dir" && ac_dir=.
8255    if test -f $ac_dir/${ac_tool_prefix}file; then
8256      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8257      if test -n "$file_magic_test_file"; then
8258	case $deplibs_check_method in
8259	"file_magic "*)
8260	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8261	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8262	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8263	    $EGREP "$file_magic_regex" > /dev/null; then
8264	    :
8265	  else
8266	    cat <<_LT_EOF 1>&2
8267
8268*** Warning: the command libtool uses to detect shared libraries,
8269*** $file_magic_cmd, produces output that libtool cannot recognize.
8270*** The result is that libtool may fail to recognize shared libraries
8271*** as such.  This will affect the creation of libtool libraries that
8272*** depend on shared libraries, but programs linked with such libtool
8273*** libraries will work regardless of this problem.  Nevertheless, you
8274*** may want to report the problem to your system manager and/or to
8275*** bug-libtool@gnu.org
8276
8277_LT_EOF
8278	  fi ;;
8279	esac
8280      fi
8281      break
8282    fi
8283  done
8284  IFS="$lt_save_ifs"
8285  MAGIC_CMD="$lt_save_MAGIC_CMD"
8286  ;;
8287esac
8288fi
8289
8290MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8291if test -n "$MAGIC_CMD"; then
8292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8293$as_echo "$MAGIC_CMD" >&6; }
8294else
8295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8296$as_echo "no" >&6; }
8297fi
8298
8299
8300
8301
8302
8303if test -z "$lt_cv_path_MAGIC_CMD"; then
8304  if test -n "$ac_tool_prefix"; then
8305    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8306$as_echo_n "checking for file... " >&6; }
8307if ${lt_cv_path_MAGIC_CMD+:} false; then :
8308  $as_echo_n "(cached) " >&6
8309else
8310  case $MAGIC_CMD in
8311[\\/*] |  ?:[\\/]*)
8312  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8313  ;;
8314*)
8315  lt_save_MAGIC_CMD="$MAGIC_CMD"
8316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8317  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8318  for ac_dir in $ac_dummy; do
8319    IFS="$lt_save_ifs"
8320    test -z "$ac_dir" && ac_dir=.
8321    if test -f $ac_dir/file; then
8322      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8323      if test -n "$file_magic_test_file"; then
8324	case $deplibs_check_method in
8325	"file_magic "*)
8326	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8327	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8328	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8329	    $EGREP "$file_magic_regex" > /dev/null; then
8330	    :
8331	  else
8332	    cat <<_LT_EOF 1>&2
8333
8334*** Warning: the command libtool uses to detect shared libraries,
8335*** $file_magic_cmd, produces output that libtool cannot recognize.
8336*** The result is that libtool may fail to recognize shared libraries
8337*** as such.  This will affect the creation of libtool libraries that
8338*** depend on shared libraries, but programs linked with such libtool
8339*** libraries will work regardless of this problem.  Nevertheless, you
8340*** may want to report the problem to your system manager and/or to
8341*** bug-libtool@gnu.org
8342
8343_LT_EOF
8344	  fi ;;
8345	esac
8346      fi
8347      break
8348    fi
8349  done
8350  IFS="$lt_save_ifs"
8351  MAGIC_CMD="$lt_save_MAGIC_CMD"
8352  ;;
8353esac
8354fi
8355
8356MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8357if test -n "$MAGIC_CMD"; then
8358  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8359$as_echo "$MAGIC_CMD" >&6; }
8360else
8361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8362$as_echo "no" >&6; }
8363fi
8364
8365
8366  else
8367    MAGIC_CMD=:
8368  fi
8369fi
8370
8371  fi
8372  ;;
8373esac
8374
8375# Use C for the default configuration in the libtool script
8376
8377lt_save_CC="$CC"
8378ac_ext=c
8379ac_cpp='$CPP $CPPFLAGS'
8380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8382ac_compiler_gnu=$ac_cv_c_compiler_gnu
8383
8384
8385# Source file extension for C test sources.
8386ac_ext=c
8387
8388# Object file extension for compiled C test sources.
8389objext=o
8390objext=$objext
8391
8392# Code to be used in simple compile tests
8393lt_simple_compile_test_code="int some_variable = 0;"
8394
8395# Code to be used in simple link tests
8396lt_simple_link_test_code='int main(){return(0);}'
8397
8398
8399
8400
8401
8402
8403
8404# If no C compiler was specified, use CC.
8405LTCC=${LTCC-"$CC"}
8406
8407# If no C compiler flags were specified, use CFLAGS.
8408LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8409
8410# Allow CC to be a program name with arguments.
8411compiler=$CC
8412
8413# Save the default compiler, since it gets overwritten when the other
8414# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8415compiler_DEFAULT=$CC
8416
8417# save warnings/boilerplate of simple test code
8418ac_outfile=conftest.$ac_objext
8419echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8420eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8421_lt_compiler_boilerplate=`cat conftest.err`
8422$RM conftest*
8423
8424ac_outfile=conftest.$ac_objext
8425echo "$lt_simple_link_test_code" >conftest.$ac_ext
8426eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8427_lt_linker_boilerplate=`cat conftest.err`
8428$RM -r conftest*
8429
8430
8431if test -n "$compiler"; then
8432
8433lt_prog_compiler_no_builtin_flag=
8434
8435if test "$GCC" = yes; then
8436  case $cc_basename in
8437  nvcc*)
8438    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8439  *)
8440    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8441  esac
8442
8443  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8444$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8445if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8446  $as_echo_n "(cached) " >&6
8447else
8448  lt_cv_prog_compiler_rtti_exceptions=no
8449   ac_outfile=conftest.$ac_objext
8450   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8451   lt_compiler_flag="-fno-rtti -fno-exceptions"
8452   # Insert the option either (1) after the last *FLAGS variable, or
8453   # (2) before a word containing "conftest.", or (3) at the end.
8454   # Note that $ac_compile itself does not contain backslashes and begins
8455   # with a dollar sign (not a hyphen), so the echo should work correctly.
8456   # The option is referenced via a variable to avoid confusing sed.
8457   lt_compile=`echo "$ac_compile" | $SED \
8458   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8459   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8460   -e 's:$: $lt_compiler_flag:'`
8461   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8462   (eval "$lt_compile" 2>conftest.err)
8463   ac_status=$?
8464   cat conftest.err >&5
8465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466   if (exit $ac_status) && test -s "$ac_outfile"; then
8467     # The compiler can only warn and ignore the option if not recognized
8468     # So say no if there are warnings other than the usual output.
8469     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8470     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8471     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8472       lt_cv_prog_compiler_rtti_exceptions=yes
8473     fi
8474   fi
8475   $RM conftest*
8476
8477fi
8478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8479$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8480
8481if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8482    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8483else
8484    :
8485fi
8486
8487fi
8488
8489
8490
8491
8492
8493
8494  lt_prog_compiler_wl=
8495lt_prog_compiler_pic=
8496lt_prog_compiler_static=
8497
8498
8499  if test "$GCC" = yes; then
8500    lt_prog_compiler_wl='-Wl,'
8501    lt_prog_compiler_static='-static'
8502
8503    case $host_os in
8504      aix*)
8505      # All AIX code is PIC.
8506      if test "$host_cpu" = ia64; then
8507	# AIX 5 now supports IA64 processor
8508	lt_prog_compiler_static='-Bstatic'
8509      fi
8510      ;;
8511
8512    amigaos*)
8513      case $host_cpu in
8514      powerpc)
8515            # see comment about AmigaOS4 .so support
8516            lt_prog_compiler_pic='-fPIC'
8517        ;;
8518      m68k)
8519            # FIXME: we need at least 68020 code to build shared libraries, but
8520            # adding the `-m68020' flag to GCC prevents building anything better,
8521            # like `-m68040'.
8522            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8523        ;;
8524      esac
8525      ;;
8526
8527    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8528      # PIC is the default for these OSes.
8529      ;;
8530
8531    mingw* | cygwin* | pw32* | os2* | cegcc*)
8532      # This hack is so that the source file can tell whether it is being
8533      # built for inclusion in a dll (and should export symbols for example).
8534      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8535      # (--disable-auto-import) libraries
8536      lt_prog_compiler_pic='-DDLL_EXPORT'
8537      ;;
8538
8539    darwin* | rhapsody*)
8540      # PIC is the default on this platform
8541      # Common symbols not allowed in MH_DYLIB files
8542      lt_prog_compiler_pic='-fno-common'
8543      ;;
8544
8545    haiku*)
8546      # PIC is the default for Haiku.
8547      # The "-static" flag exists, but is broken.
8548      lt_prog_compiler_static=
8549      ;;
8550
8551    hpux*)
8552      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8553      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8554      # sets the default TLS model and affects inlining.
8555      case $host_cpu in
8556      hppa*64*)
8557	# +Z the default
8558	;;
8559      *)
8560	lt_prog_compiler_pic='-fPIC'
8561	;;
8562      esac
8563      ;;
8564
8565    interix[3-9]*)
8566      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8567      # Instead, we relocate shared libraries at runtime.
8568      ;;
8569
8570    msdosdjgpp*)
8571      # Just because we use GCC doesn't mean we suddenly get shared libraries
8572      # on systems that don't support them.
8573      lt_prog_compiler_can_build_shared=no
8574      enable_shared=no
8575      ;;
8576
8577    *nto* | *qnx*)
8578      # QNX uses GNU C++, but need to define -shared option too, otherwise
8579      # it will coredump.
8580      lt_prog_compiler_pic='-fPIC -shared'
8581      ;;
8582
8583    sysv4*MP*)
8584      if test -d /usr/nec; then
8585	lt_prog_compiler_pic=-Kconform_pic
8586      fi
8587      ;;
8588
8589    *)
8590      lt_prog_compiler_pic='-fPIC'
8591      ;;
8592    esac
8593
8594    case $cc_basename in
8595    nvcc*) # Cuda Compiler Driver 2.2
8596      lt_prog_compiler_wl='-Xlinker '
8597      lt_prog_compiler_pic='-Xcompiler -fPIC'
8598      ;;
8599    esac
8600  else
8601    # PORTME Check for flag to pass linker flags through the system compiler.
8602    case $host_os in
8603    aix*)
8604      lt_prog_compiler_wl='-Wl,'
8605      if test "$host_cpu" = ia64; then
8606	# AIX 5 now supports IA64 processor
8607	lt_prog_compiler_static='-Bstatic'
8608      else
8609	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8610      fi
8611      ;;
8612
8613    mingw* | cygwin* | pw32* | os2* | cegcc*)
8614      # This hack is so that the source file can tell whether it is being
8615      # built for inclusion in a dll (and should export symbols for example).
8616      lt_prog_compiler_pic='-DDLL_EXPORT'
8617      ;;
8618
8619    hpux9* | hpux10* | hpux11*)
8620      lt_prog_compiler_wl='-Wl,'
8621      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8622      # not for PA HP-UX.
8623      case $host_cpu in
8624      hppa*64*|ia64*)
8625	# +Z the default
8626	;;
8627      *)
8628	lt_prog_compiler_pic='+Z'
8629	;;
8630      esac
8631      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8632      lt_prog_compiler_static='${wl}-a ${wl}archive'
8633      ;;
8634
8635    irix5* | irix6* | nonstopux*)
8636      lt_prog_compiler_wl='-Wl,'
8637      # PIC (with -KPIC) is the default.
8638      lt_prog_compiler_static='-non_shared'
8639      ;;
8640
8641    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8642      case $cc_basename in
8643      # old Intel for x86_64 which still supported -KPIC.
8644      ecc*)
8645	lt_prog_compiler_wl='-Wl,'
8646	lt_prog_compiler_pic='-KPIC'
8647	lt_prog_compiler_static='-static'
8648        ;;
8649      # icc used to be incompatible with GCC.
8650      # ICC 10 doesn't accept -KPIC any more.
8651      icc* | ifort*)
8652	lt_prog_compiler_wl='-Wl,'
8653	lt_prog_compiler_pic='-fPIC'
8654	lt_prog_compiler_static='-static'
8655        ;;
8656      # Lahey Fortran 8.1.
8657      lf95*)
8658	lt_prog_compiler_wl='-Wl,'
8659	lt_prog_compiler_pic='--shared'
8660	lt_prog_compiler_static='--static'
8661	;;
8662      nagfor*)
8663	# NAG Fortran compiler
8664	lt_prog_compiler_wl='-Wl,-Wl,,'
8665	lt_prog_compiler_pic='-PIC'
8666	lt_prog_compiler_static='-Bstatic'
8667	;;
8668      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8669        # Portland Group compilers (*not* the Pentium gcc compiler,
8670	# which looks to be a dead project)
8671	lt_prog_compiler_wl='-Wl,'
8672	lt_prog_compiler_pic='-fpic'
8673	lt_prog_compiler_static='-Bstatic'
8674        ;;
8675      ccc*)
8676        lt_prog_compiler_wl='-Wl,'
8677        # All Alpha code is PIC.
8678        lt_prog_compiler_static='-non_shared'
8679        ;;
8680      xl* | bgxl* | bgf* | mpixl*)
8681	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8682	lt_prog_compiler_wl='-Wl,'
8683	lt_prog_compiler_pic='-qpic'
8684	lt_prog_compiler_static='-qstaticlink'
8685	;;
8686      *)
8687	case `$CC -V 2>&1 | sed 5q` in
8688	*Sun\ F* | *Sun*Fortran*)
8689	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8690	  lt_prog_compiler_pic='-KPIC'
8691	  lt_prog_compiler_static='-Bstatic'
8692	  lt_prog_compiler_wl=''
8693	  ;;
8694	*Sun\ C*)
8695	  # Sun C 5.9
8696	  lt_prog_compiler_pic='-KPIC'
8697	  lt_prog_compiler_static='-Bstatic'
8698	  lt_prog_compiler_wl='-Wl,'
8699	  ;;
8700	esac
8701	;;
8702      esac
8703      ;;
8704
8705    newsos6)
8706      lt_prog_compiler_pic='-KPIC'
8707      lt_prog_compiler_static='-Bstatic'
8708      ;;
8709
8710    *nto* | *qnx*)
8711      # QNX uses GNU C++, but need to define -shared option too, otherwise
8712      # it will coredump.
8713      lt_prog_compiler_pic='-fPIC -shared'
8714      ;;
8715
8716    osf3* | osf4* | osf5*)
8717      lt_prog_compiler_wl='-Wl,'
8718      # All OSF/1 code is PIC.
8719      lt_prog_compiler_static='-non_shared'
8720      ;;
8721
8722    rdos*)
8723      lt_prog_compiler_static='-non_shared'
8724      ;;
8725
8726    solaris*)
8727      lt_prog_compiler_pic='-KPIC'
8728      lt_prog_compiler_static='-Bstatic'
8729      case $cc_basename in
8730      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8731	lt_prog_compiler_wl='-Qoption ld ';;
8732      *)
8733	lt_prog_compiler_wl='-Wl,';;
8734      esac
8735      ;;
8736
8737    sunos4*)
8738      lt_prog_compiler_wl='-Qoption ld '
8739      lt_prog_compiler_pic='-PIC'
8740      lt_prog_compiler_static='-Bstatic'
8741      ;;
8742
8743    sysv4 | sysv4.2uw2* | sysv4.3*)
8744      lt_prog_compiler_wl='-Wl,'
8745      lt_prog_compiler_pic='-KPIC'
8746      lt_prog_compiler_static='-Bstatic'
8747      ;;
8748
8749    sysv4*MP*)
8750      if test -d /usr/nec ;then
8751	lt_prog_compiler_pic='-Kconform_pic'
8752	lt_prog_compiler_static='-Bstatic'
8753      fi
8754      ;;
8755
8756    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8757      lt_prog_compiler_wl='-Wl,'
8758      lt_prog_compiler_pic='-KPIC'
8759      lt_prog_compiler_static='-Bstatic'
8760      ;;
8761
8762    unicos*)
8763      lt_prog_compiler_wl='-Wl,'
8764      lt_prog_compiler_can_build_shared=no
8765      ;;
8766
8767    uts4*)
8768      lt_prog_compiler_pic='-pic'
8769      lt_prog_compiler_static='-Bstatic'
8770      ;;
8771
8772    *)
8773      lt_prog_compiler_can_build_shared=no
8774      ;;
8775    esac
8776  fi
8777
8778case $host_os in
8779  # For platforms which do not support PIC, -DPIC is meaningless:
8780  *djgpp*)
8781    lt_prog_compiler_pic=
8782    ;;
8783  *)
8784    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8785    ;;
8786esac
8787
8788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8789$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8790if ${lt_cv_prog_compiler_pic+:} false; then :
8791  $as_echo_n "(cached) " >&6
8792else
8793  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8794fi
8795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8796$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8797lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8798
8799#
8800# Check to make sure the PIC flag actually works.
8801#
8802if test -n "$lt_prog_compiler_pic"; then
8803  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8804$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8805if ${lt_cv_prog_compiler_pic_works+:} false; then :
8806  $as_echo_n "(cached) " >&6
8807else
8808  lt_cv_prog_compiler_pic_works=no
8809   ac_outfile=conftest.$ac_objext
8810   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8811   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8812   # Insert the option either (1) after the last *FLAGS variable, or
8813   # (2) before a word containing "conftest.", or (3) at the end.
8814   # Note that $ac_compile itself does not contain backslashes and begins
8815   # with a dollar sign (not a hyphen), so the echo should work correctly.
8816   # The option is referenced via a variable to avoid confusing sed.
8817   lt_compile=`echo "$ac_compile" | $SED \
8818   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8819   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8820   -e 's:$: $lt_compiler_flag:'`
8821   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8822   (eval "$lt_compile" 2>conftest.err)
8823   ac_status=$?
8824   cat conftest.err >&5
8825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826   if (exit $ac_status) && test -s "$ac_outfile"; then
8827     # The compiler can only warn and ignore the option if not recognized
8828     # So say no if there are warnings other than the usual output.
8829     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8830     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8831     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8832       lt_cv_prog_compiler_pic_works=yes
8833     fi
8834   fi
8835   $RM conftest*
8836
8837fi
8838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8839$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8840
8841if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8842    case $lt_prog_compiler_pic in
8843     "" | " "*) ;;
8844     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8845     esac
8846else
8847    lt_prog_compiler_pic=
8848     lt_prog_compiler_can_build_shared=no
8849fi
8850
8851fi
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863#
8864# Check to make sure the static flag actually works.
8865#
8866wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8868$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8869if ${lt_cv_prog_compiler_static_works+:} false; then :
8870  $as_echo_n "(cached) " >&6
8871else
8872  lt_cv_prog_compiler_static_works=no
8873   save_LDFLAGS="$LDFLAGS"
8874   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8875   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8876   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8877     # The linker can only warn and ignore the option if not recognized
8878     # So say no if there are warnings
8879     if test -s conftest.err; then
8880       # Append any errors to the config.log.
8881       cat conftest.err 1>&5
8882       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8883       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8884       if diff conftest.exp conftest.er2 >/dev/null; then
8885         lt_cv_prog_compiler_static_works=yes
8886       fi
8887     else
8888       lt_cv_prog_compiler_static_works=yes
8889     fi
8890   fi
8891   $RM -r conftest*
8892   LDFLAGS="$save_LDFLAGS"
8893
8894fi
8895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8896$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8897
8898if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8899    :
8900else
8901    lt_prog_compiler_static=
8902fi
8903
8904
8905
8906
8907
8908
8909
8910  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8911$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8912if ${lt_cv_prog_compiler_c_o+:} false; then :
8913  $as_echo_n "(cached) " >&6
8914else
8915  lt_cv_prog_compiler_c_o=no
8916   $RM -r conftest 2>/dev/null
8917   mkdir conftest
8918   cd conftest
8919   mkdir out
8920   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8921
8922   lt_compiler_flag="-o out/conftest2.$ac_objext"
8923   # Insert the option either (1) after the last *FLAGS variable, or
8924   # (2) before a word containing "conftest.", or (3) at the end.
8925   # Note that $ac_compile itself does not contain backslashes and begins
8926   # with a dollar sign (not a hyphen), so the echo should work correctly.
8927   lt_compile=`echo "$ac_compile" | $SED \
8928   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8929   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8930   -e 's:$: $lt_compiler_flag:'`
8931   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8932   (eval "$lt_compile" 2>out/conftest.err)
8933   ac_status=$?
8934   cat out/conftest.err >&5
8935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8937   then
8938     # The compiler can only warn and ignore the option if not recognized
8939     # So say no if there are warnings
8940     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8941     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8942     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8943       lt_cv_prog_compiler_c_o=yes
8944     fi
8945   fi
8946   chmod u+w . 2>&5
8947   $RM conftest*
8948   # SGI C++ compiler will create directory out/ii_files/ for
8949   # template instantiation
8950   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8951   $RM out/* && rmdir out
8952   cd ..
8953   $RM -r conftest
8954   $RM conftest*
8955
8956fi
8957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8958$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8959
8960
8961
8962
8963
8964
8965  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8966$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8967if ${lt_cv_prog_compiler_c_o+:} false; then :
8968  $as_echo_n "(cached) " >&6
8969else
8970  lt_cv_prog_compiler_c_o=no
8971   $RM -r conftest 2>/dev/null
8972   mkdir conftest
8973   cd conftest
8974   mkdir out
8975   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8976
8977   lt_compiler_flag="-o out/conftest2.$ac_objext"
8978   # Insert the option either (1) after the last *FLAGS variable, or
8979   # (2) before a word containing "conftest.", or (3) at the end.
8980   # Note that $ac_compile itself does not contain backslashes and begins
8981   # with a dollar sign (not a hyphen), so the echo should work correctly.
8982   lt_compile=`echo "$ac_compile" | $SED \
8983   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8984   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8985   -e 's:$: $lt_compiler_flag:'`
8986   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8987   (eval "$lt_compile" 2>out/conftest.err)
8988   ac_status=$?
8989   cat out/conftest.err >&5
8990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8992   then
8993     # The compiler can only warn and ignore the option if not recognized
8994     # So say no if there are warnings
8995     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8996     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8997     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8998       lt_cv_prog_compiler_c_o=yes
8999     fi
9000   fi
9001   chmod u+w . 2>&5
9002   $RM conftest*
9003   # SGI C++ compiler will create directory out/ii_files/ for
9004   # template instantiation
9005   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9006   $RM out/* && rmdir out
9007   cd ..
9008   $RM -r conftest
9009   $RM conftest*
9010
9011fi
9012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9013$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9014
9015
9016
9017
9018hard_links="nottested"
9019if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9020  # do not overwrite the value of need_locks provided by the user
9021  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9022$as_echo_n "checking if we can lock with hard links... " >&6; }
9023  hard_links=yes
9024  $RM conftest*
9025  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9026  touch conftest.a
9027  ln conftest.a conftest.b 2>&5 || hard_links=no
9028  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9030$as_echo "$hard_links" >&6; }
9031  if test "$hard_links" = no; then
9032    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9033$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9034    need_locks=warn
9035  fi
9036else
9037  need_locks=no
9038fi
9039
9040
9041
9042
9043
9044
9045  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9046$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9047
9048  runpath_var=
9049  allow_undefined_flag=
9050  always_export_symbols=no
9051  archive_cmds=
9052  archive_expsym_cmds=
9053  compiler_needs_object=no
9054  enable_shared_with_static_runtimes=no
9055  export_dynamic_flag_spec=
9056  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9057  hardcode_automatic=no
9058  hardcode_direct=no
9059  hardcode_direct_absolute=no
9060  hardcode_libdir_flag_spec=
9061  hardcode_libdir_flag_spec_ld=
9062  hardcode_libdir_separator=
9063  hardcode_minus_L=no
9064  hardcode_shlibpath_var=unsupported
9065  inherit_rpath=no
9066  link_all_deplibs=unknown
9067  module_cmds=
9068  module_expsym_cmds=
9069  old_archive_from_new_cmds=
9070  old_archive_from_expsyms_cmds=
9071  thread_safe_flag_spec=
9072  whole_archive_flag_spec=
9073  # include_expsyms should be a list of space-separated symbols to be *always*
9074  # included in the symbol list
9075  include_expsyms=
9076  # exclude_expsyms can be an extended regexp of symbols to exclude
9077  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9078  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9079  # as well as any symbol that contains `d'.
9080  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9081  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9082  # platforms (ab)use it in PIC code, but their linkers get confused if
9083  # the symbol is explicitly referenced.  Since portable code cannot
9084  # rely on this symbol name, it's probably fine to never include it in
9085  # preloaded symbol tables.
9086  # Exclude shared library initialization/finalization symbols.
9087  extract_expsyms_cmds=
9088
9089  case $host_os in
9090  cygwin* | mingw* | pw32* | cegcc*)
9091    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9092    # When not using gcc, we currently assume that we are using
9093    # Microsoft Visual C++.
9094    if test "$GCC" != yes; then
9095      with_gnu_ld=no
9096    fi
9097    ;;
9098  interix*)
9099    # we just hope/assume this is gcc and not c89 (= MSVC++)
9100    with_gnu_ld=yes
9101    ;;
9102  openbsd*)
9103    with_gnu_ld=no
9104    ;;
9105  linux* | k*bsd*-gnu | gnu*)
9106    link_all_deplibs=no
9107    ;;
9108  esac
9109
9110  ld_shlibs=yes
9111
9112  # On some targets, GNU ld is compatible enough with the native linker
9113  # that we're better off using the native interface for both.
9114  lt_use_gnu_ld_interface=no
9115  if test "$with_gnu_ld" = yes; then
9116    case $host_os in
9117      aix*)
9118	# The AIX port of GNU ld has always aspired to compatibility
9119	# with the native linker.  However, as the warning in the GNU ld
9120	# block says, versions before 2.19.5* couldn't really create working
9121	# shared libraries, regardless of the interface used.
9122	case `$LD -v 2>&1` in
9123	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9124	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9125	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9126	  *)
9127	    lt_use_gnu_ld_interface=yes
9128	    ;;
9129	esac
9130	;;
9131      *)
9132	lt_use_gnu_ld_interface=yes
9133	;;
9134    esac
9135  fi
9136
9137  if test "$lt_use_gnu_ld_interface" = yes; then
9138    # If archive_cmds runs LD, not CC, wlarc should be empty
9139    wlarc='${wl}'
9140
9141    # Set some defaults for GNU ld with shared library support. These
9142    # are reset later if shared libraries are not supported. Putting them
9143    # here allows them to be overridden if necessary.
9144    runpath_var=LD_RUN_PATH
9145    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9146    export_dynamic_flag_spec='${wl}--export-dynamic'
9147    # ancient GNU ld didn't support --whole-archive et. al.
9148    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9149      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9150    else
9151      whole_archive_flag_spec=
9152    fi
9153    supports_anon_versioning=no
9154    case `$LD -v 2>&1` in
9155      *GNU\ gold*) supports_anon_versioning=yes ;;
9156      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9157      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9158      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9159      *\ 2.11.*) ;; # other 2.11 versions
9160      *) supports_anon_versioning=yes ;;
9161    esac
9162
9163    # See if GNU ld supports shared libraries.
9164    case $host_os in
9165    aix[3-9]*)
9166      # On AIX/PPC, the GNU linker is very broken
9167      if test "$host_cpu" != ia64; then
9168	ld_shlibs=no
9169	cat <<_LT_EOF 1>&2
9170
9171*** Warning: the GNU linker, at least up to release 2.19, is reported
9172*** to be unable to reliably create shared libraries on AIX.
9173*** Therefore, libtool is disabling shared libraries support.  If you
9174*** really care for shared libraries, you may want to install binutils
9175*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9176*** You will then need to restart the configuration process.
9177
9178_LT_EOF
9179      fi
9180      ;;
9181
9182    amigaos*)
9183      case $host_cpu in
9184      powerpc)
9185            # see comment about AmigaOS4 .so support
9186            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9187            archive_expsym_cmds=''
9188        ;;
9189      m68k)
9190            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)'
9191            hardcode_libdir_flag_spec='-L$libdir'
9192            hardcode_minus_L=yes
9193        ;;
9194      esac
9195      ;;
9196
9197    beos*)
9198      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9199	allow_undefined_flag=unsupported
9200	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9201	# support --undefined.  This deserves some investigation.  FIXME
9202	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9203      else
9204	ld_shlibs=no
9205      fi
9206      ;;
9207
9208    cygwin* | mingw* | pw32* | cegcc*)
9209      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9210      # as there is no search path for DLLs.
9211      hardcode_libdir_flag_spec='-L$libdir'
9212      export_dynamic_flag_spec='${wl}--export-all-symbols'
9213      allow_undefined_flag=unsupported
9214      always_export_symbols=no
9215      enable_shared_with_static_runtimes=yes
9216      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9217      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9218
9219      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9220        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9221	# If the export-symbols file already is a .def file (1st line
9222	# is EXPORTS), use it as is; otherwise, prepend...
9223	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9224	  cp $export_symbols $output_objdir/$soname.def;
9225	else
9226	  echo EXPORTS > $output_objdir/$soname.def;
9227	  cat $export_symbols >> $output_objdir/$soname.def;
9228	fi~
9229	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9230      else
9231	ld_shlibs=no
9232      fi
9233      ;;
9234
9235    haiku*)
9236      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9237      link_all_deplibs=yes
9238      ;;
9239
9240    interix[3-9]*)
9241      hardcode_direct=no
9242      hardcode_shlibpath_var=no
9243      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9244      export_dynamic_flag_spec='${wl}-E'
9245      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9246      # Instead, shared libraries are loaded at an image base (0x10000000 by
9247      # default) and relocated if they conflict, which is a slow very memory
9248      # consuming and fragmenting process.  To avoid this, we pick a random,
9249      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9250      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9251      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9252      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'
9253      ;;
9254
9255    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9256      tmp_diet=no
9257      if test "$host_os" = linux-dietlibc; then
9258	case $cc_basename in
9259	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9260	esac
9261      fi
9262      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9263	 && test "$tmp_diet" = no
9264      then
9265	tmp_addflag=' $pic_flag'
9266	tmp_sharedflag='-shared'
9267	case $cc_basename,$host_cpu in
9268        pgcc*)				# Portland Group C compiler
9269	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9270	  tmp_addflag=' $pic_flag'
9271	  ;;
9272	pgf77* | pgf90* | pgf95* | pgfortran*)
9273					# Portland Group f77 and f90 compilers
9274	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9275	  tmp_addflag=' $pic_flag -Mnomain' ;;
9276	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9277	  tmp_addflag=' -i_dynamic' ;;
9278	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9279	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9280	ifc* | ifort*)			# Intel Fortran compiler
9281	  tmp_addflag=' -nofor_main' ;;
9282	lf95*)				# Lahey Fortran 8.1
9283	  whole_archive_flag_spec=
9284	  tmp_sharedflag='--shared' ;;
9285	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9286	  tmp_sharedflag='-qmkshrobj'
9287	  tmp_addflag= ;;
9288	nvcc*)	# Cuda Compiler Driver 2.2
9289	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9290	  compiler_needs_object=yes
9291	  ;;
9292	esac
9293	case `$CC -V 2>&1 | sed 5q` in
9294	*Sun\ C*)			# Sun C 5.9
9295	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9296	  compiler_needs_object=yes
9297	  tmp_sharedflag='-G' ;;
9298	*Sun\ F*)			# Sun Fortran 8.3
9299	  tmp_sharedflag='-G' ;;
9300	esac
9301	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9302
9303        if test "x$supports_anon_versioning" = xyes; then
9304          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9305	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9306	    echo "local: *; };" >> $output_objdir/$libname.ver~
9307	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9308        fi
9309
9310	case $cc_basename in
9311	xlf* | bgf* | bgxlf* | mpixlf*)
9312	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9313	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9314	  hardcode_libdir_flag_spec=
9315	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9316	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9317	  if test "x$supports_anon_versioning" = xyes; then
9318	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9319	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9320	      echo "local: *; };" >> $output_objdir/$libname.ver~
9321	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9322	  fi
9323	  ;;
9324	esac
9325      else
9326        ld_shlibs=no
9327      fi
9328      ;;
9329
9330    netbsd* | netbsdelf*-gnu)
9331      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9332	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9333	wlarc=
9334      else
9335	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9336	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9337      fi
9338      ;;
9339
9340    solaris*)
9341      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9342	ld_shlibs=no
9343	cat <<_LT_EOF 1>&2
9344
9345*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9346*** create shared libraries on Solaris systems.  Therefore, libtool
9347*** is disabling shared libraries support.  We urge you to upgrade GNU
9348*** binutils to release 2.9.1 or newer.  Another option is to modify
9349*** your PATH or compiler configuration so that the native linker is
9350*** used, and then restart.
9351
9352_LT_EOF
9353      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9354	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9355	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9356      else
9357	ld_shlibs=no
9358      fi
9359      ;;
9360
9361    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9362      case `$LD -v 2>&1` in
9363        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9364	ld_shlibs=no
9365	cat <<_LT_EOF 1>&2
9366
9367*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9368*** reliably create shared libraries on SCO systems.  Therefore, libtool
9369*** is disabling shared libraries support.  We urge you to upgrade GNU
9370*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9371*** your PATH or compiler configuration so that the native linker is
9372*** used, and then restart.
9373
9374_LT_EOF
9375	;;
9376	*)
9377	  # For security reasons, it is highly recommended that you always
9378	  # use absolute paths for naming shared libraries, and exclude the
9379	  # DT_RUNPATH tag from executables and libraries.  But doing so
9380	  # requires that you compile everything twice, which is a pain.
9381	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9382	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9383	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9384	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9385	  else
9386	    ld_shlibs=no
9387	  fi
9388	;;
9389      esac
9390      ;;
9391
9392    sunos4*)
9393      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9394      wlarc=
9395      hardcode_direct=yes
9396      hardcode_shlibpath_var=no
9397      ;;
9398
9399    *)
9400      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9401	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9402	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9403      else
9404	ld_shlibs=no
9405      fi
9406      ;;
9407    esac
9408
9409    if test "$ld_shlibs" = no; then
9410      runpath_var=
9411      hardcode_libdir_flag_spec=
9412      export_dynamic_flag_spec=
9413      whole_archive_flag_spec=
9414    fi
9415  else
9416    # PORTME fill in a description of your system's linker (not GNU ld)
9417    case $host_os in
9418    aix3*)
9419      allow_undefined_flag=unsupported
9420      always_export_symbols=yes
9421      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'
9422      # Note: this linker hardcodes the directories in LIBPATH if there
9423      # are no directories specified by -L.
9424      hardcode_minus_L=yes
9425      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9426	# Neither direct hardcoding nor static linking is supported with a
9427	# broken collect2.
9428	hardcode_direct=unsupported
9429      fi
9430      ;;
9431
9432    aix[4-9]*)
9433      if test "$host_cpu" = ia64; then
9434	# On IA64, the linker does run time linking by default, so we don't
9435	# have to do anything special.
9436	aix_use_runtimelinking=no
9437	exp_sym_flag='-Bexport'
9438	no_entry_flag=""
9439      else
9440	# If we're using GNU nm, then we don't want the "-C" option.
9441	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9442	# Also, AIX nm treats weak defined symbols like other global
9443	# defined symbols, whereas GNU nm marks them as "W".
9444	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9445	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9446	else
9447	  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'
9448	fi
9449	aix_use_runtimelinking=no
9450
9451	# Test if we are trying to use run time linking or normal
9452	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9453	# need to do runtime linking.
9454	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9455	  for ld_flag in $LDFLAGS; do
9456	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9457	    aix_use_runtimelinking=yes
9458	    break
9459	  fi
9460	  done
9461	  ;;
9462	esac
9463
9464	exp_sym_flag='-bexport'
9465	no_entry_flag='-bnoentry'
9466      fi
9467
9468      # When large executables or shared objects are built, AIX ld can
9469      # have problems creating the table of contents.  If linking a library
9470      # or program results in "error TOC overflow" add -mminimal-toc to
9471      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9472      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9473
9474      archive_cmds=''
9475      hardcode_direct=yes
9476      hardcode_direct_absolute=yes
9477      hardcode_libdir_separator=':'
9478      link_all_deplibs=yes
9479      file_list_spec='${wl}-f,'
9480
9481      if test "$GCC" = yes; then
9482	case $host_os in aix4.[012]|aix4.[012].*)
9483	# We only want to do this on AIX 4.2 and lower, the check
9484	# below for broken collect2 doesn't work under 4.3+
9485	  collect2name=`${CC} -print-prog-name=collect2`
9486	  if test -f "$collect2name" &&
9487	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9488	  then
9489	  # We have reworked collect2
9490	  :
9491	  else
9492	  # We have old collect2
9493	  hardcode_direct=unsupported
9494	  # It fails to find uninstalled libraries when the uninstalled
9495	  # path is not listed in the libpath.  Setting hardcode_minus_L
9496	  # to unsupported forces relinking
9497	  hardcode_minus_L=yes
9498	  hardcode_libdir_flag_spec='-L$libdir'
9499	  hardcode_libdir_separator=
9500	  fi
9501	  ;;
9502	esac
9503	shared_flag='-shared'
9504	if test "$aix_use_runtimelinking" = yes; then
9505	  shared_flag="$shared_flag "'${wl}-G'
9506	fi
9507	link_all_deplibs=no
9508      else
9509	# not using gcc
9510	if test "$host_cpu" = ia64; then
9511	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9512	# chokes on -Wl,-G. The following line is correct:
9513	  shared_flag='-G'
9514	else
9515	  if test "$aix_use_runtimelinking" = yes; then
9516	    shared_flag='${wl}-G'
9517	  else
9518	    shared_flag='${wl}-bM:SRE'
9519	  fi
9520	fi
9521      fi
9522
9523      export_dynamic_flag_spec='${wl}-bexpall'
9524      # It seems that -bexpall does not export symbols beginning with
9525      # underscore (_), so it is better to generate a list of symbols to export.
9526      always_export_symbols=yes
9527      if test "$aix_use_runtimelinking" = yes; then
9528	# Warning - without using the other runtime loading flags (-brtl),
9529	# -berok will link without error, but may produce a broken library.
9530	allow_undefined_flag='-berok'
9531        # Determine the default libpath from the value encoded in an
9532        # empty executable.
9533        if test "${lt_cv_aix_libpath+set}" = set; then
9534  aix_libpath=$lt_cv_aix_libpath
9535else
9536  if ${lt_cv_aix_libpath_+:} false; then :
9537  $as_echo_n "(cached) " >&6
9538else
9539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9540/* end confdefs.h.  */
9541
9542int
9543main ()
9544{
9545
9546  ;
9547  return 0;
9548}
9549_ACEOF
9550if ac_fn_c_try_link "$LINENO"; then :
9551
9552  lt_aix_libpath_sed='
9553      /Import File Strings/,/^$/ {
9554	  /^0/ {
9555	      s/^0  *\([^ ]*\) *$/\1/
9556	      p
9557	  }
9558      }'
9559  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9560  # Check for a 64-bit object if we didn't find anything.
9561  if test -z "$lt_cv_aix_libpath_"; then
9562    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9563  fi
9564fi
9565rm -f core conftest.err conftest.$ac_objext \
9566    conftest$ac_exeext conftest.$ac_ext
9567  if test -z "$lt_cv_aix_libpath_"; then
9568    lt_cv_aix_libpath_="/usr/lib:/lib"
9569  fi
9570
9571fi
9572
9573  aix_libpath=$lt_cv_aix_libpath_
9574fi
9575
9576        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9577        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9578      else
9579	if test "$host_cpu" = ia64; then
9580	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9581	  allow_undefined_flag="-z nodefs"
9582	  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"
9583	else
9584	 # Determine the default libpath from the value encoded in an
9585	 # empty executable.
9586	 if test "${lt_cv_aix_libpath+set}" = set; then
9587  aix_libpath=$lt_cv_aix_libpath
9588else
9589  if ${lt_cv_aix_libpath_+:} false; then :
9590  $as_echo_n "(cached) " >&6
9591else
9592  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9593/* end confdefs.h.  */
9594
9595int
9596main ()
9597{
9598
9599  ;
9600  return 0;
9601}
9602_ACEOF
9603if ac_fn_c_try_link "$LINENO"; then :
9604
9605  lt_aix_libpath_sed='
9606      /Import File Strings/,/^$/ {
9607	  /^0/ {
9608	      s/^0  *\([^ ]*\) *$/\1/
9609	      p
9610	  }
9611      }'
9612  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9613  # Check for a 64-bit object if we didn't find anything.
9614  if test -z "$lt_cv_aix_libpath_"; then
9615    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9616  fi
9617fi
9618rm -f core conftest.err conftest.$ac_objext \
9619    conftest$ac_exeext conftest.$ac_ext
9620  if test -z "$lt_cv_aix_libpath_"; then
9621    lt_cv_aix_libpath_="/usr/lib:/lib"
9622  fi
9623
9624fi
9625
9626  aix_libpath=$lt_cv_aix_libpath_
9627fi
9628
9629	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9630	  # Warning - without using the other run time loading flags,
9631	  # -berok will link without error, but may produce a broken library.
9632	  no_undefined_flag=' ${wl}-bernotok'
9633	  allow_undefined_flag=' ${wl}-berok'
9634	  if test "$with_gnu_ld" = yes; then
9635	    # We only use this code for GNU lds that support --whole-archive.
9636	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9637	  else
9638	    # Exported symbols can be pulled into shared objects from archives
9639	    whole_archive_flag_spec='$convenience'
9640	  fi
9641	  archive_cmds_need_lc=yes
9642	  # This is similar to how AIX traditionally builds its shared libraries.
9643	  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'
9644	fi
9645      fi
9646      ;;
9647
9648    amigaos*)
9649      case $host_cpu in
9650      powerpc)
9651            # see comment about AmigaOS4 .so support
9652            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9653            archive_expsym_cmds=''
9654        ;;
9655      m68k)
9656            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)'
9657            hardcode_libdir_flag_spec='-L$libdir'
9658            hardcode_minus_L=yes
9659        ;;
9660      esac
9661      ;;
9662
9663    bsdi[45]*)
9664      export_dynamic_flag_spec=-rdynamic
9665      ;;
9666
9667    cygwin* | mingw* | pw32* | cegcc*)
9668      # When not using gcc, we currently assume that we are using
9669      # Microsoft Visual C++.
9670      # hardcode_libdir_flag_spec is actually meaningless, as there is
9671      # no search path for DLLs.
9672      case $cc_basename in
9673      cl*)
9674	# Native MSVC
9675	hardcode_libdir_flag_spec=' '
9676	allow_undefined_flag=unsupported
9677	always_export_symbols=yes
9678	file_list_spec='@'
9679	# Tell ltmain to make .lib files, not .a files.
9680	libext=lib
9681	# Tell ltmain to make .dll files, not .so files.
9682	shrext_cmds=".dll"
9683	# FIXME: Setting linknames here is a bad hack.
9684	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9685	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9686	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9687	  else
9688	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9689	  fi~
9690	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9691	  linknames='
9692	# The linker will not automatically build a static lib if we build a DLL.
9693	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9694	enable_shared_with_static_runtimes=yes
9695	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9696	# Don't use ranlib
9697	old_postinstall_cmds='chmod 644 $oldlib'
9698	postlink_cmds='lt_outputfile="@OUTPUT@"~
9699	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9700	  case $lt_outputfile in
9701	    *.exe|*.EXE) ;;
9702	    *)
9703	      lt_outputfile="$lt_outputfile.exe"
9704	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9705	      ;;
9706	  esac~
9707	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9708	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9709	    $RM "$lt_outputfile.manifest";
9710	  fi'
9711	;;
9712      *)
9713	# Assume MSVC wrapper
9714	hardcode_libdir_flag_spec=' '
9715	allow_undefined_flag=unsupported
9716	# Tell ltmain to make .lib files, not .a files.
9717	libext=lib
9718	# Tell ltmain to make .dll files, not .so files.
9719	shrext_cmds=".dll"
9720	# FIXME: Setting linknames here is a bad hack.
9721	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9722	# The linker will automatically build a .lib file if we build a DLL.
9723	old_archive_from_new_cmds='true'
9724	# FIXME: Should let the user specify the lib program.
9725	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9726	enable_shared_with_static_runtimes=yes
9727	;;
9728      esac
9729      ;;
9730
9731    darwin* | rhapsody*)
9732
9733
9734  archive_cmds_need_lc=no
9735  hardcode_direct=no
9736  hardcode_automatic=yes
9737  hardcode_shlibpath_var=unsupported
9738  if test "$lt_cv_ld_force_load" = "yes"; then
9739    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9740  else
9741    whole_archive_flag_spec=''
9742  fi
9743  link_all_deplibs=yes
9744  allow_undefined_flag="$_lt_dar_allow_undefined"
9745  case $cc_basename in
9746     ifort*) _lt_dar_can_shared=yes ;;
9747     *) _lt_dar_can_shared=$GCC ;;
9748  esac
9749  if test "$_lt_dar_can_shared" = "yes"; then
9750    output_verbose_link_cmd=func_echo_all
9751    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9752    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9753    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}"
9754    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}"
9755
9756  else
9757  ld_shlibs=no
9758  fi
9759
9760      ;;
9761
9762    dgux*)
9763      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9764      hardcode_libdir_flag_spec='-L$libdir'
9765      hardcode_shlibpath_var=no
9766      ;;
9767
9768    freebsd1*)
9769      ld_shlibs=no
9770      ;;
9771
9772    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9773    # support.  Future versions do this automatically, but an explicit c++rt0.o
9774    # does not break anything, and helps significantly (at the cost of a little
9775    # extra space).
9776    freebsd2.2*)
9777      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9778      hardcode_libdir_flag_spec='-R$libdir'
9779      hardcode_direct=yes
9780      hardcode_shlibpath_var=no
9781      ;;
9782
9783    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9784    freebsd2*)
9785      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9786      hardcode_direct=yes
9787      hardcode_minus_L=yes
9788      hardcode_shlibpath_var=no
9789      ;;
9790
9791    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9792    freebsd* | dragonfly*)
9793      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9794      hardcode_libdir_flag_spec='-R$libdir'
9795      hardcode_direct=yes
9796      hardcode_shlibpath_var=no
9797      ;;
9798
9799    hpux9*)
9800      if test "$GCC" = yes; then
9801	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9802      else
9803	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'
9804      fi
9805      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9806      hardcode_libdir_separator=:
9807      hardcode_direct=yes
9808
9809      # hardcode_minus_L: Not really in the search PATH,
9810      # but as the default location of the library.
9811      hardcode_minus_L=yes
9812      export_dynamic_flag_spec='${wl}-E'
9813      ;;
9814
9815    hpux10*)
9816      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9817	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9818      else
9819	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9820      fi
9821      if test "$with_gnu_ld" = no; then
9822	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9823	hardcode_libdir_flag_spec_ld='+b $libdir'
9824	hardcode_libdir_separator=:
9825	hardcode_direct=yes
9826	hardcode_direct_absolute=yes
9827	export_dynamic_flag_spec='${wl}-E'
9828	# hardcode_minus_L: Not really in the search PATH,
9829	# but as the default location of the library.
9830	hardcode_minus_L=yes
9831      fi
9832      ;;
9833
9834    hpux11*)
9835      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9836	case $host_cpu in
9837	hppa*64*)
9838	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9839	  ;;
9840	ia64*)
9841	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9842	  ;;
9843	*)
9844	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9845	  ;;
9846	esac
9847      else
9848	case $host_cpu in
9849	hppa*64*)
9850	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9851	  ;;
9852	ia64*)
9853	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9854	  ;;
9855	*)
9856
9857	  # Older versions of the 11.00 compiler do not understand -b yet
9858	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9859	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9860$as_echo_n "checking if $CC understands -b... " >&6; }
9861if ${lt_cv_prog_compiler__b+:} false; then :
9862  $as_echo_n "(cached) " >&6
9863else
9864  lt_cv_prog_compiler__b=no
9865   save_LDFLAGS="$LDFLAGS"
9866   LDFLAGS="$LDFLAGS -b"
9867   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9868   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9869     # The linker can only warn and ignore the option if not recognized
9870     # So say no if there are warnings
9871     if test -s conftest.err; then
9872       # Append any errors to the config.log.
9873       cat conftest.err 1>&5
9874       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9875       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9876       if diff conftest.exp conftest.er2 >/dev/null; then
9877         lt_cv_prog_compiler__b=yes
9878       fi
9879     else
9880       lt_cv_prog_compiler__b=yes
9881     fi
9882   fi
9883   $RM -r conftest*
9884   LDFLAGS="$save_LDFLAGS"
9885
9886fi
9887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9888$as_echo "$lt_cv_prog_compiler__b" >&6; }
9889
9890if test x"$lt_cv_prog_compiler__b" = xyes; then
9891    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9892else
9893    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9894fi
9895
9896	  ;;
9897	esac
9898      fi
9899      if test "$with_gnu_ld" = no; then
9900	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9901	hardcode_libdir_separator=:
9902
9903	case $host_cpu in
9904	hppa*64*|ia64*)
9905	  hardcode_direct=no
9906	  hardcode_shlibpath_var=no
9907	  ;;
9908	*)
9909	  hardcode_direct=yes
9910	  hardcode_direct_absolute=yes
9911	  export_dynamic_flag_spec='${wl}-E'
9912
9913	  # hardcode_minus_L: Not really in the search PATH,
9914	  # but as the default location of the library.
9915	  hardcode_minus_L=yes
9916	  ;;
9917	esac
9918      fi
9919      ;;
9920
9921    irix5* | irix6* | nonstopux*)
9922      if test "$GCC" = yes; then
9923	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9924	# Try to use the -exported_symbol ld option, if it does not
9925	# work, assume that -exports_file does not work either and
9926	# implicitly export all symbols.
9927	# This should be the same for all languages, so no per-tag cache variable.
9928	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9929$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9930if ${lt_cv_irix_exported_symbol+:} false; then :
9931  $as_echo_n "(cached) " >&6
9932else
9933  save_LDFLAGS="$LDFLAGS"
9934	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9935	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9936/* end confdefs.h.  */
9937int foo (void) { return 0; }
9938_ACEOF
9939if ac_fn_c_try_link "$LINENO"; then :
9940  lt_cv_irix_exported_symbol=yes
9941else
9942  lt_cv_irix_exported_symbol=no
9943fi
9944rm -f core conftest.err conftest.$ac_objext \
9945    conftest$ac_exeext conftest.$ac_ext
9946           LDFLAGS="$save_LDFLAGS"
9947fi
9948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9949$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9950	if test "$lt_cv_irix_exported_symbol" = yes; then
9951          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9952	fi
9953      else
9954	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9955	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9956      fi
9957      archive_cmds_need_lc='no'
9958      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9959      hardcode_libdir_separator=:
9960      inherit_rpath=yes
9961      link_all_deplibs=yes
9962      ;;
9963
9964    netbsd* | netbsdelf*-gnu)
9965      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9966	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9967      else
9968	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9969      fi
9970      hardcode_libdir_flag_spec='-R$libdir'
9971      hardcode_direct=yes
9972      hardcode_shlibpath_var=no
9973      ;;
9974
9975    newsos6)
9976      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9977      hardcode_direct=yes
9978      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9979      hardcode_libdir_separator=:
9980      hardcode_shlibpath_var=no
9981      ;;
9982
9983    *nto* | *qnx*)
9984      ;;
9985
9986    openbsd*)
9987      if test -f /usr/libexec/ld.so; then
9988	hardcode_direct=yes
9989	hardcode_shlibpath_var=no
9990	hardcode_direct_absolute=yes
9991	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9992	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9993	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9994	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9995	  export_dynamic_flag_spec='${wl}-E'
9996	else
9997	  case $host_os in
9998	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9999	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10000	     hardcode_libdir_flag_spec='-R$libdir'
10001	     ;;
10002	   *)
10003	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10004	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10005	     ;;
10006	  esac
10007	fi
10008      else
10009	ld_shlibs=no
10010      fi
10011      ;;
10012
10013    os2*)
10014      hardcode_libdir_flag_spec='-L$libdir'
10015      hardcode_minus_L=yes
10016      allow_undefined_flag=unsupported
10017      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'
10018      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10019      ;;
10020
10021    osf3*)
10022      if test "$GCC" = yes; then
10023	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10024	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10025      else
10026	allow_undefined_flag=' -expect_unresolved \*'
10027	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10028      fi
10029      archive_cmds_need_lc='no'
10030      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10031      hardcode_libdir_separator=:
10032      ;;
10033
10034    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10035      if test "$GCC" = yes; then
10036	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10037	archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10038	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10039      else
10040	allow_undefined_flag=' -expect_unresolved \*'
10041	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10042	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~
10043	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10044
10045	# Both c and cxx compiler support -rpath directly
10046	hardcode_libdir_flag_spec='-rpath $libdir'
10047      fi
10048      archive_cmds_need_lc='no'
10049      hardcode_libdir_separator=:
10050      ;;
10051
10052    solaris*)
10053      no_undefined_flag=' -z defs'
10054      if test "$GCC" = yes; then
10055	wlarc='${wl}'
10056	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10057	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10058	  $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10059      else
10060	case `$CC -V 2>&1` in
10061	*"Compilers 5.0"*)
10062	  wlarc=''
10063	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10064	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10065	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10066	  ;;
10067	*)
10068	  wlarc='${wl}'
10069	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10070	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10071	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10072	  ;;
10073	esac
10074      fi
10075      hardcode_libdir_flag_spec='-R$libdir'
10076      hardcode_shlibpath_var=no
10077      case $host_os in
10078      solaris2.[0-5] | solaris2.[0-5].*) ;;
10079      *)
10080	# The compiler driver will combine and reorder linker options,
10081	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10082	# but is careful enough not to reorder.
10083	# Supported since Solaris 2.6 (maybe 2.5.1?)
10084	if test "$GCC" = yes; then
10085	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10086	else
10087	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10088	fi
10089	;;
10090      esac
10091      link_all_deplibs=yes
10092      ;;
10093
10094    sunos4*)
10095      if test "x$host_vendor" = xsequent; then
10096	# Use $CC to link under sequent, because it throws in some extra .o
10097	# files that make .init and .fini sections work.
10098	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10099      else
10100	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10101      fi
10102      hardcode_libdir_flag_spec='-L$libdir'
10103      hardcode_direct=yes
10104      hardcode_minus_L=yes
10105      hardcode_shlibpath_var=no
10106      ;;
10107
10108    sysv4)
10109      case $host_vendor in
10110	sni)
10111	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10112	  hardcode_direct=yes # is this really true???
10113	;;
10114	siemens)
10115	  ## LD is ld it makes a PLAMLIB
10116	  ## CC just makes a GrossModule.
10117	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10118	  reload_cmds='$CC -r -o $output$reload_objs'
10119	  hardcode_direct=no
10120        ;;
10121	motorola)
10122	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10123	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10124	;;
10125      esac
10126      runpath_var='LD_RUN_PATH'
10127      hardcode_shlibpath_var=no
10128      ;;
10129
10130    sysv4.3*)
10131      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10132      hardcode_shlibpath_var=no
10133      export_dynamic_flag_spec='-Bexport'
10134      ;;
10135
10136    sysv4*MP*)
10137      if test -d /usr/nec; then
10138	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10139	hardcode_shlibpath_var=no
10140	runpath_var=LD_RUN_PATH
10141	hardcode_runpath_var=yes
10142	ld_shlibs=yes
10143      fi
10144      ;;
10145
10146    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10147      no_undefined_flag='${wl}-z,text'
10148      archive_cmds_need_lc=no
10149      hardcode_shlibpath_var=no
10150      runpath_var='LD_RUN_PATH'
10151
10152      if test "$GCC" = yes; then
10153	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10154	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10155      else
10156	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10157	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10158      fi
10159      ;;
10160
10161    sysv5* | sco3.2v5* | sco5v6*)
10162      # Note: We can NOT use -z defs as we might desire, because we do not
10163      # link with -lc, and that would cause any symbols used from libc to
10164      # always be unresolved, which means just about no library would
10165      # ever link correctly.  If we're not using GNU ld we use -z text
10166      # though, which does catch some bad symbols but isn't as heavy-handed
10167      # as -z defs.
10168      no_undefined_flag='${wl}-z,text'
10169      allow_undefined_flag='${wl}-z,nodefs'
10170      archive_cmds_need_lc=no
10171      hardcode_shlibpath_var=no
10172      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10173      hardcode_libdir_separator=':'
10174      link_all_deplibs=yes
10175      export_dynamic_flag_spec='${wl}-Bexport'
10176      runpath_var='LD_RUN_PATH'
10177
10178      if test "$GCC" = yes; then
10179	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10180	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10181      else
10182	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10183	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10184      fi
10185      ;;
10186
10187    uts4*)
10188      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10189      hardcode_libdir_flag_spec='-L$libdir'
10190      hardcode_shlibpath_var=no
10191      ;;
10192
10193    *)
10194      ld_shlibs=no
10195      ;;
10196    esac
10197
10198    if test x$host_vendor = xsni; then
10199      case $host in
10200      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10201	export_dynamic_flag_spec='${wl}-Blargedynsym'
10202	;;
10203      esac
10204    fi
10205  fi
10206
10207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10208$as_echo "$ld_shlibs" >&6; }
10209test "$ld_shlibs" = no && can_build_shared=no
10210
10211with_gnu_ld=$with_gnu_ld
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227#
10228# Do we need to explicitly link libc?
10229#
10230case "x$archive_cmds_need_lc" in
10231x|xyes)
10232  # Assume -lc should be added
10233  archive_cmds_need_lc=yes
10234
10235  if test "$enable_shared" = yes && test "$GCC" = yes; then
10236    case $archive_cmds in
10237    *'~'*)
10238      # FIXME: we may have to deal with multi-command sequences.
10239      ;;
10240    '$CC '*)
10241      # Test whether the compiler implicitly links with -lc since on some
10242      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10243      # to ld, don't add -lc before -lgcc.
10244      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10245$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10246if ${lt_cv_archive_cmds_need_lc+:} false; then :
10247  $as_echo_n "(cached) " >&6
10248else
10249  $RM conftest*
10250	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10251
10252	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10253  (eval $ac_compile) 2>&5
10254  ac_status=$?
10255  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10256  test $ac_status = 0; } 2>conftest.err; then
10257	  soname=conftest
10258	  lib=conftest
10259	  libobjs=conftest.$ac_objext
10260	  deplibs=
10261	  wl=$lt_prog_compiler_wl
10262	  pic_flag=$lt_prog_compiler_pic
10263	  compiler_flags=-v
10264	  linker_flags=-v
10265	  verstring=
10266	  output_objdir=.
10267	  libname=conftest
10268	  lt_save_allow_undefined_flag=$allow_undefined_flag
10269	  allow_undefined_flag=
10270	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10271  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10272  ac_status=$?
10273  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10274  test $ac_status = 0; }
10275	  then
10276	    lt_cv_archive_cmds_need_lc=no
10277	  else
10278	    lt_cv_archive_cmds_need_lc=yes
10279	  fi
10280	  allow_undefined_flag=$lt_save_allow_undefined_flag
10281	else
10282	  cat conftest.err 1>&5
10283	fi
10284	$RM conftest*
10285
10286fi
10287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10288$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10289      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10290      ;;
10291    esac
10292  fi
10293  ;;
10294esac
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10453$as_echo_n "checking dynamic linker characteristics... " >&6; }
10454
10455if test "$GCC" = yes; then
10456  case $host_os in
10457    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10458    *) lt_awk_arg="/^libraries:/" ;;
10459  esac
10460  case $host_os in
10461    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10462    *) lt_sed_strip_eq="s,=/,/,g" ;;
10463  esac
10464  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10465  case $lt_search_path_spec in
10466  *\;*)
10467    # if the path contains ";" then we assume it to be the separator
10468    # otherwise default to the standard path separator (i.e. ":") - it is
10469    # assumed that no part of a normal pathname contains ";" but that should
10470    # okay in the real world where ";" in dirpaths is itself problematic.
10471    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10472    ;;
10473  *)
10474    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10475    ;;
10476  esac
10477  # Ok, now we have the path, separated by spaces, we can step through it
10478  # and add multilib dir if necessary.
10479  lt_tmp_lt_search_path_spec=
10480  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10481  for lt_sys_path in $lt_search_path_spec; do
10482    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10483      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10484    else
10485      test -d "$lt_sys_path" && \
10486	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10487    fi
10488  done
10489  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10490BEGIN {RS=" "; FS="/|\n";} {
10491  lt_foo="";
10492  lt_count=0;
10493  for (lt_i = NF; lt_i > 0; lt_i--) {
10494    if ($lt_i != "" && $lt_i != ".") {
10495      if ($lt_i == "..") {
10496        lt_count++;
10497      } else {
10498        if (lt_count == 0) {
10499          lt_foo="/" $lt_i lt_foo;
10500        } else {
10501          lt_count--;
10502        }
10503      }
10504    }
10505  }
10506  if (lt_foo != "") { lt_freq[lt_foo]++; }
10507  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10508}'`
10509  # AWK program above erroneously prepends '/' to C:/dos/paths
10510  # for these hosts.
10511  case $host_os in
10512    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10513      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10514  esac
10515  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10516else
10517  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10518fi
10519library_names_spec=
10520libname_spec='lib$name'
10521soname_spec=
10522shrext_cmds=".so"
10523postinstall_cmds=
10524postuninstall_cmds=
10525finish_cmds=
10526finish_eval=
10527shlibpath_var=
10528shlibpath_overrides_runpath=unknown
10529version_type=none
10530dynamic_linker="$host_os ld.so"
10531sys_lib_dlsearch_path_spec="/lib /usr/lib"
10532need_lib_prefix=unknown
10533hardcode_into_libs=no
10534
10535# when you set need_version to no, make sure it does not cause -set_version
10536# flags to be left without arguments
10537need_version=unknown
10538
10539case $host_os in
10540aix3*)
10541  version_type=linux
10542  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10543  shlibpath_var=LIBPATH
10544
10545  # AIX 3 has no versioning support, so we append a major version to the name.
10546  soname_spec='${libname}${release}${shared_ext}$major'
10547  ;;
10548
10549aix[4-9]*)
10550  version_type=linux
10551  need_lib_prefix=no
10552  need_version=no
10553  hardcode_into_libs=yes
10554  if test "$host_cpu" = ia64; then
10555    # AIX 5 supports IA64
10556    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10557    shlibpath_var=LD_LIBRARY_PATH
10558  else
10559    # With GCC up to 2.95.x, collect2 would create an import file
10560    # for dependence libraries.  The import file would start with
10561    # the line `#! .'.  This would cause the generated library to
10562    # depend on `.', always an invalid library.  This was fixed in
10563    # development snapshots of GCC prior to 3.0.
10564    case $host_os in
10565      aix4 | aix4.[01] | aix4.[01].*)
10566      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10567	   echo ' yes '
10568	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10569	:
10570      else
10571	can_build_shared=no
10572      fi
10573      ;;
10574    esac
10575    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10576    # soname into executable. Probably we can add versioning support to
10577    # collect2, so additional links can be useful in future.
10578    if test "$aix_use_runtimelinking" = yes; then
10579      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10580      # instead of lib<name>.a to let people know that these are not
10581      # typical AIX shared libraries.
10582      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10583    else
10584      # We preserve .a as extension for shared libraries through AIX4.2
10585      # and later when we are not doing run time linking.
10586      library_names_spec='${libname}${release}.a $libname.a'
10587      soname_spec='${libname}${release}${shared_ext}$major'
10588    fi
10589    shlibpath_var=LIBPATH
10590  fi
10591  ;;
10592
10593amigaos*)
10594  case $host_cpu in
10595  powerpc)
10596    # Since July 2007 AmigaOS4 officially supports .so libraries.
10597    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10598    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10599    ;;
10600  m68k)
10601    library_names_spec='$libname.ixlibrary $libname.a'
10602    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10603    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10604    ;;
10605  esac
10606  ;;
10607
10608beos*)
10609  library_names_spec='${libname}${shared_ext}'
10610  dynamic_linker="$host_os ld.so"
10611  shlibpath_var=LIBRARY_PATH
10612  ;;
10613
10614bsdi[45]*)
10615  version_type=linux
10616  need_version=no
10617  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10618  soname_spec='${libname}${release}${shared_ext}$major'
10619  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10620  shlibpath_var=LD_LIBRARY_PATH
10621  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10622  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10623  # the default ld.so.conf also contains /usr/contrib/lib and
10624  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10625  # libtool to hard-code these into programs
10626  ;;
10627
10628cygwin* | mingw* | pw32* | cegcc*)
10629  version_type=windows
10630  shrext_cmds=".dll"
10631  need_version=no
10632  need_lib_prefix=no
10633
10634  case $GCC,$cc_basename in
10635  yes,*)
10636    # gcc
10637    library_names_spec='$libname.dll.a'
10638    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10639    postinstall_cmds='base_file=`basename \${file}`~
10640      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10641      dldir=$destdir/`dirname \$dlpath`~
10642      test -d \$dldir || mkdir -p \$dldir~
10643      $install_prog $dir/$dlname \$dldir/$dlname~
10644      chmod a+x \$dldir/$dlname~
10645      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10646        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10647      fi'
10648    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10649      dlpath=$dir/\$dldll~
10650       $RM \$dlpath'
10651    shlibpath_overrides_runpath=yes
10652
10653    case $host_os in
10654    cygwin*)
10655      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10656      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10657
10658      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10659      ;;
10660    mingw* | cegcc*)
10661      # MinGW DLLs use traditional 'lib' prefix
10662      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10663      ;;
10664    pw32*)
10665      # pw32 DLLs use 'pw' prefix rather than 'lib'
10666      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10667      ;;
10668    esac
10669    dynamic_linker='Win32 ld.exe'
10670    ;;
10671
10672  *,cl*)
10673    # Native MSVC
10674    libname_spec='$name'
10675    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10676    library_names_spec='${libname}.dll.lib'
10677
10678    case $build_os in
10679    mingw*)
10680      sys_lib_search_path_spec=
10681      lt_save_ifs=$IFS
10682      IFS=';'
10683      for lt_path in $LIB
10684      do
10685        IFS=$lt_save_ifs
10686        # Let DOS variable expansion print the short 8.3 style file name.
10687        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10688        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10689      done
10690      IFS=$lt_save_ifs
10691      # Convert to MSYS style.
10692      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10693      ;;
10694    cygwin*)
10695      # Convert to unix form, then to dos form, then back to unix form
10696      # but this time dos style (no spaces!) so that the unix form looks
10697      # like /cygdrive/c/PROGRA~1:/cygdr...
10698      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10699      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10700      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10701      ;;
10702    *)
10703      sys_lib_search_path_spec="$LIB"
10704      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10705        # It is most probably a Windows format PATH.
10706        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10707      else
10708        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10709      fi
10710      # FIXME: find the short name or the path components, as spaces are
10711      # common. (e.g. "Program Files" -> "PROGRA~1")
10712      ;;
10713    esac
10714
10715    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10716    postinstall_cmds='base_file=`basename \${file}`~
10717      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10718      dldir=$destdir/`dirname \$dlpath`~
10719      test -d \$dldir || mkdir -p \$dldir~
10720      $install_prog $dir/$dlname \$dldir/$dlname'
10721    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10722      dlpath=$dir/\$dldll~
10723       $RM \$dlpath'
10724    shlibpath_overrides_runpath=yes
10725    dynamic_linker='Win32 link.exe'
10726    ;;
10727
10728  *)
10729    # Assume MSVC wrapper
10730    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10731    dynamic_linker='Win32 ld.exe'
10732    ;;
10733  esac
10734  # FIXME: first we should search . and the directory the executable is in
10735  shlibpath_var=PATH
10736  ;;
10737
10738darwin* | rhapsody*)
10739  dynamic_linker="$host_os dyld"
10740  version_type=darwin
10741  need_lib_prefix=no
10742  need_version=no
10743  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10744  soname_spec='${libname}${release}${major}$shared_ext'
10745  shlibpath_overrides_runpath=yes
10746  shlibpath_var=DYLD_LIBRARY_PATH
10747  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10748
10749  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10750  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10751  ;;
10752
10753dgux*)
10754  version_type=linux
10755  need_lib_prefix=no
10756  need_version=no
10757  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10758  soname_spec='${libname}${release}${shared_ext}$major'
10759  shlibpath_var=LD_LIBRARY_PATH
10760  ;;
10761
10762freebsd1*)
10763  dynamic_linker=no
10764  ;;
10765
10766freebsd* | dragonfly*)
10767  # DragonFly does not have aout.  When/if they implement a new
10768  # versioning mechanism, adjust this.
10769  if test -x /usr/bin/objformat; then
10770    objformat=`/usr/bin/objformat`
10771  else
10772    case $host_os in
10773    freebsd[123]*) objformat=aout ;;
10774    *) objformat=elf ;;
10775    esac
10776  fi
10777  version_type=freebsd-$objformat
10778  case $version_type in
10779    freebsd-elf*)
10780      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10781      need_version=no
10782      need_lib_prefix=no
10783      ;;
10784    freebsd-*)
10785      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10786      need_version=yes
10787      ;;
10788  esac
10789  shlibpath_var=LD_LIBRARY_PATH
10790  case $host_os in
10791  freebsd2*)
10792    shlibpath_overrides_runpath=yes
10793    ;;
10794  freebsd3.[01]* | freebsdelf3.[01]*)
10795    shlibpath_overrides_runpath=yes
10796    hardcode_into_libs=yes
10797    ;;
10798  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10799  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10800    shlibpath_overrides_runpath=no
10801    hardcode_into_libs=yes
10802    ;;
10803  *) # from 4.6 on, and DragonFly
10804    shlibpath_overrides_runpath=yes
10805    hardcode_into_libs=yes
10806    ;;
10807  esac
10808  ;;
10809
10810gnu*)
10811  version_type=linux
10812  need_lib_prefix=no
10813  need_version=no
10814  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10815  soname_spec='${libname}${release}${shared_ext}$major'
10816  shlibpath_var=LD_LIBRARY_PATH
10817  shlibpath_overrides_runpath=no
10818  hardcode_into_libs=yes
10819  ;;
10820
10821haiku*)
10822  version_type=linux
10823  need_lib_prefix=no
10824  need_version=no
10825  dynamic_linker="$host_os runtime_loader"
10826  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10827  soname_spec='${libname}${release}${shared_ext}$major'
10828  shlibpath_var=LIBRARY_PATH
10829  shlibpath_overrides_runpath=yes
10830  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10831  hardcode_into_libs=yes
10832  ;;
10833
10834hpux9* | hpux10* | hpux11*)
10835  # Give a soname corresponding to the major version so that dld.sl refuses to
10836  # link against other versions.
10837  version_type=sunos
10838  need_lib_prefix=no
10839  need_version=no
10840  case $host_cpu in
10841  ia64*)
10842    shrext_cmds='.so'
10843    hardcode_into_libs=yes
10844    dynamic_linker="$host_os dld.so"
10845    shlibpath_var=LD_LIBRARY_PATH
10846    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10847    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10848    soname_spec='${libname}${release}${shared_ext}$major'
10849    if test "X$HPUX_IA64_MODE" = X32; then
10850      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10851    else
10852      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10853    fi
10854    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10855    ;;
10856  hppa*64*)
10857    shrext_cmds='.sl'
10858    hardcode_into_libs=yes
10859    dynamic_linker="$host_os dld.sl"
10860    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10861    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10862    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10863    soname_spec='${libname}${release}${shared_ext}$major'
10864    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10865    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10866    ;;
10867  *)
10868    shrext_cmds='.sl'
10869    dynamic_linker="$host_os dld.sl"
10870    shlibpath_var=SHLIB_PATH
10871    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10872    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10873    soname_spec='${libname}${release}${shared_ext}$major'
10874    ;;
10875  esac
10876  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10877  postinstall_cmds='chmod 555 $lib'
10878  # or fails outright, so override atomically:
10879  install_override_mode=555
10880  ;;
10881
10882interix[3-9]*)
10883  version_type=linux
10884  need_lib_prefix=no
10885  need_version=no
10886  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10887  soname_spec='${libname}${release}${shared_ext}$major'
10888  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10889  shlibpath_var=LD_LIBRARY_PATH
10890  shlibpath_overrides_runpath=no
10891  hardcode_into_libs=yes
10892  ;;
10893
10894irix5* | irix6* | nonstopux*)
10895  case $host_os in
10896    nonstopux*) version_type=nonstopux ;;
10897    *)
10898	if test "$lt_cv_prog_gnu_ld" = yes; then
10899		version_type=linux
10900	else
10901		version_type=irix
10902	fi ;;
10903  esac
10904  need_lib_prefix=no
10905  need_version=no
10906  soname_spec='${libname}${release}${shared_ext}$major'
10907  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10908  case $host_os in
10909  irix5* | nonstopux*)
10910    libsuff= shlibsuff=
10911    ;;
10912  *)
10913    case $LD in # libtool.m4 will add one of these switches to LD
10914    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10915      libsuff= shlibsuff= libmagic=32-bit;;
10916    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10917      libsuff=32 shlibsuff=N32 libmagic=N32;;
10918    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10919      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10920    *) libsuff= shlibsuff= libmagic=never-match;;
10921    esac
10922    ;;
10923  esac
10924  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10925  shlibpath_overrides_runpath=no
10926  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10927  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10928  hardcode_into_libs=yes
10929  ;;
10930
10931# No shared lib support for Linux oldld, aout, or coff.
10932linux*oldld* | linux*aout* | linux*coff*)
10933  dynamic_linker=no
10934  ;;
10935
10936# This must be Linux ELF.
10937linux* | k*bsd*-gnu | kopensolaris*-gnu)
10938  version_type=linux
10939  need_lib_prefix=no
10940  need_version=no
10941  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10942  soname_spec='${libname}${release}${shared_ext}$major'
10943  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10944  shlibpath_var=LD_LIBRARY_PATH
10945  shlibpath_overrides_runpath=no
10946
10947  # Some binutils ld are patched to set DT_RUNPATH
10948  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10949  $as_echo_n "(cached) " >&6
10950else
10951  lt_cv_shlibpath_overrides_runpath=no
10952    save_LDFLAGS=$LDFLAGS
10953    save_libdir=$libdir
10954    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10955	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10956    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10957/* end confdefs.h.  */
10958
10959int
10960main ()
10961{
10962
10963  ;
10964  return 0;
10965}
10966_ACEOF
10967if ac_fn_c_try_link "$LINENO"; then :
10968  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10969  lt_cv_shlibpath_overrides_runpath=yes
10970fi
10971fi
10972rm -f core conftest.err conftest.$ac_objext \
10973    conftest$ac_exeext conftest.$ac_ext
10974    LDFLAGS=$save_LDFLAGS
10975    libdir=$save_libdir
10976
10977fi
10978
10979  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10980
10981  # This implies no fast_install, which is unacceptable.
10982  # Some rework will be needed to allow for fast_install
10983  # before this can be enabled.
10984  hardcode_into_libs=yes
10985
10986  # Append ld.so.conf contents to the search path
10987  if test -f /etc/ld.so.conf; then
10988    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10989    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10990  fi
10991
10992  # We used to test for /lib/ld.so.1 and disable shared libraries on
10993  # powerpc, because MkLinux only supported shared libraries with the
10994  # GNU dynamic linker.  Since this was broken with cross compilers,
10995  # most powerpc-linux boxes support dynamic linking these days and
10996  # people can always --disable-shared, the test was removed, and we
10997  # assume the GNU/Linux dynamic linker is in use.
10998  dynamic_linker='GNU/Linux ld.so'
10999  ;;
11000
11001netbsdelf*-gnu)
11002  version_type=linux
11003  need_lib_prefix=no
11004  need_version=no
11005  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11006  soname_spec='${libname}${release}${shared_ext}$major'
11007  shlibpath_var=LD_LIBRARY_PATH
11008  shlibpath_overrides_runpath=no
11009  hardcode_into_libs=yes
11010  dynamic_linker='NetBSD ld.elf_so'
11011  ;;
11012
11013netbsd*)
11014  version_type=sunos
11015  need_lib_prefix=no
11016  need_version=no
11017  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11018    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11019    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11020    dynamic_linker='NetBSD (a.out) ld.so'
11021  else
11022    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11023    soname_spec='${libname}${release}${shared_ext}$major'
11024    dynamic_linker='NetBSD ld.elf_so'
11025  fi
11026  shlibpath_var=LD_LIBRARY_PATH
11027  shlibpath_overrides_runpath=yes
11028  hardcode_into_libs=yes
11029  ;;
11030
11031newsos6)
11032  version_type=linux
11033  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11034  shlibpath_var=LD_LIBRARY_PATH
11035  shlibpath_overrides_runpath=yes
11036  ;;
11037
11038*nto* | *qnx*)
11039  version_type=qnx
11040  need_lib_prefix=no
11041  need_version=no
11042  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11043  soname_spec='${libname}${release}${shared_ext}$major'
11044  shlibpath_var=LD_LIBRARY_PATH
11045  shlibpath_overrides_runpath=no
11046  hardcode_into_libs=yes
11047  dynamic_linker='ldqnx.so'
11048  ;;
11049
11050openbsd*)
11051  version_type=sunos
11052  sys_lib_dlsearch_path_spec="/usr/lib"
11053  need_lib_prefix=no
11054  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11055  case $host_os in
11056    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11057    *)				need_version=no  ;;
11058  esac
11059  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11060  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11061  shlibpath_var=LD_LIBRARY_PATH
11062  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11063    case $host_os in
11064      openbsd2.[89] | openbsd2.[89].*)
11065	shlibpath_overrides_runpath=no
11066	;;
11067      *)
11068	shlibpath_overrides_runpath=yes
11069	;;
11070      esac
11071  else
11072    shlibpath_overrides_runpath=yes
11073  fi
11074  ;;
11075
11076os2*)
11077  libname_spec='$name'
11078  shrext_cmds=".dll"
11079  need_lib_prefix=no
11080  library_names_spec='$libname${shared_ext} $libname.a'
11081  dynamic_linker='OS/2 ld.exe'
11082  shlibpath_var=LIBPATH
11083  ;;
11084
11085osf3* | osf4* | osf5*)
11086  version_type=osf
11087  need_lib_prefix=no
11088  need_version=no
11089  soname_spec='${libname}${release}${shared_ext}$major'
11090  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11091  shlibpath_var=LD_LIBRARY_PATH
11092  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11093  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11094  ;;
11095
11096rdos*)
11097  dynamic_linker=no
11098  ;;
11099
11100solaris*)
11101  version_type=linux
11102  need_lib_prefix=no
11103  need_version=no
11104  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11105  soname_spec='${libname}${release}${shared_ext}$major'
11106  shlibpath_var=LD_LIBRARY_PATH
11107  shlibpath_overrides_runpath=yes
11108  hardcode_into_libs=yes
11109  # ldd complains unless libraries are executable
11110  postinstall_cmds='chmod +x $lib'
11111  ;;
11112
11113sunos4*)
11114  version_type=sunos
11115  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11116  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11117  shlibpath_var=LD_LIBRARY_PATH
11118  shlibpath_overrides_runpath=yes
11119  if test "$with_gnu_ld" = yes; then
11120    need_lib_prefix=no
11121  fi
11122  need_version=yes
11123  ;;
11124
11125sysv4 | sysv4.3*)
11126  version_type=linux
11127  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11128  soname_spec='${libname}${release}${shared_ext}$major'
11129  shlibpath_var=LD_LIBRARY_PATH
11130  case $host_vendor in
11131    sni)
11132      shlibpath_overrides_runpath=no
11133      need_lib_prefix=no
11134      runpath_var=LD_RUN_PATH
11135      ;;
11136    siemens)
11137      need_lib_prefix=no
11138      ;;
11139    motorola)
11140      need_lib_prefix=no
11141      need_version=no
11142      shlibpath_overrides_runpath=no
11143      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11144      ;;
11145  esac
11146  ;;
11147
11148sysv4*MP*)
11149  if test -d /usr/nec ;then
11150    version_type=linux
11151    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11152    soname_spec='$libname${shared_ext}.$major'
11153    shlibpath_var=LD_LIBRARY_PATH
11154  fi
11155  ;;
11156
11157sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11158  version_type=freebsd-elf
11159  need_lib_prefix=no
11160  need_version=no
11161  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11162  soname_spec='${libname}${release}${shared_ext}$major'
11163  shlibpath_var=LD_LIBRARY_PATH
11164  shlibpath_overrides_runpath=yes
11165  hardcode_into_libs=yes
11166  if test "$with_gnu_ld" = yes; then
11167    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11168  else
11169    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11170    case $host_os in
11171      sco3.2v5*)
11172        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11173	;;
11174    esac
11175  fi
11176  sys_lib_dlsearch_path_spec='/usr/lib'
11177  ;;
11178
11179tpf*)
11180  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11181  version_type=linux
11182  need_lib_prefix=no
11183  need_version=no
11184  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11185  shlibpath_var=LD_LIBRARY_PATH
11186  shlibpath_overrides_runpath=no
11187  hardcode_into_libs=yes
11188  ;;
11189
11190uts4*)
11191  version_type=linux
11192  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11193  soname_spec='${libname}${release}${shared_ext}$major'
11194  shlibpath_var=LD_LIBRARY_PATH
11195  ;;
11196
11197*)
11198  dynamic_linker=no
11199  ;;
11200esac
11201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11202$as_echo "$dynamic_linker" >&6; }
11203test "$dynamic_linker" = no && can_build_shared=no
11204
11205variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11206if test "$GCC" = yes; then
11207  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11208fi
11209
11210if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11211  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11212fi
11213if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11214  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11215fi
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11309$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11310hardcode_action=
11311if test -n "$hardcode_libdir_flag_spec" ||
11312   test -n "$runpath_var" ||
11313   test "X$hardcode_automatic" = "Xyes" ; then
11314
11315  # We can hardcode non-existent directories.
11316  if test "$hardcode_direct" != no &&
11317     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11318     # have to relink, otherwise we might link with an installed library
11319     # when we should be linking with a yet-to-be-installed one
11320     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11321     test "$hardcode_minus_L" != no; then
11322    # Linking always hardcodes the temporary library directory.
11323    hardcode_action=relink
11324  else
11325    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11326    hardcode_action=immediate
11327  fi
11328else
11329  # We cannot hardcode anything, or else we can only hardcode existing
11330  # directories.
11331  hardcode_action=unsupported
11332fi
11333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11334$as_echo "$hardcode_action" >&6; }
11335
11336if test "$hardcode_action" = relink ||
11337   test "$inherit_rpath" = yes; then
11338  # Fast installation is not supported
11339  enable_fast_install=no
11340elif test "$shlibpath_overrides_runpath" = yes ||
11341     test "$enable_shared" = no; then
11342  # Fast installation is not necessary
11343  enable_fast_install=needless
11344fi
11345
11346
11347
11348
11349
11350
11351  if test "x$enable_dlopen" != xyes; then
11352  enable_dlopen=unknown
11353  enable_dlopen_self=unknown
11354  enable_dlopen_self_static=unknown
11355else
11356  lt_cv_dlopen=no
11357  lt_cv_dlopen_libs=
11358
11359  case $host_os in
11360  beos*)
11361    lt_cv_dlopen="load_add_on"
11362    lt_cv_dlopen_libs=
11363    lt_cv_dlopen_self=yes
11364    ;;
11365
11366  mingw* | pw32* | cegcc*)
11367    lt_cv_dlopen="LoadLibrary"
11368    lt_cv_dlopen_libs=
11369    ;;
11370
11371  cygwin*)
11372    lt_cv_dlopen="dlopen"
11373    lt_cv_dlopen_libs=
11374    ;;
11375
11376  darwin*)
11377  # if libdl is installed we need to link against it
11378    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11379$as_echo_n "checking for dlopen in -ldl... " >&6; }
11380if ${ac_cv_lib_dl_dlopen+:} false; then :
11381  $as_echo_n "(cached) " >&6
11382else
11383  ac_check_lib_save_LIBS=$LIBS
11384LIBS="-ldl  $LIBS"
11385cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11386/* end confdefs.h.  */
11387
11388/* Override any GCC internal prototype to avoid an error.
11389   Use char because int might match the return type of a GCC
11390   builtin and then its argument prototype would still apply.  */
11391#ifdef __cplusplus
11392extern "C"
11393#endif
11394char dlopen ();
11395int
11396main ()
11397{
11398return dlopen ();
11399  ;
11400  return 0;
11401}
11402_ACEOF
11403if ac_fn_c_try_link "$LINENO"; then :
11404  ac_cv_lib_dl_dlopen=yes
11405else
11406  ac_cv_lib_dl_dlopen=no
11407fi
11408rm -f core conftest.err conftest.$ac_objext \
11409    conftest$ac_exeext conftest.$ac_ext
11410LIBS=$ac_check_lib_save_LIBS
11411fi
11412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11413$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11414if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11415  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11416else
11417
11418    lt_cv_dlopen="dyld"
11419    lt_cv_dlopen_libs=
11420    lt_cv_dlopen_self=yes
11421
11422fi
11423
11424    ;;
11425
11426  *)
11427    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11428if test "x$ac_cv_func_shl_load" = xyes; then :
11429  lt_cv_dlopen="shl_load"
11430else
11431  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11432$as_echo_n "checking for shl_load in -ldld... " >&6; }
11433if ${ac_cv_lib_dld_shl_load+:} false; then :
11434  $as_echo_n "(cached) " >&6
11435else
11436  ac_check_lib_save_LIBS=$LIBS
11437LIBS="-ldld  $LIBS"
11438cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11439/* end confdefs.h.  */
11440
11441/* Override any GCC internal prototype to avoid an error.
11442   Use char because int might match the return type of a GCC
11443   builtin and then its argument prototype would still apply.  */
11444#ifdef __cplusplus
11445extern "C"
11446#endif
11447char shl_load ();
11448int
11449main ()
11450{
11451return shl_load ();
11452  ;
11453  return 0;
11454}
11455_ACEOF
11456if ac_fn_c_try_link "$LINENO"; then :
11457  ac_cv_lib_dld_shl_load=yes
11458else
11459  ac_cv_lib_dld_shl_load=no
11460fi
11461rm -f core conftest.err conftest.$ac_objext \
11462    conftest$ac_exeext conftest.$ac_ext
11463LIBS=$ac_check_lib_save_LIBS
11464fi
11465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11466$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11467if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11468  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11469else
11470  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11471if test "x$ac_cv_func_dlopen" = xyes; then :
11472  lt_cv_dlopen="dlopen"
11473else
11474  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11475$as_echo_n "checking for dlopen in -ldl... " >&6; }
11476if ${ac_cv_lib_dl_dlopen+:} false; then :
11477  $as_echo_n "(cached) " >&6
11478else
11479  ac_check_lib_save_LIBS=$LIBS
11480LIBS="-ldl  $LIBS"
11481cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11482/* end confdefs.h.  */
11483
11484/* Override any GCC internal prototype to avoid an error.
11485   Use char because int might match the return type of a GCC
11486   builtin and then its argument prototype would still apply.  */
11487#ifdef __cplusplus
11488extern "C"
11489#endif
11490char dlopen ();
11491int
11492main ()
11493{
11494return dlopen ();
11495  ;
11496  return 0;
11497}
11498_ACEOF
11499if ac_fn_c_try_link "$LINENO"; then :
11500  ac_cv_lib_dl_dlopen=yes
11501else
11502  ac_cv_lib_dl_dlopen=no
11503fi
11504rm -f core conftest.err conftest.$ac_objext \
11505    conftest$ac_exeext conftest.$ac_ext
11506LIBS=$ac_check_lib_save_LIBS
11507fi
11508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11509$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11510if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11511  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11512else
11513  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11514$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11515if ${ac_cv_lib_svld_dlopen+:} false; then :
11516  $as_echo_n "(cached) " >&6
11517else
11518  ac_check_lib_save_LIBS=$LIBS
11519LIBS="-lsvld  $LIBS"
11520cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11521/* end confdefs.h.  */
11522
11523/* Override any GCC internal prototype to avoid an error.
11524   Use char because int might match the return type of a GCC
11525   builtin and then its argument prototype would still apply.  */
11526#ifdef __cplusplus
11527extern "C"
11528#endif
11529char dlopen ();
11530int
11531main ()
11532{
11533return dlopen ();
11534  ;
11535  return 0;
11536}
11537_ACEOF
11538if ac_fn_c_try_link "$LINENO"; then :
11539  ac_cv_lib_svld_dlopen=yes
11540else
11541  ac_cv_lib_svld_dlopen=no
11542fi
11543rm -f core conftest.err conftest.$ac_objext \
11544    conftest$ac_exeext conftest.$ac_ext
11545LIBS=$ac_check_lib_save_LIBS
11546fi
11547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11548$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11549if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11550  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11551else
11552  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11553$as_echo_n "checking for dld_link in -ldld... " >&6; }
11554if ${ac_cv_lib_dld_dld_link+:} false; then :
11555  $as_echo_n "(cached) " >&6
11556else
11557  ac_check_lib_save_LIBS=$LIBS
11558LIBS="-ldld  $LIBS"
11559cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11560/* end confdefs.h.  */
11561
11562/* Override any GCC internal prototype to avoid an error.
11563   Use char because int might match the return type of a GCC
11564   builtin and then its argument prototype would still apply.  */
11565#ifdef __cplusplus
11566extern "C"
11567#endif
11568char dld_link ();
11569int
11570main ()
11571{
11572return dld_link ();
11573  ;
11574  return 0;
11575}
11576_ACEOF
11577if ac_fn_c_try_link "$LINENO"; then :
11578  ac_cv_lib_dld_dld_link=yes
11579else
11580  ac_cv_lib_dld_dld_link=no
11581fi
11582rm -f core conftest.err conftest.$ac_objext \
11583    conftest$ac_exeext conftest.$ac_ext
11584LIBS=$ac_check_lib_save_LIBS
11585fi
11586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11587$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11588if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11589  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11590fi
11591
11592
11593fi
11594
11595
11596fi
11597
11598
11599fi
11600
11601
11602fi
11603
11604
11605fi
11606
11607    ;;
11608  esac
11609
11610  if test "x$lt_cv_dlopen" != xno; then
11611    enable_dlopen=yes
11612  else
11613    enable_dlopen=no
11614  fi
11615
11616  case $lt_cv_dlopen in
11617  dlopen)
11618    save_CPPFLAGS="$CPPFLAGS"
11619    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11620
11621    save_LDFLAGS="$LDFLAGS"
11622    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11623
11624    save_LIBS="$LIBS"
11625    LIBS="$lt_cv_dlopen_libs $LIBS"
11626
11627    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11628$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11629if ${lt_cv_dlopen_self+:} false; then :
11630  $as_echo_n "(cached) " >&6
11631else
11632  	  if test "$cross_compiling" = yes; then :
11633  lt_cv_dlopen_self=cross
11634else
11635  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11636  lt_status=$lt_dlunknown
11637  cat > conftest.$ac_ext <<_LT_EOF
11638#line $LINENO "configure"
11639#include "confdefs.h"
11640
11641#if HAVE_DLFCN_H
11642#include <dlfcn.h>
11643#endif
11644
11645#include <stdio.h>
11646
11647#ifdef RTLD_GLOBAL
11648#  define LT_DLGLOBAL		RTLD_GLOBAL
11649#else
11650#  ifdef DL_GLOBAL
11651#    define LT_DLGLOBAL		DL_GLOBAL
11652#  else
11653#    define LT_DLGLOBAL		0
11654#  endif
11655#endif
11656
11657/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11658   find out it does not work in some platform. */
11659#ifndef LT_DLLAZY_OR_NOW
11660#  ifdef RTLD_LAZY
11661#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11662#  else
11663#    ifdef DL_LAZY
11664#      define LT_DLLAZY_OR_NOW		DL_LAZY
11665#    else
11666#      ifdef RTLD_NOW
11667#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11668#      else
11669#        ifdef DL_NOW
11670#          define LT_DLLAZY_OR_NOW	DL_NOW
11671#        else
11672#          define LT_DLLAZY_OR_NOW	0
11673#        endif
11674#      endif
11675#    endif
11676#  endif
11677#endif
11678
11679/* When -fvisbility=hidden is used, assume the code has been annotated
11680   correspondingly for the symbols needed.  */
11681#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11682int fnord () __attribute__((visibility("default")));
11683#endif
11684
11685int fnord () { return 42; }
11686int main ()
11687{
11688  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11689  int status = $lt_dlunknown;
11690
11691  if (self)
11692    {
11693      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11694      else
11695        {
11696	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11697          else puts (dlerror ());
11698	}
11699      /* dlclose (self); */
11700    }
11701  else
11702    puts (dlerror ());
11703
11704  return status;
11705}
11706_LT_EOF
11707  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11708  (eval $ac_link) 2>&5
11709  ac_status=$?
11710  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11711  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11712    (./conftest; exit; ) >&5 2>/dev/null
11713    lt_status=$?
11714    case x$lt_status in
11715      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11716      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11717      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11718    esac
11719  else :
11720    # compilation failed
11721    lt_cv_dlopen_self=no
11722  fi
11723fi
11724rm -fr conftest*
11725
11726
11727fi
11728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11729$as_echo "$lt_cv_dlopen_self" >&6; }
11730
11731    if test "x$lt_cv_dlopen_self" = xyes; then
11732      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11733      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11734$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11735if ${lt_cv_dlopen_self_static+:} false; then :
11736  $as_echo_n "(cached) " >&6
11737else
11738  	  if test "$cross_compiling" = yes; then :
11739  lt_cv_dlopen_self_static=cross
11740else
11741  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11742  lt_status=$lt_dlunknown
11743  cat > conftest.$ac_ext <<_LT_EOF
11744#line $LINENO "configure"
11745#include "confdefs.h"
11746
11747#if HAVE_DLFCN_H
11748#include <dlfcn.h>
11749#endif
11750
11751#include <stdio.h>
11752
11753#ifdef RTLD_GLOBAL
11754#  define LT_DLGLOBAL		RTLD_GLOBAL
11755#else
11756#  ifdef DL_GLOBAL
11757#    define LT_DLGLOBAL		DL_GLOBAL
11758#  else
11759#    define LT_DLGLOBAL		0
11760#  endif
11761#endif
11762
11763/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11764   find out it does not work in some platform. */
11765#ifndef LT_DLLAZY_OR_NOW
11766#  ifdef RTLD_LAZY
11767#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11768#  else
11769#    ifdef DL_LAZY
11770#      define LT_DLLAZY_OR_NOW		DL_LAZY
11771#    else
11772#      ifdef RTLD_NOW
11773#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11774#      else
11775#        ifdef DL_NOW
11776#          define LT_DLLAZY_OR_NOW	DL_NOW
11777#        else
11778#          define LT_DLLAZY_OR_NOW	0
11779#        endif
11780#      endif
11781#    endif
11782#  endif
11783#endif
11784
11785/* When -fvisbility=hidden is used, assume the code has been annotated
11786   correspondingly for the symbols needed.  */
11787#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11788int fnord () __attribute__((visibility("default")));
11789#endif
11790
11791int fnord () { return 42; }
11792int main ()
11793{
11794  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11795  int status = $lt_dlunknown;
11796
11797  if (self)
11798    {
11799      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11800      else
11801        {
11802	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11803          else puts (dlerror ());
11804	}
11805      /* dlclose (self); */
11806    }
11807  else
11808    puts (dlerror ());
11809
11810  return status;
11811}
11812_LT_EOF
11813  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11814  (eval $ac_link) 2>&5
11815  ac_status=$?
11816  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11817  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11818    (./conftest; exit; ) >&5 2>/dev/null
11819    lt_status=$?
11820    case x$lt_status in
11821      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11822      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11823      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11824    esac
11825  else :
11826    # compilation failed
11827    lt_cv_dlopen_self_static=no
11828  fi
11829fi
11830rm -fr conftest*
11831
11832
11833fi
11834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11835$as_echo "$lt_cv_dlopen_self_static" >&6; }
11836    fi
11837
11838    CPPFLAGS="$save_CPPFLAGS"
11839    LDFLAGS="$save_LDFLAGS"
11840    LIBS="$save_LIBS"
11841    ;;
11842  esac
11843
11844  case $lt_cv_dlopen_self in
11845  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11846  *) enable_dlopen_self=unknown ;;
11847  esac
11848
11849  case $lt_cv_dlopen_self_static in
11850  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11851  *) enable_dlopen_self_static=unknown ;;
11852  esac
11853fi
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871striplib=
11872old_striplib=
11873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11874$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11875if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11876  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11877  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11879$as_echo "yes" >&6; }
11880else
11881# FIXME - insert some real tests, host_os isn't really good enough
11882  case $host_os in
11883  darwin*)
11884    if test -n "$STRIP" ; then
11885      striplib="$STRIP -x"
11886      old_striplib="$STRIP -S"
11887      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11888$as_echo "yes" >&6; }
11889    else
11890      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11891$as_echo "no" >&6; }
11892    fi
11893    ;;
11894  *)
11895    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11896$as_echo "no" >&6; }
11897    ;;
11898  esac
11899fi
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912  # Report which library types will actually be built
11913  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11914$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11916$as_echo "$can_build_shared" >&6; }
11917
11918  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11919$as_echo_n "checking whether to build shared libraries... " >&6; }
11920  test "$can_build_shared" = "no" && enable_shared=no
11921
11922  # On AIX, shared libraries and static libraries use the same namespace, and
11923  # are all built from PIC.
11924  case $host_os in
11925  aix3*)
11926    test "$enable_shared" = yes && enable_static=no
11927    if test -n "$RANLIB"; then
11928      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11929      postinstall_cmds='$RANLIB $lib'
11930    fi
11931    ;;
11932
11933  aix[4-9]*)
11934    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11935      test "$enable_shared" = yes && enable_static=no
11936    fi
11937    ;;
11938  esac
11939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11940$as_echo "$enable_shared" >&6; }
11941
11942  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11943$as_echo_n "checking whether to build static libraries... " >&6; }
11944  # Make sure either enable_shared or enable_static is yes.
11945  test "$enable_shared" = yes || enable_static=yes
11946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11947$as_echo "$enable_static" >&6; }
11948
11949
11950
11951
11952fi
11953ac_ext=c
11954ac_cpp='$CPP $CPPFLAGS'
11955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11957ac_compiler_gnu=$ac_cv_c_compiler_gnu
11958
11959CC="$lt_save_CC"
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973        ac_config_commands="$ac_config_commands libtool"
11974
11975
11976
11977
11978# Only expand once:
11979
11980
11981
11982
11983
11984# Define a configure option for an alternate module directory
11985
11986# Check whether --with-xorg-module-dir was given.
11987if test "${with_xorg_module_dir+set}" = set; then :
11988  withval=$with_xorg_module_dir; moduledir="$withval"
11989else
11990  moduledir="$libdir/xorg/modules"
11991fi
11992
11993
11994# Store the list of server defined optional extensions in REQUIRED_MODULES
11995#XORG_DRIVER_CHECK_EXT(RANDR, randrproto)
11996#XORG_DRIVER_CHECK_EXT(RENDER, renderproto)
11997#XORG_DRIVER_CHECK_EXT(XV, videoproto)
11998
11999# Obtain compiler/linker options for the driver dependencies
12000
12001pkg_failed=no
12002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
12003$as_echo_n "checking for XORG... " >&6; }
12004
12005if test -n "$XORG_CFLAGS"; then
12006    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
12007 elif test -n "$PKG_CONFIG"; then
12008    if test -n "$PKG_CONFIG" && \
12009    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto \$REQUIRED_MODULES\""; } >&5
12010  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES") 2>&5
12011  ac_status=$?
12012  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12013  test $ac_status = 0; }; then
12014  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES" 2>/dev/null`
12015		      test "x$?" != "x0" && pkg_failed=yes
12016else
12017  pkg_failed=yes
12018fi
12019 else
12020    pkg_failed=untried
12021fi
12022if test -n "$XORG_LIBS"; then
12023    pkg_cv_XORG_LIBS="$XORG_LIBS"
12024 elif test -n "$PKG_CONFIG"; then
12025    if test -n "$PKG_CONFIG" && \
12026    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto \$REQUIRED_MODULES\""; } >&5
12027  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES") 2>&5
12028  ac_status=$?
12029  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12030  test $ac_status = 0; }; then
12031  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES" 2>/dev/null`
12032		      test "x$?" != "x0" && pkg_failed=yes
12033else
12034  pkg_failed=yes
12035fi
12036 else
12037    pkg_failed=untried
12038fi
12039
12040
12041
12042if test $pkg_failed = yes; then
12043   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12044$as_echo "no" >&6; }
12045
12046if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12047        _pkg_short_errors_supported=yes
12048else
12049        _pkg_short_errors_supported=no
12050fi
12051        if test $_pkg_short_errors_supported = yes; then
12052	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES" 2>&1`
12053        else
12054	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES" 2>&1`
12055        fi
12056	# Put the nasty error message in config.log where it belongs
12057	echo "$XORG_PKG_ERRORS" >&5
12058
12059	as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES) were not met:
12060
12061$XORG_PKG_ERRORS
12062
12063Consider adjusting the PKG_CONFIG_PATH environment variable if you
12064installed software in a non-standard prefix.
12065
12066Alternatively, you may set the environment variables XORG_CFLAGS
12067and XORG_LIBS to avoid the need to call pkg-config.
12068See the pkg-config man page for more details." "$LINENO" 5
12069elif test $pkg_failed = untried; then
12070     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12071$as_echo "no" >&6; }
12072	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12073$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12074as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12075is in your PATH or set the PKG_CONFIG environment variable to the full
12076path to pkg-config.
12077
12078Alternatively, you may set the environment variables XORG_CFLAGS
12079and XORG_LIBS to avoid the need to call pkg-config.
12080See the pkg-config man page for more details.
12081
12082To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12083See \`config.log' for more details" "$LINENO" 5; }
12084else
12085	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
12086	XORG_LIBS=$pkg_cv_XORG_LIBS
12087        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12088$as_echo "yes" >&6; }
12089
12090fi
12091
12092# Checks for libraries.
12093
12094# Check for xf1bpp & xf4bpp (removed in xorg-server 1.6 & later)
12095SAVE_CPPFLAGS="$CPPFLAGS"
12096CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
12097ac_fn_c_check_header_mongrel "$LINENO" "xf1bpp.h" "ac_cv_header_xf1bpp_h" "$ac_includes_default"
12098if test "x$ac_cv_header_xf1bpp_h" = xyes; then :
12099
12100$as_echo "#define HAVE_XF1BPP 1" >>confdefs.h
12101
12102fi
12103
12104
12105ac_fn_c_check_header_mongrel "$LINENO" "xf4bpp.h" "ac_cv_header_xf4bpp_h" "$ac_includes_default"
12106if test "x$ac_cv_header_xf4bpp_h" = xyes; then :
12107
12108$as_echo "#define HAVE_XF4BPP 1" >>confdefs.h
12109
12110fi
12111
12112
12113CPPFLAGS="$SAVE_CPPFLAGS"
12114
12115
12116
12117DRIVER_NAME=wsfb
12118
12119
12120ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
12121
12122cat >confcache <<\_ACEOF
12123# This file is a shell script that caches the results of configure
12124# tests run on this system so they can be shared between configure
12125# scripts and configure runs, see configure's option --config-cache.
12126# It is not useful on other systems.  If it contains results you don't
12127# want to keep, you may remove or edit it.
12128#
12129# config.status only pays attention to the cache file if you give it
12130# the --recheck option to rerun configure.
12131#
12132# `ac_cv_env_foo' variables (set or unset) will be overridden when
12133# loading this file, other *unset* `ac_cv_foo' will be assigned the
12134# following values.
12135
12136_ACEOF
12137
12138# The following way of writing the cache mishandles newlines in values,
12139# but we know of no workaround that is simple, portable, and efficient.
12140# So, we kill variables containing newlines.
12141# Ultrix sh set writes to stderr and can't be redirected directly,
12142# and sets the high bit in the cache file unless we assign to the vars.
12143(
12144  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12145    eval ac_val=\$$ac_var
12146    case $ac_val in #(
12147    *${as_nl}*)
12148      case $ac_var in #(
12149      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12150$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12151      esac
12152      case $ac_var in #(
12153      _ | IFS | as_nl) ;; #(
12154      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12155      *) { eval $ac_var=; unset $ac_var;} ;;
12156      esac ;;
12157    esac
12158  done
12159
12160  (set) 2>&1 |
12161    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12162    *${as_nl}ac_space=\ *)
12163      # `set' does not quote correctly, so add quotes: double-quote
12164      # substitution turns \\\\ into \\, and sed turns \\ into \.
12165      sed -n \
12166	"s/'/'\\\\''/g;
12167	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12168      ;; #(
12169    *)
12170      # `set' quotes correctly as required by POSIX, so do not add quotes.
12171      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12172      ;;
12173    esac |
12174    sort
12175) |
12176  sed '
12177     /^ac_cv_env_/b end
12178     t clear
12179     :clear
12180     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12181     t end
12182     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12183     :end' >>confcache
12184if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12185  if test -w "$cache_file"; then
12186    if test "x$cache_file" != "x/dev/null"; then
12187      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12188$as_echo "$as_me: updating cache $cache_file" >&6;}
12189      if test ! -f "$cache_file" || test -h "$cache_file"; then
12190	cat confcache >"$cache_file"
12191      else
12192        case $cache_file in #(
12193        */* | ?:*)
12194	  mv -f confcache "$cache_file"$$ &&
12195	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12196        *)
12197	  mv -f confcache "$cache_file" ;;
12198	esac
12199      fi
12200    fi
12201  else
12202    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12203$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12204  fi
12205fi
12206rm -f confcache
12207
12208test "x$prefix" = xNONE && prefix=$ac_default_prefix
12209# Let make expand exec_prefix.
12210test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12211
12212DEFS=-DHAVE_CONFIG_H
12213
12214ac_libobjs=
12215ac_ltlibobjs=
12216U=
12217for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12218  # 1. Remove the extension, and $U if already installed.
12219  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12220  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12221  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12222  #    will be set to the directory where LIBOBJS objects are built.
12223  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12224  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12225done
12226LIBOBJS=$ac_libobjs
12227
12228LTLIBOBJS=$ac_ltlibobjs
12229
12230
12231if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12232  as_fn_error $? "conditional \"AMDEP\" was never defined.
12233Usually this means the macro was only invoked conditionally." "$LINENO" 5
12234fi
12235if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12236  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12237Usually this means the macro was only invoked conditionally." "$LINENO" 5
12238fi
12239 if test -n "$EXEEXT"; then
12240  am__EXEEXT_TRUE=
12241  am__EXEEXT_FALSE='#'
12242else
12243  am__EXEEXT_TRUE='#'
12244  am__EXEEXT_FALSE=
12245fi
12246
12247if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12248  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12249Usually this means the macro was only invoked conditionally." "$LINENO" 5
12250fi
12251
12252: "${CONFIG_STATUS=./config.status}"
12253ac_write_fail=0
12254ac_clean_files_save=$ac_clean_files
12255ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12256{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12257$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12258as_write_fail=0
12259cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12260#! $SHELL
12261# Generated by $as_me.
12262# Run this file to recreate the current configuration.
12263# Compiler output produced by configure, useful for debugging
12264# configure, is in config.log if it exists.
12265
12266debug=false
12267ac_cs_recheck=false
12268ac_cs_silent=false
12269
12270SHELL=\${CONFIG_SHELL-$SHELL}
12271export SHELL
12272_ASEOF
12273cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12274## -------------------- ##
12275## M4sh Initialization. ##
12276## -------------------- ##
12277
12278# Be more Bourne compatible
12279DUALCASE=1; export DUALCASE # for MKS sh
12280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12281  emulate sh
12282  NULLCMD=:
12283  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12284  # is contrary to our usage.  Disable this feature.
12285  alias -g '${1+"$@"}'='"$@"'
12286  setopt NO_GLOB_SUBST
12287else
12288  case `(set -o) 2>/dev/null` in #(
12289  *posix*) :
12290    set -o posix ;; #(
12291  *) :
12292     ;;
12293esac
12294fi
12295
12296
12297as_nl='
12298'
12299export as_nl
12300# Printing a long string crashes Solaris 7 /usr/bin/printf.
12301as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12302as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12303as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12304# Prefer a ksh shell builtin over an external printf program on Solaris,
12305# but without wasting forks for bash or zsh.
12306if test -z "$BASH_VERSION$ZSH_VERSION" \
12307    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12308  as_echo='print -r --'
12309  as_echo_n='print -rn --'
12310elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12311  as_echo='printf %s\n'
12312  as_echo_n='printf %s'
12313else
12314  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12315    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12316    as_echo_n='/usr/ucb/echo -n'
12317  else
12318    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12319    as_echo_n_body='eval
12320      arg=$1;
12321      case $arg in #(
12322      *"$as_nl"*)
12323	expr "X$arg" : "X\\(.*\\)$as_nl";
12324	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12325      esac;
12326      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12327    '
12328    export as_echo_n_body
12329    as_echo_n='sh -c $as_echo_n_body as_echo'
12330  fi
12331  export as_echo_body
12332  as_echo='sh -c $as_echo_body as_echo'
12333fi
12334
12335# The user is always right.
12336if test "${PATH_SEPARATOR+set}" != set; then
12337  PATH_SEPARATOR=:
12338  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12339    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12340      PATH_SEPARATOR=';'
12341  }
12342fi
12343
12344
12345# IFS
12346# We need space, tab and new line, in precisely that order.  Quoting is
12347# there to prevent editors from complaining about space-tab.
12348# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12349# splitting by setting IFS to empty value.)
12350IFS=" ""	$as_nl"
12351
12352# Find who we are.  Look in the path if we contain no directory separator.
12353as_myself=
12354case $0 in #((
12355  *[\\/]* ) as_myself=$0 ;;
12356  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12357for as_dir in $PATH
12358do
12359  IFS=$as_save_IFS
12360  test -z "$as_dir" && as_dir=.
12361    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12362  done
12363IFS=$as_save_IFS
12364
12365     ;;
12366esac
12367# We did not find ourselves, most probably we were run as `sh COMMAND'
12368# in which case we are not to be found in the path.
12369if test "x$as_myself" = x; then
12370  as_myself=$0
12371fi
12372if test ! -f "$as_myself"; then
12373  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12374  exit 1
12375fi
12376
12377# Unset variables that we do not need and which cause bugs (e.g. in
12378# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12379# suppresses any "Segmentation fault" message there.  '((' could
12380# trigger a bug in pdksh 5.2.14.
12381for as_var in BASH_ENV ENV MAIL MAILPATH
12382do eval test x\${$as_var+set} = xset \
12383  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12384done
12385PS1='$ '
12386PS2='> '
12387PS4='+ '
12388
12389# NLS nuisances.
12390LC_ALL=C
12391export LC_ALL
12392LANGUAGE=C
12393export LANGUAGE
12394
12395# CDPATH.
12396(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12397
12398
12399# as_fn_error STATUS ERROR [LINENO LOG_FD]
12400# ----------------------------------------
12401# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12402# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12403# script with STATUS, using 1 if that was 0.
12404as_fn_error ()
12405{
12406  as_status=$1; test $as_status -eq 0 && as_status=1
12407  if test "$4"; then
12408    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12409    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12410  fi
12411  $as_echo "$as_me: error: $2" >&2
12412  as_fn_exit $as_status
12413} # as_fn_error
12414
12415
12416# as_fn_set_status STATUS
12417# -----------------------
12418# Set $? to STATUS, without forking.
12419as_fn_set_status ()
12420{
12421  return $1
12422} # as_fn_set_status
12423
12424# as_fn_exit STATUS
12425# -----------------
12426# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12427as_fn_exit ()
12428{
12429  set +e
12430  as_fn_set_status $1
12431  exit $1
12432} # as_fn_exit
12433
12434# as_fn_unset VAR
12435# ---------------
12436# Portably unset VAR.
12437as_fn_unset ()
12438{
12439  { eval $1=; unset $1;}
12440}
12441as_unset=as_fn_unset
12442# as_fn_append VAR VALUE
12443# ----------------------
12444# Append the text in VALUE to the end of the definition contained in VAR. Take
12445# advantage of any shell optimizations that allow amortized linear growth over
12446# repeated appends, instead of the typical quadratic growth present in naive
12447# implementations.
12448if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12449  eval 'as_fn_append ()
12450  {
12451    eval $1+=\$2
12452  }'
12453else
12454  as_fn_append ()
12455  {
12456    eval $1=\$$1\$2
12457  }
12458fi # as_fn_append
12459
12460# as_fn_arith ARG...
12461# ------------------
12462# Perform arithmetic evaluation on the ARGs, and store the result in the
12463# global $as_val. Take advantage of shells that can avoid forks. The arguments
12464# must be portable across $(()) and expr.
12465if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12466  eval 'as_fn_arith ()
12467  {
12468    as_val=$(( $* ))
12469  }'
12470else
12471  as_fn_arith ()
12472  {
12473    as_val=`expr "$@" || test $? -eq 1`
12474  }
12475fi # as_fn_arith
12476
12477
12478if expr a : '\(a\)' >/dev/null 2>&1 &&
12479   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12480  as_expr=expr
12481else
12482  as_expr=false
12483fi
12484
12485if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12486  as_basename=basename
12487else
12488  as_basename=false
12489fi
12490
12491if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12492  as_dirname=dirname
12493else
12494  as_dirname=false
12495fi
12496
12497as_me=`$as_basename -- "$0" ||
12498$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12499	 X"$0" : 'X\(//\)$' \| \
12500	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12501$as_echo X/"$0" |
12502    sed '/^.*\/\([^/][^/]*\)\/*$/{
12503	    s//\1/
12504	    q
12505	  }
12506	  /^X\/\(\/\/\)$/{
12507	    s//\1/
12508	    q
12509	  }
12510	  /^X\/\(\/\).*/{
12511	    s//\1/
12512	    q
12513	  }
12514	  s/.*/./; q'`
12515
12516# Avoid depending upon Character Ranges.
12517as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12518as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12519as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12520as_cr_digits='0123456789'
12521as_cr_alnum=$as_cr_Letters$as_cr_digits
12522
12523ECHO_C= ECHO_N= ECHO_T=
12524case `echo -n x` in #(((((
12525-n*)
12526  case `echo 'xy\c'` in
12527  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12528  xy)  ECHO_C='\c';;
12529  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12530       ECHO_T='	';;
12531  esac;;
12532*)
12533  ECHO_N='-n';;
12534esac
12535
12536rm -f conf$$ conf$$.exe conf$$.file
12537if test -d conf$$.dir; then
12538  rm -f conf$$.dir/conf$$.file
12539else
12540  rm -f conf$$.dir
12541  mkdir conf$$.dir 2>/dev/null
12542fi
12543if (echo >conf$$.file) 2>/dev/null; then
12544  if ln -s conf$$.file conf$$ 2>/dev/null; then
12545    as_ln_s='ln -s'
12546    # ... but there are two gotchas:
12547    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12548    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12549    # In both cases, we have to default to `cp -p'.
12550    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12551      as_ln_s='cp -p'
12552  elif ln conf$$.file conf$$ 2>/dev/null; then
12553    as_ln_s=ln
12554  else
12555    as_ln_s='cp -p'
12556  fi
12557else
12558  as_ln_s='cp -p'
12559fi
12560rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12561rmdir conf$$.dir 2>/dev/null
12562
12563
12564# as_fn_mkdir_p
12565# -------------
12566# Create "$as_dir" as a directory, including parents if necessary.
12567as_fn_mkdir_p ()
12568{
12569
12570  case $as_dir in #(
12571  -*) as_dir=./$as_dir;;
12572  esac
12573  test -d "$as_dir" || eval $as_mkdir_p || {
12574    as_dirs=
12575    while :; do
12576      case $as_dir in #(
12577      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12578      *) as_qdir=$as_dir;;
12579      esac
12580      as_dirs="'$as_qdir' $as_dirs"
12581      as_dir=`$as_dirname -- "$as_dir" ||
12582$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12583	 X"$as_dir" : 'X\(//\)[^/]' \| \
12584	 X"$as_dir" : 'X\(//\)$' \| \
12585	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12586$as_echo X"$as_dir" |
12587    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12588	    s//\1/
12589	    q
12590	  }
12591	  /^X\(\/\/\)[^/].*/{
12592	    s//\1/
12593	    q
12594	  }
12595	  /^X\(\/\/\)$/{
12596	    s//\1/
12597	    q
12598	  }
12599	  /^X\(\/\).*/{
12600	    s//\1/
12601	    q
12602	  }
12603	  s/.*/./; q'`
12604      test -d "$as_dir" && break
12605    done
12606    test -z "$as_dirs" || eval "mkdir $as_dirs"
12607  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12608
12609
12610} # as_fn_mkdir_p
12611if mkdir -p . 2>/dev/null; then
12612  as_mkdir_p='mkdir -p "$as_dir"'
12613else
12614  test -d ./-p && rmdir ./-p
12615  as_mkdir_p=false
12616fi
12617
12618if test -x / >/dev/null 2>&1; then
12619  as_test_x='test -x'
12620else
12621  if ls -dL / >/dev/null 2>&1; then
12622    as_ls_L_option=L
12623  else
12624    as_ls_L_option=
12625  fi
12626  as_test_x='
12627    eval sh -c '\''
12628      if test -d "$1"; then
12629	test -d "$1/.";
12630      else
12631	case $1 in #(
12632	-*)set "./$1";;
12633	esac;
12634	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12635	???[sx]*):;;*)false;;esac;fi
12636    '\'' sh
12637  '
12638fi
12639as_executable_p=$as_test_x
12640
12641# Sed expression to map a string onto a valid CPP name.
12642as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12643
12644# Sed expression to map a string onto a valid variable name.
12645as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12646
12647
12648exec 6>&1
12649## ----------------------------------- ##
12650## Main body of $CONFIG_STATUS script. ##
12651## ----------------------------------- ##
12652_ASEOF
12653test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12654
12655cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12656# Save the log message, to keep $0 and so on meaningful, and to
12657# report actual input values of CONFIG_FILES etc. instead of their
12658# values after options handling.
12659ac_log="
12660This file was extended by xf86-video-wsfb $as_me 0.4.0, which was
12661generated by GNU Autoconf 2.68.  Invocation command line was
12662
12663  CONFIG_FILES    = $CONFIG_FILES
12664  CONFIG_HEADERS  = $CONFIG_HEADERS
12665  CONFIG_LINKS    = $CONFIG_LINKS
12666  CONFIG_COMMANDS = $CONFIG_COMMANDS
12667  $ $0 $@
12668
12669on `(hostname || uname -n) 2>/dev/null | sed 1q`
12670"
12671
12672_ACEOF
12673
12674case $ac_config_files in *"
12675"*) set x $ac_config_files; shift; ac_config_files=$*;;
12676esac
12677
12678case $ac_config_headers in *"
12679"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12680esac
12681
12682
12683cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12684# Files that config.status was made for.
12685config_files="$ac_config_files"
12686config_headers="$ac_config_headers"
12687config_commands="$ac_config_commands"
12688
12689_ACEOF
12690
12691cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12692ac_cs_usage="\
12693\`$as_me' instantiates files and other configuration actions
12694from templates according to the current configuration.  Unless the files
12695and actions are specified as TAGs, all are instantiated by default.
12696
12697Usage: $0 [OPTION]... [TAG]...
12698
12699  -h, --help       print this help, then exit
12700  -V, --version    print version number and configuration settings, then exit
12701      --config     print configuration, then exit
12702  -q, --quiet, --silent
12703                   do not print progress messages
12704  -d, --debug      don't remove temporary files
12705      --recheck    update $as_me by reconfiguring in the same conditions
12706      --file=FILE[:TEMPLATE]
12707                   instantiate the configuration file FILE
12708      --header=FILE[:TEMPLATE]
12709                   instantiate the configuration header FILE
12710
12711Configuration files:
12712$config_files
12713
12714Configuration headers:
12715$config_headers
12716
12717Configuration commands:
12718$config_commands
12719
12720Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
12721
12722_ACEOF
12723cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12724ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12725ac_cs_version="\\
12726xf86-video-wsfb config.status 0.4.0
12727configured by $0, generated by GNU Autoconf 2.68,
12728  with options \\"\$ac_cs_config\\"
12729
12730Copyright (C) 2010 Free Software Foundation, Inc.
12731This config.status script is free software; the Free Software Foundation
12732gives unlimited permission to copy, distribute and modify it."
12733
12734ac_pwd='$ac_pwd'
12735srcdir='$srcdir'
12736INSTALL='$INSTALL'
12737MKDIR_P='$MKDIR_P'
12738AWK='$AWK'
12739test -n "\$AWK" || AWK=awk
12740_ACEOF
12741
12742cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12743# The default lists apply if the user does not specify any file.
12744ac_need_defaults=:
12745while test $# != 0
12746do
12747  case $1 in
12748  --*=?*)
12749    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12750    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12751    ac_shift=:
12752    ;;
12753  --*=)
12754    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12755    ac_optarg=
12756    ac_shift=:
12757    ;;
12758  *)
12759    ac_option=$1
12760    ac_optarg=$2
12761    ac_shift=shift
12762    ;;
12763  esac
12764
12765  case $ac_option in
12766  # Handling of the options.
12767  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12768    ac_cs_recheck=: ;;
12769  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12770    $as_echo "$ac_cs_version"; exit ;;
12771  --config | --confi | --conf | --con | --co | --c )
12772    $as_echo "$ac_cs_config"; exit ;;
12773  --debug | --debu | --deb | --de | --d | -d )
12774    debug=: ;;
12775  --file | --fil | --fi | --f )
12776    $ac_shift
12777    case $ac_optarg in
12778    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12779    '') as_fn_error $? "missing file argument" ;;
12780    esac
12781    as_fn_append CONFIG_FILES " '$ac_optarg'"
12782    ac_need_defaults=false;;
12783  --header | --heade | --head | --hea )
12784    $ac_shift
12785    case $ac_optarg in
12786    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12787    esac
12788    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12789    ac_need_defaults=false;;
12790  --he | --h)
12791    # Conflict between --help and --header
12792    as_fn_error $? "ambiguous option: \`$1'
12793Try \`$0 --help' for more information.";;
12794  --help | --hel | -h )
12795    $as_echo "$ac_cs_usage"; exit ;;
12796  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12797  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12798    ac_cs_silent=: ;;
12799
12800  # This is an error.
12801  -*) as_fn_error $? "unrecognized option: \`$1'
12802Try \`$0 --help' for more information." ;;
12803
12804  *) as_fn_append ac_config_targets " $1"
12805     ac_need_defaults=false ;;
12806
12807  esac
12808  shift
12809done
12810
12811ac_configure_extra_args=
12812
12813if $ac_cs_silent; then
12814  exec 6>/dev/null
12815  ac_configure_extra_args="$ac_configure_extra_args --silent"
12816fi
12817
12818_ACEOF
12819cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12820if \$ac_cs_recheck; then
12821  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12822  shift
12823  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12824  CONFIG_SHELL='$SHELL'
12825  export CONFIG_SHELL
12826  exec "\$@"
12827fi
12828
12829_ACEOF
12830cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12831exec 5>>config.log
12832{
12833  echo
12834  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12835## Running $as_me. ##
12836_ASBOX
12837  $as_echo "$ac_log"
12838} >&5
12839
12840_ACEOF
12841cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12842#
12843# INIT-COMMANDS
12844#
12845AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12846
12847
12848# The HP-UX ksh and POSIX shell print the target directory to stdout
12849# if CDPATH is set.
12850(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12851
12852sed_quote_subst='$sed_quote_subst'
12853double_quote_subst='$double_quote_subst'
12854delay_variable_subst='$delay_variable_subst'
12855enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12856macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12857macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12858enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12859pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12860enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12861SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12862ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12863host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12864host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12865host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12866build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12867build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12868build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12869SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12870Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12871GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12872EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12873FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12874LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12875NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12876LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12877max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12878ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12879exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12880lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12881lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12882lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12883lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12884lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12885reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12886reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12887OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12888deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12889file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12890file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12891want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12892DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12893sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12894AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12895AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12896archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12897STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12898RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12899old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12900old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12901old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12902lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12903CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12904CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12905compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12906GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12907lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12908lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12909lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12910lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
12911nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12912lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12913objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12914MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12915lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12916lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12917lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12918lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12919lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12920need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12921MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12922DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12923NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12924LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12925OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12926OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12927libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12928shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12929extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12930archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12931enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12932export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12933whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12934compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12935old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12936old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12937archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12938archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12939module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12940module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12941with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12942allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12943no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12944hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12945hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12946hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12947hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12948hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12949hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12950hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12951hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12952inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12953link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12954always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12955export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12956exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12957include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12958prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12959postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12960file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12961variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12962need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12963need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12964version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12965runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12966shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12967shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12968libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12969library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12970soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12971install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12972postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12973postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12974finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12975finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12976hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12977sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12978sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12979hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12980enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12981enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12982enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12983old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12984striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12985
12986LTCC='$LTCC'
12987LTCFLAGS='$LTCFLAGS'
12988compiler='$compiler_DEFAULT'
12989
12990# A function that is used when there is no print builtin or printf.
12991func_fallback_echo ()
12992{
12993  eval 'cat <<_LTECHO_EOF
12994\$1
12995_LTECHO_EOF'
12996}
12997
12998# Quote evaled strings.
12999for var in SHELL \
13000ECHO \
13001SED \
13002GREP \
13003EGREP \
13004FGREP \
13005LD \
13006NM \
13007LN_S \
13008lt_SP2NL \
13009lt_NL2SP \
13010reload_flag \
13011OBJDUMP \
13012deplibs_check_method \
13013file_magic_cmd \
13014file_magic_glob \
13015want_nocaseglob \
13016DLLTOOL \
13017sharedlib_from_linklib_cmd \
13018AR \
13019AR_FLAGS \
13020archiver_list_spec \
13021STRIP \
13022RANLIB \
13023CC \
13024CFLAGS \
13025compiler \
13026lt_cv_sys_global_symbol_pipe \
13027lt_cv_sys_global_symbol_to_cdecl \
13028lt_cv_sys_global_symbol_to_c_name_address \
13029lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13030nm_file_list_spec \
13031lt_prog_compiler_no_builtin_flag \
13032lt_prog_compiler_pic \
13033lt_prog_compiler_wl \
13034lt_prog_compiler_static \
13035lt_cv_prog_compiler_c_o \
13036need_locks \
13037MANIFEST_TOOL \
13038DSYMUTIL \
13039NMEDIT \
13040LIPO \
13041OTOOL \
13042OTOOL64 \
13043shrext_cmds \
13044export_dynamic_flag_spec \
13045whole_archive_flag_spec \
13046compiler_needs_object \
13047with_gnu_ld \
13048allow_undefined_flag \
13049no_undefined_flag \
13050hardcode_libdir_flag_spec \
13051hardcode_libdir_flag_spec_ld \
13052hardcode_libdir_separator \
13053exclude_expsyms \
13054include_expsyms \
13055file_list_spec \
13056variables_saved_for_relink \
13057libname_spec \
13058library_names_spec \
13059soname_spec \
13060install_override_mode \
13061finish_eval \
13062old_striplib \
13063striplib; do
13064    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13065    *[\\\\\\\`\\"\\\$]*)
13066      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13067      ;;
13068    *)
13069      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13070      ;;
13071    esac
13072done
13073
13074# Double-quote double-evaled strings.
13075for var in reload_cmds \
13076old_postinstall_cmds \
13077old_postuninstall_cmds \
13078old_archive_cmds \
13079extract_expsyms_cmds \
13080old_archive_from_new_cmds \
13081old_archive_from_expsyms_cmds \
13082archive_cmds \
13083archive_expsym_cmds \
13084module_cmds \
13085module_expsym_cmds \
13086export_symbols_cmds \
13087prelink_cmds \
13088postlink_cmds \
13089postinstall_cmds \
13090postuninstall_cmds \
13091finish_cmds \
13092sys_lib_search_path_spec \
13093sys_lib_dlsearch_path_spec; do
13094    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13095    *[\\\\\\\`\\"\\\$]*)
13096      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13097      ;;
13098    *)
13099      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13100      ;;
13101    esac
13102done
13103
13104ac_aux_dir='$ac_aux_dir'
13105xsi_shell='$xsi_shell'
13106lt_shell_append='$lt_shell_append'
13107
13108# See if we are running on zsh, and set the options which allow our
13109# commands through without removal of \ escapes INIT.
13110if test -n "\${ZSH_VERSION+set}" ; then
13111   setopt NO_GLOB_SUBST
13112fi
13113
13114
13115    PACKAGE='$PACKAGE'
13116    VERSION='$VERSION'
13117    TIMESTAMP='$TIMESTAMP'
13118    RM='$RM'
13119    ofile='$ofile'
13120
13121
13122
13123
13124_ACEOF
13125
13126cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13127
13128# Handling of arguments.
13129for ac_config_target in $ac_config_targets
13130do
13131  case $ac_config_target in
13132    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13133    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13134    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13135    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13136    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13137    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13138
13139  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13140  esac
13141done
13142
13143
13144# If the user did not use the arguments to specify the items to instantiate,
13145# then the envvar interface is used.  Set only those that are not.
13146# We use the long form for the default assignment because of an extremely
13147# bizarre bug on SunOS 4.1.3.
13148if $ac_need_defaults; then
13149  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13150  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13151  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13152fi
13153
13154# Have a temporary directory for convenience.  Make it in the build tree
13155# simply because there is no reason against having it here, and in addition,
13156# creating and moving files from /tmp can sometimes cause problems.
13157# Hook for its removal unless debugging.
13158# Note that there is a small window in which the directory will not be cleaned:
13159# after its creation but before its name has been assigned to `$tmp'.
13160$debug ||
13161{
13162  tmp= ac_tmp=
13163  trap 'exit_status=$?
13164  : "${ac_tmp:=$tmp}"
13165  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13166' 0
13167  trap 'as_fn_exit 1' 1 2 13 15
13168}
13169# Create a (secure) tmp directory for tmp files.
13170
13171{
13172  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13173  test -d "$tmp"
13174}  ||
13175{
13176  tmp=./conf$$-$RANDOM
13177  (umask 077 && mkdir "$tmp")
13178} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13179ac_tmp=$tmp
13180
13181# Set up the scripts for CONFIG_FILES section.
13182# No need to generate them if there are no CONFIG_FILES.
13183# This happens for instance with `./config.status config.h'.
13184if test -n "$CONFIG_FILES"; then
13185
13186
13187ac_cr=`echo X | tr X '\015'`
13188# On cygwin, bash can eat \r inside `` if the user requested igncr.
13189# But we know of no other shell where ac_cr would be empty at this
13190# point, so we can use a bashism as a fallback.
13191if test "x$ac_cr" = x; then
13192  eval ac_cr=\$\'\\r\'
13193fi
13194ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13195if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13196  ac_cs_awk_cr='\\r'
13197else
13198  ac_cs_awk_cr=$ac_cr
13199fi
13200
13201echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13202_ACEOF
13203
13204
13205{
13206  echo "cat >conf$$subs.awk <<_ACEOF" &&
13207  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13208  echo "_ACEOF"
13209} >conf$$subs.sh ||
13210  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13211ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13212ac_delim='%!_!# '
13213for ac_last_try in false false false false false :; do
13214  . ./conf$$subs.sh ||
13215    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13216
13217  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13218  if test $ac_delim_n = $ac_delim_num; then
13219    break
13220  elif $ac_last_try; then
13221    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13222  else
13223    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13224  fi
13225done
13226rm -f conf$$subs.sh
13227
13228cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13229cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13230_ACEOF
13231sed -n '
13232h
13233s/^/S["/; s/!.*/"]=/
13234p
13235g
13236s/^[^!]*!//
13237:repl
13238t repl
13239s/'"$ac_delim"'$//
13240t delim
13241:nl
13242h
13243s/\(.\{148\}\)..*/\1/
13244t more1
13245s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13246p
13247n
13248b repl
13249:more1
13250s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13251p
13252g
13253s/.\{148\}//
13254t nl
13255:delim
13256h
13257s/\(.\{148\}\)..*/\1/
13258t more2
13259s/["\\]/\\&/g; s/^/"/; s/$/"/
13260p
13261b
13262:more2
13263s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13264p
13265g
13266s/.\{148\}//
13267t delim
13268' <conf$$subs.awk | sed '
13269/^[^""]/{
13270  N
13271  s/\n//
13272}
13273' >>$CONFIG_STATUS || ac_write_fail=1
13274rm -f conf$$subs.awk
13275cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13276_ACAWK
13277cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13278  for (key in S) S_is_set[key] = 1
13279  FS = ""
13280
13281}
13282{
13283  line = $ 0
13284  nfields = split(line, field, "@")
13285  substed = 0
13286  len = length(field[1])
13287  for (i = 2; i < nfields; i++) {
13288    key = field[i]
13289    keylen = length(key)
13290    if (S_is_set[key]) {
13291      value = S[key]
13292      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13293      len += length(value) + length(field[++i])
13294      substed = 1
13295    } else
13296      len += 1 + keylen
13297  }
13298
13299  print line
13300}
13301
13302_ACAWK
13303_ACEOF
13304cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13305if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13306  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13307else
13308  cat
13309fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13310  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13311_ACEOF
13312
13313# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13314# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13315# trailing colons and then remove the whole line if VPATH becomes empty
13316# (actually we leave an empty line to preserve line numbers).
13317if test "x$srcdir" = x.; then
13318  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
13319h
13320s///
13321s/^/:/
13322s/[	 ]*$/:/
13323s/:\$(srcdir):/:/g
13324s/:\${srcdir}:/:/g
13325s/:@srcdir@:/:/g
13326s/^:*//
13327s/:*$//
13328x
13329s/\(=[	 ]*\).*/\1/
13330G
13331s/\n//
13332s/^[^=]*=[	 ]*$//
13333}'
13334fi
13335
13336cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13337fi # test -n "$CONFIG_FILES"
13338
13339# Set up the scripts for CONFIG_HEADERS section.
13340# No need to generate them if there are no CONFIG_HEADERS.
13341# This happens for instance with `./config.status Makefile'.
13342if test -n "$CONFIG_HEADERS"; then
13343cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13344BEGIN {
13345_ACEOF
13346
13347# Transform confdefs.h into an awk script `defines.awk', embedded as
13348# here-document in config.status, that substitutes the proper values into
13349# config.h.in to produce config.h.
13350
13351# Create a delimiter string that does not exist in confdefs.h, to ease
13352# handling of long lines.
13353ac_delim='%!_!# '
13354for ac_last_try in false false :; do
13355  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13356  if test -z "$ac_tt"; then
13357    break
13358  elif $ac_last_try; then
13359    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13360  else
13361    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13362  fi
13363done
13364
13365# For the awk script, D is an array of macro values keyed by name,
13366# likewise P contains macro parameters if any.  Preserve backslash
13367# newline sequences.
13368
13369ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13370sed -n '
13371s/.\{148\}/&'"$ac_delim"'/g
13372t rset
13373:rset
13374s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13375t def
13376d
13377:def
13378s/\\$//
13379t bsnl
13380s/["\\]/\\&/g
13381s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13382D["\1"]=" \3"/p
13383s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13384d
13385:bsnl
13386s/["\\]/\\&/g
13387s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13388D["\1"]=" \3\\\\\\n"\\/p
13389t cont
13390s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13391t cont
13392d
13393:cont
13394n
13395s/.\{148\}/&'"$ac_delim"'/g
13396t clear
13397:clear
13398s/\\$//
13399t bsnlc
13400s/["\\]/\\&/g; s/^/"/; s/$/"/p
13401d
13402:bsnlc
13403s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13404b cont
13405' <confdefs.h | sed '
13406s/'"$ac_delim"'/"\\\
13407"/g' >>$CONFIG_STATUS || ac_write_fail=1
13408
13409cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13410  for (key in D) D_is_set[key] = 1
13411  FS = ""
13412}
13413/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13414  line = \$ 0
13415  split(line, arg, " ")
13416  if (arg[1] == "#") {
13417    defundef = arg[2]
13418    mac1 = arg[3]
13419  } else {
13420    defundef = substr(arg[1], 2)
13421    mac1 = arg[2]
13422  }
13423  split(mac1, mac2, "(") #)
13424  macro = mac2[1]
13425  prefix = substr(line, 1, index(line, defundef) - 1)
13426  if (D_is_set[macro]) {
13427    # Preserve the white space surrounding the "#".
13428    print prefix "define", macro P[macro] D[macro]
13429    next
13430  } else {
13431    # Replace #undef with comments.  This is necessary, for example,
13432    # in the case of _POSIX_SOURCE, which is predefined and required
13433    # on some systems where configure will not decide to define it.
13434    if (defundef == "undef") {
13435      print "/*", prefix defundef, macro, "*/"
13436      next
13437    }
13438  }
13439}
13440{ print }
13441_ACAWK
13442_ACEOF
13443cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13444  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13445fi # test -n "$CONFIG_HEADERS"
13446
13447
13448eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13449shift
13450for ac_tag
13451do
13452  case $ac_tag in
13453  :[FHLC]) ac_mode=$ac_tag; continue;;
13454  esac
13455  case $ac_mode$ac_tag in
13456  :[FHL]*:*);;
13457  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13458  :[FH]-) ac_tag=-:-;;
13459  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13460  esac
13461  ac_save_IFS=$IFS
13462  IFS=:
13463  set x $ac_tag
13464  IFS=$ac_save_IFS
13465  shift
13466  ac_file=$1
13467  shift
13468
13469  case $ac_mode in
13470  :L) ac_source=$1;;
13471  :[FH])
13472    ac_file_inputs=
13473    for ac_f
13474    do
13475      case $ac_f in
13476      -) ac_f="$ac_tmp/stdin";;
13477      *) # Look for the file first in the build tree, then in the source tree
13478	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13479	 # because $ac_f cannot contain `:'.
13480	 test -f "$ac_f" ||
13481	   case $ac_f in
13482	   [\\/$]*) false;;
13483	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13484	   esac ||
13485	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13486      esac
13487      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13488      as_fn_append ac_file_inputs " '$ac_f'"
13489    done
13490
13491    # Let's still pretend it is `configure' which instantiates (i.e., don't
13492    # use $as_me), people would be surprised to read:
13493    #    /* config.h.  Generated by config.status.  */
13494    configure_input='Generated from '`
13495	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13496	`' by configure.'
13497    if test x"$ac_file" != x-; then
13498      configure_input="$ac_file.  $configure_input"
13499      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13500$as_echo "$as_me: creating $ac_file" >&6;}
13501    fi
13502    # Neutralize special characters interpreted by sed in replacement strings.
13503    case $configure_input in #(
13504    *\&* | *\|* | *\\* )
13505       ac_sed_conf_input=`$as_echo "$configure_input" |
13506       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13507    *) ac_sed_conf_input=$configure_input;;
13508    esac
13509
13510    case $ac_tag in
13511    *:-:* | *:-) cat >"$ac_tmp/stdin" \
13512      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13513    esac
13514    ;;
13515  esac
13516
13517  ac_dir=`$as_dirname -- "$ac_file" ||
13518$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13519	 X"$ac_file" : 'X\(//\)[^/]' \| \
13520	 X"$ac_file" : 'X\(//\)$' \| \
13521	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13522$as_echo X"$ac_file" |
13523    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13524	    s//\1/
13525	    q
13526	  }
13527	  /^X\(\/\/\)[^/].*/{
13528	    s//\1/
13529	    q
13530	  }
13531	  /^X\(\/\/\)$/{
13532	    s//\1/
13533	    q
13534	  }
13535	  /^X\(\/\).*/{
13536	    s//\1/
13537	    q
13538	  }
13539	  s/.*/./; q'`
13540  as_dir="$ac_dir"; as_fn_mkdir_p
13541  ac_builddir=.
13542
13543case "$ac_dir" in
13544.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13545*)
13546  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13547  # A ".." for each directory in $ac_dir_suffix.
13548  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13549  case $ac_top_builddir_sub in
13550  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13551  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13552  esac ;;
13553esac
13554ac_abs_top_builddir=$ac_pwd
13555ac_abs_builddir=$ac_pwd$ac_dir_suffix
13556# for backward compatibility:
13557ac_top_builddir=$ac_top_build_prefix
13558
13559case $srcdir in
13560  .)  # We are building in place.
13561    ac_srcdir=.
13562    ac_top_srcdir=$ac_top_builddir_sub
13563    ac_abs_top_srcdir=$ac_pwd ;;
13564  [\\/]* | ?:[\\/]* )  # Absolute name.
13565    ac_srcdir=$srcdir$ac_dir_suffix;
13566    ac_top_srcdir=$srcdir
13567    ac_abs_top_srcdir=$srcdir ;;
13568  *) # Relative name.
13569    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13570    ac_top_srcdir=$ac_top_build_prefix$srcdir
13571    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13572esac
13573ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13574
13575
13576  case $ac_mode in
13577  :F)
13578  #
13579  # CONFIG_FILE
13580  #
13581
13582  case $INSTALL in
13583  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13584  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13585  esac
13586  ac_MKDIR_P=$MKDIR_P
13587  case $MKDIR_P in
13588  [\\/$]* | ?:[\\/]* ) ;;
13589  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13590  esac
13591_ACEOF
13592
13593cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13594# If the template does not know about datarootdir, expand it.
13595# FIXME: This hack should be removed a few years after 2.60.
13596ac_datarootdir_hack=; ac_datarootdir_seen=
13597ac_sed_dataroot='
13598/datarootdir/ {
13599  p
13600  q
13601}
13602/@datadir@/p
13603/@docdir@/p
13604/@infodir@/p
13605/@localedir@/p
13606/@mandir@/p'
13607case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13608*datarootdir*) ac_datarootdir_seen=yes;;
13609*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13610  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13611$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13612_ACEOF
13613cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13614  ac_datarootdir_hack='
13615  s&@datadir@&$datadir&g
13616  s&@docdir@&$docdir&g
13617  s&@infodir@&$infodir&g
13618  s&@localedir@&$localedir&g
13619  s&@mandir@&$mandir&g
13620  s&\\\${datarootdir}&$datarootdir&g' ;;
13621esac
13622_ACEOF
13623
13624# Neutralize VPATH when `$srcdir' = `.'.
13625# Shell code in configure.ac might set extrasub.
13626# FIXME: do we really want to maintain this feature?
13627cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13628ac_sed_extra="$ac_vpsub
13629$extrasub
13630_ACEOF
13631cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13632:t
13633/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13634s|@configure_input@|$ac_sed_conf_input|;t t
13635s&@top_builddir@&$ac_top_builddir_sub&;t t
13636s&@top_build_prefix@&$ac_top_build_prefix&;t t
13637s&@srcdir@&$ac_srcdir&;t t
13638s&@abs_srcdir@&$ac_abs_srcdir&;t t
13639s&@top_srcdir@&$ac_top_srcdir&;t t
13640s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13641s&@builddir@&$ac_builddir&;t t
13642s&@abs_builddir@&$ac_abs_builddir&;t t
13643s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13644s&@INSTALL@&$ac_INSTALL&;t t
13645s&@MKDIR_P@&$ac_MKDIR_P&;t t
13646$ac_datarootdir_hack
13647"
13648eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13649  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13650
13651test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13652  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13653  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
13654      "$ac_tmp/out"`; test -z "$ac_out"; } &&
13655  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13656which seems to be undefined.  Please make sure it is defined" >&5
13657$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13658which seems to be undefined.  Please make sure it is defined" >&2;}
13659
13660  rm -f "$ac_tmp/stdin"
13661  case $ac_file in
13662  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13663  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13664  esac \
13665  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13666 ;;
13667  :H)
13668  #
13669  # CONFIG_HEADER
13670  #
13671  if test x"$ac_file" != x-; then
13672    {
13673      $as_echo "/* $configure_input  */" \
13674      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13675    } >"$ac_tmp/config.h" \
13676      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13677    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13678      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13679$as_echo "$as_me: $ac_file is unchanged" >&6;}
13680    else
13681      rm -f "$ac_file"
13682      mv "$ac_tmp/config.h" "$ac_file" \
13683	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13684    fi
13685  else
13686    $as_echo "/* $configure_input  */" \
13687      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13688      || as_fn_error $? "could not create -" "$LINENO" 5
13689  fi
13690# Compute "$ac_file"'s index in $config_headers.
13691_am_arg="$ac_file"
13692_am_stamp_count=1
13693for _am_header in $config_headers :; do
13694  case $_am_header in
13695    $_am_arg | $_am_arg:* )
13696      break ;;
13697    * )
13698      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13699  esac
13700done
13701echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13702$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13703	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13704	 X"$_am_arg" : 'X\(//\)$' \| \
13705	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13706$as_echo X"$_am_arg" |
13707    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13708	    s//\1/
13709	    q
13710	  }
13711	  /^X\(\/\/\)[^/].*/{
13712	    s//\1/
13713	    q
13714	  }
13715	  /^X\(\/\/\)$/{
13716	    s//\1/
13717	    q
13718	  }
13719	  /^X\(\/\).*/{
13720	    s//\1/
13721	    q
13722	  }
13723	  s/.*/./; q'`/stamp-h$_am_stamp_count
13724 ;;
13725
13726  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13727$as_echo "$as_me: executing $ac_file commands" >&6;}
13728 ;;
13729  esac
13730
13731
13732  case $ac_file$ac_mode in
13733    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13734  # Autoconf 2.62 quotes --file arguments for eval, but not when files
13735  # are listed without --file.  Let's play safe and only enable the eval
13736  # if we detect the quoting.
13737  case $CONFIG_FILES in
13738  *\'*) eval set x "$CONFIG_FILES" ;;
13739  *)   set x $CONFIG_FILES ;;
13740  esac
13741  shift
13742  for mf
13743  do
13744    # Strip MF so we end up with the name of the file.
13745    mf=`echo "$mf" | sed -e 's/:.*$//'`
13746    # Check whether this is an Automake generated Makefile or not.
13747    # We used to match only the files named `Makefile.in', but
13748    # some people rename them; so instead we look at the file content.
13749    # Grep'ing the first line is not enough: some people post-process
13750    # each Makefile.in and add a new line on top of each file to say so.
13751    # Grep'ing the whole file is not good either: AIX grep has a line
13752    # limit of 2048, but all sed's we know have understand at least 4000.
13753    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13754      dirpart=`$as_dirname -- "$mf" ||
13755$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13756	 X"$mf" : 'X\(//\)[^/]' \| \
13757	 X"$mf" : 'X\(//\)$' \| \
13758	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13759$as_echo X"$mf" |
13760    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13761	    s//\1/
13762	    q
13763	  }
13764	  /^X\(\/\/\)[^/].*/{
13765	    s//\1/
13766	    q
13767	  }
13768	  /^X\(\/\/\)$/{
13769	    s//\1/
13770	    q
13771	  }
13772	  /^X\(\/\).*/{
13773	    s//\1/
13774	    q
13775	  }
13776	  s/.*/./; q'`
13777    else
13778      continue
13779    fi
13780    # Extract the definition of DEPDIR, am__include, and am__quote
13781    # from the Makefile without running `make'.
13782    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13783    test -z "$DEPDIR" && continue
13784    am__include=`sed -n 's/^am__include = //p' < "$mf"`
13785    test -z "am__include" && continue
13786    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13787    # When using ansi2knr, U may be empty or an underscore; expand it
13788    U=`sed -n 's/^U = //p' < "$mf"`
13789    # Find all dependency output files, they are included files with
13790    # $(DEPDIR) in their names.  We invoke sed twice because it is the
13791    # simplest approach to changing $(DEPDIR) to its actual value in the
13792    # expansion.
13793    for file in `sed -n "
13794      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13795	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13796      # Make sure the directory exists.
13797      test -f "$dirpart/$file" && continue
13798      fdir=`$as_dirname -- "$file" ||
13799$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13800	 X"$file" : 'X\(//\)[^/]' \| \
13801	 X"$file" : 'X\(//\)$' \| \
13802	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13803$as_echo X"$file" |
13804    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13805	    s//\1/
13806	    q
13807	  }
13808	  /^X\(\/\/\)[^/].*/{
13809	    s//\1/
13810	    q
13811	  }
13812	  /^X\(\/\/\)$/{
13813	    s//\1/
13814	    q
13815	  }
13816	  /^X\(\/\).*/{
13817	    s//\1/
13818	    q
13819	  }
13820	  s/.*/./; q'`
13821      as_dir=$dirpart/$fdir; as_fn_mkdir_p
13822      # echo "creating $dirpart/$file"
13823      echo '# dummy' > "$dirpart/$file"
13824    done
13825  done
13826}
13827 ;;
13828    "libtool":C)
13829
13830    # See if we are running on zsh, and set the options which allow our
13831    # commands through without removal of \ escapes.
13832    if test -n "${ZSH_VERSION+set}" ; then
13833      setopt NO_GLOB_SUBST
13834    fi
13835
13836    cfgfile="${ofile}T"
13837    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13838    $RM "$cfgfile"
13839
13840    cat <<_LT_EOF >> "$cfgfile"
13841#! $SHELL
13842
13843# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13844# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13845# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13846# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13847#
13848#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13849#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
13850#                 Inc.
13851#   Written by Gordon Matzigkeit, 1996
13852#
13853#   This file is part of GNU Libtool.
13854#
13855# GNU Libtool is free software; you can redistribute it and/or
13856# modify it under the terms of the GNU General Public License as
13857# published by the Free Software Foundation; either version 2 of
13858# the License, or (at your option) any later version.
13859#
13860# As a special exception to the GNU General Public License,
13861# if you distribute this file as part of a program or library that
13862# is built using GNU Libtool, you may include this file under the
13863# same distribution terms that you use for the rest of that program.
13864#
13865# GNU Libtool is distributed in the hope that it will be useful,
13866# but WITHOUT ANY WARRANTY; without even the implied warranty of
13867# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13868# GNU General Public License for more details.
13869#
13870# You should have received a copy of the GNU General Public License
13871# along with GNU Libtool; see the file COPYING.  If not, a copy
13872# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13873# obtained by writing to the Free Software Foundation, Inc.,
13874# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13875
13876
13877# The names of the tagged configurations supported by this script.
13878available_tags=""
13879
13880# ### BEGIN LIBTOOL CONFIG
13881
13882# Whether or not to build static libraries.
13883build_old_libs=$enable_static
13884
13885# Which release of libtool.m4 was used?
13886macro_version=$macro_version
13887macro_revision=$macro_revision
13888
13889# Whether or not to build shared libraries.
13890build_libtool_libs=$enable_shared
13891
13892# What type of objects to build.
13893pic_mode=$pic_mode
13894
13895# Whether or not to optimize for fast installation.
13896fast_install=$enable_fast_install
13897
13898# Shell to use when invoking shell scripts.
13899SHELL=$lt_SHELL
13900
13901# An echo program that protects backslashes.
13902ECHO=$lt_ECHO
13903
13904# The host system.
13905host_alias=$host_alias
13906host=$host
13907host_os=$host_os
13908
13909# The build system.
13910build_alias=$build_alias
13911build=$build
13912build_os=$build_os
13913
13914# A sed program that does not truncate output.
13915SED=$lt_SED
13916
13917# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13918Xsed="\$SED -e 1s/^X//"
13919
13920# A grep program that handles long lines.
13921GREP=$lt_GREP
13922
13923# An ERE matcher.
13924EGREP=$lt_EGREP
13925
13926# A literal string matcher.
13927FGREP=$lt_FGREP
13928
13929# A BSD- or MS-compatible name lister.
13930NM=$lt_NM
13931
13932# Whether we need soft or hard links.
13933LN_S=$lt_LN_S
13934
13935# What is the maximum length of a command?
13936max_cmd_len=$max_cmd_len
13937
13938# Object file suffix (normally "o").
13939objext=$ac_objext
13940
13941# Executable file suffix (normally "").
13942exeext=$exeext
13943
13944# whether the shell understands "unset".
13945lt_unset=$lt_unset
13946
13947# turn spaces into newlines.
13948SP2NL=$lt_lt_SP2NL
13949
13950# turn newlines into spaces.
13951NL2SP=$lt_lt_NL2SP
13952
13953# convert \$build file names to \$host format.
13954to_host_file_cmd=$lt_cv_to_host_file_cmd
13955
13956# convert \$build files to toolchain format.
13957to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13958
13959# An object symbol dumper.
13960OBJDUMP=$lt_OBJDUMP
13961
13962# Method to check whether dependent libraries are shared objects.
13963deplibs_check_method=$lt_deplibs_check_method
13964
13965# Command to use when deplibs_check_method = "file_magic".
13966file_magic_cmd=$lt_file_magic_cmd
13967
13968# How to find potential files when deplibs_check_method = "file_magic".
13969file_magic_glob=$lt_file_magic_glob
13970
13971# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13972want_nocaseglob=$lt_want_nocaseglob
13973
13974# DLL creation program.
13975DLLTOOL=$lt_DLLTOOL
13976
13977# Command to associate shared and link libraries.
13978sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
13979
13980# The archiver.
13981AR=$lt_AR
13982
13983# Flags to create an archive.
13984AR_FLAGS=$lt_AR_FLAGS
13985
13986# How to feed a file listing to the archiver.
13987archiver_list_spec=$lt_archiver_list_spec
13988
13989# A symbol stripping program.
13990STRIP=$lt_STRIP
13991
13992# Commands used to install an old-style archive.
13993RANLIB=$lt_RANLIB
13994old_postinstall_cmds=$lt_old_postinstall_cmds
13995old_postuninstall_cmds=$lt_old_postuninstall_cmds
13996
13997# Whether to use a lock for old archive extraction.
13998lock_old_archive_extraction=$lock_old_archive_extraction
13999
14000# A C compiler.
14001LTCC=$lt_CC
14002
14003# LTCC compiler flags.
14004LTCFLAGS=$lt_CFLAGS
14005
14006# Take the output of nm and produce a listing of raw symbols and C names.
14007global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14008
14009# Transform the output of nm in a proper C declaration.
14010global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14011
14012# Transform the output of nm in a C name address pair.
14013global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14014
14015# Transform the output of nm in a C name address pair when lib prefix is needed.
14016global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14017
14018# Specify filename containing input files for \$NM.
14019nm_file_list_spec=$lt_nm_file_list_spec
14020
14021# The root where to search for dependent libraries,and in which our libraries should be installed.
14022lt_sysroot=$lt_sysroot
14023
14024# The name of the directory that contains temporary libtool files.
14025objdir=$objdir
14026
14027# Used to examine libraries when file_magic_cmd begins with "file".
14028MAGIC_CMD=$MAGIC_CMD
14029
14030# Must we lock files when doing compilation?
14031need_locks=$lt_need_locks
14032
14033# Manifest tool.
14034MANIFEST_TOOL=$lt_MANIFEST_TOOL
14035
14036# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14037DSYMUTIL=$lt_DSYMUTIL
14038
14039# Tool to change global to local symbols on Mac OS X.
14040NMEDIT=$lt_NMEDIT
14041
14042# Tool to manipulate fat objects and archives on Mac OS X.
14043LIPO=$lt_LIPO
14044
14045# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14046OTOOL=$lt_OTOOL
14047
14048# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14049OTOOL64=$lt_OTOOL64
14050
14051# Old archive suffix (normally "a").
14052libext=$libext
14053
14054# Shared library suffix (normally ".so").
14055shrext_cmds=$lt_shrext_cmds
14056
14057# The commands to extract the exported symbol list from a shared archive.
14058extract_expsyms_cmds=$lt_extract_expsyms_cmds
14059
14060# Variables whose values should be saved in libtool wrapper scripts and
14061# restored at link time.
14062variables_saved_for_relink=$lt_variables_saved_for_relink
14063
14064# Do we need the "lib" prefix for modules?
14065need_lib_prefix=$need_lib_prefix
14066
14067# Do we need a version for libraries?
14068need_version=$need_version
14069
14070# Library versioning type.
14071version_type=$version_type
14072
14073# Shared library runtime path variable.
14074runpath_var=$runpath_var
14075
14076# Shared library path variable.
14077shlibpath_var=$shlibpath_var
14078
14079# Is shlibpath searched before the hard-coded library search path?
14080shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14081
14082# Format of library name prefix.
14083libname_spec=$lt_libname_spec
14084
14085# List of archive names.  First name is the real one, the rest are links.
14086# The last name is the one that the linker finds with -lNAME
14087library_names_spec=$lt_library_names_spec
14088
14089# The coded name of the library, if different from the real name.
14090soname_spec=$lt_soname_spec
14091
14092# Permission mode override for installation of shared libraries.
14093install_override_mode=$lt_install_override_mode
14094
14095# Command to use after installation of a shared archive.
14096postinstall_cmds=$lt_postinstall_cmds
14097
14098# Command to use after uninstallation of a shared archive.
14099postuninstall_cmds=$lt_postuninstall_cmds
14100
14101# Commands used to finish a libtool library installation in a directory.
14102finish_cmds=$lt_finish_cmds
14103
14104# As "finish_cmds", except a single script fragment to be evaled but
14105# not shown.
14106finish_eval=$lt_finish_eval
14107
14108# Whether we should hardcode library paths into libraries.
14109hardcode_into_libs=$hardcode_into_libs
14110
14111# Compile-time system search path for libraries.
14112sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14113
14114# Run-time system search path for libraries.
14115sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14116
14117# Whether dlopen is supported.
14118dlopen_support=$enable_dlopen
14119
14120# Whether dlopen of programs is supported.
14121dlopen_self=$enable_dlopen_self
14122
14123# Whether dlopen of statically linked programs is supported.
14124dlopen_self_static=$enable_dlopen_self_static
14125
14126# Commands to strip libraries.
14127old_striplib=$lt_old_striplib
14128striplib=$lt_striplib
14129
14130
14131# The linker used to build libraries.
14132LD=$lt_LD
14133
14134# How to create reloadable object files.
14135reload_flag=$lt_reload_flag
14136reload_cmds=$lt_reload_cmds
14137
14138# Commands used to build an old-style archive.
14139old_archive_cmds=$lt_old_archive_cmds
14140
14141# A language specific compiler.
14142CC=$lt_compiler
14143
14144# Is the compiler the GNU compiler?
14145with_gcc=$GCC
14146
14147# Compiler flag to turn off builtin functions.
14148no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14149
14150# Additional compiler flags for building library objects.
14151pic_flag=$lt_lt_prog_compiler_pic
14152
14153# How to pass a linker flag through the compiler.
14154wl=$lt_lt_prog_compiler_wl
14155
14156# Compiler flag to prevent dynamic linking.
14157link_static_flag=$lt_lt_prog_compiler_static
14158
14159# Does compiler simultaneously support -c and -o options?
14160compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14161
14162# Whether or not to add -lc for building shared libraries.
14163build_libtool_need_lc=$archive_cmds_need_lc
14164
14165# Whether or not to disallow shared libs when runtime libs are static.
14166allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14167
14168# Compiler flag to allow reflexive dlopens.
14169export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14170
14171# Compiler flag to generate shared objects directly from archives.
14172whole_archive_flag_spec=$lt_whole_archive_flag_spec
14173
14174# Whether the compiler copes with passing no objects directly.
14175compiler_needs_object=$lt_compiler_needs_object
14176
14177# Create an old-style archive from a shared archive.
14178old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14179
14180# Create a temporary old-style archive to link instead of a shared archive.
14181old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14182
14183# Commands used to build a shared archive.
14184archive_cmds=$lt_archive_cmds
14185archive_expsym_cmds=$lt_archive_expsym_cmds
14186
14187# Commands used to build a loadable module if different from building
14188# a shared archive.
14189module_cmds=$lt_module_cmds
14190module_expsym_cmds=$lt_module_expsym_cmds
14191
14192# Whether we are building with GNU ld or not.
14193with_gnu_ld=$lt_with_gnu_ld
14194
14195# Flag that allows shared libraries with undefined symbols to be built.
14196allow_undefined_flag=$lt_allow_undefined_flag
14197
14198# Flag that enforces no undefined symbols.
14199no_undefined_flag=$lt_no_undefined_flag
14200
14201# Flag to hardcode \$libdir into a binary during linking.
14202# This must work even if \$libdir does not exist
14203hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14204
14205# If ld is used when linking, flag to hardcode \$libdir into a binary
14206# during linking.  This must work even if \$libdir does not exist.
14207hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14208
14209# Whether we need a single "-rpath" flag with a separated argument.
14210hardcode_libdir_separator=$lt_hardcode_libdir_separator
14211
14212# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14213# DIR into the resulting binary.
14214hardcode_direct=$hardcode_direct
14215
14216# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14217# DIR into the resulting binary and the resulting library dependency is
14218# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14219# library is relocated.
14220hardcode_direct_absolute=$hardcode_direct_absolute
14221
14222# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14223# into the resulting binary.
14224hardcode_minus_L=$hardcode_minus_L
14225
14226# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14227# into the resulting binary.
14228hardcode_shlibpath_var=$hardcode_shlibpath_var
14229
14230# Set to "yes" if building a shared library automatically hardcodes DIR
14231# into the library and all subsequent libraries and executables linked
14232# against it.
14233hardcode_automatic=$hardcode_automatic
14234
14235# Set to yes if linker adds runtime paths of dependent libraries
14236# to runtime path list.
14237inherit_rpath=$inherit_rpath
14238
14239# Whether libtool must link a program against all its dependency libraries.
14240link_all_deplibs=$link_all_deplibs
14241
14242# Set to "yes" if exported symbols are required.
14243always_export_symbols=$always_export_symbols
14244
14245# The commands to list exported symbols.
14246export_symbols_cmds=$lt_export_symbols_cmds
14247
14248# Symbols that should not be listed in the preloaded symbols.
14249exclude_expsyms=$lt_exclude_expsyms
14250
14251# Symbols that must always be exported.
14252include_expsyms=$lt_include_expsyms
14253
14254# Commands necessary for linking programs (against libraries) with templates.
14255prelink_cmds=$lt_prelink_cmds
14256
14257# Commands necessary for finishing linking programs.
14258postlink_cmds=$lt_postlink_cmds
14259
14260# Specify filename containing input files.
14261file_list_spec=$lt_file_list_spec
14262
14263# How to hardcode a shared library path into an executable.
14264hardcode_action=$hardcode_action
14265
14266# ### END LIBTOOL CONFIG
14267
14268_LT_EOF
14269
14270  case $host_os in
14271  aix3*)
14272    cat <<\_LT_EOF >> "$cfgfile"
14273# AIX sometimes has problems with the GCC collect2 program.  For some
14274# reason, if we set the COLLECT_NAMES environment variable, the problems
14275# vanish in a puff of smoke.
14276if test "X${COLLECT_NAMES+set}" != Xset; then
14277  COLLECT_NAMES=
14278  export COLLECT_NAMES
14279fi
14280_LT_EOF
14281    ;;
14282  esac
14283
14284
14285ltmain="$ac_aux_dir/ltmain.sh"
14286
14287
14288  # We use sed instead of cat because bash on DJGPP gets confused if
14289  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14290  # text mode, it properly converts lines to CR/LF.  This bash problem
14291  # is reportedly fixed, but why not run on old versions too?
14292  sed '$q' "$ltmain" >> "$cfgfile" \
14293     || (rm -f "$cfgfile"; exit 1)
14294
14295  if test x"$xsi_shell" = xyes; then
14296  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14297func_dirname ()\
14298{\
14299\    case ${1} in\
14300\      */*) func_dirname_result="${1%/*}${2}" ;;\
14301\      *  ) func_dirname_result="${3}" ;;\
14302\    esac\
14303} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14304  && mv -f "$cfgfile.tmp" "$cfgfile" \
14305    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14306test 0 -eq $? || _lt_function_replace_fail=:
14307
14308
14309  sed -e '/^func_basename ()$/,/^} # func_basename /c\
14310func_basename ()\
14311{\
14312\    func_basename_result="${1##*/}"\
14313} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14314  && mv -f "$cfgfile.tmp" "$cfgfile" \
14315    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14316test 0 -eq $? || _lt_function_replace_fail=:
14317
14318
14319  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14320func_dirname_and_basename ()\
14321{\
14322\    case ${1} in\
14323\      */*) func_dirname_result="${1%/*}${2}" ;;\
14324\      *  ) func_dirname_result="${3}" ;;\
14325\    esac\
14326\    func_basename_result="${1##*/}"\
14327} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14328  && mv -f "$cfgfile.tmp" "$cfgfile" \
14329    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14330test 0 -eq $? || _lt_function_replace_fail=:
14331
14332
14333  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14334func_stripname ()\
14335{\
14336\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14337\    # positional parameters, so assign one to ordinary parameter first.\
14338\    func_stripname_result=${3}\
14339\    func_stripname_result=${func_stripname_result#"${1}"}\
14340\    func_stripname_result=${func_stripname_result%"${2}"}\
14341} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14342  && mv -f "$cfgfile.tmp" "$cfgfile" \
14343    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14344test 0 -eq $? || _lt_function_replace_fail=:
14345
14346
14347  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14348func_split_long_opt ()\
14349{\
14350\    func_split_long_opt_name=${1%%=*}\
14351\    func_split_long_opt_arg=${1#*=}\
14352} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14353  && mv -f "$cfgfile.tmp" "$cfgfile" \
14354    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14355test 0 -eq $? || _lt_function_replace_fail=:
14356
14357
14358  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14359func_split_short_opt ()\
14360{\
14361\    func_split_short_opt_arg=${1#??}\
14362\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14363} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14364  && mv -f "$cfgfile.tmp" "$cfgfile" \
14365    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14366test 0 -eq $? || _lt_function_replace_fail=:
14367
14368
14369  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14370func_lo2o ()\
14371{\
14372\    case ${1} in\
14373\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14374\      *)    func_lo2o_result=${1} ;;\
14375\    esac\
14376} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14377  && mv -f "$cfgfile.tmp" "$cfgfile" \
14378    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14379test 0 -eq $? || _lt_function_replace_fail=:
14380
14381
14382  sed -e '/^func_xform ()$/,/^} # func_xform /c\
14383func_xform ()\
14384{\
14385    func_xform_result=${1%.*}.lo\
14386} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14387  && mv -f "$cfgfile.tmp" "$cfgfile" \
14388    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14389test 0 -eq $? || _lt_function_replace_fail=:
14390
14391
14392  sed -e '/^func_arith ()$/,/^} # func_arith /c\
14393func_arith ()\
14394{\
14395    func_arith_result=$(( $* ))\
14396} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14397  && mv -f "$cfgfile.tmp" "$cfgfile" \
14398    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14399test 0 -eq $? || _lt_function_replace_fail=:
14400
14401
14402  sed -e '/^func_len ()$/,/^} # func_len /c\
14403func_len ()\
14404{\
14405    func_len_result=${#1}\
14406} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14407  && mv -f "$cfgfile.tmp" "$cfgfile" \
14408    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14409test 0 -eq $? || _lt_function_replace_fail=:
14410
14411fi
14412
14413if test x"$lt_shell_append" = xyes; then
14414  sed -e '/^func_append ()$/,/^} # func_append /c\
14415func_append ()\
14416{\
14417    eval "${1}+=\\${2}"\
14418} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14419  && mv -f "$cfgfile.tmp" "$cfgfile" \
14420    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14421test 0 -eq $? || _lt_function_replace_fail=:
14422
14423
14424  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14425func_append_quoted ()\
14426{\
14427\    func_quote_for_eval "${2}"\
14428\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14429} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14430  && mv -f "$cfgfile.tmp" "$cfgfile" \
14431    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14432test 0 -eq $? || _lt_function_replace_fail=:
14433
14434
14435  # Save a `func_append' function call where possible by direct use of '+='
14436  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14437    && mv -f "$cfgfile.tmp" "$cfgfile" \
14438      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14439  test 0 -eq $? || _lt_function_replace_fail=:
14440else
14441  # Save a `func_append' function call even when '+=' is not available
14442  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14443    && mv -f "$cfgfile.tmp" "$cfgfile" \
14444      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14445  test 0 -eq $? || _lt_function_replace_fail=:
14446fi
14447
14448if test x"$_lt_function_replace_fail" = x":"; then
14449  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14450$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14451fi
14452
14453
14454   mv -f "$cfgfile" "$ofile" ||
14455    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14456  chmod +x "$ofile"
14457
14458 ;;
14459
14460  esac
14461done # for ac_tag
14462
14463
14464as_fn_exit 0
14465_ACEOF
14466ac_clean_files=$ac_clean_files_save
14467
14468test $ac_write_fail = 0 ||
14469  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14470
14471
14472# configure is writing to config.log, and then calls config.status.
14473# config.status does its own redirection, appending to config.log.
14474# Unfortunately, on DOS this fails, as config.log is still kept open
14475# by configure, so config.status won't be able to write to it; its
14476# output is simply discarded.  So we exec the FD to /dev/null,
14477# effectively closing config.log, so it can be properly (re)opened and
14478# appended to by config.status.  When coming back to configure, we
14479# need to make the FD available again.
14480if test "$no_create" != yes; then
14481  ac_cs_success=:
14482  ac_config_status_args=
14483  test "$silent" = yes &&
14484    ac_config_status_args="$ac_config_status_args --quiet"
14485  exec 5>/dev/null
14486  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14487  exec 5>>config.log
14488  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14489  # would make configure fail if this is the last instruction.
14490  $ac_cs_success || as_fn_exit 1
14491fi
14492if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14493  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14494$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14495fi
14496
14497