configure revision 08c70cfb
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for libxcb 1.9.1.
4#
5# Report bugs to <xcb@lists.freedesktop.org>.
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: xcb@lists.freedesktop.org about your system, including
251$0: any error possibly output before this message. Then
252$0: install a modern shell, or manually run the script
253$0: under such a shell if you do have one."
254  fi
255  exit 1
256fi
257fi
258fi
259SHELL=${CONFIG_SHELL-/bin/sh}
260export SHELL
261# Unset more variables known to interfere with behavior of common tools.
262CLICOLOR_FORCE= GREP_OPTIONS=
263unset CLICOLOR_FORCE GREP_OPTIONS
264
265## --------------------- ##
266## M4sh Shell Functions. ##
267## --------------------- ##
268# as_fn_unset VAR
269# ---------------
270# Portably unset VAR.
271as_fn_unset ()
272{
273  { eval $1=; unset $1;}
274}
275as_unset=as_fn_unset
276
277# as_fn_set_status STATUS
278# -----------------------
279# Set $? to STATUS, without forking.
280as_fn_set_status ()
281{
282  return $1
283} # as_fn_set_status
284
285# as_fn_exit STATUS
286# -----------------
287# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288as_fn_exit ()
289{
290  set +e
291  as_fn_set_status $1
292  exit $1
293} # as_fn_exit
294
295# as_fn_mkdir_p
296# -------------
297# Create "$as_dir" as a directory, including parents if necessary.
298as_fn_mkdir_p ()
299{
300
301  case $as_dir in #(
302  -*) as_dir=./$as_dir;;
303  esac
304  test -d "$as_dir" || eval $as_mkdir_p || {
305    as_dirs=
306    while :; do
307      case $as_dir in #(
308      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309      *) as_qdir=$as_dir;;
310      esac
311      as_dirs="'$as_qdir' $as_dirs"
312      as_dir=`$as_dirname -- "$as_dir" ||
313$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314	 X"$as_dir" : 'X\(//\)[^/]' \| \
315	 X"$as_dir" : 'X\(//\)$' \| \
316	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317$as_echo X"$as_dir" |
318    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319	    s//\1/
320	    q
321	  }
322	  /^X\(\/\/\)[^/].*/{
323	    s//\1/
324	    q
325	  }
326	  /^X\(\/\/\)$/{
327	    s//\1/
328	    q
329	  }
330	  /^X\(\/\).*/{
331	    s//\1/
332	    q
333	  }
334	  s/.*/./; q'`
335      test -d "$as_dir" && break
336    done
337    test -z "$as_dirs" || eval "mkdir $as_dirs"
338  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341} # as_fn_mkdir_p
342# as_fn_append VAR VALUE
343# ----------------------
344# Append the text in VALUE to the end of the definition contained in VAR. Take
345# advantage of any shell optimizations that allow amortized linear growth over
346# repeated appends, instead of the typical quadratic growth present in naive
347# implementations.
348if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349  eval 'as_fn_append ()
350  {
351    eval $1+=\$2
352  }'
353else
354  as_fn_append ()
355  {
356    eval $1=\$$1\$2
357  }
358fi # as_fn_append
359
360# as_fn_arith ARG...
361# ------------------
362# Perform arithmetic evaluation on the ARGs, and store the result in the
363# global $as_val. Take advantage of shells that can avoid forks. The arguments
364# must be portable across $(()) and expr.
365if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366  eval 'as_fn_arith ()
367  {
368    as_val=$(( $* ))
369  }'
370else
371  as_fn_arith ()
372  {
373    as_val=`expr "$@" || test $? -eq 1`
374  }
375fi # as_fn_arith
376
377
378# as_fn_error STATUS ERROR [LINENO LOG_FD]
379# ----------------------------------------
380# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382# script with STATUS, using 1 if that was 0.
383as_fn_error ()
384{
385  as_status=$1; test $as_status -eq 0 && as_status=1
386  if test "$4"; then
387    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389  fi
390  $as_echo "$as_me: error: $2" >&2
391  as_fn_exit $as_status
392} # as_fn_error
393
394if expr a : '\(a\)' >/dev/null 2>&1 &&
395   test "X`expr 00001 : '.*\(...\)'`" = X001; then
396  as_expr=expr
397else
398  as_expr=false
399fi
400
401if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402  as_basename=basename
403else
404  as_basename=false
405fi
406
407if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408  as_dirname=dirname
409else
410  as_dirname=false
411fi
412
413as_me=`$as_basename -- "$0" ||
414$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415	 X"$0" : 'X\(//\)$' \| \
416	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417$as_echo X/"$0" |
418    sed '/^.*\/\([^/][^/]*\)\/*$/{
419	    s//\1/
420	    q
421	  }
422	  /^X\/\(\/\/\)$/{
423	    s//\1/
424	    q
425	  }
426	  /^X\/\(\/\).*/{
427	    s//\1/
428	    q
429	  }
430	  s/.*/./; q'`
431
432# Avoid depending upon Character Ranges.
433as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436as_cr_digits='0123456789'
437as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440  as_lineno_1=$LINENO as_lineno_1a=$LINENO
441  as_lineno_2=$LINENO as_lineno_2a=$LINENO
442  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
445  sed -n '
446    p
447    /[$]LINENO/=
448  ' <$as_myself |
449    sed '
450      s/[$]LINENO.*/&-/
451      t lineno
452      b
453      :lineno
454      N
455      :loop
456      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457      t loop
458      s/-\n.*//
459    ' >$as_me.lineno &&
460  chmod +x "$as_me.lineno" ||
461    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463  # Don't try to exec as it changes $[0], causing all sort of problems
464  # (the dirname of $[0] is not the place where we might find the
465  # original and so on.  Autoconf is especially sensitive to this).
466  . "./$as_me.lineno"
467  # Exit status is that of the last command.
468  exit
469}
470
471ECHO_C= ECHO_N= ECHO_T=
472case `echo -n x` in #(((((
473-n*)
474  case `echo 'xy\c'` in
475  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
476  xy)  ECHO_C='\c';;
477  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
478       ECHO_T='	';;
479  esac;;
480*)
481  ECHO_N='-n';;
482esac
483
484rm -f conf$$ conf$$.exe conf$$.file
485if test -d conf$$.dir; then
486  rm -f conf$$.dir/conf$$.file
487else
488  rm -f conf$$.dir
489  mkdir conf$$.dir 2>/dev/null
490fi
491if (echo >conf$$.file) 2>/dev/null; then
492  if ln -s conf$$.file conf$$ 2>/dev/null; then
493    as_ln_s='ln -s'
494    # ... but there are two gotchas:
495    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497    # In both cases, we have to default to `cp -p'.
498    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499      as_ln_s='cp -p'
500  elif ln conf$$.file conf$$ 2>/dev/null; then
501    as_ln_s=ln
502  else
503    as_ln_s='cp -p'
504  fi
505else
506  as_ln_s='cp -p'
507fi
508rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509rmdir conf$$.dir 2>/dev/null
510
511if mkdir -p . 2>/dev/null; then
512  as_mkdir_p='mkdir -p "$as_dir"'
513else
514  test -d ./-p && rmdir ./-p
515  as_mkdir_p=false
516fi
517
518if test -x / >/dev/null 2>&1; then
519  as_test_x='test -x'
520else
521  if ls -dL / >/dev/null 2>&1; then
522    as_ls_L_option=L
523  else
524    as_ls_L_option=
525  fi
526  as_test_x='
527    eval sh -c '\''
528      if test -d "$1"; then
529	test -d "$1/.";
530      else
531	case $1 in #(
532	-*)set "./$1";;
533	esac;
534	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535	???[sx]*):;;*)false;;esac;fi
536    '\'' sh
537  '
538fi
539as_executable_p=$as_test_x
540
541# Sed expression to map a string onto a valid CPP name.
542as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544# Sed expression to map a string onto a valid variable name.
545as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550test -n "$DJDIR" || exec 7<&0 </dev/null
551exec 6>&1
552
553# Name of the host.
554# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555# so uname gets run too.
556ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558#
559# Initializations.
560#
561ac_default_prefix=/usr/local
562ac_clean_files=
563ac_config_libobj_dir=.
564LIBOBJS=
565cross_compiling=no
566subdirs=
567MFLAGS=
568MAKEFLAGS=
569
570# Identity of this package.
571PACKAGE_NAME='libxcb'
572PACKAGE_TARNAME='libxcb'
573PACKAGE_VERSION='1.9.1'
574PACKAGE_STRING='libxcb 1.9.1'
575PACKAGE_BUGREPORT='xcb@lists.freedesktop.org'
576PACKAGE_URL=''
577
578ac_unique_file="xcb.pc.in"
579# Factoring default headers for most tests.
580ac_includes_default="\
581#include <stdio.h>
582#ifdef HAVE_SYS_TYPES_H
583# include <sys/types.h>
584#endif
585#ifdef HAVE_SYS_STAT_H
586# include <sys/stat.h>
587#endif
588#ifdef STDC_HEADERS
589# include <stdlib.h>
590# include <stddef.h>
591#else
592# ifdef HAVE_STDLIB_H
593#  include <stdlib.h>
594# endif
595#endif
596#ifdef HAVE_STRING_H
597# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598#  include <memory.h>
599# endif
600# include <string.h>
601#endif
602#ifdef HAVE_STRINGS_H
603# include <strings.h>
604#endif
605#ifdef HAVE_INTTYPES_H
606# include <inttypes.h>
607#endif
608#ifdef HAVE_STDINT_H
609# include <stdint.h>
610#endif
611#ifdef HAVE_UNISTD_H
612# include <unistd.h>
613#endif"
614
615ac_subst_vars='am__EXEEXT_FALSE
616am__EXEEXT_TRUE
617LTLIBOBJS
618LIBOBJS
619LAUNCHD
620BUILD_XVMC_FALSE
621BUILD_XVMC_TRUE
622BUILD_XV_FALSE
623BUILD_XV_TRUE
624BUILD_XTEST_FALSE
625BUILD_XTEST_TRUE
626BUILD_SELINUX_FALSE
627BUILD_SELINUX_TRUE
628BUILD_XPRINT_FALSE
629BUILD_XPRINT_TRUE
630BUILD_XKB_FALSE
631BUILD_XKB_TRUE
632BUILD_XINPUT_FALSE
633BUILD_XINPUT_TRUE
634BUILD_XINERAMA_FALSE
635BUILD_XINERAMA_TRUE
636BUILD_XFREE86_DRI_FALSE
637BUILD_XFREE86_DRI_TRUE
638BUILD_XFIXES_FALSE
639BUILD_XFIXES_TRUE
640BUILD_XEVIE_FALSE
641BUILD_XEVIE_TRUE
642BUILD_SYNC_FALSE
643BUILD_SYNC_TRUE
644BUILD_SHM_FALSE
645BUILD_SHM_TRUE
646BUILD_SHAPE_FALSE
647BUILD_SHAPE_TRUE
648BUILD_SCREENSAVER_FALSE
649BUILD_SCREENSAVER_TRUE
650BUILD_RESOURCE_FALSE
651BUILD_RESOURCE_TRUE
652BUILD_RENDER_FALSE
653BUILD_RENDER_TRUE
654BUILD_RECORD_FALSE
655BUILD_RECORD_TRUE
656BUILD_RANDR_FALSE
657BUILD_RANDR_TRUE
658BUILD_GLX_FALSE
659BUILD_GLX_TRUE
660BUILD_DRI2_FALSE
661BUILD_DRI2_TRUE
662BUILD_DPMS_FALSE
663BUILD_DPMS_TRUE
664BUILD_DAMAGE_FALSE
665BUILD_DAMAGE_TRUE
666BUILD_COMPOSITE_FALSE
667BUILD_COMPOSITE_TRUE
668BUILD_DOCS_FALSE
669BUILD_DOCS_TRUE
670DOXYGEN
671DOT
672BUILD_DOCS
673CWARNFLAGS
674xcbincludedir
675XCB_HAVE_WIN32_FALSE
676XCB_HAVE_WIN32_TRUE
677lt_enable_auto_import
678XCBPROTO_XCBPYTHONDIR
679XCBPROTO_VERSION
680XCBPROTO_XCBINCLUDEDIR
681NEEDED
682XDMCP_LIBS
683XDMCP_CFLAGS
684NEEDED_LIBS
685NEEDED_CFLAGS
686XCBPROTO_LIBS
687XCBPROTO_CFLAGS
688HTML_CHECK_RESULT
689XSLTPROC
690OTOOL64
691OTOOL
692LIPO
693NMEDIT
694DSYMUTIL
695MANIFEST_TOOL
696RANLIB
697ac_ct_AR
698AR
699LN_S
700NM
701ac_ct_DUMPBIN
702DUMPBIN
703LD
704FGREP
705SED
706LIBTOOL
707OBJDUMP
708DLLTOOL
709AS
710host_os
711host_vendor
712host_cpu
713host
714build_os
715build_vendor
716build_cpu
717build
718HAVE_CHECK_FALSE
719HAVE_CHECK_TRUE
720CHECK_LIBS
721CHECK_CFLAGS
722PKG_CONFIG
723pkgpyexecdir
724pyexecdir
725pkgpythondir
726pythondir
727PYTHON_PLATFORM
728PYTHON_EXEC_PREFIX
729PYTHON_PREFIX
730PYTHON_VERSION
731PYTHON
732AM_BACKSLASH
733AM_DEFAULT_VERBOSITY
734AM_DEFAULT_V
735AM_V
736am__fastdepCC_FALSE
737am__fastdepCC_TRUE
738CCDEPMODE
739am__nodep
740AMDEPBACKSLASH
741AMDEP_FALSE
742AMDEP_TRUE
743am__quote
744am__include
745DEPDIR
746am__untar
747am__tar
748AMTAR
749am__leading_dot
750SET_MAKE
751AWK
752mkdir_p
753MKDIR_P
754INSTALL_STRIP_PROGRAM
755STRIP
756install_sh
757MAKEINFO
758AUTOHEADER
759AUTOMAKE
760AUTOCONF
761ACLOCAL
762VERSION
763PACKAGE
764CYGPATH_W
765am__isrc
766INSTALL_DATA
767INSTALL_SCRIPT
768INSTALL_PROGRAM
769EGREP
770GREP
771CPP
772OBJEXT
773EXEEXT
774ac_ct_CC
775CPPFLAGS
776LDFLAGS
777CFLAGS
778CC
779target_alias
780host_alias
781build_alias
782LIBS
783ECHO_T
784ECHO_N
785ECHO_C
786DEFS
787mandir
788localedir
789libdir
790psdir
791pdfdir
792dvidir
793htmldir
794infodir
795docdir
796oldincludedir
797includedir
798localstatedir
799sharedstatedir
800sysconfdir
801datadir
802datarootdir
803libexecdir
804sbindir
805bindir
806program_transform_name
807prefix
808exec_prefix
809PACKAGE_URL
810PACKAGE_BUGREPORT
811PACKAGE_STRING
812PACKAGE_VERSION
813PACKAGE_TARNAME
814PACKAGE_NAME
815PATH_SEPARATOR
816SHELL'
817ac_subst_files=''
818ac_user_opts='
819enable_option_checking
820enable_dependency_tracking
821enable_silent_rules
822enable_shared
823enable_static
824with_pic
825enable_fast_install
826with_gnu_ld
827with_sysroot
828enable_libtool_lock
829with_queue_size
830enable_build_docs
831with_doxygen
832enable_composite
833enable_damage
834enable_dpms
835enable_dri2
836enable_glx
837enable_randr
838enable_record
839enable_render
840enable_resource
841enable_screensaver
842enable_shape
843enable_shm
844enable_sync
845enable_xevie
846enable_xfixes
847enable_xfree86_dri
848enable_xinerama
849enable_xinput
850enable_xkb
851enable_xprint
852enable_selinux
853enable_xtest
854enable_xv
855enable_xvmc
856with_launchd
857'
858      ac_precious_vars='build_alias
859host_alias
860target_alias
861CC
862CFLAGS
863LDFLAGS
864LIBS
865CPPFLAGS
866CPP
867PYTHON
868PKG_CONFIG
869CHECK_CFLAGS
870CHECK_LIBS
871XCBPROTO_CFLAGS
872XCBPROTO_LIBS
873NEEDED_CFLAGS
874NEEDED_LIBS
875XDMCP_CFLAGS
876XDMCP_LIBS'
877
878
879# Initialize some variables set by options.
880ac_init_help=
881ac_init_version=false
882ac_unrecognized_opts=
883ac_unrecognized_sep=
884# The variables have the same names as the options, with
885# dashes changed to underlines.
886cache_file=/dev/null
887exec_prefix=NONE
888no_create=
889no_recursion=
890prefix=NONE
891program_prefix=NONE
892program_suffix=NONE
893program_transform_name=s,x,x,
894silent=
895site=
896srcdir=
897verbose=
898x_includes=NONE
899x_libraries=NONE
900
901# Installation directory options.
902# These are left unexpanded so users can "make install exec_prefix=/foo"
903# and all the variables that are supposed to be based on exec_prefix
904# by default will actually change.
905# Use braces instead of parens because sh, perl, etc. also accept them.
906# (The list follows the same order as the GNU Coding Standards.)
907bindir='${exec_prefix}/bin'
908sbindir='${exec_prefix}/sbin'
909libexecdir='${exec_prefix}/libexec'
910datarootdir='${prefix}/share'
911datadir='${datarootdir}'
912sysconfdir='${prefix}/etc'
913sharedstatedir='${prefix}/com'
914localstatedir='${prefix}/var'
915includedir='${prefix}/include'
916oldincludedir='/usr/include'
917docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
918infodir='${datarootdir}/info'
919htmldir='${docdir}'
920dvidir='${docdir}'
921pdfdir='${docdir}'
922psdir='${docdir}'
923libdir='${exec_prefix}/lib'
924localedir='${datarootdir}/locale'
925mandir='${datarootdir}/man'
926
927ac_prev=
928ac_dashdash=
929for ac_option
930do
931  # If the previous option needs an argument, assign it.
932  if test -n "$ac_prev"; then
933    eval $ac_prev=\$ac_option
934    ac_prev=
935    continue
936  fi
937
938  case $ac_option in
939  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
940  *=)   ac_optarg= ;;
941  *)    ac_optarg=yes ;;
942  esac
943
944  # Accept the important Cygnus configure options, so we can diagnose typos.
945
946  case $ac_dashdash$ac_option in
947  --)
948    ac_dashdash=yes ;;
949
950  -bindir | --bindir | --bindi | --bind | --bin | --bi)
951    ac_prev=bindir ;;
952  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
953    bindir=$ac_optarg ;;
954
955  -build | --build | --buil | --bui | --bu)
956    ac_prev=build_alias ;;
957  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
958    build_alias=$ac_optarg ;;
959
960  -cache-file | --cache-file | --cache-fil | --cache-fi \
961  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
962    ac_prev=cache_file ;;
963  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
964  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
965    cache_file=$ac_optarg ;;
966
967  --config-cache | -C)
968    cache_file=config.cache ;;
969
970  -datadir | --datadir | --datadi | --datad)
971    ac_prev=datadir ;;
972  -datadir=* | --datadir=* | --datadi=* | --datad=*)
973    datadir=$ac_optarg ;;
974
975  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
976  | --dataroo | --dataro | --datar)
977    ac_prev=datarootdir ;;
978  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
979  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
980    datarootdir=$ac_optarg ;;
981
982  -disable-* | --disable-*)
983    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
984    # Reject names that are not valid shell variable names.
985    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
986      as_fn_error $? "invalid feature name: $ac_useropt"
987    ac_useropt_orig=$ac_useropt
988    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
989    case $ac_user_opts in
990      *"
991"enable_$ac_useropt"
992"*) ;;
993      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
994	 ac_unrecognized_sep=', ';;
995    esac
996    eval enable_$ac_useropt=no ;;
997
998  -docdir | --docdir | --docdi | --doc | --do)
999    ac_prev=docdir ;;
1000  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1001    docdir=$ac_optarg ;;
1002
1003  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1004    ac_prev=dvidir ;;
1005  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1006    dvidir=$ac_optarg ;;
1007
1008  -enable-* | --enable-*)
1009    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1010    # Reject names that are not valid shell variable names.
1011    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1012      as_fn_error $? "invalid feature name: $ac_useropt"
1013    ac_useropt_orig=$ac_useropt
1014    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1015    case $ac_user_opts in
1016      *"
1017"enable_$ac_useropt"
1018"*) ;;
1019      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1020	 ac_unrecognized_sep=', ';;
1021    esac
1022    eval enable_$ac_useropt=\$ac_optarg ;;
1023
1024  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1025  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1026  | --exec | --exe | --ex)
1027    ac_prev=exec_prefix ;;
1028  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1029  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1030  | --exec=* | --exe=* | --ex=*)
1031    exec_prefix=$ac_optarg ;;
1032
1033  -gas | --gas | --ga | --g)
1034    # Obsolete; use --with-gas.
1035    with_gas=yes ;;
1036
1037  -help | --help | --hel | --he | -h)
1038    ac_init_help=long ;;
1039  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1040    ac_init_help=recursive ;;
1041  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1042    ac_init_help=short ;;
1043
1044  -host | --host | --hos | --ho)
1045    ac_prev=host_alias ;;
1046  -host=* | --host=* | --hos=* | --ho=*)
1047    host_alias=$ac_optarg ;;
1048
1049  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1050    ac_prev=htmldir ;;
1051  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1052  | --ht=*)
1053    htmldir=$ac_optarg ;;
1054
1055  -includedir | --includedir | --includedi | --included | --include \
1056  | --includ | --inclu | --incl | --inc)
1057    ac_prev=includedir ;;
1058  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1059  | --includ=* | --inclu=* | --incl=* | --inc=*)
1060    includedir=$ac_optarg ;;
1061
1062  -infodir | --infodir | --infodi | --infod | --info | --inf)
1063    ac_prev=infodir ;;
1064  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1065    infodir=$ac_optarg ;;
1066
1067  -libdir | --libdir | --libdi | --libd)
1068    ac_prev=libdir ;;
1069  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1070    libdir=$ac_optarg ;;
1071
1072  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1073  | --libexe | --libex | --libe)
1074    ac_prev=libexecdir ;;
1075  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1076  | --libexe=* | --libex=* | --libe=*)
1077    libexecdir=$ac_optarg ;;
1078
1079  -localedir | --localedir | --localedi | --localed | --locale)
1080    ac_prev=localedir ;;
1081  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1082    localedir=$ac_optarg ;;
1083
1084  -localstatedir | --localstatedir | --localstatedi | --localstated \
1085  | --localstate | --localstat | --localsta | --localst | --locals)
1086    ac_prev=localstatedir ;;
1087  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1088  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1089    localstatedir=$ac_optarg ;;
1090
1091  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1092    ac_prev=mandir ;;
1093  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1094    mandir=$ac_optarg ;;
1095
1096  -nfp | --nfp | --nf)
1097    # Obsolete; use --without-fp.
1098    with_fp=no ;;
1099
1100  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1101  | --no-cr | --no-c | -n)
1102    no_create=yes ;;
1103
1104  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1105  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1106    no_recursion=yes ;;
1107
1108  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1109  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1110  | --oldin | --oldi | --old | --ol | --o)
1111    ac_prev=oldincludedir ;;
1112  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1113  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1114  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1115    oldincludedir=$ac_optarg ;;
1116
1117  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1118    ac_prev=prefix ;;
1119  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1120    prefix=$ac_optarg ;;
1121
1122  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1123  | --program-pre | --program-pr | --program-p)
1124    ac_prev=program_prefix ;;
1125  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1126  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1127    program_prefix=$ac_optarg ;;
1128
1129  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1130  | --program-suf | --program-su | --program-s)
1131    ac_prev=program_suffix ;;
1132  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1133  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1134    program_suffix=$ac_optarg ;;
1135
1136  -program-transform-name | --program-transform-name \
1137  | --program-transform-nam | --program-transform-na \
1138  | --program-transform-n | --program-transform- \
1139  | --program-transform | --program-transfor \
1140  | --program-transfo | --program-transf \
1141  | --program-trans | --program-tran \
1142  | --progr-tra | --program-tr | --program-t)
1143    ac_prev=program_transform_name ;;
1144  -program-transform-name=* | --program-transform-name=* \
1145  | --program-transform-nam=* | --program-transform-na=* \
1146  | --program-transform-n=* | --program-transform-=* \
1147  | --program-transform=* | --program-transfor=* \
1148  | --program-transfo=* | --program-transf=* \
1149  | --program-trans=* | --program-tran=* \
1150  | --progr-tra=* | --program-tr=* | --program-t=*)
1151    program_transform_name=$ac_optarg ;;
1152
1153  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1154    ac_prev=pdfdir ;;
1155  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1156    pdfdir=$ac_optarg ;;
1157
1158  -psdir | --psdir | --psdi | --psd | --ps)
1159    ac_prev=psdir ;;
1160  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1161    psdir=$ac_optarg ;;
1162
1163  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1164  | -silent | --silent | --silen | --sile | --sil)
1165    silent=yes ;;
1166
1167  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1168    ac_prev=sbindir ;;
1169  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1170  | --sbi=* | --sb=*)
1171    sbindir=$ac_optarg ;;
1172
1173  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1174  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1175  | --sharedst | --shareds | --shared | --share | --shar \
1176  | --sha | --sh)
1177    ac_prev=sharedstatedir ;;
1178  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1179  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1180  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1181  | --sha=* | --sh=*)
1182    sharedstatedir=$ac_optarg ;;
1183
1184  -site | --site | --sit)
1185    ac_prev=site ;;
1186  -site=* | --site=* | --sit=*)
1187    site=$ac_optarg ;;
1188
1189  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1190    ac_prev=srcdir ;;
1191  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1192    srcdir=$ac_optarg ;;
1193
1194  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1195  | --syscon | --sysco | --sysc | --sys | --sy)
1196    ac_prev=sysconfdir ;;
1197  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1198  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1199    sysconfdir=$ac_optarg ;;
1200
1201  -target | --target | --targe | --targ | --tar | --ta | --t)
1202    ac_prev=target_alias ;;
1203  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1204    target_alias=$ac_optarg ;;
1205
1206  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1207    verbose=yes ;;
1208
1209  -version | --version | --versio | --versi | --vers | -V)
1210    ac_init_version=: ;;
1211
1212  -with-* | --with-*)
1213    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1214    # Reject names that are not valid shell variable names.
1215    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1216      as_fn_error $? "invalid package name: $ac_useropt"
1217    ac_useropt_orig=$ac_useropt
1218    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1219    case $ac_user_opts in
1220      *"
1221"with_$ac_useropt"
1222"*) ;;
1223      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1224	 ac_unrecognized_sep=', ';;
1225    esac
1226    eval with_$ac_useropt=\$ac_optarg ;;
1227
1228  -without-* | --without-*)
1229    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1230    # Reject names that are not valid shell variable names.
1231    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1232      as_fn_error $? "invalid package name: $ac_useropt"
1233    ac_useropt_orig=$ac_useropt
1234    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1235    case $ac_user_opts in
1236      *"
1237"with_$ac_useropt"
1238"*) ;;
1239      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1240	 ac_unrecognized_sep=', ';;
1241    esac
1242    eval with_$ac_useropt=no ;;
1243
1244  --x)
1245    # Obsolete; use --with-x.
1246    with_x=yes ;;
1247
1248  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1249  | --x-incl | --x-inc | --x-in | --x-i)
1250    ac_prev=x_includes ;;
1251  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1252  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1253    x_includes=$ac_optarg ;;
1254
1255  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1256  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1257    ac_prev=x_libraries ;;
1258  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1259  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1260    x_libraries=$ac_optarg ;;
1261
1262  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1263Try \`$0 --help' for more information"
1264    ;;
1265
1266  *=*)
1267    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1268    # Reject names that are not valid shell variable names.
1269    case $ac_envvar in #(
1270      '' | [0-9]* | *[!_$as_cr_alnum]* )
1271      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1272    esac
1273    eval $ac_envvar=\$ac_optarg
1274    export $ac_envvar ;;
1275
1276  *)
1277    # FIXME: should be removed in autoconf 3.0.
1278    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1279    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1280      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1281    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1282    ;;
1283
1284  esac
1285done
1286
1287if test -n "$ac_prev"; then
1288  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1289  as_fn_error $? "missing argument to $ac_option"
1290fi
1291
1292if test -n "$ac_unrecognized_opts"; then
1293  case $enable_option_checking in
1294    no) ;;
1295    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1296    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1297  esac
1298fi
1299
1300# Check all directory arguments for consistency.
1301for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1302		datadir sysconfdir sharedstatedir localstatedir includedir \
1303		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1304		libdir localedir mandir
1305do
1306  eval ac_val=\$$ac_var
1307  # Remove trailing slashes.
1308  case $ac_val in
1309    */ )
1310      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1311      eval $ac_var=\$ac_val;;
1312  esac
1313  # Be sure to have absolute directory names.
1314  case $ac_val in
1315    [\\/$]* | ?:[\\/]* )  continue;;
1316    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1317  esac
1318  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1319done
1320
1321# There might be people who depend on the old broken behavior: `$host'
1322# used to hold the argument of --host etc.
1323# FIXME: To remove some day.
1324build=$build_alias
1325host=$host_alias
1326target=$target_alias
1327
1328# FIXME: To remove some day.
1329if test "x$host_alias" != x; then
1330  if test "x$build_alias" = x; then
1331    cross_compiling=maybe
1332    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1333    If a cross compiler is detected then cross compile mode will be used" >&2
1334  elif test "x$build_alias" != "x$host_alias"; then
1335    cross_compiling=yes
1336  fi
1337fi
1338
1339ac_tool_prefix=
1340test -n "$host_alias" && ac_tool_prefix=$host_alias-
1341
1342test "$silent" = yes && exec 6>/dev/null
1343
1344
1345ac_pwd=`pwd` && test -n "$ac_pwd" &&
1346ac_ls_di=`ls -di .` &&
1347ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1348  as_fn_error $? "working directory cannot be determined"
1349test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1350  as_fn_error $? "pwd does not report name of working directory"
1351
1352
1353# Find the source files, if location was not specified.
1354if test -z "$srcdir"; then
1355  ac_srcdir_defaulted=yes
1356  # Try the directory containing this script, then the parent directory.
1357  ac_confdir=`$as_dirname -- "$as_myself" ||
1358$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1359	 X"$as_myself" : 'X\(//\)[^/]' \| \
1360	 X"$as_myself" : 'X\(//\)$' \| \
1361	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1362$as_echo X"$as_myself" |
1363    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1364	    s//\1/
1365	    q
1366	  }
1367	  /^X\(\/\/\)[^/].*/{
1368	    s//\1/
1369	    q
1370	  }
1371	  /^X\(\/\/\)$/{
1372	    s//\1/
1373	    q
1374	  }
1375	  /^X\(\/\).*/{
1376	    s//\1/
1377	    q
1378	  }
1379	  s/.*/./; q'`
1380  srcdir=$ac_confdir
1381  if test ! -r "$srcdir/$ac_unique_file"; then
1382    srcdir=..
1383  fi
1384else
1385  ac_srcdir_defaulted=no
1386fi
1387if test ! -r "$srcdir/$ac_unique_file"; then
1388  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1389  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1390fi
1391ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1392ac_abs_confdir=`(
1393	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1394	pwd)`
1395# When building in place, set srcdir=.
1396if test "$ac_abs_confdir" = "$ac_pwd"; then
1397  srcdir=.
1398fi
1399# Remove unnecessary trailing slashes from srcdir.
1400# Double slashes in file names in object file debugging info
1401# mess up M-x gdb in Emacs.
1402case $srcdir in
1403*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1404esac
1405for ac_var in $ac_precious_vars; do
1406  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1407  eval ac_env_${ac_var}_value=\$${ac_var}
1408  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1409  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1410done
1411
1412#
1413# Report the --help message.
1414#
1415if test "$ac_init_help" = "long"; then
1416  # Omit some internal or obsolete options to make the list less imposing.
1417  # This message is too long to be a string in the A/UX 3.1 sh.
1418  cat <<_ACEOF
1419\`configure' configures libxcb 1.9.1 to adapt to many kinds of systems.
1420
1421Usage: $0 [OPTION]... [VAR=VALUE]...
1422
1423To assign environment variables (e.g., CC, CFLAGS...), specify them as
1424VAR=VALUE.  See below for descriptions of some of the useful variables.
1425
1426Defaults for the options are specified in brackets.
1427
1428Configuration:
1429  -h, --help              display this help and exit
1430      --help=short        display options specific to this package
1431      --help=recursive    display the short help of all the included packages
1432  -V, --version           display version information and exit
1433  -q, --quiet, --silent   do not print \`checking ...' messages
1434      --cache-file=FILE   cache test results in FILE [disabled]
1435  -C, --config-cache      alias for \`--cache-file=config.cache'
1436  -n, --no-create         do not create output files
1437      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1438
1439Installation directories:
1440  --prefix=PREFIX         install architecture-independent files in PREFIX
1441                          [$ac_default_prefix]
1442  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1443                          [PREFIX]
1444
1445By default, \`make install' will install all the files in
1446\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1447an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1448for instance \`--prefix=\$HOME'.
1449
1450For better control, use the options below.
1451
1452Fine tuning of the installation directories:
1453  --bindir=DIR            user executables [EPREFIX/bin]
1454  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1455  --libexecdir=DIR        program executables [EPREFIX/libexec]
1456  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1457  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1458  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1459  --libdir=DIR            object code libraries [EPREFIX/lib]
1460  --includedir=DIR        C header files [PREFIX/include]
1461  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1462  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1463  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1464  --infodir=DIR           info documentation [DATAROOTDIR/info]
1465  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1466  --mandir=DIR            man documentation [DATAROOTDIR/man]
1467  --docdir=DIR            documentation root [DATAROOTDIR/doc/libxcb]
1468  --htmldir=DIR           html documentation [DOCDIR]
1469  --dvidir=DIR            dvi documentation [DOCDIR]
1470  --pdfdir=DIR            pdf documentation [DOCDIR]
1471  --psdir=DIR             ps documentation [DOCDIR]
1472_ACEOF
1473
1474  cat <<\_ACEOF
1475
1476Program names:
1477  --program-prefix=PREFIX            prepend PREFIX to installed program names
1478  --program-suffix=SUFFIX            append SUFFIX to installed program names
1479  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1480
1481System types:
1482  --build=BUILD     configure for building on BUILD [guessed]
1483  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1484_ACEOF
1485fi
1486
1487if test -n "$ac_init_help"; then
1488  case $ac_init_help in
1489     short | recursive ) echo "Configuration of libxcb 1.9.1:";;
1490   esac
1491  cat <<\_ACEOF
1492
1493Optional Features:
1494  --disable-option-checking  ignore unrecognized --enable/--with options
1495  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1496  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1497  --enable-dependency-tracking
1498                          do not reject slow dependency extractors
1499  --disable-dependency-tracking
1500                          speeds up one-time build
1501  --enable-silent-rules   less verbose build output (undo: "make V=1")
1502  --disable-silent-rules  verbose build output (undo: "make V=0")
1503  --enable-shared[=PKGS]  build shared libraries [default=yes]
1504  --enable-static[=PKGS]  build static libraries [default=yes]
1505  --enable-fast-install[=PKGS]
1506                          optimize for fast installation [default=yes]
1507  --disable-libtool-lock  avoid locking (might break parallel builds)
1508  --disable-build-docs    Disable the build of the documentation
1509  --enable-composite      Build XCB Composite Extension (default: "yes")
1510  --enable-damage         Build XCB Damage Extension (default: "yes")
1511  --enable-dpms           Build XCB DPMS Extension (default: "yes")
1512  --enable-dri2           Build XCB DRI2 Extension (default: "yes")
1513  --enable-glx            Build XCB GLX Extension (default: "yes")
1514  --enable-randr          Build XCB RandR Extension (default: "yes")
1515  --enable-record         Build XCB Record Extension (default: "yes")
1516  --enable-render         Build XCB Render Extension (default: "yes")
1517  --enable-resource       Build XCB Resource Extension (default: "yes")
1518  --enable-screensaver    Build XCB Screensaver Extension (default: "yes")
1519  --enable-shape          Build XCB Shape Extension (default: "yes")
1520  --enable-shm            Build XCB Shm Extension (default: "yes")
1521  --enable-sync           Build XCB Sync Extension (default: "yes")
1522  --enable-xevie          Build XCB Xevie Extension (default: "yes")
1523  --enable-xfixes         Build XCB XFixes Extension (default: "yes")
1524  --enable-xfree86-dri    Build XCB XFree86-DRI Extension (default: "yes")
1525  --enable-xinerama       Build XCB Xinerama Extension (default: "yes")
1526  --enable-xinput         Build XCB XInput Extension (default: "no")
1527  --enable-xkb            Build XCB XKB Extension (default: "no")
1528  --enable-xprint         Build XCB Xprint Extension (default: "yes")
1529  --enable-selinux        Build XCB SELinux Extension (default: "no")
1530  --enable-xtest          Build XCB XTest Extension (default: "yes")
1531  --enable-xv             Build XCB Xv Extension (default: "yes")
1532  --enable-xvmc           Build XCB XvMC Extension (default: "yes")
1533
1534Optional Packages:
1535  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1536  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1537  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1538                          both]
1539  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1540  --with-sysroot=DIR Search for dependent libraries within DIR
1541                        (or the compiler's sysroot if not specified).
1542  --with-queue-size=SIZE  Set the XCB buffer queue size (default is 16384)
1543  --with-doxygen=FILE     doxygen program to use (eg /usr/bin/doxygen)
1544  --with-launchd          Build with support for Apple's launchd (default:
1545                          auto)
1546
1547Some influential environment variables:
1548  CC          C compiler command
1549  CFLAGS      C compiler flags
1550  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1551              nonstandard directory <lib dir>
1552  LIBS        libraries to pass to the linker, e.g. -l<library>
1553  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1554              you have headers in a nonstandard directory <include dir>
1555  CPP         C preprocessor
1556  PYTHON      the Python interpreter
1557  PKG_CONFIG  path to pkg-config utility
1558  CHECK_CFLAGS
1559              C compiler flags for CHECK, overriding pkg-config
1560  CHECK_LIBS  linker flags for CHECK, overriding pkg-config
1561  XCBPROTO_CFLAGS
1562              C compiler flags for XCBPROTO, overriding pkg-config
1563  XCBPROTO_LIBS
1564              linker flags for XCBPROTO, overriding pkg-config
1565  NEEDED_CFLAGS
1566              C compiler flags for NEEDED, overriding pkg-config
1567  NEEDED_LIBS linker flags for NEEDED, overriding pkg-config
1568  XDMCP_CFLAGS
1569              C compiler flags for XDMCP, overriding pkg-config
1570  XDMCP_LIBS  linker flags for XDMCP, overriding pkg-config
1571
1572Use these variables to override the choices made by `configure' or to help
1573it to find libraries and programs with nonstandard names/locations.
1574
1575Report bugs to <xcb@lists.freedesktop.org>.
1576_ACEOF
1577ac_status=$?
1578fi
1579
1580if test "$ac_init_help" = "recursive"; then
1581  # If there are subdirs, report their specific --help.
1582  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1583    test -d "$ac_dir" ||
1584      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1585      continue
1586    ac_builddir=.
1587
1588case "$ac_dir" in
1589.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1590*)
1591  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1592  # A ".." for each directory in $ac_dir_suffix.
1593  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1594  case $ac_top_builddir_sub in
1595  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1596  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1597  esac ;;
1598esac
1599ac_abs_top_builddir=$ac_pwd
1600ac_abs_builddir=$ac_pwd$ac_dir_suffix
1601# for backward compatibility:
1602ac_top_builddir=$ac_top_build_prefix
1603
1604case $srcdir in
1605  .)  # We are building in place.
1606    ac_srcdir=.
1607    ac_top_srcdir=$ac_top_builddir_sub
1608    ac_abs_top_srcdir=$ac_pwd ;;
1609  [\\/]* | ?:[\\/]* )  # Absolute name.
1610    ac_srcdir=$srcdir$ac_dir_suffix;
1611    ac_top_srcdir=$srcdir
1612    ac_abs_top_srcdir=$srcdir ;;
1613  *) # Relative name.
1614    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1615    ac_top_srcdir=$ac_top_build_prefix$srcdir
1616    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1617esac
1618ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1619
1620    cd "$ac_dir" || { ac_status=$?; continue; }
1621    # Check for guested configure.
1622    if test -f "$ac_srcdir/configure.gnu"; then
1623      echo &&
1624      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1625    elif test -f "$ac_srcdir/configure"; then
1626      echo &&
1627      $SHELL "$ac_srcdir/configure" --help=recursive
1628    else
1629      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1630    fi || ac_status=$?
1631    cd "$ac_pwd" || { ac_status=$?; break; }
1632  done
1633fi
1634
1635test -n "$ac_init_help" && exit $ac_status
1636if $ac_init_version; then
1637  cat <<\_ACEOF
1638libxcb configure 1.9.1
1639generated by GNU Autoconf 2.68
1640
1641Copyright (C) 2010 Free Software Foundation, Inc.
1642This configure script is free software; the Free Software Foundation
1643gives unlimited permission to copy, distribute and modify it.
1644_ACEOF
1645  exit
1646fi
1647
1648## ------------------------ ##
1649## Autoconf initialization. ##
1650## ------------------------ ##
1651
1652# ac_fn_c_try_compile LINENO
1653# --------------------------
1654# Try to compile conftest.$ac_ext, and return whether this succeeded.
1655ac_fn_c_try_compile ()
1656{
1657  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658  rm -f conftest.$ac_objext
1659  if { { ac_try="$ac_compile"
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_compile") 2>conftest.err
1667  ac_status=$?
1668  if test -s conftest.err; then
1669    grep -v '^ *+' conftest.err >conftest.er1
1670    cat conftest.er1 >&5
1671    mv -f conftest.er1 conftest.err
1672  fi
1673  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674  test $ac_status = 0; } && {
1675	 test -z "$ac_c_werror_flag" ||
1676	 test ! -s conftest.err
1677       } && test -s conftest.$ac_objext; then :
1678  ac_retval=0
1679else
1680  $as_echo "$as_me: failed program was:" >&5
1681sed 's/^/| /' conftest.$ac_ext >&5
1682
1683	ac_retval=1
1684fi
1685  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686  as_fn_set_status $ac_retval
1687
1688} # ac_fn_c_try_compile
1689
1690# ac_fn_c_try_cpp LINENO
1691# ----------------------
1692# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1693ac_fn_c_try_cpp ()
1694{
1695  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696  if { { ac_try="$ac_cpp conftest.$ac_ext"
1697case "(($ac_try" in
1698  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699  *) ac_try_echo=$ac_try;;
1700esac
1701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702$as_echo "$ac_try_echo"; } >&5
1703  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1704  ac_status=$?
1705  if test -s conftest.err; then
1706    grep -v '^ *+' conftest.err >conftest.er1
1707    cat conftest.er1 >&5
1708    mv -f conftest.er1 conftest.err
1709  fi
1710  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711  test $ac_status = 0; } > conftest.i && {
1712	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1713	 test ! -s conftest.err
1714       }; then :
1715  ac_retval=0
1716else
1717  $as_echo "$as_me: failed program was:" >&5
1718sed 's/^/| /' conftest.$ac_ext >&5
1719
1720    ac_retval=1
1721fi
1722  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723  as_fn_set_status $ac_retval
1724
1725} # ac_fn_c_try_cpp
1726
1727# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1728# -------------------------------------------------------
1729# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1730# the include files in INCLUDES and setting the cache variable VAR
1731# accordingly.
1732ac_fn_c_check_header_mongrel ()
1733{
1734  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735  if eval \${$3+:} false; then :
1736  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1737$as_echo_n "checking for $2... " >&6; }
1738if eval \${$3+:} false; then :
1739  $as_echo_n "(cached) " >&6
1740fi
1741eval ac_res=\$$3
1742	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1743$as_echo "$ac_res" >&6; }
1744else
1745  # Is the header compilable?
1746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1747$as_echo_n "checking $2 usability... " >&6; }
1748cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749/* end confdefs.h.  */
1750$4
1751#include <$2>
1752_ACEOF
1753if ac_fn_c_try_compile "$LINENO"; then :
1754  ac_header_compiler=yes
1755else
1756  ac_header_compiler=no
1757fi
1758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1760$as_echo "$ac_header_compiler" >&6; }
1761
1762# Is the header present?
1763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1764$as_echo_n "checking $2 presence... " >&6; }
1765cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1766/* end confdefs.h.  */
1767#include <$2>
1768_ACEOF
1769if ac_fn_c_try_cpp "$LINENO"; then :
1770  ac_header_preproc=yes
1771else
1772  ac_header_preproc=no
1773fi
1774rm -f conftest.err conftest.i conftest.$ac_ext
1775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1776$as_echo "$ac_header_preproc" >&6; }
1777
1778# So?  What about this header?
1779case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1780  yes:no: )
1781    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1782$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1783    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1784$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1785    ;;
1786  no:yes:* )
1787    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1788$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1789    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1790$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1791    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1792$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1793    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1794$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1795    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1796$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1797( $as_echo "## ---------------------------------------- ##
1798## Report this to xcb@lists.freedesktop.org ##
1799## ---------------------------------------- ##"
1800     ) | sed "s/^/$as_me: WARNING:     /" >&2
1801    ;;
1802esac
1803  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804$as_echo_n "checking for $2... " >&6; }
1805if eval \${$3+:} false; then :
1806  $as_echo_n "(cached) " >&6
1807else
1808  eval "$3=\$ac_header_compiler"
1809fi
1810eval ac_res=\$$3
1811	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1812$as_echo "$ac_res" >&6; }
1813fi
1814  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1815
1816} # ac_fn_c_check_header_mongrel
1817
1818# ac_fn_c_try_run LINENO
1819# ----------------------
1820# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1821# that executables *can* be run.
1822ac_fn_c_try_run ()
1823{
1824  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825  if { { ac_try="$ac_link"
1826case "(($ac_try" in
1827  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1828  *) ac_try_echo=$ac_try;;
1829esac
1830eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1831$as_echo "$ac_try_echo"; } >&5
1832  (eval "$ac_link") 2>&5
1833  ac_status=$?
1834  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1835  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1836  { { case "(($ac_try" in
1837  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1838  *) ac_try_echo=$ac_try;;
1839esac
1840eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1841$as_echo "$ac_try_echo"; } >&5
1842  (eval "$ac_try") 2>&5
1843  ac_status=$?
1844  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1845  test $ac_status = 0; }; }; then :
1846  ac_retval=0
1847else
1848  $as_echo "$as_me: program exited with status $ac_status" >&5
1849       $as_echo "$as_me: failed program was:" >&5
1850sed 's/^/| /' conftest.$ac_ext >&5
1851
1852       ac_retval=$ac_status
1853fi
1854  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1855  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1856  as_fn_set_status $ac_retval
1857
1858} # ac_fn_c_try_run
1859
1860# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1861# -------------------------------------------------------
1862# Tests whether HEADER exists and can be compiled using the include files in
1863# INCLUDES, setting the cache variable VAR accordingly.
1864ac_fn_c_check_header_compile ()
1865{
1866  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1868$as_echo_n "checking for $2... " >&6; }
1869if eval \${$3+:} false; then :
1870  $as_echo_n "(cached) " >&6
1871else
1872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1873/* end confdefs.h.  */
1874$4
1875#include <$2>
1876_ACEOF
1877if ac_fn_c_try_compile "$LINENO"; then :
1878  eval "$3=yes"
1879else
1880  eval "$3=no"
1881fi
1882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1883fi
1884eval ac_res=\$$3
1885	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1886$as_echo "$ac_res" >&6; }
1887  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888
1889} # ac_fn_c_check_header_compile
1890
1891# ac_fn_c_try_link LINENO
1892# -----------------------
1893# Try to link conftest.$ac_ext, and return whether this succeeded.
1894ac_fn_c_try_link ()
1895{
1896  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897  rm -f conftest.$ac_objext conftest$ac_exeext
1898  if { { ac_try="$ac_link"
1899case "(($ac_try" in
1900  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1901  *) ac_try_echo=$ac_try;;
1902esac
1903eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1904$as_echo "$ac_try_echo"; } >&5
1905  (eval "$ac_link") 2>conftest.err
1906  ac_status=$?
1907  if test -s conftest.err; then
1908    grep -v '^ *+' conftest.err >conftest.er1
1909    cat conftest.er1 >&5
1910    mv -f conftest.er1 conftest.err
1911  fi
1912  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1913  test $ac_status = 0; } && {
1914	 test -z "$ac_c_werror_flag" ||
1915	 test ! -s conftest.err
1916       } && test -s conftest$ac_exeext && {
1917	 test "$cross_compiling" = yes ||
1918	 $as_test_x conftest$ac_exeext
1919       }; then :
1920  ac_retval=0
1921else
1922  $as_echo "$as_me: failed program was:" >&5
1923sed 's/^/| /' conftest.$ac_ext >&5
1924
1925	ac_retval=1
1926fi
1927  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1928  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1929  # interfere with the next link command; also delete a directory that is
1930  # left behind by Apple's compiler.  We do this before executing the actions.
1931  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1932  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1933  as_fn_set_status $ac_retval
1934
1935} # ac_fn_c_try_link
1936
1937# ac_fn_c_check_func LINENO FUNC VAR
1938# ----------------------------------
1939# Tests whether FUNC exists, setting the cache variable VAR accordingly
1940ac_fn_c_check_func ()
1941{
1942  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1944$as_echo_n "checking for $2... " >&6; }
1945if eval \${$3+:} false; then :
1946  $as_echo_n "(cached) " >&6
1947else
1948  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949/* end confdefs.h.  */
1950/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1951   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1952#define $2 innocuous_$2
1953
1954/* System header to define __stub macros and hopefully few prototypes,
1955    which can conflict with char $2 (); below.
1956    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1957    <limits.h> exists even on freestanding compilers.  */
1958
1959#ifdef __STDC__
1960# include <limits.h>
1961#else
1962# include <assert.h>
1963#endif
1964
1965#undef $2
1966
1967/* Override any GCC internal prototype to avoid an error.
1968   Use char because int might match the return type of a GCC
1969   builtin and then its argument prototype would still apply.  */
1970#ifdef __cplusplus
1971extern "C"
1972#endif
1973char $2 ();
1974/* The GNU C library defines this for functions which it implements
1975    to always fail with ENOSYS.  Some functions are actually named
1976    something starting with __ and the normal name is an alias.  */
1977#if defined __stub_$2 || defined __stub___$2
1978choke me
1979#endif
1980
1981int
1982main ()
1983{
1984return $2 ();
1985  ;
1986  return 0;
1987}
1988_ACEOF
1989if ac_fn_c_try_link "$LINENO"; then :
1990  eval "$3=yes"
1991else
1992  eval "$3=no"
1993fi
1994rm -f core conftest.err conftest.$ac_objext \
1995    conftest$ac_exeext conftest.$ac_ext
1996fi
1997eval ac_res=\$$3
1998	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1999$as_echo "$ac_res" >&6; }
2000  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2001
2002} # ac_fn_c_check_func
2003
2004# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2005# ----------------------------------------------------
2006# Tries to find if the field MEMBER exists in type AGGR, after including
2007# INCLUDES, setting cache variable VAR accordingly.
2008ac_fn_c_check_member ()
2009{
2010  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2012$as_echo_n "checking for $2.$3... " >&6; }
2013if eval \${$4+:} false; then :
2014  $as_echo_n "(cached) " >&6
2015else
2016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017/* end confdefs.h.  */
2018$5
2019int
2020main ()
2021{
2022static $2 ac_aggr;
2023if (ac_aggr.$3)
2024return 0;
2025  ;
2026  return 0;
2027}
2028_ACEOF
2029if ac_fn_c_try_compile "$LINENO"; then :
2030  eval "$4=yes"
2031else
2032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033/* end confdefs.h.  */
2034$5
2035int
2036main ()
2037{
2038static $2 ac_aggr;
2039if (sizeof ac_aggr.$3)
2040return 0;
2041  ;
2042  return 0;
2043}
2044_ACEOF
2045if ac_fn_c_try_compile "$LINENO"; then :
2046  eval "$4=yes"
2047else
2048  eval "$4=no"
2049fi
2050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2051fi
2052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2053fi
2054eval ac_res=\$$4
2055	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2056$as_echo "$ac_res" >&6; }
2057  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2058
2059} # ac_fn_c_check_member
2060
2061# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2062# ---------------------------------------------
2063# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2064# accordingly.
2065ac_fn_c_check_decl ()
2066{
2067  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2068  as_decl_name=`echo $2|sed 's/ *(.*//'`
2069  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2070  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2071$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2072if eval \${$3+:} false; then :
2073  $as_echo_n "(cached) " >&6
2074else
2075  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2076/* end confdefs.h.  */
2077$4
2078int
2079main ()
2080{
2081#ifndef $as_decl_name
2082#ifdef __cplusplus
2083  (void) $as_decl_use;
2084#else
2085  (void) $as_decl_name;
2086#endif
2087#endif
2088
2089  ;
2090  return 0;
2091}
2092_ACEOF
2093if ac_fn_c_try_compile "$LINENO"; then :
2094  eval "$3=yes"
2095else
2096  eval "$3=no"
2097fi
2098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099fi
2100eval ac_res=\$$3
2101	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2102$as_echo "$ac_res" >&6; }
2103  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2104
2105} # ac_fn_c_check_decl
2106cat >config.log <<_ACEOF
2107This file contains any messages produced by compilers while
2108running configure, to aid debugging if configure makes a mistake.
2109
2110It was created by libxcb $as_me 1.9.1, which was
2111generated by GNU Autoconf 2.68.  Invocation command line was
2112
2113  $ $0 $@
2114
2115_ACEOF
2116exec 5>>config.log
2117{
2118cat <<_ASUNAME
2119## --------- ##
2120## Platform. ##
2121## --------- ##
2122
2123hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2124uname -m = `(uname -m) 2>/dev/null || echo unknown`
2125uname -r = `(uname -r) 2>/dev/null || echo unknown`
2126uname -s = `(uname -s) 2>/dev/null || echo unknown`
2127uname -v = `(uname -v) 2>/dev/null || echo unknown`
2128
2129/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2130/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2131
2132/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2133/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2134/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2135/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2136/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2137/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2138/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2139
2140_ASUNAME
2141
2142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2143for as_dir in $PATH
2144do
2145  IFS=$as_save_IFS
2146  test -z "$as_dir" && as_dir=.
2147    $as_echo "PATH: $as_dir"
2148  done
2149IFS=$as_save_IFS
2150
2151} >&5
2152
2153cat >&5 <<_ACEOF
2154
2155
2156## ----------- ##
2157## Core tests. ##
2158## ----------- ##
2159
2160_ACEOF
2161
2162
2163# Keep a trace of the command line.
2164# Strip out --no-create and --no-recursion so they do not pile up.
2165# Strip out --silent because we don't want to record it for future runs.
2166# Also quote any args containing shell meta-characters.
2167# Make two passes to allow for proper duplicate-argument suppression.
2168ac_configure_args=
2169ac_configure_args0=
2170ac_configure_args1=
2171ac_must_keep_next=false
2172for ac_pass in 1 2
2173do
2174  for ac_arg
2175  do
2176    case $ac_arg in
2177    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2178    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2179    | -silent | --silent | --silen | --sile | --sil)
2180      continue ;;
2181    *\'*)
2182      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2183    esac
2184    case $ac_pass in
2185    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2186    2)
2187      as_fn_append ac_configure_args1 " '$ac_arg'"
2188      if test $ac_must_keep_next = true; then
2189	ac_must_keep_next=false # Got value, back to normal.
2190      else
2191	case $ac_arg in
2192	  *=* | --config-cache | -C | -disable-* | --disable-* \
2193	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2194	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2195	  | -with-* | --with-* | -without-* | --without-* | --x)
2196	    case "$ac_configure_args0 " in
2197	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2198	    esac
2199	    ;;
2200	  -* ) ac_must_keep_next=true ;;
2201	esac
2202      fi
2203      as_fn_append ac_configure_args " '$ac_arg'"
2204      ;;
2205    esac
2206  done
2207done
2208{ ac_configure_args0=; unset ac_configure_args0;}
2209{ ac_configure_args1=; unset ac_configure_args1;}
2210
2211# When interrupted or exit'd, cleanup temporary files, and complete
2212# config.log.  We remove comments because anyway the quotes in there
2213# would cause problems or look ugly.
2214# WARNING: Use '\'' to represent an apostrophe within the trap.
2215# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2216trap 'exit_status=$?
2217  # Save into config.log some information that might help in debugging.
2218  {
2219    echo
2220
2221    $as_echo "## ---------------- ##
2222## Cache variables. ##
2223## ---------------- ##"
2224    echo
2225    # The following way of writing the cache mishandles newlines in values,
2226(
2227  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2228    eval ac_val=\$$ac_var
2229    case $ac_val in #(
2230    *${as_nl}*)
2231      case $ac_var in #(
2232      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2233$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2234      esac
2235      case $ac_var in #(
2236      _ | IFS | as_nl) ;; #(
2237      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2238      *) { eval $ac_var=; unset $ac_var;} ;;
2239      esac ;;
2240    esac
2241  done
2242  (set) 2>&1 |
2243    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2244    *${as_nl}ac_space=\ *)
2245      sed -n \
2246	"s/'\''/'\''\\\\'\'''\''/g;
2247	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2248      ;; #(
2249    *)
2250      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2251      ;;
2252    esac |
2253    sort
2254)
2255    echo
2256
2257    $as_echo "## ----------------- ##
2258## Output variables. ##
2259## ----------------- ##"
2260    echo
2261    for ac_var in $ac_subst_vars
2262    do
2263      eval ac_val=\$$ac_var
2264      case $ac_val in
2265      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2266      esac
2267      $as_echo "$ac_var='\''$ac_val'\''"
2268    done | sort
2269    echo
2270
2271    if test -n "$ac_subst_files"; then
2272      $as_echo "## ------------------- ##
2273## File substitutions. ##
2274## ------------------- ##"
2275      echo
2276      for ac_var in $ac_subst_files
2277      do
2278	eval ac_val=\$$ac_var
2279	case $ac_val in
2280	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2281	esac
2282	$as_echo "$ac_var='\''$ac_val'\''"
2283      done | sort
2284      echo
2285    fi
2286
2287    if test -s confdefs.h; then
2288      $as_echo "## ----------- ##
2289## confdefs.h. ##
2290## ----------- ##"
2291      echo
2292      cat confdefs.h
2293      echo
2294    fi
2295    test "$ac_signal" != 0 &&
2296      $as_echo "$as_me: caught signal $ac_signal"
2297    $as_echo "$as_me: exit $exit_status"
2298  } >&5
2299  rm -f core *.core core.conftest.* &&
2300    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2301    exit $exit_status
2302' 0
2303for ac_signal in 1 2 13 15; do
2304  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2305done
2306ac_signal=0
2307
2308# confdefs.h avoids OS command line length limits that DEFS can exceed.
2309rm -f -r conftest* confdefs.h
2310
2311$as_echo "/* confdefs.h */" > confdefs.h
2312
2313# Predefined preprocessor variables.
2314
2315cat >>confdefs.h <<_ACEOF
2316#define PACKAGE_NAME "$PACKAGE_NAME"
2317_ACEOF
2318
2319cat >>confdefs.h <<_ACEOF
2320#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2321_ACEOF
2322
2323cat >>confdefs.h <<_ACEOF
2324#define PACKAGE_VERSION "$PACKAGE_VERSION"
2325_ACEOF
2326
2327cat >>confdefs.h <<_ACEOF
2328#define PACKAGE_STRING "$PACKAGE_STRING"
2329_ACEOF
2330
2331cat >>confdefs.h <<_ACEOF
2332#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2333_ACEOF
2334
2335cat >>confdefs.h <<_ACEOF
2336#define PACKAGE_URL "$PACKAGE_URL"
2337_ACEOF
2338
2339
2340# Let the site file select an alternate cache file if it wants to.
2341# Prefer an explicitly selected file to automatically selected ones.
2342ac_site_file1=NONE
2343ac_site_file2=NONE
2344if test -n "$CONFIG_SITE"; then
2345  # We do not want a PATH search for config.site.
2346  case $CONFIG_SITE in #((
2347    -*)  ac_site_file1=./$CONFIG_SITE;;
2348    */*) ac_site_file1=$CONFIG_SITE;;
2349    *)   ac_site_file1=./$CONFIG_SITE;;
2350  esac
2351elif test "x$prefix" != xNONE; then
2352  ac_site_file1=$prefix/share/config.site
2353  ac_site_file2=$prefix/etc/config.site
2354else
2355  ac_site_file1=$ac_default_prefix/share/config.site
2356  ac_site_file2=$ac_default_prefix/etc/config.site
2357fi
2358for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2359do
2360  test "x$ac_site_file" = xNONE && continue
2361  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2362    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2363$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2364    sed 's/^/| /' "$ac_site_file" >&5
2365    . "$ac_site_file" \
2366      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2367$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2368as_fn_error $? "failed to load site script $ac_site_file
2369See \`config.log' for more details" "$LINENO" 5; }
2370  fi
2371done
2372
2373if test -r "$cache_file"; then
2374  # Some versions of bash will fail to source /dev/null (special files
2375  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2376  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2377    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2378$as_echo "$as_me: loading cache $cache_file" >&6;}
2379    case $cache_file in
2380      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2381      *)                      . "./$cache_file";;
2382    esac
2383  fi
2384else
2385  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2386$as_echo "$as_me: creating cache $cache_file" >&6;}
2387  >$cache_file
2388fi
2389
2390# Check that the precious variables saved in the cache have kept the same
2391# value.
2392ac_cache_corrupted=false
2393for ac_var in $ac_precious_vars; do
2394  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2395  eval ac_new_set=\$ac_env_${ac_var}_set
2396  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2397  eval ac_new_val=\$ac_env_${ac_var}_value
2398  case $ac_old_set,$ac_new_set in
2399    set,)
2400      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2401$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2402      ac_cache_corrupted=: ;;
2403    ,set)
2404      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2405$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2406      ac_cache_corrupted=: ;;
2407    ,);;
2408    *)
2409      if test "x$ac_old_val" != "x$ac_new_val"; then
2410	# differences in whitespace do not lead to failure.
2411	ac_old_val_w=`echo x $ac_old_val`
2412	ac_new_val_w=`echo x $ac_new_val`
2413	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2414	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2415$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2416	  ac_cache_corrupted=:
2417	else
2418	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2419$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2420	  eval $ac_var=\$ac_old_val
2421	fi
2422	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2423$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2424	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2425$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2426      fi;;
2427  esac
2428  # Pass precious variables to config.status.
2429  if test "$ac_new_set" = set; then
2430    case $ac_new_val in
2431    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2432    *) ac_arg=$ac_var=$ac_new_val ;;
2433    esac
2434    case " $ac_configure_args " in
2435      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2436      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2437    esac
2438  fi
2439done
2440if $ac_cache_corrupted; then
2441  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2442$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2443  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2444$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2445  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2446fi
2447## -------------------- ##
2448## Main body of script. ##
2449## -------------------- ##
2450
2451ac_ext=c
2452ac_cpp='$CPP $CPPFLAGS'
2453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2455ac_compiler_gnu=$ac_cv_c_compiler_gnu
2456
2457
2458
2459# Set common system defines for POSIX extensions, such as _GNU_SOURCE
2460# Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL)
2461# to avoid autoconf errors.
2462ac_ext=c
2463ac_cpp='$CPP $CPPFLAGS'
2464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2466ac_compiler_gnu=$ac_cv_c_compiler_gnu
2467if test -n "$ac_tool_prefix"; then
2468  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2469set dummy ${ac_tool_prefix}gcc; ac_word=$2
2470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2471$as_echo_n "checking for $ac_word... " >&6; }
2472if ${ac_cv_prog_CC+:} false; then :
2473  $as_echo_n "(cached) " >&6
2474else
2475  if test -n "$CC"; then
2476  ac_cv_prog_CC="$CC" # Let the user override the test.
2477else
2478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479for as_dir in $PATH
2480do
2481  IFS=$as_save_IFS
2482  test -z "$as_dir" && as_dir=.
2483    for ac_exec_ext in '' $ac_executable_extensions; do
2484  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2485    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2486    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2487    break 2
2488  fi
2489done
2490  done
2491IFS=$as_save_IFS
2492
2493fi
2494fi
2495CC=$ac_cv_prog_CC
2496if test -n "$CC"; then
2497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2498$as_echo "$CC" >&6; }
2499else
2500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2501$as_echo "no" >&6; }
2502fi
2503
2504
2505fi
2506if test -z "$ac_cv_prog_CC"; then
2507  ac_ct_CC=$CC
2508  # Extract the first word of "gcc", so it can be a program name with args.
2509set dummy gcc; ac_word=$2
2510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2511$as_echo_n "checking for $ac_word... " >&6; }
2512if ${ac_cv_prog_ac_ct_CC+:} false; then :
2513  $as_echo_n "(cached) " >&6
2514else
2515  if test -n "$ac_ct_CC"; then
2516  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2517else
2518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2519for as_dir in $PATH
2520do
2521  IFS=$as_save_IFS
2522  test -z "$as_dir" && as_dir=.
2523    for ac_exec_ext in '' $ac_executable_extensions; do
2524  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2525    ac_cv_prog_ac_ct_CC="gcc"
2526    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2527    break 2
2528  fi
2529done
2530  done
2531IFS=$as_save_IFS
2532
2533fi
2534fi
2535ac_ct_CC=$ac_cv_prog_ac_ct_CC
2536if test -n "$ac_ct_CC"; then
2537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2538$as_echo "$ac_ct_CC" >&6; }
2539else
2540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2541$as_echo "no" >&6; }
2542fi
2543
2544  if test "x$ac_ct_CC" = x; then
2545    CC=""
2546  else
2547    case $cross_compiling:$ac_tool_warned in
2548yes:)
2549{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2550$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2551ac_tool_warned=yes ;;
2552esac
2553    CC=$ac_ct_CC
2554  fi
2555else
2556  CC="$ac_cv_prog_CC"
2557fi
2558
2559if test -z "$CC"; then
2560          if test -n "$ac_tool_prefix"; then
2561    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2562set dummy ${ac_tool_prefix}cc; ac_word=$2
2563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2564$as_echo_n "checking for $ac_word... " >&6; }
2565if ${ac_cv_prog_CC+:} false; then :
2566  $as_echo_n "(cached) " >&6
2567else
2568  if test -n "$CC"; then
2569  ac_cv_prog_CC="$CC" # Let the user override the test.
2570else
2571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572for as_dir in $PATH
2573do
2574  IFS=$as_save_IFS
2575  test -z "$as_dir" && as_dir=.
2576    for ac_exec_ext in '' $ac_executable_extensions; do
2577  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2578    ac_cv_prog_CC="${ac_tool_prefix}cc"
2579    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2580    break 2
2581  fi
2582done
2583  done
2584IFS=$as_save_IFS
2585
2586fi
2587fi
2588CC=$ac_cv_prog_CC
2589if test -n "$CC"; then
2590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2591$as_echo "$CC" >&6; }
2592else
2593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2594$as_echo "no" >&6; }
2595fi
2596
2597
2598  fi
2599fi
2600if test -z "$CC"; then
2601  # Extract the first word of "cc", so it can be a program name with args.
2602set dummy cc; ac_word=$2
2603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2604$as_echo_n "checking for $ac_word... " >&6; }
2605if ${ac_cv_prog_CC+:} false; then :
2606  $as_echo_n "(cached) " >&6
2607else
2608  if test -n "$CC"; then
2609  ac_cv_prog_CC="$CC" # Let the user override the test.
2610else
2611  ac_prog_rejected=no
2612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613for as_dir in $PATH
2614do
2615  IFS=$as_save_IFS
2616  test -z "$as_dir" && as_dir=.
2617    for ac_exec_ext in '' $ac_executable_extensions; do
2618  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2619    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2620       ac_prog_rejected=yes
2621       continue
2622     fi
2623    ac_cv_prog_CC="cc"
2624    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2625    break 2
2626  fi
2627done
2628  done
2629IFS=$as_save_IFS
2630
2631if test $ac_prog_rejected = yes; then
2632  # We found a bogon in the path, so make sure we never use it.
2633  set dummy $ac_cv_prog_CC
2634  shift
2635  if test $# != 0; then
2636    # We chose a different compiler from the bogus one.
2637    # However, it has the same basename, so the bogon will be chosen
2638    # first if we set CC to just the basename; use the full file name.
2639    shift
2640    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2641  fi
2642fi
2643fi
2644fi
2645CC=$ac_cv_prog_CC
2646if test -n "$CC"; then
2647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2648$as_echo "$CC" >&6; }
2649else
2650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2651$as_echo "no" >&6; }
2652fi
2653
2654
2655fi
2656if test -z "$CC"; then
2657  if test -n "$ac_tool_prefix"; then
2658  for ac_prog in cl.exe
2659  do
2660    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2661set dummy $ac_tool_prefix$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_CC+:} false; then :
2665  $as_echo_n "(cached) " >&6
2666else
2667  if test -n "$CC"; then
2668  ac_cv_prog_CC="$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_CC="$ac_tool_prefix$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
2687CC=$ac_cv_prog_CC
2688if test -n "$CC"; then
2689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2690$as_echo "$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 "$CC" && break
2698  done
2699fi
2700if test -z "$CC"; then
2701  ac_ct_CC=$CC
2702  for ac_prog in cl.exe
2703do
2704  # Extract the first word of "$ac_prog", so it can be a program name with args.
2705set dummy $ac_prog; ac_word=$2
2706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2707$as_echo_n "checking for $ac_word... " >&6; }
2708if ${ac_cv_prog_ac_ct_CC+:} false; then :
2709  $as_echo_n "(cached) " >&6
2710else
2711  if test -n "$ac_ct_CC"; then
2712  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2713else
2714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715for as_dir in $PATH
2716do
2717  IFS=$as_save_IFS
2718  test -z "$as_dir" && as_dir=.
2719    for ac_exec_ext in '' $ac_executable_extensions; do
2720  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2721    ac_cv_prog_ac_ct_CC="$ac_prog"
2722    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2723    break 2
2724  fi
2725done
2726  done
2727IFS=$as_save_IFS
2728
2729fi
2730fi
2731ac_ct_CC=$ac_cv_prog_ac_ct_CC
2732if test -n "$ac_ct_CC"; then
2733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2734$as_echo "$ac_ct_CC" >&6; }
2735else
2736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2737$as_echo "no" >&6; }
2738fi
2739
2740
2741  test -n "$ac_ct_CC" && break
2742done
2743
2744  if test "x$ac_ct_CC" = x; then
2745    CC=""
2746  else
2747    case $cross_compiling:$ac_tool_warned in
2748yes:)
2749{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2750$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2751ac_tool_warned=yes ;;
2752esac
2753    CC=$ac_ct_CC
2754  fi
2755fi
2756
2757fi
2758
2759
2760test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2761$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2762as_fn_error $? "no acceptable C compiler found in \$PATH
2763See \`config.log' for more details" "$LINENO" 5; }
2764
2765# Provide some information about the compiler.
2766$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2767set X $ac_compile
2768ac_compiler=$2
2769for ac_option in --version -v -V -qversion; do
2770  { { ac_try="$ac_compiler $ac_option >&5"
2771case "(($ac_try" in
2772  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2773  *) ac_try_echo=$ac_try;;
2774esac
2775eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2776$as_echo "$ac_try_echo"; } >&5
2777  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2778  ac_status=$?
2779  if test -s conftest.err; then
2780    sed '10a\
2781... rest of stderr output deleted ...
2782         10q' conftest.err >conftest.er1
2783    cat conftest.er1 >&5
2784  fi
2785  rm -f conftest.er1 conftest.err
2786  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2787  test $ac_status = 0; }
2788done
2789
2790cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2791/* end confdefs.h.  */
2792
2793int
2794main ()
2795{
2796
2797  ;
2798  return 0;
2799}
2800_ACEOF
2801ac_clean_files_save=$ac_clean_files
2802ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2803# Try to create an executable without -o first, disregard a.out.
2804# It will help us diagnose broken compilers, and finding out an intuition
2805# of exeext.
2806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2807$as_echo_n "checking whether the C compiler works... " >&6; }
2808ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2809
2810# The possible output files:
2811ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2812
2813ac_rmfiles=
2814for ac_file in $ac_files
2815do
2816  case $ac_file in
2817    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2818    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2819  esac
2820done
2821rm -f $ac_rmfiles
2822
2823if { { ac_try="$ac_link_default"
2824case "(($ac_try" in
2825  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2826  *) ac_try_echo=$ac_try;;
2827esac
2828eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2829$as_echo "$ac_try_echo"; } >&5
2830  (eval "$ac_link_default") 2>&5
2831  ac_status=$?
2832  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2833  test $ac_status = 0; }; then :
2834  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2835# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2836# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2837# so that the user can short-circuit this test for compilers unknown to
2838# Autoconf.
2839for ac_file in $ac_files ''
2840do
2841  test -f "$ac_file" || continue
2842  case $ac_file in
2843    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2844	;;
2845    [ab].out )
2846	# We found the default executable, but exeext='' is most
2847	# certainly right.
2848	break;;
2849    *.* )
2850	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2851	then :; else
2852	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2853	fi
2854	# We set ac_cv_exeext here because the later test for it is not
2855	# safe: cross compilers may not add the suffix if given an `-o'
2856	# argument, so we may need to know it at that point already.
2857	# Even if this section looks crufty: it has the advantage of
2858	# actually working.
2859	break;;
2860    * )
2861	break;;
2862  esac
2863done
2864test "$ac_cv_exeext" = no && ac_cv_exeext=
2865
2866else
2867  ac_file=''
2868fi
2869if test -z "$ac_file"; then :
2870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2871$as_echo "no" >&6; }
2872$as_echo "$as_me: failed program was:" >&5
2873sed 's/^/| /' conftest.$ac_ext >&5
2874
2875{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2876$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2877as_fn_error 77 "C compiler cannot create executables
2878See \`config.log' for more details" "$LINENO" 5; }
2879else
2880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2881$as_echo "yes" >&6; }
2882fi
2883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2884$as_echo_n "checking for C compiler default output file name... " >&6; }
2885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2886$as_echo "$ac_file" >&6; }
2887ac_exeext=$ac_cv_exeext
2888
2889rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2890ac_clean_files=$ac_clean_files_save
2891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2892$as_echo_n "checking for suffix of executables... " >&6; }
2893if { { ac_try="$ac_link"
2894case "(($ac_try" in
2895  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2896  *) ac_try_echo=$ac_try;;
2897esac
2898eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2899$as_echo "$ac_try_echo"; } >&5
2900  (eval "$ac_link") 2>&5
2901  ac_status=$?
2902  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2903  test $ac_status = 0; }; then :
2904  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2905# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2906# work properly (i.e., refer to `conftest.exe'), while it won't with
2907# `rm'.
2908for ac_file in conftest.exe conftest conftest.*; do
2909  test -f "$ac_file" || continue
2910  case $ac_file in
2911    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2912    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2913	  break;;
2914    * ) break;;
2915  esac
2916done
2917else
2918  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2919$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2920as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2921See \`config.log' for more details" "$LINENO" 5; }
2922fi
2923rm -f conftest conftest$ac_cv_exeext
2924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2925$as_echo "$ac_cv_exeext" >&6; }
2926
2927rm -f conftest.$ac_ext
2928EXEEXT=$ac_cv_exeext
2929ac_exeext=$EXEEXT
2930cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2931/* end confdefs.h.  */
2932#include <stdio.h>
2933int
2934main ()
2935{
2936FILE *f = fopen ("conftest.out", "w");
2937 return ferror (f) || fclose (f) != 0;
2938
2939  ;
2940  return 0;
2941}
2942_ACEOF
2943ac_clean_files="$ac_clean_files conftest.out"
2944# Check that the compiler produces executables we can run.  If not, either
2945# the compiler is broken, or we cross compile.
2946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2947$as_echo_n "checking whether we are cross compiling... " >&6; }
2948if test "$cross_compiling" != yes; then
2949  { { ac_try="$ac_link"
2950case "(($ac_try" in
2951  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2952  *) ac_try_echo=$ac_try;;
2953esac
2954eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2955$as_echo "$ac_try_echo"; } >&5
2956  (eval "$ac_link") 2>&5
2957  ac_status=$?
2958  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2959  test $ac_status = 0; }
2960  if { ac_try='./conftest$ac_cv_exeext'
2961  { { case "(($ac_try" in
2962  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963  *) ac_try_echo=$ac_try;;
2964esac
2965eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2966$as_echo "$ac_try_echo"; } >&5
2967  (eval "$ac_try") 2>&5
2968  ac_status=$?
2969  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2970  test $ac_status = 0; }; }; then
2971    cross_compiling=no
2972  else
2973    if test "$cross_compiling" = maybe; then
2974	cross_compiling=yes
2975    else
2976	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2977$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2978as_fn_error $? "cannot run C compiled programs.
2979If you meant to cross compile, use \`--host'.
2980See \`config.log' for more details" "$LINENO" 5; }
2981    fi
2982  fi
2983fi
2984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2985$as_echo "$cross_compiling" >&6; }
2986
2987rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2988ac_clean_files=$ac_clean_files_save
2989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2990$as_echo_n "checking for suffix of object files... " >&6; }
2991if ${ac_cv_objext+:} false; then :
2992  $as_echo_n "(cached) " >&6
2993else
2994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2995/* end confdefs.h.  */
2996
2997int
2998main ()
2999{
3000
3001  ;
3002  return 0;
3003}
3004_ACEOF
3005rm -f conftest.o conftest.obj
3006if { { ac_try="$ac_compile"
3007case "(($ac_try" in
3008  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009  *) ac_try_echo=$ac_try;;
3010esac
3011eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3012$as_echo "$ac_try_echo"; } >&5
3013  (eval "$ac_compile") 2>&5
3014  ac_status=$?
3015  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3016  test $ac_status = 0; }; then :
3017  for ac_file in conftest.o conftest.obj conftest.*; do
3018  test -f "$ac_file" || continue;
3019  case $ac_file in
3020    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3021    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3022       break;;
3023  esac
3024done
3025else
3026  $as_echo "$as_me: failed program was:" >&5
3027sed 's/^/| /' conftest.$ac_ext >&5
3028
3029{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3030$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3031as_fn_error $? "cannot compute suffix of object files: cannot compile
3032See \`config.log' for more details" "$LINENO" 5; }
3033fi
3034rm -f conftest.$ac_cv_objext conftest.$ac_ext
3035fi
3036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3037$as_echo "$ac_cv_objext" >&6; }
3038OBJEXT=$ac_cv_objext
3039ac_objext=$OBJEXT
3040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3041$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3042if ${ac_cv_c_compiler_gnu+:} false; then :
3043  $as_echo_n "(cached) " >&6
3044else
3045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3046/* end confdefs.h.  */
3047
3048int
3049main ()
3050{
3051#ifndef __GNUC__
3052       choke me
3053#endif
3054
3055  ;
3056  return 0;
3057}
3058_ACEOF
3059if ac_fn_c_try_compile "$LINENO"; then :
3060  ac_compiler_gnu=yes
3061else
3062  ac_compiler_gnu=no
3063fi
3064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3065ac_cv_c_compiler_gnu=$ac_compiler_gnu
3066
3067fi
3068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3069$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3070if test $ac_compiler_gnu = yes; then
3071  GCC=yes
3072else
3073  GCC=
3074fi
3075ac_test_CFLAGS=${CFLAGS+set}
3076ac_save_CFLAGS=$CFLAGS
3077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3078$as_echo_n "checking whether $CC accepts -g... " >&6; }
3079if ${ac_cv_prog_cc_g+:} false; then :
3080  $as_echo_n "(cached) " >&6
3081else
3082  ac_save_c_werror_flag=$ac_c_werror_flag
3083   ac_c_werror_flag=yes
3084   ac_cv_prog_cc_g=no
3085   CFLAGS="-g"
3086   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3087/* end confdefs.h.  */
3088
3089int
3090main ()
3091{
3092
3093  ;
3094  return 0;
3095}
3096_ACEOF
3097if ac_fn_c_try_compile "$LINENO"; then :
3098  ac_cv_prog_cc_g=yes
3099else
3100  CFLAGS=""
3101      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3102/* end confdefs.h.  */
3103
3104int
3105main ()
3106{
3107
3108  ;
3109  return 0;
3110}
3111_ACEOF
3112if ac_fn_c_try_compile "$LINENO"; then :
3113
3114else
3115  ac_c_werror_flag=$ac_save_c_werror_flag
3116	 CFLAGS="-g"
3117	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3118/* end confdefs.h.  */
3119
3120int
3121main ()
3122{
3123
3124  ;
3125  return 0;
3126}
3127_ACEOF
3128if ac_fn_c_try_compile "$LINENO"; then :
3129  ac_cv_prog_cc_g=yes
3130fi
3131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3132fi
3133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3134fi
3135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3136   ac_c_werror_flag=$ac_save_c_werror_flag
3137fi
3138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3139$as_echo "$ac_cv_prog_cc_g" >&6; }
3140if test "$ac_test_CFLAGS" = set; then
3141  CFLAGS=$ac_save_CFLAGS
3142elif test $ac_cv_prog_cc_g = yes; then
3143  if test "$GCC" = yes; then
3144    CFLAGS="-g -O2"
3145  else
3146    CFLAGS="-g"
3147  fi
3148else
3149  if test "$GCC" = yes; then
3150    CFLAGS="-O2"
3151  else
3152    CFLAGS=
3153  fi
3154fi
3155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3156$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3157if ${ac_cv_prog_cc_c89+:} false; then :
3158  $as_echo_n "(cached) " >&6
3159else
3160  ac_cv_prog_cc_c89=no
3161ac_save_CC=$CC
3162cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3163/* end confdefs.h.  */
3164#include <stdarg.h>
3165#include <stdio.h>
3166#include <sys/types.h>
3167#include <sys/stat.h>
3168/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3169struct buf { int x; };
3170FILE * (*rcsopen) (struct buf *, struct stat *, int);
3171static char *e (p, i)
3172     char **p;
3173     int i;
3174{
3175  return p[i];
3176}
3177static char *f (char * (*g) (char **, int), char **p, ...)
3178{
3179  char *s;
3180  va_list v;
3181  va_start (v,p);
3182  s = g (p, va_arg (v,int));
3183  va_end (v);
3184  return s;
3185}
3186
3187/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3188   function prototypes and stuff, but not '\xHH' hex character constants.
3189   These don't provoke an error unfortunately, instead are silently treated
3190   as 'x'.  The following induces an error, until -std is added to get
3191   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3192   array size at least.  It's necessary to write '\x00'==0 to get something
3193   that's true only with -std.  */
3194int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3195
3196/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3197   inside strings and character constants.  */
3198#define FOO(x) 'x'
3199int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3200
3201int test (int i, double x);
3202struct s1 {int (*f) (int a);};
3203struct s2 {int (*f) (double a);};
3204int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3205int argc;
3206char **argv;
3207int
3208main ()
3209{
3210return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3211  ;
3212  return 0;
3213}
3214_ACEOF
3215for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3216	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3217do
3218  CC="$ac_save_CC $ac_arg"
3219  if ac_fn_c_try_compile "$LINENO"; then :
3220  ac_cv_prog_cc_c89=$ac_arg
3221fi
3222rm -f core conftest.err conftest.$ac_objext
3223  test "x$ac_cv_prog_cc_c89" != "xno" && break
3224done
3225rm -f conftest.$ac_ext
3226CC=$ac_save_CC
3227
3228fi
3229# AC_CACHE_VAL
3230case "x$ac_cv_prog_cc_c89" in
3231  x)
3232    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3233$as_echo "none needed" >&6; } ;;
3234  xno)
3235    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3236$as_echo "unsupported" >&6; } ;;
3237  *)
3238    CC="$CC $ac_cv_prog_cc_c89"
3239    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3240$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3241esac
3242if test "x$ac_cv_prog_cc_c89" != xno; then :
3243
3244fi
3245
3246ac_ext=c
3247ac_cpp='$CPP $CPPFLAGS'
3248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3250ac_compiler_gnu=$ac_cv_c_compiler_gnu
3251
3252
3253ac_ext=c
3254ac_cpp='$CPP $CPPFLAGS'
3255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3257ac_compiler_gnu=$ac_cv_c_compiler_gnu
3258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3259$as_echo_n "checking how to run the C preprocessor... " >&6; }
3260# On Suns, sometimes $CPP names a directory.
3261if test -n "$CPP" && test -d "$CPP"; then
3262  CPP=
3263fi
3264if test -z "$CPP"; then
3265  if ${ac_cv_prog_CPP+:} false; then :
3266  $as_echo_n "(cached) " >&6
3267else
3268      # Double quotes because CPP needs to be expanded
3269    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3270    do
3271      ac_preproc_ok=false
3272for ac_c_preproc_warn_flag in '' yes
3273do
3274  # Use a header file that comes with gcc, so configuring glibc
3275  # with a fresh cross-compiler works.
3276  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3277  # <limits.h> exists even on freestanding compilers.
3278  # On the NeXT, cc -E runs the code through the compiler's parser,
3279  # not just through cpp. "Syntax error" is here to catch this case.
3280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3281/* end confdefs.h.  */
3282#ifdef __STDC__
3283# include <limits.h>
3284#else
3285# include <assert.h>
3286#endif
3287		     Syntax error
3288_ACEOF
3289if ac_fn_c_try_cpp "$LINENO"; then :
3290
3291else
3292  # Broken: fails on valid input.
3293continue
3294fi
3295rm -f conftest.err conftest.i conftest.$ac_ext
3296
3297  # OK, works on sane cases.  Now check whether nonexistent headers
3298  # can be detected and how.
3299  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3300/* end confdefs.h.  */
3301#include <ac_nonexistent.h>
3302_ACEOF
3303if ac_fn_c_try_cpp "$LINENO"; then :
3304  # Broken: success on invalid input.
3305continue
3306else
3307  # Passes both tests.
3308ac_preproc_ok=:
3309break
3310fi
3311rm -f conftest.err conftest.i conftest.$ac_ext
3312
3313done
3314# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3315rm -f conftest.i conftest.err conftest.$ac_ext
3316if $ac_preproc_ok; then :
3317  break
3318fi
3319
3320    done
3321    ac_cv_prog_CPP=$CPP
3322
3323fi
3324  CPP=$ac_cv_prog_CPP
3325else
3326  ac_cv_prog_CPP=$CPP
3327fi
3328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3329$as_echo "$CPP" >&6; }
3330ac_preproc_ok=false
3331for ac_c_preproc_warn_flag in '' yes
3332do
3333  # Use a header file that comes with gcc, so configuring glibc
3334  # with a fresh cross-compiler works.
3335  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3336  # <limits.h> exists even on freestanding compilers.
3337  # On the NeXT, cc -E runs the code through the compiler's parser,
3338  # not just through cpp. "Syntax error" is here to catch this case.
3339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3340/* end confdefs.h.  */
3341#ifdef __STDC__
3342# include <limits.h>
3343#else
3344# include <assert.h>
3345#endif
3346		     Syntax error
3347_ACEOF
3348if ac_fn_c_try_cpp "$LINENO"; then :
3349
3350else
3351  # Broken: fails on valid input.
3352continue
3353fi
3354rm -f conftest.err conftest.i conftest.$ac_ext
3355
3356  # OK, works on sane cases.  Now check whether nonexistent headers
3357  # can be detected and how.
3358  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3359/* end confdefs.h.  */
3360#include <ac_nonexistent.h>
3361_ACEOF
3362if ac_fn_c_try_cpp "$LINENO"; then :
3363  # Broken: success on invalid input.
3364continue
3365else
3366  # Passes both tests.
3367ac_preproc_ok=:
3368break
3369fi
3370rm -f conftest.err conftest.i conftest.$ac_ext
3371
3372done
3373# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3374rm -f conftest.i conftest.err conftest.$ac_ext
3375if $ac_preproc_ok; then :
3376
3377else
3378  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3379$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3380as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3381See \`config.log' for more details" "$LINENO" 5; }
3382fi
3383
3384ac_ext=c
3385ac_cpp='$CPP $CPPFLAGS'
3386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3388ac_compiler_gnu=$ac_cv_c_compiler_gnu
3389
3390
3391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3392$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3393if ${ac_cv_path_GREP+:} false; then :
3394  $as_echo_n "(cached) " >&6
3395else
3396  if test -z "$GREP"; then
3397  ac_path_GREP_found=false
3398  # Loop through the user's path and test for each of PROGNAME-LIST
3399  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3400for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3401do
3402  IFS=$as_save_IFS
3403  test -z "$as_dir" && as_dir=.
3404    for ac_prog in grep ggrep; do
3405    for ac_exec_ext in '' $ac_executable_extensions; do
3406      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3407      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3408# Check for GNU ac_path_GREP and select it if it is found.
3409  # Check for GNU $ac_path_GREP
3410case `"$ac_path_GREP" --version 2>&1` in
3411*GNU*)
3412  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3413*)
3414  ac_count=0
3415  $as_echo_n 0123456789 >"conftest.in"
3416  while :
3417  do
3418    cat "conftest.in" "conftest.in" >"conftest.tmp"
3419    mv "conftest.tmp" "conftest.in"
3420    cp "conftest.in" "conftest.nl"
3421    $as_echo 'GREP' >> "conftest.nl"
3422    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3423    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3424    as_fn_arith $ac_count + 1 && ac_count=$as_val
3425    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3426      # Best one so far, save it but keep looking for a better one
3427      ac_cv_path_GREP="$ac_path_GREP"
3428      ac_path_GREP_max=$ac_count
3429    fi
3430    # 10*(2^10) chars as input seems more than enough
3431    test $ac_count -gt 10 && break
3432  done
3433  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3434esac
3435
3436      $ac_path_GREP_found && break 3
3437    done
3438  done
3439  done
3440IFS=$as_save_IFS
3441  if test -z "$ac_cv_path_GREP"; then
3442    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3443  fi
3444else
3445  ac_cv_path_GREP=$GREP
3446fi
3447
3448fi
3449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3450$as_echo "$ac_cv_path_GREP" >&6; }
3451 GREP="$ac_cv_path_GREP"
3452
3453
3454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3455$as_echo_n "checking for egrep... " >&6; }
3456if ${ac_cv_path_EGREP+:} false; then :
3457  $as_echo_n "(cached) " >&6
3458else
3459  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3460   then ac_cv_path_EGREP="$GREP -E"
3461   else
3462     if test -z "$EGREP"; then
3463  ac_path_EGREP_found=false
3464  # Loop through the user's path and test for each of PROGNAME-LIST
3465  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3466for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3467do
3468  IFS=$as_save_IFS
3469  test -z "$as_dir" && as_dir=.
3470    for ac_prog in egrep; do
3471    for ac_exec_ext in '' $ac_executable_extensions; do
3472      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3473      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3474# Check for GNU ac_path_EGREP and select it if it is found.
3475  # Check for GNU $ac_path_EGREP
3476case `"$ac_path_EGREP" --version 2>&1` in
3477*GNU*)
3478  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3479*)
3480  ac_count=0
3481  $as_echo_n 0123456789 >"conftest.in"
3482  while :
3483  do
3484    cat "conftest.in" "conftest.in" >"conftest.tmp"
3485    mv "conftest.tmp" "conftest.in"
3486    cp "conftest.in" "conftest.nl"
3487    $as_echo 'EGREP' >> "conftest.nl"
3488    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3489    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3490    as_fn_arith $ac_count + 1 && ac_count=$as_val
3491    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3492      # Best one so far, save it but keep looking for a better one
3493      ac_cv_path_EGREP="$ac_path_EGREP"
3494      ac_path_EGREP_max=$ac_count
3495    fi
3496    # 10*(2^10) chars as input seems more than enough
3497    test $ac_count -gt 10 && break
3498  done
3499  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3500esac
3501
3502      $ac_path_EGREP_found && break 3
3503    done
3504  done
3505  done
3506IFS=$as_save_IFS
3507  if test -z "$ac_cv_path_EGREP"; then
3508    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3509  fi
3510else
3511  ac_cv_path_EGREP=$EGREP
3512fi
3513
3514   fi
3515fi
3516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3517$as_echo "$ac_cv_path_EGREP" >&6; }
3518 EGREP="$ac_cv_path_EGREP"
3519
3520
3521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3522$as_echo_n "checking for ANSI C header files... " >&6; }
3523if ${ac_cv_header_stdc+:} false; then :
3524  $as_echo_n "(cached) " >&6
3525else
3526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3527/* end confdefs.h.  */
3528#include <stdlib.h>
3529#include <stdarg.h>
3530#include <string.h>
3531#include <float.h>
3532
3533int
3534main ()
3535{
3536
3537  ;
3538  return 0;
3539}
3540_ACEOF
3541if ac_fn_c_try_compile "$LINENO"; then :
3542  ac_cv_header_stdc=yes
3543else
3544  ac_cv_header_stdc=no
3545fi
3546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3547
3548if test $ac_cv_header_stdc = yes; then
3549  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3550  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3551/* end confdefs.h.  */
3552#include <string.h>
3553
3554_ACEOF
3555if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3556  $EGREP "memchr" >/dev/null 2>&1; then :
3557
3558else
3559  ac_cv_header_stdc=no
3560fi
3561rm -f conftest*
3562
3563fi
3564
3565if test $ac_cv_header_stdc = yes; then
3566  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3567  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568/* end confdefs.h.  */
3569#include <stdlib.h>
3570
3571_ACEOF
3572if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3573  $EGREP "free" >/dev/null 2>&1; then :
3574
3575else
3576  ac_cv_header_stdc=no
3577fi
3578rm -f conftest*
3579
3580fi
3581
3582if test $ac_cv_header_stdc = yes; then
3583  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3584  if test "$cross_compiling" = yes; then :
3585  :
3586else
3587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3588/* end confdefs.h.  */
3589#include <ctype.h>
3590#include <stdlib.h>
3591#if ((' ' & 0x0FF) == 0x020)
3592# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3593# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3594#else
3595# define ISLOWER(c) \
3596		   (('a' <= (c) && (c) <= 'i') \
3597		     || ('j' <= (c) && (c) <= 'r') \
3598		     || ('s' <= (c) && (c) <= 'z'))
3599# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3600#endif
3601
3602#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3603int
3604main ()
3605{
3606  int i;
3607  for (i = 0; i < 256; i++)
3608    if (XOR (islower (i), ISLOWER (i))
3609	|| toupper (i) != TOUPPER (i))
3610      return 2;
3611  return 0;
3612}
3613_ACEOF
3614if ac_fn_c_try_run "$LINENO"; then :
3615
3616else
3617  ac_cv_header_stdc=no
3618fi
3619rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3620  conftest.$ac_objext conftest.beam conftest.$ac_ext
3621fi
3622
3623fi
3624fi
3625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3626$as_echo "$ac_cv_header_stdc" >&6; }
3627if test $ac_cv_header_stdc = yes; then
3628
3629$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3630
3631fi
3632
3633# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3634for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3635		  inttypes.h stdint.h unistd.h
3636do :
3637  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3638ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3639"
3640if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3641  cat >>confdefs.h <<_ACEOF
3642#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3643_ACEOF
3644
3645fi
3646
3647done
3648
3649
3650
3651  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3652if test "x$ac_cv_header_minix_config_h" = xyes; then :
3653  MINIX=yes
3654else
3655  MINIX=
3656fi
3657
3658
3659  if test "$MINIX" = yes; then
3660
3661$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3662
3663
3664$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3665
3666
3667$as_echo "#define _MINIX 1" >>confdefs.h
3668
3669  fi
3670
3671
3672  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3673$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3674if ${ac_cv_safe_to_define___extensions__+:} false; then :
3675  $as_echo_n "(cached) " >&6
3676else
3677  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3678/* end confdefs.h.  */
3679
3680#	  define __EXTENSIONS__ 1
3681	  $ac_includes_default
3682int
3683main ()
3684{
3685
3686  ;
3687  return 0;
3688}
3689_ACEOF
3690if ac_fn_c_try_compile "$LINENO"; then :
3691  ac_cv_safe_to_define___extensions__=yes
3692else
3693  ac_cv_safe_to_define___extensions__=no
3694fi
3695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3696fi
3697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3698$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3699  test $ac_cv_safe_to_define___extensions__ = yes &&
3700    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3701
3702  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3703
3704  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3705
3706  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3707
3708  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3709
3710
3711
3712# Initialize Automake
3713am__api_version='1.13'
3714
3715ac_aux_dir=
3716for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3717  if test -f "$ac_dir/install-sh"; then
3718    ac_aux_dir=$ac_dir
3719    ac_install_sh="$ac_aux_dir/install-sh -c"
3720    break
3721  elif test -f "$ac_dir/install.sh"; then
3722    ac_aux_dir=$ac_dir
3723    ac_install_sh="$ac_aux_dir/install.sh -c"
3724    break
3725  elif test -f "$ac_dir/shtool"; then
3726    ac_aux_dir=$ac_dir
3727    ac_install_sh="$ac_aux_dir/shtool install -c"
3728    break
3729  fi
3730done
3731if test -z "$ac_aux_dir"; then
3732  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3733fi
3734
3735# These three variables are undocumented and unsupported,
3736# and are intended to be withdrawn in a future Autoconf release.
3737# They can cause serious problems if a builder's source tree is in a directory
3738# whose full name contains unusual characters.
3739ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3740ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3741ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3742
3743
3744# Find a good install program.  We prefer a C program (faster),
3745# so one script is as good as another.  But avoid the broken or
3746# incompatible versions:
3747# SysV /etc/install, /usr/sbin/install
3748# SunOS /usr/etc/install
3749# IRIX /sbin/install
3750# AIX /bin/install
3751# AmigaOS /C/install, which installs bootblocks on floppy discs
3752# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3753# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3754# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3755# OS/2's system install, which has a completely different semantic
3756# ./install, which can be erroneously created by make from ./install.sh.
3757# Reject install programs that cannot install multiple files.
3758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3759$as_echo_n "checking for a BSD-compatible install... " >&6; }
3760if test -z "$INSTALL"; then
3761if ${ac_cv_path_install+:} false; then :
3762  $as_echo_n "(cached) " >&6
3763else
3764  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765for as_dir in $PATH
3766do
3767  IFS=$as_save_IFS
3768  test -z "$as_dir" && as_dir=.
3769    # Account for people who put trailing slashes in PATH elements.
3770case $as_dir/ in #((
3771  ./ | .// | /[cC]/* | \
3772  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3773  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3774  /usr/ucb/* ) ;;
3775  *)
3776    # OSF1 and SCO ODT 3.0 have their own names for install.
3777    # Don't use installbsd from OSF since it installs stuff as root
3778    # by default.
3779    for ac_prog in ginstall scoinst install; do
3780      for ac_exec_ext in '' $ac_executable_extensions; do
3781	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3782	  if test $ac_prog = install &&
3783	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3784	    # AIX install.  It has an incompatible calling convention.
3785	    :
3786	  elif test $ac_prog = install &&
3787	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3788	    # program-specific install script used by HP pwplus--don't use.
3789	    :
3790	  else
3791	    rm -rf conftest.one conftest.two conftest.dir
3792	    echo one > conftest.one
3793	    echo two > conftest.two
3794	    mkdir conftest.dir
3795	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3796	      test -s conftest.one && test -s conftest.two &&
3797	      test -s conftest.dir/conftest.one &&
3798	      test -s conftest.dir/conftest.two
3799	    then
3800	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3801	      break 3
3802	    fi
3803	  fi
3804	fi
3805      done
3806    done
3807    ;;
3808esac
3809
3810  done
3811IFS=$as_save_IFS
3812
3813rm -rf conftest.one conftest.two conftest.dir
3814
3815fi
3816  if test "${ac_cv_path_install+set}" = set; then
3817    INSTALL=$ac_cv_path_install
3818  else
3819    # As a last resort, use the slow shell script.  Don't cache a
3820    # value for INSTALL within a source directory, because that will
3821    # break other packages using the cache if that directory is
3822    # removed, or if the value is a relative name.
3823    INSTALL=$ac_install_sh
3824  fi
3825fi
3826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3827$as_echo "$INSTALL" >&6; }
3828
3829# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3830# It thinks the first close brace ends the variable substitution.
3831test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3832
3833test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3834
3835test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3836
3837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3838$as_echo_n "checking whether build environment is sane... " >&6; }
3839# Reject unsafe characters in $srcdir or the absolute working directory
3840# name.  Accept space and tab only in the latter.
3841am_lf='
3842'
3843case `pwd` in
3844  *[\\\"\#\$\&\'\`$am_lf]*)
3845    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3846esac
3847case $srcdir in
3848  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3849    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3850esac
3851
3852# Do 'set' in a subshell so we don't clobber the current shell's
3853# arguments.  Must try -L first in case configure is actually a
3854# symlink; some systems play weird games with the mod time of symlinks
3855# (eg FreeBSD returns the mod time of the symlink's containing
3856# directory).
3857if (
3858   am_has_slept=no
3859   for am_try in 1 2; do
3860     echo "timestamp, slept: $am_has_slept" > conftest.file
3861     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3862     if test "$*" = "X"; then
3863	# -L didn't work.
3864	set X `ls -t "$srcdir/configure" conftest.file`
3865     fi
3866     if test "$*" != "X $srcdir/configure conftest.file" \
3867	&& test "$*" != "X conftest.file $srcdir/configure"; then
3868
3869	# If neither matched, then we have a broken ls.  This can happen
3870	# if, for instance, CONFIG_SHELL is bash and it inherits a
3871	# broken ls alias from the environment.  This has actually
3872	# happened.  Such a system could not be considered "sane".
3873	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3874  alias in your environment" "$LINENO" 5
3875     fi
3876     if test "$2" = conftest.file || test $am_try -eq 2; then
3877       break
3878     fi
3879     # Just in case.
3880     sleep 1
3881     am_has_slept=yes
3882   done
3883   test "$2" = conftest.file
3884   )
3885then
3886   # Ok.
3887   :
3888else
3889   as_fn_error $? "newly created file is older than distributed files!
3890Check your system clock" "$LINENO" 5
3891fi
3892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3893$as_echo "yes" >&6; }
3894# If we didn't sleep, we still need to ensure time stamps of config.status and
3895# generated files are strictly newer.
3896am_sleep_pid=
3897if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3898  ( sleep 1 ) &
3899  am_sleep_pid=$!
3900fi
3901
3902rm -f conftest.file
3903
3904test "$program_prefix" != NONE &&
3905  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3906# Use a double $ so make ignores it.
3907test "$program_suffix" != NONE &&
3908  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3909# Double any \ or $.
3910# By default was `s,x,x', remove it if useless.
3911ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3912program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3913
3914# expand $ac_aux_dir to an absolute path
3915am_aux_dir=`cd $ac_aux_dir && pwd`
3916
3917if test x"${MISSING+set}" != xset; then
3918  case $am_aux_dir in
3919  *\ * | *\	*)
3920    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3921  *)
3922    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3923  esac
3924fi
3925# Use eval to expand $SHELL
3926if eval "$MISSING --is-lightweight"; then
3927  am_missing_run="$MISSING "
3928else
3929  am_missing_run=
3930  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3931$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3932fi
3933
3934if test x"${install_sh}" != xset; then
3935  case $am_aux_dir in
3936  *\ * | *\	*)
3937    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3938  *)
3939    install_sh="\${SHELL} $am_aux_dir/install-sh"
3940  esac
3941fi
3942
3943# Installed binaries are usually stripped using 'strip' when the user
3944# run "make install-strip".  However 'strip' might not be the right
3945# tool to use in cross-compilation environments, therefore Automake
3946# will honor the 'STRIP' environment variable to overrule this program.
3947if test "$cross_compiling" != no; then
3948  if test -n "$ac_tool_prefix"; then
3949  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3950set dummy ${ac_tool_prefix}strip; ac_word=$2
3951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3952$as_echo_n "checking for $ac_word... " >&6; }
3953if ${ac_cv_prog_STRIP+:} false; then :
3954  $as_echo_n "(cached) " >&6
3955else
3956  if test -n "$STRIP"; then
3957  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3958else
3959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3960for as_dir in $PATH
3961do
3962  IFS=$as_save_IFS
3963  test -z "$as_dir" && as_dir=.
3964    for ac_exec_ext in '' $ac_executable_extensions; do
3965  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3966    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3967    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3968    break 2
3969  fi
3970done
3971  done
3972IFS=$as_save_IFS
3973
3974fi
3975fi
3976STRIP=$ac_cv_prog_STRIP
3977if test -n "$STRIP"; then
3978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3979$as_echo "$STRIP" >&6; }
3980else
3981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3982$as_echo "no" >&6; }
3983fi
3984
3985
3986fi
3987if test -z "$ac_cv_prog_STRIP"; then
3988  ac_ct_STRIP=$STRIP
3989  # Extract the first word of "strip", so it can be a program name with args.
3990set dummy strip; ac_word=$2
3991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3992$as_echo_n "checking for $ac_word... " >&6; }
3993if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3994  $as_echo_n "(cached) " >&6
3995else
3996  if test -n "$ac_ct_STRIP"; then
3997  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3998else
3999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4000for as_dir in $PATH
4001do
4002  IFS=$as_save_IFS
4003  test -z "$as_dir" && as_dir=.
4004    for ac_exec_ext in '' $ac_executable_extensions; do
4005  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4006    ac_cv_prog_ac_ct_STRIP="strip"
4007    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4008    break 2
4009  fi
4010done
4011  done
4012IFS=$as_save_IFS
4013
4014fi
4015fi
4016ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4017if test -n "$ac_ct_STRIP"; then
4018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4019$as_echo "$ac_ct_STRIP" >&6; }
4020else
4021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4022$as_echo "no" >&6; }
4023fi
4024
4025  if test "x$ac_ct_STRIP" = x; then
4026    STRIP=":"
4027  else
4028    case $cross_compiling:$ac_tool_warned in
4029yes:)
4030{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4031$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4032ac_tool_warned=yes ;;
4033esac
4034    STRIP=$ac_ct_STRIP
4035  fi
4036else
4037  STRIP="$ac_cv_prog_STRIP"
4038fi
4039
4040fi
4041INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4042
4043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4044$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4045if test -z "$MKDIR_P"; then
4046  if ${ac_cv_path_mkdir+:} false; then :
4047  $as_echo_n "(cached) " >&6
4048else
4049  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4051do
4052  IFS=$as_save_IFS
4053  test -z "$as_dir" && as_dir=.
4054    for ac_prog in mkdir gmkdir; do
4055	 for ac_exec_ext in '' $ac_executable_extensions; do
4056	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4057	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4058	     'mkdir (GNU coreutils) '* | \
4059	     'mkdir (coreutils) '* | \
4060	     'mkdir (fileutils) '4.1*)
4061	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4062	       break 3;;
4063	   esac
4064	 done
4065       done
4066  done
4067IFS=$as_save_IFS
4068
4069fi
4070
4071  test -d ./--version && rmdir ./--version
4072  if test "${ac_cv_path_mkdir+set}" = set; then
4073    MKDIR_P="$ac_cv_path_mkdir -p"
4074  else
4075    # As a last resort, use the slow shell script.  Don't cache a
4076    # value for MKDIR_P within a source directory, because that will
4077    # break other packages using the cache if that directory is
4078    # removed, or if the value is a relative name.
4079    MKDIR_P="$ac_install_sh -d"
4080  fi
4081fi
4082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4083$as_echo "$MKDIR_P" >&6; }
4084
4085for ac_prog in gawk mawk nawk awk
4086do
4087  # Extract the first word of "$ac_prog", so it can be a program name with args.
4088set dummy $ac_prog; ac_word=$2
4089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4090$as_echo_n "checking for $ac_word... " >&6; }
4091if ${ac_cv_prog_AWK+:} false; then :
4092  $as_echo_n "(cached) " >&6
4093else
4094  if test -n "$AWK"; then
4095  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4096else
4097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4098for as_dir in $PATH
4099do
4100  IFS=$as_save_IFS
4101  test -z "$as_dir" && as_dir=.
4102    for ac_exec_ext in '' $ac_executable_extensions; do
4103  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4104    ac_cv_prog_AWK="$ac_prog"
4105    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4106    break 2
4107  fi
4108done
4109  done
4110IFS=$as_save_IFS
4111
4112fi
4113fi
4114AWK=$ac_cv_prog_AWK
4115if test -n "$AWK"; then
4116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4117$as_echo "$AWK" >&6; }
4118else
4119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4120$as_echo "no" >&6; }
4121fi
4122
4123
4124  test -n "$AWK" && break
4125done
4126
4127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4128$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4129set x ${MAKE-make}
4130ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4131if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4132  $as_echo_n "(cached) " >&6
4133else
4134  cat >conftest.make <<\_ACEOF
4135SHELL = /bin/sh
4136all:
4137	@echo '@@@%%%=$(MAKE)=@@@%%%'
4138_ACEOF
4139# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4140case `${MAKE-make} -f conftest.make 2>/dev/null` in
4141  *@@@%%%=?*=@@@%%%*)
4142    eval ac_cv_prog_make_${ac_make}_set=yes;;
4143  *)
4144    eval ac_cv_prog_make_${ac_make}_set=no;;
4145esac
4146rm -f conftest.make
4147fi
4148if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4150$as_echo "yes" >&6; }
4151  SET_MAKE=
4152else
4153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4154$as_echo "no" >&6; }
4155  SET_MAKE="MAKE=${MAKE-make}"
4156fi
4157
4158rm -rf .tst 2>/dev/null
4159mkdir .tst 2>/dev/null
4160if test -d .tst; then
4161  am__leading_dot=.
4162else
4163  am__leading_dot=_
4164fi
4165rmdir .tst 2>/dev/null
4166
4167DEPDIR="${am__leading_dot}deps"
4168
4169ac_config_commands="$ac_config_commands depfiles"
4170
4171
4172am_make=${MAKE-make}
4173cat > confinc << 'END'
4174am__doit:
4175	@echo this is the am__doit target
4176.PHONY: am__doit
4177END
4178# If we don't find an include directive, just comment out the code.
4179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4180$as_echo_n "checking for style of include used by $am_make... " >&6; }
4181am__include="#"
4182am__quote=
4183_am_result=none
4184# First try GNU make style include.
4185echo "include confinc" > confmf
4186# Ignore all kinds of additional output from 'make'.
4187case `$am_make -s -f confmf 2> /dev/null` in #(
4188*the\ am__doit\ target*)
4189  am__include=include
4190  am__quote=
4191  _am_result=GNU
4192  ;;
4193esac
4194# Now try BSD make style include.
4195if test "$am__include" = "#"; then
4196   echo '.include "confinc"' > confmf
4197   case `$am_make -s -f confmf 2> /dev/null` in #(
4198   *the\ am__doit\ target*)
4199     am__include=.include
4200     am__quote="\""
4201     _am_result=BSD
4202     ;;
4203   esac
4204fi
4205
4206
4207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4208$as_echo "$_am_result" >&6; }
4209rm -f confinc confmf
4210
4211# Check whether --enable-dependency-tracking was given.
4212if test "${enable_dependency_tracking+set}" = set; then :
4213  enableval=$enable_dependency_tracking;
4214fi
4215
4216if test "x$enable_dependency_tracking" != xno; then
4217  am_depcomp="$ac_aux_dir/depcomp"
4218  AMDEPBACKSLASH='\'
4219  am__nodep='_no'
4220fi
4221 if test "x$enable_dependency_tracking" != xno; then
4222  AMDEP_TRUE=
4223  AMDEP_FALSE='#'
4224else
4225  AMDEP_TRUE='#'
4226  AMDEP_FALSE=
4227fi
4228
4229
4230# Check whether --enable-silent-rules was given.
4231if test "${enable_silent_rules+set}" = set; then :
4232  enableval=$enable_silent_rules;
4233fi
4234
4235case $enable_silent_rules in # (((
4236  yes) AM_DEFAULT_VERBOSITY=0;;
4237   no) AM_DEFAULT_VERBOSITY=1;;
4238    *) AM_DEFAULT_VERBOSITY=1;;
4239esac
4240am_make=${MAKE-make}
4241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4242$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4243if ${am_cv_make_support_nested_variables+:} false; then :
4244  $as_echo_n "(cached) " >&6
4245else
4246  if $as_echo 'TRUE=$(BAR$(V))
4247BAR0=false
4248BAR1=true
4249V=1
4250am__doit:
4251	@$(TRUE)
4252.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4253  am_cv_make_support_nested_variables=yes
4254else
4255  am_cv_make_support_nested_variables=no
4256fi
4257fi
4258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4259$as_echo "$am_cv_make_support_nested_variables" >&6; }
4260if test $am_cv_make_support_nested_variables = yes; then
4261    AM_V='$(V)'
4262  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4263else
4264  AM_V=$AM_DEFAULT_VERBOSITY
4265  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4266fi
4267AM_BACKSLASH='\'
4268
4269if test "`cd $srcdir && pwd`" != "`pwd`"; then
4270  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4271  # is not polluted with repeated "-I."
4272  am__isrc=' -I$(srcdir)'
4273  # test to see if srcdir already configured
4274  if test -f $srcdir/config.status; then
4275    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4276  fi
4277fi
4278
4279# test whether we have cygpath
4280if test -z "$CYGPATH_W"; then
4281  if (cygpath --version) >/dev/null 2>/dev/null; then
4282    CYGPATH_W='cygpath -w'
4283  else
4284    CYGPATH_W=echo
4285  fi
4286fi
4287
4288
4289# Define the identity of the package.
4290 PACKAGE='libxcb'
4291 VERSION='1.9.1'
4292
4293
4294cat >>confdefs.h <<_ACEOF
4295#define PACKAGE "$PACKAGE"
4296_ACEOF
4297
4298
4299cat >>confdefs.h <<_ACEOF
4300#define VERSION "$VERSION"
4301_ACEOF
4302
4303# Some tools Automake needs.
4304
4305ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4306
4307
4308AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4309
4310
4311AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4312
4313
4314AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4315
4316
4317MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4318
4319# For better backward compatibility.  To be removed once Automake 1.9.x
4320# dies out for good.  For more background, see:
4321# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4322# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4323mkdir_p='$(MKDIR_P)'
4324
4325# We need awk for the "check" target.  The system "awk" is bad on
4326# some platforms.
4327# Always define AMTAR for backward compatibility.  Yes, it's still used
4328# in the wild :-(  We should find a proper way to deprecate it ...
4329AMTAR='$${TAR-tar}'
4330
4331
4332# We'll loop over all known methods to create a tar archive until one works.
4333_am_tools='gnutar  pax cpio none'
4334
4335am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4336
4337
4338
4339
4340
4341depcc="$CC"   am_compiler_list=
4342
4343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4344$as_echo_n "checking dependency style of $depcc... " >&6; }
4345if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4346  $as_echo_n "(cached) " >&6
4347else
4348  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4349  # We make a subdir and do the tests there.  Otherwise we can end up
4350  # making bogus files that we don't know about and never remove.  For
4351  # instance it was reported that on HP-UX the gcc test will end up
4352  # making a dummy file named 'D' -- because '-MD' means "put the output
4353  # in D".
4354  rm -rf conftest.dir
4355  mkdir conftest.dir
4356  # Copy depcomp to subdir because otherwise we won't find it if we're
4357  # using a relative directory.
4358  cp "$am_depcomp" conftest.dir
4359  cd conftest.dir
4360  # We will build objects and dependencies in a subdirectory because
4361  # it helps to detect inapplicable dependency modes.  For instance
4362  # both Tru64's cc and ICC support -MD to output dependencies as a
4363  # side effect of compilation, but ICC will put the dependencies in
4364  # the current directory while Tru64 will put them in the object
4365  # directory.
4366  mkdir sub
4367
4368  am_cv_CC_dependencies_compiler_type=none
4369  if test "$am_compiler_list" = ""; then
4370     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4371  fi
4372  am__universal=false
4373  case " $depcc " in #(
4374     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4375     esac
4376
4377  for depmode in $am_compiler_list; do
4378    # Setup a source with many dependencies, because some compilers
4379    # like to wrap large dependency lists on column 80 (with \), and
4380    # we should not choose a depcomp mode which is confused by this.
4381    #
4382    # We need to recreate these files for each test, as the compiler may
4383    # overwrite some of them when testing with obscure command lines.
4384    # This happens at least with the AIX C compiler.
4385    : > sub/conftest.c
4386    for i in 1 2 3 4 5 6; do
4387      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4388      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4389      # Solaris 10 /bin/sh.
4390      echo '/* dummy */' > sub/conftst$i.h
4391    done
4392    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4393
4394    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4395    # mode.  It turns out that the SunPro C++ compiler does not properly
4396    # handle '-M -o', and we need to detect this.  Also, some Intel
4397    # versions had trouble with output in subdirs.
4398    am__obj=sub/conftest.${OBJEXT-o}
4399    am__minus_obj="-o $am__obj"
4400    case $depmode in
4401    gcc)
4402      # This depmode causes a compiler race in universal mode.
4403      test "$am__universal" = false || continue
4404      ;;
4405    nosideeffect)
4406      # After this tag, mechanisms are not by side-effect, so they'll
4407      # only be used when explicitly requested.
4408      if test "x$enable_dependency_tracking" = xyes; then
4409	continue
4410      else
4411	break
4412      fi
4413      ;;
4414    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4415      # This compiler won't grok '-c -o', but also, the minuso test has
4416      # not run yet.  These depmodes are late enough in the game, and
4417      # so weak that their functioning should not be impacted.
4418      am__obj=conftest.${OBJEXT-o}
4419      am__minus_obj=
4420      ;;
4421    none) break ;;
4422    esac
4423    if depmode=$depmode \
4424       source=sub/conftest.c object=$am__obj \
4425       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4426       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4427         >/dev/null 2>conftest.err &&
4428       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4429       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4430       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4431       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4432      # icc doesn't choke on unknown options, it will just issue warnings
4433      # or remarks (even with -Werror).  So we grep stderr for any message
4434      # that says an option was ignored or not supported.
4435      # When given -MP, icc 7.0 and 7.1 complain thusly:
4436      #   icc: Command line warning: ignoring option '-M'; no argument required
4437      # The diagnosis changed in icc 8.0:
4438      #   icc: Command line remark: option '-MP' not supported
4439      if (grep 'ignoring option' conftest.err ||
4440          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4441        am_cv_CC_dependencies_compiler_type=$depmode
4442        break
4443      fi
4444    fi
4445  done
4446
4447  cd ..
4448  rm -rf conftest.dir
4449else
4450  am_cv_CC_dependencies_compiler_type=none
4451fi
4452
4453fi
4454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4455$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4456CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4457
4458 if
4459  test "x$enable_dependency_tracking" != xno \
4460  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4461  am__fastdepCC_TRUE=
4462  am__fastdepCC_FALSE='#'
4463else
4464  am__fastdepCC_TRUE='#'
4465  am__fastdepCC_FALSE=
4466fi
4467
4468
4469
4470# Check whether --enable-silent-rules was given.
4471if test "${enable_silent_rules+set}" = set; then :
4472  enableval=$enable_silent_rules;
4473fi
4474
4475case $enable_silent_rules in # (((
4476  yes) AM_DEFAULT_VERBOSITY=0;;
4477   no) AM_DEFAULT_VERBOSITY=1;;
4478    *) AM_DEFAULT_VERBOSITY=0;;
4479esac
4480am_make=${MAKE-make}
4481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4482$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4483if ${am_cv_make_support_nested_variables+:} false; then :
4484  $as_echo_n "(cached) " >&6
4485else
4486  if $as_echo 'TRUE=$(BAR$(V))
4487BAR0=false
4488BAR1=true
4489V=1
4490am__doit:
4491	@$(TRUE)
4492.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4493  am_cv_make_support_nested_variables=yes
4494else
4495  am_cv_make_support_nested_variables=no
4496fi
4497fi
4498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4499$as_echo "$am_cv_make_support_nested_variables" >&6; }
4500if test $am_cv_make_support_nested_variables = yes; then
4501    AM_V='$(V)'
4502  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4503else
4504  AM_V=$AM_DEFAULT_VERBOSITY
4505  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4506fi
4507AM_BACKSLASH='\'
4508
4509
4510
4511
4512
4513
4514
4515
4516        if test -n "$PYTHON"; then
4517      # If the user set $PYTHON, use it and don't search something else.
4518      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.6" >&5
4519$as_echo_n "checking whether $PYTHON version is >= 2.6... " >&6; }
4520      prog="import sys
4521# split strings by '.' and convert to numeric.  Append some zeros
4522# because we need at least 4 digits for the hex conversion.
4523# map returns an iterator in Python 3.0 and a list in 2.x
4524minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
4525minverhex = 0
4526# xrange is not present in Python 3.0 and range returns an iterator
4527for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
4528sys.exit(sys.hexversion < minverhex)"
4529  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
4530   ($PYTHON -c "$prog") >&5 2>&5
4531   ac_status=$?
4532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533   (exit $ac_status); }; then :
4534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4535$as_echo "yes" >&6; }
4536else
4537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4538$as_echo "no" >&6; }
4539			       as_fn_error $? "Python interpreter is too old" "$LINENO" 5
4540fi
4541      am_display_PYTHON=$PYTHON
4542    else
4543      # Otherwise, try each interpreter until we find one that satisfies
4544      # VERSION.
4545      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.6" >&5
4546$as_echo_n "checking for a Python interpreter with version >= 2.6... " >&6; }
4547if ${am_cv_pathless_PYTHON+:} false; then :
4548  $as_echo_n "(cached) " >&6
4549else
4550
4551	for am_cv_pathless_PYTHON in python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7  python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
4552	  test "$am_cv_pathless_PYTHON" = none && break
4553	  prog="import sys
4554# split strings by '.' and convert to numeric.  Append some zeros
4555# because we need at least 4 digits for the hex conversion.
4556# map returns an iterator in Python 3.0 and a list in 2.x
4557minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
4558minverhex = 0
4559# xrange is not present in Python 3.0 and range returns an iterator
4560for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
4561sys.exit(sys.hexversion < minverhex)"
4562  if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
4563   ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
4564   ac_status=$?
4565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566   (exit $ac_status); }; then :
4567  break
4568fi
4569	done
4570fi
4571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
4572$as_echo "$am_cv_pathless_PYTHON" >&6; }
4573      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
4574      if test "$am_cv_pathless_PYTHON" = none; then
4575	PYTHON=:
4576      else
4577        # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
4578set dummy $am_cv_pathless_PYTHON; ac_word=$2
4579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4580$as_echo_n "checking for $ac_word... " >&6; }
4581if ${ac_cv_path_PYTHON+:} false; then :
4582  $as_echo_n "(cached) " >&6
4583else
4584  case $PYTHON in
4585  [\\/]* | ?:[\\/]*)
4586  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4587  ;;
4588  *)
4589  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4590for as_dir in $PATH
4591do
4592  IFS=$as_save_IFS
4593  test -z "$as_dir" && as_dir=.
4594    for ac_exec_ext in '' $ac_executable_extensions; do
4595  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4596    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4597    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4598    break 2
4599  fi
4600done
4601  done
4602IFS=$as_save_IFS
4603
4604  ;;
4605esac
4606fi
4607PYTHON=$ac_cv_path_PYTHON
4608if test -n "$PYTHON"; then
4609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
4610$as_echo "$PYTHON" >&6; }
4611else
4612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4613$as_echo "no" >&6; }
4614fi
4615
4616
4617      fi
4618      am_display_PYTHON=$am_cv_pathless_PYTHON
4619    fi
4620
4621
4622  if test "$PYTHON" = :; then
4623      as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
4624  else
4625
4626
4627  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
4628$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
4629if ${am_cv_python_version+:} false; then :
4630  $as_echo_n "(cached) " >&6
4631else
4632  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
4633fi
4634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
4635$as_echo "$am_cv_python_version" >&6; }
4636  PYTHON_VERSION=$am_cv_python_version
4637
4638
4639
4640  PYTHON_PREFIX='${prefix}'
4641
4642  PYTHON_EXEC_PREFIX='${exec_prefix}'
4643
4644
4645
4646  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
4647$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
4648if ${am_cv_python_platform+:} false; then :
4649  $as_echo_n "(cached) " >&6
4650else
4651  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
4652fi
4653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
4654$as_echo "$am_cv_python_platform" >&6; }
4655  PYTHON_PLATFORM=$am_cv_python_platform
4656
4657
4658  # Just factor out some code duplication.
4659  am_python_setup_sysconfig="\
4660import sys
4661# Prefer sysconfig over distutils.sysconfig, for better compatibility
4662# with python 3.x.  See automake bug#10227.
4663try:
4664    import sysconfig
4665except ImportError:
4666    can_use_sysconfig = 0
4667else:
4668    can_use_sysconfig = 1
4669# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
4670# <https://github.com/pypa/virtualenv/issues/118>
4671try:
4672    from platform import python_implementation
4673    if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
4674        can_use_sysconfig = 0
4675except ImportError:
4676    pass"
4677
4678
4679            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
4680$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
4681if ${am_cv_python_pythondir+:} false; then :
4682  $as_echo_n "(cached) " >&6
4683else
4684  if test "x$prefix" = xNONE
4685     then
4686       am_py_prefix=$ac_default_prefix
4687     else
4688       am_py_prefix=$prefix
4689     fi
4690     am_cv_python_pythondir=`$PYTHON -c "
4691$am_python_setup_sysconfig
4692if can_use_sysconfig:
4693    sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
4694else:
4695    from distutils import sysconfig
4696    sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
4697sys.stdout.write(sitedir)"`
4698     case $am_cv_python_pythondir in
4699     $am_py_prefix*)
4700       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
4701       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
4702       ;;
4703     *)
4704       case $am_py_prefix in
4705         /usr|/System*) ;;
4706         *)
4707	  am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
4708	  ;;
4709       esac
4710       ;;
4711     esac
4712
4713fi
4714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
4715$as_echo "$am_cv_python_pythondir" >&6; }
4716  pythondir=$am_cv_python_pythondir
4717
4718
4719
4720  pkgpythondir=\${pythondir}/$PACKAGE
4721
4722
4723        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
4724$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
4725if ${am_cv_python_pyexecdir+:} false; then :
4726  $as_echo_n "(cached) " >&6
4727else
4728  if test "x$exec_prefix" = xNONE
4729     then
4730       am_py_exec_prefix=$am_py_prefix
4731     else
4732       am_py_exec_prefix=$exec_prefix
4733     fi
4734     am_cv_python_pyexecdir=`$PYTHON -c "
4735$am_python_setup_sysconfig
4736if can_use_sysconfig:
4737    sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
4738else:
4739    from distutils import sysconfig
4740    sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
4741sys.stdout.write(sitedir)"`
4742     case $am_cv_python_pyexecdir in
4743     $am_py_exec_prefix*)
4744       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
4745       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
4746       ;;
4747     *)
4748       case $am_py_exec_prefix in
4749         /usr|/System*) ;;
4750         *)
4751	   am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
4752	   ;;
4753       esac
4754       ;;
4755     esac
4756
4757fi
4758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
4759$as_echo "$am_cv_python_pyexecdir" >&6; }
4760  pyexecdir=$am_cv_python_pyexecdir
4761
4762
4763
4764  pkgpyexecdir=\${pyexecdir}/$PACKAGE
4765
4766
4767
4768  fi
4769
4770
4771
4772
4773
4774if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4775	if test -n "$ac_tool_prefix"; then
4776  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4777set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4779$as_echo_n "checking for $ac_word... " >&6; }
4780if ${ac_cv_path_PKG_CONFIG+:} false; then :
4781  $as_echo_n "(cached) " >&6
4782else
4783  case $PKG_CONFIG in
4784  [\\/]* | ?:[\\/]*)
4785  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4786  ;;
4787  *)
4788  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4789for as_dir in $PATH
4790do
4791  IFS=$as_save_IFS
4792  test -z "$as_dir" && as_dir=.
4793    for ac_exec_ext in '' $ac_executable_extensions; do
4794  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4795    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4796    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4797    break 2
4798  fi
4799done
4800  done
4801IFS=$as_save_IFS
4802
4803  ;;
4804esac
4805fi
4806PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4807if test -n "$PKG_CONFIG"; then
4808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4809$as_echo "$PKG_CONFIG" >&6; }
4810else
4811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4812$as_echo "no" >&6; }
4813fi
4814
4815
4816fi
4817if test -z "$ac_cv_path_PKG_CONFIG"; then
4818  ac_pt_PKG_CONFIG=$PKG_CONFIG
4819  # Extract the first word of "pkg-config", so it can be a program name with args.
4820set dummy pkg-config; ac_word=$2
4821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4822$as_echo_n "checking for $ac_word... " >&6; }
4823if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4824  $as_echo_n "(cached) " >&6
4825else
4826  case $ac_pt_PKG_CONFIG in
4827  [\\/]* | ?:[\\/]*)
4828  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4829  ;;
4830  *)
4831  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4832for as_dir in $PATH
4833do
4834  IFS=$as_save_IFS
4835  test -z "$as_dir" && as_dir=.
4836    for ac_exec_ext in '' $ac_executable_extensions; do
4837  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4838    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4839    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4840    break 2
4841  fi
4842done
4843  done
4844IFS=$as_save_IFS
4845
4846  ;;
4847esac
4848fi
4849ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4850if test -n "$ac_pt_PKG_CONFIG"; then
4851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4852$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4853else
4854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4855$as_echo "no" >&6; }
4856fi
4857
4858  if test "x$ac_pt_PKG_CONFIG" = x; then
4859    PKG_CONFIG=""
4860  else
4861    case $cross_compiling:$ac_tool_warned in
4862yes:)
4863{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4864$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4865ac_tool_warned=yes ;;
4866esac
4867    PKG_CONFIG=$ac_pt_PKG_CONFIG
4868  fi
4869else
4870  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4871fi
4872
4873fi
4874if test -n "$PKG_CONFIG"; then
4875	_pkg_min_version=0.9.0
4876	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4877$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4878	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4879		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4880$as_echo "yes" >&6; }
4881	else
4882		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4883$as_echo "no" >&6; }
4884		PKG_CONFIG=""
4885	fi
4886
4887fi
4888
4889pkg_failed=no
4890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5
4891$as_echo_n "checking for CHECK... " >&6; }
4892
4893if test -n "$CHECK_CFLAGS"; then
4894    pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
4895 elif test -n "$PKG_CONFIG"; then
4896    if test -n "$PKG_CONFIG" && \
4897    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
4898  ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
4899  ac_status=$?
4900  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4901  test $ac_status = 0; }; then
4902  pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.4" 2>/dev/null`
4903else
4904  pkg_failed=yes
4905fi
4906 else
4907    pkg_failed=untried
4908fi
4909if test -n "$CHECK_LIBS"; then
4910    pkg_cv_CHECK_LIBS="$CHECK_LIBS"
4911 elif test -n "$PKG_CONFIG"; then
4912    if test -n "$PKG_CONFIG" && \
4913    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
4914  ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
4915  ac_status=$?
4916  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4917  test $ac_status = 0; }; then
4918  pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.4" 2>/dev/null`
4919else
4920  pkg_failed=yes
4921fi
4922 else
4923    pkg_failed=untried
4924fi
4925
4926
4927
4928if test $pkg_failed = yes; then
4929
4930if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4931        _pkg_short_errors_supported=yes
4932else
4933        _pkg_short_errors_supported=no
4934fi
4935        if test $_pkg_short_errors_supported = yes; then
4936	        CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "check >= 0.9.4" 2>&1`
4937        else
4938	        CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors "check >= 0.9.4" 2>&1`
4939        fi
4940	# Put the nasty error message in config.log where it belongs
4941	echo "$CHECK_PKG_ERRORS" >&5
4942
4943	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4944$as_echo "no" >&6; }
4945                HAVE_CHECK=no
4946elif test $pkg_failed = untried; then
4947	HAVE_CHECK=no
4948else
4949	CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
4950	CHECK_LIBS=$pkg_cv_CHECK_LIBS
4951        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4952$as_echo "yes" >&6; }
4953	HAVE_CHECK=yes
4954fi
4955 if test x$HAVE_CHECK = xyes; then
4956  HAVE_CHECK_TRUE=
4957  HAVE_CHECK_FALSE='#'
4958else
4959  HAVE_CHECK_TRUE='#'
4960  HAVE_CHECK_FALSE=
4961fi
4962
4963
4964ac_config_headers="$ac_config_headers src/config.h"
4965
4966
4967# Make sure we can run config.sub.
4968$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4969  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4970
4971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4972$as_echo_n "checking build system type... " >&6; }
4973if ${ac_cv_build+:} false; then :
4974  $as_echo_n "(cached) " >&6
4975else
4976  ac_build_alias=$build_alias
4977test "x$ac_build_alias" = x &&
4978  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4979test "x$ac_build_alias" = x &&
4980  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4981ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4982  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4983
4984fi
4985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4986$as_echo "$ac_cv_build" >&6; }
4987case $ac_cv_build in
4988*-*-*) ;;
4989*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4990esac
4991build=$ac_cv_build
4992ac_save_IFS=$IFS; IFS='-'
4993set x $ac_cv_build
4994shift
4995build_cpu=$1
4996build_vendor=$2
4997shift; shift
4998# Remember, the first character of IFS is used to create $*,
4999# except with old shells:
5000build_os=$*
5001IFS=$ac_save_IFS
5002case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5003
5004
5005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5006$as_echo_n "checking host system type... " >&6; }
5007if ${ac_cv_host+:} false; then :
5008  $as_echo_n "(cached) " >&6
5009else
5010  if test "x$host_alias" = x; then
5011  ac_cv_host=$ac_cv_build
5012else
5013  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5014    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5015fi
5016
5017fi
5018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5019$as_echo "$ac_cv_host" >&6; }
5020case $ac_cv_host in
5021*-*-*) ;;
5022*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5023esac
5024host=$ac_cv_host
5025ac_save_IFS=$IFS; IFS='-'
5026set x $ac_cv_host
5027shift
5028host_cpu=$1
5029host_vendor=$2
5030shift; shift
5031# Remember, the first character of IFS is used to create $*,
5032# except with old shells:
5033host_os=$*
5034IFS=$ac_save_IFS
5035case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5036
5037
5038enable_win32_dll=yes
5039
5040case $host in
5041*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
5042  if test -n "$ac_tool_prefix"; then
5043  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5044set dummy ${ac_tool_prefix}as; ac_word=$2
5045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5046$as_echo_n "checking for $ac_word... " >&6; }
5047if ${ac_cv_prog_AS+:} false; then :
5048  $as_echo_n "(cached) " >&6
5049else
5050  if test -n "$AS"; then
5051  ac_cv_prog_AS="$AS" # Let the user override the test.
5052else
5053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5054for as_dir in $PATH
5055do
5056  IFS=$as_save_IFS
5057  test -z "$as_dir" && as_dir=.
5058    for ac_exec_ext in '' $ac_executable_extensions; do
5059  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5060    ac_cv_prog_AS="${ac_tool_prefix}as"
5061    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5062    break 2
5063  fi
5064done
5065  done
5066IFS=$as_save_IFS
5067
5068fi
5069fi
5070AS=$ac_cv_prog_AS
5071if test -n "$AS"; then
5072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5073$as_echo "$AS" >&6; }
5074else
5075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5076$as_echo "no" >&6; }
5077fi
5078
5079
5080fi
5081if test -z "$ac_cv_prog_AS"; then
5082  ac_ct_AS=$AS
5083  # Extract the first word of "as", so it can be a program name with args.
5084set dummy as; ac_word=$2
5085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5086$as_echo_n "checking for $ac_word... " >&6; }
5087if ${ac_cv_prog_ac_ct_AS+:} false; then :
5088  $as_echo_n "(cached) " >&6
5089else
5090  if test -n "$ac_ct_AS"; then
5091  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5092else
5093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094for as_dir in $PATH
5095do
5096  IFS=$as_save_IFS
5097  test -z "$as_dir" && as_dir=.
5098    for ac_exec_ext in '' $ac_executable_extensions; do
5099  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5100    ac_cv_prog_ac_ct_AS="as"
5101    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5102    break 2
5103  fi
5104done
5105  done
5106IFS=$as_save_IFS
5107
5108fi
5109fi
5110ac_ct_AS=$ac_cv_prog_ac_ct_AS
5111if test -n "$ac_ct_AS"; then
5112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5113$as_echo "$ac_ct_AS" >&6; }
5114else
5115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5116$as_echo "no" >&6; }
5117fi
5118
5119  if test "x$ac_ct_AS" = x; then
5120    AS="false"
5121  else
5122    case $cross_compiling:$ac_tool_warned in
5123yes:)
5124{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5125$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5126ac_tool_warned=yes ;;
5127esac
5128    AS=$ac_ct_AS
5129  fi
5130else
5131  AS="$ac_cv_prog_AS"
5132fi
5133
5134  if test -n "$ac_tool_prefix"; then
5135  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5136set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5138$as_echo_n "checking for $ac_word... " >&6; }
5139if ${ac_cv_prog_DLLTOOL+:} false; then :
5140  $as_echo_n "(cached) " >&6
5141else
5142  if test -n "$DLLTOOL"; then
5143  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5144else
5145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146for as_dir in $PATH
5147do
5148  IFS=$as_save_IFS
5149  test -z "$as_dir" && as_dir=.
5150    for ac_exec_ext in '' $ac_executable_extensions; do
5151  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5152    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5153    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5154    break 2
5155  fi
5156done
5157  done
5158IFS=$as_save_IFS
5159
5160fi
5161fi
5162DLLTOOL=$ac_cv_prog_DLLTOOL
5163if test -n "$DLLTOOL"; then
5164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5165$as_echo "$DLLTOOL" >&6; }
5166else
5167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5168$as_echo "no" >&6; }
5169fi
5170
5171
5172fi
5173if test -z "$ac_cv_prog_DLLTOOL"; then
5174  ac_ct_DLLTOOL=$DLLTOOL
5175  # Extract the first word of "dlltool", so it can be a program name with args.
5176set dummy dlltool; ac_word=$2
5177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5178$as_echo_n "checking for $ac_word... " >&6; }
5179if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5180  $as_echo_n "(cached) " >&6
5181else
5182  if test -n "$ac_ct_DLLTOOL"; then
5183  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5184else
5185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186for as_dir in $PATH
5187do
5188  IFS=$as_save_IFS
5189  test -z "$as_dir" && as_dir=.
5190    for ac_exec_ext in '' $ac_executable_extensions; do
5191  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5192    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5193    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5194    break 2
5195  fi
5196done
5197  done
5198IFS=$as_save_IFS
5199
5200fi
5201fi
5202ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5203if test -n "$ac_ct_DLLTOOL"; then
5204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5205$as_echo "$ac_ct_DLLTOOL" >&6; }
5206else
5207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5208$as_echo "no" >&6; }
5209fi
5210
5211  if test "x$ac_ct_DLLTOOL" = x; then
5212    DLLTOOL="false"
5213  else
5214    case $cross_compiling:$ac_tool_warned in
5215yes:)
5216{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5217$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5218ac_tool_warned=yes ;;
5219esac
5220    DLLTOOL=$ac_ct_DLLTOOL
5221  fi
5222else
5223  DLLTOOL="$ac_cv_prog_DLLTOOL"
5224fi
5225
5226  if test -n "$ac_tool_prefix"; then
5227  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5228set dummy ${ac_tool_prefix}objdump; ac_word=$2
5229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5230$as_echo_n "checking for $ac_word... " >&6; }
5231if ${ac_cv_prog_OBJDUMP+:} false; then :
5232  $as_echo_n "(cached) " >&6
5233else
5234  if test -n "$OBJDUMP"; then
5235  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5236else
5237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5238for as_dir in $PATH
5239do
5240  IFS=$as_save_IFS
5241  test -z "$as_dir" && as_dir=.
5242    for ac_exec_ext in '' $ac_executable_extensions; do
5243  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5244    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5245    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5246    break 2
5247  fi
5248done
5249  done
5250IFS=$as_save_IFS
5251
5252fi
5253fi
5254OBJDUMP=$ac_cv_prog_OBJDUMP
5255if test -n "$OBJDUMP"; then
5256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5257$as_echo "$OBJDUMP" >&6; }
5258else
5259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5260$as_echo "no" >&6; }
5261fi
5262
5263
5264fi
5265if test -z "$ac_cv_prog_OBJDUMP"; then
5266  ac_ct_OBJDUMP=$OBJDUMP
5267  # Extract the first word of "objdump", so it can be a program name with args.
5268set dummy objdump; ac_word=$2
5269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5270$as_echo_n "checking for $ac_word... " >&6; }
5271if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5272  $as_echo_n "(cached) " >&6
5273else
5274  if test -n "$ac_ct_OBJDUMP"; then
5275  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5276else
5277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278for as_dir in $PATH
5279do
5280  IFS=$as_save_IFS
5281  test -z "$as_dir" && as_dir=.
5282    for ac_exec_ext in '' $ac_executable_extensions; do
5283  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5284    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5285    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5286    break 2
5287  fi
5288done
5289  done
5290IFS=$as_save_IFS
5291
5292fi
5293fi
5294ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5295if test -n "$ac_ct_OBJDUMP"; then
5296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5297$as_echo "$ac_ct_OBJDUMP" >&6; }
5298else
5299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5300$as_echo "no" >&6; }
5301fi
5302
5303  if test "x$ac_ct_OBJDUMP" = x; then
5304    OBJDUMP="false"
5305  else
5306    case $cross_compiling:$ac_tool_warned in
5307yes:)
5308{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5309$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5310ac_tool_warned=yes ;;
5311esac
5312    OBJDUMP=$ac_ct_OBJDUMP
5313  fi
5314else
5315  OBJDUMP="$ac_cv_prog_OBJDUMP"
5316fi
5317
5318  ;;
5319esac
5320
5321test -z "$AS" && AS=as
5322
5323
5324
5325
5326
5327test -z "$DLLTOOL" && DLLTOOL=dlltool
5328
5329
5330
5331
5332
5333test -z "$OBJDUMP" && OBJDUMP=objdump
5334
5335
5336
5337
5338
5339
5340
5341case `pwd` in
5342  *\ * | *\	*)
5343    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5344$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5345esac
5346
5347
5348
5349macro_version='2.4.2'
5350macro_revision='1.3337'
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364ltmain="$ac_aux_dir/ltmain.sh"
5365
5366# Backslashify metacharacters that are still active within
5367# double-quoted strings.
5368sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5369
5370# Same as above, but do not quote variable references.
5371double_quote_subst='s/\(["`\\]\)/\\\1/g'
5372
5373# Sed substitution to delay expansion of an escaped shell variable in a
5374# double_quote_subst'ed string.
5375delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5376
5377# Sed substitution to delay expansion of an escaped single quote.
5378delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5379
5380# Sed substitution to avoid accidental globbing in evaled expressions
5381no_glob_subst='s/\*/\\\*/g'
5382
5383ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5384ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5385ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5386
5387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5388$as_echo_n "checking how to print strings... " >&6; }
5389# Test print first, because it will be a builtin if present.
5390if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5391   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5392  ECHO='print -r --'
5393elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5394  ECHO='printf %s\n'
5395else
5396  # Use this function as a fallback that always works.
5397  func_fallback_echo ()
5398  {
5399    eval 'cat <<_LTECHO_EOF
5400$1
5401_LTECHO_EOF'
5402  }
5403  ECHO='func_fallback_echo'
5404fi
5405
5406# func_echo_all arg...
5407# Invoke $ECHO with all args, space-separated.
5408func_echo_all ()
5409{
5410    $ECHO ""
5411}
5412
5413case "$ECHO" in
5414  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5415$as_echo "printf" >&6; } ;;
5416  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5417$as_echo "print -r" >&6; } ;;
5418  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5419$as_echo "cat" >&6; } ;;
5420esac
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5436$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5437if ${ac_cv_path_SED+:} false; then :
5438  $as_echo_n "(cached) " >&6
5439else
5440            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5441     for ac_i in 1 2 3 4 5 6 7; do
5442       ac_script="$ac_script$as_nl$ac_script"
5443     done
5444     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5445     { ac_script=; unset ac_script;}
5446     if test -z "$SED"; then
5447  ac_path_SED_found=false
5448  # Loop through the user's path and test for each of PROGNAME-LIST
5449  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5450for as_dir in $PATH
5451do
5452  IFS=$as_save_IFS
5453  test -z "$as_dir" && as_dir=.
5454    for ac_prog in sed gsed; do
5455    for ac_exec_ext in '' $ac_executable_extensions; do
5456      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5457      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5458# Check for GNU ac_path_SED and select it if it is found.
5459  # Check for GNU $ac_path_SED
5460case `"$ac_path_SED" --version 2>&1` in
5461*GNU*)
5462  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5463*)
5464  ac_count=0
5465  $as_echo_n 0123456789 >"conftest.in"
5466  while :
5467  do
5468    cat "conftest.in" "conftest.in" >"conftest.tmp"
5469    mv "conftest.tmp" "conftest.in"
5470    cp "conftest.in" "conftest.nl"
5471    $as_echo '' >> "conftest.nl"
5472    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5473    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5474    as_fn_arith $ac_count + 1 && ac_count=$as_val
5475    if test $ac_count -gt ${ac_path_SED_max-0}; then
5476      # Best one so far, save it but keep looking for a better one
5477      ac_cv_path_SED="$ac_path_SED"
5478      ac_path_SED_max=$ac_count
5479    fi
5480    # 10*(2^10) chars as input seems more than enough
5481    test $ac_count -gt 10 && break
5482  done
5483  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5484esac
5485
5486      $ac_path_SED_found && break 3
5487    done
5488  done
5489  done
5490IFS=$as_save_IFS
5491  if test -z "$ac_cv_path_SED"; then
5492    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5493  fi
5494else
5495  ac_cv_path_SED=$SED
5496fi
5497
5498fi
5499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5500$as_echo "$ac_cv_path_SED" >&6; }
5501 SED="$ac_cv_path_SED"
5502  rm -f conftest.sed
5503
5504test -z "$SED" && SED=sed
5505Xsed="$SED -e 1s/^X//"
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5518$as_echo_n "checking for fgrep... " >&6; }
5519if ${ac_cv_path_FGREP+:} false; then :
5520  $as_echo_n "(cached) " >&6
5521else
5522  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5523   then ac_cv_path_FGREP="$GREP -F"
5524   else
5525     if test -z "$FGREP"; then
5526  ac_path_FGREP_found=false
5527  # Loop through the user's path and test for each of PROGNAME-LIST
5528  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5529for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5530do
5531  IFS=$as_save_IFS
5532  test -z "$as_dir" && as_dir=.
5533    for ac_prog in fgrep; do
5534    for ac_exec_ext in '' $ac_executable_extensions; do
5535      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5536      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5537# Check for GNU ac_path_FGREP and select it if it is found.
5538  # Check for GNU $ac_path_FGREP
5539case `"$ac_path_FGREP" --version 2>&1` in
5540*GNU*)
5541  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5542*)
5543  ac_count=0
5544  $as_echo_n 0123456789 >"conftest.in"
5545  while :
5546  do
5547    cat "conftest.in" "conftest.in" >"conftest.tmp"
5548    mv "conftest.tmp" "conftest.in"
5549    cp "conftest.in" "conftest.nl"
5550    $as_echo 'FGREP' >> "conftest.nl"
5551    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5552    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5553    as_fn_arith $ac_count + 1 && ac_count=$as_val
5554    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5555      # Best one so far, save it but keep looking for a better one
5556      ac_cv_path_FGREP="$ac_path_FGREP"
5557      ac_path_FGREP_max=$ac_count
5558    fi
5559    # 10*(2^10) chars as input seems more than enough
5560    test $ac_count -gt 10 && break
5561  done
5562  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5563esac
5564
5565      $ac_path_FGREP_found && break 3
5566    done
5567  done
5568  done
5569IFS=$as_save_IFS
5570  if test -z "$ac_cv_path_FGREP"; then
5571    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5572  fi
5573else
5574  ac_cv_path_FGREP=$FGREP
5575fi
5576
5577   fi
5578fi
5579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5580$as_echo "$ac_cv_path_FGREP" >&6; }
5581 FGREP="$ac_cv_path_FGREP"
5582
5583
5584test -z "$GREP" && GREP=grep
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604# Check whether --with-gnu-ld was given.
5605if test "${with_gnu_ld+set}" = set; then :
5606  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5607else
5608  with_gnu_ld=no
5609fi
5610
5611ac_prog=ld
5612if test "$GCC" = yes; then
5613  # Check if gcc -print-prog-name=ld gives a path.
5614  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5615$as_echo_n "checking for ld used by $CC... " >&6; }
5616  case $host in
5617  *-*-mingw*)
5618    # gcc leaves a trailing carriage return which upsets mingw
5619    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5620  *)
5621    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5622  esac
5623  case $ac_prog in
5624    # Accept absolute paths.
5625    [\\/]* | ?:[\\/]*)
5626      re_direlt='/[^/][^/]*/\.\./'
5627      # Canonicalize the pathname of ld
5628      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5629      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5630	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5631      done
5632      test -z "$LD" && LD="$ac_prog"
5633      ;;
5634  "")
5635    # If it fails, then pretend we aren't using GCC.
5636    ac_prog=ld
5637    ;;
5638  *)
5639    # If it is relative, then search for the first ld in PATH.
5640    with_gnu_ld=unknown
5641    ;;
5642  esac
5643elif test "$with_gnu_ld" = yes; then
5644  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5645$as_echo_n "checking for GNU ld... " >&6; }
5646else
5647  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5648$as_echo_n "checking for non-GNU ld... " >&6; }
5649fi
5650if ${lt_cv_path_LD+:} false; then :
5651  $as_echo_n "(cached) " >&6
5652else
5653  if test -z "$LD"; then
5654  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5655  for ac_dir in $PATH; do
5656    IFS="$lt_save_ifs"
5657    test -z "$ac_dir" && ac_dir=.
5658    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5659      lt_cv_path_LD="$ac_dir/$ac_prog"
5660      # Check to see if the program is GNU ld.  I'd rather use --version,
5661      # but apparently some variants of GNU ld only accept -v.
5662      # Break only if it was the GNU/non-GNU ld that we prefer.
5663      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5664      *GNU* | *'with BFD'*)
5665	test "$with_gnu_ld" != no && break
5666	;;
5667      *)
5668	test "$with_gnu_ld" != yes && break
5669	;;
5670      esac
5671    fi
5672  done
5673  IFS="$lt_save_ifs"
5674else
5675  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5676fi
5677fi
5678
5679LD="$lt_cv_path_LD"
5680if test -n "$LD"; then
5681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5682$as_echo "$LD" >&6; }
5683else
5684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5685$as_echo "no" >&6; }
5686fi
5687test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5689$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5690if ${lt_cv_prog_gnu_ld+:} false; then :
5691  $as_echo_n "(cached) " >&6
5692else
5693  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5694case `$LD -v 2>&1 </dev/null` in
5695*GNU* | *'with BFD'*)
5696  lt_cv_prog_gnu_ld=yes
5697  ;;
5698*)
5699  lt_cv_prog_gnu_ld=no
5700  ;;
5701esac
5702fi
5703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5704$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5705with_gnu_ld=$lt_cv_prog_gnu_ld
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5716$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5717if ${lt_cv_path_NM+:} false; then :
5718  $as_echo_n "(cached) " >&6
5719else
5720  if test -n "$NM"; then
5721  # Let the user override the test.
5722  lt_cv_path_NM="$NM"
5723else
5724  lt_nm_to_check="${ac_tool_prefix}nm"
5725  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5726    lt_nm_to_check="$lt_nm_to_check nm"
5727  fi
5728  for lt_tmp_nm in $lt_nm_to_check; do
5729    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5730    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5731      IFS="$lt_save_ifs"
5732      test -z "$ac_dir" && ac_dir=.
5733      tmp_nm="$ac_dir/$lt_tmp_nm"
5734      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5735	# Check to see if the nm accepts a BSD-compat flag.
5736	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5737	#   nm: unknown option "B" ignored
5738	# Tru64's nm complains that /dev/null is an invalid object file
5739	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5740	*/dev/null* | *'Invalid file or object type'*)
5741	  lt_cv_path_NM="$tmp_nm -B"
5742	  break
5743	  ;;
5744	*)
5745	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5746	  */dev/null*)
5747	    lt_cv_path_NM="$tmp_nm -p"
5748	    break
5749	    ;;
5750	  *)
5751	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5752	    continue # so that we can try to find one that supports BSD flags
5753	    ;;
5754	  esac
5755	  ;;
5756	esac
5757      fi
5758    done
5759    IFS="$lt_save_ifs"
5760  done
5761  : ${lt_cv_path_NM=no}
5762fi
5763fi
5764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5765$as_echo "$lt_cv_path_NM" >&6; }
5766if test "$lt_cv_path_NM" != "no"; then
5767  NM="$lt_cv_path_NM"
5768else
5769  # Didn't find any BSD compatible name lister, look for dumpbin.
5770  if test -n "$DUMPBIN"; then :
5771    # Let the user override the test.
5772  else
5773    if test -n "$ac_tool_prefix"; then
5774  for ac_prog in dumpbin "link -dump"
5775  do
5776    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5777set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5779$as_echo_n "checking for $ac_word... " >&6; }
5780if ${ac_cv_prog_DUMPBIN+:} false; then :
5781  $as_echo_n "(cached) " >&6
5782else
5783  if test -n "$DUMPBIN"; then
5784  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5785else
5786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5787for as_dir in $PATH
5788do
5789  IFS=$as_save_IFS
5790  test -z "$as_dir" && as_dir=.
5791    for ac_exec_ext in '' $ac_executable_extensions; do
5792  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5793    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5794    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5795    break 2
5796  fi
5797done
5798  done
5799IFS=$as_save_IFS
5800
5801fi
5802fi
5803DUMPBIN=$ac_cv_prog_DUMPBIN
5804if test -n "$DUMPBIN"; then
5805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5806$as_echo "$DUMPBIN" >&6; }
5807else
5808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5809$as_echo "no" >&6; }
5810fi
5811
5812
5813    test -n "$DUMPBIN" && break
5814  done
5815fi
5816if test -z "$DUMPBIN"; then
5817  ac_ct_DUMPBIN=$DUMPBIN
5818  for ac_prog in dumpbin "link -dump"
5819do
5820  # Extract the first word of "$ac_prog", so it can be a program name with args.
5821set dummy $ac_prog; ac_word=$2
5822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5823$as_echo_n "checking for $ac_word... " >&6; }
5824if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5825  $as_echo_n "(cached) " >&6
5826else
5827  if test -n "$ac_ct_DUMPBIN"; then
5828  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5829else
5830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5831for as_dir in $PATH
5832do
5833  IFS=$as_save_IFS
5834  test -z "$as_dir" && as_dir=.
5835    for ac_exec_ext in '' $ac_executable_extensions; do
5836  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5837    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5838    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5839    break 2
5840  fi
5841done
5842  done
5843IFS=$as_save_IFS
5844
5845fi
5846fi
5847ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5848if test -n "$ac_ct_DUMPBIN"; then
5849  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5850$as_echo "$ac_ct_DUMPBIN" >&6; }
5851else
5852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5853$as_echo "no" >&6; }
5854fi
5855
5856
5857  test -n "$ac_ct_DUMPBIN" && break
5858done
5859
5860  if test "x$ac_ct_DUMPBIN" = x; then
5861    DUMPBIN=":"
5862  else
5863    case $cross_compiling:$ac_tool_warned in
5864yes:)
5865{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5866$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5867ac_tool_warned=yes ;;
5868esac
5869    DUMPBIN=$ac_ct_DUMPBIN
5870  fi
5871fi
5872
5873    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5874    *COFF*)
5875      DUMPBIN="$DUMPBIN -symbols"
5876      ;;
5877    *)
5878      DUMPBIN=:
5879      ;;
5880    esac
5881  fi
5882
5883  if test "$DUMPBIN" != ":"; then
5884    NM="$DUMPBIN"
5885  fi
5886fi
5887test -z "$NM" && NM=nm
5888
5889
5890
5891
5892
5893
5894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5895$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5896if ${lt_cv_nm_interface+:} false; then :
5897  $as_echo_n "(cached) " >&6
5898else
5899  lt_cv_nm_interface="BSD nm"
5900  echo "int some_variable = 0;" > conftest.$ac_ext
5901  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5902  (eval "$ac_compile" 2>conftest.err)
5903  cat conftest.err >&5
5904  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5905  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5906  cat conftest.err >&5
5907  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5908  cat conftest.out >&5
5909  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5910    lt_cv_nm_interface="MS dumpbin"
5911  fi
5912  rm -f conftest*
5913fi
5914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5915$as_echo "$lt_cv_nm_interface" >&6; }
5916
5917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5918$as_echo_n "checking whether ln -s works... " >&6; }
5919LN_S=$as_ln_s
5920if test "$LN_S" = "ln -s"; then
5921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5922$as_echo "yes" >&6; }
5923else
5924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5925$as_echo "no, using $LN_S" >&6; }
5926fi
5927
5928# find the maximum length of command line arguments
5929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5930$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5931if ${lt_cv_sys_max_cmd_len+:} false; then :
5932  $as_echo_n "(cached) " >&6
5933else
5934    i=0
5935  teststring="ABCD"
5936
5937  case $build_os in
5938  msdosdjgpp*)
5939    # On DJGPP, this test can blow up pretty badly due to problems in libc
5940    # (any single argument exceeding 2000 bytes causes a buffer overrun
5941    # during glob expansion).  Even if it were fixed, the result of this
5942    # check would be larger than it should be.
5943    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5944    ;;
5945
5946  gnu*)
5947    # Under GNU Hurd, this test is not required because there is
5948    # no limit to the length of command line arguments.
5949    # Libtool will interpret -1 as no limit whatsoever
5950    lt_cv_sys_max_cmd_len=-1;
5951    ;;
5952
5953  cygwin* | mingw* | cegcc*)
5954    # On Win9x/ME, this test blows up -- it succeeds, but takes
5955    # about 5 minutes as the teststring grows exponentially.
5956    # Worse, since 9x/ME are not pre-emptively multitasking,
5957    # you end up with a "frozen" computer, even though with patience
5958    # the test eventually succeeds (with a max line length of 256k).
5959    # Instead, let's just punt: use the minimum linelength reported by
5960    # all of the supported platforms: 8192 (on NT/2K/XP).
5961    lt_cv_sys_max_cmd_len=8192;
5962    ;;
5963
5964  mint*)
5965    # On MiNT this can take a long time and run out of memory.
5966    lt_cv_sys_max_cmd_len=8192;
5967    ;;
5968
5969  amigaos*)
5970    # On AmigaOS with pdksh, this test takes hours, literally.
5971    # So we just punt and use a minimum line length of 8192.
5972    lt_cv_sys_max_cmd_len=8192;
5973    ;;
5974
5975  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5976    # This has been around since 386BSD, at least.  Likely further.
5977    if test -x /sbin/sysctl; then
5978      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5979    elif test -x /usr/sbin/sysctl; then
5980      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5981    else
5982      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5983    fi
5984    # And add a safety zone
5985    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5986    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5987    ;;
5988
5989  interix*)
5990    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5991    lt_cv_sys_max_cmd_len=196608
5992    ;;
5993
5994  os2*)
5995    # The test takes a long time on OS/2.
5996    lt_cv_sys_max_cmd_len=8192
5997    ;;
5998
5999  osf*)
6000    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6001    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6002    # nice to cause kernel panics so lets avoid the loop below.
6003    # First set a reasonable default.
6004    lt_cv_sys_max_cmd_len=16384
6005    #
6006    if test -x /sbin/sysconfig; then
6007      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6008        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6009      esac
6010    fi
6011    ;;
6012  sco3.2v5*)
6013    lt_cv_sys_max_cmd_len=102400
6014    ;;
6015  sysv5* | sco5v6* | sysv4.2uw2*)
6016    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6017    if test -n "$kargmax"; then
6018      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6019    else
6020      lt_cv_sys_max_cmd_len=32768
6021    fi
6022    ;;
6023  *)
6024    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6025    if test -n "$lt_cv_sys_max_cmd_len"; then
6026      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6027      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6028    else
6029      # Make teststring a little bigger before we do anything with it.
6030      # a 1K string should be a reasonable start.
6031      for i in 1 2 3 4 5 6 7 8 ; do
6032        teststring=$teststring$teststring
6033      done
6034      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6035      # If test is not a shell built-in, we'll probably end up computing a
6036      # maximum length that is only half of the actual maximum length, but
6037      # we can't tell.
6038      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6039	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6040	      test $i != 17 # 1/2 MB should be enough
6041      do
6042        i=`expr $i + 1`
6043        teststring=$teststring$teststring
6044      done
6045      # Only check the string length outside the loop.
6046      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6047      teststring=
6048      # Add a significant safety factor because C++ compilers can tack on
6049      # massive amounts of additional arguments before passing them to the
6050      # linker.  It appears as though 1/2 is a usable value.
6051      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6052    fi
6053    ;;
6054  esac
6055
6056fi
6057
6058if test -n $lt_cv_sys_max_cmd_len ; then
6059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6060$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6061else
6062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6063$as_echo "none" >&6; }
6064fi
6065max_cmd_len=$lt_cv_sys_max_cmd_len
6066
6067
6068
6069
6070
6071
6072: ${CP="cp -f"}
6073: ${MV="mv -f"}
6074: ${RM="rm -f"}
6075
6076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6077$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6078# Try some XSI features
6079xsi_shell=no
6080( _lt_dummy="a/b/c"
6081  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6082      = c,a/b,b/c, \
6083    && eval 'test $(( 1 + 1 )) -eq 2 \
6084    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6085  && xsi_shell=yes
6086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6087$as_echo "$xsi_shell" >&6; }
6088
6089
6090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6091$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6092lt_shell_append=no
6093( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6094    >/dev/null 2>&1 \
6095  && lt_shell_append=yes
6096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6097$as_echo "$lt_shell_append" >&6; }
6098
6099
6100if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6101  lt_unset=unset
6102else
6103  lt_unset=false
6104fi
6105
6106
6107
6108
6109
6110# test EBCDIC or ASCII
6111case `echo X|tr X '\101'` in
6112 A) # ASCII based system
6113    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6114  lt_SP2NL='tr \040 \012'
6115  lt_NL2SP='tr \015\012 \040\040'
6116  ;;
6117 *) # EBCDIC based system
6118  lt_SP2NL='tr \100 \n'
6119  lt_NL2SP='tr \r\n \100\100'
6120  ;;
6121esac
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6132$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6133if ${lt_cv_to_host_file_cmd+:} false; then :
6134  $as_echo_n "(cached) " >&6
6135else
6136  case $host in
6137  *-*-mingw* )
6138    case $build in
6139      *-*-mingw* ) # actually msys
6140        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6141        ;;
6142      *-*-cygwin* )
6143        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6144        ;;
6145      * ) # otherwise, assume *nix
6146        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6147        ;;
6148    esac
6149    ;;
6150  *-*-cygwin* )
6151    case $build in
6152      *-*-mingw* ) # actually msys
6153        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6154        ;;
6155      *-*-cygwin* )
6156        lt_cv_to_host_file_cmd=func_convert_file_noop
6157        ;;
6158      * ) # otherwise, assume *nix
6159        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6160        ;;
6161    esac
6162    ;;
6163  * ) # unhandled hosts (and "normal" native builds)
6164    lt_cv_to_host_file_cmd=func_convert_file_noop
6165    ;;
6166esac
6167
6168fi
6169
6170to_host_file_cmd=$lt_cv_to_host_file_cmd
6171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6172$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6173
6174
6175
6176
6177
6178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6179$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6180if ${lt_cv_to_tool_file_cmd+:} false; then :
6181  $as_echo_n "(cached) " >&6
6182else
6183  #assume ordinary cross tools, or native build.
6184lt_cv_to_tool_file_cmd=func_convert_file_noop
6185case $host in
6186  *-*-mingw* )
6187    case $build in
6188      *-*-mingw* ) # actually msys
6189        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6190        ;;
6191    esac
6192    ;;
6193esac
6194
6195fi
6196
6197to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6199$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6200
6201
6202
6203
6204
6205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6206$as_echo_n "checking for $LD option to reload object files... " >&6; }
6207if ${lt_cv_ld_reload_flag+:} false; then :
6208  $as_echo_n "(cached) " >&6
6209else
6210  lt_cv_ld_reload_flag='-r'
6211fi
6212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6213$as_echo "$lt_cv_ld_reload_flag" >&6; }
6214reload_flag=$lt_cv_ld_reload_flag
6215case $reload_flag in
6216"" | " "*) ;;
6217*) reload_flag=" $reload_flag" ;;
6218esac
6219reload_cmds='$LD$reload_flag -o $output$reload_objs'
6220case $host_os in
6221  cygwin* | mingw* | pw32* | cegcc*)
6222    if test "$GCC" != yes; then
6223      reload_cmds=false
6224    fi
6225    ;;
6226  darwin*)
6227    if test "$GCC" = yes; then
6228      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6229    else
6230      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6231    fi
6232    ;;
6233esac
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243if test -n "$ac_tool_prefix"; then
6244  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6245set dummy ${ac_tool_prefix}objdump; ac_word=$2
6246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6247$as_echo_n "checking for $ac_word... " >&6; }
6248if ${ac_cv_prog_OBJDUMP+:} false; then :
6249  $as_echo_n "(cached) " >&6
6250else
6251  if test -n "$OBJDUMP"; then
6252  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6253else
6254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6255for as_dir in $PATH
6256do
6257  IFS=$as_save_IFS
6258  test -z "$as_dir" && as_dir=.
6259    for ac_exec_ext in '' $ac_executable_extensions; do
6260  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6261    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6262    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6263    break 2
6264  fi
6265done
6266  done
6267IFS=$as_save_IFS
6268
6269fi
6270fi
6271OBJDUMP=$ac_cv_prog_OBJDUMP
6272if test -n "$OBJDUMP"; then
6273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6274$as_echo "$OBJDUMP" >&6; }
6275else
6276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6277$as_echo "no" >&6; }
6278fi
6279
6280
6281fi
6282if test -z "$ac_cv_prog_OBJDUMP"; then
6283  ac_ct_OBJDUMP=$OBJDUMP
6284  # Extract the first word of "objdump", so it can be a program name with args.
6285set dummy objdump; ac_word=$2
6286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6287$as_echo_n "checking for $ac_word... " >&6; }
6288if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6289  $as_echo_n "(cached) " >&6
6290else
6291  if test -n "$ac_ct_OBJDUMP"; then
6292  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6293else
6294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6295for as_dir in $PATH
6296do
6297  IFS=$as_save_IFS
6298  test -z "$as_dir" && as_dir=.
6299    for ac_exec_ext in '' $ac_executable_extensions; do
6300  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6301    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6302    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6303    break 2
6304  fi
6305done
6306  done
6307IFS=$as_save_IFS
6308
6309fi
6310fi
6311ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6312if test -n "$ac_ct_OBJDUMP"; then
6313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6314$as_echo "$ac_ct_OBJDUMP" >&6; }
6315else
6316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6317$as_echo "no" >&6; }
6318fi
6319
6320  if test "x$ac_ct_OBJDUMP" = x; then
6321    OBJDUMP="false"
6322  else
6323    case $cross_compiling:$ac_tool_warned in
6324yes:)
6325{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6326$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6327ac_tool_warned=yes ;;
6328esac
6329    OBJDUMP=$ac_ct_OBJDUMP
6330  fi
6331else
6332  OBJDUMP="$ac_cv_prog_OBJDUMP"
6333fi
6334
6335test -z "$OBJDUMP" && OBJDUMP=objdump
6336
6337
6338
6339
6340
6341
6342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6343$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6344if ${lt_cv_deplibs_check_method+:} false; then :
6345  $as_echo_n "(cached) " >&6
6346else
6347  lt_cv_file_magic_cmd='$MAGIC_CMD'
6348lt_cv_file_magic_test_file=
6349lt_cv_deplibs_check_method='unknown'
6350# Need to set the preceding variable on all platforms that support
6351# interlibrary dependencies.
6352# 'none' -- dependencies not supported.
6353# `unknown' -- same as none, but documents that we really don't know.
6354# 'pass_all' -- all dependencies passed with no checks.
6355# 'test_compile' -- check by making test program.
6356# 'file_magic [[regex]]' -- check by looking for files in library path
6357# which responds to the $file_magic_cmd with a given extended regex.
6358# If you have `file' or equivalent on your system and you're not sure
6359# whether `pass_all' will *always* work, you probably want this one.
6360
6361case $host_os in
6362aix[4-9]*)
6363  lt_cv_deplibs_check_method=pass_all
6364  ;;
6365
6366beos*)
6367  lt_cv_deplibs_check_method=pass_all
6368  ;;
6369
6370bsdi[45]*)
6371  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6372  lt_cv_file_magic_cmd='/usr/bin/file -L'
6373  lt_cv_file_magic_test_file=/shlib/libc.so
6374  ;;
6375
6376cygwin*)
6377  # func_win32_libid is a shell function defined in ltmain.sh
6378  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6379  lt_cv_file_magic_cmd='func_win32_libid'
6380  ;;
6381
6382mingw* | pw32*)
6383  # Base MSYS/MinGW do not provide the 'file' command needed by
6384  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6385  # unless we find 'file', for example because we are cross-compiling.
6386  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6387  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6388    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6389    lt_cv_file_magic_cmd='func_win32_libid'
6390  else
6391    # Keep this pattern in sync with the one in func_win32_libid.
6392    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6393    lt_cv_file_magic_cmd='$OBJDUMP -f'
6394  fi
6395  ;;
6396
6397cegcc*)
6398  # use the weaker test based on 'objdump'. See mingw*.
6399  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6400  lt_cv_file_magic_cmd='$OBJDUMP -f'
6401  ;;
6402
6403darwin* | rhapsody*)
6404  lt_cv_deplibs_check_method=pass_all
6405  ;;
6406
6407freebsd* | dragonfly*)
6408  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6409    case $host_cpu in
6410    i*86 )
6411      # Not sure whether the presence of OpenBSD here was a mistake.
6412      # Let's accept both of them until this is cleared up.
6413      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6414      lt_cv_file_magic_cmd=/usr/bin/file
6415      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6416      ;;
6417    esac
6418  else
6419    lt_cv_deplibs_check_method=pass_all
6420  fi
6421  ;;
6422
6423gnu*)
6424  lt_cv_deplibs_check_method=pass_all
6425  ;;
6426
6427haiku*)
6428  lt_cv_deplibs_check_method=pass_all
6429  ;;
6430
6431hpux10.20* | hpux11*)
6432  lt_cv_file_magic_cmd=/usr/bin/file
6433  case $host_cpu in
6434  ia64*)
6435    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6436    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6437    ;;
6438  hppa*64*)
6439    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]'
6440    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6441    ;;
6442  *)
6443    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6444    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6445    ;;
6446  esac
6447  ;;
6448
6449interix[3-9]*)
6450  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6451  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6452  ;;
6453
6454irix5* | irix6* | nonstopux*)
6455  case $LD in
6456  *-32|*"-32 ") libmagic=32-bit;;
6457  *-n32|*"-n32 ") libmagic=N32;;
6458  *-64|*"-64 ") libmagic=64-bit;;
6459  *) libmagic=never-match;;
6460  esac
6461  lt_cv_deplibs_check_method=pass_all
6462  ;;
6463
6464# This must be glibc/ELF.
6465linux* | k*bsd*-gnu | kopensolaris*-gnu)
6466  lt_cv_deplibs_check_method=pass_all
6467  ;;
6468
6469netbsd*)
6470  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6471    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6472  else
6473    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6474  fi
6475  ;;
6476
6477newos6*)
6478  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6479  lt_cv_file_magic_cmd=/usr/bin/file
6480  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6481  ;;
6482
6483*nto* | *qnx*)
6484  lt_cv_deplibs_check_method=pass_all
6485  ;;
6486
6487openbsd*)
6488  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6489    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6490  else
6491    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6492  fi
6493  ;;
6494
6495osf3* | osf4* | osf5*)
6496  lt_cv_deplibs_check_method=pass_all
6497  ;;
6498
6499rdos*)
6500  lt_cv_deplibs_check_method=pass_all
6501  ;;
6502
6503solaris*)
6504  lt_cv_deplibs_check_method=pass_all
6505  ;;
6506
6507sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6508  lt_cv_deplibs_check_method=pass_all
6509  ;;
6510
6511sysv4 | sysv4.3*)
6512  case $host_vendor in
6513  motorola)
6514    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]'
6515    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6516    ;;
6517  ncr)
6518    lt_cv_deplibs_check_method=pass_all
6519    ;;
6520  sequent)
6521    lt_cv_file_magic_cmd='/bin/file'
6522    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6523    ;;
6524  sni)
6525    lt_cv_file_magic_cmd='/bin/file'
6526    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6527    lt_cv_file_magic_test_file=/lib/libc.so
6528    ;;
6529  siemens)
6530    lt_cv_deplibs_check_method=pass_all
6531    ;;
6532  pc)
6533    lt_cv_deplibs_check_method=pass_all
6534    ;;
6535  esac
6536  ;;
6537
6538tpf*)
6539  lt_cv_deplibs_check_method=pass_all
6540  ;;
6541esac
6542
6543fi
6544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6545$as_echo "$lt_cv_deplibs_check_method" >&6; }
6546
6547file_magic_glob=
6548want_nocaseglob=no
6549if test "$build" = "$host"; then
6550  case $host_os in
6551  mingw* | pw32*)
6552    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6553      want_nocaseglob=yes
6554    else
6555      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6556    fi
6557    ;;
6558  esac
6559fi
6560
6561file_magic_cmd=$lt_cv_file_magic_cmd
6562deplibs_check_method=$lt_cv_deplibs_check_method
6563test -z "$deplibs_check_method" && deplibs_check_method=unknown
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586if test -n "$ac_tool_prefix"; then
6587  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6588set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6590$as_echo_n "checking for $ac_word... " >&6; }
6591if ${ac_cv_prog_DLLTOOL+:} false; then :
6592  $as_echo_n "(cached) " >&6
6593else
6594  if test -n "$DLLTOOL"; then
6595  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6596else
6597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598for as_dir in $PATH
6599do
6600  IFS=$as_save_IFS
6601  test -z "$as_dir" && as_dir=.
6602    for ac_exec_ext in '' $ac_executable_extensions; do
6603  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6604    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6605    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6606    break 2
6607  fi
6608done
6609  done
6610IFS=$as_save_IFS
6611
6612fi
6613fi
6614DLLTOOL=$ac_cv_prog_DLLTOOL
6615if test -n "$DLLTOOL"; then
6616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6617$as_echo "$DLLTOOL" >&6; }
6618else
6619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6620$as_echo "no" >&6; }
6621fi
6622
6623
6624fi
6625if test -z "$ac_cv_prog_DLLTOOL"; then
6626  ac_ct_DLLTOOL=$DLLTOOL
6627  # Extract the first word of "dlltool", so it can be a program name with args.
6628set dummy dlltool; ac_word=$2
6629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6630$as_echo_n "checking for $ac_word... " >&6; }
6631if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6632  $as_echo_n "(cached) " >&6
6633else
6634  if test -n "$ac_ct_DLLTOOL"; then
6635  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6636else
6637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638for as_dir in $PATH
6639do
6640  IFS=$as_save_IFS
6641  test -z "$as_dir" && as_dir=.
6642    for ac_exec_ext in '' $ac_executable_extensions; do
6643  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6644    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6645    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6646    break 2
6647  fi
6648done
6649  done
6650IFS=$as_save_IFS
6651
6652fi
6653fi
6654ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6655if test -n "$ac_ct_DLLTOOL"; then
6656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6657$as_echo "$ac_ct_DLLTOOL" >&6; }
6658else
6659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6660$as_echo "no" >&6; }
6661fi
6662
6663  if test "x$ac_ct_DLLTOOL" = x; then
6664    DLLTOOL="false"
6665  else
6666    case $cross_compiling:$ac_tool_warned in
6667yes:)
6668{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6669$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6670ac_tool_warned=yes ;;
6671esac
6672    DLLTOOL=$ac_ct_DLLTOOL
6673  fi
6674else
6675  DLLTOOL="$ac_cv_prog_DLLTOOL"
6676fi
6677
6678test -z "$DLLTOOL" && DLLTOOL=dlltool
6679
6680
6681
6682
6683
6684
6685
6686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6687$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6688if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6689  $as_echo_n "(cached) " >&6
6690else
6691  lt_cv_sharedlib_from_linklib_cmd='unknown'
6692
6693case $host_os in
6694cygwin* | mingw* | pw32* | cegcc*)
6695  # two different shell functions defined in ltmain.sh
6696  # decide which to use based on capabilities of $DLLTOOL
6697  case `$DLLTOOL --help 2>&1` in
6698  *--identify-strict*)
6699    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6700    ;;
6701  *)
6702    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6703    ;;
6704  esac
6705  ;;
6706*)
6707  # fallback: assume linklib IS sharedlib
6708  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6709  ;;
6710esac
6711
6712fi
6713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6714$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6715sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6716test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6717
6718
6719
6720
6721
6722
6723
6724if test -n "$ac_tool_prefix"; then
6725  for ac_prog in ar
6726  do
6727    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6728set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6730$as_echo_n "checking for $ac_word... " >&6; }
6731if ${ac_cv_prog_AR+:} false; then :
6732  $as_echo_n "(cached) " >&6
6733else
6734  if test -n "$AR"; then
6735  ac_cv_prog_AR="$AR" # Let the user override the test.
6736else
6737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738for as_dir in $PATH
6739do
6740  IFS=$as_save_IFS
6741  test -z "$as_dir" && as_dir=.
6742    for ac_exec_ext in '' $ac_executable_extensions; do
6743  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6744    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6745    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6746    break 2
6747  fi
6748done
6749  done
6750IFS=$as_save_IFS
6751
6752fi
6753fi
6754AR=$ac_cv_prog_AR
6755if test -n "$AR"; then
6756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6757$as_echo "$AR" >&6; }
6758else
6759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6760$as_echo "no" >&6; }
6761fi
6762
6763
6764    test -n "$AR" && break
6765  done
6766fi
6767if test -z "$AR"; then
6768  ac_ct_AR=$AR
6769  for ac_prog in ar
6770do
6771  # Extract the first word of "$ac_prog", so it can be a program name with args.
6772set dummy $ac_prog; ac_word=$2
6773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6774$as_echo_n "checking for $ac_word... " >&6; }
6775if ${ac_cv_prog_ac_ct_AR+:} false; then :
6776  $as_echo_n "(cached) " >&6
6777else
6778  if test -n "$ac_ct_AR"; then
6779  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6780else
6781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6782for as_dir in $PATH
6783do
6784  IFS=$as_save_IFS
6785  test -z "$as_dir" && as_dir=.
6786    for ac_exec_ext in '' $ac_executable_extensions; do
6787  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6788    ac_cv_prog_ac_ct_AR="$ac_prog"
6789    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6790    break 2
6791  fi
6792done
6793  done
6794IFS=$as_save_IFS
6795
6796fi
6797fi
6798ac_ct_AR=$ac_cv_prog_ac_ct_AR
6799if test -n "$ac_ct_AR"; then
6800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6801$as_echo "$ac_ct_AR" >&6; }
6802else
6803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6804$as_echo "no" >&6; }
6805fi
6806
6807
6808  test -n "$ac_ct_AR" && break
6809done
6810
6811  if test "x$ac_ct_AR" = x; then
6812    AR="false"
6813  else
6814    case $cross_compiling:$ac_tool_warned in
6815yes:)
6816{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6817$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6818ac_tool_warned=yes ;;
6819esac
6820    AR=$ac_ct_AR
6821  fi
6822fi
6823
6824: ${AR=ar}
6825: ${AR_FLAGS=cru}
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6838$as_echo_n "checking for archiver @FILE support... " >&6; }
6839if ${lt_cv_ar_at_file+:} false; then :
6840  $as_echo_n "(cached) " >&6
6841else
6842  lt_cv_ar_at_file=no
6843   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6844/* end confdefs.h.  */
6845
6846int
6847main ()
6848{
6849
6850  ;
6851  return 0;
6852}
6853_ACEOF
6854if ac_fn_c_try_compile "$LINENO"; then :
6855  echo conftest.$ac_objext > conftest.lst
6856      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6857      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6858  (eval $lt_ar_try) 2>&5
6859  ac_status=$?
6860  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6861  test $ac_status = 0; }
6862      if test "$ac_status" -eq 0; then
6863	# Ensure the archiver fails upon bogus file names.
6864	rm -f conftest.$ac_objext libconftest.a
6865	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6866  (eval $lt_ar_try) 2>&5
6867  ac_status=$?
6868  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6869  test $ac_status = 0; }
6870	if test "$ac_status" -ne 0; then
6871          lt_cv_ar_at_file=@
6872        fi
6873      fi
6874      rm -f conftest.* libconftest.a
6875
6876fi
6877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6878
6879fi
6880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6881$as_echo "$lt_cv_ar_at_file" >&6; }
6882
6883if test "x$lt_cv_ar_at_file" = xno; then
6884  archiver_list_spec=
6885else
6886  archiver_list_spec=$lt_cv_ar_at_file
6887fi
6888
6889
6890
6891
6892
6893
6894
6895if test -n "$ac_tool_prefix"; then
6896  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6897set dummy ${ac_tool_prefix}strip; ac_word=$2
6898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6899$as_echo_n "checking for $ac_word... " >&6; }
6900if ${ac_cv_prog_STRIP+:} false; then :
6901  $as_echo_n "(cached) " >&6
6902else
6903  if test -n "$STRIP"; then
6904  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6905else
6906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6907for as_dir in $PATH
6908do
6909  IFS=$as_save_IFS
6910  test -z "$as_dir" && as_dir=.
6911    for ac_exec_ext in '' $ac_executable_extensions; do
6912  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6913    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6914    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6915    break 2
6916  fi
6917done
6918  done
6919IFS=$as_save_IFS
6920
6921fi
6922fi
6923STRIP=$ac_cv_prog_STRIP
6924if test -n "$STRIP"; then
6925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6926$as_echo "$STRIP" >&6; }
6927else
6928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6929$as_echo "no" >&6; }
6930fi
6931
6932
6933fi
6934if test -z "$ac_cv_prog_STRIP"; then
6935  ac_ct_STRIP=$STRIP
6936  # Extract the first word of "strip", so it can be a program name with args.
6937set dummy strip; ac_word=$2
6938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6939$as_echo_n "checking for $ac_word... " >&6; }
6940if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6941  $as_echo_n "(cached) " >&6
6942else
6943  if test -n "$ac_ct_STRIP"; then
6944  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6945else
6946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6947for as_dir in $PATH
6948do
6949  IFS=$as_save_IFS
6950  test -z "$as_dir" && as_dir=.
6951    for ac_exec_ext in '' $ac_executable_extensions; do
6952  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6953    ac_cv_prog_ac_ct_STRIP="strip"
6954    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6955    break 2
6956  fi
6957done
6958  done
6959IFS=$as_save_IFS
6960
6961fi
6962fi
6963ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6964if test -n "$ac_ct_STRIP"; then
6965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6966$as_echo "$ac_ct_STRIP" >&6; }
6967else
6968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6969$as_echo "no" >&6; }
6970fi
6971
6972  if test "x$ac_ct_STRIP" = x; then
6973    STRIP=":"
6974  else
6975    case $cross_compiling:$ac_tool_warned in
6976yes:)
6977{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6978$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6979ac_tool_warned=yes ;;
6980esac
6981    STRIP=$ac_ct_STRIP
6982  fi
6983else
6984  STRIP="$ac_cv_prog_STRIP"
6985fi
6986
6987test -z "$STRIP" && STRIP=:
6988
6989
6990
6991
6992
6993
6994if test -n "$ac_tool_prefix"; then
6995  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6996set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6998$as_echo_n "checking for $ac_word... " >&6; }
6999if ${ac_cv_prog_RANLIB+:} false; then :
7000  $as_echo_n "(cached) " >&6
7001else
7002  if test -n "$RANLIB"; then
7003  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7004else
7005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7006for as_dir in $PATH
7007do
7008  IFS=$as_save_IFS
7009  test -z "$as_dir" && as_dir=.
7010    for ac_exec_ext in '' $ac_executable_extensions; do
7011  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7012    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7013    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7014    break 2
7015  fi
7016done
7017  done
7018IFS=$as_save_IFS
7019
7020fi
7021fi
7022RANLIB=$ac_cv_prog_RANLIB
7023if test -n "$RANLIB"; then
7024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7025$as_echo "$RANLIB" >&6; }
7026else
7027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7028$as_echo "no" >&6; }
7029fi
7030
7031
7032fi
7033if test -z "$ac_cv_prog_RANLIB"; then
7034  ac_ct_RANLIB=$RANLIB
7035  # Extract the first word of "ranlib", so it can be a program name with args.
7036set dummy ranlib; ac_word=$2
7037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7038$as_echo_n "checking for $ac_word... " >&6; }
7039if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7040  $as_echo_n "(cached) " >&6
7041else
7042  if test -n "$ac_ct_RANLIB"; then
7043  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7044else
7045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7046for as_dir in $PATH
7047do
7048  IFS=$as_save_IFS
7049  test -z "$as_dir" && as_dir=.
7050    for ac_exec_ext in '' $ac_executable_extensions; do
7051  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7052    ac_cv_prog_ac_ct_RANLIB="ranlib"
7053    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7054    break 2
7055  fi
7056done
7057  done
7058IFS=$as_save_IFS
7059
7060fi
7061fi
7062ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7063if test -n "$ac_ct_RANLIB"; then
7064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7065$as_echo "$ac_ct_RANLIB" >&6; }
7066else
7067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7068$as_echo "no" >&6; }
7069fi
7070
7071  if test "x$ac_ct_RANLIB" = x; then
7072    RANLIB=":"
7073  else
7074    case $cross_compiling:$ac_tool_warned in
7075yes:)
7076{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7077$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7078ac_tool_warned=yes ;;
7079esac
7080    RANLIB=$ac_ct_RANLIB
7081  fi
7082else
7083  RANLIB="$ac_cv_prog_RANLIB"
7084fi
7085
7086test -z "$RANLIB" && RANLIB=:
7087
7088
7089
7090
7091
7092
7093# Determine commands to create old-style static archives.
7094old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7095old_postinstall_cmds='chmod 644 $oldlib'
7096old_postuninstall_cmds=
7097
7098if test -n "$RANLIB"; then
7099  case $host_os in
7100  openbsd*)
7101    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7102    ;;
7103  *)
7104    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7105    ;;
7106  esac
7107  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7108fi
7109
7110case $host_os in
7111  darwin*)
7112    lock_old_archive_extraction=yes ;;
7113  *)
7114    lock_old_archive_extraction=no ;;
7115esac
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155# If no C compiler was specified, use CC.
7156LTCC=${LTCC-"$CC"}
7157
7158# If no C compiler flags were specified, use CFLAGS.
7159LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7160
7161# Allow CC to be a program name with arguments.
7162compiler=$CC
7163
7164
7165# Check for command to grab the raw symbol name followed by C symbol from nm.
7166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7167$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7168if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7169  $as_echo_n "(cached) " >&6
7170else
7171
7172# These are sane defaults that work on at least a few old systems.
7173# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7174
7175# Character class describing NM global symbol codes.
7176symcode='[BCDEGRST]'
7177
7178# Regexp to match symbols that can be accessed directly from C.
7179sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7180
7181# Define system-specific variables.
7182case $host_os in
7183aix*)
7184  symcode='[BCDT]'
7185  ;;
7186cygwin* | mingw* | pw32* | cegcc*)
7187  symcode='[ABCDGISTW]'
7188  ;;
7189hpux*)
7190  if test "$host_cpu" = ia64; then
7191    symcode='[ABCDEGRST]'
7192  fi
7193  ;;
7194irix* | nonstopux*)
7195  symcode='[BCDEGRST]'
7196  ;;
7197osf*)
7198  symcode='[BCDEGQRST]'
7199  ;;
7200solaris*)
7201  symcode='[BDRT]'
7202  ;;
7203sco3.2v5*)
7204  symcode='[DT]'
7205  ;;
7206sysv4.2uw2*)
7207  symcode='[DT]'
7208  ;;
7209sysv5* | sco5v6* | unixware* | OpenUNIX*)
7210  symcode='[ABDT]'
7211  ;;
7212sysv4)
7213  symcode='[DFNSTU]'
7214  ;;
7215esac
7216
7217# If we're using GNU nm, then use its standard symbol codes.
7218case `$NM -V 2>&1` in
7219*GNU* | *'with BFD'*)
7220  symcode='[ABCDGIRSTW]' ;;
7221esac
7222
7223# Transform an extracted symbol line into a proper C declaration.
7224# Some systems (esp. on ia64) link data and code symbols differently,
7225# so use this general approach.
7226lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7227
7228# Transform an extracted symbol line into symbol name and symbol address
7229lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7230lt_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'"
7231
7232# Handle CRLF in mingw tool chain
7233opt_cr=
7234case $build_os in
7235mingw*)
7236  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7237  ;;
7238esac
7239
7240# Try without a prefix underscore, then with it.
7241for ac_symprfx in "" "_"; do
7242
7243  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7244  symxfrm="\\1 $ac_symprfx\\2 \\2"
7245
7246  # Write the raw and C identifiers.
7247  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7248    # Fake it for dumpbin and say T for any non-static function
7249    # and D for any global variable.
7250    # Also find C++ and __fastcall symbols from MSVC++,
7251    # which start with @ or ?.
7252    lt_cv_sys_global_symbol_pipe="$AWK '"\
7253"     {last_section=section; section=\$ 3};"\
7254"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7255"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7256"     \$ 0!~/External *\|/{next};"\
7257"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7258"     {if(hide[section]) next};"\
7259"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7260"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7261"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7262"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7263"     ' prfx=^$ac_symprfx"
7264  else
7265    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7266  fi
7267  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7268
7269  # Check to see that the pipe works correctly.
7270  pipe_works=no
7271
7272  rm -f conftest*
7273  cat > conftest.$ac_ext <<_LT_EOF
7274#ifdef __cplusplus
7275extern "C" {
7276#endif
7277char nm_test_var;
7278void nm_test_func(void);
7279void nm_test_func(void){}
7280#ifdef __cplusplus
7281}
7282#endif
7283int main(){nm_test_var='a';nm_test_func();return(0);}
7284_LT_EOF
7285
7286  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7287  (eval $ac_compile) 2>&5
7288  ac_status=$?
7289  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7290  test $ac_status = 0; }; then
7291    # Now try to grab the symbols.
7292    nlist=conftest.nm
7293    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7294  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7295  ac_status=$?
7296  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7297  test $ac_status = 0; } && test -s "$nlist"; then
7298      # Try sorting and uniquifying the output.
7299      if sort "$nlist" | uniq > "$nlist"T; then
7300	mv -f "$nlist"T "$nlist"
7301      else
7302	rm -f "$nlist"T
7303      fi
7304
7305      # Make sure that we snagged all the symbols we need.
7306      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7307	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7308	  cat <<_LT_EOF > conftest.$ac_ext
7309/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7310#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7311/* DATA imports from DLLs on WIN32 con't be const, because runtime
7312   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7313# define LT_DLSYM_CONST
7314#elif defined(__osf__)
7315/* This system does not cope well with relocations in const data.  */
7316# define LT_DLSYM_CONST
7317#else
7318# define LT_DLSYM_CONST const
7319#endif
7320
7321#ifdef __cplusplus
7322extern "C" {
7323#endif
7324
7325_LT_EOF
7326	  # Now generate the symbol file.
7327	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7328
7329	  cat <<_LT_EOF >> conftest.$ac_ext
7330
7331/* The mapping between symbol names and symbols.  */
7332LT_DLSYM_CONST struct {
7333  const char *name;
7334  void       *address;
7335}
7336lt__PROGRAM__LTX_preloaded_symbols[] =
7337{
7338  { "@PROGRAM@", (void *) 0 },
7339_LT_EOF
7340	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7341	  cat <<\_LT_EOF >> conftest.$ac_ext
7342  {0, (void *) 0}
7343};
7344
7345/* This works around a problem in FreeBSD linker */
7346#ifdef FREEBSD_WORKAROUND
7347static const void *lt_preloaded_setup() {
7348  return lt__PROGRAM__LTX_preloaded_symbols;
7349}
7350#endif
7351
7352#ifdef __cplusplus
7353}
7354#endif
7355_LT_EOF
7356	  # Now try linking the two files.
7357	  mv conftest.$ac_objext conftstm.$ac_objext
7358	  lt_globsym_save_LIBS=$LIBS
7359	  lt_globsym_save_CFLAGS=$CFLAGS
7360	  LIBS="conftstm.$ac_objext"
7361	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7362	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7363  (eval $ac_link) 2>&5
7364  ac_status=$?
7365  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7366  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7367	    pipe_works=yes
7368	  fi
7369	  LIBS=$lt_globsym_save_LIBS
7370	  CFLAGS=$lt_globsym_save_CFLAGS
7371	else
7372	  echo "cannot find nm_test_func in $nlist" >&5
7373	fi
7374      else
7375	echo "cannot find nm_test_var in $nlist" >&5
7376      fi
7377    else
7378      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7379    fi
7380  else
7381    echo "$progname: failed program was:" >&5
7382    cat conftest.$ac_ext >&5
7383  fi
7384  rm -rf conftest* conftst*
7385
7386  # Do not use the global_symbol_pipe unless it works.
7387  if test "$pipe_works" = yes; then
7388    break
7389  else
7390    lt_cv_sys_global_symbol_pipe=
7391  fi
7392done
7393
7394fi
7395
7396if test -z "$lt_cv_sys_global_symbol_pipe"; then
7397  lt_cv_sys_global_symbol_to_cdecl=
7398fi
7399if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7401$as_echo "failed" >&6; }
7402else
7403  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7404$as_echo "ok" >&6; }
7405fi
7406
7407# Response file support.
7408if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7409  nm_file_list_spec='@'
7410elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7411  nm_file_list_spec='@'
7412fi
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7441$as_echo_n "checking for sysroot... " >&6; }
7442
7443# Check whether --with-sysroot was given.
7444if test "${with_sysroot+set}" = set; then :
7445  withval=$with_sysroot;
7446else
7447  with_sysroot=no
7448fi
7449
7450
7451lt_sysroot=
7452case ${with_sysroot} in #(
7453 yes)
7454   if test "$GCC" = yes; then
7455     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7456   fi
7457   ;; #(
7458 /*)
7459   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7460   ;; #(
7461 no|'')
7462   ;; #(
7463 *)
7464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7465$as_echo "${with_sysroot}" >&6; }
7466   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7467   ;;
7468esac
7469
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7471$as_echo "${lt_sysroot:-no}" >&6; }
7472
7473
7474
7475
7476
7477# Check whether --enable-libtool-lock was given.
7478if test "${enable_libtool_lock+set}" = set; then :
7479  enableval=$enable_libtool_lock;
7480fi
7481
7482test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7483
7484# Some flags need to be propagated to the compiler or linker for good
7485# libtool support.
7486case $host in
7487ia64-*-hpux*)
7488  # Find out which ABI we are using.
7489  echo 'int i;' > conftest.$ac_ext
7490  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7491  (eval $ac_compile) 2>&5
7492  ac_status=$?
7493  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7494  test $ac_status = 0; }; then
7495    case `/usr/bin/file conftest.$ac_objext` in
7496      *ELF-32*)
7497	HPUX_IA64_MODE="32"
7498	;;
7499      *ELF-64*)
7500	HPUX_IA64_MODE="64"
7501	;;
7502    esac
7503  fi
7504  rm -rf conftest*
7505  ;;
7506*-*-irix6*)
7507  # Find out which ABI we are using.
7508  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7509  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7510  (eval $ac_compile) 2>&5
7511  ac_status=$?
7512  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7513  test $ac_status = 0; }; then
7514    if test "$lt_cv_prog_gnu_ld" = yes; then
7515      case `/usr/bin/file conftest.$ac_objext` in
7516	*32-bit*)
7517	  LD="${LD-ld} -melf32bsmip"
7518	  ;;
7519	*N32*)
7520	  LD="${LD-ld} -melf32bmipn32"
7521	  ;;
7522	*64-bit*)
7523	  LD="${LD-ld} -melf64bmip"
7524	;;
7525      esac
7526    else
7527      case `/usr/bin/file conftest.$ac_objext` in
7528	*32-bit*)
7529	  LD="${LD-ld} -32"
7530	  ;;
7531	*N32*)
7532	  LD="${LD-ld} -n32"
7533	  ;;
7534	*64-bit*)
7535	  LD="${LD-ld} -64"
7536	  ;;
7537      esac
7538    fi
7539  fi
7540  rm -rf conftest*
7541  ;;
7542
7543x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7544s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7545  # Find out which ABI we are using.
7546  echo 'int i;' > conftest.$ac_ext
7547  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7548  (eval $ac_compile) 2>&5
7549  ac_status=$?
7550  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7551  test $ac_status = 0; }; then
7552    case `/usr/bin/file conftest.o` in
7553      *32-bit*)
7554	case $host in
7555	  x86_64-*kfreebsd*-gnu)
7556	    LD="${LD-ld} -m elf_i386_fbsd"
7557	    ;;
7558	  x86_64-*linux*)
7559	    LD="${LD-ld} -m elf_i386"
7560	    ;;
7561	  ppc64-*linux*|powerpc64-*linux*)
7562	    LD="${LD-ld} -m elf32ppclinux"
7563	    ;;
7564	  s390x-*linux*)
7565	    LD="${LD-ld} -m elf_s390"
7566	    ;;
7567	  sparc64-*linux*)
7568	    LD="${LD-ld} -m elf32_sparc"
7569	    ;;
7570	esac
7571	;;
7572      *64-bit*)
7573	case $host in
7574	  x86_64-*kfreebsd*-gnu)
7575	    LD="${LD-ld} -m elf_x86_64_fbsd"
7576	    ;;
7577	  x86_64-*linux*)
7578	    LD="${LD-ld} -m elf_x86_64"
7579	    ;;
7580	  ppc*-*linux*|powerpc*-*linux*)
7581	    LD="${LD-ld} -m elf64ppc"
7582	    ;;
7583	  s390*-*linux*|s390*-*tpf*)
7584	    LD="${LD-ld} -m elf64_s390"
7585	    ;;
7586	  sparc*-*linux*)
7587	    LD="${LD-ld} -m elf64_sparc"
7588	    ;;
7589	esac
7590	;;
7591    esac
7592  fi
7593  rm -rf conftest*
7594  ;;
7595
7596*-*-sco3.2v5*)
7597  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7598  SAVE_CFLAGS="$CFLAGS"
7599  CFLAGS="$CFLAGS -belf"
7600  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7601$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7602if ${lt_cv_cc_needs_belf+:} false; then :
7603  $as_echo_n "(cached) " >&6
7604else
7605  ac_ext=c
7606ac_cpp='$CPP $CPPFLAGS'
7607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7609ac_compiler_gnu=$ac_cv_c_compiler_gnu
7610
7611     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7612/* end confdefs.h.  */
7613
7614int
7615main ()
7616{
7617
7618  ;
7619  return 0;
7620}
7621_ACEOF
7622if ac_fn_c_try_link "$LINENO"; then :
7623  lt_cv_cc_needs_belf=yes
7624else
7625  lt_cv_cc_needs_belf=no
7626fi
7627rm -f core conftest.err conftest.$ac_objext \
7628    conftest$ac_exeext conftest.$ac_ext
7629     ac_ext=c
7630ac_cpp='$CPP $CPPFLAGS'
7631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7633ac_compiler_gnu=$ac_cv_c_compiler_gnu
7634
7635fi
7636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7637$as_echo "$lt_cv_cc_needs_belf" >&6; }
7638  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7639    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7640    CFLAGS="$SAVE_CFLAGS"
7641  fi
7642  ;;
7643*-*solaris*)
7644  # Find out which ABI we are using.
7645  echo 'int i;' > conftest.$ac_ext
7646  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7647  (eval $ac_compile) 2>&5
7648  ac_status=$?
7649  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7650  test $ac_status = 0; }; then
7651    case `/usr/bin/file conftest.o` in
7652    *64-bit*)
7653      case $lt_cv_prog_gnu_ld in
7654      yes*)
7655        case $host in
7656        i?86-*-solaris*)
7657          LD="${LD-ld} -m elf_x86_64"
7658          ;;
7659        sparc*-*-solaris*)
7660          LD="${LD-ld} -m elf64_sparc"
7661          ;;
7662        esac
7663        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7664        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7665          LD="${LD-ld}_sol2"
7666        fi
7667        ;;
7668      *)
7669	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7670	  LD="${LD-ld} -64"
7671	fi
7672	;;
7673      esac
7674      ;;
7675    esac
7676  fi
7677  rm -rf conftest*
7678  ;;
7679esac
7680
7681need_locks="$enable_libtool_lock"
7682
7683if test -n "$ac_tool_prefix"; then
7684  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7685set dummy ${ac_tool_prefix}mt; ac_word=$2
7686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7687$as_echo_n "checking for $ac_word... " >&6; }
7688if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7689  $as_echo_n "(cached) " >&6
7690else
7691  if test -n "$MANIFEST_TOOL"; then
7692  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7693else
7694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7695for as_dir in $PATH
7696do
7697  IFS=$as_save_IFS
7698  test -z "$as_dir" && as_dir=.
7699    for ac_exec_ext in '' $ac_executable_extensions; do
7700  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7701    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7702    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7703    break 2
7704  fi
7705done
7706  done
7707IFS=$as_save_IFS
7708
7709fi
7710fi
7711MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7712if test -n "$MANIFEST_TOOL"; then
7713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7714$as_echo "$MANIFEST_TOOL" >&6; }
7715else
7716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7717$as_echo "no" >&6; }
7718fi
7719
7720
7721fi
7722if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7723  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7724  # Extract the first word of "mt", so it can be a program name with args.
7725set dummy mt; ac_word=$2
7726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7727$as_echo_n "checking for $ac_word... " >&6; }
7728if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7729  $as_echo_n "(cached) " >&6
7730else
7731  if test -n "$ac_ct_MANIFEST_TOOL"; then
7732  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7733else
7734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7735for as_dir in $PATH
7736do
7737  IFS=$as_save_IFS
7738  test -z "$as_dir" && as_dir=.
7739    for ac_exec_ext in '' $ac_executable_extensions; do
7740  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7741    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7742    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7743    break 2
7744  fi
7745done
7746  done
7747IFS=$as_save_IFS
7748
7749fi
7750fi
7751ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7752if test -n "$ac_ct_MANIFEST_TOOL"; then
7753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7754$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7755else
7756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7757$as_echo "no" >&6; }
7758fi
7759
7760  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7761    MANIFEST_TOOL=":"
7762  else
7763    case $cross_compiling:$ac_tool_warned in
7764yes:)
7765{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7766$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7767ac_tool_warned=yes ;;
7768esac
7769    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7770  fi
7771else
7772  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7773fi
7774
7775test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7777$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7778if ${lt_cv_path_mainfest_tool+:} false; then :
7779  $as_echo_n "(cached) " >&6
7780else
7781  lt_cv_path_mainfest_tool=no
7782  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7783  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7784  cat conftest.err >&5
7785  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7786    lt_cv_path_mainfest_tool=yes
7787  fi
7788  rm -f conftest*
7789fi
7790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7791$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7792if test "x$lt_cv_path_mainfest_tool" != xyes; then
7793  MANIFEST_TOOL=:
7794fi
7795
7796
7797
7798
7799
7800
7801  case $host_os in
7802    rhapsody* | darwin*)
7803    if test -n "$ac_tool_prefix"; then
7804  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7805set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7807$as_echo_n "checking for $ac_word... " >&6; }
7808if ${ac_cv_prog_DSYMUTIL+:} false; then :
7809  $as_echo_n "(cached) " >&6
7810else
7811  if test -n "$DSYMUTIL"; then
7812  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7813else
7814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7815for as_dir in $PATH
7816do
7817  IFS=$as_save_IFS
7818  test -z "$as_dir" && as_dir=.
7819    for ac_exec_ext in '' $ac_executable_extensions; do
7820  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7821    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7822    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7823    break 2
7824  fi
7825done
7826  done
7827IFS=$as_save_IFS
7828
7829fi
7830fi
7831DSYMUTIL=$ac_cv_prog_DSYMUTIL
7832if test -n "$DSYMUTIL"; then
7833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7834$as_echo "$DSYMUTIL" >&6; }
7835else
7836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7837$as_echo "no" >&6; }
7838fi
7839
7840
7841fi
7842if test -z "$ac_cv_prog_DSYMUTIL"; then
7843  ac_ct_DSYMUTIL=$DSYMUTIL
7844  # Extract the first word of "dsymutil", so it can be a program name with args.
7845set dummy dsymutil; ac_word=$2
7846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7847$as_echo_n "checking for $ac_word... " >&6; }
7848if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7849  $as_echo_n "(cached) " >&6
7850else
7851  if test -n "$ac_ct_DSYMUTIL"; then
7852  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7853else
7854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7855for as_dir in $PATH
7856do
7857  IFS=$as_save_IFS
7858  test -z "$as_dir" && as_dir=.
7859    for ac_exec_ext in '' $ac_executable_extensions; do
7860  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7861    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7862    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7863    break 2
7864  fi
7865done
7866  done
7867IFS=$as_save_IFS
7868
7869fi
7870fi
7871ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7872if test -n "$ac_ct_DSYMUTIL"; then
7873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7874$as_echo "$ac_ct_DSYMUTIL" >&6; }
7875else
7876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7877$as_echo "no" >&6; }
7878fi
7879
7880  if test "x$ac_ct_DSYMUTIL" = x; then
7881    DSYMUTIL=":"
7882  else
7883    case $cross_compiling:$ac_tool_warned in
7884yes:)
7885{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7886$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7887ac_tool_warned=yes ;;
7888esac
7889    DSYMUTIL=$ac_ct_DSYMUTIL
7890  fi
7891else
7892  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7893fi
7894
7895    if test -n "$ac_tool_prefix"; then
7896  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7897set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7899$as_echo_n "checking for $ac_word... " >&6; }
7900if ${ac_cv_prog_NMEDIT+:} false; then :
7901  $as_echo_n "(cached) " >&6
7902else
7903  if test -n "$NMEDIT"; then
7904  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7905else
7906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7907for as_dir in $PATH
7908do
7909  IFS=$as_save_IFS
7910  test -z "$as_dir" && as_dir=.
7911    for ac_exec_ext in '' $ac_executable_extensions; do
7912  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7913    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7914    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7915    break 2
7916  fi
7917done
7918  done
7919IFS=$as_save_IFS
7920
7921fi
7922fi
7923NMEDIT=$ac_cv_prog_NMEDIT
7924if test -n "$NMEDIT"; then
7925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7926$as_echo "$NMEDIT" >&6; }
7927else
7928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7929$as_echo "no" >&6; }
7930fi
7931
7932
7933fi
7934if test -z "$ac_cv_prog_NMEDIT"; then
7935  ac_ct_NMEDIT=$NMEDIT
7936  # Extract the first word of "nmedit", so it can be a program name with args.
7937set dummy nmedit; ac_word=$2
7938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7939$as_echo_n "checking for $ac_word... " >&6; }
7940if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7941  $as_echo_n "(cached) " >&6
7942else
7943  if test -n "$ac_ct_NMEDIT"; then
7944  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7945else
7946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7947for as_dir in $PATH
7948do
7949  IFS=$as_save_IFS
7950  test -z "$as_dir" && as_dir=.
7951    for ac_exec_ext in '' $ac_executable_extensions; do
7952  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7953    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7954    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7955    break 2
7956  fi
7957done
7958  done
7959IFS=$as_save_IFS
7960
7961fi
7962fi
7963ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7964if test -n "$ac_ct_NMEDIT"; then
7965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7966$as_echo "$ac_ct_NMEDIT" >&6; }
7967else
7968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7969$as_echo "no" >&6; }
7970fi
7971
7972  if test "x$ac_ct_NMEDIT" = x; then
7973    NMEDIT=":"
7974  else
7975    case $cross_compiling:$ac_tool_warned in
7976yes:)
7977{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7978$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7979ac_tool_warned=yes ;;
7980esac
7981    NMEDIT=$ac_ct_NMEDIT
7982  fi
7983else
7984  NMEDIT="$ac_cv_prog_NMEDIT"
7985fi
7986
7987    if test -n "$ac_tool_prefix"; then
7988  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7989set dummy ${ac_tool_prefix}lipo; ac_word=$2
7990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7991$as_echo_n "checking for $ac_word... " >&6; }
7992if ${ac_cv_prog_LIPO+:} false; then :
7993  $as_echo_n "(cached) " >&6
7994else
7995  if test -n "$LIPO"; then
7996  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7997else
7998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7999for as_dir in $PATH
8000do
8001  IFS=$as_save_IFS
8002  test -z "$as_dir" && as_dir=.
8003    for ac_exec_ext in '' $ac_executable_extensions; do
8004  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8005    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8006    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8007    break 2
8008  fi
8009done
8010  done
8011IFS=$as_save_IFS
8012
8013fi
8014fi
8015LIPO=$ac_cv_prog_LIPO
8016if test -n "$LIPO"; then
8017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8018$as_echo "$LIPO" >&6; }
8019else
8020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8021$as_echo "no" >&6; }
8022fi
8023
8024
8025fi
8026if test -z "$ac_cv_prog_LIPO"; then
8027  ac_ct_LIPO=$LIPO
8028  # Extract the first word of "lipo", so it can be a program name with args.
8029set dummy lipo; ac_word=$2
8030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8031$as_echo_n "checking for $ac_word... " >&6; }
8032if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8033  $as_echo_n "(cached) " >&6
8034else
8035  if test -n "$ac_ct_LIPO"; then
8036  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8037else
8038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8039for as_dir in $PATH
8040do
8041  IFS=$as_save_IFS
8042  test -z "$as_dir" && as_dir=.
8043    for ac_exec_ext in '' $ac_executable_extensions; do
8044  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8045    ac_cv_prog_ac_ct_LIPO="lipo"
8046    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8047    break 2
8048  fi
8049done
8050  done
8051IFS=$as_save_IFS
8052
8053fi
8054fi
8055ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8056if test -n "$ac_ct_LIPO"; then
8057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8058$as_echo "$ac_ct_LIPO" >&6; }
8059else
8060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8061$as_echo "no" >&6; }
8062fi
8063
8064  if test "x$ac_ct_LIPO" = x; then
8065    LIPO=":"
8066  else
8067    case $cross_compiling:$ac_tool_warned in
8068yes:)
8069{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8070$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8071ac_tool_warned=yes ;;
8072esac
8073    LIPO=$ac_ct_LIPO
8074  fi
8075else
8076  LIPO="$ac_cv_prog_LIPO"
8077fi
8078
8079    if test -n "$ac_tool_prefix"; then
8080  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8081set dummy ${ac_tool_prefix}otool; ac_word=$2
8082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8083$as_echo_n "checking for $ac_word... " >&6; }
8084if ${ac_cv_prog_OTOOL+:} false; then :
8085  $as_echo_n "(cached) " >&6
8086else
8087  if test -n "$OTOOL"; then
8088  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8089else
8090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8091for as_dir in $PATH
8092do
8093  IFS=$as_save_IFS
8094  test -z "$as_dir" && as_dir=.
8095    for ac_exec_ext in '' $ac_executable_extensions; do
8096  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8097    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8098    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8099    break 2
8100  fi
8101done
8102  done
8103IFS=$as_save_IFS
8104
8105fi
8106fi
8107OTOOL=$ac_cv_prog_OTOOL
8108if test -n "$OTOOL"; then
8109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8110$as_echo "$OTOOL" >&6; }
8111else
8112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8113$as_echo "no" >&6; }
8114fi
8115
8116
8117fi
8118if test -z "$ac_cv_prog_OTOOL"; then
8119  ac_ct_OTOOL=$OTOOL
8120  # Extract the first word of "otool", so it can be a program name with args.
8121set dummy otool; ac_word=$2
8122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8123$as_echo_n "checking for $ac_word... " >&6; }
8124if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8125  $as_echo_n "(cached) " >&6
8126else
8127  if test -n "$ac_ct_OTOOL"; then
8128  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8129else
8130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8131for as_dir in $PATH
8132do
8133  IFS=$as_save_IFS
8134  test -z "$as_dir" && as_dir=.
8135    for ac_exec_ext in '' $ac_executable_extensions; do
8136  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8137    ac_cv_prog_ac_ct_OTOOL="otool"
8138    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8139    break 2
8140  fi
8141done
8142  done
8143IFS=$as_save_IFS
8144
8145fi
8146fi
8147ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8148if test -n "$ac_ct_OTOOL"; then
8149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8150$as_echo "$ac_ct_OTOOL" >&6; }
8151else
8152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8153$as_echo "no" >&6; }
8154fi
8155
8156  if test "x$ac_ct_OTOOL" = x; then
8157    OTOOL=":"
8158  else
8159    case $cross_compiling:$ac_tool_warned in
8160yes:)
8161{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8162$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8163ac_tool_warned=yes ;;
8164esac
8165    OTOOL=$ac_ct_OTOOL
8166  fi
8167else
8168  OTOOL="$ac_cv_prog_OTOOL"
8169fi
8170
8171    if test -n "$ac_tool_prefix"; then
8172  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8173set dummy ${ac_tool_prefix}otool64; ac_word=$2
8174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8175$as_echo_n "checking for $ac_word... " >&6; }
8176if ${ac_cv_prog_OTOOL64+:} false; then :
8177  $as_echo_n "(cached) " >&6
8178else
8179  if test -n "$OTOOL64"; then
8180  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8181else
8182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8183for as_dir in $PATH
8184do
8185  IFS=$as_save_IFS
8186  test -z "$as_dir" && as_dir=.
8187    for ac_exec_ext in '' $ac_executable_extensions; do
8188  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8189    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8190    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8191    break 2
8192  fi
8193done
8194  done
8195IFS=$as_save_IFS
8196
8197fi
8198fi
8199OTOOL64=$ac_cv_prog_OTOOL64
8200if test -n "$OTOOL64"; then
8201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8202$as_echo "$OTOOL64" >&6; }
8203else
8204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8205$as_echo "no" >&6; }
8206fi
8207
8208
8209fi
8210if test -z "$ac_cv_prog_OTOOL64"; then
8211  ac_ct_OTOOL64=$OTOOL64
8212  # Extract the first word of "otool64", so it can be a program name with args.
8213set dummy otool64; ac_word=$2
8214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8215$as_echo_n "checking for $ac_word... " >&6; }
8216if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8217  $as_echo_n "(cached) " >&6
8218else
8219  if test -n "$ac_ct_OTOOL64"; then
8220  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8221else
8222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8223for as_dir in $PATH
8224do
8225  IFS=$as_save_IFS
8226  test -z "$as_dir" && as_dir=.
8227    for ac_exec_ext in '' $ac_executable_extensions; do
8228  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8229    ac_cv_prog_ac_ct_OTOOL64="otool64"
8230    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8231    break 2
8232  fi
8233done
8234  done
8235IFS=$as_save_IFS
8236
8237fi
8238fi
8239ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8240if test -n "$ac_ct_OTOOL64"; then
8241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8242$as_echo "$ac_ct_OTOOL64" >&6; }
8243else
8244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8245$as_echo "no" >&6; }
8246fi
8247
8248  if test "x$ac_ct_OTOOL64" = x; then
8249    OTOOL64=":"
8250  else
8251    case $cross_compiling:$ac_tool_warned in
8252yes:)
8253{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8254$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8255ac_tool_warned=yes ;;
8256esac
8257    OTOOL64=$ac_ct_OTOOL64
8258  fi
8259else
8260  OTOOL64="$ac_cv_prog_OTOOL64"
8261fi
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8290$as_echo_n "checking for -single_module linker flag... " >&6; }
8291if ${lt_cv_apple_cc_single_mod+:} false; then :
8292  $as_echo_n "(cached) " >&6
8293else
8294  lt_cv_apple_cc_single_mod=no
8295      if test -z "${LT_MULTI_MODULE}"; then
8296	# By default we will add the -single_module flag. You can override
8297	# by either setting the environment variable LT_MULTI_MODULE
8298	# non-empty at configure time, or by adding -multi_module to the
8299	# link flags.
8300	rm -rf libconftest.dylib*
8301	echo "int foo(void){return 1;}" > conftest.c
8302	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8303-dynamiclib -Wl,-single_module conftest.c" >&5
8304	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8305	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8306        _lt_result=$?
8307	# If there is a non-empty error log, and "single_module"
8308	# appears in it, assume the flag caused a linker warning
8309        if test -s conftest.err && $GREP single_module conftest.err; then
8310	  cat conftest.err >&5
8311	# Otherwise, if the output was created with a 0 exit code from
8312	# the compiler, it worked.
8313	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8314	  lt_cv_apple_cc_single_mod=yes
8315	else
8316	  cat conftest.err >&5
8317	fi
8318	rm -rf libconftest.dylib*
8319	rm -f conftest.*
8320      fi
8321fi
8322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8323$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8324
8325    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8326$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8327if ${lt_cv_ld_exported_symbols_list+:} false; then :
8328  $as_echo_n "(cached) " >&6
8329else
8330  lt_cv_ld_exported_symbols_list=no
8331      save_LDFLAGS=$LDFLAGS
8332      echo "_main" > conftest.sym
8333      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8334      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8335/* end confdefs.h.  */
8336
8337int
8338main ()
8339{
8340
8341  ;
8342  return 0;
8343}
8344_ACEOF
8345if ac_fn_c_try_link "$LINENO"; then :
8346  lt_cv_ld_exported_symbols_list=yes
8347else
8348  lt_cv_ld_exported_symbols_list=no
8349fi
8350rm -f core conftest.err conftest.$ac_objext \
8351    conftest$ac_exeext conftest.$ac_ext
8352	LDFLAGS="$save_LDFLAGS"
8353
8354fi
8355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8356$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8357
8358    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8359$as_echo_n "checking for -force_load linker flag... " >&6; }
8360if ${lt_cv_ld_force_load+:} false; then :
8361  $as_echo_n "(cached) " >&6
8362else
8363  lt_cv_ld_force_load=no
8364      cat > conftest.c << _LT_EOF
8365int forced_loaded() { return 2;}
8366_LT_EOF
8367      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8368      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8369      echo "$AR cru libconftest.a conftest.o" >&5
8370      $AR cru libconftest.a conftest.o 2>&5
8371      echo "$RANLIB libconftest.a" >&5
8372      $RANLIB libconftest.a 2>&5
8373      cat > conftest.c << _LT_EOF
8374int main() { return 0;}
8375_LT_EOF
8376      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8377      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8378      _lt_result=$?
8379      if test -s conftest.err && $GREP force_load conftest.err; then
8380	cat conftest.err >&5
8381      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8382	lt_cv_ld_force_load=yes
8383      else
8384	cat conftest.err >&5
8385      fi
8386        rm -f conftest.err libconftest.a conftest conftest.c
8387        rm -rf conftest.dSYM
8388
8389fi
8390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8391$as_echo "$lt_cv_ld_force_load" >&6; }
8392    case $host_os in
8393    rhapsody* | darwin1.[012])
8394      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8395    darwin1.*)
8396      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8397    darwin*) # darwin 5.x on
8398      # if running on 10.5 or later, the deployment target defaults
8399      # to the OS version, if on x86, and 10.4, the deployment
8400      # target defaults to 10.4. Don't you love it?
8401      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8402	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8403	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8404	10.[012]*)
8405	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8406	10.*)
8407	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8408      esac
8409    ;;
8410  esac
8411    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8412      _lt_dar_single_mod='$single_module'
8413    fi
8414    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8415      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8416    else
8417      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8418    fi
8419    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8420      _lt_dsymutil='~$DSYMUTIL $lib || :'
8421    else
8422      _lt_dsymutil=
8423    fi
8424    ;;
8425  esac
8426
8427for ac_header in dlfcn.h
8428do :
8429  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8430"
8431if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8432  cat >>confdefs.h <<_ACEOF
8433#define HAVE_DLFCN_H 1
8434_ACEOF
8435
8436fi
8437
8438done
8439
8440
8441
8442
8443
8444# Set options
8445
8446
8447
8448        enable_dlopen=no
8449
8450
8451
8452            # Check whether --enable-shared was given.
8453if test "${enable_shared+set}" = set; then :
8454  enableval=$enable_shared; p=${PACKAGE-default}
8455    case $enableval in
8456    yes) enable_shared=yes ;;
8457    no) enable_shared=no ;;
8458    *)
8459      enable_shared=no
8460      # Look at the argument we got.  We use all the common list separators.
8461      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8462      for pkg in $enableval; do
8463	IFS="$lt_save_ifs"
8464	if test "X$pkg" = "X$p"; then
8465	  enable_shared=yes
8466	fi
8467      done
8468      IFS="$lt_save_ifs"
8469      ;;
8470    esac
8471else
8472  enable_shared=yes
8473fi
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483  # Check whether --enable-static was given.
8484if test "${enable_static+set}" = set; then :
8485  enableval=$enable_static; p=${PACKAGE-default}
8486    case $enableval in
8487    yes) enable_static=yes ;;
8488    no) enable_static=no ;;
8489    *)
8490     enable_static=no
8491      # Look at the argument we got.  We use all the common list separators.
8492      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8493      for pkg in $enableval; do
8494	IFS="$lt_save_ifs"
8495	if test "X$pkg" = "X$p"; then
8496	  enable_static=yes
8497	fi
8498      done
8499      IFS="$lt_save_ifs"
8500      ;;
8501    esac
8502else
8503  enable_static=yes
8504fi
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515# Check whether --with-pic was given.
8516if test "${with_pic+set}" = set; then :
8517  withval=$with_pic; lt_p=${PACKAGE-default}
8518    case $withval in
8519    yes|no) pic_mode=$withval ;;
8520    *)
8521      pic_mode=default
8522      # Look at the argument we got.  We use all the common list separators.
8523      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8524      for lt_pkg in $withval; do
8525	IFS="$lt_save_ifs"
8526	if test "X$lt_pkg" = "X$lt_p"; then
8527	  pic_mode=yes
8528	fi
8529      done
8530      IFS="$lt_save_ifs"
8531      ;;
8532    esac
8533else
8534  pic_mode=default
8535fi
8536
8537
8538test -z "$pic_mode" && pic_mode=default
8539
8540
8541
8542
8543
8544
8545
8546  # Check whether --enable-fast-install was given.
8547if test "${enable_fast_install+set}" = set; then :
8548  enableval=$enable_fast_install; p=${PACKAGE-default}
8549    case $enableval in
8550    yes) enable_fast_install=yes ;;
8551    no) enable_fast_install=no ;;
8552    *)
8553      enable_fast_install=no
8554      # Look at the argument we got.  We use all the common list separators.
8555      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8556      for pkg in $enableval; do
8557	IFS="$lt_save_ifs"
8558	if test "X$pkg" = "X$p"; then
8559	  enable_fast_install=yes
8560	fi
8561      done
8562      IFS="$lt_save_ifs"
8563      ;;
8564    esac
8565else
8566  enable_fast_install=yes
8567fi
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579# This can be used to rebuild libtool when needed
8580LIBTOOL_DEPS="$ltmain"
8581
8582# Always use our own libtool.
8583LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614test -z "$LN_S" && LN_S="ln -s"
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629if test -n "${ZSH_VERSION+set}" ; then
8630   setopt NO_GLOB_SUBST
8631fi
8632
8633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8634$as_echo_n "checking for objdir... " >&6; }
8635if ${lt_cv_objdir+:} false; then :
8636  $as_echo_n "(cached) " >&6
8637else
8638  rm -f .libs 2>/dev/null
8639mkdir .libs 2>/dev/null
8640if test -d .libs; then
8641  lt_cv_objdir=.libs
8642else
8643  # MS-DOS does not allow filenames that begin with a dot.
8644  lt_cv_objdir=_libs
8645fi
8646rmdir .libs 2>/dev/null
8647fi
8648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8649$as_echo "$lt_cv_objdir" >&6; }
8650objdir=$lt_cv_objdir
8651
8652
8653
8654
8655
8656cat >>confdefs.h <<_ACEOF
8657#define LT_OBJDIR "$lt_cv_objdir/"
8658_ACEOF
8659
8660
8661
8662
8663case $host_os in
8664aix3*)
8665  # AIX sometimes has problems with the GCC collect2 program.  For some
8666  # reason, if we set the COLLECT_NAMES environment variable, the problems
8667  # vanish in a puff of smoke.
8668  if test "X${COLLECT_NAMES+set}" != Xset; then
8669    COLLECT_NAMES=
8670    export COLLECT_NAMES
8671  fi
8672  ;;
8673esac
8674
8675# Global variables:
8676ofile=libtool
8677can_build_shared=yes
8678
8679# All known linkers require a `.a' archive for static linking (except MSVC,
8680# which needs '.lib').
8681libext=a
8682
8683with_gnu_ld="$lt_cv_prog_gnu_ld"
8684
8685old_CC="$CC"
8686old_CFLAGS="$CFLAGS"
8687
8688# Set sane defaults for various variables
8689test -z "$CC" && CC=cc
8690test -z "$LTCC" && LTCC=$CC
8691test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8692test -z "$LD" && LD=ld
8693test -z "$ac_objext" && ac_objext=o
8694
8695for cc_temp in $compiler""; do
8696  case $cc_temp in
8697    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8698    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8699    \-*) ;;
8700    *) break;;
8701  esac
8702done
8703cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8704
8705
8706# Only perform the check for file, if the check method requires it
8707test -z "$MAGIC_CMD" && MAGIC_CMD=file
8708case $deplibs_check_method in
8709file_magic*)
8710  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8711    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8712$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8713if ${lt_cv_path_MAGIC_CMD+:} false; then :
8714  $as_echo_n "(cached) " >&6
8715else
8716  case $MAGIC_CMD in
8717[\\/*] |  ?:[\\/]*)
8718  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8719  ;;
8720*)
8721  lt_save_MAGIC_CMD="$MAGIC_CMD"
8722  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8723  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8724  for ac_dir in $ac_dummy; do
8725    IFS="$lt_save_ifs"
8726    test -z "$ac_dir" && ac_dir=.
8727    if test -f $ac_dir/${ac_tool_prefix}file; then
8728      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8729      if test -n "$file_magic_test_file"; then
8730	case $deplibs_check_method in
8731	"file_magic "*)
8732	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8733	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8734	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8735	    $EGREP "$file_magic_regex" > /dev/null; then
8736	    :
8737	  else
8738	    cat <<_LT_EOF 1>&2
8739
8740*** Warning: the command libtool uses to detect shared libraries,
8741*** $file_magic_cmd, produces output that libtool cannot recognize.
8742*** The result is that libtool may fail to recognize shared libraries
8743*** as such.  This will affect the creation of libtool libraries that
8744*** depend on shared libraries, but programs linked with such libtool
8745*** libraries will work regardless of this problem.  Nevertheless, you
8746*** may want to report the problem to your system manager and/or to
8747*** bug-libtool@gnu.org
8748
8749_LT_EOF
8750	  fi ;;
8751	esac
8752      fi
8753      break
8754    fi
8755  done
8756  IFS="$lt_save_ifs"
8757  MAGIC_CMD="$lt_save_MAGIC_CMD"
8758  ;;
8759esac
8760fi
8761
8762MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8763if test -n "$MAGIC_CMD"; then
8764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8765$as_echo "$MAGIC_CMD" >&6; }
8766else
8767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8768$as_echo "no" >&6; }
8769fi
8770
8771
8772
8773
8774
8775if test -z "$lt_cv_path_MAGIC_CMD"; then
8776  if test -n "$ac_tool_prefix"; then
8777    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8778$as_echo_n "checking for file... " >&6; }
8779if ${lt_cv_path_MAGIC_CMD+:} false; then :
8780  $as_echo_n "(cached) " >&6
8781else
8782  case $MAGIC_CMD in
8783[\\/*] |  ?:[\\/]*)
8784  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8785  ;;
8786*)
8787  lt_save_MAGIC_CMD="$MAGIC_CMD"
8788  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8789  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8790  for ac_dir in $ac_dummy; do
8791    IFS="$lt_save_ifs"
8792    test -z "$ac_dir" && ac_dir=.
8793    if test -f $ac_dir/file; then
8794      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8795      if test -n "$file_magic_test_file"; then
8796	case $deplibs_check_method in
8797	"file_magic "*)
8798	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8799	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8800	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8801	    $EGREP "$file_magic_regex" > /dev/null; then
8802	    :
8803	  else
8804	    cat <<_LT_EOF 1>&2
8805
8806*** Warning: the command libtool uses to detect shared libraries,
8807*** $file_magic_cmd, produces output that libtool cannot recognize.
8808*** The result is that libtool may fail to recognize shared libraries
8809*** as such.  This will affect the creation of libtool libraries that
8810*** depend on shared libraries, but programs linked with such libtool
8811*** libraries will work regardless of this problem.  Nevertheless, you
8812*** may want to report the problem to your system manager and/or to
8813*** bug-libtool@gnu.org
8814
8815_LT_EOF
8816	  fi ;;
8817	esac
8818      fi
8819      break
8820    fi
8821  done
8822  IFS="$lt_save_ifs"
8823  MAGIC_CMD="$lt_save_MAGIC_CMD"
8824  ;;
8825esac
8826fi
8827
8828MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8829if test -n "$MAGIC_CMD"; then
8830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8831$as_echo "$MAGIC_CMD" >&6; }
8832else
8833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8834$as_echo "no" >&6; }
8835fi
8836
8837
8838  else
8839    MAGIC_CMD=:
8840  fi
8841fi
8842
8843  fi
8844  ;;
8845esac
8846
8847# Use C for the default configuration in the libtool script
8848
8849lt_save_CC="$CC"
8850ac_ext=c
8851ac_cpp='$CPP $CPPFLAGS'
8852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8854ac_compiler_gnu=$ac_cv_c_compiler_gnu
8855
8856
8857# Source file extension for C test sources.
8858ac_ext=c
8859
8860# Object file extension for compiled C test sources.
8861objext=o
8862objext=$objext
8863
8864# Code to be used in simple compile tests
8865lt_simple_compile_test_code="int some_variable = 0;"
8866
8867# Code to be used in simple link tests
8868lt_simple_link_test_code='int main(){return(0);}'
8869
8870
8871
8872
8873
8874
8875
8876# If no C compiler was specified, use CC.
8877LTCC=${LTCC-"$CC"}
8878
8879# If no C compiler flags were specified, use CFLAGS.
8880LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8881
8882# Allow CC to be a program name with arguments.
8883compiler=$CC
8884
8885# Save the default compiler, since it gets overwritten when the other
8886# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8887compiler_DEFAULT=$CC
8888
8889# save warnings/boilerplate of simple test code
8890ac_outfile=conftest.$ac_objext
8891echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8892eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8893_lt_compiler_boilerplate=`cat conftest.err`
8894$RM conftest*
8895
8896ac_outfile=conftest.$ac_objext
8897echo "$lt_simple_link_test_code" >conftest.$ac_ext
8898eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8899_lt_linker_boilerplate=`cat conftest.err`
8900$RM -r conftest*
8901
8902
8903if test -n "$compiler"; then
8904
8905lt_prog_compiler_no_builtin_flag=
8906
8907if test "$GCC" = yes; then
8908  case $cc_basename in
8909  nvcc*)
8910    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8911  *)
8912    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8913  esac
8914
8915  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8916$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8917if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8918  $as_echo_n "(cached) " >&6
8919else
8920  lt_cv_prog_compiler_rtti_exceptions=no
8921   ac_outfile=conftest.$ac_objext
8922   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8923   lt_compiler_flag="-fno-rtti -fno-exceptions"
8924   # Insert the option either (1) after the last *FLAGS variable, or
8925   # (2) before a word containing "conftest.", or (3) at the end.
8926   # Note that $ac_compile itself does not contain backslashes and begins
8927   # with a dollar sign (not a hyphen), so the echo should work correctly.
8928   # The option is referenced via a variable to avoid confusing sed.
8929   lt_compile=`echo "$ac_compile" | $SED \
8930   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8931   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8932   -e 's:$: $lt_compiler_flag:'`
8933   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8934   (eval "$lt_compile" 2>conftest.err)
8935   ac_status=$?
8936   cat conftest.err >&5
8937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938   if (exit $ac_status) && test -s "$ac_outfile"; then
8939     # The compiler can only warn and ignore the option if not recognized
8940     # So say no if there are warnings other than the usual output.
8941     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8942     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8943     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8944       lt_cv_prog_compiler_rtti_exceptions=yes
8945     fi
8946   fi
8947   $RM conftest*
8948
8949fi
8950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8951$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8952
8953if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8954    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8955else
8956    :
8957fi
8958
8959fi
8960
8961
8962
8963
8964
8965
8966  lt_prog_compiler_wl=
8967lt_prog_compiler_pic=
8968lt_prog_compiler_static=
8969
8970
8971  if test "$GCC" = yes; then
8972    lt_prog_compiler_wl='-Wl,'
8973    lt_prog_compiler_static='-static'
8974
8975    case $host_os in
8976      aix*)
8977      # All AIX code is PIC.
8978      if test "$host_cpu" = ia64; then
8979	# AIX 5 now supports IA64 processor
8980	lt_prog_compiler_static='-Bstatic'
8981      fi
8982      ;;
8983
8984    amigaos*)
8985      case $host_cpu in
8986      powerpc)
8987            # see comment about AmigaOS4 .so support
8988            lt_prog_compiler_pic='-fPIC'
8989        ;;
8990      m68k)
8991            # FIXME: we need at least 68020 code to build shared libraries, but
8992            # adding the `-m68020' flag to GCC prevents building anything better,
8993            # like `-m68040'.
8994            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8995        ;;
8996      esac
8997      ;;
8998
8999    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9000      # PIC is the default for these OSes.
9001      ;;
9002
9003    mingw* | cygwin* | pw32* | os2* | cegcc*)
9004      # This hack is so that the source file can tell whether it is being
9005      # built for inclusion in a dll (and should export symbols for example).
9006      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9007      # (--disable-auto-import) libraries
9008      lt_prog_compiler_pic='-DDLL_EXPORT'
9009      ;;
9010
9011    darwin* | rhapsody*)
9012      # PIC is the default on this platform
9013      # Common symbols not allowed in MH_DYLIB files
9014      lt_prog_compiler_pic='-fno-common'
9015      ;;
9016
9017    haiku*)
9018      # PIC is the default for Haiku.
9019      # The "-static" flag exists, but is broken.
9020      lt_prog_compiler_static=
9021      ;;
9022
9023    hpux*)
9024      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9025      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9026      # sets the default TLS model and affects inlining.
9027      case $host_cpu in
9028      hppa*64*)
9029	# +Z the default
9030	;;
9031      *)
9032	lt_prog_compiler_pic='-fPIC'
9033	;;
9034      esac
9035      ;;
9036
9037    interix[3-9]*)
9038      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9039      # Instead, we relocate shared libraries at runtime.
9040      ;;
9041
9042    msdosdjgpp*)
9043      # Just because we use GCC doesn't mean we suddenly get shared libraries
9044      # on systems that don't support them.
9045      lt_prog_compiler_can_build_shared=no
9046      enable_shared=no
9047      ;;
9048
9049    *nto* | *qnx*)
9050      # QNX uses GNU C++, but need to define -shared option too, otherwise
9051      # it will coredump.
9052      lt_prog_compiler_pic='-fPIC -shared'
9053      ;;
9054
9055    sysv4*MP*)
9056      if test -d /usr/nec; then
9057	lt_prog_compiler_pic=-Kconform_pic
9058      fi
9059      ;;
9060
9061    *)
9062      lt_prog_compiler_pic='-fPIC'
9063      ;;
9064    esac
9065
9066    case $cc_basename in
9067    nvcc*) # Cuda Compiler Driver 2.2
9068      lt_prog_compiler_wl='-Xlinker '
9069      if test -n "$lt_prog_compiler_pic"; then
9070        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9071      fi
9072      ;;
9073    esac
9074  else
9075    # PORTME Check for flag to pass linker flags through the system compiler.
9076    case $host_os in
9077    aix*)
9078      lt_prog_compiler_wl='-Wl,'
9079      if test "$host_cpu" = ia64; then
9080	# AIX 5 now supports IA64 processor
9081	lt_prog_compiler_static='-Bstatic'
9082      else
9083	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9084      fi
9085      ;;
9086
9087    mingw* | cygwin* | pw32* | os2* | cegcc*)
9088      # This hack is so that the source file can tell whether it is being
9089      # built for inclusion in a dll (and should export symbols for example).
9090      lt_prog_compiler_pic='-DDLL_EXPORT'
9091      ;;
9092
9093    hpux9* | hpux10* | hpux11*)
9094      lt_prog_compiler_wl='-Wl,'
9095      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9096      # not for PA HP-UX.
9097      case $host_cpu in
9098      hppa*64*|ia64*)
9099	# +Z the default
9100	;;
9101      *)
9102	lt_prog_compiler_pic='+Z'
9103	;;
9104      esac
9105      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9106      lt_prog_compiler_static='${wl}-a ${wl}archive'
9107      ;;
9108
9109    irix5* | irix6* | nonstopux*)
9110      lt_prog_compiler_wl='-Wl,'
9111      # PIC (with -KPIC) is the default.
9112      lt_prog_compiler_static='-non_shared'
9113      ;;
9114
9115    linux* | k*bsd*-gnu | kopensolaris*-gnu)
9116      case $cc_basename in
9117      # old Intel for x86_64 which still supported -KPIC.
9118      ecc*)
9119	lt_prog_compiler_wl='-Wl,'
9120	lt_prog_compiler_pic='-KPIC'
9121	lt_prog_compiler_static='-static'
9122        ;;
9123      # icc used to be incompatible with GCC.
9124      # ICC 10 doesn't accept -KPIC any more.
9125      icc* | ifort*)
9126	lt_prog_compiler_wl='-Wl,'
9127	lt_prog_compiler_pic='-fPIC'
9128	lt_prog_compiler_static='-static'
9129        ;;
9130      # Lahey Fortran 8.1.
9131      lf95*)
9132	lt_prog_compiler_wl='-Wl,'
9133	lt_prog_compiler_pic='--shared'
9134	lt_prog_compiler_static='--static'
9135	;;
9136      nagfor*)
9137	# NAG Fortran compiler
9138	lt_prog_compiler_wl='-Wl,-Wl,,'
9139	lt_prog_compiler_pic='-PIC'
9140	lt_prog_compiler_static='-Bstatic'
9141	;;
9142      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9143        # Portland Group compilers (*not* the Pentium gcc compiler,
9144	# which looks to be a dead project)
9145	lt_prog_compiler_wl='-Wl,'
9146	lt_prog_compiler_pic='-fpic'
9147	lt_prog_compiler_static='-Bstatic'
9148        ;;
9149      ccc*)
9150        lt_prog_compiler_wl='-Wl,'
9151        # All Alpha code is PIC.
9152        lt_prog_compiler_static='-non_shared'
9153        ;;
9154      xl* | bgxl* | bgf* | mpixl*)
9155	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9156	lt_prog_compiler_wl='-Wl,'
9157	lt_prog_compiler_pic='-qpic'
9158	lt_prog_compiler_static='-qstaticlink'
9159	;;
9160      *)
9161	case `$CC -V 2>&1 | sed 5q` in
9162	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9163	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9164	  lt_prog_compiler_pic='-KPIC'
9165	  lt_prog_compiler_static='-Bstatic'
9166	  lt_prog_compiler_wl=''
9167	  ;;
9168	*Sun\ F* | *Sun*Fortran*)
9169	  lt_prog_compiler_pic='-KPIC'
9170	  lt_prog_compiler_static='-Bstatic'
9171	  lt_prog_compiler_wl='-Qoption ld '
9172	  ;;
9173	*Sun\ C*)
9174	  # Sun C 5.9
9175	  lt_prog_compiler_pic='-KPIC'
9176	  lt_prog_compiler_static='-Bstatic'
9177	  lt_prog_compiler_wl='-Wl,'
9178	  ;;
9179        *Intel*\ [CF]*Compiler*)
9180	  lt_prog_compiler_wl='-Wl,'
9181	  lt_prog_compiler_pic='-fPIC'
9182	  lt_prog_compiler_static='-static'
9183	  ;;
9184	*Portland\ Group*)
9185	  lt_prog_compiler_wl='-Wl,'
9186	  lt_prog_compiler_pic='-fpic'
9187	  lt_prog_compiler_static='-Bstatic'
9188	  ;;
9189	esac
9190	;;
9191      esac
9192      ;;
9193
9194    newsos6)
9195      lt_prog_compiler_pic='-KPIC'
9196      lt_prog_compiler_static='-Bstatic'
9197      ;;
9198
9199    *nto* | *qnx*)
9200      # QNX uses GNU C++, but need to define -shared option too, otherwise
9201      # it will coredump.
9202      lt_prog_compiler_pic='-fPIC -shared'
9203      ;;
9204
9205    osf3* | osf4* | osf5*)
9206      lt_prog_compiler_wl='-Wl,'
9207      # All OSF/1 code is PIC.
9208      lt_prog_compiler_static='-non_shared'
9209      ;;
9210
9211    rdos*)
9212      lt_prog_compiler_static='-non_shared'
9213      ;;
9214
9215    solaris*)
9216      lt_prog_compiler_pic='-KPIC'
9217      lt_prog_compiler_static='-Bstatic'
9218      case $cc_basename in
9219      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9220	lt_prog_compiler_wl='-Qoption ld ';;
9221      *)
9222	lt_prog_compiler_wl='-Wl,';;
9223      esac
9224      ;;
9225
9226    sunos4*)
9227      lt_prog_compiler_wl='-Qoption ld '
9228      lt_prog_compiler_pic='-PIC'
9229      lt_prog_compiler_static='-Bstatic'
9230      ;;
9231
9232    sysv4 | sysv4.2uw2* | sysv4.3*)
9233      lt_prog_compiler_wl='-Wl,'
9234      lt_prog_compiler_pic='-KPIC'
9235      lt_prog_compiler_static='-Bstatic'
9236      ;;
9237
9238    sysv4*MP*)
9239      if test -d /usr/nec ;then
9240	lt_prog_compiler_pic='-Kconform_pic'
9241	lt_prog_compiler_static='-Bstatic'
9242      fi
9243      ;;
9244
9245    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9246      lt_prog_compiler_wl='-Wl,'
9247      lt_prog_compiler_pic='-KPIC'
9248      lt_prog_compiler_static='-Bstatic'
9249      ;;
9250
9251    unicos*)
9252      lt_prog_compiler_wl='-Wl,'
9253      lt_prog_compiler_can_build_shared=no
9254      ;;
9255
9256    uts4*)
9257      lt_prog_compiler_pic='-pic'
9258      lt_prog_compiler_static='-Bstatic'
9259      ;;
9260
9261    *)
9262      lt_prog_compiler_can_build_shared=no
9263      ;;
9264    esac
9265  fi
9266
9267case $host_os in
9268  # For platforms which do not support PIC, -DPIC is meaningless:
9269  *djgpp*)
9270    lt_prog_compiler_pic=
9271    ;;
9272  *)
9273    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9274    ;;
9275esac
9276
9277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9278$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9279if ${lt_cv_prog_compiler_pic+:} false; then :
9280  $as_echo_n "(cached) " >&6
9281else
9282  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9283fi
9284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9285$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9286lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9287
9288#
9289# Check to make sure the PIC flag actually works.
9290#
9291if test -n "$lt_prog_compiler_pic"; then
9292  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9293$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9294if ${lt_cv_prog_compiler_pic_works+:} false; then :
9295  $as_echo_n "(cached) " >&6
9296else
9297  lt_cv_prog_compiler_pic_works=no
9298   ac_outfile=conftest.$ac_objext
9299   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9300   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9301   # Insert the option either (1) after the last *FLAGS variable, or
9302   # (2) before a word containing "conftest.", or (3) at the end.
9303   # Note that $ac_compile itself does not contain backslashes and begins
9304   # with a dollar sign (not a hyphen), so the echo should work correctly.
9305   # The option is referenced via a variable to avoid confusing sed.
9306   lt_compile=`echo "$ac_compile" | $SED \
9307   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9308   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9309   -e 's:$: $lt_compiler_flag:'`
9310   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9311   (eval "$lt_compile" 2>conftest.err)
9312   ac_status=$?
9313   cat conftest.err >&5
9314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315   if (exit $ac_status) && test -s "$ac_outfile"; then
9316     # The compiler can only warn and ignore the option if not recognized
9317     # So say no if there are warnings other than the usual output.
9318     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9319     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9320     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9321       lt_cv_prog_compiler_pic_works=yes
9322     fi
9323   fi
9324   $RM conftest*
9325
9326fi
9327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9328$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9329
9330if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9331    case $lt_prog_compiler_pic in
9332     "" | " "*) ;;
9333     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9334     esac
9335else
9336    lt_prog_compiler_pic=
9337     lt_prog_compiler_can_build_shared=no
9338fi
9339
9340fi
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352#
9353# Check to make sure the static flag actually works.
9354#
9355wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9357$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9358if ${lt_cv_prog_compiler_static_works+:} false; then :
9359  $as_echo_n "(cached) " >&6
9360else
9361  lt_cv_prog_compiler_static_works=no
9362   save_LDFLAGS="$LDFLAGS"
9363   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9364   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9365   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9366     # The linker can only warn and ignore the option if not recognized
9367     # So say no if there are warnings
9368     if test -s conftest.err; then
9369       # Append any errors to the config.log.
9370       cat conftest.err 1>&5
9371       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9372       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9373       if diff conftest.exp conftest.er2 >/dev/null; then
9374         lt_cv_prog_compiler_static_works=yes
9375       fi
9376     else
9377       lt_cv_prog_compiler_static_works=yes
9378     fi
9379   fi
9380   $RM -r conftest*
9381   LDFLAGS="$save_LDFLAGS"
9382
9383fi
9384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9385$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9386
9387if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9388    :
9389else
9390    lt_prog_compiler_static=
9391fi
9392
9393
9394
9395
9396
9397
9398
9399  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9400$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9401if ${lt_cv_prog_compiler_c_o+:} false; then :
9402  $as_echo_n "(cached) " >&6
9403else
9404  lt_cv_prog_compiler_c_o=no
9405   $RM -r conftest 2>/dev/null
9406   mkdir conftest
9407   cd conftest
9408   mkdir out
9409   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9410
9411   lt_compiler_flag="-o out/conftest2.$ac_objext"
9412   # Insert the option either (1) after the last *FLAGS variable, or
9413   # (2) before a word containing "conftest.", or (3) at the end.
9414   # Note that $ac_compile itself does not contain backslashes and begins
9415   # with a dollar sign (not a hyphen), so the echo should work correctly.
9416   lt_compile=`echo "$ac_compile" | $SED \
9417   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9418   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9419   -e 's:$: $lt_compiler_flag:'`
9420   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9421   (eval "$lt_compile" 2>out/conftest.err)
9422   ac_status=$?
9423   cat out/conftest.err >&5
9424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9426   then
9427     # The compiler can only warn and ignore the option if not recognized
9428     # So say no if there are warnings
9429     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9430     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9431     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9432       lt_cv_prog_compiler_c_o=yes
9433     fi
9434   fi
9435   chmod u+w . 2>&5
9436   $RM conftest*
9437   # SGI C++ compiler will create directory out/ii_files/ for
9438   # template instantiation
9439   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9440   $RM out/* && rmdir out
9441   cd ..
9442   $RM -r conftest
9443   $RM conftest*
9444
9445fi
9446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9447$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9448
9449
9450
9451
9452
9453
9454  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9455$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9456if ${lt_cv_prog_compiler_c_o+:} false; then :
9457  $as_echo_n "(cached) " >&6
9458else
9459  lt_cv_prog_compiler_c_o=no
9460   $RM -r conftest 2>/dev/null
9461   mkdir conftest
9462   cd conftest
9463   mkdir out
9464   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9465
9466   lt_compiler_flag="-o out/conftest2.$ac_objext"
9467   # Insert the option either (1) after the last *FLAGS variable, or
9468   # (2) before a word containing "conftest.", or (3) at the end.
9469   # Note that $ac_compile itself does not contain backslashes and begins
9470   # with a dollar sign (not a hyphen), so the echo should work correctly.
9471   lt_compile=`echo "$ac_compile" | $SED \
9472   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9473   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9474   -e 's:$: $lt_compiler_flag:'`
9475   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9476   (eval "$lt_compile" 2>out/conftest.err)
9477   ac_status=$?
9478   cat out/conftest.err >&5
9479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9481   then
9482     # The compiler can only warn and ignore the option if not recognized
9483     # So say no if there are warnings
9484     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9485     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9486     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9487       lt_cv_prog_compiler_c_o=yes
9488     fi
9489   fi
9490   chmod u+w . 2>&5
9491   $RM conftest*
9492   # SGI C++ compiler will create directory out/ii_files/ for
9493   # template instantiation
9494   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9495   $RM out/* && rmdir out
9496   cd ..
9497   $RM -r conftest
9498   $RM conftest*
9499
9500fi
9501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9502$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9503
9504
9505
9506
9507hard_links="nottested"
9508if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9509  # do not overwrite the value of need_locks provided by the user
9510  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9511$as_echo_n "checking if we can lock with hard links... " >&6; }
9512  hard_links=yes
9513  $RM conftest*
9514  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9515  touch conftest.a
9516  ln conftest.a conftest.b 2>&5 || hard_links=no
9517  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9519$as_echo "$hard_links" >&6; }
9520  if test "$hard_links" = no; then
9521    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9522$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9523    need_locks=warn
9524  fi
9525else
9526  need_locks=no
9527fi
9528
9529
9530
9531
9532
9533
9534  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9535$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9536
9537  runpath_var=
9538  allow_undefined_flag=
9539  always_export_symbols=no
9540  archive_cmds=
9541  archive_expsym_cmds=
9542  compiler_needs_object=no
9543  enable_shared_with_static_runtimes=no
9544  export_dynamic_flag_spec=
9545  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9546  hardcode_automatic=no
9547  hardcode_direct=no
9548  hardcode_direct_absolute=no
9549  hardcode_libdir_flag_spec=
9550  hardcode_libdir_separator=
9551  hardcode_minus_L=no
9552  hardcode_shlibpath_var=unsupported
9553  inherit_rpath=no
9554  link_all_deplibs=unknown
9555  module_cmds=
9556  module_expsym_cmds=
9557  old_archive_from_new_cmds=
9558  old_archive_from_expsyms_cmds=
9559  thread_safe_flag_spec=
9560  whole_archive_flag_spec=
9561  # include_expsyms should be a list of space-separated symbols to be *always*
9562  # included in the symbol list
9563  include_expsyms=
9564  # exclude_expsyms can be an extended regexp of symbols to exclude
9565  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9566  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9567  # as well as any symbol that contains `d'.
9568  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9569  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9570  # platforms (ab)use it in PIC code, but their linkers get confused if
9571  # the symbol is explicitly referenced.  Since portable code cannot
9572  # rely on this symbol name, it's probably fine to never include it in
9573  # preloaded symbol tables.
9574  # Exclude shared library initialization/finalization symbols.
9575  extract_expsyms_cmds=
9576
9577  case $host_os in
9578  cygwin* | mingw* | pw32* | cegcc*)
9579    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9580    # When not using gcc, we currently assume that we are using
9581    # Microsoft Visual C++.
9582    if test "$GCC" != yes; then
9583      with_gnu_ld=no
9584    fi
9585    ;;
9586  interix*)
9587    # we just hope/assume this is gcc and not c89 (= MSVC++)
9588    with_gnu_ld=yes
9589    ;;
9590  openbsd*)
9591    with_gnu_ld=no
9592    ;;
9593  esac
9594
9595  ld_shlibs=yes
9596
9597  # On some targets, GNU ld is compatible enough with the native linker
9598  # that we're better off using the native interface for both.
9599  lt_use_gnu_ld_interface=no
9600  if test "$with_gnu_ld" = yes; then
9601    case $host_os in
9602      aix*)
9603	# The AIX port of GNU ld has always aspired to compatibility
9604	# with the native linker.  However, as the warning in the GNU ld
9605	# block says, versions before 2.19.5* couldn't really create working
9606	# shared libraries, regardless of the interface used.
9607	case `$LD -v 2>&1` in
9608	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9609	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9610	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9611	  *)
9612	    lt_use_gnu_ld_interface=yes
9613	    ;;
9614	esac
9615	;;
9616      *)
9617	lt_use_gnu_ld_interface=yes
9618	;;
9619    esac
9620  fi
9621
9622  if test "$lt_use_gnu_ld_interface" = yes; then
9623    # If archive_cmds runs LD, not CC, wlarc should be empty
9624    wlarc='${wl}'
9625
9626    # Set some defaults for GNU ld with shared library support. These
9627    # are reset later if shared libraries are not supported. Putting them
9628    # here allows them to be overridden if necessary.
9629    runpath_var=LD_RUN_PATH
9630    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9631    export_dynamic_flag_spec='${wl}--export-dynamic'
9632    # ancient GNU ld didn't support --whole-archive et. al.
9633    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9634      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9635    else
9636      whole_archive_flag_spec=
9637    fi
9638    supports_anon_versioning=no
9639    case `$LD -v 2>&1` in
9640      *GNU\ gold*) supports_anon_versioning=yes ;;
9641      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9642      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9643      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9644      *\ 2.11.*) ;; # other 2.11 versions
9645      *) supports_anon_versioning=yes ;;
9646    esac
9647
9648    # See if GNU ld supports shared libraries.
9649    case $host_os in
9650    aix[3-9]*)
9651      # On AIX/PPC, the GNU linker is very broken
9652      if test "$host_cpu" != ia64; then
9653	ld_shlibs=no
9654	cat <<_LT_EOF 1>&2
9655
9656*** Warning: the GNU linker, at least up to release 2.19, is reported
9657*** to be unable to reliably create shared libraries on AIX.
9658*** Therefore, libtool is disabling shared libraries support.  If you
9659*** really care for shared libraries, you may want to install binutils
9660*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9661*** You will then need to restart the configuration process.
9662
9663_LT_EOF
9664      fi
9665      ;;
9666
9667    amigaos*)
9668      case $host_cpu in
9669      powerpc)
9670            # see comment about AmigaOS4 .so support
9671            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9672            archive_expsym_cmds=''
9673        ;;
9674      m68k)
9675            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)'
9676            hardcode_libdir_flag_spec='-L$libdir'
9677            hardcode_minus_L=yes
9678        ;;
9679      esac
9680      ;;
9681
9682    beos*)
9683      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9684	allow_undefined_flag=unsupported
9685	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9686	# support --undefined.  This deserves some investigation.  FIXME
9687	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9688      else
9689	ld_shlibs=no
9690      fi
9691      ;;
9692
9693    cygwin* | mingw* | pw32* | cegcc*)
9694      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9695      # as there is no search path for DLLs.
9696      hardcode_libdir_flag_spec='-L$libdir'
9697      export_dynamic_flag_spec='${wl}--export-all-symbols'
9698      allow_undefined_flag=unsupported
9699      always_export_symbols=no
9700      enable_shared_with_static_runtimes=yes
9701      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'
9702      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9703
9704      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9705        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9706	# If the export-symbols file already is a .def file (1st line
9707	# is EXPORTS), use it as is; otherwise, prepend...
9708	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9709	  cp $export_symbols $output_objdir/$soname.def;
9710	else
9711	  echo EXPORTS > $output_objdir/$soname.def;
9712	  cat $export_symbols >> $output_objdir/$soname.def;
9713	fi~
9714	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9715      else
9716	ld_shlibs=no
9717      fi
9718      ;;
9719
9720    haiku*)
9721      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9722      link_all_deplibs=yes
9723      ;;
9724
9725    interix[3-9]*)
9726      hardcode_direct=no
9727      hardcode_shlibpath_var=no
9728      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9729      export_dynamic_flag_spec='${wl}-E'
9730      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9731      # Instead, shared libraries are loaded at an image base (0x10000000 by
9732      # default) and relocated if they conflict, which is a slow very memory
9733      # consuming and fragmenting process.  To avoid this, we pick a random,
9734      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9735      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9736      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9737      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'
9738      ;;
9739
9740    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9741      tmp_diet=no
9742      if test "$host_os" = linux-dietlibc; then
9743	case $cc_basename in
9744	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9745	esac
9746      fi
9747      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9748	 && test "$tmp_diet" = no
9749      then
9750	tmp_addflag=' $pic_flag'
9751	tmp_sharedflag='-shared'
9752	case $cc_basename,$host_cpu in
9753        pgcc*)				# Portland Group C compiler
9754	  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'
9755	  tmp_addflag=' $pic_flag'
9756	  ;;
9757	pgf77* | pgf90* | pgf95* | pgfortran*)
9758					# Portland Group f77 and f90 compilers
9759	  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'
9760	  tmp_addflag=' $pic_flag -Mnomain' ;;
9761	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9762	  tmp_addflag=' -i_dynamic' ;;
9763	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9764	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9765	ifc* | ifort*)			# Intel Fortran compiler
9766	  tmp_addflag=' -nofor_main' ;;
9767	lf95*)				# Lahey Fortran 8.1
9768	  whole_archive_flag_spec=
9769	  tmp_sharedflag='--shared' ;;
9770	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9771	  tmp_sharedflag='-qmkshrobj'
9772	  tmp_addflag= ;;
9773	nvcc*)	# Cuda Compiler Driver 2.2
9774	  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'
9775	  compiler_needs_object=yes
9776	  ;;
9777	esac
9778	case `$CC -V 2>&1 | sed 5q` in
9779	*Sun\ C*)			# Sun C 5.9
9780	  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'
9781	  compiler_needs_object=yes
9782	  tmp_sharedflag='-G' ;;
9783	*Sun\ F*)			# Sun Fortran 8.3
9784	  tmp_sharedflag='-G' ;;
9785	esac
9786	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9787
9788        if test "x$supports_anon_versioning" = xyes; then
9789          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9790	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9791	    echo "local: *; };" >> $output_objdir/$libname.ver~
9792	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9793        fi
9794
9795	case $cc_basename in
9796	xlf* | bgf* | bgxlf* | mpixlf*)
9797	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9798	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9799	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9800	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9801	  if test "x$supports_anon_versioning" = xyes; then
9802	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9803	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9804	      echo "local: *; };" >> $output_objdir/$libname.ver~
9805	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9806	  fi
9807	  ;;
9808	esac
9809      else
9810        ld_shlibs=no
9811      fi
9812      ;;
9813
9814    netbsd*)
9815      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9816	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9817	wlarc=
9818      else
9819	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9820	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9821      fi
9822      ;;
9823
9824    solaris*)
9825      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9826	ld_shlibs=no
9827	cat <<_LT_EOF 1>&2
9828
9829*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9830*** create shared libraries on Solaris systems.  Therefore, libtool
9831*** is disabling shared libraries support.  We urge you to upgrade GNU
9832*** binutils to release 2.9.1 or newer.  Another option is to modify
9833*** your PATH or compiler configuration so that the native linker is
9834*** used, and then restart.
9835
9836_LT_EOF
9837      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9838	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9839	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9840      else
9841	ld_shlibs=no
9842      fi
9843      ;;
9844
9845    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9846      case `$LD -v 2>&1` in
9847        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9848	ld_shlibs=no
9849	cat <<_LT_EOF 1>&2
9850
9851*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9852*** reliably create shared libraries on SCO systems.  Therefore, libtool
9853*** is disabling shared libraries support.  We urge you to upgrade GNU
9854*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9855*** your PATH or compiler configuration so that the native linker is
9856*** used, and then restart.
9857
9858_LT_EOF
9859	;;
9860	*)
9861	  # For security reasons, it is highly recommended that you always
9862	  # use absolute paths for naming shared libraries, and exclude the
9863	  # DT_RUNPATH tag from executables and libraries.  But doing so
9864	  # requires that you compile everything twice, which is a pain.
9865	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9866	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9867	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9868	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9869	  else
9870	    ld_shlibs=no
9871	  fi
9872	;;
9873      esac
9874      ;;
9875
9876    sunos4*)
9877      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9878      wlarc=
9879      hardcode_direct=yes
9880      hardcode_shlibpath_var=no
9881      ;;
9882
9883    *)
9884      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9885	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9886	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9887      else
9888	ld_shlibs=no
9889      fi
9890      ;;
9891    esac
9892
9893    if test "$ld_shlibs" = no; then
9894      runpath_var=
9895      hardcode_libdir_flag_spec=
9896      export_dynamic_flag_spec=
9897      whole_archive_flag_spec=
9898    fi
9899  else
9900    # PORTME fill in a description of your system's linker (not GNU ld)
9901    case $host_os in
9902    aix3*)
9903      allow_undefined_flag=unsupported
9904      always_export_symbols=yes
9905      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'
9906      # Note: this linker hardcodes the directories in LIBPATH if there
9907      # are no directories specified by -L.
9908      hardcode_minus_L=yes
9909      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9910	# Neither direct hardcoding nor static linking is supported with a
9911	# broken collect2.
9912	hardcode_direct=unsupported
9913      fi
9914      ;;
9915
9916    aix[4-9]*)
9917      if test "$host_cpu" = ia64; then
9918	# On IA64, the linker does run time linking by default, so we don't
9919	# have to do anything special.
9920	aix_use_runtimelinking=no
9921	exp_sym_flag='-Bexport'
9922	no_entry_flag=""
9923      else
9924	# If we're using GNU nm, then we don't want the "-C" option.
9925	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9926	# Also, AIX nm treats weak defined symbols like other global
9927	# defined symbols, whereas GNU nm marks them as "W".
9928	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9929	  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'
9930	else
9931	  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'
9932	fi
9933	aix_use_runtimelinking=no
9934
9935	# Test if we are trying to use run time linking or normal
9936	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9937	# need to do runtime linking.
9938	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9939	  for ld_flag in $LDFLAGS; do
9940	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9941	    aix_use_runtimelinking=yes
9942	    break
9943	  fi
9944	  done
9945	  ;;
9946	esac
9947
9948	exp_sym_flag='-bexport'
9949	no_entry_flag='-bnoentry'
9950      fi
9951
9952      # When large executables or shared objects are built, AIX ld can
9953      # have problems creating the table of contents.  If linking a library
9954      # or program results in "error TOC overflow" add -mminimal-toc to
9955      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9956      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9957
9958      archive_cmds=''
9959      hardcode_direct=yes
9960      hardcode_direct_absolute=yes
9961      hardcode_libdir_separator=':'
9962      link_all_deplibs=yes
9963      file_list_spec='${wl}-f,'
9964
9965      if test "$GCC" = yes; then
9966	case $host_os in aix4.[012]|aix4.[012].*)
9967	# We only want to do this on AIX 4.2 and lower, the check
9968	# below for broken collect2 doesn't work under 4.3+
9969	  collect2name=`${CC} -print-prog-name=collect2`
9970	  if test -f "$collect2name" &&
9971	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9972	  then
9973	  # We have reworked collect2
9974	  :
9975	  else
9976	  # We have old collect2
9977	  hardcode_direct=unsupported
9978	  # It fails to find uninstalled libraries when the uninstalled
9979	  # path is not listed in the libpath.  Setting hardcode_minus_L
9980	  # to unsupported forces relinking
9981	  hardcode_minus_L=yes
9982	  hardcode_libdir_flag_spec='-L$libdir'
9983	  hardcode_libdir_separator=
9984	  fi
9985	  ;;
9986	esac
9987	shared_flag='-shared'
9988	if test "$aix_use_runtimelinking" = yes; then
9989	  shared_flag="$shared_flag "'${wl}-G'
9990	fi
9991      else
9992	# not using gcc
9993	if test "$host_cpu" = ia64; then
9994	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9995	# chokes on -Wl,-G. The following line is correct:
9996	  shared_flag='-G'
9997	else
9998	  if test "$aix_use_runtimelinking" = yes; then
9999	    shared_flag='${wl}-G'
10000	  else
10001	    shared_flag='${wl}-bM:SRE'
10002	  fi
10003	fi
10004      fi
10005
10006      export_dynamic_flag_spec='${wl}-bexpall'
10007      # It seems that -bexpall does not export symbols beginning with
10008      # underscore (_), so it is better to generate a list of symbols to export.
10009      always_export_symbols=yes
10010      if test "$aix_use_runtimelinking" = yes; then
10011	# Warning - without using the other runtime loading flags (-brtl),
10012	# -berok will link without error, but may produce a broken library.
10013	allow_undefined_flag='-berok'
10014        # Determine the default libpath from the value encoded in an
10015        # empty executable.
10016        if test "${lt_cv_aix_libpath+set}" = set; then
10017  aix_libpath=$lt_cv_aix_libpath
10018else
10019  if ${lt_cv_aix_libpath_+:} false; then :
10020  $as_echo_n "(cached) " >&6
10021else
10022  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10023/* end confdefs.h.  */
10024
10025int
10026main ()
10027{
10028
10029  ;
10030  return 0;
10031}
10032_ACEOF
10033if ac_fn_c_try_link "$LINENO"; then :
10034
10035  lt_aix_libpath_sed='
10036      /Import File Strings/,/^$/ {
10037	  /^0/ {
10038	      s/^0  *\([^ ]*\) *$/\1/
10039	      p
10040	  }
10041      }'
10042  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10043  # Check for a 64-bit object if we didn't find anything.
10044  if test -z "$lt_cv_aix_libpath_"; then
10045    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10046  fi
10047fi
10048rm -f core conftest.err conftest.$ac_objext \
10049    conftest$ac_exeext conftest.$ac_ext
10050  if test -z "$lt_cv_aix_libpath_"; then
10051    lt_cv_aix_libpath_="/usr/lib:/lib"
10052  fi
10053
10054fi
10055
10056  aix_libpath=$lt_cv_aix_libpath_
10057fi
10058
10059        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10060        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"
10061      else
10062	if test "$host_cpu" = ia64; then
10063	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10064	  allow_undefined_flag="-z nodefs"
10065	  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"
10066	else
10067	 # Determine the default libpath from the value encoded in an
10068	 # empty executable.
10069	 if test "${lt_cv_aix_libpath+set}" = set; then
10070  aix_libpath=$lt_cv_aix_libpath
10071else
10072  if ${lt_cv_aix_libpath_+:} false; then :
10073  $as_echo_n "(cached) " >&6
10074else
10075  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10076/* end confdefs.h.  */
10077
10078int
10079main ()
10080{
10081
10082  ;
10083  return 0;
10084}
10085_ACEOF
10086if ac_fn_c_try_link "$LINENO"; then :
10087
10088  lt_aix_libpath_sed='
10089      /Import File Strings/,/^$/ {
10090	  /^0/ {
10091	      s/^0  *\([^ ]*\) *$/\1/
10092	      p
10093	  }
10094      }'
10095  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10096  # Check for a 64-bit object if we didn't find anything.
10097  if test -z "$lt_cv_aix_libpath_"; then
10098    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10099  fi
10100fi
10101rm -f core conftest.err conftest.$ac_objext \
10102    conftest$ac_exeext conftest.$ac_ext
10103  if test -z "$lt_cv_aix_libpath_"; then
10104    lt_cv_aix_libpath_="/usr/lib:/lib"
10105  fi
10106
10107fi
10108
10109  aix_libpath=$lt_cv_aix_libpath_
10110fi
10111
10112	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10113	  # Warning - without using the other run time loading flags,
10114	  # -berok will link without error, but may produce a broken library.
10115	  no_undefined_flag=' ${wl}-bernotok'
10116	  allow_undefined_flag=' ${wl}-berok'
10117	  if test "$with_gnu_ld" = yes; then
10118	    # We only use this code for GNU lds that support --whole-archive.
10119	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10120	  else
10121	    # Exported symbols can be pulled into shared objects from archives
10122	    whole_archive_flag_spec='$convenience'
10123	  fi
10124	  archive_cmds_need_lc=yes
10125	  # This is similar to how AIX traditionally builds its shared libraries.
10126	  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'
10127	fi
10128      fi
10129      ;;
10130
10131    amigaos*)
10132      case $host_cpu in
10133      powerpc)
10134            # see comment about AmigaOS4 .so support
10135            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10136            archive_expsym_cmds=''
10137        ;;
10138      m68k)
10139            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)'
10140            hardcode_libdir_flag_spec='-L$libdir'
10141            hardcode_minus_L=yes
10142        ;;
10143      esac
10144      ;;
10145
10146    bsdi[45]*)
10147      export_dynamic_flag_spec=-rdynamic
10148      ;;
10149
10150    cygwin* | mingw* | pw32* | cegcc*)
10151      # When not using gcc, we currently assume that we are using
10152      # Microsoft Visual C++.
10153      # hardcode_libdir_flag_spec is actually meaningless, as there is
10154      # no search path for DLLs.
10155      case $cc_basename in
10156      cl*)
10157	# Native MSVC
10158	hardcode_libdir_flag_spec=' '
10159	allow_undefined_flag=unsupported
10160	always_export_symbols=yes
10161	file_list_spec='@'
10162	# Tell ltmain to make .lib files, not .a files.
10163	libext=lib
10164	# Tell ltmain to make .dll files, not .so files.
10165	shrext_cmds=".dll"
10166	# FIXME: Setting linknames here is a bad hack.
10167	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10168	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10169	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10170	  else
10171	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10172	  fi~
10173	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10174	  linknames='
10175	# The linker will not automatically build a static lib if we build a DLL.
10176	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10177	enable_shared_with_static_runtimes=yes
10178	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10179	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10180	# Don't use ranlib
10181	old_postinstall_cmds='chmod 644 $oldlib'
10182	postlink_cmds='lt_outputfile="@OUTPUT@"~
10183	  lt_tool_outputfile="@TOOL_OUTPUT@"~
10184	  case $lt_outputfile in
10185	    *.exe|*.EXE) ;;
10186	    *)
10187	      lt_outputfile="$lt_outputfile.exe"
10188	      lt_tool_outputfile="$lt_tool_outputfile.exe"
10189	      ;;
10190	  esac~
10191	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10192	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10193	    $RM "$lt_outputfile.manifest";
10194	  fi'
10195	;;
10196      *)
10197	# Assume MSVC wrapper
10198	hardcode_libdir_flag_spec=' '
10199	allow_undefined_flag=unsupported
10200	# Tell ltmain to make .lib files, not .a files.
10201	libext=lib
10202	# Tell ltmain to make .dll files, not .so files.
10203	shrext_cmds=".dll"
10204	# FIXME: Setting linknames here is a bad hack.
10205	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10206	# The linker will automatically build a .lib file if we build a DLL.
10207	old_archive_from_new_cmds='true'
10208	# FIXME: Should let the user specify the lib program.
10209	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10210	enable_shared_with_static_runtimes=yes
10211	;;
10212      esac
10213      ;;
10214
10215    darwin* | rhapsody*)
10216
10217
10218  archive_cmds_need_lc=no
10219  hardcode_direct=no
10220  hardcode_automatic=yes
10221  hardcode_shlibpath_var=unsupported
10222  if test "$lt_cv_ld_force_load" = "yes"; then
10223    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\"`'
10224
10225  else
10226    whole_archive_flag_spec=''
10227  fi
10228  link_all_deplibs=yes
10229  allow_undefined_flag="$_lt_dar_allow_undefined"
10230  case $cc_basename in
10231     ifort*) _lt_dar_can_shared=yes ;;
10232     *) _lt_dar_can_shared=$GCC ;;
10233  esac
10234  if test "$_lt_dar_can_shared" = "yes"; then
10235    output_verbose_link_cmd=func_echo_all
10236    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10237    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10238    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}"
10239    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}"
10240
10241  else
10242  ld_shlibs=no
10243  fi
10244
10245      ;;
10246
10247    dgux*)
10248      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10249      hardcode_libdir_flag_spec='-L$libdir'
10250      hardcode_shlibpath_var=no
10251      ;;
10252
10253    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10254    # support.  Future versions do this automatically, but an explicit c++rt0.o
10255    # does not break anything, and helps significantly (at the cost of a little
10256    # extra space).
10257    freebsd2.2*)
10258      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10259      hardcode_libdir_flag_spec='-R$libdir'
10260      hardcode_direct=yes
10261      hardcode_shlibpath_var=no
10262      ;;
10263
10264    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10265    freebsd2.*)
10266      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10267      hardcode_direct=yes
10268      hardcode_minus_L=yes
10269      hardcode_shlibpath_var=no
10270      ;;
10271
10272    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10273    freebsd* | dragonfly*)
10274      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10275      hardcode_libdir_flag_spec='-R$libdir'
10276      hardcode_direct=yes
10277      hardcode_shlibpath_var=no
10278      ;;
10279
10280    hpux9*)
10281      if test "$GCC" = yes; then
10282	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'
10283      else
10284	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'
10285      fi
10286      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10287      hardcode_libdir_separator=:
10288      hardcode_direct=yes
10289
10290      # hardcode_minus_L: Not really in the search PATH,
10291      # but as the default location of the library.
10292      hardcode_minus_L=yes
10293      export_dynamic_flag_spec='${wl}-E'
10294      ;;
10295
10296    hpux10*)
10297      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10298	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10299      else
10300	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10301      fi
10302      if test "$with_gnu_ld" = no; then
10303	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10304	hardcode_libdir_separator=:
10305	hardcode_direct=yes
10306	hardcode_direct_absolute=yes
10307	export_dynamic_flag_spec='${wl}-E'
10308	# hardcode_minus_L: Not really in the search PATH,
10309	# but as the default location of the library.
10310	hardcode_minus_L=yes
10311      fi
10312      ;;
10313
10314    hpux11*)
10315      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10316	case $host_cpu in
10317	hppa*64*)
10318	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10319	  ;;
10320	ia64*)
10321	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10322	  ;;
10323	*)
10324	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10325	  ;;
10326	esac
10327      else
10328	case $host_cpu in
10329	hppa*64*)
10330	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10331	  ;;
10332	ia64*)
10333	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10334	  ;;
10335	*)
10336
10337	  # Older versions of the 11.00 compiler do not understand -b yet
10338	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10339	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10340$as_echo_n "checking if $CC understands -b... " >&6; }
10341if ${lt_cv_prog_compiler__b+:} false; then :
10342  $as_echo_n "(cached) " >&6
10343else
10344  lt_cv_prog_compiler__b=no
10345   save_LDFLAGS="$LDFLAGS"
10346   LDFLAGS="$LDFLAGS -b"
10347   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10348   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10349     # The linker can only warn and ignore the option if not recognized
10350     # So say no if there are warnings
10351     if test -s conftest.err; then
10352       # Append any errors to the config.log.
10353       cat conftest.err 1>&5
10354       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10355       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10356       if diff conftest.exp conftest.er2 >/dev/null; then
10357         lt_cv_prog_compiler__b=yes
10358       fi
10359     else
10360       lt_cv_prog_compiler__b=yes
10361     fi
10362   fi
10363   $RM -r conftest*
10364   LDFLAGS="$save_LDFLAGS"
10365
10366fi
10367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10368$as_echo "$lt_cv_prog_compiler__b" >&6; }
10369
10370if test x"$lt_cv_prog_compiler__b" = xyes; then
10371    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10372else
10373    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10374fi
10375
10376	  ;;
10377	esac
10378      fi
10379      if test "$with_gnu_ld" = no; then
10380	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10381	hardcode_libdir_separator=:
10382
10383	case $host_cpu in
10384	hppa*64*|ia64*)
10385	  hardcode_direct=no
10386	  hardcode_shlibpath_var=no
10387	  ;;
10388	*)
10389	  hardcode_direct=yes
10390	  hardcode_direct_absolute=yes
10391	  export_dynamic_flag_spec='${wl}-E'
10392
10393	  # hardcode_minus_L: Not really in the search PATH,
10394	  # but as the default location of the library.
10395	  hardcode_minus_L=yes
10396	  ;;
10397	esac
10398      fi
10399      ;;
10400
10401    irix5* | irix6* | nonstopux*)
10402      if test "$GCC" = yes; then
10403	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'
10404	# Try to use the -exported_symbol ld option, if it does not
10405	# work, assume that -exports_file does not work either and
10406	# implicitly export all symbols.
10407	# This should be the same for all languages, so no per-tag cache variable.
10408	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10409$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10410if ${lt_cv_irix_exported_symbol+:} false; then :
10411  $as_echo_n "(cached) " >&6
10412else
10413  save_LDFLAGS="$LDFLAGS"
10414	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10415	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10416/* end confdefs.h.  */
10417int foo (void) { return 0; }
10418_ACEOF
10419if ac_fn_c_try_link "$LINENO"; then :
10420  lt_cv_irix_exported_symbol=yes
10421else
10422  lt_cv_irix_exported_symbol=no
10423fi
10424rm -f core conftest.err conftest.$ac_objext \
10425    conftest$ac_exeext conftest.$ac_ext
10426           LDFLAGS="$save_LDFLAGS"
10427fi
10428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10429$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10430	if test "$lt_cv_irix_exported_symbol" = yes; then
10431          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'
10432	fi
10433      else
10434	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'
10435	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'
10436      fi
10437      archive_cmds_need_lc='no'
10438      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10439      hardcode_libdir_separator=:
10440      inherit_rpath=yes
10441      link_all_deplibs=yes
10442      ;;
10443
10444    netbsd*)
10445      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10446	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10447      else
10448	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10449      fi
10450      hardcode_libdir_flag_spec='-R$libdir'
10451      hardcode_direct=yes
10452      hardcode_shlibpath_var=no
10453      ;;
10454
10455    newsos6)
10456      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10457      hardcode_direct=yes
10458      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10459      hardcode_libdir_separator=:
10460      hardcode_shlibpath_var=no
10461      ;;
10462
10463    *nto* | *qnx*)
10464      ;;
10465
10466    openbsd*)
10467      if test -f /usr/libexec/ld.so; then
10468	hardcode_direct=yes
10469	hardcode_shlibpath_var=no
10470	hardcode_direct_absolute=yes
10471	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10472	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10473	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10474	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10475	  export_dynamic_flag_spec='${wl}-E'
10476	else
10477	  case $host_os in
10478	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10479	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10480	     hardcode_libdir_flag_spec='-R$libdir'
10481	     ;;
10482	   *)
10483	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10484	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10485	     ;;
10486	  esac
10487	fi
10488      else
10489	ld_shlibs=no
10490      fi
10491      ;;
10492
10493    os2*)
10494      hardcode_libdir_flag_spec='-L$libdir'
10495      hardcode_minus_L=yes
10496      allow_undefined_flag=unsupported
10497      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'
10498      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10499      ;;
10500
10501    osf3*)
10502      if test "$GCC" = yes; then
10503	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10504	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'
10505      else
10506	allow_undefined_flag=' -expect_unresolved \*'
10507	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'
10508      fi
10509      archive_cmds_need_lc='no'
10510      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10511      hardcode_libdir_separator=:
10512      ;;
10513
10514    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10515      if test "$GCC" = yes; then
10516	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10517	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'
10518	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10519      else
10520	allow_undefined_flag=' -expect_unresolved \*'
10521	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'
10522	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~
10523	$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'
10524
10525	# Both c and cxx compiler support -rpath directly
10526	hardcode_libdir_flag_spec='-rpath $libdir'
10527      fi
10528      archive_cmds_need_lc='no'
10529      hardcode_libdir_separator=:
10530      ;;
10531
10532    solaris*)
10533      no_undefined_flag=' -z defs'
10534      if test "$GCC" = yes; then
10535	wlarc='${wl}'
10536	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10537	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10538	  $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'
10539      else
10540	case `$CC -V 2>&1` in
10541	*"Compilers 5.0"*)
10542	  wlarc=''
10543	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10544	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10545	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10546	  ;;
10547	*)
10548	  wlarc='${wl}'
10549	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10550	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10551	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10552	  ;;
10553	esac
10554      fi
10555      hardcode_libdir_flag_spec='-R$libdir'
10556      hardcode_shlibpath_var=no
10557      case $host_os in
10558      solaris2.[0-5] | solaris2.[0-5].*) ;;
10559      *)
10560	# The compiler driver will combine and reorder linker options,
10561	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10562	# but is careful enough not to reorder.
10563	# Supported since Solaris 2.6 (maybe 2.5.1?)
10564	if test "$GCC" = yes; then
10565	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10566	else
10567	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10568	fi
10569	;;
10570      esac
10571      link_all_deplibs=yes
10572      ;;
10573
10574    sunos4*)
10575      if test "x$host_vendor" = xsequent; then
10576	# Use $CC to link under sequent, because it throws in some extra .o
10577	# files that make .init and .fini sections work.
10578	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10579      else
10580	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10581      fi
10582      hardcode_libdir_flag_spec='-L$libdir'
10583      hardcode_direct=yes
10584      hardcode_minus_L=yes
10585      hardcode_shlibpath_var=no
10586      ;;
10587
10588    sysv4)
10589      case $host_vendor in
10590	sni)
10591	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10592	  hardcode_direct=yes # is this really true???
10593	;;
10594	siemens)
10595	  ## LD is ld it makes a PLAMLIB
10596	  ## CC just makes a GrossModule.
10597	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10598	  reload_cmds='$CC -r -o $output$reload_objs'
10599	  hardcode_direct=no
10600        ;;
10601	motorola)
10602	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10603	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10604	;;
10605      esac
10606      runpath_var='LD_RUN_PATH'
10607      hardcode_shlibpath_var=no
10608      ;;
10609
10610    sysv4.3*)
10611      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10612      hardcode_shlibpath_var=no
10613      export_dynamic_flag_spec='-Bexport'
10614      ;;
10615
10616    sysv4*MP*)
10617      if test -d /usr/nec; then
10618	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10619	hardcode_shlibpath_var=no
10620	runpath_var=LD_RUN_PATH
10621	hardcode_runpath_var=yes
10622	ld_shlibs=yes
10623      fi
10624      ;;
10625
10626    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10627      no_undefined_flag='${wl}-z,text'
10628      archive_cmds_need_lc=no
10629      hardcode_shlibpath_var=no
10630      runpath_var='LD_RUN_PATH'
10631
10632      if test "$GCC" = yes; then
10633	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10634	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10635      else
10636	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10637	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10638      fi
10639      ;;
10640
10641    sysv5* | sco3.2v5* | sco5v6*)
10642      # Note: We can NOT use -z defs as we might desire, because we do not
10643      # link with -lc, and that would cause any symbols used from libc to
10644      # always be unresolved, which means just about no library would
10645      # ever link correctly.  If we're not using GNU ld we use -z text
10646      # though, which does catch some bad symbols but isn't as heavy-handed
10647      # as -z defs.
10648      no_undefined_flag='${wl}-z,text'
10649      allow_undefined_flag='${wl}-z,nodefs'
10650      archive_cmds_need_lc=no
10651      hardcode_shlibpath_var=no
10652      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10653      hardcode_libdir_separator=':'
10654      link_all_deplibs=yes
10655      export_dynamic_flag_spec='${wl}-Bexport'
10656      runpath_var='LD_RUN_PATH'
10657
10658      if test "$GCC" = yes; then
10659	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10660	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10661      else
10662	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10663	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10664      fi
10665      ;;
10666
10667    uts4*)
10668      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10669      hardcode_libdir_flag_spec='-L$libdir'
10670      hardcode_shlibpath_var=no
10671      ;;
10672
10673    *)
10674      ld_shlibs=no
10675      ;;
10676    esac
10677
10678    if test x$host_vendor = xsni; then
10679      case $host in
10680      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10681	export_dynamic_flag_spec='${wl}-Blargedynsym'
10682	;;
10683      esac
10684    fi
10685  fi
10686
10687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10688$as_echo "$ld_shlibs" >&6; }
10689test "$ld_shlibs" = no && can_build_shared=no
10690
10691with_gnu_ld=$with_gnu_ld
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707#
10708# Do we need to explicitly link libc?
10709#
10710case "x$archive_cmds_need_lc" in
10711x|xyes)
10712  # Assume -lc should be added
10713  archive_cmds_need_lc=yes
10714
10715  if test "$enable_shared" = yes && test "$GCC" = yes; then
10716    case $archive_cmds in
10717    *'~'*)
10718      # FIXME: we may have to deal with multi-command sequences.
10719      ;;
10720    '$CC '*)
10721      # Test whether the compiler implicitly links with -lc since on some
10722      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10723      # to ld, don't add -lc before -lgcc.
10724      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10725$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10726if ${lt_cv_archive_cmds_need_lc+:} false; then :
10727  $as_echo_n "(cached) " >&6
10728else
10729  $RM conftest*
10730	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10731
10732	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10733  (eval $ac_compile) 2>&5
10734  ac_status=$?
10735  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10736  test $ac_status = 0; } 2>conftest.err; then
10737	  soname=conftest
10738	  lib=conftest
10739	  libobjs=conftest.$ac_objext
10740	  deplibs=
10741	  wl=$lt_prog_compiler_wl
10742	  pic_flag=$lt_prog_compiler_pic
10743	  compiler_flags=-v
10744	  linker_flags=-v
10745	  verstring=
10746	  output_objdir=.
10747	  libname=conftest
10748	  lt_save_allow_undefined_flag=$allow_undefined_flag
10749	  allow_undefined_flag=
10750	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10751  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10752  ac_status=$?
10753  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10754  test $ac_status = 0; }
10755	  then
10756	    lt_cv_archive_cmds_need_lc=no
10757	  else
10758	    lt_cv_archive_cmds_need_lc=yes
10759	  fi
10760	  allow_undefined_flag=$lt_save_allow_undefined_flag
10761	else
10762	  cat conftest.err 1>&5
10763	fi
10764	$RM conftest*
10765
10766fi
10767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10768$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10769      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10770      ;;
10771    esac
10772  fi
10773  ;;
10774esac
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10928$as_echo_n "checking dynamic linker characteristics... " >&6; }
10929
10930if test "$GCC" = yes; then
10931  case $host_os in
10932    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10933    *) lt_awk_arg="/^libraries:/" ;;
10934  esac
10935  case $host_os in
10936    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10937    *) lt_sed_strip_eq="s,=/,/,g" ;;
10938  esac
10939  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10940  case $lt_search_path_spec in
10941  *\;*)
10942    # if the path contains ";" then we assume it to be the separator
10943    # otherwise default to the standard path separator (i.e. ":") - it is
10944    # assumed that no part of a normal pathname contains ";" but that should
10945    # okay in the real world where ";" in dirpaths is itself problematic.
10946    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10947    ;;
10948  *)
10949    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10950    ;;
10951  esac
10952  # Ok, now we have the path, separated by spaces, we can step through it
10953  # and add multilib dir if necessary.
10954  lt_tmp_lt_search_path_spec=
10955  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10956  for lt_sys_path in $lt_search_path_spec; do
10957    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10958      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10959    else
10960      test -d "$lt_sys_path" && \
10961	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10962    fi
10963  done
10964  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10965BEGIN {RS=" "; FS="/|\n";} {
10966  lt_foo="";
10967  lt_count=0;
10968  for (lt_i = NF; lt_i > 0; lt_i--) {
10969    if ($lt_i != "" && $lt_i != ".") {
10970      if ($lt_i == "..") {
10971        lt_count++;
10972      } else {
10973        if (lt_count == 0) {
10974          lt_foo="/" $lt_i lt_foo;
10975        } else {
10976          lt_count--;
10977        }
10978      }
10979    }
10980  }
10981  if (lt_foo != "") { lt_freq[lt_foo]++; }
10982  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10983}'`
10984  # AWK program above erroneously prepends '/' to C:/dos/paths
10985  # for these hosts.
10986  case $host_os in
10987    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10988      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10989  esac
10990  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10991else
10992  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10993fi
10994library_names_spec=
10995libname_spec='lib$name'
10996soname_spec=
10997shrext_cmds=".so"
10998postinstall_cmds=
10999postuninstall_cmds=
11000finish_cmds=
11001finish_eval=
11002shlibpath_var=
11003shlibpath_overrides_runpath=unknown
11004version_type=none
11005dynamic_linker="$host_os ld.so"
11006sys_lib_dlsearch_path_spec="/lib /usr/lib"
11007need_lib_prefix=unknown
11008hardcode_into_libs=no
11009
11010# when you set need_version to no, make sure it does not cause -set_version
11011# flags to be left without arguments
11012need_version=unknown
11013
11014case $host_os in
11015aix3*)
11016  version_type=linux # correct to gnu/linux during the next big refactor
11017  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11018  shlibpath_var=LIBPATH
11019
11020  # AIX 3 has no versioning support, so we append a major version to the name.
11021  soname_spec='${libname}${release}${shared_ext}$major'
11022  ;;
11023
11024aix[4-9]*)
11025  version_type=linux # correct to gnu/linux during the next big refactor
11026  need_lib_prefix=no
11027  need_version=no
11028  hardcode_into_libs=yes
11029  if test "$host_cpu" = ia64; then
11030    # AIX 5 supports IA64
11031    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11032    shlibpath_var=LD_LIBRARY_PATH
11033  else
11034    # With GCC up to 2.95.x, collect2 would create an import file
11035    # for dependence libraries.  The import file would start with
11036    # the line `#! .'.  This would cause the generated library to
11037    # depend on `.', always an invalid library.  This was fixed in
11038    # development snapshots of GCC prior to 3.0.
11039    case $host_os in
11040      aix4 | aix4.[01] | aix4.[01].*)
11041      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11042	   echo ' yes '
11043	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11044	:
11045      else
11046	can_build_shared=no
11047      fi
11048      ;;
11049    esac
11050    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11051    # soname into executable. Probably we can add versioning support to
11052    # collect2, so additional links can be useful in future.
11053    if test "$aix_use_runtimelinking" = yes; then
11054      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11055      # instead of lib<name>.a to let people know that these are not
11056      # typical AIX shared libraries.
11057      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11058    else
11059      # We preserve .a as extension for shared libraries through AIX4.2
11060      # and later when we are not doing run time linking.
11061      library_names_spec='${libname}${release}.a $libname.a'
11062      soname_spec='${libname}${release}${shared_ext}$major'
11063    fi
11064    shlibpath_var=LIBPATH
11065  fi
11066  ;;
11067
11068amigaos*)
11069  case $host_cpu in
11070  powerpc)
11071    # Since July 2007 AmigaOS4 officially supports .so libraries.
11072    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11073    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11074    ;;
11075  m68k)
11076    library_names_spec='$libname.ixlibrary $libname.a'
11077    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11078    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'
11079    ;;
11080  esac
11081  ;;
11082
11083beos*)
11084  library_names_spec='${libname}${shared_ext}'
11085  dynamic_linker="$host_os ld.so"
11086  shlibpath_var=LIBRARY_PATH
11087  ;;
11088
11089bsdi[45]*)
11090  version_type=linux # correct to gnu/linux during the next big refactor
11091  need_version=no
11092  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11093  soname_spec='${libname}${release}${shared_ext}$major'
11094  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11095  shlibpath_var=LD_LIBRARY_PATH
11096  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11097  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11098  # the default ld.so.conf also contains /usr/contrib/lib and
11099  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11100  # libtool to hard-code these into programs
11101  ;;
11102
11103cygwin* | mingw* | pw32* | cegcc*)
11104  version_type=windows
11105  shrext_cmds=".dll"
11106  need_version=no
11107  need_lib_prefix=no
11108
11109  case $GCC,$cc_basename in
11110  yes,*)
11111    # gcc
11112    library_names_spec='$libname.dll.a'
11113    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11114    postinstall_cmds='base_file=`basename \${file}`~
11115      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11116      dldir=$destdir/`dirname \$dlpath`~
11117      test -d \$dldir || mkdir -p \$dldir~
11118      $install_prog $dir/$dlname \$dldir/$dlname~
11119      chmod a+x \$dldir/$dlname~
11120      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11121        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11122      fi'
11123    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11124      dlpath=$dir/\$dldll~
11125       $RM \$dlpath'
11126    shlibpath_overrides_runpath=yes
11127
11128    case $host_os in
11129    cygwin*)
11130      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11131      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11132
11133      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11134      ;;
11135    mingw* | cegcc*)
11136      # MinGW DLLs use traditional 'lib' prefix
11137      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11138      ;;
11139    pw32*)
11140      # pw32 DLLs use 'pw' prefix rather than 'lib'
11141      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11142      ;;
11143    esac
11144    dynamic_linker='Win32 ld.exe'
11145    ;;
11146
11147  *,cl*)
11148    # Native MSVC
11149    libname_spec='$name'
11150    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11151    library_names_spec='${libname}.dll.lib'
11152
11153    case $build_os in
11154    mingw*)
11155      sys_lib_search_path_spec=
11156      lt_save_ifs=$IFS
11157      IFS=';'
11158      for lt_path in $LIB
11159      do
11160        IFS=$lt_save_ifs
11161        # Let DOS variable expansion print the short 8.3 style file name.
11162        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11163        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11164      done
11165      IFS=$lt_save_ifs
11166      # Convert to MSYS style.
11167      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11168      ;;
11169    cygwin*)
11170      # Convert to unix form, then to dos form, then back to unix form
11171      # but this time dos style (no spaces!) so that the unix form looks
11172      # like /cygdrive/c/PROGRA~1:/cygdr...
11173      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11174      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11175      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11176      ;;
11177    *)
11178      sys_lib_search_path_spec="$LIB"
11179      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11180        # It is most probably a Windows format PATH.
11181        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11182      else
11183        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11184      fi
11185      # FIXME: find the short name or the path components, as spaces are
11186      # common. (e.g. "Program Files" -> "PROGRA~1")
11187      ;;
11188    esac
11189
11190    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11191    postinstall_cmds='base_file=`basename \${file}`~
11192      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11193      dldir=$destdir/`dirname \$dlpath`~
11194      test -d \$dldir || mkdir -p \$dldir~
11195      $install_prog $dir/$dlname \$dldir/$dlname'
11196    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11197      dlpath=$dir/\$dldll~
11198       $RM \$dlpath'
11199    shlibpath_overrides_runpath=yes
11200    dynamic_linker='Win32 link.exe'
11201    ;;
11202
11203  *)
11204    # Assume MSVC wrapper
11205    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11206    dynamic_linker='Win32 ld.exe'
11207    ;;
11208  esac
11209  # FIXME: first we should search . and the directory the executable is in
11210  shlibpath_var=PATH
11211  ;;
11212
11213darwin* | rhapsody*)
11214  dynamic_linker="$host_os dyld"
11215  version_type=darwin
11216  need_lib_prefix=no
11217  need_version=no
11218  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11219  soname_spec='${libname}${release}${major}$shared_ext'
11220  shlibpath_overrides_runpath=yes
11221  shlibpath_var=DYLD_LIBRARY_PATH
11222  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11223
11224  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11225  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11226  ;;
11227
11228dgux*)
11229  version_type=linux # correct to gnu/linux during the next big refactor
11230  need_lib_prefix=no
11231  need_version=no
11232  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11233  soname_spec='${libname}${release}${shared_ext}$major'
11234  shlibpath_var=LD_LIBRARY_PATH
11235  ;;
11236
11237freebsd* | dragonfly*)
11238  # DragonFly does not have aout.  When/if they implement a new
11239  # versioning mechanism, adjust this.
11240  if test -x /usr/bin/objformat; then
11241    objformat=`/usr/bin/objformat`
11242  else
11243    case $host_os in
11244    freebsd[23].*) objformat=aout ;;
11245    *) objformat=elf ;;
11246    esac
11247  fi
11248  version_type=freebsd-$objformat
11249  case $version_type in
11250    freebsd-elf*)
11251      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11252      need_version=no
11253      need_lib_prefix=no
11254      ;;
11255    freebsd-*)
11256      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11257      need_version=yes
11258      ;;
11259  esac
11260  shlibpath_var=LD_LIBRARY_PATH
11261  case $host_os in
11262  freebsd2.*)
11263    shlibpath_overrides_runpath=yes
11264    ;;
11265  freebsd3.[01]* | freebsdelf3.[01]*)
11266    shlibpath_overrides_runpath=yes
11267    hardcode_into_libs=yes
11268    ;;
11269  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11270  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11271    shlibpath_overrides_runpath=no
11272    hardcode_into_libs=yes
11273    ;;
11274  *) # from 4.6 on, and DragonFly
11275    shlibpath_overrides_runpath=yes
11276    hardcode_into_libs=yes
11277    ;;
11278  esac
11279  ;;
11280
11281gnu*)
11282  version_type=linux # correct to gnu/linux during the next big refactor
11283  need_lib_prefix=no
11284  need_version=no
11285  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11286  soname_spec='${libname}${release}${shared_ext}$major'
11287  shlibpath_var=LD_LIBRARY_PATH
11288  shlibpath_overrides_runpath=no
11289  hardcode_into_libs=yes
11290  ;;
11291
11292haiku*)
11293  version_type=linux # correct to gnu/linux during the next big refactor
11294  need_lib_prefix=no
11295  need_version=no
11296  dynamic_linker="$host_os runtime_loader"
11297  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11298  soname_spec='${libname}${release}${shared_ext}$major'
11299  shlibpath_var=LIBRARY_PATH
11300  shlibpath_overrides_runpath=yes
11301  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11302  hardcode_into_libs=yes
11303  ;;
11304
11305hpux9* | hpux10* | hpux11*)
11306  # Give a soname corresponding to the major version so that dld.sl refuses to
11307  # link against other versions.
11308  version_type=sunos
11309  need_lib_prefix=no
11310  need_version=no
11311  case $host_cpu in
11312  ia64*)
11313    shrext_cmds='.so'
11314    hardcode_into_libs=yes
11315    dynamic_linker="$host_os dld.so"
11316    shlibpath_var=LD_LIBRARY_PATH
11317    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11318    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11319    soname_spec='${libname}${release}${shared_ext}$major'
11320    if test "X$HPUX_IA64_MODE" = X32; then
11321      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11322    else
11323      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11324    fi
11325    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11326    ;;
11327  hppa*64*)
11328    shrext_cmds='.sl'
11329    hardcode_into_libs=yes
11330    dynamic_linker="$host_os dld.sl"
11331    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11332    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11333    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11334    soname_spec='${libname}${release}${shared_ext}$major'
11335    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11336    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11337    ;;
11338  *)
11339    shrext_cmds='.sl'
11340    dynamic_linker="$host_os dld.sl"
11341    shlibpath_var=SHLIB_PATH
11342    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11343    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11344    soname_spec='${libname}${release}${shared_ext}$major'
11345    ;;
11346  esac
11347  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11348  postinstall_cmds='chmod 555 $lib'
11349  # or fails outright, so override atomically:
11350  install_override_mode=555
11351  ;;
11352
11353interix[3-9]*)
11354  version_type=linux # correct to gnu/linux during the next big refactor
11355  need_lib_prefix=no
11356  need_version=no
11357  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11358  soname_spec='${libname}${release}${shared_ext}$major'
11359  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11360  shlibpath_var=LD_LIBRARY_PATH
11361  shlibpath_overrides_runpath=no
11362  hardcode_into_libs=yes
11363  ;;
11364
11365irix5* | irix6* | nonstopux*)
11366  case $host_os in
11367    nonstopux*) version_type=nonstopux ;;
11368    *)
11369	if test "$lt_cv_prog_gnu_ld" = yes; then
11370		version_type=linux # correct to gnu/linux during the next big refactor
11371	else
11372		version_type=irix
11373	fi ;;
11374  esac
11375  need_lib_prefix=no
11376  need_version=no
11377  soname_spec='${libname}${release}${shared_ext}$major'
11378  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11379  case $host_os in
11380  irix5* | nonstopux*)
11381    libsuff= shlibsuff=
11382    ;;
11383  *)
11384    case $LD in # libtool.m4 will add one of these switches to LD
11385    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11386      libsuff= shlibsuff= libmagic=32-bit;;
11387    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11388      libsuff=32 shlibsuff=N32 libmagic=N32;;
11389    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11390      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11391    *) libsuff= shlibsuff= libmagic=never-match;;
11392    esac
11393    ;;
11394  esac
11395  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11396  shlibpath_overrides_runpath=no
11397  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11398  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11399  hardcode_into_libs=yes
11400  ;;
11401
11402# No shared lib support for Linux oldld, aout, or coff.
11403linux*oldld* | linux*aout* | linux*coff*)
11404  dynamic_linker=no
11405  ;;
11406
11407# This must be glibc/ELF.
11408linux* | k*bsd*-gnu | kopensolaris*-gnu)
11409  version_type=linux # correct to gnu/linux during the next big refactor
11410  need_lib_prefix=no
11411  need_version=no
11412  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11413  soname_spec='${libname}${release}${shared_ext}$major'
11414  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11415  shlibpath_var=LD_LIBRARY_PATH
11416  shlibpath_overrides_runpath=no
11417
11418  # Some binutils ld are patched to set DT_RUNPATH
11419  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11420  $as_echo_n "(cached) " >&6
11421else
11422  lt_cv_shlibpath_overrides_runpath=no
11423    save_LDFLAGS=$LDFLAGS
11424    save_libdir=$libdir
11425    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11426	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11427    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11428/* end confdefs.h.  */
11429
11430int
11431main ()
11432{
11433
11434  ;
11435  return 0;
11436}
11437_ACEOF
11438if ac_fn_c_try_link "$LINENO"; then :
11439  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11440  lt_cv_shlibpath_overrides_runpath=yes
11441fi
11442fi
11443rm -f core conftest.err conftest.$ac_objext \
11444    conftest$ac_exeext conftest.$ac_ext
11445    LDFLAGS=$save_LDFLAGS
11446    libdir=$save_libdir
11447
11448fi
11449
11450  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11451
11452  # This implies no fast_install, which is unacceptable.
11453  # Some rework will be needed to allow for fast_install
11454  # before this can be enabled.
11455  hardcode_into_libs=yes
11456
11457  # Append ld.so.conf contents to the search path
11458  if test -f /etc/ld.so.conf; then
11459    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' ' '`
11460    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11461  fi
11462
11463  # We used to test for /lib/ld.so.1 and disable shared libraries on
11464  # powerpc, because MkLinux only supported shared libraries with the
11465  # GNU dynamic linker.  Since this was broken with cross compilers,
11466  # most powerpc-linux boxes support dynamic linking these days and
11467  # people can always --disable-shared, the test was removed, and we
11468  # assume the GNU/Linux dynamic linker is in use.
11469  dynamic_linker='GNU/Linux ld.so'
11470  ;;
11471
11472netbsd*)
11473  version_type=sunos
11474  need_lib_prefix=no
11475  need_version=no
11476  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11477    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11478    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11479    dynamic_linker='NetBSD (a.out) ld.so'
11480  else
11481    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11482    soname_spec='${libname}${release}${shared_ext}$major'
11483    dynamic_linker='NetBSD ld.elf_so'
11484  fi
11485  shlibpath_var=LD_LIBRARY_PATH
11486  shlibpath_overrides_runpath=yes
11487  hardcode_into_libs=yes
11488  ;;
11489
11490newsos6)
11491  version_type=linux # correct to gnu/linux during the next big refactor
11492  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11493  shlibpath_var=LD_LIBRARY_PATH
11494  shlibpath_overrides_runpath=yes
11495  ;;
11496
11497*nto* | *qnx*)
11498  version_type=qnx
11499  need_lib_prefix=no
11500  need_version=no
11501  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11502  soname_spec='${libname}${release}${shared_ext}$major'
11503  shlibpath_var=LD_LIBRARY_PATH
11504  shlibpath_overrides_runpath=no
11505  hardcode_into_libs=yes
11506  dynamic_linker='ldqnx.so'
11507  ;;
11508
11509openbsd*)
11510  version_type=sunos
11511  sys_lib_dlsearch_path_spec="/usr/lib"
11512  need_lib_prefix=no
11513  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11514  case $host_os in
11515    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11516    *)				need_version=no  ;;
11517  esac
11518  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11519  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11520  shlibpath_var=LD_LIBRARY_PATH
11521  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11522    case $host_os in
11523      openbsd2.[89] | openbsd2.[89].*)
11524	shlibpath_overrides_runpath=no
11525	;;
11526      *)
11527	shlibpath_overrides_runpath=yes
11528	;;
11529      esac
11530  else
11531    shlibpath_overrides_runpath=yes
11532  fi
11533  ;;
11534
11535os2*)
11536  libname_spec='$name'
11537  shrext_cmds=".dll"
11538  need_lib_prefix=no
11539  library_names_spec='$libname${shared_ext} $libname.a'
11540  dynamic_linker='OS/2 ld.exe'
11541  shlibpath_var=LIBPATH
11542  ;;
11543
11544osf3* | osf4* | osf5*)
11545  version_type=osf
11546  need_lib_prefix=no
11547  need_version=no
11548  soname_spec='${libname}${release}${shared_ext}$major'
11549  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11550  shlibpath_var=LD_LIBRARY_PATH
11551  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11552  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11553  ;;
11554
11555rdos*)
11556  dynamic_linker=no
11557  ;;
11558
11559solaris*)
11560  version_type=linux # correct to gnu/linux during the next big refactor
11561  need_lib_prefix=no
11562  need_version=no
11563  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11564  soname_spec='${libname}${release}${shared_ext}$major'
11565  shlibpath_var=LD_LIBRARY_PATH
11566  shlibpath_overrides_runpath=yes
11567  hardcode_into_libs=yes
11568  # ldd complains unless libraries are executable
11569  postinstall_cmds='chmod +x $lib'
11570  ;;
11571
11572sunos4*)
11573  version_type=sunos
11574  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11575  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11576  shlibpath_var=LD_LIBRARY_PATH
11577  shlibpath_overrides_runpath=yes
11578  if test "$with_gnu_ld" = yes; then
11579    need_lib_prefix=no
11580  fi
11581  need_version=yes
11582  ;;
11583
11584sysv4 | sysv4.3*)
11585  version_type=linux # correct to gnu/linux during the next big refactor
11586  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11587  soname_spec='${libname}${release}${shared_ext}$major'
11588  shlibpath_var=LD_LIBRARY_PATH
11589  case $host_vendor in
11590    sni)
11591      shlibpath_overrides_runpath=no
11592      need_lib_prefix=no
11593      runpath_var=LD_RUN_PATH
11594      ;;
11595    siemens)
11596      need_lib_prefix=no
11597      ;;
11598    motorola)
11599      need_lib_prefix=no
11600      need_version=no
11601      shlibpath_overrides_runpath=no
11602      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11603      ;;
11604  esac
11605  ;;
11606
11607sysv4*MP*)
11608  if test -d /usr/nec ;then
11609    version_type=linux # correct to gnu/linux during the next big refactor
11610    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11611    soname_spec='$libname${shared_ext}.$major'
11612    shlibpath_var=LD_LIBRARY_PATH
11613  fi
11614  ;;
11615
11616sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11617  version_type=freebsd-elf
11618  need_lib_prefix=no
11619  need_version=no
11620  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11621  soname_spec='${libname}${release}${shared_ext}$major'
11622  shlibpath_var=LD_LIBRARY_PATH
11623  shlibpath_overrides_runpath=yes
11624  hardcode_into_libs=yes
11625  if test "$with_gnu_ld" = yes; then
11626    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11627  else
11628    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11629    case $host_os in
11630      sco3.2v5*)
11631        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11632	;;
11633    esac
11634  fi
11635  sys_lib_dlsearch_path_spec='/usr/lib'
11636  ;;
11637
11638tpf*)
11639  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11640  version_type=linux # correct to gnu/linux during the next big refactor
11641  need_lib_prefix=no
11642  need_version=no
11643  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11644  shlibpath_var=LD_LIBRARY_PATH
11645  shlibpath_overrides_runpath=no
11646  hardcode_into_libs=yes
11647  ;;
11648
11649uts4*)
11650  version_type=linux # correct to gnu/linux during the next big refactor
11651  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11652  soname_spec='${libname}${release}${shared_ext}$major'
11653  shlibpath_var=LD_LIBRARY_PATH
11654  ;;
11655
11656*)
11657  dynamic_linker=no
11658  ;;
11659esac
11660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11661$as_echo "$dynamic_linker" >&6; }
11662test "$dynamic_linker" = no && can_build_shared=no
11663
11664variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11665if test "$GCC" = yes; then
11666  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11667fi
11668
11669if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11670  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11671fi
11672if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11673  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11674fi
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11768$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11769hardcode_action=
11770if test -n "$hardcode_libdir_flag_spec" ||
11771   test -n "$runpath_var" ||
11772   test "X$hardcode_automatic" = "Xyes" ; then
11773
11774  # We can hardcode non-existent directories.
11775  if test "$hardcode_direct" != no &&
11776     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11777     # have to relink, otherwise we might link with an installed library
11778     # when we should be linking with a yet-to-be-installed one
11779     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11780     test "$hardcode_minus_L" != no; then
11781    # Linking always hardcodes the temporary library directory.
11782    hardcode_action=relink
11783  else
11784    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11785    hardcode_action=immediate
11786  fi
11787else
11788  # We cannot hardcode anything, or else we can only hardcode existing
11789  # directories.
11790  hardcode_action=unsupported
11791fi
11792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11793$as_echo "$hardcode_action" >&6; }
11794
11795if test "$hardcode_action" = relink ||
11796   test "$inherit_rpath" = yes; then
11797  # Fast installation is not supported
11798  enable_fast_install=no
11799elif test "$shlibpath_overrides_runpath" = yes ||
11800     test "$enable_shared" = no; then
11801  # Fast installation is not necessary
11802  enable_fast_install=needless
11803fi
11804
11805
11806
11807
11808
11809
11810  if test "x$enable_dlopen" != xyes; then
11811  enable_dlopen=unknown
11812  enable_dlopen_self=unknown
11813  enable_dlopen_self_static=unknown
11814else
11815  lt_cv_dlopen=no
11816  lt_cv_dlopen_libs=
11817
11818  case $host_os in
11819  beos*)
11820    lt_cv_dlopen="load_add_on"
11821    lt_cv_dlopen_libs=
11822    lt_cv_dlopen_self=yes
11823    ;;
11824
11825  mingw* | pw32* | cegcc*)
11826    lt_cv_dlopen="LoadLibrary"
11827    lt_cv_dlopen_libs=
11828    ;;
11829
11830  cygwin*)
11831    lt_cv_dlopen="dlopen"
11832    lt_cv_dlopen_libs=
11833    ;;
11834
11835  darwin*)
11836  # if libdl is installed we need to link against it
11837    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11838$as_echo_n "checking for dlopen in -ldl... " >&6; }
11839if ${ac_cv_lib_dl_dlopen+:} false; then :
11840  $as_echo_n "(cached) " >&6
11841else
11842  ac_check_lib_save_LIBS=$LIBS
11843LIBS="-ldl  $LIBS"
11844cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11845/* end confdefs.h.  */
11846
11847/* Override any GCC internal prototype to avoid an error.
11848   Use char because int might match the return type of a GCC
11849   builtin and then its argument prototype would still apply.  */
11850#ifdef __cplusplus
11851extern "C"
11852#endif
11853char dlopen ();
11854int
11855main ()
11856{
11857return dlopen ();
11858  ;
11859  return 0;
11860}
11861_ACEOF
11862if ac_fn_c_try_link "$LINENO"; then :
11863  ac_cv_lib_dl_dlopen=yes
11864else
11865  ac_cv_lib_dl_dlopen=no
11866fi
11867rm -f core conftest.err conftest.$ac_objext \
11868    conftest$ac_exeext conftest.$ac_ext
11869LIBS=$ac_check_lib_save_LIBS
11870fi
11871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11872$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11873if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11874  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11875else
11876
11877    lt_cv_dlopen="dyld"
11878    lt_cv_dlopen_libs=
11879    lt_cv_dlopen_self=yes
11880
11881fi
11882
11883    ;;
11884
11885  *)
11886    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11887if test "x$ac_cv_func_shl_load" = xyes; then :
11888  lt_cv_dlopen="shl_load"
11889else
11890  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11891$as_echo_n "checking for shl_load in -ldld... " >&6; }
11892if ${ac_cv_lib_dld_shl_load+:} false; then :
11893  $as_echo_n "(cached) " >&6
11894else
11895  ac_check_lib_save_LIBS=$LIBS
11896LIBS="-ldld  $LIBS"
11897cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11898/* end confdefs.h.  */
11899
11900/* Override any GCC internal prototype to avoid an error.
11901   Use char because int might match the return type of a GCC
11902   builtin and then its argument prototype would still apply.  */
11903#ifdef __cplusplus
11904extern "C"
11905#endif
11906char shl_load ();
11907int
11908main ()
11909{
11910return shl_load ();
11911  ;
11912  return 0;
11913}
11914_ACEOF
11915if ac_fn_c_try_link "$LINENO"; then :
11916  ac_cv_lib_dld_shl_load=yes
11917else
11918  ac_cv_lib_dld_shl_load=no
11919fi
11920rm -f core conftest.err conftest.$ac_objext \
11921    conftest$ac_exeext conftest.$ac_ext
11922LIBS=$ac_check_lib_save_LIBS
11923fi
11924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11925$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11926if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11927  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11928else
11929  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11930if test "x$ac_cv_func_dlopen" = xyes; then :
11931  lt_cv_dlopen="dlopen"
11932else
11933  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11934$as_echo_n "checking for dlopen in -ldl... " >&6; }
11935if ${ac_cv_lib_dl_dlopen+:} false; then :
11936  $as_echo_n "(cached) " >&6
11937else
11938  ac_check_lib_save_LIBS=$LIBS
11939LIBS="-ldl  $LIBS"
11940cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11941/* end confdefs.h.  */
11942
11943/* Override any GCC internal prototype to avoid an error.
11944   Use char because int might match the return type of a GCC
11945   builtin and then its argument prototype would still apply.  */
11946#ifdef __cplusplus
11947extern "C"
11948#endif
11949char dlopen ();
11950int
11951main ()
11952{
11953return dlopen ();
11954  ;
11955  return 0;
11956}
11957_ACEOF
11958if ac_fn_c_try_link "$LINENO"; then :
11959  ac_cv_lib_dl_dlopen=yes
11960else
11961  ac_cv_lib_dl_dlopen=no
11962fi
11963rm -f core conftest.err conftest.$ac_objext \
11964    conftest$ac_exeext conftest.$ac_ext
11965LIBS=$ac_check_lib_save_LIBS
11966fi
11967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11968$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11969if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11970  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11971else
11972  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11973$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11974if ${ac_cv_lib_svld_dlopen+:} false; then :
11975  $as_echo_n "(cached) " >&6
11976else
11977  ac_check_lib_save_LIBS=$LIBS
11978LIBS="-lsvld  $LIBS"
11979cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11980/* end confdefs.h.  */
11981
11982/* Override any GCC internal prototype to avoid an error.
11983   Use char because int might match the return type of a GCC
11984   builtin and then its argument prototype would still apply.  */
11985#ifdef __cplusplus
11986extern "C"
11987#endif
11988char dlopen ();
11989int
11990main ()
11991{
11992return dlopen ();
11993  ;
11994  return 0;
11995}
11996_ACEOF
11997if ac_fn_c_try_link "$LINENO"; then :
11998  ac_cv_lib_svld_dlopen=yes
11999else
12000  ac_cv_lib_svld_dlopen=no
12001fi
12002rm -f core conftest.err conftest.$ac_objext \
12003    conftest$ac_exeext conftest.$ac_ext
12004LIBS=$ac_check_lib_save_LIBS
12005fi
12006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12007$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12008if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12009  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12010else
12011  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12012$as_echo_n "checking for dld_link in -ldld... " >&6; }
12013if ${ac_cv_lib_dld_dld_link+:} false; then :
12014  $as_echo_n "(cached) " >&6
12015else
12016  ac_check_lib_save_LIBS=$LIBS
12017LIBS="-ldld  $LIBS"
12018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12019/* end confdefs.h.  */
12020
12021/* Override any GCC internal prototype to avoid an error.
12022   Use char because int might match the return type of a GCC
12023   builtin and then its argument prototype would still apply.  */
12024#ifdef __cplusplus
12025extern "C"
12026#endif
12027char dld_link ();
12028int
12029main ()
12030{
12031return dld_link ();
12032  ;
12033  return 0;
12034}
12035_ACEOF
12036if ac_fn_c_try_link "$LINENO"; then :
12037  ac_cv_lib_dld_dld_link=yes
12038else
12039  ac_cv_lib_dld_dld_link=no
12040fi
12041rm -f core conftest.err conftest.$ac_objext \
12042    conftest$ac_exeext conftest.$ac_ext
12043LIBS=$ac_check_lib_save_LIBS
12044fi
12045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12046$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12047if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12048  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12049fi
12050
12051
12052fi
12053
12054
12055fi
12056
12057
12058fi
12059
12060
12061fi
12062
12063
12064fi
12065
12066    ;;
12067  esac
12068
12069  if test "x$lt_cv_dlopen" != xno; then
12070    enable_dlopen=yes
12071  else
12072    enable_dlopen=no
12073  fi
12074
12075  case $lt_cv_dlopen in
12076  dlopen)
12077    save_CPPFLAGS="$CPPFLAGS"
12078    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12079
12080    save_LDFLAGS="$LDFLAGS"
12081    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12082
12083    save_LIBS="$LIBS"
12084    LIBS="$lt_cv_dlopen_libs $LIBS"
12085
12086    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12087$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12088if ${lt_cv_dlopen_self+:} false; then :
12089  $as_echo_n "(cached) " >&6
12090else
12091  	  if test "$cross_compiling" = yes; then :
12092  lt_cv_dlopen_self=cross
12093else
12094  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12095  lt_status=$lt_dlunknown
12096  cat > conftest.$ac_ext <<_LT_EOF
12097#line $LINENO "configure"
12098#include "confdefs.h"
12099
12100#if HAVE_DLFCN_H
12101#include <dlfcn.h>
12102#endif
12103
12104#include <stdio.h>
12105
12106#ifdef RTLD_GLOBAL
12107#  define LT_DLGLOBAL		RTLD_GLOBAL
12108#else
12109#  ifdef DL_GLOBAL
12110#    define LT_DLGLOBAL		DL_GLOBAL
12111#  else
12112#    define LT_DLGLOBAL		0
12113#  endif
12114#endif
12115
12116/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12117   find out it does not work in some platform. */
12118#ifndef LT_DLLAZY_OR_NOW
12119#  ifdef RTLD_LAZY
12120#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12121#  else
12122#    ifdef DL_LAZY
12123#      define LT_DLLAZY_OR_NOW		DL_LAZY
12124#    else
12125#      ifdef RTLD_NOW
12126#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12127#      else
12128#        ifdef DL_NOW
12129#          define LT_DLLAZY_OR_NOW	DL_NOW
12130#        else
12131#          define LT_DLLAZY_OR_NOW	0
12132#        endif
12133#      endif
12134#    endif
12135#  endif
12136#endif
12137
12138/* When -fvisbility=hidden is used, assume the code has been annotated
12139   correspondingly for the symbols needed.  */
12140#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12141int fnord () __attribute__((visibility("default")));
12142#endif
12143
12144int fnord () { return 42; }
12145int main ()
12146{
12147  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12148  int status = $lt_dlunknown;
12149
12150  if (self)
12151    {
12152      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12153      else
12154        {
12155	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12156          else puts (dlerror ());
12157	}
12158      /* dlclose (self); */
12159    }
12160  else
12161    puts (dlerror ());
12162
12163  return status;
12164}
12165_LT_EOF
12166  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12167  (eval $ac_link) 2>&5
12168  ac_status=$?
12169  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12170  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12171    (./conftest; exit; ) >&5 2>/dev/null
12172    lt_status=$?
12173    case x$lt_status in
12174      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12175      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12176      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12177    esac
12178  else :
12179    # compilation failed
12180    lt_cv_dlopen_self=no
12181  fi
12182fi
12183rm -fr conftest*
12184
12185
12186fi
12187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12188$as_echo "$lt_cv_dlopen_self" >&6; }
12189
12190    if test "x$lt_cv_dlopen_self" = xyes; then
12191      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12192      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12193$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12194if ${lt_cv_dlopen_self_static+:} false; then :
12195  $as_echo_n "(cached) " >&6
12196else
12197  	  if test "$cross_compiling" = yes; then :
12198  lt_cv_dlopen_self_static=cross
12199else
12200  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12201  lt_status=$lt_dlunknown
12202  cat > conftest.$ac_ext <<_LT_EOF
12203#line $LINENO "configure"
12204#include "confdefs.h"
12205
12206#if HAVE_DLFCN_H
12207#include <dlfcn.h>
12208#endif
12209
12210#include <stdio.h>
12211
12212#ifdef RTLD_GLOBAL
12213#  define LT_DLGLOBAL		RTLD_GLOBAL
12214#else
12215#  ifdef DL_GLOBAL
12216#    define LT_DLGLOBAL		DL_GLOBAL
12217#  else
12218#    define LT_DLGLOBAL		0
12219#  endif
12220#endif
12221
12222/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12223   find out it does not work in some platform. */
12224#ifndef LT_DLLAZY_OR_NOW
12225#  ifdef RTLD_LAZY
12226#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12227#  else
12228#    ifdef DL_LAZY
12229#      define LT_DLLAZY_OR_NOW		DL_LAZY
12230#    else
12231#      ifdef RTLD_NOW
12232#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12233#      else
12234#        ifdef DL_NOW
12235#          define LT_DLLAZY_OR_NOW	DL_NOW
12236#        else
12237#          define LT_DLLAZY_OR_NOW	0
12238#        endif
12239#      endif
12240#    endif
12241#  endif
12242#endif
12243
12244/* When -fvisbility=hidden is used, assume the code has been annotated
12245   correspondingly for the symbols needed.  */
12246#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12247int fnord () __attribute__((visibility("default")));
12248#endif
12249
12250int fnord () { return 42; }
12251int main ()
12252{
12253  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12254  int status = $lt_dlunknown;
12255
12256  if (self)
12257    {
12258      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12259      else
12260        {
12261	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12262          else puts (dlerror ());
12263	}
12264      /* dlclose (self); */
12265    }
12266  else
12267    puts (dlerror ());
12268
12269  return status;
12270}
12271_LT_EOF
12272  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12273  (eval $ac_link) 2>&5
12274  ac_status=$?
12275  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12276  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12277    (./conftest; exit; ) >&5 2>/dev/null
12278    lt_status=$?
12279    case x$lt_status in
12280      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12281      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12282      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12283    esac
12284  else :
12285    # compilation failed
12286    lt_cv_dlopen_self_static=no
12287  fi
12288fi
12289rm -fr conftest*
12290
12291
12292fi
12293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12294$as_echo "$lt_cv_dlopen_self_static" >&6; }
12295    fi
12296
12297    CPPFLAGS="$save_CPPFLAGS"
12298    LDFLAGS="$save_LDFLAGS"
12299    LIBS="$save_LIBS"
12300    ;;
12301  esac
12302
12303  case $lt_cv_dlopen_self in
12304  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12305  *) enable_dlopen_self=unknown ;;
12306  esac
12307
12308  case $lt_cv_dlopen_self_static in
12309  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12310  *) enable_dlopen_self_static=unknown ;;
12311  esac
12312fi
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330striplib=
12331old_striplib=
12332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12333$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12334if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12335  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12336  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12338$as_echo "yes" >&6; }
12339else
12340# FIXME - insert some real tests, host_os isn't really good enough
12341  case $host_os in
12342  darwin*)
12343    if test -n "$STRIP" ; then
12344      striplib="$STRIP -x"
12345      old_striplib="$STRIP -S"
12346      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12347$as_echo "yes" >&6; }
12348    else
12349      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12350$as_echo "no" >&6; }
12351    fi
12352    ;;
12353  *)
12354    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12355$as_echo "no" >&6; }
12356    ;;
12357  esac
12358fi
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371  # Report which library types will actually be built
12372  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12373$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12375$as_echo "$can_build_shared" >&6; }
12376
12377  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12378$as_echo_n "checking whether to build shared libraries... " >&6; }
12379  test "$can_build_shared" = "no" && enable_shared=no
12380
12381  # On AIX, shared libraries and static libraries use the same namespace, and
12382  # are all built from PIC.
12383  case $host_os in
12384  aix3*)
12385    test "$enable_shared" = yes && enable_static=no
12386    if test -n "$RANLIB"; then
12387      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12388      postinstall_cmds='$RANLIB $lib'
12389    fi
12390    ;;
12391
12392  aix[4-9]*)
12393    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12394      test "$enable_shared" = yes && enable_static=no
12395    fi
12396    ;;
12397  esac
12398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12399$as_echo "$enable_shared" >&6; }
12400
12401  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12402$as_echo_n "checking whether to build static libraries... " >&6; }
12403  # Make sure either enable_shared or enable_static is yes.
12404  test "$enable_shared" = yes || enable_static=yes
12405  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12406$as_echo "$enable_static" >&6; }
12407
12408
12409
12410
12411fi
12412ac_ext=c
12413ac_cpp='$CPP $CPPFLAGS'
12414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12416ac_compiler_gnu=$ac_cv_c_compiler_gnu
12417
12418CC="$lt_save_CC"
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434        ac_config_commands="$ac_config_commands libtool"
12435
12436
12437
12438
12439# Only expand once:
12440
12441
12442ac_ext=c
12443ac_cpp='$CPP $CPPFLAGS'
12444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12446ac_compiler_gnu=$ac_cv_c_compiler_gnu
12447if test -n "$ac_tool_prefix"; then
12448  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12449set dummy ${ac_tool_prefix}gcc; ac_word=$2
12450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12451$as_echo_n "checking for $ac_word... " >&6; }
12452if ${ac_cv_prog_CC+:} false; then :
12453  $as_echo_n "(cached) " >&6
12454else
12455  if test -n "$CC"; then
12456  ac_cv_prog_CC="$CC" # Let the user override the test.
12457else
12458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12459for as_dir in $PATH
12460do
12461  IFS=$as_save_IFS
12462  test -z "$as_dir" && as_dir=.
12463    for ac_exec_ext in '' $ac_executable_extensions; do
12464  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12465    ac_cv_prog_CC="${ac_tool_prefix}gcc"
12466    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12467    break 2
12468  fi
12469done
12470  done
12471IFS=$as_save_IFS
12472
12473fi
12474fi
12475CC=$ac_cv_prog_CC
12476if test -n "$CC"; then
12477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12478$as_echo "$CC" >&6; }
12479else
12480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12481$as_echo "no" >&6; }
12482fi
12483
12484
12485fi
12486if test -z "$ac_cv_prog_CC"; then
12487  ac_ct_CC=$CC
12488  # Extract the first word of "gcc", so it can be a program name with args.
12489set dummy gcc; ac_word=$2
12490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12491$as_echo_n "checking for $ac_word... " >&6; }
12492if ${ac_cv_prog_ac_ct_CC+:} false; then :
12493  $as_echo_n "(cached) " >&6
12494else
12495  if test -n "$ac_ct_CC"; then
12496  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12497else
12498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12499for as_dir in $PATH
12500do
12501  IFS=$as_save_IFS
12502  test -z "$as_dir" && as_dir=.
12503    for ac_exec_ext in '' $ac_executable_extensions; do
12504  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12505    ac_cv_prog_ac_ct_CC="gcc"
12506    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12507    break 2
12508  fi
12509done
12510  done
12511IFS=$as_save_IFS
12512
12513fi
12514fi
12515ac_ct_CC=$ac_cv_prog_ac_ct_CC
12516if test -n "$ac_ct_CC"; then
12517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12518$as_echo "$ac_ct_CC" >&6; }
12519else
12520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12521$as_echo "no" >&6; }
12522fi
12523
12524  if test "x$ac_ct_CC" = x; then
12525    CC=""
12526  else
12527    case $cross_compiling:$ac_tool_warned in
12528yes:)
12529{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12530$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12531ac_tool_warned=yes ;;
12532esac
12533    CC=$ac_ct_CC
12534  fi
12535else
12536  CC="$ac_cv_prog_CC"
12537fi
12538
12539if test -z "$CC"; then
12540          if test -n "$ac_tool_prefix"; then
12541    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12542set dummy ${ac_tool_prefix}cc; ac_word=$2
12543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12544$as_echo_n "checking for $ac_word... " >&6; }
12545if ${ac_cv_prog_CC+:} false; then :
12546  $as_echo_n "(cached) " >&6
12547else
12548  if test -n "$CC"; then
12549  ac_cv_prog_CC="$CC" # Let the user override the test.
12550else
12551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12552for as_dir in $PATH
12553do
12554  IFS=$as_save_IFS
12555  test -z "$as_dir" && as_dir=.
12556    for ac_exec_ext in '' $ac_executable_extensions; do
12557  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12558    ac_cv_prog_CC="${ac_tool_prefix}cc"
12559    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12560    break 2
12561  fi
12562done
12563  done
12564IFS=$as_save_IFS
12565
12566fi
12567fi
12568CC=$ac_cv_prog_CC
12569if test -n "$CC"; then
12570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12571$as_echo "$CC" >&6; }
12572else
12573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12574$as_echo "no" >&6; }
12575fi
12576
12577
12578  fi
12579fi
12580if test -z "$CC"; then
12581  # Extract the first word of "cc", so it can be a program name with args.
12582set dummy cc; ac_word=$2
12583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12584$as_echo_n "checking for $ac_word... " >&6; }
12585if ${ac_cv_prog_CC+:} false; then :
12586  $as_echo_n "(cached) " >&6
12587else
12588  if test -n "$CC"; then
12589  ac_cv_prog_CC="$CC" # Let the user override the test.
12590else
12591  ac_prog_rejected=no
12592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12593for as_dir in $PATH
12594do
12595  IFS=$as_save_IFS
12596  test -z "$as_dir" && as_dir=.
12597    for ac_exec_ext in '' $ac_executable_extensions; do
12598  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12599    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12600       ac_prog_rejected=yes
12601       continue
12602     fi
12603    ac_cv_prog_CC="cc"
12604    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12605    break 2
12606  fi
12607done
12608  done
12609IFS=$as_save_IFS
12610
12611if test $ac_prog_rejected = yes; then
12612  # We found a bogon in the path, so make sure we never use it.
12613  set dummy $ac_cv_prog_CC
12614  shift
12615  if test $# != 0; then
12616    # We chose a different compiler from the bogus one.
12617    # However, it has the same basename, so the bogon will be chosen
12618    # first if we set CC to just the basename; use the full file name.
12619    shift
12620    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12621  fi
12622fi
12623fi
12624fi
12625CC=$ac_cv_prog_CC
12626if test -n "$CC"; then
12627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12628$as_echo "$CC" >&6; }
12629else
12630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12631$as_echo "no" >&6; }
12632fi
12633
12634
12635fi
12636if test -z "$CC"; then
12637  if test -n "$ac_tool_prefix"; then
12638  for ac_prog in cl.exe
12639  do
12640    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12641set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12643$as_echo_n "checking for $ac_word... " >&6; }
12644if ${ac_cv_prog_CC+:} false; then :
12645  $as_echo_n "(cached) " >&6
12646else
12647  if test -n "$CC"; then
12648  ac_cv_prog_CC="$CC" # Let the user override the test.
12649else
12650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12651for as_dir in $PATH
12652do
12653  IFS=$as_save_IFS
12654  test -z "$as_dir" && as_dir=.
12655    for ac_exec_ext in '' $ac_executable_extensions; do
12656  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12657    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12658    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12659    break 2
12660  fi
12661done
12662  done
12663IFS=$as_save_IFS
12664
12665fi
12666fi
12667CC=$ac_cv_prog_CC
12668if test -n "$CC"; then
12669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12670$as_echo "$CC" >&6; }
12671else
12672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12673$as_echo "no" >&6; }
12674fi
12675
12676
12677    test -n "$CC" && break
12678  done
12679fi
12680if test -z "$CC"; then
12681  ac_ct_CC=$CC
12682  for ac_prog in cl.exe
12683do
12684  # Extract the first word of "$ac_prog", so it can be a program name with args.
12685set dummy $ac_prog; ac_word=$2
12686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12687$as_echo_n "checking for $ac_word... " >&6; }
12688if ${ac_cv_prog_ac_ct_CC+:} false; then :
12689  $as_echo_n "(cached) " >&6
12690else
12691  if test -n "$ac_ct_CC"; then
12692  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12693else
12694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12695for as_dir in $PATH
12696do
12697  IFS=$as_save_IFS
12698  test -z "$as_dir" && as_dir=.
12699    for ac_exec_ext in '' $ac_executable_extensions; do
12700  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12701    ac_cv_prog_ac_ct_CC="$ac_prog"
12702    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12703    break 2
12704  fi
12705done
12706  done
12707IFS=$as_save_IFS
12708
12709fi
12710fi
12711ac_ct_CC=$ac_cv_prog_ac_ct_CC
12712if test -n "$ac_ct_CC"; then
12713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12714$as_echo "$ac_ct_CC" >&6; }
12715else
12716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12717$as_echo "no" >&6; }
12718fi
12719
12720
12721  test -n "$ac_ct_CC" && break
12722done
12723
12724  if test "x$ac_ct_CC" = x; then
12725    CC=""
12726  else
12727    case $cross_compiling:$ac_tool_warned in
12728yes:)
12729{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12730$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12731ac_tool_warned=yes ;;
12732esac
12733    CC=$ac_ct_CC
12734  fi
12735fi
12736
12737fi
12738
12739
12740test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12741$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12742as_fn_error $? "no acceptable C compiler found in \$PATH
12743See \`config.log' for more details" "$LINENO" 5; }
12744
12745# Provide some information about the compiler.
12746$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12747set X $ac_compile
12748ac_compiler=$2
12749for ac_option in --version -v -V -qversion; do
12750  { { ac_try="$ac_compiler $ac_option >&5"
12751case "(($ac_try" in
12752  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12753  *) ac_try_echo=$ac_try;;
12754esac
12755eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12756$as_echo "$ac_try_echo"; } >&5
12757  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12758  ac_status=$?
12759  if test -s conftest.err; then
12760    sed '10a\
12761... rest of stderr output deleted ...
12762         10q' conftest.err >conftest.er1
12763    cat conftest.er1 >&5
12764  fi
12765  rm -f conftest.er1 conftest.err
12766  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12767  test $ac_status = 0; }
12768done
12769
12770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12771$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12772if ${ac_cv_c_compiler_gnu+:} false; then :
12773  $as_echo_n "(cached) " >&6
12774else
12775  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12776/* end confdefs.h.  */
12777
12778int
12779main ()
12780{
12781#ifndef __GNUC__
12782       choke me
12783#endif
12784
12785  ;
12786  return 0;
12787}
12788_ACEOF
12789if ac_fn_c_try_compile "$LINENO"; then :
12790  ac_compiler_gnu=yes
12791else
12792  ac_compiler_gnu=no
12793fi
12794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12795ac_cv_c_compiler_gnu=$ac_compiler_gnu
12796
12797fi
12798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12799$as_echo "$ac_cv_c_compiler_gnu" >&6; }
12800if test $ac_compiler_gnu = yes; then
12801  GCC=yes
12802else
12803  GCC=
12804fi
12805ac_test_CFLAGS=${CFLAGS+set}
12806ac_save_CFLAGS=$CFLAGS
12807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12808$as_echo_n "checking whether $CC accepts -g... " >&6; }
12809if ${ac_cv_prog_cc_g+:} false; then :
12810  $as_echo_n "(cached) " >&6
12811else
12812  ac_save_c_werror_flag=$ac_c_werror_flag
12813   ac_c_werror_flag=yes
12814   ac_cv_prog_cc_g=no
12815   CFLAGS="-g"
12816   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12817/* end confdefs.h.  */
12818
12819int
12820main ()
12821{
12822
12823  ;
12824  return 0;
12825}
12826_ACEOF
12827if ac_fn_c_try_compile "$LINENO"; then :
12828  ac_cv_prog_cc_g=yes
12829else
12830  CFLAGS=""
12831      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12832/* end confdefs.h.  */
12833
12834int
12835main ()
12836{
12837
12838  ;
12839  return 0;
12840}
12841_ACEOF
12842if ac_fn_c_try_compile "$LINENO"; then :
12843
12844else
12845  ac_c_werror_flag=$ac_save_c_werror_flag
12846	 CFLAGS="-g"
12847	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12848/* end confdefs.h.  */
12849
12850int
12851main ()
12852{
12853
12854  ;
12855  return 0;
12856}
12857_ACEOF
12858if ac_fn_c_try_compile "$LINENO"; then :
12859  ac_cv_prog_cc_g=yes
12860fi
12861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12862fi
12863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12864fi
12865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12866   ac_c_werror_flag=$ac_save_c_werror_flag
12867fi
12868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12869$as_echo "$ac_cv_prog_cc_g" >&6; }
12870if test "$ac_test_CFLAGS" = set; then
12871  CFLAGS=$ac_save_CFLAGS
12872elif test $ac_cv_prog_cc_g = yes; then
12873  if test "$GCC" = yes; then
12874    CFLAGS="-g -O2"
12875  else
12876    CFLAGS="-g"
12877  fi
12878else
12879  if test "$GCC" = yes; then
12880    CFLAGS="-O2"
12881  else
12882    CFLAGS=
12883  fi
12884fi
12885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12886$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12887if ${ac_cv_prog_cc_c89+:} false; then :
12888  $as_echo_n "(cached) " >&6
12889else
12890  ac_cv_prog_cc_c89=no
12891ac_save_CC=$CC
12892cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12893/* end confdefs.h.  */
12894#include <stdarg.h>
12895#include <stdio.h>
12896#include <sys/types.h>
12897#include <sys/stat.h>
12898/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12899struct buf { int x; };
12900FILE * (*rcsopen) (struct buf *, struct stat *, int);
12901static char *e (p, i)
12902     char **p;
12903     int i;
12904{
12905  return p[i];
12906}
12907static char *f (char * (*g) (char **, int), char **p, ...)
12908{
12909  char *s;
12910  va_list v;
12911  va_start (v,p);
12912  s = g (p, va_arg (v,int));
12913  va_end (v);
12914  return s;
12915}
12916
12917/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12918   function prototypes and stuff, but not '\xHH' hex character constants.
12919   These don't provoke an error unfortunately, instead are silently treated
12920   as 'x'.  The following induces an error, until -std is added to get
12921   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12922   array size at least.  It's necessary to write '\x00'==0 to get something
12923   that's true only with -std.  */
12924int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12925
12926/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12927   inside strings and character constants.  */
12928#define FOO(x) 'x'
12929int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12930
12931int test (int i, double x);
12932struct s1 {int (*f) (int a);};
12933struct s2 {int (*f) (double a);};
12934int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12935int argc;
12936char **argv;
12937int
12938main ()
12939{
12940return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12941  ;
12942  return 0;
12943}
12944_ACEOF
12945for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12946	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12947do
12948  CC="$ac_save_CC $ac_arg"
12949  if ac_fn_c_try_compile "$LINENO"; then :
12950  ac_cv_prog_cc_c89=$ac_arg
12951fi
12952rm -f core conftest.err conftest.$ac_objext
12953  test "x$ac_cv_prog_cc_c89" != "xno" && break
12954done
12955rm -f conftest.$ac_ext
12956CC=$ac_save_CC
12957
12958fi
12959# AC_CACHE_VAL
12960case "x$ac_cv_prog_cc_c89" in
12961  x)
12962    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12963$as_echo "none needed" >&6; } ;;
12964  xno)
12965    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12966$as_echo "unsupported" >&6; } ;;
12967  *)
12968    CC="$CC $ac_cv_prog_cc_c89"
12969    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12970$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12971esac
12972if test "x$ac_cv_prog_cc_c89" != xno; then :
12973
12974fi
12975
12976ac_ext=c
12977ac_cpp='$CPP $CPPFLAGS'
12978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12980ac_compiler_gnu=$ac_cv_c_compiler_gnu
12981
12982
12983# Extract the first word of "xsltproc", so it can be a program name with args.
12984set dummy xsltproc; ac_word=$2
12985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12986$as_echo_n "checking for $ac_word... " >&6; }
12987if ${ac_cv_path_XSLTPROC+:} false; then :
12988  $as_echo_n "(cached) " >&6
12989else
12990  case $XSLTPROC in
12991  [\\/]* | ?:[\\/]*)
12992  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
12993  ;;
12994  *)
12995  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12996for as_dir in $PATH
12997do
12998  IFS=$as_save_IFS
12999  test -z "$as_dir" && as_dir=.
13000    for ac_exec_ext in '' $ac_executable_extensions; do
13001  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13002    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
13003    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13004    break 2
13005  fi
13006done
13007  done
13008IFS=$as_save_IFS
13009
13010  test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="no"
13011  ;;
13012esac
13013fi
13014XSLTPROC=$ac_cv_path_XSLTPROC
13015if test -n "$XSLTPROC"; then
13016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
13017$as_echo "$XSLTPROC" >&6; }
13018else
13019  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13020$as_echo "no" >&6; }
13021fi
13022
13023
13024if test "$XSLTPROC" = "no"; then
13025   as_fn_error $? "XCB requires xsltproc." "$LINENO" 5
13026fi
13027
13028HTML_CHECK_RESULT=false
13029if test x"$HAVE_CHECK" = xyes; then
13030	if test x"$XSLTPROC" != xno; then
13031		HTML_CHECK_RESULT=true
13032	fi
13033fi
13034
13035
13036# Checks for pkg-config packages
13037
13038pkg_failed=no
13039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCBPROTO" >&5
13040$as_echo_n "checking for XCBPROTO... " >&6; }
13041
13042if test -n "$XCBPROTO_CFLAGS"; then
13043    pkg_cv_XCBPROTO_CFLAGS="$XCBPROTO_CFLAGS"
13044 elif test -n "$PKG_CONFIG"; then
13045    if test -n "$PKG_CONFIG" && \
13046    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-proto >= 1.7\""; } >&5
13047  ($PKG_CONFIG --exists --print-errors "xcb-proto >= 1.7") 2>&5
13048  ac_status=$?
13049  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13050  test $ac_status = 0; }; then
13051  pkg_cv_XCBPROTO_CFLAGS=`$PKG_CONFIG --cflags "xcb-proto >= 1.7" 2>/dev/null`
13052else
13053  pkg_failed=yes
13054fi
13055 else
13056    pkg_failed=untried
13057fi
13058if test -n "$XCBPROTO_LIBS"; then
13059    pkg_cv_XCBPROTO_LIBS="$XCBPROTO_LIBS"
13060 elif test -n "$PKG_CONFIG"; then
13061    if test -n "$PKG_CONFIG" && \
13062    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-proto >= 1.7\""; } >&5
13063  ($PKG_CONFIG --exists --print-errors "xcb-proto >= 1.7") 2>&5
13064  ac_status=$?
13065  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13066  test $ac_status = 0; }; then
13067  pkg_cv_XCBPROTO_LIBS=`$PKG_CONFIG --libs "xcb-proto >= 1.7" 2>/dev/null`
13068else
13069  pkg_failed=yes
13070fi
13071 else
13072    pkg_failed=untried
13073fi
13074
13075
13076
13077if test $pkg_failed = yes; then
13078
13079if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13080        _pkg_short_errors_supported=yes
13081else
13082        _pkg_short_errors_supported=no
13083fi
13084        if test $_pkg_short_errors_supported = yes; then
13085	        XCBPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xcb-proto >= 1.7" 2>&1`
13086        else
13087	        XCBPROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors "xcb-proto >= 1.7" 2>&1`
13088        fi
13089	# Put the nasty error message in config.log where it belongs
13090	echo "$XCBPROTO_PKG_ERRORS" >&5
13091
13092	as_fn_error $? "Package requirements (xcb-proto >= 1.7) were not met:
13093
13094$XCBPROTO_PKG_ERRORS
13095
13096Consider adjusting the PKG_CONFIG_PATH environment variable if you
13097installed software in a non-standard prefix.
13098
13099Alternatively, you may set the environment variables XCBPROTO_CFLAGS
13100and XCBPROTO_LIBS to avoid the need to call pkg-config.
13101See the pkg-config man page for more details.
13102" "$LINENO" 5
13103elif test $pkg_failed = untried; then
13104	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13105$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13106as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13107is in your PATH or set the PKG_CONFIG environment variable to the full
13108path to pkg-config.
13109
13110Alternatively, you may set the environment variables XCBPROTO_CFLAGS
13111and XCBPROTO_LIBS to avoid the need to call pkg-config.
13112See the pkg-config man page for more details.
13113
13114To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13115See \`config.log' for more details" "$LINENO" 5; }
13116else
13117	XCBPROTO_CFLAGS=$pkg_cv_XCBPROTO_CFLAGS
13118	XCBPROTO_LIBS=$pkg_cv_XCBPROTO_LIBS
13119        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13120$as_echo "yes" >&6; }
13121	:
13122fi
13123NEEDED="pthread-stubs xau >= 0.99.2"
13124
13125pkg_failed=no
13126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NEEDED" >&5
13127$as_echo_n "checking for NEEDED... " >&6; }
13128
13129if test -n "$NEEDED_CFLAGS"; then
13130    pkg_cv_NEEDED_CFLAGS="$NEEDED_CFLAGS"
13131 elif test -n "$PKG_CONFIG"; then
13132    if test -n "$PKG_CONFIG" && \
13133    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$NEEDED\""; } >&5
13134  ($PKG_CONFIG --exists --print-errors "$NEEDED") 2>&5
13135  ac_status=$?
13136  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13137  test $ac_status = 0; }; then
13138  pkg_cv_NEEDED_CFLAGS=`$PKG_CONFIG --cflags "$NEEDED" 2>/dev/null`
13139else
13140  pkg_failed=yes
13141fi
13142 else
13143    pkg_failed=untried
13144fi
13145if test -n "$NEEDED_LIBS"; then
13146    pkg_cv_NEEDED_LIBS="$NEEDED_LIBS"
13147 elif test -n "$PKG_CONFIG"; then
13148    if test -n "$PKG_CONFIG" && \
13149    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$NEEDED\""; } >&5
13150  ($PKG_CONFIG --exists --print-errors "$NEEDED") 2>&5
13151  ac_status=$?
13152  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13153  test $ac_status = 0; }; then
13154  pkg_cv_NEEDED_LIBS=`$PKG_CONFIG --libs "$NEEDED" 2>/dev/null`
13155else
13156  pkg_failed=yes
13157fi
13158 else
13159    pkg_failed=untried
13160fi
13161
13162
13163
13164if test $pkg_failed = yes; then
13165
13166if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13167        _pkg_short_errors_supported=yes
13168else
13169        _pkg_short_errors_supported=no
13170fi
13171        if test $_pkg_short_errors_supported = yes; then
13172	        NEEDED_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$NEEDED" 2>&1`
13173        else
13174	        NEEDED_PKG_ERRORS=`$PKG_CONFIG --print-errors "$NEEDED" 2>&1`
13175        fi
13176	# Put the nasty error message in config.log where it belongs
13177	echo "$NEEDED_PKG_ERRORS" >&5
13178
13179	as_fn_error $? "Package requirements ($NEEDED) were not met:
13180
13181$NEEDED_PKG_ERRORS
13182
13183Consider adjusting the PKG_CONFIG_PATH environment variable if you
13184installed software in a non-standard prefix.
13185
13186Alternatively, you may set the environment variables NEEDED_CFLAGS
13187and NEEDED_LIBS to avoid the need to call pkg-config.
13188See the pkg-config man page for more details.
13189" "$LINENO" 5
13190elif test $pkg_failed = untried; then
13191	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13192$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13193as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13194is in your PATH or set the PKG_CONFIG environment variable to the full
13195path to pkg-config.
13196
13197Alternatively, you may set the environment variables NEEDED_CFLAGS
13198and NEEDED_LIBS to avoid the need to call pkg-config.
13199See the pkg-config man page for more details.
13200
13201To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13202See \`config.log' for more details" "$LINENO" 5; }
13203else
13204	NEEDED_CFLAGS=$pkg_cv_NEEDED_CFLAGS
13205	NEEDED_LIBS=$pkg_cv_NEEDED_LIBS
13206        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13207$as_echo "yes" >&6; }
13208	:
13209fi
13210
13211have_xdmcp="no"
13212
13213pkg_failed=no
13214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDMCP" >&5
13215$as_echo_n "checking for XDMCP... " >&6; }
13216
13217if test -n "$XDMCP_CFLAGS"; then
13218    pkg_cv_XDMCP_CFLAGS="$XDMCP_CFLAGS"
13219 elif test -n "$PKG_CONFIG"; then
13220    if test -n "$PKG_CONFIG" && \
13221    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5
13222  ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
13223  ac_status=$?
13224  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13225  test $ac_status = 0; }; then
13226  pkg_cv_XDMCP_CFLAGS=`$PKG_CONFIG --cflags "xdmcp" 2>/dev/null`
13227else
13228  pkg_failed=yes
13229fi
13230 else
13231    pkg_failed=untried
13232fi
13233if test -n "$XDMCP_LIBS"; then
13234    pkg_cv_XDMCP_LIBS="$XDMCP_LIBS"
13235 elif test -n "$PKG_CONFIG"; then
13236    if test -n "$PKG_CONFIG" && \
13237    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5
13238  ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
13239  ac_status=$?
13240  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13241  test $ac_status = 0; }; then
13242  pkg_cv_XDMCP_LIBS=`$PKG_CONFIG --libs "xdmcp" 2>/dev/null`
13243else
13244  pkg_failed=yes
13245fi
13246 else
13247    pkg_failed=untried
13248fi
13249
13250
13251
13252if test $pkg_failed = yes; then
13253
13254if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13255        _pkg_short_errors_supported=yes
13256else
13257        _pkg_short_errors_supported=no
13258fi
13259        if test $_pkg_short_errors_supported = yes; then
13260	        XDMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xdmcp" 2>&1`
13261        else
13262	        XDMCP_PKG_ERRORS=`$PKG_CONFIG --print-errors "xdmcp" 2>&1`
13263        fi
13264	# Put the nasty error message in config.log where it belongs
13265	echo "$XDMCP_PKG_ERRORS" >&5
13266
13267	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13268$as_echo "no" >&6; }
13269                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13270$as_echo "no" >&6; }
13271elif test $pkg_failed = untried; then
13272	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13273$as_echo "no" >&6; }
13274else
13275	XDMCP_CFLAGS=$pkg_cv_XDMCP_CFLAGS
13276	XDMCP_LIBS=$pkg_cv_XDMCP_LIBS
13277        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13278$as_echo "yes" >&6; }
13279	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XdmcpWrap in -lXdmcp" >&5
13280$as_echo_n "checking for XdmcpWrap in -lXdmcp... " >&6; }
13281if ${ac_cv_lib_Xdmcp_XdmcpWrap+:} false; then :
13282  $as_echo_n "(cached) " >&6
13283else
13284  ac_check_lib_save_LIBS=$LIBS
13285LIBS="-lXdmcp $XDMCP_LIBS $LIBS"
13286cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13287/* end confdefs.h.  */
13288
13289/* Override any GCC internal prototype to avoid an error.
13290   Use char because int might match the return type of a GCC
13291   builtin and then its argument prototype would still apply.  */
13292#ifdef __cplusplus
13293extern "C"
13294#endif
13295char XdmcpWrap ();
13296int
13297main ()
13298{
13299return XdmcpWrap ();
13300  ;
13301  return 0;
13302}
13303_ACEOF
13304if ac_fn_c_try_link "$LINENO"; then :
13305  ac_cv_lib_Xdmcp_XdmcpWrap=yes
13306else
13307  ac_cv_lib_Xdmcp_XdmcpWrap=no
13308fi
13309rm -f core conftest.err conftest.$ac_objext \
13310    conftest$ac_exeext conftest.$ac_ext
13311LIBS=$ac_check_lib_save_LIBS
13312fi
13313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp_XdmcpWrap" >&5
13314$as_echo "$ac_cv_lib_Xdmcp_XdmcpWrap" >&6; }
13315if test "x$ac_cv_lib_Xdmcp_XdmcpWrap" = xyes; then :
13316
13317
13318$as_echo "#define HASXDMAUTH 1" >>confdefs.h
13319
13320		NEEDED="$NEEDED xdmcp"
13321		have_xdmcp="yes"
13322
13323else
13324
13325		XDMCP_CFLAGS=
13326		XDMCP_LIBS=
13327
13328fi
13329
13330fi
13331
13332
13333
13334# Find the xcb-proto protocol descriptions
13335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking XCBPROTO_XCBINCLUDEDIR" >&5
13336$as_echo_n "checking XCBPROTO_XCBINCLUDEDIR... " >&6; }
13337XCBPROTO_XCBINCLUDEDIR=`$PKG_CONFIG --variable=xcbincludedir xcb-proto`
13338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCBPROTO_XCBINCLUDEDIR" >&5
13339$as_echo "$XCBPROTO_XCBINCLUDEDIR" >&6; }
13340
13341
13342# Find the xcb-proto version
13343XCBPROTO_VERSION=`$PKG_CONFIG --modversion xcb-proto`
13344
13345
13346# Find the xcbgen Python package
13347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking XCBPROTO_XCBPYTHONDIR" >&5
13348$as_echo_n "checking XCBPROTO_XCBPYTHONDIR... " >&6; }
13349XCBPROTO_XCBPYTHONDIR=`$PKG_CONFIG --variable=pythondir xcb-proto`
13350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCBPROTO_XCBPYTHONDIR" >&5
13351$as_echo "$XCBPROTO_XCBPYTHONDIR" >&6; }
13352
13353
13354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13355$as_echo_n "checking for ANSI C header files... " >&6; }
13356if ${ac_cv_header_stdc+:} false; then :
13357  $as_echo_n "(cached) " >&6
13358else
13359  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13360/* end confdefs.h.  */
13361#include <stdlib.h>
13362#include <stdarg.h>
13363#include <string.h>
13364#include <float.h>
13365
13366int
13367main ()
13368{
13369
13370  ;
13371  return 0;
13372}
13373_ACEOF
13374if ac_fn_c_try_compile "$LINENO"; then :
13375  ac_cv_header_stdc=yes
13376else
13377  ac_cv_header_stdc=no
13378fi
13379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13380
13381if test $ac_cv_header_stdc = yes; then
13382  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13384/* end confdefs.h.  */
13385#include <string.h>
13386
13387_ACEOF
13388if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13389  $EGREP "memchr" >/dev/null 2>&1; then :
13390
13391else
13392  ac_cv_header_stdc=no
13393fi
13394rm -f conftest*
13395
13396fi
13397
13398if test $ac_cv_header_stdc = yes; then
13399  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13400  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13401/* end confdefs.h.  */
13402#include <stdlib.h>
13403
13404_ACEOF
13405if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13406  $EGREP "free" >/dev/null 2>&1; then :
13407
13408else
13409  ac_cv_header_stdc=no
13410fi
13411rm -f conftest*
13412
13413fi
13414
13415if test $ac_cv_header_stdc = yes; then
13416  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13417  if test "$cross_compiling" = yes; then :
13418  :
13419else
13420  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13421/* end confdefs.h.  */
13422#include <ctype.h>
13423#include <stdlib.h>
13424#if ((' ' & 0x0FF) == 0x020)
13425# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13426# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13427#else
13428# define ISLOWER(c) \
13429		   (('a' <= (c) && (c) <= 'i') \
13430		     || ('j' <= (c) && (c) <= 'r') \
13431		     || ('s' <= (c) && (c) <= 'z'))
13432# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13433#endif
13434
13435#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13436int
13437main ()
13438{
13439  int i;
13440  for (i = 0; i < 256; i++)
13441    if (XOR (islower (i), ISLOWER (i))
13442	|| toupper (i) != TOUPPER (i))
13443      return 2;
13444  return 0;
13445}
13446_ACEOF
13447if ac_fn_c_try_run "$LINENO"; then :
13448
13449else
13450  ac_cv_header_stdc=no
13451fi
13452rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13453  conftest.$ac_objext conftest.beam conftest.$ac_ext
13454fi
13455
13456fi
13457fi
13458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13459$as_echo "$ac_cv_header_stdc" >&6; }
13460if test $ac_cv_header_stdc = yes; then
13461
13462$as_echo "#define STDC_HEADERS 1" >>confdefs.h
13463
13464fi
13465
13466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
13467$as_echo_n "checking for library containing getaddrinfo... " >&6; }
13468if ${ac_cv_search_getaddrinfo+:} false; then :
13469  $as_echo_n "(cached) " >&6
13470else
13471  ac_func_search_save_LIBS=$LIBS
13472cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13473/* end confdefs.h.  */
13474
13475/* Override any GCC internal prototype to avoid an error.
13476   Use char because int might match the return type of a GCC
13477   builtin and then its argument prototype would still apply.  */
13478#ifdef __cplusplus
13479extern "C"
13480#endif
13481char getaddrinfo ();
13482int
13483main ()
13484{
13485return getaddrinfo ();
13486  ;
13487  return 0;
13488}
13489_ACEOF
13490for ac_lib in '' socket; do
13491  if test -z "$ac_lib"; then
13492    ac_res="none required"
13493  else
13494    ac_res=-l$ac_lib
13495    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13496  fi
13497  if ac_fn_c_try_link "$LINENO"; then :
13498  ac_cv_search_getaddrinfo=$ac_res
13499fi
13500rm -f core conftest.err conftest.$ac_objext \
13501    conftest$ac_exeext
13502  if ${ac_cv_search_getaddrinfo+:} false; then :
13503  break
13504fi
13505done
13506if ${ac_cv_search_getaddrinfo+:} false; then :
13507
13508else
13509  ac_cv_search_getaddrinfo=no
13510fi
13511rm conftest.$ac_ext
13512LIBS=$ac_func_search_save_LIBS
13513fi
13514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
13515$as_echo "$ac_cv_search_getaddrinfo" >&6; }
13516ac_res=$ac_cv_search_getaddrinfo
13517if test "$ac_res" != no; then :
13518  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13519
13520fi
13521
13522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
13523$as_echo_n "checking for library containing connect... " >&6; }
13524if ${ac_cv_search_connect+:} false; then :
13525  $as_echo_n "(cached) " >&6
13526else
13527  ac_func_search_save_LIBS=$LIBS
13528cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13529/* end confdefs.h.  */
13530
13531/* Override any GCC internal prototype to avoid an error.
13532   Use char because int might match the return type of a GCC
13533   builtin and then its argument prototype would still apply.  */
13534#ifdef __cplusplus
13535extern "C"
13536#endif
13537char connect ();
13538int
13539main ()
13540{
13541return connect ();
13542  ;
13543  return 0;
13544}
13545_ACEOF
13546for ac_lib in '' socket; do
13547  if test -z "$ac_lib"; then
13548    ac_res="none required"
13549  else
13550    ac_res=-l$ac_lib
13551    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13552  fi
13553  if ac_fn_c_try_link "$LINENO"; then :
13554  ac_cv_search_connect=$ac_res
13555fi
13556rm -f core conftest.err conftest.$ac_objext \
13557    conftest$ac_exeext
13558  if ${ac_cv_search_connect+:} false; then :
13559  break
13560fi
13561done
13562if ${ac_cv_search_connect+:} false; then :
13563
13564else
13565  ac_cv_search_connect=no
13566fi
13567rm conftest.$ac_ext
13568LIBS=$ac_func_search_save_LIBS
13569fi
13570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
13571$as_echo "$ac_cv_search_connect" >&6; }
13572ac_res=$ac_cv_search_connect
13573if test "$ac_res" != no; then :
13574  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13575
13576fi
13577
13578
13579have_win32="no"
13580lt_enable_auto_import=""
13581case $host_os in
13582mingw*)
13583	have_win32="yes"
13584	lt_enable_auto_import="-Wl,--enable-auto-import"
13585 	;;
13586linux*)
13587
13588$as_echo "#define HAVE_ABSTRACT_SOCKETS 1" >>confdefs.h
13589
13590	;;
13591esac
13592
13593
13594 if test "x${have_win32}" = "xyes"; then
13595  XCB_HAVE_WIN32_TRUE=
13596  XCB_HAVE_WIN32_FALSE='#'
13597else
13598  XCB_HAVE_WIN32_TRUE='#'
13599  XCB_HAVE_WIN32_FALSE=
13600fi
13601
13602
13603
13604# Check whether --with-queue-size was given.
13605if test "${with_queue_size+set}" = set; then :
13606  withval=$with_queue_size; xcb_queue_buffer_size="$withval"
13607else
13608  xcb_queue_buffer_size=16384
13609fi
13610
13611
13612cat >>confdefs.h <<_ACEOF
13613#define XCB_QUEUE_BUFFER_SIZE $xcb_queue_buffer_size
13614_ACEOF
13615
13616
13617ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" " #include <sys/types.h>
13618		  #include <sys/un.h>
13619
13620"
13621if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
13622
13623$as_echo "#define HAVE_SOCKADDR_SUN_LEN 1" >>confdefs.h
13624
13625fi
13626
13627
13628for ac_header in tsol/label.h
13629do :
13630  ac_fn_c_check_header_mongrel "$LINENO" "tsol/label.h" "ac_cv_header_tsol_label_h" "$ac_includes_default"
13631if test "x$ac_cv_header_tsol_label_h" = xyes; then :
13632  cat >>confdefs.h <<_ACEOF
13633#define HAVE_TSOL_LABEL_H 1
13634_ACEOF
13635
13636fi
13637
13638done
13639
13640for ac_func in is_system_labeled
13641do :
13642  ac_fn_c_check_func "$LINENO" "is_system_labeled" "ac_cv_func_is_system_labeled"
13643if test "x$ac_cv_func_is_system_labeled" = xyes; then :
13644  cat >>confdefs.h <<_ACEOF
13645#define HAVE_IS_SYSTEM_LABELED 1
13646_ACEOF
13647
13648fi
13649done
13650
13651
13652ac_fn_c_check_decl "$LINENO" "IOV_MAX" "ac_cv_have_decl_IOV_MAX" "#include <limits.h>
13653"
13654if test "x$ac_cv_have_decl_IOV_MAX" = xyes; then :
13655
13656else
13657  ac_fn_c_check_decl "$LINENO" "UIO_MAXIOV" "ac_cv_have_decl_UIO_MAXIOV" "#include <sys/uio.h>
13658"
13659if test "x$ac_cv_have_decl_UIO_MAXIOV" = xyes; then :
13660  $as_echo "#define IOV_MAX UIO_MAXIOV" >>confdefs.h
13661
13662else
13663
13664$as_echo "#define IOV_MAX 16" >>confdefs.h
13665
13666fi
13667
13668fi
13669
13670
13671xcbincludedir='${includedir}/xcb'
13672
13673
13674if  test "x$GCC" = xyes ; then
13675    CWARNFLAGS="-Wall -pedantic -Wpointer-arith \
13676		-Wstrict-prototypes -Wmissing-declarations -Wnested-externs"
13677else
13678    ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
13679if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
13680  SUNCC="yes"
13681else
13682  SUNCC="no"
13683fi
13684
13685    if test "x$SUNCC" = "xyes"; then
13686	CWARNFLAGS="-v"
13687    fi
13688fi
13689
13690
13691
13692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports symbol visibility" >&5
13693$as_echo_n "checking whether ${CC} supports symbol visibility... " >&6; }
13694
13695save_CFLAGS=${CFLAGS}
13696CFLAGS="$CFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
13697cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13698/* end confdefs.h.  */
13699
13700#pragma GCC visibility push(hidden)
13701extern void f(int);
13702#pragma GCC visibility pop
13703
13704int
13705main ()
13706{
13707
13708
13709  ;
13710  return 0;
13711}
13712_ACEOF
13713if ac_fn_c_try_compile "$LINENO"; then :
13714
13715$as_echo "#define GCC_HAS_VISIBILITY /**/" >>confdefs.h
13716
13717    :
13718    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13719$as_echo "yes" >&6; }
13720else
13721  :
13722    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13723$as_echo "no" >&6; }
13724fi
13725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13726
13727CFLAGS=${save_CFLAGS}
13728
13729
13730# htmldir is not defined prior to autoconf 2.59c, so on earlier versions
13731# set an equivalent value.
13732
13733
13734
13735DOXYGEN="doxygen"
13736
13737# Check whether --enable-build_docs was given.
13738if test "${enable_build_docs+set}" = set; then :
13739  enableval=$enable_build_docs; if test x"$enableval" != x"yes" ; then
13740       enable_build_docs="no"
13741    else
13742       enable_build_docs="yes"
13743    fi
13744else
13745  enable_build_docs="yes"
13746fi
13747
13748
13749if test "$enable_build_docs" = "no" ; then
13750    BUILD_DOCS=no
13751else
13752
13753# Check whether --with-doxygen was given.
13754if test "${with_doxygen+set}" = set; then :
13755  withval=$with_doxygen;          DOXYGEN=${withval}
13756    # Extract the first word of "${DOXYGEN}", so it can be a program name with args.
13757set dummy ${DOXYGEN}; ac_word=$2
13758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13759$as_echo_n "checking for $ac_word... " >&6; }
13760if ${ac_cv_prog_BUILD_DOCS+:} false; then :
13761  $as_echo_n "(cached) " >&6
13762else
13763  if test -n "$BUILD_DOCS"; then
13764  ac_cv_prog_BUILD_DOCS="$BUILD_DOCS" # Let the user override the test.
13765else
13766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13767for as_dir in $PATH
13768do
13769  IFS=$as_save_IFS
13770  test -z "$as_dir" && as_dir=.
13771    for ac_exec_ext in '' $ac_executable_extensions; do
13772  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13773    ac_cv_prog_BUILD_DOCS="yes"
13774    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13775    break 2
13776  fi
13777done
13778  done
13779IFS=$as_save_IFS
13780
13781  test -z "$ac_cv_prog_BUILD_DOCS" && ac_cv_prog_BUILD_DOCS="no"
13782fi
13783fi
13784BUILD_DOCS=$ac_cv_prog_BUILD_DOCS
13785if test -n "$BUILD_DOCS"; then
13786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_DOCS" >&5
13787$as_echo "$BUILD_DOCS" >&6; }
13788else
13789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13790$as_echo "no" >&6; }
13791fi
13792
13793
13794    if test $BUILD_DOCS = no; then
13795       echo "WARNING:"
13796       echo "The doxygen program you specified:"
13797       echo "$DOXYGEN"
13798       echo "was not found.  Please check the path and make sure "
13799       echo "the program exists and is executable."
13800       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Warning: no doxygen detected. Documentation will not be built" >&5
13801$as_echo "$as_me: WARNING: Warning: no doxygen detected. Documentation will not be built" >&2;}
13802    fi
13803else
13804  # Extract the first word of "${DOXYGEN}", so it can be a program name with args.
13805set dummy ${DOXYGEN}; ac_word=$2
13806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13807$as_echo_n "checking for $ac_word... " >&6; }
13808if ${ac_cv_prog_BUILD_DOCS+:} false; then :
13809  $as_echo_n "(cached) " >&6
13810else
13811  if test -n "$BUILD_DOCS"; then
13812  ac_cv_prog_BUILD_DOCS="$BUILD_DOCS" # Let the user override the test.
13813else
13814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13815for as_dir in $PATH
13816do
13817  IFS=$as_save_IFS
13818  test -z "$as_dir" && as_dir=.
13819    for ac_exec_ext in '' $ac_executable_extensions; do
13820  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13821    ac_cv_prog_BUILD_DOCS="yes"
13822    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13823    break 2
13824  fi
13825done
13826  done
13827IFS=$as_save_IFS
13828
13829  test -z "$ac_cv_prog_BUILD_DOCS" && ac_cv_prog_BUILD_DOCS="no"
13830fi
13831fi
13832BUILD_DOCS=$ac_cv_prog_BUILD_DOCS
13833if test -n "$BUILD_DOCS"; then
13834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_DOCS" >&5
13835$as_echo "$BUILD_DOCS" >&6; }
13836else
13837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13838$as_echo "no" >&6; }
13839fi
13840
13841
13842    if test ${BUILD_DOCS} = no; then
13843       echo "WARNING:"
13844       echo "The doxygen program was not found in your execute"
13845       echo "You may have doxygen installed somewhere not covered by your path."
13846       echo ""
13847       echo "If this is the case make sure you have the packages installed, AND"
13848       echo "that the doxygen program is in your execute path (see your"
13849       echo "shell manual page on setting the \$PATH environment variable), OR"
13850       echo "alternatively, specify the program to use with --with-doxygen."
13851       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Warning: no doxygen detected. Documentation will not be built" >&5
13852$as_echo "$as_me: WARNING: Warning: no doxygen detected. Documentation will not be built" >&2;}
13853    fi
13854fi
13855
13856    # Extract the first word of "dot", so it can be a program name with args.
13857set dummy dot; ac_word=$2
13858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13859$as_echo_n "checking for $ac_word... " >&6; }
13860if ${ac_cv_path_DOT+:} false; then :
13861  $as_echo_n "(cached) " >&6
13862else
13863  case $DOT in
13864  [\\/]* | ?:[\\/]*)
13865  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
13866  ;;
13867  *)
13868  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13869for as_dir in $PATH
13870do
13871  IFS=$as_save_IFS
13872  test -z "$as_dir" && as_dir=.
13873    for ac_exec_ext in '' $ac_executable_extensions; do
13874  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13875    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
13876    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13877    break 2
13878  fi
13879done
13880  done
13881IFS=$as_save_IFS
13882
13883  test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="no"
13884  ;;
13885esac
13886fi
13887DOT=$ac_cv_path_DOT
13888if test -n "$DOT"; then
13889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
13890$as_echo "$DOT" >&6; }
13891else
13892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13893$as_echo "no" >&6; }
13894fi
13895
13896
13897    if test "$DOT" = "no"; then
13898        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Warning: no dot detected. Documentation will not be built" >&5
13899$as_echo "$as_me: WARNING: Warning: no dot detected. Documentation will not be built" >&2;}
13900	BUILD_DOCS="no"
13901    fi
13902fi
13903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether documentation is built" >&5
13904$as_echo_n "checking whether documentation is built... " >&6; }
13905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_DOCS}" >&5
13906$as_echo "${BUILD_DOCS}" >&6; }
13907
13908
13909
13910 if test "x$BUILD_DOCS" = "xyes"; then
13911  BUILD_DOCS_TRUE=
13912  BUILD_DOCS_FALSE='#'
13913else
13914  BUILD_DOCS_TRUE='#'
13915  BUILD_DOCS_FALSE=
13916fi
13917
13918
13919
13920
13921ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
13922if test "x$ac_cv_func_getaddrinfo" = xyes; then :
13923
13924$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
13925
13926fi
13927
13928
13929case $host_os in
13930	# darwin through Snow Leopard has poll() but can't be used to poll character devices.
13931	darwin[789]*|darwin10*) ;;
13932	darwin*)
13933		_ac_xorg_macosx_version_min=""
13934		if echo $CPPFLAGS $CFLAGS | grep -q mmacosx-version-min ; then
13935			_ac_xorg_macosx_version_min=`echo $CPPFLAGS $CFLAGS | sed 's/^.*-mmacosx-version-min=\([^ ]*\).*$/\1/'`
13936		else
13937			_ac_xorg_macosx_version_min=$MACOSX_DEPLOYMENT_TARGET
13938		fi
13939		case $_ac_xorg_macosx_version_min in
13940			10.[0123456]|10.[0123456].*) ;;
13941			*)
13942				ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
13943if test "x$ac_cv_func_poll" = xyes; then :
13944
13945$as_echo "#define USE_POLL 1" >>confdefs.h
13946
13947fi
13948
13949			;;
13950		esac
13951		unset _ac_xorg_macosx_version_min
13952		;;
13953	*)
13954		ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
13955if test "x$ac_cv_func_poll" = xyes; then :
13956
13957$as_echo "#define USE_POLL 1" >>confdefs.h
13958
13959fi
13960
13961	;;
13962esac
13963
13964
13965
13966# Check whether --enable-composite was given.
13967if test "${enable_composite+set}" = set; then :
13968  enableval=$enable_composite; BUILD_COMPOSITE=$enableval
13969else
13970  BUILD_COMPOSITE="yes"
13971fi
13972
13973
13974 if test "x$BUILD_COMPOSITE" = "xyes"; then
13975  BUILD_COMPOSITE_TRUE=
13976  BUILD_COMPOSITE_FALSE='#'
13977else
13978  BUILD_COMPOSITE_TRUE='#'
13979  BUILD_COMPOSITE_FALSE=
13980fi
13981
13982
13983
13984
13985# Check whether --enable-damage was given.
13986if test "${enable_damage+set}" = set; then :
13987  enableval=$enable_damage; BUILD_DAMAGE=$enableval
13988else
13989  BUILD_DAMAGE="yes"
13990fi
13991
13992
13993 if test "x$BUILD_DAMAGE" = "xyes"; then
13994  BUILD_DAMAGE_TRUE=
13995  BUILD_DAMAGE_FALSE='#'
13996else
13997  BUILD_DAMAGE_TRUE='#'
13998  BUILD_DAMAGE_FALSE=
13999fi
14000
14001
14002
14003
14004# Check whether --enable-dpms was given.
14005if test "${enable_dpms+set}" = set; then :
14006  enableval=$enable_dpms; BUILD_DPMS=$enableval
14007else
14008  BUILD_DPMS="yes"
14009fi
14010
14011
14012 if test "x$BUILD_DPMS" = "xyes"; then
14013  BUILD_DPMS_TRUE=
14014  BUILD_DPMS_FALSE='#'
14015else
14016  BUILD_DPMS_TRUE='#'
14017  BUILD_DPMS_FALSE=
14018fi
14019
14020
14021
14022
14023# Check whether --enable-dri2 was given.
14024if test "${enable_dri2+set}" = set; then :
14025  enableval=$enable_dri2; BUILD_DRI2=$enableval
14026else
14027  BUILD_DRI2="yes"
14028fi
14029
14030
14031 if test "x$BUILD_DRI2" = "xyes"; then
14032  BUILD_DRI2_TRUE=
14033  BUILD_DRI2_FALSE='#'
14034else
14035  BUILD_DRI2_TRUE='#'
14036  BUILD_DRI2_FALSE=
14037fi
14038
14039
14040
14041
14042# Check whether --enable-glx was given.
14043if test "${enable_glx+set}" = set; then :
14044  enableval=$enable_glx; BUILD_GLX=$enableval
14045else
14046  BUILD_GLX="yes"
14047fi
14048
14049
14050 if test "x$BUILD_GLX" = "xyes"; then
14051  BUILD_GLX_TRUE=
14052  BUILD_GLX_FALSE='#'
14053else
14054  BUILD_GLX_TRUE='#'
14055  BUILD_GLX_FALSE=
14056fi
14057
14058
14059
14060
14061# Check whether --enable-randr was given.
14062if test "${enable_randr+set}" = set; then :
14063  enableval=$enable_randr; BUILD_RANDR=$enableval
14064else
14065  BUILD_RANDR="yes"
14066fi
14067
14068
14069 if test "x$BUILD_RANDR" = "xyes"; then
14070  BUILD_RANDR_TRUE=
14071  BUILD_RANDR_FALSE='#'
14072else
14073  BUILD_RANDR_TRUE='#'
14074  BUILD_RANDR_FALSE=
14075fi
14076
14077
14078
14079
14080# Check whether --enable-record was given.
14081if test "${enable_record+set}" = set; then :
14082  enableval=$enable_record; BUILD_RECORD=$enableval
14083else
14084  BUILD_RECORD="yes"
14085fi
14086
14087
14088 if test "x$BUILD_RECORD" = "xyes"; then
14089  BUILD_RECORD_TRUE=
14090  BUILD_RECORD_FALSE='#'
14091else
14092  BUILD_RECORD_TRUE='#'
14093  BUILD_RECORD_FALSE=
14094fi
14095
14096
14097
14098
14099# Check whether --enable-render was given.
14100if test "${enable_render+set}" = set; then :
14101  enableval=$enable_render; BUILD_RENDER=$enableval
14102else
14103  BUILD_RENDER="yes"
14104fi
14105
14106
14107 if test "x$BUILD_RENDER" = "xyes"; then
14108  BUILD_RENDER_TRUE=
14109  BUILD_RENDER_FALSE='#'
14110else
14111  BUILD_RENDER_TRUE='#'
14112  BUILD_RENDER_FALSE=
14113fi
14114
14115
14116
14117
14118# Check whether --enable-resource was given.
14119if test "${enable_resource+set}" = set; then :
14120  enableval=$enable_resource; BUILD_RESOURCE=$enableval
14121else
14122  BUILD_RESOURCE="yes"
14123fi
14124
14125
14126 if test "x$BUILD_RESOURCE" = "xyes"; then
14127  BUILD_RESOURCE_TRUE=
14128  BUILD_RESOURCE_FALSE='#'
14129else
14130  BUILD_RESOURCE_TRUE='#'
14131  BUILD_RESOURCE_FALSE=
14132fi
14133
14134
14135
14136
14137# Check whether --enable-screensaver was given.
14138if test "${enable_screensaver+set}" = set; then :
14139  enableval=$enable_screensaver; BUILD_SCREENSAVER=$enableval
14140else
14141  BUILD_SCREENSAVER="yes"
14142fi
14143
14144
14145 if test "x$BUILD_SCREENSAVER" = "xyes"; then
14146  BUILD_SCREENSAVER_TRUE=
14147  BUILD_SCREENSAVER_FALSE='#'
14148else
14149  BUILD_SCREENSAVER_TRUE='#'
14150  BUILD_SCREENSAVER_FALSE=
14151fi
14152
14153
14154
14155
14156# Check whether --enable-shape was given.
14157if test "${enable_shape+set}" = set; then :
14158  enableval=$enable_shape; BUILD_SHAPE=$enableval
14159else
14160  BUILD_SHAPE="yes"
14161fi
14162
14163
14164 if test "x$BUILD_SHAPE" = "xyes"; then
14165  BUILD_SHAPE_TRUE=
14166  BUILD_SHAPE_FALSE='#'
14167else
14168  BUILD_SHAPE_TRUE='#'
14169  BUILD_SHAPE_FALSE=
14170fi
14171
14172
14173
14174
14175# Check whether --enable-shm was given.
14176if test "${enable_shm+set}" = set; then :
14177  enableval=$enable_shm; BUILD_SHM=$enableval
14178else
14179  BUILD_SHM="yes"
14180fi
14181
14182
14183 if test "x$BUILD_SHM" = "xyes"; then
14184  BUILD_SHM_TRUE=
14185  BUILD_SHM_FALSE='#'
14186else
14187  BUILD_SHM_TRUE='#'
14188  BUILD_SHM_FALSE=
14189fi
14190
14191
14192
14193
14194# Check whether --enable-sync was given.
14195if test "${enable_sync+set}" = set; then :
14196  enableval=$enable_sync; BUILD_SYNC=$enableval
14197else
14198  BUILD_SYNC="yes"
14199fi
14200
14201
14202 if test "x$BUILD_SYNC" = "xyes"; then
14203  BUILD_SYNC_TRUE=
14204  BUILD_SYNC_FALSE='#'
14205else
14206  BUILD_SYNC_TRUE='#'
14207  BUILD_SYNC_FALSE=
14208fi
14209
14210
14211
14212
14213# Check whether --enable-xevie was given.
14214if test "${enable_xevie+set}" = set; then :
14215  enableval=$enable_xevie; BUILD_XEVIE=$enableval
14216else
14217  BUILD_XEVIE="yes"
14218fi
14219
14220
14221 if test "x$BUILD_XEVIE" = "xyes"; then
14222  BUILD_XEVIE_TRUE=
14223  BUILD_XEVIE_FALSE='#'
14224else
14225  BUILD_XEVIE_TRUE='#'
14226  BUILD_XEVIE_FALSE=
14227fi
14228
14229
14230
14231
14232# Check whether --enable-xfixes was given.
14233if test "${enable_xfixes+set}" = set; then :
14234  enableval=$enable_xfixes; BUILD_XFIXES=$enableval
14235else
14236  BUILD_XFIXES="yes"
14237fi
14238
14239
14240 if test "x$BUILD_XFIXES" = "xyes"; then
14241  BUILD_XFIXES_TRUE=
14242  BUILD_XFIXES_FALSE='#'
14243else
14244  BUILD_XFIXES_TRUE='#'
14245  BUILD_XFIXES_FALSE=
14246fi
14247
14248
14249
14250
14251# Check whether --enable-xfree86-dri was given.
14252if test "${enable_xfree86_dri+set}" = set; then :
14253  enableval=$enable_xfree86_dri; BUILD_XFREE86_DRI=$enableval
14254else
14255  BUILD_XFREE86_DRI="yes"
14256fi
14257
14258
14259 if test "x$BUILD_XFREE86_DRI" = "xyes"; then
14260  BUILD_XFREE86_DRI_TRUE=
14261  BUILD_XFREE86_DRI_FALSE='#'
14262else
14263  BUILD_XFREE86_DRI_TRUE='#'
14264  BUILD_XFREE86_DRI_FALSE=
14265fi
14266
14267
14268
14269
14270# Check whether --enable-xinerama was given.
14271if test "${enable_xinerama+set}" = set; then :
14272  enableval=$enable_xinerama; BUILD_XINERAMA=$enableval
14273else
14274  BUILD_XINERAMA="yes"
14275fi
14276
14277
14278 if test "x$BUILD_XINERAMA" = "xyes"; then
14279  BUILD_XINERAMA_TRUE=
14280  BUILD_XINERAMA_FALSE='#'
14281else
14282  BUILD_XINERAMA_TRUE='#'
14283  BUILD_XINERAMA_FALSE=
14284fi
14285
14286
14287
14288
14289# Check whether --enable-xinput was given.
14290if test "${enable_xinput+set}" = set; then :
14291  enableval=$enable_xinput; BUILD_XINPUT=$enableval
14292else
14293  BUILD_XINPUT="no"
14294fi
14295
14296
14297 if test "x$BUILD_XINPUT" = "xyes"; then
14298  BUILD_XINPUT_TRUE=
14299  BUILD_XINPUT_FALSE='#'
14300else
14301  BUILD_XINPUT_TRUE='#'
14302  BUILD_XINPUT_FALSE=
14303fi
14304
14305
14306
14307
14308# Check whether --enable-xkb was given.
14309if test "${enable_xkb+set}" = set; then :
14310  enableval=$enable_xkb; BUILD_XKB=$enableval
14311else
14312  BUILD_XKB="no"
14313fi
14314
14315
14316 if test "x$BUILD_XKB" = "xyes"; then
14317  BUILD_XKB_TRUE=
14318  BUILD_XKB_FALSE='#'
14319else
14320  BUILD_XKB_TRUE='#'
14321  BUILD_XKB_FALSE=
14322fi
14323
14324
14325
14326
14327# Check whether --enable-xprint was given.
14328if test "${enable_xprint+set}" = set; then :
14329  enableval=$enable_xprint; BUILD_XPRINT=$enableval
14330else
14331  BUILD_XPRINT="yes"
14332fi
14333
14334
14335 if test "x$BUILD_XPRINT" = "xyes"; then
14336  BUILD_XPRINT_TRUE=
14337  BUILD_XPRINT_FALSE='#'
14338else
14339  BUILD_XPRINT_TRUE='#'
14340  BUILD_XPRINT_FALSE=
14341fi
14342
14343
14344
14345
14346# Check whether --enable-selinux was given.
14347if test "${enable_selinux+set}" = set; then :
14348  enableval=$enable_selinux; BUILD_SELINUX=$enableval
14349else
14350  BUILD_SELINUX="no"
14351fi
14352
14353
14354 if test "x$BUILD_SELINUX" = "xyes"; then
14355  BUILD_SELINUX_TRUE=
14356  BUILD_SELINUX_FALSE='#'
14357else
14358  BUILD_SELINUX_TRUE='#'
14359  BUILD_SELINUX_FALSE=
14360fi
14361
14362
14363
14364
14365# Check whether --enable-xtest was given.
14366if test "${enable_xtest+set}" = set; then :
14367  enableval=$enable_xtest; BUILD_XTEST=$enableval
14368else
14369  BUILD_XTEST="yes"
14370fi
14371
14372
14373 if test "x$BUILD_XTEST" = "xyes"; then
14374  BUILD_XTEST_TRUE=
14375  BUILD_XTEST_FALSE='#'
14376else
14377  BUILD_XTEST_TRUE='#'
14378  BUILD_XTEST_FALSE=
14379fi
14380
14381
14382
14383
14384# Check whether --enable-xv was given.
14385if test "${enable_xv+set}" = set; then :
14386  enableval=$enable_xv; BUILD_XV=$enableval
14387else
14388  BUILD_XV="yes"
14389fi
14390
14391
14392 if test "x$BUILD_XV" = "xyes"; then
14393  BUILD_XV_TRUE=
14394  BUILD_XV_FALSE='#'
14395else
14396  BUILD_XV_TRUE='#'
14397  BUILD_XV_FALSE=
14398fi
14399
14400
14401
14402
14403# Check whether --enable-xvmc was given.
14404if test "${enable_xvmc+set}" = set; then :
14405  enableval=$enable_xvmc; BUILD_XVMC=$enableval
14406else
14407  BUILD_XVMC="yes"
14408fi
14409
14410
14411 if test "x$BUILD_XVMC" = "xyes"; then
14412  BUILD_XVMC_TRUE=
14413  BUILD_XVMC_FALSE='#'
14414else
14415  BUILD_XVMC_TRUE='#'
14416  BUILD_XVMC_FALSE=
14417fi
14418
14419
14420
14421
14422# Check whether --with-launchd was given.
14423if test "${with_launchd+set}" = set; then :
14424  withval=$with_launchd; LAUNCHD=$withval
14425else
14426  LAUNCHD=auto
14427fi
14428
14429if test "x$LAUNCHD" = xauto; then
14430	unset LAUNCHD
14431	# Extract the first word of "launchd", so it can be a program name with args.
14432set dummy launchd; ac_word=$2
14433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14434$as_echo_n "checking for $ac_word... " >&6; }
14435if ${ac_cv_prog_LAUNCHD+:} false; then :
14436  $as_echo_n "(cached) " >&6
14437else
14438  if test -n "$LAUNCHD"; then
14439  ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test.
14440else
14441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14442for as_dir in $PATH$PATH_SEPARATOR/sbin
14443do
14444  IFS=$as_save_IFS
14445  test -z "$as_dir" && as_dir=.
14446    for ac_exec_ext in '' $ac_executable_extensions; do
14447  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14448    ac_cv_prog_LAUNCHD="yes"
14449    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14450    break 2
14451  fi
14452done
14453  done
14454IFS=$as_save_IFS
14455
14456  test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no"
14457fi
14458fi
14459LAUNCHD=$ac_cv_prog_LAUNCHD
14460if test -n "$LAUNCHD"; then
14461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LAUNCHD" >&5
14462$as_echo "$LAUNCHD" >&6; }
14463else
14464  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14465$as_echo "no" >&6; }
14466fi
14467
14468
14469fi
14470
14471if test "x$LAUNCHD" = xyes ; then
14472
14473$as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h
14474
14475fi
14476
14477ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile tests/Makefile"
14478
14479
14480ac_config_files="$ac_config_files xcb.pc xcb-composite.pc xcb-damage.pc xcb-dpms.pc xcb-dri2.pc xcb-glx.pc xcb-randr.pc xcb-record.pc xcb-render.pc xcb-res.pc xcb-screensaver.pc xcb-shape.pc xcb-shm.pc xcb-sync.pc xcb-xevie.pc xcb-xf86dri.pc xcb-xfixes.pc xcb-xinerama.pc xcb-xinput.pc xcb-xkb.pc xcb-xprint.pc xcb-xselinux.pc xcb-xtest.pc xcb-xv.pc xcb-xvmc.pc"
14481
14482
14483ac_config_files="$ac_config_files doc/xcb.doxygen"
14484
14485
14486cat >confcache <<\_ACEOF
14487# This file is a shell script that caches the results of configure
14488# tests run on this system so they can be shared between configure
14489# scripts and configure runs, see configure's option --config-cache.
14490# It is not useful on other systems.  If it contains results you don't
14491# want to keep, you may remove or edit it.
14492#
14493# config.status only pays attention to the cache file if you give it
14494# the --recheck option to rerun configure.
14495#
14496# `ac_cv_env_foo' variables (set or unset) will be overridden when
14497# loading this file, other *unset* `ac_cv_foo' will be assigned the
14498# following values.
14499
14500_ACEOF
14501
14502# The following way of writing the cache mishandles newlines in values,
14503# but we know of no workaround that is simple, portable, and efficient.
14504# So, we kill variables containing newlines.
14505# Ultrix sh set writes to stderr and can't be redirected directly,
14506# and sets the high bit in the cache file unless we assign to the vars.
14507(
14508  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14509    eval ac_val=\$$ac_var
14510    case $ac_val in #(
14511    *${as_nl}*)
14512      case $ac_var in #(
14513      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14514$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14515      esac
14516      case $ac_var in #(
14517      _ | IFS | as_nl) ;; #(
14518      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14519      *) { eval $ac_var=; unset $ac_var;} ;;
14520      esac ;;
14521    esac
14522  done
14523
14524  (set) 2>&1 |
14525    case $as_nl`(ac_space=' '; set) 2>&1` in #(
14526    *${as_nl}ac_space=\ *)
14527      # `set' does not quote correctly, so add quotes: double-quote
14528      # substitution turns \\\\ into \\, and sed turns \\ into \.
14529      sed -n \
14530	"s/'/'\\\\''/g;
14531	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14532      ;; #(
14533    *)
14534      # `set' quotes correctly as required by POSIX, so do not add quotes.
14535      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14536      ;;
14537    esac |
14538    sort
14539) |
14540  sed '
14541     /^ac_cv_env_/b end
14542     t clear
14543     :clear
14544     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14545     t end
14546     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14547     :end' >>confcache
14548if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14549  if test -w "$cache_file"; then
14550    if test "x$cache_file" != "x/dev/null"; then
14551      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14552$as_echo "$as_me: updating cache $cache_file" >&6;}
14553      if test ! -f "$cache_file" || test -h "$cache_file"; then
14554	cat confcache >"$cache_file"
14555      else
14556        case $cache_file in #(
14557        */* | ?:*)
14558	  mv -f confcache "$cache_file"$$ &&
14559	  mv -f "$cache_file"$$ "$cache_file" ;; #(
14560        *)
14561	  mv -f confcache "$cache_file" ;;
14562	esac
14563      fi
14564    fi
14565  else
14566    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14567$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14568  fi
14569fi
14570rm -f confcache
14571
14572test "x$prefix" = xNONE && prefix=$ac_default_prefix
14573# Let make expand exec_prefix.
14574test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14575
14576DEFS=-DHAVE_CONFIG_H
14577
14578ac_libobjs=
14579ac_ltlibobjs=
14580U=
14581for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14582  # 1. Remove the extension, and $U if already installed.
14583  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14584  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14585  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14586  #    will be set to the directory where LIBOBJS objects are built.
14587  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14588  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14589done
14590LIBOBJS=$ac_libobjs
14591
14592LTLIBOBJS=$ac_ltlibobjs
14593
14594
14595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14596$as_echo_n "checking that generated files are newer than configure... " >&6; }
14597   if test -n "$am_sleep_pid"; then
14598     # Hide warnings about reused PIDs.
14599     wait $am_sleep_pid 2>/dev/null
14600   fi
14601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14602$as_echo "done" >&6; }
14603if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14604  as_fn_error $? "conditional \"AMDEP\" was never defined.
14605Usually this means the macro was only invoked conditionally." "$LINENO" 5
14606fi
14607if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14608  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14609Usually this means the macro was only invoked conditionally." "$LINENO" 5
14610fi
14611 if test -n "$EXEEXT"; then
14612  am__EXEEXT_TRUE=
14613  am__EXEEXT_FALSE='#'
14614else
14615  am__EXEEXT_TRUE='#'
14616  am__EXEEXT_FALSE=
14617fi
14618
14619if test -z "${HAVE_CHECK_TRUE}" && test -z "${HAVE_CHECK_FALSE}"; then
14620  as_fn_error $? "conditional \"HAVE_CHECK\" was never defined.
14621Usually this means the macro was only invoked conditionally." "$LINENO" 5
14622fi
14623if test -z "${XCB_HAVE_WIN32_TRUE}" && test -z "${XCB_HAVE_WIN32_FALSE}"; then
14624  as_fn_error $? "conditional \"XCB_HAVE_WIN32\" was never defined.
14625Usually this means the macro was only invoked conditionally." "$LINENO" 5
14626fi
14627if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
14628  as_fn_error $? "conditional \"BUILD_DOCS\" was never defined.
14629Usually this means the macro was only invoked conditionally." "$LINENO" 5
14630fi
14631if test -z "${BUILD_COMPOSITE_TRUE}" && test -z "${BUILD_COMPOSITE_FALSE}"; then
14632  as_fn_error $? "conditional \"BUILD_COMPOSITE\" was never defined.
14633Usually this means the macro was only invoked conditionally." "$LINENO" 5
14634fi
14635if test -z "${BUILD_DAMAGE_TRUE}" && test -z "${BUILD_DAMAGE_FALSE}"; then
14636  as_fn_error $? "conditional \"BUILD_DAMAGE\" was never defined.
14637Usually this means the macro was only invoked conditionally." "$LINENO" 5
14638fi
14639if test -z "${BUILD_DPMS_TRUE}" && test -z "${BUILD_DPMS_FALSE}"; then
14640  as_fn_error $? "conditional \"BUILD_DPMS\" was never defined.
14641Usually this means the macro was only invoked conditionally." "$LINENO" 5
14642fi
14643if test -z "${BUILD_DRI2_TRUE}" && test -z "${BUILD_DRI2_FALSE}"; then
14644  as_fn_error $? "conditional \"BUILD_DRI2\" was never defined.
14645Usually this means the macro was only invoked conditionally." "$LINENO" 5
14646fi
14647if test -z "${BUILD_GLX_TRUE}" && test -z "${BUILD_GLX_FALSE}"; then
14648  as_fn_error $? "conditional \"BUILD_GLX\" was never defined.
14649Usually this means the macro was only invoked conditionally." "$LINENO" 5
14650fi
14651if test -z "${BUILD_RANDR_TRUE}" && test -z "${BUILD_RANDR_FALSE}"; then
14652  as_fn_error $? "conditional \"BUILD_RANDR\" was never defined.
14653Usually this means the macro was only invoked conditionally." "$LINENO" 5
14654fi
14655if test -z "${BUILD_RECORD_TRUE}" && test -z "${BUILD_RECORD_FALSE}"; then
14656  as_fn_error $? "conditional \"BUILD_RECORD\" was never defined.
14657Usually this means the macro was only invoked conditionally." "$LINENO" 5
14658fi
14659if test -z "${BUILD_RENDER_TRUE}" && test -z "${BUILD_RENDER_FALSE}"; then
14660  as_fn_error $? "conditional \"BUILD_RENDER\" was never defined.
14661Usually this means the macro was only invoked conditionally." "$LINENO" 5
14662fi
14663if test -z "${BUILD_RESOURCE_TRUE}" && test -z "${BUILD_RESOURCE_FALSE}"; then
14664  as_fn_error $? "conditional \"BUILD_RESOURCE\" was never defined.
14665Usually this means the macro was only invoked conditionally." "$LINENO" 5
14666fi
14667if test -z "${BUILD_SCREENSAVER_TRUE}" && test -z "${BUILD_SCREENSAVER_FALSE}"; then
14668  as_fn_error $? "conditional \"BUILD_SCREENSAVER\" was never defined.
14669Usually this means the macro was only invoked conditionally." "$LINENO" 5
14670fi
14671if test -z "${BUILD_SHAPE_TRUE}" && test -z "${BUILD_SHAPE_FALSE}"; then
14672  as_fn_error $? "conditional \"BUILD_SHAPE\" was never defined.
14673Usually this means the macro was only invoked conditionally." "$LINENO" 5
14674fi
14675if test -z "${BUILD_SHM_TRUE}" && test -z "${BUILD_SHM_FALSE}"; then
14676  as_fn_error $? "conditional \"BUILD_SHM\" was never defined.
14677Usually this means the macro was only invoked conditionally." "$LINENO" 5
14678fi
14679if test -z "${BUILD_SYNC_TRUE}" && test -z "${BUILD_SYNC_FALSE}"; then
14680  as_fn_error $? "conditional \"BUILD_SYNC\" was never defined.
14681Usually this means the macro was only invoked conditionally." "$LINENO" 5
14682fi
14683if test -z "${BUILD_XEVIE_TRUE}" && test -z "${BUILD_XEVIE_FALSE}"; then
14684  as_fn_error $? "conditional \"BUILD_XEVIE\" was never defined.
14685Usually this means the macro was only invoked conditionally." "$LINENO" 5
14686fi
14687if test -z "${BUILD_XFIXES_TRUE}" && test -z "${BUILD_XFIXES_FALSE}"; then
14688  as_fn_error $? "conditional \"BUILD_XFIXES\" was never defined.
14689Usually this means the macro was only invoked conditionally." "$LINENO" 5
14690fi
14691if test -z "${BUILD_XFREE86_DRI_TRUE}" && test -z "${BUILD_XFREE86_DRI_FALSE}"; then
14692  as_fn_error $? "conditional \"BUILD_XFREE86_DRI\" was never defined.
14693Usually this means the macro was only invoked conditionally." "$LINENO" 5
14694fi
14695if test -z "${BUILD_XINERAMA_TRUE}" && test -z "${BUILD_XINERAMA_FALSE}"; then
14696  as_fn_error $? "conditional \"BUILD_XINERAMA\" was never defined.
14697Usually this means the macro was only invoked conditionally." "$LINENO" 5
14698fi
14699if test -z "${BUILD_XINPUT_TRUE}" && test -z "${BUILD_XINPUT_FALSE}"; then
14700  as_fn_error $? "conditional \"BUILD_XINPUT\" was never defined.
14701Usually this means the macro was only invoked conditionally." "$LINENO" 5
14702fi
14703if test -z "${BUILD_XKB_TRUE}" && test -z "${BUILD_XKB_FALSE}"; then
14704  as_fn_error $? "conditional \"BUILD_XKB\" was never defined.
14705Usually this means the macro was only invoked conditionally." "$LINENO" 5
14706fi
14707if test -z "${BUILD_XPRINT_TRUE}" && test -z "${BUILD_XPRINT_FALSE}"; then
14708  as_fn_error $? "conditional \"BUILD_XPRINT\" was never defined.
14709Usually this means the macro was only invoked conditionally." "$LINENO" 5
14710fi
14711if test -z "${BUILD_SELINUX_TRUE}" && test -z "${BUILD_SELINUX_FALSE}"; then
14712  as_fn_error $? "conditional \"BUILD_SELINUX\" was never defined.
14713Usually this means the macro was only invoked conditionally." "$LINENO" 5
14714fi
14715if test -z "${BUILD_XTEST_TRUE}" && test -z "${BUILD_XTEST_FALSE}"; then
14716  as_fn_error $? "conditional \"BUILD_XTEST\" was never defined.
14717Usually this means the macro was only invoked conditionally." "$LINENO" 5
14718fi
14719if test -z "${BUILD_XV_TRUE}" && test -z "${BUILD_XV_FALSE}"; then
14720  as_fn_error $? "conditional \"BUILD_XV\" was never defined.
14721Usually this means the macro was only invoked conditionally." "$LINENO" 5
14722fi
14723if test -z "${BUILD_XVMC_TRUE}" && test -z "${BUILD_XVMC_FALSE}"; then
14724  as_fn_error $? "conditional \"BUILD_XVMC\" was never defined.
14725Usually this means the macro was only invoked conditionally." "$LINENO" 5
14726fi
14727
14728: "${CONFIG_STATUS=./config.status}"
14729ac_write_fail=0
14730ac_clean_files_save=$ac_clean_files
14731ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14732{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14733$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14734as_write_fail=0
14735cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14736#! $SHELL
14737# Generated by $as_me.
14738# Run this file to recreate the current configuration.
14739# Compiler output produced by configure, useful for debugging
14740# configure, is in config.log if it exists.
14741
14742debug=false
14743ac_cs_recheck=false
14744ac_cs_silent=false
14745
14746SHELL=\${CONFIG_SHELL-$SHELL}
14747export SHELL
14748_ASEOF
14749cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14750## -------------------- ##
14751## M4sh Initialization. ##
14752## -------------------- ##
14753
14754# Be more Bourne compatible
14755DUALCASE=1; export DUALCASE # for MKS sh
14756if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14757  emulate sh
14758  NULLCMD=:
14759  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14760  # is contrary to our usage.  Disable this feature.
14761  alias -g '${1+"$@"}'='"$@"'
14762  setopt NO_GLOB_SUBST
14763else
14764  case `(set -o) 2>/dev/null` in #(
14765  *posix*) :
14766    set -o posix ;; #(
14767  *) :
14768     ;;
14769esac
14770fi
14771
14772
14773as_nl='
14774'
14775export as_nl
14776# Printing a long string crashes Solaris 7 /usr/bin/printf.
14777as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14778as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14779as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14780# Prefer a ksh shell builtin over an external printf program on Solaris,
14781# but without wasting forks for bash or zsh.
14782if test -z "$BASH_VERSION$ZSH_VERSION" \
14783    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14784  as_echo='print -r --'
14785  as_echo_n='print -rn --'
14786elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14787  as_echo='printf %s\n'
14788  as_echo_n='printf %s'
14789else
14790  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14791    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14792    as_echo_n='/usr/ucb/echo -n'
14793  else
14794    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14795    as_echo_n_body='eval
14796      arg=$1;
14797      case $arg in #(
14798      *"$as_nl"*)
14799	expr "X$arg" : "X\\(.*\\)$as_nl";
14800	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14801      esac;
14802      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14803    '
14804    export as_echo_n_body
14805    as_echo_n='sh -c $as_echo_n_body as_echo'
14806  fi
14807  export as_echo_body
14808  as_echo='sh -c $as_echo_body as_echo'
14809fi
14810
14811# The user is always right.
14812if test "${PATH_SEPARATOR+set}" != set; then
14813  PATH_SEPARATOR=:
14814  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14815    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14816      PATH_SEPARATOR=';'
14817  }
14818fi
14819
14820
14821# IFS
14822# We need space, tab and new line, in precisely that order.  Quoting is
14823# there to prevent editors from complaining about space-tab.
14824# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14825# splitting by setting IFS to empty value.)
14826IFS=" ""	$as_nl"
14827
14828# Find who we are.  Look in the path if we contain no directory separator.
14829as_myself=
14830case $0 in #((
14831  *[\\/]* ) as_myself=$0 ;;
14832  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14833for as_dir in $PATH
14834do
14835  IFS=$as_save_IFS
14836  test -z "$as_dir" && as_dir=.
14837    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14838  done
14839IFS=$as_save_IFS
14840
14841     ;;
14842esac
14843# We did not find ourselves, most probably we were run as `sh COMMAND'
14844# in which case we are not to be found in the path.
14845if test "x$as_myself" = x; then
14846  as_myself=$0
14847fi
14848if test ! -f "$as_myself"; then
14849  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14850  exit 1
14851fi
14852
14853# Unset variables that we do not need and which cause bugs (e.g. in
14854# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14855# suppresses any "Segmentation fault" message there.  '((' could
14856# trigger a bug in pdksh 5.2.14.
14857for as_var in BASH_ENV ENV MAIL MAILPATH
14858do eval test x\${$as_var+set} = xset \
14859  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14860done
14861PS1='$ '
14862PS2='> '
14863PS4='+ '
14864
14865# NLS nuisances.
14866LC_ALL=C
14867export LC_ALL
14868LANGUAGE=C
14869export LANGUAGE
14870
14871# CDPATH.
14872(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14873
14874
14875# as_fn_error STATUS ERROR [LINENO LOG_FD]
14876# ----------------------------------------
14877# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14878# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14879# script with STATUS, using 1 if that was 0.
14880as_fn_error ()
14881{
14882  as_status=$1; test $as_status -eq 0 && as_status=1
14883  if test "$4"; then
14884    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14885    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14886  fi
14887  $as_echo "$as_me: error: $2" >&2
14888  as_fn_exit $as_status
14889} # as_fn_error
14890
14891
14892# as_fn_set_status STATUS
14893# -----------------------
14894# Set $? to STATUS, without forking.
14895as_fn_set_status ()
14896{
14897  return $1
14898} # as_fn_set_status
14899
14900# as_fn_exit STATUS
14901# -----------------
14902# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14903as_fn_exit ()
14904{
14905  set +e
14906  as_fn_set_status $1
14907  exit $1
14908} # as_fn_exit
14909
14910# as_fn_unset VAR
14911# ---------------
14912# Portably unset VAR.
14913as_fn_unset ()
14914{
14915  { eval $1=; unset $1;}
14916}
14917as_unset=as_fn_unset
14918# as_fn_append VAR VALUE
14919# ----------------------
14920# Append the text in VALUE to the end of the definition contained in VAR. Take
14921# advantage of any shell optimizations that allow amortized linear growth over
14922# repeated appends, instead of the typical quadratic growth present in naive
14923# implementations.
14924if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14925  eval 'as_fn_append ()
14926  {
14927    eval $1+=\$2
14928  }'
14929else
14930  as_fn_append ()
14931  {
14932    eval $1=\$$1\$2
14933  }
14934fi # as_fn_append
14935
14936# as_fn_arith ARG...
14937# ------------------
14938# Perform arithmetic evaluation on the ARGs, and store the result in the
14939# global $as_val. Take advantage of shells that can avoid forks. The arguments
14940# must be portable across $(()) and expr.
14941if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14942  eval 'as_fn_arith ()
14943  {
14944    as_val=$(( $* ))
14945  }'
14946else
14947  as_fn_arith ()
14948  {
14949    as_val=`expr "$@" || test $? -eq 1`
14950  }
14951fi # as_fn_arith
14952
14953
14954if expr a : '\(a\)' >/dev/null 2>&1 &&
14955   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14956  as_expr=expr
14957else
14958  as_expr=false
14959fi
14960
14961if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14962  as_basename=basename
14963else
14964  as_basename=false
14965fi
14966
14967if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14968  as_dirname=dirname
14969else
14970  as_dirname=false
14971fi
14972
14973as_me=`$as_basename -- "$0" ||
14974$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14975	 X"$0" : 'X\(//\)$' \| \
14976	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14977$as_echo X/"$0" |
14978    sed '/^.*\/\([^/][^/]*\)\/*$/{
14979	    s//\1/
14980	    q
14981	  }
14982	  /^X\/\(\/\/\)$/{
14983	    s//\1/
14984	    q
14985	  }
14986	  /^X\/\(\/\).*/{
14987	    s//\1/
14988	    q
14989	  }
14990	  s/.*/./; q'`
14991
14992# Avoid depending upon Character Ranges.
14993as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14994as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14995as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14996as_cr_digits='0123456789'
14997as_cr_alnum=$as_cr_Letters$as_cr_digits
14998
14999ECHO_C= ECHO_N= ECHO_T=
15000case `echo -n x` in #(((((
15001-n*)
15002  case `echo 'xy\c'` in
15003  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15004  xy)  ECHO_C='\c';;
15005  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15006       ECHO_T='	';;
15007  esac;;
15008*)
15009  ECHO_N='-n';;
15010esac
15011
15012rm -f conf$$ conf$$.exe conf$$.file
15013if test -d conf$$.dir; then
15014  rm -f conf$$.dir/conf$$.file
15015else
15016  rm -f conf$$.dir
15017  mkdir conf$$.dir 2>/dev/null
15018fi
15019if (echo >conf$$.file) 2>/dev/null; then
15020  if ln -s conf$$.file conf$$ 2>/dev/null; then
15021    as_ln_s='ln -s'
15022    # ... but there are two gotchas:
15023    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15024    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15025    # In both cases, we have to default to `cp -p'.
15026    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15027      as_ln_s='cp -p'
15028  elif ln conf$$.file conf$$ 2>/dev/null; then
15029    as_ln_s=ln
15030  else
15031    as_ln_s='cp -p'
15032  fi
15033else
15034  as_ln_s='cp -p'
15035fi
15036rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15037rmdir conf$$.dir 2>/dev/null
15038
15039
15040# as_fn_mkdir_p
15041# -------------
15042# Create "$as_dir" as a directory, including parents if necessary.
15043as_fn_mkdir_p ()
15044{
15045
15046  case $as_dir in #(
15047  -*) as_dir=./$as_dir;;
15048  esac
15049  test -d "$as_dir" || eval $as_mkdir_p || {
15050    as_dirs=
15051    while :; do
15052      case $as_dir in #(
15053      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15054      *) as_qdir=$as_dir;;
15055      esac
15056      as_dirs="'$as_qdir' $as_dirs"
15057      as_dir=`$as_dirname -- "$as_dir" ||
15058$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15059	 X"$as_dir" : 'X\(//\)[^/]' \| \
15060	 X"$as_dir" : 'X\(//\)$' \| \
15061	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15062$as_echo X"$as_dir" |
15063    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15064	    s//\1/
15065	    q
15066	  }
15067	  /^X\(\/\/\)[^/].*/{
15068	    s//\1/
15069	    q
15070	  }
15071	  /^X\(\/\/\)$/{
15072	    s//\1/
15073	    q
15074	  }
15075	  /^X\(\/\).*/{
15076	    s//\1/
15077	    q
15078	  }
15079	  s/.*/./; q'`
15080      test -d "$as_dir" && break
15081    done
15082    test -z "$as_dirs" || eval "mkdir $as_dirs"
15083  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15084
15085
15086} # as_fn_mkdir_p
15087if mkdir -p . 2>/dev/null; then
15088  as_mkdir_p='mkdir -p "$as_dir"'
15089else
15090  test -d ./-p && rmdir ./-p
15091  as_mkdir_p=false
15092fi
15093
15094if test -x / >/dev/null 2>&1; then
15095  as_test_x='test -x'
15096else
15097  if ls -dL / >/dev/null 2>&1; then
15098    as_ls_L_option=L
15099  else
15100    as_ls_L_option=
15101  fi
15102  as_test_x='
15103    eval sh -c '\''
15104      if test -d "$1"; then
15105	test -d "$1/.";
15106      else
15107	case $1 in #(
15108	-*)set "./$1";;
15109	esac;
15110	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15111	???[sx]*):;;*)false;;esac;fi
15112    '\'' sh
15113  '
15114fi
15115as_executable_p=$as_test_x
15116
15117# Sed expression to map a string onto a valid CPP name.
15118as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15119
15120# Sed expression to map a string onto a valid variable name.
15121as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15122
15123
15124exec 6>&1
15125## ----------------------------------- ##
15126## Main body of $CONFIG_STATUS script. ##
15127## ----------------------------------- ##
15128_ASEOF
15129test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15130
15131cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15132# Save the log message, to keep $0 and so on meaningful, and to
15133# report actual input values of CONFIG_FILES etc. instead of their
15134# values after options handling.
15135ac_log="
15136This file was extended by libxcb $as_me 1.9.1, which was
15137generated by GNU Autoconf 2.68.  Invocation command line was
15138
15139  CONFIG_FILES    = $CONFIG_FILES
15140  CONFIG_HEADERS  = $CONFIG_HEADERS
15141  CONFIG_LINKS    = $CONFIG_LINKS
15142  CONFIG_COMMANDS = $CONFIG_COMMANDS
15143  $ $0 $@
15144
15145on `(hostname || uname -n) 2>/dev/null | sed 1q`
15146"
15147
15148_ACEOF
15149
15150case $ac_config_files in *"
15151"*) set x $ac_config_files; shift; ac_config_files=$*;;
15152esac
15153
15154case $ac_config_headers in *"
15155"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15156esac
15157
15158
15159cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15160# Files that config.status was made for.
15161config_files="$ac_config_files"
15162config_headers="$ac_config_headers"
15163config_commands="$ac_config_commands"
15164
15165_ACEOF
15166
15167cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15168ac_cs_usage="\
15169\`$as_me' instantiates files and other configuration actions
15170from templates according to the current configuration.  Unless the files
15171and actions are specified as TAGs, all are instantiated by default.
15172
15173Usage: $0 [OPTION]... [TAG]...
15174
15175  -h, --help       print this help, then exit
15176  -V, --version    print version number and configuration settings, then exit
15177      --config     print configuration, then exit
15178  -q, --quiet, --silent
15179                   do not print progress messages
15180  -d, --debug      don't remove temporary files
15181      --recheck    update $as_me by reconfiguring in the same conditions
15182      --file=FILE[:TEMPLATE]
15183                   instantiate the configuration file FILE
15184      --header=FILE[:TEMPLATE]
15185                   instantiate the configuration header FILE
15186
15187Configuration files:
15188$config_files
15189
15190Configuration headers:
15191$config_headers
15192
15193Configuration commands:
15194$config_commands
15195
15196Report bugs to <xcb@lists.freedesktop.org>."
15197
15198_ACEOF
15199cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15200ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15201ac_cs_version="\\
15202libxcb config.status 1.9.1
15203configured by $0, generated by GNU Autoconf 2.68,
15204  with options \\"\$ac_cs_config\\"
15205
15206Copyright (C) 2010 Free Software Foundation, Inc.
15207This config.status script is free software; the Free Software Foundation
15208gives unlimited permission to copy, distribute and modify it."
15209
15210ac_pwd='$ac_pwd'
15211srcdir='$srcdir'
15212INSTALL='$INSTALL'
15213MKDIR_P='$MKDIR_P'
15214AWK='$AWK'
15215test -n "\$AWK" || AWK=awk
15216_ACEOF
15217
15218cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15219# The default lists apply if the user does not specify any file.
15220ac_need_defaults=:
15221while test $# != 0
15222do
15223  case $1 in
15224  --*=?*)
15225    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15226    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15227    ac_shift=:
15228    ;;
15229  --*=)
15230    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15231    ac_optarg=
15232    ac_shift=:
15233    ;;
15234  *)
15235    ac_option=$1
15236    ac_optarg=$2
15237    ac_shift=shift
15238    ;;
15239  esac
15240
15241  case $ac_option in
15242  # Handling of the options.
15243  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15244    ac_cs_recheck=: ;;
15245  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15246    $as_echo "$ac_cs_version"; exit ;;
15247  --config | --confi | --conf | --con | --co | --c )
15248    $as_echo "$ac_cs_config"; exit ;;
15249  --debug | --debu | --deb | --de | --d | -d )
15250    debug=: ;;
15251  --file | --fil | --fi | --f )
15252    $ac_shift
15253    case $ac_optarg in
15254    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15255    '') as_fn_error $? "missing file argument" ;;
15256    esac
15257    as_fn_append CONFIG_FILES " '$ac_optarg'"
15258    ac_need_defaults=false;;
15259  --header | --heade | --head | --hea )
15260    $ac_shift
15261    case $ac_optarg in
15262    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15263    esac
15264    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15265    ac_need_defaults=false;;
15266  --he | --h)
15267    # Conflict between --help and --header
15268    as_fn_error $? "ambiguous option: \`$1'
15269Try \`$0 --help' for more information.";;
15270  --help | --hel | -h )
15271    $as_echo "$ac_cs_usage"; exit ;;
15272  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15273  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15274    ac_cs_silent=: ;;
15275
15276  # This is an error.
15277  -*) as_fn_error $? "unrecognized option: \`$1'
15278Try \`$0 --help' for more information." ;;
15279
15280  *) as_fn_append ac_config_targets " $1"
15281     ac_need_defaults=false ;;
15282
15283  esac
15284  shift
15285done
15286
15287ac_configure_extra_args=
15288
15289if $ac_cs_silent; then
15290  exec 6>/dev/null
15291  ac_configure_extra_args="$ac_configure_extra_args --silent"
15292fi
15293
15294_ACEOF
15295cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15296if \$ac_cs_recheck; then
15297  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15298  shift
15299  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15300  CONFIG_SHELL='$SHELL'
15301  export CONFIG_SHELL
15302  exec "\$@"
15303fi
15304
15305_ACEOF
15306cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15307exec 5>>config.log
15308{
15309  echo
15310  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15311## Running $as_me. ##
15312_ASBOX
15313  $as_echo "$ac_log"
15314} >&5
15315
15316_ACEOF
15317cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15318#
15319# INIT-COMMANDS
15320#
15321AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15322
15323
15324# The HP-UX ksh and POSIX shell print the target directory to stdout
15325# if CDPATH is set.
15326(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15327
15328sed_quote_subst='$sed_quote_subst'
15329double_quote_subst='$double_quote_subst'
15330delay_variable_subst='$delay_variable_subst'
15331AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
15332DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15333OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15334macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15335macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15336enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15337enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15338pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15339enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15340SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15341ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15342PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15343host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15344host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15345host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15346build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15347build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15348build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15349SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15350Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15351GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15352EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15353FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15354LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15355NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15356LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15357max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15358ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15359exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15360lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15361lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15362lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15363lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15364lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15365reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15366reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15367deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15368file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15369file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15370want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15371sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15372AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15373AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15374archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15375STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15376RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15377old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15378old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15379old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15380lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15381CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15382CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15383compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15384GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15385lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15386lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15387lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15388lt_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"`'
15389nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15390lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15391objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15392MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15393lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15394lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15395lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15396lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15397lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15398need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15399MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15400DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15401NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15402LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15403OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15404OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15405libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15406shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15407extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15408archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15409enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15410export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15411whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15412compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15413old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15414old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15415archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15416archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15417module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15418module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15419with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15420allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15421no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15422hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15423hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15424hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15425hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15426hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15427hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15428hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15429inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15430link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15431always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15432export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15433exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15434include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15435prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15436postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15437file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15438variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15439need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15440need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15441version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15442runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15443shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15444shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15445libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15446library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15447soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15448install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15449postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15450postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15451finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15452finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15453hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15454sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15455sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15456hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15457enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15458enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15459enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15460old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15461striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15462
15463LTCC='$LTCC'
15464LTCFLAGS='$LTCFLAGS'
15465compiler='$compiler_DEFAULT'
15466
15467# A function that is used when there is no print builtin or printf.
15468func_fallback_echo ()
15469{
15470  eval 'cat <<_LTECHO_EOF
15471\$1
15472_LTECHO_EOF'
15473}
15474
15475# Quote evaled strings.
15476for var in AS \
15477DLLTOOL \
15478OBJDUMP \
15479SHELL \
15480ECHO \
15481PATH_SEPARATOR \
15482SED \
15483GREP \
15484EGREP \
15485FGREP \
15486LD \
15487NM \
15488LN_S \
15489lt_SP2NL \
15490lt_NL2SP \
15491reload_flag \
15492deplibs_check_method \
15493file_magic_cmd \
15494file_magic_glob \
15495want_nocaseglob \
15496sharedlib_from_linklib_cmd \
15497AR \
15498AR_FLAGS \
15499archiver_list_spec \
15500STRIP \
15501RANLIB \
15502CC \
15503CFLAGS \
15504compiler \
15505lt_cv_sys_global_symbol_pipe \
15506lt_cv_sys_global_symbol_to_cdecl \
15507lt_cv_sys_global_symbol_to_c_name_address \
15508lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15509nm_file_list_spec \
15510lt_prog_compiler_no_builtin_flag \
15511lt_prog_compiler_pic \
15512lt_prog_compiler_wl \
15513lt_prog_compiler_static \
15514lt_cv_prog_compiler_c_o \
15515need_locks \
15516MANIFEST_TOOL \
15517DSYMUTIL \
15518NMEDIT \
15519LIPO \
15520OTOOL \
15521OTOOL64 \
15522shrext_cmds \
15523export_dynamic_flag_spec \
15524whole_archive_flag_spec \
15525compiler_needs_object \
15526with_gnu_ld \
15527allow_undefined_flag \
15528no_undefined_flag \
15529hardcode_libdir_flag_spec \
15530hardcode_libdir_separator \
15531exclude_expsyms \
15532include_expsyms \
15533file_list_spec \
15534variables_saved_for_relink \
15535libname_spec \
15536library_names_spec \
15537soname_spec \
15538install_override_mode \
15539finish_eval \
15540old_striplib \
15541striplib; do
15542    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15543    *[\\\\\\\`\\"\\\$]*)
15544      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15545      ;;
15546    *)
15547      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15548      ;;
15549    esac
15550done
15551
15552# Double-quote double-evaled strings.
15553for var in reload_cmds \
15554old_postinstall_cmds \
15555old_postuninstall_cmds \
15556old_archive_cmds \
15557extract_expsyms_cmds \
15558old_archive_from_new_cmds \
15559old_archive_from_expsyms_cmds \
15560archive_cmds \
15561archive_expsym_cmds \
15562module_cmds \
15563module_expsym_cmds \
15564export_symbols_cmds \
15565prelink_cmds \
15566postlink_cmds \
15567postinstall_cmds \
15568postuninstall_cmds \
15569finish_cmds \
15570sys_lib_search_path_spec \
15571sys_lib_dlsearch_path_spec; do
15572    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15573    *[\\\\\\\`\\"\\\$]*)
15574      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15575      ;;
15576    *)
15577      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15578      ;;
15579    esac
15580done
15581
15582ac_aux_dir='$ac_aux_dir'
15583xsi_shell='$xsi_shell'
15584lt_shell_append='$lt_shell_append'
15585
15586# See if we are running on zsh, and set the options which allow our
15587# commands through without removal of \ escapes INIT.
15588if test -n "\${ZSH_VERSION+set}" ; then
15589   setopt NO_GLOB_SUBST
15590fi
15591
15592
15593    PACKAGE='$PACKAGE'
15594    VERSION='$VERSION'
15595    TIMESTAMP='$TIMESTAMP'
15596    RM='$RM'
15597    ofile='$ofile'
15598
15599
15600
15601
15602_ACEOF
15603
15604cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15605
15606# Handling of arguments.
15607for ac_config_target in $ac_config_targets
15608do
15609  case $ac_config_target in
15610    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15611    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
15612    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15613    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15614    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15615    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15616    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
15617    "xcb.pc") CONFIG_FILES="$CONFIG_FILES xcb.pc" ;;
15618    "xcb-composite.pc") CONFIG_FILES="$CONFIG_FILES xcb-composite.pc" ;;
15619    "xcb-damage.pc") CONFIG_FILES="$CONFIG_FILES xcb-damage.pc" ;;
15620    "xcb-dpms.pc") CONFIG_FILES="$CONFIG_FILES xcb-dpms.pc" ;;
15621    "xcb-dri2.pc") CONFIG_FILES="$CONFIG_FILES xcb-dri2.pc" ;;
15622    "xcb-glx.pc") CONFIG_FILES="$CONFIG_FILES xcb-glx.pc" ;;
15623    "xcb-randr.pc") CONFIG_FILES="$CONFIG_FILES xcb-randr.pc" ;;
15624    "xcb-record.pc") CONFIG_FILES="$CONFIG_FILES xcb-record.pc" ;;
15625    "xcb-render.pc") CONFIG_FILES="$CONFIG_FILES xcb-render.pc" ;;
15626    "xcb-res.pc") CONFIG_FILES="$CONFIG_FILES xcb-res.pc" ;;
15627    "xcb-screensaver.pc") CONFIG_FILES="$CONFIG_FILES xcb-screensaver.pc" ;;
15628    "xcb-shape.pc") CONFIG_FILES="$CONFIG_FILES xcb-shape.pc" ;;
15629    "xcb-shm.pc") CONFIG_FILES="$CONFIG_FILES xcb-shm.pc" ;;
15630    "xcb-sync.pc") CONFIG_FILES="$CONFIG_FILES xcb-sync.pc" ;;
15631    "xcb-xevie.pc") CONFIG_FILES="$CONFIG_FILES xcb-xevie.pc" ;;
15632    "xcb-xf86dri.pc") CONFIG_FILES="$CONFIG_FILES xcb-xf86dri.pc" ;;
15633    "xcb-xfixes.pc") CONFIG_FILES="$CONFIG_FILES xcb-xfixes.pc" ;;
15634    "xcb-xinerama.pc") CONFIG_FILES="$CONFIG_FILES xcb-xinerama.pc" ;;
15635    "xcb-xinput.pc") CONFIG_FILES="$CONFIG_FILES xcb-xinput.pc" ;;
15636    "xcb-xkb.pc") CONFIG_FILES="$CONFIG_FILES xcb-xkb.pc" ;;
15637    "xcb-xprint.pc") CONFIG_FILES="$CONFIG_FILES xcb-xprint.pc" ;;
15638    "xcb-xselinux.pc") CONFIG_FILES="$CONFIG_FILES xcb-xselinux.pc" ;;
15639    "xcb-xtest.pc") CONFIG_FILES="$CONFIG_FILES xcb-xtest.pc" ;;
15640    "xcb-xv.pc") CONFIG_FILES="$CONFIG_FILES xcb-xv.pc" ;;
15641    "xcb-xvmc.pc") CONFIG_FILES="$CONFIG_FILES xcb-xvmc.pc" ;;
15642    "doc/xcb.doxygen") CONFIG_FILES="$CONFIG_FILES doc/xcb.doxygen" ;;
15643
15644  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15645  esac
15646done
15647
15648
15649# If the user did not use the arguments to specify the items to instantiate,
15650# then the envvar interface is used.  Set only those that are not.
15651# We use the long form for the default assignment because of an extremely
15652# bizarre bug on SunOS 4.1.3.
15653if $ac_need_defaults; then
15654  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15655  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15656  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15657fi
15658
15659# Have a temporary directory for convenience.  Make it in the build tree
15660# simply because there is no reason against having it here, and in addition,
15661# creating and moving files from /tmp can sometimes cause problems.
15662# Hook for its removal unless debugging.
15663# Note that there is a small window in which the directory will not be cleaned:
15664# after its creation but before its name has been assigned to `$tmp'.
15665$debug ||
15666{
15667  tmp= ac_tmp=
15668  trap 'exit_status=$?
15669  : "${ac_tmp:=$tmp}"
15670  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15671' 0
15672  trap 'as_fn_exit 1' 1 2 13 15
15673}
15674# Create a (secure) tmp directory for tmp files.
15675
15676{
15677  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15678  test -d "$tmp"
15679}  ||
15680{
15681  tmp=./conf$$-$RANDOM
15682  (umask 077 && mkdir "$tmp")
15683} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15684ac_tmp=$tmp
15685
15686# Set up the scripts for CONFIG_FILES section.
15687# No need to generate them if there are no CONFIG_FILES.
15688# This happens for instance with `./config.status config.h'.
15689if test -n "$CONFIG_FILES"; then
15690
15691
15692ac_cr=`echo X | tr X '\015'`
15693# On cygwin, bash can eat \r inside `` if the user requested igncr.
15694# But we know of no other shell where ac_cr would be empty at this
15695# point, so we can use a bashism as a fallback.
15696if test "x$ac_cr" = x; then
15697  eval ac_cr=\$\'\\r\'
15698fi
15699ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15700if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15701  ac_cs_awk_cr='\\r'
15702else
15703  ac_cs_awk_cr=$ac_cr
15704fi
15705
15706echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15707_ACEOF
15708
15709
15710{
15711  echo "cat >conf$$subs.awk <<_ACEOF" &&
15712  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15713  echo "_ACEOF"
15714} >conf$$subs.sh ||
15715  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15716ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15717ac_delim='%!_!# '
15718for ac_last_try in false false false false false :; do
15719  . ./conf$$subs.sh ||
15720    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15721
15722  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15723  if test $ac_delim_n = $ac_delim_num; then
15724    break
15725  elif $ac_last_try; then
15726    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15727  else
15728    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15729  fi
15730done
15731rm -f conf$$subs.sh
15732
15733cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15734cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15735_ACEOF
15736sed -n '
15737h
15738s/^/S["/; s/!.*/"]=/
15739p
15740g
15741s/^[^!]*!//
15742:repl
15743t repl
15744s/'"$ac_delim"'$//
15745t delim
15746:nl
15747h
15748s/\(.\{148\}\)..*/\1/
15749t more1
15750s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15751p
15752n
15753b repl
15754:more1
15755s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15756p
15757g
15758s/.\{148\}//
15759t nl
15760:delim
15761h
15762s/\(.\{148\}\)..*/\1/
15763t more2
15764s/["\\]/\\&/g; s/^/"/; s/$/"/
15765p
15766b
15767:more2
15768s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15769p
15770g
15771s/.\{148\}//
15772t delim
15773' <conf$$subs.awk | sed '
15774/^[^""]/{
15775  N
15776  s/\n//
15777}
15778' >>$CONFIG_STATUS || ac_write_fail=1
15779rm -f conf$$subs.awk
15780cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15781_ACAWK
15782cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15783  for (key in S) S_is_set[key] = 1
15784  FS = ""
15785
15786}
15787{
15788  line = $ 0
15789  nfields = split(line, field, "@")
15790  substed = 0
15791  len = length(field[1])
15792  for (i = 2; i < nfields; i++) {
15793    key = field[i]
15794    keylen = length(key)
15795    if (S_is_set[key]) {
15796      value = S[key]
15797      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15798      len += length(value) + length(field[++i])
15799      substed = 1
15800    } else
15801      len += 1 + keylen
15802  }
15803
15804  print line
15805}
15806
15807_ACAWK
15808_ACEOF
15809cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15810if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15811  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15812else
15813  cat
15814fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15815  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15816_ACEOF
15817
15818# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15819# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15820# trailing colons and then remove the whole line if VPATH becomes empty
15821# (actually we leave an empty line to preserve line numbers).
15822if test "x$srcdir" = x.; then
15823  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
15824h
15825s///
15826s/^/:/
15827s/[	 ]*$/:/
15828s/:\$(srcdir):/:/g
15829s/:\${srcdir}:/:/g
15830s/:@srcdir@:/:/g
15831s/^:*//
15832s/:*$//
15833x
15834s/\(=[	 ]*\).*/\1/
15835G
15836s/\n//
15837s/^[^=]*=[	 ]*$//
15838}'
15839fi
15840
15841cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15842fi # test -n "$CONFIG_FILES"
15843
15844# Set up the scripts for CONFIG_HEADERS section.
15845# No need to generate them if there are no CONFIG_HEADERS.
15846# This happens for instance with `./config.status Makefile'.
15847if test -n "$CONFIG_HEADERS"; then
15848cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15849BEGIN {
15850_ACEOF
15851
15852# Transform confdefs.h into an awk script `defines.awk', embedded as
15853# here-document in config.status, that substitutes the proper values into
15854# config.h.in to produce config.h.
15855
15856# Create a delimiter string that does not exist in confdefs.h, to ease
15857# handling of long lines.
15858ac_delim='%!_!# '
15859for ac_last_try in false false :; do
15860  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15861  if test -z "$ac_tt"; then
15862    break
15863  elif $ac_last_try; then
15864    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15865  else
15866    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15867  fi
15868done
15869
15870# For the awk script, D is an array of macro values keyed by name,
15871# likewise P contains macro parameters if any.  Preserve backslash
15872# newline sequences.
15873
15874ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15875sed -n '
15876s/.\{148\}/&'"$ac_delim"'/g
15877t rset
15878:rset
15879s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
15880t def
15881d
15882:def
15883s/\\$//
15884t bsnl
15885s/["\\]/\\&/g
15886s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15887D["\1"]=" \3"/p
15888s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
15889d
15890:bsnl
15891s/["\\]/\\&/g
15892s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15893D["\1"]=" \3\\\\\\n"\\/p
15894t cont
15895s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15896t cont
15897d
15898:cont
15899n
15900s/.\{148\}/&'"$ac_delim"'/g
15901t clear
15902:clear
15903s/\\$//
15904t bsnlc
15905s/["\\]/\\&/g; s/^/"/; s/$/"/p
15906d
15907:bsnlc
15908s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15909b cont
15910' <confdefs.h | sed '
15911s/'"$ac_delim"'/"\\\
15912"/g' >>$CONFIG_STATUS || ac_write_fail=1
15913
15914cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15915  for (key in D) D_is_set[key] = 1
15916  FS = ""
15917}
15918/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15919  line = \$ 0
15920  split(line, arg, " ")
15921  if (arg[1] == "#") {
15922    defundef = arg[2]
15923    mac1 = arg[3]
15924  } else {
15925    defundef = substr(arg[1], 2)
15926    mac1 = arg[2]
15927  }
15928  split(mac1, mac2, "(") #)
15929  macro = mac2[1]
15930  prefix = substr(line, 1, index(line, defundef) - 1)
15931  if (D_is_set[macro]) {
15932    # Preserve the white space surrounding the "#".
15933    print prefix "define", macro P[macro] D[macro]
15934    next
15935  } else {
15936    # Replace #undef with comments.  This is necessary, for example,
15937    # in the case of _POSIX_SOURCE, which is predefined and required
15938    # on some systems where configure will not decide to define it.
15939    if (defundef == "undef") {
15940      print "/*", prefix defundef, macro, "*/"
15941      next
15942    }
15943  }
15944}
15945{ print }
15946_ACAWK
15947_ACEOF
15948cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15949  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15950fi # test -n "$CONFIG_HEADERS"
15951
15952
15953eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15954shift
15955for ac_tag
15956do
15957  case $ac_tag in
15958  :[FHLC]) ac_mode=$ac_tag; continue;;
15959  esac
15960  case $ac_mode$ac_tag in
15961  :[FHL]*:*);;
15962  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15963  :[FH]-) ac_tag=-:-;;
15964  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15965  esac
15966  ac_save_IFS=$IFS
15967  IFS=:
15968  set x $ac_tag
15969  IFS=$ac_save_IFS
15970  shift
15971  ac_file=$1
15972  shift
15973
15974  case $ac_mode in
15975  :L) ac_source=$1;;
15976  :[FH])
15977    ac_file_inputs=
15978    for ac_f
15979    do
15980      case $ac_f in
15981      -) ac_f="$ac_tmp/stdin";;
15982      *) # Look for the file first in the build tree, then in the source tree
15983	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
15984	 # because $ac_f cannot contain `:'.
15985	 test -f "$ac_f" ||
15986	   case $ac_f in
15987	   [\\/$]*) false;;
15988	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15989	   esac ||
15990	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15991      esac
15992      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15993      as_fn_append ac_file_inputs " '$ac_f'"
15994    done
15995
15996    # Let's still pretend it is `configure' which instantiates (i.e., don't
15997    # use $as_me), people would be surprised to read:
15998    #    /* config.h.  Generated by config.status.  */
15999    configure_input='Generated from '`
16000	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16001	`' by configure.'
16002    if test x"$ac_file" != x-; then
16003      configure_input="$ac_file.  $configure_input"
16004      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16005$as_echo "$as_me: creating $ac_file" >&6;}
16006    fi
16007    # Neutralize special characters interpreted by sed in replacement strings.
16008    case $configure_input in #(
16009    *\&* | *\|* | *\\* )
16010       ac_sed_conf_input=`$as_echo "$configure_input" |
16011       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16012    *) ac_sed_conf_input=$configure_input;;
16013    esac
16014
16015    case $ac_tag in
16016    *:-:* | *:-) cat >"$ac_tmp/stdin" \
16017      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16018    esac
16019    ;;
16020  esac
16021
16022  ac_dir=`$as_dirname -- "$ac_file" ||
16023$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16024	 X"$ac_file" : 'X\(//\)[^/]' \| \
16025	 X"$ac_file" : 'X\(//\)$' \| \
16026	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16027$as_echo X"$ac_file" |
16028    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16029	    s//\1/
16030	    q
16031	  }
16032	  /^X\(\/\/\)[^/].*/{
16033	    s//\1/
16034	    q
16035	  }
16036	  /^X\(\/\/\)$/{
16037	    s//\1/
16038	    q
16039	  }
16040	  /^X\(\/\).*/{
16041	    s//\1/
16042	    q
16043	  }
16044	  s/.*/./; q'`
16045  as_dir="$ac_dir"; as_fn_mkdir_p
16046  ac_builddir=.
16047
16048case "$ac_dir" in
16049.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16050*)
16051  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16052  # A ".." for each directory in $ac_dir_suffix.
16053  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16054  case $ac_top_builddir_sub in
16055  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16056  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16057  esac ;;
16058esac
16059ac_abs_top_builddir=$ac_pwd
16060ac_abs_builddir=$ac_pwd$ac_dir_suffix
16061# for backward compatibility:
16062ac_top_builddir=$ac_top_build_prefix
16063
16064case $srcdir in
16065  .)  # We are building in place.
16066    ac_srcdir=.
16067    ac_top_srcdir=$ac_top_builddir_sub
16068    ac_abs_top_srcdir=$ac_pwd ;;
16069  [\\/]* | ?:[\\/]* )  # Absolute name.
16070    ac_srcdir=$srcdir$ac_dir_suffix;
16071    ac_top_srcdir=$srcdir
16072    ac_abs_top_srcdir=$srcdir ;;
16073  *) # Relative name.
16074    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16075    ac_top_srcdir=$ac_top_build_prefix$srcdir
16076    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16077esac
16078ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16079
16080
16081  case $ac_mode in
16082  :F)
16083  #
16084  # CONFIG_FILE
16085  #
16086
16087  case $INSTALL in
16088  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16089  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16090  esac
16091  ac_MKDIR_P=$MKDIR_P
16092  case $MKDIR_P in
16093  [\\/$]* | ?:[\\/]* ) ;;
16094  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16095  esac
16096_ACEOF
16097
16098cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16099# If the template does not know about datarootdir, expand it.
16100# FIXME: This hack should be removed a few years after 2.60.
16101ac_datarootdir_hack=; ac_datarootdir_seen=
16102ac_sed_dataroot='
16103/datarootdir/ {
16104  p
16105  q
16106}
16107/@datadir@/p
16108/@docdir@/p
16109/@infodir@/p
16110/@localedir@/p
16111/@mandir@/p'
16112case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16113*datarootdir*) ac_datarootdir_seen=yes;;
16114*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16115  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16116$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16117_ACEOF
16118cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16119  ac_datarootdir_hack='
16120  s&@datadir@&$datadir&g
16121  s&@docdir@&$docdir&g
16122  s&@infodir@&$infodir&g
16123  s&@localedir@&$localedir&g
16124  s&@mandir@&$mandir&g
16125  s&\\\${datarootdir}&$datarootdir&g' ;;
16126esac
16127_ACEOF
16128
16129# Neutralize VPATH when `$srcdir' = `.'.
16130# Shell code in configure.ac might set extrasub.
16131# FIXME: do we really want to maintain this feature?
16132cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16133ac_sed_extra="$ac_vpsub
16134$extrasub
16135_ACEOF
16136cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16137:t
16138/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16139s|@configure_input@|$ac_sed_conf_input|;t t
16140s&@top_builddir@&$ac_top_builddir_sub&;t t
16141s&@top_build_prefix@&$ac_top_build_prefix&;t t
16142s&@srcdir@&$ac_srcdir&;t t
16143s&@abs_srcdir@&$ac_abs_srcdir&;t t
16144s&@top_srcdir@&$ac_top_srcdir&;t t
16145s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16146s&@builddir@&$ac_builddir&;t t
16147s&@abs_builddir@&$ac_abs_builddir&;t t
16148s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16149s&@INSTALL@&$ac_INSTALL&;t t
16150s&@MKDIR_P@&$ac_MKDIR_P&;t t
16151$ac_datarootdir_hack
16152"
16153eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16154  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16155
16156test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16157  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16158  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
16159      "$ac_tmp/out"`; test -z "$ac_out"; } &&
16160  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16161which seems to be undefined.  Please make sure it is defined" >&5
16162$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16163which seems to be undefined.  Please make sure it is defined" >&2;}
16164
16165  rm -f "$ac_tmp/stdin"
16166  case $ac_file in
16167  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16168  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16169  esac \
16170  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16171 ;;
16172  :H)
16173  #
16174  # CONFIG_HEADER
16175  #
16176  if test x"$ac_file" != x-; then
16177    {
16178      $as_echo "/* $configure_input  */" \
16179      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16180    } >"$ac_tmp/config.h" \
16181      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16182    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16183      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16184$as_echo "$as_me: $ac_file is unchanged" >&6;}
16185    else
16186      rm -f "$ac_file"
16187      mv "$ac_tmp/config.h" "$ac_file" \
16188	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
16189    fi
16190  else
16191    $as_echo "/* $configure_input  */" \
16192      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16193      || as_fn_error $? "could not create -" "$LINENO" 5
16194  fi
16195# Compute "$ac_file"'s index in $config_headers.
16196_am_arg="$ac_file"
16197_am_stamp_count=1
16198for _am_header in $config_headers :; do
16199  case $_am_header in
16200    $_am_arg | $_am_arg:* )
16201      break ;;
16202    * )
16203      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16204  esac
16205done
16206echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16207$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16208	 X"$_am_arg" : 'X\(//\)[^/]' \| \
16209	 X"$_am_arg" : 'X\(//\)$' \| \
16210	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16211$as_echo X"$_am_arg" |
16212    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16213	    s//\1/
16214	    q
16215	  }
16216	  /^X\(\/\/\)[^/].*/{
16217	    s//\1/
16218	    q
16219	  }
16220	  /^X\(\/\/\)$/{
16221	    s//\1/
16222	    q
16223	  }
16224	  /^X\(\/\).*/{
16225	    s//\1/
16226	    q
16227	  }
16228	  s/.*/./; q'`/stamp-h$_am_stamp_count
16229 ;;
16230
16231  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16232$as_echo "$as_me: executing $ac_file commands" >&6;}
16233 ;;
16234  esac
16235
16236
16237  case $ac_file$ac_mode in
16238    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16239  # Older Autoconf quotes --file arguments for eval, but not when files
16240  # are listed without --file.  Let's play safe and only enable the eval
16241  # if we detect the quoting.
16242  case $CONFIG_FILES in
16243  *\'*) eval set x "$CONFIG_FILES" ;;
16244  *)   set x $CONFIG_FILES ;;
16245  esac
16246  shift
16247  for mf
16248  do
16249    # Strip MF so we end up with the name of the file.
16250    mf=`echo "$mf" | sed -e 's/:.*$//'`
16251    # Check whether this is an Automake generated Makefile or not.
16252    # We used to match only the files named 'Makefile.in', but
16253    # some people rename them; so instead we look at the file content.
16254    # Grep'ing the first line is not enough: some people post-process
16255    # each Makefile.in and add a new line on top of each file to say so.
16256    # Grep'ing the whole file is not good either: AIX grep has a line
16257    # limit of 2048, but all sed's we know have understand at least 4000.
16258    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16259      dirpart=`$as_dirname -- "$mf" ||
16260$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16261	 X"$mf" : 'X\(//\)[^/]' \| \
16262	 X"$mf" : 'X\(//\)$' \| \
16263	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16264$as_echo X"$mf" |
16265    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16266	    s//\1/
16267	    q
16268	  }
16269	  /^X\(\/\/\)[^/].*/{
16270	    s//\1/
16271	    q
16272	  }
16273	  /^X\(\/\/\)$/{
16274	    s//\1/
16275	    q
16276	  }
16277	  /^X\(\/\).*/{
16278	    s//\1/
16279	    q
16280	  }
16281	  s/.*/./; q'`
16282    else
16283      continue
16284    fi
16285    # Extract the definition of DEPDIR, am__include, and am__quote
16286    # from the Makefile without running 'make'.
16287    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16288    test -z "$DEPDIR" && continue
16289    am__include=`sed -n 's/^am__include = //p' < "$mf"`
16290    test -z "$am__include" && continue
16291    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16292    # Find all dependency output files, they are included files with
16293    # $(DEPDIR) in their names.  We invoke sed twice because it is the
16294    # simplest approach to changing $(DEPDIR) to its actual value in the
16295    # expansion.
16296    for file in `sed -n "
16297      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16298	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16299      # Make sure the directory exists.
16300      test -f "$dirpart/$file" && continue
16301      fdir=`$as_dirname -- "$file" ||
16302$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16303	 X"$file" : 'X\(//\)[^/]' \| \
16304	 X"$file" : 'X\(//\)$' \| \
16305	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16306$as_echo X"$file" |
16307    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16308	    s//\1/
16309	    q
16310	  }
16311	  /^X\(\/\/\)[^/].*/{
16312	    s//\1/
16313	    q
16314	  }
16315	  /^X\(\/\/\)$/{
16316	    s//\1/
16317	    q
16318	  }
16319	  /^X\(\/\).*/{
16320	    s//\1/
16321	    q
16322	  }
16323	  s/.*/./; q'`
16324      as_dir=$dirpart/$fdir; as_fn_mkdir_p
16325      # echo "creating $dirpart/$file"
16326      echo '# dummy' > "$dirpart/$file"
16327    done
16328  done
16329}
16330 ;;
16331    "libtool":C)
16332
16333    # See if we are running on zsh, and set the options which allow our
16334    # commands through without removal of \ escapes.
16335    if test -n "${ZSH_VERSION+set}" ; then
16336      setopt NO_GLOB_SUBST
16337    fi
16338
16339    cfgfile="${ofile}T"
16340    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16341    $RM "$cfgfile"
16342
16343    cat <<_LT_EOF >> "$cfgfile"
16344#! $SHELL
16345
16346# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16347# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16348# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16349# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16350#
16351#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16352#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16353#                 Foundation, Inc.
16354#   Written by Gordon Matzigkeit, 1996
16355#
16356#   This file is part of GNU Libtool.
16357#
16358# GNU Libtool is free software; you can redistribute it and/or
16359# modify it under the terms of the GNU General Public License as
16360# published by the Free Software Foundation; either version 2 of
16361# the License, or (at your option) any later version.
16362#
16363# As a special exception to the GNU General Public License,
16364# if you distribute this file as part of a program or library that
16365# is built using GNU Libtool, you may include this file under the
16366# same distribution terms that you use for the rest of that program.
16367#
16368# GNU Libtool is distributed in the hope that it will be useful,
16369# but WITHOUT ANY WARRANTY; without even the implied warranty of
16370# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16371# GNU General Public License for more details.
16372#
16373# You should have received a copy of the GNU General Public License
16374# along with GNU Libtool; see the file COPYING.  If not, a copy
16375# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16376# obtained by writing to the Free Software Foundation, Inc.,
16377# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16378
16379
16380# The names of the tagged configurations supported by this script.
16381available_tags=""
16382
16383# ### BEGIN LIBTOOL CONFIG
16384
16385# Assembler program.
16386AS=$lt_AS
16387
16388# DLL creation program.
16389DLLTOOL=$lt_DLLTOOL
16390
16391# Object dumper program.
16392OBJDUMP=$lt_OBJDUMP
16393
16394# Which release of libtool.m4 was used?
16395macro_version=$macro_version
16396macro_revision=$macro_revision
16397
16398# Whether or not to build shared libraries.
16399build_libtool_libs=$enable_shared
16400
16401# Whether or not to build static libraries.
16402build_old_libs=$enable_static
16403
16404# What type of objects to build.
16405pic_mode=$pic_mode
16406
16407# Whether or not to optimize for fast installation.
16408fast_install=$enable_fast_install
16409
16410# Shell to use when invoking shell scripts.
16411SHELL=$lt_SHELL
16412
16413# An echo program that protects backslashes.
16414ECHO=$lt_ECHO
16415
16416# The PATH separator for the build system.
16417PATH_SEPARATOR=$lt_PATH_SEPARATOR
16418
16419# The host system.
16420host_alias=$host_alias
16421host=$host
16422host_os=$host_os
16423
16424# The build system.
16425build_alias=$build_alias
16426build=$build
16427build_os=$build_os
16428
16429# A sed program that does not truncate output.
16430SED=$lt_SED
16431
16432# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16433Xsed="\$SED -e 1s/^X//"
16434
16435# A grep program that handles long lines.
16436GREP=$lt_GREP
16437
16438# An ERE matcher.
16439EGREP=$lt_EGREP
16440
16441# A literal string matcher.
16442FGREP=$lt_FGREP
16443
16444# A BSD- or MS-compatible name lister.
16445NM=$lt_NM
16446
16447# Whether we need soft or hard links.
16448LN_S=$lt_LN_S
16449
16450# What is the maximum length of a command?
16451max_cmd_len=$max_cmd_len
16452
16453# Object file suffix (normally "o").
16454objext=$ac_objext
16455
16456# Executable file suffix (normally "").
16457exeext=$exeext
16458
16459# whether the shell understands "unset".
16460lt_unset=$lt_unset
16461
16462# turn spaces into newlines.
16463SP2NL=$lt_lt_SP2NL
16464
16465# turn newlines into spaces.
16466NL2SP=$lt_lt_NL2SP
16467
16468# convert \$build file names to \$host format.
16469to_host_file_cmd=$lt_cv_to_host_file_cmd
16470
16471# convert \$build files to toolchain format.
16472to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16473
16474# Method to check whether dependent libraries are shared objects.
16475deplibs_check_method=$lt_deplibs_check_method
16476
16477# Command to use when deplibs_check_method = "file_magic".
16478file_magic_cmd=$lt_file_magic_cmd
16479
16480# How to find potential files when deplibs_check_method = "file_magic".
16481file_magic_glob=$lt_file_magic_glob
16482
16483# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16484want_nocaseglob=$lt_want_nocaseglob
16485
16486# Command to associate shared and link libraries.
16487sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16488
16489# The archiver.
16490AR=$lt_AR
16491
16492# Flags to create an archive.
16493AR_FLAGS=$lt_AR_FLAGS
16494
16495# How to feed a file listing to the archiver.
16496archiver_list_spec=$lt_archiver_list_spec
16497
16498# A symbol stripping program.
16499STRIP=$lt_STRIP
16500
16501# Commands used to install an old-style archive.
16502RANLIB=$lt_RANLIB
16503old_postinstall_cmds=$lt_old_postinstall_cmds
16504old_postuninstall_cmds=$lt_old_postuninstall_cmds
16505
16506# Whether to use a lock for old archive extraction.
16507lock_old_archive_extraction=$lock_old_archive_extraction
16508
16509# A C compiler.
16510LTCC=$lt_CC
16511
16512# LTCC compiler flags.
16513LTCFLAGS=$lt_CFLAGS
16514
16515# Take the output of nm and produce a listing of raw symbols and C names.
16516global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16517
16518# Transform the output of nm in a proper C declaration.
16519global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16520
16521# Transform the output of nm in a C name address pair.
16522global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16523
16524# Transform the output of nm in a C name address pair when lib prefix is needed.
16525global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16526
16527# Specify filename containing input files for \$NM.
16528nm_file_list_spec=$lt_nm_file_list_spec
16529
16530# The root where to search for dependent libraries,and in which our libraries should be installed.
16531lt_sysroot=$lt_sysroot
16532
16533# The name of the directory that contains temporary libtool files.
16534objdir=$objdir
16535
16536# Used to examine libraries when file_magic_cmd begins with "file".
16537MAGIC_CMD=$MAGIC_CMD
16538
16539# Must we lock files when doing compilation?
16540need_locks=$lt_need_locks
16541
16542# Manifest tool.
16543MANIFEST_TOOL=$lt_MANIFEST_TOOL
16544
16545# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16546DSYMUTIL=$lt_DSYMUTIL
16547
16548# Tool to change global to local symbols on Mac OS X.
16549NMEDIT=$lt_NMEDIT
16550
16551# Tool to manipulate fat objects and archives on Mac OS X.
16552LIPO=$lt_LIPO
16553
16554# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16555OTOOL=$lt_OTOOL
16556
16557# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16558OTOOL64=$lt_OTOOL64
16559
16560# Old archive suffix (normally "a").
16561libext=$libext
16562
16563# Shared library suffix (normally ".so").
16564shrext_cmds=$lt_shrext_cmds
16565
16566# The commands to extract the exported symbol list from a shared archive.
16567extract_expsyms_cmds=$lt_extract_expsyms_cmds
16568
16569# Variables whose values should be saved in libtool wrapper scripts and
16570# restored at link time.
16571variables_saved_for_relink=$lt_variables_saved_for_relink
16572
16573# Do we need the "lib" prefix for modules?
16574need_lib_prefix=$need_lib_prefix
16575
16576# Do we need a version for libraries?
16577need_version=$need_version
16578
16579# Library versioning type.
16580version_type=$version_type
16581
16582# Shared library runtime path variable.
16583runpath_var=$runpath_var
16584
16585# Shared library path variable.
16586shlibpath_var=$shlibpath_var
16587
16588# Is shlibpath searched before the hard-coded library search path?
16589shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16590
16591# Format of library name prefix.
16592libname_spec=$lt_libname_spec
16593
16594# List of archive names.  First name is the real one, the rest are links.
16595# The last name is the one that the linker finds with -lNAME
16596library_names_spec=$lt_library_names_spec
16597
16598# The coded name of the library, if different from the real name.
16599soname_spec=$lt_soname_spec
16600
16601# Permission mode override for installation of shared libraries.
16602install_override_mode=$lt_install_override_mode
16603
16604# Command to use after installation of a shared archive.
16605postinstall_cmds=$lt_postinstall_cmds
16606
16607# Command to use after uninstallation of a shared archive.
16608postuninstall_cmds=$lt_postuninstall_cmds
16609
16610# Commands used to finish a libtool library installation in a directory.
16611finish_cmds=$lt_finish_cmds
16612
16613# As "finish_cmds", except a single script fragment to be evaled but
16614# not shown.
16615finish_eval=$lt_finish_eval
16616
16617# Whether we should hardcode library paths into libraries.
16618hardcode_into_libs=$hardcode_into_libs
16619
16620# Compile-time system search path for libraries.
16621sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16622
16623# Run-time system search path for libraries.
16624sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16625
16626# Whether dlopen is supported.
16627dlopen_support=$enable_dlopen
16628
16629# Whether dlopen of programs is supported.
16630dlopen_self=$enable_dlopen_self
16631
16632# Whether dlopen of statically linked programs is supported.
16633dlopen_self_static=$enable_dlopen_self_static
16634
16635# Commands to strip libraries.
16636old_striplib=$lt_old_striplib
16637striplib=$lt_striplib
16638
16639
16640# The linker used to build libraries.
16641LD=$lt_LD
16642
16643# How to create reloadable object files.
16644reload_flag=$lt_reload_flag
16645reload_cmds=$lt_reload_cmds
16646
16647# Commands used to build an old-style archive.
16648old_archive_cmds=$lt_old_archive_cmds
16649
16650# A language specific compiler.
16651CC=$lt_compiler
16652
16653# Is the compiler the GNU compiler?
16654with_gcc=$GCC
16655
16656# Compiler flag to turn off builtin functions.
16657no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16658
16659# Additional compiler flags for building library objects.
16660pic_flag=$lt_lt_prog_compiler_pic
16661
16662# How to pass a linker flag through the compiler.
16663wl=$lt_lt_prog_compiler_wl
16664
16665# Compiler flag to prevent dynamic linking.
16666link_static_flag=$lt_lt_prog_compiler_static
16667
16668# Does compiler simultaneously support -c and -o options?
16669compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16670
16671# Whether or not to add -lc for building shared libraries.
16672build_libtool_need_lc=$archive_cmds_need_lc
16673
16674# Whether or not to disallow shared libs when runtime libs are static.
16675allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16676
16677# Compiler flag to allow reflexive dlopens.
16678export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16679
16680# Compiler flag to generate shared objects directly from archives.
16681whole_archive_flag_spec=$lt_whole_archive_flag_spec
16682
16683# Whether the compiler copes with passing no objects directly.
16684compiler_needs_object=$lt_compiler_needs_object
16685
16686# Create an old-style archive from a shared archive.
16687old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16688
16689# Create a temporary old-style archive to link instead of a shared archive.
16690old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16691
16692# Commands used to build a shared archive.
16693archive_cmds=$lt_archive_cmds
16694archive_expsym_cmds=$lt_archive_expsym_cmds
16695
16696# Commands used to build a loadable module if different from building
16697# a shared archive.
16698module_cmds=$lt_module_cmds
16699module_expsym_cmds=$lt_module_expsym_cmds
16700
16701# Whether we are building with GNU ld or not.
16702with_gnu_ld=$lt_with_gnu_ld
16703
16704# Flag that allows shared libraries with undefined symbols to be built.
16705allow_undefined_flag=$lt_allow_undefined_flag
16706
16707# Flag that enforces no undefined symbols.
16708no_undefined_flag=$lt_no_undefined_flag
16709
16710# Flag to hardcode \$libdir into a binary during linking.
16711# This must work even if \$libdir does not exist
16712hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16713
16714# Whether we need a single "-rpath" flag with a separated argument.
16715hardcode_libdir_separator=$lt_hardcode_libdir_separator
16716
16717# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16718# DIR into the resulting binary.
16719hardcode_direct=$hardcode_direct
16720
16721# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16722# DIR into the resulting binary and the resulting library dependency is
16723# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16724# library is relocated.
16725hardcode_direct_absolute=$hardcode_direct_absolute
16726
16727# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16728# into the resulting binary.
16729hardcode_minus_L=$hardcode_minus_L
16730
16731# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16732# into the resulting binary.
16733hardcode_shlibpath_var=$hardcode_shlibpath_var
16734
16735# Set to "yes" if building a shared library automatically hardcodes DIR
16736# into the library and all subsequent libraries and executables linked
16737# against it.
16738hardcode_automatic=$hardcode_automatic
16739
16740# Set to yes if linker adds runtime paths of dependent libraries
16741# to runtime path list.
16742inherit_rpath=$inherit_rpath
16743
16744# Whether libtool must link a program against all its dependency libraries.
16745link_all_deplibs=$link_all_deplibs
16746
16747# Set to "yes" if exported symbols are required.
16748always_export_symbols=$always_export_symbols
16749
16750# The commands to list exported symbols.
16751export_symbols_cmds=$lt_export_symbols_cmds
16752
16753# Symbols that should not be listed in the preloaded symbols.
16754exclude_expsyms=$lt_exclude_expsyms
16755
16756# Symbols that must always be exported.
16757include_expsyms=$lt_include_expsyms
16758
16759# Commands necessary for linking programs (against libraries) with templates.
16760prelink_cmds=$lt_prelink_cmds
16761
16762# Commands necessary for finishing linking programs.
16763postlink_cmds=$lt_postlink_cmds
16764
16765# Specify filename containing input files.
16766file_list_spec=$lt_file_list_spec
16767
16768# How to hardcode a shared library path into an executable.
16769hardcode_action=$hardcode_action
16770
16771# ### END LIBTOOL CONFIG
16772
16773_LT_EOF
16774
16775  case $host_os in
16776  aix3*)
16777    cat <<\_LT_EOF >> "$cfgfile"
16778# AIX sometimes has problems with the GCC collect2 program.  For some
16779# reason, if we set the COLLECT_NAMES environment variable, the problems
16780# vanish in a puff of smoke.
16781if test "X${COLLECT_NAMES+set}" != Xset; then
16782  COLLECT_NAMES=
16783  export COLLECT_NAMES
16784fi
16785_LT_EOF
16786    ;;
16787  esac
16788
16789
16790ltmain="$ac_aux_dir/ltmain.sh"
16791
16792
16793  # We use sed instead of cat because bash on DJGPP gets confused if
16794  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16795  # text mode, it properly converts lines to CR/LF.  This bash problem
16796  # is reportedly fixed, but why not run on old versions too?
16797  sed '$q' "$ltmain" >> "$cfgfile" \
16798     || (rm -f "$cfgfile"; exit 1)
16799
16800  if test x"$xsi_shell" = xyes; then
16801  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16802func_dirname ()\
16803{\
16804\    case ${1} in\
16805\      */*) func_dirname_result="${1%/*}${2}" ;;\
16806\      *  ) func_dirname_result="${3}" ;;\
16807\    esac\
16808} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16809  && mv -f "$cfgfile.tmp" "$cfgfile" \
16810    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16811test 0 -eq $? || _lt_function_replace_fail=:
16812
16813
16814  sed -e '/^func_basename ()$/,/^} # func_basename /c\
16815func_basename ()\
16816{\
16817\    func_basename_result="${1##*/}"\
16818} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16819  && mv -f "$cfgfile.tmp" "$cfgfile" \
16820    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16821test 0 -eq $? || _lt_function_replace_fail=:
16822
16823
16824  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16825func_dirname_and_basename ()\
16826{\
16827\    case ${1} in\
16828\      */*) func_dirname_result="${1%/*}${2}" ;;\
16829\      *  ) func_dirname_result="${3}" ;;\
16830\    esac\
16831\    func_basename_result="${1##*/}"\
16832} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16833  && mv -f "$cfgfile.tmp" "$cfgfile" \
16834    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16835test 0 -eq $? || _lt_function_replace_fail=:
16836
16837
16838  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16839func_stripname ()\
16840{\
16841\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16842\    # positional parameters, so assign one to ordinary parameter first.\
16843\    func_stripname_result=${3}\
16844\    func_stripname_result=${func_stripname_result#"${1}"}\
16845\    func_stripname_result=${func_stripname_result%"${2}"}\
16846} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16847  && mv -f "$cfgfile.tmp" "$cfgfile" \
16848    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16849test 0 -eq $? || _lt_function_replace_fail=:
16850
16851
16852  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16853func_split_long_opt ()\
16854{\
16855\    func_split_long_opt_name=${1%%=*}\
16856\    func_split_long_opt_arg=${1#*=}\
16857} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16858  && mv -f "$cfgfile.tmp" "$cfgfile" \
16859    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16860test 0 -eq $? || _lt_function_replace_fail=:
16861
16862
16863  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16864func_split_short_opt ()\
16865{\
16866\    func_split_short_opt_arg=${1#??}\
16867\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16868} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16869  && mv -f "$cfgfile.tmp" "$cfgfile" \
16870    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16871test 0 -eq $? || _lt_function_replace_fail=:
16872
16873
16874  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16875func_lo2o ()\
16876{\
16877\    case ${1} in\
16878\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16879\      *)    func_lo2o_result=${1} ;;\
16880\    esac\
16881} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16882  && mv -f "$cfgfile.tmp" "$cfgfile" \
16883    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16884test 0 -eq $? || _lt_function_replace_fail=:
16885
16886
16887  sed -e '/^func_xform ()$/,/^} # func_xform /c\
16888func_xform ()\
16889{\
16890    func_xform_result=${1%.*}.lo\
16891} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16892  && mv -f "$cfgfile.tmp" "$cfgfile" \
16893    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16894test 0 -eq $? || _lt_function_replace_fail=:
16895
16896
16897  sed -e '/^func_arith ()$/,/^} # func_arith /c\
16898func_arith ()\
16899{\
16900    func_arith_result=$(( $* ))\
16901} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16902  && mv -f "$cfgfile.tmp" "$cfgfile" \
16903    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16904test 0 -eq $? || _lt_function_replace_fail=:
16905
16906
16907  sed -e '/^func_len ()$/,/^} # func_len /c\
16908func_len ()\
16909{\
16910    func_len_result=${#1}\
16911} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16912  && mv -f "$cfgfile.tmp" "$cfgfile" \
16913    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16914test 0 -eq $? || _lt_function_replace_fail=:
16915
16916fi
16917
16918if test x"$lt_shell_append" = xyes; then
16919  sed -e '/^func_append ()$/,/^} # func_append /c\
16920func_append ()\
16921{\
16922    eval "${1}+=\\${2}"\
16923} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16924  && mv -f "$cfgfile.tmp" "$cfgfile" \
16925    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16926test 0 -eq $? || _lt_function_replace_fail=:
16927
16928
16929  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16930func_append_quoted ()\
16931{\
16932\    func_quote_for_eval "${2}"\
16933\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16934} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16935  && mv -f "$cfgfile.tmp" "$cfgfile" \
16936    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16937test 0 -eq $? || _lt_function_replace_fail=:
16938
16939
16940  # Save a `func_append' function call where possible by direct use of '+='
16941  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16942    && mv -f "$cfgfile.tmp" "$cfgfile" \
16943      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16944  test 0 -eq $? || _lt_function_replace_fail=:
16945else
16946  # Save a `func_append' function call even when '+=' is not available
16947  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16948    && mv -f "$cfgfile.tmp" "$cfgfile" \
16949      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16950  test 0 -eq $? || _lt_function_replace_fail=:
16951fi
16952
16953if test x"$_lt_function_replace_fail" = x":"; then
16954  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
16955$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
16956fi
16957
16958
16959   mv -f "$cfgfile" "$ofile" ||
16960    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16961  chmod +x "$ofile"
16962
16963 ;;
16964
16965  esac
16966done # for ac_tag
16967
16968
16969as_fn_exit 0
16970_ACEOF
16971ac_clean_files=$ac_clean_files_save
16972
16973test $ac_write_fail = 0 ||
16974  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16975
16976
16977# configure is writing to config.log, and then calls config.status.
16978# config.status does its own redirection, appending to config.log.
16979# Unfortunately, on DOS this fails, as config.log is still kept open
16980# by configure, so config.status won't be able to write to it; its
16981# output is simply discarded.  So we exec the FD to /dev/null,
16982# effectively closing config.log, so it can be properly (re)opened and
16983# appended to by config.status.  When coming back to configure, we
16984# need to make the FD available again.
16985if test "$no_create" != yes; then
16986  ac_cs_success=:
16987  ac_config_status_args=
16988  test "$silent" = yes &&
16989    ac_config_status_args="$ac_config_status_args --quiet"
16990  exec 5>/dev/null
16991  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16992  exec 5>>config.log
16993  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16994  # would make configure fail if this is the last instruction.
16995  $ac_cs_success || as_fn_exit 1
16996fi
16997if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16998  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16999$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17000fi
17001
17002
17003
17004echo ""
17005echo "  Package: ${PACKAGE_NAME} ${PACKAGE_VERSION}"
17006echo ""
17007echo "  Configuration"
17008echo "    XDM support.........: ${have_xdmcp}"
17009echo "    Build unit tests....: ${HAVE_CHECK}"
17010echo "    XCB buffer size.....: ${xcb_queue_buffer_size}"
17011echo ""
17012echo "  X11 extensions"
17013echo "    Composite...........: ${BUILD_COMPOSITE}"
17014echo "    Damage..............: ${BUILD_DAMAGE}"
17015echo "    Dpms................: ${BUILD_DPMS}"
17016echo "    Dri2................: ${BUILD_DRI2}"
17017echo "    Glx.................: ${BUILD_GLX}"
17018echo "    Randr...............: ${BUILD_RANDR}"
17019echo "    Record..............: ${BUILD_RECORD}"
17020echo "    Render..............: ${BUILD_RENDER}"
17021echo "    Resource............: ${BUILD_RESOURCE}"
17022echo "    Screensaver.........: ${BUILD_SCREENSAVER}"
17023echo "    selinux.............: ${BUILD_SELINUX}"
17024echo "    Shape...............: ${BUILD_SHAPE}"
17025echo "    Shm.................: ${BUILD_SHM}"
17026echo "    Sync................: ${BUILD_SYNC}"
17027echo "    Xevie...............: ${BUILD_XEVIE}"
17028echo "    Xfixes..............: ${BUILD_XFIXES}"
17029echo "    Xfree86-dri.........: ${BUILD_XFREE86_DRI}"
17030echo "    xinerama............: ${BUILD_XINERAMA}"
17031echo "    xinput..............: ${BUILD_XINPUT}"
17032echo "    xkb.................: ${BUILD_XKB}"
17033echo "    xprint..............: ${BUILD_XPRINT}"
17034echo "    xtest...............: ${BUILD_XTEST}"
17035echo "    xv..................: ${BUILD_XV}"
17036echo "    xvmc................: ${BUILD_XVMC}"
17037echo ""
17038echo "  Used CFLAGS:"
17039echo "    CPPFLAGS............: ${CPPFLAGS}"
17040echo "    CFLAGS..............: ${CFLAGS}"
17041echo "    Warning CFLAGS......: ${CWARNFLAGS}"
17042echo ""
17043echo "  Installation:"
17044echo "    Prefix..............: ${prefix}"
17045echo ""
17046