configure revision b20a2039
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.67 for libxcb 1.7.
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.
94case $0 in #((
95  *[\\/]* ) as_myself=$0 ;;
96  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99  IFS=$as_save_IFS
100  test -z "$as_dir" && as_dir=.
101    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102  done
103IFS=$as_save_IFS
104
105     ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110  as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114  exit 1
115fi
116
117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there.  '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140  emulate sh
141  NULLCMD=:
142  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143  # is contrary to our usage.  Disable this feature.
144  alias -g '\${1+\"\$@\"}'='\"\$@\"'
145  setopt NO_GLOB_SUBST
146else
147  case \`(set -o) 2>/dev/null\` in #(
148  *posix*) :
149    set -o posix ;; #(
150  *) :
151     ;;
152esac
153fi
154"
155  as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169  exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176test \$(( 1 + 1 )) = 2 || exit 1"
177  if (eval "$as_required") 2>/dev/null; then :
178  as_have_required=yes
179else
180  as_have_required=no
181fi
182  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184else
185  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186as_found=false
187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188do
189  IFS=$as_save_IFS
190  test -z "$as_dir" && as_dir=.
191  as_found=:
192  case $as_dir in #(
193	 /*)
194	   for as_base in sh bash ksh sh5; do
195	     # Try only shells that exist, to save several forks.
196	     as_shell=$as_dir/$as_base
197	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199  CONFIG_SHELL=$as_shell as_have_required=yes
200		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201  break 2
202fi
203fi
204	   done;;
205       esac
206  as_found=false
207done
208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210  CONFIG_SHELL=$SHELL as_have_required=yes
211fi; }
212IFS=$as_save_IFS
213
214
215      if test "x$CONFIG_SHELL" != x; then :
216  # We cannot yet assume a decent shell, so we have to provide a
217	# neutralization value for shells without unset; and this also
218	# works around shells that cannot unset nonexistent variables.
219	BASH_ENV=/dev/null
220	ENV=/dev/null
221	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222	export CONFIG_SHELL
223	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224fi
225
226    if test x$as_have_required = xno; then :
227  $as_echo "$0: This script requires a shell more modern than all"
228  $as_echo "$0: the shells that I found on your system."
229  if test x${ZSH_VERSION+set} = xset ; then
230    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232  else
233    $as_echo "$0: Please tell bug-autoconf@gnu.org and
234$0: xcb@lists.freedesktop.org about your system, including
235$0: any error possibly output before this message. Then
236$0: install a modern shell, or manually run the script
237$0: under such a shell if you do have one."
238  fi
239  exit 1
240fi
241fi
242fi
243SHELL=${CONFIG_SHELL-/bin/sh}
244export SHELL
245# Unset more variables known to interfere with behavior of common tools.
246CLICOLOR_FORCE= GREP_OPTIONS=
247unset CLICOLOR_FORCE GREP_OPTIONS
248
249## --------------------- ##
250## M4sh Shell Functions. ##
251## --------------------- ##
252# as_fn_unset VAR
253# ---------------
254# Portably unset VAR.
255as_fn_unset ()
256{
257  { eval $1=; unset $1;}
258}
259as_unset=as_fn_unset
260
261# as_fn_set_status STATUS
262# -----------------------
263# Set $? to STATUS, without forking.
264as_fn_set_status ()
265{
266  return $1
267} # as_fn_set_status
268
269# as_fn_exit STATUS
270# -----------------
271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272as_fn_exit ()
273{
274  set +e
275  as_fn_set_status $1
276  exit $1
277} # as_fn_exit
278
279# as_fn_mkdir_p
280# -------------
281# Create "$as_dir" as a directory, including parents if necessary.
282as_fn_mkdir_p ()
283{
284
285  case $as_dir in #(
286  -*) as_dir=./$as_dir;;
287  esac
288  test -d "$as_dir" || eval $as_mkdir_p || {
289    as_dirs=
290    while :; do
291      case $as_dir in #(
292      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293      *) as_qdir=$as_dir;;
294      esac
295      as_dirs="'$as_qdir' $as_dirs"
296      as_dir=`$as_dirname -- "$as_dir" ||
297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298	 X"$as_dir" : 'X\(//\)[^/]' \| \
299	 X"$as_dir" : 'X\(//\)$' \| \
300	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301$as_echo X"$as_dir" |
302    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303	    s//\1/
304	    q
305	  }
306	  /^X\(\/\/\)[^/].*/{
307	    s//\1/
308	    q
309	  }
310	  /^X\(\/\/\)$/{
311	    s//\1/
312	    q
313	  }
314	  /^X\(\/\).*/{
315	    s//\1/
316	    q
317	  }
318	  s/.*/./; q'`
319      test -d "$as_dir" && break
320    done
321    test -z "$as_dirs" || eval "mkdir $as_dirs"
322  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
323
324
325} # as_fn_mkdir_p
326# as_fn_append VAR VALUE
327# ----------------------
328# Append the text in VALUE to the end of the definition contained in VAR. Take
329# advantage of any shell optimizations that allow amortized linear growth over
330# repeated appends, instead of the typical quadratic growth present in naive
331# implementations.
332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333  eval 'as_fn_append ()
334  {
335    eval $1+=\$2
336  }'
337else
338  as_fn_append ()
339  {
340    eval $1=\$$1\$2
341  }
342fi # as_fn_append
343
344# as_fn_arith ARG...
345# ------------------
346# Perform arithmetic evaluation on the ARGs, and store the result in the
347# global $as_val. Take advantage of shells that can avoid forks. The arguments
348# must be portable across $(()) and expr.
349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350  eval 'as_fn_arith ()
351  {
352    as_val=$(( $* ))
353  }'
354else
355  as_fn_arith ()
356  {
357    as_val=`expr "$@" || test $? -eq 1`
358  }
359fi # as_fn_arith
360
361
362# as_fn_error STATUS ERROR [LINENO LOG_FD]
363# ----------------------------------------
364# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366# script with STATUS, using 1 if that was 0.
367as_fn_error ()
368{
369  as_status=$1; test $as_status -eq 0 && as_status=1
370  if test "$4"; then
371    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
373  fi
374  $as_echo "$as_me: error: $2" >&2
375  as_fn_exit $as_status
376} # as_fn_error
377
378if expr a : '\(a\)' >/dev/null 2>&1 &&
379   test "X`expr 00001 : '.*\(...\)'`" = X001; then
380  as_expr=expr
381else
382  as_expr=false
383fi
384
385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386  as_basename=basename
387else
388  as_basename=false
389fi
390
391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392  as_dirname=dirname
393else
394  as_dirname=false
395fi
396
397as_me=`$as_basename -- "$0" ||
398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399	 X"$0" : 'X\(//\)$' \| \
400	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401$as_echo X/"$0" |
402    sed '/^.*\/\([^/][^/]*\)\/*$/{
403	    s//\1/
404	    q
405	  }
406	  /^X\/\(\/\/\)$/{
407	    s//\1/
408	    q
409	  }
410	  /^X\/\(\/\).*/{
411	    s//\1/
412	    q
413	  }
414	  s/.*/./; q'`
415
416# Avoid depending upon Character Ranges.
417as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420as_cr_digits='0123456789'
421as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424  as_lineno_1=$LINENO as_lineno_1a=$LINENO
425  as_lineno_2=$LINENO as_lineno_2a=$LINENO
426  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
429  sed -n '
430    p
431    /[$]LINENO/=
432  ' <$as_myself |
433    sed '
434      s/[$]LINENO.*/&-/
435      t lineno
436      b
437      :lineno
438      N
439      :loop
440      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441      t loop
442      s/-\n.*//
443    ' >$as_me.lineno &&
444  chmod +x "$as_me.lineno" ||
445    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447  # Don't try to exec as it changes $[0], causing all sort of problems
448  # (the dirname of $[0] is not the place where we might find the
449  # original and so on.  Autoconf is especially sensitive to this).
450  . "./$as_me.lineno"
451  # Exit status is that of the last command.
452  exit
453}
454
455ECHO_C= ECHO_N= ECHO_T=
456case `echo -n x` in #(((((
457-n*)
458  case `echo 'xy\c'` in
459  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
460  xy)  ECHO_C='\c';;
461  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
462       ECHO_T='	';;
463  esac;;
464*)
465  ECHO_N='-n';;
466esac
467
468rm -f conf$$ conf$$.exe conf$$.file
469if test -d conf$$.dir; then
470  rm -f conf$$.dir/conf$$.file
471else
472  rm -f conf$$.dir
473  mkdir conf$$.dir 2>/dev/null
474fi
475if (echo >conf$$.file) 2>/dev/null; then
476  if ln -s conf$$.file conf$$ 2>/dev/null; then
477    as_ln_s='ln -s'
478    # ... but there are two gotchas:
479    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481    # In both cases, we have to default to `cp -p'.
482    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483      as_ln_s='cp -p'
484  elif ln conf$$.file conf$$ 2>/dev/null; then
485    as_ln_s=ln
486  else
487    as_ln_s='cp -p'
488  fi
489else
490  as_ln_s='cp -p'
491fi
492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493rmdir conf$$.dir 2>/dev/null
494
495if mkdir -p . 2>/dev/null; then
496  as_mkdir_p='mkdir -p "$as_dir"'
497else
498  test -d ./-p && rmdir ./-p
499  as_mkdir_p=false
500fi
501
502if test -x / >/dev/null 2>&1; then
503  as_test_x='test -x'
504else
505  if ls -dL / >/dev/null 2>&1; then
506    as_ls_L_option=L
507  else
508    as_ls_L_option=
509  fi
510  as_test_x='
511    eval sh -c '\''
512      if test -d "$1"; then
513	test -d "$1/.";
514      else
515	case $1 in #(
516	-*)set "./$1";;
517	esac;
518	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519	???[sx]*):;;*)false;;esac;fi
520    '\'' sh
521  '
522fi
523as_executable_p=$as_test_x
524
525# Sed expression to map a string onto a valid CPP name.
526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528# Sed expression to map a string onto a valid variable name.
529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532
533# Check that we are running under the correct shell.
534SHELL=${CONFIG_SHELL-/bin/sh}
535
536case X$lt_ECHO in
537X*--fallback-echo)
538  # Remove one level of quotation (which was required for Make).
539  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
540  ;;
541esac
542
543ECHO=${lt_ECHO-echo}
544if test "X$1" = X--no-reexec; then
545  # Discard the --no-reexec flag, and continue.
546  shift
547elif test "X$1" = X--fallback-echo; then
548  # Avoid inline document here, it may be left over
549  :
550elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551  # Yippee, $ECHO works!
552  :
553else
554  # Restart under the correct shell.
555  exec $SHELL "$0" --no-reexec ${1+"$@"}
556fi
557
558if test "X$1" = X--fallback-echo; then
559  # used as fallback echo
560  shift
561  cat <<_LT_EOF
562$*
563_LT_EOF
564  exit 0
565fi
566
567# The HP-UX ksh and POSIX shell print the target directory to stdout
568# if CDPATH is set.
569(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570
571if test -z "$lt_ECHO"; then
572  if test "X${echo_test_string+set}" != Xset; then
573    # find a string as large as possible, as long as the shell can cope with it
574    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578      then
579        break
580      fi
581    done
582  fi
583
584  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586     test "X$echo_testing_string" = "X$echo_test_string"; then
587    :
588  else
589    # The Solaris, AIX, and Digital Unix default echo programs unquote
590    # backslashes.  This makes it impossible to quote backslashes using
591    #   echo "$something" | sed 's/\\/\\\\/g'
592    #
593    # So, first we look for a working echo in the user's PATH.
594
595    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596    for dir in $PATH /usr/ucb; do
597      IFS="$lt_save_ifs"
598      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601         test "X$echo_testing_string" = "X$echo_test_string"; then
602        ECHO="$dir/echo"
603        break
604      fi
605    done
606    IFS="$lt_save_ifs"
607
608    if test "X$ECHO" = Xecho; then
609      # We didn't find a better echo, so look for alternatives.
610      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612         test "X$echo_testing_string" = "X$echo_test_string"; then
613        # This shell has a builtin print -r that does the trick.
614        ECHO='print -r'
615      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616	   test "X$CONFIG_SHELL" != X/bin/ksh; then
617        # If we have ksh, try running configure again with it.
618        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619        export ORIGINAL_CONFIG_SHELL
620        CONFIG_SHELL=/bin/ksh
621        export CONFIG_SHELL
622        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623      else
624        # Try using printf.
625        ECHO='printf %s\n'
626        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628	   test "X$echo_testing_string" = "X$echo_test_string"; then
629	  # Cool, printf works
630	  :
631        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632	     test "X$echo_testing_string" = 'X\t' &&
633	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634	     test "X$echo_testing_string" = "X$echo_test_string"; then
635	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636	  export CONFIG_SHELL
637	  SHELL="$CONFIG_SHELL"
638	  export SHELL
639	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
640        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641	     test "X$echo_testing_string" = 'X\t' &&
642	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643	     test "X$echo_testing_string" = "X$echo_test_string"; then
644	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
645        else
646	  # maybe with a smaller string...
647	  prev=:
648
649	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651	    then
652	      break
653	    fi
654	    prev="$cmd"
655	  done
656
657	  if test "$prev" != 'sed 50q "$0"'; then
658	    echo_test_string=`eval $prev`
659	    export echo_test_string
660	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661	  else
662	    # Oops.  We lost completely, so just stick with echo.
663	    ECHO=echo
664	  fi
665        fi
666      fi
667    fi
668  fi
669fi
670
671# Copy echo and quote the copy suitably for passing to libtool from
672# the Makefile, instead of quoting the original, which is used later.
673lt_ECHO=$ECHO
674if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676fi
677
678
679
680
681test -n "$DJDIR" || exec 7<&0 </dev/null
682exec 6>&1
683
684# Name of the host.
685# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
686# so uname gets run too.
687ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
688
689#
690# Initializations.
691#
692ac_default_prefix=/usr/local
693ac_clean_files=
694ac_config_libobj_dir=.
695LIBOBJS=
696cross_compiling=no
697subdirs=
698MFLAGS=
699MAKEFLAGS=
700
701# Identity of this package.
702PACKAGE_NAME='libxcb'
703PACKAGE_TARNAME='libxcb'
704PACKAGE_VERSION='1.7'
705PACKAGE_STRING='libxcb 1.7'
706PACKAGE_BUGREPORT='xcb@lists.freedesktop.org'
707PACKAGE_URL=''
708
709ac_unique_file="xcb.pc.in"
710# Factoring default headers for most tests.
711ac_includes_default="\
712#include <stdio.h>
713#ifdef HAVE_SYS_TYPES_H
714# include <sys/types.h>
715#endif
716#ifdef HAVE_SYS_STAT_H
717# include <sys/stat.h>
718#endif
719#ifdef STDC_HEADERS
720# include <stdlib.h>
721# include <stddef.h>
722#else
723# ifdef HAVE_STDLIB_H
724#  include <stdlib.h>
725# endif
726#endif
727#ifdef HAVE_STRING_H
728# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
729#  include <memory.h>
730# endif
731# include <string.h>
732#endif
733#ifdef HAVE_STRINGS_H
734# include <strings.h>
735#endif
736#ifdef HAVE_INTTYPES_H
737# include <inttypes.h>
738#endif
739#ifdef HAVE_STDINT_H
740# include <stdint.h>
741#endif
742#ifdef HAVE_UNISTD_H
743# include <unistd.h>
744#endif"
745
746ac_subst_vars='am__EXEEXT_FALSE
747am__EXEEXT_TRUE
748LTLIBOBJS
749LIBOBJS
750LAUNCHD
751BUILD_XVMC_FALSE
752BUILD_XVMC_TRUE
753BUILD_XV_FALSE
754BUILD_XV_TRUE
755BUILD_XTEST_FALSE
756BUILD_XTEST_TRUE
757BUILD_SELINUX_FALSE
758BUILD_SELINUX_TRUE
759BUILD_XPRINT_FALSE
760BUILD_XPRINT_TRUE
761BUILD_XINPUT_FALSE
762BUILD_XINPUT_TRUE
763BUILD_XINERAMA_FALSE
764BUILD_XINERAMA_TRUE
765BUILD_XFREE86_DRI_FALSE
766BUILD_XFREE86_DRI_TRUE
767BUILD_XFIXES_FALSE
768BUILD_XFIXES_TRUE
769BUILD_XEVIE_FALSE
770BUILD_XEVIE_TRUE
771BUILD_SYNC_FALSE
772BUILD_SYNC_TRUE
773BUILD_SHM_FALSE
774BUILD_SHM_TRUE
775BUILD_SHAPE_FALSE
776BUILD_SHAPE_TRUE
777BUILD_SCREENSAVER_FALSE
778BUILD_SCREENSAVER_TRUE
779BUILD_RESOURCE_FALSE
780BUILD_RESOURCE_TRUE
781BUILD_RENDER_FALSE
782BUILD_RENDER_TRUE
783BUILD_RECORD_FALSE
784BUILD_RECORD_TRUE
785BUILD_RANDR_FALSE
786BUILD_RANDR_TRUE
787BUILD_GLX_FALSE
788BUILD_GLX_TRUE
789BUILD_DRI2_FALSE
790BUILD_DRI2_TRUE
791BUILD_DPMS_FALSE
792BUILD_DPMS_TRUE
793BUILD_DAMAGE_FALSE
794BUILD_DAMAGE_TRUE
795BUILD_COMPOSITE_FALSE
796BUILD_COMPOSITE_TRUE
797BUILD_DOCS_FALSE
798BUILD_DOCS_TRUE
799DOXYGEN
800DOT
801BUILD_DOCS
802CWARNFLAGS
803xcbincludedir
804XCBPROTO_XCBPYTHONDIR
805XCBPROTO_VERSION
806XCBPROTO_XCBINCLUDEDIR
807NEEDED
808XDMCP_LIBS
809XDMCP_CFLAGS
810NEEDED_LIBS
811NEEDED_CFLAGS
812XCBPROTO_LIBS
813XCBPROTO_CFLAGS
814HTML_CHECK_RESULT
815XSLTPROC
816CPP
817OTOOL64
818OTOOL
819LIPO
820NMEDIT
821DSYMUTIL
822lt_ECHO
823RANLIB
824AR
825OBJDUMP
826LN_S
827NM
828ac_ct_DUMPBIN
829DUMPBIN
830LD
831FGREP
832EGREP
833GREP
834SED
835am__fastdepCC_FALSE
836am__fastdepCC_TRUE
837CCDEPMODE
838AMDEPBACKSLASH
839AMDEP_FALSE
840AMDEP_TRUE
841am__quote
842am__include
843DEPDIR
844OBJEXT
845EXEEXT
846ac_ct_CC
847CPPFLAGS
848LDFLAGS
849CFLAGS
850CC
851host_os
852host_vendor
853host_cpu
854host
855build_os
856build_vendor
857build_cpu
858build
859LIBTOOL
860HAVE_CHECK_FALSE
861HAVE_CHECK_TRUE
862CHECK_LIBS
863CHECK_CFLAGS
864PKG_CONFIG_LIBDIR
865PKG_CONFIG_PATH
866PKG_CONFIG
867pkgpyexecdir
868pyexecdir
869pkgpythondir
870pythondir
871PYTHON_PLATFORM
872PYTHON_EXEC_PREFIX
873PYTHON_PREFIX
874PYTHON_VERSION
875PYTHON
876am__untar
877am__tar
878AMTAR
879am__leading_dot
880SET_MAKE
881AWK
882mkdir_p
883MKDIR_P
884INSTALL_STRIP_PROGRAM
885STRIP
886install_sh
887MAKEINFO
888AUTOHEADER
889AUTOMAKE
890AUTOCONF
891ACLOCAL
892VERSION
893PACKAGE
894CYGPATH_W
895am__isrc
896INSTALL_DATA
897INSTALL_SCRIPT
898INSTALL_PROGRAM
899target_alias
900host_alias
901build_alias
902LIBS
903ECHO_T
904ECHO_N
905ECHO_C
906DEFS
907mandir
908localedir
909libdir
910psdir
911pdfdir
912dvidir
913htmldir
914infodir
915docdir
916oldincludedir
917includedir
918localstatedir
919sharedstatedir
920sysconfdir
921datadir
922datarootdir
923libexecdir
924sbindir
925bindir
926program_transform_name
927prefix
928exec_prefix
929PACKAGE_URL
930PACKAGE_BUGREPORT
931PACKAGE_STRING
932PACKAGE_VERSION
933PACKAGE_TARNAME
934PACKAGE_NAME
935PATH_SEPARATOR
936SHELL'
937ac_subst_files=''
938ac_user_opts='
939enable_option_checking
940enable_shared
941enable_static
942with_pic
943enable_fast_install
944enable_dependency_tracking
945with_gnu_ld
946enable_libtool_lock
947with_queue_size
948enable_build_docs
949with_doxygen
950enable_composite
951enable_damage
952enable_dpms
953enable_dri2
954enable_glx
955enable_randr
956enable_record
957enable_render
958enable_resource
959enable_screensaver
960enable_shape
961enable_shm
962enable_sync
963enable_xevie
964enable_xfixes
965enable_xfree86_dri
966enable_xinerama
967enable_xinput
968enable_xprint
969enable_selinux
970enable_xtest
971enable_xv
972enable_xvmc
973with_launchd
974'
975      ac_precious_vars='build_alias
976host_alias
977target_alias
978PKG_CONFIG
979PKG_CONFIG_PATH
980PKG_CONFIG_LIBDIR
981CHECK_CFLAGS
982CHECK_LIBS
983CC
984CFLAGS
985LDFLAGS
986LIBS
987CPPFLAGS
988CPP
989XCBPROTO_CFLAGS
990XCBPROTO_LIBS
991NEEDED_CFLAGS
992NEEDED_LIBS
993XDMCP_CFLAGS
994XDMCP_LIBS'
995
996
997# Initialize some variables set by options.
998ac_init_help=
999ac_init_version=false
1000ac_unrecognized_opts=
1001ac_unrecognized_sep=
1002# The variables have the same names as the options, with
1003# dashes changed to underlines.
1004cache_file=/dev/null
1005exec_prefix=NONE
1006no_create=
1007no_recursion=
1008prefix=NONE
1009program_prefix=NONE
1010program_suffix=NONE
1011program_transform_name=s,x,x,
1012silent=
1013site=
1014srcdir=
1015verbose=
1016x_includes=NONE
1017x_libraries=NONE
1018
1019# Installation directory options.
1020# These are left unexpanded so users can "make install exec_prefix=/foo"
1021# and all the variables that are supposed to be based on exec_prefix
1022# by default will actually change.
1023# Use braces instead of parens because sh, perl, etc. also accept them.
1024# (The list follows the same order as the GNU Coding Standards.)
1025bindir='${exec_prefix}/bin'
1026sbindir='${exec_prefix}/sbin'
1027libexecdir='${exec_prefix}/libexec'
1028datarootdir='${prefix}/share'
1029datadir='${datarootdir}'
1030sysconfdir='${prefix}/etc'
1031sharedstatedir='${prefix}/com'
1032localstatedir='${prefix}/var'
1033includedir='${prefix}/include'
1034oldincludedir='/usr/include'
1035docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1036infodir='${datarootdir}/info'
1037htmldir='${docdir}'
1038dvidir='${docdir}'
1039pdfdir='${docdir}'
1040psdir='${docdir}'
1041libdir='${exec_prefix}/lib'
1042localedir='${datarootdir}/locale'
1043mandir='${datarootdir}/man'
1044
1045ac_prev=
1046ac_dashdash=
1047for ac_option
1048do
1049  # If the previous option needs an argument, assign it.
1050  if test -n "$ac_prev"; then
1051    eval $ac_prev=\$ac_option
1052    ac_prev=
1053    continue
1054  fi
1055
1056  case $ac_option in
1057  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1058  *=)   ac_optarg= ;;
1059  *)    ac_optarg=yes ;;
1060  esac
1061
1062  # Accept the important Cygnus configure options, so we can diagnose typos.
1063
1064  case $ac_dashdash$ac_option in
1065  --)
1066    ac_dashdash=yes ;;
1067
1068  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1069    ac_prev=bindir ;;
1070  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1071    bindir=$ac_optarg ;;
1072
1073  -build | --build | --buil | --bui | --bu)
1074    ac_prev=build_alias ;;
1075  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1076    build_alias=$ac_optarg ;;
1077
1078  -cache-file | --cache-file | --cache-fil | --cache-fi \
1079  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1080    ac_prev=cache_file ;;
1081  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1082  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1083    cache_file=$ac_optarg ;;
1084
1085  --config-cache | -C)
1086    cache_file=config.cache ;;
1087
1088  -datadir | --datadir | --datadi | --datad)
1089    ac_prev=datadir ;;
1090  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1091    datadir=$ac_optarg ;;
1092
1093  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1094  | --dataroo | --dataro | --datar)
1095    ac_prev=datarootdir ;;
1096  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1097  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1098    datarootdir=$ac_optarg ;;
1099
1100  -disable-* | --disable-*)
1101    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1102    # Reject names that are not valid shell variable names.
1103    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1104      as_fn_error $? "invalid feature name: $ac_useropt"
1105    ac_useropt_orig=$ac_useropt
1106    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1107    case $ac_user_opts in
1108      *"
1109"enable_$ac_useropt"
1110"*) ;;
1111      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1112	 ac_unrecognized_sep=', ';;
1113    esac
1114    eval enable_$ac_useropt=no ;;
1115
1116  -docdir | --docdir | --docdi | --doc | --do)
1117    ac_prev=docdir ;;
1118  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1119    docdir=$ac_optarg ;;
1120
1121  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1122    ac_prev=dvidir ;;
1123  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1124    dvidir=$ac_optarg ;;
1125
1126  -enable-* | --enable-*)
1127    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1128    # Reject names that are not valid shell variable names.
1129    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1130      as_fn_error $? "invalid feature name: $ac_useropt"
1131    ac_useropt_orig=$ac_useropt
1132    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133    case $ac_user_opts in
1134      *"
1135"enable_$ac_useropt"
1136"*) ;;
1137      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1138	 ac_unrecognized_sep=', ';;
1139    esac
1140    eval enable_$ac_useropt=\$ac_optarg ;;
1141
1142  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1143  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1144  | --exec | --exe | --ex)
1145    ac_prev=exec_prefix ;;
1146  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1147  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1148  | --exec=* | --exe=* | --ex=*)
1149    exec_prefix=$ac_optarg ;;
1150
1151  -gas | --gas | --ga | --g)
1152    # Obsolete; use --with-gas.
1153    with_gas=yes ;;
1154
1155  -help | --help | --hel | --he | -h)
1156    ac_init_help=long ;;
1157  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1158    ac_init_help=recursive ;;
1159  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1160    ac_init_help=short ;;
1161
1162  -host | --host | --hos | --ho)
1163    ac_prev=host_alias ;;
1164  -host=* | --host=* | --hos=* | --ho=*)
1165    host_alias=$ac_optarg ;;
1166
1167  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1168    ac_prev=htmldir ;;
1169  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1170  | --ht=*)
1171    htmldir=$ac_optarg ;;
1172
1173  -includedir | --includedir | --includedi | --included | --include \
1174  | --includ | --inclu | --incl | --inc)
1175    ac_prev=includedir ;;
1176  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1177  | --includ=* | --inclu=* | --incl=* | --inc=*)
1178    includedir=$ac_optarg ;;
1179
1180  -infodir | --infodir | --infodi | --infod | --info | --inf)
1181    ac_prev=infodir ;;
1182  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1183    infodir=$ac_optarg ;;
1184
1185  -libdir | --libdir | --libdi | --libd)
1186    ac_prev=libdir ;;
1187  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1188    libdir=$ac_optarg ;;
1189
1190  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1191  | --libexe | --libex | --libe)
1192    ac_prev=libexecdir ;;
1193  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1194  | --libexe=* | --libex=* | --libe=*)
1195    libexecdir=$ac_optarg ;;
1196
1197  -localedir | --localedir | --localedi | --localed | --locale)
1198    ac_prev=localedir ;;
1199  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1200    localedir=$ac_optarg ;;
1201
1202  -localstatedir | --localstatedir | --localstatedi | --localstated \
1203  | --localstate | --localstat | --localsta | --localst | --locals)
1204    ac_prev=localstatedir ;;
1205  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1206  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1207    localstatedir=$ac_optarg ;;
1208
1209  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1210    ac_prev=mandir ;;
1211  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1212    mandir=$ac_optarg ;;
1213
1214  -nfp | --nfp | --nf)
1215    # Obsolete; use --without-fp.
1216    with_fp=no ;;
1217
1218  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1219  | --no-cr | --no-c | -n)
1220    no_create=yes ;;
1221
1222  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1223  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1224    no_recursion=yes ;;
1225
1226  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1227  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1228  | --oldin | --oldi | --old | --ol | --o)
1229    ac_prev=oldincludedir ;;
1230  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1231  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1232  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1233    oldincludedir=$ac_optarg ;;
1234
1235  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1236    ac_prev=prefix ;;
1237  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1238    prefix=$ac_optarg ;;
1239
1240  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1241  | --program-pre | --program-pr | --program-p)
1242    ac_prev=program_prefix ;;
1243  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1244  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1245    program_prefix=$ac_optarg ;;
1246
1247  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1248  | --program-suf | --program-su | --program-s)
1249    ac_prev=program_suffix ;;
1250  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1251  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1252    program_suffix=$ac_optarg ;;
1253
1254  -program-transform-name | --program-transform-name \
1255  | --program-transform-nam | --program-transform-na \
1256  | --program-transform-n | --program-transform- \
1257  | --program-transform | --program-transfor \
1258  | --program-transfo | --program-transf \
1259  | --program-trans | --program-tran \
1260  | --progr-tra | --program-tr | --program-t)
1261    ac_prev=program_transform_name ;;
1262  -program-transform-name=* | --program-transform-name=* \
1263  | --program-transform-nam=* | --program-transform-na=* \
1264  | --program-transform-n=* | --program-transform-=* \
1265  | --program-transform=* | --program-transfor=* \
1266  | --program-transfo=* | --program-transf=* \
1267  | --program-trans=* | --program-tran=* \
1268  | --progr-tra=* | --program-tr=* | --program-t=*)
1269    program_transform_name=$ac_optarg ;;
1270
1271  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1272    ac_prev=pdfdir ;;
1273  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1274    pdfdir=$ac_optarg ;;
1275
1276  -psdir | --psdir | --psdi | --psd | --ps)
1277    ac_prev=psdir ;;
1278  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1279    psdir=$ac_optarg ;;
1280
1281  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1282  | -silent | --silent | --silen | --sile | --sil)
1283    silent=yes ;;
1284
1285  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1286    ac_prev=sbindir ;;
1287  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1288  | --sbi=* | --sb=*)
1289    sbindir=$ac_optarg ;;
1290
1291  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1292  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1293  | --sharedst | --shareds | --shared | --share | --shar \
1294  | --sha | --sh)
1295    ac_prev=sharedstatedir ;;
1296  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1297  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1298  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1299  | --sha=* | --sh=*)
1300    sharedstatedir=$ac_optarg ;;
1301
1302  -site | --site | --sit)
1303    ac_prev=site ;;
1304  -site=* | --site=* | --sit=*)
1305    site=$ac_optarg ;;
1306
1307  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1308    ac_prev=srcdir ;;
1309  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1310    srcdir=$ac_optarg ;;
1311
1312  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1313  | --syscon | --sysco | --sysc | --sys | --sy)
1314    ac_prev=sysconfdir ;;
1315  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1316  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1317    sysconfdir=$ac_optarg ;;
1318
1319  -target | --target | --targe | --targ | --tar | --ta | --t)
1320    ac_prev=target_alias ;;
1321  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1322    target_alias=$ac_optarg ;;
1323
1324  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1325    verbose=yes ;;
1326
1327  -version | --version | --versio | --versi | --vers | -V)
1328    ac_init_version=: ;;
1329
1330  -with-* | --with-*)
1331    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1332    # Reject names that are not valid shell variable names.
1333    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1334      as_fn_error $? "invalid package name: $ac_useropt"
1335    ac_useropt_orig=$ac_useropt
1336    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1337    case $ac_user_opts in
1338      *"
1339"with_$ac_useropt"
1340"*) ;;
1341      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1342	 ac_unrecognized_sep=', ';;
1343    esac
1344    eval with_$ac_useropt=\$ac_optarg ;;
1345
1346  -without-* | --without-*)
1347    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1348    # Reject names that are not valid shell variable names.
1349    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1350      as_fn_error $? "invalid package name: $ac_useropt"
1351    ac_useropt_orig=$ac_useropt
1352    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1353    case $ac_user_opts in
1354      *"
1355"with_$ac_useropt"
1356"*) ;;
1357      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1358	 ac_unrecognized_sep=', ';;
1359    esac
1360    eval with_$ac_useropt=no ;;
1361
1362  --x)
1363    # Obsolete; use --with-x.
1364    with_x=yes ;;
1365
1366  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1367  | --x-incl | --x-inc | --x-in | --x-i)
1368    ac_prev=x_includes ;;
1369  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1370  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1371    x_includes=$ac_optarg ;;
1372
1373  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1374  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1375    ac_prev=x_libraries ;;
1376  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1377  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1378    x_libraries=$ac_optarg ;;
1379
1380  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1381Try \`$0 --help' for more information"
1382    ;;
1383
1384  *=*)
1385    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1386    # Reject names that are not valid shell variable names.
1387    case $ac_envvar in #(
1388      '' | [0-9]* | *[!_$as_cr_alnum]* )
1389      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1390    esac
1391    eval $ac_envvar=\$ac_optarg
1392    export $ac_envvar ;;
1393
1394  *)
1395    # FIXME: should be removed in autoconf 3.0.
1396    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1397    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1398      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1399    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1400    ;;
1401
1402  esac
1403done
1404
1405if test -n "$ac_prev"; then
1406  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1407  as_fn_error $? "missing argument to $ac_option"
1408fi
1409
1410if test -n "$ac_unrecognized_opts"; then
1411  case $enable_option_checking in
1412    no) ;;
1413    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1414    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1415  esac
1416fi
1417
1418# Check all directory arguments for consistency.
1419for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1420		datadir sysconfdir sharedstatedir localstatedir includedir \
1421		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1422		libdir localedir mandir
1423do
1424  eval ac_val=\$$ac_var
1425  # Remove trailing slashes.
1426  case $ac_val in
1427    */ )
1428      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1429      eval $ac_var=\$ac_val;;
1430  esac
1431  # Be sure to have absolute directory names.
1432  case $ac_val in
1433    [\\/$]* | ?:[\\/]* )  continue;;
1434    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1435  esac
1436  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1437done
1438
1439# There might be people who depend on the old broken behavior: `$host'
1440# used to hold the argument of --host etc.
1441# FIXME: To remove some day.
1442build=$build_alias
1443host=$host_alias
1444target=$target_alias
1445
1446# FIXME: To remove some day.
1447if test "x$host_alias" != x; then
1448  if test "x$build_alias" = x; then
1449    cross_compiling=maybe
1450    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1451    If a cross compiler is detected then cross compile mode will be used" >&2
1452  elif test "x$build_alias" != "x$host_alias"; then
1453    cross_compiling=yes
1454  fi
1455fi
1456
1457ac_tool_prefix=
1458test -n "$host_alias" && ac_tool_prefix=$host_alias-
1459
1460test "$silent" = yes && exec 6>/dev/null
1461
1462
1463ac_pwd=`pwd` && test -n "$ac_pwd" &&
1464ac_ls_di=`ls -di .` &&
1465ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1466  as_fn_error $? "working directory cannot be determined"
1467test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1468  as_fn_error $? "pwd does not report name of working directory"
1469
1470
1471# Find the source files, if location was not specified.
1472if test -z "$srcdir"; then
1473  ac_srcdir_defaulted=yes
1474  # Try the directory containing this script, then the parent directory.
1475  ac_confdir=`$as_dirname -- "$as_myself" ||
1476$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1477	 X"$as_myself" : 'X\(//\)[^/]' \| \
1478	 X"$as_myself" : 'X\(//\)$' \| \
1479	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1480$as_echo X"$as_myself" |
1481    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1482	    s//\1/
1483	    q
1484	  }
1485	  /^X\(\/\/\)[^/].*/{
1486	    s//\1/
1487	    q
1488	  }
1489	  /^X\(\/\/\)$/{
1490	    s//\1/
1491	    q
1492	  }
1493	  /^X\(\/\).*/{
1494	    s//\1/
1495	    q
1496	  }
1497	  s/.*/./; q'`
1498  srcdir=$ac_confdir
1499  if test ! -r "$srcdir/$ac_unique_file"; then
1500    srcdir=..
1501  fi
1502else
1503  ac_srcdir_defaulted=no
1504fi
1505if test ! -r "$srcdir/$ac_unique_file"; then
1506  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1507  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1508fi
1509ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1510ac_abs_confdir=`(
1511	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1512	pwd)`
1513# When building in place, set srcdir=.
1514if test "$ac_abs_confdir" = "$ac_pwd"; then
1515  srcdir=.
1516fi
1517# Remove unnecessary trailing slashes from srcdir.
1518# Double slashes in file names in object file debugging info
1519# mess up M-x gdb in Emacs.
1520case $srcdir in
1521*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1522esac
1523for ac_var in $ac_precious_vars; do
1524  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1525  eval ac_env_${ac_var}_value=\$${ac_var}
1526  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1527  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1528done
1529
1530#
1531# Report the --help message.
1532#
1533if test "$ac_init_help" = "long"; then
1534  # Omit some internal or obsolete options to make the list less imposing.
1535  # This message is too long to be a string in the A/UX 3.1 sh.
1536  cat <<_ACEOF
1537\`configure' configures libxcb 1.7 to adapt to many kinds of systems.
1538
1539Usage: $0 [OPTION]... [VAR=VALUE]...
1540
1541To assign environment variables (e.g., CC, CFLAGS...), specify them as
1542VAR=VALUE.  See below for descriptions of some of the useful variables.
1543
1544Defaults for the options are specified in brackets.
1545
1546Configuration:
1547  -h, --help              display this help and exit
1548      --help=short        display options specific to this package
1549      --help=recursive    display the short help of all the included packages
1550  -V, --version           display version information and exit
1551  -q, --quiet, --silent   do not print \`checking ...' messages
1552      --cache-file=FILE   cache test results in FILE [disabled]
1553  -C, --config-cache      alias for \`--cache-file=config.cache'
1554  -n, --no-create         do not create output files
1555      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1556
1557Installation directories:
1558  --prefix=PREFIX         install architecture-independent files in PREFIX
1559                          [$ac_default_prefix]
1560  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1561                          [PREFIX]
1562
1563By default, \`make install' will install all the files in
1564\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1565an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1566for instance \`--prefix=\$HOME'.
1567
1568For better control, use the options below.
1569
1570Fine tuning of the installation directories:
1571  --bindir=DIR            user executables [EPREFIX/bin]
1572  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1573  --libexecdir=DIR        program executables [EPREFIX/libexec]
1574  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1575  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1576  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1577  --libdir=DIR            object code libraries [EPREFIX/lib]
1578  --includedir=DIR        C header files [PREFIX/include]
1579  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1580  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1581  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1582  --infodir=DIR           info documentation [DATAROOTDIR/info]
1583  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1584  --mandir=DIR            man documentation [DATAROOTDIR/man]
1585  --docdir=DIR            documentation root [DATAROOTDIR/doc/libxcb]
1586  --htmldir=DIR           html documentation [DOCDIR]
1587  --dvidir=DIR            dvi documentation [DOCDIR]
1588  --pdfdir=DIR            pdf documentation [DOCDIR]
1589  --psdir=DIR             ps documentation [DOCDIR]
1590_ACEOF
1591
1592  cat <<\_ACEOF
1593
1594Program names:
1595  --program-prefix=PREFIX            prepend PREFIX to installed program names
1596  --program-suffix=SUFFIX            append SUFFIX to installed program names
1597  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1598
1599System types:
1600  --build=BUILD     configure for building on BUILD [guessed]
1601  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1602_ACEOF
1603fi
1604
1605if test -n "$ac_init_help"; then
1606  case $ac_init_help in
1607     short | recursive ) echo "Configuration of libxcb 1.7:";;
1608   esac
1609  cat <<\_ACEOF
1610
1611Optional Features:
1612  --disable-option-checking  ignore unrecognized --enable/--with options
1613  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1614  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1615  --enable-shared[=PKGS]  build shared libraries [default=yes]
1616  --enable-static[=PKGS]  build static libraries [default=yes]
1617  --enable-fast-install[=PKGS]
1618                          optimize for fast installation [default=yes]
1619  --disable-dependency-tracking  speeds up one-time build
1620  --enable-dependency-tracking   do not reject slow dependency extractors
1621  --disable-libtool-lock  avoid locking (might break parallel builds)
1622  --disable-build-docs    Disable the build of the documentation
1623  --enable-composite      Build XCB Composite Extension (default: "yes")
1624  --enable-damage         Build XCB Damage Extension (default: "yes")
1625  --enable-dpms           Build XCB DPMS Extension (default: "yes")
1626  --enable-dri2           Build XCB DRI2 Extension (default: "yes")
1627  --enable-glx            Build XCB GLX Extension (default: "yes")
1628  --enable-randr          Build XCB RandR Extension (default: "yes")
1629  --enable-record         Build XCB Record Extension (default: "yes")
1630  --enable-render         Build XCB Render Extension (default: "yes")
1631  --enable-resource       Build XCB Resource Extension (default: "yes")
1632  --enable-screensaver    Build XCB Screensaver Extension (default: "yes")
1633  --enable-shape          Build XCB Shape Extension (default: "yes")
1634  --enable-shm            Build XCB Shm Extension (default: "yes")
1635  --enable-sync           Build XCB Sync Extension (default: "yes")
1636  --enable-xevie          Build XCB Xevie Extension (default: "yes")
1637  --enable-xfixes         Build XCB XFixes Extension (default: "yes")
1638  --enable-xfree86-dri    Build XCB XFree86-DRI Extension (default: "yes")
1639  --enable-xinerama       Build XCB Xinerama Extension (default: "yes")
1640  --enable-xinput         Build XCB XInput Extension (default: "no")
1641  --enable-xprint         Build XCB Xprint Extension (default: "yes")
1642  --enable-selinux        Build XCB SELinux Extension (default: "no")
1643  --enable-xtest          Build XCB XTest Extension (default: "yes")
1644  --enable-xv             Build XCB Xv Extension (default: "yes")
1645  --enable-xvmc           Build XCB XvMC Extension (default: "yes")
1646
1647Optional Packages:
1648  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1649  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1650  --with-pic              try to use only PIC/non-PIC objects [default=use
1651                          both]
1652  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1653  --with-queue-size=SIZE  Set the XCB buffer queue size (default is 16384)
1654  --with-doxygen=FILE     doxygen program to use (eg /usr/bin/doxygen)
1655  --with-launchd          Build with support for Apple's launchd (default:
1656                          auto)
1657
1658Some influential environment variables:
1659  PKG_CONFIG  path to pkg-config utility
1660  PKG_CONFIG_PATH
1661              directories to add to pkg-config's search path
1662  PKG_CONFIG_LIBDIR
1663              path overriding pkg-config's built-in search path
1664  CHECK_CFLAGS
1665              C compiler flags for CHECK, overriding pkg-config
1666  CHECK_LIBS  linker flags for CHECK, overriding pkg-config
1667  CC          C compiler command
1668  CFLAGS      C compiler flags
1669  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1670              nonstandard directory <lib dir>
1671  LIBS        libraries to pass to the linker, e.g. -l<library>
1672  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1673              you have headers in a nonstandard directory <include dir>
1674  CPP         C preprocessor
1675  XCBPROTO_CFLAGS
1676              C compiler flags for XCBPROTO, overriding pkg-config
1677  XCBPROTO_LIBS
1678              linker flags for XCBPROTO, overriding pkg-config
1679  NEEDED_CFLAGS
1680              C compiler flags for NEEDED, overriding pkg-config
1681  NEEDED_LIBS linker flags for NEEDED, overriding pkg-config
1682  XDMCP_CFLAGS
1683              C compiler flags for XDMCP, overriding pkg-config
1684  XDMCP_LIBS  linker flags for XDMCP, overriding pkg-config
1685
1686Use these variables to override the choices made by `configure' or to help
1687it to find libraries and programs with nonstandard names/locations.
1688
1689Report bugs to <xcb@lists.freedesktop.org>.
1690_ACEOF
1691ac_status=$?
1692fi
1693
1694if test "$ac_init_help" = "recursive"; then
1695  # If there are subdirs, report their specific --help.
1696  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1697    test -d "$ac_dir" ||
1698      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1699      continue
1700    ac_builddir=.
1701
1702case "$ac_dir" in
1703.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1704*)
1705  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1706  # A ".." for each directory in $ac_dir_suffix.
1707  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1708  case $ac_top_builddir_sub in
1709  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1710  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1711  esac ;;
1712esac
1713ac_abs_top_builddir=$ac_pwd
1714ac_abs_builddir=$ac_pwd$ac_dir_suffix
1715# for backward compatibility:
1716ac_top_builddir=$ac_top_build_prefix
1717
1718case $srcdir in
1719  .)  # We are building in place.
1720    ac_srcdir=.
1721    ac_top_srcdir=$ac_top_builddir_sub
1722    ac_abs_top_srcdir=$ac_pwd ;;
1723  [\\/]* | ?:[\\/]* )  # Absolute name.
1724    ac_srcdir=$srcdir$ac_dir_suffix;
1725    ac_top_srcdir=$srcdir
1726    ac_abs_top_srcdir=$srcdir ;;
1727  *) # Relative name.
1728    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1729    ac_top_srcdir=$ac_top_build_prefix$srcdir
1730    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1731esac
1732ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1733
1734    cd "$ac_dir" || { ac_status=$?; continue; }
1735    # Check for guested configure.
1736    if test -f "$ac_srcdir/configure.gnu"; then
1737      echo &&
1738      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1739    elif test -f "$ac_srcdir/configure"; then
1740      echo &&
1741      $SHELL "$ac_srcdir/configure" --help=recursive
1742    else
1743      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1744    fi || ac_status=$?
1745    cd "$ac_pwd" || { ac_status=$?; break; }
1746  done
1747fi
1748
1749test -n "$ac_init_help" && exit $ac_status
1750if $ac_init_version; then
1751  cat <<\_ACEOF
1752libxcb configure 1.7
1753generated by GNU Autoconf 2.67
1754
1755Copyright (C) 2010 Free Software Foundation, Inc.
1756This configure script is free software; the Free Software Foundation
1757gives unlimited permission to copy, distribute and modify it.
1758_ACEOF
1759  exit
1760fi
1761
1762## ------------------------ ##
1763## Autoconf initialization. ##
1764## ------------------------ ##
1765
1766# ac_fn_c_try_compile LINENO
1767# --------------------------
1768# Try to compile conftest.$ac_ext, and return whether this succeeded.
1769ac_fn_c_try_compile ()
1770{
1771  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772  rm -f conftest.$ac_objext
1773  if { { ac_try="$ac_compile"
1774case "(($ac_try" in
1775  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1776  *) ac_try_echo=$ac_try;;
1777esac
1778eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779$as_echo "$ac_try_echo"; } >&5
1780  (eval "$ac_compile") 2>conftest.err
1781  ac_status=$?
1782  if test -s conftest.err; then
1783    grep -v '^ *+' conftest.err >conftest.er1
1784    cat conftest.er1 >&5
1785    mv -f conftest.er1 conftest.err
1786  fi
1787  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788  test $ac_status = 0; } && {
1789	 test -z "$ac_c_werror_flag" ||
1790	 test ! -s conftest.err
1791       } && test -s conftest.$ac_objext; then :
1792  ac_retval=0
1793else
1794  $as_echo "$as_me: failed program was:" >&5
1795sed 's/^/| /' conftest.$ac_ext >&5
1796
1797	ac_retval=1
1798fi
1799  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1800  as_fn_set_status $ac_retval
1801
1802} # ac_fn_c_try_compile
1803
1804# ac_fn_c_try_link LINENO
1805# -----------------------
1806# Try to link conftest.$ac_ext, and return whether this succeeded.
1807ac_fn_c_try_link ()
1808{
1809  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810  rm -f conftest.$ac_objext conftest$ac_exeext
1811  if { { ac_try="$ac_link"
1812case "(($ac_try" in
1813  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1814  *) ac_try_echo=$ac_try;;
1815esac
1816eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1817$as_echo "$ac_try_echo"; } >&5
1818  (eval "$ac_link") 2>conftest.err
1819  ac_status=$?
1820  if test -s conftest.err; then
1821    grep -v '^ *+' conftest.err >conftest.er1
1822    cat conftest.er1 >&5
1823    mv -f conftest.er1 conftest.err
1824  fi
1825  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826  test $ac_status = 0; } && {
1827	 test -z "$ac_c_werror_flag" ||
1828	 test ! -s conftest.err
1829       } && test -s conftest$ac_exeext && {
1830	 test "$cross_compiling" = yes ||
1831	 $as_test_x conftest$ac_exeext
1832       }; then :
1833  ac_retval=0
1834else
1835  $as_echo "$as_me: failed program was:" >&5
1836sed 's/^/| /' conftest.$ac_ext >&5
1837
1838	ac_retval=1
1839fi
1840  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1841  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1842  # interfere with the next link command; also delete a directory that is
1843  # left behind by Apple's compiler.  We do this before executing the actions.
1844  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1845  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1846  as_fn_set_status $ac_retval
1847
1848} # ac_fn_c_try_link
1849
1850# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1851# -------------------------------------------------------
1852# Tests whether HEADER exists and can be compiled using the include files in
1853# INCLUDES, setting the cache variable VAR accordingly.
1854ac_fn_c_check_header_compile ()
1855{
1856  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1858$as_echo_n "checking for $2... " >&6; }
1859if eval "test \"\${$3+set}\"" = set; then :
1860  $as_echo_n "(cached) " >&6
1861else
1862  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1863/* end confdefs.h.  */
1864$4
1865#include <$2>
1866_ACEOF
1867if ac_fn_c_try_compile "$LINENO"; then :
1868  eval "$3=yes"
1869else
1870  eval "$3=no"
1871fi
1872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1873fi
1874eval ac_res=\$$3
1875	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876$as_echo "$ac_res" >&6; }
1877  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1878
1879} # ac_fn_c_check_header_compile
1880
1881# ac_fn_c_try_cpp LINENO
1882# ----------------------
1883# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1884ac_fn_c_try_cpp ()
1885{
1886  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887  if { { ac_try="$ac_cpp conftest.$ac_ext"
1888case "(($ac_try" in
1889  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1890  *) ac_try_echo=$ac_try;;
1891esac
1892eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1893$as_echo "$ac_try_echo"; } >&5
1894  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1895  ac_status=$?
1896  if test -s conftest.err; then
1897    grep -v '^ *+' conftest.err >conftest.er1
1898    cat conftest.er1 >&5
1899    mv -f conftest.er1 conftest.err
1900  fi
1901  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902  test $ac_status = 0; } > conftest.i && {
1903	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1904	 test ! -s conftest.err
1905       }; then :
1906  ac_retval=0
1907else
1908  $as_echo "$as_me: failed program was:" >&5
1909sed 's/^/| /' conftest.$ac_ext >&5
1910
1911    ac_retval=1
1912fi
1913  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1914  as_fn_set_status $ac_retval
1915
1916} # ac_fn_c_try_cpp
1917
1918# ac_fn_c_try_run LINENO
1919# ----------------------
1920# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1921# that executables *can* be run.
1922ac_fn_c_try_run ()
1923{
1924  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925  if { { ac_try="$ac_link"
1926case "(($ac_try" in
1927  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1928  *) ac_try_echo=$ac_try;;
1929esac
1930eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1931$as_echo "$ac_try_echo"; } >&5
1932  (eval "$ac_link") 2>&5
1933  ac_status=$?
1934  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1935  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1936  { { case "(($ac_try" in
1937  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1938  *) ac_try_echo=$ac_try;;
1939esac
1940eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1941$as_echo "$ac_try_echo"; } >&5
1942  (eval "$ac_try") 2>&5
1943  ac_status=$?
1944  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1945  test $ac_status = 0; }; }; then :
1946  ac_retval=0
1947else
1948  $as_echo "$as_me: program exited with status $ac_status" >&5
1949       $as_echo "$as_me: failed program was:" >&5
1950sed 's/^/| /' conftest.$ac_ext >&5
1951
1952       ac_retval=$ac_status
1953fi
1954  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1955  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1956  as_fn_set_status $ac_retval
1957
1958} # ac_fn_c_try_run
1959
1960# ac_fn_c_check_func LINENO FUNC VAR
1961# ----------------------------------
1962# Tests whether FUNC exists, setting the cache variable VAR accordingly
1963ac_fn_c_check_func ()
1964{
1965  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1967$as_echo_n "checking for $2... " >&6; }
1968if eval "test \"\${$3+set}\"" = set; then :
1969  $as_echo_n "(cached) " >&6
1970else
1971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972/* end confdefs.h.  */
1973/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1974   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1975#define $2 innocuous_$2
1976
1977/* System header to define __stub macros and hopefully few prototypes,
1978    which can conflict with char $2 (); below.
1979    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1980    <limits.h> exists even on freestanding compilers.  */
1981
1982#ifdef __STDC__
1983# include <limits.h>
1984#else
1985# include <assert.h>
1986#endif
1987
1988#undef $2
1989
1990/* Override any GCC internal prototype to avoid an error.
1991   Use char because int might match the return type of a GCC
1992   builtin and then its argument prototype would still apply.  */
1993#ifdef __cplusplus
1994extern "C"
1995#endif
1996char $2 ();
1997/* The GNU C library defines this for functions which it implements
1998    to always fail with ENOSYS.  Some functions are actually named
1999    something starting with __ and the normal name is an alias.  */
2000#if defined __stub_$2 || defined __stub___$2
2001choke me
2002#endif
2003
2004int
2005main ()
2006{
2007return $2 ();
2008  ;
2009  return 0;
2010}
2011_ACEOF
2012if ac_fn_c_try_link "$LINENO"; then :
2013  eval "$3=yes"
2014else
2015  eval "$3=no"
2016fi
2017rm -f core conftest.err conftest.$ac_objext \
2018    conftest$ac_exeext conftest.$ac_ext
2019fi
2020eval ac_res=\$$3
2021	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2022$as_echo "$ac_res" >&6; }
2023  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2024
2025} # ac_fn_c_check_func
2026
2027# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2028# ----------------------------------------------------
2029# Tries to find if the field MEMBER exists in type AGGR, after including
2030# INCLUDES, setting cache variable VAR accordingly.
2031ac_fn_c_check_member ()
2032{
2033  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2034  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2035$as_echo_n "checking for $2.$3... " >&6; }
2036if eval "test \"\${$4+set}\"" = set; then :
2037  $as_echo_n "(cached) " >&6
2038else
2039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040/* end confdefs.h.  */
2041$5
2042int
2043main ()
2044{
2045static $2 ac_aggr;
2046if (ac_aggr.$3)
2047return 0;
2048  ;
2049  return 0;
2050}
2051_ACEOF
2052if ac_fn_c_try_compile "$LINENO"; then :
2053  eval "$4=yes"
2054else
2055  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056/* end confdefs.h.  */
2057$5
2058int
2059main ()
2060{
2061static $2 ac_aggr;
2062if (sizeof ac_aggr.$3)
2063return 0;
2064  ;
2065  return 0;
2066}
2067_ACEOF
2068if ac_fn_c_try_compile "$LINENO"; then :
2069  eval "$4=yes"
2070else
2071  eval "$4=no"
2072fi
2073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2074fi
2075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2076fi
2077eval ac_res=\$$4
2078	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2079$as_echo "$ac_res" >&6; }
2080  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2081
2082} # ac_fn_c_check_member
2083
2084# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2085# ---------------------------------------------
2086# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2087# accordingly.
2088ac_fn_c_check_decl ()
2089{
2090  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2091  as_decl_name=`echo $2|sed 's/ *(.*//'`
2092  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2093  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2094$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2095if eval "test \"\${$3+set}\"" = set; then :
2096  $as_echo_n "(cached) " >&6
2097else
2098  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099/* end confdefs.h.  */
2100$4
2101int
2102main ()
2103{
2104#ifndef $as_decl_name
2105#ifdef __cplusplus
2106  (void) $as_decl_use;
2107#else
2108  (void) $as_decl_name;
2109#endif
2110#endif
2111
2112  ;
2113  return 0;
2114}
2115_ACEOF
2116if ac_fn_c_try_compile "$LINENO"; then :
2117  eval "$3=yes"
2118else
2119  eval "$3=no"
2120fi
2121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2122fi
2123eval ac_res=\$$3
2124	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2125$as_echo "$ac_res" >&6; }
2126  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2127
2128} # ac_fn_c_check_decl
2129cat >config.log <<_ACEOF
2130This file contains any messages produced by compilers while
2131running configure, to aid debugging if configure makes a mistake.
2132
2133It was created by libxcb $as_me 1.7, which was
2134generated by GNU Autoconf 2.67.  Invocation command line was
2135
2136  $ $0 $@
2137
2138_ACEOF
2139exec 5>>config.log
2140{
2141cat <<_ASUNAME
2142## --------- ##
2143## Platform. ##
2144## --------- ##
2145
2146hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2147uname -m = `(uname -m) 2>/dev/null || echo unknown`
2148uname -r = `(uname -r) 2>/dev/null || echo unknown`
2149uname -s = `(uname -s) 2>/dev/null || echo unknown`
2150uname -v = `(uname -v) 2>/dev/null || echo unknown`
2151
2152/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2153/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2154
2155/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2156/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2157/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2158/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2159/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2160/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2161/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2162
2163_ASUNAME
2164
2165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2166for as_dir in $PATH
2167do
2168  IFS=$as_save_IFS
2169  test -z "$as_dir" && as_dir=.
2170    $as_echo "PATH: $as_dir"
2171  done
2172IFS=$as_save_IFS
2173
2174} >&5
2175
2176cat >&5 <<_ACEOF
2177
2178
2179## ----------- ##
2180## Core tests. ##
2181## ----------- ##
2182
2183_ACEOF
2184
2185
2186# Keep a trace of the command line.
2187# Strip out --no-create and --no-recursion so they do not pile up.
2188# Strip out --silent because we don't want to record it for future runs.
2189# Also quote any args containing shell meta-characters.
2190# Make two passes to allow for proper duplicate-argument suppression.
2191ac_configure_args=
2192ac_configure_args0=
2193ac_configure_args1=
2194ac_must_keep_next=false
2195for ac_pass in 1 2
2196do
2197  for ac_arg
2198  do
2199    case $ac_arg in
2200    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2201    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2202    | -silent | --silent | --silen | --sile | --sil)
2203      continue ;;
2204    *\'*)
2205      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2206    esac
2207    case $ac_pass in
2208    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2209    2)
2210      as_fn_append ac_configure_args1 " '$ac_arg'"
2211      if test $ac_must_keep_next = true; then
2212	ac_must_keep_next=false # Got value, back to normal.
2213      else
2214	case $ac_arg in
2215	  *=* | --config-cache | -C | -disable-* | --disable-* \
2216	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2217	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2218	  | -with-* | --with-* | -without-* | --without-* | --x)
2219	    case "$ac_configure_args0 " in
2220	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2221	    esac
2222	    ;;
2223	  -* ) ac_must_keep_next=true ;;
2224	esac
2225      fi
2226      as_fn_append ac_configure_args " '$ac_arg'"
2227      ;;
2228    esac
2229  done
2230done
2231{ ac_configure_args0=; unset ac_configure_args0;}
2232{ ac_configure_args1=; unset ac_configure_args1;}
2233
2234# When interrupted or exit'd, cleanup temporary files, and complete
2235# config.log.  We remove comments because anyway the quotes in there
2236# would cause problems or look ugly.
2237# WARNING: Use '\'' to represent an apostrophe within the trap.
2238# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2239trap 'exit_status=$?
2240  # Save into config.log some information that might help in debugging.
2241  {
2242    echo
2243
2244    $as_echo "## ---------------- ##
2245## Cache variables. ##
2246## ---------------- ##"
2247    echo
2248    # The following way of writing the cache mishandles newlines in values,
2249(
2250  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2251    eval ac_val=\$$ac_var
2252    case $ac_val in #(
2253    *${as_nl}*)
2254      case $ac_var in #(
2255      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2256$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2257      esac
2258      case $ac_var in #(
2259      _ | IFS | as_nl) ;; #(
2260      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2261      *) { eval $ac_var=; unset $ac_var;} ;;
2262      esac ;;
2263    esac
2264  done
2265  (set) 2>&1 |
2266    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2267    *${as_nl}ac_space=\ *)
2268      sed -n \
2269	"s/'\''/'\''\\\\'\'''\''/g;
2270	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2271      ;; #(
2272    *)
2273      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2274      ;;
2275    esac |
2276    sort
2277)
2278    echo
2279
2280    $as_echo "## ----------------- ##
2281## Output variables. ##
2282## ----------------- ##"
2283    echo
2284    for ac_var in $ac_subst_vars
2285    do
2286      eval ac_val=\$$ac_var
2287      case $ac_val in
2288      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2289      esac
2290      $as_echo "$ac_var='\''$ac_val'\''"
2291    done | sort
2292    echo
2293
2294    if test -n "$ac_subst_files"; then
2295      $as_echo "## ------------------- ##
2296## File substitutions. ##
2297## ------------------- ##"
2298      echo
2299      for ac_var in $ac_subst_files
2300      do
2301	eval ac_val=\$$ac_var
2302	case $ac_val in
2303	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2304	esac
2305	$as_echo "$ac_var='\''$ac_val'\''"
2306      done | sort
2307      echo
2308    fi
2309
2310    if test -s confdefs.h; then
2311      $as_echo "## ----------- ##
2312## confdefs.h. ##
2313## ----------- ##"
2314      echo
2315      cat confdefs.h
2316      echo
2317    fi
2318    test "$ac_signal" != 0 &&
2319      $as_echo "$as_me: caught signal $ac_signal"
2320    $as_echo "$as_me: exit $exit_status"
2321  } >&5
2322  rm -f core *.core core.conftest.* &&
2323    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2324    exit $exit_status
2325' 0
2326for ac_signal in 1 2 13 15; do
2327  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2328done
2329ac_signal=0
2330
2331# confdefs.h avoids OS command line length limits that DEFS can exceed.
2332rm -f -r conftest* confdefs.h
2333
2334$as_echo "/* confdefs.h */" > confdefs.h
2335
2336# Predefined preprocessor variables.
2337
2338cat >>confdefs.h <<_ACEOF
2339#define PACKAGE_NAME "$PACKAGE_NAME"
2340_ACEOF
2341
2342cat >>confdefs.h <<_ACEOF
2343#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2344_ACEOF
2345
2346cat >>confdefs.h <<_ACEOF
2347#define PACKAGE_VERSION "$PACKAGE_VERSION"
2348_ACEOF
2349
2350cat >>confdefs.h <<_ACEOF
2351#define PACKAGE_STRING "$PACKAGE_STRING"
2352_ACEOF
2353
2354cat >>confdefs.h <<_ACEOF
2355#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2356_ACEOF
2357
2358cat >>confdefs.h <<_ACEOF
2359#define PACKAGE_URL "$PACKAGE_URL"
2360_ACEOF
2361
2362
2363# Let the site file select an alternate cache file if it wants to.
2364# Prefer an explicitly selected file to automatically selected ones.
2365ac_site_file1=NONE
2366ac_site_file2=NONE
2367if test -n "$CONFIG_SITE"; then
2368  # We do not want a PATH search for config.site.
2369  case $CONFIG_SITE in #((
2370    -*)  ac_site_file1=./$CONFIG_SITE;;
2371    */*) ac_site_file1=$CONFIG_SITE;;
2372    *)   ac_site_file1=./$CONFIG_SITE;;
2373  esac
2374elif test "x$prefix" != xNONE; then
2375  ac_site_file1=$prefix/share/config.site
2376  ac_site_file2=$prefix/etc/config.site
2377else
2378  ac_site_file1=$ac_default_prefix/share/config.site
2379  ac_site_file2=$ac_default_prefix/etc/config.site
2380fi
2381for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2382do
2383  test "x$ac_site_file" = xNONE && continue
2384  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2385    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2386$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2387    sed 's/^/| /' "$ac_site_file" >&5
2388    . "$ac_site_file" \
2389      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2390$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2391as_fn_error $? "failed to load site script $ac_site_file
2392See \`config.log' for more details" "$LINENO" 5 ; }
2393  fi
2394done
2395
2396if test -r "$cache_file"; then
2397  # Some versions of bash will fail to source /dev/null (special files
2398  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2399  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2400    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2401$as_echo "$as_me: loading cache $cache_file" >&6;}
2402    case $cache_file in
2403      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2404      *)                      . "./$cache_file";;
2405    esac
2406  fi
2407else
2408  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2409$as_echo "$as_me: creating cache $cache_file" >&6;}
2410  >$cache_file
2411fi
2412
2413# Check that the precious variables saved in the cache have kept the same
2414# value.
2415ac_cache_corrupted=false
2416for ac_var in $ac_precious_vars; do
2417  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2418  eval ac_new_set=\$ac_env_${ac_var}_set
2419  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2420  eval ac_new_val=\$ac_env_${ac_var}_value
2421  case $ac_old_set,$ac_new_set in
2422    set,)
2423      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2424$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2425      ac_cache_corrupted=: ;;
2426    ,set)
2427      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2428$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2429      ac_cache_corrupted=: ;;
2430    ,);;
2431    *)
2432      if test "x$ac_old_val" != "x$ac_new_val"; then
2433	# differences in whitespace do not lead to failure.
2434	ac_old_val_w=`echo x $ac_old_val`
2435	ac_new_val_w=`echo x $ac_new_val`
2436	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2437	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2438$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2439	  ac_cache_corrupted=:
2440	else
2441	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2442$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2443	  eval $ac_var=\$ac_old_val
2444	fi
2445	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2446$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2447	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2448$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2449      fi;;
2450  esac
2451  # Pass precious variables to config.status.
2452  if test "$ac_new_set" = set; then
2453    case $ac_new_val in
2454    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2455    *) ac_arg=$ac_var=$ac_new_val ;;
2456    esac
2457    case " $ac_configure_args " in
2458      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2459      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2460    esac
2461  fi
2462done
2463if $ac_cache_corrupted; then
2464  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2465$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2466  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2467$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2468  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2469fi
2470## -------------------- ##
2471## Main body of script. ##
2472## -------------------- ##
2473
2474ac_ext=c
2475ac_cpp='$CPP $CPPFLAGS'
2476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2478ac_compiler_gnu=$ac_cv_c_compiler_gnu
2479
2480
2481
2482am__api_version='1.11'
2483
2484ac_aux_dir=
2485for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2486  if test -f "$ac_dir/install-sh"; then
2487    ac_aux_dir=$ac_dir
2488    ac_install_sh="$ac_aux_dir/install-sh -c"
2489    break
2490  elif test -f "$ac_dir/install.sh"; then
2491    ac_aux_dir=$ac_dir
2492    ac_install_sh="$ac_aux_dir/install.sh -c"
2493    break
2494  elif test -f "$ac_dir/shtool"; then
2495    ac_aux_dir=$ac_dir
2496    ac_install_sh="$ac_aux_dir/shtool install -c"
2497    break
2498  fi
2499done
2500if test -z "$ac_aux_dir"; then
2501  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2502fi
2503
2504# These three variables are undocumented and unsupported,
2505# and are intended to be withdrawn in a future Autoconf release.
2506# They can cause serious problems if a builder's source tree is in a directory
2507# whose full name contains unusual characters.
2508ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2509ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2510ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2511
2512
2513# Find a good install program.  We prefer a C program (faster),
2514# so one script is as good as another.  But avoid the broken or
2515# incompatible versions:
2516# SysV /etc/install, /usr/sbin/install
2517# SunOS /usr/etc/install
2518# IRIX /sbin/install
2519# AIX /bin/install
2520# AmigaOS /C/install, which installs bootblocks on floppy discs
2521# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2522# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2523# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2524# OS/2's system install, which has a completely different semantic
2525# ./install, which can be erroneously created by make from ./install.sh.
2526# Reject install programs that cannot install multiple files.
2527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2528$as_echo_n "checking for a BSD-compatible install... " >&6; }
2529if test -z "$INSTALL"; then
2530if test "${ac_cv_path_install+set}" = set; then :
2531  $as_echo_n "(cached) " >&6
2532else
2533  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534for as_dir in $PATH
2535do
2536  IFS=$as_save_IFS
2537  test -z "$as_dir" && as_dir=.
2538    # Account for people who put trailing slashes in PATH elements.
2539case $as_dir/ in #((
2540  ./ | .// | /[cC]/* | \
2541  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2542  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2543  /usr/ucb/* ) ;;
2544  *)
2545    # OSF1 and SCO ODT 3.0 have their own names for install.
2546    # Don't use installbsd from OSF since it installs stuff as root
2547    # by default.
2548    for ac_prog in ginstall scoinst install; do
2549      for ac_exec_ext in '' $ac_executable_extensions; do
2550	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2551	  if test $ac_prog = install &&
2552	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2553	    # AIX install.  It has an incompatible calling convention.
2554	    :
2555	  elif test $ac_prog = install &&
2556	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2557	    # program-specific install script used by HP pwplus--don't use.
2558	    :
2559	  else
2560	    rm -rf conftest.one conftest.two conftest.dir
2561	    echo one > conftest.one
2562	    echo two > conftest.two
2563	    mkdir conftest.dir
2564	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2565	      test -s conftest.one && test -s conftest.two &&
2566	      test -s conftest.dir/conftest.one &&
2567	      test -s conftest.dir/conftest.two
2568	    then
2569	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2570	      break 3
2571	    fi
2572	  fi
2573	fi
2574      done
2575    done
2576    ;;
2577esac
2578
2579  done
2580IFS=$as_save_IFS
2581
2582rm -rf conftest.one conftest.two conftest.dir
2583
2584fi
2585  if test "${ac_cv_path_install+set}" = set; then
2586    INSTALL=$ac_cv_path_install
2587  else
2588    # As a last resort, use the slow shell script.  Don't cache a
2589    # value for INSTALL within a source directory, because that will
2590    # break other packages using the cache if that directory is
2591    # removed, or if the value is a relative name.
2592    INSTALL=$ac_install_sh
2593  fi
2594fi
2595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2596$as_echo "$INSTALL" >&6; }
2597
2598# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2599# It thinks the first close brace ends the variable substitution.
2600test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2601
2602test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2603
2604test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2605
2606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2607$as_echo_n "checking whether build environment is sane... " >&6; }
2608# Just in case
2609sleep 1
2610echo timestamp > conftest.file
2611# Reject unsafe characters in $srcdir or the absolute working directory
2612# name.  Accept space and tab only in the latter.
2613am_lf='
2614'
2615case `pwd` in
2616  *[\\\"\#\$\&\'\`$am_lf]*)
2617    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2618esac
2619case $srcdir in
2620  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2621    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2622esac
2623
2624# Do `set' in a subshell so we don't clobber the current shell's
2625# arguments.  Must try -L first in case configure is actually a
2626# symlink; some systems play weird games with the mod time of symlinks
2627# (eg FreeBSD returns the mod time of the symlink's containing
2628# directory).
2629if (
2630   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2631   if test "$*" = "X"; then
2632      # -L didn't work.
2633      set X `ls -t "$srcdir/configure" conftest.file`
2634   fi
2635   rm -f conftest.file
2636   if test "$*" != "X $srcdir/configure conftest.file" \
2637      && test "$*" != "X conftest.file $srcdir/configure"; then
2638
2639      # If neither matched, then we have a broken ls.  This can happen
2640      # if, for instance, CONFIG_SHELL is bash and it inherits a
2641      # broken ls alias from the environment.  This has actually
2642      # happened.  Such a system could not be considered "sane".
2643      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2644alias in your environment" "$LINENO" 5
2645   fi
2646
2647   test "$2" = conftest.file
2648   )
2649then
2650   # Ok.
2651   :
2652else
2653   as_fn_error $? "newly created file is older than distributed files!
2654Check your system clock" "$LINENO" 5
2655fi
2656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2657$as_echo "yes" >&6; }
2658test "$program_prefix" != NONE &&
2659  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2660# Use a double $ so make ignores it.
2661test "$program_suffix" != NONE &&
2662  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2663# Double any \ or $.
2664# By default was `s,x,x', remove it if useless.
2665ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2666program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2667
2668# expand $ac_aux_dir to an absolute path
2669am_aux_dir=`cd $ac_aux_dir && pwd`
2670
2671if test x"${MISSING+set}" != xset; then
2672  case $am_aux_dir in
2673  *\ * | *\	*)
2674    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2675  *)
2676    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2677  esac
2678fi
2679# Use eval to expand $SHELL
2680if eval "$MISSING --run true"; then
2681  am_missing_run="$MISSING --run "
2682else
2683  am_missing_run=
2684  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2685$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2686fi
2687
2688if test x"${install_sh}" != xset; then
2689  case $am_aux_dir in
2690  *\ * | *\	*)
2691    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2692  *)
2693    install_sh="\${SHELL} $am_aux_dir/install-sh"
2694  esac
2695fi
2696
2697# Installed binaries are usually stripped using `strip' when the user
2698# run `make install-strip'.  However `strip' might not be the right
2699# tool to use in cross-compilation environments, therefore Automake
2700# will honor the `STRIP' environment variable to overrule this program.
2701if test "$cross_compiling" != no; then
2702  if test -n "$ac_tool_prefix"; then
2703  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2704set dummy ${ac_tool_prefix}strip; ac_word=$2
2705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2706$as_echo_n "checking for $ac_word... " >&6; }
2707if test "${ac_cv_prog_STRIP+set}" = set; then :
2708  $as_echo_n "(cached) " >&6
2709else
2710  if test -n "$STRIP"; then
2711  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2712else
2713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714for as_dir in $PATH
2715do
2716  IFS=$as_save_IFS
2717  test -z "$as_dir" && as_dir=.
2718    for ac_exec_ext in '' $ac_executable_extensions; do
2719  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2720    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2721    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2722    break 2
2723  fi
2724done
2725  done
2726IFS=$as_save_IFS
2727
2728fi
2729fi
2730STRIP=$ac_cv_prog_STRIP
2731if test -n "$STRIP"; then
2732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2733$as_echo "$STRIP" >&6; }
2734else
2735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2736$as_echo "no" >&6; }
2737fi
2738
2739
2740fi
2741if test -z "$ac_cv_prog_STRIP"; then
2742  ac_ct_STRIP=$STRIP
2743  # Extract the first word of "strip", so it can be a program name with args.
2744set dummy strip; ac_word=$2
2745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2746$as_echo_n "checking for $ac_word... " >&6; }
2747if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2748  $as_echo_n "(cached) " >&6
2749else
2750  if test -n "$ac_ct_STRIP"; then
2751  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2752else
2753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2754for as_dir in $PATH
2755do
2756  IFS=$as_save_IFS
2757  test -z "$as_dir" && as_dir=.
2758    for ac_exec_ext in '' $ac_executable_extensions; do
2759  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2760    ac_cv_prog_ac_ct_STRIP="strip"
2761    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2762    break 2
2763  fi
2764done
2765  done
2766IFS=$as_save_IFS
2767
2768fi
2769fi
2770ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2771if test -n "$ac_ct_STRIP"; then
2772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2773$as_echo "$ac_ct_STRIP" >&6; }
2774else
2775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2776$as_echo "no" >&6; }
2777fi
2778
2779  if test "x$ac_ct_STRIP" = x; then
2780    STRIP=":"
2781  else
2782    case $cross_compiling:$ac_tool_warned in
2783yes:)
2784{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2785$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2786ac_tool_warned=yes ;;
2787esac
2788    STRIP=$ac_ct_STRIP
2789  fi
2790else
2791  STRIP="$ac_cv_prog_STRIP"
2792fi
2793
2794fi
2795INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2796
2797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2798$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2799if test -z "$MKDIR_P"; then
2800  if test "${ac_cv_path_mkdir+set}" = set; then :
2801  $as_echo_n "(cached) " >&6
2802else
2803  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2805do
2806  IFS=$as_save_IFS
2807  test -z "$as_dir" && as_dir=.
2808    for ac_prog in mkdir gmkdir; do
2809	 for ac_exec_ext in '' $ac_executable_extensions; do
2810	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2811	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2812	     'mkdir (GNU coreutils) '* | \
2813	     'mkdir (coreutils) '* | \
2814	     'mkdir (fileutils) '4.1*)
2815	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2816	       break 3;;
2817	   esac
2818	 done
2819       done
2820  done
2821IFS=$as_save_IFS
2822
2823fi
2824
2825  test -d ./--version && rmdir ./--version
2826  if test "${ac_cv_path_mkdir+set}" = set; then
2827    MKDIR_P="$ac_cv_path_mkdir -p"
2828  else
2829    # As a last resort, use the slow shell script.  Don't cache a
2830    # value for MKDIR_P within a source directory, because that will
2831    # break other packages using the cache if that directory is
2832    # removed, or if the value is a relative name.
2833    MKDIR_P="$ac_install_sh -d"
2834  fi
2835fi
2836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2837$as_echo "$MKDIR_P" >&6; }
2838
2839mkdir_p="$MKDIR_P"
2840case $mkdir_p in
2841  [\\/$]* | ?:[\\/]*) ;;
2842  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2843esac
2844
2845for ac_prog in gawk mawk nawk awk
2846do
2847  # Extract the first word of "$ac_prog", so it can be a program name with args.
2848set dummy $ac_prog; ac_word=$2
2849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2850$as_echo_n "checking for $ac_word... " >&6; }
2851if test "${ac_cv_prog_AWK+set}" = set; then :
2852  $as_echo_n "(cached) " >&6
2853else
2854  if test -n "$AWK"; then
2855  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2856else
2857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858for as_dir in $PATH
2859do
2860  IFS=$as_save_IFS
2861  test -z "$as_dir" && as_dir=.
2862    for ac_exec_ext in '' $ac_executable_extensions; do
2863  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2864    ac_cv_prog_AWK="$ac_prog"
2865    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2866    break 2
2867  fi
2868done
2869  done
2870IFS=$as_save_IFS
2871
2872fi
2873fi
2874AWK=$ac_cv_prog_AWK
2875if test -n "$AWK"; then
2876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2877$as_echo "$AWK" >&6; }
2878else
2879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2880$as_echo "no" >&6; }
2881fi
2882
2883
2884  test -n "$AWK" && break
2885done
2886
2887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2888$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2889set x ${MAKE-make}
2890ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2891if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2892  $as_echo_n "(cached) " >&6
2893else
2894  cat >conftest.make <<\_ACEOF
2895SHELL = /bin/sh
2896all:
2897	@echo '@@@%%%=$(MAKE)=@@@%%%'
2898_ACEOF
2899# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2900case `${MAKE-make} -f conftest.make 2>/dev/null` in
2901  *@@@%%%=?*=@@@%%%*)
2902    eval ac_cv_prog_make_${ac_make}_set=yes;;
2903  *)
2904    eval ac_cv_prog_make_${ac_make}_set=no;;
2905esac
2906rm -f conftest.make
2907fi
2908if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2910$as_echo "yes" >&6; }
2911  SET_MAKE=
2912else
2913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2914$as_echo "no" >&6; }
2915  SET_MAKE="MAKE=${MAKE-make}"
2916fi
2917
2918rm -rf .tst 2>/dev/null
2919mkdir .tst 2>/dev/null
2920if test -d .tst; then
2921  am__leading_dot=.
2922else
2923  am__leading_dot=_
2924fi
2925rmdir .tst 2>/dev/null
2926
2927if test "`cd $srcdir && pwd`" != "`pwd`"; then
2928  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2929  # is not polluted with repeated "-I."
2930  am__isrc=' -I$(srcdir)'
2931  # test to see if srcdir already configured
2932  if test -f $srcdir/config.status; then
2933    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2934  fi
2935fi
2936
2937# test whether we have cygpath
2938if test -z "$CYGPATH_W"; then
2939  if (cygpath --version) >/dev/null 2>/dev/null; then
2940    CYGPATH_W='cygpath -w'
2941  else
2942    CYGPATH_W=echo
2943  fi
2944fi
2945
2946
2947# Define the identity of the package.
2948 PACKAGE='libxcb'
2949 VERSION='1.7'
2950
2951
2952cat >>confdefs.h <<_ACEOF
2953#define PACKAGE "$PACKAGE"
2954_ACEOF
2955
2956
2957cat >>confdefs.h <<_ACEOF
2958#define VERSION "$VERSION"
2959_ACEOF
2960
2961# Some tools Automake needs.
2962
2963ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2964
2965
2966AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2967
2968
2969AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2970
2971
2972AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2973
2974
2975MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2976
2977# We need awk for the "check" target.  The system "awk" is bad on
2978# some platforms.
2979# Always define AMTAR for backward compatibility.
2980
2981AMTAR=${AMTAR-"${am_missing_run}tar"}
2982
2983am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994        if test -n "$PYTHON"; then
2995      # If the user set $PYTHON, use it and don't search something else.
2996      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
2997$as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
2998      prog="import sys
2999# split strings by '.' and convert to numeric.  Append some zeros
3000# because we need at least 4 digits for the hex conversion.
3001# map returns an iterator in Python 3.0 and a list in 2.x
3002minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
3003minverhex = 0
3004# xrange is not present in Python 3.0 and range returns an iterator
3005for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
3006sys.exit(sys.hexversion < minverhex)"
3007  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
3008   ($PYTHON -c "$prog") >&5 2>&5
3009   ac_status=$?
3010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011   (exit $ac_status); }; then :
3012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3013$as_echo "yes" >&6; }
3014else
3015  as_fn_error $? "too old" "$LINENO" 5
3016fi
3017      am_display_PYTHON=$PYTHON
3018    else
3019      # Otherwise, try each interpreter until we find one that satisfies
3020      # VERSION.
3021      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
3022$as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
3023if test "${am_cv_pathless_PYTHON+set}" = set; then :
3024  $as_echo_n "(cached) " >&6
3025else
3026
3027	for am_cv_pathless_PYTHON in python python2 python3 python3.0 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
3028	  test "$am_cv_pathless_PYTHON" = none && break
3029	  prog="import sys
3030# split strings by '.' and convert to numeric.  Append some zeros
3031# because we need at least 4 digits for the hex conversion.
3032# map returns an iterator in Python 3.0 and a list in 2.x
3033minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
3034minverhex = 0
3035# xrange is not present in Python 3.0 and range returns an iterator
3036for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
3037sys.exit(sys.hexversion < minverhex)"
3038  if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
3039   ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
3040   ac_status=$?
3041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042   (exit $ac_status); }; then :
3043  break
3044fi
3045	done
3046fi
3047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
3048$as_echo "$am_cv_pathless_PYTHON" >&6; }
3049      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
3050      if test "$am_cv_pathless_PYTHON" = none; then
3051	PYTHON=:
3052      else
3053        # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
3054set dummy $am_cv_pathless_PYTHON; ac_word=$2
3055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3056$as_echo_n "checking for $ac_word... " >&6; }
3057if test "${ac_cv_path_PYTHON+set}" = set; then :
3058  $as_echo_n "(cached) " >&6
3059else
3060  case $PYTHON in
3061  [\\/]* | ?:[\\/]*)
3062  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3063  ;;
3064  *)
3065  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3066for as_dir in $PATH
3067do
3068  IFS=$as_save_IFS
3069  test -z "$as_dir" && as_dir=.
3070    for ac_exec_ext in '' $ac_executable_extensions; do
3071  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3072    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3073    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3074    break 2
3075  fi
3076done
3077  done
3078IFS=$as_save_IFS
3079
3080  ;;
3081esac
3082fi
3083PYTHON=$ac_cv_path_PYTHON
3084if test -n "$PYTHON"; then
3085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
3086$as_echo "$PYTHON" >&6; }
3087else
3088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3089$as_echo "no" >&6; }
3090fi
3091
3092
3093      fi
3094      am_display_PYTHON=$am_cv_pathless_PYTHON
3095    fi
3096
3097
3098  if test "$PYTHON" = :; then
3099      as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
3100  else
3101
3102
3103  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
3104$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
3105if test "${am_cv_python_version+set}" = set; then :
3106  $as_echo_n "(cached) " >&6
3107else
3108  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
3109fi
3110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
3111$as_echo "$am_cv_python_version" >&6; }
3112  PYTHON_VERSION=$am_cv_python_version
3113
3114
3115
3116  PYTHON_PREFIX='${prefix}'
3117
3118  PYTHON_EXEC_PREFIX='${exec_prefix}'
3119
3120
3121
3122  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
3123$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
3124if test "${am_cv_python_platform+set}" = set; then :
3125  $as_echo_n "(cached) " >&6
3126else
3127  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
3128fi
3129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
3130$as_echo "$am_cv_python_platform" >&6; }
3131  PYTHON_PLATFORM=$am_cv_python_platform
3132
3133
3134
3135
3136                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
3137$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
3138if test "${am_cv_python_pythondir+set}" = set; then :
3139  $as_echo_n "(cached) " >&6
3140else
3141  if test "x$prefix" = xNONE
3142     then
3143       am_py_prefix=$ac_default_prefix
3144     else
3145       am_py_prefix=$prefix
3146     fi
3147     am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null ||
3148     echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
3149     case $am_cv_python_pythondir in
3150     $am_py_prefix*)
3151       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
3152       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
3153       ;;
3154     *)
3155       case $am_py_prefix in
3156         /usr|/System*) ;;
3157         *)
3158	  am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
3159	  ;;
3160       esac
3161       ;;
3162     esac
3163
3164fi
3165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
3166$as_echo "$am_cv_python_pythondir" >&6; }
3167  pythondir=$am_cv_python_pythondir
3168
3169
3170
3171  pkgpythondir=\${pythondir}/$PACKAGE
3172
3173
3174            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
3175$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
3176if test "${am_cv_python_pyexecdir+set}" = set; then :
3177  $as_echo_n "(cached) " >&6
3178else
3179  if test "x$exec_prefix" = xNONE
3180     then
3181       am_py_exec_prefix=$am_py_prefix
3182     else
3183       am_py_exec_prefix=$exec_prefix
3184     fi
3185     am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null ||
3186     echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
3187     case $am_cv_python_pyexecdir in
3188     $am_py_exec_prefix*)
3189       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
3190       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
3191       ;;
3192     *)
3193       case $am_py_exec_prefix in
3194         /usr|/System*) ;;
3195         *)
3196	   am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
3197	   ;;
3198       esac
3199       ;;
3200     esac
3201
3202fi
3203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
3204$as_echo "$am_cv_python_pyexecdir" >&6; }
3205  pyexecdir=$am_cv_python_pyexecdir
3206
3207
3208
3209  pkgpyexecdir=\${pyexecdir}/$PACKAGE
3210
3211
3212
3213  fi
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3224	if test -n "$ac_tool_prefix"; then
3225  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3226set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3228$as_echo_n "checking for $ac_word... " >&6; }
3229if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
3230  $as_echo_n "(cached) " >&6
3231else
3232  case $PKG_CONFIG in
3233  [\\/]* | ?:[\\/]*)
3234  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3235  ;;
3236  *)
3237  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238for as_dir in $PATH
3239do
3240  IFS=$as_save_IFS
3241  test -z "$as_dir" && as_dir=.
3242    for ac_exec_ext in '' $ac_executable_extensions; do
3243  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3244    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3245    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3246    break 2
3247  fi
3248done
3249  done
3250IFS=$as_save_IFS
3251
3252  ;;
3253esac
3254fi
3255PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3256if test -n "$PKG_CONFIG"; then
3257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3258$as_echo "$PKG_CONFIG" >&6; }
3259else
3260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3261$as_echo "no" >&6; }
3262fi
3263
3264
3265fi
3266if test -z "$ac_cv_path_PKG_CONFIG"; then
3267  ac_pt_PKG_CONFIG=$PKG_CONFIG
3268  # Extract the first word of "pkg-config", so it can be a program name with args.
3269set dummy pkg-config; ac_word=$2
3270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3271$as_echo_n "checking for $ac_word... " >&6; }
3272if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
3273  $as_echo_n "(cached) " >&6
3274else
3275  case $ac_pt_PKG_CONFIG in
3276  [\\/]* | ?:[\\/]*)
3277  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3278  ;;
3279  *)
3280  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281for as_dir in $PATH
3282do
3283  IFS=$as_save_IFS
3284  test -z "$as_dir" && as_dir=.
3285    for ac_exec_ext in '' $ac_executable_extensions; do
3286  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3287    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3288    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3289    break 2
3290  fi
3291done
3292  done
3293IFS=$as_save_IFS
3294
3295  ;;
3296esac
3297fi
3298ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3299if test -n "$ac_pt_PKG_CONFIG"; then
3300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3301$as_echo "$ac_pt_PKG_CONFIG" >&6; }
3302else
3303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3304$as_echo "no" >&6; }
3305fi
3306
3307  if test "x$ac_pt_PKG_CONFIG" = x; then
3308    PKG_CONFIG=""
3309  else
3310    case $cross_compiling:$ac_tool_warned in
3311yes:)
3312{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3313$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3314ac_tool_warned=yes ;;
3315esac
3316    PKG_CONFIG=$ac_pt_PKG_CONFIG
3317  fi
3318else
3319  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3320fi
3321
3322fi
3323if test -n "$PKG_CONFIG"; then
3324	_pkg_min_version=0.9.0
3325	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3326$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3327	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3328		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3329$as_echo "yes" >&6; }
3330	else
3331		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332$as_echo "no" >&6; }
3333		PKG_CONFIG=""
3334	fi
3335fi
3336
3337pkg_failed=no
3338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5
3339$as_echo_n "checking for CHECK... " >&6; }
3340
3341if test -n "$CHECK_CFLAGS"; then
3342    pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
3343 elif test -n "$PKG_CONFIG"; then
3344    if test -n "$PKG_CONFIG" && \
3345    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
3346  ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
3347  ac_status=$?
3348  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3349  test $ac_status = 0; }; then
3350  pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.4" 2>/dev/null`
3351else
3352  pkg_failed=yes
3353fi
3354 else
3355    pkg_failed=untried
3356fi
3357if test -n "$CHECK_LIBS"; then
3358    pkg_cv_CHECK_LIBS="$CHECK_LIBS"
3359 elif test -n "$PKG_CONFIG"; then
3360    if test -n "$PKG_CONFIG" && \
3361    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
3362  ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
3363  ac_status=$?
3364  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3365  test $ac_status = 0; }; then
3366  pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.4" 2>/dev/null`
3367else
3368  pkg_failed=yes
3369fi
3370 else
3371    pkg_failed=untried
3372fi
3373
3374
3375
3376if test $pkg_failed = yes; then
3377   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3378$as_echo "no" >&6; }
3379
3380if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3381        _pkg_short_errors_supported=yes
3382else
3383        _pkg_short_errors_supported=no
3384fi
3385        if test $_pkg_short_errors_supported = yes; then
3386	        CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "check >= 0.9.4" 2>&1`
3387        else
3388	        CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors "check >= 0.9.4" 2>&1`
3389        fi
3390	# Put the nasty error message in config.log where it belongs
3391	echo "$CHECK_PKG_ERRORS" >&5
3392
3393	HAVE_CHECK=no
3394elif test $pkg_failed = untried; then
3395     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3396$as_echo "no" >&6; }
3397	HAVE_CHECK=no
3398else
3399	CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
3400	CHECK_LIBS=$pkg_cv_CHECK_LIBS
3401        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3402$as_echo "yes" >&6; }
3403	HAVE_CHECK=yes
3404fi
3405 if test x$HAVE_CHECK = xyes; then
3406  HAVE_CHECK_TRUE=
3407  HAVE_CHECK_FALSE='#'
3408else
3409  HAVE_CHECK_TRUE='#'
3410  HAVE_CHECK_FALSE=
3411fi
3412
3413
3414ac_config_headers="$ac_config_headers src/config.h"
3415
3416
3417case `pwd` in
3418  *\ * | *\	*)
3419    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3420$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3421esac
3422
3423
3424
3425macro_version='2.2.6b'
3426macro_revision='1.3017'
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440ltmain="$ac_aux_dir/ltmain.sh"
3441
3442# Make sure we can run config.sub.
3443$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3444  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3445
3446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3447$as_echo_n "checking build system type... " >&6; }
3448if test "${ac_cv_build+set}" = set; then :
3449  $as_echo_n "(cached) " >&6
3450else
3451  ac_build_alias=$build_alias
3452test "x$ac_build_alias" = x &&
3453  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3454test "x$ac_build_alias" = x &&
3455  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3456ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3457  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3458
3459fi
3460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3461$as_echo "$ac_cv_build" >&6; }
3462case $ac_cv_build in
3463*-*-*) ;;
3464*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
3465esac
3466build=$ac_cv_build
3467ac_save_IFS=$IFS; IFS='-'
3468set x $ac_cv_build
3469shift
3470build_cpu=$1
3471build_vendor=$2
3472shift; shift
3473# Remember, the first character of IFS is used to create $*,
3474# except with old shells:
3475build_os=$*
3476IFS=$ac_save_IFS
3477case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3478
3479
3480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3481$as_echo_n "checking host system type... " >&6; }
3482if test "${ac_cv_host+set}" = set; then :
3483  $as_echo_n "(cached) " >&6
3484else
3485  if test "x$host_alias" = x; then
3486  ac_cv_host=$ac_cv_build
3487else
3488  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3489    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3490fi
3491
3492fi
3493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3494$as_echo "$ac_cv_host" >&6; }
3495case $ac_cv_host in
3496*-*-*) ;;
3497*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
3498esac
3499host=$ac_cv_host
3500ac_save_IFS=$IFS; IFS='-'
3501set x $ac_cv_host
3502shift
3503host_cpu=$1
3504host_vendor=$2
3505shift; shift
3506# Remember, the first character of IFS is used to create $*,
3507# except with old shells:
3508host_os=$*
3509IFS=$ac_save_IFS
3510case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3511
3512
3513DEPDIR="${am__leading_dot}deps"
3514
3515ac_config_commands="$ac_config_commands depfiles"
3516
3517
3518am_make=${MAKE-make}
3519cat > confinc << 'END'
3520am__doit:
3521	@echo this is the am__doit target
3522.PHONY: am__doit
3523END
3524# If we don't find an include directive, just comment out the code.
3525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3526$as_echo_n "checking for style of include used by $am_make... " >&6; }
3527am__include="#"
3528am__quote=
3529_am_result=none
3530# First try GNU make style include.
3531echo "include confinc" > confmf
3532# Ignore all kinds of additional output from `make'.
3533case `$am_make -s -f confmf 2> /dev/null` in #(
3534*the\ am__doit\ target*)
3535  am__include=include
3536  am__quote=
3537  _am_result=GNU
3538  ;;
3539esac
3540# Now try BSD make style include.
3541if test "$am__include" = "#"; then
3542   echo '.include "confinc"' > confmf
3543   case `$am_make -s -f confmf 2> /dev/null` in #(
3544   *the\ am__doit\ target*)
3545     am__include=.include
3546     am__quote="\""
3547     _am_result=BSD
3548     ;;
3549   esac
3550fi
3551
3552
3553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3554$as_echo "$_am_result" >&6; }
3555rm -f confinc confmf
3556
3557# Check whether --enable-dependency-tracking was given.
3558if test "${enable_dependency_tracking+set}" = set; then :
3559  enableval=$enable_dependency_tracking;
3560fi
3561
3562if test "x$enable_dependency_tracking" != xno; then
3563  am_depcomp="$ac_aux_dir/depcomp"
3564  AMDEPBACKSLASH='\'
3565fi
3566 if test "x$enable_dependency_tracking" != xno; then
3567  AMDEP_TRUE=
3568  AMDEP_FALSE='#'
3569else
3570  AMDEP_TRUE='#'
3571  AMDEP_FALSE=
3572fi
3573
3574
3575ac_ext=c
3576ac_cpp='$CPP $CPPFLAGS'
3577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3579ac_compiler_gnu=$ac_cv_c_compiler_gnu
3580if test -n "$ac_tool_prefix"; then
3581  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3582set dummy ${ac_tool_prefix}gcc; ac_word=$2
3583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3584$as_echo_n "checking for $ac_word... " >&6; }
3585if test "${ac_cv_prog_CC+set}" = set; then :
3586  $as_echo_n "(cached) " >&6
3587else
3588  if test -n "$CC"; then
3589  ac_cv_prog_CC="$CC" # Let the user override the test.
3590else
3591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3592for as_dir in $PATH
3593do
3594  IFS=$as_save_IFS
3595  test -z "$as_dir" && as_dir=.
3596    for ac_exec_ext in '' $ac_executable_extensions; do
3597  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3598    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3599    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3600    break 2
3601  fi
3602done
3603  done
3604IFS=$as_save_IFS
3605
3606fi
3607fi
3608CC=$ac_cv_prog_CC
3609if test -n "$CC"; then
3610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3611$as_echo "$CC" >&6; }
3612else
3613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3614$as_echo "no" >&6; }
3615fi
3616
3617
3618fi
3619if test -z "$ac_cv_prog_CC"; then
3620  ac_ct_CC=$CC
3621  # Extract the first word of "gcc", so it can be a program name with args.
3622set dummy gcc; ac_word=$2
3623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3624$as_echo_n "checking for $ac_word... " >&6; }
3625if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3626  $as_echo_n "(cached) " >&6
3627else
3628  if test -n "$ac_ct_CC"; then
3629  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3630else
3631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3632for as_dir in $PATH
3633do
3634  IFS=$as_save_IFS
3635  test -z "$as_dir" && as_dir=.
3636    for ac_exec_ext in '' $ac_executable_extensions; do
3637  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3638    ac_cv_prog_ac_ct_CC="gcc"
3639    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3640    break 2
3641  fi
3642done
3643  done
3644IFS=$as_save_IFS
3645
3646fi
3647fi
3648ac_ct_CC=$ac_cv_prog_ac_ct_CC
3649if test -n "$ac_ct_CC"; then
3650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3651$as_echo "$ac_ct_CC" >&6; }
3652else
3653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3654$as_echo "no" >&6; }
3655fi
3656
3657  if test "x$ac_ct_CC" = x; then
3658    CC=""
3659  else
3660    case $cross_compiling:$ac_tool_warned in
3661yes:)
3662{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3663$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3664ac_tool_warned=yes ;;
3665esac
3666    CC=$ac_ct_CC
3667  fi
3668else
3669  CC="$ac_cv_prog_CC"
3670fi
3671
3672if test -z "$CC"; then
3673          if test -n "$ac_tool_prefix"; then
3674    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3675set dummy ${ac_tool_prefix}cc; ac_word=$2
3676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3677$as_echo_n "checking for $ac_word... " >&6; }
3678if test "${ac_cv_prog_CC+set}" = set; then :
3679  $as_echo_n "(cached) " >&6
3680else
3681  if test -n "$CC"; then
3682  ac_cv_prog_CC="$CC" # Let the user override the test.
3683else
3684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3685for as_dir in $PATH
3686do
3687  IFS=$as_save_IFS
3688  test -z "$as_dir" && as_dir=.
3689    for ac_exec_ext in '' $ac_executable_extensions; do
3690  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3691    ac_cv_prog_CC="${ac_tool_prefix}cc"
3692    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3693    break 2
3694  fi
3695done
3696  done
3697IFS=$as_save_IFS
3698
3699fi
3700fi
3701CC=$ac_cv_prog_CC
3702if test -n "$CC"; then
3703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3704$as_echo "$CC" >&6; }
3705else
3706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3707$as_echo "no" >&6; }
3708fi
3709
3710
3711  fi
3712fi
3713if test -z "$CC"; then
3714  # Extract the first word of "cc", so it can be a program name with args.
3715set dummy cc; ac_word=$2
3716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3717$as_echo_n "checking for $ac_word... " >&6; }
3718if test "${ac_cv_prog_CC+set}" = set; then :
3719  $as_echo_n "(cached) " >&6
3720else
3721  if test -n "$CC"; then
3722  ac_cv_prog_CC="$CC" # Let the user override the test.
3723else
3724  ac_prog_rejected=no
3725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3726for as_dir in $PATH
3727do
3728  IFS=$as_save_IFS
3729  test -z "$as_dir" && as_dir=.
3730    for ac_exec_ext in '' $ac_executable_extensions; do
3731  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3732    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3733       ac_prog_rejected=yes
3734       continue
3735     fi
3736    ac_cv_prog_CC="cc"
3737    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3738    break 2
3739  fi
3740done
3741  done
3742IFS=$as_save_IFS
3743
3744if test $ac_prog_rejected = yes; then
3745  # We found a bogon in the path, so make sure we never use it.
3746  set dummy $ac_cv_prog_CC
3747  shift
3748  if test $# != 0; then
3749    # We chose a different compiler from the bogus one.
3750    # However, it has the same basename, so the bogon will be chosen
3751    # first if we set CC to just the basename; use the full file name.
3752    shift
3753    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3754  fi
3755fi
3756fi
3757fi
3758CC=$ac_cv_prog_CC
3759if test -n "$CC"; then
3760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3761$as_echo "$CC" >&6; }
3762else
3763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3764$as_echo "no" >&6; }
3765fi
3766
3767
3768fi
3769if test -z "$CC"; then
3770  if test -n "$ac_tool_prefix"; then
3771  for ac_prog in cl.exe
3772  do
3773    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3774set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3776$as_echo_n "checking for $ac_word... " >&6; }
3777if test "${ac_cv_prog_CC+set}" = set; then :
3778  $as_echo_n "(cached) " >&6
3779else
3780  if test -n "$CC"; then
3781  ac_cv_prog_CC="$CC" # Let the user override the test.
3782else
3783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3784for as_dir in $PATH
3785do
3786  IFS=$as_save_IFS
3787  test -z "$as_dir" && as_dir=.
3788    for ac_exec_ext in '' $ac_executable_extensions; do
3789  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3790    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3791    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3792    break 2
3793  fi
3794done
3795  done
3796IFS=$as_save_IFS
3797
3798fi
3799fi
3800CC=$ac_cv_prog_CC
3801if test -n "$CC"; then
3802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3803$as_echo "$CC" >&6; }
3804else
3805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3806$as_echo "no" >&6; }
3807fi
3808
3809
3810    test -n "$CC" && break
3811  done
3812fi
3813if test -z "$CC"; then
3814  ac_ct_CC=$CC
3815  for ac_prog in cl.exe
3816do
3817  # Extract the first word of "$ac_prog", so it can be a program name with args.
3818set dummy $ac_prog; ac_word=$2
3819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3820$as_echo_n "checking for $ac_word... " >&6; }
3821if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3822  $as_echo_n "(cached) " >&6
3823else
3824  if test -n "$ac_ct_CC"; then
3825  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3826else
3827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3828for as_dir in $PATH
3829do
3830  IFS=$as_save_IFS
3831  test -z "$as_dir" && as_dir=.
3832    for ac_exec_ext in '' $ac_executable_extensions; do
3833  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3834    ac_cv_prog_ac_ct_CC="$ac_prog"
3835    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3836    break 2
3837  fi
3838done
3839  done
3840IFS=$as_save_IFS
3841
3842fi
3843fi
3844ac_ct_CC=$ac_cv_prog_ac_ct_CC
3845if test -n "$ac_ct_CC"; then
3846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3847$as_echo "$ac_ct_CC" >&6; }
3848else
3849  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3850$as_echo "no" >&6; }
3851fi
3852
3853
3854  test -n "$ac_ct_CC" && break
3855done
3856
3857  if test "x$ac_ct_CC" = x; then
3858    CC=""
3859  else
3860    case $cross_compiling:$ac_tool_warned in
3861yes:)
3862{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3863$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3864ac_tool_warned=yes ;;
3865esac
3866    CC=$ac_ct_CC
3867  fi
3868fi
3869
3870fi
3871
3872
3873test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3874$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3875as_fn_error $? "no acceptable C compiler found in \$PATH
3876See \`config.log' for more details" "$LINENO" 5 ; }
3877
3878# Provide some information about the compiler.
3879$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3880set X $ac_compile
3881ac_compiler=$2
3882for ac_option in --version -v -V -qversion; do
3883  { { ac_try="$ac_compiler $ac_option >&5"
3884case "(($ac_try" in
3885  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3886  *) ac_try_echo=$ac_try;;
3887esac
3888eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3889$as_echo "$ac_try_echo"; } >&5
3890  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3891  ac_status=$?
3892  if test -s conftest.err; then
3893    sed '10a\
3894... rest of stderr output deleted ...
3895         10q' conftest.err >conftest.er1
3896    cat conftest.er1 >&5
3897  fi
3898  rm -f conftest.er1 conftest.err
3899  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3900  test $ac_status = 0; }
3901done
3902
3903cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3904/* end confdefs.h.  */
3905
3906int
3907main ()
3908{
3909
3910  ;
3911  return 0;
3912}
3913_ACEOF
3914ac_clean_files_save=$ac_clean_files
3915ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3916# Try to create an executable without -o first, disregard a.out.
3917# It will help us diagnose broken compilers, and finding out an intuition
3918# of exeext.
3919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3920$as_echo_n "checking whether the C compiler works... " >&6; }
3921ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3922
3923# The possible output files:
3924ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3925
3926ac_rmfiles=
3927for ac_file in $ac_files
3928do
3929  case $ac_file in
3930    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3931    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3932  esac
3933done
3934rm -f $ac_rmfiles
3935
3936if { { ac_try="$ac_link_default"
3937case "(($ac_try" in
3938  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3939  *) ac_try_echo=$ac_try;;
3940esac
3941eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3942$as_echo "$ac_try_echo"; } >&5
3943  (eval "$ac_link_default") 2>&5
3944  ac_status=$?
3945  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3946  test $ac_status = 0; }; then :
3947  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3948# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3949# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3950# so that the user can short-circuit this test for compilers unknown to
3951# Autoconf.
3952for ac_file in $ac_files ''
3953do
3954  test -f "$ac_file" || continue
3955  case $ac_file in
3956    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3957	;;
3958    [ab].out )
3959	# We found the default executable, but exeext='' is most
3960	# certainly right.
3961	break;;
3962    *.* )
3963	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3964	then :; else
3965	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3966	fi
3967	# We set ac_cv_exeext here because the later test for it is not
3968	# safe: cross compilers may not add the suffix if given an `-o'
3969	# argument, so we may need to know it at that point already.
3970	# Even if this section looks crufty: it has the advantage of
3971	# actually working.
3972	break;;
3973    * )
3974	break;;
3975  esac
3976done
3977test "$ac_cv_exeext" = no && ac_cv_exeext=
3978
3979else
3980  ac_file=''
3981fi
3982if test -z "$ac_file"; then :
3983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3984$as_echo "no" >&6; }
3985$as_echo "$as_me: failed program was:" >&5
3986sed 's/^/| /' conftest.$ac_ext >&5
3987
3988{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3989$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3990as_fn_error 77 "C compiler cannot create executables
3991See \`config.log' for more details" "$LINENO" 5 ; }
3992else
3993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3994$as_echo "yes" >&6; }
3995fi
3996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3997$as_echo_n "checking for C compiler default output file name... " >&6; }
3998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3999$as_echo "$ac_file" >&6; }
4000ac_exeext=$ac_cv_exeext
4001
4002rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4003ac_clean_files=$ac_clean_files_save
4004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4005$as_echo_n "checking for suffix of executables... " >&6; }
4006if { { ac_try="$ac_link"
4007case "(($ac_try" in
4008  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4009  *) ac_try_echo=$ac_try;;
4010esac
4011eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4012$as_echo "$ac_try_echo"; } >&5
4013  (eval "$ac_link") 2>&5
4014  ac_status=$?
4015  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4016  test $ac_status = 0; }; then :
4017  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4018# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4019# work properly (i.e., refer to `conftest.exe'), while it won't with
4020# `rm'.
4021for ac_file in conftest.exe conftest conftest.*; do
4022  test -f "$ac_file" || continue
4023  case $ac_file in
4024    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4025    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4026	  break;;
4027    * ) break;;
4028  esac
4029done
4030else
4031  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4032$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4033as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4034See \`config.log' for more details" "$LINENO" 5 ; }
4035fi
4036rm -f conftest conftest$ac_cv_exeext
4037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4038$as_echo "$ac_cv_exeext" >&6; }
4039
4040rm -f conftest.$ac_ext
4041EXEEXT=$ac_cv_exeext
4042ac_exeext=$EXEEXT
4043cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4044/* end confdefs.h.  */
4045#include <stdio.h>
4046int
4047main ()
4048{
4049FILE *f = fopen ("conftest.out", "w");
4050 return ferror (f) || fclose (f) != 0;
4051
4052  ;
4053  return 0;
4054}
4055_ACEOF
4056ac_clean_files="$ac_clean_files conftest.out"
4057# Check that the compiler produces executables we can run.  If not, either
4058# the compiler is broken, or we cross compile.
4059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4060$as_echo_n "checking whether we are cross compiling... " >&6; }
4061if test "$cross_compiling" != yes; then
4062  { { ac_try="$ac_link"
4063case "(($ac_try" in
4064  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4065  *) ac_try_echo=$ac_try;;
4066esac
4067eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4068$as_echo "$ac_try_echo"; } >&5
4069  (eval "$ac_link") 2>&5
4070  ac_status=$?
4071  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4072  test $ac_status = 0; }
4073  if { ac_try='./conftest$ac_cv_exeext'
4074  { { case "(($ac_try" in
4075  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076  *) ac_try_echo=$ac_try;;
4077esac
4078eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4079$as_echo "$ac_try_echo"; } >&5
4080  (eval "$ac_try") 2>&5
4081  ac_status=$?
4082  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4083  test $ac_status = 0; }; }; then
4084    cross_compiling=no
4085  else
4086    if test "$cross_compiling" = maybe; then
4087	cross_compiling=yes
4088    else
4089	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4090$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4091as_fn_error $? "cannot run C compiled programs.
4092If you meant to cross compile, use \`--host'.
4093See \`config.log' for more details" "$LINENO" 5 ; }
4094    fi
4095  fi
4096fi
4097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4098$as_echo "$cross_compiling" >&6; }
4099
4100rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4101ac_clean_files=$ac_clean_files_save
4102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4103$as_echo_n "checking for suffix of object files... " >&6; }
4104if test "${ac_cv_objext+set}" = set; then :
4105  $as_echo_n "(cached) " >&6
4106else
4107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4108/* end confdefs.h.  */
4109
4110int
4111main ()
4112{
4113
4114  ;
4115  return 0;
4116}
4117_ACEOF
4118rm -f conftest.o conftest.obj
4119if { { ac_try="$ac_compile"
4120case "(($ac_try" in
4121  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4122  *) ac_try_echo=$ac_try;;
4123esac
4124eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4125$as_echo "$ac_try_echo"; } >&5
4126  (eval "$ac_compile") 2>&5
4127  ac_status=$?
4128  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4129  test $ac_status = 0; }; then :
4130  for ac_file in conftest.o conftest.obj conftest.*; do
4131  test -f "$ac_file" || continue;
4132  case $ac_file in
4133    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4134    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4135       break;;
4136  esac
4137done
4138else
4139  $as_echo "$as_me: failed program was:" >&5
4140sed 's/^/| /' conftest.$ac_ext >&5
4141
4142{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4143$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4144as_fn_error $? "cannot compute suffix of object files: cannot compile
4145See \`config.log' for more details" "$LINENO" 5 ; }
4146fi
4147rm -f conftest.$ac_cv_objext conftest.$ac_ext
4148fi
4149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4150$as_echo "$ac_cv_objext" >&6; }
4151OBJEXT=$ac_cv_objext
4152ac_objext=$OBJEXT
4153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4154$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4155if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4156  $as_echo_n "(cached) " >&6
4157else
4158  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4159/* end confdefs.h.  */
4160
4161int
4162main ()
4163{
4164#ifndef __GNUC__
4165       choke me
4166#endif
4167
4168  ;
4169  return 0;
4170}
4171_ACEOF
4172if ac_fn_c_try_compile "$LINENO"; then :
4173  ac_compiler_gnu=yes
4174else
4175  ac_compiler_gnu=no
4176fi
4177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4178ac_cv_c_compiler_gnu=$ac_compiler_gnu
4179
4180fi
4181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4182$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4183if test $ac_compiler_gnu = yes; then
4184  GCC=yes
4185else
4186  GCC=
4187fi
4188ac_test_CFLAGS=${CFLAGS+set}
4189ac_save_CFLAGS=$CFLAGS
4190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4191$as_echo_n "checking whether $CC accepts -g... " >&6; }
4192if test "${ac_cv_prog_cc_g+set}" = set; then :
4193  $as_echo_n "(cached) " >&6
4194else
4195  ac_save_c_werror_flag=$ac_c_werror_flag
4196   ac_c_werror_flag=yes
4197   ac_cv_prog_cc_g=no
4198   CFLAGS="-g"
4199   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4200/* end confdefs.h.  */
4201
4202int
4203main ()
4204{
4205
4206  ;
4207  return 0;
4208}
4209_ACEOF
4210if ac_fn_c_try_compile "$LINENO"; then :
4211  ac_cv_prog_cc_g=yes
4212else
4213  CFLAGS=""
4214      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4215/* end confdefs.h.  */
4216
4217int
4218main ()
4219{
4220
4221  ;
4222  return 0;
4223}
4224_ACEOF
4225if ac_fn_c_try_compile "$LINENO"; then :
4226
4227else
4228  ac_c_werror_flag=$ac_save_c_werror_flag
4229	 CFLAGS="-g"
4230	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4231/* end confdefs.h.  */
4232
4233int
4234main ()
4235{
4236
4237  ;
4238  return 0;
4239}
4240_ACEOF
4241if ac_fn_c_try_compile "$LINENO"; then :
4242  ac_cv_prog_cc_g=yes
4243fi
4244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4245fi
4246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4247fi
4248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4249   ac_c_werror_flag=$ac_save_c_werror_flag
4250fi
4251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4252$as_echo "$ac_cv_prog_cc_g" >&6; }
4253if test "$ac_test_CFLAGS" = set; then
4254  CFLAGS=$ac_save_CFLAGS
4255elif test $ac_cv_prog_cc_g = yes; then
4256  if test "$GCC" = yes; then
4257    CFLAGS="-g -O2"
4258  else
4259    CFLAGS="-g"
4260  fi
4261else
4262  if test "$GCC" = yes; then
4263    CFLAGS="-O2"
4264  else
4265    CFLAGS=
4266  fi
4267fi
4268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4269$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4270if test "${ac_cv_prog_cc_c89+set}" = set; then :
4271  $as_echo_n "(cached) " >&6
4272else
4273  ac_cv_prog_cc_c89=no
4274ac_save_CC=$CC
4275cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4276/* end confdefs.h.  */
4277#include <stdarg.h>
4278#include <stdio.h>
4279#include <sys/types.h>
4280#include <sys/stat.h>
4281/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4282struct buf { int x; };
4283FILE * (*rcsopen) (struct buf *, struct stat *, int);
4284static char *e (p, i)
4285     char **p;
4286     int i;
4287{
4288  return p[i];
4289}
4290static char *f (char * (*g) (char **, int), char **p, ...)
4291{
4292  char *s;
4293  va_list v;
4294  va_start (v,p);
4295  s = g (p, va_arg (v,int));
4296  va_end (v);
4297  return s;
4298}
4299
4300/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4301   function prototypes and stuff, but not '\xHH' hex character constants.
4302   These don't provoke an error unfortunately, instead are silently treated
4303   as 'x'.  The following induces an error, until -std is added to get
4304   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4305   array size at least.  It's necessary to write '\x00'==0 to get something
4306   that's true only with -std.  */
4307int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4308
4309/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4310   inside strings and character constants.  */
4311#define FOO(x) 'x'
4312int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4313
4314int test (int i, double x);
4315struct s1 {int (*f) (int a);};
4316struct s2 {int (*f) (double a);};
4317int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4318int argc;
4319char **argv;
4320int
4321main ()
4322{
4323return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4324  ;
4325  return 0;
4326}
4327_ACEOF
4328for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4329	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4330do
4331  CC="$ac_save_CC $ac_arg"
4332  if ac_fn_c_try_compile "$LINENO"; then :
4333  ac_cv_prog_cc_c89=$ac_arg
4334fi
4335rm -f core conftest.err conftest.$ac_objext
4336  test "x$ac_cv_prog_cc_c89" != "xno" && break
4337done
4338rm -f conftest.$ac_ext
4339CC=$ac_save_CC
4340
4341fi
4342# AC_CACHE_VAL
4343case "x$ac_cv_prog_cc_c89" in
4344  x)
4345    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4346$as_echo "none needed" >&6; } ;;
4347  xno)
4348    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4349$as_echo "unsupported" >&6; } ;;
4350  *)
4351    CC="$CC $ac_cv_prog_cc_c89"
4352    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4353$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4354esac
4355if test "x$ac_cv_prog_cc_c89" != xno; then :
4356
4357fi
4358
4359ac_ext=c
4360ac_cpp='$CPP $CPPFLAGS'
4361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4363ac_compiler_gnu=$ac_cv_c_compiler_gnu
4364
4365depcc="$CC"   am_compiler_list=
4366
4367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4368$as_echo_n "checking dependency style of $depcc... " >&6; }
4369if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4370  $as_echo_n "(cached) " >&6
4371else
4372  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4373  # We make a subdir and do the tests there.  Otherwise we can end up
4374  # making bogus files that we don't know about and never remove.  For
4375  # instance it was reported that on HP-UX the gcc test will end up
4376  # making a dummy file named `D' -- because `-MD' means `put the output
4377  # in D'.
4378  mkdir conftest.dir
4379  # Copy depcomp to subdir because otherwise we won't find it if we're
4380  # using a relative directory.
4381  cp "$am_depcomp" conftest.dir
4382  cd conftest.dir
4383  # We will build objects and dependencies in a subdirectory because
4384  # it helps to detect inapplicable dependency modes.  For instance
4385  # both Tru64's cc and ICC support -MD to output dependencies as a
4386  # side effect of compilation, but ICC will put the dependencies in
4387  # the current directory while Tru64 will put them in the object
4388  # directory.
4389  mkdir sub
4390
4391  am_cv_CC_dependencies_compiler_type=none
4392  if test "$am_compiler_list" = ""; then
4393     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4394  fi
4395  am__universal=false
4396  case " $depcc " in #(
4397     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4398     esac
4399
4400  for depmode in $am_compiler_list; do
4401    # Setup a source with many dependencies, because some compilers
4402    # like to wrap large dependency lists on column 80 (with \), and
4403    # we should not choose a depcomp mode which is confused by this.
4404    #
4405    # We need to recreate these files for each test, as the compiler may
4406    # overwrite some of them when testing with obscure command lines.
4407    # This happens at least with the AIX C compiler.
4408    : > sub/conftest.c
4409    for i in 1 2 3 4 5 6; do
4410      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4411      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4412      # Solaris 8's {/usr,}/bin/sh.
4413      touch sub/conftst$i.h
4414    done
4415    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4416
4417    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4418    # mode.  It turns out that the SunPro C++ compiler does not properly
4419    # handle `-M -o', and we need to detect this.  Also, some Intel
4420    # versions had trouble with output in subdirs
4421    am__obj=sub/conftest.${OBJEXT-o}
4422    am__minus_obj="-o $am__obj"
4423    case $depmode in
4424    gcc)
4425      # This depmode causes a compiler race in universal mode.
4426      test "$am__universal" = false || continue
4427      ;;
4428    nosideeffect)
4429      # after this tag, mechanisms are not by side-effect, so they'll
4430      # only be used when explicitly requested
4431      if test "x$enable_dependency_tracking" = xyes; then
4432	continue
4433      else
4434	break
4435      fi
4436      ;;
4437    msvisualcpp | msvcmsys)
4438      # This compiler won't grok `-c -o', but also, the minuso test has
4439      # not run yet.  These depmodes are late enough in the game, and
4440      # so weak that their functioning should not be impacted.
4441      am__obj=conftest.${OBJEXT-o}
4442      am__minus_obj=
4443      ;;
4444    none) break ;;
4445    esac
4446    if depmode=$depmode \
4447       source=sub/conftest.c object=$am__obj \
4448       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4449       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4450         >/dev/null 2>conftest.err &&
4451       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4452       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4453       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4454       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4455      # icc doesn't choke on unknown options, it will just issue warnings
4456      # or remarks (even with -Werror).  So we grep stderr for any message
4457      # that says an option was ignored or not supported.
4458      # When given -MP, icc 7.0 and 7.1 complain thusly:
4459      #   icc: Command line warning: ignoring option '-M'; no argument required
4460      # The diagnosis changed in icc 8.0:
4461      #   icc: Command line remark: option '-MP' not supported
4462      if (grep 'ignoring option' conftest.err ||
4463          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4464        am_cv_CC_dependencies_compiler_type=$depmode
4465        break
4466      fi
4467    fi
4468  done
4469
4470  cd ..
4471  rm -rf conftest.dir
4472else
4473  am_cv_CC_dependencies_compiler_type=none
4474fi
4475
4476fi
4477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4478$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4479CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4480
4481 if
4482  test "x$enable_dependency_tracking" != xno \
4483  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4484  am__fastdepCC_TRUE=
4485  am__fastdepCC_FALSE='#'
4486else
4487  am__fastdepCC_TRUE='#'
4488  am__fastdepCC_FALSE=
4489fi
4490
4491
4492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4493$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4494if test "${ac_cv_path_SED+set}" = set; then :
4495  $as_echo_n "(cached) " >&6
4496else
4497            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4498     for ac_i in 1 2 3 4 5 6 7; do
4499       ac_script="$ac_script$as_nl$ac_script"
4500     done
4501     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4502     { ac_script=; unset ac_script;}
4503     if test -z "$SED"; then
4504  ac_path_SED_found=false
4505  # Loop through the user's path and test for each of PROGNAME-LIST
4506  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507for as_dir in $PATH
4508do
4509  IFS=$as_save_IFS
4510  test -z "$as_dir" && as_dir=.
4511    for ac_prog in sed gsed; do
4512    for ac_exec_ext in '' $ac_executable_extensions; do
4513      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4514      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4515# Check for GNU ac_path_SED and select it if it is found.
4516  # Check for GNU $ac_path_SED
4517case `"$ac_path_SED" --version 2>&1` in
4518*GNU*)
4519  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4520*)
4521  ac_count=0
4522  $as_echo_n 0123456789 >"conftest.in"
4523  while :
4524  do
4525    cat "conftest.in" "conftest.in" >"conftest.tmp"
4526    mv "conftest.tmp" "conftest.in"
4527    cp "conftest.in" "conftest.nl"
4528    $as_echo '' >> "conftest.nl"
4529    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4530    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4531    as_fn_arith $ac_count + 1 && ac_count=$as_val
4532    if test $ac_count -gt ${ac_path_SED_max-0}; then
4533      # Best one so far, save it but keep looking for a better one
4534      ac_cv_path_SED="$ac_path_SED"
4535      ac_path_SED_max=$ac_count
4536    fi
4537    # 10*(2^10) chars as input seems more than enough
4538    test $ac_count -gt 10 && break
4539  done
4540  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4541esac
4542
4543      $ac_path_SED_found && break 3
4544    done
4545  done
4546  done
4547IFS=$as_save_IFS
4548  if test -z "$ac_cv_path_SED"; then
4549    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4550  fi
4551else
4552  ac_cv_path_SED=$SED
4553fi
4554
4555fi
4556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4557$as_echo "$ac_cv_path_SED" >&6; }
4558 SED="$ac_cv_path_SED"
4559  rm -f conftest.sed
4560
4561test -z "$SED" && SED=sed
4562Xsed="$SED -e 1s/^X//"
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4575$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4576if test "${ac_cv_path_GREP+set}" = set; then :
4577  $as_echo_n "(cached) " >&6
4578else
4579  if test -z "$GREP"; then
4580  ac_path_GREP_found=false
4581  # Loop through the user's path and test for each of PROGNAME-LIST
4582  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4583for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4584do
4585  IFS=$as_save_IFS
4586  test -z "$as_dir" && as_dir=.
4587    for ac_prog in grep ggrep; do
4588    for ac_exec_ext in '' $ac_executable_extensions; do
4589      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4590      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4591# Check for GNU ac_path_GREP and select it if it is found.
4592  # Check for GNU $ac_path_GREP
4593case `"$ac_path_GREP" --version 2>&1` in
4594*GNU*)
4595  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4596*)
4597  ac_count=0
4598  $as_echo_n 0123456789 >"conftest.in"
4599  while :
4600  do
4601    cat "conftest.in" "conftest.in" >"conftest.tmp"
4602    mv "conftest.tmp" "conftest.in"
4603    cp "conftest.in" "conftest.nl"
4604    $as_echo 'GREP' >> "conftest.nl"
4605    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4606    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4607    as_fn_arith $ac_count + 1 && ac_count=$as_val
4608    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4609      # Best one so far, save it but keep looking for a better one
4610      ac_cv_path_GREP="$ac_path_GREP"
4611      ac_path_GREP_max=$ac_count
4612    fi
4613    # 10*(2^10) chars as input seems more than enough
4614    test $ac_count -gt 10 && break
4615  done
4616  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4617esac
4618
4619      $ac_path_GREP_found && break 3
4620    done
4621  done
4622  done
4623IFS=$as_save_IFS
4624  if test -z "$ac_cv_path_GREP"; then
4625    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4626  fi
4627else
4628  ac_cv_path_GREP=$GREP
4629fi
4630
4631fi
4632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4633$as_echo "$ac_cv_path_GREP" >&6; }
4634 GREP="$ac_cv_path_GREP"
4635
4636
4637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4638$as_echo_n "checking for egrep... " >&6; }
4639if test "${ac_cv_path_EGREP+set}" = set; then :
4640  $as_echo_n "(cached) " >&6
4641else
4642  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4643   then ac_cv_path_EGREP="$GREP -E"
4644   else
4645     if test -z "$EGREP"; then
4646  ac_path_EGREP_found=false
4647  # Loop through the user's path and test for each of PROGNAME-LIST
4648  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4650do
4651  IFS=$as_save_IFS
4652  test -z "$as_dir" && as_dir=.
4653    for ac_prog in egrep; do
4654    for ac_exec_ext in '' $ac_executable_extensions; do
4655      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4656      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4657# Check for GNU ac_path_EGREP and select it if it is found.
4658  # Check for GNU $ac_path_EGREP
4659case `"$ac_path_EGREP" --version 2>&1` in
4660*GNU*)
4661  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4662*)
4663  ac_count=0
4664  $as_echo_n 0123456789 >"conftest.in"
4665  while :
4666  do
4667    cat "conftest.in" "conftest.in" >"conftest.tmp"
4668    mv "conftest.tmp" "conftest.in"
4669    cp "conftest.in" "conftest.nl"
4670    $as_echo 'EGREP' >> "conftest.nl"
4671    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4672    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4673    as_fn_arith $ac_count + 1 && ac_count=$as_val
4674    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4675      # Best one so far, save it but keep looking for a better one
4676      ac_cv_path_EGREP="$ac_path_EGREP"
4677      ac_path_EGREP_max=$ac_count
4678    fi
4679    # 10*(2^10) chars as input seems more than enough
4680    test $ac_count -gt 10 && break
4681  done
4682  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4683esac
4684
4685      $ac_path_EGREP_found && break 3
4686    done
4687  done
4688  done
4689IFS=$as_save_IFS
4690  if test -z "$ac_cv_path_EGREP"; then
4691    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4692  fi
4693else
4694  ac_cv_path_EGREP=$EGREP
4695fi
4696
4697   fi
4698fi
4699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4700$as_echo "$ac_cv_path_EGREP" >&6; }
4701 EGREP="$ac_cv_path_EGREP"
4702
4703
4704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4705$as_echo_n "checking for fgrep... " >&6; }
4706if test "${ac_cv_path_FGREP+set}" = set; then :
4707  $as_echo_n "(cached) " >&6
4708else
4709  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4710   then ac_cv_path_FGREP="$GREP -F"
4711   else
4712     if test -z "$FGREP"; then
4713  ac_path_FGREP_found=false
4714  # Loop through the user's path and test for each of PROGNAME-LIST
4715  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4716for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4717do
4718  IFS=$as_save_IFS
4719  test -z "$as_dir" && as_dir=.
4720    for ac_prog in fgrep; do
4721    for ac_exec_ext in '' $ac_executable_extensions; do
4722      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4723      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4724# Check for GNU ac_path_FGREP and select it if it is found.
4725  # Check for GNU $ac_path_FGREP
4726case `"$ac_path_FGREP" --version 2>&1` in
4727*GNU*)
4728  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4729*)
4730  ac_count=0
4731  $as_echo_n 0123456789 >"conftest.in"
4732  while :
4733  do
4734    cat "conftest.in" "conftest.in" >"conftest.tmp"
4735    mv "conftest.tmp" "conftest.in"
4736    cp "conftest.in" "conftest.nl"
4737    $as_echo 'FGREP' >> "conftest.nl"
4738    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4739    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4740    as_fn_arith $ac_count + 1 && ac_count=$as_val
4741    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4742      # Best one so far, save it but keep looking for a better one
4743      ac_cv_path_FGREP="$ac_path_FGREP"
4744      ac_path_FGREP_max=$ac_count
4745    fi
4746    # 10*(2^10) chars as input seems more than enough
4747    test $ac_count -gt 10 && break
4748  done
4749  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4750esac
4751
4752      $ac_path_FGREP_found && break 3
4753    done
4754  done
4755  done
4756IFS=$as_save_IFS
4757  if test -z "$ac_cv_path_FGREP"; then
4758    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4759  fi
4760else
4761  ac_cv_path_FGREP=$FGREP
4762fi
4763
4764   fi
4765fi
4766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4767$as_echo "$ac_cv_path_FGREP" >&6; }
4768 FGREP="$ac_cv_path_FGREP"
4769
4770
4771test -z "$GREP" && GREP=grep
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791# Check whether --with-gnu-ld was given.
4792if test "${with_gnu_ld+set}" = set; then :
4793  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4794else
4795  with_gnu_ld=no
4796fi
4797
4798ac_prog=ld
4799if test "$GCC" = yes; then
4800  # Check if gcc -print-prog-name=ld gives a path.
4801  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4802$as_echo_n "checking for ld used by $CC... " >&6; }
4803  case $host in
4804  *-*-mingw*)
4805    # gcc leaves a trailing carriage return which upsets mingw
4806    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4807  *)
4808    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4809  esac
4810  case $ac_prog in
4811    # Accept absolute paths.
4812    [\\/]* | ?:[\\/]*)
4813      re_direlt='/[^/][^/]*/\.\./'
4814      # Canonicalize the pathname of ld
4815      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4816      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4817	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4818      done
4819      test -z "$LD" && LD="$ac_prog"
4820      ;;
4821  "")
4822    # If it fails, then pretend we aren't using GCC.
4823    ac_prog=ld
4824    ;;
4825  *)
4826    # If it is relative, then search for the first ld in PATH.
4827    with_gnu_ld=unknown
4828    ;;
4829  esac
4830elif test "$with_gnu_ld" = yes; then
4831  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4832$as_echo_n "checking for GNU ld... " >&6; }
4833else
4834  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4835$as_echo_n "checking for non-GNU ld... " >&6; }
4836fi
4837if test "${lt_cv_path_LD+set}" = set; then :
4838  $as_echo_n "(cached) " >&6
4839else
4840  if test -z "$LD"; then
4841  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4842  for ac_dir in $PATH; do
4843    IFS="$lt_save_ifs"
4844    test -z "$ac_dir" && ac_dir=.
4845    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4846      lt_cv_path_LD="$ac_dir/$ac_prog"
4847      # Check to see if the program is GNU ld.  I'd rather use --version,
4848      # but apparently some variants of GNU ld only accept -v.
4849      # Break only if it was the GNU/non-GNU ld that we prefer.
4850      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4851      *GNU* | *'with BFD'*)
4852	test "$with_gnu_ld" != no && break
4853	;;
4854      *)
4855	test "$with_gnu_ld" != yes && break
4856	;;
4857      esac
4858    fi
4859  done
4860  IFS="$lt_save_ifs"
4861else
4862  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4863fi
4864fi
4865
4866LD="$lt_cv_path_LD"
4867if test -n "$LD"; then
4868  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4869$as_echo "$LD" >&6; }
4870else
4871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4872$as_echo "no" >&6; }
4873fi
4874test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4876$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4877if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4878  $as_echo_n "(cached) " >&6
4879else
4880  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4881case `$LD -v 2>&1 </dev/null` in
4882*GNU* | *'with BFD'*)
4883  lt_cv_prog_gnu_ld=yes
4884  ;;
4885*)
4886  lt_cv_prog_gnu_ld=no
4887  ;;
4888esac
4889fi
4890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4891$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4892with_gnu_ld=$lt_cv_prog_gnu_ld
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4903$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4904if test "${lt_cv_path_NM+set}" = set; then :
4905  $as_echo_n "(cached) " >&6
4906else
4907  if test -n "$NM"; then
4908  # Let the user override the test.
4909  lt_cv_path_NM="$NM"
4910else
4911  lt_nm_to_check="${ac_tool_prefix}nm"
4912  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4913    lt_nm_to_check="$lt_nm_to_check nm"
4914  fi
4915  for lt_tmp_nm in $lt_nm_to_check; do
4916    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4917    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4918      IFS="$lt_save_ifs"
4919      test -z "$ac_dir" && ac_dir=.
4920      tmp_nm="$ac_dir/$lt_tmp_nm"
4921      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4922	# Check to see if the nm accepts a BSD-compat flag.
4923	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4924	#   nm: unknown option "B" ignored
4925	# Tru64's nm complains that /dev/null is an invalid object file
4926	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4927	*/dev/null* | *'Invalid file or object type'*)
4928	  lt_cv_path_NM="$tmp_nm -B"
4929	  break
4930	  ;;
4931	*)
4932	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4933	  */dev/null*)
4934	    lt_cv_path_NM="$tmp_nm -p"
4935	    break
4936	    ;;
4937	  *)
4938	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4939	    continue # so that we can try to find one that supports BSD flags
4940	    ;;
4941	  esac
4942	  ;;
4943	esac
4944      fi
4945    done
4946    IFS="$lt_save_ifs"
4947  done
4948  : ${lt_cv_path_NM=no}
4949fi
4950fi
4951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4952$as_echo "$lt_cv_path_NM" >&6; }
4953if test "$lt_cv_path_NM" != "no"; then
4954  NM="$lt_cv_path_NM"
4955else
4956  # Didn't find any BSD compatible name lister, look for dumpbin.
4957  if test -n "$ac_tool_prefix"; then
4958  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4959  do
4960    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4961set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4963$as_echo_n "checking for $ac_word... " >&6; }
4964if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4965  $as_echo_n "(cached) " >&6
4966else
4967  if test -n "$DUMPBIN"; then
4968  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4969else
4970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4971for as_dir in $PATH
4972do
4973  IFS=$as_save_IFS
4974  test -z "$as_dir" && as_dir=.
4975    for ac_exec_ext in '' $ac_executable_extensions; do
4976  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4977    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4978    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4979    break 2
4980  fi
4981done
4982  done
4983IFS=$as_save_IFS
4984
4985fi
4986fi
4987DUMPBIN=$ac_cv_prog_DUMPBIN
4988if test -n "$DUMPBIN"; then
4989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4990$as_echo "$DUMPBIN" >&6; }
4991else
4992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4993$as_echo "no" >&6; }
4994fi
4995
4996
4997    test -n "$DUMPBIN" && break
4998  done
4999fi
5000if test -z "$DUMPBIN"; then
5001  ac_ct_DUMPBIN=$DUMPBIN
5002  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5003do
5004  # Extract the first word of "$ac_prog", so it can be a program name with args.
5005set dummy $ac_prog; ac_word=$2
5006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5007$as_echo_n "checking for $ac_word... " >&6; }
5008if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5009  $as_echo_n "(cached) " >&6
5010else
5011  if test -n "$ac_ct_DUMPBIN"; then
5012  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5013else
5014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015for as_dir in $PATH
5016do
5017  IFS=$as_save_IFS
5018  test -z "$as_dir" && as_dir=.
5019    for ac_exec_ext in '' $ac_executable_extensions; do
5020  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5021    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5022    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5023    break 2
5024  fi
5025done
5026  done
5027IFS=$as_save_IFS
5028
5029fi
5030fi
5031ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5032if test -n "$ac_ct_DUMPBIN"; then
5033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5034$as_echo "$ac_ct_DUMPBIN" >&6; }
5035else
5036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5037$as_echo "no" >&6; }
5038fi
5039
5040
5041  test -n "$ac_ct_DUMPBIN" && break
5042done
5043
5044  if test "x$ac_ct_DUMPBIN" = x; then
5045    DUMPBIN=":"
5046  else
5047    case $cross_compiling:$ac_tool_warned in
5048yes:)
5049{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5050$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5051ac_tool_warned=yes ;;
5052esac
5053    DUMPBIN=$ac_ct_DUMPBIN
5054  fi
5055fi
5056
5057
5058  if test "$DUMPBIN" != ":"; then
5059    NM="$DUMPBIN"
5060  fi
5061fi
5062test -z "$NM" && NM=nm
5063
5064
5065
5066
5067
5068
5069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5070$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5071if test "${lt_cv_nm_interface+set}" = set; then :
5072  $as_echo_n "(cached) " >&6
5073else
5074  lt_cv_nm_interface="BSD nm"
5075  echo "int some_variable = 0;" > conftest.$ac_ext
5076  (eval echo "\"\$as_me:5076: $ac_compile\"" >&5)
5077  (eval "$ac_compile" 2>conftest.err)
5078  cat conftest.err >&5
5079  (eval echo "\"\$as_me:5079: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5080  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5081  cat conftest.err >&5
5082  (eval echo "\"\$as_me:5082: output\"" >&5)
5083  cat conftest.out >&5
5084  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5085    lt_cv_nm_interface="MS dumpbin"
5086  fi
5087  rm -f conftest*
5088fi
5089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5090$as_echo "$lt_cv_nm_interface" >&6; }
5091
5092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5093$as_echo_n "checking whether ln -s works... " >&6; }
5094LN_S=$as_ln_s
5095if test "$LN_S" = "ln -s"; then
5096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5097$as_echo "yes" >&6; }
5098else
5099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5100$as_echo "no, using $LN_S" >&6; }
5101fi
5102
5103# find the maximum length of command line arguments
5104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5105$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5106if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5107  $as_echo_n "(cached) " >&6
5108else
5109    i=0
5110  teststring="ABCD"
5111
5112  case $build_os in
5113  msdosdjgpp*)
5114    # On DJGPP, this test can blow up pretty badly due to problems in libc
5115    # (any single argument exceeding 2000 bytes causes a buffer overrun
5116    # during glob expansion).  Even if it were fixed, the result of this
5117    # check would be larger than it should be.
5118    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5119    ;;
5120
5121  gnu*)
5122    # Under GNU Hurd, this test is not required because there is
5123    # no limit to the length of command line arguments.
5124    # Libtool will interpret -1 as no limit whatsoever
5125    lt_cv_sys_max_cmd_len=-1;
5126    ;;
5127
5128  cygwin* | mingw* | cegcc*)
5129    # On Win9x/ME, this test blows up -- it succeeds, but takes
5130    # about 5 minutes as the teststring grows exponentially.
5131    # Worse, since 9x/ME are not pre-emptively multitasking,
5132    # you end up with a "frozen" computer, even though with patience
5133    # the test eventually succeeds (with a max line length of 256k).
5134    # Instead, let's just punt: use the minimum linelength reported by
5135    # all of the supported platforms: 8192 (on NT/2K/XP).
5136    lt_cv_sys_max_cmd_len=8192;
5137    ;;
5138
5139  amigaos*)
5140    # On AmigaOS with pdksh, this test takes hours, literally.
5141    # So we just punt and use a minimum line length of 8192.
5142    lt_cv_sys_max_cmd_len=8192;
5143    ;;
5144
5145  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5146    # This has been around since 386BSD, at least.  Likely further.
5147    if test -x /sbin/sysctl; then
5148      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5149    elif test -x /usr/sbin/sysctl; then
5150      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5151    else
5152      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5153    fi
5154    # And add a safety zone
5155    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5156    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5157    ;;
5158
5159  interix*)
5160    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5161    lt_cv_sys_max_cmd_len=196608
5162    ;;
5163
5164  osf*)
5165    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5166    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5167    # nice to cause kernel panics so lets avoid the loop below.
5168    # First set a reasonable default.
5169    lt_cv_sys_max_cmd_len=16384
5170    #
5171    if test -x /sbin/sysconfig; then
5172      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5173        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5174      esac
5175    fi
5176    ;;
5177  sco3.2v5*)
5178    lt_cv_sys_max_cmd_len=102400
5179    ;;
5180  sysv5* | sco5v6* | sysv4.2uw2*)
5181    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5182    if test -n "$kargmax"; then
5183      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5184    else
5185      lt_cv_sys_max_cmd_len=32768
5186    fi
5187    ;;
5188  *)
5189    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5190    if test -n "$lt_cv_sys_max_cmd_len"; then
5191      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5192      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5193    else
5194      # Make teststring a little bigger before we do anything with it.
5195      # a 1K string should be a reasonable start.
5196      for i in 1 2 3 4 5 6 7 8 ; do
5197        teststring=$teststring$teststring
5198      done
5199      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5200      # If test is not a shell built-in, we'll probably end up computing a
5201      # maximum length that is only half of the actual maximum length, but
5202      # we can't tell.
5203      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5204	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5205	      test $i != 17 # 1/2 MB should be enough
5206      do
5207        i=`expr $i + 1`
5208        teststring=$teststring$teststring
5209      done
5210      # Only check the string length outside the loop.
5211      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5212      teststring=
5213      # Add a significant safety factor because C++ compilers can tack on
5214      # massive amounts of additional arguments before passing them to the
5215      # linker.  It appears as though 1/2 is a usable value.
5216      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5217    fi
5218    ;;
5219  esac
5220
5221fi
5222
5223if test -n $lt_cv_sys_max_cmd_len ; then
5224  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5225$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5226else
5227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5228$as_echo "none" >&6; }
5229fi
5230max_cmd_len=$lt_cv_sys_max_cmd_len
5231
5232
5233
5234
5235
5236
5237: ${CP="cp -f"}
5238: ${MV="mv -f"}
5239: ${RM="rm -f"}
5240
5241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5242$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5243# Try some XSI features
5244xsi_shell=no
5245( _lt_dummy="a/b/c"
5246  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5247      = c,a/b,, \
5248    && eval 'test $(( 1 + 1 )) -eq 2 \
5249    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5250  && xsi_shell=yes
5251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5252$as_echo "$xsi_shell" >&6; }
5253
5254
5255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5256$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5257lt_shell_append=no
5258( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5259    >/dev/null 2>&1 \
5260  && lt_shell_append=yes
5261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5262$as_echo "$lt_shell_append" >&6; }
5263
5264
5265if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5266  lt_unset=unset
5267else
5268  lt_unset=false
5269fi
5270
5271
5272
5273
5274
5275# test EBCDIC or ASCII
5276case `echo X|tr X '\101'` in
5277 A) # ASCII based system
5278    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5279  lt_SP2NL='tr \040 \012'
5280  lt_NL2SP='tr \015\012 \040\040'
5281  ;;
5282 *) # EBCDIC based system
5283  lt_SP2NL='tr \100 \n'
5284  lt_NL2SP='tr \r\n \100\100'
5285  ;;
5286esac
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5297$as_echo_n "checking for $LD option to reload object files... " >&6; }
5298if test "${lt_cv_ld_reload_flag+set}" = set; then :
5299  $as_echo_n "(cached) " >&6
5300else
5301  lt_cv_ld_reload_flag='-r'
5302fi
5303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5304$as_echo "$lt_cv_ld_reload_flag" >&6; }
5305reload_flag=$lt_cv_ld_reload_flag
5306case $reload_flag in
5307"" | " "*) ;;
5308*) reload_flag=" $reload_flag" ;;
5309esac
5310reload_cmds='$LD$reload_flag -o $output$reload_objs'
5311case $host_os in
5312  darwin*)
5313    if test "$GCC" = yes; then
5314      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5315    else
5316      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5317    fi
5318    ;;
5319esac
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329if test -n "$ac_tool_prefix"; then
5330  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5331set dummy ${ac_tool_prefix}objdump; ac_word=$2
5332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5333$as_echo_n "checking for $ac_word... " >&6; }
5334if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5335  $as_echo_n "(cached) " >&6
5336else
5337  if test -n "$OBJDUMP"; then
5338  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5339else
5340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5341for as_dir in $PATH
5342do
5343  IFS=$as_save_IFS
5344  test -z "$as_dir" && as_dir=.
5345    for ac_exec_ext in '' $ac_executable_extensions; do
5346  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5347    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5348    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5349    break 2
5350  fi
5351done
5352  done
5353IFS=$as_save_IFS
5354
5355fi
5356fi
5357OBJDUMP=$ac_cv_prog_OBJDUMP
5358if test -n "$OBJDUMP"; then
5359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5360$as_echo "$OBJDUMP" >&6; }
5361else
5362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5363$as_echo "no" >&6; }
5364fi
5365
5366
5367fi
5368if test -z "$ac_cv_prog_OBJDUMP"; then
5369  ac_ct_OBJDUMP=$OBJDUMP
5370  # Extract the first word of "objdump", so it can be a program name with args.
5371set dummy objdump; ac_word=$2
5372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5373$as_echo_n "checking for $ac_word... " >&6; }
5374if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5375  $as_echo_n "(cached) " >&6
5376else
5377  if test -n "$ac_ct_OBJDUMP"; then
5378  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5379else
5380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5381for as_dir in $PATH
5382do
5383  IFS=$as_save_IFS
5384  test -z "$as_dir" && as_dir=.
5385    for ac_exec_ext in '' $ac_executable_extensions; do
5386  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5387    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5388    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5389    break 2
5390  fi
5391done
5392  done
5393IFS=$as_save_IFS
5394
5395fi
5396fi
5397ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5398if test -n "$ac_ct_OBJDUMP"; then
5399  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5400$as_echo "$ac_ct_OBJDUMP" >&6; }
5401else
5402  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5403$as_echo "no" >&6; }
5404fi
5405
5406  if test "x$ac_ct_OBJDUMP" = x; then
5407    OBJDUMP="false"
5408  else
5409    case $cross_compiling:$ac_tool_warned in
5410yes:)
5411{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5412$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5413ac_tool_warned=yes ;;
5414esac
5415    OBJDUMP=$ac_ct_OBJDUMP
5416  fi
5417else
5418  OBJDUMP="$ac_cv_prog_OBJDUMP"
5419fi
5420
5421test -z "$OBJDUMP" && OBJDUMP=objdump
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5432$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5433if test "${lt_cv_deplibs_check_method+set}" = set; then :
5434  $as_echo_n "(cached) " >&6
5435else
5436  lt_cv_file_magic_cmd='$MAGIC_CMD'
5437lt_cv_file_magic_test_file=
5438lt_cv_deplibs_check_method='unknown'
5439# Need to set the preceding variable on all platforms that support
5440# interlibrary dependencies.
5441# 'none' -- dependencies not supported.
5442# `unknown' -- same as none, but documents that we really don't know.
5443# 'pass_all' -- all dependencies passed with no checks.
5444# 'test_compile' -- check by making test program.
5445# 'file_magic [[regex]]' -- check by looking for files in library path
5446# which responds to the $file_magic_cmd with a given extended regex.
5447# If you have `file' or equivalent on your system and you're not sure
5448# whether `pass_all' will *always* work, you probably want this one.
5449
5450case $host_os in
5451aix[4-9]*)
5452  lt_cv_deplibs_check_method=pass_all
5453  ;;
5454
5455beos*)
5456  lt_cv_deplibs_check_method=pass_all
5457  ;;
5458
5459bsdi[45]*)
5460  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5461  lt_cv_file_magic_cmd='/usr/bin/file -L'
5462  lt_cv_file_magic_test_file=/shlib/libc.so
5463  ;;
5464
5465cygwin*)
5466  # func_win32_libid is a shell function defined in ltmain.sh
5467  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5468  lt_cv_file_magic_cmd='func_win32_libid'
5469  ;;
5470
5471mingw* | pw32*)
5472  # Base MSYS/MinGW do not provide the 'file' command needed by
5473  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5474  # unless we find 'file', for example because we are cross-compiling.
5475  if ( file / ) >/dev/null 2>&1; then
5476    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5477    lt_cv_file_magic_cmd='func_win32_libid'
5478  else
5479    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5480    lt_cv_file_magic_cmd='$OBJDUMP -f'
5481  fi
5482  ;;
5483
5484cegcc)
5485  # use the weaker test based on 'objdump'. See mingw*.
5486  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5487  lt_cv_file_magic_cmd='$OBJDUMP -f'
5488  ;;
5489
5490darwin* | rhapsody*)
5491  lt_cv_deplibs_check_method=pass_all
5492  ;;
5493
5494freebsd* | dragonfly*)
5495  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5496    case $host_cpu in
5497    i*86 )
5498      # Not sure whether the presence of OpenBSD here was a mistake.
5499      # Let's accept both of them until this is cleared up.
5500      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5501      lt_cv_file_magic_cmd=/usr/bin/file
5502      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5503      ;;
5504    esac
5505  else
5506    lt_cv_deplibs_check_method=pass_all
5507  fi
5508  ;;
5509
5510gnu*)
5511  lt_cv_deplibs_check_method=pass_all
5512  ;;
5513
5514hpux10.20* | hpux11*)
5515  lt_cv_file_magic_cmd=/usr/bin/file
5516  case $host_cpu in
5517  ia64*)
5518    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5519    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5520    ;;
5521  hppa*64*)
5522    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5523    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5524    ;;
5525  *)
5526    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5527    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5528    ;;
5529  esac
5530  ;;
5531
5532interix[3-9]*)
5533  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5534  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5535  ;;
5536
5537irix5* | irix6* | nonstopux*)
5538  case $LD in
5539  *-32|*"-32 ") libmagic=32-bit;;
5540  *-n32|*"-n32 ") libmagic=N32;;
5541  *-64|*"-64 ") libmagic=64-bit;;
5542  *) libmagic=never-match;;
5543  esac
5544  lt_cv_deplibs_check_method=pass_all
5545  ;;
5546
5547# This must be Linux ELF.
5548linux* | k*bsd*-gnu | kopensolaris*-gnu)
5549  lt_cv_deplibs_check_method=pass_all
5550  ;;
5551
5552netbsd* | netbsdelf*-gnu)
5553  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5554    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5555  else
5556    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5557  fi
5558  ;;
5559
5560newos6*)
5561  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5562  lt_cv_file_magic_cmd=/usr/bin/file
5563  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5564  ;;
5565
5566*nto* | *qnx*)
5567  lt_cv_deplibs_check_method=pass_all
5568  ;;
5569
5570openbsd*)
5571  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5572    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5573  else
5574    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5575  fi
5576  ;;
5577
5578osf3* | osf4* | osf5*)
5579  lt_cv_deplibs_check_method=pass_all
5580  ;;
5581
5582rdos*)
5583  lt_cv_deplibs_check_method=pass_all
5584  ;;
5585
5586solaris*)
5587  lt_cv_deplibs_check_method=pass_all
5588  ;;
5589
5590sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5591  lt_cv_deplibs_check_method=pass_all
5592  ;;
5593
5594sysv4 | sysv4.3*)
5595  case $host_vendor in
5596  motorola)
5597    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]'
5598    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5599    ;;
5600  ncr)
5601    lt_cv_deplibs_check_method=pass_all
5602    ;;
5603  sequent)
5604    lt_cv_file_magic_cmd='/bin/file'
5605    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5606    ;;
5607  sni)
5608    lt_cv_file_magic_cmd='/bin/file'
5609    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5610    lt_cv_file_magic_test_file=/lib/libc.so
5611    ;;
5612  siemens)
5613    lt_cv_deplibs_check_method=pass_all
5614    ;;
5615  pc)
5616    lt_cv_deplibs_check_method=pass_all
5617    ;;
5618  esac
5619  ;;
5620
5621tpf*)
5622  lt_cv_deplibs_check_method=pass_all
5623  ;;
5624esac
5625
5626fi
5627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5628$as_echo "$lt_cv_deplibs_check_method" >&6; }
5629file_magic_cmd=$lt_cv_file_magic_cmd
5630deplibs_check_method=$lt_cv_deplibs_check_method
5631test -z "$deplibs_check_method" && deplibs_check_method=unknown
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644if test -n "$ac_tool_prefix"; then
5645  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5646set dummy ${ac_tool_prefix}ar; ac_word=$2
5647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5648$as_echo_n "checking for $ac_word... " >&6; }
5649if test "${ac_cv_prog_AR+set}" = set; then :
5650  $as_echo_n "(cached) " >&6
5651else
5652  if test -n "$AR"; then
5653  ac_cv_prog_AR="$AR" # Let the user override the test.
5654else
5655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5656for as_dir in $PATH
5657do
5658  IFS=$as_save_IFS
5659  test -z "$as_dir" && as_dir=.
5660    for ac_exec_ext in '' $ac_executable_extensions; do
5661  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5662    ac_cv_prog_AR="${ac_tool_prefix}ar"
5663    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5664    break 2
5665  fi
5666done
5667  done
5668IFS=$as_save_IFS
5669
5670fi
5671fi
5672AR=$ac_cv_prog_AR
5673if test -n "$AR"; then
5674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5675$as_echo "$AR" >&6; }
5676else
5677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5678$as_echo "no" >&6; }
5679fi
5680
5681
5682fi
5683if test -z "$ac_cv_prog_AR"; then
5684  ac_ct_AR=$AR
5685  # Extract the first word of "ar", so it can be a program name with args.
5686set dummy ar; ac_word=$2
5687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5688$as_echo_n "checking for $ac_word... " >&6; }
5689if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5690  $as_echo_n "(cached) " >&6
5691else
5692  if test -n "$ac_ct_AR"; then
5693  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5694else
5695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696for as_dir in $PATH
5697do
5698  IFS=$as_save_IFS
5699  test -z "$as_dir" && as_dir=.
5700    for ac_exec_ext in '' $ac_executable_extensions; do
5701  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5702    ac_cv_prog_ac_ct_AR="ar"
5703    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5704    break 2
5705  fi
5706done
5707  done
5708IFS=$as_save_IFS
5709
5710fi
5711fi
5712ac_ct_AR=$ac_cv_prog_ac_ct_AR
5713if test -n "$ac_ct_AR"; then
5714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5715$as_echo "$ac_ct_AR" >&6; }
5716else
5717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5718$as_echo "no" >&6; }
5719fi
5720
5721  if test "x$ac_ct_AR" = x; then
5722    AR="false"
5723  else
5724    case $cross_compiling:$ac_tool_warned in
5725yes:)
5726{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5727$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5728ac_tool_warned=yes ;;
5729esac
5730    AR=$ac_ct_AR
5731  fi
5732else
5733  AR="$ac_cv_prog_AR"
5734fi
5735
5736test -z "$AR" && AR=ar
5737test -z "$AR_FLAGS" && AR_FLAGS=cru
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749if test -n "$ac_tool_prefix"; then
5750  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5751set dummy ${ac_tool_prefix}strip; ac_word=$2
5752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5753$as_echo_n "checking for $ac_word... " >&6; }
5754if test "${ac_cv_prog_STRIP+set}" = set; then :
5755  $as_echo_n "(cached) " >&6
5756else
5757  if test -n "$STRIP"; then
5758  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5759else
5760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5761for as_dir in $PATH
5762do
5763  IFS=$as_save_IFS
5764  test -z "$as_dir" && as_dir=.
5765    for ac_exec_ext in '' $ac_executable_extensions; do
5766  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5767    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5768    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5769    break 2
5770  fi
5771done
5772  done
5773IFS=$as_save_IFS
5774
5775fi
5776fi
5777STRIP=$ac_cv_prog_STRIP
5778if test -n "$STRIP"; then
5779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5780$as_echo "$STRIP" >&6; }
5781else
5782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5783$as_echo "no" >&6; }
5784fi
5785
5786
5787fi
5788if test -z "$ac_cv_prog_STRIP"; then
5789  ac_ct_STRIP=$STRIP
5790  # Extract the first word of "strip", so it can be a program name with args.
5791set dummy strip; ac_word=$2
5792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5793$as_echo_n "checking for $ac_word... " >&6; }
5794if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5795  $as_echo_n "(cached) " >&6
5796else
5797  if test -n "$ac_ct_STRIP"; then
5798  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5799else
5800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5801for as_dir in $PATH
5802do
5803  IFS=$as_save_IFS
5804  test -z "$as_dir" && as_dir=.
5805    for ac_exec_ext in '' $ac_executable_extensions; do
5806  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5807    ac_cv_prog_ac_ct_STRIP="strip"
5808    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5809    break 2
5810  fi
5811done
5812  done
5813IFS=$as_save_IFS
5814
5815fi
5816fi
5817ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5818if test -n "$ac_ct_STRIP"; then
5819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5820$as_echo "$ac_ct_STRIP" >&6; }
5821else
5822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5823$as_echo "no" >&6; }
5824fi
5825
5826  if test "x$ac_ct_STRIP" = x; then
5827    STRIP=":"
5828  else
5829    case $cross_compiling:$ac_tool_warned in
5830yes:)
5831{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5832$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5833ac_tool_warned=yes ;;
5834esac
5835    STRIP=$ac_ct_STRIP
5836  fi
5837else
5838  STRIP="$ac_cv_prog_STRIP"
5839fi
5840
5841test -z "$STRIP" && STRIP=:
5842
5843
5844
5845
5846
5847
5848if test -n "$ac_tool_prefix"; then
5849  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5850set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5852$as_echo_n "checking for $ac_word... " >&6; }
5853if test "${ac_cv_prog_RANLIB+set}" = set; then :
5854  $as_echo_n "(cached) " >&6
5855else
5856  if test -n "$RANLIB"; then
5857  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5858else
5859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5860for as_dir in $PATH
5861do
5862  IFS=$as_save_IFS
5863  test -z "$as_dir" && as_dir=.
5864    for ac_exec_ext in '' $ac_executable_extensions; do
5865  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5866    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5867    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5868    break 2
5869  fi
5870done
5871  done
5872IFS=$as_save_IFS
5873
5874fi
5875fi
5876RANLIB=$ac_cv_prog_RANLIB
5877if test -n "$RANLIB"; then
5878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5879$as_echo "$RANLIB" >&6; }
5880else
5881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5882$as_echo "no" >&6; }
5883fi
5884
5885
5886fi
5887if test -z "$ac_cv_prog_RANLIB"; then
5888  ac_ct_RANLIB=$RANLIB
5889  # Extract the first word of "ranlib", so it can be a program name with args.
5890set dummy ranlib; ac_word=$2
5891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5892$as_echo_n "checking for $ac_word... " >&6; }
5893if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5894  $as_echo_n "(cached) " >&6
5895else
5896  if test -n "$ac_ct_RANLIB"; then
5897  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5898else
5899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5900for as_dir in $PATH
5901do
5902  IFS=$as_save_IFS
5903  test -z "$as_dir" && as_dir=.
5904    for ac_exec_ext in '' $ac_executable_extensions; do
5905  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5906    ac_cv_prog_ac_ct_RANLIB="ranlib"
5907    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5908    break 2
5909  fi
5910done
5911  done
5912IFS=$as_save_IFS
5913
5914fi
5915fi
5916ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5917if test -n "$ac_ct_RANLIB"; then
5918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5919$as_echo "$ac_ct_RANLIB" >&6; }
5920else
5921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5922$as_echo "no" >&6; }
5923fi
5924
5925  if test "x$ac_ct_RANLIB" = x; then
5926    RANLIB=":"
5927  else
5928    case $cross_compiling:$ac_tool_warned in
5929yes:)
5930{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5931$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5932ac_tool_warned=yes ;;
5933esac
5934    RANLIB=$ac_ct_RANLIB
5935  fi
5936else
5937  RANLIB="$ac_cv_prog_RANLIB"
5938fi
5939
5940test -z "$RANLIB" && RANLIB=:
5941
5942
5943
5944
5945
5946
5947# Determine commands to create old-style static archives.
5948old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5949old_postinstall_cmds='chmod 644 $oldlib'
5950old_postuninstall_cmds=
5951
5952if test -n "$RANLIB"; then
5953  case $host_os in
5954  openbsd*)
5955    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5956    ;;
5957  *)
5958    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5959    ;;
5960  esac
5961  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5962fi
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997# If no C compiler was specified, use CC.
5998LTCC=${LTCC-"$CC"}
5999
6000# If no C compiler flags were specified, use CFLAGS.
6001LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6002
6003# Allow CC to be a program name with arguments.
6004compiler=$CC
6005
6006
6007# Check for command to grab the raw symbol name followed by C symbol from nm.
6008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6009$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6010if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6011  $as_echo_n "(cached) " >&6
6012else
6013
6014# These are sane defaults that work on at least a few old systems.
6015# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6016
6017# Character class describing NM global symbol codes.
6018symcode='[BCDEGRST]'
6019
6020# Regexp to match symbols that can be accessed directly from C.
6021sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6022
6023# Define system-specific variables.
6024case $host_os in
6025aix*)
6026  symcode='[BCDT]'
6027  ;;
6028cygwin* | mingw* | pw32* | cegcc*)
6029  symcode='[ABCDGISTW]'
6030  ;;
6031hpux*)
6032  if test "$host_cpu" = ia64; then
6033    symcode='[ABCDEGRST]'
6034  fi
6035  ;;
6036irix* | nonstopux*)
6037  symcode='[BCDEGRST]'
6038  ;;
6039osf*)
6040  symcode='[BCDEGQRST]'
6041  ;;
6042solaris*)
6043  symcode='[BDRT]'
6044  ;;
6045sco3.2v5*)
6046  symcode='[DT]'
6047  ;;
6048sysv4.2uw2*)
6049  symcode='[DT]'
6050  ;;
6051sysv5* | sco5v6* | unixware* | OpenUNIX*)
6052  symcode='[ABDT]'
6053  ;;
6054sysv4)
6055  symcode='[DFNSTU]'
6056  ;;
6057esac
6058
6059# If we're using GNU nm, then use its standard symbol codes.
6060case `$NM -V 2>&1` in
6061*GNU* | *'with BFD'*)
6062  symcode='[ABCDGIRSTW]' ;;
6063esac
6064
6065# Transform an extracted symbol line into a proper C declaration.
6066# Some systems (esp. on ia64) link data and code symbols differently,
6067# so use this general approach.
6068lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6069
6070# Transform an extracted symbol line into symbol name and symbol address
6071lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6072lt_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'"
6073
6074# Handle CRLF in mingw tool chain
6075opt_cr=
6076case $build_os in
6077mingw*)
6078  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6079  ;;
6080esac
6081
6082# Try without a prefix underscore, then with it.
6083for ac_symprfx in "" "_"; do
6084
6085  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6086  symxfrm="\\1 $ac_symprfx\\2 \\2"
6087
6088  # Write the raw and C identifiers.
6089  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6090    # Fake it for dumpbin and say T for any non-static function
6091    # and D for any global variable.
6092    # Also find C++ and __fastcall symbols from MSVC++,
6093    # which start with @ or ?.
6094    lt_cv_sys_global_symbol_pipe="$AWK '"\
6095"     {last_section=section; section=\$ 3};"\
6096"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6097"     \$ 0!~/External *\|/{next};"\
6098"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6099"     {if(hide[section]) next};"\
6100"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6101"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6102"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6103"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6104"     ' prfx=^$ac_symprfx"
6105  else
6106    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6107  fi
6108
6109  # Check to see that the pipe works correctly.
6110  pipe_works=no
6111
6112  rm -f conftest*
6113  cat > conftest.$ac_ext <<_LT_EOF
6114#ifdef __cplusplus
6115extern "C" {
6116#endif
6117char nm_test_var;
6118void nm_test_func(void);
6119void nm_test_func(void){}
6120#ifdef __cplusplus
6121}
6122#endif
6123int main(){nm_test_var='a';nm_test_func();return(0);}
6124_LT_EOF
6125
6126  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6127  (eval $ac_compile) 2>&5
6128  ac_status=$?
6129  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6130  test $ac_status = 0; }; then
6131    # Now try to grab the symbols.
6132    nlist=conftest.nm
6133    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6134  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6135  ac_status=$?
6136  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6137  test $ac_status = 0; } && test -s "$nlist"; then
6138      # Try sorting and uniquifying the output.
6139      if sort "$nlist" | uniq > "$nlist"T; then
6140	mv -f "$nlist"T "$nlist"
6141      else
6142	rm -f "$nlist"T
6143      fi
6144
6145      # Make sure that we snagged all the symbols we need.
6146      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6147	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6148	  cat <<_LT_EOF > conftest.$ac_ext
6149#ifdef __cplusplus
6150extern "C" {
6151#endif
6152
6153_LT_EOF
6154	  # Now generate the symbol file.
6155	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6156
6157	  cat <<_LT_EOF >> conftest.$ac_ext
6158
6159/* The mapping between symbol names and symbols.  */
6160const struct {
6161  const char *name;
6162  void       *address;
6163}
6164lt__PROGRAM__LTX_preloaded_symbols[] =
6165{
6166  { "@PROGRAM@", (void *) 0 },
6167_LT_EOF
6168	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6169	  cat <<\_LT_EOF >> conftest.$ac_ext
6170  {0, (void *) 0}
6171};
6172
6173/* This works around a problem in FreeBSD linker */
6174#ifdef FREEBSD_WORKAROUND
6175static const void *lt_preloaded_setup() {
6176  return lt__PROGRAM__LTX_preloaded_symbols;
6177}
6178#endif
6179
6180#ifdef __cplusplus
6181}
6182#endif
6183_LT_EOF
6184	  # Now try linking the two files.
6185	  mv conftest.$ac_objext conftstm.$ac_objext
6186	  lt_save_LIBS="$LIBS"
6187	  lt_save_CFLAGS="$CFLAGS"
6188	  LIBS="conftstm.$ac_objext"
6189	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6190	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6191  (eval $ac_link) 2>&5
6192  ac_status=$?
6193  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6194  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6195	    pipe_works=yes
6196	  fi
6197	  LIBS="$lt_save_LIBS"
6198	  CFLAGS="$lt_save_CFLAGS"
6199	else
6200	  echo "cannot find nm_test_func in $nlist" >&5
6201	fi
6202      else
6203	echo "cannot find nm_test_var in $nlist" >&5
6204      fi
6205    else
6206      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6207    fi
6208  else
6209    echo "$progname: failed program was:" >&5
6210    cat conftest.$ac_ext >&5
6211  fi
6212  rm -rf conftest* conftst*
6213
6214  # Do not use the global_symbol_pipe unless it works.
6215  if test "$pipe_works" = yes; then
6216    break
6217  else
6218    lt_cv_sys_global_symbol_pipe=
6219  fi
6220done
6221
6222fi
6223
6224if test -z "$lt_cv_sys_global_symbol_pipe"; then
6225  lt_cv_sys_global_symbol_to_cdecl=
6226fi
6227if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6229$as_echo "failed" >&6; }
6230else
6231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6232$as_echo "ok" >&6; }
6233fi
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257# Check whether --enable-libtool-lock was given.
6258if test "${enable_libtool_lock+set}" = set; then :
6259  enableval=$enable_libtool_lock;
6260fi
6261
6262test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6263
6264# Some flags need to be propagated to the compiler or linker for good
6265# libtool support.
6266case $host in
6267ia64-*-hpux*)
6268  # Find out which ABI we are using.
6269  echo 'int i;' > conftest.$ac_ext
6270  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6271  (eval $ac_compile) 2>&5
6272  ac_status=$?
6273  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6274  test $ac_status = 0; }; then
6275    case `/usr/bin/file conftest.$ac_objext` in
6276      *ELF-32*)
6277	HPUX_IA64_MODE="32"
6278	;;
6279      *ELF-64*)
6280	HPUX_IA64_MODE="64"
6281	;;
6282    esac
6283  fi
6284  rm -rf conftest*
6285  ;;
6286*-*-irix6*)
6287  # Find out which ABI we are using.
6288  echo '#line 6288 "configure"' > conftest.$ac_ext
6289  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6290  (eval $ac_compile) 2>&5
6291  ac_status=$?
6292  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6293  test $ac_status = 0; }; then
6294    if test "$lt_cv_prog_gnu_ld" = yes; then
6295      case `/usr/bin/file conftest.$ac_objext` in
6296	*32-bit*)
6297	  LD="${LD-ld} -melf32bsmip"
6298	  ;;
6299	*N32*)
6300	  LD="${LD-ld} -melf32bmipn32"
6301	  ;;
6302	*64-bit*)
6303	  LD="${LD-ld} -melf64bmip"
6304	;;
6305      esac
6306    else
6307      case `/usr/bin/file conftest.$ac_objext` in
6308	*32-bit*)
6309	  LD="${LD-ld} -32"
6310	  ;;
6311	*N32*)
6312	  LD="${LD-ld} -n32"
6313	  ;;
6314	*64-bit*)
6315	  LD="${LD-ld} -64"
6316	  ;;
6317      esac
6318    fi
6319  fi
6320  rm -rf conftest*
6321  ;;
6322
6323x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6324s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6325  # Find out which ABI we are using.
6326  echo 'int i;' > conftest.$ac_ext
6327  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6328  (eval $ac_compile) 2>&5
6329  ac_status=$?
6330  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6331  test $ac_status = 0; }; then
6332    case `/usr/bin/file conftest.o` in
6333      *32-bit*)
6334	case $host in
6335	  x86_64-*kfreebsd*-gnu)
6336	    LD="${LD-ld} -m elf_i386_fbsd"
6337	    ;;
6338	  x86_64-*linux*)
6339	    LD="${LD-ld} -m elf_i386"
6340	    ;;
6341	  ppc64-*linux*|powerpc64-*linux*)
6342	    LD="${LD-ld} -m elf32ppclinux"
6343	    ;;
6344	  s390x-*linux*)
6345	    LD="${LD-ld} -m elf_s390"
6346	    ;;
6347	  sparc64-*linux*)
6348	    LD="${LD-ld} -m elf32_sparc"
6349	    ;;
6350	esac
6351	;;
6352      *64-bit*)
6353	case $host in
6354	  x86_64-*kfreebsd*-gnu)
6355	    LD="${LD-ld} -m elf_x86_64_fbsd"
6356	    ;;
6357	  x86_64-*linux*)
6358	    LD="${LD-ld} -m elf_x86_64"
6359	    ;;
6360	  ppc*-*linux*|powerpc*-*linux*)
6361	    LD="${LD-ld} -m elf64ppc"
6362	    ;;
6363	  s390*-*linux*|s390*-*tpf*)
6364	    LD="${LD-ld} -m elf64_s390"
6365	    ;;
6366	  sparc*-*linux*)
6367	    LD="${LD-ld} -m elf64_sparc"
6368	    ;;
6369	esac
6370	;;
6371    esac
6372  fi
6373  rm -rf conftest*
6374  ;;
6375
6376*-*-sco3.2v5*)
6377  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6378  SAVE_CFLAGS="$CFLAGS"
6379  CFLAGS="$CFLAGS -belf"
6380  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6381$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6382if test "${lt_cv_cc_needs_belf+set}" = set; then :
6383  $as_echo_n "(cached) " >&6
6384else
6385  ac_ext=c
6386ac_cpp='$CPP $CPPFLAGS'
6387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6389ac_compiler_gnu=$ac_cv_c_compiler_gnu
6390
6391     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6392/* end confdefs.h.  */
6393
6394int
6395main ()
6396{
6397
6398  ;
6399  return 0;
6400}
6401_ACEOF
6402if ac_fn_c_try_link "$LINENO"; then :
6403  lt_cv_cc_needs_belf=yes
6404else
6405  lt_cv_cc_needs_belf=no
6406fi
6407rm -f core conftest.err conftest.$ac_objext \
6408    conftest$ac_exeext conftest.$ac_ext
6409     ac_ext=c
6410ac_cpp='$CPP $CPPFLAGS'
6411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6413ac_compiler_gnu=$ac_cv_c_compiler_gnu
6414
6415fi
6416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6417$as_echo "$lt_cv_cc_needs_belf" >&6; }
6418  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6419    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6420    CFLAGS="$SAVE_CFLAGS"
6421  fi
6422  ;;
6423sparc*-*solaris*)
6424  # Find out which ABI we are using.
6425  echo 'int i;' > conftest.$ac_ext
6426  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6427  (eval $ac_compile) 2>&5
6428  ac_status=$?
6429  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6430  test $ac_status = 0; }; then
6431    case `/usr/bin/file conftest.o` in
6432    *64-bit*)
6433      case $lt_cv_prog_gnu_ld in
6434      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6435      *)
6436	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6437	  LD="${LD-ld} -64"
6438	fi
6439	;;
6440      esac
6441      ;;
6442    esac
6443  fi
6444  rm -rf conftest*
6445  ;;
6446esac
6447
6448need_locks="$enable_libtool_lock"
6449
6450
6451  case $host_os in
6452    rhapsody* | darwin*)
6453    if test -n "$ac_tool_prefix"; then
6454  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6455set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6457$as_echo_n "checking for $ac_word... " >&6; }
6458if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6459  $as_echo_n "(cached) " >&6
6460else
6461  if test -n "$DSYMUTIL"; then
6462  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6463else
6464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465for as_dir in $PATH
6466do
6467  IFS=$as_save_IFS
6468  test -z "$as_dir" && as_dir=.
6469    for ac_exec_ext in '' $ac_executable_extensions; do
6470  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6471    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6472    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6473    break 2
6474  fi
6475done
6476  done
6477IFS=$as_save_IFS
6478
6479fi
6480fi
6481DSYMUTIL=$ac_cv_prog_DSYMUTIL
6482if test -n "$DSYMUTIL"; then
6483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6484$as_echo "$DSYMUTIL" >&6; }
6485else
6486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6487$as_echo "no" >&6; }
6488fi
6489
6490
6491fi
6492if test -z "$ac_cv_prog_DSYMUTIL"; then
6493  ac_ct_DSYMUTIL=$DSYMUTIL
6494  # Extract the first word of "dsymutil", so it can be a program name with args.
6495set dummy dsymutil; ac_word=$2
6496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6497$as_echo_n "checking for $ac_word... " >&6; }
6498if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6499  $as_echo_n "(cached) " >&6
6500else
6501  if test -n "$ac_ct_DSYMUTIL"; then
6502  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6503else
6504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6505for as_dir in $PATH
6506do
6507  IFS=$as_save_IFS
6508  test -z "$as_dir" && as_dir=.
6509    for ac_exec_ext in '' $ac_executable_extensions; do
6510  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6511    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6512    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6513    break 2
6514  fi
6515done
6516  done
6517IFS=$as_save_IFS
6518
6519fi
6520fi
6521ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6522if test -n "$ac_ct_DSYMUTIL"; then
6523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6524$as_echo "$ac_ct_DSYMUTIL" >&6; }
6525else
6526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6527$as_echo "no" >&6; }
6528fi
6529
6530  if test "x$ac_ct_DSYMUTIL" = x; then
6531    DSYMUTIL=":"
6532  else
6533    case $cross_compiling:$ac_tool_warned in
6534yes:)
6535{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6536$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6537ac_tool_warned=yes ;;
6538esac
6539    DSYMUTIL=$ac_ct_DSYMUTIL
6540  fi
6541else
6542  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6543fi
6544
6545    if test -n "$ac_tool_prefix"; then
6546  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6547set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6549$as_echo_n "checking for $ac_word... " >&6; }
6550if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6551  $as_echo_n "(cached) " >&6
6552else
6553  if test -n "$NMEDIT"; then
6554  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6555else
6556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557for as_dir in $PATH
6558do
6559  IFS=$as_save_IFS
6560  test -z "$as_dir" && as_dir=.
6561    for ac_exec_ext in '' $ac_executable_extensions; do
6562  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6563    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6564    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6565    break 2
6566  fi
6567done
6568  done
6569IFS=$as_save_IFS
6570
6571fi
6572fi
6573NMEDIT=$ac_cv_prog_NMEDIT
6574if test -n "$NMEDIT"; then
6575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6576$as_echo "$NMEDIT" >&6; }
6577else
6578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6579$as_echo "no" >&6; }
6580fi
6581
6582
6583fi
6584if test -z "$ac_cv_prog_NMEDIT"; then
6585  ac_ct_NMEDIT=$NMEDIT
6586  # Extract the first word of "nmedit", so it can be a program name with args.
6587set dummy nmedit; ac_word=$2
6588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6589$as_echo_n "checking for $ac_word... " >&6; }
6590if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6591  $as_echo_n "(cached) " >&6
6592else
6593  if test -n "$ac_ct_NMEDIT"; then
6594  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6595else
6596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6597for as_dir in $PATH
6598do
6599  IFS=$as_save_IFS
6600  test -z "$as_dir" && as_dir=.
6601    for ac_exec_ext in '' $ac_executable_extensions; do
6602  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6603    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6604    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6605    break 2
6606  fi
6607done
6608  done
6609IFS=$as_save_IFS
6610
6611fi
6612fi
6613ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6614if test -n "$ac_ct_NMEDIT"; then
6615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6616$as_echo "$ac_ct_NMEDIT" >&6; }
6617else
6618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6619$as_echo "no" >&6; }
6620fi
6621
6622  if test "x$ac_ct_NMEDIT" = x; then
6623    NMEDIT=":"
6624  else
6625    case $cross_compiling:$ac_tool_warned in
6626yes:)
6627{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6628$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6629ac_tool_warned=yes ;;
6630esac
6631    NMEDIT=$ac_ct_NMEDIT
6632  fi
6633else
6634  NMEDIT="$ac_cv_prog_NMEDIT"
6635fi
6636
6637    if test -n "$ac_tool_prefix"; then
6638  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6639set dummy ${ac_tool_prefix}lipo; ac_word=$2
6640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6641$as_echo_n "checking for $ac_word... " >&6; }
6642if test "${ac_cv_prog_LIPO+set}" = set; then :
6643  $as_echo_n "(cached) " >&6
6644else
6645  if test -n "$LIPO"; then
6646  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6647else
6648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6649for as_dir in $PATH
6650do
6651  IFS=$as_save_IFS
6652  test -z "$as_dir" && as_dir=.
6653    for ac_exec_ext in '' $ac_executable_extensions; do
6654  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6655    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6656    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6657    break 2
6658  fi
6659done
6660  done
6661IFS=$as_save_IFS
6662
6663fi
6664fi
6665LIPO=$ac_cv_prog_LIPO
6666if test -n "$LIPO"; then
6667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6668$as_echo "$LIPO" >&6; }
6669else
6670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6671$as_echo "no" >&6; }
6672fi
6673
6674
6675fi
6676if test -z "$ac_cv_prog_LIPO"; then
6677  ac_ct_LIPO=$LIPO
6678  # Extract the first word of "lipo", so it can be a program name with args.
6679set dummy lipo; ac_word=$2
6680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6681$as_echo_n "checking for $ac_word... " >&6; }
6682if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6683  $as_echo_n "(cached) " >&6
6684else
6685  if test -n "$ac_ct_LIPO"; then
6686  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6687else
6688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6689for as_dir in $PATH
6690do
6691  IFS=$as_save_IFS
6692  test -z "$as_dir" && as_dir=.
6693    for ac_exec_ext in '' $ac_executable_extensions; do
6694  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6695    ac_cv_prog_ac_ct_LIPO="lipo"
6696    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6697    break 2
6698  fi
6699done
6700  done
6701IFS=$as_save_IFS
6702
6703fi
6704fi
6705ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6706if test -n "$ac_ct_LIPO"; then
6707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6708$as_echo "$ac_ct_LIPO" >&6; }
6709else
6710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6711$as_echo "no" >&6; }
6712fi
6713
6714  if test "x$ac_ct_LIPO" = x; then
6715    LIPO=":"
6716  else
6717    case $cross_compiling:$ac_tool_warned in
6718yes:)
6719{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6720$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6721ac_tool_warned=yes ;;
6722esac
6723    LIPO=$ac_ct_LIPO
6724  fi
6725else
6726  LIPO="$ac_cv_prog_LIPO"
6727fi
6728
6729    if test -n "$ac_tool_prefix"; then
6730  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6731set dummy ${ac_tool_prefix}otool; ac_word=$2
6732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6733$as_echo_n "checking for $ac_word... " >&6; }
6734if test "${ac_cv_prog_OTOOL+set}" = set; then :
6735  $as_echo_n "(cached) " >&6
6736else
6737  if test -n "$OTOOL"; then
6738  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6739else
6740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6741for as_dir in $PATH
6742do
6743  IFS=$as_save_IFS
6744  test -z "$as_dir" && as_dir=.
6745    for ac_exec_ext in '' $ac_executable_extensions; do
6746  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6747    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6748    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6749    break 2
6750  fi
6751done
6752  done
6753IFS=$as_save_IFS
6754
6755fi
6756fi
6757OTOOL=$ac_cv_prog_OTOOL
6758if test -n "$OTOOL"; then
6759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6760$as_echo "$OTOOL" >&6; }
6761else
6762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6763$as_echo "no" >&6; }
6764fi
6765
6766
6767fi
6768if test -z "$ac_cv_prog_OTOOL"; then
6769  ac_ct_OTOOL=$OTOOL
6770  # Extract the first word of "otool", so it can be a program name with args.
6771set dummy otool; ac_word=$2
6772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6773$as_echo_n "checking for $ac_word... " >&6; }
6774if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6775  $as_echo_n "(cached) " >&6
6776else
6777  if test -n "$ac_ct_OTOOL"; then
6778  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6779else
6780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6781for as_dir in $PATH
6782do
6783  IFS=$as_save_IFS
6784  test -z "$as_dir" && as_dir=.
6785    for ac_exec_ext in '' $ac_executable_extensions; do
6786  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6787    ac_cv_prog_ac_ct_OTOOL="otool"
6788    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6789    break 2
6790  fi
6791done
6792  done
6793IFS=$as_save_IFS
6794
6795fi
6796fi
6797ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6798if test -n "$ac_ct_OTOOL"; then
6799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6800$as_echo "$ac_ct_OTOOL" >&6; }
6801else
6802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6803$as_echo "no" >&6; }
6804fi
6805
6806  if test "x$ac_ct_OTOOL" = x; then
6807    OTOOL=":"
6808  else
6809    case $cross_compiling:$ac_tool_warned in
6810yes:)
6811{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6812$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6813ac_tool_warned=yes ;;
6814esac
6815    OTOOL=$ac_ct_OTOOL
6816  fi
6817else
6818  OTOOL="$ac_cv_prog_OTOOL"
6819fi
6820
6821    if test -n "$ac_tool_prefix"; then
6822  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6823set dummy ${ac_tool_prefix}otool64; ac_word=$2
6824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6825$as_echo_n "checking for $ac_word... " >&6; }
6826if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6827  $as_echo_n "(cached) " >&6
6828else
6829  if test -n "$OTOOL64"; then
6830  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6831else
6832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833for as_dir in $PATH
6834do
6835  IFS=$as_save_IFS
6836  test -z "$as_dir" && as_dir=.
6837    for ac_exec_ext in '' $ac_executable_extensions; do
6838  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6839    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6840    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6841    break 2
6842  fi
6843done
6844  done
6845IFS=$as_save_IFS
6846
6847fi
6848fi
6849OTOOL64=$ac_cv_prog_OTOOL64
6850if test -n "$OTOOL64"; then
6851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6852$as_echo "$OTOOL64" >&6; }
6853else
6854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6855$as_echo "no" >&6; }
6856fi
6857
6858
6859fi
6860if test -z "$ac_cv_prog_OTOOL64"; then
6861  ac_ct_OTOOL64=$OTOOL64
6862  # Extract the first word of "otool64", so it can be a program name with args.
6863set dummy otool64; ac_word=$2
6864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6865$as_echo_n "checking for $ac_word... " >&6; }
6866if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6867  $as_echo_n "(cached) " >&6
6868else
6869  if test -n "$ac_ct_OTOOL64"; then
6870  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6871else
6872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6873for as_dir in $PATH
6874do
6875  IFS=$as_save_IFS
6876  test -z "$as_dir" && as_dir=.
6877    for ac_exec_ext in '' $ac_executable_extensions; do
6878  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6879    ac_cv_prog_ac_ct_OTOOL64="otool64"
6880    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6881    break 2
6882  fi
6883done
6884  done
6885IFS=$as_save_IFS
6886
6887fi
6888fi
6889ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6890if test -n "$ac_ct_OTOOL64"; then
6891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6892$as_echo "$ac_ct_OTOOL64" >&6; }
6893else
6894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6895$as_echo "no" >&6; }
6896fi
6897
6898  if test "x$ac_ct_OTOOL64" = x; then
6899    OTOOL64=":"
6900  else
6901    case $cross_compiling:$ac_tool_warned in
6902yes:)
6903{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6904$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6905ac_tool_warned=yes ;;
6906esac
6907    OTOOL64=$ac_ct_OTOOL64
6908  fi
6909else
6910  OTOOL64="$ac_cv_prog_OTOOL64"
6911fi
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6940$as_echo_n "checking for -single_module linker flag... " >&6; }
6941if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6942  $as_echo_n "(cached) " >&6
6943else
6944  lt_cv_apple_cc_single_mod=no
6945      if test -z "${LT_MULTI_MODULE}"; then
6946	# By default we will add the -single_module flag. You can override
6947	# by either setting the environment variable LT_MULTI_MODULE
6948	# non-empty at configure time, or by adding -multi_module to the
6949	# link flags.
6950	rm -rf libconftest.dylib*
6951	echo "int foo(void){return 1;}" > conftest.c
6952	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6953-dynamiclib -Wl,-single_module conftest.c" >&5
6954	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6955	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6956        _lt_result=$?
6957	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6958	  lt_cv_apple_cc_single_mod=yes
6959	else
6960	  cat conftest.err >&5
6961	fi
6962	rm -rf libconftest.dylib*
6963	rm -f conftest.*
6964      fi
6965fi
6966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6967$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6968    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6969$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6970if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6971  $as_echo_n "(cached) " >&6
6972else
6973  lt_cv_ld_exported_symbols_list=no
6974      save_LDFLAGS=$LDFLAGS
6975      echo "_main" > conftest.sym
6976      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6977      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6978/* end confdefs.h.  */
6979
6980int
6981main ()
6982{
6983
6984  ;
6985  return 0;
6986}
6987_ACEOF
6988if ac_fn_c_try_link "$LINENO"; then :
6989  lt_cv_ld_exported_symbols_list=yes
6990else
6991  lt_cv_ld_exported_symbols_list=no
6992fi
6993rm -f core conftest.err conftest.$ac_objext \
6994    conftest$ac_exeext conftest.$ac_ext
6995	LDFLAGS="$save_LDFLAGS"
6996
6997fi
6998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6999$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7000    case $host_os in
7001    rhapsody* | darwin1.[012])
7002      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7003    darwin1.*)
7004      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7005    darwin*) # darwin 5.x on
7006      # if running on 10.5 or later, the deployment target defaults
7007      # to the OS version, if on x86, and 10.4, the deployment
7008      # target defaults to 10.4. Don't you love it?
7009      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7010	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7011	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7012	10.[012]*)
7013	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7014	10.*)
7015	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7016      esac
7017    ;;
7018  esac
7019    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7020      _lt_dar_single_mod='$single_module'
7021    fi
7022    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7023      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7024    else
7025      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7026    fi
7027    if test "$DSYMUTIL" != ":"; then
7028      _lt_dsymutil='~$DSYMUTIL $lib || :'
7029    else
7030      _lt_dsymutil=
7031    fi
7032    ;;
7033  esac
7034
7035ac_ext=c
7036ac_cpp='$CPP $CPPFLAGS'
7037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7039ac_compiler_gnu=$ac_cv_c_compiler_gnu
7040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7041$as_echo_n "checking how to run the C preprocessor... " >&6; }
7042# On Suns, sometimes $CPP names a directory.
7043if test -n "$CPP" && test -d "$CPP"; then
7044  CPP=
7045fi
7046if test -z "$CPP"; then
7047  if test "${ac_cv_prog_CPP+set}" = set; then :
7048  $as_echo_n "(cached) " >&6
7049else
7050      # Double quotes because CPP needs to be expanded
7051    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7052    do
7053      ac_preproc_ok=false
7054for ac_c_preproc_warn_flag in '' yes
7055do
7056  # Use a header file that comes with gcc, so configuring glibc
7057  # with a fresh cross-compiler works.
7058  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7059  # <limits.h> exists even on freestanding compilers.
7060  # On the NeXT, cc -E runs the code through the compiler's parser,
7061  # not just through cpp. "Syntax error" is here to catch this case.
7062  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7063/* end confdefs.h.  */
7064#ifdef __STDC__
7065# include <limits.h>
7066#else
7067# include <assert.h>
7068#endif
7069		     Syntax error
7070_ACEOF
7071if ac_fn_c_try_cpp "$LINENO"; then :
7072
7073else
7074  # Broken: fails on valid input.
7075continue
7076fi
7077rm -f conftest.err conftest.i conftest.$ac_ext
7078
7079  # OK, works on sane cases.  Now check whether nonexistent headers
7080  # can be detected and how.
7081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7082/* end confdefs.h.  */
7083#include <ac_nonexistent.h>
7084_ACEOF
7085if ac_fn_c_try_cpp "$LINENO"; then :
7086  # Broken: success on invalid input.
7087continue
7088else
7089  # Passes both tests.
7090ac_preproc_ok=:
7091break
7092fi
7093rm -f conftest.err conftest.i conftest.$ac_ext
7094
7095done
7096# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7097rm -f conftest.i conftest.err conftest.$ac_ext
7098if $ac_preproc_ok; then :
7099  break
7100fi
7101
7102    done
7103    ac_cv_prog_CPP=$CPP
7104
7105fi
7106  CPP=$ac_cv_prog_CPP
7107else
7108  ac_cv_prog_CPP=$CPP
7109fi
7110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7111$as_echo "$CPP" >&6; }
7112ac_preproc_ok=false
7113for ac_c_preproc_warn_flag in '' yes
7114do
7115  # Use a header file that comes with gcc, so configuring glibc
7116  # with a fresh cross-compiler works.
7117  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7118  # <limits.h> exists even on freestanding compilers.
7119  # On the NeXT, cc -E runs the code through the compiler's parser,
7120  # not just through cpp. "Syntax error" is here to catch this case.
7121  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7122/* end confdefs.h.  */
7123#ifdef __STDC__
7124# include <limits.h>
7125#else
7126# include <assert.h>
7127#endif
7128		     Syntax error
7129_ACEOF
7130if ac_fn_c_try_cpp "$LINENO"; then :
7131
7132else
7133  # Broken: fails on valid input.
7134continue
7135fi
7136rm -f conftest.err conftest.i conftest.$ac_ext
7137
7138  # OK, works on sane cases.  Now check whether nonexistent headers
7139  # can be detected and how.
7140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7141/* end confdefs.h.  */
7142#include <ac_nonexistent.h>
7143_ACEOF
7144if ac_fn_c_try_cpp "$LINENO"; then :
7145  # Broken: success on invalid input.
7146continue
7147else
7148  # Passes both tests.
7149ac_preproc_ok=:
7150break
7151fi
7152rm -f conftest.err conftest.i conftest.$ac_ext
7153
7154done
7155# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7156rm -f conftest.i conftest.err conftest.$ac_ext
7157if $ac_preproc_ok; then :
7158
7159else
7160  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7161$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7162as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7163See \`config.log' for more details" "$LINENO" 5 ; }
7164fi
7165
7166ac_ext=c
7167ac_cpp='$CPP $CPPFLAGS'
7168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7170ac_compiler_gnu=$ac_cv_c_compiler_gnu
7171
7172
7173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7174$as_echo_n "checking for ANSI C header files... " >&6; }
7175if test "${ac_cv_header_stdc+set}" = set; then :
7176  $as_echo_n "(cached) " >&6
7177else
7178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7179/* end confdefs.h.  */
7180#include <stdlib.h>
7181#include <stdarg.h>
7182#include <string.h>
7183#include <float.h>
7184
7185int
7186main ()
7187{
7188
7189  ;
7190  return 0;
7191}
7192_ACEOF
7193if ac_fn_c_try_compile "$LINENO"; then :
7194  ac_cv_header_stdc=yes
7195else
7196  ac_cv_header_stdc=no
7197fi
7198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7199
7200if test $ac_cv_header_stdc = yes; then
7201  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7203/* end confdefs.h.  */
7204#include <string.h>
7205
7206_ACEOF
7207if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7208  $EGREP "memchr" >/dev/null 2>&1; then :
7209
7210else
7211  ac_cv_header_stdc=no
7212fi
7213rm -f conftest*
7214
7215fi
7216
7217if test $ac_cv_header_stdc = yes; then
7218  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7220/* end confdefs.h.  */
7221#include <stdlib.h>
7222
7223_ACEOF
7224if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7225  $EGREP "free" >/dev/null 2>&1; then :
7226
7227else
7228  ac_cv_header_stdc=no
7229fi
7230rm -f conftest*
7231
7232fi
7233
7234if test $ac_cv_header_stdc = yes; then
7235  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7236  if test "$cross_compiling" = yes; then :
7237  :
7238else
7239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7240/* end confdefs.h.  */
7241#include <ctype.h>
7242#include <stdlib.h>
7243#if ((' ' & 0x0FF) == 0x020)
7244# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7245# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7246#else
7247# define ISLOWER(c) \
7248		   (('a' <= (c) && (c) <= 'i') \
7249		     || ('j' <= (c) && (c) <= 'r') \
7250		     || ('s' <= (c) && (c) <= 'z'))
7251# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7252#endif
7253
7254#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7255int
7256main ()
7257{
7258  int i;
7259  for (i = 0; i < 256; i++)
7260    if (XOR (islower (i), ISLOWER (i))
7261	|| toupper (i) != TOUPPER (i))
7262      return 2;
7263  return 0;
7264}
7265_ACEOF
7266if ac_fn_c_try_run "$LINENO"; then :
7267
7268else
7269  ac_cv_header_stdc=no
7270fi
7271rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7272  conftest.$ac_objext conftest.beam conftest.$ac_ext
7273fi
7274
7275fi
7276fi
7277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7278$as_echo "$ac_cv_header_stdc" >&6; }
7279if test $ac_cv_header_stdc = yes; then
7280
7281$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7282
7283fi
7284
7285# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7286for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7287		  inttypes.h stdint.h unistd.h
7288do :
7289  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7290ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7291"
7292if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7293  cat >>confdefs.h <<_ACEOF
7294#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7295_ACEOF
7296
7297fi
7298
7299done
7300
7301
7302for ac_header in dlfcn.h
7303do :
7304  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7305"
7306if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7307  cat >>confdefs.h <<_ACEOF
7308#define HAVE_DLFCN_H 1
7309_ACEOF
7310
7311fi
7312
7313done
7314
7315
7316
7317# Set options
7318
7319
7320
7321        enable_dlopen=no
7322
7323
7324  enable_win32_dll=no
7325
7326
7327            # Check whether --enable-shared was given.
7328if test "${enable_shared+set}" = set; then :
7329  enableval=$enable_shared; p=${PACKAGE-default}
7330    case $enableval in
7331    yes) enable_shared=yes ;;
7332    no) enable_shared=no ;;
7333    *)
7334      enable_shared=no
7335      # Look at the argument we got.  We use all the common list separators.
7336      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7337      for pkg in $enableval; do
7338	IFS="$lt_save_ifs"
7339	if test "X$pkg" = "X$p"; then
7340	  enable_shared=yes
7341	fi
7342      done
7343      IFS="$lt_save_ifs"
7344      ;;
7345    esac
7346else
7347  enable_shared=yes
7348fi
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358  # Check whether --enable-static was given.
7359if test "${enable_static+set}" = set; then :
7360  enableval=$enable_static; p=${PACKAGE-default}
7361    case $enableval in
7362    yes) enable_static=yes ;;
7363    no) enable_static=no ;;
7364    *)
7365     enable_static=no
7366      # Look at the argument we got.  We use all the common list separators.
7367      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7368      for pkg in $enableval; do
7369	IFS="$lt_save_ifs"
7370	if test "X$pkg" = "X$p"; then
7371	  enable_static=yes
7372	fi
7373      done
7374      IFS="$lt_save_ifs"
7375      ;;
7376    esac
7377else
7378  enable_static=yes
7379fi
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390# Check whether --with-pic was given.
7391if test "${with_pic+set}" = set; then :
7392  withval=$with_pic; pic_mode="$withval"
7393else
7394  pic_mode=default
7395fi
7396
7397
7398test -z "$pic_mode" && pic_mode=default
7399
7400
7401
7402
7403
7404
7405
7406  # Check whether --enable-fast-install was given.
7407if test "${enable_fast_install+set}" = set; then :
7408  enableval=$enable_fast_install; p=${PACKAGE-default}
7409    case $enableval in
7410    yes) enable_fast_install=yes ;;
7411    no) enable_fast_install=no ;;
7412    *)
7413      enable_fast_install=no
7414      # Look at the argument we got.  We use all the common list separators.
7415      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7416      for pkg in $enableval; do
7417	IFS="$lt_save_ifs"
7418	if test "X$pkg" = "X$p"; then
7419	  enable_fast_install=yes
7420	fi
7421      done
7422      IFS="$lt_save_ifs"
7423      ;;
7424    esac
7425else
7426  enable_fast_install=yes
7427fi
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439# This can be used to rebuild libtool when needed
7440LIBTOOL_DEPS="$ltmain"
7441
7442# Always use our own libtool.
7443LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469test -z "$LN_S" && LN_S="ln -s"
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484if test -n "${ZSH_VERSION+set}" ; then
7485   setopt NO_GLOB_SUBST
7486fi
7487
7488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7489$as_echo_n "checking for objdir... " >&6; }
7490if test "${lt_cv_objdir+set}" = set; then :
7491  $as_echo_n "(cached) " >&6
7492else
7493  rm -f .libs 2>/dev/null
7494mkdir .libs 2>/dev/null
7495if test -d .libs; then
7496  lt_cv_objdir=.libs
7497else
7498  # MS-DOS does not allow filenames that begin with a dot.
7499  lt_cv_objdir=_libs
7500fi
7501rmdir .libs 2>/dev/null
7502fi
7503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7504$as_echo "$lt_cv_objdir" >&6; }
7505objdir=$lt_cv_objdir
7506
7507
7508
7509
7510
7511cat >>confdefs.h <<_ACEOF
7512#define LT_OBJDIR "$lt_cv_objdir/"
7513_ACEOF
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531case $host_os in
7532aix3*)
7533  # AIX sometimes has problems with the GCC collect2 program.  For some
7534  # reason, if we set the COLLECT_NAMES environment variable, the problems
7535  # vanish in a puff of smoke.
7536  if test "X${COLLECT_NAMES+set}" != Xset; then
7537    COLLECT_NAMES=
7538    export COLLECT_NAMES
7539  fi
7540  ;;
7541esac
7542
7543# Sed substitution that helps us do robust quoting.  It backslashifies
7544# metacharacters that are still active within double-quoted strings.
7545sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7546
7547# Same as above, but do not quote variable references.
7548double_quote_subst='s/\(["`\\]\)/\\\1/g'
7549
7550# Sed substitution to delay expansion of an escaped shell variable in a
7551# double_quote_subst'ed string.
7552delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7553
7554# Sed substitution to delay expansion of an escaped single quote.
7555delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7556
7557# Sed substitution to avoid accidental globbing in evaled expressions
7558no_glob_subst='s/\*/\\\*/g'
7559
7560# Global variables:
7561ofile=libtool
7562can_build_shared=yes
7563
7564# All known linkers require a `.a' archive for static linking (except MSVC,
7565# which needs '.lib').
7566libext=a
7567
7568with_gnu_ld="$lt_cv_prog_gnu_ld"
7569
7570old_CC="$CC"
7571old_CFLAGS="$CFLAGS"
7572
7573# Set sane defaults for various variables
7574test -z "$CC" && CC=cc
7575test -z "$LTCC" && LTCC=$CC
7576test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7577test -z "$LD" && LD=ld
7578test -z "$ac_objext" && ac_objext=o
7579
7580for cc_temp in $compiler""; do
7581  case $cc_temp in
7582    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7583    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7584    \-*) ;;
7585    *) break;;
7586  esac
7587done
7588cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7589
7590
7591# Only perform the check for file, if the check method requires it
7592test -z "$MAGIC_CMD" && MAGIC_CMD=file
7593case $deplibs_check_method in
7594file_magic*)
7595  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7596    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7597$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7598if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7599  $as_echo_n "(cached) " >&6
7600else
7601  case $MAGIC_CMD in
7602[\\/*] |  ?:[\\/]*)
7603  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7604  ;;
7605*)
7606  lt_save_MAGIC_CMD="$MAGIC_CMD"
7607  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7608  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7609  for ac_dir in $ac_dummy; do
7610    IFS="$lt_save_ifs"
7611    test -z "$ac_dir" && ac_dir=.
7612    if test -f $ac_dir/${ac_tool_prefix}file; then
7613      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7614      if test -n "$file_magic_test_file"; then
7615	case $deplibs_check_method in
7616	"file_magic "*)
7617	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7618	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7619	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7620	    $EGREP "$file_magic_regex" > /dev/null; then
7621	    :
7622	  else
7623	    cat <<_LT_EOF 1>&2
7624
7625*** Warning: the command libtool uses to detect shared libraries,
7626*** $file_magic_cmd, produces output that libtool cannot recognize.
7627*** The result is that libtool may fail to recognize shared libraries
7628*** as such.  This will affect the creation of libtool libraries that
7629*** depend on shared libraries, but programs linked with such libtool
7630*** libraries will work regardless of this problem.  Nevertheless, you
7631*** may want to report the problem to your system manager and/or to
7632*** bug-libtool@gnu.org
7633
7634_LT_EOF
7635	  fi ;;
7636	esac
7637      fi
7638      break
7639    fi
7640  done
7641  IFS="$lt_save_ifs"
7642  MAGIC_CMD="$lt_save_MAGIC_CMD"
7643  ;;
7644esac
7645fi
7646
7647MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7648if test -n "$MAGIC_CMD"; then
7649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7650$as_echo "$MAGIC_CMD" >&6; }
7651else
7652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7653$as_echo "no" >&6; }
7654fi
7655
7656
7657
7658
7659
7660if test -z "$lt_cv_path_MAGIC_CMD"; then
7661  if test -n "$ac_tool_prefix"; then
7662    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7663$as_echo_n "checking for file... " >&6; }
7664if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7665  $as_echo_n "(cached) " >&6
7666else
7667  case $MAGIC_CMD in
7668[\\/*] |  ?:[\\/]*)
7669  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7670  ;;
7671*)
7672  lt_save_MAGIC_CMD="$MAGIC_CMD"
7673  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7674  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7675  for ac_dir in $ac_dummy; do
7676    IFS="$lt_save_ifs"
7677    test -z "$ac_dir" && ac_dir=.
7678    if test -f $ac_dir/file; then
7679      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7680      if test -n "$file_magic_test_file"; then
7681	case $deplibs_check_method in
7682	"file_magic "*)
7683	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7684	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7685	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7686	    $EGREP "$file_magic_regex" > /dev/null; then
7687	    :
7688	  else
7689	    cat <<_LT_EOF 1>&2
7690
7691*** Warning: the command libtool uses to detect shared libraries,
7692*** $file_magic_cmd, produces output that libtool cannot recognize.
7693*** The result is that libtool may fail to recognize shared libraries
7694*** as such.  This will affect the creation of libtool libraries that
7695*** depend on shared libraries, but programs linked with such libtool
7696*** libraries will work regardless of this problem.  Nevertheless, you
7697*** may want to report the problem to your system manager and/or to
7698*** bug-libtool@gnu.org
7699
7700_LT_EOF
7701	  fi ;;
7702	esac
7703      fi
7704      break
7705    fi
7706  done
7707  IFS="$lt_save_ifs"
7708  MAGIC_CMD="$lt_save_MAGIC_CMD"
7709  ;;
7710esac
7711fi
7712
7713MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7714if test -n "$MAGIC_CMD"; then
7715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7716$as_echo "$MAGIC_CMD" >&6; }
7717else
7718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7719$as_echo "no" >&6; }
7720fi
7721
7722
7723  else
7724    MAGIC_CMD=:
7725  fi
7726fi
7727
7728  fi
7729  ;;
7730esac
7731
7732# Use C for the default configuration in the libtool script
7733
7734lt_save_CC="$CC"
7735ac_ext=c
7736ac_cpp='$CPP $CPPFLAGS'
7737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7739ac_compiler_gnu=$ac_cv_c_compiler_gnu
7740
7741
7742# Source file extension for C test sources.
7743ac_ext=c
7744
7745# Object file extension for compiled C test sources.
7746objext=o
7747objext=$objext
7748
7749# Code to be used in simple compile tests
7750lt_simple_compile_test_code="int some_variable = 0;"
7751
7752# Code to be used in simple link tests
7753lt_simple_link_test_code='int main(){return(0);}'
7754
7755
7756
7757
7758
7759
7760
7761# If no C compiler was specified, use CC.
7762LTCC=${LTCC-"$CC"}
7763
7764# If no C compiler flags were specified, use CFLAGS.
7765LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7766
7767# Allow CC to be a program name with arguments.
7768compiler=$CC
7769
7770# Save the default compiler, since it gets overwritten when the other
7771# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7772compiler_DEFAULT=$CC
7773
7774# save warnings/boilerplate of simple test code
7775ac_outfile=conftest.$ac_objext
7776echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7777eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7778_lt_compiler_boilerplate=`cat conftest.err`
7779$RM conftest*
7780
7781ac_outfile=conftest.$ac_objext
7782echo "$lt_simple_link_test_code" >conftest.$ac_ext
7783eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7784_lt_linker_boilerplate=`cat conftest.err`
7785$RM -r conftest*
7786
7787
7788if test -n "$compiler"; then
7789
7790lt_prog_compiler_no_builtin_flag=
7791
7792if test "$GCC" = yes; then
7793  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7794
7795  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7796$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7797if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7798  $as_echo_n "(cached) " >&6
7799else
7800  lt_cv_prog_compiler_rtti_exceptions=no
7801   ac_outfile=conftest.$ac_objext
7802   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7803   lt_compiler_flag="-fno-rtti -fno-exceptions"
7804   # Insert the option either (1) after the last *FLAGS variable, or
7805   # (2) before a word containing "conftest.", or (3) at the end.
7806   # Note that $ac_compile itself does not contain backslashes and begins
7807   # with a dollar sign (not a hyphen), so the echo should work correctly.
7808   # The option is referenced via a variable to avoid confusing sed.
7809   lt_compile=`echo "$ac_compile" | $SED \
7810   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7811   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7812   -e 's:$: $lt_compiler_flag:'`
7813   (eval echo "\"\$as_me:7813: $lt_compile\"" >&5)
7814   (eval "$lt_compile" 2>conftest.err)
7815   ac_status=$?
7816   cat conftest.err >&5
7817   echo "$as_me:7817: \$? = $ac_status" >&5
7818   if (exit $ac_status) && test -s "$ac_outfile"; then
7819     # The compiler can only warn and ignore the option if not recognized
7820     # So say no if there are warnings other than the usual output.
7821     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7822     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7823     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7824       lt_cv_prog_compiler_rtti_exceptions=yes
7825     fi
7826   fi
7827   $RM conftest*
7828
7829fi
7830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7831$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7832
7833if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7834    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7835else
7836    :
7837fi
7838
7839fi
7840
7841
7842
7843
7844
7845
7846  lt_prog_compiler_wl=
7847lt_prog_compiler_pic=
7848lt_prog_compiler_static=
7849
7850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7851$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7852
7853  if test "$GCC" = yes; then
7854    lt_prog_compiler_wl='-Wl,'
7855    lt_prog_compiler_static='-static'
7856
7857    case $host_os in
7858      aix*)
7859      # All AIX code is PIC.
7860      if test "$host_cpu" = ia64; then
7861	# AIX 5 now supports IA64 processor
7862	lt_prog_compiler_static='-Bstatic'
7863      fi
7864      ;;
7865
7866    amigaos*)
7867      case $host_cpu in
7868      powerpc)
7869            # see comment about AmigaOS4 .so support
7870            lt_prog_compiler_pic='-fPIC'
7871        ;;
7872      m68k)
7873            # FIXME: we need at least 68020 code to build shared libraries, but
7874            # adding the `-m68020' flag to GCC prevents building anything better,
7875            # like `-m68040'.
7876            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7877        ;;
7878      esac
7879      ;;
7880
7881    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7882      # PIC is the default for these OSes.
7883      ;;
7884
7885    mingw* | cygwin* | pw32* | os2* | cegcc*)
7886      # This hack is so that the source file can tell whether it is being
7887      # built for inclusion in a dll (and should export symbols for example).
7888      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7889      # (--disable-auto-import) libraries
7890      lt_prog_compiler_pic='-DDLL_EXPORT'
7891      ;;
7892
7893    darwin* | rhapsody*)
7894      # PIC is the default on this platform
7895      # Common symbols not allowed in MH_DYLIB files
7896      lt_prog_compiler_pic='-fno-common'
7897      ;;
7898
7899    hpux*)
7900      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7901      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7902      # sets the default TLS model and affects inlining.
7903      case $host_cpu in
7904      hppa*64*)
7905	# +Z the default
7906	;;
7907      *)
7908	lt_prog_compiler_pic='-fPIC'
7909	;;
7910      esac
7911      ;;
7912
7913    interix[3-9]*)
7914      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7915      # Instead, we relocate shared libraries at runtime.
7916      ;;
7917
7918    msdosdjgpp*)
7919      # Just because we use GCC doesn't mean we suddenly get shared libraries
7920      # on systems that don't support them.
7921      lt_prog_compiler_can_build_shared=no
7922      enable_shared=no
7923      ;;
7924
7925    *nto* | *qnx*)
7926      # QNX uses GNU C++, but need to define -shared option too, otherwise
7927      # it will coredump.
7928      lt_prog_compiler_pic='-fPIC -shared'
7929      ;;
7930
7931    sysv4*MP*)
7932      if test -d /usr/nec; then
7933	lt_prog_compiler_pic=-Kconform_pic
7934      fi
7935      ;;
7936
7937    *)
7938      lt_prog_compiler_pic='-fPIC'
7939      ;;
7940    esac
7941  else
7942    # PORTME Check for flag to pass linker flags through the system compiler.
7943    case $host_os in
7944    aix*)
7945      lt_prog_compiler_wl='-Wl,'
7946      if test "$host_cpu" = ia64; then
7947	# AIX 5 now supports IA64 processor
7948	lt_prog_compiler_static='-Bstatic'
7949      else
7950	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7951      fi
7952      ;;
7953
7954    mingw* | cygwin* | pw32* | os2* | cegcc*)
7955      # This hack is so that the source file can tell whether it is being
7956      # built for inclusion in a dll (and should export symbols for example).
7957      lt_prog_compiler_pic='-DDLL_EXPORT'
7958      ;;
7959
7960    hpux9* | hpux10* | hpux11*)
7961      lt_prog_compiler_wl='-Wl,'
7962      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7963      # not for PA HP-UX.
7964      case $host_cpu in
7965      hppa*64*|ia64*)
7966	# +Z the default
7967	;;
7968      *)
7969	lt_prog_compiler_pic='+Z'
7970	;;
7971      esac
7972      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7973      lt_prog_compiler_static='${wl}-a ${wl}archive'
7974      ;;
7975
7976    irix5* | irix6* | nonstopux*)
7977      lt_prog_compiler_wl='-Wl,'
7978      # PIC (with -KPIC) is the default.
7979      lt_prog_compiler_static='-non_shared'
7980      ;;
7981
7982    linux* | k*bsd*-gnu | kopensolaris*-gnu)
7983      case $cc_basename in
7984      # old Intel for x86_64 which still supported -KPIC.
7985      ecc*)
7986	lt_prog_compiler_wl='-Wl,'
7987	lt_prog_compiler_pic='-KPIC'
7988	lt_prog_compiler_static='-static'
7989        ;;
7990      # icc used to be incompatible with GCC.
7991      # ICC 10 doesn't accept -KPIC any more.
7992      icc* | ifort*)
7993	lt_prog_compiler_wl='-Wl,'
7994	lt_prog_compiler_pic='-fPIC'
7995	lt_prog_compiler_static='-static'
7996        ;;
7997      # Lahey Fortran 8.1.
7998      lf95*)
7999	lt_prog_compiler_wl='-Wl,'
8000	lt_prog_compiler_pic='--shared'
8001	lt_prog_compiler_static='--static'
8002	;;
8003      pgcc* | pgf77* | pgf90* | pgf95*)
8004        # Portland Group compilers (*not* the Pentium gcc compiler,
8005	# which looks to be a dead project)
8006	lt_prog_compiler_wl='-Wl,'
8007	lt_prog_compiler_pic='-fpic'
8008	lt_prog_compiler_static='-Bstatic'
8009        ;;
8010      ccc*)
8011        lt_prog_compiler_wl='-Wl,'
8012        # All Alpha code is PIC.
8013        lt_prog_compiler_static='-non_shared'
8014        ;;
8015      xl*)
8016	# IBM XL C 8.0/Fortran 10.1 on PPC
8017	lt_prog_compiler_wl='-Wl,'
8018	lt_prog_compiler_pic='-qpic'
8019	lt_prog_compiler_static='-qstaticlink'
8020	;;
8021      *)
8022	case `$CC -V 2>&1 | sed 5q` in
8023	*Sun\ C*)
8024	  # Sun C 5.9
8025	  lt_prog_compiler_pic='-KPIC'
8026	  lt_prog_compiler_static='-Bstatic'
8027	  lt_prog_compiler_wl='-Wl,'
8028	  ;;
8029	*Sun\ F*)
8030	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8031	  lt_prog_compiler_pic='-KPIC'
8032	  lt_prog_compiler_static='-Bstatic'
8033	  lt_prog_compiler_wl=''
8034	  ;;
8035	esac
8036	;;
8037      esac
8038      ;;
8039
8040    newsos6)
8041      lt_prog_compiler_pic='-KPIC'
8042      lt_prog_compiler_static='-Bstatic'
8043      ;;
8044
8045    *nto* | *qnx*)
8046      # QNX uses GNU C++, but need to define -shared option too, otherwise
8047      # it will coredump.
8048      lt_prog_compiler_pic='-fPIC -shared'
8049      ;;
8050
8051    osf3* | osf4* | osf5*)
8052      lt_prog_compiler_wl='-Wl,'
8053      # All OSF/1 code is PIC.
8054      lt_prog_compiler_static='-non_shared'
8055      ;;
8056
8057    rdos*)
8058      lt_prog_compiler_static='-non_shared'
8059      ;;
8060
8061    solaris*)
8062      lt_prog_compiler_pic='-KPIC'
8063      lt_prog_compiler_static='-Bstatic'
8064      case $cc_basename in
8065      f77* | f90* | f95*)
8066	lt_prog_compiler_wl='-Qoption ld ';;
8067      *)
8068	lt_prog_compiler_wl='-Wl,';;
8069      esac
8070      ;;
8071
8072    sunos4*)
8073      lt_prog_compiler_wl='-Qoption ld '
8074      lt_prog_compiler_pic='-PIC'
8075      lt_prog_compiler_static='-Bstatic'
8076      ;;
8077
8078    sysv4 | sysv4.2uw2* | sysv4.3*)
8079      lt_prog_compiler_wl='-Wl,'
8080      lt_prog_compiler_pic='-KPIC'
8081      lt_prog_compiler_static='-Bstatic'
8082      ;;
8083
8084    sysv4*MP*)
8085      if test -d /usr/nec ;then
8086	lt_prog_compiler_pic='-Kconform_pic'
8087	lt_prog_compiler_static='-Bstatic'
8088      fi
8089      ;;
8090
8091    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8092      lt_prog_compiler_wl='-Wl,'
8093      lt_prog_compiler_pic='-KPIC'
8094      lt_prog_compiler_static='-Bstatic'
8095      ;;
8096
8097    unicos*)
8098      lt_prog_compiler_wl='-Wl,'
8099      lt_prog_compiler_can_build_shared=no
8100      ;;
8101
8102    uts4*)
8103      lt_prog_compiler_pic='-pic'
8104      lt_prog_compiler_static='-Bstatic'
8105      ;;
8106
8107    *)
8108      lt_prog_compiler_can_build_shared=no
8109      ;;
8110    esac
8111  fi
8112
8113case $host_os in
8114  # For platforms which do not support PIC, -DPIC is meaningless:
8115  *djgpp*)
8116    lt_prog_compiler_pic=
8117    ;;
8118  *)
8119    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8120    ;;
8121esac
8122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8123$as_echo "$lt_prog_compiler_pic" >&6; }
8124
8125
8126
8127
8128
8129
8130#
8131# Check to make sure the PIC flag actually works.
8132#
8133if test -n "$lt_prog_compiler_pic"; then
8134  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8135$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8136if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8137  $as_echo_n "(cached) " >&6
8138else
8139  lt_cv_prog_compiler_pic_works=no
8140   ac_outfile=conftest.$ac_objext
8141   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8142   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8143   # Insert the option either (1) after the last *FLAGS variable, or
8144   # (2) before a word containing "conftest.", or (3) at the end.
8145   # Note that $ac_compile itself does not contain backslashes and begins
8146   # with a dollar sign (not a hyphen), so the echo should work correctly.
8147   # The option is referenced via a variable to avoid confusing sed.
8148   lt_compile=`echo "$ac_compile" | $SED \
8149   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8150   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8151   -e 's:$: $lt_compiler_flag:'`
8152   (eval echo "\"\$as_me:8152: $lt_compile\"" >&5)
8153   (eval "$lt_compile" 2>conftest.err)
8154   ac_status=$?
8155   cat conftest.err >&5
8156   echo "$as_me:8156: \$? = $ac_status" >&5
8157   if (exit $ac_status) && test -s "$ac_outfile"; then
8158     # The compiler can only warn and ignore the option if not recognized
8159     # So say no if there are warnings other than the usual output.
8160     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8161     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8162     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8163       lt_cv_prog_compiler_pic_works=yes
8164     fi
8165   fi
8166   $RM conftest*
8167
8168fi
8169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8170$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8171
8172if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8173    case $lt_prog_compiler_pic in
8174     "" | " "*) ;;
8175     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8176     esac
8177else
8178    lt_prog_compiler_pic=
8179     lt_prog_compiler_can_build_shared=no
8180fi
8181
8182fi
8183
8184
8185
8186
8187
8188
8189#
8190# Check to make sure the static flag actually works.
8191#
8192wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8194$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8195if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8196  $as_echo_n "(cached) " >&6
8197else
8198  lt_cv_prog_compiler_static_works=no
8199   save_LDFLAGS="$LDFLAGS"
8200   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8201   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8202   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8203     # The linker can only warn and ignore the option if not recognized
8204     # So say no if there are warnings
8205     if test -s conftest.err; then
8206       # Append any errors to the config.log.
8207       cat conftest.err 1>&5
8208       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8209       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8210       if diff conftest.exp conftest.er2 >/dev/null; then
8211         lt_cv_prog_compiler_static_works=yes
8212       fi
8213     else
8214       lt_cv_prog_compiler_static_works=yes
8215     fi
8216   fi
8217   $RM -r conftest*
8218   LDFLAGS="$save_LDFLAGS"
8219
8220fi
8221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8222$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8223
8224if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8225    :
8226else
8227    lt_prog_compiler_static=
8228fi
8229
8230
8231
8232
8233
8234
8235
8236  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8237$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8238if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8239  $as_echo_n "(cached) " >&6
8240else
8241  lt_cv_prog_compiler_c_o=no
8242   $RM -r conftest 2>/dev/null
8243   mkdir conftest
8244   cd conftest
8245   mkdir out
8246   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8247
8248   lt_compiler_flag="-o out/conftest2.$ac_objext"
8249   # Insert the option either (1) after the last *FLAGS variable, or
8250   # (2) before a word containing "conftest.", or (3) at the end.
8251   # Note that $ac_compile itself does not contain backslashes and begins
8252   # with a dollar sign (not a hyphen), so the echo should work correctly.
8253   lt_compile=`echo "$ac_compile" | $SED \
8254   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8255   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8256   -e 's:$: $lt_compiler_flag:'`
8257   (eval echo "\"\$as_me:8257: $lt_compile\"" >&5)
8258   (eval "$lt_compile" 2>out/conftest.err)
8259   ac_status=$?
8260   cat out/conftest.err >&5
8261   echo "$as_me:8261: \$? = $ac_status" >&5
8262   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8263   then
8264     # The compiler can only warn and ignore the option if not recognized
8265     # So say no if there are warnings
8266     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8267     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8268     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8269       lt_cv_prog_compiler_c_o=yes
8270     fi
8271   fi
8272   chmod u+w . 2>&5
8273   $RM conftest*
8274   # SGI C++ compiler will create directory out/ii_files/ for
8275   # template instantiation
8276   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8277   $RM out/* && rmdir out
8278   cd ..
8279   $RM -r conftest
8280   $RM conftest*
8281
8282fi
8283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8284$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8285
8286
8287
8288
8289
8290
8291  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8292$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8293if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8294  $as_echo_n "(cached) " >&6
8295else
8296  lt_cv_prog_compiler_c_o=no
8297   $RM -r conftest 2>/dev/null
8298   mkdir conftest
8299   cd conftest
8300   mkdir out
8301   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8302
8303   lt_compiler_flag="-o out/conftest2.$ac_objext"
8304   # Insert the option either (1) after the last *FLAGS variable, or
8305   # (2) before a word containing "conftest.", or (3) at the end.
8306   # Note that $ac_compile itself does not contain backslashes and begins
8307   # with a dollar sign (not a hyphen), so the echo should work correctly.
8308   lt_compile=`echo "$ac_compile" | $SED \
8309   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8310   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8311   -e 's:$: $lt_compiler_flag:'`
8312   (eval echo "\"\$as_me:8312: $lt_compile\"" >&5)
8313   (eval "$lt_compile" 2>out/conftest.err)
8314   ac_status=$?
8315   cat out/conftest.err >&5
8316   echo "$as_me:8316: \$? = $ac_status" >&5
8317   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8318   then
8319     # The compiler can only warn and ignore the option if not recognized
8320     # So say no if there are warnings
8321     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8322     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8323     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8324       lt_cv_prog_compiler_c_o=yes
8325     fi
8326   fi
8327   chmod u+w . 2>&5
8328   $RM conftest*
8329   # SGI C++ compiler will create directory out/ii_files/ for
8330   # template instantiation
8331   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8332   $RM out/* && rmdir out
8333   cd ..
8334   $RM -r conftest
8335   $RM conftest*
8336
8337fi
8338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8339$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8340
8341
8342
8343
8344hard_links="nottested"
8345if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8346  # do not overwrite the value of need_locks provided by the user
8347  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8348$as_echo_n "checking if we can lock with hard links... " >&6; }
8349  hard_links=yes
8350  $RM conftest*
8351  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8352  touch conftest.a
8353  ln conftest.a conftest.b 2>&5 || hard_links=no
8354  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8356$as_echo "$hard_links" >&6; }
8357  if test "$hard_links" = no; then
8358    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8359$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8360    need_locks=warn
8361  fi
8362else
8363  need_locks=no
8364fi
8365
8366
8367
8368
8369
8370
8371  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8372$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8373
8374  runpath_var=
8375  allow_undefined_flag=
8376  always_export_symbols=no
8377  archive_cmds=
8378  archive_expsym_cmds=
8379  compiler_needs_object=no
8380  enable_shared_with_static_runtimes=no
8381  export_dynamic_flag_spec=
8382  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8383  hardcode_automatic=no
8384  hardcode_direct=no
8385  hardcode_direct_absolute=no
8386  hardcode_libdir_flag_spec=
8387  hardcode_libdir_flag_spec_ld=
8388  hardcode_libdir_separator=
8389  hardcode_minus_L=no
8390  hardcode_shlibpath_var=unsupported
8391  inherit_rpath=no
8392  link_all_deplibs=unknown
8393  module_cmds=
8394  module_expsym_cmds=
8395  old_archive_from_new_cmds=
8396  old_archive_from_expsyms_cmds=
8397  thread_safe_flag_spec=
8398  whole_archive_flag_spec=
8399  # include_expsyms should be a list of space-separated symbols to be *always*
8400  # included in the symbol list
8401  include_expsyms=
8402  # exclude_expsyms can be an extended regexp of symbols to exclude
8403  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8404  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8405  # as well as any symbol that contains `d'.
8406  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8407  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8408  # platforms (ab)use it in PIC code, but their linkers get confused if
8409  # the symbol is explicitly referenced.  Since portable code cannot
8410  # rely on this symbol name, it's probably fine to never include it in
8411  # preloaded symbol tables.
8412  # Exclude shared library initialization/finalization symbols.
8413  extract_expsyms_cmds=
8414
8415  case $host_os in
8416  cygwin* | mingw* | pw32* | cegcc*)
8417    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8418    # When not using gcc, we currently assume that we are using
8419    # Microsoft Visual C++.
8420    if test "$GCC" != yes; then
8421      with_gnu_ld=no
8422    fi
8423    ;;
8424  interix*)
8425    # we just hope/assume this is gcc and not c89 (= MSVC++)
8426    with_gnu_ld=yes
8427    ;;
8428  openbsd*)
8429    with_gnu_ld=no
8430    ;;
8431  linux* | k*bsd*-gnu)
8432    link_all_deplibs=no
8433    ;;
8434  esac
8435
8436  ld_shlibs=yes
8437  if test "$with_gnu_ld" = yes; then
8438    # If archive_cmds runs LD, not CC, wlarc should be empty
8439    wlarc='${wl}'
8440
8441    # Set some defaults for GNU ld with shared library support. These
8442    # are reset later if shared libraries are not supported. Putting them
8443    # here allows them to be overridden if necessary.
8444    runpath_var=LD_RUN_PATH
8445    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8446    export_dynamic_flag_spec='${wl}--export-dynamic'
8447    # ancient GNU ld didn't support --whole-archive et. al.
8448    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8449      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8450    else
8451      whole_archive_flag_spec=
8452    fi
8453    supports_anon_versioning=no
8454    case `$LD -v 2>&1` in
8455      *GNU\ gold*) supports_anon_versioning=yes ;;
8456      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8457      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8458      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8459      *\ 2.11.*) ;; # other 2.11 versions
8460      *) supports_anon_versioning=yes ;;
8461    esac
8462
8463    # See if GNU ld supports shared libraries.
8464    case $host_os in
8465    aix[3-9]*)
8466      # On AIX/PPC, the GNU linker is very broken
8467      if test "$host_cpu" != ia64; then
8468	ld_shlibs=no
8469	cat <<_LT_EOF 1>&2
8470
8471*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8472*** to be unable to reliably create shared libraries on AIX.
8473*** Therefore, libtool is disabling shared libraries support.  If you
8474*** really care for shared libraries, you may want to modify your PATH
8475*** so that a non-GNU linker is found, and then restart.
8476
8477_LT_EOF
8478      fi
8479      ;;
8480
8481    amigaos*)
8482      case $host_cpu in
8483      powerpc)
8484            # see comment about AmigaOS4 .so support
8485            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8486            archive_expsym_cmds=''
8487        ;;
8488      m68k)
8489            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)'
8490            hardcode_libdir_flag_spec='-L$libdir'
8491            hardcode_minus_L=yes
8492        ;;
8493      esac
8494      ;;
8495
8496    beos*)
8497      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8498	allow_undefined_flag=unsupported
8499	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8500	# support --undefined.  This deserves some investigation.  FIXME
8501	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8502      else
8503	ld_shlibs=no
8504      fi
8505      ;;
8506
8507    cygwin* | mingw* | pw32* | cegcc*)
8508      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8509      # as there is no search path for DLLs.
8510      hardcode_libdir_flag_spec='-L$libdir'
8511      allow_undefined_flag=unsupported
8512      always_export_symbols=no
8513      enable_shared_with_static_runtimes=yes
8514      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8515
8516      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8517        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8518	# If the export-symbols file already is a .def file (1st line
8519	# is EXPORTS), use it as is; otherwise, prepend...
8520	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8521	  cp $export_symbols $output_objdir/$soname.def;
8522	else
8523	  echo EXPORTS > $output_objdir/$soname.def;
8524	  cat $export_symbols >> $output_objdir/$soname.def;
8525	fi~
8526	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8527      else
8528	ld_shlibs=no
8529      fi
8530      ;;
8531
8532    interix[3-9]*)
8533      hardcode_direct=no
8534      hardcode_shlibpath_var=no
8535      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8536      export_dynamic_flag_spec='${wl}-E'
8537      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8538      # Instead, shared libraries are loaded at an image base (0x10000000 by
8539      # default) and relocated if they conflict, which is a slow very memory
8540      # consuming and fragmenting process.  To avoid this, we pick a random,
8541      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8542      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8543      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8544      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'
8545      ;;
8546
8547    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8548      tmp_diet=no
8549      if test "$host_os" = linux-dietlibc; then
8550	case $cc_basename in
8551	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8552	esac
8553      fi
8554      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8555	 && test "$tmp_diet" = no
8556      then
8557	tmp_addflag=
8558	tmp_sharedflag='-shared'
8559	case $cc_basename,$host_cpu in
8560        pgcc*)				# Portland Group C compiler
8561	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8562	  tmp_addflag=' $pic_flag'
8563	  ;;
8564	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8565	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8566	  tmp_addflag=' $pic_flag -Mnomain' ;;
8567	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8568	  tmp_addflag=' -i_dynamic' ;;
8569	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8570	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8571	ifc* | ifort*)			# Intel Fortran compiler
8572	  tmp_addflag=' -nofor_main' ;;
8573	lf95*)				# Lahey Fortran 8.1
8574	  whole_archive_flag_spec=
8575	  tmp_sharedflag='--shared' ;;
8576	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
8577	  tmp_sharedflag='-qmkshrobj'
8578	  tmp_addflag= ;;
8579	esac
8580	case `$CC -V 2>&1 | sed 5q` in
8581	*Sun\ C*)			# Sun C 5.9
8582	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8583	  compiler_needs_object=yes
8584	  tmp_sharedflag='-G' ;;
8585	*Sun\ F*)			# Sun Fortran 8.3
8586	  tmp_sharedflag='-G' ;;
8587	esac
8588	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8589
8590        if test "x$supports_anon_versioning" = xyes; then
8591          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8592	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8593	    echo "local: *; };" >> $output_objdir/$libname.ver~
8594	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8595        fi
8596
8597	case $cc_basename in
8598	xlf*)
8599	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8600	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8601	  hardcode_libdir_flag_spec=
8602	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8603	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8604	  if test "x$supports_anon_versioning" = xyes; then
8605	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8606	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8607	      echo "local: *; };" >> $output_objdir/$libname.ver~
8608	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8609	  fi
8610	  ;;
8611	esac
8612      else
8613        ld_shlibs=no
8614      fi
8615      ;;
8616
8617    netbsd* | netbsdelf*-gnu)
8618      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8619	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8620	wlarc=
8621      else
8622	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8623	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8624      fi
8625      ;;
8626
8627    solaris*)
8628      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8629	ld_shlibs=no
8630	cat <<_LT_EOF 1>&2
8631
8632*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8633*** create shared libraries on Solaris systems.  Therefore, libtool
8634*** is disabling shared libraries support.  We urge you to upgrade GNU
8635*** binutils to release 2.9.1 or newer.  Another option is to modify
8636*** your PATH or compiler configuration so that the native linker is
8637*** used, and then restart.
8638
8639_LT_EOF
8640      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8641	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8642	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8643      else
8644	ld_shlibs=no
8645      fi
8646      ;;
8647
8648    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8649      case `$LD -v 2>&1` in
8650        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8651	ld_shlibs=no
8652	cat <<_LT_EOF 1>&2
8653
8654*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8655*** reliably create shared libraries on SCO systems.  Therefore, libtool
8656*** is disabling shared libraries support.  We urge you to upgrade GNU
8657*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8658*** your PATH or compiler configuration so that the native linker is
8659*** used, and then restart.
8660
8661_LT_EOF
8662	;;
8663	*)
8664	  # For security reasons, it is highly recommended that you always
8665	  # use absolute paths for naming shared libraries, and exclude the
8666	  # DT_RUNPATH tag from executables and libraries.  But doing so
8667	  # requires that you compile everything twice, which is a pain.
8668	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8669	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8670	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8671	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8672	  else
8673	    ld_shlibs=no
8674	  fi
8675	;;
8676      esac
8677      ;;
8678
8679    sunos4*)
8680      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8681      wlarc=
8682      hardcode_direct=yes
8683      hardcode_shlibpath_var=no
8684      ;;
8685
8686    *)
8687      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8688	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8689	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8690      else
8691	ld_shlibs=no
8692      fi
8693      ;;
8694    esac
8695
8696    if test "$ld_shlibs" = no; then
8697      runpath_var=
8698      hardcode_libdir_flag_spec=
8699      export_dynamic_flag_spec=
8700      whole_archive_flag_spec=
8701    fi
8702  else
8703    # PORTME fill in a description of your system's linker (not GNU ld)
8704    case $host_os in
8705    aix3*)
8706      allow_undefined_flag=unsupported
8707      always_export_symbols=yes
8708      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'
8709      # Note: this linker hardcodes the directories in LIBPATH if there
8710      # are no directories specified by -L.
8711      hardcode_minus_L=yes
8712      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8713	# Neither direct hardcoding nor static linking is supported with a
8714	# broken collect2.
8715	hardcode_direct=unsupported
8716      fi
8717      ;;
8718
8719    aix[4-9]*)
8720      if test "$host_cpu" = ia64; then
8721	# On IA64, the linker does run time linking by default, so we don't
8722	# have to do anything special.
8723	aix_use_runtimelinking=no
8724	exp_sym_flag='-Bexport'
8725	no_entry_flag=""
8726      else
8727	# If we're using GNU nm, then we don't want the "-C" option.
8728	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8729	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8730	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8731	else
8732	  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'
8733	fi
8734	aix_use_runtimelinking=no
8735
8736	# Test if we are trying to use run time linking or normal
8737	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8738	# need to do runtime linking.
8739	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8740	  for ld_flag in $LDFLAGS; do
8741	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8742	    aix_use_runtimelinking=yes
8743	    break
8744	  fi
8745	  done
8746	  ;;
8747	esac
8748
8749	exp_sym_flag='-bexport'
8750	no_entry_flag='-bnoentry'
8751      fi
8752
8753      # When large executables or shared objects are built, AIX ld can
8754      # have problems creating the table of contents.  If linking a library
8755      # or program results in "error TOC overflow" add -mminimal-toc to
8756      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8757      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8758
8759      archive_cmds=''
8760      hardcode_direct=yes
8761      hardcode_direct_absolute=yes
8762      hardcode_libdir_separator=':'
8763      link_all_deplibs=yes
8764      file_list_spec='${wl}-f,'
8765
8766      if test "$GCC" = yes; then
8767	case $host_os in aix4.[012]|aix4.[012].*)
8768	# We only want to do this on AIX 4.2 and lower, the check
8769	# below for broken collect2 doesn't work under 4.3+
8770	  collect2name=`${CC} -print-prog-name=collect2`
8771	  if test -f "$collect2name" &&
8772	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8773	  then
8774	  # We have reworked collect2
8775	  :
8776	  else
8777	  # We have old collect2
8778	  hardcode_direct=unsupported
8779	  # It fails to find uninstalled libraries when the uninstalled
8780	  # path is not listed in the libpath.  Setting hardcode_minus_L
8781	  # to unsupported forces relinking
8782	  hardcode_minus_L=yes
8783	  hardcode_libdir_flag_spec='-L$libdir'
8784	  hardcode_libdir_separator=
8785	  fi
8786	  ;;
8787	esac
8788	shared_flag='-shared'
8789	if test "$aix_use_runtimelinking" = yes; then
8790	  shared_flag="$shared_flag "'${wl}-G'
8791	fi
8792	link_all_deplibs=no
8793      else
8794	# not using gcc
8795	if test "$host_cpu" = ia64; then
8796	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8797	# chokes on -Wl,-G. The following line is correct:
8798	  shared_flag='-G'
8799	else
8800	  if test "$aix_use_runtimelinking" = yes; then
8801	    shared_flag='${wl}-G'
8802	  else
8803	    shared_flag='${wl}-bM:SRE'
8804	  fi
8805	fi
8806      fi
8807
8808      export_dynamic_flag_spec='${wl}-bexpall'
8809      # It seems that -bexpall does not export symbols beginning with
8810      # underscore (_), so it is better to generate a list of symbols to export.
8811      always_export_symbols=yes
8812      if test "$aix_use_runtimelinking" = yes; then
8813	# Warning - without using the other runtime loading flags (-brtl),
8814	# -berok will link without error, but may produce a broken library.
8815	allow_undefined_flag='-berok'
8816        # Determine the default libpath from the value encoded in an
8817        # empty executable.
8818        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8819/* end confdefs.h.  */
8820
8821int
8822main ()
8823{
8824
8825  ;
8826  return 0;
8827}
8828_ACEOF
8829if ac_fn_c_try_link "$LINENO"; then :
8830
8831lt_aix_libpath_sed='
8832    /Import File Strings/,/^$/ {
8833	/^0/ {
8834	    s/^0  *\(.*\)$/\1/
8835	    p
8836	}
8837    }'
8838aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8839# Check for a 64-bit object if we didn't find anything.
8840if test -z "$aix_libpath"; then
8841  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8842fi
8843fi
8844rm -f core conftest.err conftest.$ac_objext \
8845    conftest$ac_exeext conftest.$ac_ext
8846if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8847
8848        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8849        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8850      else
8851	if test "$host_cpu" = ia64; then
8852	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8853	  allow_undefined_flag="-z nodefs"
8854	  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"
8855	else
8856	 # Determine the default libpath from the value encoded in an
8857	 # empty executable.
8858	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8859/* end confdefs.h.  */
8860
8861int
8862main ()
8863{
8864
8865  ;
8866  return 0;
8867}
8868_ACEOF
8869if ac_fn_c_try_link "$LINENO"; then :
8870
8871lt_aix_libpath_sed='
8872    /Import File Strings/,/^$/ {
8873	/^0/ {
8874	    s/^0  *\(.*\)$/\1/
8875	    p
8876	}
8877    }'
8878aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8879# Check for a 64-bit object if we didn't find anything.
8880if test -z "$aix_libpath"; then
8881  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8882fi
8883fi
8884rm -f core conftest.err conftest.$ac_objext \
8885    conftest$ac_exeext conftest.$ac_ext
8886if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8887
8888	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8889	  # Warning - without using the other run time loading flags,
8890	  # -berok will link without error, but may produce a broken library.
8891	  no_undefined_flag=' ${wl}-bernotok'
8892	  allow_undefined_flag=' ${wl}-berok'
8893	  # Exported symbols can be pulled into shared objects from archives
8894	  whole_archive_flag_spec='$convenience'
8895	  archive_cmds_need_lc=yes
8896	  # This is similar to how AIX traditionally builds its shared libraries.
8897	  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'
8898	fi
8899      fi
8900      ;;
8901
8902    amigaos*)
8903      case $host_cpu in
8904      powerpc)
8905            # see comment about AmigaOS4 .so support
8906            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8907            archive_expsym_cmds=''
8908        ;;
8909      m68k)
8910            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)'
8911            hardcode_libdir_flag_spec='-L$libdir'
8912            hardcode_minus_L=yes
8913        ;;
8914      esac
8915      ;;
8916
8917    bsdi[45]*)
8918      export_dynamic_flag_spec=-rdynamic
8919      ;;
8920
8921    cygwin* | mingw* | pw32* | cegcc*)
8922      # When not using gcc, we currently assume that we are using
8923      # Microsoft Visual C++.
8924      # hardcode_libdir_flag_spec is actually meaningless, as there is
8925      # no search path for DLLs.
8926      hardcode_libdir_flag_spec=' '
8927      allow_undefined_flag=unsupported
8928      # Tell ltmain to make .lib files, not .a files.
8929      libext=lib
8930      # Tell ltmain to make .dll files, not .so files.
8931      shrext_cmds=".dll"
8932      # FIXME: Setting linknames here is a bad hack.
8933      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8934      # The linker will automatically build a .lib file if we build a DLL.
8935      old_archive_from_new_cmds='true'
8936      # FIXME: Should let the user specify the lib program.
8937      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8938      fix_srcfile_path='`cygpath -w "$srcfile"`'
8939      enable_shared_with_static_runtimes=yes
8940      ;;
8941
8942    darwin* | rhapsody*)
8943
8944
8945  archive_cmds_need_lc=no
8946  hardcode_direct=no
8947  hardcode_automatic=yes
8948  hardcode_shlibpath_var=unsupported
8949  whole_archive_flag_spec=''
8950  link_all_deplibs=yes
8951  allow_undefined_flag="$_lt_dar_allow_undefined"
8952  case $cc_basename in
8953     ifort*) _lt_dar_can_shared=yes ;;
8954     *) _lt_dar_can_shared=$GCC ;;
8955  esac
8956  if test "$_lt_dar_can_shared" = "yes"; then
8957    output_verbose_link_cmd=echo
8958    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8959    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8960    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}"
8961    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}"
8962
8963  else
8964  ld_shlibs=no
8965  fi
8966
8967      ;;
8968
8969    dgux*)
8970      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8971      hardcode_libdir_flag_spec='-L$libdir'
8972      hardcode_shlibpath_var=no
8973      ;;
8974
8975    freebsd1*)
8976      ld_shlibs=no
8977      ;;
8978
8979    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8980    # support.  Future versions do this automatically, but an explicit c++rt0.o
8981    # does not break anything, and helps significantly (at the cost of a little
8982    # extra space).
8983    freebsd2.2*)
8984      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8985      hardcode_libdir_flag_spec='-R$libdir'
8986      hardcode_direct=yes
8987      hardcode_shlibpath_var=no
8988      ;;
8989
8990    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8991    freebsd2*)
8992      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8993      hardcode_direct=yes
8994      hardcode_minus_L=yes
8995      hardcode_shlibpath_var=no
8996      ;;
8997
8998    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8999    freebsd* | dragonfly*)
9000      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9001      hardcode_libdir_flag_spec='-R$libdir'
9002      hardcode_direct=yes
9003      hardcode_shlibpath_var=no
9004      ;;
9005
9006    hpux9*)
9007      if test "$GCC" = yes; then
9008	archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9009      else
9010	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'
9011      fi
9012      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9013      hardcode_libdir_separator=:
9014      hardcode_direct=yes
9015
9016      # hardcode_minus_L: Not really in the search PATH,
9017      # but as the default location of the library.
9018      hardcode_minus_L=yes
9019      export_dynamic_flag_spec='${wl}-E'
9020      ;;
9021
9022    hpux10*)
9023      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9024	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9025      else
9026	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9027      fi
9028      if test "$with_gnu_ld" = no; then
9029	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9030	hardcode_libdir_flag_spec_ld='+b $libdir'
9031	hardcode_libdir_separator=:
9032	hardcode_direct=yes
9033	hardcode_direct_absolute=yes
9034	export_dynamic_flag_spec='${wl}-E'
9035	# hardcode_minus_L: Not really in the search PATH,
9036	# but as the default location of the library.
9037	hardcode_minus_L=yes
9038      fi
9039      ;;
9040
9041    hpux11*)
9042      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9043	case $host_cpu in
9044	hppa*64*)
9045	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9046	  ;;
9047	ia64*)
9048	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9049	  ;;
9050	*)
9051	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9052	  ;;
9053	esac
9054      else
9055	case $host_cpu in
9056	hppa*64*)
9057	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9058	  ;;
9059	ia64*)
9060	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9061	  ;;
9062	*)
9063	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9064	  ;;
9065	esac
9066      fi
9067      if test "$with_gnu_ld" = no; then
9068	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9069	hardcode_libdir_separator=:
9070
9071	case $host_cpu in
9072	hppa*64*|ia64*)
9073	  hardcode_direct=no
9074	  hardcode_shlibpath_var=no
9075	  ;;
9076	*)
9077	  hardcode_direct=yes
9078	  hardcode_direct_absolute=yes
9079	  export_dynamic_flag_spec='${wl}-E'
9080
9081	  # hardcode_minus_L: Not really in the search PATH,
9082	  # but as the default location of the library.
9083	  hardcode_minus_L=yes
9084	  ;;
9085	esac
9086      fi
9087      ;;
9088
9089    irix5* | irix6* | nonstopux*)
9090      if test "$GCC" = yes; then
9091	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9092	# Try to use the -exported_symbol ld option, if it does not
9093	# work, assume that -exports_file does not work either and
9094	# implicitly export all symbols.
9095        save_LDFLAGS="$LDFLAGS"
9096        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9097        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9098/* end confdefs.h.  */
9099int foo(void) {}
9100_ACEOF
9101if ac_fn_c_try_link "$LINENO"; then :
9102  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9103
9104fi
9105rm -f core conftest.err conftest.$ac_objext \
9106    conftest$ac_exeext conftest.$ac_ext
9107        LDFLAGS="$save_LDFLAGS"
9108      else
9109	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9110	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9111      fi
9112      archive_cmds_need_lc='no'
9113      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9114      hardcode_libdir_separator=:
9115      inherit_rpath=yes
9116      link_all_deplibs=yes
9117      ;;
9118
9119    netbsd* | netbsdelf*-gnu)
9120      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9121	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9122      else
9123	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9124      fi
9125      hardcode_libdir_flag_spec='-R$libdir'
9126      hardcode_direct=yes
9127      hardcode_shlibpath_var=no
9128      ;;
9129
9130    newsos6)
9131      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9132      hardcode_direct=yes
9133      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9134      hardcode_libdir_separator=:
9135      hardcode_shlibpath_var=no
9136      ;;
9137
9138    *nto* | *qnx*)
9139      ;;
9140
9141    openbsd*)
9142      if test -f /usr/libexec/ld.so; then
9143	hardcode_direct=yes
9144	hardcode_shlibpath_var=no
9145	hardcode_direct_absolute=yes
9146	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9147	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9148	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9149	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9150	  export_dynamic_flag_spec='${wl}-E'
9151	else
9152	  case $host_os in
9153	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9154	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9155	     hardcode_libdir_flag_spec='-R$libdir'
9156	     ;;
9157	   *)
9158	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9159	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9160	     ;;
9161	  esac
9162	fi
9163      else
9164	ld_shlibs=no
9165      fi
9166      ;;
9167
9168    os2*)
9169      hardcode_libdir_flag_spec='-L$libdir'
9170      hardcode_minus_L=yes
9171      allow_undefined_flag=unsupported
9172      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'
9173      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9174      ;;
9175
9176    osf3*)
9177      if test "$GCC" = yes; then
9178	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9179	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9180      else
9181	allow_undefined_flag=' -expect_unresolved \*'
9182	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9183      fi
9184      archive_cmds_need_lc='no'
9185      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9186      hardcode_libdir_separator=:
9187      ;;
9188
9189    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9190      if test "$GCC" = yes; then
9191	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9192	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9193	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9194      else
9195	allow_undefined_flag=' -expect_unresolved \*'
9196	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9197	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~
9198	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9199
9200	# Both c and cxx compiler support -rpath directly
9201	hardcode_libdir_flag_spec='-rpath $libdir'
9202      fi
9203      archive_cmds_need_lc='no'
9204      hardcode_libdir_separator=:
9205      ;;
9206
9207    solaris*)
9208      no_undefined_flag=' -z defs'
9209      if test "$GCC" = yes; then
9210	wlarc='${wl}'
9211	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9212	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9213	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9214      else
9215	case `$CC -V 2>&1` in
9216	*"Compilers 5.0"*)
9217	  wlarc=''
9218	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9219	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9220	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9221	  ;;
9222	*)
9223	  wlarc='${wl}'
9224	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9225	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9226	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9227	  ;;
9228	esac
9229      fi
9230      hardcode_libdir_flag_spec='-R$libdir'
9231      hardcode_shlibpath_var=no
9232      case $host_os in
9233      solaris2.[0-5] | solaris2.[0-5].*) ;;
9234      *)
9235	# The compiler driver will combine and reorder linker options,
9236	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9237	# but is careful enough not to reorder.
9238	# Supported since Solaris 2.6 (maybe 2.5.1?)
9239	if test "$GCC" = yes; then
9240	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9241	else
9242	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9243	fi
9244	;;
9245      esac
9246      link_all_deplibs=yes
9247      ;;
9248
9249    sunos4*)
9250      if test "x$host_vendor" = xsequent; then
9251	# Use $CC to link under sequent, because it throws in some extra .o
9252	# files that make .init and .fini sections work.
9253	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9254      else
9255	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9256      fi
9257      hardcode_libdir_flag_spec='-L$libdir'
9258      hardcode_direct=yes
9259      hardcode_minus_L=yes
9260      hardcode_shlibpath_var=no
9261      ;;
9262
9263    sysv4)
9264      case $host_vendor in
9265	sni)
9266	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9267	  hardcode_direct=yes # is this really true???
9268	;;
9269	siemens)
9270	  ## LD is ld it makes a PLAMLIB
9271	  ## CC just makes a GrossModule.
9272	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9273	  reload_cmds='$CC -r -o $output$reload_objs'
9274	  hardcode_direct=no
9275        ;;
9276	motorola)
9277	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9278	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9279	;;
9280      esac
9281      runpath_var='LD_RUN_PATH'
9282      hardcode_shlibpath_var=no
9283      ;;
9284
9285    sysv4.3*)
9286      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9287      hardcode_shlibpath_var=no
9288      export_dynamic_flag_spec='-Bexport'
9289      ;;
9290
9291    sysv4*MP*)
9292      if test -d /usr/nec; then
9293	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9294	hardcode_shlibpath_var=no
9295	runpath_var=LD_RUN_PATH
9296	hardcode_runpath_var=yes
9297	ld_shlibs=yes
9298      fi
9299      ;;
9300
9301    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9302      no_undefined_flag='${wl}-z,text'
9303      archive_cmds_need_lc=no
9304      hardcode_shlibpath_var=no
9305      runpath_var='LD_RUN_PATH'
9306
9307      if test "$GCC" = yes; then
9308	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9309	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9310      else
9311	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9312	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9313      fi
9314      ;;
9315
9316    sysv5* | sco3.2v5* | sco5v6*)
9317      # Note: We can NOT use -z defs as we might desire, because we do not
9318      # link with -lc, and that would cause any symbols used from libc to
9319      # always be unresolved, which means just about no library would
9320      # ever link correctly.  If we're not using GNU ld we use -z text
9321      # though, which does catch some bad symbols but isn't as heavy-handed
9322      # as -z defs.
9323      no_undefined_flag='${wl}-z,text'
9324      allow_undefined_flag='${wl}-z,nodefs'
9325      archive_cmds_need_lc=no
9326      hardcode_shlibpath_var=no
9327      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9328      hardcode_libdir_separator=':'
9329      link_all_deplibs=yes
9330      export_dynamic_flag_spec='${wl}-Bexport'
9331      runpath_var='LD_RUN_PATH'
9332
9333      if test "$GCC" = yes; then
9334	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9335	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9336      else
9337	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9338	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9339      fi
9340      ;;
9341
9342    uts4*)
9343      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9344      hardcode_libdir_flag_spec='-L$libdir'
9345      hardcode_shlibpath_var=no
9346      ;;
9347
9348    *)
9349      ld_shlibs=no
9350      ;;
9351    esac
9352
9353    if test x$host_vendor = xsni; then
9354      case $host in
9355      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9356	export_dynamic_flag_spec='${wl}-Blargedynsym'
9357	;;
9358      esac
9359    fi
9360  fi
9361
9362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9363$as_echo "$ld_shlibs" >&6; }
9364test "$ld_shlibs" = no && can_build_shared=no
9365
9366with_gnu_ld=$with_gnu_ld
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382#
9383# Do we need to explicitly link libc?
9384#
9385case "x$archive_cmds_need_lc" in
9386x|xyes)
9387  # Assume -lc should be added
9388  archive_cmds_need_lc=yes
9389
9390  if test "$enable_shared" = yes && test "$GCC" = yes; then
9391    case $archive_cmds in
9392    *'~'*)
9393      # FIXME: we may have to deal with multi-command sequences.
9394      ;;
9395    '$CC '*)
9396      # Test whether the compiler implicitly links with -lc since on some
9397      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9398      # to ld, don't add -lc before -lgcc.
9399      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9400$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9401      $RM conftest*
9402      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9403
9404      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9405  (eval $ac_compile) 2>&5
9406  ac_status=$?
9407  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9408  test $ac_status = 0; } 2>conftest.err; then
9409        soname=conftest
9410        lib=conftest
9411        libobjs=conftest.$ac_objext
9412        deplibs=
9413        wl=$lt_prog_compiler_wl
9414	pic_flag=$lt_prog_compiler_pic
9415        compiler_flags=-v
9416        linker_flags=-v
9417        verstring=
9418        output_objdir=.
9419        libname=conftest
9420        lt_save_allow_undefined_flag=$allow_undefined_flag
9421        allow_undefined_flag=
9422        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9423  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9424  ac_status=$?
9425  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9426  test $ac_status = 0; }
9427        then
9428	  archive_cmds_need_lc=no
9429        else
9430	  archive_cmds_need_lc=yes
9431        fi
9432        allow_undefined_flag=$lt_save_allow_undefined_flag
9433      else
9434        cat conftest.err 1>&5
9435      fi
9436      $RM conftest*
9437      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9438$as_echo "$archive_cmds_need_lc" >&6; }
9439      ;;
9440    esac
9441  fi
9442  ;;
9443esac
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9602$as_echo_n "checking dynamic linker characteristics... " >&6; }
9603
9604if test "$GCC" = yes; then
9605  case $host_os in
9606    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9607    *) lt_awk_arg="/^libraries:/" ;;
9608  esac
9609  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9610  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9611    # if the path contains ";" then we assume it to be the separator
9612    # otherwise default to the standard path separator (i.e. ":") - it is
9613    # assumed that no part of a normal pathname contains ";" but that should
9614    # okay in the real world where ";" in dirpaths is itself problematic.
9615    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9616  else
9617    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9618  fi
9619  # Ok, now we have the path, separated by spaces, we can step through it
9620  # and add multilib dir if necessary.
9621  lt_tmp_lt_search_path_spec=
9622  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9623  for lt_sys_path in $lt_search_path_spec; do
9624    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9625      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9626    else
9627      test -d "$lt_sys_path" && \
9628	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9629    fi
9630  done
9631  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9632BEGIN {RS=" "; FS="/|\n";} {
9633  lt_foo="";
9634  lt_count=0;
9635  for (lt_i = NF; lt_i > 0; lt_i--) {
9636    if ($lt_i != "" && $lt_i != ".") {
9637      if ($lt_i == "..") {
9638        lt_count++;
9639      } else {
9640        if (lt_count == 0) {
9641          lt_foo="/" $lt_i lt_foo;
9642        } else {
9643          lt_count--;
9644        }
9645      }
9646    }
9647  }
9648  if (lt_foo != "") { lt_freq[lt_foo]++; }
9649  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9650}'`
9651  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9652else
9653  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9654fi
9655library_names_spec=
9656libname_spec='lib$name'
9657soname_spec=
9658shrext_cmds=".so"
9659postinstall_cmds=
9660postuninstall_cmds=
9661finish_cmds=
9662finish_eval=
9663shlibpath_var=
9664shlibpath_overrides_runpath=unknown
9665version_type=none
9666dynamic_linker="$host_os ld.so"
9667sys_lib_dlsearch_path_spec="/lib /usr/lib"
9668need_lib_prefix=unknown
9669hardcode_into_libs=no
9670
9671# when you set need_version to no, make sure it does not cause -set_version
9672# flags to be left without arguments
9673need_version=unknown
9674
9675case $host_os in
9676aix3*)
9677  version_type=linux
9678  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9679  shlibpath_var=LIBPATH
9680
9681  # AIX 3 has no versioning support, so we append a major version to the name.
9682  soname_spec='${libname}${release}${shared_ext}$major'
9683  ;;
9684
9685aix[4-9]*)
9686  version_type=linux
9687  need_lib_prefix=no
9688  need_version=no
9689  hardcode_into_libs=yes
9690  if test "$host_cpu" = ia64; then
9691    # AIX 5 supports IA64
9692    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9693    shlibpath_var=LD_LIBRARY_PATH
9694  else
9695    # With GCC up to 2.95.x, collect2 would create an import file
9696    # for dependence libraries.  The import file would start with
9697    # the line `#! .'.  This would cause the generated library to
9698    # depend on `.', always an invalid library.  This was fixed in
9699    # development snapshots of GCC prior to 3.0.
9700    case $host_os in
9701      aix4 | aix4.[01] | aix4.[01].*)
9702      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9703	   echo ' yes '
9704	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9705	:
9706      else
9707	can_build_shared=no
9708      fi
9709      ;;
9710    esac
9711    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9712    # soname into executable. Probably we can add versioning support to
9713    # collect2, so additional links can be useful in future.
9714    if test "$aix_use_runtimelinking" = yes; then
9715      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9716      # instead of lib<name>.a to let people know that these are not
9717      # typical AIX shared libraries.
9718      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9719    else
9720      # We preserve .a as extension for shared libraries through AIX4.2
9721      # and later when we are not doing run time linking.
9722      library_names_spec='${libname}${release}.a $libname.a'
9723      soname_spec='${libname}${release}${shared_ext}$major'
9724    fi
9725    shlibpath_var=LIBPATH
9726  fi
9727  ;;
9728
9729amigaos*)
9730  case $host_cpu in
9731  powerpc)
9732    # Since July 2007 AmigaOS4 officially supports .so libraries.
9733    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9734    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9735    ;;
9736  m68k)
9737    library_names_spec='$libname.ixlibrary $libname.a'
9738    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9739    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9740    ;;
9741  esac
9742  ;;
9743
9744beos*)
9745  library_names_spec='${libname}${shared_ext}'
9746  dynamic_linker="$host_os ld.so"
9747  shlibpath_var=LIBRARY_PATH
9748  ;;
9749
9750bsdi[45]*)
9751  version_type=linux
9752  need_version=no
9753  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9754  soname_spec='${libname}${release}${shared_ext}$major'
9755  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9756  shlibpath_var=LD_LIBRARY_PATH
9757  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9758  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9759  # the default ld.so.conf also contains /usr/contrib/lib and
9760  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9761  # libtool to hard-code these into programs
9762  ;;
9763
9764cygwin* | mingw* | pw32* | cegcc*)
9765  version_type=windows
9766  shrext_cmds=".dll"
9767  need_version=no
9768  need_lib_prefix=no
9769
9770  case $GCC,$host_os in
9771  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9772    library_names_spec='$libname.dll.a'
9773    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9774    postinstall_cmds='base_file=`basename \${file}`~
9775      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9776      dldir=$destdir/`dirname \$dlpath`~
9777      test -d \$dldir || mkdir -p \$dldir~
9778      $install_prog $dir/$dlname \$dldir/$dlname~
9779      chmod a+x \$dldir/$dlname~
9780      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9781        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9782      fi'
9783    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9784      dlpath=$dir/\$dldll~
9785       $RM \$dlpath'
9786    shlibpath_overrides_runpath=yes
9787
9788    case $host_os in
9789    cygwin*)
9790      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9791      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9792      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9793      ;;
9794    mingw* | cegcc*)
9795      # MinGW DLLs use traditional 'lib' prefix
9796      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9797      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9798      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9799        # It is most probably a Windows format PATH printed by
9800        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9801        # path with ; separators, and with drive letters. We can handle the
9802        # drive letters (cygwin fileutils understands them), so leave them,
9803        # especially as we might pass files found there to a mingw objdump,
9804        # which wouldn't understand a cygwinified path. Ahh.
9805        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9806      else
9807        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9808      fi
9809      ;;
9810    pw32*)
9811      # pw32 DLLs use 'pw' prefix rather than 'lib'
9812      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9813      ;;
9814    esac
9815    ;;
9816
9817  *)
9818    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9819    ;;
9820  esac
9821  dynamic_linker='Win32 ld.exe'
9822  # FIXME: first we should search . and the directory the executable is in
9823  shlibpath_var=PATH
9824  ;;
9825
9826darwin* | rhapsody*)
9827  dynamic_linker="$host_os dyld"
9828  version_type=darwin
9829  need_lib_prefix=no
9830  need_version=no
9831  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9832  soname_spec='${libname}${release}${major}$shared_ext'
9833  shlibpath_overrides_runpath=yes
9834  shlibpath_var=DYLD_LIBRARY_PATH
9835  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9836
9837  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9838  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9839  ;;
9840
9841dgux*)
9842  version_type=linux
9843  need_lib_prefix=no
9844  need_version=no
9845  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9846  soname_spec='${libname}${release}${shared_ext}$major'
9847  shlibpath_var=LD_LIBRARY_PATH
9848  ;;
9849
9850freebsd1*)
9851  dynamic_linker=no
9852  ;;
9853
9854freebsd* | dragonfly*)
9855  # DragonFly does not have aout.  When/if they implement a new
9856  # versioning mechanism, adjust this.
9857  if test -x /usr/bin/objformat; then
9858    objformat=`/usr/bin/objformat`
9859  else
9860    case $host_os in
9861    freebsd[123]*) objformat=aout ;;
9862    *) objformat=elf ;;
9863    esac
9864  fi
9865  version_type=freebsd-$objformat
9866  case $version_type in
9867    freebsd-elf*)
9868      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9869      need_version=no
9870      need_lib_prefix=no
9871      ;;
9872    freebsd-*)
9873      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9874      need_version=yes
9875      ;;
9876  esac
9877  shlibpath_var=LD_LIBRARY_PATH
9878  case $host_os in
9879  freebsd2*)
9880    shlibpath_overrides_runpath=yes
9881    ;;
9882  freebsd3.[01]* | freebsdelf3.[01]*)
9883    shlibpath_overrides_runpath=yes
9884    hardcode_into_libs=yes
9885    ;;
9886  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9887  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9888    shlibpath_overrides_runpath=no
9889    hardcode_into_libs=yes
9890    ;;
9891  *) # from 4.6 on, and DragonFly
9892    shlibpath_overrides_runpath=yes
9893    hardcode_into_libs=yes
9894    ;;
9895  esac
9896  ;;
9897
9898gnu*)
9899  version_type=linux
9900  need_lib_prefix=no
9901  need_version=no
9902  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9903  soname_spec='${libname}${release}${shared_ext}$major'
9904  shlibpath_var=LD_LIBRARY_PATH
9905  hardcode_into_libs=yes
9906  ;;
9907
9908hpux9* | hpux10* | hpux11*)
9909  # Give a soname corresponding to the major version so that dld.sl refuses to
9910  # link against other versions.
9911  version_type=sunos
9912  need_lib_prefix=no
9913  need_version=no
9914  case $host_cpu in
9915  ia64*)
9916    shrext_cmds='.so'
9917    hardcode_into_libs=yes
9918    dynamic_linker="$host_os dld.so"
9919    shlibpath_var=LD_LIBRARY_PATH
9920    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9921    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9922    soname_spec='${libname}${release}${shared_ext}$major'
9923    if test "X$HPUX_IA64_MODE" = X32; then
9924      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9925    else
9926      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9927    fi
9928    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9929    ;;
9930  hppa*64*)
9931    shrext_cmds='.sl'
9932    hardcode_into_libs=yes
9933    dynamic_linker="$host_os dld.sl"
9934    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9935    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9936    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9937    soname_spec='${libname}${release}${shared_ext}$major'
9938    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9939    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9940    ;;
9941  *)
9942    shrext_cmds='.sl'
9943    dynamic_linker="$host_os dld.sl"
9944    shlibpath_var=SHLIB_PATH
9945    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9946    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9947    soname_spec='${libname}${release}${shared_ext}$major'
9948    ;;
9949  esac
9950  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9951  postinstall_cmds='chmod 555 $lib'
9952  ;;
9953
9954interix[3-9]*)
9955  version_type=linux
9956  need_lib_prefix=no
9957  need_version=no
9958  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9959  soname_spec='${libname}${release}${shared_ext}$major'
9960  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9961  shlibpath_var=LD_LIBRARY_PATH
9962  shlibpath_overrides_runpath=no
9963  hardcode_into_libs=yes
9964  ;;
9965
9966irix5* | irix6* | nonstopux*)
9967  case $host_os in
9968    nonstopux*) version_type=nonstopux ;;
9969    *)
9970	if test "$lt_cv_prog_gnu_ld" = yes; then
9971		version_type=linux
9972	else
9973		version_type=irix
9974	fi ;;
9975  esac
9976  need_lib_prefix=no
9977  need_version=no
9978  soname_spec='${libname}${release}${shared_ext}$major'
9979  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9980  case $host_os in
9981  irix5* | nonstopux*)
9982    libsuff= shlibsuff=
9983    ;;
9984  *)
9985    case $LD in # libtool.m4 will add one of these switches to LD
9986    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9987      libsuff= shlibsuff= libmagic=32-bit;;
9988    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9989      libsuff=32 shlibsuff=N32 libmagic=N32;;
9990    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9991      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9992    *) libsuff= shlibsuff= libmagic=never-match;;
9993    esac
9994    ;;
9995  esac
9996  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9997  shlibpath_overrides_runpath=no
9998  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9999  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10000  hardcode_into_libs=yes
10001  ;;
10002
10003# No shared lib support for Linux oldld, aout, or coff.
10004linux*oldld* | linux*aout* | linux*coff*)
10005  dynamic_linker=no
10006  ;;
10007
10008# This must be Linux ELF.
10009linux* | k*bsd*-gnu | kopensolaris*-gnu)
10010  version_type=linux
10011  need_lib_prefix=no
10012  need_version=no
10013  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10014  soname_spec='${libname}${release}${shared_ext}$major'
10015  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10016  shlibpath_var=LD_LIBRARY_PATH
10017  shlibpath_overrides_runpath=no
10018  # Some binutils ld are patched to set DT_RUNPATH
10019  save_LDFLAGS=$LDFLAGS
10020  save_libdir=$libdir
10021  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10022       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10023  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10024/* end confdefs.h.  */
10025
10026int
10027main ()
10028{
10029
10030  ;
10031  return 0;
10032}
10033_ACEOF
10034if ac_fn_c_try_link "$LINENO"; then :
10035  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10036  shlibpath_overrides_runpath=yes
10037fi
10038fi
10039rm -f core conftest.err conftest.$ac_objext \
10040    conftest$ac_exeext conftest.$ac_ext
10041  LDFLAGS=$save_LDFLAGS
10042  libdir=$save_libdir
10043
10044  # This implies no fast_install, which is unacceptable.
10045  # Some rework will be needed to allow for fast_install
10046  # before this can be enabled.
10047  hardcode_into_libs=yes
10048
10049  # Append ld.so.conf contents to the search path
10050  if test -f /etc/ld.so.conf; then
10051    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10052    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10053  fi
10054
10055  # We used to test for /lib/ld.so.1 and disable shared libraries on
10056  # powerpc, because MkLinux only supported shared libraries with the
10057  # GNU dynamic linker.  Since this was broken with cross compilers,
10058  # most powerpc-linux boxes support dynamic linking these days and
10059  # people can always --disable-shared, the test was removed, and we
10060  # assume the GNU/Linux dynamic linker is in use.
10061  dynamic_linker='GNU/Linux ld.so'
10062  ;;
10063
10064netbsdelf*-gnu)
10065  version_type=linux
10066  need_lib_prefix=no
10067  need_version=no
10068  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10069  soname_spec='${libname}${release}${shared_ext}$major'
10070  shlibpath_var=LD_LIBRARY_PATH
10071  shlibpath_overrides_runpath=no
10072  hardcode_into_libs=yes
10073  dynamic_linker='NetBSD ld.elf_so'
10074  ;;
10075
10076netbsd*)
10077  version_type=sunos
10078  need_lib_prefix=no
10079  need_version=no
10080  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10081    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10082    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10083    dynamic_linker='NetBSD (a.out) ld.so'
10084  else
10085    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10086    soname_spec='${libname}${release}${shared_ext}$major'
10087    dynamic_linker='NetBSD ld.elf_so'
10088  fi
10089  shlibpath_var=LD_LIBRARY_PATH
10090  shlibpath_overrides_runpath=yes
10091  hardcode_into_libs=yes
10092  ;;
10093
10094newsos6)
10095  version_type=linux
10096  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10097  shlibpath_var=LD_LIBRARY_PATH
10098  shlibpath_overrides_runpath=yes
10099  ;;
10100
10101*nto* | *qnx*)
10102  version_type=qnx
10103  need_lib_prefix=no
10104  need_version=no
10105  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10106  soname_spec='${libname}${release}${shared_ext}$major'
10107  shlibpath_var=LD_LIBRARY_PATH
10108  shlibpath_overrides_runpath=no
10109  hardcode_into_libs=yes
10110  dynamic_linker='ldqnx.so'
10111  ;;
10112
10113openbsd*)
10114  version_type=sunos
10115  sys_lib_dlsearch_path_spec="/usr/lib"
10116  need_lib_prefix=no
10117  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10118  case $host_os in
10119    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10120    *)				need_version=no  ;;
10121  esac
10122  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10123  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10124  shlibpath_var=LD_LIBRARY_PATH
10125  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10126    case $host_os in
10127      openbsd2.[89] | openbsd2.[89].*)
10128	shlibpath_overrides_runpath=no
10129	;;
10130      *)
10131	shlibpath_overrides_runpath=yes
10132	;;
10133      esac
10134  else
10135    shlibpath_overrides_runpath=yes
10136  fi
10137  ;;
10138
10139os2*)
10140  libname_spec='$name'
10141  shrext_cmds=".dll"
10142  need_lib_prefix=no
10143  library_names_spec='$libname${shared_ext} $libname.a'
10144  dynamic_linker='OS/2 ld.exe'
10145  shlibpath_var=LIBPATH
10146  ;;
10147
10148osf3* | osf4* | osf5*)
10149  version_type=osf
10150  need_lib_prefix=no
10151  need_version=no
10152  soname_spec='${libname}${release}${shared_ext}$major'
10153  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10154  shlibpath_var=LD_LIBRARY_PATH
10155  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10156  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10157  ;;
10158
10159rdos*)
10160  dynamic_linker=no
10161  ;;
10162
10163solaris*)
10164  version_type=linux
10165  need_lib_prefix=no
10166  need_version=no
10167  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10168  soname_spec='${libname}${release}${shared_ext}$major'
10169  shlibpath_var=LD_LIBRARY_PATH
10170  shlibpath_overrides_runpath=yes
10171  hardcode_into_libs=yes
10172  # ldd complains unless libraries are executable
10173  postinstall_cmds='chmod +x $lib'
10174  ;;
10175
10176sunos4*)
10177  version_type=sunos
10178  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10179  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10180  shlibpath_var=LD_LIBRARY_PATH
10181  shlibpath_overrides_runpath=yes
10182  if test "$with_gnu_ld" = yes; then
10183    need_lib_prefix=no
10184  fi
10185  need_version=yes
10186  ;;
10187
10188sysv4 | sysv4.3*)
10189  version_type=linux
10190  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10191  soname_spec='${libname}${release}${shared_ext}$major'
10192  shlibpath_var=LD_LIBRARY_PATH
10193  case $host_vendor in
10194    sni)
10195      shlibpath_overrides_runpath=no
10196      need_lib_prefix=no
10197      runpath_var=LD_RUN_PATH
10198      ;;
10199    siemens)
10200      need_lib_prefix=no
10201      ;;
10202    motorola)
10203      need_lib_prefix=no
10204      need_version=no
10205      shlibpath_overrides_runpath=no
10206      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10207      ;;
10208  esac
10209  ;;
10210
10211sysv4*MP*)
10212  if test -d /usr/nec ;then
10213    version_type=linux
10214    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10215    soname_spec='$libname${shared_ext}.$major'
10216    shlibpath_var=LD_LIBRARY_PATH
10217  fi
10218  ;;
10219
10220sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10221  version_type=freebsd-elf
10222  need_lib_prefix=no
10223  need_version=no
10224  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10225  soname_spec='${libname}${release}${shared_ext}$major'
10226  shlibpath_var=LD_LIBRARY_PATH
10227  shlibpath_overrides_runpath=yes
10228  hardcode_into_libs=yes
10229  if test "$with_gnu_ld" = yes; then
10230    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10231  else
10232    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10233    case $host_os in
10234      sco3.2v5*)
10235        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10236	;;
10237    esac
10238  fi
10239  sys_lib_dlsearch_path_spec='/usr/lib'
10240  ;;
10241
10242tpf*)
10243  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10244  version_type=linux
10245  need_lib_prefix=no
10246  need_version=no
10247  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10248  shlibpath_var=LD_LIBRARY_PATH
10249  shlibpath_overrides_runpath=no
10250  hardcode_into_libs=yes
10251  ;;
10252
10253uts4*)
10254  version_type=linux
10255  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10256  soname_spec='${libname}${release}${shared_ext}$major'
10257  shlibpath_var=LD_LIBRARY_PATH
10258  ;;
10259
10260*)
10261  dynamic_linker=no
10262  ;;
10263esac
10264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10265$as_echo "$dynamic_linker" >&6; }
10266test "$dynamic_linker" = no && can_build_shared=no
10267
10268variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10269if test "$GCC" = yes; then
10270  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10271fi
10272
10273if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10274  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10275fi
10276if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10277  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10278fi
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10367$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10368hardcode_action=
10369if test -n "$hardcode_libdir_flag_spec" ||
10370   test -n "$runpath_var" ||
10371   test "X$hardcode_automatic" = "Xyes" ; then
10372
10373  # We can hardcode non-existent directories.
10374  if test "$hardcode_direct" != no &&
10375     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10376     # have to relink, otherwise we might link with an installed library
10377     # when we should be linking with a yet-to-be-installed one
10378     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10379     test "$hardcode_minus_L" != no; then
10380    # Linking always hardcodes the temporary library directory.
10381    hardcode_action=relink
10382  else
10383    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10384    hardcode_action=immediate
10385  fi
10386else
10387  # We cannot hardcode anything, or else we can only hardcode existing
10388  # directories.
10389  hardcode_action=unsupported
10390fi
10391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10392$as_echo "$hardcode_action" >&6; }
10393
10394if test "$hardcode_action" = relink ||
10395   test "$inherit_rpath" = yes; then
10396  # Fast installation is not supported
10397  enable_fast_install=no
10398elif test "$shlibpath_overrides_runpath" = yes ||
10399     test "$enable_shared" = no; then
10400  # Fast installation is not necessary
10401  enable_fast_install=needless
10402fi
10403
10404
10405
10406
10407
10408
10409  if test "x$enable_dlopen" != xyes; then
10410  enable_dlopen=unknown
10411  enable_dlopen_self=unknown
10412  enable_dlopen_self_static=unknown
10413else
10414  lt_cv_dlopen=no
10415  lt_cv_dlopen_libs=
10416
10417  case $host_os in
10418  beos*)
10419    lt_cv_dlopen="load_add_on"
10420    lt_cv_dlopen_libs=
10421    lt_cv_dlopen_self=yes
10422    ;;
10423
10424  mingw* | pw32* | cegcc*)
10425    lt_cv_dlopen="LoadLibrary"
10426    lt_cv_dlopen_libs=
10427    ;;
10428
10429  cygwin*)
10430    lt_cv_dlopen="dlopen"
10431    lt_cv_dlopen_libs=
10432    ;;
10433
10434  darwin*)
10435  # if libdl is installed we need to link against it
10436    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10437$as_echo_n "checking for dlopen in -ldl... " >&6; }
10438if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10439  $as_echo_n "(cached) " >&6
10440else
10441  ac_check_lib_save_LIBS=$LIBS
10442LIBS="-ldl  $LIBS"
10443cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10444/* end confdefs.h.  */
10445
10446/* Override any GCC internal prototype to avoid an error.
10447   Use char because int might match the return type of a GCC
10448   builtin and then its argument prototype would still apply.  */
10449#ifdef __cplusplus
10450extern "C"
10451#endif
10452char dlopen ();
10453int
10454main ()
10455{
10456return dlopen ();
10457  ;
10458  return 0;
10459}
10460_ACEOF
10461if ac_fn_c_try_link "$LINENO"; then :
10462  ac_cv_lib_dl_dlopen=yes
10463else
10464  ac_cv_lib_dl_dlopen=no
10465fi
10466rm -f core conftest.err conftest.$ac_objext \
10467    conftest$ac_exeext conftest.$ac_ext
10468LIBS=$ac_check_lib_save_LIBS
10469fi
10470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10471$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10472if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10473  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10474else
10475
10476    lt_cv_dlopen="dyld"
10477    lt_cv_dlopen_libs=
10478    lt_cv_dlopen_self=yes
10479
10480fi
10481
10482    ;;
10483
10484  *)
10485    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10486if test "x$ac_cv_func_shl_load" = x""yes; then :
10487  lt_cv_dlopen="shl_load"
10488else
10489  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10490$as_echo_n "checking for shl_load in -ldld... " >&6; }
10491if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10492  $as_echo_n "(cached) " >&6
10493else
10494  ac_check_lib_save_LIBS=$LIBS
10495LIBS="-ldld  $LIBS"
10496cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10497/* end confdefs.h.  */
10498
10499/* Override any GCC internal prototype to avoid an error.
10500   Use char because int might match the return type of a GCC
10501   builtin and then its argument prototype would still apply.  */
10502#ifdef __cplusplus
10503extern "C"
10504#endif
10505char shl_load ();
10506int
10507main ()
10508{
10509return shl_load ();
10510  ;
10511  return 0;
10512}
10513_ACEOF
10514if ac_fn_c_try_link "$LINENO"; then :
10515  ac_cv_lib_dld_shl_load=yes
10516else
10517  ac_cv_lib_dld_shl_load=no
10518fi
10519rm -f core conftest.err conftest.$ac_objext \
10520    conftest$ac_exeext conftest.$ac_ext
10521LIBS=$ac_check_lib_save_LIBS
10522fi
10523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10524$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10525if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10526  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10527else
10528  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10529if test "x$ac_cv_func_dlopen" = x""yes; then :
10530  lt_cv_dlopen="dlopen"
10531else
10532  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10533$as_echo_n "checking for dlopen in -ldl... " >&6; }
10534if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10535  $as_echo_n "(cached) " >&6
10536else
10537  ac_check_lib_save_LIBS=$LIBS
10538LIBS="-ldl  $LIBS"
10539cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10540/* end confdefs.h.  */
10541
10542/* Override any GCC internal prototype to avoid an error.
10543   Use char because int might match the return type of a GCC
10544   builtin and then its argument prototype would still apply.  */
10545#ifdef __cplusplus
10546extern "C"
10547#endif
10548char dlopen ();
10549int
10550main ()
10551{
10552return dlopen ();
10553  ;
10554  return 0;
10555}
10556_ACEOF
10557if ac_fn_c_try_link "$LINENO"; then :
10558  ac_cv_lib_dl_dlopen=yes
10559else
10560  ac_cv_lib_dl_dlopen=no
10561fi
10562rm -f core conftest.err conftest.$ac_objext \
10563    conftest$ac_exeext conftest.$ac_ext
10564LIBS=$ac_check_lib_save_LIBS
10565fi
10566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10567$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10568if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10569  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10570else
10571  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10572$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10573if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10574  $as_echo_n "(cached) " >&6
10575else
10576  ac_check_lib_save_LIBS=$LIBS
10577LIBS="-lsvld  $LIBS"
10578cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10579/* end confdefs.h.  */
10580
10581/* Override any GCC internal prototype to avoid an error.
10582   Use char because int might match the return type of a GCC
10583   builtin and then its argument prototype would still apply.  */
10584#ifdef __cplusplus
10585extern "C"
10586#endif
10587char dlopen ();
10588int
10589main ()
10590{
10591return dlopen ();
10592  ;
10593  return 0;
10594}
10595_ACEOF
10596if ac_fn_c_try_link "$LINENO"; then :
10597  ac_cv_lib_svld_dlopen=yes
10598else
10599  ac_cv_lib_svld_dlopen=no
10600fi
10601rm -f core conftest.err conftest.$ac_objext \
10602    conftest$ac_exeext conftest.$ac_ext
10603LIBS=$ac_check_lib_save_LIBS
10604fi
10605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10606$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10607if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10608  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10609else
10610  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10611$as_echo_n "checking for dld_link in -ldld... " >&6; }
10612if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10613  $as_echo_n "(cached) " >&6
10614else
10615  ac_check_lib_save_LIBS=$LIBS
10616LIBS="-ldld  $LIBS"
10617cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10618/* end confdefs.h.  */
10619
10620/* Override any GCC internal prototype to avoid an error.
10621   Use char because int might match the return type of a GCC
10622   builtin and then its argument prototype would still apply.  */
10623#ifdef __cplusplus
10624extern "C"
10625#endif
10626char dld_link ();
10627int
10628main ()
10629{
10630return dld_link ();
10631  ;
10632  return 0;
10633}
10634_ACEOF
10635if ac_fn_c_try_link "$LINENO"; then :
10636  ac_cv_lib_dld_dld_link=yes
10637else
10638  ac_cv_lib_dld_dld_link=no
10639fi
10640rm -f core conftest.err conftest.$ac_objext \
10641    conftest$ac_exeext conftest.$ac_ext
10642LIBS=$ac_check_lib_save_LIBS
10643fi
10644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10645$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10646if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10647  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10648fi
10649
10650
10651fi
10652
10653
10654fi
10655
10656
10657fi
10658
10659
10660fi
10661
10662
10663fi
10664
10665    ;;
10666  esac
10667
10668  if test "x$lt_cv_dlopen" != xno; then
10669    enable_dlopen=yes
10670  else
10671    enable_dlopen=no
10672  fi
10673
10674  case $lt_cv_dlopen in
10675  dlopen)
10676    save_CPPFLAGS="$CPPFLAGS"
10677    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10678
10679    save_LDFLAGS="$LDFLAGS"
10680    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10681
10682    save_LIBS="$LIBS"
10683    LIBS="$lt_cv_dlopen_libs $LIBS"
10684
10685    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10686$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10687if test "${lt_cv_dlopen_self+set}" = set; then :
10688  $as_echo_n "(cached) " >&6
10689else
10690  	  if test "$cross_compiling" = yes; then :
10691  lt_cv_dlopen_self=cross
10692else
10693  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10694  lt_status=$lt_dlunknown
10695  cat > conftest.$ac_ext <<_LT_EOF
10696#line 10696 "configure"
10697#include "confdefs.h"
10698
10699#if HAVE_DLFCN_H
10700#include <dlfcn.h>
10701#endif
10702
10703#include <stdio.h>
10704
10705#ifdef RTLD_GLOBAL
10706#  define LT_DLGLOBAL		RTLD_GLOBAL
10707#else
10708#  ifdef DL_GLOBAL
10709#    define LT_DLGLOBAL		DL_GLOBAL
10710#  else
10711#    define LT_DLGLOBAL		0
10712#  endif
10713#endif
10714
10715/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10716   find out it does not work in some platform. */
10717#ifndef LT_DLLAZY_OR_NOW
10718#  ifdef RTLD_LAZY
10719#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10720#  else
10721#    ifdef DL_LAZY
10722#      define LT_DLLAZY_OR_NOW		DL_LAZY
10723#    else
10724#      ifdef RTLD_NOW
10725#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10726#      else
10727#        ifdef DL_NOW
10728#          define LT_DLLAZY_OR_NOW	DL_NOW
10729#        else
10730#          define LT_DLLAZY_OR_NOW	0
10731#        endif
10732#      endif
10733#    endif
10734#  endif
10735#endif
10736
10737void fnord() { int i=42;}
10738int main ()
10739{
10740  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10741  int status = $lt_dlunknown;
10742
10743  if (self)
10744    {
10745      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10746      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10747      /* dlclose (self); */
10748    }
10749  else
10750    puts (dlerror ());
10751
10752  return status;
10753}
10754_LT_EOF
10755  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10756  (eval $ac_link) 2>&5
10757  ac_status=$?
10758  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10759  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10760    (./conftest; exit; ) >&5 2>/dev/null
10761    lt_status=$?
10762    case x$lt_status in
10763      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10764      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10765      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10766    esac
10767  else :
10768    # compilation failed
10769    lt_cv_dlopen_self=no
10770  fi
10771fi
10772rm -fr conftest*
10773
10774
10775fi
10776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10777$as_echo "$lt_cv_dlopen_self" >&6; }
10778
10779    if test "x$lt_cv_dlopen_self" = xyes; then
10780      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10781      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10782$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10783if test "${lt_cv_dlopen_self_static+set}" = set; then :
10784  $as_echo_n "(cached) " >&6
10785else
10786  	  if test "$cross_compiling" = yes; then :
10787  lt_cv_dlopen_self_static=cross
10788else
10789  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10790  lt_status=$lt_dlunknown
10791  cat > conftest.$ac_ext <<_LT_EOF
10792#line 10792 "configure"
10793#include "confdefs.h"
10794
10795#if HAVE_DLFCN_H
10796#include <dlfcn.h>
10797#endif
10798
10799#include <stdio.h>
10800
10801#ifdef RTLD_GLOBAL
10802#  define LT_DLGLOBAL		RTLD_GLOBAL
10803#else
10804#  ifdef DL_GLOBAL
10805#    define LT_DLGLOBAL		DL_GLOBAL
10806#  else
10807#    define LT_DLGLOBAL		0
10808#  endif
10809#endif
10810
10811/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10812   find out it does not work in some platform. */
10813#ifndef LT_DLLAZY_OR_NOW
10814#  ifdef RTLD_LAZY
10815#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10816#  else
10817#    ifdef DL_LAZY
10818#      define LT_DLLAZY_OR_NOW		DL_LAZY
10819#    else
10820#      ifdef RTLD_NOW
10821#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10822#      else
10823#        ifdef DL_NOW
10824#          define LT_DLLAZY_OR_NOW	DL_NOW
10825#        else
10826#          define LT_DLLAZY_OR_NOW	0
10827#        endif
10828#      endif
10829#    endif
10830#  endif
10831#endif
10832
10833void fnord() { int i=42;}
10834int main ()
10835{
10836  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10837  int status = $lt_dlunknown;
10838
10839  if (self)
10840    {
10841      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10842      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10843      /* dlclose (self); */
10844    }
10845  else
10846    puts (dlerror ());
10847
10848  return status;
10849}
10850_LT_EOF
10851  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10852  (eval $ac_link) 2>&5
10853  ac_status=$?
10854  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10855  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10856    (./conftest; exit; ) >&5 2>/dev/null
10857    lt_status=$?
10858    case x$lt_status in
10859      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10860      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10861      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10862    esac
10863  else :
10864    # compilation failed
10865    lt_cv_dlopen_self_static=no
10866  fi
10867fi
10868rm -fr conftest*
10869
10870
10871fi
10872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10873$as_echo "$lt_cv_dlopen_self_static" >&6; }
10874    fi
10875
10876    CPPFLAGS="$save_CPPFLAGS"
10877    LDFLAGS="$save_LDFLAGS"
10878    LIBS="$save_LIBS"
10879    ;;
10880  esac
10881
10882  case $lt_cv_dlopen_self in
10883  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10884  *) enable_dlopen_self=unknown ;;
10885  esac
10886
10887  case $lt_cv_dlopen_self_static in
10888  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10889  *) enable_dlopen_self_static=unknown ;;
10890  esac
10891fi
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909striplib=
10910old_striplib=
10911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10912$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10913if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10914  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10915  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10917$as_echo "yes" >&6; }
10918else
10919# FIXME - insert some real tests, host_os isn't really good enough
10920  case $host_os in
10921  darwin*)
10922    if test -n "$STRIP" ; then
10923      striplib="$STRIP -x"
10924      old_striplib="$STRIP -S"
10925      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10926$as_echo "yes" >&6; }
10927    else
10928      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10929$as_echo "no" >&6; }
10930    fi
10931    ;;
10932  *)
10933    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10934$as_echo "no" >&6; }
10935    ;;
10936  esac
10937fi
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950  # Report which library types will actually be built
10951  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10952$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10954$as_echo "$can_build_shared" >&6; }
10955
10956  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10957$as_echo_n "checking whether to build shared libraries... " >&6; }
10958  test "$can_build_shared" = "no" && enable_shared=no
10959
10960  # On AIX, shared libraries and static libraries use the same namespace, and
10961  # are all built from PIC.
10962  case $host_os in
10963  aix3*)
10964    test "$enable_shared" = yes && enable_static=no
10965    if test -n "$RANLIB"; then
10966      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10967      postinstall_cmds='$RANLIB $lib'
10968    fi
10969    ;;
10970
10971  aix[4-9]*)
10972    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10973      test "$enable_shared" = yes && enable_static=no
10974    fi
10975    ;;
10976  esac
10977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10978$as_echo "$enable_shared" >&6; }
10979
10980  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10981$as_echo_n "checking whether to build static libraries... " >&6; }
10982  # Make sure either enable_shared or enable_static is yes.
10983  test "$enable_shared" = yes || enable_static=yes
10984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10985$as_echo "$enable_static" >&6; }
10986
10987
10988
10989
10990fi
10991ac_ext=c
10992ac_cpp='$CPP $CPPFLAGS'
10993ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10994ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10995ac_compiler_gnu=$ac_cv_c_compiler_gnu
10996
10997CC="$lt_save_CC"
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011        ac_config_commands="$ac_config_commands libtool"
11012
11013
11014
11015
11016# Only expand once:
11017
11018
11019ac_ext=c
11020ac_cpp='$CPP $CPPFLAGS'
11021ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11022ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11023ac_compiler_gnu=$ac_cv_c_compiler_gnu
11024if test -n "$ac_tool_prefix"; then
11025  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11026set dummy ${ac_tool_prefix}gcc; ac_word=$2
11027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11028$as_echo_n "checking for $ac_word... " >&6; }
11029if test "${ac_cv_prog_CC+set}" = set; then :
11030  $as_echo_n "(cached) " >&6
11031else
11032  if test -n "$CC"; then
11033  ac_cv_prog_CC="$CC" # Let the user override the test.
11034else
11035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11036for as_dir in $PATH
11037do
11038  IFS=$as_save_IFS
11039  test -z "$as_dir" && as_dir=.
11040    for ac_exec_ext in '' $ac_executable_extensions; do
11041  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11042    ac_cv_prog_CC="${ac_tool_prefix}gcc"
11043    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11044    break 2
11045  fi
11046done
11047  done
11048IFS=$as_save_IFS
11049
11050fi
11051fi
11052CC=$ac_cv_prog_CC
11053if test -n "$CC"; then
11054  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11055$as_echo "$CC" >&6; }
11056else
11057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11058$as_echo "no" >&6; }
11059fi
11060
11061
11062fi
11063if test -z "$ac_cv_prog_CC"; then
11064  ac_ct_CC=$CC
11065  # Extract the first word of "gcc", so it can be a program name with args.
11066set dummy gcc; ac_word=$2
11067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11068$as_echo_n "checking for $ac_word... " >&6; }
11069if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11070  $as_echo_n "(cached) " >&6
11071else
11072  if test -n "$ac_ct_CC"; then
11073  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11074else
11075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11076for as_dir in $PATH
11077do
11078  IFS=$as_save_IFS
11079  test -z "$as_dir" && as_dir=.
11080    for ac_exec_ext in '' $ac_executable_extensions; do
11081  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11082    ac_cv_prog_ac_ct_CC="gcc"
11083    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11084    break 2
11085  fi
11086done
11087  done
11088IFS=$as_save_IFS
11089
11090fi
11091fi
11092ac_ct_CC=$ac_cv_prog_ac_ct_CC
11093if test -n "$ac_ct_CC"; then
11094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11095$as_echo "$ac_ct_CC" >&6; }
11096else
11097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11098$as_echo "no" >&6; }
11099fi
11100
11101  if test "x$ac_ct_CC" = x; then
11102    CC=""
11103  else
11104    case $cross_compiling:$ac_tool_warned in
11105yes:)
11106{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11107$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11108ac_tool_warned=yes ;;
11109esac
11110    CC=$ac_ct_CC
11111  fi
11112else
11113  CC="$ac_cv_prog_CC"
11114fi
11115
11116if test -z "$CC"; then
11117          if test -n "$ac_tool_prefix"; then
11118    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11119set dummy ${ac_tool_prefix}cc; ac_word=$2
11120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11121$as_echo_n "checking for $ac_word... " >&6; }
11122if test "${ac_cv_prog_CC+set}" = set; then :
11123  $as_echo_n "(cached) " >&6
11124else
11125  if test -n "$CC"; then
11126  ac_cv_prog_CC="$CC" # Let the user override the test.
11127else
11128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11129for as_dir in $PATH
11130do
11131  IFS=$as_save_IFS
11132  test -z "$as_dir" && as_dir=.
11133    for ac_exec_ext in '' $ac_executable_extensions; do
11134  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11135    ac_cv_prog_CC="${ac_tool_prefix}cc"
11136    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11137    break 2
11138  fi
11139done
11140  done
11141IFS=$as_save_IFS
11142
11143fi
11144fi
11145CC=$ac_cv_prog_CC
11146if test -n "$CC"; then
11147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11148$as_echo "$CC" >&6; }
11149else
11150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11151$as_echo "no" >&6; }
11152fi
11153
11154
11155  fi
11156fi
11157if test -z "$CC"; then
11158  # Extract the first word of "cc", so it can be a program name with args.
11159set dummy cc; ac_word=$2
11160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11161$as_echo_n "checking for $ac_word... " >&6; }
11162if test "${ac_cv_prog_CC+set}" = set; then :
11163  $as_echo_n "(cached) " >&6
11164else
11165  if test -n "$CC"; then
11166  ac_cv_prog_CC="$CC" # Let the user override the test.
11167else
11168  ac_prog_rejected=no
11169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11170for as_dir in $PATH
11171do
11172  IFS=$as_save_IFS
11173  test -z "$as_dir" && as_dir=.
11174    for ac_exec_ext in '' $ac_executable_extensions; do
11175  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11176    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11177       ac_prog_rejected=yes
11178       continue
11179     fi
11180    ac_cv_prog_CC="cc"
11181    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11182    break 2
11183  fi
11184done
11185  done
11186IFS=$as_save_IFS
11187
11188if test $ac_prog_rejected = yes; then
11189  # We found a bogon in the path, so make sure we never use it.
11190  set dummy $ac_cv_prog_CC
11191  shift
11192  if test $# != 0; then
11193    # We chose a different compiler from the bogus one.
11194    # However, it has the same basename, so the bogon will be chosen
11195    # first if we set CC to just the basename; use the full file name.
11196    shift
11197    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11198  fi
11199fi
11200fi
11201fi
11202CC=$ac_cv_prog_CC
11203if test -n "$CC"; then
11204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11205$as_echo "$CC" >&6; }
11206else
11207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11208$as_echo "no" >&6; }
11209fi
11210
11211
11212fi
11213if test -z "$CC"; then
11214  if test -n "$ac_tool_prefix"; then
11215  for ac_prog in cl.exe
11216  do
11217    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11218set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11220$as_echo_n "checking for $ac_word... " >&6; }
11221if test "${ac_cv_prog_CC+set}" = set; then :
11222  $as_echo_n "(cached) " >&6
11223else
11224  if test -n "$CC"; then
11225  ac_cv_prog_CC="$CC" # Let the user override the test.
11226else
11227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11228for as_dir in $PATH
11229do
11230  IFS=$as_save_IFS
11231  test -z "$as_dir" && as_dir=.
11232    for ac_exec_ext in '' $ac_executable_extensions; do
11233  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11234    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11235    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11236    break 2
11237  fi
11238done
11239  done
11240IFS=$as_save_IFS
11241
11242fi
11243fi
11244CC=$ac_cv_prog_CC
11245if test -n "$CC"; then
11246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11247$as_echo "$CC" >&6; }
11248else
11249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11250$as_echo "no" >&6; }
11251fi
11252
11253
11254    test -n "$CC" && break
11255  done
11256fi
11257if test -z "$CC"; then
11258  ac_ct_CC=$CC
11259  for ac_prog in cl.exe
11260do
11261  # Extract the first word of "$ac_prog", so it can be a program name with args.
11262set dummy $ac_prog; ac_word=$2
11263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11264$as_echo_n "checking for $ac_word... " >&6; }
11265if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11266  $as_echo_n "(cached) " >&6
11267else
11268  if test -n "$ac_ct_CC"; then
11269  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11270else
11271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11272for as_dir in $PATH
11273do
11274  IFS=$as_save_IFS
11275  test -z "$as_dir" && as_dir=.
11276    for ac_exec_ext in '' $ac_executable_extensions; do
11277  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11278    ac_cv_prog_ac_ct_CC="$ac_prog"
11279    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11280    break 2
11281  fi
11282done
11283  done
11284IFS=$as_save_IFS
11285
11286fi
11287fi
11288ac_ct_CC=$ac_cv_prog_ac_ct_CC
11289if test -n "$ac_ct_CC"; then
11290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11291$as_echo "$ac_ct_CC" >&6; }
11292else
11293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11294$as_echo "no" >&6; }
11295fi
11296
11297
11298  test -n "$ac_ct_CC" && break
11299done
11300
11301  if test "x$ac_ct_CC" = x; then
11302    CC=""
11303  else
11304    case $cross_compiling:$ac_tool_warned in
11305yes:)
11306{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11307$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11308ac_tool_warned=yes ;;
11309esac
11310    CC=$ac_ct_CC
11311  fi
11312fi
11313
11314fi
11315
11316
11317test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11318$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11319as_fn_error $? "no acceptable C compiler found in \$PATH
11320See \`config.log' for more details" "$LINENO" 5 ; }
11321
11322# Provide some information about the compiler.
11323$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11324set X $ac_compile
11325ac_compiler=$2
11326for ac_option in --version -v -V -qversion; do
11327  { { ac_try="$ac_compiler $ac_option >&5"
11328case "(($ac_try" in
11329  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11330  *) ac_try_echo=$ac_try;;
11331esac
11332eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11333$as_echo "$ac_try_echo"; } >&5
11334  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11335  ac_status=$?
11336  if test -s conftest.err; then
11337    sed '10a\
11338... rest of stderr output deleted ...
11339         10q' conftest.err >conftest.er1
11340    cat conftest.er1 >&5
11341  fi
11342  rm -f conftest.er1 conftest.err
11343  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11344  test $ac_status = 0; }
11345done
11346
11347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11348$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11349if test "${ac_cv_c_compiler_gnu+set}" = set; then :
11350  $as_echo_n "(cached) " >&6
11351else
11352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11353/* end confdefs.h.  */
11354
11355int
11356main ()
11357{
11358#ifndef __GNUC__
11359       choke me
11360#endif
11361
11362  ;
11363  return 0;
11364}
11365_ACEOF
11366if ac_fn_c_try_compile "$LINENO"; then :
11367  ac_compiler_gnu=yes
11368else
11369  ac_compiler_gnu=no
11370fi
11371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11372ac_cv_c_compiler_gnu=$ac_compiler_gnu
11373
11374fi
11375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11376$as_echo "$ac_cv_c_compiler_gnu" >&6; }
11377if test $ac_compiler_gnu = yes; then
11378  GCC=yes
11379else
11380  GCC=
11381fi
11382ac_test_CFLAGS=${CFLAGS+set}
11383ac_save_CFLAGS=$CFLAGS
11384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11385$as_echo_n "checking whether $CC accepts -g... " >&6; }
11386if test "${ac_cv_prog_cc_g+set}" = set; then :
11387  $as_echo_n "(cached) " >&6
11388else
11389  ac_save_c_werror_flag=$ac_c_werror_flag
11390   ac_c_werror_flag=yes
11391   ac_cv_prog_cc_g=no
11392   CFLAGS="-g"
11393   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11394/* end confdefs.h.  */
11395
11396int
11397main ()
11398{
11399
11400  ;
11401  return 0;
11402}
11403_ACEOF
11404if ac_fn_c_try_compile "$LINENO"; then :
11405  ac_cv_prog_cc_g=yes
11406else
11407  CFLAGS=""
11408      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11409/* end confdefs.h.  */
11410
11411int
11412main ()
11413{
11414
11415  ;
11416  return 0;
11417}
11418_ACEOF
11419if ac_fn_c_try_compile "$LINENO"; then :
11420
11421else
11422  ac_c_werror_flag=$ac_save_c_werror_flag
11423	 CFLAGS="-g"
11424	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11425/* end confdefs.h.  */
11426
11427int
11428main ()
11429{
11430
11431  ;
11432  return 0;
11433}
11434_ACEOF
11435if ac_fn_c_try_compile "$LINENO"; then :
11436  ac_cv_prog_cc_g=yes
11437fi
11438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11439fi
11440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11441fi
11442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11443   ac_c_werror_flag=$ac_save_c_werror_flag
11444fi
11445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11446$as_echo "$ac_cv_prog_cc_g" >&6; }
11447if test "$ac_test_CFLAGS" = set; then
11448  CFLAGS=$ac_save_CFLAGS
11449elif test $ac_cv_prog_cc_g = yes; then
11450  if test "$GCC" = yes; then
11451    CFLAGS="-g -O2"
11452  else
11453    CFLAGS="-g"
11454  fi
11455else
11456  if test "$GCC" = yes; then
11457    CFLAGS="-O2"
11458  else
11459    CFLAGS=
11460  fi
11461fi
11462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11463$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11464if test "${ac_cv_prog_cc_c89+set}" = set; then :
11465  $as_echo_n "(cached) " >&6
11466else
11467  ac_cv_prog_cc_c89=no
11468ac_save_CC=$CC
11469cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11470/* end confdefs.h.  */
11471#include <stdarg.h>
11472#include <stdio.h>
11473#include <sys/types.h>
11474#include <sys/stat.h>
11475/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11476struct buf { int x; };
11477FILE * (*rcsopen) (struct buf *, struct stat *, int);
11478static char *e (p, i)
11479     char **p;
11480     int i;
11481{
11482  return p[i];
11483}
11484static char *f (char * (*g) (char **, int), char **p, ...)
11485{
11486  char *s;
11487  va_list v;
11488  va_start (v,p);
11489  s = g (p, va_arg (v,int));
11490  va_end (v);
11491  return s;
11492}
11493
11494/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11495   function prototypes and stuff, but not '\xHH' hex character constants.
11496   These don't provoke an error unfortunately, instead are silently treated
11497   as 'x'.  The following induces an error, until -std is added to get
11498   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11499   array size at least.  It's necessary to write '\x00'==0 to get something
11500   that's true only with -std.  */
11501int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11502
11503/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11504   inside strings and character constants.  */
11505#define FOO(x) 'x'
11506int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11507
11508int test (int i, double x);
11509struct s1 {int (*f) (int a);};
11510struct s2 {int (*f) (double a);};
11511int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11512int argc;
11513char **argv;
11514int
11515main ()
11516{
11517return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11518  ;
11519  return 0;
11520}
11521_ACEOF
11522for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11523	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11524do
11525  CC="$ac_save_CC $ac_arg"
11526  if ac_fn_c_try_compile "$LINENO"; then :
11527  ac_cv_prog_cc_c89=$ac_arg
11528fi
11529rm -f core conftest.err conftest.$ac_objext
11530  test "x$ac_cv_prog_cc_c89" != "xno" && break
11531done
11532rm -f conftest.$ac_ext
11533CC=$ac_save_CC
11534
11535fi
11536# AC_CACHE_VAL
11537case "x$ac_cv_prog_cc_c89" in
11538  x)
11539    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11540$as_echo "none needed" >&6; } ;;
11541  xno)
11542    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11543$as_echo "unsupported" >&6; } ;;
11544  *)
11545    CC="$CC $ac_cv_prog_cc_c89"
11546    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11547$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11548esac
11549if test "x$ac_cv_prog_cc_c89" != xno; then :
11550
11551fi
11552
11553ac_ext=c
11554ac_cpp='$CPP $CPPFLAGS'
11555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11557ac_compiler_gnu=$ac_cv_c_compiler_gnu
11558
11559depcc="$CC"   am_compiler_list=
11560
11561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11562$as_echo_n "checking dependency style of $depcc... " >&6; }
11563if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
11564  $as_echo_n "(cached) " >&6
11565else
11566  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11567  # We make a subdir and do the tests there.  Otherwise we can end up
11568  # making bogus files that we don't know about and never remove.  For
11569  # instance it was reported that on HP-UX the gcc test will end up
11570  # making a dummy file named `D' -- because `-MD' means `put the output
11571  # in D'.
11572  mkdir conftest.dir
11573  # Copy depcomp to subdir because otherwise we won't find it if we're
11574  # using a relative directory.
11575  cp "$am_depcomp" conftest.dir
11576  cd conftest.dir
11577  # We will build objects and dependencies in a subdirectory because
11578  # it helps to detect inapplicable dependency modes.  For instance
11579  # both Tru64's cc and ICC support -MD to output dependencies as a
11580  # side effect of compilation, but ICC will put the dependencies in
11581  # the current directory while Tru64 will put them in the object
11582  # directory.
11583  mkdir sub
11584
11585  am_cv_CC_dependencies_compiler_type=none
11586  if test "$am_compiler_list" = ""; then
11587     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11588  fi
11589  am__universal=false
11590  case " $depcc " in #(
11591     *\ -arch\ *\ -arch\ *) am__universal=true ;;
11592     esac
11593
11594  for depmode in $am_compiler_list; do
11595    # Setup a source with many dependencies, because some compilers
11596    # like to wrap large dependency lists on column 80 (with \), and
11597    # we should not choose a depcomp mode which is confused by this.
11598    #
11599    # We need to recreate these files for each test, as the compiler may
11600    # overwrite some of them when testing with obscure command lines.
11601    # This happens at least with the AIX C compiler.
11602    : > sub/conftest.c
11603    for i in 1 2 3 4 5 6; do
11604      echo '#include "conftst'$i'.h"' >> sub/conftest.c
11605      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11606      # Solaris 8's {/usr,}/bin/sh.
11607      touch sub/conftst$i.h
11608    done
11609    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11610
11611    # We check with `-c' and `-o' for the sake of the "dashmstdout"
11612    # mode.  It turns out that the SunPro C++ compiler does not properly
11613    # handle `-M -o', and we need to detect this.  Also, some Intel
11614    # versions had trouble with output in subdirs
11615    am__obj=sub/conftest.${OBJEXT-o}
11616    am__minus_obj="-o $am__obj"
11617    case $depmode in
11618    gcc)
11619      # This depmode causes a compiler race in universal mode.
11620      test "$am__universal" = false || continue
11621      ;;
11622    nosideeffect)
11623      # after this tag, mechanisms are not by side-effect, so they'll
11624      # only be used when explicitly requested
11625      if test "x$enable_dependency_tracking" = xyes; then
11626	continue
11627      else
11628	break
11629      fi
11630      ;;
11631    msvisualcpp | msvcmsys)
11632      # This compiler won't grok `-c -o', but also, the minuso test has
11633      # not run yet.  These depmodes are late enough in the game, and
11634      # so weak that their functioning should not be impacted.
11635      am__obj=conftest.${OBJEXT-o}
11636      am__minus_obj=
11637      ;;
11638    none) break ;;
11639    esac
11640    if depmode=$depmode \
11641       source=sub/conftest.c object=$am__obj \
11642       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11643       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11644         >/dev/null 2>conftest.err &&
11645       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11646       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11647       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11648       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11649      # icc doesn't choke on unknown options, it will just issue warnings
11650      # or remarks (even with -Werror).  So we grep stderr for any message
11651      # that says an option was ignored or not supported.
11652      # When given -MP, icc 7.0 and 7.1 complain thusly:
11653      #   icc: Command line warning: ignoring option '-M'; no argument required
11654      # The diagnosis changed in icc 8.0:
11655      #   icc: Command line remark: option '-MP' not supported
11656      if (grep 'ignoring option' conftest.err ||
11657          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11658        am_cv_CC_dependencies_compiler_type=$depmode
11659        break
11660      fi
11661    fi
11662  done
11663
11664  cd ..
11665  rm -rf conftest.dir
11666else
11667  am_cv_CC_dependencies_compiler_type=none
11668fi
11669
11670fi
11671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11672$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11673CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11674
11675 if
11676  test "x$enable_dependency_tracking" != xno \
11677  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11678  am__fastdepCC_TRUE=
11679  am__fastdepCC_FALSE='#'
11680else
11681  am__fastdepCC_TRUE='#'
11682  am__fastdepCC_FALSE=
11683fi
11684
11685
11686
11687# Extract the first word of "xsltproc", so it can be a program name with args.
11688set dummy xsltproc; ac_word=$2
11689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11690$as_echo_n "checking for $ac_word... " >&6; }
11691if test "${ac_cv_path_XSLTPROC+set}" = set; then :
11692  $as_echo_n "(cached) " >&6
11693else
11694  case $XSLTPROC in
11695  [\\/]* | ?:[\\/]*)
11696  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
11697  ;;
11698  *)
11699  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11700for as_dir in $PATH
11701do
11702  IFS=$as_save_IFS
11703  test -z "$as_dir" && as_dir=.
11704    for ac_exec_ext in '' $ac_executable_extensions; do
11705  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11706    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
11707    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11708    break 2
11709  fi
11710done
11711  done
11712IFS=$as_save_IFS
11713
11714  test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="no"
11715  ;;
11716esac
11717fi
11718XSLTPROC=$ac_cv_path_XSLTPROC
11719if test -n "$XSLTPROC"; then
11720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
11721$as_echo "$XSLTPROC" >&6; }
11722else
11723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11724$as_echo "no" >&6; }
11725fi
11726
11727
11728if test "$XSLTPROC" = "no"; then
11729   as_fn_error $? "XCB requires xsltproc." "$LINENO" 5
11730fi
11731
11732HTML_CHECK_RESULT=false
11733if test x"$HAVE_CHECK" = xyes; then
11734	if test x"$XSLTPROC" != xno; then
11735		HTML_CHECK_RESULT=true
11736	fi
11737fi
11738
11739
11740# Checks for pkg-config packages
11741
11742pkg_failed=no
11743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCBPROTO" >&5
11744$as_echo_n "checking for XCBPROTO... " >&6; }
11745
11746if test -n "$XCBPROTO_CFLAGS"; then
11747    pkg_cv_XCBPROTO_CFLAGS="$XCBPROTO_CFLAGS"
11748 elif test -n "$PKG_CONFIG"; then
11749    if test -n "$PKG_CONFIG" && \
11750    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-proto >= 1.6\""; } >&5
11751  ($PKG_CONFIG --exists --print-errors "xcb-proto >= 1.6") 2>&5
11752  ac_status=$?
11753  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11754  test $ac_status = 0; }; then
11755  pkg_cv_XCBPROTO_CFLAGS=`$PKG_CONFIG --cflags "xcb-proto >= 1.6" 2>/dev/null`
11756else
11757  pkg_failed=yes
11758fi
11759 else
11760    pkg_failed=untried
11761fi
11762if test -n "$XCBPROTO_LIBS"; then
11763    pkg_cv_XCBPROTO_LIBS="$XCBPROTO_LIBS"
11764 elif test -n "$PKG_CONFIG"; then
11765    if test -n "$PKG_CONFIG" && \
11766    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-proto >= 1.6\""; } >&5
11767  ($PKG_CONFIG --exists --print-errors "xcb-proto >= 1.6") 2>&5
11768  ac_status=$?
11769  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11770  test $ac_status = 0; }; then
11771  pkg_cv_XCBPROTO_LIBS=`$PKG_CONFIG --libs "xcb-proto >= 1.6" 2>/dev/null`
11772else
11773  pkg_failed=yes
11774fi
11775 else
11776    pkg_failed=untried
11777fi
11778
11779
11780
11781if test $pkg_failed = yes; then
11782   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11783$as_echo "no" >&6; }
11784
11785if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11786        _pkg_short_errors_supported=yes
11787else
11788        _pkg_short_errors_supported=no
11789fi
11790        if test $_pkg_short_errors_supported = yes; then
11791	        XCBPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xcb-proto >= 1.6" 2>&1`
11792        else
11793	        XCBPROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors "xcb-proto >= 1.6" 2>&1`
11794        fi
11795	# Put the nasty error message in config.log where it belongs
11796	echo "$XCBPROTO_PKG_ERRORS" >&5
11797
11798	as_fn_error $? "Package requirements (xcb-proto >= 1.6) were not met:
11799
11800$XCBPROTO_PKG_ERRORS
11801
11802Consider adjusting the PKG_CONFIG_PATH environment variable if you
11803installed software in a non-standard prefix.
11804
11805Alternatively, you may set the environment variables XCBPROTO_CFLAGS
11806and XCBPROTO_LIBS to avoid the need to call pkg-config.
11807See the pkg-config man page for more details." "$LINENO" 5
11808elif test $pkg_failed = untried; then
11809     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11810$as_echo "no" >&6; }
11811	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11812$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11813as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11814is in your PATH or set the PKG_CONFIG environment variable to the full
11815path to pkg-config.
11816
11817Alternatively, you may set the environment variables XCBPROTO_CFLAGS
11818and XCBPROTO_LIBS to avoid the need to call pkg-config.
11819See the pkg-config man page for more details.
11820
11821To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11822See \`config.log' for more details" "$LINENO" 5 ; }
11823else
11824	XCBPROTO_CFLAGS=$pkg_cv_XCBPROTO_CFLAGS
11825	XCBPROTO_LIBS=$pkg_cv_XCBPROTO_LIBS
11826        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11827$as_echo "yes" >&6; }
11828
11829fi
11830NEEDED="pthread-stubs xau >= 0.99.2"
11831
11832pkg_failed=no
11833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NEEDED" >&5
11834$as_echo_n "checking for NEEDED... " >&6; }
11835
11836if test -n "$NEEDED_CFLAGS"; then
11837    pkg_cv_NEEDED_CFLAGS="$NEEDED_CFLAGS"
11838 elif test -n "$PKG_CONFIG"; then
11839    if test -n "$PKG_CONFIG" && \
11840    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$NEEDED\""; } >&5
11841  ($PKG_CONFIG --exists --print-errors "$NEEDED") 2>&5
11842  ac_status=$?
11843  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11844  test $ac_status = 0; }; then
11845  pkg_cv_NEEDED_CFLAGS=`$PKG_CONFIG --cflags "$NEEDED" 2>/dev/null`
11846else
11847  pkg_failed=yes
11848fi
11849 else
11850    pkg_failed=untried
11851fi
11852if test -n "$NEEDED_LIBS"; then
11853    pkg_cv_NEEDED_LIBS="$NEEDED_LIBS"
11854 elif test -n "$PKG_CONFIG"; then
11855    if test -n "$PKG_CONFIG" && \
11856    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$NEEDED\""; } >&5
11857  ($PKG_CONFIG --exists --print-errors "$NEEDED") 2>&5
11858  ac_status=$?
11859  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11860  test $ac_status = 0; }; then
11861  pkg_cv_NEEDED_LIBS=`$PKG_CONFIG --libs "$NEEDED" 2>/dev/null`
11862else
11863  pkg_failed=yes
11864fi
11865 else
11866    pkg_failed=untried
11867fi
11868
11869
11870
11871if test $pkg_failed = yes; then
11872   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11873$as_echo "no" >&6; }
11874
11875if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11876        _pkg_short_errors_supported=yes
11877else
11878        _pkg_short_errors_supported=no
11879fi
11880        if test $_pkg_short_errors_supported = yes; then
11881	        NEEDED_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$NEEDED" 2>&1`
11882        else
11883	        NEEDED_PKG_ERRORS=`$PKG_CONFIG --print-errors "$NEEDED" 2>&1`
11884        fi
11885	# Put the nasty error message in config.log where it belongs
11886	echo "$NEEDED_PKG_ERRORS" >&5
11887
11888	as_fn_error $? "Package requirements ($NEEDED) were not met:
11889
11890$NEEDED_PKG_ERRORS
11891
11892Consider adjusting the PKG_CONFIG_PATH environment variable if you
11893installed software in a non-standard prefix.
11894
11895Alternatively, you may set the environment variables NEEDED_CFLAGS
11896and NEEDED_LIBS to avoid the need to call pkg-config.
11897See the pkg-config man page for more details." "$LINENO" 5
11898elif test $pkg_failed = untried; then
11899     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11900$as_echo "no" >&6; }
11901	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11902$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11903as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11904is in your PATH or set the PKG_CONFIG environment variable to the full
11905path to pkg-config.
11906
11907Alternatively, you may set the environment variables NEEDED_CFLAGS
11908and NEEDED_LIBS to avoid the need to call pkg-config.
11909See the pkg-config man page for more details.
11910
11911To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11912See \`config.log' for more details" "$LINENO" 5 ; }
11913else
11914	NEEDED_CFLAGS=$pkg_cv_NEEDED_CFLAGS
11915	NEEDED_LIBS=$pkg_cv_NEEDED_LIBS
11916        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11917$as_echo "yes" >&6; }
11918
11919fi
11920
11921have_xdmcp="no"
11922
11923pkg_failed=no
11924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDMCP" >&5
11925$as_echo_n "checking for XDMCP... " >&6; }
11926
11927if test -n "$XDMCP_CFLAGS"; then
11928    pkg_cv_XDMCP_CFLAGS="$XDMCP_CFLAGS"
11929 elif test -n "$PKG_CONFIG"; then
11930    if test -n "$PKG_CONFIG" && \
11931    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5
11932  ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
11933  ac_status=$?
11934  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11935  test $ac_status = 0; }; then
11936  pkg_cv_XDMCP_CFLAGS=`$PKG_CONFIG --cflags "xdmcp" 2>/dev/null`
11937else
11938  pkg_failed=yes
11939fi
11940 else
11941    pkg_failed=untried
11942fi
11943if test -n "$XDMCP_LIBS"; then
11944    pkg_cv_XDMCP_LIBS="$XDMCP_LIBS"
11945 elif test -n "$PKG_CONFIG"; then
11946    if test -n "$PKG_CONFIG" && \
11947    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5
11948  ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
11949  ac_status=$?
11950  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11951  test $ac_status = 0; }; then
11952  pkg_cv_XDMCP_LIBS=`$PKG_CONFIG --libs "xdmcp" 2>/dev/null`
11953else
11954  pkg_failed=yes
11955fi
11956 else
11957    pkg_failed=untried
11958fi
11959
11960
11961
11962if test $pkg_failed = yes; then
11963   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11964$as_echo "no" >&6; }
11965
11966if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11967        _pkg_short_errors_supported=yes
11968else
11969        _pkg_short_errors_supported=no
11970fi
11971        if test $_pkg_short_errors_supported = yes; then
11972	        XDMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xdmcp" 2>&1`
11973        else
11974	        XDMCP_PKG_ERRORS=`$PKG_CONFIG --print-errors "xdmcp" 2>&1`
11975        fi
11976	# Put the nasty error message in config.log where it belongs
11977	echo "$XDMCP_PKG_ERRORS" >&5
11978
11979	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11980$as_echo "no" >&6; }
11981elif test $pkg_failed = untried; then
11982     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11983$as_echo "no" >&6; }
11984	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11985$as_echo "no" >&6; }
11986else
11987	XDMCP_CFLAGS=$pkg_cv_XDMCP_CFLAGS
11988	XDMCP_LIBS=$pkg_cv_XDMCP_LIBS
11989        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11990$as_echo "yes" >&6; }
11991	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XdmcpWrap in -lXdmcp" >&5
11992$as_echo_n "checking for XdmcpWrap in -lXdmcp... " >&6; }
11993if test "${ac_cv_lib_Xdmcp_XdmcpWrap+set}" = set; then :
11994  $as_echo_n "(cached) " >&6
11995else
11996  ac_check_lib_save_LIBS=$LIBS
11997LIBS="-lXdmcp $XDMCP_LIBS $LIBS"
11998cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11999/* end confdefs.h.  */
12000
12001/* Override any GCC internal prototype to avoid an error.
12002   Use char because int might match the return type of a GCC
12003   builtin and then its argument prototype would still apply.  */
12004#ifdef __cplusplus
12005extern "C"
12006#endif
12007char XdmcpWrap ();
12008int
12009main ()
12010{
12011return XdmcpWrap ();
12012  ;
12013  return 0;
12014}
12015_ACEOF
12016if ac_fn_c_try_link "$LINENO"; then :
12017  ac_cv_lib_Xdmcp_XdmcpWrap=yes
12018else
12019  ac_cv_lib_Xdmcp_XdmcpWrap=no
12020fi
12021rm -f core conftest.err conftest.$ac_objext \
12022    conftest$ac_exeext conftest.$ac_ext
12023LIBS=$ac_check_lib_save_LIBS
12024fi
12025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp_XdmcpWrap" >&5
12026$as_echo "$ac_cv_lib_Xdmcp_XdmcpWrap" >&6; }
12027if test "x$ac_cv_lib_Xdmcp_XdmcpWrap" = x""yes; then :
12028
12029
12030$as_echo "#define HASXDMAUTH 1" >>confdefs.h
12031
12032		NEEDED="$NEEDED xdmcp"
12033		have_xdmcp="yes"
12034
12035else
12036
12037		XDMCP_CFLAGS=
12038		XDMCP_LIBS=
12039
12040fi
12041
12042fi
12043
12044
12045
12046# Find the xcb-proto protocol descriptions
12047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking XCBPROTO_XCBINCLUDEDIR" >&5
12048$as_echo_n "checking XCBPROTO_XCBINCLUDEDIR... " >&6; }
12049XCBPROTO_XCBINCLUDEDIR=`$PKG_CONFIG --variable=xcbincludedir xcb-proto`
12050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCBPROTO_XCBINCLUDEDIR" >&5
12051$as_echo "$XCBPROTO_XCBINCLUDEDIR" >&6; }
12052
12053
12054# Find the xcb-proto version
12055XCBPROTO_VERSION=`$PKG_CONFIG --modversion xcb-proto`
12056
12057
12058# Find the xcbgen Python package
12059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking XCBPROTO_XCBPYTHONDIR" >&5
12060$as_echo_n "checking XCBPROTO_XCBPYTHONDIR... " >&6; }
12061XCBPROTO_XCBPYTHONDIR=`$PKG_CONFIG --variable=pythondir xcb-proto`
12062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCBPROTO_XCBPYTHONDIR" >&5
12063$as_echo "$XCBPROTO_XCBPYTHONDIR" >&6; }
12064
12065
12066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12067$as_echo_n "checking for ANSI C header files... " >&6; }
12068if test "${ac_cv_header_stdc+set}" = set; then :
12069  $as_echo_n "(cached) " >&6
12070else
12071  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12072/* end confdefs.h.  */
12073#include <stdlib.h>
12074#include <stdarg.h>
12075#include <string.h>
12076#include <float.h>
12077
12078int
12079main ()
12080{
12081
12082  ;
12083  return 0;
12084}
12085_ACEOF
12086if ac_fn_c_try_compile "$LINENO"; then :
12087  ac_cv_header_stdc=yes
12088else
12089  ac_cv_header_stdc=no
12090fi
12091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12092
12093if test $ac_cv_header_stdc = yes; then
12094  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12095  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12096/* end confdefs.h.  */
12097#include <string.h>
12098
12099_ACEOF
12100if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12101  $EGREP "memchr" >/dev/null 2>&1; then :
12102
12103else
12104  ac_cv_header_stdc=no
12105fi
12106rm -f conftest*
12107
12108fi
12109
12110if test $ac_cv_header_stdc = yes; then
12111  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12112  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12113/* end confdefs.h.  */
12114#include <stdlib.h>
12115
12116_ACEOF
12117if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12118  $EGREP "free" >/dev/null 2>&1; then :
12119
12120else
12121  ac_cv_header_stdc=no
12122fi
12123rm -f conftest*
12124
12125fi
12126
12127if test $ac_cv_header_stdc = yes; then
12128  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12129  if test "$cross_compiling" = yes; then :
12130  :
12131else
12132  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12133/* end confdefs.h.  */
12134#include <ctype.h>
12135#include <stdlib.h>
12136#if ((' ' & 0x0FF) == 0x020)
12137# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12138# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12139#else
12140# define ISLOWER(c) \
12141		   (('a' <= (c) && (c) <= 'i') \
12142		     || ('j' <= (c) && (c) <= 'r') \
12143		     || ('s' <= (c) && (c) <= 'z'))
12144# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12145#endif
12146
12147#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12148int
12149main ()
12150{
12151  int i;
12152  for (i = 0; i < 256; i++)
12153    if (XOR (islower (i), ISLOWER (i))
12154	|| toupper (i) != TOUPPER (i))
12155      return 2;
12156  return 0;
12157}
12158_ACEOF
12159if ac_fn_c_try_run "$LINENO"; then :
12160
12161else
12162  ac_cv_header_stdc=no
12163fi
12164rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12165  conftest.$ac_objext conftest.beam conftest.$ac_ext
12166fi
12167
12168fi
12169fi
12170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12171$as_echo "$ac_cv_header_stdc" >&6; }
12172if test $ac_cv_header_stdc = yes; then
12173
12174$as_echo "#define STDC_HEADERS 1" >>confdefs.h
12175
12176fi
12177
12178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
12179$as_echo_n "checking for library containing getaddrinfo... " >&6; }
12180if test "${ac_cv_search_getaddrinfo+set}" = set; then :
12181  $as_echo_n "(cached) " >&6
12182else
12183  ac_func_search_save_LIBS=$LIBS
12184cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12185/* end confdefs.h.  */
12186
12187/* Override any GCC internal prototype to avoid an error.
12188   Use char because int might match the return type of a GCC
12189   builtin and then its argument prototype would still apply.  */
12190#ifdef __cplusplus
12191extern "C"
12192#endif
12193char getaddrinfo ();
12194int
12195main ()
12196{
12197return getaddrinfo ();
12198  ;
12199  return 0;
12200}
12201_ACEOF
12202for ac_lib in '' socket; do
12203  if test -z "$ac_lib"; then
12204    ac_res="none required"
12205  else
12206    ac_res=-l$ac_lib
12207    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12208  fi
12209  if ac_fn_c_try_link "$LINENO"; then :
12210  ac_cv_search_getaddrinfo=$ac_res
12211fi
12212rm -f core conftest.err conftest.$ac_objext \
12213    conftest$ac_exeext
12214  if test "${ac_cv_search_getaddrinfo+set}" = set; then :
12215  break
12216fi
12217done
12218if test "${ac_cv_search_getaddrinfo+set}" = set; then :
12219
12220else
12221  ac_cv_search_getaddrinfo=no
12222fi
12223rm conftest.$ac_ext
12224LIBS=$ac_func_search_save_LIBS
12225fi
12226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
12227$as_echo "$ac_cv_search_getaddrinfo" >&6; }
12228ac_res=$ac_cv_search_getaddrinfo
12229if test "$ac_res" != no; then :
12230  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12231
12232fi
12233
12234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
12235$as_echo_n "checking for library containing connect... " >&6; }
12236if test "${ac_cv_search_connect+set}" = set; then :
12237  $as_echo_n "(cached) " >&6
12238else
12239  ac_func_search_save_LIBS=$LIBS
12240cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12241/* end confdefs.h.  */
12242
12243/* Override any GCC internal prototype to avoid an error.
12244   Use char because int might match the return type of a GCC
12245   builtin and then its argument prototype would still apply.  */
12246#ifdef __cplusplus
12247extern "C"
12248#endif
12249char connect ();
12250int
12251main ()
12252{
12253return connect ();
12254  ;
12255  return 0;
12256}
12257_ACEOF
12258for ac_lib in '' socket; do
12259  if test -z "$ac_lib"; then
12260    ac_res="none required"
12261  else
12262    ac_res=-l$ac_lib
12263    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12264  fi
12265  if ac_fn_c_try_link "$LINENO"; then :
12266  ac_cv_search_connect=$ac_res
12267fi
12268rm -f core conftest.err conftest.$ac_objext \
12269    conftest$ac_exeext
12270  if test "${ac_cv_search_connect+set}" = set; then :
12271  break
12272fi
12273done
12274if test "${ac_cv_search_connect+set}" = set; then :
12275
12276else
12277  ac_cv_search_connect=no
12278fi
12279rm conftest.$ac_ext
12280LIBS=$ac_func_search_save_LIBS
12281fi
12282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
12283$as_echo "$ac_cv_search_connect" >&6; }
12284ac_res=$ac_cv_search_connect
12285if test "$ac_res" != no; then :
12286  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12287
12288fi
12289
12290
12291case $host_os in
12292linux*)
12293
12294$as_echo "#define HAVE_ABSTRACT_SOCKETS 1" >>confdefs.h
12295
12296	;;
12297esac
12298
12299
12300# Check whether --with-queue-size was given.
12301if test "${with_queue_size+set}" = set; then :
12302  withval=$with_queue_size; xcb_queue_buffer_size="$withval"
12303else
12304  xcb_queue_buffer_size=16384
12305fi
12306
12307
12308cat >>confdefs.h <<_ACEOF
12309#define XCB_QUEUE_BUFFER_SIZE $xcb_queue_buffer_size
12310_ACEOF
12311
12312
12313ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" " #include <sys/types.h>
12314		  #include <sys/un.h>
12315
12316"
12317if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = x""yes; then :
12318
12319$as_echo "#define HAVE_SOCKADDR_SUN_LEN 1" >>confdefs.h
12320
12321fi
12322
12323
12324xcbincludedir='${includedir}/xcb'
12325
12326
12327if  test "x$GCC" = xyes ; then
12328    CWARNFLAGS="-Wall -pedantic -Wpointer-arith \
12329		-Wstrict-prototypes -Wmissing-declarations -Wnested-externs"
12330else
12331    ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
12332if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
12333  SUNCC="yes"
12334else
12335  SUNCC="no"
12336fi
12337
12338    if test "x$SUNCC" = "xyes"; then
12339	CWARNFLAGS="-v"
12340    fi
12341fi
12342
12343
12344
12345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports symbol visibility" >&5
12346$as_echo_n "checking whether ${CC} supports symbol visibility... " >&6; }
12347
12348save_CFLAGS=${CFLAGS}
12349CFLAGS="$CFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
12350cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12351/* end confdefs.h.  */
12352
12353#pragma GCC visibility push(hidden)
12354extern void f(int);
12355#pragma GCC visibility pop
12356
12357int
12358main ()
12359{
12360
12361
12362  ;
12363  return 0;
12364}
12365_ACEOF
12366if ac_fn_c_try_compile "$LINENO"; then :
12367
12368$as_echo "#define GCC_HAS_VISIBILITY /**/" >>confdefs.h
12369
12370    :
12371    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12372$as_echo "yes" >&6; }
12373else
12374  :
12375    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12376$as_echo "no" >&6; }
12377fi
12378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12379
12380CFLAGS=${save_CFLAGS}
12381
12382
12383# htmldir is not defined prior to autoconf 2.59c, so on earlier versions
12384# set an equivalent value.
12385
12386
12387
12388DOXYGEN="doxygen"
12389
12390# Check whether --enable-build_docs was given.
12391if test "${enable_build_docs+set}" = set; then :
12392  enableval=$enable_build_docs; if test x"$enableval" != x"yes" ; then
12393       enable_build_docs="no"
12394    else
12395       enable_build_docs="yes"
12396    fi
12397else
12398  enable_build_docs="yes"
12399fi
12400
12401
12402if test "$enable_build_docs" = "no" ; then
12403    BUILD_DOCS=no
12404else
12405
12406# Check whether --with-doxygen was given.
12407if test "${with_doxygen+set}" = set; then :
12408  withval=$with_doxygen;          DOXYGEN=${withval}
12409    # Extract the first word of "${DOXYGEN}", so it can be a program name with args.
12410set dummy ${DOXYGEN}; ac_word=$2
12411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12412$as_echo_n "checking for $ac_word... " >&6; }
12413if test "${ac_cv_prog_BUILD_DOCS+set}" = set; then :
12414  $as_echo_n "(cached) " >&6
12415else
12416  if test -n "$BUILD_DOCS"; then
12417  ac_cv_prog_BUILD_DOCS="$BUILD_DOCS" # Let the user override the test.
12418else
12419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12420for as_dir in $PATH
12421do
12422  IFS=$as_save_IFS
12423  test -z "$as_dir" && as_dir=.
12424    for ac_exec_ext in '' $ac_executable_extensions; do
12425  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12426    ac_cv_prog_BUILD_DOCS="yes"
12427    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12428    break 2
12429  fi
12430done
12431  done
12432IFS=$as_save_IFS
12433
12434  test -z "$ac_cv_prog_BUILD_DOCS" && ac_cv_prog_BUILD_DOCS="no"
12435fi
12436fi
12437BUILD_DOCS=$ac_cv_prog_BUILD_DOCS
12438if test -n "$BUILD_DOCS"; then
12439  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_DOCS" >&5
12440$as_echo "$BUILD_DOCS" >&6; }
12441else
12442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12443$as_echo "no" >&6; }
12444fi
12445
12446
12447    if test $BUILD_DOCS = no; then
12448       echo "WARNING:"
12449       echo "The doxygen program you specified:"
12450       echo "$DOXYGEN"
12451       echo "was not found.  Please check the path and make sure "
12452       echo "the program exists and is executable."
12453       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Warning: no doxygen detected. Documentation will not be built" >&5
12454$as_echo "$as_me: WARNING: Warning: no doxygen detected. Documentation will not be built" >&2;}
12455    fi
12456else
12457  # Extract the first word of "${DOXYGEN}", so it can be a program name with args.
12458set dummy ${DOXYGEN}; ac_word=$2
12459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12460$as_echo_n "checking for $ac_word... " >&6; }
12461if test "${ac_cv_prog_BUILD_DOCS+set}" = set; then :
12462  $as_echo_n "(cached) " >&6
12463else
12464  if test -n "$BUILD_DOCS"; then
12465  ac_cv_prog_BUILD_DOCS="$BUILD_DOCS" # Let the user override the test.
12466else
12467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12468for as_dir in $PATH
12469do
12470  IFS=$as_save_IFS
12471  test -z "$as_dir" && as_dir=.
12472    for ac_exec_ext in '' $ac_executable_extensions; do
12473  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12474    ac_cv_prog_BUILD_DOCS="yes"
12475    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12476    break 2
12477  fi
12478done
12479  done
12480IFS=$as_save_IFS
12481
12482  test -z "$ac_cv_prog_BUILD_DOCS" && ac_cv_prog_BUILD_DOCS="no"
12483fi
12484fi
12485BUILD_DOCS=$ac_cv_prog_BUILD_DOCS
12486if test -n "$BUILD_DOCS"; then
12487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_DOCS" >&5
12488$as_echo "$BUILD_DOCS" >&6; }
12489else
12490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12491$as_echo "no" >&6; }
12492fi
12493
12494
12495    if test ${BUILD_DOCS} = no; then
12496       echo "WARNING:"
12497       echo "The doxygen program was not found in your execute"
12498       echo "You may have doxygen installed somewhere not covered by your path."
12499       echo ""
12500       echo "If this is the case make sure you have the packages installed, AND"
12501       echo "that the doxygen program is in your execute path (see your"
12502       echo "shell manual page on setting the \$PATH environment variable), OR"
12503       echo "alternatively, specify the program to use with --with-doxygen."
12504       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Warning: no doxygen detected. Documentation will not be built" >&5
12505$as_echo "$as_me: WARNING: Warning: no doxygen detected. Documentation will not be built" >&2;}
12506    fi
12507fi
12508
12509    # Extract the first word of "dot", so it can be a program name with args.
12510set dummy dot; ac_word=$2
12511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12512$as_echo_n "checking for $ac_word... " >&6; }
12513if test "${ac_cv_path_DOT+set}" = set; then :
12514  $as_echo_n "(cached) " >&6
12515else
12516  case $DOT in
12517  [\\/]* | ?:[\\/]*)
12518  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
12519  ;;
12520  *)
12521  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12522for as_dir in $PATH
12523do
12524  IFS=$as_save_IFS
12525  test -z "$as_dir" && as_dir=.
12526    for ac_exec_ext in '' $ac_executable_extensions; do
12527  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12528    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
12529    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12530    break 2
12531  fi
12532done
12533  done
12534IFS=$as_save_IFS
12535
12536  test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="no"
12537  ;;
12538esac
12539fi
12540DOT=$ac_cv_path_DOT
12541if test -n "$DOT"; then
12542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
12543$as_echo "$DOT" >&6; }
12544else
12545  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12546$as_echo "no" >&6; }
12547fi
12548
12549
12550    if test "$DOT" = "no"; then
12551        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Warning: no dot detected. Documentation will not be built" >&5
12552$as_echo "$as_me: WARNING: Warning: no dot detected. Documentation will not be built" >&2;}
12553	BUILD_DOCS="no"
12554    fi
12555fi
12556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether documentation is built" >&5
12557$as_echo_n "checking whether documentation is built... " >&6; }
12558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_DOCS}" >&5
12559$as_echo "${BUILD_DOCS}" >&6; }
12560
12561
12562
12563 if test "x$BUILD_DOCS" = "xyes"; then
12564  BUILD_DOCS_TRUE=
12565  BUILD_DOCS_FALSE='#'
12566else
12567  BUILD_DOCS_TRUE='#'
12568  BUILD_DOCS_FALSE=
12569fi
12570
12571
12572
12573
12574case $host_os in
12575	# darwin has poll() but can't be used to poll character devices (atleast through SnowLeopard)
12576	darwin*) ;;
12577	*)
12578		ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
12579if test "x$ac_cv_func_poll" = x""yes; then :
12580
12581$as_echo "#define USE_POLL 1" >>confdefs.h
12582
12583fi
12584
12585	;;
12586esac
12587
12588
12589
12590# Check whether --enable-composite was given.
12591if test "${enable_composite+set}" = set; then :
12592  enableval=$enable_composite; BUILD_COMPOSITE=$enableval
12593else
12594  BUILD_COMPOSITE="yes"
12595fi
12596
12597
12598 if test "x$BUILD_COMPOSITE" = "xyes"; then
12599  BUILD_COMPOSITE_TRUE=
12600  BUILD_COMPOSITE_FALSE='#'
12601else
12602  BUILD_COMPOSITE_TRUE='#'
12603  BUILD_COMPOSITE_FALSE=
12604fi
12605
12606
12607
12608
12609# Check whether --enable-damage was given.
12610if test "${enable_damage+set}" = set; then :
12611  enableval=$enable_damage; BUILD_DAMAGE=$enableval
12612else
12613  BUILD_DAMAGE="yes"
12614fi
12615
12616
12617 if test "x$BUILD_DAMAGE" = "xyes"; then
12618  BUILD_DAMAGE_TRUE=
12619  BUILD_DAMAGE_FALSE='#'
12620else
12621  BUILD_DAMAGE_TRUE='#'
12622  BUILD_DAMAGE_FALSE=
12623fi
12624
12625
12626
12627
12628# Check whether --enable-dpms was given.
12629if test "${enable_dpms+set}" = set; then :
12630  enableval=$enable_dpms; BUILD_DPMS=$enableval
12631else
12632  BUILD_DPMS="yes"
12633fi
12634
12635
12636 if test "x$BUILD_DPMS" = "xyes"; then
12637  BUILD_DPMS_TRUE=
12638  BUILD_DPMS_FALSE='#'
12639else
12640  BUILD_DPMS_TRUE='#'
12641  BUILD_DPMS_FALSE=
12642fi
12643
12644
12645
12646
12647# Check whether --enable-dri2 was given.
12648if test "${enable_dri2+set}" = set; then :
12649  enableval=$enable_dri2; BUILD_DRI2=$enableval
12650else
12651  BUILD_DRI2="yes"
12652fi
12653
12654
12655 if test "x$BUILD_DRI2" = "xyes"; then
12656  BUILD_DRI2_TRUE=
12657  BUILD_DRI2_FALSE='#'
12658else
12659  BUILD_DRI2_TRUE='#'
12660  BUILD_DRI2_FALSE=
12661fi
12662
12663
12664
12665
12666# Check whether --enable-glx was given.
12667if test "${enable_glx+set}" = set; then :
12668  enableval=$enable_glx; BUILD_GLX=$enableval
12669else
12670  BUILD_GLX="yes"
12671fi
12672
12673
12674 if test "x$BUILD_GLX" = "xyes"; then
12675  BUILD_GLX_TRUE=
12676  BUILD_GLX_FALSE='#'
12677else
12678  BUILD_GLX_TRUE='#'
12679  BUILD_GLX_FALSE=
12680fi
12681
12682
12683
12684
12685# Check whether --enable-randr was given.
12686if test "${enable_randr+set}" = set; then :
12687  enableval=$enable_randr; BUILD_RANDR=$enableval
12688else
12689  BUILD_RANDR="yes"
12690fi
12691
12692
12693 if test "x$BUILD_RANDR" = "xyes"; then
12694  BUILD_RANDR_TRUE=
12695  BUILD_RANDR_FALSE='#'
12696else
12697  BUILD_RANDR_TRUE='#'
12698  BUILD_RANDR_FALSE=
12699fi
12700
12701
12702
12703
12704# Check whether --enable-record was given.
12705if test "${enable_record+set}" = set; then :
12706  enableval=$enable_record; BUILD_RECORD=$enableval
12707else
12708  BUILD_RECORD="yes"
12709fi
12710
12711
12712 if test "x$BUILD_RECORD" = "xyes"; then
12713  BUILD_RECORD_TRUE=
12714  BUILD_RECORD_FALSE='#'
12715else
12716  BUILD_RECORD_TRUE='#'
12717  BUILD_RECORD_FALSE=
12718fi
12719
12720
12721
12722
12723# Check whether --enable-render was given.
12724if test "${enable_render+set}" = set; then :
12725  enableval=$enable_render; BUILD_RENDER=$enableval
12726else
12727  BUILD_RENDER="yes"
12728fi
12729
12730
12731 if test "x$BUILD_RENDER" = "xyes"; then
12732  BUILD_RENDER_TRUE=
12733  BUILD_RENDER_FALSE='#'
12734else
12735  BUILD_RENDER_TRUE='#'
12736  BUILD_RENDER_FALSE=
12737fi
12738
12739
12740
12741
12742# Check whether --enable-resource was given.
12743if test "${enable_resource+set}" = set; then :
12744  enableval=$enable_resource; BUILD_RESOURCE=$enableval
12745else
12746  BUILD_RESOURCE="yes"
12747fi
12748
12749
12750 if test "x$BUILD_RESOURCE" = "xyes"; then
12751  BUILD_RESOURCE_TRUE=
12752  BUILD_RESOURCE_FALSE='#'
12753else
12754  BUILD_RESOURCE_TRUE='#'
12755  BUILD_RESOURCE_FALSE=
12756fi
12757
12758
12759
12760
12761# Check whether --enable-screensaver was given.
12762if test "${enable_screensaver+set}" = set; then :
12763  enableval=$enable_screensaver; BUILD_SCREENSAVER=$enableval
12764else
12765  BUILD_SCREENSAVER="yes"
12766fi
12767
12768
12769 if test "x$BUILD_SCREENSAVER" = "xyes"; then
12770  BUILD_SCREENSAVER_TRUE=
12771  BUILD_SCREENSAVER_FALSE='#'
12772else
12773  BUILD_SCREENSAVER_TRUE='#'
12774  BUILD_SCREENSAVER_FALSE=
12775fi
12776
12777
12778
12779
12780# Check whether --enable-shape was given.
12781if test "${enable_shape+set}" = set; then :
12782  enableval=$enable_shape; BUILD_SHAPE=$enableval
12783else
12784  BUILD_SHAPE="yes"
12785fi
12786
12787
12788 if test "x$BUILD_SHAPE" = "xyes"; then
12789  BUILD_SHAPE_TRUE=
12790  BUILD_SHAPE_FALSE='#'
12791else
12792  BUILD_SHAPE_TRUE='#'
12793  BUILD_SHAPE_FALSE=
12794fi
12795
12796
12797
12798
12799# Check whether --enable-shm was given.
12800if test "${enable_shm+set}" = set; then :
12801  enableval=$enable_shm; BUILD_SHM=$enableval
12802else
12803  BUILD_SHM="yes"
12804fi
12805
12806
12807 if test "x$BUILD_SHM" = "xyes"; then
12808  BUILD_SHM_TRUE=
12809  BUILD_SHM_FALSE='#'
12810else
12811  BUILD_SHM_TRUE='#'
12812  BUILD_SHM_FALSE=
12813fi
12814
12815
12816
12817
12818# Check whether --enable-sync was given.
12819if test "${enable_sync+set}" = set; then :
12820  enableval=$enable_sync; BUILD_SYNC=$enableval
12821else
12822  BUILD_SYNC="yes"
12823fi
12824
12825
12826 if test "x$BUILD_SYNC" = "xyes"; then
12827  BUILD_SYNC_TRUE=
12828  BUILD_SYNC_FALSE='#'
12829else
12830  BUILD_SYNC_TRUE='#'
12831  BUILD_SYNC_FALSE=
12832fi
12833
12834
12835
12836
12837# Check whether --enable-xevie was given.
12838if test "${enable_xevie+set}" = set; then :
12839  enableval=$enable_xevie; BUILD_XEVIE=$enableval
12840else
12841  BUILD_XEVIE="yes"
12842fi
12843
12844
12845 if test "x$BUILD_XEVIE" = "xyes"; then
12846  BUILD_XEVIE_TRUE=
12847  BUILD_XEVIE_FALSE='#'
12848else
12849  BUILD_XEVIE_TRUE='#'
12850  BUILD_XEVIE_FALSE=
12851fi
12852
12853
12854
12855
12856# Check whether --enable-xfixes was given.
12857if test "${enable_xfixes+set}" = set; then :
12858  enableval=$enable_xfixes; BUILD_XFIXES=$enableval
12859else
12860  BUILD_XFIXES="yes"
12861fi
12862
12863
12864 if test "x$BUILD_XFIXES" = "xyes"; then
12865  BUILD_XFIXES_TRUE=
12866  BUILD_XFIXES_FALSE='#'
12867else
12868  BUILD_XFIXES_TRUE='#'
12869  BUILD_XFIXES_FALSE=
12870fi
12871
12872
12873
12874
12875# Check whether --enable-xfree86-dri was given.
12876if test "${enable_xfree86_dri+set}" = set; then :
12877  enableval=$enable_xfree86_dri; BUILD_XFREE86_DRI=$enableval
12878else
12879  BUILD_XFREE86_DRI="yes"
12880fi
12881
12882
12883 if test "x$BUILD_XFREE86_DRI" = "xyes"; then
12884  BUILD_XFREE86_DRI_TRUE=
12885  BUILD_XFREE86_DRI_FALSE='#'
12886else
12887  BUILD_XFREE86_DRI_TRUE='#'
12888  BUILD_XFREE86_DRI_FALSE=
12889fi
12890
12891
12892
12893
12894# Check whether --enable-xinerama was given.
12895if test "${enable_xinerama+set}" = set; then :
12896  enableval=$enable_xinerama; BUILD_XINERAMA=$enableval
12897else
12898  BUILD_XINERAMA="yes"
12899fi
12900
12901
12902 if test "x$BUILD_XINERAMA" = "xyes"; then
12903  BUILD_XINERAMA_TRUE=
12904  BUILD_XINERAMA_FALSE='#'
12905else
12906  BUILD_XINERAMA_TRUE='#'
12907  BUILD_XINERAMA_FALSE=
12908fi
12909
12910
12911
12912
12913# Check whether --enable-xinput was given.
12914if test "${enable_xinput+set}" = set; then :
12915  enableval=$enable_xinput; BUILD_XINPUT=$enableval
12916else
12917  BUILD_XINPUT="no"
12918fi
12919
12920
12921 if test "x$BUILD_XINPUT" = "xyes"; then
12922  BUILD_XINPUT_TRUE=
12923  BUILD_XINPUT_FALSE='#'
12924else
12925  BUILD_XINPUT_TRUE='#'
12926  BUILD_XINPUT_FALSE=
12927fi
12928
12929
12930
12931
12932# Check whether --enable-xprint was given.
12933if test "${enable_xprint+set}" = set; then :
12934  enableval=$enable_xprint; BUILD_XPRINT=$enableval
12935else
12936  BUILD_XPRINT="yes"
12937fi
12938
12939
12940 if test "x$BUILD_XPRINT" = "xyes"; then
12941  BUILD_XPRINT_TRUE=
12942  BUILD_XPRINT_FALSE='#'
12943else
12944  BUILD_XPRINT_TRUE='#'
12945  BUILD_XPRINT_FALSE=
12946fi
12947
12948
12949
12950
12951# Check whether --enable-selinux was given.
12952if test "${enable_selinux+set}" = set; then :
12953  enableval=$enable_selinux; BUILD_SELINUX=$enableval
12954else
12955  BUILD_SELINUX="no"
12956fi
12957
12958
12959 if test "x$BUILD_SELINUX" = "xyes"; then
12960  BUILD_SELINUX_TRUE=
12961  BUILD_SELINUX_FALSE='#'
12962else
12963  BUILD_SELINUX_TRUE='#'
12964  BUILD_SELINUX_FALSE=
12965fi
12966
12967
12968
12969
12970# Check whether --enable-xtest was given.
12971if test "${enable_xtest+set}" = set; then :
12972  enableval=$enable_xtest; BUILD_XTEST=$enableval
12973else
12974  BUILD_XTEST="yes"
12975fi
12976
12977
12978 if test "x$BUILD_XTEST" = "xyes"; then
12979  BUILD_XTEST_TRUE=
12980  BUILD_XTEST_FALSE='#'
12981else
12982  BUILD_XTEST_TRUE='#'
12983  BUILD_XTEST_FALSE=
12984fi
12985
12986
12987
12988
12989# Check whether --enable-xv was given.
12990if test "${enable_xv+set}" = set; then :
12991  enableval=$enable_xv; BUILD_XV=$enableval
12992else
12993  BUILD_XV="yes"
12994fi
12995
12996
12997 if test "x$BUILD_XV" = "xyes"; then
12998  BUILD_XV_TRUE=
12999  BUILD_XV_FALSE='#'
13000else
13001  BUILD_XV_TRUE='#'
13002  BUILD_XV_FALSE=
13003fi
13004
13005
13006
13007
13008# Check whether --enable-xvmc was given.
13009if test "${enable_xvmc+set}" = set; then :
13010  enableval=$enable_xvmc; BUILD_XVMC=$enableval
13011else
13012  BUILD_XVMC="yes"
13013fi
13014
13015
13016 if test "x$BUILD_XVMC" = "xyes"; then
13017  BUILD_XVMC_TRUE=
13018  BUILD_XVMC_FALSE='#'
13019else
13020  BUILD_XVMC_TRUE='#'
13021  BUILD_XVMC_FALSE=
13022fi
13023
13024
13025
13026
13027# Check whether --with-launchd was given.
13028if test "${with_launchd+set}" = set; then :
13029  withval=$with_launchd; LAUNCHD=$withval
13030else
13031  LAUNCHD=auto
13032fi
13033
13034if test "x$LAUNCHD" = xauto; then
13035	unset LAUNCHD
13036	# Extract the first word of "launchd", so it can be a program name with args.
13037set dummy launchd; ac_word=$2
13038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13039$as_echo_n "checking for $ac_word... " >&6; }
13040if test "${ac_cv_prog_LAUNCHD+set}" = set; then :
13041  $as_echo_n "(cached) " >&6
13042else
13043  if test -n "$LAUNCHD"; then
13044  ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test.
13045else
13046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13047for as_dir in $PATH$PATH_SEPARATOR/sbin
13048do
13049  IFS=$as_save_IFS
13050  test -z "$as_dir" && as_dir=.
13051    for ac_exec_ext in '' $ac_executable_extensions; do
13052  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13053    ac_cv_prog_LAUNCHD="yes"
13054    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13055    break 2
13056  fi
13057done
13058  done
13059IFS=$as_save_IFS
13060
13061  test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no"
13062fi
13063fi
13064LAUNCHD=$ac_cv_prog_LAUNCHD
13065if test -n "$LAUNCHD"; then
13066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LAUNCHD" >&5
13067$as_echo "$LAUNCHD" >&6; }
13068else
13069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13070$as_echo "no" >&6; }
13071fi
13072
13073
13074fi
13075
13076if test "x$LAUNCHD" = xyes ; then
13077
13078$as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h
13079
13080fi
13081
13082ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile tests/Makefile"
13083
13084
13085ac_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-xprint.pc xcb-xselinux.pc xcb-xtest.pc xcb-xv.pc xcb-xvmc.pc"
13086
13087
13088ac_config_files="$ac_config_files doc/xcb.doxygen"
13089
13090
13091cat >confcache <<\_ACEOF
13092# This file is a shell script that caches the results of configure
13093# tests run on this system so they can be shared between configure
13094# scripts and configure runs, see configure's option --config-cache.
13095# It is not useful on other systems.  If it contains results you don't
13096# want to keep, you may remove or edit it.
13097#
13098# config.status only pays attention to the cache file if you give it
13099# the --recheck option to rerun configure.
13100#
13101# `ac_cv_env_foo' variables (set or unset) will be overridden when
13102# loading this file, other *unset* `ac_cv_foo' will be assigned the
13103# following values.
13104
13105_ACEOF
13106
13107# The following way of writing the cache mishandles newlines in values,
13108# but we know of no workaround that is simple, portable, and efficient.
13109# So, we kill variables containing newlines.
13110# Ultrix sh set writes to stderr and can't be redirected directly,
13111# and sets the high bit in the cache file unless we assign to the vars.
13112(
13113  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13114    eval ac_val=\$$ac_var
13115    case $ac_val in #(
13116    *${as_nl}*)
13117      case $ac_var in #(
13118      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13119$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13120      esac
13121      case $ac_var in #(
13122      _ | IFS | as_nl) ;; #(
13123      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13124      *) { eval $ac_var=; unset $ac_var;} ;;
13125      esac ;;
13126    esac
13127  done
13128
13129  (set) 2>&1 |
13130    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13131    *${as_nl}ac_space=\ *)
13132      # `set' does not quote correctly, so add quotes: double-quote
13133      # substitution turns \\\\ into \\, and sed turns \\ into \.
13134      sed -n \
13135	"s/'/'\\\\''/g;
13136	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13137      ;; #(
13138    *)
13139      # `set' quotes correctly as required by POSIX, so do not add quotes.
13140      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13141      ;;
13142    esac |
13143    sort
13144) |
13145  sed '
13146     /^ac_cv_env_/b end
13147     t clear
13148     :clear
13149     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13150     t end
13151     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13152     :end' >>confcache
13153if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13154  if test -w "$cache_file"; then
13155    test "x$cache_file" != "x/dev/null" &&
13156      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13157$as_echo "$as_me: updating cache $cache_file" >&6;}
13158    cat confcache >$cache_file
13159  else
13160    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13161$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13162  fi
13163fi
13164rm -f confcache
13165
13166test "x$prefix" = xNONE && prefix=$ac_default_prefix
13167# Let make expand exec_prefix.
13168test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13169
13170DEFS=-DHAVE_CONFIG_H
13171
13172ac_libobjs=
13173ac_ltlibobjs=
13174U=
13175for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13176  # 1. Remove the extension, and $U if already installed.
13177  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13178  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13179  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13180  #    will be set to the directory where LIBOBJS objects are built.
13181  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13182  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13183done
13184LIBOBJS=$ac_libobjs
13185
13186LTLIBOBJS=$ac_ltlibobjs
13187
13188
13189 if test -n "$EXEEXT"; then
13190  am__EXEEXT_TRUE=
13191  am__EXEEXT_FALSE='#'
13192else
13193  am__EXEEXT_TRUE='#'
13194  am__EXEEXT_FALSE=
13195fi
13196
13197if test -z "${HAVE_CHECK_TRUE}" && test -z "${HAVE_CHECK_FALSE}"; then
13198  as_fn_error $? "conditional \"HAVE_CHECK\" was never defined.
13199Usually this means the macro was only invoked conditionally." "$LINENO" 5
13200fi
13201if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13202  as_fn_error $? "conditional \"AMDEP\" was never defined.
13203Usually this means the macro was only invoked conditionally." "$LINENO" 5
13204fi
13205if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13206  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13207Usually this means the macro was only invoked conditionally." "$LINENO" 5
13208fi
13209if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13210  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13211Usually this means the macro was only invoked conditionally." "$LINENO" 5
13212fi
13213if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
13214  as_fn_error $? "conditional \"BUILD_DOCS\" was never defined.
13215Usually this means the macro was only invoked conditionally." "$LINENO" 5
13216fi
13217if test -z "${BUILD_COMPOSITE_TRUE}" && test -z "${BUILD_COMPOSITE_FALSE}"; then
13218  as_fn_error $? "conditional \"BUILD_COMPOSITE\" was never defined.
13219Usually this means the macro was only invoked conditionally." "$LINENO" 5
13220fi
13221if test -z "${BUILD_DAMAGE_TRUE}" && test -z "${BUILD_DAMAGE_FALSE}"; then
13222  as_fn_error $? "conditional \"BUILD_DAMAGE\" was never defined.
13223Usually this means the macro was only invoked conditionally." "$LINENO" 5
13224fi
13225if test -z "${BUILD_DPMS_TRUE}" && test -z "${BUILD_DPMS_FALSE}"; then
13226  as_fn_error $? "conditional \"BUILD_DPMS\" was never defined.
13227Usually this means the macro was only invoked conditionally." "$LINENO" 5
13228fi
13229if test -z "${BUILD_DRI2_TRUE}" && test -z "${BUILD_DRI2_FALSE}"; then
13230  as_fn_error $? "conditional \"BUILD_DRI2\" was never defined.
13231Usually this means the macro was only invoked conditionally." "$LINENO" 5
13232fi
13233if test -z "${BUILD_GLX_TRUE}" && test -z "${BUILD_GLX_FALSE}"; then
13234  as_fn_error $? "conditional \"BUILD_GLX\" was never defined.
13235Usually this means the macro was only invoked conditionally." "$LINENO" 5
13236fi
13237if test -z "${BUILD_RANDR_TRUE}" && test -z "${BUILD_RANDR_FALSE}"; then
13238  as_fn_error $? "conditional \"BUILD_RANDR\" was never defined.
13239Usually this means the macro was only invoked conditionally." "$LINENO" 5
13240fi
13241if test -z "${BUILD_RECORD_TRUE}" && test -z "${BUILD_RECORD_FALSE}"; then
13242  as_fn_error $? "conditional \"BUILD_RECORD\" was never defined.
13243Usually this means the macro was only invoked conditionally." "$LINENO" 5
13244fi
13245if test -z "${BUILD_RENDER_TRUE}" && test -z "${BUILD_RENDER_FALSE}"; then
13246  as_fn_error $? "conditional \"BUILD_RENDER\" was never defined.
13247Usually this means the macro was only invoked conditionally." "$LINENO" 5
13248fi
13249if test -z "${BUILD_RESOURCE_TRUE}" && test -z "${BUILD_RESOURCE_FALSE}"; then
13250  as_fn_error $? "conditional \"BUILD_RESOURCE\" was never defined.
13251Usually this means the macro was only invoked conditionally." "$LINENO" 5
13252fi
13253if test -z "${BUILD_SCREENSAVER_TRUE}" && test -z "${BUILD_SCREENSAVER_FALSE}"; then
13254  as_fn_error $? "conditional \"BUILD_SCREENSAVER\" was never defined.
13255Usually this means the macro was only invoked conditionally." "$LINENO" 5
13256fi
13257if test -z "${BUILD_SHAPE_TRUE}" && test -z "${BUILD_SHAPE_FALSE}"; then
13258  as_fn_error $? "conditional \"BUILD_SHAPE\" was never defined.
13259Usually this means the macro was only invoked conditionally." "$LINENO" 5
13260fi
13261if test -z "${BUILD_SHM_TRUE}" && test -z "${BUILD_SHM_FALSE}"; then
13262  as_fn_error $? "conditional \"BUILD_SHM\" was never defined.
13263Usually this means the macro was only invoked conditionally." "$LINENO" 5
13264fi
13265if test -z "${BUILD_SYNC_TRUE}" && test -z "${BUILD_SYNC_FALSE}"; then
13266  as_fn_error $? "conditional \"BUILD_SYNC\" was never defined.
13267Usually this means the macro was only invoked conditionally." "$LINENO" 5
13268fi
13269if test -z "${BUILD_XEVIE_TRUE}" && test -z "${BUILD_XEVIE_FALSE}"; then
13270  as_fn_error $? "conditional \"BUILD_XEVIE\" was never defined.
13271Usually this means the macro was only invoked conditionally." "$LINENO" 5
13272fi
13273if test -z "${BUILD_XFIXES_TRUE}" && test -z "${BUILD_XFIXES_FALSE}"; then
13274  as_fn_error $? "conditional \"BUILD_XFIXES\" was never defined.
13275Usually this means the macro was only invoked conditionally." "$LINENO" 5
13276fi
13277if test -z "${BUILD_XFREE86_DRI_TRUE}" && test -z "${BUILD_XFREE86_DRI_FALSE}"; then
13278  as_fn_error $? "conditional \"BUILD_XFREE86_DRI\" was never defined.
13279Usually this means the macro was only invoked conditionally." "$LINENO" 5
13280fi
13281if test -z "${BUILD_XINERAMA_TRUE}" && test -z "${BUILD_XINERAMA_FALSE}"; then
13282  as_fn_error $? "conditional \"BUILD_XINERAMA\" was never defined.
13283Usually this means the macro was only invoked conditionally." "$LINENO" 5
13284fi
13285if test -z "${BUILD_XINPUT_TRUE}" && test -z "${BUILD_XINPUT_FALSE}"; then
13286  as_fn_error $? "conditional \"BUILD_XINPUT\" was never defined.
13287Usually this means the macro was only invoked conditionally." "$LINENO" 5
13288fi
13289if test -z "${BUILD_XPRINT_TRUE}" && test -z "${BUILD_XPRINT_FALSE}"; then
13290  as_fn_error $? "conditional \"BUILD_XPRINT\" was never defined.
13291Usually this means the macro was only invoked conditionally." "$LINENO" 5
13292fi
13293if test -z "${BUILD_SELINUX_TRUE}" && test -z "${BUILD_SELINUX_FALSE}"; then
13294  as_fn_error $? "conditional \"BUILD_SELINUX\" was never defined.
13295Usually this means the macro was only invoked conditionally." "$LINENO" 5
13296fi
13297if test -z "${BUILD_XTEST_TRUE}" && test -z "${BUILD_XTEST_FALSE}"; then
13298  as_fn_error $? "conditional \"BUILD_XTEST\" was never defined.
13299Usually this means the macro was only invoked conditionally." "$LINENO" 5
13300fi
13301if test -z "${BUILD_XV_TRUE}" && test -z "${BUILD_XV_FALSE}"; then
13302  as_fn_error $? "conditional \"BUILD_XV\" was never defined.
13303Usually this means the macro was only invoked conditionally." "$LINENO" 5
13304fi
13305if test -z "${BUILD_XVMC_TRUE}" && test -z "${BUILD_XVMC_FALSE}"; then
13306  as_fn_error $? "conditional \"BUILD_XVMC\" was never defined.
13307Usually this means the macro was only invoked conditionally." "$LINENO" 5
13308fi
13309
13310: ${CONFIG_STATUS=./config.status}
13311ac_write_fail=0
13312ac_clean_files_save=$ac_clean_files
13313ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13314{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13315$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13316as_write_fail=0
13317cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13318#! $SHELL
13319# Generated by $as_me.
13320# Run this file to recreate the current configuration.
13321# Compiler output produced by configure, useful for debugging
13322# configure, is in config.log if it exists.
13323
13324debug=false
13325ac_cs_recheck=false
13326ac_cs_silent=false
13327
13328SHELL=\${CONFIG_SHELL-$SHELL}
13329export SHELL
13330_ASEOF
13331cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13332## -------------------- ##
13333## M4sh Initialization. ##
13334## -------------------- ##
13335
13336# Be more Bourne compatible
13337DUALCASE=1; export DUALCASE # for MKS sh
13338if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13339  emulate sh
13340  NULLCMD=:
13341  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13342  # is contrary to our usage.  Disable this feature.
13343  alias -g '${1+"$@"}'='"$@"'
13344  setopt NO_GLOB_SUBST
13345else
13346  case `(set -o) 2>/dev/null` in #(
13347  *posix*) :
13348    set -o posix ;; #(
13349  *) :
13350     ;;
13351esac
13352fi
13353
13354
13355as_nl='
13356'
13357export as_nl
13358# Printing a long string crashes Solaris 7 /usr/bin/printf.
13359as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13360as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13361as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13362# Prefer a ksh shell builtin over an external printf program on Solaris,
13363# but without wasting forks for bash or zsh.
13364if test -z "$BASH_VERSION$ZSH_VERSION" \
13365    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13366  as_echo='print -r --'
13367  as_echo_n='print -rn --'
13368elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13369  as_echo='printf %s\n'
13370  as_echo_n='printf %s'
13371else
13372  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13373    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13374    as_echo_n='/usr/ucb/echo -n'
13375  else
13376    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13377    as_echo_n_body='eval
13378      arg=$1;
13379      case $arg in #(
13380      *"$as_nl"*)
13381	expr "X$arg" : "X\\(.*\\)$as_nl";
13382	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13383      esac;
13384      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13385    '
13386    export as_echo_n_body
13387    as_echo_n='sh -c $as_echo_n_body as_echo'
13388  fi
13389  export as_echo_body
13390  as_echo='sh -c $as_echo_body as_echo'
13391fi
13392
13393# The user is always right.
13394if test "${PATH_SEPARATOR+set}" != set; then
13395  PATH_SEPARATOR=:
13396  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13397    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13398      PATH_SEPARATOR=';'
13399  }
13400fi
13401
13402
13403# IFS
13404# We need space, tab and new line, in precisely that order.  Quoting is
13405# there to prevent editors from complaining about space-tab.
13406# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13407# splitting by setting IFS to empty value.)
13408IFS=" ""	$as_nl"
13409
13410# Find who we are.  Look in the path if we contain no directory separator.
13411case $0 in #((
13412  *[\\/]* ) as_myself=$0 ;;
13413  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13414for as_dir in $PATH
13415do
13416  IFS=$as_save_IFS
13417  test -z "$as_dir" && as_dir=.
13418    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13419  done
13420IFS=$as_save_IFS
13421
13422     ;;
13423esac
13424# We did not find ourselves, most probably we were run as `sh COMMAND'
13425# in which case we are not to be found in the path.
13426if test "x$as_myself" = x; then
13427  as_myself=$0
13428fi
13429if test ! -f "$as_myself"; then
13430  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13431  exit 1
13432fi
13433
13434# Unset variables that we do not need and which cause bugs (e.g. in
13435# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13436# suppresses any "Segmentation fault" message there.  '((' could
13437# trigger a bug in pdksh 5.2.14.
13438for as_var in BASH_ENV ENV MAIL MAILPATH
13439do eval test x\${$as_var+set} = xset \
13440  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13441done
13442PS1='$ '
13443PS2='> '
13444PS4='+ '
13445
13446# NLS nuisances.
13447LC_ALL=C
13448export LC_ALL
13449LANGUAGE=C
13450export LANGUAGE
13451
13452# CDPATH.
13453(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13454
13455
13456# as_fn_error STATUS ERROR [LINENO LOG_FD]
13457# ----------------------------------------
13458# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13459# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13460# script with STATUS, using 1 if that was 0.
13461as_fn_error ()
13462{
13463  as_status=$1; test $as_status -eq 0 && as_status=1
13464  if test "$4"; then
13465    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13466    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13467  fi
13468  $as_echo "$as_me: error: $2" >&2
13469  as_fn_exit $as_status
13470} # as_fn_error
13471
13472
13473# as_fn_set_status STATUS
13474# -----------------------
13475# Set $? to STATUS, without forking.
13476as_fn_set_status ()
13477{
13478  return $1
13479} # as_fn_set_status
13480
13481# as_fn_exit STATUS
13482# -----------------
13483# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13484as_fn_exit ()
13485{
13486  set +e
13487  as_fn_set_status $1
13488  exit $1
13489} # as_fn_exit
13490
13491# as_fn_unset VAR
13492# ---------------
13493# Portably unset VAR.
13494as_fn_unset ()
13495{
13496  { eval $1=; unset $1;}
13497}
13498as_unset=as_fn_unset
13499# as_fn_append VAR VALUE
13500# ----------------------
13501# Append the text in VALUE to the end of the definition contained in VAR. Take
13502# advantage of any shell optimizations that allow amortized linear growth over
13503# repeated appends, instead of the typical quadratic growth present in naive
13504# implementations.
13505if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13506  eval 'as_fn_append ()
13507  {
13508    eval $1+=\$2
13509  }'
13510else
13511  as_fn_append ()
13512  {
13513    eval $1=\$$1\$2
13514  }
13515fi # as_fn_append
13516
13517# as_fn_arith ARG...
13518# ------------------
13519# Perform arithmetic evaluation on the ARGs, and store the result in the
13520# global $as_val. Take advantage of shells that can avoid forks. The arguments
13521# must be portable across $(()) and expr.
13522if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13523  eval 'as_fn_arith ()
13524  {
13525    as_val=$(( $* ))
13526  }'
13527else
13528  as_fn_arith ()
13529  {
13530    as_val=`expr "$@" || test $? -eq 1`
13531  }
13532fi # as_fn_arith
13533
13534
13535if expr a : '\(a\)' >/dev/null 2>&1 &&
13536   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13537  as_expr=expr
13538else
13539  as_expr=false
13540fi
13541
13542if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13543  as_basename=basename
13544else
13545  as_basename=false
13546fi
13547
13548if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13549  as_dirname=dirname
13550else
13551  as_dirname=false
13552fi
13553
13554as_me=`$as_basename -- "$0" ||
13555$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13556	 X"$0" : 'X\(//\)$' \| \
13557	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13558$as_echo X/"$0" |
13559    sed '/^.*\/\([^/][^/]*\)\/*$/{
13560	    s//\1/
13561	    q
13562	  }
13563	  /^X\/\(\/\/\)$/{
13564	    s//\1/
13565	    q
13566	  }
13567	  /^X\/\(\/\).*/{
13568	    s//\1/
13569	    q
13570	  }
13571	  s/.*/./; q'`
13572
13573# Avoid depending upon Character Ranges.
13574as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13575as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13576as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13577as_cr_digits='0123456789'
13578as_cr_alnum=$as_cr_Letters$as_cr_digits
13579
13580ECHO_C= ECHO_N= ECHO_T=
13581case `echo -n x` in #(((((
13582-n*)
13583  case `echo 'xy\c'` in
13584  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13585  xy)  ECHO_C='\c';;
13586  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13587       ECHO_T='	';;
13588  esac;;
13589*)
13590  ECHO_N='-n';;
13591esac
13592
13593rm -f conf$$ conf$$.exe conf$$.file
13594if test -d conf$$.dir; then
13595  rm -f conf$$.dir/conf$$.file
13596else
13597  rm -f conf$$.dir
13598  mkdir conf$$.dir 2>/dev/null
13599fi
13600if (echo >conf$$.file) 2>/dev/null; then
13601  if ln -s conf$$.file conf$$ 2>/dev/null; then
13602    as_ln_s='ln -s'
13603    # ... but there are two gotchas:
13604    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13605    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13606    # In both cases, we have to default to `cp -p'.
13607    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13608      as_ln_s='cp -p'
13609  elif ln conf$$.file conf$$ 2>/dev/null; then
13610    as_ln_s=ln
13611  else
13612    as_ln_s='cp -p'
13613  fi
13614else
13615  as_ln_s='cp -p'
13616fi
13617rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13618rmdir conf$$.dir 2>/dev/null
13619
13620
13621# as_fn_mkdir_p
13622# -------------
13623# Create "$as_dir" as a directory, including parents if necessary.
13624as_fn_mkdir_p ()
13625{
13626
13627  case $as_dir in #(
13628  -*) as_dir=./$as_dir;;
13629  esac
13630  test -d "$as_dir" || eval $as_mkdir_p || {
13631    as_dirs=
13632    while :; do
13633      case $as_dir in #(
13634      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13635      *) as_qdir=$as_dir;;
13636      esac
13637      as_dirs="'$as_qdir' $as_dirs"
13638      as_dir=`$as_dirname -- "$as_dir" ||
13639$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13640	 X"$as_dir" : 'X\(//\)[^/]' \| \
13641	 X"$as_dir" : 'X\(//\)$' \| \
13642	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13643$as_echo X"$as_dir" |
13644    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13645	    s//\1/
13646	    q
13647	  }
13648	  /^X\(\/\/\)[^/].*/{
13649	    s//\1/
13650	    q
13651	  }
13652	  /^X\(\/\/\)$/{
13653	    s//\1/
13654	    q
13655	  }
13656	  /^X\(\/\).*/{
13657	    s//\1/
13658	    q
13659	  }
13660	  s/.*/./; q'`
13661      test -d "$as_dir" && break
13662    done
13663    test -z "$as_dirs" || eval "mkdir $as_dirs"
13664  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13665
13666
13667} # as_fn_mkdir_p
13668if mkdir -p . 2>/dev/null; then
13669  as_mkdir_p='mkdir -p "$as_dir"'
13670else
13671  test -d ./-p && rmdir ./-p
13672  as_mkdir_p=false
13673fi
13674
13675if test -x / >/dev/null 2>&1; then
13676  as_test_x='test -x'
13677else
13678  if ls -dL / >/dev/null 2>&1; then
13679    as_ls_L_option=L
13680  else
13681    as_ls_L_option=
13682  fi
13683  as_test_x='
13684    eval sh -c '\''
13685      if test -d "$1"; then
13686	test -d "$1/.";
13687      else
13688	case $1 in #(
13689	-*)set "./$1";;
13690	esac;
13691	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13692	???[sx]*):;;*)false;;esac;fi
13693    '\'' sh
13694  '
13695fi
13696as_executable_p=$as_test_x
13697
13698# Sed expression to map a string onto a valid CPP name.
13699as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13700
13701# Sed expression to map a string onto a valid variable name.
13702as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13703
13704
13705exec 6>&1
13706## ----------------------------------- ##
13707## Main body of $CONFIG_STATUS script. ##
13708## ----------------------------------- ##
13709_ASEOF
13710test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13711
13712cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13713# Save the log message, to keep $0 and so on meaningful, and to
13714# report actual input values of CONFIG_FILES etc. instead of their
13715# values after options handling.
13716ac_log="
13717This file was extended by libxcb $as_me 1.7, which was
13718generated by GNU Autoconf 2.67.  Invocation command line was
13719
13720  CONFIG_FILES    = $CONFIG_FILES
13721  CONFIG_HEADERS  = $CONFIG_HEADERS
13722  CONFIG_LINKS    = $CONFIG_LINKS
13723  CONFIG_COMMANDS = $CONFIG_COMMANDS
13724  $ $0 $@
13725
13726on `(hostname || uname -n) 2>/dev/null | sed 1q`
13727"
13728
13729_ACEOF
13730
13731case $ac_config_files in *"
13732"*) set x $ac_config_files; shift; ac_config_files=$*;;
13733esac
13734
13735case $ac_config_headers in *"
13736"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13737esac
13738
13739
13740cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13741# Files that config.status was made for.
13742config_files="$ac_config_files"
13743config_headers="$ac_config_headers"
13744config_commands="$ac_config_commands"
13745
13746_ACEOF
13747
13748cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13749ac_cs_usage="\
13750\`$as_me' instantiates files and other configuration actions
13751from templates according to the current configuration.  Unless the files
13752and actions are specified as TAGs, all are instantiated by default.
13753
13754Usage: $0 [OPTION]... [TAG]...
13755
13756  -h, --help       print this help, then exit
13757  -V, --version    print version number and configuration settings, then exit
13758      --config     print configuration, then exit
13759  -q, --quiet, --silent
13760                   do not print progress messages
13761  -d, --debug      don't remove temporary files
13762      --recheck    update $as_me by reconfiguring in the same conditions
13763      --file=FILE[:TEMPLATE]
13764                   instantiate the configuration file FILE
13765      --header=FILE[:TEMPLATE]
13766                   instantiate the configuration header FILE
13767
13768Configuration files:
13769$config_files
13770
13771Configuration headers:
13772$config_headers
13773
13774Configuration commands:
13775$config_commands
13776
13777Report bugs to <xcb@lists.freedesktop.org>."
13778
13779_ACEOF
13780cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13781ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13782ac_cs_version="\\
13783libxcb config.status 1.7
13784configured by $0, generated by GNU Autoconf 2.67,
13785  with options \\"\$ac_cs_config\\"
13786
13787Copyright (C) 2010 Free Software Foundation, Inc.
13788This config.status script is free software; the Free Software Foundation
13789gives unlimited permission to copy, distribute and modify it."
13790
13791ac_pwd='$ac_pwd'
13792srcdir='$srcdir'
13793INSTALL='$INSTALL'
13794MKDIR_P='$MKDIR_P'
13795AWK='$AWK'
13796test -n "\$AWK" || AWK=awk
13797_ACEOF
13798
13799cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13800# The default lists apply if the user does not specify any file.
13801ac_need_defaults=:
13802while test $# != 0
13803do
13804  case $1 in
13805  --*=?*)
13806    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13807    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13808    ac_shift=:
13809    ;;
13810  --*=)
13811    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13812    ac_optarg=
13813    ac_shift=:
13814    ;;
13815  *)
13816    ac_option=$1
13817    ac_optarg=$2
13818    ac_shift=shift
13819    ;;
13820  esac
13821
13822  case $ac_option in
13823  # Handling of the options.
13824  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13825    ac_cs_recheck=: ;;
13826  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13827    $as_echo "$ac_cs_version"; exit ;;
13828  --config | --confi | --conf | --con | --co | --c )
13829    $as_echo "$ac_cs_config"; exit ;;
13830  --debug | --debu | --deb | --de | --d | -d )
13831    debug=: ;;
13832  --file | --fil | --fi | --f )
13833    $ac_shift
13834    case $ac_optarg in
13835    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13836    '') as_fn_error $? "missing file argument" ;;
13837    esac
13838    as_fn_append CONFIG_FILES " '$ac_optarg'"
13839    ac_need_defaults=false;;
13840  --header | --heade | --head | --hea )
13841    $ac_shift
13842    case $ac_optarg in
13843    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13844    esac
13845    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13846    ac_need_defaults=false;;
13847  --he | --h)
13848    # Conflict between --help and --header
13849    as_fn_error $? "ambiguous option: \`$1'
13850Try \`$0 --help' for more information.";;
13851  --help | --hel | -h )
13852    $as_echo "$ac_cs_usage"; exit ;;
13853  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13854  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13855    ac_cs_silent=: ;;
13856
13857  # This is an error.
13858  -*) as_fn_error $? "unrecognized option: \`$1'
13859Try \`$0 --help' for more information." ;;
13860
13861  *) as_fn_append ac_config_targets " $1"
13862     ac_need_defaults=false ;;
13863
13864  esac
13865  shift
13866done
13867
13868ac_configure_extra_args=
13869
13870if $ac_cs_silent; then
13871  exec 6>/dev/null
13872  ac_configure_extra_args="$ac_configure_extra_args --silent"
13873fi
13874
13875_ACEOF
13876cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13877if \$ac_cs_recheck; then
13878  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13879  shift
13880  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13881  CONFIG_SHELL='$SHELL'
13882  export CONFIG_SHELL
13883  exec "\$@"
13884fi
13885
13886_ACEOF
13887cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13888exec 5>>config.log
13889{
13890  echo
13891  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13892## Running $as_me. ##
13893_ASBOX
13894  $as_echo "$ac_log"
13895} >&5
13896
13897_ACEOF
13898cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13899#
13900# INIT-COMMANDS
13901#
13902AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13903
13904
13905# The HP-UX ksh and POSIX shell print the target directory to stdout
13906# if CDPATH is set.
13907(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13908
13909sed_quote_subst='$sed_quote_subst'
13910double_quote_subst='$double_quote_subst'
13911delay_variable_subst='$delay_variable_subst'
13912macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13913macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13914enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13915enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13916pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13917enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13918host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13919host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13920host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13921build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13922build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13923build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13924SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13925Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13926GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13927EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13928FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13929LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13930NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13931LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13932max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13933ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13934exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13935lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13936lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13937lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13938reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13939reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13940OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13941deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13942file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13943AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13944AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13945STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13946RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13947old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13948old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13949old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13950CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13951CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13952compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13953GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13954lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13955lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13956lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
13957lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13958objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13959SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13960ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13961MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13962lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13963lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13964lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13965lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13966lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13967need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13968DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13969NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13970LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13971OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13972OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13973libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13974shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13975extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13976archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13977enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13978export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13979whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13980compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13981old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13982old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13983archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13984archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13985module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13986module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13987with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13988allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13989no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13990hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13991hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13992hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13993hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13994hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13995hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13996hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13997hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13998inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13999link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14000fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14001always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14002export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14003exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14004include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14005prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14006file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14007variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14008need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14009need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14010version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14011runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14012shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14013shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14014libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14015library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14016soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14017postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14018postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14019finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14020finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14021hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14022sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14023sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14024hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14025enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14026enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14027enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14028old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14029striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14030
14031LTCC='$LTCC'
14032LTCFLAGS='$LTCFLAGS'
14033compiler='$compiler_DEFAULT'
14034
14035# Quote evaled strings.
14036for var in SED \
14037GREP \
14038EGREP \
14039FGREP \
14040LD \
14041NM \
14042LN_S \
14043lt_SP2NL \
14044lt_NL2SP \
14045reload_flag \
14046OBJDUMP \
14047deplibs_check_method \
14048file_magic_cmd \
14049AR \
14050AR_FLAGS \
14051STRIP \
14052RANLIB \
14053CC \
14054CFLAGS \
14055compiler \
14056lt_cv_sys_global_symbol_pipe \
14057lt_cv_sys_global_symbol_to_cdecl \
14058lt_cv_sys_global_symbol_to_c_name_address \
14059lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14060SHELL \
14061ECHO \
14062lt_prog_compiler_no_builtin_flag \
14063lt_prog_compiler_wl \
14064lt_prog_compiler_pic \
14065lt_prog_compiler_static \
14066lt_cv_prog_compiler_c_o \
14067need_locks \
14068DSYMUTIL \
14069NMEDIT \
14070LIPO \
14071OTOOL \
14072OTOOL64 \
14073shrext_cmds \
14074export_dynamic_flag_spec \
14075whole_archive_flag_spec \
14076compiler_needs_object \
14077with_gnu_ld \
14078allow_undefined_flag \
14079no_undefined_flag \
14080hardcode_libdir_flag_spec \
14081hardcode_libdir_flag_spec_ld \
14082hardcode_libdir_separator \
14083fix_srcfile_path \
14084exclude_expsyms \
14085include_expsyms \
14086file_list_spec \
14087variables_saved_for_relink \
14088libname_spec \
14089library_names_spec \
14090soname_spec \
14091finish_eval \
14092old_striplib \
14093striplib; do
14094    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14095    *[\\\\\\\`\\"\\\$]*)
14096      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14097      ;;
14098    *)
14099      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14100      ;;
14101    esac
14102done
14103
14104# Double-quote double-evaled strings.
14105for var in reload_cmds \
14106old_postinstall_cmds \
14107old_postuninstall_cmds \
14108old_archive_cmds \
14109extract_expsyms_cmds \
14110old_archive_from_new_cmds \
14111old_archive_from_expsyms_cmds \
14112archive_cmds \
14113archive_expsym_cmds \
14114module_cmds \
14115module_expsym_cmds \
14116export_symbols_cmds \
14117prelink_cmds \
14118postinstall_cmds \
14119postuninstall_cmds \
14120finish_cmds \
14121sys_lib_search_path_spec \
14122sys_lib_dlsearch_path_spec; do
14123    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14124    *[\\\\\\\`\\"\\\$]*)
14125      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14126      ;;
14127    *)
14128      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14129      ;;
14130    esac
14131done
14132
14133# Fix-up fallback echo if it was mangled by the above quoting rules.
14134case \$lt_ECHO in
14135*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14136  ;;
14137esac
14138
14139ac_aux_dir='$ac_aux_dir'
14140xsi_shell='$xsi_shell'
14141lt_shell_append='$lt_shell_append'
14142
14143# See if we are running on zsh, and set the options which allow our
14144# commands through without removal of \ escapes INIT.
14145if test -n "\${ZSH_VERSION+set}" ; then
14146   setopt NO_GLOB_SUBST
14147fi
14148
14149
14150    PACKAGE='$PACKAGE'
14151    VERSION='$VERSION'
14152    TIMESTAMP='$TIMESTAMP'
14153    RM='$RM'
14154    ofile='$ofile'
14155
14156
14157
14158
14159_ACEOF
14160
14161cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14162
14163# Handling of arguments.
14164for ac_config_target in $ac_config_targets
14165do
14166  case $ac_config_target in
14167    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
14168    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14169    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14170    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14171    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14172    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14173    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
14174    "xcb.pc") CONFIG_FILES="$CONFIG_FILES xcb.pc" ;;
14175    "xcb-composite.pc") CONFIG_FILES="$CONFIG_FILES xcb-composite.pc" ;;
14176    "xcb-damage.pc") CONFIG_FILES="$CONFIG_FILES xcb-damage.pc" ;;
14177    "xcb-dpms.pc") CONFIG_FILES="$CONFIG_FILES xcb-dpms.pc" ;;
14178    "xcb-dri2.pc") CONFIG_FILES="$CONFIG_FILES xcb-dri2.pc" ;;
14179    "xcb-glx.pc") CONFIG_FILES="$CONFIG_FILES xcb-glx.pc" ;;
14180    "xcb-randr.pc") CONFIG_FILES="$CONFIG_FILES xcb-randr.pc" ;;
14181    "xcb-record.pc") CONFIG_FILES="$CONFIG_FILES xcb-record.pc" ;;
14182    "xcb-render.pc") CONFIG_FILES="$CONFIG_FILES xcb-render.pc" ;;
14183    "xcb-res.pc") CONFIG_FILES="$CONFIG_FILES xcb-res.pc" ;;
14184    "xcb-screensaver.pc") CONFIG_FILES="$CONFIG_FILES xcb-screensaver.pc" ;;
14185    "xcb-shape.pc") CONFIG_FILES="$CONFIG_FILES xcb-shape.pc" ;;
14186    "xcb-shm.pc") CONFIG_FILES="$CONFIG_FILES xcb-shm.pc" ;;
14187    "xcb-sync.pc") CONFIG_FILES="$CONFIG_FILES xcb-sync.pc" ;;
14188    "xcb-xevie.pc") CONFIG_FILES="$CONFIG_FILES xcb-xevie.pc" ;;
14189    "xcb-xf86dri.pc") CONFIG_FILES="$CONFIG_FILES xcb-xf86dri.pc" ;;
14190    "xcb-xfixes.pc") CONFIG_FILES="$CONFIG_FILES xcb-xfixes.pc" ;;
14191    "xcb-xinerama.pc") CONFIG_FILES="$CONFIG_FILES xcb-xinerama.pc" ;;
14192    "xcb-xinput.pc") CONFIG_FILES="$CONFIG_FILES xcb-xinput.pc" ;;
14193    "xcb-xprint.pc") CONFIG_FILES="$CONFIG_FILES xcb-xprint.pc" ;;
14194    "xcb-xselinux.pc") CONFIG_FILES="$CONFIG_FILES xcb-xselinux.pc" ;;
14195    "xcb-xtest.pc") CONFIG_FILES="$CONFIG_FILES xcb-xtest.pc" ;;
14196    "xcb-xv.pc") CONFIG_FILES="$CONFIG_FILES xcb-xv.pc" ;;
14197    "xcb-xvmc.pc") CONFIG_FILES="$CONFIG_FILES xcb-xvmc.pc" ;;
14198    "doc/xcb.doxygen") CONFIG_FILES="$CONFIG_FILES doc/xcb.doxygen" ;;
14199
14200  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
14201  esac
14202done
14203
14204
14205# If the user did not use the arguments to specify the items to instantiate,
14206# then the envvar interface is used.  Set only those that are not.
14207# We use the long form for the default assignment because of an extremely
14208# bizarre bug on SunOS 4.1.3.
14209if $ac_need_defaults; then
14210  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14211  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14212  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14213fi
14214
14215# Have a temporary directory for convenience.  Make it in the build tree
14216# simply because there is no reason against having it here, and in addition,
14217# creating and moving files from /tmp can sometimes cause problems.
14218# Hook for its removal unless debugging.
14219# Note that there is a small window in which the directory will not be cleaned:
14220# after its creation but before its name has been assigned to `$tmp'.
14221$debug ||
14222{
14223  tmp=
14224  trap 'exit_status=$?
14225  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14226' 0
14227  trap 'as_fn_exit 1' 1 2 13 15
14228}
14229# Create a (secure) tmp directory for tmp files.
14230
14231{
14232  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14233  test -n "$tmp" && test -d "$tmp"
14234}  ||
14235{
14236  tmp=./conf$$-$RANDOM
14237  (umask 077 && mkdir "$tmp")
14238} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14239
14240# Set up the scripts for CONFIG_FILES section.
14241# No need to generate them if there are no CONFIG_FILES.
14242# This happens for instance with `./config.status config.h'.
14243if test -n "$CONFIG_FILES"; then
14244
14245
14246ac_cr=`echo X | tr X '\015'`
14247# On cygwin, bash can eat \r inside `` if the user requested igncr.
14248# But we know of no other shell where ac_cr would be empty at this
14249# point, so we can use a bashism as a fallback.
14250if test "x$ac_cr" = x; then
14251  eval ac_cr=\$\'\\r\'
14252fi
14253ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14254if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14255  ac_cs_awk_cr='\\r'
14256else
14257  ac_cs_awk_cr=$ac_cr
14258fi
14259
14260echo 'BEGIN {' >"$tmp/subs1.awk" &&
14261_ACEOF
14262
14263
14264{
14265  echo "cat >conf$$subs.awk <<_ACEOF" &&
14266  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14267  echo "_ACEOF"
14268} >conf$$subs.sh ||
14269  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14270ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14271ac_delim='%!_!# '
14272for ac_last_try in false false false false false :; do
14273  . ./conf$$subs.sh ||
14274    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14275
14276  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14277  if test $ac_delim_n = $ac_delim_num; then
14278    break
14279  elif $ac_last_try; then
14280    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14281  else
14282    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14283  fi
14284done
14285rm -f conf$$subs.sh
14286
14287cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14288cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14289_ACEOF
14290sed -n '
14291h
14292s/^/S["/; s/!.*/"]=/
14293p
14294g
14295s/^[^!]*!//
14296:repl
14297t repl
14298s/'"$ac_delim"'$//
14299t delim
14300:nl
14301h
14302s/\(.\{148\}\)..*/\1/
14303t more1
14304s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14305p
14306n
14307b repl
14308:more1
14309s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14310p
14311g
14312s/.\{148\}//
14313t nl
14314:delim
14315h
14316s/\(.\{148\}\)..*/\1/
14317t more2
14318s/["\\]/\\&/g; s/^/"/; s/$/"/
14319p
14320b
14321:more2
14322s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14323p
14324g
14325s/.\{148\}//
14326t delim
14327' <conf$$subs.awk | sed '
14328/^[^""]/{
14329  N
14330  s/\n//
14331}
14332' >>$CONFIG_STATUS || ac_write_fail=1
14333rm -f conf$$subs.awk
14334cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14335_ACAWK
14336cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14337  for (key in S) S_is_set[key] = 1
14338  FS = ""
14339
14340}
14341{
14342  line = $ 0
14343  nfields = split(line, field, "@")
14344  substed = 0
14345  len = length(field[1])
14346  for (i = 2; i < nfields; i++) {
14347    key = field[i]
14348    keylen = length(key)
14349    if (S_is_set[key]) {
14350      value = S[key]
14351      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14352      len += length(value) + length(field[++i])
14353      substed = 1
14354    } else
14355      len += 1 + keylen
14356  }
14357
14358  print line
14359}
14360
14361_ACAWK
14362_ACEOF
14363cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14364if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14365  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14366else
14367  cat
14368fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14369  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14370_ACEOF
14371
14372# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14373# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14374# trailing colons and then remove the whole line if VPATH becomes empty
14375# (actually we leave an empty line to preserve line numbers).
14376if test "x$srcdir" = x.; then
14377  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
14378h
14379s///
14380s/^/:/
14381s/[	 ]*$/:/
14382s/:\$(srcdir):/:/g
14383s/:\${srcdir}:/:/g
14384s/:@srcdir@:/:/g
14385s/^:*//
14386s/:*$//
14387x
14388s/\(=[	 ]*\).*/\1/
14389G
14390s/\n//
14391s/^[^=]*=[	 ]*$//
14392}'
14393fi
14394
14395cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14396fi # test -n "$CONFIG_FILES"
14397
14398# Set up the scripts for CONFIG_HEADERS section.
14399# No need to generate them if there are no CONFIG_HEADERS.
14400# This happens for instance with `./config.status Makefile'.
14401if test -n "$CONFIG_HEADERS"; then
14402cat >"$tmp/defines.awk" <<\_ACAWK ||
14403BEGIN {
14404_ACEOF
14405
14406# Transform confdefs.h into an awk script `defines.awk', embedded as
14407# here-document in config.status, that substitutes the proper values into
14408# config.h.in to produce config.h.
14409
14410# Create a delimiter string that does not exist in confdefs.h, to ease
14411# handling of long lines.
14412ac_delim='%!_!# '
14413for ac_last_try in false false :; do
14414  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14415  if test -z "$ac_t"; then
14416    break
14417  elif $ac_last_try; then
14418    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14419  else
14420    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14421  fi
14422done
14423
14424# For the awk script, D is an array of macro values keyed by name,
14425# likewise P contains macro parameters if any.  Preserve backslash
14426# newline sequences.
14427
14428ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14429sed -n '
14430s/.\{148\}/&'"$ac_delim"'/g
14431t rset
14432:rset
14433s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
14434t def
14435d
14436:def
14437s/\\$//
14438t bsnl
14439s/["\\]/\\&/g
14440s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14441D["\1"]=" \3"/p
14442s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
14443d
14444:bsnl
14445s/["\\]/\\&/g
14446s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14447D["\1"]=" \3\\\\\\n"\\/p
14448t cont
14449s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14450t cont
14451d
14452:cont
14453n
14454s/.\{148\}/&'"$ac_delim"'/g
14455t clear
14456:clear
14457s/\\$//
14458t bsnlc
14459s/["\\]/\\&/g; s/^/"/; s/$/"/p
14460d
14461:bsnlc
14462s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14463b cont
14464' <confdefs.h | sed '
14465s/'"$ac_delim"'/"\\\
14466"/g' >>$CONFIG_STATUS || ac_write_fail=1
14467
14468cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14469  for (key in D) D_is_set[key] = 1
14470  FS = ""
14471}
14472/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14473  line = \$ 0
14474  split(line, arg, " ")
14475  if (arg[1] == "#") {
14476    defundef = arg[2]
14477    mac1 = arg[3]
14478  } else {
14479    defundef = substr(arg[1], 2)
14480    mac1 = arg[2]
14481  }
14482  split(mac1, mac2, "(") #)
14483  macro = mac2[1]
14484  prefix = substr(line, 1, index(line, defundef) - 1)
14485  if (D_is_set[macro]) {
14486    # Preserve the white space surrounding the "#".
14487    print prefix "define", macro P[macro] D[macro]
14488    next
14489  } else {
14490    # Replace #undef with comments.  This is necessary, for example,
14491    # in the case of _POSIX_SOURCE, which is predefined and required
14492    # on some systems where configure will not decide to define it.
14493    if (defundef == "undef") {
14494      print "/*", prefix defundef, macro, "*/"
14495      next
14496    }
14497  }
14498}
14499{ print }
14500_ACAWK
14501_ACEOF
14502cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14503  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14504fi # test -n "$CONFIG_HEADERS"
14505
14506
14507eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14508shift
14509for ac_tag
14510do
14511  case $ac_tag in
14512  :[FHLC]) ac_mode=$ac_tag; continue;;
14513  esac
14514  case $ac_mode$ac_tag in
14515  :[FHL]*:*);;
14516  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
14517  :[FH]-) ac_tag=-:-;;
14518  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14519  esac
14520  ac_save_IFS=$IFS
14521  IFS=:
14522  set x $ac_tag
14523  IFS=$ac_save_IFS
14524  shift
14525  ac_file=$1
14526  shift
14527
14528  case $ac_mode in
14529  :L) ac_source=$1;;
14530  :[FH])
14531    ac_file_inputs=
14532    for ac_f
14533    do
14534      case $ac_f in
14535      -) ac_f="$tmp/stdin";;
14536      *) # Look for the file first in the build tree, then in the source tree
14537	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14538	 # because $ac_f cannot contain `:'.
14539	 test -f "$ac_f" ||
14540	   case $ac_f in
14541	   [\\/$]*) false;;
14542	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14543	   esac ||
14544	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
14545      esac
14546      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14547      as_fn_append ac_file_inputs " '$ac_f'"
14548    done
14549
14550    # Let's still pretend it is `configure' which instantiates (i.e., don't
14551    # use $as_me), people would be surprised to read:
14552    #    /* config.h.  Generated by config.status.  */
14553    configure_input='Generated from '`
14554	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14555	`' by configure.'
14556    if test x"$ac_file" != x-; then
14557      configure_input="$ac_file.  $configure_input"
14558      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14559$as_echo "$as_me: creating $ac_file" >&6;}
14560    fi
14561    # Neutralize special characters interpreted by sed in replacement strings.
14562    case $configure_input in #(
14563    *\&* | *\|* | *\\* )
14564       ac_sed_conf_input=`$as_echo "$configure_input" |
14565       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14566    *) ac_sed_conf_input=$configure_input;;
14567    esac
14568
14569    case $ac_tag in
14570    *:-:* | *:-) cat >"$tmp/stdin" \
14571      || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
14572    esac
14573    ;;
14574  esac
14575
14576  ac_dir=`$as_dirname -- "$ac_file" ||
14577$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14578	 X"$ac_file" : 'X\(//\)[^/]' \| \
14579	 X"$ac_file" : 'X\(//\)$' \| \
14580	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14581$as_echo X"$ac_file" |
14582    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14583	    s//\1/
14584	    q
14585	  }
14586	  /^X\(\/\/\)[^/].*/{
14587	    s//\1/
14588	    q
14589	  }
14590	  /^X\(\/\/\)$/{
14591	    s//\1/
14592	    q
14593	  }
14594	  /^X\(\/\).*/{
14595	    s//\1/
14596	    q
14597	  }
14598	  s/.*/./; q'`
14599  as_dir="$ac_dir"; as_fn_mkdir_p
14600  ac_builddir=.
14601
14602case "$ac_dir" in
14603.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14604*)
14605  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14606  # A ".." for each directory in $ac_dir_suffix.
14607  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14608  case $ac_top_builddir_sub in
14609  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14610  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14611  esac ;;
14612esac
14613ac_abs_top_builddir=$ac_pwd
14614ac_abs_builddir=$ac_pwd$ac_dir_suffix
14615# for backward compatibility:
14616ac_top_builddir=$ac_top_build_prefix
14617
14618case $srcdir in
14619  .)  # We are building in place.
14620    ac_srcdir=.
14621    ac_top_srcdir=$ac_top_builddir_sub
14622    ac_abs_top_srcdir=$ac_pwd ;;
14623  [\\/]* | ?:[\\/]* )  # Absolute name.
14624    ac_srcdir=$srcdir$ac_dir_suffix;
14625    ac_top_srcdir=$srcdir
14626    ac_abs_top_srcdir=$srcdir ;;
14627  *) # Relative name.
14628    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14629    ac_top_srcdir=$ac_top_build_prefix$srcdir
14630    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14631esac
14632ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14633
14634
14635  case $ac_mode in
14636  :F)
14637  #
14638  # CONFIG_FILE
14639  #
14640
14641  case $INSTALL in
14642  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14643  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14644  esac
14645  ac_MKDIR_P=$MKDIR_P
14646  case $MKDIR_P in
14647  [\\/$]* | ?:[\\/]* ) ;;
14648  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14649  esac
14650_ACEOF
14651
14652cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14653# If the template does not know about datarootdir, expand it.
14654# FIXME: This hack should be removed a few years after 2.60.
14655ac_datarootdir_hack=; ac_datarootdir_seen=
14656ac_sed_dataroot='
14657/datarootdir/ {
14658  p
14659  q
14660}
14661/@datadir@/p
14662/@docdir@/p
14663/@infodir@/p
14664/@localedir@/p
14665/@mandir@/p'
14666case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14667*datarootdir*) ac_datarootdir_seen=yes;;
14668*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14669  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14670$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14671_ACEOF
14672cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14673  ac_datarootdir_hack='
14674  s&@datadir@&$datadir&g
14675  s&@docdir@&$docdir&g
14676  s&@infodir@&$infodir&g
14677  s&@localedir@&$localedir&g
14678  s&@mandir@&$mandir&g
14679  s&\\\${datarootdir}&$datarootdir&g' ;;
14680esac
14681_ACEOF
14682
14683# Neutralize VPATH when `$srcdir' = `.'.
14684# Shell code in configure.ac might set extrasub.
14685# FIXME: do we really want to maintain this feature?
14686cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14687ac_sed_extra="$ac_vpsub
14688$extrasub
14689_ACEOF
14690cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14691:t
14692/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14693s|@configure_input@|$ac_sed_conf_input|;t t
14694s&@top_builddir@&$ac_top_builddir_sub&;t t
14695s&@top_build_prefix@&$ac_top_build_prefix&;t t
14696s&@srcdir@&$ac_srcdir&;t t
14697s&@abs_srcdir@&$ac_abs_srcdir&;t t
14698s&@top_srcdir@&$ac_top_srcdir&;t t
14699s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14700s&@builddir@&$ac_builddir&;t t
14701s&@abs_builddir@&$ac_abs_builddir&;t t
14702s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14703s&@INSTALL@&$ac_INSTALL&;t t
14704s&@MKDIR_P@&$ac_MKDIR_P&;t t
14705$ac_datarootdir_hack
14706"
14707eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14708  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14709
14710test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14711  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14712  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14713  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14714which seems to be undefined.  Please make sure it is defined" >&5
14715$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14716which seems to be undefined.  Please make sure it is defined" >&2;}
14717
14718  rm -f "$tmp/stdin"
14719  case $ac_file in
14720  -) cat "$tmp/out" && rm -f "$tmp/out";;
14721  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14722  esac \
14723  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14724 ;;
14725  :H)
14726  #
14727  # CONFIG_HEADER
14728  #
14729  if test x"$ac_file" != x-; then
14730    {
14731      $as_echo "/* $configure_input  */" \
14732      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14733    } >"$tmp/config.h" \
14734      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14735    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14736      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14737$as_echo "$as_me: $ac_file is unchanged" >&6;}
14738    else
14739      rm -f "$ac_file"
14740      mv "$tmp/config.h" "$ac_file" \
14741	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14742    fi
14743  else
14744    $as_echo "/* $configure_input  */" \
14745      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14746      || as_fn_error $? "could not create -" "$LINENO" 5
14747  fi
14748# Compute "$ac_file"'s index in $config_headers.
14749_am_arg="$ac_file"
14750_am_stamp_count=1
14751for _am_header in $config_headers :; do
14752  case $_am_header in
14753    $_am_arg | $_am_arg:* )
14754      break ;;
14755    * )
14756      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14757  esac
14758done
14759echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14760$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14761	 X"$_am_arg" : 'X\(//\)[^/]' \| \
14762	 X"$_am_arg" : 'X\(//\)$' \| \
14763	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14764$as_echo X"$_am_arg" |
14765    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14766	    s//\1/
14767	    q
14768	  }
14769	  /^X\(\/\/\)[^/].*/{
14770	    s//\1/
14771	    q
14772	  }
14773	  /^X\(\/\/\)$/{
14774	    s//\1/
14775	    q
14776	  }
14777	  /^X\(\/\).*/{
14778	    s//\1/
14779	    q
14780	  }
14781	  s/.*/./; q'`/stamp-h$_am_stamp_count
14782 ;;
14783
14784  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14785$as_echo "$as_me: executing $ac_file commands" >&6;}
14786 ;;
14787  esac
14788
14789
14790  case $ac_file$ac_mode in
14791    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14792  # Autoconf 2.62 quotes --file arguments for eval, but not when files
14793  # are listed without --file.  Let's play safe and only enable the eval
14794  # if we detect the quoting.
14795  case $CONFIG_FILES in
14796  *\'*) eval set x "$CONFIG_FILES" ;;
14797  *)   set x $CONFIG_FILES ;;
14798  esac
14799  shift
14800  for mf
14801  do
14802    # Strip MF so we end up with the name of the file.
14803    mf=`echo "$mf" | sed -e 's/:.*$//'`
14804    # Check whether this is an Automake generated Makefile or not.
14805    # We used to match only the files named `Makefile.in', but
14806    # some people rename them; so instead we look at the file content.
14807    # Grep'ing the first line is not enough: some people post-process
14808    # each Makefile.in and add a new line on top of each file to say so.
14809    # Grep'ing the whole file is not good either: AIX grep has a line
14810    # limit of 2048, but all sed's we know have understand at least 4000.
14811    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14812      dirpart=`$as_dirname -- "$mf" ||
14813$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14814	 X"$mf" : 'X\(//\)[^/]' \| \
14815	 X"$mf" : 'X\(//\)$' \| \
14816	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14817$as_echo X"$mf" |
14818    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14819	    s//\1/
14820	    q
14821	  }
14822	  /^X\(\/\/\)[^/].*/{
14823	    s//\1/
14824	    q
14825	  }
14826	  /^X\(\/\/\)$/{
14827	    s//\1/
14828	    q
14829	  }
14830	  /^X\(\/\).*/{
14831	    s//\1/
14832	    q
14833	  }
14834	  s/.*/./; q'`
14835    else
14836      continue
14837    fi
14838    # Extract the definition of DEPDIR, am__include, and am__quote
14839    # from the Makefile without running `make'.
14840    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14841    test -z "$DEPDIR" && continue
14842    am__include=`sed -n 's/^am__include = //p' < "$mf"`
14843    test -z "am__include" && continue
14844    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14845    # When using ansi2knr, U may be empty or an underscore; expand it
14846    U=`sed -n 's/^U = //p' < "$mf"`
14847    # Find all dependency output files, they are included files with
14848    # $(DEPDIR) in their names.  We invoke sed twice because it is the
14849    # simplest approach to changing $(DEPDIR) to its actual value in the
14850    # expansion.
14851    for file in `sed -n "
14852      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14853	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14854      # Make sure the directory exists.
14855      test -f "$dirpart/$file" && continue
14856      fdir=`$as_dirname -- "$file" ||
14857$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14858	 X"$file" : 'X\(//\)[^/]' \| \
14859	 X"$file" : 'X\(//\)$' \| \
14860	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14861$as_echo X"$file" |
14862    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14863	    s//\1/
14864	    q
14865	  }
14866	  /^X\(\/\/\)[^/].*/{
14867	    s//\1/
14868	    q
14869	  }
14870	  /^X\(\/\/\)$/{
14871	    s//\1/
14872	    q
14873	  }
14874	  /^X\(\/\).*/{
14875	    s//\1/
14876	    q
14877	  }
14878	  s/.*/./; q'`
14879      as_dir=$dirpart/$fdir; as_fn_mkdir_p
14880      # echo "creating $dirpart/$file"
14881      echo '# dummy' > "$dirpart/$file"
14882    done
14883  done
14884}
14885 ;;
14886    "libtool":C)
14887
14888    # See if we are running on zsh, and set the options which allow our
14889    # commands through without removal of \ escapes.
14890    if test -n "${ZSH_VERSION+set}" ; then
14891      setopt NO_GLOB_SUBST
14892    fi
14893
14894    cfgfile="${ofile}T"
14895    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14896    $RM "$cfgfile"
14897
14898    cat <<_LT_EOF >> "$cfgfile"
14899#! $SHELL
14900
14901# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14902# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14903# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14904# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14905#
14906#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14907#                 2006, 2007, 2008 Free Software Foundation, Inc.
14908#   Written by Gordon Matzigkeit, 1996
14909#
14910#   This file is part of GNU Libtool.
14911#
14912# GNU Libtool is free software; you can redistribute it and/or
14913# modify it under the terms of the GNU General Public License as
14914# published by the Free Software Foundation; either version 2 of
14915# the License, or (at your option) any later version.
14916#
14917# As a special exception to the GNU General Public License,
14918# if you distribute this file as part of a program or library that
14919# is built using GNU Libtool, you may include this file under the
14920# same distribution terms that you use for the rest of that program.
14921#
14922# GNU Libtool is distributed in the hope that it will be useful,
14923# but WITHOUT ANY WARRANTY; without even the implied warranty of
14924# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14925# GNU General Public License for more details.
14926#
14927# You should have received a copy of the GNU General Public License
14928# along with GNU Libtool; see the file COPYING.  If not, a copy
14929# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14930# obtained by writing to the Free Software Foundation, Inc.,
14931# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14932
14933
14934# The names of the tagged configurations supported by this script.
14935available_tags=""
14936
14937# ### BEGIN LIBTOOL CONFIG
14938
14939# Which release of libtool.m4 was used?
14940macro_version=$macro_version
14941macro_revision=$macro_revision
14942
14943# Whether or not to build shared libraries.
14944build_libtool_libs=$enable_shared
14945
14946# Whether or not to build static libraries.
14947build_old_libs=$enable_static
14948
14949# What type of objects to build.
14950pic_mode=$pic_mode
14951
14952# Whether or not to optimize for fast installation.
14953fast_install=$enable_fast_install
14954
14955# The host system.
14956host_alias=$host_alias
14957host=$host
14958host_os=$host_os
14959
14960# The build system.
14961build_alias=$build_alias
14962build=$build
14963build_os=$build_os
14964
14965# A sed program that does not truncate output.
14966SED=$lt_SED
14967
14968# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14969Xsed="\$SED -e 1s/^X//"
14970
14971# A grep program that handles long lines.
14972GREP=$lt_GREP
14973
14974# An ERE matcher.
14975EGREP=$lt_EGREP
14976
14977# A literal string matcher.
14978FGREP=$lt_FGREP
14979
14980# A BSD- or MS-compatible name lister.
14981NM=$lt_NM
14982
14983# Whether we need soft or hard links.
14984LN_S=$lt_LN_S
14985
14986# What is the maximum length of a command?
14987max_cmd_len=$max_cmd_len
14988
14989# Object file suffix (normally "o").
14990objext=$ac_objext
14991
14992# Executable file suffix (normally "").
14993exeext=$exeext
14994
14995# whether the shell understands "unset".
14996lt_unset=$lt_unset
14997
14998# turn spaces into newlines.
14999SP2NL=$lt_lt_SP2NL
15000
15001# turn newlines into spaces.
15002NL2SP=$lt_lt_NL2SP
15003
15004# How to create reloadable object files.
15005reload_flag=$lt_reload_flag
15006reload_cmds=$lt_reload_cmds
15007
15008# An object symbol dumper.
15009OBJDUMP=$lt_OBJDUMP
15010
15011# Method to check whether dependent libraries are shared objects.
15012deplibs_check_method=$lt_deplibs_check_method
15013
15014# Command to use when deplibs_check_method == "file_magic".
15015file_magic_cmd=$lt_file_magic_cmd
15016
15017# The archiver.
15018AR=$lt_AR
15019AR_FLAGS=$lt_AR_FLAGS
15020
15021# A symbol stripping program.
15022STRIP=$lt_STRIP
15023
15024# Commands used to install an old-style archive.
15025RANLIB=$lt_RANLIB
15026old_postinstall_cmds=$lt_old_postinstall_cmds
15027old_postuninstall_cmds=$lt_old_postuninstall_cmds
15028
15029# A C compiler.
15030LTCC=$lt_CC
15031
15032# LTCC compiler flags.
15033LTCFLAGS=$lt_CFLAGS
15034
15035# Take the output of nm and produce a listing of raw symbols and C names.
15036global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15037
15038# Transform the output of nm in a proper C declaration.
15039global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15040
15041# Transform the output of nm in a C name address pair.
15042global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15043
15044# Transform the output of nm in a C name address pair when lib prefix is needed.
15045global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15046
15047# The name of the directory that contains temporary libtool files.
15048objdir=$objdir
15049
15050# Shell to use when invoking shell scripts.
15051SHELL=$lt_SHELL
15052
15053# An echo program that does not interpret backslashes.
15054ECHO=$lt_ECHO
15055
15056# Used to examine libraries when file_magic_cmd begins with "file".
15057MAGIC_CMD=$MAGIC_CMD
15058
15059# Must we lock files when doing compilation?
15060need_locks=$lt_need_locks
15061
15062# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15063DSYMUTIL=$lt_DSYMUTIL
15064
15065# Tool to change global to local symbols on Mac OS X.
15066NMEDIT=$lt_NMEDIT
15067
15068# Tool to manipulate fat objects and archives on Mac OS X.
15069LIPO=$lt_LIPO
15070
15071# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15072OTOOL=$lt_OTOOL
15073
15074# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15075OTOOL64=$lt_OTOOL64
15076
15077# Old archive suffix (normally "a").
15078libext=$libext
15079
15080# Shared library suffix (normally ".so").
15081shrext_cmds=$lt_shrext_cmds
15082
15083# The commands to extract the exported symbol list from a shared archive.
15084extract_expsyms_cmds=$lt_extract_expsyms_cmds
15085
15086# Variables whose values should be saved in libtool wrapper scripts and
15087# restored at link time.
15088variables_saved_for_relink=$lt_variables_saved_for_relink
15089
15090# Do we need the "lib" prefix for modules?
15091need_lib_prefix=$need_lib_prefix
15092
15093# Do we need a version for libraries?
15094need_version=$need_version
15095
15096# Library versioning type.
15097version_type=$version_type
15098
15099# Shared library runtime path variable.
15100runpath_var=$runpath_var
15101
15102# Shared library path variable.
15103shlibpath_var=$shlibpath_var
15104
15105# Is shlibpath searched before the hard-coded library search path?
15106shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15107
15108# Format of library name prefix.
15109libname_spec=$lt_libname_spec
15110
15111# List of archive names.  First name is the real one, the rest are links.
15112# The last name is the one that the linker finds with -lNAME
15113library_names_spec=$lt_library_names_spec
15114
15115# The coded name of the library, if different from the real name.
15116soname_spec=$lt_soname_spec
15117
15118# Command to use after installation of a shared archive.
15119postinstall_cmds=$lt_postinstall_cmds
15120
15121# Command to use after uninstallation of a shared archive.
15122postuninstall_cmds=$lt_postuninstall_cmds
15123
15124# Commands used to finish a libtool library installation in a directory.
15125finish_cmds=$lt_finish_cmds
15126
15127# As "finish_cmds", except a single script fragment to be evaled but
15128# not shown.
15129finish_eval=$lt_finish_eval
15130
15131# Whether we should hardcode library paths into libraries.
15132hardcode_into_libs=$hardcode_into_libs
15133
15134# Compile-time system search path for libraries.
15135sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15136
15137# Run-time system search path for libraries.
15138sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15139
15140# Whether dlopen is supported.
15141dlopen_support=$enable_dlopen
15142
15143# Whether dlopen of programs is supported.
15144dlopen_self=$enable_dlopen_self
15145
15146# Whether dlopen of statically linked programs is supported.
15147dlopen_self_static=$enable_dlopen_self_static
15148
15149# Commands to strip libraries.
15150old_striplib=$lt_old_striplib
15151striplib=$lt_striplib
15152
15153
15154# The linker used to build libraries.
15155LD=$lt_LD
15156
15157# Commands used to build an old-style archive.
15158old_archive_cmds=$lt_old_archive_cmds
15159
15160# A language specific compiler.
15161CC=$lt_compiler
15162
15163# Is the compiler the GNU compiler?
15164with_gcc=$GCC
15165
15166# Compiler flag to turn off builtin functions.
15167no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15168
15169# How to pass a linker flag through the compiler.
15170wl=$lt_lt_prog_compiler_wl
15171
15172# Additional compiler flags for building library objects.
15173pic_flag=$lt_lt_prog_compiler_pic
15174
15175# Compiler flag to prevent dynamic linking.
15176link_static_flag=$lt_lt_prog_compiler_static
15177
15178# Does compiler simultaneously support -c and -o options?
15179compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15180
15181# Whether or not to add -lc for building shared libraries.
15182build_libtool_need_lc=$archive_cmds_need_lc
15183
15184# Whether or not to disallow shared libs when runtime libs are static.
15185allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15186
15187# Compiler flag to allow reflexive dlopens.
15188export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15189
15190# Compiler flag to generate shared objects directly from archives.
15191whole_archive_flag_spec=$lt_whole_archive_flag_spec
15192
15193# Whether the compiler copes with passing no objects directly.
15194compiler_needs_object=$lt_compiler_needs_object
15195
15196# Create an old-style archive from a shared archive.
15197old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15198
15199# Create a temporary old-style archive to link instead of a shared archive.
15200old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15201
15202# Commands used to build a shared archive.
15203archive_cmds=$lt_archive_cmds
15204archive_expsym_cmds=$lt_archive_expsym_cmds
15205
15206# Commands used to build a loadable module if different from building
15207# a shared archive.
15208module_cmds=$lt_module_cmds
15209module_expsym_cmds=$lt_module_expsym_cmds
15210
15211# Whether we are building with GNU ld or not.
15212with_gnu_ld=$lt_with_gnu_ld
15213
15214# Flag that allows shared libraries with undefined symbols to be built.
15215allow_undefined_flag=$lt_allow_undefined_flag
15216
15217# Flag that enforces no undefined symbols.
15218no_undefined_flag=$lt_no_undefined_flag
15219
15220# Flag to hardcode \$libdir into a binary during linking.
15221# This must work even if \$libdir does not exist
15222hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15223
15224# If ld is used when linking, flag to hardcode \$libdir into a binary
15225# during linking.  This must work even if \$libdir does not exist.
15226hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15227
15228# Whether we need a single "-rpath" flag with a separated argument.
15229hardcode_libdir_separator=$lt_hardcode_libdir_separator
15230
15231# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15232# DIR into the resulting binary.
15233hardcode_direct=$hardcode_direct
15234
15235# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15236# DIR into the resulting binary and the resulting library dependency is
15237# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15238# library is relocated.
15239hardcode_direct_absolute=$hardcode_direct_absolute
15240
15241# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15242# into the resulting binary.
15243hardcode_minus_L=$hardcode_minus_L
15244
15245# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15246# into the resulting binary.
15247hardcode_shlibpath_var=$hardcode_shlibpath_var
15248
15249# Set to "yes" if building a shared library automatically hardcodes DIR
15250# into the library and all subsequent libraries and executables linked
15251# against it.
15252hardcode_automatic=$hardcode_automatic
15253
15254# Set to yes if linker adds runtime paths of dependent libraries
15255# to runtime path list.
15256inherit_rpath=$inherit_rpath
15257
15258# Whether libtool must link a program against all its dependency libraries.
15259link_all_deplibs=$link_all_deplibs
15260
15261# Fix the shell variable \$srcfile for the compiler.
15262fix_srcfile_path=$lt_fix_srcfile_path
15263
15264# Set to "yes" if exported symbols are required.
15265always_export_symbols=$always_export_symbols
15266
15267# The commands to list exported symbols.
15268export_symbols_cmds=$lt_export_symbols_cmds
15269
15270# Symbols that should not be listed in the preloaded symbols.
15271exclude_expsyms=$lt_exclude_expsyms
15272
15273# Symbols that must always be exported.
15274include_expsyms=$lt_include_expsyms
15275
15276# Commands necessary for linking programs (against libraries) with templates.
15277prelink_cmds=$lt_prelink_cmds
15278
15279# Specify filename containing input files.
15280file_list_spec=$lt_file_list_spec
15281
15282# How to hardcode a shared library path into an executable.
15283hardcode_action=$hardcode_action
15284
15285# ### END LIBTOOL CONFIG
15286
15287_LT_EOF
15288
15289  case $host_os in
15290  aix3*)
15291    cat <<\_LT_EOF >> "$cfgfile"
15292# AIX sometimes has problems with the GCC collect2 program.  For some
15293# reason, if we set the COLLECT_NAMES environment variable, the problems
15294# vanish in a puff of smoke.
15295if test "X${COLLECT_NAMES+set}" != Xset; then
15296  COLLECT_NAMES=
15297  export COLLECT_NAMES
15298fi
15299_LT_EOF
15300    ;;
15301  esac
15302
15303
15304ltmain="$ac_aux_dir/ltmain.sh"
15305
15306
15307  # We use sed instead of cat because bash on DJGPP gets confused if
15308  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15309  # text mode, it properly converts lines to CR/LF.  This bash problem
15310  # is reportedly fixed, but why not run on old versions too?
15311  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15312    || (rm -f "$cfgfile"; exit 1)
15313
15314  case $xsi_shell in
15315  yes)
15316    cat << \_LT_EOF >> "$cfgfile"
15317
15318# func_dirname file append nondir_replacement
15319# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15320# otherwise set result to NONDIR_REPLACEMENT.
15321func_dirname ()
15322{
15323  case ${1} in
15324    */*) func_dirname_result="${1%/*}${2}" ;;
15325    *  ) func_dirname_result="${3}" ;;
15326  esac
15327}
15328
15329# func_basename file
15330func_basename ()
15331{
15332  func_basename_result="${1##*/}"
15333}
15334
15335# func_dirname_and_basename file append nondir_replacement
15336# perform func_basename and func_dirname in a single function
15337# call:
15338#   dirname:  Compute the dirname of FILE.  If nonempty,
15339#             add APPEND to the result, otherwise set result
15340#             to NONDIR_REPLACEMENT.
15341#             value returned in "$func_dirname_result"
15342#   basename: Compute filename of FILE.
15343#             value retuned in "$func_basename_result"
15344# Implementation must be kept synchronized with func_dirname
15345# and func_basename. For efficiency, we do not delegate to
15346# those functions but instead duplicate the functionality here.
15347func_dirname_and_basename ()
15348{
15349  case ${1} in
15350    */*) func_dirname_result="${1%/*}${2}" ;;
15351    *  ) func_dirname_result="${3}" ;;
15352  esac
15353  func_basename_result="${1##*/}"
15354}
15355
15356# func_stripname prefix suffix name
15357# strip PREFIX and SUFFIX off of NAME.
15358# PREFIX and SUFFIX must not contain globbing or regex special
15359# characters, hashes, percent signs, but SUFFIX may contain a leading
15360# dot (in which case that matches only a dot).
15361func_stripname ()
15362{
15363  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15364  # positional parameters, so assign one to ordinary parameter first.
15365  func_stripname_result=${3}
15366  func_stripname_result=${func_stripname_result#"${1}"}
15367  func_stripname_result=${func_stripname_result%"${2}"}
15368}
15369
15370# func_opt_split
15371func_opt_split ()
15372{
15373  func_opt_split_opt=${1%%=*}
15374  func_opt_split_arg=${1#*=}
15375}
15376
15377# func_lo2o object
15378func_lo2o ()
15379{
15380  case ${1} in
15381    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15382    *)    func_lo2o_result=${1} ;;
15383  esac
15384}
15385
15386# func_xform libobj-or-source
15387func_xform ()
15388{
15389  func_xform_result=${1%.*}.lo
15390}
15391
15392# func_arith arithmetic-term...
15393func_arith ()
15394{
15395  func_arith_result=$(( $* ))
15396}
15397
15398# func_len string
15399# STRING may not start with a hyphen.
15400func_len ()
15401{
15402  func_len_result=${#1}
15403}
15404
15405_LT_EOF
15406    ;;
15407  *) # Bourne compatible functions.
15408    cat << \_LT_EOF >> "$cfgfile"
15409
15410# func_dirname file append nondir_replacement
15411# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15412# otherwise set result to NONDIR_REPLACEMENT.
15413func_dirname ()
15414{
15415  # Extract subdirectory from the argument.
15416  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15417  if test "X$func_dirname_result" = "X${1}"; then
15418    func_dirname_result="${3}"
15419  else
15420    func_dirname_result="$func_dirname_result${2}"
15421  fi
15422}
15423
15424# func_basename file
15425func_basename ()
15426{
15427  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15428}
15429
15430
15431# func_stripname prefix suffix name
15432# strip PREFIX and SUFFIX off of NAME.
15433# PREFIX and SUFFIX must not contain globbing or regex special
15434# characters, hashes, percent signs, but SUFFIX may contain a leading
15435# dot (in which case that matches only a dot).
15436# func_strip_suffix prefix name
15437func_stripname ()
15438{
15439  case ${2} in
15440    .*) func_stripname_result=`$ECHO "X${3}" \
15441           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15442    *)  func_stripname_result=`$ECHO "X${3}" \
15443           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15444  esac
15445}
15446
15447# sed scripts:
15448my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15449my_sed_long_arg='1s/^-[^=]*=//'
15450
15451# func_opt_split
15452func_opt_split ()
15453{
15454  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15455  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15456}
15457
15458# func_lo2o object
15459func_lo2o ()
15460{
15461  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15462}
15463
15464# func_xform libobj-or-source
15465func_xform ()
15466{
15467  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15468}
15469
15470# func_arith arithmetic-term...
15471func_arith ()
15472{
15473  func_arith_result=`expr "$@"`
15474}
15475
15476# func_len string
15477# STRING may not start with a hyphen.
15478func_len ()
15479{
15480  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15481}
15482
15483_LT_EOF
15484esac
15485
15486case $lt_shell_append in
15487  yes)
15488    cat << \_LT_EOF >> "$cfgfile"
15489
15490# func_append var value
15491# Append VALUE to the end of shell variable VAR.
15492func_append ()
15493{
15494  eval "$1+=\$2"
15495}
15496_LT_EOF
15497    ;;
15498  *)
15499    cat << \_LT_EOF >> "$cfgfile"
15500
15501# func_append var value
15502# Append VALUE to the end of shell variable VAR.
15503func_append ()
15504{
15505  eval "$1=\$$1\$2"
15506}
15507
15508_LT_EOF
15509    ;;
15510  esac
15511
15512
15513  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15514    || (rm -f "$cfgfile"; exit 1)
15515
15516  mv -f "$cfgfile" "$ofile" ||
15517    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15518  chmod +x "$ofile"
15519
15520 ;;
15521
15522  esac
15523done # for ac_tag
15524
15525
15526as_fn_exit 0
15527_ACEOF
15528ac_clean_files=$ac_clean_files_save
15529
15530test $ac_write_fail = 0 ||
15531  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15532
15533
15534# configure is writing to config.log, and then calls config.status.
15535# config.status does its own redirection, appending to config.log.
15536# Unfortunately, on DOS this fails, as config.log is still kept open
15537# by configure, so config.status won't be able to write to it; its
15538# output is simply discarded.  So we exec the FD to /dev/null,
15539# effectively closing config.log, so it can be properly (re)opened and
15540# appended to by config.status.  When coming back to configure, we
15541# need to make the FD available again.
15542if test "$no_create" != yes; then
15543  ac_cs_success=:
15544  ac_config_status_args=
15545  test "$silent" = yes &&
15546    ac_config_status_args="$ac_config_status_args --quiet"
15547  exec 5>/dev/null
15548  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15549  exec 5>>config.log
15550  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15551  # would make configure fail if this is the last instruction.
15552  $ac_cs_success || as_fn_exit 1
15553fi
15554if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15555  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15556$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15557fi
15558
15559
15560
15561echo ""
15562echo "  Package: ${PACKAGE_NAME} ${PACKAGE_VERSION}"
15563echo ""
15564echo "  Configuration"
15565echo "    XDM support.........: ${have_xdmcp}"
15566echo "    Build unit tests....: ${HAVE_CHECK}"
15567echo "    XCB buffer size.....: ${xcb_queue_buffer_size}"
15568echo ""
15569echo "  X11 extensions"
15570echo "    Composite...........: ${BUILD_COMPOSITE}"
15571echo "    Damage..............: ${BUILD_DAMAGE}"
15572echo "    Dpms................: ${BUILD_DPMS}"
15573echo "    Dri2................: ${BUILD_DRI2}"
15574echo "    Glx.................: ${BUILD_GLX}"
15575echo "    Randr...............: ${BUILD_RANDR}"
15576echo "    Record..............: ${BUILD_RECORD}"
15577echo "    Render..............: ${BUILD_RENDER}"
15578echo "    Resource............: ${BUILD_RESOURCE}"
15579echo "    Screensaver.........: ${BUILD_SCREENSAVER}"
15580echo "    selinux.............: ${BUILD_SELINUX}"
15581echo "    Shape...............: ${BUILD_SHAPE}"
15582echo "    Shm.................: ${BUILD_SHM}"
15583echo "    Sync................: ${BUILD_SYNC}"
15584echo "    Xevie...............: ${BUILD_XEVIE}"
15585echo "    Xfixes..............: ${BUILD_XFIXES}"
15586echo "    Xfree86-dri.........: ${BUILD_XFREE86_DRI}"
15587echo "    xinerama............: ${BUILD_XINERAMA}"
15588echo "    xinput..............: ${BUILD_XINPUT}"
15589echo "    xprint..............: ${BUILD_XPRINT}"
15590echo "    xtest...............: ${BUILD_XTEST}"
15591echo "    xv..................: ${BUILD_XV}"
15592echo "    xvmc................: ${BUILD_XVMC}"
15593echo ""
15594echo "  Used CFLAGS:"
15595echo "    CPPFLAGS............: ${CPPFLAGS}"
15596echo "    CFLAGS..............: ${CFLAGS}"
15597echo "    Warning CFLAGS......: ${CWARNFLAGS}"
15598echo ""
15599echo "  Installation:"
15600echo "    Prefix..............: ${prefix}"
15601echo ""
15602