1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for box 0.4.0.
4#
5# Report bugs to <fnch@libero.it>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182    PATH=/empty FPATH=/empty; export PATH FPATH
183    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185test \$(( 1 + 1 )) = 2 || exit 1"
186  if (eval "$as_required") 2>/dev/null; then :
187  as_have_required=yes
188else
189  as_have_required=no
190fi
191  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193else
194  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195as_found=false
196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197do
198  IFS=$as_save_IFS
199  test -z "$as_dir" && as_dir=.
200  as_found=:
201  case $as_dir in #(
202	 /*)
203	   for as_base in sh bash ksh sh5; do
204	     # Try only shells that exist, to save several forks.
205	     as_shell=$as_dir/$as_base
206	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208  CONFIG_SHELL=$as_shell as_have_required=yes
209		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210  break 2
211fi
212fi
213	   done;;
214       esac
215  as_found=false
216done
217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219  CONFIG_SHELL=$SHELL as_have_required=yes
220fi; }
221IFS=$as_save_IFS
222
223
224      if test "x$CONFIG_SHELL" != x; then :
225  # We cannot yet assume a decent shell, so we have to provide a
226	# neutralization value for shells without unset; and this also
227	# works around shells that cannot unset nonexistent variables.
228	# Preserve -v and -x to the replacement shell.
229	BASH_ENV=/dev/null
230	ENV=/dev/null
231	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232	export CONFIG_SHELL
233	case $- in # ((((
234	  *v*x* | *x*v* ) as_opts=-vx ;;
235	  *v* ) as_opts=-v ;;
236	  *x* ) as_opts=-x ;;
237	  * ) as_opts= ;;
238	esac
239	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240fi
241
242    if test x$as_have_required = xno; then :
243  $as_echo "$0: This script requires a shell more modern than all"
244  $as_echo "$0: the shells that I found on your system."
245  if test x${ZSH_VERSION+set} = xset ; then
246    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248  else
249    $as_echo "$0: Please tell bug-autoconf@gnu.org and fnch@libero.it
250$0: about your system, including any error possibly output
251$0: before this message. Then install a modern shell, or
252$0: manually run the script under such a shell if you do
253$0: have one."
254  fi
255  exit 1
256fi
257fi
258fi
259SHELL=${CONFIG_SHELL-/bin/sh}
260export SHELL
261# Unset more variables known to interfere with behavior of common tools.
262CLICOLOR_FORCE= GREP_OPTIONS=
263unset CLICOLOR_FORCE GREP_OPTIONS
264
265## --------------------- ##
266## M4sh Shell Functions. ##
267## --------------------- ##
268# as_fn_unset VAR
269# ---------------
270# Portably unset VAR.
271as_fn_unset ()
272{
273  { eval $1=; unset $1;}
274}
275as_unset=as_fn_unset
276
277# as_fn_set_status STATUS
278# -----------------------
279# Set $? to STATUS, without forking.
280as_fn_set_status ()
281{
282  return $1
283} # as_fn_set_status
284
285# as_fn_exit STATUS
286# -----------------
287# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288as_fn_exit ()
289{
290  set +e
291  as_fn_set_status $1
292  exit $1
293} # as_fn_exit
294
295# as_fn_mkdir_p
296# -------------
297# Create "$as_dir" as a directory, including parents if necessary.
298as_fn_mkdir_p ()
299{
300
301  case $as_dir in #(
302  -*) as_dir=./$as_dir;;
303  esac
304  test -d "$as_dir" || eval $as_mkdir_p || {
305    as_dirs=
306    while :; do
307      case $as_dir in #(
308      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309      *) as_qdir=$as_dir;;
310      esac
311      as_dirs="'$as_qdir' $as_dirs"
312      as_dir=`$as_dirname -- "$as_dir" ||
313$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314	 X"$as_dir" : 'X\(//\)[^/]' \| \
315	 X"$as_dir" : 'X\(//\)$' \| \
316	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317$as_echo X"$as_dir" |
318    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319	    s//\1/
320	    q
321	  }
322	  /^X\(\/\/\)[^/].*/{
323	    s//\1/
324	    q
325	  }
326	  /^X\(\/\/\)$/{
327	    s//\1/
328	    q
329	  }
330	  /^X\(\/\).*/{
331	    s//\1/
332	    q
333	  }
334	  s/.*/./; q'`
335      test -d "$as_dir" && break
336    done
337    test -z "$as_dirs" || eval "mkdir $as_dirs"
338  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341} # as_fn_mkdir_p
342# as_fn_append VAR VALUE
343# ----------------------
344# Append the text in VALUE to the end of the definition contained in VAR. Take
345# advantage of any shell optimizations that allow amortized linear growth over
346# repeated appends, instead of the typical quadratic growth present in naive
347# implementations.
348if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349  eval 'as_fn_append ()
350  {
351    eval $1+=\$2
352  }'
353else
354  as_fn_append ()
355  {
356    eval $1=\$$1\$2
357  }
358fi # as_fn_append
359
360# as_fn_arith ARG...
361# ------------------
362# Perform arithmetic evaluation on the ARGs, and store the result in the
363# global $as_val. Take advantage of shells that can avoid forks. The arguments
364# must be portable across $(()) and expr.
365if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366  eval 'as_fn_arith ()
367  {
368    as_val=$(( $* ))
369  }'
370else
371  as_fn_arith ()
372  {
373    as_val=`expr "$@" || test $? -eq 1`
374  }
375fi # as_fn_arith
376
377
378# as_fn_error STATUS ERROR [LINENO LOG_FD]
379# ----------------------------------------
380# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382# script with STATUS, using 1 if that was 0.
383as_fn_error ()
384{
385  as_status=$1; test $as_status -eq 0 && as_status=1
386  if test "$4"; then
387    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389  fi
390  $as_echo "$as_me: error: $2" >&2
391  as_fn_exit $as_status
392} # as_fn_error
393
394if expr a : '\(a\)' >/dev/null 2>&1 &&
395   test "X`expr 00001 : '.*\(...\)'`" = X001; then
396  as_expr=expr
397else
398  as_expr=false
399fi
400
401if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402  as_basename=basename
403else
404  as_basename=false
405fi
406
407if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408  as_dirname=dirname
409else
410  as_dirname=false
411fi
412
413as_me=`$as_basename -- "$0" ||
414$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415	 X"$0" : 'X\(//\)$' \| \
416	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417$as_echo X/"$0" |
418    sed '/^.*\/\([^/][^/]*\)\/*$/{
419	    s//\1/
420	    q
421	  }
422	  /^X\/\(\/\/\)$/{
423	    s//\1/
424	    q
425	  }
426	  /^X\/\(\/\).*/{
427	    s//\1/
428	    q
429	  }
430	  s/.*/./; q'`
431
432# Avoid depending upon Character Ranges.
433as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436as_cr_digits='0123456789'
437as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440  as_lineno_1=$LINENO as_lineno_1a=$LINENO
441  as_lineno_2=$LINENO as_lineno_2a=$LINENO
442  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
445  sed -n '
446    p
447    /[$]LINENO/=
448  ' <$as_myself |
449    sed '
450      s/[$]LINENO.*/&-/
451      t lineno
452      b
453      :lineno
454      N
455      :loop
456      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457      t loop
458      s/-\n.*//
459    ' >$as_me.lineno &&
460  chmod +x "$as_me.lineno" ||
461    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463  # Don't try to exec as it changes $[0], causing all sort of problems
464  # (the dirname of $[0] is not the place where we might find the
465  # original and so on.  Autoconf is especially sensitive to this).
466  . "./$as_me.lineno"
467  # Exit status is that of the last command.
468  exit
469}
470
471ECHO_C= ECHO_N= ECHO_T=
472case `echo -n x` in #(((((
473-n*)
474  case `echo 'xy\c'` in
475  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
476  xy)  ECHO_C='\c';;
477  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
478       ECHO_T='	';;
479  esac;;
480*)
481  ECHO_N='-n';;
482esac
483
484rm -f conf$$ conf$$.exe conf$$.file
485if test -d conf$$.dir; then
486  rm -f conf$$.dir/conf$$.file
487else
488  rm -f conf$$.dir
489  mkdir conf$$.dir 2>/dev/null
490fi
491if (echo >conf$$.file) 2>/dev/null; then
492  if ln -s conf$$.file conf$$ 2>/dev/null; then
493    as_ln_s='ln -s'
494    # ... but there are two gotchas:
495    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497    # In both cases, we have to default to `cp -p'.
498    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499      as_ln_s='cp -p'
500  elif ln conf$$.file conf$$ 2>/dev/null; then
501    as_ln_s=ln
502  else
503    as_ln_s='cp -p'
504  fi
505else
506  as_ln_s='cp -p'
507fi
508rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509rmdir conf$$.dir 2>/dev/null
510
511if mkdir -p . 2>/dev/null; then
512  as_mkdir_p='mkdir -p "$as_dir"'
513else
514  test -d ./-p && rmdir ./-p
515  as_mkdir_p=false
516fi
517
518if test -x / >/dev/null 2>&1; then
519  as_test_x='test -x'
520else
521  if ls -dL / >/dev/null 2>&1; then
522    as_ls_L_option=L
523  else
524    as_ls_L_option=
525  fi
526  as_test_x='
527    eval sh -c '\''
528      if test -d "$1"; then
529	test -d "$1/.";
530      else
531	case $1 in #(
532	-*)set "./$1";;
533	esac;
534	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535	???[sx]*):;;*)false;;esac;fi
536    '\'' sh
537  '
538fi
539as_executable_p=$as_test_x
540
541# Sed expression to map a string onto a valid CPP name.
542as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544# Sed expression to map a string onto a valid variable name.
545as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547lt_ltdl_dir='libltdl'
548
549SHELL=${CONFIG_SHELL-/bin/sh}
550
551lt_dlopen_dir="$lt_ltdl_dir"
552
553
554test -n "$DJDIR" || exec 7<&0 </dev/null
555exec 6>&1
556
557# Name of the host.
558# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
559# so uname gets run too.
560ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561
562#
563# Initializations.
564#
565ac_default_prefix=/usr/local
566ac_clean_files=
567ac_config_libobj_dir=.
568LIBOBJS=
569cross_compiling=no
570subdirs=
571MFLAGS=
572MAKEFLAGS=
573
574# Identity of this package.
575PACKAGE_NAME='box'
576PACKAGE_TARNAME='box'
577PACKAGE_VERSION='0.4.0'
578PACKAGE_STRING='box 0.4.0'
579PACKAGE_BUGREPORT='fnch@libero.it'
580PACKAGE_URL=''
581
582ac_unique_file="box/main.c"
583# Factoring default headers for most tests.
584ac_includes_default="\
585#include <stdio.h>
586#ifdef HAVE_SYS_TYPES_H
587# include <sys/types.h>
588#endif
589#ifdef HAVE_SYS_STAT_H
590# include <sys/stat.h>
591#endif
592#ifdef STDC_HEADERS
593# include <stdlib.h>
594# include <stddef.h>
595#else
596# ifdef HAVE_STDLIB_H
597#  include <stdlib.h>
598# endif
599#endif
600#ifdef HAVE_STRING_H
601# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602#  include <memory.h>
603# endif
604# include <string.h>
605#endif
606#ifdef HAVE_STRINGS_H
607# include <strings.h>
608#endif
609#ifdef HAVE_INTTYPES_H
610# include <inttypes.h>
611#endif
612#ifdef HAVE_STDINT_H
613# include <stdint.h>
614#endif
615#ifdef HAVE_UNISTD_H
616# include <unistd.h>
617#endif"
618
619enable_option_checking=no
620ac_subst_vars='ltdl_LTLIBOBJS
621ltdl_LIBOBJS
622am__EXEEXT_FALSE
623am__EXEEXT_TRUE
624LTLIBOBJS
625BOX_VER_MAINT
626BOX_VER_MINOR
627BOX_VER_MAJOR
628boxpkgdir
629boxincdir
630boxlibdir
631BUILD_WINCAIRO_FALSE
632BUILD_WINCAIRO_TRUE
633CAIRO_LIBS
634CAIRO_CFLAGS
635PKG_CONFIG_LIBDIR
636PKG_CONFIG_PATH
637PKG_CONFIG
638LIBOBJS
639YFLAGS
640YACC
641LEXLIB
642LEX_OUTPUT_ROOT
643LEX
644LTDLOPEN
645LT_CONFIG_H
646subdirs
647CONVENIENCE_LTDL_FALSE
648CONVENIENCE_LTDL_TRUE
649INSTALL_LTDL_FALSE
650INSTALL_LTDL_TRUE
651ARGZ_H
652sys_symbol_underscore
653LIBADD_DL
654LT_DLPREOPEN
655LIBADD_DLD_LINK
656LIBADD_SHL_LOAD
657LIBADD_DLOPEN
658LT_DLLOADERS
659INCLTDL
660LTDLINCL
661LTDLDEPS
662LIBLTDL
663CPP
664OTOOL64
665OTOOL
666LIPO
667NMEDIT
668DSYMUTIL
669MANIFEST_TOOL
670RANLIB
671ac_ct_AR
672AR
673DLLTOOL
674OBJDUMP
675LN_S
676NM
677ac_ct_DUMPBIN
678DUMPBIN
679LD
680FGREP
681EGREP
682GREP
683SED
684am__fastdepCC_FALSE
685am__fastdepCC_TRUE
686CCDEPMODE
687am__nodep
688AMDEPBACKSLASH
689AMDEP_FALSE
690AMDEP_TRUE
691am__quote
692am__include
693DEPDIR
694OBJEXT
695EXEEXT
696ac_ct_CC
697CPPFLAGS
698LDFLAGS
699CFLAGS
700CC
701host_os
702host_vendor
703host_cpu
704host
705build_os
706build_vendor
707build_cpu
708build
709LIBTOOL
710am__untar
711am__tar
712AMTAR
713am__leading_dot
714SET_MAKE
715AWK
716mkdir_p
717MKDIR_P
718INSTALL_STRIP_PROGRAM
719STRIP
720install_sh
721MAKEINFO
722AUTOHEADER
723AUTOMAKE
724AUTOCONF
725ACLOCAL
726VERSION
727PACKAGE
728CYGPATH_W
729am__isrc
730INSTALL_DATA
731INSTALL_SCRIPT
732INSTALL_PROGRAM
733target_alias
734host_alias
735build_alias
736LIBS
737ECHO_T
738ECHO_N
739ECHO_C
740DEFS
741mandir
742localedir
743libdir
744psdir
745pdfdir
746dvidir
747htmldir
748infodir
749docdir
750oldincludedir
751includedir
752localstatedir
753sharedstatedir
754sysconfdir
755datadir
756datarootdir
757libexecdir
758sbindir
759bindir
760program_transform_name
761prefix
762exec_prefix
763PACKAGE_URL
764PACKAGE_BUGREPORT
765PACKAGE_STRING
766PACKAGE_VERSION
767PACKAGE_TARNAME
768PACKAGE_NAME
769PATH_SEPARATOR
770SHELL'
771ac_subst_files=''
772ac_user_opts='
773enable_option_checking
774enable_shared
775enable_static
776with_pic
777enable_fast_install
778enable_dependency_tracking
779with_gnu_ld
780with_sysroot
781enable_libtool_lock
782with_included_ltdl
783with_ltdl_include
784with_ltdl_lib
785enable_ltdl_install
786with_cairo
787'
788      ac_precious_vars='build_alias
789host_alias
790target_alias
791CC
792CFLAGS
793LDFLAGS
794LIBS
795CPPFLAGS
796CPP
797YACC
798YFLAGS
799PKG_CONFIG
800PKG_CONFIG_PATH
801PKG_CONFIG_LIBDIR
802CAIRO_CFLAGS
803CAIRO_LIBS'
804ac_subdirs_all='libltdl'
805
806# Initialize some variables set by options.
807ac_init_help=
808ac_init_version=false
809ac_unrecognized_opts=
810ac_unrecognized_sep=
811# The variables have the same names as the options, with
812# dashes changed to underlines.
813cache_file=/dev/null
814exec_prefix=NONE
815no_create=
816no_recursion=
817prefix=NONE
818program_prefix=NONE
819program_suffix=NONE
820program_transform_name=s,x,x,
821silent=
822site=
823srcdir=
824verbose=
825x_includes=NONE
826x_libraries=NONE
827
828# Installation directory options.
829# These are left unexpanded so users can "make install exec_prefix=/foo"
830# and all the variables that are supposed to be based on exec_prefix
831# by default will actually change.
832# Use braces instead of parens because sh, perl, etc. also accept them.
833# (The list follows the same order as the GNU Coding Standards.)
834bindir='${exec_prefix}/bin'
835sbindir='${exec_prefix}/sbin'
836libexecdir='${exec_prefix}/libexec'
837datarootdir='${prefix}/share'
838datadir='${datarootdir}'
839sysconfdir='${prefix}/etc'
840sharedstatedir='${prefix}/com'
841localstatedir='${prefix}/var'
842includedir='${prefix}/include'
843oldincludedir='/usr/include'
844docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
845infodir='${datarootdir}/info'
846htmldir='${docdir}'
847dvidir='${docdir}'
848pdfdir='${docdir}'
849psdir='${docdir}'
850libdir='${exec_prefix}/lib'
851localedir='${datarootdir}/locale'
852mandir='${datarootdir}/man'
853
854ac_prev=
855ac_dashdash=
856for ac_option
857do
858  # If the previous option needs an argument, assign it.
859  if test -n "$ac_prev"; then
860    eval $ac_prev=\$ac_option
861    ac_prev=
862    continue
863  fi
864
865  case $ac_option in
866  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
867  *=)   ac_optarg= ;;
868  *)    ac_optarg=yes ;;
869  esac
870
871  # Accept the important Cygnus configure options, so we can diagnose typos.
872
873  case $ac_dashdash$ac_option in
874  --)
875    ac_dashdash=yes ;;
876
877  -bindir | --bindir | --bindi | --bind | --bin | --bi)
878    ac_prev=bindir ;;
879  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
880    bindir=$ac_optarg ;;
881
882  -build | --build | --buil | --bui | --bu)
883    ac_prev=build_alias ;;
884  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
885    build_alias=$ac_optarg ;;
886
887  -cache-file | --cache-file | --cache-fil | --cache-fi \
888  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
889    ac_prev=cache_file ;;
890  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
891  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
892    cache_file=$ac_optarg ;;
893
894  --config-cache | -C)
895    cache_file=config.cache ;;
896
897  -datadir | --datadir | --datadi | --datad)
898    ac_prev=datadir ;;
899  -datadir=* | --datadir=* | --datadi=* | --datad=*)
900    datadir=$ac_optarg ;;
901
902  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
903  | --dataroo | --dataro | --datar)
904    ac_prev=datarootdir ;;
905  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
906  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
907    datarootdir=$ac_optarg ;;
908
909  -disable-* | --disable-*)
910    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
911    # Reject names that are not valid shell variable names.
912    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
913      as_fn_error $? "invalid feature name: $ac_useropt"
914    ac_useropt_orig=$ac_useropt
915    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916    case $ac_user_opts in
917      *"
918"enable_$ac_useropt"
919"*) ;;
920      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
921	 ac_unrecognized_sep=', ';;
922    esac
923    eval enable_$ac_useropt=no ;;
924
925  -docdir | --docdir | --docdi | --doc | --do)
926    ac_prev=docdir ;;
927  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
928    docdir=$ac_optarg ;;
929
930  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
931    ac_prev=dvidir ;;
932  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
933    dvidir=$ac_optarg ;;
934
935  -enable-* | --enable-*)
936    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
937    # Reject names that are not valid shell variable names.
938    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939      as_fn_error $? "invalid feature name: $ac_useropt"
940    ac_useropt_orig=$ac_useropt
941    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
942    case $ac_user_opts in
943      *"
944"enable_$ac_useropt"
945"*) ;;
946      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
947	 ac_unrecognized_sep=', ';;
948    esac
949    eval enable_$ac_useropt=\$ac_optarg ;;
950
951  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
952  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
953  | --exec | --exe | --ex)
954    ac_prev=exec_prefix ;;
955  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
956  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
957  | --exec=* | --exe=* | --ex=*)
958    exec_prefix=$ac_optarg ;;
959
960  -gas | --gas | --ga | --g)
961    # Obsolete; use --with-gas.
962    with_gas=yes ;;
963
964  -help | --help | --hel | --he | -h)
965    ac_init_help=long ;;
966  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
967    ac_init_help=recursive ;;
968  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
969    ac_init_help=short ;;
970
971  -host | --host | --hos | --ho)
972    ac_prev=host_alias ;;
973  -host=* | --host=* | --hos=* | --ho=*)
974    host_alias=$ac_optarg ;;
975
976  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
977    ac_prev=htmldir ;;
978  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
979  | --ht=*)
980    htmldir=$ac_optarg ;;
981
982  -includedir | --includedir | --includedi | --included | --include \
983  | --includ | --inclu | --incl | --inc)
984    ac_prev=includedir ;;
985  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
986  | --includ=* | --inclu=* | --incl=* | --inc=*)
987    includedir=$ac_optarg ;;
988
989  -infodir | --infodir | --infodi | --infod | --info | --inf)
990    ac_prev=infodir ;;
991  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
992    infodir=$ac_optarg ;;
993
994  -libdir | --libdir | --libdi | --libd)
995    ac_prev=libdir ;;
996  -libdir=* | --libdir=* | --libdi=* | --libd=*)
997    libdir=$ac_optarg ;;
998
999  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1000  | --libexe | --libex | --libe)
1001    ac_prev=libexecdir ;;
1002  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1003  | --libexe=* | --libex=* | --libe=*)
1004    libexecdir=$ac_optarg ;;
1005
1006  -localedir | --localedir | --localedi | --localed | --locale)
1007    ac_prev=localedir ;;
1008  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1009    localedir=$ac_optarg ;;
1010
1011  -localstatedir | --localstatedir | --localstatedi | --localstated \
1012  | --localstate | --localstat | --localsta | --localst | --locals)
1013    ac_prev=localstatedir ;;
1014  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1015  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1016    localstatedir=$ac_optarg ;;
1017
1018  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1019    ac_prev=mandir ;;
1020  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1021    mandir=$ac_optarg ;;
1022
1023  -nfp | --nfp | --nf)
1024    # Obsolete; use --without-fp.
1025    with_fp=no ;;
1026
1027  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028  | --no-cr | --no-c | -n)
1029    no_create=yes ;;
1030
1031  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033    no_recursion=yes ;;
1034
1035  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1036  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1037  | --oldin | --oldi | --old | --ol | --o)
1038    ac_prev=oldincludedir ;;
1039  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1040  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1041  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1042    oldincludedir=$ac_optarg ;;
1043
1044  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1045    ac_prev=prefix ;;
1046  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1047    prefix=$ac_optarg ;;
1048
1049  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1050  | --program-pre | --program-pr | --program-p)
1051    ac_prev=program_prefix ;;
1052  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1053  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1054    program_prefix=$ac_optarg ;;
1055
1056  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1057  | --program-suf | --program-su | --program-s)
1058    ac_prev=program_suffix ;;
1059  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1060  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1061    program_suffix=$ac_optarg ;;
1062
1063  -program-transform-name | --program-transform-name \
1064  | --program-transform-nam | --program-transform-na \
1065  | --program-transform-n | --program-transform- \
1066  | --program-transform | --program-transfor \
1067  | --program-transfo | --program-transf \
1068  | --program-trans | --program-tran \
1069  | --progr-tra | --program-tr | --program-t)
1070    ac_prev=program_transform_name ;;
1071  -program-transform-name=* | --program-transform-name=* \
1072  | --program-transform-nam=* | --program-transform-na=* \
1073  | --program-transform-n=* | --program-transform-=* \
1074  | --program-transform=* | --program-transfor=* \
1075  | --program-transfo=* | --program-transf=* \
1076  | --program-trans=* | --program-tran=* \
1077  | --progr-tra=* | --program-tr=* | --program-t=*)
1078    program_transform_name=$ac_optarg ;;
1079
1080  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1081    ac_prev=pdfdir ;;
1082  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1083    pdfdir=$ac_optarg ;;
1084
1085  -psdir | --psdir | --psdi | --psd | --ps)
1086    ac_prev=psdir ;;
1087  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1088    psdir=$ac_optarg ;;
1089
1090  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091  | -silent | --silent | --silen | --sile | --sil)
1092    silent=yes ;;
1093
1094  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1095    ac_prev=sbindir ;;
1096  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1097  | --sbi=* | --sb=*)
1098    sbindir=$ac_optarg ;;
1099
1100  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1101  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1102  | --sharedst | --shareds | --shared | --share | --shar \
1103  | --sha | --sh)
1104    ac_prev=sharedstatedir ;;
1105  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1106  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1107  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1108  | --sha=* | --sh=*)
1109    sharedstatedir=$ac_optarg ;;
1110
1111  -site | --site | --sit)
1112    ac_prev=site ;;
1113  -site=* | --site=* | --sit=*)
1114    site=$ac_optarg ;;
1115
1116  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1117    ac_prev=srcdir ;;
1118  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1119    srcdir=$ac_optarg ;;
1120
1121  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1122  | --syscon | --sysco | --sysc | --sys | --sy)
1123    ac_prev=sysconfdir ;;
1124  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1125  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1126    sysconfdir=$ac_optarg ;;
1127
1128  -target | --target | --targe | --targ | --tar | --ta | --t)
1129    ac_prev=target_alias ;;
1130  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1131    target_alias=$ac_optarg ;;
1132
1133  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1134    verbose=yes ;;
1135
1136  -version | --version | --versio | --versi | --vers | -V)
1137    ac_init_version=: ;;
1138
1139  -with-* | --with-*)
1140    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1141    # Reject names that are not valid shell variable names.
1142    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143      as_fn_error $? "invalid package name: $ac_useropt"
1144    ac_useropt_orig=$ac_useropt
1145    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146    case $ac_user_opts in
1147      *"
1148"with_$ac_useropt"
1149"*) ;;
1150      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1151	 ac_unrecognized_sep=', ';;
1152    esac
1153    eval with_$ac_useropt=\$ac_optarg ;;
1154
1155  -without-* | --without-*)
1156    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1157    # Reject names that are not valid shell variable names.
1158    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159      as_fn_error $? "invalid package name: $ac_useropt"
1160    ac_useropt_orig=$ac_useropt
1161    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162    case $ac_user_opts in
1163      *"
1164"with_$ac_useropt"
1165"*) ;;
1166      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1167	 ac_unrecognized_sep=', ';;
1168    esac
1169    eval with_$ac_useropt=no ;;
1170
1171  --x)
1172    # Obsolete; use --with-x.
1173    with_x=yes ;;
1174
1175  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1176  | --x-incl | --x-inc | --x-in | --x-i)
1177    ac_prev=x_includes ;;
1178  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1179  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1180    x_includes=$ac_optarg ;;
1181
1182  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1183  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1184    ac_prev=x_libraries ;;
1185  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1186  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1187    x_libraries=$ac_optarg ;;
1188
1189  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1190Try \`$0 --help' for more information"
1191    ;;
1192
1193  *=*)
1194    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1195    # Reject names that are not valid shell variable names.
1196    case $ac_envvar in #(
1197      '' | [0-9]* | *[!_$as_cr_alnum]* )
1198      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1199    esac
1200    eval $ac_envvar=\$ac_optarg
1201    export $ac_envvar ;;
1202
1203  *)
1204    # FIXME: should be removed in autoconf 3.0.
1205    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1206    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1207      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1208    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1209    ;;
1210
1211  esac
1212done
1213
1214if test -n "$ac_prev"; then
1215  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1216  as_fn_error $? "missing argument to $ac_option"
1217fi
1218
1219if test -n "$ac_unrecognized_opts"; then
1220  case $enable_option_checking in
1221    no) ;;
1222    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1223    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1224  esac
1225fi
1226
1227# Check all directory arguments for consistency.
1228for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1229		datadir sysconfdir sharedstatedir localstatedir includedir \
1230		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1231		libdir localedir mandir
1232do
1233  eval ac_val=\$$ac_var
1234  # Remove trailing slashes.
1235  case $ac_val in
1236    */ )
1237      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1238      eval $ac_var=\$ac_val;;
1239  esac
1240  # Be sure to have absolute directory names.
1241  case $ac_val in
1242    [\\/$]* | ?:[\\/]* )  continue;;
1243    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1244  esac
1245  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1246done
1247
1248# There might be people who depend on the old broken behavior: `$host'
1249# used to hold the argument of --host etc.
1250# FIXME: To remove some day.
1251build=$build_alias
1252host=$host_alias
1253target=$target_alias
1254
1255# FIXME: To remove some day.
1256if test "x$host_alias" != x; then
1257  if test "x$build_alias" = x; then
1258    cross_compiling=maybe
1259    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1260    If a cross compiler is detected then cross compile mode will be used" >&2
1261  elif test "x$build_alias" != "x$host_alias"; then
1262    cross_compiling=yes
1263  fi
1264fi
1265
1266ac_tool_prefix=
1267test -n "$host_alias" && ac_tool_prefix=$host_alias-
1268
1269test "$silent" = yes && exec 6>/dev/null
1270
1271
1272ac_pwd=`pwd` && test -n "$ac_pwd" &&
1273ac_ls_di=`ls -di .` &&
1274ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1275  as_fn_error $? "working directory cannot be determined"
1276test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1277  as_fn_error $? "pwd does not report name of working directory"
1278
1279
1280# Find the source files, if location was not specified.
1281if test -z "$srcdir"; then
1282  ac_srcdir_defaulted=yes
1283  # Try the directory containing this script, then the parent directory.
1284  ac_confdir=`$as_dirname -- "$as_myself" ||
1285$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1286	 X"$as_myself" : 'X\(//\)[^/]' \| \
1287	 X"$as_myself" : 'X\(//\)$' \| \
1288	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1289$as_echo X"$as_myself" |
1290    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1291	    s//\1/
1292	    q
1293	  }
1294	  /^X\(\/\/\)[^/].*/{
1295	    s//\1/
1296	    q
1297	  }
1298	  /^X\(\/\/\)$/{
1299	    s//\1/
1300	    q
1301	  }
1302	  /^X\(\/\).*/{
1303	    s//\1/
1304	    q
1305	  }
1306	  s/.*/./; q'`
1307  srcdir=$ac_confdir
1308  if test ! -r "$srcdir/$ac_unique_file"; then
1309    srcdir=..
1310  fi
1311else
1312  ac_srcdir_defaulted=no
1313fi
1314if test ! -r "$srcdir/$ac_unique_file"; then
1315  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1316  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1317fi
1318ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1319ac_abs_confdir=`(
1320	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1321	pwd)`
1322# When building in place, set srcdir=.
1323if test "$ac_abs_confdir" = "$ac_pwd"; then
1324  srcdir=.
1325fi
1326# Remove unnecessary trailing slashes from srcdir.
1327# Double slashes in file names in object file debugging info
1328# mess up M-x gdb in Emacs.
1329case $srcdir in
1330*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1331esac
1332for ac_var in $ac_precious_vars; do
1333  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1334  eval ac_env_${ac_var}_value=\$${ac_var}
1335  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1336  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1337done
1338
1339#
1340# Report the --help message.
1341#
1342if test "$ac_init_help" = "long"; then
1343  # Omit some internal or obsolete options to make the list less imposing.
1344  # This message is too long to be a string in the A/UX 3.1 sh.
1345  cat <<_ACEOF
1346\`configure' configures box 0.4.0 to adapt to many kinds of systems.
1347
1348Usage: $0 [OPTION]... [VAR=VALUE]...
1349
1350To assign environment variables (e.g., CC, CFLAGS...), specify them as
1351VAR=VALUE.  See below for descriptions of some of the useful variables.
1352
1353Defaults for the options are specified in brackets.
1354
1355Configuration:
1356  -h, --help              display this help and exit
1357      --help=short        display options specific to this package
1358      --help=recursive    display the short help of all the included packages
1359  -V, --version           display version information and exit
1360  -q, --quiet, --silent   do not print \`checking ...' messages
1361      --cache-file=FILE   cache test results in FILE [disabled]
1362  -C, --config-cache      alias for \`--cache-file=config.cache'
1363  -n, --no-create         do not create output files
1364      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1365
1366Installation directories:
1367  --prefix=PREFIX         install architecture-independent files in PREFIX
1368                          [$ac_default_prefix]
1369  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1370                          [PREFIX]
1371
1372By default, \`make install' will install all the files in
1373\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1374an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1375for instance \`--prefix=\$HOME'.
1376
1377For better control, use the options below.
1378
1379Fine tuning of the installation directories:
1380  --bindir=DIR            user executables [EPREFIX/bin]
1381  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1382  --libexecdir=DIR        program executables [EPREFIX/libexec]
1383  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1384  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1385  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1386  --libdir=DIR            object code libraries [EPREFIX/lib]
1387  --includedir=DIR        C header files [PREFIX/include]
1388  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1389  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1390  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1391  --infodir=DIR           info documentation [DATAROOTDIR/info]
1392  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1393  --mandir=DIR            man documentation [DATAROOTDIR/man]
1394  --docdir=DIR            documentation root [DATAROOTDIR/doc/box]
1395  --htmldir=DIR           html documentation [DOCDIR]
1396  --dvidir=DIR            dvi documentation [DOCDIR]
1397  --pdfdir=DIR            pdf documentation [DOCDIR]
1398  --psdir=DIR             ps documentation [DOCDIR]
1399_ACEOF
1400
1401  cat <<\_ACEOF
1402
1403Program names:
1404  --program-prefix=PREFIX            prepend PREFIX to installed program names
1405  --program-suffix=SUFFIX            append SUFFIX to installed program names
1406  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1407
1408System types:
1409  --build=BUILD     configure for building on BUILD [guessed]
1410  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1411_ACEOF
1412fi
1413
1414if test -n "$ac_init_help"; then
1415  case $ac_init_help in
1416     short | recursive ) echo "Configuration of box 0.4.0:";;
1417   esac
1418  cat <<\_ACEOF
1419
1420Optional Features:
1421  --disable-option-checking  ignore unrecognized --enable/--with options
1422  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1423  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1424  --enable-shared[=PKGS]  build shared libraries [default=yes]
1425  --enable-static[=PKGS]  build static libraries [default=yes]
1426  --enable-fast-install[=PKGS]
1427                          optimize for fast installation [default=yes]
1428  --disable-dependency-tracking  speeds up one-time build
1429  --enable-dependency-tracking   do not reject slow dependency extractors
1430  --disable-libtool-lock  avoid locking (might break parallel builds)
1431  --enable-ltdl-install   install libltdl
1432
1433Optional Packages:
1434  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1435  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1436  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1437                          both]
1438  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1439  --with-sysroot=DIR Search for dependent libraries within DIR
1440                        (or the compiler's sysroot if not specified).
1441  --with-included-ltdl    use the GNU ltdl sources included here
1442  --with-ltdl-include=DIR use the ltdl headers installed in DIR
1443  --with-ltdl-lib=DIR     use the libltdl.la installed in DIR
1444  --with-cairo            use the cairo 2D graphic library [[default=yes]]
1445
1446Some influential environment variables:
1447  CC          C compiler command
1448  CFLAGS      C compiler flags
1449  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1450              nonstandard directory <lib dir>
1451  LIBS        libraries to pass to the linker, e.g. -l<library>
1452  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1453              you have headers in a nonstandard directory <include dir>
1454  CPP         C preprocessor
1455  YACC        The `Yet Another Compiler Compiler' implementation to use.
1456              Defaults to the first program found out of: `bison -y', `byacc',
1457              `yacc'.
1458  YFLAGS      The list of arguments that will be passed by default to $YACC.
1459              This script will default YFLAGS to the empty string to avoid a
1460              default value of `-d' given by some make applications.
1461  PKG_CONFIG  path to pkg-config utility
1462  PKG_CONFIG_PATH
1463              directories to add to pkg-config's search path
1464  PKG_CONFIG_LIBDIR
1465              path overriding pkg-config's built-in search path
1466  CAIRO_CFLAGS
1467              C compiler flags for CAIRO, overriding pkg-config
1468  CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1469
1470Use these variables to override the choices made by `configure' or to help
1471it to find libraries and programs with nonstandard names/locations.
1472
1473Report bugs to <fnch@libero.it>.
1474_ACEOF
1475ac_status=$?
1476fi
1477
1478if test "$ac_init_help" = "recursive"; then
1479  # If there are subdirs, report their specific --help.
1480  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1481    test -d "$ac_dir" ||
1482      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1483      continue
1484    ac_builddir=.
1485
1486case "$ac_dir" in
1487.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488*)
1489  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1490  # A ".." for each directory in $ac_dir_suffix.
1491  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1492  case $ac_top_builddir_sub in
1493  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1495  esac ;;
1496esac
1497ac_abs_top_builddir=$ac_pwd
1498ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499# for backward compatibility:
1500ac_top_builddir=$ac_top_build_prefix
1501
1502case $srcdir in
1503  .)  # We are building in place.
1504    ac_srcdir=.
1505    ac_top_srcdir=$ac_top_builddir_sub
1506    ac_abs_top_srcdir=$ac_pwd ;;
1507  [\\/]* | ?:[\\/]* )  # Absolute name.
1508    ac_srcdir=$srcdir$ac_dir_suffix;
1509    ac_top_srcdir=$srcdir
1510    ac_abs_top_srcdir=$srcdir ;;
1511  *) # Relative name.
1512    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513    ac_top_srcdir=$ac_top_build_prefix$srcdir
1514    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1515esac
1516ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1517
1518    cd "$ac_dir" || { ac_status=$?; continue; }
1519    # Check for guested configure.
1520    if test -f "$ac_srcdir/configure.gnu"; then
1521      echo &&
1522      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523    elif test -f "$ac_srcdir/configure"; then
1524      echo &&
1525      $SHELL "$ac_srcdir/configure" --help=recursive
1526    else
1527      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1528    fi || ac_status=$?
1529    cd "$ac_pwd" || { ac_status=$?; break; }
1530  done
1531fi
1532
1533test -n "$ac_init_help" && exit $ac_status
1534if $ac_init_version; then
1535  cat <<\_ACEOF
1536box configure 0.4.0
1537generated by GNU Autoconf 2.68
1538
1539Copyright (C) 2010 Free Software Foundation, Inc.
1540This configure script is free software; the Free Software Foundation
1541gives unlimited permission to copy, distribute and modify it.
1542_ACEOF
1543  exit
1544fi
1545
1546## ------------------------ ##
1547## Autoconf initialization. ##
1548## ------------------------ ##
1549
1550# ac_fn_c_try_compile LINENO
1551# --------------------------
1552# Try to compile conftest.$ac_ext, and return whether this succeeded.
1553ac_fn_c_try_compile ()
1554{
1555  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1556  rm -f conftest.$ac_objext
1557  if { { ac_try="$ac_compile"
1558case "(($ac_try" in
1559  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1560  *) ac_try_echo=$ac_try;;
1561esac
1562eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1563$as_echo "$ac_try_echo"; } >&5
1564  (eval "$ac_compile") 2>conftest.err
1565  ac_status=$?
1566  if test -s conftest.err; then
1567    grep -v '^ *+' conftest.err >conftest.er1
1568    cat conftest.er1 >&5
1569    mv -f conftest.er1 conftest.err
1570  fi
1571  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1572  test $ac_status = 0; } && {
1573	 test -z "$ac_c_werror_flag" ||
1574	 test ! -s conftest.err
1575       } && test -s conftest.$ac_objext; then :
1576  ac_retval=0
1577else
1578  $as_echo "$as_me: failed program was:" >&5
1579sed 's/^/| /' conftest.$ac_ext >&5
1580
1581	ac_retval=1
1582fi
1583  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1584  as_fn_set_status $ac_retval
1585
1586} # ac_fn_c_try_compile
1587
1588# ac_fn_c_try_link LINENO
1589# -----------------------
1590# Try to link conftest.$ac_ext, and return whether this succeeded.
1591ac_fn_c_try_link ()
1592{
1593  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1594  rm -f conftest.$ac_objext conftest$ac_exeext
1595  if { { ac_try="$ac_link"
1596case "(($ac_try" in
1597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1598  *) ac_try_echo=$ac_try;;
1599esac
1600eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1601$as_echo "$ac_try_echo"; } >&5
1602  (eval "$ac_link") 2>conftest.err
1603  ac_status=$?
1604  if test -s conftest.err; then
1605    grep -v '^ *+' conftest.err >conftest.er1
1606    cat conftest.er1 >&5
1607    mv -f conftest.er1 conftest.err
1608  fi
1609  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1610  test $ac_status = 0; } && {
1611	 test -z "$ac_c_werror_flag" ||
1612	 test ! -s conftest.err
1613       } && test -s conftest$ac_exeext && {
1614	 test "$cross_compiling" = yes ||
1615	 $as_test_x conftest$ac_exeext
1616       }; then :
1617  ac_retval=0
1618else
1619  $as_echo "$as_me: failed program was:" >&5
1620sed 's/^/| /' conftest.$ac_ext >&5
1621
1622	ac_retval=1
1623fi
1624  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1625  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1626  # interfere with the next link command; also delete a directory that is
1627  # left behind by Apple's compiler.  We do this before executing the actions.
1628  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1629  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1630  as_fn_set_status $ac_retval
1631
1632} # ac_fn_c_try_link
1633
1634# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1635# -------------------------------------------------------
1636# Tests whether HEADER exists and can be compiled using the include files in
1637# INCLUDES, setting the cache variable VAR accordingly.
1638ac_fn_c_check_header_compile ()
1639{
1640  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1642$as_echo_n "checking for $2... " >&6; }
1643if eval \${$3+:} false; then :
1644  $as_echo_n "(cached) " >&6
1645else
1646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1647/* end confdefs.h.  */
1648$4
1649#include <$2>
1650_ACEOF
1651if ac_fn_c_try_compile "$LINENO"; then :
1652  eval "$3=yes"
1653else
1654  eval "$3=no"
1655fi
1656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1657fi
1658eval ac_res=\$$3
1659	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1660$as_echo "$ac_res" >&6; }
1661  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1662
1663} # ac_fn_c_check_header_compile
1664
1665# ac_fn_c_try_cpp LINENO
1666# ----------------------
1667# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1668ac_fn_c_try_cpp ()
1669{
1670  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671  if { { ac_try="$ac_cpp conftest.$ac_ext"
1672case "(($ac_try" in
1673  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674  *) ac_try_echo=$ac_try;;
1675esac
1676eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677$as_echo "$ac_try_echo"; } >&5
1678  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1679  ac_status=$?
1680  if test -s conftest.err; then
1681    grep -v '^ *+' conftest.err >conftest.er1
1682    cat conftest.er1 >&5
1683    mv -f conftest.er1 conftest.err
1684  fi
1685  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686  test $ac_status = 0; } > conftest.i && {
1687	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1688	 test ! -s conftest.err
1689       }; then :
1690  ac_retval=0
1691else
1692  $as_echo "$as_me: failed program was:" >&5
1693sed 's/^/| /' conftest.$ac_ext >&5
1694
1695    ac_retval=1
1696fi
1697  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1698  as_fn_set_status $ac_retval
1699
1700} # ac_fn_c_try_cpp
1701
1702# ac_fn_c_try_run LINENO
1703# ----------------------
1704# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1705# that executables *can* be run.
1706ac_fn_c_try_run ()
1707{
1708  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709  if { { ac_try="$ac_link"
1710case "(($ac_try" in
1711  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712  *) ac_try_echo=$ac_try;;
1713esac
1714eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715$as_echo "$ac_try_echo"; } >&5
1716  (eval "$ac_link") 2>&5
1717  ac_status=$?
1718  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1720  { { case "(($ac_try" in
1721  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722  *) ac_try_echo=$ac_try;;
1723esac
1724eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725$as_echo "$ac_try_echo"; } >&5
1726  (eval "$ac_try") 2>&5
1727  ac_status=$?
1728  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729  test $ac_status = 0; }; }; then :
1730  ac_retval=0
1731else
1732  $as_echo "$as_me: program exited with status $ac_status" >&5
1733       $as_echo "$as_me: failed program was:" >&5
1734sed 's/^/| /' conftest.$ac_ext >&5
1735
1736       ac_retval=$ac_status
1737fi
1738  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1739  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740  as_fn_set_status $ac_retval
1741
1742} # ac_fn_c_try_run
1743
1744# ac_fn_c_check_func LINENO FUNC VAR
1745# ----------------------------------
1746# Tests whether FUNC exists, setting the cache variable VAR accordingly
1747ac_fn_c_check_func ()
1748{
1749  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1751$as_echo_n "checking for $2... " >&6; }
1752if eval \${$3+:} false; then :
1753  $as_echo_n "(cached) " >&6
1754else
1755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1756/* end confdefs.h.  */
1757/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1758   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1759#define $2 innocuous_$2
1760
1761/* System header to define __stub macros and hopefully few prototypes,
1762    which can conflict with char $2 (); below.
1763    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1764    <limits.h> exists even on freestanding compilers.  */
1765
1766#ifdef __STDC__
1767# include <limits.h>
1768#else
1769# include <assert.h>
1770#endif
1771
1772#undef $2
1773
1774/* Override any GCC internal prototype to avoid an error.
1775   Use char because int might match the return type of a GCC
1776   builtin and then its argument prototype would still apply.  */
1777#ifdef __cplusplus
1778extern "C"
1779#endif
1780char $2 ();
1781/* The GNU C library defines this for functions which it implements
1782    to always fail with ENOSYS.  Some functions are actually named
1783    something starting with __ and the normal name is an alias.  */
1784#if defined __stub_$2 || defined __stub___$2
1785choke me
1786#endif
1787
1788int
1789main ()
1790{
1791return $2 ();
1792  ;
1793  return 0;
1794}
1795_ACEOF
1796if ac_fn_c_try_link "$LINENO"; then :
1797  eval "$3=yes"
1798else
1799  eval "$3=no"
1800fi
1801rm -f core conftest.err conftest.$ac_objext \
1802    conftest$ac_exeext conftest.$ac_ext
1803fi
1804eval ac_res=\$$3
1805	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1806$as_echo "$ac_res" >&6; }
1807  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808
1809} # ac_fn_c_check_func
1810
1811# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1812# ---------------------------------------------
1813# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1814# accordingly.
1815ac_fn_c_check_decl ()
1816{
1817  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818  as_decl_name=`echo $2|sed 's/ *(.*//'`
1819  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1820  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1821$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1822if eval \${$3+:} false; then :
1823  $as_echo_n "(cached) " >&6
1824else
1825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826/* end confdefs.h.  */
1827$4
1828int
1829main ()
1830{
1831#ifndef $as_decl_name
1832#ifdef __cplusplus
1833  (void) $as_decl_use;
1834#else
1835  (void) $as_decl_name;
1836#endif
1837#endif
1838
1839  ;
1840  return 0;
1841}
1842_ACEOF
1843if ac_fn_c_try_compile "$LINENO"; then :
1844  eval "$3=yes"
1845else
1846  eval "$3=no"
1847fi
1848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1849fi
1850eval ac_res=\$$3
1851	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1852$as_echo "$ac_res" >&6; }
1853  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1854
1855} # ac_fn_c_check_decl
1856
1857# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1858# -------------------------------------------
1859# Tests whether TYPE exists after having included INCLUDES, setting cache
1860# variable VAR accordingly.
1861ac_fn_c_check_type ()
1862{
1863  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1865$as_echo_n "checking for $2... " >&6; }
1866if eval \${$3+:} false; then :
1867  $as_echo_n "(cached) " >&6
1868else
1869  eval "$3=no"
1870  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871/* end confdefs.h.  */
1872$4
1873int
1874main ()
1875{
1876if (sizeof ($2))
1877	 return 0;
1878  ;
1879  return 0;
1880}
1881_ACEOF
1882if ac_fn_c_try_compile "$LINENO"; then :
1883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1884/* end confdefs.h.  */
1885$4
1886int
1887main ()
1888{
1889if (sizeof (($2)))
1890	    return 0;
1891  ;
1892  return 0;
1893}
1894_ACEOF
1895if ac_fn_c_try_compile "$LINENO"; then :
1896
1897else
1898  eval "$3=yes"
1899fi
1900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1901fi
1902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1903fi
1904eval ac_res=\$$3
1905	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1906$as_echo "$ac_res" >&6; }
1907  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1908
1909} # ac_fn_c_check_type
1910
1911# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1912# -------------------------------------------------------
1913# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1914# the include files in INCLUDES and setting the cache variable VAR
1915# accordingly.
1916ac_fn_c_check_header_mongrel ()
1917{
1918  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919  if eval \${$3+:} false; then :
1920  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1921$as_echo_n "checking for $2... " >&6; }
1922if eval \${$3+:} false; then :
1923  $as_echo_n "(cached) " >&6
1924fi
1925eval ac_res=\$$3
1926	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927$as_echo "$ac_res" >&6; }
1928else
1929  # Is the header compilable?
1930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1931$as_echo_n "checking $2 usability... " >&6; }
1932cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933/* end confdefs.h.  */
1934$4
1935#include <$2>
1936_ACEOF
1937if ac_fn_c_try_compile "$LINENO"; then :
1938  ac_header_compiler=yes
1939else
1940  ac_header_compiler=no
1941fi
1942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1944$as_echo "$ac_header_compiler" >&6; }
1945
1946# Is the header present?
1947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1948$as_echo_n "checking $2 presence... " >&6; }
1949cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950/* end confdefs.h.  */
1951#include <$2>
1952_ACEOF
1953if ac_fn_c_try_cpp "$LINENO"; then :
1954  ac_header_preproc=yes
1955else
1956  ac_header_preproc=no
1957fi
1958rm -f conftest.err conftest.i conftest.$ac_ext
1959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1960$as_echo "$ac_header_preproc" >&6; }
1961
1962# So?  What about this header?
1963case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1964  yes:no: )
1965    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1966$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1967    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1968$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1969    ;;
1970  no:yes:* )
1971    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1972$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1973    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1974$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1975    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1976$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1977    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1978$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1979    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1980$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1981( $as_echo "## ----------------------------- ##
1982## Report this to fnch@libero.it ##
1983## ----------------------------- ##"
1984     ) | sed "s/^/$as_me: WARNING:     /" >&2
1985    ;;
1986esac
1987  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1988$as_echo_n "checking for $2... " >&6; }
1989if eval \${$3+:} false; then :
1990  $as_echo_n "(cached) " >&6
1991else
1992  eval "$3=\$ac_header_compiler"
1993fi
1994eval ac_res=\$$3
1995	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1996$as_echo "$ac_res" >&6; }
1997fi
1998  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1999
2000} # ac_fn_c_check_header_mongrel
2001cat >config.log <<_ACEOF
2002This file contains any messages produced by compilers while
2003running configure, to aid debugging if configure makes a mistake.
2004
2005It was created by box $as_me 0.4.0, which was
2006generated by GNU Autoconf 2.68.  Invocation command line was
2007
2008  $ $0 $@
2009
2010_ACEOF
2011exec 5>>config.log
2012{
2013cat <<_ASUNAME
2014## --------- ##
2015## Platform. ##
2016## --------- ##
2017
2018hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2019uname -m = `(uname -m) 2>/dev/null || echo unknown`
2020uname -r = `(uname -r) 2>/dev/null || echo unknown`
2021uname -s = `(uname -s) 2>/dev/null || echo unknown`
2022uname -v = `(uname -v) 2>/dev/null || echo unknown`
2023
2024/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2025/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2026
2027/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2028/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2029/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2030/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2031/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2032/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2033/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2034
2035_ASUNAME
2036
2037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2038for as_dir in $PATH
2039do
2040  IFS=$as_save_IFS
2041  test -z "$as_dir" && as_dir=.
2042    $as_echo "PATH: $as_dir"
2043  done
2044IFS=$as_save_IFS
2045
2046} >&5
2047
2048cat >&5 <<_ACEOF
2049
2050
2051## ----------- ##
2052## Core tests. ##
2053## ----------- ##
2054
2055_ACEOF
2056
2057
2058# Keep a trace of the command line.
2059# Strip out --no-create and --no-recursion so they do not pile up.
2060# Strip out --silent because we don't want to record it for future runs.
2061# Also quote any args containing shell meta-characters.
2062# Make two passes to allow for proper duplicate-argument suppression.
2063ac_configure_args=
2064ac_configure_args0=
2065ac_configure_args1=
2066ac_must_keep_next=false
2067for ac_pass in 1 2
2068do
2069  for ac_arg
2070  do
2071    case $ac_arg in
2072    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2073    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2074    | -silent | --silent | --silen | --sile | --sil)
2075      continue ;;
2076    *\'*)
2077      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2078    esac
2079    case $ac_pass in
2080    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2081    2)
2082      as_fn_append ac_configure_args1 " '$ac_arg'"
2083      if test $ac_must_keep_next = true; then
2084	ac_must_keep_next=false # Got value, back to normal.
2085      else
2086	case $ac_arg in
2087	  *=* | --config-cache | -C | -disable-* | --disable-* \
2088	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2089	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2090	  | -with-* | --with-* | -without-* | --without-* | --x)
2091	    case "$ac_configure_args0 " in
2092	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2093	    esac
2094	    ;;
2095	  -* ) ac_must_keep_next=true ;;
2096	esac
2097      fi
2098      as_fn_append ac_configure_args " '$ac_arg'"
2099      ;;
2100    esac
2101  done
2102done
2103{ ac_configure_args0=; unset ac_configure_args0;}
2104{ ac_configure_args1=; unset ac_configure_args1;}
2105
2106# When interrupted or exit'd, cleanup temporary files, and complete
2107# config.log.  We remove comments because anyway the quotes in there
2108# would cause problems or look ugly.
2109# WARNING: Use '\'' to represent an apostrophe within the trap.
2110# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2111trap 'exit_status=$?
2112  # Save into config.log some information that might help in debugging.
2113  {
2114    echo
2115
2116    $as_echo "## ---------------- ##
2117## Cache variables. ##
2118## ---------------- ##"
2119    echo
2120    # The following way of writing the cache mishandles newlines in values,
2121(
2122  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2123    eval ac_val=\$$ac_var
2124    case $ac_val in #(
2125    *${as_nl}*)
2126      case $ac_var in #(
2127      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2128$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2129      esac
2130      case $ac_var in #(
2131      _ | IFS | as_nl) ;; #(
2132      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2133      *) { eval $ac_var=; unset $ac_var;} ;;
2134      esac ;;
2135    esac
2136  done
2137  (set) 2>&1 |
2138    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2139    *${as_nl}ac_space=\ *)
2140      sed -n \
2141	"s/'\''/'\''\\\\'\'''\''/g;
2142	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2143      ;; #(
2144    *)
2145      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2146      ;;
2147    esac |
2148    sort
2149)
2150    echo
2151
2152    $as_echo "## ----------------- ##
2153## Output variables. ##
2154## ----------------- ##"
2155    echo
2156    for ac_var in $ac_subst_vars
2157    do
2158      eval ac_val=\$$ac_var
2159      case $ac_val in
2160      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2161      esac
2162      $as_echo "$ac_var='\''$ac_val'\''"
2163    done | sort
2164    echo
2165
2166    if test -n "$ac_subst_files"; then
2167      $as_echo "## ------------------- ##
2168## File substitutions. ##
2169## ------------------- ##"
2170      echo
2171      for ac_var in $ac_subst_files
2172      do
2173	eval ac_val=\$$ac_var
2174	case $ac_val in
2175	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2176	esac
2177	$as_echo "$ac_var='\''$ac_val'\''"
2178      done | sort
2179      echo
2180    fi
2181
2182    if test -s confdefs.h; then
2183      $as_echo "## ----------- ##
2184## confdefs.h. ##
2185## ----------- ##"
2186      echo
2187      cat confdefs.h
2188      echo
2189    fi
2190    test "$ac_signal" != 0 &&
2191      $as_echo "$as_me: caught signal $ac_signal"
2192    $as_echo "$as_me: exit $exit_status"
2193  } >&5
2194  rm -f core *.core core.conftest.* &&
2195    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2196    exit $exit_status
2197' 0
2198for ac_signal in 1 2 13 15; do
2199  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2200done
2201ac_signal=0
2202
2203# confdefs.h avoids OS command line length limits that DEFS can exceed.
2204rm -f -r conftest* confdefs.h
2205
2206$as_echo "/* confdefs.h */" > confdefs.h
2207
2208# Predefined preprocessor variables.
2209
2210cat >>confdefs.h <<_ACEOF
2211#define PACKAGE_NAME "$PACKAGE_NAME"
2212_ACEOF
2213
2214cat >>confdefs.h <<_ACEOF
2215#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2216_ACEOF
2217
2218cat >>confdefs.h <<_ACEOF
2219#define PACKAGE_VERSION "$PACKAGE_VERSION"
2220_ACEOF
2221
2222cat >>confdefs.h <<_ACEOF
2223#define PACKAGE_STRING "$PACKAGE_STRING"
2224_ACEOF
2225
2226cat >>confdefs.h <<_ACEOF
2227#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2228_ACEOF
2229
2230cat >>confdefs.h <<_ACEOF
2231#define PACKAGE_URL "$PACKAGE_URL"
2232_ACEOF
2233
2234
2235# Let the site file select an alternate cache file if it wants to.
2236# Prefer an explicitly selected file to automatically selected ones.
2237ac_site_file1=NONE
2238ac_site_file2=NONE
2239if test -n "$CONFIG_SITE"; then
2240  # We do not want a PATH search for config.site.
2241  case $CONFIG_SITE in #((
2242    -*)  ac_site_file1=./$CONFIG_SITE;;
2243    */*) ac_site_file1=$CONFIG_SITE;;
2244    *)   ac_site_file1=./$CONFIG_SITE;;
2245  esac
2246elif test "x$prefix" != xNONE; then
2247  ac_site_file1=$prefix/share/config.site
2248  ac_site_file2=$prefix/etc/config.site
2249else
2250  ac_site_file1=$ac_default_prefix/share/config.site
2251  ac_site_file2=$ac_default_prefix/etc/config.site
2252fi
2253for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2254do
2255  test "x$ac_site_file" = xNONE && continue
2256  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2257    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2258$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2259    sed 's/^/| /' "$ac_site_file" >&5
2260    . "$ac_site_file" \
2261      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2262$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2263as_fn_error $? "failed to load site script $ac_site_file
2264See \`config.log' for more details" "$LINENO" 5; }
2265  fi
2266done
2267
2268if test -r "$cache_file"; then
2269  # Some versions of bash will fail to source /dev/null (special files
2270  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2271  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2272    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2273$as_echo "$as_me: loading cache $cache_file" >&6;}
2274    case $cache_file in
2275      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2276      *)                      . "./$cache_file";;
2277    esac
2278  fi
2279else
2280  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2281$as_echo "$as_me: creating cache $cache_file" >&6;}
2282  >$cache_file
2283fi
2284
2285# Check that the precious variables saved in the cache have kept the same
2286# value.
2287ac_cache_corrupted=false
2288for ac_var in $ac_precious_vars; do
2289  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2290  eval ac_new_set=\$ac_env_${ac_var}_set
2291  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2292  eval ac_new_val=\$ac_env_${ac_var}_value
2293  case $ac_old_set,$ac_new_set in
2294    set,)
2295      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2296$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2297      ac_cache_corrupted=: ;;
2298    ,set)
2299      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2300$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2301      ac_cache_corrupted=: ;;
2302    ,);;
2303    *)
2304      if test "x$ac_old_val" != "x$ac_new_val"; then
2305	# differences in whitespace do not lead to failure.
2306	ac_old_val_w=`echo x $ac_old_val`
2307	ac_new_val_w=`echo x $ac_new_val`
2308	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2309	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2310$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2311	  ac_cache_corrupted=:
2312	else
2313	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2314$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2315	  eval $ac_var=\$ac_old_val
2316	fi
2317	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2318$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2319	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2320$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2321      fi;;
2322  esac
2323  # Pass precious variables to config.status.
2324  if test "$ac_new_set" = set; then
2325    case $ac_new_val in
2326    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2327    *) ac_arg=$ac_var=$ac_new_val ;;
2328    esac
2329    case " $ac_configure_args " in
2330      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2331      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2332    esac
2333  fi
2334done
2335if $ac_cache_corrupted; then
2336  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2337$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2338  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2339$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2340  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2341fi
2342## -------------------- ##
2343## Main body of script. ##
2344## -------------------- ##
2345
2346ac_ext=c
2347ac_cpp='$CPP $CPPFLAGS'
2348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2350ac_compiler_gnu=$ac_cv_c_compiler_gnu
2351
2352
2353
2354# Date corresponding to the release of the current version
2355BOX_RELEASE_DATE="Sep 07 2013, 09:47:45"
2356
2357# Major part of the version number
2358BOX_VER_MAJOR="0"
2359
2360# Minor part of the version number
2361BOX_VER_MINOR="4"
2362
2363# Maint part of the version number
2364BOX_VER_MAINT="0"
2365
2366
2367
2368# Libtool ltdl library directory
2369ac_aux_dir=
2370for ac_dir in libltdl/config "$srcdir"/libltdl/config; do
2371  if test -f "$ac_dir/install-sh"; then
2372    ac_aux_dir=$ac_dir
2373    ac_install_sh="$ac_aux_dir/install-sh -c"
2374    break
2375  elif test -f "$ac_dir/install.sh"; then
2376    ac_aux_dir=$ac_dir
2377    ac_install_sh="$ac_aux_dir/install.sh -c"
2378    break
2379  elif test -f "$ac_dir/shtool"; then
2380    ac_aux_dir=$ac_dir
2381    ac_install_sh="$ac_aux_dir/shtool install -c"
2382    break
2383  fi
2384done
2385if test -z "$ac_aux_dir"; then
2386  as_fn_error $? "cannot find install-sh, install.sh, or shtool in libltdl/config \"$srcdir\"/libltdl/config" "$LINENO" 5
2387fi
2388
2389# These three variables are undocumented and unsupported,
2390# and are intended to be withdrawn in a future Autoconf release.
2391# They can cause serious problems if a builder's source tree is in a directory
2392# whose full name contains unusual characters.
2393ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2394ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2395ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2396
2397
2398
2399
2400am__api_version='1.11'
2401
2402# Find a good install program.  We prefer a C program (faster),
2403# so one script is as good as another.  But avoid the broken or
2404# incompatible versions:
2405# SysV /etc/install, /usr/sbin/install
2406# SunOS /usr/etc/install
2407# IRIX /sbin/install
2408# AIX /bin/install
2409# AmigaOS /C/install, which installs bootblocks on floppy discs
2410# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2411# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2412# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2413# OS/2's system install, which has a completely different semantic
2414# ./install, which can be erroneously created by make from ./install.sh.
2415# Reject install programs that cannot install multiple files.
2416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2417$as_echo_n "checking for a BSD-compatible install... " >&6; }
2418if test -z "$INSTALL"; then
2419if ${ac_cv_path_install+:} false; then :
2420  $as_echo_n "(cached) " >&6
2421else
2422  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2423for as_dir in $PATH
2424do
2425  IFS=$as_save_IFS
2426  test -z "$as_dir" && as_dir=.
2427    # Account for people who put trailing slashes in PATH elements.
2428case $as_dir/ in #((
2429  ./ | .// | /[cC]/* | \
2430  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2431  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2432  /usr/ucb/* ) ;;
2433  *)
2434    # OSF1 and SCO ODT 3.0 have their own names for install.
2435    # Don't use installbsd from OSF since it installs stuff as root
2436    # by default.
2437    for ac_prog in ginstall scoinst install; do
2438      for ac_exec_ext in '' $ac_executable_extensions; do
2439	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2440	  if test $ac_prog = install &&
2441	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2442	    # AIX install.  It has an incompatible calling convention.
2443	    :
2444	  elif test $ac_prog = install &&
2445	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2446	    # program-specific install script used by HP pwplus--don't use.
2447	    :
2448	  else
2449	    rm -rf conftest.one conftest.two conftest.dir
2450	    echo one > conftest.one
2451	    echo two > conftest.two
2452	    mkdir conftest.dir
2453	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2454	      test -s conftest.one && test -s conftest.two &&
2455	      test -s conftest.dir/conftest.one &&
2456	      test -s conftest.dir/conftest.two
2457	    then
2458	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2459	      break 3
2460	    fi
2461	  fi
2462	fi
2463      done
2464    done
2465    ;;
2466esac
2467
2468  done
2469IFS=$as_save_IFS
2470
2471rm -rf conftest.one conftest.two conftest.dir
2472
2473fi
2474  if test "${ac_cv_path_install+set}" = set; then
2475    INSTALL=$ac_cv_path_install
2476  else
2477    # As a last resort, use the slow shell script.  Don't cache a
2478    # value for INSTALL within a source directory, because that will
2479    # break other packages using the cache if that directory is
2480    # removed, or if the value is a relative name.
2481    INSTALL=$ac_install_sh
2482  fi
2483fi
2484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2485$as_echo "$INSTALL" >&6; }
2486
2487# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2488# It thinks the first close brace ends the variable substitution.
2489test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2490
2491test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2492
2493test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2494
2495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2496$as_echo_n "checking whether build environment is sane... " >&6; }
2497# Just in case
2498sleep 1
2499echo timestamp > conftest.file
2500# Reject unsafe characters in $srcdir or the absolute working directory
2501# name.  Accept space and tab only in the latter.
2502am_lf='
2503'
2504case `pwd` in
2505  *[\\\"\#\$\&\'\`$am_lf]*)
2506    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2507esac
2508case $srcdir in
2509  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2510    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2511esac
2512
2513# Do `set' in a subshell so we don't clobber the current shell's
2514# arguments.  Must try -L first in case configure is actually a
2515# symlink; some systems play weird games with the mod time of symlinks
2516# (eg FreeBSD returns the mod time of the symlink's containing
2517# directory).
2518if (
2519   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2520   if test "$*" = "X"; then
2521      # -L didn't work.
2522      set X `ls -t "$srcdir/configure" conftest.file`
2523   fi
2524   rm -f conftest.file
2525   if test "$*" != "X $srcdir/configure conftest.file" \
2526      && test "$*" != "X conftest.file $srcdir/configure"; then
2527
2528      # If neither matched, then we have a broken ls.  This can happen
2529      # if, for instance, CONFIG_SHELL is bash and it inherits a
2530      # broken ls alias from the environment.  This has actually
2531      # happened.  Such a system could not be considered "sane".
2532      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2533alias in your environment" "$LINENO" 5
2534   fi
2535
2536   test "$2" = conftest.file
2537   )
2538then
2539   # Ok.
2540   :
2541else
2542   as_fn_error $? "newly created file is older than distributed files!
2543Check your system clock" "$LINENO" 5
2544fi
2545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2546$as_echo "yes" >&6; }
2547test "$program_prefix" != NONE &&
2548  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2549# Use a double $ so make ignores it.
2550test "$program_suffix" != NONE &&
2551  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2552# Double any \ or $.
2553# By default was `s,x,x', remove it if useless.
2554ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2555program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2556
2557# expand $ac_aux_dir to an absolute path
2558am_aux_dir=`cd $ac_aux_dir && pwd`
2559
2560if test x"${MISSING+set}" != xset; then
2561  case $am_aux_dir in
2562  *\ * | *\	*)
2563    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2564  *)
2565    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2566  esac
2567fi
2568# Use eval to expand $SHELL
2569if eval "$MISSING --run true"; then
2570  am_missing_run="$MISSING --run "
2571else
2572  am_missing_run=
2573  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2574$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2575fi
2576
2577if test x"${install_sh}" != xset; then
2578  case $am_aux_dir in
2579  *\ * | *\	*)
2580    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2581  *)
2582    install_sh="\${SHELL} $am_aux_dir/install-sh"
2583  esac
2584fi
2585
2586# Installed binaries are usually stripped using `strip' when the user
2587# run `make install-strip'.  However `strip' might not be the right
2588# tool to use in cross-compilation environments, therefore Automake
2589# will honor the `STRIP' environment variable to overrule this program.
2590if test "$cross_compiling" != no; then
2591  if test -n "$ac_tool_prefix"; then
2592  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2593set dummy ${ac_tool_prefix}strip; ac_word=$2
2594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2595$as_echo_n "checking for $ac_word... " >&6; }
2596if ${ac_cv_prog_STRIP+:} false; then :
2597  $as_echo_n "(cached) " >&6
2598else
2599  if test -n "$STRIP"; then
2600  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2601else
2602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603for as_dir in $PATH
2604do
2605  IFS=$as_save_IFS
2606  test -z "$as_dir" && as_dir=.
2607    for ac_exec_ext in '' $ac_executable_extensions; do
2608  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2609    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2610    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2611    break 2
2612  fi
2613done
2614  done
2615IFS=$as_save_IFS
2616
2617fi
2618fi
2619STRIP=$ac_cv_prog_STRIP
2620if test -n "$STRIP"; then
2621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2622$as_echo "$STRIP" >&6; }
2623else
2624  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2625$as_echo "no" >&6; }
2626fi
2627
2628
2629fi
2630if test -z "$ac_cv_prog_STRIP"; then
2631  ac_ct_STRIP=$STRIP
2632  # Extract the first word of "strip", so it can be a program name with args.
2633set dummy strip; ac_word=$2
2634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2635$as_echo_n "checking for $ac_word... " >&6; }
2636if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2637  $as_echo_n "(cached) " >&6
2638else
2639  if test -n "$ac_ct_STRIP"; then
2640  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2641else
2642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643for as_dir in $PATH
2644do
2645  IFS=$as_save_IFS
2646  test -z "$as_dir" && as_dir=.
2647    for ac_exec_ext in '' $ac_executable_extensions; do
2648  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2649    ac_cv_prog_ac_ct_STRIP="strip"
2650    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2651    break 2
2652  fi
2653done
2654  done
2655IFS=$as_save_IFS
2656
2657fi
2658fi
2659ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2660if test -n "$ac_ct_STRIP"; then
2661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2662$as_echo "$ac_ct_STRIP" >&6; }
2663else
2664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2665$as_echo "no" >&6; }
2666fi
2667
2668  if test "x$ac_ct_STRIP" = x; then
2669    STRIP=":"
2670  else
2671    case $cross_compiling:$ac_tool_warned in
2672yes:)
2673{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2674$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2675ac_tool_warned=yes ;;
2676esac
2677    STRIP=$ac_ct_STRIP
2678  fi
2679else
2680  STRIP="$ac_cv_prog_STRIP"
2681fi
2682
2683fi
2684INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2685
2686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2687$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2688if test -z "$MKDIR_P"; then
2689  if ${ac_cv_path_mkdir+:} false; then :
2690  $as_echo_n "(cached) " >&6
2691else
2692  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2694do
2695  IFS=$as_save_IFS
2696  test -z "$as_dir" && as_dir=.
2697    for ac_prog in mkdir gmkdir; do
2698	 for ac_exec_ext in '' $ac_executable_extensions; do
2699	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2700	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2701	     'mkdir (GNU coreutils) '* | \
2702	     'mkdir (coreutils) '* | \
2703	     'mkdir (fileutils) '4.1*)
2704	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2705	       break 3;;
2706	   esac
2707	 done
2708       done
2709  done
2710IFS=$as_save_IFS
2711
2712fi
2713
2714  test -d ./--version && rmdir ./--version
2715  if test "${ac_cv_path_mkdir+set}" = set; then
2716    MKDIR_P="$ac_cv_path_mkdir -p"
2717  else
2718    # As a last resort, use the slow shell script.  Don't cache a
2719    # value for MKDIR_P within a source directory, because that will
2720    # break other packages using the cache if that directory is
2721    # removed, or if the value is a relative name.
2722    MKDIR_P="$ac_install_sh -d"
2723  fi
2724fi
2725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2726$as_echo "$MKDIR_P" >&6; }
2727
2728mkdir_p="$MKDIR_P"
2729case $mkdir_p in
2730  [\\/$]* | ?:[\\/]*) ;;
2731  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2732esac
2733
2734for ac_prog in gawk mawk nawk awk
2735do
2736  # Extract the first word of "$ac_prog", so it can be a program name with args.
2737set dummy $ac_prog; ac_word=$2
2738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2739$as_echo_n "checking for $ac_word... " >&6; }
2740if ${ac_cv_prog_AWK+:} false; then :
2741  $as_echo_n "(cached) " >&6
2742else
2743  if test -n "$AWK"; then
2744  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2745else
2746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747for as_dir in $PATH
2748do
2749  IFS=$as_save_IFS
2750  test -z "$as_dir" && as_dir=.
2751    for ac_exec_ext in '' $ac_executable_extensions; do
2752  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2753    ac_cv_prog_AWK="$ac_prog"
2754    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2755    break 2
2756  fi
2757done
2758  done
2759IFS=$as_save_IFS
2760
2761fi
2762fi
2763AWK=$ac_cv_prog_AWK
2764if test -n "$AWK"; then
2765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2766$as_echo "$AWK" >&6; }
2767else
2768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2769$as_echo "no" >&6; }
2770fi
2771
2772
2773  test -n "$AWK" && break
2774done
2775
2776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2777$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2778set x ${MAKE-make}
2779ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2780if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2781  $as_echo_n "(cached) " >&6
2782else
2783  cat >conftest.make <<\_ACEOF
2784SHELL = /bin/sh
2785all:
2786	@echo '@@@%%%=$(MAKE)=@@@%%%'
2787_ACEOF
2788# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2789case `${MAKE-make} -f conftest.make 2>/dev/null` in
2790  *@@@%%%=?*=@@@%%%*)
2791    eval ac_cv_prog_make_${ac_make}_set=yes;;
2792  *)
2793    eval ac_cv_prog_make_${ac_make}_set=no;;
2794esac
2795rm -f conftest.make
2796fi
2797if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2799$as_echo "yes" >&6; }
2800  SET_MAKE=
2801else
2802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2803$as_echo "no" >&6; }
2804  SET_MAKE="MAKE=${MAKE-make}"
2805fi
2806
2807rm -rf .tst 2>/dev/null
2808mkdir .tst 2>/dev/null
2809if test -d .tst; then
2810  am__leading_dot=.
2811else
2812  am__leading_dot=_
2813fi
2814rmdir .tst 2>/dev/null
2815
2816if test "`cd $srcdir && pwd`" != "`pwd`"; then
2817  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2818  # is not polluted with repeated "-I."
2819  am__isrc=' -I$(srcdir)'
2820  # test to see if srcdir already configured
2821  if test -f $srcdir/config.status; then
2822    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2823  fi
2824fi
2825
2826# test whether we have cygpath
2827if test -z "$CYGPATH_W"; then
2828  if (cygpath --version) >/dev/null 2>/dev/null; then
2829    CYGPATH_W='cygpath -w'
2830  else
2831    CYGPATH_W=echo
2832  fi
2833fi
2834
2835
2836# Define the identity of the package.
2837 PACKAGE='box'
2838 VERSION='0.4.0'
2839
2840
2841cat >>confdefs.h <<_ACEOF
2842#define PACKAGE "$PACKAGE"
2843_ACEOF
2844
2845
2846cat >>confdefs.h <<_ACEOF
2847#define VERSION "$VERSION"
2848_ACEOF
2849
2850# Some tools Automake needs.
2851
2852ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2853
2854
2855AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2856
2857
2858AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2859
2860
2861AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2862
2863
2864MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2865
2866# We need awk for the "check" target.  The system "awk" is bad on
2867# some platforms.
2868# Always define AMTAR for backward compatibility.  Yes, it's still used
2869# in the wild :-(  We should find a proper way to deprecate it ...
2870AMTAR='$${TAR-tar}'
2871
2872am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2873
2874
2875
2876
2877
2878
2879
2880ac_config_headers="$ac_config_headers config.h"
2881
2882
2883# Libtool support
2884
2885
2886
2887
2888
2889
2890
2891case `pwd` in
2892  *\ * | *\	*)
2893    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2894$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2895esac
2896
2897
2898
2899macro_version='2.4.2'
2900macro_revision='1.3337'
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914ltmain="$ac_aux_dir/ltmain.sh"
2915
2916# Make sure we can run config.sub.
2917$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2918  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2919
2920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2921$as_echo_n "checking build system type... " >&6; }
2922if ${ac_cv_build+:} false; then :
2923  $as_echo_n "(cached) " >&6
2924else
2925  ac_build_alias=$build_alias
2926test "x$ac_build_alias" = x &&
2927  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2928test "x$ac_build_alias" = x &&
2929  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2930ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2931  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2932
2933fi
2934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2935$as_echo "$ac_cv_build" >&6; }
2936case $ac_cv_build in
2937*-*-*) ;;
2938*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2939esac
2940build=$ac_cv_build
2941ac_save_IFS=$IFS; IFS='-'
2942set x $ac_cv_build
2943shift
2944build_cpu=$1
2945build_vendor=$2
2946shift; shift
2947# Remember, the first character of IFS is used to create $*,
2948# except with old shells:
2949build_os=$*
2950IFS=$ac_save_IFS
2951case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2952
2953
2954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2955$as_echo_n "checking host system type... " >&6; }
2956if ${ac_cv_host+:} false; then :
2957  $as_echo_n "(cached) " >&6
2958else
2959  if test "x$host_alias" = x; then
2960  ac_cv_host=$ac_cv_build
2961else
2962  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2963    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2964fi
2965
2966fi
2967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2968$as_echo "$ac_cv_host" >&6; }
2969case $ac_cv_host in
2970*-*-*) ;;
2971*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2972esac
2973host=$ac_cv_host
2974ac_save_IFS=$IFS; IFS='-'
2975set x $ac_cv_host
2976shift
2977host_cpu=$1
2978host_vendor=$2
2979shift; shift
2980# Remember, the first character of IFS is used to create $*,
2981# except with old shells:
2982host_os=$*
2983IFS=$ac_save_IFS
2984case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2985
2986
2987# Backslashify metacharacters that are still active within
2988# double-quoted strings.
2989sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2990
2991# Same as above, but do not quote variable references.
2992double_quote_subst='s/\(["`\\]\)/\\\1/g'
2993
2994# Sed substitution to delay expansion of an escaped shell variable in a
2995# double_quote_subst'ed string.
2996delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2997
2998# Sed substitution to delay expansion of an escaped single quote.
2999delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3000
3001# Sed substitution to avoid accidental globbing in evaled expressions
3002no_glob_subst='s/\*/\\\*/g'
3003
3004ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3005ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3006ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3007
3008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3009$as_echo_n "checking how to print strings... " >&6; }
3010# Test print first, because it will be a builtin if present.
3011if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3012   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3013  ECHO='print -r --'
3014elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3015  ECHO='printf %s\n'
3016else
3017  # Use this function as a fallback that always works.
3018  func_fallback_echo ()
3019  {
3020    eval 'cat <<_LTECHO_EOF
3021$1
3022_LTECHO_EOF'
3023  }
3024  ECHO='func_fallback_echo'
3025fi
3026
3027# func_echo_all arg...
3028# Invoke $ECHO with all args, space-separated.
3029func_echo_all ()
3030{
3031    $ECHO ""
3032}
3033
3034case "$ECHO" in
3035  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3036$as_echo "printf" >&6; } ;;
3037  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3038$as_echo "print -r" >&6; } ;;
3039  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3040$as_echo "cat" >&6; } ;;
3041esac
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056DEPDIR="${am__leading_dot}deps"
3057
3058ac_config_commands="$ac_config_commands depfiles"
3059
3060
3061am_make=${MAKE-make}
3062cat > confinc << 'END'
3063am__doit:
3064	@echo this is the am__doit target
3065.PHONY: am__doit
3066END
3067# If we don't find an include directive, just comment out the code.
3068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3069$as_echo_n "checking for style of include used by $am_make... " >&6; }
3070am__include="#"
3071am__quote=
3072_am_result=none
3073# First try GNU make style include.
3074echo "include confinc" > confmf
3075# Ignore all kinds of additional output from `make'.
3076case `$am_make -s -f confmf 2> /dev/null` in #(
3077*the\ am__doit\ target*)
3078  am__include=include
3079  am__quote=
3080  _am_result=GNU
3081  ;;
3082esac
3083# Now try BSD make style include.
3084if test "$am__include" = "#"; then
3085   echo '.include "confinc"' > confmf
3086   case `$am_make -s -f confmf 2> /dev/null` in #(
3087   *the\ am__doit\ target*)
3088     am__include=.include
3089     am__quote="\""
3090     _am_result=BSD
3091     ;;
3092   esac
3093fi
3094
3095
3096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3097$as_echo "$_am_result" >&6; }
3098rm -f confinc confmf
3099
3100# Check whether --enable-dependency-tracking was given.
3101if test "${enable_dependency_tracking+set}" = set; then :
3102  enableval=$enable_dependency_tracking;
3103fi
3104
3105if test "x$enable_dependency_tracking" != xno; then
3106  am_depcomp="$ac_aux_dir/depcomp"
3107  AMDEPBACKSLASH='\'
3108  am__nodep='_no'
3109fi
3110 if test "x$enable_dependency_tracking" != xno; then
3111  AMDEP_TRUE=
3112  AMDEP_FALSE='#'
3113else
3114  AMDEP_TRUE='#'
3115  AMDEP_FALSE=
3116fi
3117
3118
3119ac_ext=c
3120ac_cpp='$CPP $CPPFLAGS'
3121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3123ac_compiler_gnu=$ac_cv_c_compiler_gnu
3124if test -n "$ac_tool_prefix"; then
3125  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3126set dummy ${ac_tool_prefix}gcc; ac_word=$2
3127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3128$as_echo_n "checking for $ac_word... " >&6; }
3129if ${ac_cv_prog_CC+:} false; then :
3130  $as_echo_n "(cached) " >&6
3131else
3132  if test -n "$CC"; then
3133  ac_cv_prog_CC="$CC" # Let the user override the test.
3134else
3135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3136for as_dir in $PATH
3137do
3138  IFS=$as_save_IFS
3139  test -z "$as_dir" && as_dir=.
3140    for ac_exec_ext in '' $ac_executable_extensions; do
3141  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3142    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3143    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3144    break 2
3145  fi
3146done
3147  done
3148IFS=$as_save_IFS
3149
3150fi
3151fi
3152CC=$ac_cv_prog_CC
3153if test -n "$CC"; then
3154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3155$as_echo "$CC" >&6; }
3156else
3157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3158$as_echo "no" >&6; }
3159fi
3160
3161
3162fi
3163if test -z "$ac_cv_prog_CC"; then
3164  ac_ct_CC=$CC
3165  # Extract the first word of "gcc", so it can be a program name with args.
3166set dummy gcc; ac_word=$2
3167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3168$as_echo_n "checking for $ac_word... " >&6; }
3169if ${ac_cv_prog_ac_ct_CC+:} false; then :
3170  $as_echo_n "(cached) " >&6
3171else
3172  if test -n "$ac_ct_CC"; then
3173  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3174else
3175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176for as_dir in $PATH
3177do
3178  IFS=$as_save_IFS
3179  test -z "$as_dir" && as_dir=.
3180    for ac_exec_ext in '' $ac_executable_extensions; do
3181  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3182    ac_cv_prog_ac_ct_CC="gcc"
3183    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3184    break 2
3185  fi
3186done
3187  done
3188IFS=$as_save_IFS
3189
3190fi
3191fi
3192ac_ct_CC=$ac_cv_prog_ac_ct_CC
3193if test -n "$ac_ct_CC"; then
3194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3195$as_echo "$ac_ct_CC" >&6; }
3196else
3197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3198$as_echo "no" >&6; }
3199fi
3200
3201  if test "x$ac_ct_CC" = x; then
3202    CC=""
3203  else
3204    case $cross_compiling:$ac_tool_warned in
3205yes:)
3206{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3207$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3208ac_tool_warned=yes ;;
3209esac
3210    CC=$ac_ct_CC
3211  fi
3212else
3213  CC="$ac_cv_prog_CC"
3214fi
3215
3216if test -z "$CC"; then
3217          if test -n "$ac_tool_prefix"; then
3218    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3219set dummy ${ac_tool_prefix}cc; ac_word=$2
3220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3221$as_echo_n "checking for $ac_word... " >&6; }
3222if ${ac_cv_prog_CC+:} false; then :
3223  $as_echo_n "(cached) " >&6
3224else
3225  if test -n "$CC"; then
3226  ac_cv_prog_CC="$CC" # Let the user override the test.
3227else
3228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3229for as_dir in $PATH
3230do
3231  IFS=$as_save_IFS
3232  test -z "$as_dir" && as_dir=.
3233    for ac_exec_ext in '' $ac_executable_extensions; do
3234  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3235    ac_cv_prog_CC="${ac_tool_prefix}cc"
3236    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3237    break 2
3238  fi
3239done
3240  done
3241IFS=$as_save_IFS
3242
3243fi
3244fi
3245CC=$ac_cv_prog_CC
3246if test -n "$CC"; then
3247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3248$as_echo "$CC" >&6; }
3249else
3250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3251$as_echo "no" >&6; }
3252fi
3253
3254
3255  fi
3256fi
3257if test -z "$CC"; then
3258  # Extract the first word of "cc", so it can be a program name with args.
3259set dummy cc; ac_word=$2
3260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3261$as_echo_n "checking for $ac_word... " >&6; }
3262if ${ac_cv_prog_CC+:} false; then :
3263  $as_echo_n "(cached) " >&6
3264else
3265  if test -n "$CC"; then
3266  ac_cv_prog_CC="$CC" # Let the user override the test.
3267else
3268  ac_prog_rejected=no
3269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3270for as_dir in $PATH
3271do
3272  IFS=$as_save_IFS
3273  test -z "$as_dir" && as_dir=.
3274    for ac_exec_ext in '' $ac_executable_extensions; do
3275  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3276    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3277       ac_prog_rejected=yes
3278       continue
3279     fi
3280    ac_cv_prog_CC="cc"
3281    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3282    break 2
3283  fi
3284done
3285  done
3286IFS=$as_save_IFS
3287
3288if test $ac_prog_rejected = yes; then
3289  # We found a bogon in the path, so make sure we never use it.
3290  set dummy $ac_cv_prog_CC
3291  shift
3292  if test $# != 0; then
3293    # We chose a different compiler from the bogus one.
3294    # However, it has the same basename, so the bogon will be chosen
3295    # first if we set CC to just the basename; use the full file name.
3296    shift
3297    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3298  fi
3299fi
3300fi
3301fi
3302CC=$ac_cv_prog_CC
3303if test -n "$CC"; then
3304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3305$as_echo "$CC" >&6; }
3306else
3307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3308$as_echo "no" >&6; }
3309fi
3310
3311
3312fi
3313if test -z "$CC"; then
3314  if test -n "$ac_tool_prefix"; then
3315  for ac_prog in cl.exe
3316  do
3317    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3318set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3320$as_echo_n "checking for $ac_word... " >&6; }
3321if ${ac_cv_prog_CC+:} false; then :
3322  $as_echo_n "(cached) " >&6
3323else
3324  if test -n "$CC"; then
3325  ac_cv_prog_CC="$CC" # Let the user override the test.
3326else
3327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3328for as_dir in $PATH
3329do
3330  IFS=$as_save_IFS
3331  test -z "$as_dir" && as_dir=.
3332    for ac_exec_ext in '' $ac_executable_extensions; do
3333  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3334    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3335    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3336    break 2
3337  fi
3338done
3339  done
3340IFS=$as_save_IFS
3341
3342fi
3343fi
3344CC=$ac_cv_prog_CC
3345if test -n "$CC"; then
3346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3347$as_echo "$CC" >&6; }
3348else
3349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3350$as_echo "no" >&6; }
3351fi
3352
3353
3354    test -n "$CC" && break
3355  done
3356fi
3357if test -z "$CC"; then
3358  ac_ct_CC=$CC
3359  for ac_prog in cl.exe
3360do
3361  # Extract the first word of "$ac_prog", so it can be a program name with args.
3362set dummy $ac_prog; ac_word=$2
3363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3364$as_echo_n "checking for $ac_word... " >&6; }
3365if ${ac_cv_prog_ac_ct_CC+:} false; then :
3366  $as_echo_n "(cached) " >&6
3367else
3368  if test -n "$ac_ct_CC"; then
3369  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3370else
3371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372for as_dir in $PATH
3373do
3374  IFS=$as_save_IFS
3375  test -z "$as_dir" && as_dir=.
3376    for ac_exec_ext in '' $ac_executable_extensions; do
3377  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3378    ac_cv_prog_ac_ct_CC="$ac_prog"
3379    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3380    break 2
3381  fi
3382done
3383  done
3384IFS=$as_save_IFS
3385
3386fi
3387fi
3388ac_ct_CC=$ac_cv_prog_ac_ct_CC
3389if test -n "$ac_ct_CC"; then
3390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3391$as_echo "$ac_ct_CC" >&6; }
3392else
3393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3394$as_echo "no" >&6; }
3395fi
3396
3397
3398  test -n "$ac_ct_CC" && break
3399done
3400
3401  if test "x$ac_ct_CC" = x; then
3402    CC=""
3403  else
3404    case $cross_compiling:$ac_tool_warned in
3405yes:)
3406{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3407$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3408ac_tool_warned=yes ;;
3409esac
3410    CC=$ac_ct_CC
3411  fi
3412fi
3413
3414fi
3415
3416
3417test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3418$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3419as_fn_error $? "no acceptable C compiler found in \$PATH
3420See \`config.log' for more details" "$LINENO" 5; }
3421
3422# Provide some information about the compiler.
3423$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3424set X $ac_compile
3425ac_compiler=$2
3426for ac_option in --version -v -V -qversion; do
3427  { { ac_try="$ac_compiler $ac_option >&5"
3428case "(($ac_try" in
3429  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430  *) ac_try_echo=$ac_try;;
3431esac
3432eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3433$as_echo "$ac_try_echo"; } >&5
3434  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3435  ac_status=$?
3436  if test -s conftest.err; then
3437    sed '10a\
3438... rest of stderr output deleted ...
3439         10q' conftest.err >conftest.er1
3440    cat conftest.er1 >&5
3441  fi
3442  rm -f conftest.er1 conftest.err
3443  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3444  test $ac_status = 0; }
3445done
3446
3447cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3448/* end confdefs.h.  */
3449
3450int
3451main ()
3452{
3453
3454  ;
3455  return 0;
3456}
3457_ACEOF
3458ac_clean_files_save=$ac_clean_files
3459ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3460# Try to create an executable without -o first, disregard a.out.
3461# It will help us diagnose broken compilers, and finding out an intuition
3462# of exeext.
3463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3464$as_echo_n "checking whether the C compiler works... " >&6; }
3465ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3466
3467# The possible output files:
3468ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3469
3470ac_rmfiles=
3471for ac_file in $ac_files
3472do
3473  case $ac_file in
3474    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3475    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3476  esac
3477done
3478rm -f $ac_rmfiles
3479
3480if { { ac_try="$ac_link_default"
3481case "(($ac_try" in
3482  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3483  *) ac_try_echo=$ac_try;;
3484esac
3485eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3486$as_echo "$ac_try_echo"; } >&5
3487  (eval "$ac_link_default") 2>&5
3488  ac_status=$?
3489  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3490  test $ac_status = 0; }; then :
3491  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3492# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3493# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3494# so that the user can short-circuit this test for compilers unknown to
3495# Autoconf.
3496for ac_file in $ac_files ''
3497do
3498  test -f "$ac_file" || continue
3499  case $ac_file in
3500    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3501	;;
3502    [ab].out )
3503	# We found the default executable, but exeext='' is most
3504	# certainly right.
3505	break;;
3506    *.* )
3507	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3508	then :; else
3509	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3510	fi
3511	# We set ac_cv_exeext here because the later test for it is not
3512	# safe: cross compilers may not add the suffix if given an `-o'
3513	# argument, so we may need to know it at that point already.
3514	# Even if this section looks crufty: it has the advantage of
3515	# actually working.
3516	break;;
3517    * )
3518	break;;
3519  esac
3520done
3521test "$ac_cv_exeext" = no && ac_cv_exeext=
3522
3523else
3524  ac_file=''
3525fi
3526if test -z "$ac_file"; then :
3527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528$as_echo "no" >&6; }
3529$as_echo "$as_me: failed program was:" >&5
3530sed 's/^/| /' conftest.$ac_ext >&5
3531
3532{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3533$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3534as_fn_error 77 "C compiler cannot create executables
3535See \`config.log' for more details" "$LINENO" 5; }
3536else
3537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3538$as_echo "yes" >&6; }
3539fi
3540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3541$as_echo_n "checking for C compiler default output file name... " >&6; }
3542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3543$as_echo "$ac_file" >&6; }
3544ac_exeext=$ac_cv_exeext
3545
3546rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3547ac_clean_files=$ac_clean_files_save
3548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3549$as_echo_n "checking for suffix of executables... " >&6; }
3550if { { ac_try="$ac_link"
3551case "(($ac_try" in
3552  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3553  *) ac_try_echo=$ac_try;;
3554esac
3555eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3556$as_echo "$ac_try_echo"; } >&5
3557  (eval "$ac_link") 2>&5
3558  ac_status=$?
3559  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3560  test $ac_status = 0; }; then :
3561  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3562# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3563# work properly (i.e., refer to `conftest.exe'), while it won't with
3564# `rm'.
3565for ac_file in conftest.exe conftest conftest.*; do
3566  test -f "$ac_file" || continue
3567  case $ac_file in
3568    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3569    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3570	  break;;
3571    * ) break;;
3572  esac
3573done
3574else
3575  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3576$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3577as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3578See \`config.log' for more details" "$LINENO" 5; }
3579fi
3580rm -f conftest conftest$ac_cv_exeext
3581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3582$as_echo "$ac_cv_exeext" >&6; }
3583
3584rm -f conftest.$ac_ext
3585EXEEXT=$ac_cv_exeext
3586ac_exeext=$EXEEXT
3587cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3588/* end confdefs.h.  */
3589#include <stdio.h>
3590int
3591main ()
3592{
3593FILE *f = fopen ("conftest.out", "w");
3594 return ferror (f) || fclose (f) != 0;
3595
3596  ;
3597  return 0;
3598}
3599_ACEOF
3600ac_clean_files="$ac_clean_files conftest.out"
3601# Check that the compiler produces executables we can run.  If not, either
3602# the compiler is broken, or we cross compile.
3603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3604$as_echo_n "checking whether we are cross compiling... " >&6; }
3605if test "$cross_compiling" != yes; then
3606  { { ac_try="$ac_link"
3607case "(($ac_try" in
3608  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609  *) ac_try_echo=$ac_try;;
3610esac
3611eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3612$as_echo "$ac_try_echo"; } >&5
3613  (eval "$ac_link") 2>&5
3614  ac_status=$?
3615  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3616  test $ac_status = 0; }
3617  if { ac_try='./conftest$ac_cv_exeext'
3618  { { case "(($ac_try" in
3619  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3620  *) ac_try_echo=$ac_try;;
3621esac
3622eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3623$as_echo "$ac_try_echo"; } >&5
3624  (eval "$ac_try") 2>&5
3625  ac_status=$?
3626  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3627  test $ac_status = 0; }; }; then
3628    cross_compiling=no
3629  else
3630    if test "$cross_compiling" = maybe; then
3631	cross_compiling=yes
3632    else
3633	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3634$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3635as_fn_error $? "cannot run C compiled programs.
3636If you meant to cross compile, use \`--host'.
3637See \`config.log' for more details" "$LINENO" 5; }
3638    fi
3639  fi
3640fi
3641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3642$as_echo "$cross_compiling" >&6; }
3643
3644rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3645ac_clean_files=$ac_clean_files_save
3646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3647$as_echo_n "checking for suffix of object files... " >&6; }
3648if ${ac_cv_objext+:} false; then :
3649  $as_echo_n "(cached) " >&6
3650else
3651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3652/* end confdefs.h.  */
3653
3654int
3655main ()
3656{
3657
3658  ;
3659  return 0;
3660}
3661_ACEOF
3662rm -f conftest.o conftest.obj
3663if { { ac_try="$ac_compile"
3664case "(($ac_try" in
3665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3666  *) ac_try_echo=$ac_try;;
3667esac
3668eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3669$as_echo "$ac_try_echo"; } >&5
3670  (eval "$ac_compile") 2>&5
3671  ac_status=$?
3672  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3673  test $ac_status = 0; }; then :
3674  for ac_file in conftest.o conftest.obj conftest.*; do
3675  test -f "$ac_file" || continue;
3676  case $ac_file in
3677    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3678    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3679       break;;
3680  esac
3681done
3682else
3683  $as_echo "$as_me: failed program was:" >&5
3684sed 's/^/| /' conftest.$ac_ext >&5
3685
3686{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3687$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3688as_fn_error $? "cannot compute suffix of object files: cannot compile
3689See \`config.log' for more details" "$LINENO" 5; }
3690fi
3691rm -f conftest.$ac_cv_objext conftest.$ac_ext
3692fi
3693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3694$as_echo "$ac_cv_objext" >&6; }
3695OBJEXT=$ac_cv_objext
3696ac_objext=$OBJEXT
3697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3698$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3699if ${ac_cv_c_compiler_gnu+:} false; then :
3700  $as_echo_n "(cached) " >&6
3701else
3702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703/* end confdefs.h.  */
3704
3705int
3706main ()
3707{
3708#ifndef __GNUC__
3709       choke me
3710#endif
3711
3712  ;
3713  return 0;
3714}
3715_ACEOF
3716if ac_fn_c_try_compile "$LINENO"; then :
3717  ac_compiler_gnu=yes
3718else
3719  ac_compiler_gnu=no
3720fi
3721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3722ac_cv_c_compiler_gnu=$ac_compiler_gnu
3723
3724fi
3725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3726$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3727if test $ac_compiler_gnu = yes; then
3728  GCC=yes
3729else
3730  GCC=
3731fi
3732ac_test_CFLAGS=${CFLAGS+set}
3733ac_save_CFLAGS=$CFLAGS
3734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3735$as_echo_n "checking whether $CC accepts -g... " >&6; }
3736if ${ac_cv_prog_cc_g+:} false; then :
3737  $as_echo_n "(cached) " >&6
3738else
3739  ac_save_c_werror_flag=$ac_c_werror_flag
3740   ac_c_werror_flag=yes
3741   ac_cv_prog_cc_g=no
3742   CFLAGS="-g"
3743   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3744/* end confdefs.h.  */
3745
3746int
3747main ()
3748{
3749
3750  ;
3751  return 0;
3752}
3753_ACEOF
3754if ac_fn_c_try_compile "$LINENO"; then :
3755  ac_cv_prog_cc_g=yes
3756else
3757  CFLAGS=""
3758      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3759/* end confdefs.h.  */
3760
3761int
3762main ()
3763{
3764
3765  ;
3766  return 0;
3767}
3768_ACEOF
3769if ac_fn_c_try_compile "$LINENO"; then :
3770
3771else
3772  ac_c_werror_flag=$ac_save_c_werror_flag
3773	 CFLAGS="-g"
3774	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3775/* end confdefs.h.  */
3776
3777int
3778main ()
3779{
3780
3781  ;
3782  return 0;
3783}
3784_ACEOF
3785if ac_fn_c_try_compile "$LINENO"; then :
3786  ac_cv_prog_cc_g=yes
3787fi
3788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3789fi
3790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3791fi
3792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3793   ac_c_werror_flag=$ac_save_c_werror_flag
3794fi
3795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3796$as_echo "$ac_cv_prog_cc_g" >&6; }
3797if test "$ac_test_CFLAGS" = set; then
3798  CFLAGS=$ac_save_CFLAGS
3799elif test $ac_cv_prog_cc_g = yes; then
3800  if test "$GCC" = yes; then
3801    CFLAGS="-g -O2"
3802  else
3803    CFLAGS="-g"
3804  fi
3805else
3806  if test "$GCC" = yes; then
3807    CFLAGS="-O2"
3808  else
3809    CFLAGS=
3810  fi
3811fi
3812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3813$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3814if ${ac_cv_prog_cc_c89+:} false; then :
3815  $as_echo_n "(cached) " >&6
3816else
3817  ac_cv_prog_cc_c89=no
3818ac_save_CC=$CC
3819cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820/* end confdefs.h.  */
3821#include <stdarg.h>
3822#include <stdio.h>
3823#include <sys/types.h>
3824#include <sys/stat.h>
3825/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3826struct buf { int x; };
3827FILE * (*rcsopen) (struct buf *, struct stat *, int);
3828static char *e (p, i)
3829     char **p;
3830     int i;
3831{
3832  return p[i];
3833}
3834static char *f (char * (*g) (char **, int), char **p, ...)
3835{
3836  char *s;
3837  va_list v;
3838  va_start (v,p);
3839  s = g (p, va_arg (v,int));
3840  va_end (v);
3841  return s;
3842}
3843
3844/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3845   function prototypes and stuff, but not '\xHH' hex character constants.
3846   These don't provoke an error unfortunately, instead are silently treated
3847   as 'x'.  The following induces an error, until -std is added to get
3848   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3849   array size at least.  It's necessary to write '\x00'==0 to get something
3850   that's true only with -std.  */
3851int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3852
3853/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3854   inside strings and character constants.  */
3855#define FOO(x) 'x'
3856int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3857
3858int test (int i, double x);
3859struct s1 {int (*f) (int a);};
3860struct s2 {int (*f) (double a);};
3861int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3862int argc;
3863char **argv;
3864int
3865main ()
3866{
3867return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3868  ;
3869  return 0;
3870}
3871_ACEOF
3872for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3873	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3874do
3875  CC="$ac_save_CC $ac_arg"
3876  if ac_fn_c_try_compile "$LINENO"; then :
3877  ac_cv_prog_cc_c89=$ac_arg
3878fi
3879rm -f core conftest.err conftest.$ac_objext
3880  test "x$ac_cv_prog_cc_c89" != "xno" && break
3881done
3882rm -f conftest.$ac_ext
3883CC=$ac_save_CC
3884
3885fi
3886# AC_CACHE_VAL
3887case "x$ac_cv_prog_cc_c89" in
3888  x)
3889    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3890$as_echo "none needed" >&6; } ;;
3891  xno)
3892    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3893$as_echo "unsupported" >&6; } ;;
3894  *)
3895    CC="$CC $ac_cv_prog_cc_c89"
3896    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3897$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3898esac
3899if test "x$ac_cv_prog_cc_c89" != xno; then :
3900
3901fi
3902
3903ac_ext=c
3904ac_cpp='$CPP $CPPFLAGS'
3905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3907ac_compiler_gnu=$ac_cv_c_compiler_gnu
3908
3909depcc="$CC"   am_compiler_list=
3910
3911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3912$as_echo_n "checking dependency style of $depcc... " >&6; }
3913if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3914  $as_echo_n "(cached) " >&6
3915else
3916  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3917  # We make a subdir and do the tests there.  Otherwise we can end up
3918  # making bogus files that we don't know about and never remove.  For
3919  # instance it was reported that on HP-UX the gcc test will end up
3920  # making a dummy file named `D' -- because `-MD' means `put the output
3921  # in D'.
3922  rm -rf conftest.dir
3923  mkdir conftest.dir
3924  # Copy depcomp to subdir because otherwise we won't find it if we're
3925  # using a relative directory.
3926  cp "$am_depcomp" conftest.dir
3927  cd conftest.dir
3928  # We will build objects and dependencies in a subdirectory because
3929  # it helps to detect inapplicable dependency modes.  For instance
3930  # both Tru64's cc and ICC support -MD to output dependencies as a
3931  # side effect of compilation, but ICC will put the dependencies in
3932  # the current directory while Tru64 will put them in the object
3933  # directory.
3934  mkdir sub
3935
3936  am_cv_CC_dependencies_compiler_type=none
3937  if test "$am_compiler_list" = ""; then
3938     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3939  fi
3940  am__universal=false
3941  case " $depcc " in #(
3942     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3943     esac
3944
3945  for depmode in $am_compiler_list; do
3946    # Setup a source with many dependencies, because some compilers
3947    # like to wrap large dependency lists on column 80 (with \), and
3948    # we should not choose a depcomp mode which is confused by this.
3949    #
3950    # We need to recreate these files for each test, as the compiler may
3951    # overwrite some of them when testing with obscure command lines.
3952    # This happens at least with the AIX C compiler.
3953    : > sub/conftest.c
3954    for i in 1 2 3 4 5 6; do
3955      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3956      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3957      # Solaris 8's {/usr,}/bin/sh.
3958      touch sub/conftst$i.h
3959    done
3960    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3961
3962    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3963    # mode.  It turns out that the SunPro C++ compiler does not properly
3964    # handle `-M -o', and we need to detect this.  Also, some Intel
3965    # versions had trouble with output in subdirs
3966    am__obj=sub/conftest.${OBJEXT-o}
3967    am__minus_obj="-o $am__obj"
3968    case $depmode in
3969    gcc)
3970      # This depmode causes a compiler race in universal mode.
3971      test "$am__universal" = false || continue
3972      ;;
3973    nosideeffect)
3974      # after this tag, mechanisms are not by side-effect, so they'll
3975      # only be used when explicitly requested
3976      if test "x$enable_dependency_tracking" = xyes; then
3977	continue
3978      else
3979	break
3980      fi
3981      ;;
3982    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3983      # This compiler won't grok `-c -o', but also, the minuso test has
3984      # not run yet.  These depmodes are late enough in the game, and
3985      # so weak that their functioning should not be impacted.
3986      am__obj=conftest.${OBJEXT-o}
3987      am__minus_obj=
3988      ;;
3989    none) break ;;
3990    esac
3991    if depmode=$depmode \
3992       source=sub/conftest.c object=$am__obj \
3993       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3994       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3995         >/dev/null 2>conftest.err &&
3996       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3997       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3998       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3999       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4000      # icc doesn't choke on unknown options, it will just issue warnings
4001      # or remarks (even with -Werror).  So we grep stderr for any message
4002      # that says an option was ignored or not supported.
4003      # When given -MP, icc 7.0 and 7.1 complain thusly:
4004      #   icc: Command line warning: ignoring option '-M'; no argument required
4005      # The diagnosis changed in icc 8.0:
4006      #   icc: Command line remark: option '-MP' not supported
4007      if (grep 'ignoring option' conftest.err ||
4008          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4009        am_cv_CC_dependencies_compiler_type=$depmode
4010        break
4011      fi
4012    fi
4013  done
4014
4015  cd ..
4016  rm -rf conftest.dir
4017else
4018  am_cv_CC_dependencies_compiler_type=none
4019fi
4020
4021fi
4022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4023$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4024CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4025
4026 if
4027  test "x$enable_dependency_tracking" != xno \
4028  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4029  am__fastdepCC_TRUE=
4030  am__fastdepCC_FALSE='#'
4031else
4032  am__fastdepCC_TRUE='#'
4033  am__fastdepCC_FALSE=
4034fi
4035
4036
4037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4038$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4039if ${ac_cv_path_SED+:} false; then :
4040  $as_echo_n "(cached) " >&6
4041else
4042            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4043     for ac_i in 1 2 3 4 5 6 7; do
4044       ac_script="$ac_script$as_nl$ac_script"
4045     done
4046     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4047     { ac_script=; unset ac_script;}
4048     if test -z "$SED"; then
4049  ac_path_SED_found=false
4050  # Loop through the user's path and test for each of PROGNAME-LIST
4051  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4052for as_dir in $PATH
4053do
4054  IFS=$as_save_IFS
4055  test -z "$as_dir" && as_dir=.
4056    for ac_prog in sed gsed; do
4057    for ac_exec_ext in '' $ac_executable_extensions; do
4058      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4059      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4060# Check for GNU ac_path_SED and select it if it is found.
4061  # Check for GNU $ac_path_SED
4062case `"$ac_path_SED" --version 2>&1` in
4063*GNU*)
4064  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4065*)
4066  ac_count=0
4067  $as_echo_n 0123456789 >"conftest.in"
4068  while :
4069  do
4070    cat "conftest.in" "conftest.in" >"conftest.tmp"
4071    mv "conftest.tmp" "conftest.in"
4072    cp "conftest.in" "conftest.nl"
4073    $as_echo '' >> "conftest.nl"
4074    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4075    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4076    as_fn_arith $ac_count + 1 && ac_count=$as_val
4077    if test $ac_count -gt ${ac_path_SED_max-0}; then
4078      # Best one so far, save it but keep looking for a better one
4079      ac_cv_path_SED="$ac_path_SED"
4080      ac_path_SED_max=$ac_count
4081    fi
4082    # 10*(2^10) chars as input seems more than enough
4083    test $ac_count -gt 10 && break
4084  done
4085  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4086esac
4087
4088      $ac_path_SED_found && break 3
4089    done
4090  done
4091  done
4092IFS=$as_save_IFS
4093  if test -z "$ac_cv_path_SED"; then
4094    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4095  fi
4096else
4097  ac_cv_path_SED=$SED
4098fi
4099
4100fi
4101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4102$as_echo "$ac_cv_path_SED" >&6; }
4103 SED="$ac_cv_path_SED"
4104  rm -f conftest.sed
4105
4106test -z "$SED" && SED=sed
4107Xsed="$SED -e 1s/^X//"
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4120$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4121if ${ac_cv_path_GREP+:} false; then :
4122  $as_echo_n "(cached) " >&6
4123else
4124  if test -z "$GREP"; then
4125  ac_path_GREP_found=false
4126  # Loop through the user's path and test for each of PROGNAME-LIST
4127  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4129do
4130  IFS=$as_save_IFS
4131  test -z "$as_dir" && as_dir=.
4132    for ac_prog in grep ggrep; do
4133    for ac_exec_ext in '' $ac_executable_extensions; do
4134      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4135      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4136# Check for GNU ac_path_GREP and select it if it is found.
4137  # Check for GNU $ac_path_GREP
4138case `"$ac_path_GREP" --version 2>&1` in
4139*GNU*)
4140  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4141*)
4142  ac_count=0
4143  $as_echo_n 0123456789 >"conftest.in"
4144  while :
4145  do
4146    cat "conftest.in" "conftest.in" >"conftest.tmp"
4147    mv "conftest.tmp" "conftest.in"
4148    cp "conftest.in" "conftest.nl"
4149    $as_echo 'GREP' >> "conftest.nl"
4150    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4151    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4152    as_fn_arith $ac_count + 1 && ac_count=$as_val
4153    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4154      # Best one so far, save it but keep looking for a better one
4155      ac_cv_path_GREP="$ac_path_GREP"
4156      ac_path_GREP_max=$ac_count
4157    fi
4158    # 10*(2^10) chars as input seems more than enough
4159    test $ac_count -gt 10 && break
4160  done
4161  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4162esac
4163
4164      $ac_path_GREP_found && break 3
4165    done
4166  done
4167  done
4168IFS=$as_save_IFS
4169  if test -z "$ac_cv_path_GREP"; then
4170    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4171  fi
4172else
4173  ac_cv_path_GREP=$GREP
4174fi
4175
4176fi
4177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4178$as_echo "$ac_cv_path_GREP" >&6; }
4179 GREP="$ac_cv_path_GREP"
4180
4181
4182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4183$as_echo_n "checking for egrep... " >&6; }
4184if ${ac_cv_path_EGREP+:} false; then :
4185  $as_echo_n "(cached) " >&6
4186else
4187  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4188   then ac_cv_path_EGREP="$GREP -E"
4189   else
4190     if test -z "$EGREP"; then
4191  ac_path_EGREP_found=false
4192  # Loop through the user's path and test for each of PROGNAME-LIST
4193  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4195do
4196  IFS=$as_save_IFS
4197  test -z "$as_dir" && as_dir=.
4198    for ac_prog in egrep; do
4199    for ac_exec_ext in '' $ac_executable_extensions; do
4200      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4201      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4202# Check for GNU ac_path_EGREP and select it if it is found.
4203  # Check for GNU $ac_path_EGREP
4204case `"$ac_path_EGREP" --version 2>&1` in
4205*GNU*)
4206  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4207*)
4208  ac_count=0
4209  $as_echo_n 0123456789 >"conftest.in"
4210  while :
4211  do
4212    cat "conftest.in" "conftest.in" >"conftest.tmp"
4213    mv "conftest.tmp" "conftest.in"
4214    cp "conftest.in" "conftest.nl"
4215    $as_echo 'EGREP' >> "conftest.nl"
4216    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4217    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4218    as_fn_arith $ac_count + 1 && ac_count=$as_val
4219    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4220      # Best one so far, save it but keep looking for a better one
4221      ac_cv_path_EGREP="$ac_path_EGREP"
4222      ac_path_EGREP_max=$ac_count
4223    fi
4224    # 10*(2^10) chars as input seems more than enough
4225    test $ac_count -gt 10 && break
4226  done
4227  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4228esac
4229
4230      $ac_path_EGREP_found && break 3
4231    done
4232  done
4233  done
4234IFS=$as_save_IFS
4235  if test -z "$ac_cv_path_EGREP"; then
4236    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4237  fi
4238else
4239  ac_cv_path_EGREP=$EGREP
4240fi
4241
4242   fi
4243fi
4244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4245$as_echo "$ac_cv_path_EGREP" >&6; }
4246 EGREP="$ac_cv_path_EGREP"
4247
4248
4249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4250$as_echo_n "checking for fgrep... " >&6; }
4251if ${ac_cv_path_FGREP+:} false; then :
4252  $as_echo_n "(cached) " >&6
4253else
4254  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4255   then ac_cv_path_FGREP="$GREP -F"
4256   else
4257     if test -z "$FGREP"; then
4258  ac_path_FGREP_found=false
4259  # Loop through the user's path and test for each of PROGNAME-LIST
4260  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4261for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4262do
4263  IFS=$as_save_IFS
4264  test -z "$as_dir" && as_dir=.
4265    for ac_prog in fgrep; do
4266    for ac_exec_ext in '' $ac_executable_extensions; do
4267      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4268      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4269# Check for GNU ac_path_FGREP and select it if it is found.
4270  # Check for GNU $ac_path_FGREP
4271case `"$ac_path_FGREP" --version 2>&1` in
4272*GNU*)
4273  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4274*)
4275  ac_count=0
4276  $as_echo_n 0123456789 >"conftest.in"
4277  while :
4278  do
4279    cat "conftest.in" "conftest.in" >"conftest.tmp"
4280    mv "conftest.tmp" "conftest.in"
4281    cp "conftest.in" "conftest.nl"
4282    $as_echo 'FGREP' >> "conftest.nl"
4283    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4284    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4285    as_fn_arith $ac_count + 1 && ac_count=$as_val
4286    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4287      # Best one so far, save it but keep looking for a better one
4288      ac_cv_path_FGREP="$ac_path_FGREP"
4289      ac_path_FGREP_max=$ac_count
4290    fi
4291    # 10*(2^10) chars as input seems more than enough
4292    test $ac_count -gt 10 && break
4293  done
4294  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4295esac
4296
4297      $ac_path_FGREP_found && break 3
4298    done
4299  done
4300  done
4301IFS=$as_save_IFS
4302  if test -z "$ac_cv_path_FGREP"; then
4303    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4304  fi
4305else
4306  ac_cv_path_FGREP=$FGREP
4307fi
4308
4309   fi
4310fi
4311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4312$as_echo "$ac_cv_path_FGREP" >&6; }
4313 FGREP="$ac_cv_path_FGREP"
4314
4315
4316test -z "$GREP" && GREP=grep
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336# Check whether --with-gnu-ld was given.
4337if test "${with_gnu_ld+set}" = set; then :
4338  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4339else
4340  with_gnu_ld=no
4341fi
4342
4343ac_prog=ld
4344if test "$GCC" = yes; then
4345  # Check if gcc -print-prog-name=ld gives a path.
4346  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4347$as_echo_n "checking for ld used by $CC... " >&6; }
4348  case $host in
4349  *-*-mingw*)
4350    # gcc leaves a trailing carriage return which upsets mingw
4351    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4352  *)
4353    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4354  esac
4355  case $ac_prog in
4356    # Accept absolute paths.
4357    [\\/]* | ?:[\\/]*)
4358      re_direlt='/[^/][^/]*/\.\./'
4359      # Canonicalize the pathname of ld
4360      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4361      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4362	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4363      done
4364      test -z "$LD" && LD="$ac_prog"
4365      ;;
4366  "")
4367    # If it fails, then pretend we aren't using GCC.
4368    ac_prog=ld
4369    ;;
4370  *)
4371    # If it is relative, then search for the first ld in PATH.
4372    with_gnu_ld=unknown
4373    ;;
4374  esac
4375elif test "$with_gnu_ld" = yes; then
4376  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4377$as_echo_n "checking for GNU ld... " >&6; }
4378else
4379  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4380$as_echo_n "checking for non-GNU ld... " >&6; }
4381fi
4382if ${lt_cv_path_LD+:} false; then :
4383  $as_echo_n "(cached) " >&6
4384else
4385  if test -z "$LD"; then
4386  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4387  for ac_dir in $PATH; do
4388    IFS="$lt_save_ifs"
4389    test -z "$ac_dir" && ac_dir=.
4390    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4391      lt_cv_path_LD="$ac_dir/$ac_prog"
4392      # Check to see if the program is GNU ld.  I'd rather use --version,
4393      # but apparently some variants of GNU ld only accept -v.
4394      # Break only if it was the GNU/non-GNU ld that we prefer.
4395      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4396      *GNU* | *'with BFD'*)
4397	test "$with_gnu_ld" != no && break
4398	;;
4399      *)
4400	test "$with_gnu_ld" != yes && break
4401	;;
4402      esac
4403    fi
4404  done
4405  IFS="$lt_save_ifs"
4406else
4407  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4408fi
4409fi
4410
4411LD="$lt_cv_path_LD"
4412if test -n "$LD"; then
4413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4414$as_echo "$LD" >&6; }
4415else
4416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4417$as_echo "no" >&6; }
4418fi
4419test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4421$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4422if ${lt_cv_prog_gnu_ld+:} false; then :
4423  $as_echo_n "(cached) " >&6
4424else
4425  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4426case `$LD -v 2>&1 </dev/null` in
4427*GNU* | *'with BFD'*)
4428  lt_cv_prog_gnu_ld=yes
4429  ;;
4430*)
4431  lt_cv_prog_gnu_ld=no
4432  ;;
4433esac
4434fi
4435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4436$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4437with_gnu_ld=$lt_cv_prog_gnu_ld
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4448$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4449if ${lt_cv_path_NM+:} false; then :
4450  $as_echo_n "(cached) " >&6
4451else
4452  if test -n "$NM"; then
4453  # Let the user override the test.
4454  lt_cv_path_NM="$NM"
4455else
4456  lt_nm_to_check="${ac_tool_prefix}nm"
4457  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4458    lt_nm_to_check="$lt_nm_to_check nm"
4459  fi
4460  for lt_tmp_nm in $lt_nm_to_check; do
4461    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4462    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4463      IFS="$lt_save_ifs"
4464      test -z "$ac_dir" && ac_dir=.
4465      tmp_nm="$ac_dir/$lt_tmp_nm"
4466      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4467	# Check to see if the nm accepts a BSD-compat flag.
4468	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4469	#   nm: unknown option "B" ignored
4470	# Tru64's nm complains that /dev/null is an invalid object file
4471	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4472	*/dev/null* | *'Invalid file or object type'*)
4473	  lt_cv_path_NM="$tmp_nm -B"
4474	  break
4475	  ;;
4476	*)
4477	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4478	  */dev/null*)
4479	    lt_cv_path_NM="$tmp_nm -p"
4480	    break
4481	    ;;
4482	  *)
4483	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4484	    continue # so that we can try to find one that supports BSD flags
4485	    ;;
4486	  esac
4487	  ;;
4488	esac
4489      fi
4490    done
4491    IFS="$lt_save_ifs"
4492  done
4493  : ${lt_cv_path_NM=no}
4494fi
4495fi
4496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4497$as_echo "$lt_cv_path_NM" >&6; }
4498if test "$lt_cv_path_NM" != "no"; then
4499  NM="$lt_cv_path_NM"
4500else
4501  # Didn't find any BSD compatible name lister, look for dumpbin.
4502  if test -n "$DUMPBIN"; then :
4503    # Let the user override the test.
4504  else
4505    if test -n "$ac_tool_prefix"; then
4506  for ac_prog in dumpbin "link -dump"
4507  do
4508    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4509set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4511$as_echo_n "checking for $ac_word... " >&6; }
4512if ${ac_cv_prog_DUMPBIN+:} false; then :
4513  $as_echo_n "(cached) " >&6
4514else
4515  if test -n "$DUMPBIN"; then
4516  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4517else
4518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519for as_dir in $PATH
4520do
4521  IFS=$as_save_IFS
4522  test -z "$as_dir" && as_dir=.
4523    for ac_exec_ext in '' $ac_executable_extensions; do
4524  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4525    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4526    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4527    break 2
4528  fi
4529done
4530  done
4531IFS=$as_save_IFS
4532
4533fi
4534fi
4535DUMPBIN=$ac_cv_prog_DUMPBIN
4536if test -n "$DUMPBIN"; then
4537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4538$as_echo "$DUMPBIN" >&6; }
4539else
4540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4541$as_echo "no" >&6; }
4542fi
4543
4544
4545    test -n "$DUMPBIN" && break
4546  done
4547fi
4548if test -z "$DUMPBIN"; then
4549  ac_ct_DUMPBIN=$DUMPBIN
4550  for ac_prog in dumpbin "link -dump"
4551do
4552  # Extract the first word of "$ac_prog", so it can be a program name with args.
4553set dummy $ac_prog; ac_word=$2
4554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4555$as_echo_n "checking for $ac_word... " >&6; }
4556if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4557  $as_echo_n "(cached) " >&6
4558else
4559  if test -n "$ac_ct_DUMPBIN"; then
4560  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4561else
4562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563for as_dir in $PATH
4564do
4565  IFS=$as_save_IFS
4566  test -z "$as_dir" && as_dir=.
4567    for ac_exec_ext in '' $ac_executable_extensions; do
4568  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4569    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4570    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4571    break 2
4572  fi
4573done
4574  done
4575IFS=$as_save_IFS
4576
4577fi
4578fi
4579ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4580if test -n "$ac_ct_DUMPBIN"; then
4581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4582$as_echo "$ac_ct_DUMPBIN" >&6; }
4583else
4584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4585$as_echo "no" >&6; }
4586fi
4587
4588
4589  test -n "$ac_ct_DUMPBIN" && break
4590done
4591
4592  if test "x$ac_ct_DUMPBIN" = x; then
4593    DUMPBIN=":"
4594  else
4595    case $cross_compiling:$ac_tool_warned in
4596yes:)
4597{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4598$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4599ac_tool_warned=yes ;;
4600esac
4601    DUMPBIN=$ac_ct_DUMPBIN
4602  fi
4603fi
4604
4605    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4606    *COFF*)
4607      DUMPBIN="$DUMPBIN -symbols"
4608      ;;
4609    *)
4610      DUMPBIN=:
4611      ;;
4612    esac
4613  fi
4614
4615  if test "$DUMPBIN" != ":"; then
4616    NM="$DUMPBIN"
4617  fi
4618fi
4619test -z "$NM" && NM=nm
4620
4621
4622
4623
4624
4625
4626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4627$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4628if ${lt_cv_nm_interface+:} false; then :
4629  $as_echo_n "(cached) " >&6
4630else
4631  lt_cv_nm_interface="BSD nm"
4632  echo "int some_variable = 0;" > conftest.$ac_ext
4633  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4634  (eval "$ac_compile" 2>conftest.err)
4635  cat conftest.err >&5
4636  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4637  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4638  cat conftest.err >&5
4639  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4640  cat conftest.out >&5
4641  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4642    lt_cv_nm_interface="MS dumpbin"
4643  fi
4644  rm -f conftest*
4645fi
4646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4647$as_echo "$lt_cv_nm_interface" >&6; }
4648
4649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4650$as_echo_n "checking whether ln -s works... " >&6; }
4651LN_S=$as_ln_s
4652if test "$LN_S" = "ln -s"; then
4653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4654$as_echo "yes" >&6; }
4655else
4656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4657$as_echo "no, using $LN_S" >&6; }
4658fi
4659
4660# find the maximum length of command line arguments
4661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4662$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4663if ${lt_cv_sys_max_cmd_len+:} false; then :
4664  $as_echo_n "(cached) " >&6
4665else
4666    i=0
4667  teststring="ABCD"
4668
4669  case $build_os in
4670  msdosdjgpp*)
4671    # On DJGPP, this test can blow up pretty badly due to problems in libc
4672    # (any single argument exceeding 2000 bytes causes a buffer overrun
4673    # during glob expansion).  Even if it were fixed, the result of this
4674    # check would be larger than it should be.
4675    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4676    ;;
4677
4678  gnu*)
4679    # Under GNU Hurd, this test is not required because there is
4680    # no limit to the length of command line arguments.
4681    # Libtool will interpret -1 as no limit whatsoever
4682    lt_cv_sys_max_cmd_len=-1;
4683    ;;
4684
4685  cygwin* | mingw* | cegcc*)
4686    # On Win9x/ME, this test blows up -- it succeeds, but takes
4687    # about 5 minutes as the teststring grows exponentially.
4688    # Worse, since 9x/ME are not pre-emptively multitasking,
4689    # you end up with a "frozen" computer, even though with patience
4690    # the test eventually succeeds (with a max line length of 256k).
4691    # Instead, let's just punt: use the minimum linelength reported by
4692    # all of the supported platforms: 8192 (on NT/2K/XP).
4693    lt_cv_sys_max_cmd_len=8192;
4694    ;;
4695
4696  mint*)
4697    # On MiNT this can take a long time and run out of memory.
4698    lt_cv_sys_max_cmd_len=8192;
4699    ;;
4700
4701  amigaos*)
4702    # On AmigaOS with pdksh, this test takes hours, literally.
4703    # So we just punt and use a minimum line length of 8192.
4704    lt_cv_sys_max_cmd_len=8192;
4705    ;;
4706
4707  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4708    # This has been around since 386BSD, at least.  Likely further.
4709    if test -x /sbin/sysctl; then
4710      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4711    elif test -x /usr/sbin/sysctl; then
4712      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4713    else
4714      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4715    fi
4716    # And add a safety zone
4717    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4718    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4719    ;;
4720
4721  interix*)
4722    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4723    lt_cv_sys_max_cmd_len=196608
4724    ;;
4725
4726  os2*)
4727    # The test takes a long time on OS/2.
4728    lt_cv_sys_max_cmd_len=8192
4729    ;;
4730
4731  osf*)
4732    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4733    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4734    # nice to cause kernel panics so lets avoid the loop below.
4735    # First set a reasonable default.
4736    lt_cv_sys_max_cmd_len=16384
4737    #
4738    if test -x /sbin/sysconfig; then
4739      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4740        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4741      esac
4742    fi
4743    ;;
4744  sco3.2v5*)
4745    lt_cv_sys_max_cmd_len=102400
4746    ;;
4747  sysv5* | sco5v6* | sysv4.2uw2*)
4748    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4749    if test -n "$kargmax"; then
4750      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4751    else
4752      lt_cv_sys_max_cmd_len=32768
4753    fi
4754    ;;
4755  *)
4756    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4757    if test -n "$lt_cv_sys_max_cmd_len"; then
4758      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4759      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4760    else
4761      # Make teststring a little bigger before we do anything with it.
4762      # a 1K string should be a reasonable start.
4763      for i in 1 2 3 4 5 6 7 8 ; do
4764        teststring=$teststring$teststring
4765      done
4766      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4767      # If test is not a shell built-in, we'll probably end up computing a
4768      # maximum length that is only half of the actual maximum length, but
4769      # we can't tell.
4770      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4771	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4772	      test $i != 17 # 1/2 MB should be enough
4773      do
4774        i=`expr $i + 1`
4775        teststring=$teststring$teststring
4776      done
4777      # Only check the string length outside the loop.
4778      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4779      teststring=
4780      # Add a significant safety factor because C++ compilers can tack on
4781      # massive amounts of additional arguments before passing them to the
4782      # linker.  It appears as though 1/2 is a usable value.
4783      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4784    fi
4785    ;;
4786  esac
4787
4788fi
4789
4790if test -n $lt_cv_sys_max_cmd_len ; then
4791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4792$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4793else
4794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4795$as_echo "none" >&6; }
4796fi
4797max_cmd_len=$lt_cv_sys_max_cmd_len
4798
4799
4800
4801
4802
4803
4804: ${CP="cp -f"}
4805: ${MV="mv -f"}
4806: ${RM="rm -f"}
4807
4808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4809$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4810# Try some XSI features
4811xsi_shell=no
4812( _lt_dummy="a/b/c"
4813  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4814      = c,a/b,b/c, \
4815    && eval 'test $(( 1 + 1 )) -eq 2 \
4816    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4817  && xsi_shell=yes
4818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4819$as_echo "$xsi_shell" >&6; }
4820
4821
4822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4823$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4824lt_shell_append=no
4825( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4826    >/dev/null 2>&1 \
4827  && lt_shell_append=yes
4828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4829$as_echo "$lt_shell_append" >&6; }
4830
4831
4832if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4833  lt_unset=unset
4834else
4835  lt_unset=false
4836fi
4837
4838
4839
4840
4841
4842# test EBCDIC or ASCII
4843case `echo X|tr X '\101'` in
4844 A) # ASCII based system
4845    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4846  lt_SP2NL='tr \040 \012'
4847  lt_NL2SP='tr \015\012 \040\040'
4848  ;;
4849 *) # EBCDIC based system
4850  lt_SP2NL='tr \100 \n'
4851  lt_NL2SP='tr \r\n \100\100'
4852  ;;
4853esac
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4864$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4865if ${lt_cv_to_host_file_cmd+:} false; then :
4866  $as_echo_n "(cached) " >&6
4867else
4868  case $host in
4869  *-*-mingw* )
4870    case $build in
4871      *-*-mingw* ) # actually msys
4872        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4873        ;;
4874      *-*-cygwin* )
4875        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4876        ;;
4877      * ) # otherwise, assume *nix
4878        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4879        ;;
4880    esac
4881    ;;
4882  *-*-cygwin* )
4883    case $build in
4884      *-*-mingw* ) # actually msys
4885        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4886        ;;
4887      *-*-cygwin* )
4888        lt_cv_to_host_file_cmd=func_convert_file_noop
4889        ;;
4890      * ) # otherwise, assume *nix
4891        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4892        ;;
4893    esac
4894    ;;
4895  * ) # unhandled hosts (and "normal" native builds)
4896    lt_cv_to_host_file_cmd=func_convert_file_noop
4897    ;;
4898esac
4899
4900fi
4901
4902to_host_file_cmd=$lt_cv_to_host_file_cmd
4903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4904$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4905
4906
4907
4908
4909
4910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4911$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4912if ${lt_cv_to_tool_file_cmd+:} false; then :
4913  $as_echo_n "(cached) " >&6
4914else
4915  #assume ordinary cross tools, or native build.
4916lt_cv_to_tool_file_cmd=func_convert_file_noop
4917case $host in
4918  *-*-mingw* )
4919    case $build in
4920      *-*-mingw* ) # actually msys
4921        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4922        ;;
4923    esac
4924    ;;
4925esac
4926
4927fi
4928
4929to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4931$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4932
4933
4934
4935
4936
4937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4938$as_echo_n "checking for $LD option to reload object files... " >&6; }
4939if ${lt_cv_ld_reload_flag+:} false; then :
4940  $as_echo_n "(cached) " >&6
4941else
4942  lt_cv_ld_reload_flag='-r'
4943fi
4944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4945$as_echo "$lt_cv_ld_reload_flag" >&6; }
4946reload_flag=$lt_cv_ld_reload_flag
4947case $reload_flag in
4948"" | " "*) ;;
4949*) reload_flag=" $reload_flag" ;;
4950esac
4951reload_cmds='$LD$reload_flag -o $output$reload_objs'
4952case $host_os in
4953  cygwin* | mingw* | pw32* | cegcc*)
4954    if test "$GCC" != yes; then
4955      reload_cmds=false
4956    fi
4957    ;;
4958  darwin*)
4959    if test "$GCC" = yes; then
4960      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4961    else
4962      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4963    fi
4964    ;;
4965esac
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975if test -n "$ac_tool_prefix"; then
4976  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4977set dummy ${ac_tool_prefix}objdump; ac_word=$2
4978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4979$as_echo_n "checking for $ac_word... " >&6; }
4980if ${ac_cv_prog_OBJDUMP+:} false; then :
4981  $as_echo_n "(cached) " >&6
4982else
4983  if test -n "$OBJDUMP"; then
4984  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4985else
4986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4987for as_dir in $PATH
4988do
4989  IFS=$as_save_IFS
4990  test -z "$as_dir" && as_dir=.
4991    for ac_exec_ext in '' $ac_executable_extensions; do
4992  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4993    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4994    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4995    break 2
4996  fi
4997done
4998  done
4999IFS=$as_save_IFS
5000
5001fi
5002fi
5003OBJDUMP=$ac_cv_prog_OBJDUMP
5004if test -n "$OBJDUMP"; then
5005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5006$as_echo "$OBJDUMP" >&6; }
5007else
5008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5009$as_echo "no" >&6; }
5010fi
5011
5012
5013fi
5014if test -z "$ac_cv_prog_OBJDUMP"; then
5015  ac_ct_OBJDUMP=$OBJDUMP
5016  # Extract the first word of "objdump", so it can be a program name with args.
5017set dummy objdump; ac_word=$2
5018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5019$as_echo_n "checking for $ac_word... " >&6; }
5020if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5021  $as_echo_n "(cached) " >&6
5022else
5023  if test -n "$ac_ct_OBJDUMP"; then
5024  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5025else
5026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5027for as_dir in $PATH
5028do
5029  IFS=$as_save_IFS
5030  test -z "$as_dir" && as_dir=.
5031    for ac_exec_ext in '' $ac_executable_extensions; do
5032  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5033    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5034    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5035    break 2
5036  fi
5037done
5038  done
5039IFS=$as_save_IFS
5040
5041fi
5042fi
5043ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5044if test -n "$ac_ct_OBJDUMP"; then
5045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5046$as_echo "$ac_ct_OBJDUMP" >&6; }
5047else
5048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5049$as_echo "no" >&6; }
5050fi
5051
5052  if test "x$ac_ct_OBJDUMP" = x; then
5053    OBJDUMP="false"
5054  else
5055    case $cross_compiling:$ac_tool_warned in
5056yes:)
5057{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5058$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5059ac_tool_warned=yes ;;
5060esac
5061    OBJDUMP=$ac_ct_OBJDUMP
5062  fi
5063else
5064  OBJDUMP="$ac_cv_prog_OBJDUMP"
5065fi
5066
5067test -z "$OBJDUMP" && OBJDUMP=objdump
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5078$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5079if ${lt_cv_deplibs_check_method+:} false; then :
5080  $as_echo_n "(cached) " >&6
5081else
5082  lt_cv_file_magic_cmd='$MAGIC_CMD'
5083lt_cv_file_magic_test_file=
5084lt_cv_deplibs_check_method='unknown'
5085# Need to set the preceding variable on all platforms that support
5086# interlibrary dependencies.
5087# 'none' -- dependencies not supported.
5088# `unknown' -- same as none, but documents that we really don't know.
5089# 'pass_all' -- all dependencies passed with no checks.
5090# 'test_compile' -- check by making test program.
5091# 'file_magic [[regex]]' -- check by looking for files in library path
5092# which responds to the $file_magic_cmd with a given extended regex.
5093# If you have `file' or equivalent on your system and you're not sure
5094# whether `pass_all' will *always* work, you probably want this one.
5095
5096case $host_os in
5097aix[4-9]*)
5098  lt_cv_deplibs_check_method=pass_all
5099  ;;
5100
5101beos*)
5102  lt_cv_deplibs_check_method=pass_all
5103  ;;
5104
5105bsdi[45]*)
5106  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5107  lt_cv_file_magic_cmd='/usr/bin/file -L'
5108  lt_cv_file_magic_test_file=/shlib/libc.so
5109  ;;
5110
5111cygwin*)
5112  # func_win32_libid is a shell function defined in ltmain.sh
5113  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5114  lt_cv_file_magic_cmd='func_win32_libid'
5115  ;;
5116
5117mingw* | pw32*)
5118  # Base MSYS/MinGW do not provide the 'file' command needed by
5119  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5120  # unless we find 'file', for example because we are cross-compiling.
5121  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5122  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5123    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5124    lt_cv_file_magic_cmd='func_win32_libid'
5125  else
5126    # Keep this pattern in sync with the one in func_win32_libid.
5127    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5128    lt_cv_file_magic_cmd='$OBJDUMP -f'
5129  fi
5130  ;;
5131
5132cegcc*)
5133  # use the weaker test based on 'objdump'. See mingw*.
5134  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5135  lt_cv_file_magic_cmd='$OBJDUMP -f'
5136  ;;
5137
5138darwin* | rhapsody*)
5139  lt_cv_deplibs_check_method=pass_all
5140  ;;
5141
5142freebsd* | dragonfly*)
5143  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5144    case $host_cpu in
5145    i*86 )
5146      # Not sure whether the presence of OpenBSD here was a mistake.
5147      # Let's accept both of them until this is cleared up.
5148      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5149      lt_cv_file_magic_cmd=/usr/bin/file
5150      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5151      ;;
5152    esac
5153  else
5154    lt_cv_deplibs_check_method=pass_all
5155  fi
5156  ;;
5157
5158gnu*)
5159  lt_cv_deplibs_check_method=pass_all
5160  ;;
5161
5162haiku*)
5163  lt_cv_deplibs_check_method=pass_all
5164  ;;
5165
5166hpux10.20* | hpux11*)
5167  lt_cv_file_magic_cmd=/usr/bin/file
5168  case $host_cpu in
5169  ia64*)
5170    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5171    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5172    ;;
5173  hppa*64*)
5174    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5175    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5176    ;;
5177  *)
5178    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5179    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5180    ;;
5181  esac
5182  ;;
5183
5184interix[3-9]*)
5185  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5186  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5187  ;;
5188
5189irix5* | irix6* | nonstopux*)
5190  case $LD in
5191  *-32|*"-32 ") libmagic=32-bit;;
5192  *-n32|*"-n32 ") libmagic=N32;;
5193  *-64|*"-64 ") libmagic=64-bit;;
5194  *) libmagic=never-match;;
5195  esac
5196  lt_cv_deplibs_check_method=pass_all
5197  ;;
5198
5199# This must be glibc/ELF.
5200linux* | k*bsd*-gnu | kopensolaris*-gnu)
5201  lt_cv_deplibs_check_method=pass_all
5202  ;;
5203
5204netbsd* | netbsdelf*-gnu)
5205  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5206    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5207  else
5208    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5209  fi
5210  ;;
5211
5212newos6*)
5213  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5214  lt_cv_file_magic_cmd=/usr/bin/file
5215  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5216  ;;
5217
5218*nto* | *qnx*)
5219  lt_cv_deplibs_check_method=pass_all
5220  ;;
5221
5222openbsd*)
5223  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5224    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5225  else
5226    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5227  fi
5228  ;;
5229
5230osf3* | osf4* | osf5*)
5231  lt_cv_deplibs_check_method=pass_all
5232  ;;
5233
5234rdos*)
5235  lt_cv_deplibs_check_method=pass_all
5236  ;;
5237
5238solaris*)
5239  lt_cv_deplibs_check_method=pass_all
5240  ;;
5241
5242sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5243  lt_cv_deplibs_check_method=pass_all
5244  ;;
5245
5246sysv4 | sysv4.3*)
5247  case $host_vendor in
5248  motorola)
5249    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]'
5250    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5251    ;;
5252  ncr)
5253    lt_cv_deplibs_check_method=pass_all
5254    ;;
5255  sequent)
5256    lt_cv_file_magic_cmd='/bin/file'
5257    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5258    ;;
5259  sni)
5260    lt_cv_file_magic_cmd='/bin/file'
5261    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5262    lt_cv_file_magic_test_file=/lib/libc.so
5263    ;;
5264  siemens)
5265    lt_cv_deplibs_check_method=pass_all
5266    ;;
5267  pc)
5268    lt_cv_deplibs_check_method=pass_all
5269    ;;
5270  esac
5271  ;;
5272
5273tpf*)
5274  lt_cv_deplibs_check_method=pass_all
5275  ;;
5276esac
5277
5278fi
5279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5280$as_echo "$lt_cv_deplibs_check_method" >&6; }
5281
5282file_magic_glob=
5283want_nocaseglob=no
5284if test "$build" = "$host"; then
5285  case $host_os in
5286  mingw* | pw32*)
5287    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5288      want_nocaseglob=yes
5289    else
5290      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5291    fi
5292    ;;
5293  esac
5294fi
5295
5296file_magic_cmd=$lt_cv_file_magic_cmd
5297deplibs_check_method=$lt_cv_deplibs_check_method
5298test -z "$deplibs_check_method" && deplibs_check_method=unknown
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321if test -n "$ac_tool_prefix"; then
5322  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5323set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5325$as_echo_n "checking for $ac_word... " >&6; }
5326if ${ac_cv_prog_DLLTOOL+:} false; then :
5327  $as_echo_n "(cached) " >&6
5328else
5329  if test -n "$DLLTOOL"; then
5330  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5331else
5332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5333for as_dir in $PATH
5334do
5335  IFS=$as_save_IFS
5336  test -z "$as_dir" && as_dir=.
5337    for ac_exec_ext in '' $ac_executable_extensions; do
5338  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5339    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5340    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5341    break 2
5342  fi
5343done
5344  done
5345IFS=$as_save_IFS
5346
5347fi
5348fi
5349DLLTOOL=$ac_cv_prog_DLLTOOL
5350if test -n "$DLLTOOL"; then
5351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5352$as_echo "$DLLTOOL" >&6; }
5353else
5354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5355$as_echo "no" >&6; }
5356fi
5357
5358
5359fi
5360if test -z "$ac_cv_prog_DLLTOOL"; then
5361  ac_ct_DLLTOOL=$DLLTOOL
5362  # Extract the first word of "dlltool", so it can be a program name with args.
5363set dummy dlltool; ac_word=$2
5364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5365$as_echo_n "checking for $ac_word... " >&6; }
5366if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5367  $as_echo_n "(cached) " >&6
5368else
5369  if test -n "$ac_ct_DLLTOOL"; then
5370  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5371else
5372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5373for as_dir in $PATH
5374do
5375  IFS=$as_save_IFS
5376  test -z "$as_dir" && as_dir=.
5377    for ac_exec_ext in '' $ac_executable_extensions; do
5378  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5379    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5380    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5381    break 2
5382  fi
5383done
5384  done
5385IFS=$as_save_IFS
5386
5387fi
5388fi
5389ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5390if test -n "$ac_ct_DLLTOOL"; then
5391  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5392$as_echo "$ac_ct_DLLTOOL" >&6; }
5393else
5394  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5395$as_echo "no" >&6; }
5396fi
5397
5398  if test "x$ac_ct_DLLTOOL" = x; then
5399    DLLTOOL="false"
5400  else
5401    case $cross_compiling:$ac_tool_warned in
5402yes:)
5403{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5404$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5405ac_tool_warned=yes ;;
5406esac
5407    DLLTOOL=$ac_ct_DLLTOOL
5408  fi
5409else
5410  DLLTOOL="$ac_cv_prog_DLLTOOL"
5411fi
5412
5413test -z "$DLLTOOL" && DLLTOOL=dlltool
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5425$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5426if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5427  $as_echo_n "(cached) " >&6
5428else
5429  lt_cv_sharedlib_from_linklib_cmd='unknown'
5430
5431case $host_os in
5432cygwin* | mingw* | pw32* | cegcc*)
5433  # two different shell functions defined in ltmain.sh
5434  # decide which to use based on capabilities of $DLLTOOL
5435  case `$DLLTOOL --help 2>&1` in
5436  *--identify-strict*)
5437    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5438    ;;
5439  *)
5440    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5441    ;;
5442  esac
5443  ;;
5444*)
5445  # fallback: assume linklib IS sharedlib
5446  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5447  ;;
5448esac
5449
5450fi
5451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5452$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5453sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5454test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5455
5456
5457
5458
5459
5460
5461
5462
5463if test -n "$ac_tool_prefix"; then
5464  for ac_prog in ar
5465  do
5466    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5467set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5469$as_echo_n "checking for $ac_word... " >&6; }
5470if ${ac_cv_prog_AR+:} false; then :
5471  $as_echo_n "(cached) " >&6
5472else
5473  if test -n "$AR"; then
5474  ac_cv_prog_AR="$AR" # Let the user override the test.
5475else
5476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5477for as_dir in $PATH
5478do
5479  IFS=$as_save_IFS
5480  test -z "$as_dir" && as_dir=.
5481    for ac_exec_ext in '' $ac_executable_extensions; do
5482  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5483    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5484    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5485    break 2
5486  fi
5487done
5488  done
5489IFS=$as_save_IFS
5490
5491fi
5492fi
5493AR=$ac_cv_prog_AR
5494if test -n "$AR"; then
5495  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5496$as_echo "$AR" >&6; }
5497else
5498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5499$as_echo "no" >&6; }
5500fi
5501
5502
5503    test -n "$AR" && break
5504  done
5505fi
5506if test -z "$AR"; then
5507  ac_ct_AR=$AR
5508  for ac_prog in ar
5509do
5510  # Extract the first word of "$ac_prog", so it can be a program name with args.
5511set dummy $ac_prog; ac_word=$2
5512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5513$as_echo_n "checking for $ac_word... " >&6; }
5514if ${ac_cv_prog_ac_ct_AR+:} false; then :
5515  $as_echo_n "(cached) " >&6
5516else
5517  if test -n "$ac_ct_AR"; then
5518  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5519else
5520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5521for as_dir in $PATH
5522do
5523  IFS=$as_save_IFS
5524  test -z "$as_dir" && as_dir=.
5525    for ac_exec_ext in '' $ac_executable_extensions; do
5526  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5527    ac_cv_prog_ac_ct_AR="$ac_prog"
5528    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5529    break 2
5530  fi
5531done
5532  done
5533IFS=$as_save_IFS
5534
5535fi
5536fi
5537ac_ct_AR=$ac_cv_prog_ac_ct_AR
5538if test -n "$ac_ct_AR"; then
5539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5540$as_echo "$ac_ct_AR" >&6; }
5541else
5542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5543$as_echo "no" >&6; }
5544fi
5545
5546
5547  test -n "$ac_ct_AR" && break
5548done
5549
5550  if test "x$ac_ct_AR" = x; then
5551    AR="false"
5552  else
5553    case $cross_compiling:$ac_tool_warned in
5554yes:)
5555{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5556$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5557ac_tool_warned=yes ;;
5558esac
5559    AR=$ac_ct_AR
5560  fi
5561fi
5562
5563: ${AR=ar}
5564: ${AR_FLAGS=cru}
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5577$as_echo_n "checking for archiver @FILE support... " >&6; }
5578if ${lt_cv_ar_at_file+:} false; then :
5579  $as_echo_n "(cached) " >&6
5580else
5581  lt_cv_ar_at_file=no
5582   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5583/* end confdefs.h.  */
5584
5585int
5586main ()
5587{
5588
5589  ;
5590  return 0;
5591}
5592_ACEOF
5593if ac_fn_c_try_compile "$LINENO"; then :
5594  echo conftest.$ac_objext > conftest.lst
5595      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5596      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5597  (eval $lt_ar_try) 2>&5
5598  ac_status=$?
5599  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5600  test $ac_status = 0; }
5601      if test "$ac_status" -eq 0; then
5602	# Ensure the archiver fails upon bogus file names.
5603	rm -f conftest.$ac_objext libconftest.a
5604	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5605  (eval $lt_ar_try) 2>&5
5606  ac_status=$?
5607  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5608  test $ac_status = 0; }
5609	if test "$ac_status" -ne 0; then
5610          lt_cv_ar_at_file=@
5611        fi
5612      fi
5613      rm -f conftest.* libconftest.a
5614
5615fi
5616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5617
5618fi
5619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5620$as_echo "$lt_cv_ar_at_file" >&6; }
5621
5622if test "x$lt_cv_ar_at_file" = xno; then
5623  archiver_list_spec=
5624else
5625  archiver_list_spec=$lt_cv_ar_at_file
5626fi
5627
5628
5629
5630
5631
5632
5633
5634if test -n "$ac_tool_prefix"; then
5635  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5636set dummy ${ac_tool_prefix}strip; ac_word=$2
5637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5638$as_echo_n "checking for $ac_word... " >&6; }
5639if ${ac_cv_prog_STRIP+:} false; then :
5640  $as_echo_n "(cached) " >&6
5641else
5642  if test -n "$STRIP"; then
5643  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5644else
5645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5646for as_dir in $PATH
5647do
5648  IFS=$as_save_IFS
5649  test -z "$as_dir" && as_dir=.
5650    for ac_exec_ext in '' $ac_executable_extensions; do
5651  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5652    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5653    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5654    break 2
5655  fi
5656done
5657  done
5658IFS=$as_save_IFS
5659
5660fi
5661fi
5662STRIP=$ac_cv_prog_STRIP
5663if test -n "$STRIP"; then
5664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5665$as_echo "$STRIP" >&6; }
5666else
5667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5668$as_echo "no" >&6; }
5669fi
5670
5671
5672fi
5673if test -z "$ac_cv_prog_STRIP"; then
5674  ac_ct_STRIP=$STRIP
5675  # Extract the first word of "strip", so it can be a program name with args.
5676set dummy strip; ac_word=$2
5677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5678$as_echo_n "checking for $ac_word... " >&6; }
5679if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5680  $as_echo_n "(cached) " >&6
5681else
5682  if test -n "$ac_ct_STRIP"; then
5683  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5684else
5685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5686for as_dir in $PATH
5687do
5688  IFS=$as_save_IFS
5689  test -z "$as_dir" && as_dir=.
5690    for ac_exec_ext in '' $ac_executable_extensions; do
5691  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5692    ac_cv_prog_ac_ct_STRIP="strip"
5693    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5694    break 2
5695  fi
5696done
5697  done
5698IFS=$as_save_IFS
5699
5700fi
5701fi
5702ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5703if test -n "$ac_ct_STRIP"; then
5704  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5705$as_echo "$ac_ct_STRIP" >&6; }
5706else
5707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5708$as_echo "no" >&6; }
5709fi
5710
5711  if test "x$ac_ct_STRIP" = x; then
5712    STRIP=":"
5713  else
5714    case $cross_compiling:$ac_tool_warned in
5715yes:)
5716{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5717$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5718ac_tool_warned=yes ;;
5719esac
5720    STRIP=$ac_ct_STRIP
5721  fi
5722else
5723  STRIP="$ac_cv_prog_STRIP"
5724fi
5725
5726test -z "$STRIP" && STRIP=:
5727
5728
5729
5730
5731
5732
5733if test -n "$ac_tool_prefix"; then
5734  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5735set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5737$as_echo_n "checking for $ac_word... " >&6; }
5738if ${ac_cv_prog_RANLIB+:} false; then :
5739  $as_echo_n "(cached) " >&6
5740else
5741  if test -n "$RANLIB"; then
5742  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5743else
5744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5745for as_dir in $PATH
5746do
5747  IFS=$as_save_IFS
5748  test -z "$as_dir" && as_dir=.
5749    for ac_exec_ext in '' $ac_executable_extensions; do
5750  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5751    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5752    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5753    break 2
5754  fi
5755done
5756  done
5757IFS=$as_save_IFS
5758
5759fi
5760fi
5761RANLIB=$ac_cv_prog_RANLIB
5762if test -n "$RANLIB"; then
5763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5764$as_echo "$RANLIB" >&6; }
5765else
5766  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5767$as_echo "no" >&6; }
5768fi
5769
5770
5771fi
5772if test -z "$ac_cv_prog_RANLIB"; then
5773  ac_ct_RANLIB=$RANLIB
5774  # Extract the first word of "ranlib", so it can be a program name with args.
5775set dummy ranlib; ac_word=$2
5776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5777$as_echo_n "checking for $ac_word... " >&6; }
5778if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5779  $as_echo_n "(cached) " >&6
5780else
5781  if test -n "$ac_ct_RANLIB"; then
5782  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5783else
5784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5785for as_dir in $PATH
5786do
5787  IFS=$as_save_IFS
5788  test -z "$as_dir" && as_dir=.
5789    for ac_exec_ext in '' $ac_executable_extensions; do
5790  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5791    ac_cv_prog_ac_ct_RANLIB="ranlib"
5792    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5793    break 2
5794  fi
5795done
5796  done
5797IFS=$as_save_IFS
5798
5799fi
5800fi
5801ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5802if test -n "$ac_ct_RANLIB"; then
5803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5804$as_echo "$ac_ct_RANLIB" >&6; }
5805else
5806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5807$as_echo "no" >&6; }
5808fi
5809
5810  if test "x$ac_ct_RANLIB" = x; then
5811    RANLIB=":"
5812  else
5813    case $cross_compiling:$ac_tool_warned in
5814yes:)
5815{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5816$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5817ac_tool_warned=yes ;;
5818esac
5819    RANLIB=$ac_ct_RANLIB
5820  fi
5821else
5822  RANLIB="$ac_cv_prog_RANLIB"
5823fi
5824
5825test -z "$RANLIB" && RANLIB=:
5826
5827
5828
5829
5830
5831
5832# Determine commands to create old-style static archives.
5833old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5834old_postinstall_cmds='chmod 644 $oldlib'
5835old_postuninstall_cmds=
5836
5837if test -n "$RANLIB"; then
5838  case $host_os in
5839  openbsd*)
5840    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5841    ;;
5842  *)
5843    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5844    ;;
5845  esac
5846  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5847fi
5848
5849case $host_os in
5850  darwin*)
5851    lock_old_archive_extraction=yes ;;
5852  *)
5853    lock_old_archive_extraction=no ;;
5854esac
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894# If no C compiler was specified, use CC.
5895LTCC=${LTCC-"$CC"}
5896
5897# If no C compiler flags were specified, use CFLAGS.
5898LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5899
5900# Allow CC to be a program name with arguments.
5901compiler=$CC
5902
5903
5904# Check for command to grab the raw symbol name followed by C symbol from nm.
5905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5906$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5907if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5908  $as_echo_n "(cached) " >&6
5909else
5910
5911# These are sane defaults that work on at least a few old systems.
5912# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5913
5914# Character class describing NM global symbol codes.
5915symcode='[BCDEGRST]'
5916
5917# Regexp to match symbols that can be accessed directly from C.
5918sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5919
5920# Define system-specific variables.
5921case $host_os in
5922aix*)
5923  symcode='[BCDT]'
5924  ;;
5925cygwin* | mingw* | pw32* | cegcc*)
5926  symcode='[ABCDGISTW]'
5927  ;;
5928hpux*)
5929  if test "$host_cpu" = ia64; then
5930    symcode='[ABCDEGRST]'
5931  fi
5932  ;;
5933irix* | nonstopux*)
5934  symcode='[BCDEGRST]'
5935  ;;
5936osf*)
5937  symcode='[BCDEGQRST]'
5938  ;;
5939solaris*)
5940  symcode='[BDRT]'
5941  ;;
5942sco3.2v5*)
5943  symcode='[DT]'
5944  ;;
5945sysv4.2uw2*)
5946  symcode='[DT]'
5947  ;;
5948sysv5* | sco5v6* | unixware* | OpenUNIX*)
5949  symcode='[ABDT]'
5950  ;;
5951sysv4)
5952  symcode='[DFNSTU]'
5953  ;;
5954esac
5955
5956# If we're using GNU nm, then use its standard symbol codes.
5957case `$NM -V 2>&1` in
5958*GNU* | *'with BFD'*)
5959  symcode='[ABCDGIRSTW]' ;;
5960esac
5961
5962# Transform an extracted symbol line into a proper C declaration.
5963# Some systems (esp. on ia64) link data and code symbols differently,
5964# so use this general approach.
5965lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5966
5967# Transform an extracted symbol line into symbol name and symbol address
5968lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5969lt_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'"
5970
5971# Handle CRLF in mingw tool chain
5972opt_cr=
5973case $build_os in
5974mingw*)
5975  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5976  ;;
5977esac
5978
5979# Try without a prefix underscore, then with it.
5980for ac_symprfx in "" "_"; do
5981
5982  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5983  symxfrm="\\1 $ac_symprfx\\2 \\2"
5984
5985  # Write the raw and C identifiers.
5986  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5987    # Fake it for dumpbin and say T for any non-static function
5988    # and D for any global variable.
5989    # Also find C++ and __fastcall symbols from MSVC++,
5990    # which start with @ or ?.
5991    lt_cv_sys_global_symbol_pipe="$AWK '"\
5992"     {last_section=section; section=\$ 3};"\
5993"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5994"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5995"     \$ 0!~/External *\|/{next};"\
5996"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5997"     {if(hide[section]) next};"\
5998"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5999"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6000"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6001"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6002"     ' prfx=^$ac_symprfx"
6003  else
6004    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6005  fi
6006  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6007
6008  # Check to see that the pipe works correctly.
6009  pipe_works=no
6010
6011  rm -f conftest*
6012  cat > conftest.$ac_ext <<_LT_EOF
6013#ifdef __cplusplus
6014extern "C" {
6015#endif
6016char nm_test_var;
6017void nm_test_func(void);
6018void nm_test_func(void){}
6019#ifdef __cplusplus
6020}
6021#endif
6022int main(){nm_test_var='a';nm_test_func();return(0);}
6023_LT_EOF
6024
6025  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6026  (eval $ac_compile) 2>&5
6027  ac_status=$?
6028  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6029  test $ac_status = 0; }; then
6030    # Now try to grab the symbols.
6031    nlist=conftest.nm
6032    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6033  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6034  ac_status=$?
6035  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6036  test $ac_status = 0; } && test -s "$nlist"; then
6037      # Try sorting and uniquifying the output.
6038      if sort "$nlist" | uniq > "$nlist"T; then
6039	mv -f "$nlist"T "$nlist"
6040      else
6041	rm -f "$nlist"T
6042      fi
6043
6044      # Make sure that we snagged all the symbols we need.
6045      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6046	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6047	  cat <<_LT_EOF > conftest.$ac_ext
6048/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6049#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6050/* DATA imports from DLLs on WIN32 con't be const, because runtime
6051   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6052# define LT_DLSYM_CONST
6053#elif defined(__osf__)
6054/* This system does not cope well with relocations in const data.  */
6055# define LT_DLSYM_CONST
6056#else
6057# define LT_DLSYM_CONST const
6058#endif
6059
6060#ifdef __cplusplus
6061extern "C" {
6062#endif
6063
6064_LT_EOF
6065	  # Now generate the symbol file.
6066	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6067
6068	  cat <<_LT_EOF >> conftest.$ac_ext
6069
6070/* The mapping between symbol names and symbols.  */
6071LT_DLSYM_CONST struct {
6072  const char *name;
6073  void       *address;
6074}
6075lt__PROGRAM__LTX_preloaded_symbols[] =
6076{
6077  { "@PROGRAM@", (void *) 0 },
6078_LT_EOF
6079	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6080	  cat <<\_LT_EOF >> conftest.$ac_ext
6081  {0, (void *) 0}
6082};
6083
6084/* This works around a problem in FreeBSD linker */
6085#ifdef FREEBSD_WORKAROUND
6086static const void *lt_preloaded_setup() {
6087  return lt__PROGRAM__LTX_preloaded_symbols;
6088}
6089#endif
6090
6091#ifdef __cplusplus
6092}
6093#endif
6094_LT_EOF
6095	  # Now try linking the two files.
6096	  mv conftest.$ac_objext conftstm.$ac_objext
6097	  lt_globsym_save_LIBS=$LIBS
6098	  lt_globsym_save_CFLAGS=$CFLAGS
6099	  LIBS="conftstm.$ac_objext"
6100	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6101	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6102  (eval $ac_link) 2>&5
6103  ac_status=$?
6104  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6105  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6106	    pipe_works=yes
6107	  fi
6108	  LIBS=$lt_globsym_save_LIBS
6109	  CFLAGS=$lt_globsym_save_CFLAGS
6110	else
6111	  echo "cannot find nm_test_func in $nlist" >&5
6112	fi
6113      else
6114	echo "cannot find nm_test_var in $nlist" >&5
6115      fi
6116    else
6117      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6118    fi
6119  else
6120    echo "$progname: failed program was:" >&5
6121    cat conftest.$ac_ext >&5
6122  fi
6123  rm -rf conftest* conftst*
6124
6125  # Do not use the global_symbol_pipe unless it works.
6126  if test "$pipe_works" = yes; then
6127    break
6128  else
6129    lt_cv_sys_global_symbol_pipe=
6130  fi
6131done
6132
6133fi
6134
6135if test -z "$lt_cv_sys_global_symbol_pipe"; then
6136  lt_cv_sys_global_symbol_to_cdecl=
6137fi
6138if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6140$as_echo "failed" >&6; }
6141else
6142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6143$as_echo "ok" >&6; }
6144fi
6145
6146# Response file support.
6147if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6148  nm_file_list_spec='@'
6149elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6150  nm_file_list_spec='@'
6151fi
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6180$as_echo_n "checking for sysroot... " >&6; }
6181
6182# Check whether --with-sysroot was given.
6183if test "${with_sysroot+set}" = set; then :
6184  withval=$with_sysroot;
6185else
6186  with_sysroot=no
6187fi
6188
6189
6190lt_sysroot=
6191case ${with_sysroot} in #(
6192 yes)
6193   if test "$GCC" = yes; then
6194     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6195   fi
6196   ;; #(
6197 /*)
6198   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6199   ;; #(
6200 no|'')
6201   ;; #(
6202 *)
6203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6204$as_echo "${with_sysroot}" >&6; }
6205   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6206   ;;
6207esac
6208
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6210$as_echo "${lt_sysroot:-no}" >&6; }
6211
6212
6213
6214
6215
6216# Check whether --enable-libtool-lock was given.
6217if test "${enable_libtool_lock+set}" = set; then :
6218  enableval=$enable_libtool_lock;
6219fi
6220
6221test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6222
6223# Some flags need to be propagated to the compiler or linker for good
6224# libtool support.
6225case $host in
6226ia64-*-hpux*)
6227  # Find out which ABI we are using.
6228  echo 'int i;' > conftest.$ac_ext
6229  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6230  (eval $ac_compile) 2>&5
6231  ac_status=$?
6232  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6233  test $ac_status = 0; }; then
6234    case `/usr/bin/file conftest.$ac_objext` in
6235      *ELF-32*)
6236	HPUX_IA64_MODE="32"
6237	;;
6238      *ELF-64*)
6239	HPUX_IA64_MODE="64"
6240	;;
6241    esac
6242  fi
6243  rm -rf conftest*
6244  ;;
6245*-*-irix6*)
6246  # Find out which ABI we are using.
6247  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6248  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6249  (eval $ac_compile) 2>&5
6250  ac_status=$?
6251  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6252  test $ac_status = 0; }; then
6253    if test "$lt_cv_prog_gnu_ld" = yes; then
6254      case `/usr/bin/file conftest.$ac_objext` in
6255	*32-bit*)
6256	  LD="${LD-ld} -melf32bsmip"
6257	  ;;
6258	*N32*)
6259	  LD="${LD-ld} -melf32bmipn32"
6260	  ;;
6261	*64-bit*)
6262	  LD="${LD-ld} -melf64bmip"
6263	;;
6264      esac
6265    else
6266      case `/usr/bin/file conftest.$ac_objext` in
6267	*32-bit*)
6268	  LD="${LD-ld} -32"
6269	  ;;
6270	*N32*)
6271	  LD="${LD-ld} -n32"
6272	  ;;
6273	*64-bit*)
6274	  LD="${LD-ld} -64"
6275	  ;;
6276      esac
6277    fi
6278  fi
6279  rm -rf conftest*
6280  ;;
6281
6282x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6283s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6284  # Find out which ABI we are using.
6285  echo 'int i;' > conftest.$ac_ext
6286  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6287  (eval $ac_compile) 2>&5
6288  ac_status=$?
6289  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6290  test $ac_status = 0; }; then
6291    case `/usr/bin/file conftest.o` in
6292      *32-bit*)
6293	case $host in
6294	  x86_64-*kfreebsd*-gnu)
6295	    LD="${LD-ld} -m elf_i386_fbsd"
6296	    ;;
6297	  x86_64-*linux*)
6298	    LD="${LD-ld} -m elf_i386"
6299	    ;;
6300	  ppc64-*linux*|powerpc64-*linux*)
6301	    LD="${LD-ld} -m elf32ppclinux"
6302	    ;;
6303	  s390x-*linux*)
6304	    LD="${LD-ld} -m elf_s390"
6305	    ;;
6306	  sparc64-*linux*)
6307	    LD="${LD-ld} -m elf32_sparc"
6308	    ;;
6309	esac
6310	;;
6311      *64-bit*)
6312	case $host in
6313	  x86_64-*kfreebsd*-gnu)
6314	    LD="${LD-ld} -m elf_x86_64_fbsd"
6315	    ;;
6316	  x86_64-*linux*)
6317	    LD="${LD-ld} -m elf_x86_64"
6318	    ;;
6319	  ppc*-*linux*|powerpc*-*linux*)
6320	    LD="${LD-ld} -m elf64ppc"
6321	    ;;
6322	  s390*-*linux*|s390*-*tpf*)
6323	    LD="${LD-ld} -m elf64_s390"
6324	    ;;
6325	  sparc*-*linux*)
6326	    LD="${LD-ld} -m elf64_sparc"
6327	    ;;
6328	esac
6329	;;
6330    esac
6331  fi
6332  rm -rf conftest*
6333  ;;
6334
6335*-*-sco3.2v5*)
6336  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6337  SAVE_CFLAGS="$CFLAGS"
6338  CFLAGS="$CFLAGS -belf"
6339  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6340$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6341if ${lt_cv_cc_needs_belf+:} false; then :
6342  $as_echo_n "(cached) " >&6
6343else
6344  ac_ext=c
6345ac_cpp='$CPP $CPPFLAGS'
6346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6348ac_compiler_gnu=$ac_cv_c_compiler_gnu
6349
6350     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6351/* end confdefs.h.  */
6352
6353int
6354main ()
6355{
6356
6357  ;
6358  return 0;
6359}
6360_ACEOF
6361if ac_fn_c_try_link "$LINENO"; then :
6362  lt_cv_cc_needs_belf=yes
6363else
6364  lt_cv_cc_needs_belf=no
6365fi
6366rm -f core conftest.err conftest.$ac_objext \
6367    conftest$ac_exeext conftest.$ac_ext
6368     ac_ext=c
6369ac_cpp='$CPP $CPPFLAGS'
6370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6372ac_compiler_gnu=$ac_cv_c_compiler_gnu
6373
6374fi
6375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6376$as_echo "$lt_cv_cc_needs_belf" >&6; }
6377  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6378    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6379    CFLAGS="$SAVE_CFLAGS"
6380  fi
6381  ;;
6382*-*solaris*)
6383  # Find out which ABI we are using.
6384  echo 'int i;' > conftest.$ac_ext
6385  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6386  (eval $ac_compile) 2>&5
6387  ac_status=$?
6388  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6389  test $ac_status = 0; }; then
6390    case `/usr/bin/file conftest.o` in
6391    *64-bit*)
6392      case $lt_cv_prog_gnu_ld in
6393      yes*)
6394        case $host in
6395        i?86-*-solaris*)
6396          LD="${LD-ld} -m elf_x86_64"
6397          ;;
6398        sparc*-*-solaris*)
6399          LD="${LD-ld} -m elf64_sparc"
6400          ;;
6401        esac
6402        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6403        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6404          LD="${LD-ld}_sol2"
6405        fi
6406        ;;
6407      *)
6408	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6409	  LD="${LD-ld} -64"
6410	fi
6411	;;
6412      esac
6413      ;;
6414    esac
6415  fi
6416  rm -rf conftest*
6417  ;;
6418esac
6419
6420need_locks="$enable_libtool_lock"
6421
6422if test -n "$ac_tool_prefix"; then
6423  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6424set dummy ${ac_tool_prefix}mt; ac_word=$2
6425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6426$as_echo_n "checking for $ac_word... " >&6; }
6427if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6428  $as_echo_n "(cached) " >&6
6429else
6430  if test -n "$MANIFEST_TOOL"; then
6431  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6432else
6433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6434for as_dir in $PATH
6435do
6436  IFS=$as_save_IFS
6437  test -z "$as_dir" && as_dir=.
6438    for ac_exec_ext in '' $ac_executable_extensions; do
6439  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6440    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6441    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6442    break 2
6443  fi
6444done
6445  done
6446IFS=$as_save_IFS
6447
6448fi
6449fi
6450MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6451if test -n "$MANIFEST_TOOL"; then
6452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6453$as_echo "$MANIFEST_TOOL" >&6; }
6454else
6455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6456$as_echo "no" >&6; }
6457fi
6458
6459
6460fi
6461if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6462  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6463  # Extract the first word of "mt", so it can be a program name with args.
6464set dummy mt; ac_word=$2
6465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6466$as_echo_n "checking for $ac_word... " >&6; }
6467if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6468  $as_echo_n "(cached) " >&6
6469else
6470  if test -n "$ac_ct_MANIFEST_TOOL"; then
6471  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6472else
6473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6474for as_dir in $PATH
6475do
6476  IFS=$as_save_IFS
6477  test -z "$as_dir" && as_dir=.
6478    for ac_exec_ext in '' $ac_executable_extensions; do
6479  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6480    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6481    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6482    break 2
6483  fi
6484done
6485  done
6486IFS=$as_save_IFS
6487
6488fi
6489fi
6490ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6491if test -n "$ac_ct_MANIFEST_TOOL"; then
6492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6493$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6494else
6495  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6496$as_echo "no" >&6; }
6497fi
6498
6499  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6500    MANIFEST_TOOL=":"
6501  else
6502    case $cross_compiling:$ac_tool_warned in
6503yes:)
6504{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6505$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6506ac_tool_warned=yes ;;
6507esac
6508    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6509  fi
6510else
6511  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6512fi
6513
6514test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6516$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6517if ${lt_cv_path_mainfest_tool+:} false; then :
6518  $as_echo_n "(cached) " >&6
6519else
6520  lt_cv_path_mainfest_tool=no
6521  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6522  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6523  cat conftest.err >&5
6524  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6525    lt_cv_path_mainfest_tool=yes
6526  fi
6527  rm -f conftest*
6528fi
6529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6530$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6531if test "x$lt_cv_path_mainfest_tool" != xyes; then
6532  MANIFEST_TOOL=:
6533fi
6534
6535
6536
6537
6538
6539
6540  case $host_os in
6541    rhapsody* | darwin*)
6542    if test -n "$ac_tool_prefix"; then
6543  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6544set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6546$as_echo_n "checking for $ac_word... " >&6; }
6547if ${ac_cv_prog_DSYMUTIL+:} false; then :
6548  $as_echo_n "(cached) " >&6
6549else
6550  if test -n "$DSYMUTIL"; then
6551  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6552else
6553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6554for as_dir in $PATH
6555do
6556  IFS=$as_save_IFS
6557  test -z "$as_dir" && as_dir=.
6558    for ac_exec_ext in '' $ac_executable_extensions; do
6559  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6560    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6561    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6562    break 2
6563  fi
6564done
6565  done
6566IFS=$as_save_IFS
6567
6568fi
6569fi
6570DSYMUTIL=$ac_cv_prog_DSYMUTIL
6571if test -n "$DSYMUTIL"; then
6572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6573$as_echo "$DSYMUTIL" >&6; }
6574else
6575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6576$as_echo "no" >&6; }
6577fi
6578
6579
6580fi
6581if test -z "$ac_cv_prog_DSYMUTIL"; then
6582  ac_ct_DSYMUTIL=$DSYMUTIL
6583  # Extract the first word of "dsymutil", so it can be a program name with args.
6584set dummy dsymutil; ac_word=$2
6585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6586$as_echo_n "checking for $ac_word... " >&6; }
6587if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6588  $as_echo_n "(cached) " >&6
6589else
6590  if test -n "$ac_ct_DSYMUTIL"; then
6591  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6592else
6593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594for as_dir in $PATH
6595do
6596  IFS=$as_save_IFS
6597  test -z "$as_dir" && as_dir=.
6598    for ac_exec_ext in '' $ac_executable_extensions; do
6599  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6600    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6601    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6602    break 2
6603  fi
6604done
6605  done
6606IFS=$as_save_IFS
6607
6608fi
6609fi
6610ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6611if test -n "$ac_ct_DSYMUTIL"; then
6612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6613$as_echo "$ac_ct_DSYMUTIL" >&6; }
6614else
6615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6616$as_echo "no" >&6; }
6617fi
6618
6619  if test "x$ac_ct_DSYMUTIL" = x; then
6620    DSYMUTIL=":"
6621  else
6622    case $cross_compiling:$ac_tool_warned in
6623yes:)
6624{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6625$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6626ac_tool_warned=yes ;;
6627esac
6628    DSYMUTIL=$ac_ct_DSYMUTIL
6629  fi
6630else
6631  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6632fi
6633
6634    if test -n "$ac_tool_prefix"; then
6635  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6636set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6638$as_echo_n "checking for $ac_word... " >&6; }
6639if ${ac_cv_prog_NMEDIT+:} false; then :
6640  $as_echo_n "(cached) " >&6
6641else
6642  if test -n "$NMEDIT"; then
6643  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6644else
6645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6646for as_dir in $PATH
6647do
6648  IFS=$as_save_IFS
6649  test -z "$as_dir" && as_dir=.
6650    for ac_exec_ext in '' $ac_executable_extensions; do
6651  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6652    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6653    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6654    break 2
6655  fi
6656done
6657  done
6658IFS=$as_save_IFS
6659
6660fi
6661fi
6662NMEDIT=$ac_cv_prog_NMEDIT
6663if test -n "$NMEDIT"; then
6664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6665$as_echo "$NMEDIT" >&6; }
6666else
6667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6668$as_echo "no" >&6; }
6669fi
6670
6671
6672fi
6673if test -z "$ac_cv_prog_NMEDIT"; then
6674  ac_ct_NMEDIT=$NMEDIT
6675  # Extract the first word of "nmedit", so it can be a program name with args.
6676set dummy nmedit; ac_word=$2
6677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6678$as_echo_n "checking for $ac_word... " >&6; }
6679if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6680  $as_echo_n "(cached) " >&6
6681else
6682  if test -n "$ac_ct_NMEDIT"; then
6683  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6684else
6685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6686for as_dir in $PATH
6687do
6688  IFS=$as_save_IFS
6689  test -z "$as_dir" && as_dir=.
6690    for ac_exec_ext in '' $ac_executable_extensions; do
6691  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6692    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6693    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6694    break 2
6695  fi
6696done
6697  done
6698IFS=$as_save_IFS
6699
6700fi
6701fi
6702ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6703if test -n "$ac_ct_NMEDIT"; then
6704  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6705$as_echo "$ac_ct_NMEDIT" >&6; }
6706else
6707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6708$as_echo "no" >&6; }
6709fi
6710
6711  if test "x$ac_ct_NMEDIT" = x; then
6712    NMEDIT=":"
6713  else
6714    case $cross_compiling:$ac_tool_warned in
6715yes:)
6716{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6717$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6718ac_tool_warned=yes ;;
6719esac
6720    NMEDIT=$ac_ct_NMEDIT
6721  fi
6722else
6723  NMEDIT="$ac_cv_prog_NMEDIT"
6724fi
6725
6726    if test -n "$ac_tool_prefix"; then
6727  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6728set dummy ${ac_tool_prefix}lipo; ac_word=$2
6729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6730$as_echo_n "checking for $ac_word... " >&6; }
6731if ${ac_cv_prog_LIPO+:} false; then :
6732  $as_echo_n "(cached) " >&6
6733else
6734  if test -n "$LIPO"; then
6735  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6736else
6737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738for as_dir in $PATH
6739do
6740  IFS=$as_save_IFS
6741  test -z "$as_dir" && as_dir=.
6742    for ac_exec_ext in '' $ac_executable_extensions; do
6743  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6744    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6745    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6746    break 2
6747  fi
6748done
6749  done
6750IFS=$as_save_IFS
6751
6752fi
6753fi
6754LIPO=$ac_cv_prog_LIPO
6755if test -n "$LIPO"; then
6756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6757$as_echo "$LIPO" >&6; }
6758else
6759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6760$as_echo "no" >&6; }
6761fi
6762
6763
6764fi
6765if test -z "$ac_cv_prog_LIPO"; then
6766  ac_ct_LIPO=$LIPO
6767  # Extract the first word of "lipo", so it can be a program name with args.
6768set dummy lipo; ac_word=$2
6769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6770$as_echo_n "checking for $ac_word... " >&6; }
6771if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6772  $as_echo_n "(cached) " >&6
6773else
6774  if test -n "$ac_ct_LIPO"; then
6775  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6776else
6777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778for as_dir in $PATH
6779do
6780  IFS=$as_save_IFS
6781  test -z "$as_dir" && as_dir=.
6782    for ac_exec_ext in '' $ac_executable_extensions; do
6783  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6784    ac_cv_prog_ac_ct_LIPO="lipo"
6785    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6786    break 2
6787  fi
6788done
6789  done
6790IFS=$as_save_IFS
6791
6792fi
6793fi
6794ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6795if test -n "$ac_ct_LIPO"; then
6796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6797$as_echo "$ac_ct_LIPO" >&6; }
6798else
6799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6800$as_echo "no" >&6; }
6801fi
6802
6803  if test "x$ac_ct_LIPO" = x; then
6804    LIPO=":"
6805  else
6806    case $cross_compiling:$ac_tool_warned in
6807yes:)
6808{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6809$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6810ac_tool_warned=yes ;;
6811esac
6812    LIPO=$ac_ct_LIPO
6813  fi
6814else
6815  LIPO="$ac_cv_prog_LIPO"
6816fi
6817
6818    if test -n "$ac_tool_prefix"; then
6819  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6820set dummy ${ac_tool_prefix}otool; ac_word=$2
6821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6822$as_echo_n "checking for $ac_word... " >&6; }
6823if ${ac_cv_prog_OTOOL+:} false; then :
6824  $as_echo_n "(cached) " >&6
6825else
6826  if test -n "$OTOOL"; then
6827  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6828else
6829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830for as_dir in $PATH
6831do
6832  IFS=$as_save_IFS
6833  test -z "$as_dir" && as_dir=.
6834    for ac_exec_ext in '' $ac_executable_extensions; do
6835  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6836    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6837    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6838    break 2
6839  fi
6840done
6841  done
6842IFS=$as_save_IFS
6843
6844fi
6845fi
6846OTOOL=$ac_cv_prog_OTOOL
6847if test -n "$OTOOL"; then
6848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6849$as_echo "$OTOOL" >&6; }
6850else
6851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6852$as_echo "no" >&6; }
6853fi
6854
6855
6856fi
6857if test -z "$ac_cv_prog_OTOOL"; then
6858  ac_ct_OTOOL=$OTOOL
6859  # Extract the first word of "otool", so it can be a program name with args.
6860set dummy otool; ac_word=$2
6861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6862$as_echo_n "checking for $ac_word... " >&6; }
6863if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6864  $as_echo_n "(cached) " >&6
6865else
6866  if test -n "$ac_ct_OTOOL"; then
6867  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6868else
6869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870for as_dir in $PATH
6871do
6872  IFS=$as_save_IFS
6873  test -z "$as_dir" && as_dir=.
6874    for ac_exec_ext in '' $ac_executable_extensions; do
6875  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6876    ac_cv_prog_ac_ct_OTOOL="otool"
6877    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6878    break 2
6879  fi
6880done
6881  done
6882IFS=$as_save_IFS
6883
6884fi
6885fi
6886ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6887if test -n "$ac_ct_OTOOL"; then
6888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6889$as_echo "$ac_ct_OTOOL" >&6; }
6890else
6891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6892$as_echo "no" >&6; }
6893fi
6894
6895  if test "x$ac_ct_OTOOL" = x; then
6896    OTOOL=":"
6897  else
6898    case $cross_compiling:$ac_tool_warned in
6899yes:)
6900{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6901$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6902ac_tool_warned=yes ;;
6903esac
6904    OTOOL=$ac_ct_OTOOL
6905  fi
6906else
6907  OTOOL="$ac_cv_prog_OTOOL"
6908fi
6909
6910    if test -n "$ac_tool_prefix"; then
6911  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6912set dummy ${ac_tool_prefix}otool64; ac_word=$2
6913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6914$as_echo_n "checking for $ac_word... " >&6; }
6915if ${ac_cv_prog_OTOOL64+:} false; then :
6916  $as_echo_n "(cached) " >&6
6917else
6918  if test -n "$OTOOL64"; then
6919  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6920else
6921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6922for as_dir in $PATH
6923do
6924  IFS=$as_save_IFS
6925  test -z "$as_dir" && as_dir=.
6926    for ac_exec_ext in '' $ac_executable_extensions; do
6927  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6928    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6929    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6930    break 2
6931  fi
6932done
6933  done
6934IFS=$as_save_IFS
6935
6936fi
6937fi
6938OTOOL64=$ac_cv_prog_OTOOL64
6939if test -n "$OTOOL64"; then
6940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6941$as_echo "$OTOOL64" >&6; }
6942else
6943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6944$as_echo "no" >&6; }
6945fi
6946
6947
6948fi
6949if test -z "$ac_cv_prog_OTOOL64"; then
6950  ac_ct_OTOOL64=$OTOOL64
6951  # Extract the first word of "otool64", so it can be a program name with args.
6952set dummy otool64; ac_word=$2
6953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6954$as_echo_n "checking for $ac_word... " >&6; }
6955if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6956  $as_echo_n "(cached) " >&6
6957else
6958  if test -n "$ac_ct_OTOOL64"; then
6959  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6960else
6961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962for as_dir in $PATH
6963do
6964  IFS=$as_save_IFS
6965  test -z "$as_dir" && as_dir=.
6966    for ac_exec_ext in '' $ac_executable_extensions; do
6967  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6968    ac_cv_prog_ac_ct_OTOOL64="otool64"
6969    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6970    break 2
6971  fi
6972done
6973  done
6974IFS=$as_save_IFS
6975
6976fi
6977fi
6978ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6979if test -n "$ac_ct_OTOOL64"; then
6980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6981$as_echo "$ac_ct_OTOOL64" >&6; }
6982else
6983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6984$as_echo "no" >&6; }
6985fi
6986
6987  if test "x$ac_ct_OTOOL64" = x; then
6988    OTOOL64=":"
6989  else
6990    case $cross_compiling:$ac_tool_warned in
6991yes:)
6992{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6993$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6994ac_tool_warned=yes ;;
6995esac
6996    OTOOL64=$ac_ct_OTOOL64
6997  fi
6998else
6999  OTOOL64="$ac_cv_prog_OTOOL64"
7000fi
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7029$as_echo_n "checking for -single_module linker flag... " >&6; }
7030if ${lt_cv_apple_cc_single_mod+:} false; then :
7031  $as_echo_n "(cached) " >&6
7032else
7033  lt_cv_apple_cc_single_mod=no
7034      if test -z "${LT_MULTI_MODULE}"; then
7035	# By default we will add the -single_module flag. You can override
7036	# by either setting the environment variable LT_MULTI_MODULE
7037	# non-empty at configure time, or by adding -multi_module to the
7038	# link flags.
7039	rm -rf libconftest.dylib*
7040	echo "int foo(void){return 1;}" > conftest.c
7041	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7042-dynamiclib -Wl,-single_module conftest.c" >&5
7043	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7044	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7045        _lt_result=$?
7046	# If there is a non-empty error log, and "single_module"
7047	# appears in it, assume the flag caused a linker warning
7048        if test -s conftest.err && $GREP single_module conftest.err; then
7049	  cat conftest.err >&5
7050	# Otherwise, if the output was created with a 0 exit code from
7051	# the compiler, it worked.
7052	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7053	  lt_cv_apple_cc_single_mod=yes
7054	else
7055	  cat conftest.err >&5
7056	fi
7057	rm -rf libconftest.dylib*
7058	rm -f conftest.*
7059      fi
7060fi
7061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7062$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7063
7064    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7065$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7066if ${lt_cv_ld_exported_symbols_list+:} false; then :
7067  $as_echo_n "(cached) " >&6
7068else
7069  lt_cv_ld_exported_symbols_list=no
7070      save_LDFLAGS=$LDFLAGS
7071      echo "_main" > conftest.sym
7072      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7073      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7074/* end confdefs.h.  */
7075
7076int
7077main ()
7078{
7079
7080  ;
7081  return 0;
7082}
7083_ACEOF
7084if ac_fn_c_try_link "$LINENO"; then :
7085  lt_cv_ld_exported_symbols_list=yes
7086else
7087  lt_cv_ld_exported_symbols_list=no
7088fi
7089rm -f core conftest.err conftest.$ac_objext \
7090    conftest$ac_exeext conftest.$ac_ext
7091	LDFLAGS="$save_LDFLAGS"
7092
7093fi
7094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7095$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7096
7097    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7098$as_echo_n "checking for -force_load linker flag... " >&6; }
7099if ${lt_cv_ld_force_load+:} false; then :
7100  $as_echo_n "(cached) " >&6
7101else
7102  lt_cv_ld_force_load=no
7103      cat > conftest.c << _LT_EOF
7104int forced_loaded() { return 2;}
7105_LT_EOF
7106      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7107      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7108      echo "$AR cru libconftest.a conftest.o" >&5
7109      $AR cru libconftest.a conftest.o 2>&5
7110      echo "$RANLIB libconftest.a" >&5
7111      $RANLIB libconftest.a 2>&5
7112      cat > conftest.c << _LT_EOF
7113int main() { return 0;}
7114_LT_EOF
7115      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7116      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7117      _lt_result=$?
7118      if test -s conftest.err && $GREP force_load conftest.err; then
7119	cat conftest.err >&5
7120      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7121	lt_cv_ld_force_load=yes
7122      else
7123	cat conftest.err >&5
7124      fi
7125        rm -f conftest.err libconftest.a conftest conftest.c
7126        rm -rf conftest.dSYM
7127
7128fi
7129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7130$as_echo "$lt_cv_ld_force_load" >&6; }
7131    case $host_os in
7132    rhapsody* | darwin1.[012])
7133      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7134    darwin1.*)
7135      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7136    darwin*) # darwin 5.x on
7137      # if running on 10.5 or later, the deployment target defaults
7138      # to the OS version, if on x86, and 10.4, the deployment
7139      # target defaults to 10.4. Don't you love it?
7140      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7141	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7142	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7143	10.[012]*)
7144	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7145	10.*)
7146	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7147      esac
7148    ;;
7149  esac
7150    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7151      _lt_dar_single_mod='$single_module'
7152    fi
7153    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7154      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7155    else
7156      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7157    fi
7158    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7159      _lt_dsymutil='~$DSYMUTIL $lib || :'
7160    else
7161      _lt_dsymutil=
7162    fi
7163    ;;
7164  esac
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{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7172$as_echo_n "checking how to run the C preprocessor... " >&6; }
7173# On Suns, sometimes $CPP names a directory.
7174if test -n "$CPP" && test -d "$CPP"; then
7175  CPP=
7176fi
7177if test -z "$CPP"; then
7178  if ${ac_cv_prog_CPP+:} false; then :
7179  $as_echo_n "(cached) " >&6
7180else
7181      # Double quotes because CPP needs to be expanded
7182    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7183    do
7184      ac_preproc_ok=false
7185for ac_c_preproc_warn_flag in '' yes
7186do
7187  # Use a header file that comes with gcc, so configuring glibc
7188  # with a fresh cross-compiler works.
7189  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7190  # <limits.h> exists even on freestanding compilers.
7191  # On the NeXT, cc -E runs the code through the compiler's parser,
7192  # not just through cpp. "Syntax error" is here to catch this case.
7193  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7194/* end confdefs.h.  */
7195#ifdef __STDC__
7196# include <limits.h>
7197#else
7198# include <assert.h>
7199#endif
7200		     Syntax error
7201_ACEOF
7202if ac_fn_c_try_cpp "$LINENO"; then :
7203
7204else
7205  # Broken: fails on valid input.
7206continue
7207fi
7208rm -f conftest.err conftest.i conftest.$ac_ext
7209
7210  # OK, works on sane cases.  Now check whether nonexistent headers
7211  # can be detected and how.
7212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7213/* end confdefs.h.  */
7214#include <ac_nonexistent.h>
7215_ACEOF
7216if ac_fn_c_try_cpp "$LINENO"; then :
7217  # Broken: success on invalid input.
7218continue
7219else
7220  # Passes both tests.
7221ac_preproc_ok=:
7222break
7223fi
7224rm -f conftest.err conftest.i conftest.$ac_ext
7225
7226done
7227# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7228rm -f conftest.i conftest.err conftest.$ac_ext
7229if $ac_preproc_ok; then :
7230  break
7231fi
7232
7233    done
7234    ac_cv_prog_CPP=$CPP
7235
7236fi
7237  CPP=$ac_cv_prog_CPP
7238else
7239  ac_cv_prog_CPP=$CPP
7240fi
7241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7242$as_echo "$CPP" >&6; }
7243ac_preproc_ok=false
7244for ac_c_preproc_warn_flag in '' yes
7245do
7246  # Use a header file that comes with gcc, so configuring glibc
7247  # with a fresh cross-compiler works.
7248  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7249  # <limits.h> exists even on freestanding compilers.
7250  # On the NeXT, cc -E runs the code through the compiler's parser,
7251  # not just through cpp. "Syntax error" is here to catch this case.
7252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7253/* end confdefs.h.  */
7254#ifdef __STDC__
7255# include <limits.h>
7256#else
7257# include <assert.h>
7258#endif
7259		     Syntax error
7260_ACEOF
7261if ac_fn_c_try_cpp "$LINENO"; then :
7262
7263else
7264  # Broken: fails on valid input.
7265continue
7266fi
7267rm -f conftest.err conftest.i conftest.$ac_ext
7268
7269  # OK, works on sane cases.  Now check whether nonexistent headers
7270  # can be detected and how.
7271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7272/* end confdefs.h.  */
7273#include <ac_nonexistent.h>
7274_ACEOF
7275if ac_fn_c_try_cpp "$LINENO"; then :
7276  # Broken: success on invalid input.
7277continue
7278else
7279  # Passes both tests.
7280ac_preproc_ok=:
7281break
7282fi
7283rm -f conftest.err conftest.i conftest.$ac_ext
7284
7285done
7286# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7287rm -f conftest.i conftest.err conftest.$ac_ext
7288if $ac_preproc_ok; then :
7289
7290else
7291  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7292$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7293as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7294See \`config.log' for more details" "$LINENO" 5; }
7295fi
7296
7297ac_ext=c
7298ac_cpp='$CPP $CPPFLAGS'
7299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7301ac_compiler_gnu=$ac_cv_c_compiler_gnu
7302
7303
7304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7305$as_echo_n "checking for ANSI C header files... " >&6; }
7306if ${ac_cv_header_stdc+:} false; then :
7307  $as_echo_n "(cached) " >&6
7308else
7309  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7310/* end confdefs.h.  */
7311#include <stdlib.h>
7312#include <stdarg.h>
7313#include <string.h>
7314#include <float.h>
7315
7316int
7317main ()
7318{
7319
7320  ;
7321  return 0;
7322}
7323_ACEOF
7324if ac_fn_c_try_compile "$LINENO"; then :
7325  ac_cv_header_stdc=yes
7326else
7327  ac_cv_header_stdc=no
7328fi
7329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7330
7331if test $ac_cv_header_stdc = yes; then
7332  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7334/* end confdefs.h.  */
7335#include <string.h>
7336
7337_ACEOF
7338if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7339  $EGREP "memchr" >/dev/null 2>&1; then :
7340
7341else
7342  ac_cv_header_stdc=no
7343fi
7344rm -f conftest*
7345
7346fi
7347
7348if test $ac_cv_header_stdc = yes; then
7349  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7350  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7351/* end confdefs.h.  */
7352#include <stdlib.h>
7353
7354_ACEOF
7355if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7356  $EGREP "free" >/dev/null 2>&1; then :
7357
7358else
7359  ac_cv_header_stdc=no
7360fi
7361rm -f conftest*
7362
7363fi
7364
7365if test $ac_cv_header_stdc = yes; then
7366  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7367  if test "$cross_compiling" = yes; then :
7368  :
7369else
7370  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7371/* end confdefs.h.  */
7372#include <ctype.h>
7373#include <stdlib.h>
7374#if ((' ' & 0x0FF) == 0x020)
7375# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7376# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7377#else
7378# define ISLOWER(c) \
7379		   (('a' <= (c) && (c) <= 'i') \
7380		     || ('j' <= (c) && (c) <= 'r') \
7381		     || ('s' <= (c) && (c) <= 'z'))
7382# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7383#endif
7384
7385#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7386int
7387main ()
7388{
7389  int i;
7390  for (i = 0; i < 256; i++)
7391    if (XOR (islower (i), ISLOWER (i))
7392	|| toupper (i) != TOUPPER (i))
7393      return 2;
7394  return 0;
7395}
7396_ACEOF
7397if ac_fn_c_try_run "$LINENO"; then :
7398
7399else
7400  ac_cv_header_stdc=no
7401fi
7402rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7403  conftest.$ac_objext conftest.beam conftest.$ac_ext
7404fi
7405
7406fi
7407fi
7408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7409$as_echo "$ac_cv_header_stdc" >&6; }
7410if test $ac_cv_header_stdc = yes; then
7411
7412$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7413
7414fi
7415
7416# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7417for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7418		  inttypes.h stdint.h unistd.h
7419do :
7420  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7421ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7422"
7423if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7424  cat >>confdefs.h <<_ACEOF
7425#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7426_ACEOF
7427
7428fi
7429
7430done
7431
7432
7433for ac_header in dlfcn.h
7434do :
7435  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7436"
7437if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7438  cat >>confdefs.h <<_ACEOF
7439#define HAVE_DLFCN_H 1
7440_ACEOF
7441
7442fi
7443
7444done
7445
7446
7447
7448
7449
7450# Set options
7451enable_dlopen=yes
7452
7453
7454
7455
7456  enable_win32_dll=no
7457
7458
7459            # Check whether --enable-shared was given.
7460if test "${enable_shared+set}" = set; then :
7461  enableval=$enable_shared; p=${PACKAGE-default}
7462    case $enableval in
7463    yes) enable_shared=yes ;;
7464    no) enable_shared=no ;;
7465    *)
7466      enable_shared=no
7467      # Look at the argument we got.  We use all the common list separators.
7468      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7469      for pkg in $enableval; do
7470	IFS="$lt_save_ifs"
7471	if test "X$pkg" = "X$p"; then
7472	  enable_shared=yes
7473	fi
7474      done
7475      IFS="$lt_save_ifs"
7476      ;;
7477    esac
7478else
7479  enable_shared=yes
7480fi
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490  # Check whether --enable-static was given.
7491if test "${enable_static+set}" = set; then :
7492  enableval=$enable_static; p=${PACKAGE-default}
7493    case $enableval in
7494    yes) enable_static=yes ;;
7495    no) enable_static=no ;;
7496    *)
7497     enable_static=no
7498      # Look at the argument we got.  We use all the common list separators.
7499      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7500      for pkg in $enableval; do
7501	IFS="$lt_save_ifs"
7502	if test "X$pkg" = "X$p"; then
7503	  enable_static=yes
7504	fi
7505      done
7506      IFS="$lt_save_ifs"
7507      ;;
7508    esac
7509else
7510  enable_static=yes
7511fi
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522# Check whether --with-pic was given.
7523if test "${with_pic+set}" = set; then :
7524  withval=$with_pic; lt_p=${PACKAGE-default}
7525    case $withval in
7526    yes|no) pic_mode=$withval ;;
7527    *)
7528      pic_mode=default
7529      # Look at the argument we got.  We use all the common list separators.
7530      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7531      for lt_pkg in $withval; do
7532	IFS="$lt_save_ifs"
7533	if test "X$lt_pkg" = "X$lt_p"; then
7534	  pic_mode=yes
7535	fi
7536      done
7537      IFS="$lt_save_ifs"
7538      ;;
7539    esac
7540else
7541  pic_mode=default
7542fi
7543
7544
7545test -z "$pic_mode" && pic_mode=default
7546
7547
7548
7549
7550
7551
7552
7553  # Check whether --enable-fast-install was given.
7554if test "${enable_fast_install+set}" = set; then :
7555  enableval=$enable_fast_install; p=${PACKAGE-default}
7556    case $enableval in
7557    yes) enable_fast_install=yes ;;
7558    no) enable_fast_install=no ;;
7559    *)
7560      enable_fast_install=no
7561      # Look at the argument we got.  We use all the common list separators.
7562      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7563      for pkg in $enableval; do
7564	IFS="$lt_save_ifs"
7565	if test "X$pkg" = "X$p"; then
7566	  enable_fast_install=yes
7567	fi
7568      done
7569      IFS="$lt_save_ifs"
7570      ;;
7571    esac
7572else
7573  enable_fast_install=yes
7574fi
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586# This can be used to rebuild libtool when needed
7587LIBTOOL_DEPS="$ltmain"
7588
7589# Always use our own libtool.
7590LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621test -z "$LN_S" && LN_S="ln -s"
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636if test -n "${ZSH_VERSION+set}" ; then
7637   setopt NO_GLOB_SUBST
7638fi
7639
7640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7641$as_echo_n "checking for objdir... " >&6; }
7642if ${lt_cv_objdir+:} false; then :
7643  $as_echo_n "(cached) " >&6
7644else
7645  rm -f .libs 2>/dev/null
7646mkdir .libs 2>/dev/null
7647if test -d .libs; then
7648  lt_cv_objdir=.libs
7649else
7650  # MS-DOS does not allow filenames that begin with a dot.
7651  lt_cv_objdir=_libs
7652fi
7653rmdir .libs 2>/dev/null
7654fi
7655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7656$as_echo "$lt_cv_objdir" >&6; }
7657objdir=$lt_cv_objdir
7658
7659
7660
7661
7662
7663cat >>confdefs.h <<_ACEOF
7664#define LT_OBJDIR "$lt_cv_objdir/"
7665_ACEOF
7666
7667
7668
7669
7670case $host_os in
7671aix3*)
7672  # AIX sometimes has problems with the GCC collect2 program.  For some
7673  # reason, if we set the COLLECT_NAMES environment variable, the problems
7674  # vanish in a puff of smoke.
7675  if test "X${COLLECT_NAMES+set}" != Xset; then
7676    COLLECT_NAMES=
7677    export COLLECT_NAMES
7678  fi
7679  ;;
7680esac
7681
7682# Global variables:
7683ofile=libtool
7684can_build_shared=yes
7685
7686# All known linkers require a `.a' archive for static linking (except MSVC,
7687# which needs '.lib').
7688libext=a
7689
7690with_gnu_ld="$lt_cv_prog_gnu_ld"
7691
7692old_CC="$CC"
7693old_CFLAGS="$CFLAGS"
7694
7695# Set sane defaults for various variables
7696test -z "$CC" && CC=cc
7697test -z "$LTCC" && LTCC=$CC
7698test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7699test -z "$LD" && LD=ld
7700test -z "$ac_objext" && ac_objext=o
7701
7702for cc_temp in $compiler""; do
7703  case $cc_temp in
7704    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7705    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7706    \-*) ;;
7707    *) break;;
7708  esac
7709done
7710cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7711
7712
7713# Only perform the check for file, if the check method requires it
7714test -z "$MAGIC_CMD" && MAGIC_CMD=file
7715case $deplibs_check_method in
7716file_magic*)
7717  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7718    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7719$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7720if ${lt_cv_path_MAGIC_CMD+:} false; then :
7721  $as_echo_n "(cached) " >&6
7722else
7723  case $MAGIC_CMD in
7724[\\/*] |  ?:[\\/]*)
7725  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7726  ;;
7727*)
7728  lt_save_MAGIC_CMD="$MAGIC_CMD"
7729  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7730  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7731  for ac_dir in $ac_dummy; do
7732    IFS="$lt_save_ifs"
7733    test -z "$ac_dir" && ac_dir=.
7734    if test -f $ac_dir/${ac_tool_prefix}file; then
7735      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7736      if test -n "$file_magic_test_file"; then
7737	case $deplibs_check_method in
7738	"file_magic "*)
7739	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7740	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7741	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7742	    $EGREP "$file_magic_regex" > /dev/null; then
7743	    :
7744	  else
7745	    cat <<_LT_EOF 1>&2
7746
7747*** Warning: the command libtool uses to detect shared libraries,
7748*** $file_magic_cmd, produces output that libtool cannot recognize.
7749*** The result is that libtool may fail to recognize shared libraries
7750*** as such.  This will affect the creation of libtool libraries that
7751*** depend on shared libraries, but programs linked with such libtool
7752*** libraries will work regardless of this problem.  Nevertheless, you
7753*** may want to report the problem to your system manager and/or to
7754*** bug-libtool@gnu.org
7755
7756_LT_EOF
7757	  fi ;;
7758	esac
7759      fi
7760      break
7761    fi
7762  done
7763  IFS="$lt_save_ifs"
7764  MAGIC_CMD="$lt_save_MAGIC_CMD"
7765  ;;
7766esac
7767fi
7768
7769MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7770if test -n "$MAGIC_CMD"; then
7771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7772$as_echo "$MAGIC_CMD" >&6; }
7773else
7774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7775$as_echo "no" >&6; }
7776fi
7777
7778
7779
7780
7781
7782if test -z "$lt_cv_path_MAGIC_CMD"; then
7783  if test -n "$ac_tool_prefix"; then
7784    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7785$as_echo_n "checking for file... " >&6; }
7786if ${lt_cv_path_MAGIC_CMD+:} false; then :
7787  $as_echo_n "(cached) " >&6
7788else
7789  case $MAGIC_CMD in
7790[\\/*] |  ?:[\\/]*)
7791  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7792  ;;
7793*)
7794  lt_save_MAGIC_CMD="$MAGIC_CMD"
7795  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7796  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7797  for ac_dir in $ac_dummy; do
7798    IFS="$lt_save_ifs"
7799    test -z "$ac_dir" && ac_dir=.
7800    if test -f $ac_dir/file; then
7801      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7802      if test -n "$file_magic_test_file"; then
7803	case $deplibs_check_method in
7804	"file_magic "*)
7805	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7806	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7807	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7808	    $EGREP "$file_magic_regex" > /dev/null; then
7809	    :
7810	  else
7811	    cat <<_LT_EOF 1>&2
7812
7813*** Warning: the command libtool uses to detect shared libraries,
7814*** $file_magic_cmd, produces output that libtool cannot recognize.
7815*** The result is that libtool may fail to recognize shared libraries
7816*** as such.  This will affect the creation of libtool libraries that
7817*** depend on shared libraries, but programs linked with such libtool
7818*** libraries will work regardless of this problem.  Nevertheless, you
7819*** may want to report the problem to your system manager and/or to
7820*** bug-libtool@gnu.org
7821
7822_LT_EOF
7823	  fi ;;
7824	esac
7825      fi
7826      break
7827    fi
7828  done
7829  IFS="$lt_save_ifs"
7830  MAGIC_CMD="$lt_save_MAGIC_CMD"
7831  ;;
7832esac
7833fi
7834
7835MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7836if test -n "$MAGIC_CMD"; then
7837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7838$as_echo "$MAGIC_CMD" >&6; }
7839else
7840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7841$as_echo "no" >&6; }
7842fi
7843
7844
7845  else
7846    MAGIC_CMD=:
7847  fi
7848fi
7849
7850  fi
7851  ;;
7852esac
7853
7854# Use C for the default configuration in the libtool script
7855
7856lt_save_CC="$CC"
7857ac_ext=c
7858ac_cpp='$CPP $CPPFLAGS'
7859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7861ac_compiler_gnu=$ac_cv_c_compiler_gnu
7862
7863
7864# Source file extension for C test sources.
7865ac_ext=c
7866
7867# Object file extension for compiled C test sources.
7868objext=o
7869objext=$objext
7870
7871# Code to be used in simple compile tests
7872lt_simple_compile_test_code="int some_variable = 0;"
7873
7874# Code to be used in simple link tests
7875lt_simple_link_test_code='int main(){return(0);}'
7876
7877
7878
7879
7880
7881
7882
7883# If no C compiler was specified, use CC.
7884LTCC=${LTCC-"$CC"}
7885
7886# If no C compiler flags were specified, use CFLAGS.
7887LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7888
7889# Allow CC to be a program name with arguments.
7890compiler=$CC
7891
7892# Save the default compiler, since it gets overwritten when the other
7893# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7894compiler_DEFAULT=$CC
7895
7896# save warnings/boilerplate of simple test code
7897ac_outfile=conftest.$ac_objext
7898echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7899eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7900_lt_compiler_boilerplate=`cat conftest.err`
7901$RM conftest*
7902
7903ac_outfile=conftest.$ac_objext
7904echo "$lt_simple_link_test_code" >conftest.$ac_ext
7905eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7906_lt_linker_boilerplate=`cat conftest.err`
7907$RM -r conftest*
7908
7909
7910if test -n "$compiler"; then
7911
7912lt_prog_compiler_no_builtin_flag=
7913
7914if test "$GCC" = yes; then
7915  case $cc_basename in
7916  nvcc*)
7917    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7918  *)
7919    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7920  esac
7921
7922  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7923$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7924if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7925  $as_echo_n "(cached) " >&6
7926else
7927  lt_cv_prog_compiler_rtti_exceptions=no
7928   ac_outfile=conftest.$ac_objext
7929   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7930   lt_compiler_flag="-fno-rtti -fno-exceptions"
7931   # Insert the option either (1) after the last *FLAGS variable, or
7932   # (2) before a word containing "conftest.", or (3) at the end.
7933   # Note that $ac_compile itself does not contain backslashes and begins
7934   # with a dollar sign (not a hyphen), so the echo should work correctly.
7935   # The option is referenced via a variable to avoid confusing sed.
7936   lt_compile=`echo "$ac_compile" | $SED \
7937   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7938   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7939   -e 's:$: $lt_compiler_flag:'`
7940   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7941   (eval "$lt_compile" 2>conftest.err)
7942   ac_status=$?
7943   cat conftest.err >&5
7944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945   if (exit $ac_status) && test -s "$ac_outfile"; then
7946     # The compiler can only warn and ignore the option if not recognized
7947     # So say no if there are warnings other than the usual output.
7948     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7949     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7950     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7951       lt_cv_prog_compiler_rtti_exceptions=yes
7952     fi
7953   fi
7954   $RM conftest*
7955
7956fi
7957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7958$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7959
7960if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7961    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7962else
7963    :
7964fi
7965
7966fi
7967
7968
7969
7970
7971
7972
7973  lt_prog_compiler_wl=
7974lt_prog_compiler_pic=
7975lt_prog_compiler_static=
7976
7977
7978  if test "$GCC" = yes; then
7979    lt_prog_compiler_wl='-Wl,'
7980    lt_prog_compiler_static='-static'
7981
7982    case $host_os in
7983      aix*)
7984      # All AIX code is PIC.
7985      if test "$host_cpu" = ia64; then
7986	# AIX 5 now supports IA64 processor
7987	lt_prog_compiler_static='-Bstatic'
7988      fi
7989      ;;
7990
7991    amigaos*)
7992      case $host_cpu in
7993      powerpc)
7994            # see comment about AmigaOS4 .so support
7995            lt_prog_compiler_pic='-fPIC'
7996        ;;
7997      m68k)
7998            # FIXME: we need at least 68020 code to build shared libraries, but
7999            # adding the `-m68020' flag to GCC prevents building anything better,
8000            # like `-m68040'.
8001            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8002        ;;
8003      esac
8004      ;;
8005
8006    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8007      # PIC is the default for these OSes.
8008      ;;
8009
8010    mingw* | cygwin* | pw32* | os2* | cegcc*)
8011      # This hack is so that the source file can tell whether it is being
8012      # built for inclusion in a dll (and should export symbols for example).
8013      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8014      # (--disable-auto-import) libraries
8015      lt_prog_compiler_pic='-DDLL_EXPORT'
8016      ;;
8017
8018    darwin* | rhapsody*)
8019      # PIC is the default on this platform
8020      # Common symbols not allowed in MH_DYLIB files
8021      lt_prog_compiler_pic='-fno-common'
8022      ;;
8023
8024    haiku*)
8025      # PIC is the default for Haiku.
8026      # The "-static" flag exists, but is broken.
8027      lt_prog_compiler_static=
8028      ;;
8029
8030    hpux*)
8031      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8032      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8033      # sets the default TLS model and affects inlining.
8034      case $host_cpu in
8035      hppa*64*)
8036	# +Z the default
8037	;;
8038      *)
8039	lt_prog_compiler_pic='-fPIC'
8040	;;
8041      esac
8042      ;;
8043
8044    interix[3-9]*)
8045      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8046      # Instead, we relocate shared libraries at runtime.
8047      ;;
8048
8049    msdosdjgpp*)
8050      # Just because we use GCC doesn't mean we suddenly get shared libraries
8051      # on systems that don't support them.
8052      lt_prog_compiler_can_build_shared=no
8053      enable_shared=no
8054      ;;
8055
8056    *nto* | *qnx*)
8057      # QNX uses GNU C++, but need to define -shared option too, otherwise
8058      # it will coredump.
8059      lt_prog_compiler_pic='-fPIC -shared'
8060      ;;
8061
8062    sysv4*MP*)
8063      if test -d /usr/nec; then
8064	lt_prog_compiler_pic=-Kconform_pic
8065      fi
8066      ;;
8067
8068    *)
8069      lt_prog_compiler_pic='-fPIC'
8070      ;;
8071    esac
8072
8073    case $cc_basename in
8074    nvcc*) # Cuda Compiler Driver 2.2
8075      lt_prog_compiler_wl='-Xlinker '
8076      if test -n "$lt_prog_compiler_pic"; then
8077        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8078      fi
8079      ;;
8080    esac
8081  else
8082    # PORTME Check for flag to pass linker flags through the system compiler.
8083    case $host_os in
8084    aix*)
8085      lt_prog_compiler_wl='-Wl,'
8086      if test "$host_cpu" = ia64; then
8087	# AIX 5 now supports IA64 processor
8088	lt_prog_compiler_static='-Bstatic'
8089      else
8090	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8091      fi
8092      ;;
8093
8094    mingw* | cygwin* | pw32* | os2* | cegcc*)
8095      # This hack is so that the source file can tell whether it is being
8096      # built for inclusion in a dll (and should export symbols for example).
8097      lt_prog_compiler_pic='-DDLL_EXPORT'
8098      ;;
8099
8100    hpux9* | hpux10* | hpux11*)
8101      lt_prog_compiler_wl='-Wl,'
8102      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8103      # not for PA HP-UX.
8104      case $host_cpu in
8105      hppa*64*|ia64*)
8106	# +Z the default
8107	;;
8108      *)
8109	lt_prog_compiler_pic='+Z'
8110	;;
8111      esac
8112      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8113      lt_prog_compiler_static='${wl}-a ${wl}archive'
8114      ;;
8115
8116    irix5* | irix6* | nonstopux*)
8117      lt_prog_compiler_wl='-Wl,'
8118      # PIC (with -KPIC) is the default.
8119      lt_prog_compiler_static='-non_shared'
8120      ;;
8121
8122    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8123      case $cc_basename in
8124      # old Intel for x86_64 which still supported -KPIC.
8125      ecc*)
8126	lt_prog_compiler_wl='-Wl,'
8127	lt_prog_compiler_pic='-KPIC'
8128	lt_prog_compiler_static='-static'
8129        ;;
8130      # icc used to be incompatible with GCC.
8131      # ICC 10 doesn't accept -KPIC any more.
8132      icc* | ifort*)
8133	lt_prog_compiler_wl='-Wl,'
8134	lt_prog_compiler_pic='-fPIC'
8135	lt_prog_compiler_static='-static'
8136        ;;
8137      # Lahey Fortran 8.1.
8138      lf95*)
8139	lt_prog_compiler_wl='-Wl,'
8140	lt_prog_compiler_pic='--shared'
8141	lt_prog_compiler_static='--static'
8142	;;
8143      nagfor*)
8144	# NAG Fortran compiler
8145	lt_prog_compiler_wl='-Wl,-Wl,,'
8146	lt_prog_compiler_pic='-PIC'
8147	lt_prog_compiler_static='-Bstatic'
8148	;;
8149      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8150        # Portland Group compilers (*not* the Pentium gcc compiler,
8151	# which looks to be a dead project)
8152	lt_prog_compiler_wl='-Wl,'
8153	lt_prog_compiler_pic='-fpic'
8154	lt_prog_compiler_static='-Bstatic'
8155        ;;
8156      ccc*)
8157        lt_prog_compiler_wl='-Wl,'
8158        # All Alpha code is PIC.
8159        lt_prog_compiler_static='-non_shared'
8160        ;;
8161      xl* | bgxl* | bgf* | mpixl*)
8162	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8163	lt_prog_compiler_wl='-Wl,'
8164	lt_prog_compiler_pic='-qpic'
8165	lt_prog_compiler_static='-qstaticlink'
8166	;;
8167      *)
8168	case `$CC -V 2>&1 | sed 5q` in
8169	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8170	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8171	  lt_prog_compiler_pic='-KPIC'
8172	  lt_prog_compiler_static='-Bstatic'
8173	  lt_prog_compiler_wl=''
8174	  ;;
8175	*Sun\ F* | *Sun*Fortran*)
8176	  lt_prog_compiler_pic='-KPIC'
8177	  lt_prog_compiler_static='-Bstatic'
8178	  lt_prog_compiler_wl='-Qoption ld '
8179	  ;;
8180	*Sun\ C*)
8181	  # Sun C 5.9
8182	  lt_prog_compiler_pic='-KPIC'
8183	  lt_prog_compiler_static='-Bstatic'
8184	  lt_prog_compiler_wl='-Wl,'
8185	  ;;
8186        *Intel*\ [CF]*Compiler*)
8187	  lt_prog_compiler_wl='-Wl,'
8188	  lt_prog_compiler_pic='-fPIC'
8189	  lt_prog_compiler_static='-static'
8190	  ;;
8191	*Portland\ Group*)
8192	  lt_prog_compiler_wl='-Wl,'
8193	  lt_prog_compiler_pic='-fpic'
8194	  lt_prog_compiler_static='-Bstatic'
8195	  ;;
8196	esac
8197	;;
8198      esac
8199      ;;
8200
8201    newsos6)
8202      lt_prog_compiler_pic='-KPIC'
8203      lt_prog_compiler_static='-Bstatic'
8204      ;;
8205
8206    *nto* | *qnx*)
8207      # QNX uses GNU C++, but need to define -shared option too, otherwise
8208      # it will coredump.
8209      lt_prog_compiler_pic='-fPIC -shared'
8210      ;;
8211
8212    osf3* | osf4* | osf5*)
8213      lt_prog_compiler_wl='-Wl,'
8214      # All OSF/1 code is PIC.
8215      lt_prog_compiler_static='-non_shared'
8216      ;;
8217
8218    rdos*)
8219      lt_prog_compiler_static='-non_shared'
8220      ;;
8221
8222    solaris*)
8223      lt_prog_compiler_pic='-KPIC'
8224      lt_prog_compiler_static='-Bstatic'
8225      case $cc_basename in
8226      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8227	lt_prog_compiler_wl='-Qoption ld ';;
8228      *)
8229	lt_prog_compiler_wl='-Wl,';;
8230      esac
8231      ;;
8232
8233    sunos4*)
8234      lt_prog_compiler_wl='-Qoption ld '
8235      lt_prog_compiler_pic='-PIC'
8236      lt_prog_compiler_static='-Bstatic'
8237      ;;
8238
8239    sysv4 | sysv4.2uw2* | sysv4.3*)
8240      lt_prog_compiler_wl='-Wl,'
8241      lt_prog_compiler_pic='-KPIC'
8242      lt_prog_compiler_static='-Bstatic'
8243      ;;
8244
8245    sysv4*MP*)
8246      if test -d /usr/nec ;then
8247	lt_prog_compiler_pic='-Kconform_pic'
8248	lt_prog_compiler_static='-Bstatic'
8249      fi
8250      ;;
8251
8252    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8253      lt_prog_compiler_wl='-Wl,'
8254      lt_prog_compiler_pic='-KPIC'
8255      lt_prog_compiler_static='-Bstatic'
8256      ;;
8257
8258    unicos*)
8259      lt_prog_compiler_wl='-Wl,'
8260      lt_prog_compiler_can_build_shared=no
8261      ;;
8262
8263    uts4*)
8264      lt_prog_compiler_pic='-pic'
8265      lt_prog_compiler_static='-Bstatic'
8266      ;;
8267
8268    *)
8269      lt_prog_compiler_can_build_shared=no
8270      ;;
8271    esac
8272  fi
8273
8274case $host_os in
8275  # For platforms which do not support PIC, -DPIC is meaningless:
8276  *djgpp*)
8277    lt_prog_compiler_pic=
8278    ;;
8279  *)
8280    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8281    ;;
8282esac
8283
8284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8285$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8286if ${lt_cv_prog_compiler_pic+:} false; then :
8287  $as_echo_n "(cached) " >&6
8288else
8289  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8290fi
8291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8292$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8293lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8294
8295#
8296# Check to make sure the PIC flag actually works.
8297#
8298if test -n "$lt_prog_compiler_pic"; then
8299  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8300$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8301if ${lt_cv_prog_compiler_pic_works+:} false; then :
8302  $as_echo_n "(cached) " >&6
8303else
8304  lt_cv_prog_compiler_pic_works=no
8305   ac_outfile=conftest.$ac_objext
8306   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8307   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8308   # Insert the option either (1) after the last *FLAGS variable, or
8309   # (2) before a word containing "conftest.", or (3) at the end.
8310   # Note that $ac_compile itself does not contain backslashes and begins
8311   # with a dollar sign (not a hyphen), so the echo should work correctly.
8312   # The option is referenced via a variable to avoid confusing sed.
8313   lt_compile=`echo "$ac_compile" | $SED \
8314   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8315   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8316   -e 's:$: $lt_compiler_flag:'`
8317   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8318   (eval "$lt_compile" 2>conftest.err)
8319   ac_status=$?
8320   cat conftest.err >&5
8321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322   if (exit $ac_status) && test -s "$ac_outfile"; then
8323     # The compiler can only warn and ignore the option if not recognized
8324     # So say no if there are warnings other than the usual output.
8325     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8326     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8327     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8328       lt_cv_prog_compiler_pic_works=yes
8329     fi
8330   fi
8331   $RM conftest*
8332
8333fi
8334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8335$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8336
8337if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8338    case $lt_prog_compiler_pic in
8339     "" | " "*) ;;
8340     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8341     esac
8342else
8343    lt_prog_compiler_pic=
8344     lt_prog_compiler_can_build_shared=no
8345fi
8346
8347fi
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359#
8360# Check to make sure the static flag actually works.
8361#
8362wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8364$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8365if ${lt_cv_prog_compiler_static_works+:} false; then :
8366  $as_echo_n "(cached) " >&6
8367else
8368  lt_cv_prog_compiler_static_works=no
8369   save_LDFLAGS="$LDFLAGS"
8370   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8371   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8372   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8373     # The linker can only warn and ignore the option if not recognized
8374     # So say no if there are warnings
8375     if test -s conftest.err; then
8376       # Append any errors to the config.log.
8377       cat conftest.err 1>&5
8378       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8379       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8380       if diff conftest.exp conftest.er2 >/dev/null; then
8381         lt_cv_prog_compiler_static_works=yes
8382       fi
8383     else
8384       lt_cv_prog_compiler_static_works=yes
8385     fi
8386   fi
8387   $RM -r conftest*
8388   LDFLAGS="$save_LDFLAGS"
8389
8390fi
8391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8392$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8393
8394if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8395    :
8396else
8397    lt_prog_compiler_static=
8398fi
8399
8400
8401
8402
8403
8404
8405
8406  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8407$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8408if ${lt_cv_prog_compiler_c_o+:} false; then :
8409  $as_echo_n "(cached) " >&6
8410else
8411  lt_cv_prog_compiler_c_o=no
8412   $RM -r conftest 2>/dev/null
8413   mkdir conftest
8414   cd conftest
8415   mkdir out
8416   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8417
8418   lt_compiler_flag="-o out/conftest2.$ac_objext"
8419   # Insert the option either (1) after the last *FLAGS variable, or
8420   # (2) before a word containing "conftest.", or (3) at the end.
8421   # Note that $ac_compile itself does not contain backslashes and begins
8422   # with a dollar sign (not a hyphen), so the echo should work correctly.
8423   lt_compile=`echo "$ac_compile" | $SED \
8424   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8425   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8426   -e 's:$: $lt_compiler_flag:'`
8427   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8428   (eval "$lt_compile" 2>out/conftest.err)
8429   ac_status=$?
8430   cat out/conftest.err >&5
8431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8433   then
8434     # The compiler can only warn and ignore the option if not recognized
8435     # So say no if there are warnings
8436     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8437     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8438     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8439       lt_cv_prog_compiler_c_o=yes
8440     fi
8441   fi
8442   chmod u+w . 2>&5
8443   $RM conftest*
8444   # SGI C++ compiler will create directory out/ii_files/ for
8445   # template instantiation
8446   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8447   $RM out/* && rmdir out
8448   cd ..
8449   $RM -r conftest
8450   $RM conftest*
8451
8452fi
8453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8454$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8455
8456
8457
8458
8459
8460
8461  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8462$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8463if ${lt_cv_prog_compiler_c_o+:} false; then :
8464  $as_echo_n "(cached) " >&6
8465else
8466  lt_cv_prog_compiler_c_o=no
8467   $RM -r conftest 2>/dev/null
8468   mkdir conftest
8469   cd conftest
8470   mkdir out
8471   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8472
8473   lt_compiler_flag="-o out/conftest2.$ac_objext"
8474   # Insert the option either (1) after the last *FLAGS variable, or
8475   # (2) before a word containing "conftest.", or (3) at the end.
8476   # Note that $ac_compile itself does not contain backslashes and begins
8477   # with a dollar sign (not a hyphen), so the echo should work correctly.
8478   lt_compile=`echo "$ac_compile" | $SED \
8479   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8480   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8481   -e 's:$: $lt_compiler_flag:'`
8482   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8483   (eval "$lt_compile" 2>out/conftest.err)
8484   ac_status=$?
8485   cat out/conftest.err >&5
8486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8488   then
8489     # The compiler can only warn and ignore the option if not recognized
8490     # So say no if there are warnings
8491     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8492     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8493     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8494       lt_cv_prog_compiler_c_o=yes
8495     fi
8496   fi
8497   chmod u+w . 2>&5
8498   $RM conftest*
8499   # SGI C++ compiler will create directory out/ii_files/ for
8500   # template instantiation
8501   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8502   $RM out/* && rmdir out
8503   cd ..
8504   $RM -r conftest
8505   $RM conftest*
8506
8507fi
8508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8509$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8510
8511
8512
8513
8514hard_links="nottested"
8515if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8516  # do not overwrite the value of need_locks provided by the user
8517  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8518$as_echo_n "checking if we can lock with hard links... " >&6; }
8519  hard_links=yes
8520  $RM conftest*
8521  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8522  touch conftest.a
8523  ln conftest.a conftest.b 2>&5 || hard_links=no
8524  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8526$as_echo "$hard_links" >&6; }
8527  if test "$hard_links" = no; then
8528    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8529$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8530    need_locks=warn
8531  fi
8532else
8533  need_locks=no
8534fi
8535
8536
8537
8538
8539
8540
8541  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8542$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8543
8544  runpath_var=
8545  allow_undefined_flag=
8546  always_export_symbols=no
8547  archive_cmds=
8548  archive_expsym_cmds=
8549  compiler_needs_object=no
8550  enable_shared_with_static_runtimes=no
8551  export_dynamic_flag_spec=
8552  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8553  hardcode_automatic=no
8554  hardcode_direct=no
8555  hardcode_direct_absolute=no
8556  hardcode_libdir_flag_spec=
8557  hardcode_libdir_separator=
8558  hardcode_minus_L=no
8559  hardcode_shlibpath_var=unsupported
8560  inherit_rpath=no
8561  link_all_deplibs=unknown
8562  module_cmds=
8563  module_expsym_cmds=
8564  old_archive_from_new_cmds=
8565  old_archive_from_expsyms_cmds=
8566  thread_safe_flag_spec=
8567  whole_archive_flag_spec=
8568  # include_expsyms should be a list of space-separated symbols to be *always*
8569  # included in the symbol list
8570  include_expsyms=
8571  # exclude_expsyms can be an extended regexp of symbols to exclude
8572  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8573  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8574  # as well as any symbol that contains `d'.
8575  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8576  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8577  # platforms (ab)use it in PIC code, but their linkers get confused if
8578  # the symbol is explicitly referenced.  Since portable code cannot
8579  # rely on this symbol name, it's probably fine to never include it in
8580  # preloaded symbol tables.
8581  # Exclude shared library initialization/finalization symbols.
8582  extract_expsyms_cmds=
8583
8584  case $host_os in
8585  cygwin* | mingw* | pw32* | cegcc*)
8586    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8587    # When not using gcc, we currently assume that we are using
8588    # Microsoft Visual C++.
8589    if test "$GCC" != yes; then
8590      with_gnu_ld=no
8591    fi
8592    ;;
8593  interix*)
8594    # we just hope/assume this is gcc and not c89 (= MSVC++)
8595    with_gnu_ld=yes
8596    ;;
8597  openbsd*)
8598    with_gnu_ld=no
8599    ;;
8600  linux* | k*bsd*-gnu | gnu*)
8601    link_all_deplibs=no
8602    ;;
8603  esac
8604
8605  ld_shlibs=yes
8606
8607  # On some targets, GNU ld is compatible enough with the native linker
8608  # that we're better off using the native interface for both.
8609  lt_use_gnu_ld_interface=no
8610  if test "$with_gnu_ld" = yes; then
8611    case $host_os in
8612      aix*)
8613	# The AIX port of GNU ld has always aspired to compatibility
8614	# with the native linker.  However, as the warning in the GNU ld
8615	# block says, versions before 2.19.5* couldn't really create working
8616	# shared libraries, regardless of the interface used.
8617	case `$LD -v 2>&1` in
8618	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8619	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8620	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8621	  *)
8622	    lt_use_gnu_ld_interface=yes
8623	    ;;
8624	esac
8625	;;
8626      *)
8627	lt_use_gnu_ld_interface=yes
8628	;;
8629    esac
8630  fi
8631
8632  if test "$lt_use_gnu_ld_interface" = yes; then
8633    # If archive_cmds runs LD, not CC, wlarc should be empty
8634    wlarc='${wl}'
8635
8636    # Set some defaults for GNU ld with shared library support. These
8637    # are reset later if shared libraries are not supported. Putting them
8638    # here allows them to be overridden if necessary.
8639    runpath_var=LD_RUN_PATH
8640    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8641    export_dynamic_flag_spec='${wl}--export-dynamic'
8642    # ancient GNU ld didn't support --whole-archive et. al.
8643    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8644      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8645    else
8646      whole_archive_flag_spec=
8647    fi
8648    supports_anon_versioning=no
8649    case `$LD -v 2>&1` in
8650      *GNU\ gold*) supports_anon_versioning=yes ;;
8651      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8652      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8653      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8654      *\ 2.11.*) ;; # other 2.11 versions
8655      *) supports_anon_versioning=yes ;;
8656    esac
8657
8658    # See if GNU ld supports shared libraries.
8659    case $host_os in
8660    aix[3-9]*)
8661      # On AIX/PPC, the GNU linker is very broken
8662      if test "$host_cpu" != ia64; then
8663	ld_shlibs=no
8664	cat <<_LT_EOF 1>&2
8665
8666*** Warning: the GNU linker, at least up to release 2.19, is reported
8667*** to be unable to reliably create shared libraries on AIX.
8668*** Therefore, libtool is disabling shared libraries support.  If you
8669*** really care for shared libraries, you may want to install binutils
8670*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8671*** You will then need to restart the configuration process.
8672
8673_LT_EOF
8674      fi
8675      ;;
8676
8677    amigaos*)
8678      case $host_cpu in
8679      powerpc)
8680            # see comment about AmigaOS4 .so support
8681            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8682            archive_expsym_cmds=''
8683        ;;
8684      m68k)
8685            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)'
8686            hardcode_libdir_flag_spec='-L$libdir'
8687            hardcode_minus_L=yes
8688        ;;
8689      esac
8690      ;;
8691
8692    beos*)
8693      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8694	allow_undefined_flag=unsupported
8695	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8696	# support --undefined.  This deserves some investigation.  FIXME
8697	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8698      else
8699	ld_shlibs=no
8700      fi
8701      ;;
8702
8703    cygwin* | mingw* | pw32* | cegcc*)
8704      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8705      # as there is no search path for DLLs.
8706      hardcode_libdir_flag_spec='-L$libdir'
8707      export_dynamic_flag_spec='${wl}--export-all-symbols'
8708      allow_undefined_flag=unsupported
8709      always_export_symbols=no
8710      enable_shared_with_static_runtimes=yes
8711      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8712      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8713
8714      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8715        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8716	# If the export-symbols file already is a .def file (1st line
8717	# is EXPORTS), use it as is; otherwise, prepend...
8718	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8719	  cp $export_symbols $output_objdir/$soname.def;
8720	else
8721	  echo EXPORTS > $output_objdir/$soname.def;
8722	  cat $export_symbols >> $output_objdir/$soname.def;
8723	fi~
8724	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8725      else
8726	ld_shlibs=no
8727      fi
8728      ;;
8729
8730    haiku*)
8731      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8732      link_all_deplibs=yes
8733      ;;
8734
8735    interix[3-9]*)
8736      hardcode_direct=no
8737      hardcode_shlibpath_var=no
8738      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8739      export_dynamic_flag_spec='${wl}-E'
8740      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8741      # Instead, shared libraries are loaded at an image base (0x10000000 by
8742      # default) and relocated if they conflict, which is a slow very memory
8743      # consuming and fragmenting process.  To avoid this, we pick a random,
8744      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8745      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8746      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8747      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'
8748      ;;
8749
8750    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8751      tmp_diet=no
8752      if test "$host_os" = linux-dietlibc; then
8753	case $cc_basename in
8754	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8755	esac
8756      fi
8757      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8758	 && test "$tmp_diet" = no
8759      then
8760	tmp_addflag=' $pic_flag'
8761	tmp_sharedflag='-shared'
8762	case $cc_basename,$host_cpu in
8763        pgcc*)				# Portland Group C compiler
8764	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8765	  tmp_addflag=' $pic_flag'
8766	  ;;
8767	pgf77* | pgf90* | pgf95* | pgfortran*)
8768					# Portland Group f77 and f90 compilers
8769	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8770	  tmp_addflag=' $pic_flag -Mnomain' ;;
8771	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8772	  tmp_addflag=' -i_dynamic' ;;
8773	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8774	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8775	ifc* | ifort*)			# Intel Fortran compiler
8776	  tmp_addflag=' -nofor_main' ;;
8777	lf95*)				# Lahey Fortran 8.1
8778	  whole_archive_flag_spec=
8779	  tmp_sharedflag='--shared' ;;
8780	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8781	  tmp_sharedflag='-qmkshrobj'
8782	  tmp_addflag= ;;
8783	nvcc*)	# Cuda Compiler Driver 2.2
8784	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8785	  compiler_needs_object=yes
8786	  ;;
8787	esac
8788	case `$CC -V 2>&1 | sed 5q` in
8789	*Sun\ C*)			# Sun C 5.9
8790	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8791	  compiler_needs_object=yes
8792	  tmp_sharedflag='-G' ;;
8793	*Sun\ F*)			# Sun Fortran 8.3
8794	  tmp_sharedflag='-G' ;;
8795	esac
8796	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8797
8798        if test "x$supports_anon_versioning" = xyes; then
8799          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8800	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8801	    echo "local: *; };" >> $output_objdir/$libname.ver~
8802	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8803        fi
8804
8805	case $cc_basename in
8806	xlf* | bgf* | bgxlf* | mpixlf*)
8807	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8808	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8809	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8810	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8811	  if test "x$supports_anon_versioning" = xyes; then
8812	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8813	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8814	      echo "local: *; };" >> $output_objdir/$libname.ver~
8815	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8816	  fi
8817	  ;;
8818	esac
8819      else
8820        ld_shlibs=no
8821      fi
8822      ;;
8823
8824    netbsd* | netbsdelf*-gnu)
8825      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8826	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8827	wlarc=
8828      else
8829	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8830	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8831      fi
8832      ;;
8833
8834    solaris*)
8835      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8836	ld_shlibs=no
8837	cat <<_LT_EOF 1>&2
8838
8839*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8840*** create shared libraries on Solaris systems.  Therefore, libtool
8841*** is disabling shared libraries support.  We urge you to upgrade GNU
8842*** binutils to release 2.9.1 or newer.  Another option is to modify
8843*** your PATH or compiler configuration so that the native linker is
8844*** used, and then restart.
8845
8846_LT_EOF
8847      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8848	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8849	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8850      else
8851	ld_shlibs=no
8852      fi
8853      ;;
8854
8855    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8856      case `$LD -v 2>&1` in
8857        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8858	ld_shlibs=no
8859	cat <<_LT_EOF 1>&2
8860
8861*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8862*** reliably create shared libraries on SCO systems.  Therefore, libtool
8863*** is disabling shared libraries support.  We urge you to upgrade GNU
8864*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8865*** your PATH or compiler configuration so that the native linker is
8866*** used, and then restart.
8867
8868_LT_EOF
8869	;;
8870	*)
8871	  # For security reasons, it is highly recommended that you always
8872	  # use absolute paths for naming shared libraries, and exclude the
8873	  # DT_RUNPATH tag from executables and libraries.  But doing so
8874	  # requires that you compile everything twice, which is a pain.
8875	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8876	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8877	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8878	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8879	  else
8880	    ld_shlibs=no
8881	  fi
8882	;;
8883      esac
8884      ;;
8885
8886    sunos4*)
8887      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8888      wlarc=
8889      hardcode_direct=yes
8890      hardcode_shlibpath_var=no
8891      ;;
8892
8893    *)
8894      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8895	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8896	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8897      else
8898	ld_shlibs=no
8899      fi
8900      ;;
8901    esac
8902
8903    if test "$ld_shlibs" = no; then
8904      runpath_var=
8905      hardcode_libdir_flag_spec=
8906      export_dynamic_flag_spec=
8907      whole_archive_flag_spec=
8908    fi
8909  else
8910    # PORTME fill in a description of your system's linker (not GNU ld)
8911    case $host_os in
8912    aix3*)
8913      allow_undefined_flag=unsupported
8914      always_export_symbols=yes
8915      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'
8916      # Note: this linker hardcodes the directories in LIBPATH if there
8917      # are no directories specified by -L.
8918      hardcode_minus_L=yes
8919      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8920	# Neither direct hardcoding nor static linking is supported with a
8921	# broken collect2.
8922	hardcode_direct=unsupported
8923      fi
8924      ;;
8925
8926    aix[4-9]*)
8927      if test "$host_cpu" = ia64; then
8928	# On IA64, the linker does run time linking by default, so we don't
8929	# have to do anything special.
8930	aix_use_runtimelinking=no
8931	exp_sym_flag='-Bexport'
8932	no_entry_flag=""
8933      else
8934	# If we're using GNU nm, then we don't want the "-C" option.
8935	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8936	# Also, AIX nm treats weak defined symbols like other global
8937	# defined symbols, whereas GNU nm marks them as "W".
8938	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8939	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8940	else
8941	  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'
8942	fi
8943	aix_use_runtimelinking=no
8944
8945	# Test if we are trying to use run time linking or normal
8946	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8947	# need to do runtime linking.
8948	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8949	  for ld_flag in $LDFLAGS; do
8950	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8951	    aix_use_runtimelinking=yes
8952	    break
8953	  fi
8954	  done
8955	  ;;
8956	esac
8957
8958	exp_sym_flag='-bexport'
8959	no_entry_flag='-bnoentry'
8960      fi
8961
8962      # When large executables or shared objects are built, AIX ld can
8963      # have problems creating the table of contents.  If linking a library
8964      # or program results in "error TOC overflow" add -mminimal-toc to
8965      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8966      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8967
8968      archive_cmds=''
8969      hardcode_direct=yes
8970      hardcode_direct_absolute=yes
8971      hardcode_libdir_separator=':'
8972      link_all_deplibs=yes
8973      file_list_spec='${wl}-f,'
8974
8975      if test "$GCC" = yes; then
8976	case $host_os in aix4.[012]|aix4.[012].*)
8977	# We only want to do this on AIX 4.2 and lower, the check
8978	# below for broken collect2 doesn't work under 4.3+
8979	  collect2name=`${CC} -print-prog-name=collect2`
8980	  if test -f "$collect2name" &&
8981	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8982	  then
8983	  # We have reworked collect2
8984	  :
8985	  else
8986	  # We have old collect2
8987	  hardcode_direct=unsupported
8988	  # It fails to find uninstalled libraries when the uninstalled
8989	  # path is not listed in the libpath.  Setting hardcode_minus_L
8990	  # to unsupported forces relinking
8991	  hardcode_minus_L=yes
8992	  hardcode_libdir_flag_spec='-L$libdir'
8993	  hardcode_libdir_separator=
8994	  fi
8995	  ;;
8996	esac
8997	shared_flag='-shared'
8998	if test "$aix_use_runtimelinking" = yes; then
8999	  shared_flag="$shared_flag "'${wl}-G'
9000	fi
9001	link_all_deplibs=no
9002      else
9003	# not using gcc
9004	if test "$host_cpu" = ia64; then
9005	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9006	# chokes on -Wl,-G. The following line is correct:
9007	  shared_flag='-G'
9008	else
9009	  if test "$aix_use_runtimelinking" = yes; then
9010	    shared_flag='${wl}-G'
9011	  else
9012	    shared_flag='${wl}-bM:SRE'
9013	  fi
9014	fi
9015      fi
9016
9017      export_dynamic_flag_spec='${wl}-bexpall'
9018      # It seems that -bexpall does not export symbols beginning with
9019      # underscore (_), so it is better to generate a list of symbols to export.
9020      always_export_symbols=yes
9021      if test "$aix_use_runtimelinking" = yes; then
9022	# Warning - without using the other runtime loading flags (-brtl),
9023	# -berok will link without error, but may produce a broken library.
9024	allow_undefined_flag='-berok'
9025        # Determine the default libpath from the value encoded in an
9026        # empty executable.
9027        if test "${lt_cv_aix_libpath+set}" = set; then
9028  aix_libpath=$lt_cv_aix_libpath
9029else
9030  if ${lt_cv_aix_libpath_+:} false; then :
9031  $as_echo_n "(cached) " >&6
9032else
9033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9034/* end confdefs.h.  */
9035
9036int
9037main ()
9038{
9039
9040  ;
9041  return 0;
9042}
9043_ACEOF
9044if ac_fn_c_try_link "$LINENO"; then :
9045
9046  lt_aix_libpath_sed='
9047      /Import File Strings/,/^$/ {
9048	  /^0/ {
9049	      s/^0  *\([^ ]*\) *$/\1/
9050	      p
9051	  }
9052      }'
9053  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9054  # Check for a 64-bit object if we didn't find anything.
9055  if test -z "$lt_cv_aix_libpath_"; then
9056    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9057  fi
9058fi
9059rm -f core conftest.err conftest.$ac_objext \
9060    conftest$ac_exeext conftest.$ac_ext
9061  if test -z "$lt_cv_aix_libpath_"; then
9062    lt_cv_aix_libpath_="/usr/lib:/lib"
9063  fi
9064
9065fi
9066
9067  aix_libpath=$lt_cv_aix_libpath_
9068fi
9069
9070        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9071        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9072      else
9073	if test "$host_cpu" = ia64; then
9074	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9075	  allow_undefined_flag="-z nodefs"
9076	  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"
9077	else
9078	 # Determine the default libpath from the value encoded in an
9079	 # empty executable.
9080	 if test "${lt_cv_aix_libpath+set}" = set; then
9081  aix_libpath=$lt_cv_aix_libpath
9082else
9083  if ${lt_cv_aix_libpath_+:} false; then :
9084  $as_echo_n "(cached) " >&6
9085else
9086  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9087/* end confdefs.h.  */
9088
9089int
9090main ()
9091{
9092
9093  ;
9094  return 0;
9095}
9096_ACEOF
9097if ac_fn_c_try_link "$LINENO"; then :
9098
9099  lt_aix_libpath_sed='
9100      /Import File Strings/,/^$/ {
9101	  /^0/ {
9102	      s/^0  *\([^ ]*\) *$/\1/
9103	      p
9104	  }
9105      }'
9106  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9107  # Check for a 64-bit object if we didn't find anything.
9108  if test -z "$lt_cv_aix_libpath_"; then
9109    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9110  fi
9111fi
9112rm -f core conftest.err conftest.$ac_objext \
9113    conftest$ac_exeext conftest.$ac_ext
9114  if test -z "$lt_cv_aix_libpath_"; then
9115    lt_cv_aix_libpath_="/usr/lib:/lib"
9116  fi
9117
9118fi
9119
9120  aix_libpath=$lt_cv_aix_libpath_
9121fi
9122
9123	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9124	  # Warning - without using the other run time loading flags,
9125	  # -berok will link without error, but may produce a broken library.
9126	  no_undefined_flag=' ${wl}-bernotok'
9127	  allow_undefined_flag=' ${wl}-berok'
9128	  if test "$with_gnu_ld" = yes; then
9129	    # We only use this code for GNU lds that support --whole-archive.
9130	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9131	  else
9132	    # Exported symbols can be pulled into shared objects from archives
9133	    whole_archive_flag_spec='$convenience'
9134	  fi
9135	  archive_cmds_need_lc=yes
9136	  # This is similar to how AIX traditionally builds its shared libraries.
9137	  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'
9138	fi
9139      fi
9140      ;;
9141
9142    amigaos*)
9143      case $host_cpu in
9144      powerpc)
9145            # see comment about AmigaOS4 .so support
9146            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9147            archive_expsym_cmds=''
9148        ;;
9149      m68k)
9150            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)'
9151            hardcode_libdir_flag_spec='-L$libdir'
9152            hardcode_minus_L=yes
9153        ;;
9154      esac
9155      ;;
9156
9157    bsdi[45]*)
9158      export_dynamic_flag_spec=-rdynamic
9159      ;;
9160
9161    cygwin* | mingw* | pw32* | cegcc*)
9162      # When not using gcc, we currently assume that we are using
9163      # Microsoft Visual C++.
9164      # hardcode_libdir_flag_spec is actually meaningless, as there is
9165      # no search path for DLLs.
9166      case $cc_basename in
9167      cl*)
9168	# Native MSVC
9169	hardcode_libdir_flag_spec=' '
9170	allow_undefined_flag=unsupported
9171	always_export_symbols=yes
9172	file_list_spec='@'
9173	# Tell ltmain to make .lib files, not .a files.
9174	libext=lib
9175	# Tell ltmain to make .dll files, not .so files.
9176	shrext_cmds=".dll"
9177	# FIXME: Setting linknames here is a bad hack.
9178	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9179	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9180	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9181	  else
9182	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9183	  fi~
9184	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9185	  linknames='
9186	# The linker will not automatically build a static lib if we build a DLL.
9187	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9188	enable_shared_with_static_runtimes=yes
9189	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9190	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9191	# Don't use ranlib
9192	old_postinstall_cmds='chmod 644 $oldlib'
9193	postlink_cmds='lt_outputfile="@OUTPUT@"~
9194	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9195	  case $lt_outputfile in
9196	    *.exe|*.EXE) ;;
9197	    *)
9198	      lt_outputfile="$lt_outputfile.exe"
9199	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9200	      ;;
9201	  esac~
9202	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9203	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9204	    $RM "$lt_outputfile.manifest";
9205	  fi'
9206	;;
9207      *)
9208	# Assume MSVC wrapper
9209	hardcode_libdir_flag_spec=' '
9210	allow_undefined_flag=unsupported
9211	# Tell ltmain to make .lib files, not .a files.
9212	libext=lib
9213	# Tell ltmain to make .dll files, not .so files.
9214	shrext_cmds=".dll"
9215	# FIXME: Setting linknames here is a bad hack.
9216	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9217	# The linker will automatically build a .lib file if we build a DLL.
9218	old_archive_from_new_cmds='true'
9219	# FIXME: Should let the user specify the lib program.
9220	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9221	enable_shared_with_static_runtimes=yes
9222	;;
9223      esac
9224      ;;
9225
9226    darwin* | rhapsody*)
9227
9228
9229  archive_cmds_need_lc=no
9230  hardcode_direct=no
9231  hardcode_automatic=yes
9232  hardcode_shlibpath_var=unsupported
9233  if test "$lt_cv_ld_force_load" = "yes"; then
9234    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9235
9236  else
9237    whole_archive_flag_spec=''
9238  fi
9239  link_all_deplibs=yes
9240  allow_undefined_flag="$_lt_dar_allow_undefined"
9241  case $cc_basename in
9242     ifort*) _lt_dar_can_shared=yes ;;
9243     *) _lt_dar_can_shared=$GCC ;;
9244  esac
9245  if test "$_lt_dar_can_shared" = "yes"; then
9246    output_verbose_link_cmd=func_echo_all
9247    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9248    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9249    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}"
9250    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}"
9251
9252  else
9253  ld_shlibs=no
9254  fi
9255
9256      ;;
9257
9258    dgux*)
9259      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9260      hardcode_libdir_flag_spec='-L$libdir'
9261      hardcode_shlibpath_var=no
9262      ;;
9263
9264    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9265    # support.  Future versions do this automatically, but an explicit c++rt0.o
9266    # does not break anything, and helps significantly (at the cost of a little
9267    # extra space).
9268    freebsd2.2*)
9269      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9270      hardcode_libdir_flag_spec='-R$libdir'
9271      hardcode_direct=yes
9272      hardcode_shlibpath_var=no
9273      ;;
9274
9275    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9276    freebsd2.*)
9277      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9278      hardcode_direct=yes
9279      hardcode_minus_L=yes
9280      hardcode_shlibpath_var=no
9281      ;;
9282
9283    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9284    freebsd* | dragonfly*)
9285      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9286      hardcode_libdir_flag_spec='-R$libdir'
9287      hardcode_direct=yes
9288      hardcode_shlibpath_var=no
9289      ;;
9290
9291    hpux9*)
9292      if test "$GCC" = yes; then
9293	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9294      else
9295	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'
9296      fi
9297      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9298      hardcode_libdir_separator=:
9299      hardcode_direct=yes
9300
9301      # hardcode_minus_L: Not really in the search PATH,
9302      # but as the default location of the library.
9303      hardcode_minus_L=yes
9304      export_dynamic_flag_spec='${wl}-E'
9305      ;;
9306
9307    hpux10*)
9308      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9309	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9310      else
9311	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9312      fi
9313      if test "$with_gnu_ld" = no; then
9314	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9315	hardcode_libdir_separator=:
9316	hardcode_direct=yes
9317	hardcode_direct_absolute=yes
9318	export_dynamic_flag_spec='${wl}-E'
9319	# hardcode_minus_L: Not really in the search PATH,
9320	# but as the default location of the library.
9321	hardcode_minus_L=yes
9322      fi
9323      ;;
9324
9325    hpux11*)
9326      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9327	case $host_cpu in
9328	hppa*64*)
9329	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9330	  ;;
9331	ia64*)
9332	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9333	  ;;
9334	*)
9335	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9336	  ;;
9337	esac
9338      else
9339	case $host_cpu in
9340	hppa*64*)
9341	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9342	  ;;
9343	ia64*)
9344	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9345	  ;;
9346	*)
9347
9348	  # Older versions of the 11.00 compiler do not understand -b yet
9349	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9350	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9351$as_echo_n "checking if $CC understands -b... " >&6; }
9352if ${lt_cv_prog_compiler__b+:} false; then :
9353  $as_echo_n "(cached) " >&6
9354else
9355  lt_cv_prog_compiler__b=no
9356   save_LDFLAGS="$LDFLAGS"
9357   LDFLAGS="$LDFLAGS -b"
9358   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9359   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9360     # The linker can only warn and ignore the option if not recognized
9361     # So say no if there are warnings
9362     if test -s conftest.err; then
9363       # Append any errors to the config.log.
9364       cat conftest.err 1>&5
9365       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9366       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9367       if diff conftest.exp conftest.er2 >/dev/null; then
9368         lt_cv_prog_compiler__b=yes
9369       fi
9370     else
9371       lt_cv_prog_compiler__b=yes
9372     fi
9373   fi
9374   $RM -r conftest*
9375   LDFLAGS="$save_LDFLAGS"
9376
9377fi
9378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9379$as_echo "$lt_cv_prog_compiler__b" >&6; }
9380
9381if test x"$lt_cv_prog_compiler__b" = xyes; then
9382    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9383else
9384    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9385fi
9386
9387	  ;;
9388	esac
9389      fi
9390      if test "$with_gnu_ld" = no; then
9391	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9392	hardcode_libdir_separator=:
9393
9394	case $host_cpu in
9395	hppa*64*|ia64*)
9396	  hardcode_direct=no
9397	  hardcode_shlibpath_var=no
9398	  ;;
9399	*)
9400	  hardcode_direct=yes
9401	  hardcode_direct_absolute=yes
9402	  export_dynamic_flag_spec='${wl}-E'
9403
9404	  # hardcode_minus_L: Not really in the search PATH,
9405	  # but as the default location of the library.
9406	  hardcode_minus_L=yes
9407	  ;;
9408	esac
9409      fi
9410      ;;
9411
9412    irix5* | irix6* | nonstopux*)
9413      if test "$GCC" = yes; then
9414	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9415	# Try to use the -exported_symbol ld option, if it does not
9416	# work, assume that -exports_file does not work either and
9417	# implicitly export all symbols.
9418	# This should be the same for all languages, so no per-tag cache variable.
9419	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9420$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9421if ${lt_cv_irix_exported_symbol+:} false; then :
9422  $as_echo_n "(cached) " >&6
9423else
9424  save_LDFLAGS="$LDFLAGS"
9425	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9426	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9427/* end confdefs.h.  */
9428int foo (void) { return 0; }
9429_ACEOF
9430if ac_fn_c_try_link "$LINENO"; then :
9431  lt_cv_irix_exported_symbol=yes
9432else
9433  lt_cv_irix_exported_symbol=no
9434fi
9435rm -f core conftest.err conftest.$ac_objext \
9436    conftest$ac_exeext conftest.$ac_ext
9437           LDFLAGS="$save_LDFLAGS"
9438fi
9439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9440$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9441	if test "$lt_cv_irix_exported_symbol" = yes; then
9442          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9443	fi
9444      else
9445	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9446	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9447      fi
9448      archive_cmds_need_lc='no'
9449      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9450      hardcode_libdir_separator=:
9451      inherit_rpath=yes
9452      link_all_deplibs=yes
9453      ;;
9454
9455    netbsd* | netbsdelf*-gnu)
9456      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9457	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9458      else
9459	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9460      fi
9461      hardcode_libdir_flag_spec='-R$libdir'
9462      hardcode_direct=yes
9463      hardcode_shlibpath_var=no
9464      ;;
9465
9466    newsos6)
9467      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9468      hardcode_direct=yes
9469      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9470      hardcode_libdir_separator=:
9471      hardcode_shlibpath_var=no
9472      ;;
9473
9474    *nto* | *qnx*)
9475      ;;
9476
9477    openbsd*)
9478      if test -f /usr/libexec/ld.so; then
9479	hardcode_direct=yes
9480	hardcode_shlibpath_var=no
9481	hardcode_direct_absolute=yes
9482	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9483	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9484	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9485	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9486	  export_dynamic_flag_spec='${wl}-E'
9487	else
9488	  case $host_os in
9489	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9490	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9491	     hardcode_libdir_flag_spec='-R$libdir'
9492	     ;;
9493	   *)
9494	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9495	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9496	     ;;
9497	  esac
9498	fi
9499      else
9500	ld_shlibs=no
9501      fi
9502      ;;
9503
9504    os2*)
9505      hardcode_libdir_flag_spec='-L$libdir'
9506      hardcode_minus_L=yes
9507      allow_undefined_flag=unsupported
9508      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'
9509      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9510      ;;
9511
9512    osf3*)
9513      if test "$GCC" = yes; then
9514	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9515	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9516      else
9517	allow_undefined_flag=' -expect_unresolved \*'
9518	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9519      fi
9520      archive_cmds_need_lc='no'
9521      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9522      hardcode_libdir_separator=:
9523      ;;
9524
9525    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9526      if test "$GCC" = yes; then
9527	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9528	archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9529	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9530      else
9531	allow_undefined_flag=' -expect_unresolved \*'
9532	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9533	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~
9534	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9535
9536	# Both c and cxx compiler support -rpath directly
9537	hardcode_libdir_flag_spec='-rpath $libdir'
9538      fi
9539      archive_cmds_need_lc='no'
9540      hardcode_libdir_separator=:
9541      ;;
9542
9543    solaris*)
9544      no_undefined_flag=' -z defs'
9545      if test "$GCC" = yes; then
9546	wlarc='${wl}'
9547	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9548	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9549	  $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9550      else
9551	case `$CC -V 2>&1` in
9552	*"Compilers 5.0"*)
9553	  wlarc=''
9554	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9555	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9556	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9557	  ;;
9558	*)
9559	  wlarc='${wl}'
9560	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9561	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9562	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9563	  ;;
9564	esac
9565      fi
9566      hardcode_libdir_flag_spec='-R$libdir'
9567      hardcode_shlibpath_var=no
9568      case $host_os in
9569      solaris2.[0-5] | solaris2.[0-5].*) ;;
9570      *)
9571	# The compiler driver will combine and reorder linker options,
9572	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9573	# but is careful enough not to reorder.
9574	# Supported since Solaris 2.6 (maybe 2.5.1?)
9575	if test "$GCC" = yes; then
9576	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9577	else
9578	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9579	fi
9580	;;
9581      esac
9582      link_all_deplibs=yes
9583      ;;
9584
9585    sunos4*)
9586      if test "x$host_vendor" = xsequent; then
9587	# Use $CC to link under sequent, because it throws in some extra .o
9588	# files that make .init and .fini sections work.
9589	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9590      else
9591	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9592      fi
9593      hardcode_libdir_flag_spec='-L$libdir'
9594      hardcode_direct=yes
9595      hardcode_minus_L=yes
9596      hardcode_shlibpath_var=no
9597      ;;
9598
9599    sysv4)
9600      case $host_vendor in
9601	sni)
9602	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9603	  hardcode_direct=yes # is this really true???
9604	;;
9605	siemens)
9606	  ## LD is ld it makes a PLAMLIB
9607	  ## CC just makes a GrossModule.
9608	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9609	  reload_cmds='$CC -r -o $output$reload_objs'
9610	  hardcode_direct=no
9611        ;;
9612	motorola)
9613	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9614	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9615	;;
9616      esac
9617      runpath_var='LD_RUN_PATH'
9618      hardcode_shlibpath_var=no
9619      ;;
9620
9621    sysv4.3*)
9622      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9623      hardcode_shlibpath_var=no
9624      export_dynamic_flag_spec='-Bexport'
9625      ;;
9626
9627    sysv4*MP*)
9628      if test -d /usr/nec; then
9629	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9630	hardcode_shlibpath_var=no
9631	runpath_var=LD_RUN_PATH
9632	hardcode_runpath_var=yes
9633	ld_shlibs=yes
9634      fi
9635      ;;
9636
9637    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9638      no_undefined_flag='${wl}-z,text'
9639      archive_cmds_need_lc=no
9640      hardcode_shlibpath_var=no
9641      runpath_var='LD_RUN_PATH'
9642
9643      if test "$GCC" = yes; then
9644	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9645	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9646      else
9647	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9648	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9649      fi
9650      ;;
9651
9652    sysv5* | sco3.2v5* | sco5v6*)
9653      # Note: We can NOT use -z defs as we might desire, because we do not
9654      # link with -lc, and that would cause any symbols used from libc to
9655      # always be unresolved, which means just about no library would
9656      # ever link correctly.  If we're not using GNU ld we use -z text
9657      # though, which does catch some bad symbols but isn't as heavy-handed
9658      # as -z defs.
9659      no_undefined_flag='${wl}-z,text'
9660      allow_undefined_flag='${wl}-z,nodefs'
9661      archive_cmds_need_lc=no
9662      hardcode_shlibpath_var=no
9663      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9664      hardcode_libdir_separator=':'
9665      link_all_deplibs=yes
9666      export_dynamic_flag_spec='${wl}-Bexport'
9667      runpath_var='LD_RUN_PATH'
9668
9669      if test "$GCC" = yes; then
9670	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9671	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9672      else
9673	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9674	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9675      fi
9676      ;;
9677
9678    uts4*)
9679      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9680      hardcode_libdir_flag_spec='-L$libdir'
9681      hardcode_shlibpath_var=no
9682      ;;
9683
9684    *)
9685      ld_shlibs=no
9686      ;;
9687    esac
9688
9689    if test x$host_vendor = xsni; then
9690      case $host in
9691      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9692	export_dynamic_flag_spec='${wl}-Blargedynsym'
9693	;;
9694      esac
9695    fi
9696  fi
9697
9698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9699$as_echo "$ld_shlibs" >&6; }
9700test "$ld_shlibs" = no && can_build_shared=no
9701
9702with_gnu_ld=$with_gnu_ld
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718#
9719# Do we need to explicitly link libc?
9720#
9721case "x$archive_cmds_need_lc" in
9722x|xyes)
9723  # Assume -lc should be added
9724  archive_cmds_need_lc=yes
9725
9726  if test "$enable_shared" = yes && test "$GCC" = yes; then
9727    case $archive_cmds in
9728    *'~'*)
9729      # FIXME: we may have to deal with multi-command sequences.
9730      ;;
9731    '$CC '*)
9732      # Test whether the compiler implicitly links with -lc since on some
9733      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9734      # to ld, don't add -lc before -lgcc.
9735      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9736$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9737if ${lt_cv_archive_cmds_need_lc+:} false; then :
9738  $as_echo_n "(cached) " >&6
9739else
9740  $RM conftest*
9741	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9742
9743	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9744  (eval $ac_compile) 2>&5
9745  ac_status=$?
9746  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9747  test $ac_status = 0; } 2>conftest.err; then
9748	  soname=conftest
9749	  lib=conftest
9750	  libobjs=conftest.$ac_objext
9751	  deplibs=
9752	  wl=$lt_prog_compiler_wl
9753	  pic_flag=$lt_prog_compiler_pic
9754	  compiler_flags=-v
9755	  linker_flags=-v
9756	  verstring=
9757	  output_objdir=.
9758	  libname=conftest
9759	  lt_save_allow_undefined_flag=$allow_undefined_flag
9760	  allow_undefined_flag=
9761	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9762  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9763  ac_status=$?
9764  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9765  test $ac_status = 0; }
9766	  then
9767	    lt_cv_archive_cmds_need_lc=no
9768	  else
9769	    lt_cv_archive_cmds_need_lc=yes
9770	  fi
9771	  allow_undefined_flag=$lt_save_allow_undefined_flag
9772	else
9773	  cat conftest.err 1>&5
9774	fi
9775	$RM conftest*
9776
9777fi
9778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9779$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9780      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9781      ;;
9782    esac
9783  fi
9784  ;;
9785esac
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9939$as_echo_n "checking dynamic linker characteristics... " >&6; }
9940
9941if test "$GCC" = yes; then
9942  case $host_os in
9943    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9944    *) lt_awk_arg="/^libraries:/" ;;
9945  esac
9946  case $host_os in
9947    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9948    *) lt_sed_strip_eq="s,=/,/,g" ;;
9949  esac
9950  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9951  case $lt_search_path_spec in
9952  *\;*)
9953    # if the path contains ";" then we assume it to be the separator
9954    # otherwise default to the standard path separator (i.e. ":") - it is
9955    # assumed that no part of a normal pathname contains ";" but that should
9956    # okay in the real world where ";" in dirpaths is itself problematic.
9957    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9958    ;;
9959  *)
9960    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9961    ;;
9962  esac
9963  # Ok, now we have the path, separated by spaces, we can step through it
9964  # and add multilib dir if necessary.
9965  lt_tmp_lt_search_path_spec=
9966  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9967  for lt_sys_path in $lt_search_path_spec; do
9968    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9969      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9970    else
9971      test -d "$lt_sys_path" && \
9972	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9973    fi
9974  done
9975  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9976BEGIN {RS=" "; FS="/|\n";} {
9977  lt_foo="";
9978  lt_count=0;
9979  for (lt_i = NF; lt_i > 0; lt_i--) {
9980    if ($lt_i != "" && $lt_i != ".") {
9981      if ($lt_i == "..") {
9982        lt_count++;
9983      } else {
9984        if (lt_count == 0) {
9985          lt_foo="/" $lt_i lt_foo;
9986        } else {
9987          lt_count--;
9988        }
9989      }
9990    }
9991  }
9992  if (lt_foo != "") { lt_freq[lt_foo]++; }
9993  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9994}'`
9995  # AWK program above erroneously prepends '/' to C:/dos/paths
9996  # for these hosts.
9997  case $host_os in
9998    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9999      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10000  esac
10001  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10002else
10003  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10004fi
10005library_names_spec=
10006libname_spec='lib$name'
10007soname_spec=
10008shrext_cmds=".so"
10009postinstall_cmds=
10010postuninstall_cmds=
10011finish_cmds=
10012finish_eval=
10013shlibpath_var=
10014shlibpath_overrides_runpath=unknown
10015version_type=none
10016dynamic_linker="$host_os ld.so"
10017sys_lib_dlsearch_path_spec="/lib /usr/lib"
10018need_lib_prefix=unknown
10019hardcode_into_libs=no
10020
10021# when you set need_version to no, make sure it does not cause -set_version
10022# flags to be left without arguments
10023need_version=unknown
10024
10025case $host_os in
10026aix3*)
10027  version_type=linux # correct to gnu/linux during the next big refactor
10028  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10029  shlibpath_var=LIBPATH
10030
10031  # AIX 3 has no versioning support, so we append a major version to the name.
10032  soname_spec='${libname}${release}${shared_ext}$major'
10033  ;;
10034
10035aix[4-9]*)
10036  version_type=linux # correct to gnu/linux during the next big refactor
10037  need_lib_prefix=no
10038  need_version=no
10039  hardcode_into_libs=yes
10040  if test "$host_cpu" = ia64; then
10041    # AIX 5 supports IA64
10042    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10043    shlibpath_var=LD_LIBRARY_PATH
10044  else
10045    # With GCC up to 2.95.x, collect2 would create an import file
10046    # for dependence libraries.  The import file would start with
10047    # the line `#! .'.  This would cause the generated library to
10048    # depend on `.', always an invalid library.  This was fixed in
10049    # development snapshots of GCC prior to 3.0.
10050    case $host_os in
10051      aix4 | aix4.[01] | aix4.[01].*)
10052      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10053	   echo ' yes '
10054	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10055	:
10056      else
10057	can_build_shared=no
10058      fi
10059      ;;
10060    esac
10061    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10062    # soname into executable. Probably we can add versioning support to
10063    # collect2, so additional links can be useful in future.
10064    if test "$aix_use_runtimelinking" = yes; then
10065      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10066      # instead of lib<name>.a to let people know that these are not
10067      # typical AIX shared libraries.
10068      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10069    else
10070      # We preserve .a as extension for shared libraries through AIX4.2
10071      # and later when we are not doing run time linking.
10072      library_names_spec='${libname}${release}.a $libname.a'
10073      soname_spec='${libname}${release}${shared_ext}$major'
10074    fi
10075    shlibpath_var=LIBPATH
10076  fi
10077  ;;
10078
10079amigaos*)
10080  case $host_cpu in
10081  powerpc)
10082    # Since July 2007 AmigaOS4 officially supports .so libraries.
10083    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10084    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10085    ;;
10086  m68k)
10087    library_names_spec='$libname.ixlibrary $libname.a'
10088    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10089    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10090    ;;
10091  esac
10092  ;;
10093
10094beos*)
10095  library_names_spec='${libname}${shared_ext}'
10096  dynamic_linker="$host_os ld.so"
10097  shlibpath_var=LIBRARY_PATH
10098  ;;
10099
10100bsdi[45]*)
10101  version_type=linux # correct to gnu/linux during the next big refactor
10102  need_version=no
10103  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10104  soname_spec='${libname}${release}${shared_ext}$major'
10105  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10106  shlibpath_var=LD_LIBRARY_PATH
10107  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10108  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10109  # the default ld.so.conf also contains /usr/contrib/lib and
10110  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10111  # libtool to hard-code these into programs
10112  ;;
10113
10114cygwin* | mingw* | pw32* | cegcc*)
10115  version_type=windows
10116  shrext_cmds=".dll"
10117  need_version=no
10118  need_lib_prefix=no
10119
10120  case $GCC,$cc_basename in
10121  yes,*)
10122    # gcc
10123    library_names_spec='$libname.dll.a'
10124    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10125    postinstall_cmds='base_file=`basename \${file}`~
10126      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10127      dldir=$destdir/`dirname \$dlpath`~
10128      test -d \$dldir || mkdir -p \$dldir~
10129      $install_prog $dir/$dlname \$dldir/$dlname~
10130      chmod a+x \$dldir/$dlname~
10131      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10132        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10133      fi'
10134    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10135      dlpath=$dir/\$dldll~
10136       $RM \$dlpath'
10137    shlibpath_overrides_runpath=yes
10138
10139    case $host_os in
10140    cygwin*)
10141      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10142      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10143
10144      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10145      ;;
10146    mingw* | cegcc*)
10147      # MinGW DLLs use traditional 'lib' prefix
10148      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10149      ;;
10150    pw32*)
10151      # pw32 DLLs use 'pw' prefix rather than 'lib'
10152      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10153      ;;
10154    esac
10155    dynamic_linker='Win32 ld.exe'
10156    ;;
10157
10158  *,cl*)
10159    # Native MSVC
10160    libname_spec='$name'
10161    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10162    library_names_spec='${libname}.dll.lib'
10163
10164    case $build_os in
10165    mingw*)
10166      sys_lib_search_path_spec=
10167      lt_save_ifs=$IFS
10168      IFS=';'
10169      for lt_path in $LIB
10170      do
10171        IFS=$lt_save_ifs
10172        # Let DOS variable expansion print the short 8.3 style file name.
10173        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10174        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10175      done
10176      IFS=$lt_save_ifs
10177      # Convert to MSYS style.
10178      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10179      ;;
10180    cygwin*)
10181      # Convert to unix form, then to dos form, then back to unix form
10182      # but this time dos style (no spaces!) so that the unix form looks
10183      # like /cygdrive/c/PROGRA~1:/cygdr...
10184      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10185      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10186      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10187      ;;
10188    *)
10189      sys_lib_search_path_spec="$LIB"
10190      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10191        # It is most probably a Windows format PATH.
10192        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10193      else
10194        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10195      fi
10196      # FIXME: find the short name or the path components, as spaces are
10197      # common. (e.g. "Program Files" -> "PROGRA~1")
10198      ;;
10199    esac
10200
10201    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10202    postinstall_cmds='base_file=`basename \${file}`~
10203      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10204      dldir=$destdir/`dirname \$dlpath`~
10205      test -d \$dldir || mkdir -p \$dldir~
10206      $install_prog $dir/$dlname \$dldir/$dlname'
10207    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10208      dlpath=$dir/\$dldll~
10209       $RM \$dlpath'
10210    shlibpath_overrides_runpath=yes
10211    dynamic_linker='Win32 link.exe'
10212    ;;
10213
10214  *)
10215    # Assume MSVC wrapper
10216    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10217    dynamic_linker='Win32 ld.exe'
10218    ;;
10219  esac
10220  # FIXME: first we should search . and the directory the executable is in
10221  shlibpath_var=PATH
10222  ;;
10223
10224darwin* | rhapsody*)
10225  dynamic_linker="$host_os dyld"
10226  version_type=darwin
10227  need_lib_prefix=no
10228  need_version=no
10229  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10230  soname_spec='${libname}${release}${major}$shared_ext'
10231  shlibpath_overrides_runpath=yes
10232  shlibpath_var=DYLD_LIBRARY_PATH
10233  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10234
10235  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10236  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10237  ;;
10238
10239dgux*)
10240  version_type=linux # correct to gnu/linux during the next big refactor
10241  need_lib_prefix=no
10242  need_version=no
10243  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10244  soname_spec='${libname}${release}${shared_ext}$major'
10245  shlibpath_var=LD_LIBRARY_PATH
10246  ;;
10247
10248freebsd* | dragonfly*)
10249  # DragonFly does not have aout.  When/if they implement a new
10250  # versioning mechanism, adjust this.
10251  if test -x /usr/bin/objformat; then
10252    objformat=`/usr/bin/objformat`
10253  else
10254    case $host_os in
10255    freebsd[23].*) objformat=aout ;;
10256    *) objformat=elf ;;
10257    esac
10258  fi
10259  version_type=freebsd-$objformat
10260  case $version_type in
10261    freebsd-elf*)
10262      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10263      need_version=no
10264      need_lib_prefix=no
10265      ;;
10266    freebsd-*)
10267      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10268      need_version=yes
10269      ;;
10270  esac
10271  shlibpath_var=LD_LIBRARY_PATH
10272  case $host_os in
10273  freebsd2.*)
10274    shlibpath_overrides_runpath=yes
10275    ;;
10276  freebsd3.[01]* | freebsdelf3.[01]*)
10277    shlibpath_overrides_runpath=yes
10278    hardcode_into_libs=yes
10279    ;;
10280  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10281  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10282    shlibpath_overrides_runpath=no
10283    hardcode_into_libs=yes
10284    ;;
10285  *) # from 4.6 on, and DragonFly
10286    shlibpath_overrides_runpath=yes
10287    hardcode_into_libs=yes
10288    ;;
10289  esac
10290  ;;
10291
10292gnu*)
10293  version_type=linux # correct to gnu/linux during the next big refactor
10294  need_lib_prefix=no
10295  need_version=no
10296  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10297  soname_spec='${libname}${release}${shared_ext}$major'
10298  shlibpath_var=LD_LIBRARY_PATH
10299  shlibpath_overrides_runpath=no
10300  hardcode_into_libs=yes
10301  ;;
10302
10303haiku*)
10304  version_type=linux # correct to gnu/linux during the next big refactor
10305  need_lib_prefix=no
10306  need_version=no
10307  dynamic_linker="$host_os runtime_loader"
10308  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10309  soname_spec='${libname}${release}${shared_ext}$major'
10310  shlibpath_var=LIBRARY_PATH
10311  shlibpath_overrides_runpath=yes
10312  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10313  hardcode_into_libs=yes
10314  ;;
10315
10316hpux9* | hpux10* | hpux11*)
10317  # Give a soname corresponding to the major version so that dld.sl refuses to
10318  # link against other versions.
10319  version_type=sunos
10320  need_lib_prefix=no
10321  need_version=no
10322  case $host_cpu in
10323  ia64*)
10324    shrext_cmds='.so'
10325    hardcode_into_libs=yes
10326    dynamic_linker="$host_os dld.so"
10327    shlibpath_var=LD_LIBRARY_PATH
10328    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10329    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10330    soname_spec='${libname}${release}${shared_ext}$major'
10331    if test "X$HPUX_IA64_MODE" = X32; then
10332      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10333    else
10334      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10335    fi
10336    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10337    ;;
10338  hppa*64*)
10339    shrext_cmds='.sl'
10340    hardcode_into_libs=yes
10341    dynamic_linker="$host_os dld.sl"
10342    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10343    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10344    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10345    soname_spec='${libname}${release}${shared_ext}$major'
10346    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10347    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10348    ;;
10349  *)
10350    shrext_cmds='.sl'
10351    dynamic_linker="$host_os dld.sl"
10352    shlibpath_var=SHLIB_PATH
10353    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10354    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10355    soname_spec='${libname}${release}${shared_ext}$major'
10356    ;;
10357  esac
10358  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10359  postinstall_cmds='chmod 555 $lib'
10360  # or fails outright, so override atomically:
10361  install_override_mode=555
10362  ;;
10363
10364interix[3-9]*)
10365  version_type=linux # correct to gnu/linux during the next big refactor
10366  need_lib_prefix=no
10367  need_version=no
10368  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10369  soname_spec='${libname}${release}${shared_ext}$major'
10370  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10371  shlibpath_var=LD_LIBRARY_PATH
10372  shlibpath_overrides_runpath=no
10373  hardcode_into_libs=yes
10374  ;;
10375
10376irix5* | irix6* | nonstopux*)
10377  case $host_os in
10378    nonstopux*) version_type=nonstopux ;;
10379    *)
10380	if test "$lt_cv_prog_gnu_ld" = yes; then
10381		version_type=linux # correct to gnu/linux during the next big refactor
10382	else
10383		version_type=irix
10384	fi ;;
10385  esac
10386  need_lib_prefix=no
10387  need_version=no
10388  soname_spec='${libname}${release}${shared_ext}$major'
10389  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10390  case $host_os in
10391  irix5* | nonstopux*)
10392    libsuff= shlibsuff=
10393    ;;
10394  *)
10395    case $LD in # libtool.m4 will add one of these switches to LD
10396    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10397      libsuff= shlibsuff= libmagic=32-bit;;
10398    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10399      libsuff=32 shlibsuff=N32 libmagic=N32;;
10400    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10401      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10402    *) libsuff= shlibsuff= libmagic=never-match;;
10403    esac
10404    ;;
10405  esac
10406  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10407  shlibpath_overrides_runpath=no
10408  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10409  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10410  hardcode_into_libs=yes
10411  ;;
10412
10413# No shared lib support for Linux oldld, aout, or coff.
10414linux*oldld* | linux*aout* | linux*coff*)
10415  dynamic_linker=no
10416  ;;
10417
10418# This must be glibc/ELF.
10419linux* | k*bsd*-gnu | kopensolaris*-gnu)
10420  version_type=linux # correct to gnu/linux during the next big refactor
10421  need_lib_prefix=no
10422  need_version=no
10423  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10424  soname_spec='${libname}${release}${shared_ext}$major'
10425  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10426  shlibpath_var=LD_LIBRARY_PATH
10427  shlibpath_overrides_runpath=no
10428
10429  # Some binutils ld are patched to set DT_RUNPATH
10430  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10431  $as_echo_n "(cached) " >&6
10432else
10433  lt_cv_shlibpath_overrides_runpath=no
10434    save_LDFLAGS=$LDFLAGS
10435    save_libdir=$libdir
10436    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10437	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10438    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10439/* end confdefs.h.  */
10440
10441int
10442main ()
10443{
10444
10445  ;
10446  return 0;
10447}
10448_ACEOF
10449if ac_fn_c_try_link "$LINENO"; then :
10450  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10451  lt_cv_shlibpath_overrides_runpath=yes
10452fi
10453fi
10454rm -f core conftest.err conftest.$ac_objext \
10455    conftest$ac_exeext conftest.$ac_ext
10456    LDFLAGS=$save_LDFLAGS
10457    libdir=$save_libdir
10458
10459fi
10460
10461  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10462
10463  # This implies no fast_install, which is unacceptable.
10464  # Some rework will be needed to allow for fast_install
10465  # before this can be enabled.
10466  hardcode_into_libs=yes
10467
10468  # Append ld.so.conf contents to the search path
10469  if test -f /etc/ld.so.conf; then
10470    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10471    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10472  fi
10473
10474  # We used to test for /lib/ld.so.1 and disable shared libraries on
10475  # powerpc, because MkLinux only supported shared libraries with the
10476  # GNU dynamic linker.  Since this was broken with cross compilers,
10477  # most powerpc-linux boxes support dynamic linking these days and
10478  # people can always --disable-shared, the test was removed, and we
10479  # assume the GNU/Linux dynamic linker is in use.
10480  dynamic_linker='GNU/Linux ld.so'
10481  ;;
10482
10483netbsdelf*-gnu)
10484  version_type=linux
10485  need_lib_prefix=no
10486  need_version=no
10487  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10488  soname_spec='${libname}${release}${shared_ext}$major'
10489  shlibpath_var=LD_LIBRARY_PATH
10490  shlibpath_overrides_runpath=no
10491  hardcode_into_libs=yes
10492  dynamic_linker='NetBSD ld.elf_so'
10493  ;;
10494
10495netbsd*)
10496  version_type=sunos
10497  need_lib_prefix=no
10498  need_version=no
10499  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10500    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10501    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10502    dynamic_linker='NetBSD (a.out) ld.so'
10503  else
10504    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10505    soname_spec='${libname}${release}${shared_ext}$major'
10506    dynamic_linker='NetBSD ld.elf_so'
10507  fi
10508  shlibpath_var=LD_LIBRARY_PATH
10509  shlibpath_overrides_runpath=yes
10510  hardcode_into_libs=yes
10511  ;;
10512
10513newsos6)
10514  version_type=linux # correct to gnu/linux during the next big refactor
10515  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10516  shlibpath_var=LD_LIBRARY_PATH
10517  shlibpath_overrides_runpath=yes
10518  ;;
10519
10520*nto* | *qnx*)
10521  version_type=qnx
10522  need_lib_prefix=no
10523  need_version=no
10524  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10525  soname_spec='${libname}${release}${shared_ext}$major'
10526  shlibpath_var=LD_LIBRARY_PATH
10527  shlibpath_overrides_runpath=no
10528  hardcode_into_libs=yes
10529  dynamic_linker='ldqnx.so'
10530  ;;
10531
10532openbsd*)
10533  version_type=sunos
10534  sys_lib_dlsearch_path_spec="/usr/lib"
10535  need_lib_prefix=no
10536  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10537  case $host_os in
10538    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10539    *)				need_version=no  ;;
10540  esac
10541  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10542  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10543  shlibpath_var=LD_LIBRARY_PATH
10544  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10545    case $host_os in
10546      openbsd2.[89] | openbsd2.[89].*)
10547	shlibpath_overrides_runpath=no
10548	;;
10549      *)
10550	shlibpath_overrides_runpath=yes
10551	;;
10552      esac
10553  else
10554    shlibpath_overrides_runpath=yes
10555  fi
10556  ;;
10557
10558os2*)
10559  libname_spec='$name'
10560  shrext_cmds=".dll"
10561  need_lib_prefix=no
10562  library_names_spec='$libname${shared_ext} $libname.a'
10563  dynamic_linker='OS/2 ld.exe'
10564  shlibpath_var=LIBPATH
10565  ;;
10566
10567osf3* | osf4* | osf5*)
10568  version_type=osf
10569  need_lib_prefix=no
10570  need_version=no
10571  soname_spec='${libname}${release}${shared_ext}$major'
10572  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10573  shlibpath_var=LD_LIBRARY_PATH
10574  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10575  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10576  ;;
10577
10578rdos*)
10579  dynamic_linker=no
10580  ;;
10581
10582solaris*)
10583  version_type=linux # correct to gnu/linux during the next big refactor
10584  need_lib_prefix=no
10585  need_version=no
10586  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10587  soname_spec='${libname}${release}${shared_ext}$major'
10588  shlibpath_var=LD_LIBRARY_PATH
10589  shlibpath_overrides_runpath=yes
10590  hardcode_into_libs=yes
10591  # ldd complains unless libraries are executable
10592  postinstall_cmds='chmod +x $lib'
10593  ;;
10594
10595sunos4*)
10596  version_type=sunos
10597  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10598  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10599  shlibpath_var=LD_LIBRARY_PATH
10600  shlibpath_overrides_runpath=yes
10601  if test "$with_gnu_ld" = yes; then
10602    need_lib_prefix=no
10603  fi
10604  need_version=yes
10605  ;;
10606
10607sysv4 | sysv4.3*)
10608  version_type=linux # correct to gnu/linux during the next big refactor
10609  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10610  soname_spec='${libname}${release}${shared_ext}$major'
10611  shlibpath_var=LD_LIBRARY_PATH
10612  case $host_vendor in
10613    sni)
10614      shlibpath_overrides_runpath=no
10615      need_lib_prefix=no
10616      runpath_var=LD_RUN_PATH
10617      ;;
10618    siemens)
10619      need_lib_prefix=no
10620      ;;
10621    motorola)
10622      need_lib_prefix=no
10623      need_version=no
10624      shlibpath_overrides_runpath=no
10625      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10626      ;;
10627  esac
10628  ;;
10629
10630sysv4*MP*)
10631  if test -d /usr/nec ;then
10632    version_type=linux # correct to gnu/linux during the next big refactor
10633    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10634    soname_spec='$libname${shared_ext}.$major'
10635    shlibpath_var=LD_LIBRARY_PATH
10636  fi
10637  ;;
10638
10639sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10640  version_type=freebsd-elf
10641  need_lib_prefix=no
10642  need_version=no
10643  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10644  soname_spec='${libname}${release}${shared_ext}$major'
10645  shlibpath_var=LD_LIBRARY_PATH
10646  shlibpath_overrides_runpath=yes
10647  hardcode_into_libs=yes
10648  if test "$with_gnu_ld" = yes; then
10649    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10650  else
10651    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10652    case $host_os in
10653      sco3.2v5*)
10654        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10655	;;
10656    esac
10657  fi
10658  sys_lib_dlsearch_path_spec='/usr/lib'
10659  ;;
10660
10661tpf*)
10662  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10663  version_type=linux # correct to gnu/linux during the next big refactor
10664  need_lib_prefix=no
10665  need_version=no
10666  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10667  shlibpath_var=LD_LIBRARY_PATH
10668  shlibpath_overrides_runpath=no
10669  hardcode_into_libs=yes
10670  ;;
10671
10672uts4*)
10673  version_type=linux # correct to gnu/linux during the next big refactor
10674  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10675  soname_spec='${libname}${release}${shared_ext}$major'
10676  shlibpath_var=LD_LIBRARY_PATH
10677  ;;
10678
10679*)
10680  dynamic_linker=no
10681  ;;
10682esac
10683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10684$as_echo "$dynamic_linker" >&6; }
10685test "$dynamic_linker" = no && can_build_shared=no
10686
10687variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10688if test "$GCC" = yes; then
10689  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10690fi
10691
10692if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10693  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10694fi
10695if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10696  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10697fi
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10791$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10792hardcode_action=
10793if test -n "$hardcode_libdir_flag_spec" ||
10794   test -n "$runpath_var" ||
10795   test "X$hardcode_automatic" = "Xyes" ; then
10796
10797  # We can hardcode non-existent directories.
10798  if test "$hardcode_direct" != no &&
10799     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10800     # have to relink, otherwise we might link with an installed library
10801     # when we should be linking with a yet-to-be-installed one
10802     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10803     test "$hardcode_minus_L" != no; then
10804    # Linking always hardcodes the temporary library directory.
10805    hardcode_action=relink
10806  else
10807    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10808    hardcode_action=immediate
10809  fi
10810else
10811  # We cannot hardcode anything, or else we can only hardcode existing
10812  # directories.
10813  hardcode_action=unsupported
10814fi
10815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10816$as_echo "$hardcode_action" >&6; }
10817
10818if test "$hardcode_action" = relink ||
10819   test "$inherit_rpath" = yes; then
10820  # Fast installation is not supported
10821  enable_fast_install=no
10822elif test "$shlibpath_overrides_runpath" = yes ||
10823     test "$enable_shared" = no; then
10824  # Fast installation is not necessary
10825  enable_fast_install=needless
10826fi
10827
10828
10829
10830
10831
10832
10833  if test "x$enable_dlopen" != xyes; then
10834  enable_dlopen=unknown
10835  enable_dlopen_self=unknown
10836  enable_dlopen_self_static=unknown
10837else
10838  lt_cv_dlopen=no
10839  lt_cv_dlopen_libs=
10840
10841  case $host_os in
10842  beos*)
10843    lt_cv_dlopen="load_add_on"
10844    lt_cv_dlopen_libs=
10845    lt_cv_dlopen_self=yes
10846    ;;
10847
10848  mingw* | pw32* | cegcc*)
10849    lt_cv_dlopen="LoadLibrary"
10850    lt_cv_dlopen_libs=
10851    ;;
10852
10853  cygwin*)
10854    lt_cv_dlopen="dlopen"
10855    lt_cv_dlopen_libs=
10856    ;;
10857
10858  darwin*)
10859  # if libdl is installed we need to link against it
10860    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10861$as_echo_n "checking for dlopen in -ldl... " >&6; }
10862if ${ac_cv_lib_dl_dlopen+:} false; then :
10863  $as_echo_n "(cached) " >&6
10864else
10865  ac_check_lib_save_LIBS=$LIBS
10866LIBS="-ldl  $LIBS"
10867cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10868/* end confdefs.h.  */
10869
10870/* Override any GCC internal prototype to avoid an error.
10871   Use char because int might match the return type of a GCC
10872   builtin and then its argument prototype would still apply.  */
10873#ifdef __cplusplus
10874extern "C"
10875#endif
10876char dlopen ();
10877int
10878main ()
10879{
10880return dlopen ();
10881  ;
10882  return 0;
10883}
10884_ACEOF
10885if ac_fn_c_try_link "$LINENO"; then :
10886  ac_cv_lib_dl_dlopen=yes
10887else
10888  ac_cv_lib_dl_dlopen=no
10889fi
10890rm -f core conftest.err conftest.$ac_objext \
10891    conftest$ac_exeext conftest.$ac_ext
10892LIBS=$ac_check_lib_save_LIBS
10893fi
10894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10895$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10896if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10897  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10898else
10899
10900    lt_cv_dlopen="dyld"
10901    lt_cv_dlopen_libs=
10902    lt_cv_dlopen_self=yes
10903
10904fi
10905
10906    ;;
10907
10908  *)
10909    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10910if test "x$ac_cv_func_shl_load" = xyes; then :
10911  lt_cv_dlopen="shl_load"
10912else
10913  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10914$as_echo_n "checking for shl_load in -ldld... " >&6; }
10915if ${ac_cv_lib_dld_shl_load+:} false; then :
10916  $as_echo_n "(cached) " >&6
10917else
10918  ac_check_lib_save_LIBS=$LIBS
10919LIBS="-ldld  $LIBS"
10920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10921/* end confdefs.h.  */
10922
10923/* Override any GCC internal prototype to avoid an error.
10924   Use char because int might match the return type of a GCC
10925   builtin and then its argument prototype would still apply.  */
10926#ifdef __cplusplus
10927extern "C"
10928#endif
10929char shl_load ();
10930int
10931main ()
10932{
10933return shl_load ();
10934  ;
10935  return 0;
10936}
10937_ACEOF
10938if ac_fn_c_try_link "$LINENO"; then :
10939  ac_cv_lib_dld_shl_load=yes
10940else
10941  ac_cv_lib_dld_shl_load=no
10942fi
10943rm -f core conftest.err conftest.$ac_objext \
10944    conftest$ac_exeext conftest.$ac_ext
10945LIBS=$ac_check_lib_save_LIBS
10946fi
10947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10948$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10949if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10950  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10951else
10952  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10953if test "x$ac_cv_func_dlopen" = xyes; then :
10954  lt_cv_dlopen="dlopen"
10955else
10956  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10957$as_echo_n "checking for dlopen in -ldl... " >&6; }
10958if ${ac_cv_lib_dl_dlopen+:} false; then :
10959  $as_echo_n "(cached) " >&6
10960else
10961  ac_check_lib_save_LIBS=$LIBS
10962LIBS="-ldl  $LIBS"
10963cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10964/* end confdefs.h.  */
10965
10966/* Override any GCC internal prototype to avoid an error.
10967   Use char because int might match the return type of a GCC
10968   builtin and then its argument prototype would still apply.  */
10969#ifdef __cplusplus
10970extern "C"
10971#endif
10972char dlopen ();
10973int
10974main ()
10975{
10976return dlopen ();
10977  ;
10978  return 0;
10979}
10980_ACEOF
10981if ac_fn_c_try_link "$LINENO"; then :
10982  ac_cv_lib_dl_dlopen=yes
10983else
10984  ac_cv_lib_dl_dlopen=no
10985fi
10986rm -f core conftest.err conftest.$ac_objext \
10987    conftest$ac_exeext conftest.$ac_ext
10988LIBS=$ac_check_lib_save_LIBS
10989fi
10990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10991$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10992if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10993  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10994else
10995  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10996$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10997if ${ac_cv_lib_svld_dlopen+:} false; then :
10998  $as_echo_n "(cached) " >&6
10999else
11000  ac_check_lib_save_LIBS=$LIBS
11001LIBS="-lsvld  $LIBS"
11002cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11003/* end confdefs.h.  */
11004
11005/* Override any GCC internal prototype to avoid an error.
11006   Use char because int might match the return type of a GCC
11007   builtin and then its argument prototype would still apply.  */
11008#ifdef __cplusplus
11009extern "C"
11010#endif
11011char dlopen ();
11012int
11013main ()
11014{
11015return dlopen ();
11016  ;
11017  return 0;
11018}
11019_ACEOF
11020if ac_fn_c_try_link "$LINENO"; then :
11021  ac_cv_lib_svld_dlopen=yes
11022else
11023  ac_cv_lib_svld_dlopen=no
11024fi
11025rm -f core conftest.err conftest.$ac_objext \
11026    conftest$ac_exeext conftest.$ac_ext
11027LIBS=$ac_check_lib_save_LIBS
11028fi
11029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11030$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11031if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11032  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11033else
11034  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11035$as_echo_n "checking for dld_link in -ldld... " >&6; }
11036if ${ac_cv_lib_dld_dld_link+:} false; then :
11037  $as_echo_n "(cached) " >&6
11038else
11039  ac_check_lib_save_LIBS=$LIBS
11040LIBS="-ldld  $LIBS"
11041cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11042/* end confdefs.h.  */
11043
11044/* Override any GCC internal prototype to avoid an error.
11045   Use char because int might match the return type of a GCC
11046   builtin and then its argument prototype would still apply.  */
11047#ifdef __cplusplus
11048extern "C"
11049#endif
11050char dld_link ();
11051int
11052main ()
11053{
11054return dld_link ();
11055  ;
11056  return 0;
11057}
11058_ACEOF
11059if ac_fn_c_try_link "$LINENO"; then :
11060  ac_cv_lib_dld_dld_link=yes
11061else
11062  ac_cv_lib_dld_dld_link=no
11063fi
11064rm -f core conftest.err conftest.$ac_objext \
11065    conftest$ac_exeext conftest.$ac_ext
11066LIBS=$ac_check_lib_save_LIBS
11067fi
11068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11069$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11070if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11071  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11072fi
11073
11074
11075fi
11076
11077
11078fi
11079
11080
11081fi
11082
11083
11084fi
11085
11086
11087fi
11088
11089    ;;
11090  esac
11091
11092  if test "x$lt_cv_dlopen" != xno; then
11093    enable_dlopen=yes
11094  else
11095    enable_dlopen=no
11096  fi
11097
11098  case $lt_cv_dlopen in
11099  dlopen)
11100    save_CPPFLAGS="$CPPFLAGS"
11101    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11102
11103    save_LDFLAGS="$LDFLAGS"
11104    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11105
11106    save_LIBS="$LIBS"
11107    LIBS="$lt_cv_dlopen_libs $LIBS"
11108
11109    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11110$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11111if ${lt_cv_dlopen_self+:} false; then :
11112  $as_echo_n "(cached) " >&6
11113else
11114  	  if test "$cross_compiling" = yes; then :
11115  lt_cv_dlopen_self=cross
11116else
11117  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11118  lt_status=$lt_dlunknown
11119  cat > conftest.$ac_ext <<_LT_EOF
11120#line $LINENO "configure"
11121#include "confdefs.h"
11122
11123#if HAVE_DLFCN_H
11124#include <dlfcn.h>
11125#endif
11126
11127#include <stdio.h>
11128
11129#ifdef RTLD_GLOBAL
11130#  define LT_DLGLOBAL		RTLD_GLOBAL
11131#else
11132#  ifdef DL_GLOBAL
11133#    define LT_DLGLOBAL		DL_GLOBAL
11134#  else
11135#    define LT_DLGLOBAL		0
11136#  endif
11137#endif
11138
11139/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11140   find out it does not work in some platform. */
11141#ifndef LT_DLLAZY_OR_NOW
11142#  ifdef RTLD_LAZY
11143#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11144#  else
11145#    ifdef DL_LAZY
11146#      define LT_DLLAZY_OR_NOW		DL_LAZY
11147#    else
11148#      ifdef RTLD_NOW
11149#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11150#      else
11151#        ifdef DL_NOW
11152#          define LT_DLLAZY_OR_NOW	DL_NOW
11153#        else
11154#          define LT_DLLAZY_OR_NOW	0
11155#        endif
11156#      endif
11157#    endif
11158#  endif
11159#endif
11160
11161/* When -fvisbility=hidden is used, assume the code has been annotated
11162   correspondingly for the symbols needed.  */
11163#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11164int fnord () __attribute__((visibility("default")));
11165#endif
11166
11167int fnord () { return 42; }
11168int main ()
11169{
11170  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11171  int status = $lt_dlunknown;
11172
11173  if (self)
11174    {
11175      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11176      else
11177        {
11178	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11179          else puts (dlerror ());
11180	}
11181      /* dlclose (self); */
11182    }
11183  else
11184    puts (dlerror ());
11185
11186  return status;
11187}
11188_LT_EOF
11189  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11190  (eval $ac_link) 2>&5
11191  ac_status=$?
11192  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11193  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11194    (./conftest; exit; ) >&5 2>/dev/null
11195    lt_status=$?
11196    case x$lt_status in
11197      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11198      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11199      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11200    esac
11201  else :
11202    # compilation failed
11203    lt_cv_dlopen_self=no
11204  fi
11205fi
11206rm -fr conftest*
11207
11208
11209fi
11210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11211$as_echo "$lt_cv_dlopen_self" >&6; }
11212
11213    if test "x$lt_cv_dlopen_self" = xyes; then
11214      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11215      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11216$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11217if ${lt_cv_dlopen_self_static+:} false; then :
11218  $as_echo_n "(cached) " >&6
11219else
11220  	  if test "$cross_compiling" = yes; then :
11221  lt_cv_dlopen_self_static=cross
11222else
11223  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11224  lt_status=$lt_dlunknown
11225  cat > conftest.$ac_ext <<_LT_EOF
11226#line $LINENO "configure"
11227#include "confdefs.h"
11228
11229#if HAVE_DLFCN_H
11230#include <dlfcn.h>
11231#endif
11232
11233#include <stdio.h>
11234
11235#ifdef RTLD_GLOBAL
11236#  define LT_DLGLOBAL		RTLD_GLOBAL
11237#else
11238#  ifdef DL_GLOBAL
11239#    define LT_DLGLOBAL		DL_GLOBAL
11240#  else
11241#    define LT_DLGLOBAL		0
11242#  endif
11243#endif
11244
11245/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11246   find out it does not work in some platform. */
11247#ifndef LT_DLLAZY_OR_NOW
11248#  ifdef RTLD_LAZY
11249#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11250#  else
11251#    ifdef DL_LAZY
11252#      define LT_DLLAZY_OR_NOW		DL_LAZY
11253#    else
11254#      ifdef RTLD_NOW
11255#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11256#      else
11257#        ifdef DL_NOW
11258#          define LT_DLLAZY_OR_NOW	DL_NOW
11259#        else
11260#          define LT_DLLAZY_OR_NOW	0
11261#        endif
11262#      endif
11263#    endif
11264#  endif
11265#endif
11266
11267/* When -fvisbility=hidden is used, assume the code has been annotated
11268   correspondingly for the symbols needed.  */
11269#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11270int fnord () __attribute__((visibility("default")));
11271#endif
11272
11273int fnord () { return 42; }
11274int main ()
11275{
11276  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11277  int status = $lt_dlunknown;
11278
11279  if (self)
11280    {
11281      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11282      else
11283        {
11284	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11285          else puts (dlerror ());
11286	}
11287      /* dlclose (self); */
11288    }
11289  else
11290    puts (dlerror ());
11291
11292  return status;
11293}
11294_LT_EOF
11295  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11296  (eval $ac_link) 2>&5
11297  ac_status=$?
11298  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11299  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11300    (./conftest; exit; ) >&5 2>/dev/null
11301    lt_status=$?
11302    case x$lt_status in
11303      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11304      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11305      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11306    esac
11307  else :
11308    # compilation failed
11309    lt_cv_dlopen_self_static=no
11310  fi
11311fi
11312rm -fr conftest*
11313
11314
11315fi
11316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11317$as_echo "$lt_cv_dlopen_self_static" >&6; }
11318    fi
11319
11320    CPPFLAGS="$save_CPPFLAGS"
11321    LDFLAGS="$save_LDFLAGS"
11322    LIBS="$save_LIBS"
11323    ;;
11324  esac
11325
11326  case $lt_cv_dlopen_self in
11327  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11328  *) enable_dlopen_self=unknown ;;
11329  esac
11330
11331  case $lt_cv_dlopen_self_static in
11332  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11333  *) enable_dlopen_self_static=unknown ;;
11334  esac
11335fi
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353striplib=
11354old_striplib=
11355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11356$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11357if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11358  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11359  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11361$as_echo "yes" >&6; }
11362else
11363# FIXME - insert some real tests, host_os isn't really good enough
11364  case $host_os in
11365  darwin*)
11366    if test -n "$STRIP" ; then
11367      striplib="$STRIP -x"
11368      old_striplib="$STRIP -S"
11369      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11370$as_echo "yes" >&6; }
11371    else
11372      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11373$as_echo "no" >&6; }
11374    fi
11375    ;;
11376  *)
11377    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11378$as_echo "no" >&6; }
11379    ;;
11380  esac
11381fi
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394  # Report which library types will actually be built
11395  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11396$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11398$as_echo "$can_build_shared" >&6; }
11399
11400  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11401$as_echo_n "checking whether to build shared libraries... " >&6; }
11402  test "$can_build_shared" = "no" && enable_shared=no
11403
11404  # On AIX, shared libraries and static libraries use the same namespace, and
11405  # are all built from PIC.
11406  case $host_os in
11407  aix3*)
11408    test "$enable_shared" = yes && enable_static=no
11409    if test -n "$RANLIB"; then
11410      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11411      postinstall_cmds='$RANLIB $lib'
11412    fi
11413    ;;
11414
11415  aix[4-9]*)
11416    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11417      test "$enable_shared" = yes && enable_static=no
11418    fi
11419    ;;
11420  esac
11421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11422$as_echo "$enable_shared" >&6; }
11423
11424  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11425$as_echo_n "checking whether to build static libraries... " >&6; }
11426  # Make sure either enable_shared or enable_static is yes.
11427  test "$enable_shared" = yes || enable_static=yes
11428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11429$as_echo "$enable_static" >&6; }
11430
11431
11432
11433
11434fi
11435ac_ext=c
11436ac_cpp='$CPP $CPPFLAGS'
11437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11439ac_compiler_gnu=$ac_cv_c_compiler_gnu
11440
11441CC="$lt_save_CC"
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457        ac_config_commands="$ac_config_commands libtool"
11458
11459
11460
11461
11462# Only expand once:
11463
11464
11465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
11466$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
11467if ${libltdl_cv_shlibext+:} false; then :
11468  $as_echo_n "(cached) " >&6
11469else
11470
11471module=yes
11472eval libltdl_cv_shlibext=$shrext_cmds
11473module=no
11474eval libltdl_cv_shrext=$shrext_cmds
11475
11476fi
11477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
11478$as_echo "$libltdl_cv_shlibext" >&6; }
11479if test -n "$libltdl_cv_shlibext"; then
11480
11481cat >>confdefs.h <<_ACEOF
11482#define LT_MODULE_EXT "$libltdl_cv_shlibext"
11483_ACEOF
11484
11485fi
11486if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
11487
11488cat >>confdefs.h <<_ACEOF
11489#define LT_SHARED_EXT "$libltdl_cv_shrext"
11490_ACEOF
11491
11492fi
11493
11494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
11495$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
11496if ${lt_cv_module_path_var+:} false; then :
11497  $as_echo_n "(cached) " >&6
11498else
11499  lt_cv_module_path_var="$shlibpath_var"
11500fi
11501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
11502$as_echo "$lt_cv_module_path_var" >&6; }
11503if test -n "$lt_cv_module_path_var"; then
11504
11505cat >>confdefs.h <<_ACEOF
11506#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
11507_ACEOF
11508
11509fi
11510
11511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
11512$as_echo_n "checking for the default library search path... " >&6; }
11513if ${lt_cv_sys_dlsearch_path+:} false; then :
11514  $as_echo_n "(cached) " >&6
11515else
11516  lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
11517fi
11518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
11519$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
11520if test -n "$lt_cv_sys_dlsearch_path"; then
11521  sys_dlsearch_path=
11522  for dir in $lt_cv_sys_dlsearch_path; do
11523    if test -z "$sys_dlsearch_path"; then
11524      sys_dlsearch_path="$dir"
11525    else
11526      sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
11527    fi
11528  done
11529
11530cat >>confdefs.h <<_ACEOF
11531#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
11532_ACEOF
11533
11534fi
11535
11536
11537LT_DLLOADERS=
11538
11539
11540ac_ext=c
11541ac_cpp='$CPP $CPPFLAGS'
11542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11544ac_compiler_gnu=$ac_cv_c_compiler_gnu
11545
11546
11547LIBADD_DLOPEN=
11548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11549$as_echo_n "checking for library containing dlopen... " >&6; }
11550if ${ac_cv_search_dlopen+:} false; then :
11551  $as_echo_n "(cached) " >&6
11552else
11553  ac_func_search_save_LIBS=$LIBS
11554cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11555/* end confdefs.h.  */
11556
11557/* Override any GCC internal prototype to avoid an error.
11558   Use char because int might match the return type of a GCC
11559   builtin and then its argument prototype would still apply.  */
11560#ifdef __cplusplus
11561extern "C"
11562#endif
11563char dlopen ();
11564int
11565main ()
11566{
11567return dlopen ();
11568  ;
11569  return 0;
11570}
11571_ACEOF
11572for ac_lib in '' dl; do
11573  if test -z "$ac_lib"; then
11574    ac_res="none required"
11575  else
11576    ac_res=-l$ac_lib
11577    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11578  fi
11579  if ac_fn_c_try_link "$LINENO"; then :
11580  ac_cv_search_dlopen=$ac_res
11581fi
11582rm -f core conftest.err conftest.$ac_objext \
11583    conftest$ac_exeext
11584  if ${ac_cv_search_dlopen+:} false; then :
11585  break
11586fi
11587done
11588if ${ac_cv_search_dlopen+:} false; then :
11589
11590else
11591  ac_cv_search_dlopen=no
11592fi
11593rm conftest.$ac_ext
11594LIBS=$ac_func_search_save_LIBS
11595fi
11596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11597$as_echo "$ac_cv_search_dlopen" >&6; }
11598ac_res=$ac_cv_search_dlopen
11599if test "$ac_res" != no; then :
11600  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11601
11602$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11603
11604	if test "$ac_cv_search_dlopen" != "none required" ; then
11605	  LIBADD_DLOPEN="-ldl"
11606	fi
11607	libltdl_cv_lib_dl_dlopen="yes"
11608	LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11609else
11610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11611/* end confdefs.h.  */
11612#if HAVE_DLFCN_H
11613#  include <dlfcn.h>
11614#endif
11615
11616int
11617main ()
11618{
11619dlopen(0, 0);
11620  ;
11621  return 0;
11622}
11623_ACEOF
11624if ac_fn_c_try_link "$LINENO"; then :
11625
11626$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11627
11628	    libltdl_cv_func_dlopen="yes"
11629	    LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11630else
11631  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11632$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11633if ${ac_cv_lib_svld_dlopen+:} false; then :
11634  $as_echo_n "(cached) " >&6
11635else
11636  ac_check_lib_save_LIBS=$LIBS
11637LIBS="-lsvld  $LIBS"
11638cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11639/* end confdefs.h.  */
11640
11641/* Override any GCC internal prototype to avoid an error.
11642   Use char because int might match the return type of a GCC
11643   builtin and then its argument prototype would still apply.  */
11644#ifdef __cplusplus
11645extern "C"
11646#endif
11647char dlopen ();
11648int
11649main ()
11650{
11651return dlopen ();
11652  ;
11653  return 0;
11654}
11655_ACEOF
11656if ac_fn_c_try_link "$LINENO"; then :
11657  ac_cv_lib_svld_dlopen=yes
11658else
11659  ac_cv_lib_svld_dlopen=no
11660fi
11661rm -f core conftest.err conftest.$ac_objext \
11662    conftest$ac_exeext conftest.$ac_ext
11663LIBS=$ac_check_lib_save_LIBS
11664fi
11665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11666$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11667if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11668
11669$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11670
11671	        LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
11672		LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11673fi
11674
11675fi
11676rm -f core conftest.err conftest.$ac_objext \
11677    conftest$ac_exeext conftest.$ac_ext
11678fi
11679
11680if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11681then
11682  lt_save_LIBS="$LIBS"
11683  LIBS="$LIBS $LIBADD_DLOPEN"
11684  for ac_func in dlerror
11685do :
11686  ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
11687if test "x$ac_cv_func_dlerror" = xyes; then :
11688  cat >>confdefs.h <<_ACEOF
11689#define HAVE_DLERROR 1
11690_ACEOF
11691
11692fi
11693done
11694
11695  LIBS="$lt_save_LIBS"
11696fi
11697
11698
11699LIBADD_SHL_LOAD=
11700ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11701if test "x$ac_cv_func_shl_load" = xyes; then :
11702
11703$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
11704
11705	LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
11706else
11707  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11708$as_echo_n "checking for shl_load in -ldld... " >&6; }
11709if ${ac_cv_lib_dld_shl_load+:} false; then :
11710  $as_echo_n "(cached) " >&6
11711else
11712  ac_check_lib_save_LIBS=$LIBS
11713LIBS="-ldld  $LIBS"
11714cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11715/* end confdefs.h.  */
11716
11717/* Override any GCC internal prototype to avoid an error.
11718   Use char because int might match the return type of a GCC
11719   builtin and then its argument prototype would still apply.  */
11720#ifdef __cplusplus
11721extern "C"
11722#endif
11723char shl_load ();
11724int
11725main ()
11726{
11727return shl_load ();
11728  ;
11729  return 0;
11730}
11731_ACEOF
11732if ac_fn_c_try_link "$LINENO"; then :
11733  ac_cv_lib_dld_shl_load=yes
11734else
11735  ac_cv_lib_dld_shl_load=no
11736fi
11737rm -f core conftest.err conftest.$ac_objext \
11738    conftest$ac_exeext conftest.$ac_ext
11739LIBS=$ac_check_lib_save_LIBS
11740fi
11741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11742$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11743if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11744
11745$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
11746
11747	    LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
11748	    LIBADD_SHL_LOAD="-ldld"
11749fi
11750
11751fi
11752
11753
11754
11755case $host_os in
11756darwin[1567].*)
11757# We only want this for pre-Mac OS X 10.4.
11758  ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
11759if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
11760
11761$as_echo "#define HAVE_DYLD 1" >>confdefs.h
11762
11763	LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
11764fi
11765
11766  ;;
11767beos*)
11768  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
11769  ;;
11770cygwin* | mingw* | os2* | pw32*)
11771  ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
11772"
11773if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
11774  ac_have_decl=1
11775else
11776  ac_have_decl=0
11777fi
11778
11779cat >>confdefs.h <<_ACEOF
11780#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
11781_ACEOF
11782
11783  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
11784  ;;
11785esac
11786
11787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11788$as_echo_n "checking for dld_link in -ldld... " >&6; }
11789if ${ac_cv_lib_dld_dld_link+:} false; then :
11790  $as_echo_n "(cached) " >&6
11791else
11792  ac_check_lib_save_LIBS=$LIBS
11793LIBS="-ldld  $LIBS"
11794cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11795/* end confdefs.h.  */
11796
11797/* Override any GCC internal prototype to avoid an error.
11798   Use char because int might match the return type of a GCC
11799   builtin and then its argument prototype would still apply.  */
11800#ifdef __cplusplus
11801extern "C"
11802#endif
11803char dld_link ();
11804int
11805main ()
11806{
11807return dld_link ();
11808  ;
11809  return 0;
11810}
11811_ACEOF
11812if ac_fn_c_try_link "$LINENO"; then :
11813  ac_cv_lib_dld_dld_link=yes
11814else
11815  ac_cv_lib_dld_dld_link=no
11816fi
11817rm -f core conftest.err conftest.$ac_objext \
11818    conftest$ac_exeext conftest.$ac_ext
11819LIBS=$ac_check_lib_save_LIBS
11820fi
11821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11822$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11823if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11824
11825$as_echo "#define HAVE_DLD 1" >>confdefs.h
11826
11827		LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
11828fi
11829
11830
11831
11832
11833LT_DLPREOPEN=
11834if test -n "$LT_DLLOADERS"
11835then
11836  for lt_loader in $LT_DLLOADERS; do
11837    LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
11838  done
11839
11840$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
11841
11842fi
11843
11844
11845LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
11846
11847
11848ac_ext=c
11849ac_cpp='$CPP $CPPFLAGS'
11850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11852ac_compiler_gnu=$ac_cv_c_compiler_gnu
11853
11854
11855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
11856$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
11857if ${lt_cv_sys_symbol_underscore+:} false; then :
11858  $as_echo_n "(cached) " >&6
11859else
11860  lt_cv_sys_symbol_underscore=no
11861  cat > conftest.$ac_ext <<_LT_EOF
11862void nm_test_func(){}
11863int main(){nm_test_func;return 0;}
11864_LT_EOF
11865  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11866  (eval $ac_compile) 2>&5
11867  ac_status=$?
11868  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11869  test $ac_status = 0; }; then
11870    # Now try to grab the symbols.
11871    ac_nlist=conftest.nm
11872    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
11873  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11874  ac_status=$?
11875  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11876  test $ac_status = 0; } && test -s "$ac_nlist"; then
11877      # See whether the symbols have a leading underscore.
11878      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11879        lt_cv_sys_symbol_underscore=yes
11880      else
11881        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11882	  :
11883        else
11884	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11885        fi
11886      fi
11887    else
11888      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11889    fi
11890  else
11891    echo "configure: failed program was:" >&5
11892    cat conftest.c >&5
11893  fi
11894  rm -rf conftest*
11895
11896fi
11897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
11898$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
11899  sys_symbol_underscore=$lt_cv_sys_symbol_underscore
11900
11901
11902if test x"$lt_cv_sys_symbol_underscore" = xyes; then
11903  if test x"$libltdl_cv_func_dlopen" = xyes ||
11904     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11905	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
11906$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
11907if ${libltdl_cv_need_uscore+:} false; then :
11908  $as_echo_n "(cached) " >&6
11909else
11910  libltdl_cv_need_uscore=unknown
11911          save_LIBS="$LIBS"
11912          LIBS="$LIBS $LIBADD_DLOPEN"
11913	  if test "$cross_compiling" = yes; then :
11914  libltdl_cv_need_uscore=cross
11915else
11916  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11917  lt_status=$lt_dlunknown
11918  cat > conftest.$ac_ext <<_LT_EOF
11919#line $LINENO "configure"
11920#include "confdefs.h"
11921
11922#if HAVE_DLFCN_H
11923#include <dlfcn.h>
11924#endif
11925
11926#include <stdio.h>
11927
11928#ifdef RTLD_GLOBAL
11929#  define LT_DLGLOBAL		RTLD_GLOBAL
11930#else
11931#  ifdef DL_GLOBAL
11932#    define LT_DLGLOBAL		DL_GLOBAL
11933#  else
11934#    define LT_DLGLOBAL		0
11935#  endif
11936#endif
11937
11938/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11939   find out it does not work in some platform. */
11940#ifndef LT_DLLAZY_OR_NOW
11941#  ifdef RTLD_LAZY
11942#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11943#  else
11944#    ifdef DL_LAZY
11945#      define LT_DLLAZY_OR_NOW		DL_LAZY
11946#    else
11947#      ifdef RTLD_NOW
11948#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11949#      else
11950#        ifdef DL_NOW
11951#          define LT_DLLAZY_OR_NOW	DL_NOW
11952#        else
11953#          define LT_DLLAZY_OR_NOW	0
11954#        endif
11955#      endif
11956#    endif
11957#  endif
11958#endif
11959
11960/* When -fvisbility=hidden is used, assume the code has been annotated
11961   correspondingly for the symbols needed.  */
11962#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11963int fnord () __attribute__((visibility("default")));
11964#endif
11965
11966int fnord () { return 42; }
11967int main ()
11968{
11969  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11970  int status = $lt_dlunknown;
11971
11972  if (self)
11973    {
11974      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11975      else
11976        {
11977	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11978          else puts (dlerror ());
11979	}
11980      /* dlclose (self); */
11981    }
11982  else
11983    puts (dlerror ());
11984
11985  return status;
11986}
11987_LT_EOF
11988  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11989  (eval $ac_link) 2>&5
11990  ac_status=$?
11991  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11992  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11993    (./conftest; exit; ) >&5 2>/dev/null
11994    lt_status=$?
11995    case x$lt_status in
11996      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11997      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11998      x$lt_dlunknown|x*)  ;;
11999    esac
12000  else :
12001    # compilation failed
12002
12003  fi
12004fi
12005rm -fr conftest*
12006
12007	  LIBS="$save_LIBS"
12008
12009fi
12010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
12011$as_echo "$libltdl_cv_need_uscore" >&6; }
12012  fi
12013fi
12014
12015if test x"$libltdl_cv_need_uscore" = xyes; then
12016
12017$as_echo "#define NEED_USCORE 1" >>confdefs.h
12018
12019fi
12020
12021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
12022$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
12023if ${lt_cv_sys_dlopen_deplibs+:} false; then :
12024  $as_echo_n "(cached) " >&6
12025else
12026  # PORTME does your system automatically load deplibs for dlopen?
12027  # or its logical equivalent (e.g. shl_load for HP-UX < 11)
12028  # For now, we just catch OSes we know something about -- in the
12029  # future, we'll try test this programmatically.
12030  lt_cv_sys_dlopen_deplibs=unknown
12031  case $host_os in
12032  aix3*|aix4.1.*|aix4.2.*)
12033    # Unknown whether this is true for these versions of AIX, but
12034    # we want this `case' here to explicitly catch those versions.
12035    lt_cv_sys_dlopen_deplibs=unknown
12036    ;;
12037  aix[4-9]*)
12038    lt_cv_sys_dlopen_deplibs=yes
12039    ;;
12040  amigaos*)
12041    case $host_cpu in
12042    powerpc)
12043      lt_cv_sys_dlopen_deplibs=no
12044      ;;
12045    esac
12046    ;;
12047  darwin*)
12048    # Assuming the user has installed a libdl from somewhere, this is true
12049    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
12050    lt_cv_sys_dlopen_deplibs=yes
12051    ;;
12052  freebsd* | dragonfly*)
12053    lt_cv_sys_dlopen_deplibs=yes
12054    ;;
12055  gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
12056    # GNU and its variants, using gnu ld.so (Glibc)
12057    lt_cv_sys_dlopen_deplibs=yes
12058    ;;
12059  hpux10*|hpux11*)
12060    lt_cv_sys_dlopen_deplibs=yes
12061    ;;
12062  interix*)
12063    lt_cv_sys_dlopen_deplibs=yes
12064    ;;
12065  irix[12345]*|irix6.[01]*)
12066    # Catch all versions of IRIX before 6.2, and indicate that we don't
12067    # know how it worked for any of those versions.
12068    lt_cv_sys_dlopen_deplibs=unknown
12069    ;;
12070  irix*)
12071    # The case above catches anything before 6.2, and it's known that
12072    # at 6.2 and later dlopen does load deplibs.
12073    lt_cv_sys_dlopen_deplibs=yes
12074    ;;
12075  netbsd* | netbsdelf*-gnu)
12076    lt_cv_sys_dlopen_deplibs=yes
12077    ;;
12078  openbsd*)
12079    lt_cv_sys_dlopen_deplibs=yes
12080    ;;
12081  osf[1234]*)
12082    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
12083    # it did *not* use an RPATH in a shared library to find objects the
12084    # library depends on, so we explicitly say `no'.
12085    lt_cv_sys_dlopen_deplibs=no
12086    ;;
12087  osf5.0|osf5.0a|osf5.1)
12088    # dlopen *does* load deplibs and with the right loader patch applied
12089    # it even uses RPATH in a shared library to search for shared objects
12090    # that the library depends on, but there's no easy way to know if that
12091    # patch is installed.  Since this is the case, all we can really
12092    # say is unknown -- it depends on the patch being installed.  If
12093    # it is, this changes to `yes'.  Without it, it would be `no'.
12094    lt_cv_sys_dlopen_deplibs=unknown
12095    ;;
12096  osf*)
12097    # the two cases above should catch all versions of osf <= 5.1.  Read
12098    # the comments above for what we know about them.
12099    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
12100    # is used to find them so we can finally say `yes'.
12101    lt_cv_sys_dlopen_deplibs=yes
12102    ;;
12103  qnx*)
12104    lt_cv_sys_dlopen_deplibs=yes
12105    ;;
12106  solaris*)
12107    lt_cv_sys_dlopen_deplibs=yes
12108    ;;
12109  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12110    libltdl_cv_sys_dlopen_deplibs=yes
12111    ;;
12112  esac
12113
12114fi
12115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
12116$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
12117if test "$lt_cv_sys_dlopen_deplibs" != yes; then
12118
12119$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
12120
12121fi
12122
12123:
12124
12125for ac_header in argz.h
12126do :
12127  ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
12128"
12129if test "x$ac_cv_header_argz_h" = xyes; then :
12130  cat >>confdefs.h <<_ACEOF
12131#define HAVE_ARGZ_H 1
12132_ACEOF
12133
12134fi
12135
12136done
12137
12138
12139ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
12140#  include <argz.h>
12141#endif
12142"
12143if test "x$ac_cv_type_error_t" = xyes; then :
12144
12145cat >>confdefs.h <<_ACEOF
12146#define HAVE_ERROR_T 1
12147_ACEOF
12148
12149
12150else
12151
12152$as_echo "#define error_t int" >>confdefs.h
12153
12154
12155$as_echo "#define __error_t_defined 1" >>confdefs.h
12156
12157fi
12158
12159
12160ARGZ_H=
12161for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
12162	argz_next argz_stringify
12163do :
12164  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12165ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12166if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12167  cat >>confdefs.h <<_ACEOF
12168#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12169_ACEOF
12170
12171else
12172  ARGZ_H=argz.h;
12173
12174  _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
12175
12176fi
12177done
12178
12179
12180if test -z "$ARGZ_H"; then :
12181  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
12182$as_echo_n "checking if argz actually works... " >&6; }
12183if ${lt_cv_sys_argz_works+:} false; then :
12184  $as_echo_n "(cached) " >&6
12185else
12186  case $host_os in #(
12187	 *cygwin*)
12188	   lt_cv_sys_argz_works=no
12189	   if test "$cross_compiling" != no; then
12190	     lt_cv_sys_argz_works="guessing no"
12191	   else
12192	     lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
12193	     save_IFS=$IFS
12194	     IFS=-.
12195	     set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
12196	     IFS=$save_IFS
12197	     lt_os_major=${2-0}
12198	     lt_os_minor=${3-0}
12199	     lt_os_micro=${4-0}
12200	     if test "$lt_os_major" -gt 1 \
12201		|| { test "$lt_os_major" -eq 1 \
12202		  && { test "$lt_os_minor" -gt 5 \
12203		    || { test "$lt_os_minor" -eq 5 \
12204		      && test "$lt_os_micro" -gt 24; }; }; }; then
12205	       lt_cv_sys_argz_works=yes
12206	     fi
12207	   fi
12208	   ;; #(
12209	 *) lt_cv_sys_argz_works=yes ;;
12210	 esac
12211fi
12212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
12213$as_echo "$lt_cv_sys_argz_works" >&6; }
12214     if test "$lt_cv_sys_argz_works" = yes; then :
12215
12216$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
12217
12218else
12219  ARGZ_H=argz.h
12220
12221
12222  _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
12223
12224fi
12225fi
12226
12227
12228
12229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
12230$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
12231if ${libltdl_cv_preloaded_symbols+:} false; then :
12232  $as_echo_n "(cached) " >&6
12233else
12234  if test -n "$lt_cv_sys_global_symbol_pipe"; then
12235    libltdl_cv_preloaded_symbols=yes
12236  else
12237    libltdl_cv_preloaded_symbols=no
12238  fi
12239
12240fi
12241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
12242$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
12243if test x"$libltdl_cv_preloaded_symbols" = xyes; then
12244
12245$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
12246
12247fi
12248
12249
12250
12251# Set options
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264# Check whether --with-included_ltdl was given.
12265if test "${with_included_ltdl+set}" = set; then :
12266  withval=$with_included_ltdl;
12267fi
12268
12269
12270if test "x$with_included_ltdl" != xyes; then
12271  # We are not being forced to use the included libltdl sources, so
12272  # decide whether there is a useful installed version we can use.
12273  ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
12274
12275"
12276if test "x$ac_cv_header_ltdl_h" = xyes; then :
12277  ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
12278	    #include <ltdl.h>
12279"
12280if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
12281  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
12282$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
12283if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
12284  $as_echo_n "(cached) " >&6
12285else
12286  ac_check_lib_save_LIBS=$LIBS
12287LIBS="-lltdl  $LIBS"
12288cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12289/* end confdefs.h.  */
12290
12291/* Override any GCC internal prototype to avoid an error.
12292   Use char because int might match the return type of a GCC
12293   builtin and then its argument prototype would still apply.  */
12294#ifdef __cplusplus
12295extern "C"
12296#endif
12297char lt_dladvise_preload ();
12298int
12299main ()
12300{
12301return lt_dladvise_preload ();
12302  ;
12303  return 0;
12304}
12305_ACEOF
12306if ac_fn_c_try_link "$LINENO"; then :
12307  ac_cv_lib_ltdl_lt_dladvise_preload=yes
12308else
12309  ac_cv_lib_ltdl_lt_dladvise_preload=no
12310fi
12311rm -f core conftest.err conftest.$ac_objext \
12312    conftest$ac_exeext conftest.$ac_ext
12313LIBS=$ac_check_lib_save_LIBS
12314fi
12315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
12316$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
12317if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
12318  with_included_ltdl=no
12319else
12320  with_included_ltdl=yes
12321fi
12322
12323else
12324  with_included_ltdl=yes
12325fi
12326
12327else
12328  with_included_ltdl=yes
12329fi
12330
12331
12332fi
12333
12334
12335
12336
12337# Check whether --with-ltdl_include was given.
12338if test "${with_ltdl_include+set}" = set; then :
12339  withval=$with_ltdl_include;
12340fi
12341
12342
12343if test -n "$with_ltdl_include"; then
12344  if test -f "$with_ltdl_include/ltdl.h"; then :
12345  else
12346    as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
12347  fi
12348else
12349  with_ltdl_include=no
12350fi
12351
12352
12353# Check whether --with-ltdl_lib was given.
12354if test "${with_ltdl_lib+set}" = set; then :
12355  withval=$with_ltdl_lib;
12356fi
12357
12358
12359if test -n "$with_ltdl_lib"; then
12360  if test -f "$with_ltdl_lib/libltdl.la"; then :
12361  else
12362    as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
12363  fi
12364else
12365  with_ltdl_lib=no
12366fi
12367
12368case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
12369  ,yes,no,no,)
12370	case $enable_ltdl_convenience in
12371  no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
12372  "") enable_ltdl_convenience=yes
12373      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
12374esac
12375LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
12376LTDLDEPS=$LIBLTDL
12377LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
12378
12379
12380
12381
12382
12383# For backwards non-gettext consistent compatibility...
12384INCLTDL="$LTDLINCL"
12385
12386
12387	;;
12388  ,no,no,no,)
12389	# If the included ltdl is not to be used, then use the
12390	# preinstalled libltdl we found.
12391
12392$as_echo "#define HAVE_LTDL 1" >>confdefs.h
12393
12394	LIBLTDL=-lltdl
12395	LTDLDEPS=
12396	LTDLINCL=
12397	;;
12398  ,no*,no,*)
12399	as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
12400	;;
12401  *)	with_included_ltdl=no
12402	LIBLTDL="-L$with_ltdl_lib -lltdl"
12403	LTDLDEPS=
12404	LTDLINCL="-I$with_ltdl_include"
12405	;;
12406esac
12407INCLTDL="$LTDLINCL"
12408
12409# Report our decision...
12410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
12411$as_echo_n "checking where to find libltdl headers... " >&6; }
12412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
12413$as_echo "$LTDLINCL" >&6; }
12414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
12415$as_echo_n "checking where to find libltdl library... " >&6; }
12416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
12417$as_echo "$LIBLTDL" >&6; }
12418
12419
12420
12421# Check whether --enable-ltdl-install was given.
12422if test "${enable_ltdl_install+set}" = set; then :
12423  enableval=$enable_ltdl_install;
12424fi
12425
12426
12427case ,${enable_ltdl_install},${enable_ltdl_convenience} in
12428  *yes*) ;;
12429  *) enable_ltdl_convenience=yes ;;
12430esac
12431
12432 if test x"${enable_ltdl_install-no}" != xno; then
12433  INSTALL_LTDL_TRUE=
12434  INSTALL_LTDL_FALSE='#'
12435else
12436  INSTALL_LTDL_TRUE='#'
12437  INSTALL_LTDL_FALSE=
12438fi
12439
12440  if test x"${enable_ltdl_convenience-no}" != xno; then
12441  CONVENIENCE_LTDL_TRUE=
12442  CONVENIENCE_LTDL_FALSE='#'
12443else
12444  CONVENIENCE_LTDL_TRUE='#'
12445  CONVENIENCE_LTDL_FALSE=
12446fi
12447
12448
12449
12450    subdirs="$subdirs libltdl"
12451
12452
12453
12454
12455# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
12456# the user used.  This is so that ltdl.h can pick up the parent projects
12457# config.h file, The first file in AC_CONFIG_HEADERS must contain the
12458# definitions required by ltdl.c.
12459# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
12460
12461
12462
12463for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
12464do :
12465  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12466ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12467"
12468if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12469  cat >>confdefs.h <<_ACEOF
12470#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12471_ACEOF
12472
12473fi
12474
12475done
12476
12477
12478for ac_func in closedir opendir readdir
12479do :
12480  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12481ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12482if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12483  cat >>confdefs.h <<_ACEOF
12484#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12485_ACEOF
12486
12487else
12488
12489
12490  _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
12491
12492fi
12493done
12494
12495for ac_func in strlcat strlcpy
12496do :
12497  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12498ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12499if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12500  cat >>confdefs.h <<_ACEOF
12501#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12502_ACEOF
12503
12504else
12505
12506
12507  _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
12508
12509fi
12510done
12511
12512
12513
12514cat >>confdefs.h <<_ACEOF
12515#define LT_LIBEXT "$libext"
12516_ACEOF
12517
12518
12519name=
12520eval "lt_libprefix=\"$libname_spec\""
12521
12522cat >>confdefs.h <<_ACEOF
12523#define LT_LIBPREFIX "$lt_libprefix"
12524_ACEOF
12525
12526
12527name=ltdl
12528eval "LTDLOPEN=\"$libname_spec\""
12529
12530
12531
12532
12533
12534
12535
12536
12537# Only expand once:
12538
12539
12540
12541
12542# Directories where to store specific box library files
12543boxbasename="box$BOX_VER_MAJOR.$BOX_VER_MINOR"
12544boxdir="$libdir/$boxbasename"
12545boxlibdir="$boxdir/lib"
12546boxpkgdir="$boxdir/pkg"
12547boxincdir="$includedir/$boxbasename"
12548
12549# Checks for programs.
12550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12551$as_echo_n "checking whether ln -s works... " >&6; }
12552LN_S=$as_ln_s
12553if test "$LN_S" = "ln -s"; then
12554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12555$as_echo "yes" >&6; }
12556else
12557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12558$as_echo "no, using $LN_S" >&6; }
12559fi
12560
12561ac_ext=c
12562ac_cpp='$CPP $CPPFLAGS'
12563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12565ac_compiler_gnu=$ac_cv_c_compiler_gnu
12566if test -n "$ac_tool_prefix"; then
12567  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12568set dummy ${ac_tool_prefix}gcc; ac_word=$2
12569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12570$as_echo_n "checking for $ac_word... " >&6; }
12571if ${ac_cv_prog_CC+:} false; then :
12572  $as_echo_n "(cached) " >&6
12573else
12574  if test -n "$CC"; then
12575  ac_cv_prog_CC="$CC" # Let the user override the test.
12576else
12577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12578for as_dir in $PATH
12579do
12580  IFS=$as_save_IFS
12581  test -z "$as_dir" && as_dir=.
12582    for ac_exec_ext in '' $ac_executable_extensions; do
12583  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12584    ac_cv_prog_CC="${ac_tool_prefix}gcc"
12585    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12586    break 2
12587  fi
12588done
12589  done
12590IFS=$as_save_IFS
12591
12592fi
12593fi
12594CC=$ac_cv_prog_CC
12595if test -n "$CC"; then
12596  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12597$as_echo "$CC" >&6; }
12598else
12599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12600$as_echo "no" >&6; }
12601fi
12602
12603
12604fi
12605if test -z "$ac_cv_prog_CC"; then
12606  ac_ct_CC=$CC
12607  # Extract the first word of "gcc", so it can be a program name with args.
12608set dummy gcc; ac_word=$2
12609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12610$as_echo_n "checking for $ac_word... " >&6; }
12611if ${ac_cv_prog_ac_ct_CC+:} false; then :
12612  $as_echo_n "(cached) " >&6
12613else
12614  if test -n "$ac_ct_CC"; then
12615  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12616else
12617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12618for as_dir in $PATH
12619do
12620  IFS=$as_save_IFS
12621  test -z "$as_dir" && as_dir=.
12622    for ac_exec_ext in '' $ac_executable_extensions; do
12623  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12624    ac_cv_prog_ac_ct_CC="gcc"
12625    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12626    break 2
12627  fi
12628done
12629  done
12630IFS=$as_save_IFS
12631
12632fi
12633fi
12634ac_ct_CC=$ac_cv_prog_ac_ct_CC
12635if test -n "$ac_ct_CC"; then
12636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12637$as_echo "$ac_ct_CC" >&6; }
12638else
12639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12640$as_echo "no" >&6; }
12641fi
12642
12643  if test "x$ac_ct_CC" = x; then
12644    CC=""
12645  else
12646    case $cross_compiling:$ac_tool_warned in
12647yes:)
12648{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12649$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12650ac_tool_warned=yes ;;
12651esac
12652    CC=$ac_ct_CC
12653  fi
12654else
12655  CC="$ac_cv_prog_CC"
12656fi
12657
12658if test -z "$CC"; then
12659          if test -n "$ac_tool_prefix"; then
12660    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12661set dummy ${ac_tool_prefix}cc; ac_word=$2
12662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12663$as_echo_n "checking for $ac_word... " >&6; }
12664if ${ac_cv_prog_CC+:} false; then :
12665  $as_echo_n "(cached) " >&6
12666else
12667  if test -n "$CC"; then
12668  ac_cv_prog_CC="$CC" # Let the user override the test.
12669else
12670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12671for as_dir in $PATH
12672do
12673  IFS=$as_save_IFS
12674  test -z "$as_dir" && as_dir=.
12675    for ac_exec_ext in '' $ac_executable_extensions; do
12676  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12677    ac_cv_prog_CC="${ac_tool_prefix}cc"
12678    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12679    break 2
12680  fi
12681done
12682  done
12683IFS=$as_save_IFS
12684
12685fi
12686fi
12687CC=$ac_cv_prog_CC
12688if test -n "$CC"; then
12689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12690$as_echo "$CC" >&6; }
12691else
12692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12693$as_echo "no" >&6; }
12694fi
12695
12696
12697  fi
12698fi
12699if test -z "$CC"; then
12700  # Extract the first word of "cc", so it can be a program name with args.
12701set dummy cc; ac_word=$2
12702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12703$as_echo_n "checking for $ac_word... " >&6; }
12704if ${ac_cv_prog_CC+:} false; then :
12705  $as_echo_n "(cached) " >&6
12706else
12707  if test -n "$CC"; then
12708  ac_cv_prog_CC="$CC" # Let the user override the test.
12709else
12710  ac_prog_rejected=no
12711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12712for as_dir in $PATH
12713do
12714  IFS=$as_save_IFS
12715  test -z "$as_dir" && as_dir=.
12716    for ac_exec_ext in '' $ac_executable_extensions; do
12717  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12718    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12719       ac_prog_rejected=yes
12720       continue
12721     fi
12722    ac_cv_prog_CC="cc"
12723    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12724    break 2
12725  fi
12726done
12727  done
12728IFS=$as_save_IFS
12729
12730if test $ac_prog_rejected = yes; then
12731  # We found a bogon in the path, so make sure we never use it.
12732  set dummy $ac_cv_prog_CC
12733  shift
12734  if test $# != 0; then
12735    # We chose a different compiler from the bogus one.
12736    # However, it has the same basename, so the bogon will be chosen
12737    # first if we set CC to just the basename; use the full file name.
12738    shift
12739    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12740  fi
12741fi
12742fi
12743fi
12744CC=$ac_cv_prog_CC
12745if test -n "$CC"; then
12746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12747$as_echo "$CC" >&6; }
12748else
12749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12750$as_echo "no" >&6; }
12751fi
12752
12753
12754fi
12755if test -z "$CC"; then
12756  if test -n "$ac_tool_prefix"; then
12757  for ac_prog in cl.exe
12758  do
12759    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12760set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12762$as_echo_n "checking for $ac_word... " >&6; }
12763if ${ac_cv_prog_CC+:} false; then :
12764  $as_echo_n "(cached) " >&6
12765else
12766  if test -n "$CC"; then
12767  ac_cv_prog_CC="$CC" # Let the user override the test.
12768else
12769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12770for as_dir in $PATH
12771do
12772  IFS=$as_save_IFS
12773  test -z "$as_dir" && as_dir=.
12774    for ac_exec_ext in '' $ac_executable_extensions; do
12775  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12776    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12777    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12778    break 2
12779  fi
12780done
12781  done
12782IFS=$as_save_IFS
12783
12784fi
12785fi
12786CC=$ac_cv_prog_CC
12787if test -n "$CC"; then
12788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12789$as_echo "$CC" >&6; }
12790else
12791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12792$as_echo "no" >&6; }
12793fi
12794
12795
12796    test -n "$CC" && break
12797  done
12798fi
12799if test -z "$CC"; then
12800  ac_ct_CC=$CC
12801  for ac_prog in cl.exe
12802do
12803  # Extract the first word of "$ac_prog", so it can be a program name with args.
12804set dummy $ac_prog; ac_word=$2
12805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12806$as_echo_n "checking for $ac_word... " >&6; }
12807if ${ac_cv_prog_ac_ct_CC+:} false; then :
12808  $as_echo_n "(cached) " >&6
12809else
12810  if test -n "$ac_ct_CC"; then
12811  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12812else
12813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12814for as_dir in $PATH
12815do
12816  IFS=$as_save_IFS
12817  test -z "$as_dir" && as_dir=.
12818    for ac_exec_ext in '' $ac_executable_extensions; do
12819  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12820    ac_cv_prog_ac_ct_CC="$ac_prog"
12821    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12822    break 2
12823  fi
12824done
12825  done
12826IFS=$as_save_IFS
12827
12828fi
12829fi
12830ac_ct_CC=$ac_cv_prog_ac_ct_CC
12831if test -n "$ac_ct_CC"; then
12832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12833$as_echo "$ac_ct_CC" >&6; }
12834else
12835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12836$as_echo "no" >&6; }
12837fi
12838
12839
12840  test -n "$ac_ct_CC" && break
12841done
12842
12843  if test "x$ac_ct_CC" = x; then
12844    CC=""
12845  else
12846    case $cross_compiling:$ac_tool_warned in
12847yes:)
12848{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12849$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12850ac_tool_warned=yes ;;
12851esac
12852    CC=$ac_ct_CC
12853  fi
12854fi
12855
12856fi
12857
12858
12859test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12860$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12861as_fn_error $? "no acceptable C compiler found in \$PATH
12862See \`config.log' for more details" "$LINENO" 5; }
12863
12864# Provide some information about the compiler.
12865$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12866set X $ac_compile
12867ac_compiler=$2
12868for ac_option in --version -v -V -qversion; do
12869  { { ac_try="$ac_compiler $ac_option >&5"
12870case "(($ac_try" in
12871  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12872  *) ac_try_echo=$ac_try;;
12873esac
12874eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12875$as_echo "$ac_try_echo"; } >&5
12876  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12877  ac_status=$?
12878  if test -s conftest.err; then
12879    sed '10a\
12880... rest of stderr output deleted ...
12881         10q' conftest.err >conftest.er1
12882    cat conftest.er1 >&5
12883  fi
12884  rm -f conftest.er1 conftest.err
12885  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12886  test $ac_status = 0; }
12887done
12888
12889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12890$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12891if ${ac_cv_c_compiler_gnu+:} false; then :
12892  $as_echo_n "(cached) " >&6
12893else
12894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12895/* end confdefs.h.  */
12896
12897int
12898main ()
12899{
12900#ifndef __GNUC__
12901       choke me
12902#endif
12903
12904  ;
12905  return 0;
12906}
12907_ACEOF
12908if ac_fn_c_try_compile "$LINENO"; then :
12909  ac_compiler_gnu=yes
12910else
12911  ac_compiler_gnu=no
12912fi
12913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12914ac_cv_c_compiler_gnu=$ac_compiler_gnu
12915
12916fi
12917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12918$as_echo "$ac_cv_c_compiler_gnu" >&6; }
12919if test $ac_compiler_gnu = yes; then
12920  GCC=yes
12921else
12922  GCC=
12923fi
12924ac_test_CFLAGS=${CFLAGS+set}
12925ac_save_CFLAGS=$CFLAGS
12926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12927$as_echo_n "checking whether $CC accepts -g... " >&6; }
12928if ${ac_cv_prog_cc_g+:} false; then :
12929  $as_echo_n "(cached) " >&6
12930else
12931  ac_save_c_werror_flag=$ac_c_werror_flag
12932   ac_c_werror_flag=yes
12933   ac_cv_prog_cc_g=no
12934   CFLAGS="-g"
12935   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12936/* end confdefs.h.  */
12937
12938int
12939main ()
12940{
12941
12942  ;
12943  return 0;
12944}
12945_ACEOF
12946if ac_fn_c_try_compile "$LINENO"; then :
12947  ac_cv_prog_cc_g=yes
12948else
12949  CFLAGS=""
12950      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12951/* end confdefs.h.  */
12952
12953int
12954main ()
12955{
12956
12957  ;
12958  return 0;
12959}
12960_ACEOF
12961if ac_fn_c_try_compile "$LINENO"; then :
12962
12963else
12964  ac_c_werror_flag=$ac_save_c_werror_flag
12965	 CFLAGS="-g"
12966	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12967/* end confdefs.h.  */
12968
12969int
12970main ()
12971{
12972
12973  ;
12974  return 0;
12975}
12976_ACEOF
12977if ac_fn_c_try_compile "$LINENO"; then :
12978  ac_cv_prog_cc_g=yes
12979fi
12980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12981fi
12982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12983fi
12984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12985   ac_c_werror_flag=$ac_save_c_werror_flag
12986fi
12987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12988$as_echo "$ac_cv_prog_cc_g" >&6; }
12989if test "$ac_test_CFLAGS" = set; then
12990  CFLAGS=$ac_save_CFLAGS
12991elif test $ac_cv_prog_cc_g = yes; then
12992  if test "$GCC" = yes; then
12993    CFLAGS="-g -O2"
12994  else
12995    CFLAGS="-g"
12996  fi
12997else
12998  if test "$GCC" = yes; then
12999    CFLAGS="-O2"
13000  else
13001    CFLAGS=
13002  fi
13003fi
13004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13005$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13006if ${ac_cv_prog_cc_c89+:} false; then :
13007  $as_echo_n "(cached) " >&6
13008else
13009  ac_cv_prog_cc_c89=no
13010ac_save_CC=$CC
13011cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13012/* end confdefs.h.  */
13013#include <stdarg.h>
13014#include <stdio.h>
13015#include <sys/types.h>
13016#include <sys/stat.h>
13017/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
13018struct buf { int x; };
13019FILE * (*rcsopen) (struct buf *, struct stat *, int);
13020static char *e (p, i)
13021     char **p;
13022     int i;
13023{
13024  return p[i];
13025}
13026static char *f (char * (*g) (char **, int), char **p, ...)
13027{
13028  char *s;
13029  va_list v;
13030  va_start (v,p);
13031  s = g (p, va_arg (v,int));
13032  va_end (v);
13033  return s;
13034}
13035
13036/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13037   function prototypes and stuff, but not '\xHH' hex character constants.
13038   These don't provoke an error unfortunately, instead are silently treated
13039   as 'x'.  The following induces an error, until -std is added to get
13040   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13041   array size at least.  It's necessary to write '\x00'==0 to get something
13042   that's true only with -std.  */
13043int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13044
13045/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13046   inside strings and character constants.  */
13047#define FOO(x) 'x'
13048int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13049
13050int test (int i, double x);
13051struct s1 {int (*f) (int a);};
13052struct s2 {int (*f) (double a);};
13053int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13054int argc;
13055char **argv;
13056int
13057main ()
13058{
13059return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13060  ;
13061  return 0;
13062}
13063_ACEOF
13064for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13065	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13066do
13067  CC="$ac_save_CC $ac_arg"
13068  if ac_fn_c_try_compile "$LINENO"; then :
13069  ac_cv_prog_cc_c89=$ac_arg
13070fi
13071rm -f core conftest.err conftest.$ac_objext
13072  test "x$ac_cv_prog_cc_c89" != "xno" && break
13073done
13074rm -f conftest.$ac_ext
13075CC=$ac_save_CC
13076
13077fi
13078# AC_CACHE_VAL
13079case "x$ac_cv_prog_cc_c89" in
13080  x)
13081    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13082$as_echo "none needed" >&6; } ;;
13083  xno)
13084    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13085$as_echo "unsupported" >&6; } ;;
13086  *)
13087    CC="$CC $ac_cv_prog_cc_c89"
13088    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13089$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13090esac
13091if test "x$ac_cv_prog_cc_c89" != xno; then :
13092
13093fi
13094
13095ac_ext=c
13096ac_cpp='$CPP $CPPFLAGS'
13097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13099ac_compiler_gnu=$ac_cv_c_compiler_gnu
13100
13101depcc="$CC"   am_compiler_list=
13102
13103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13104$as_echo_n "checking dependency style of $depcc... " >&6; }
13105if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13106  $as_echo_n "(cached) " >&6
13107else
13108  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13109  # We make a subdir and do the tests there.  Otherwise we can end up
13110  # making bogus files that we don't know about and never remove.  For
13111  # instance it was reported that on HP-UX the gcc test will end up
13112  # making a dummy file named `D' -- because `-MD' means `put the output
13113  # in D'.
13114  rm -rf conftest.dir
13115  mkdir conftest.dir
13116  # Copy depcomp to subdir because otherwise we won't find it if we're
13117  # using a relative directory.
13118  cp "$am_depcomp" conftest.dir
13119  cd conftest.dir
13120  # We will build objects and dependencies in a subdirectory because
13121  # it helps to detect inapplicable dependency modes.  For instance
13122  # both Tru64's cc and ICC support -MD to output dependencies as a
13123  # side effect of compilation, but ICC will put the dependencies in
13124  # the current directory while Tru64 will put them in the object
13125  # directory.
13126  mkdir sub
13127
13128  am_cv_CC_dependencies_compiler_type=none
13129  if test "$am_compiler_list" = ""; then
13130     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13131  fi
13132  am__universal=false
13133  case " $depcc " in #(
13134     *\ -arch\ *\ -arch\ *) am__universal=true ;;
13135     esac
13136
13137  for depmode in $am_compiler_list; do
13138    # Setup a source with many dependencies, because some compilers
13139    # like to wrap large dependency lists on column 80 (with \), and
13140    # we should not choose a depcomp mode which is confused by this.
13141    #
13142    # We need to recreate these files for each test, as the compiler may
13143    # overwrite some of them when testing with obscure command lines.
13144    # This happens at least with the AIX C compiler.
13145    : > sub/conftest.c
13146    for i in 1 2 3 4 5 6; do
13147      echo '#include "conftst'$i'.h"' >> sub/conftest.c
13148      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13149      # Solaris 8's {/usr,}/bin/sh.
13150      touch sub/conftst$i.h
13151    done
13152    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13153
13154    # We check with `-c' and `-o' for the sake of the "dashmstdout"
13155    # mode.  It turns out that the SunPro C++ compiler does not properly
13156    # handle `-M -o', and we need to detect this.  Also, some Intel
13157    # versions had trouble with output in subdirs
13158    am__obj=sub/conftest.${OBJEXT-o}
13159    am__minus_obj="-o $am__obj"
13160    case $depmode in
13161    gcc)
13162      # This depmode causes a compiler race in universal mode.
13163      test "$am__universal" = false || continue
13164      ;;
13165    nosideeffect)
13166      # after this tag, mechanisms are not by side-effect, so they'll
13167      # only be used when explicitly requested
13168      if test "x$enable_dependency_tracking" = xyes; then
13169	continue
13170      else
13171	break
13172      fi
13173      ;;
13174    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13175      # This compiler won't grok `-c -o', but also, the minuso test has
13176      # not run yet.  These depmodes are late enough in the game, and
13177      # so weak that their functioning should not be impacted.
13178      am__obj=conftest.${OBJEXT-o}
13179      am__minus_obj=
13180      ;;
13181    none) break ;;
13182    esac
13183    if depmode=$depmode \
13184       source=sub/conftest.c object=$am__obj \
13185       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13186       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13187         >/dev/null 2>conftest.err &&
13188       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13189       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13190       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13191       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13192      # icc doesn't choke on unknown options, it will just issue warnings
13193      # or remarks (even with -Werror).  So we grep stderr for any message
13194      # that says an option was ignored or not supported.
13195      # When given -MP, icc 7.0 and 7.1 complain thusly:
13196      #   icc: Command line warning: ignoring option '-M'; no argument required
13197      # The diagnosis changed in icc 8.0:
13198      #   icc: Command line remark: option '-MP' not supported
13199      if (grep 'ignoring option' conftest.err ||
13200          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13201        am_cv_CC_dependencies_compiler_type=$depmode
13202        break
13203      fi
13204    fi
13205  done
13206
13207  cd ..
13208  rm -rf conftest.dir
13209else
13210  am_cv_CC_dependencies_compiler_type=none
13211fi
13212
13213fi
13214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13215$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13216CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13217
13218 if
13219  test "x$enable_dependency_tracking" != xno \
13220  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13221  am__fastdepCC_TRUE=
13222  am__fastdepCC_FALSE='#'
13223else
13224  am__fastdepCC_TRUE='#'
13225  am__fastdepCC_FALSE=
13226fi
13227
13228
13229for ac_prog in flex lex
13230do
13231  # Extract the first word of "$ac_prog", so it can be a program name with args.
13232set dummy $ac_prog; ac_word=$2
13233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13234$as_echo_n "checking for $ac_word... " >&6; }
13235if ${ac_cv_prog_LEX+:} false; then :
13236  $as_echo_n "(cached) " >&6
13237else
13238  if test -n "$LEX"; then
13239  ac_cv_prog_LEX="$LEX" # Let the user override the test.
13240else
13241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13242for as_dir in $PATH
13243do
13244  IFS=$as_save_IFS
13245  test -z "$as_dir" && as_dir=.
13246    for ac_exec_ext in '' $ac_executable_extensions; do
13247  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13248    ac_cv_prog_LEX="$ac_prog"
13249    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13250    break 2
13251  fi
13252done
13253  done
13254IFS=$as_save_IFS
13255
13256fi
13257fi
13258LEX=$ac_cv_prog_LEX
13259if test -n "$LEX"; then
13260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
13261$as_echo "$LEX" >&6; }
13262else
13263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13264$as_echo "no" >&6; }
13265fi
13266
13267
13268  test -n "$LEX" && break
13269done
13270test -n "$LEX" || LEX=":"
13271
13272if test "x$LEX" != "x:"; then
13273  cat >conftest.l <<_ACEOF
13274%%
13275a { ECHO; }
13276b { REJECT; }
13277c { yymore (); }
13278d { yyless (1); }
13279e { yyless (input () != 0); }
13280f { unput (yytext[0]); }
13281. { BEGIN INITIAL; }
13282%%
13283#ifdef YYTEXT_POINTER
13284extern char *yytext;
13285#endif
13286int
13287main (void)
13288{
13289  return ! yylex () + ! yywrap ();
13290}
13291_ACEOF
13292{ { ac_try="$LEX conftest.l"
13293case "(($ac_try" in
13294  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13295  *) ac_try_echo=$ac_try;;
13296esac
13297eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13298$as_echo "$ac_try_echo"; } >&5
13299  (eval "$LEX conftest.l") 2>&5
13300  ac_status=$?
13301  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13302  test $ac_status = 0; }
13303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
13304$as_echo_n "checking lex output file root... " >&6; }
13305if ${ac_cv_prog_lex_root+:} false; then :
13306  $as_echo_n "(cached) " >&6
13307else
13308
13309if test -f lex.yy.c; then
13310  ac_cv_prog_lex_root=lex.yy
13311elif test -f lexyy.c; then
13312  ac_cv_prog_lex_root=lexyy
13313else
13314  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
13315fi
13316fi
13317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
13318$as_echo "$ac_cv_prog_lex_root" >&6; }
13319LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
13320
13321if test -z "${LEXLIB+set}"; then
13322  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
13323$as_echo_n "checking lex library... " >&6; }
13324if ${ac_cv_lib_lex+:} false; then :
13325  $as_echo_n "(cached) " >&6
13326else
13327
13328    ac_save_LIBS=$LIBS
13329    ac_cv_lib_lex='none needed'
13330    for ac_lib in '' -lfl -ll; do
13331      LIBS="$ac_lib $ac_save_LIBS"
13332      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13333/* end confdefs.h.  */
13334`cat $LEX_OUTPUT_ROOT.c`
13335_ACEOF
13336if ac_fn_c_try_link "$LINENO"; then :
13337  ac_cv_lib_lex=$ac_lib
13338fi
13339rm -f core conftest.err conftest.$ac_objext \
13340    conftest$ac_exeext conftest.$ac_ext
13341      test "$ac_cv_lib_lex" != 'none needed' && break
13342    done
13343    LIBS=$ac_save_LIBS
13344
13345fi
13346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
13347$as_echo "$ac_cv_lib_lex" >&6; }
13348  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
13349fi
13350
13351
13352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
13353$as_echo_n "checking whether yytext is a pointer... " >&6; }
13354if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
13355  $as_echo_n "(cached) " >&6
13356else
13357  # POSIX says lex can declare yytext either as a pointer or an array; the
13358# default is implementation-dependent.  Figure out which it is, since
13359# not all implementations provide the %pointer and %array declarations.
13360ac_cv_prog_lex_yytext_pointer=no
13361ac_save_LIBS=$LIBS
13362LIBS="$LEXLIB $ac_save_LIBS"
13363cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13364/* end confdefs.h.  */
13365
13366  #define YYTEXT_POINTER 1
13367`cat $LEX_OUTPUT_ROOT.c`
13368_ACEOF
13369if ac_fn_c_try_link "$LINENO"; then :
13370  ac_cv_prog_lex_yytext_pointer=yes
13371fi
13372rm -f core conftest.err conftest.$ac_objext \
13373    conftest$ac_exeext conftest.$ac_ext
13374LIBS=$ac_save_LIBS
13375
13376fi
13377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
13378$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
13379if test $ac_cv_prog_lex_yytext_pointer = yes; then
13380
13381$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
13382
13383fi
13384rm -f conftest.l $LEX_OUTPUT_ROOT.c
13385
13386fi
13387for ac_prog in 'bison -y' byacc
13388do
13389  # Extract the first word of "$ac_prog", so it can be a program name with args.
13390set dummy $ac_prog; ac_word=$2
13391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13392$as_echo_n "checking for $ac_word... " >&6; }
13393if ${ac_cv_prog_YACC+:} false; then :
13394  $as_echo_n "(cached) " >&6
13395else
13396  if test -n "$YACC"; then
13397  ac_cv_prog_YACC="$YACC" # Let the user override the test.
13398else
13399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13400for as_dir in $PATH
13401do
13402  IFS=$as_save_IFS
13403  test -z "$as_dir" && as_dir=.
13404    for ac_exec_ext in '' $ac_executable_extensions; do
13405  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13406    ac_cv_prog_YACC="$ac_prog"
13407    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13408    break 2
13409  fi
13410done
13411  done
13412IFS=$as_save_IFS
13413
13414fi
13415fi
13416YACC=$ac_cv_prog_YACC
13417if test -n "$YACC"; then
13418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
13419$as_echo "$YACC" >&6; }
13420else
13421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13422$as_echo "no" >&6; }
13423fi
13424
13425
13426  test -n "$YACC" && break
13427done
13428test -n "$YACC" || YACC="yacc"
13429
13430
13431# Checks for header files.
13432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13433$as_echo_n "checking for ANSI C header files... " >&6; }
13434if ${ac_cv_header_stdc+:} false; then :
13435  $as_echo_n "(cached) " >&6
13436else
13437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13438/* end confdefs.h.  */
13439#include <stdlib.h>
13440#include <stdarg.h>
13441#include <string.h>
13442#include <float.h>
13443
13444int
13445main ()
13446{
13447
13448  ;
13449  return 0;
13450}
13451_ACEOF
13452if ac_fn_c_try_compile "$LINENO"; then :
13453  ac_cv_header_stdc=yes
13454else
13455  ac_cv_header_stdc=no
13456fi
13457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13458
13459if test $ac_cv_header_stdc = yes; then
13460  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13462/* end confdefs.h.  */
13463#include <string.h>
13464
13465_ACEOF
13466if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13467  $EGREP "memchr" >/dev/null 2>&1; then :
13468
13469else
13470  ac_cv_header_stdc=no
13471fi
13472rm -f conftest*
13473
13474fi
13475
13476if test $ac_cv_header_stdc = yes; then
13477  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13478  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13479/* end confdefs.h.  */
13480#include <stdlib.h>
13481
13482_ACEOF
13483if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13484  $EGREP "free" >/dev/null 2>&1; then :
13485
13486else
13487  ac_cv_header_stdc=no
13488fi
13489rm -f conftest*
13490
13491fi
13492
13493if test $ac_cv_header_stdc = yes; then
13494  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13495  if test "$cross_compiling" = yes; then :
13496  :
13497else
13498  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13499/* end confdefs.h.  */
13500#include <ctype.h>
13501#include <stdlib.h>
13502#if ((' ' & 0x0FF) == 0x020)
13503# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13504# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13505#else
13506# define ISLOWER(c) \
13507		   (('a' <= (c) && (c) <= 'i') \
13508		     || ('j' <= (c) && (c) <= 'r') \
13509		     || ('s' <= (c) && (c) <= 'z'))
13510# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13511#endif
13512
13513#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13514int
13515main ()
13516{
13517  int i;
13518  for (i = 0; i < 256; i++)
13519    if (XOR (islower (i), ISLOWER (i))
13520	|| toupper (i) != TOUPPER (i))
13521      return 2;
13522  return 0;
13523}
13524_ACEOF
13525if ac_fn_c_try_run "$LINENO"; then :
13526
13527else
13528  ac_cv_header_stdc=no
13529fi
13530rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13531  conftest.$ac_objext conftest.beam conftest.$ac_ext
13532fi
13533
13534fi
13535fi
13536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13537$as_echo "$ac_cv_header_stdc" >&6; }
13538if test $ac_cv_header_stdc = yes; then
13539
13540$as_echo "#define STDC_HEADERS 1" >>confdefs.h
13541
13542fi
13543
13544for ac_header in stdlib.h string.h unistd.h stdint.h
13545do :
13546  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13547ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13548if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13549  cat >>confdefs.h <<_ACEOF
13550#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13551_ACEOF
13552
13553fi
13554
13555done
13556
13557#AC_CHECK_HEADERS([cairo.h])
13558
13559# Checks for libraries.
13560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5
13561$as_echo_n "checking for floor in -lm... " >&6; }
13562if ${ac_cv_lib_m_floor+:} false; then :
13563  $as_echo_n "(cached) " >&6
13564else
13565  ac_check_lib_save_LIBS=$LIBS
13566LIBS="-lm  $LIBS"
13567cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13568/* end confdefs.h.  */
13569
13570/* Override any GCC internal prototype to avoid an error.
13571   Use char because int might match the return type of a GCC
13572   builtin and then its argument prototype would still apply.  */
13573#ifdef __cplusplus
13574extern "C"
13575#endif
13576char floor ();
13577int
13578main ()
13579{
13580return floor ();
13581  ;
13582  return 0;
13583}
13584_ACEOF
13585if ac_fn_c_try_link "$LINENO"; then :
13586  ac_cv_lib_m_floor=yes
13587else
13588  ac_cv_lib_m_floor=no
13589fi
13590rm -f core conftest.err conftest.$ac_objext \
13591    conftest$ac_exeext conftest.$ac_ext
13592LIBS=$ac_check_lib_save_LIBS
13593fi
13594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5
13595$as_echo "$ac_cv_lib_m_floor" >&6; }
13596if test "x$ac_cv_lib_m_floor" = xyes; then :
13597  cat >>confdefs.h <<_ACEOF
13598#define HAVE_LIBM 1
13599_ACEOF
13600
13601  LIBS="-lm $LIBS"
13602
13603fi
13604
13605
13606# Checks for typedefs, structures, and compiler characteristics.
13607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13608$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13609if ${ac_cv_c_const+:} false; then :
13610  $as_echo_n "(cached) " >&6
13611else
13612  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13613/* end confdefs.h.  */
13614
13615int
13616main ()
13617{
13618/* FIXME: Include the comments suggested by Paul. */
13619#ifndef __cplusplus
13620  /* Ultrix mips cc rejects this.  */
13621  typedef int charset[2];
13622  const charset cs;
13623  /* SunOS 4.1.1 cc rejects this.  */
13624  char const *const *pcpcc;
13625  char **ppc;
13626  /* NEC SVR4.0.2 mips cc rejects this.  */
13627  struct point {int x, y;};
13628  static struct point const zero = {0,0};
13629  /* AIX XL C 1.02.0.0 rejects this.
13630     It does not let you subtract one const X* pointer from another in
13631     an arm of an if-expression whose if-part is not a constant
13632     expression */
13633  const char *g = "string";
13634  pcpcc = &g + (g ? g-g : 0);
13635  /* HPUX 7.0 cc rejects these. */
13636  ++pcpcc;
13637  ppc = (char**) pcpcc;
13638  pcpcc = (char const *const *) ppc;
13639  { /* SCO 3.2v4 cc rejects this.  */
13640    char *t;
13641    char const *s = 0 ? (char *) 0 : (char const *) 0;
13642
13643    *t++ = 0;
13644    if (s) return 0;
13645  }
13646  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13647    int x[] = {25, 17};
13648    const int *foo = &x[0];
13649    ++foo;
13650  }
13651  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13652    typedef const int *iptr;
13653    iptr p = 0;
13654    ++p;
13655  }
13656  { /* AIX XL C 1.02.0.0 rejects this saying
13657       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13658    struct s { int j; const int *ap[3]; };
13659    struct s *b; b->j = 5;
13660  }
13661  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13662    const int foo = 10;
13663    if (!foo) return 0;
13664  }
13665  return !cs[0] && !zero.x;
13666#endif
13667
13668  ;
13669  return 0;
13670}
13671_ACEOF
13672if ac_fn_c_try_compile "$LINENO"; then :
13673  ac_cv_c_const=yes
13674else
13675  ac_cv_c_const=no
13676fi
13677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13678fi
13679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13680$as_echo "$ac_cv_c_const" >&6; }
13681if test $ac_cv_c_const = no; then
13682
13683$as_echo "#define const /**/" >>confdefs.h
13684
13685fi
13686
13687
13688# Checks for types
13689ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13690if test "x$ac_cv_type_ssize_t" = xyes; then :
13691
13692fi
13693
13694
13695# Checks for library functions.
13696for ac_header in stdlib.h
13697do :
13698  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
13699if test "x$ac_cv_header_stdlib_h" = xyes; then :
13700  cat >>confdefs.h <<_ACEOF
13701#define HAVE_STDLIB_H 1
13702_ACEOF
13703
13704fi
13705
13706done
13707
13708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
13709$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
13710if ${ac_cv_func_malloc_0_nonnull+:} false; then :
13711  $as_echo_n "(cached) " >&6
13712else
13713  if test "$cross_compiling" = yes; then :
13714  ac_cv_func_malloc_0_nonnull=no
13715else
13716  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13717/* end confdefs.h.  */
13718#if defined STDC_HEADERS || defined HAVE_STDLIB_H
13719# include <stdlib.h>
13720#else
13721char *malloc ();
13722#endif
13723
13724int
13725main ()
13726{
13727return ! malloc (0);
13728  ;
13729  return 0;
13730}
13731_ACEOF
13732if ac_fn_c_try_run "$LINENO"; then :
13733  ac_cv_func_malloc_0_nonnull=yes
13734else
13735  ac_cv_func_malloc_0_nonnull=no
13736fi
13737rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13738  conftest.$ac_objext conftest.beam conftest.$ac_ext
13739fi
13740
13741fi
13742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
13743$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
13744if test $ac_cv_func_malloc_0_nonnull = yes; then :
13745
13746$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
13747
13748else
13749  $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
13750
13751   case " $LIBOBJS " in
13752  *" malloc.$ac_objext "* ) ;;
13753  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
13754 ;;
13755esac
13756
13757
13758$as_echo "#define malloc rpl_malloc" >>confdefs.h
13759
13760fi
13761
13762
13763for ac_header in stdlib.h
13764do :
13765  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
13766if test "x$ac_cv_header_stdlib_h" = xyes; then :
13767  cat >>confdefs.h <<_ACEOF
13768#define HAVE_STDLIB_H 1
13769_ACEOF
13770
13771fi
13772
13773done
13774
13775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
13776$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
13777if ${ac_cv_func_realloc_0_nonnull+:} false; then :
13778  $as_echo_n "(cached) " >&6
13779else
13780  if test "$cross_compiling" = yes; then :
13781  ac_cv_func_realloc_0_nonnull=no
13782else
13783  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13784/* end confdefs.h.  */
13785#if defined STDC_HEADERS || defined HAVE_STDLIB_H
13786# include <stdlib.h>
13787#else
13788char *realloc ();
13789#endif
13790
13791int
13792main ()
13793{
13794return ! realloc (0, 0);
13795  ;
13796  return 0;
13797}
13798_ACEOF
13799if ac_fn_c_try_run "$LINENO"; then :
13800  ac_cv_func_realloc_0_nonnull=yes
13801else
13802  ac_cv_func_realloc_0_nonnull=no
13803fi
13804rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13805  conftest.$ac_objext conftest.beam conftest.$ac_ext
13806fi
13807
13808fi
13809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
13810$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
13811if test $ac_cv_func_realloc_0_nonnull = yes; then :
13812
13813$as_echo "#define HAVE_REALLOC 1" >>confdefs.h
13814
13815else
13816  $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
13817
13818   case " $LIBOBJS " in
13819  *" realloc.$ac_objext "* ) ;;
13820  *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
13821 ;;
13822esac
13823
13824
13825$as_echo "#define realloc rpl_realloc" >>confdefs.h
13826
13827fi
13828
13829
13830for ac_func in floor memmove memset pow rint sqrt strdup strncasecmp strndup
13831do :
13832  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13833ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13834if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13835  cat >>confdefs.h <<_ACEOF
13836#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13837_ACEOF
13838
13839fi
13840done
13841
13842for ac_func in getenv stat
13843do :
13844  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13845ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13846if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13847  cat >>confdefs.h <<_ACEOF
13848#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13849_ACEOF
13850
13851fi
13852done
13853
13854
13855
13856# Check whether --with-cairo was given.
13857if test "${with_cairo+set}" = set; then :
13858  withval=$with_cairo; ac_cv_with_cairo=$withval
13859else
13860  ac_cv_with_cairo=yes
13861fi
13862
13863
13864if test "$ac_cv_with_cairo" = yes; then
13865  use_libcairo=yes
13866
13867
13868
13869
13870
13871
13872
13873if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13874	if test -n "$ac_tool_prefix"; then
13875  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13876set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13878$as_echo_n "checking for $ac_word... " >&6; }
13879if ${ac_cv_path_PKG_CONFIG+:} false; then :
13880  $as_echo_n "(cached) " >&6
13881else
13882  case $PKG_CONFIG in
13883  [\\/]* | ?:[\\/]*)
13884  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13885  ;;
13886  *)
13887  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13888for as_dir in $PATH
13889do
13890  IFS=$as_save_IFS
13891  test -z "$as_dir" && as_dir=.
13892    for ac_exec_ext in '' $ac_executable_extensions; do
13893  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13894    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13895    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13896    break 2
13897  fi
13898done
13899  done
13900IFS=$as_save_IFS
13901
13902  ;;
13903esac
13904fi
13905PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13906if test -n "$PKG_CONFIG"; then
13907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13908$as_echo "$PKG_CONFIG" >&6; }
13909else
13910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13911$as_echo "no" >&6; }
13912fi
13913
13914
13915fi
13916if test -z "$ac_cv_path_PKG_CONFIG"; then
13917  ac_pt_PKG_CONFIG=$PKG_CONFIG
13918  # Extract the first word of "pkg-config", so it can be a program name with args.
13919set dummy pkg-config; ac_word=$2
13920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13921$as_echo_n "checking for $ac_word... " >&6; }
13922if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13923  $as_echo_n "(cached) " >&6
13924else
13925  case $ac_pt_PKG_CONFIG in
13926  [\\/]* | ?:[\\/]*)
13927  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13928  ;;
13929  *)
13930  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13931for as_dir in $PATH
13932do
13933  IFS=$as_save_IFS
13934  test -z "$as_dir" && as_dir=.
13935    for ac_exec_ext in '' $ac_executable_extensions; do
13936  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13937    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13938    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13939    break 2
13940  fi
13941done
13942  done
13943IFS=$as_save_IFS
13944
13945  ;;
13946esac
13947fi
13948ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13949if test -n "$ac_pt_PKG_CONFIG"; then
13950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13951$as_echo "$ac_pt_PKG_CONFIG" >&6; }
13952else
13953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13954$as_echo "no" >&6; }
13955fi
13956
13957  if test "x$ac_pt_PKG_CONFIG" = x; then
13958    PKG_CONFIG=""
13959  else
13960    case $cross_compiling:$ac_tool_warned in
13961yes:)
13962{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13963$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13964ac_tool_warned=yes ;;
13965esac
13966    PKG_CONFIG=$ac_pt_PKG_CONFIG
13967  fi
13968else
13969  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13970fi
13971
13972fi
13973if test -n "$PKG_CONFIG"; then
13974	_pkg_min_version=0.9.0
13975	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13976$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13977	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13978		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13979$as_echo "yes" >&6; }
13980	else
13981		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13982$as_echo "no" >&6; }
13983		PKG_CONFIG=""
13984	fi
13985fi
13986
13987pkg_failed=no
13988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
13989$as_echo_n "checking for CAIRO... " >&6; }
13990
13991if test -n "$CAIRO_CFLAGS"; then
13992    pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
13993 elif test -n "$PKG_CONFIG"; then
13994    if test -n "$PKG_CONFIG" && \
13995    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 0.9.0\""; } >&5
13996  ($PKG_CONFIG --exists --print-errors "cairo >= 0.9.0") 2>&5
13997  ac_status=$?
13998  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13999  test $ac_status = 0; }; then
14000  pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 0.9.0" 2>/dev/null`
14001		      test "x$?" != "x0" && pkg_failed=yes
14002else
14003  pkg_failed=yes
14004fi
14005 else
14006    pkg_failed=untried
14007fi
14008if test -n "$CAIRO_LIBS"; then
14009    pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
14010 elif test -n "$PKG_CONFIG"; then
14011    if test -n "$PKG_CONFIG" && \
14012    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 0.9.0\""; } >&5
14013  ($PKG_CONFIG --exists --print-errors "cairo >= 0.9.0") 2>&5
14014  ac_status=$?
14015  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14016  test $ac_status = 0; }; then
14017  pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= 0.9.0" 2>/dev/null`
14018		      test "x$?" != "x0" && pkg_failed=yes
14019else
14020  pkg_failed=yes
14021fi
14022 else
14023    pkg_failed=untried
14024fi
14025
14026
14027
14028if test $pkg_failed = yes; then
14029   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14030$as_echo "no" >&6; }
14031
14032if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14033        _pkg_short_errors_supported=yes
14034else
14035        _pkg_short_errors_supported=no
14036fi
14037        if test $_pkg_short_errors_supported = yes; then
14038	        CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo >= 0.9.0" 2>&1`
14039        else
14040	        CAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo >= 0.9.0" 2>&1`
14041        fi
14042	# Put the nasty error message in config.log where it belongs
14043	echo "$CAIRO_PKG_ERRORS" >&5
14044
14045	if test $pkg_failed = yes; then
14046    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Package requirement (cairo >= 0.9.0) was not met" >&5
14047$as_echo "$as_me: WARNING: Package requirement (cairo >= 0.9.0) was not met" >&2;}
14048                     elif test $pkg_failed = untried; then
14049    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The pkg-config script could not be found or is too old." >&5
14050$as_echo "$as_me: WARNING: The pkg-config script could not be found or is too old." >&2;}
14051                     fi
14052                     use_libcairo=no
14053elif test $pkg_failed = untried; then
14054     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14055$as_echo "no" >&6; }
14056	if test $pkg_failed = yes; then
14057    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Package requirement (cairo >= 0.9.0) was not met" >&5
14058$as_echo "$as_me: WARNING: Package requirement (cairo >= 0.9.0) was not met" >&2;}
14059                     elif test $pkg_failed = untried; then
14060    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The pkg-config script could not be found or is too old." >&5
14061$as_echo "$as_me: WARNING: The pkg-config script could not be found or is too old." >&2;}
14062                     fi
14063                     use_libcairo=no
14064else
14065	CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
14066	CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
14067        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14068$as_echo "yes" >&6; }
14069	HAVE_CAIRO=1
14070fi
14071
14072fi
14073
14074if test "${use_libcairo}" = yes ; then
14075
14076$as_echo "#define HAVE_LIBCAIRO 1" >>confdefs.h
14077
14078fi
14079
14080
14081cat >>confdefs.h <<_ACEOF
14082#define BOX_RELEASE_DATE "$BOX_RELEASE_DATE"
14083_ACEOF
14084
14085
14086 if test "${use_libcairo}" = yes; then
14087  BUILD_WINCAIRO_TRUE=
14088  BUILD_WINCAIRO_FALSE='#'
14089else
14090  BUILD_WINCAIRO_TRUE='#'
14091  BUILD_WINCAIRO_FALSE=
14092fi
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105ac_config_files="$ac_config_files Makefile box/Makefile box/version.h libs/Makefile libs/g/Makefile tests/Makefile tests/dylib/Makefile man/Makefile examples/Makefile examples/smileys/Makefile"
14106
14107cat >confcache <<\_ACEOF
14108# This file is a shell script that caches the results of configure
14109# tests run on this system so they can be shared between configure
14110# scripts and configure runs, see configure's option --config-cache.
14111# It is not useful on other systems.  If it contains results you don't
14112# want to keep, you may remove or edit it.
14113#
14114# config.status only pays attention to the cache file if you give it
14115# the --recheck option to rerun configure.
14116#
14117# `ac_cv_env_foo' variables (set or unset) will be overridden when
14118# loading this file, other *unset* `ac_cv_foo' will be assigned the
14119# following values.
14120
14121_ACEOF
14122
14123# The following way of writing the cache mishandles newlines in values,
14124# but we know of no workaround that is simple, portable, and efficient.
14125# So, we kill variables containing newlines.
14126# Ultrix sh set writes to stderr and can't be redirected directly,
14127# and sets the high bit in the cache file unless we assign to the vars.
14128(
14129  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14130    eval ac_val=\$$ac_var
14131    case $ac_val in #(
14132    *${as_nl}*)
14133      case $ac_var in #(
14134      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14135$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14136      esac
14137      case $ac_var in #(
14138      _ | IFS | as_nl) ;; #(
14139      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14140      *) { eval $ac_var=; unset $ac_var;} ;;
14141      esac ;;
14142    esac
14143  done
14144
14145  (set) 2>&1 |
14146    case $as_nl`(ac_space=' '; set) 2>&1` in #(
14147    *${as_nl}ac_space=\ *)
14148      # `set' does not quote correctly, so add quotes: double-quote
14149      # substitution turns \\\\ into \\, and sed turns \\ into \.
14150      sed -n \
14151	"s/'/'\\\\''/g;
14152	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14153      ;; #(
14154    *)
14155      # `set' quotes correctly as required by POSIX, so do not add quotes.
14156      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14157      ;;
14158    esac |
14159    sort
14160) |
14161  sed '
14162     /^ac_cv_env_/b end
14163     t clear
14164     :clear
14165     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14166     t end
14167     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14168     :end' >>confcache
14169if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14170  if test -w "$cache_file"; then
14171    if test "x$cache_file" != "x/dev/null"; then
14172      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14173$as_echo "$as_me: updating cache $cache_file" >&6;}
14174      if test ! -f "$cache_file" || test -h "$cache_file"; then
14175	cat confcache >"$cache_file"
14176      else
14177        case $cache_file in #(
14178        */* | ?:*)
14179	  mv -f confcache "$cache_file"$$ &&
14180	  mv -f "$cache_file"$$ "$cache_file" ;; #(
14181        *)
14182	  mv -f confcache "$cache_file" ;;
14183	esac
14184      fi
14185    fi
14186  else
14187    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14188$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14189  fi
14190fi
14191rm -f confcache
14192
14193test "x$prefix" = xNONE && prefix=$ac_default_prefix
14194# Let make expand exec_prefix.
14195test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14196
14197DEFS=-DHAVE_CONFIG_H
14198
14199ac_libobjs=
14200ac_ltlibobjs=
14201U=
14202for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14203  # 1. Remove the extension, and $U if already installed.
14204  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14205  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14206  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14207  #    will be set to the directory where LIBOBJS objects are built.
14208  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14209  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14210done
14211LIBOBJS=$ac_libobjs
14212
14213LTLIBOBJS=$ac_ltlibobjs
14214
14215
14216 if test -n "$EXEEXT"; then
14217  am__EXEEXT_TRUE=
14218  am__EXEEXT_FALSE='#'
14219else
14220  am__EXEEXT_TRUE='#'
14221  am__EXEEXT_FALSE=
14222fi
14223
14224if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14225  as_fn_error $? "conditional \"AMDEP\" was never defined.
14226Usually this means the macro was only invoked conditionally." "$LINENO" 5
14227fi
14228if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14229  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14230Usually this means the macro was only invoked conditionally." "$LINENO" 5
14231fi
14232if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
14233  as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
14234Usually this means the macro was only invoked conditionally." "$LINENO" 5
14235fi
14236if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
14237  as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
14238Usually this means the macro was only invoked conditionally." "$LINENO" 5
14239fi
14240LT_CONFIG_H=config.h
14241
14242    _ltdl_libobjs=
14243    _ltdl_ltlibobjs=
14244    if test -n "$_LT_LIBOBJS"; then
14245      # Remove the extension.
14246      _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
14247      for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
14248        _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
14249        _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
14250      done
14251    fi
14252    ltdl_LIBOBJS=$_ltdl_libobjs
14253
14254    ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
14255
14256
14257if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14258  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14259Usually this means the macro was only invoked conditionally." "$LINENO" 5
14260fi
14261if test -z "${BUILD_WINCAIRO_TRUE}" && test -z "${BUILD_WINCAIRO_FALSE}"; then
14262  as_fn_error $? "conditional \"BUILD_WINCAIRO\" was never defined.
14263Usually this means the macro was only invoked conditionally." "$LINENO" 5
14264fi
14265
14266: "${CONFIG_STATUS=./config.status}"
14267ac_write_fail=0
14268ac_clean_files_save=$ac_clean_files
14269ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14270{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14271$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14272as_write_fail=0
14273cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14274#! $SHELL
14275# Generated by $as_me.
14276# Run this file to recreate the current configuration.
14277# Compiler output produced by configure, useful for debugging
14278# configure, is in config.log if it exists.
14279
14280debug=false
14281ac_cs_recheck=false
14282ac_cs_silent=false
14283
14284SHELL=\${CONFIG_SHELL-$SHELL}
14285export SHELL
14286_ASEOF
14287cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14288## -------------------- ##
14289## M4sh Initialization. ##
14290## -------------------- ##
14291
14292# Be more Bourne compatible
14293DUALCASE=1; export DUALCASE # for MKS sh
14294if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14295  emulate sh
14296  NULLCMD=:
14297  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14298  # is contrary to our usage.  Disable this feature.
14299  alias -g '${1+"$@"}'='"$@"'
14300  setopt NO_GLOB_SUBST
14301else
14302  case `(set -o) 2>/dev/null` in #(
14303  *posix*) :
14304    set -o posix ;; #(
14305  *) :
14306     ;;
14307esac
14308fi
14309
14310
14311as_nl='
14312'
14313export as_nl
14314# Printing a long string crashes Solaris 7 /usr/bin/printf.
14315as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14316as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14317as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14318# Prefer a ksh shell builtin over an external printf program on Solaris,
14319# but without wasting forks for bash or zsh.
14320if test -z "$BASH_VERSION$ZSH_VERSION" \
14321    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14322  as_echo='print -r --'
14323  as_echo_n='print -rn --'
14324elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14325  as_echo='printf %s\n'
14326  as_echo_n='printf %s'
14327else
14328  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14329    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14330    as_echo_n='/usr/ucb/echo -n'
14331  else
14332    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14333    as_echo_n_body='eval
14334      arg=$1;
14335      case $arg in #(
14336      *"$as_nl"*)
14337	expr "X$arg" : "X\\(.*\\)$as_nl";
14338	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14339      esac;
14340      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14341    '
14342    export as_echo_n_body
14343    as_echo_n='sh -c $as_echo_n_body as_echo'
14344  fi
14345  export as_echo_body
14346  as_echo='sh -c $as_echo_body as_echo'
14347fi
14348
14349# The user is always right.
14350if test "${PATH_SEPARATOR+set}" != set; then
14351  PATH_SEPARATOR=:
14352  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14353    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14354      PATH_SEPARATOR=';'
14355  }
14356fi
14357
14358
14359# IFS
14360# We need space, tab and new line, in precisely that order.  Quoting is
14361# there to prevent editors from complaining about space-tab.
14362# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14363# splitting by setting IFS to empty value.)
14364IFS=" ""	$as_nl"
14365
14366# Find who we are.  Look in the path if we contain no directory separator.
14367as_myself=
14368case $0 in #((
14369  *[\\/]* ) as_myself=$0 ;;
14370  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14371for as_dir in $PATH
14372do
14373  IFS=$as_save_IFS
14374  test -z "$as_dir" && as_dir=.
14375    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14376  done
14377IFS=$as_save_IFS
14378
14379     ;;
14380esac
14381# We did not find ourselves, most probably we were run as `sh COMMAND'
14382# in which case we are not to be found in the path.
14383if test "x$as_myself" = x; then
14384  as_myself=$0
14385fi
14386if test ! -f "$as_myself"; then
14387  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14388  exit 1
14389fi
14390
14391# Unset variables that we do not need and which cause bugs (e.g. in
14392# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14393# suppresses any "Segmentation fault" message there.  '((' could
14394# trigger a bug in pdksh 5.2.14.
14395for as_var in BASH_ENV ENV MAIL MAILPATH
14396do eval test x\${$as_var+set} = xset \
14397  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14398done
14399PS1='$ '
14400PS2='> '
14401PS4='+ '
14402
14403# NLS nuisances.
14404LC_ALL=C
14405export LC_ALL
14406LANGUAGE=C
14407export LANGUAGE
14408
14409# CDPATH.
14410(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14411
14412
14413# as_fn_error STATUS ERROR [LINENO LOG_FD]
14414# ----------------------------------------
14415# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14416# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14417# script with STATUS, using 1 if that was 0.
14418as_fn_error ()
14419{
14420  as_status=$1; test $as_status -eq 0 && as_status=1
14421  if test "$4"; then
14422    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14423    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14424  fi
14425  $as_echo "$as_me: error: $2" >&2
14426  as_fn_exit $as_status
14427} # as_fn_error
14428
14429
14430# as_fn_set_status STATUS
14431# -----------------------
14432# Set $? to STATUS, without forking.
14433as_fn_set_status ()
14434{
14435  return $1
14436} # as_fn_set_status
14437
14438# as_fn_exit STATUS
14439# -----------------
14440# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14441as_fn_exit ()
14442{
14443  set +e
14444  as_fn_set_status $1
14445  exit $1
14446} # as_fn_exit
14447
14448# as_fn_unset VAR
14449# ---------------
14450# Portably unset VAR.
14451as_fn_unset ()
14452{
14453  { eval $1=; unset $1;}
14454}
14455as_unset=as_fn_unset
14456# as_fn_append VAR VALUE
14457# ----------------------
14458# Append the text in VALUE to the end of the definition contained in VAR. Take
14459# advantage of any shell optimizations that allow amortized linear growth over
14460# repeated appends, instead of the typical quadratic growth present in naive
14461# implementations.
14462if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14463  eval 'as_fn_append ()
14464  {
14465    eval $1+=\$2
14466  }'
14467else
14468  as_fn_append ()
14469  {
14470    eval $1=\$$1\$2
14471  }
14472fi # as_fn_append
14473
14474# as_fn_arith ARG...
14475# ------------------
14476# Perform arithmetic evaluation on the ARGs, and store the result in the
14477# global $as_val. Take advantage of shells that can avoid forks. The arguments
14478# must be portable across $(()) and expr.
14479if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14480  eval 'as_fn_arith ()
14481  {
14482    as_val=$(( $* ))
14483  }'
14484else
14485  as_fn_arith ()
14486  {
14487    as_val=`expr "$@" || test $? -eq 1`
14488  }
14489fi # as_fn_arith
14490
14491
14492if expr a : '\(a\)' >/dev/null 2>&1 &&
14493   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14494  as_expr=expr
14495else
14496  as_expr=false
14497fi
14498
14499if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14500  as_basename=basename
14501else
14502  as_basename=false
14503fi
14504
14505if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14506  as_dirname=dirname
14507else
14508  as_dirname=false
14509fi
14510
14511as_me=`$as_basename -- "$0" ||
14512$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14513	 X"$0" : 'X\(//\)$' \| \
14514	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14515$as_echo X/"$0" |
14516    sed '/^.*\/\([^/][^/]*\)\/*$/{
14517	    s//\1/
14518	    q
14519	  }
14520	  /^X\/\(\/\/\)$/{
14521	    s//\1/
14522	    q
14523	  }
14524	  /^X\/\(\/\).*/{
14525	    s//\1/
14526	    q
14527	  }
14528	  s/.*/./; q'`
14529
14530# Avoid depending upon Character Ranges.
14531as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14532as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14533as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14534as_cr_digits='0123456789'
14535as_cr_alnum=$as_cr_Letters$as_cr_digits
14536
14537ECHO_C= ECHO_N= ECHO_T=
14538case `echo -n x` in #(((((
14539-n*)
14540  case `echo 'xy\c'` in
14541  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
14542  xy)  ECHO_C='\c';;
14543  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14544       ECHO_T='	';;
14545  esac;;
14546*)
14547  ECHO_N='-n';;
14548esac
14549
14550rm -f conf$$ conf$$.exe conf$$.file
14551if test -d conf$$.dir; then
14552  rm -f conf$$.dir/conf$$.file
14553else
14554  rm -f conf$$.dir
14555  mkdir conf$$.dir 2>/dev/null
14556fi
14557if (echo >conf$$.file) 2>/dev/null; then
14558  if ln -s conf$$.file conf$$ 2>/dev/null; then
14559    as_ln_s='ln -s'
14560    # ... but there are two gotchas:
14561    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14562    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14563    # In both cases, we have to default to `cp -p'.
14564    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14565      as_ln_s='cp -p'
14566  elif ln conf$$.file conf$$ 2>/dev/null; then
14567    as_ln_s=ln
14568  else
14569    as_ln_s='cp -p'
14570  fi
14571else
14572  as_ln_s='cp -p'
14573fi
14574rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14575rmdir conf$$.dir 2>/dev/null
14576
14577
14578# as_fn_mkdir_p
14579# -------------
14580# Create "$as_dir" as a directory, including parents if necessary.
14581as_fn_mkdir_p ()
14582{
14583
14584  case $as_dir in #(
14585  -*) as_dir=./$as_dir;;
14586  esac
14587  test -d "$as_dir" || eval $as_mkdir_p || {
14588    as_dirs=
14589    while :; do
14590      case $as_dir in #(
14591      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14592      *) as_qdir=$as_dir;;
14593      esac
14594      as_dirs="'$as_qdir' $as_dirs"
14595      as_dir=`$as_dirname -- "$as_dir" ||
14596$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14597	 X"$as_dir" : 'X\(//\)[^/]' \| \
14598	 X"$as_dir" : 'X\(//\)$' \| \
14599	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14600$as_echo X"$as_dir" |
14601    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14602	    s//\1/
14603	    q
14604	  }
14605	  /^X\(\/\/\)[^/].*/{
14606	    s//\1/
14607	    q
14608	  }
14609	  /^X\(\/\/\)$/{
14610	    s//\1/
14611	    q
14612	  }
14613	  /^X\(\/\).*/{
14614	    s//\1/
14615	    q
14616	  }
14617	  s/.*/./; q'`
14618      test -d "$as_dir" && break
14619    done
14620    test -z "$as_dirs" || eval "mkdir $as_dirs"
14621  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14622
14623
14624} # as_fn_mkdir_p
14625if mkdir -p . 2>/dev/null; then
14626  as_mkdir_p='mkdir -p "$as_dir"'
14627else
14628  test -d ./-p && rmdir ./-p
14629  as_mkdir_p=false
14630fi
14631
14632if test -x / >/dev/null 2>&1; then
14633  as_test_x='test -x'
14634else
14635  if ls -dL / >/dev/null 2>&1; then
14636    as_ls_L_option=L
14637  else
14638    as_ls_L_option=
14639  fi
14640  as_test_x='
14641    eval sh -c '\''
14642      if test -d "$1"; then
14643	test -d "$1/.";
14644      else
14645	case $1 in #(
14646	-*)set "./$1";;
14647	esac;
14648	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14649	???[sx]*):;;*)false;;esac;fi
14650    '\'' sh
14651  '
14652fi
14653as_executable_p=$as_test_x
14654
14655# Sed expression to map a string onto a valid CPP name.
14656as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14657
14658# Sed expression to map a string onto a valid variable name.
14659as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14660
14661
14662exec 6>&1
14663## ----------------------------------- ##
14664## Main body of $CONFIG_STATUS script. ##
14665## ----------------------------------- ##
14666_ASEOF
14667test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14668
14669cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14670# Save the log message, to keep $0 and so on meaningful, and to
14671# report actual input values of CONFIG_FILES etc. instead of their
14672# values after options handling.
14673ac_log="
14674This file was extended by box $as_me 0.4.0, which was
14675generated by GNU Autoconf 2.68.  Invocation command line was
14676
14677  CONFIG_FILES    = $CONFIG_FILES
14678  CONFIG_HEADERS  = $CONFIG_HEADERS
14679  CONFIG_LINKS    = $CONFIG_LINKS
14680  CONFIG_COMMANDS = $CONFIG_COMMANDS
14681  $ $0 $@
14682
14683on `(hostname || uname -n) 2>/dev/null | sed 1q`
14684"
14685
14686_ACEOF
14687
14688case $ac_config_files in *"
14689"*) set x $ac_config_files; shift; ac_config_files=$*;;
14690esac
14691
14692case $ac_config_headers in *"
14693"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14694esac
14695
14696
14697cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14698# Files that config.status was made for.
14699config_files="$ac_config_files"
14700config_headers="$ac_config_headers"
14701config_commands="$ac_config_commands"
14702
14703_ACEOF
14704
14705cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14706ac_cs_usage="\
14707\`$as_me' instantiates files and other configuration actions
14708from templates according to the current configuration.  Unless the files
14709and actions are specified as TAGs, all are instantiated by default.
14710
14711Usage: $0 [OPTION]... [TAG]...
14712
14713  -h, --help       print this help, then exit
14714  -V, --version    print version number and configuration settings, then exit
14715      --config     print configuration, then exit
14716  -q, --quiet, --silent
14717                   do not print progress messages
14718  -d, --debug      don't remove temporary files
14719      --recheck    update $as_me by reconfiguring in the same conditions
14720      --file=FILE[:TEMPLATE]
14721                   instantiate the configuration file FILE
14722      --header=FILE[:TEMPLATE]
14723                   instantiate the configuration header FILE
14724
14725Configuration files:
14726$config_files
14727
14728Configuration headers:
14729$config_headers
14730
14731Configuration commands:
14732$config_commands
14733
14734Report bugs to <fnch@libero.it>."
14735
14736_ACEOF
14737cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14738ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14739ac_cs_version="\\
14740box config.status 0.4.0
14741configured by $0, generated by GNU Autoconf 2.68,
14742  with options \\"\$ac_cs_config\\"
14743
14744Copyright (C) 2010 Free Software Foundation, Inc.
14745This config.status script is free software; the Free Software Foundation
14746gives unlimited permission to copy, distribute and modify it."
14747
14748ac_pwd='$ac_pwd'
14749srcdir='$srcdir'
14750INSTALL='$INSTALL'
14751MKDIR_P='$MKDIR_P'
14752AWK='$AWK'
14753test -n "\$AWK" || AWK=awk
14754_ACEOF
14755
14756cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14757# The default lists apply if the user does not specify any file.
14758ac_need_defaults=:
14759while test $# != 0
14760do
14761  case $1 in
14762  --*=?*)
14763    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14764    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14765    ac_shift=:
14766    ;;
14767  --*=)
14768    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14769    ac_optarg=
14770    ac_shift=:
14771    ;;
14772  *)
14773    ac_option=$1
14774    ac_optarg=$2
14775    ac_shift=shift
14776    ;;
14777  esac
14778
14779  case $ac_option in
14780  # Handling of the options.
14781  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14782    ac_cs_recheck=: ;;
14783  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14784    $as_echo "$ac_cs_version"; exit ;;
14785  --config | --confi | --conf | --con | --co | --c )
14786    $as_echo "$ac_cs_config"; exit ;;
14787  --debug | --debu | --deb | --de | --d | -d )
14788    debug=: ;;
14789  --file | --fil | --fi | --f )
14790    $ac_shift
14791    case $ac_optarg in
14792    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14793    '') as_fn_error $? "missing file argument" ;;
14794    esac
14795    as_fn_append CONFIG_FILES " '$ac_optarg'"
14796    ac_need_defaults=false;;
14797  --header | --heade | --head | --hea )
14798    $ac_shift
14799    case $ac_optarg in
14800    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14801    esac
14802    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14803    ac_need_defaults=false;;
14804  --he | --h)
14805    # Conflict between --help and --header
14806    as_fn_error $? "ambiguous option: \`$1'
14807Try \`$0 --help' for more information.";;
14808  --help | --hel | -h )
14809    $as_echo "$ac_cs_usage"; exit ;;
14810  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14811  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14812    ac_cs_silent=: ;;
14813
14814  # This is an error.
14815  -*) as_fn_error $? "unrecognized option: \`$1'
14816Try \`$0 --help' for more information." ;;
14817
14818  *) as_fn_append ac_config_targets " $1"
14819     ac_need_defaults=false ;;
14820
14821  esac
14822  shift
14823done
14824
14825ac_configure_extra_args=
14826
14827if $ac_cs_silent; then
14828  exec 6>/dev/null
14829  ac_configure_extra_args="$ac_configure_extra_args --silent"
14830fi
14831
14832_ACEOF
14833cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14834if \$ac_cs_recheck; then
14835  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14836  shift
14837  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14838  CONFIG_SHELL='$SHELL'
14839  export CONFIG_SHELL
14840  exec "\$@"
14841fi
14842
14843_ACEOF
14844cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14845exec 5>>config.log
14846{
14847  echo
14848  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14849## Running $as_me. ##
14850_ASBOX
14851  $as_echo "$ac_log"
14852} >&5
14853
14854_ACEOF
14855cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14856#
14857# INIT-COMMANDS
14858#
14859AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14860
14861
14862# The HP-UX ksh and POSIX shell print the target directory to stdout
14863# if CDPATH is set.
14864(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14865
14866sed_quote_subst='$sed_quote_subst'
14867double_quote_subst='$double_quote_subst'
14868delay_variable_subst='$delay_variable_subst'
14869macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14870macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14871enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14872enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14873pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14874enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14875SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14876ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14877PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14878host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14879host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14880host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14881build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14882build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14883build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14884SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14885Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14886GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14887EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14888FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14889LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14890NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14891LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14892max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14893ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14894exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14895lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14896lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14897lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14898lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14899lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14900reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14901reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14902OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14903deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14904file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14905file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14906want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14907DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14908sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14909AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14910AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14911archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14912STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14913RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14914old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14915old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14916old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14917lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14918CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14919CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14920compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14921GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14922lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14923lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14924lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14925lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
14926nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14927lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14928objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14929MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14930lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14931lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14932lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14933lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14934lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14935need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14936MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14937DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14938NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14939LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14940OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14941OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14942libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14943shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14944extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14945archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14946enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14947export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14948whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14949compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14950old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14951old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14952archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14953archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14954module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14955module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14956with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14957allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14958no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14959hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14960hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14961hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14962hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14963hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14964hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14965hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14966inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14967link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14968always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14969export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14970exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14971include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14972prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14973postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14974file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14975variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14976need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14977need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14978version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14979runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14980shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14981shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14982libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14983library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14984soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14985install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14986postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14987postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14988finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14989finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14990hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14991sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14992sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14993hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14994enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14995enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14996enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14997old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14998striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14999
15000LTCC='$LTCC'
15001LTCFLAGS='$LTCFLAGS'
15002compiler='$compiler_DEFAULT'
15003
15004# A function that is used when there is no print builtin or printf.
15005func_fallback_echo ()
15006{
15007  eval 'cat <<_LTECHO_EOF
15008\$1
15009_LTECHO_EOF'
15010}
15011
15012# Quote evaled strings.
15013for var in SHELL \
15014ECHO \
15015PATH_SEPARATOR \
15016SED \
15017GREP \
15018EGREP \
15019FGREP \
15020LD \
15021NM \
15022LN_S \
15023lt_SP2NL \
15024lt_NL2SP \
15025reload_flag \
15026OBJDUMP \
15027deplibs_check_method \
15028file_magic_cmd \
15029file_magic_glob \
15030want_nocaseglob \
15031DLLTOOL \
15032sharedlib_from_linklib_cmd \
15033AR \
15034AR_FLAGS \
15035archiver_list_spec \
15036STRIP \
15037RANLIB \
15038CC \
15039CFLAGS \
15040compiler \
15041lt_cv_sys_global_symbol_pipe \
15042lt_cv_sys_global_symbol_to_cdecl \
15043lt_cv_sys_global_symbol_to_c_name_address \
15044lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15045nm_file_list_spec \
15046lt_prog_compiler_no_builtin_flag \
15047lt_prog_compiler_pic \
15048lt_prog_compiler_wl \
15049lt_prog_compiler_static \
15050lt_cv_prog_compiler_c_o \
15051need_locks \
15052MANIFEST_TOOL \
15053DSYMUTIL \
15054NMEDIT \
15055LIPO \
15056OTOOL \
15057OTOOL64 \
15058shrext_cmds \
15059export_dynamic_flag_spec \
15060whole_archive_flag_spec \
15061compiler_needs_object \
15062with_gnu_ld \
15063allow_undefined_flag \
15064no_undefined_flag \
15065hardcode_libdir_flag_spec \
15066hardcode_libdir_separator \
15067exclude_expsyms \
15068include_expsyms \
15069file_list_spec \
15070variables_saved_for_relink \
15071libname_spec \
15072library_names_spec \
15073soname_spec \
15074install_override_mode \
15075finish_eval \
15076old_striplib \
15077striplib; do
15078    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15079    *[\\\\\\\`\\"\\\$]*)
15080      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15081      ;;
15082    *)
15083      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15084      ;;
15085    esac
15086done
15087
15088# Double-quote double-evaled strings.
15089for var in reload_cmds \
15090old_postinstall_cmds \
15091old_postuninstall_cmds \
15092old_archive_cmds \
15093extract_expsyms_cmds \
15094old_archive_from_new_cmds \
15095old_archive_from_expsyms_cmds \
15096archive_cmds \
15097archive_expsym_cmds \
15098module_cmds \
15099module_expsym_cmds \
15100export_symbols_cmds \
15101prelink_cmds \
15102postlink_cmds \
15103postinstall_cmds \
15104postuninstall_cmds \
15105finish_cmds \
15106sys_lib_search_path_spec \
15107sys_lib_dlsearch_path_spec; do
15108    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15109    *[\\\\\\\`\\"\\\$]*)
15110      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15111      ;;
15112    *)
15113      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15114      ;;
15115    esac
15116done
15117
15118ac_aux_dir='$ac_aux_dir'
15119xsi_shell='$xsi_shell'
15120lt_shell_append='$lt_shell_append'
15121
15122# See if we are running on zsh, and set the options which allow our
15123# commands through without removal of \ escapes INIT.
15124if test -n "\${ZSH_VERSION+set}" ; then
15125   setopt NO_GLOB_SUBST
15126fi
15127
15128
15129    PACKAGE='$PACKAGE'
15130    VERSION='$VERSION'
15131    TIMESTAMP='$TIMESTAMP'
15132    RM='$RM'
15133    ofile='$ofile'
15134
15135
15136
15137
15138_ACEOF
15139
15140cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15141
15142# Handling of arguments.
15143for ac_config_target in $ac_config_targets
15144do
15145  case $ac_config_target in
15146    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15147    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15148    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15149    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15150    "box/Makefile") CONFIG_FILES="$CONFIG_FILES box/Makefile" ;;
15151    "box/version.h") CONFIG_FILES="$CONFIG_FILES box/version.h" ;;
15152    "libs/Makefile") CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
15153    "libs/g/Makefile") CONFIG_FILES="$CONFIG_FILES libs/g/Makefile" ;;
15154    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
15155    "tests/dylib/Makefile") CONFIG_FILES="$CONFIG_FILES tests/dylib/Makefile" ;;
15156    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
15157    "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
15158    "examples/smileys/Makefile") CONFIG_FILES="$CONFIG_FILES examples/smileys/Makefile" ;;
15159
15160  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15161  esac
15162done
15163
15164
15165# If the user did not use the arguments to specify the items to instantiate,
15166# then the envvar interface is used.  Set only those that are not.
15167# We use the long form for the default assignment because of an extremely
15168# bizarre bug on SunOS 4.1.3.
15169if $ac_need_defaults; then
15170  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15171  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15172  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15173fi
15174
15175# Have a temporary directory for convenience.  Make it in the build tree
15176# simply because there is no reason against having it here, and in addition,
15177# creating and moving files from /tmp can sometimes cause problems.
15178# Hook for its removal unless debugging.
15179# Note that there is a small window in which the directory will not be cleaned:
15180# after its creation but before its name has been assigned to `$tmp'.
15181$debug ||
15182{
15183  tmp= ac_tmp=
15184  trap 'exit_status=$?
15185  : "${ac_tmp:=$tmp}"
15186  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15187' 0
15188  trap 'as_fn_exit 1' 1 2 13 15
15189}
15190# Create a (secure) tmp directory for tmp files.
15191
15192{
15193  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15194  test -d "$tmp"
15195}  ||
15196{
15197  tmp=./conf$$-$RANDOM
15198  (umask 077 && mkdir "$tmp")
15199} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15200ac_tmp=$tmp
15201
15202# Set up the scripts for CONFIG_FILES section.
15203# No need to generate them if there are no CONFIG_FILES.
15204# This happens for instance with `./config.status config.h'.
15205if test -n "$CONFIG_FILES"; then
15206
15207
15208ac_cr=`echo X | tr X '\015'`
15209# On cygwin, bash can eat \r inside `` if the user requested igncr.
15210# But we know of no other shell where ac_cr would be empty at this
15211# point, so we can use a bashism as a fallback.
15212if test "x$ac_cr" = x; then
15213  eval ac_cr=\$\'\\r\'
15214fi
15215ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15216if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15217  ac_cs_awk_cr='\\r'
15218else
15219  ac_cs_awk_cr=$ac_cr
15220fi
15221
15222echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15223_ACEOF
15224
15225
15226{
15227  echo "cat >conf$$subs.awk <<_ACEOF" &&
15228  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15229  echo "_ACEOF"
15230} >conf$$subs.sh ||
15231  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15232ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15233ac_delim='%!_!# '
15234for ac_last_try in false false false false false :; do
15235  . ./conf$$subs.sh ||
15236    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15237
15238  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15239  if test $ac_delim_n = $ac_delim_num; then
15240    break
15241  elif $ac_last_try; then
15242    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15243  else
15244    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15245  fi
15246done
15247rm -f conf$$subs.sh
15248
15249cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15250cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15251_ACEOF
15252sed -n '
15253h
15254s/^/S["/; s/!.*/"]=/
15255p
15256g
15257s/^[^!]*!//
15258:repl
15259t repl
15260s/'"$ac_delim"'$//
15261t delim
15262:nl
15263h
15264s/\(.\{148\}\)..*/\1/
15265t more1
15266s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15267p
15268n
15269b repl
15270:more1
15271s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15272p
15273g
15274s/.\{148\}//
15275t nl
15276:delim
15277h
15278s/\(.\{148\}\)..*/\1/
15279t more2
15280s/["\\]/\\&/g; s/^/"/; s/$/"/
15281p
15282b
15283:more2
15284s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15285p
15286g
15287s/.\{148\}//
15288t delim
15289' <conf$$subs.awk | sed '
15290/^[^""]/{
15291  N
15292  s/\n//
15293}
15294' >>$CONFIG_STATUS || ac_write_fail=1
15295rm -f conf$$subs.awk
15296cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15297_ACAWK
15298cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15299  for (key in S) S_is_set[key] = 1
15300  FS = ""
15301
15302}
15303{
15304  line = $ 0
15305  nfields = split(line, field, "@")
15306  substed = 0
15307  len = length(field[1])
15308  for (i = 2; i < nfields; i++) {
15309    key = field[i]
15310    keylen = length(key)
15311    if (S_is_set[key]) {
15312      value = S[key]
15313      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15314      len += length(value) + length(field[++i])
15315      substed = 1
15316    } else
15317      len += 1 + keylen
15318  }
15319
15320  print line
15321}
15322
15323_ACAWK
15324_ACEOF
15325cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15326if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15327  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15328else
15329  cat
15330fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15331  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15332_ACEOF
15333
15334# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15335# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15336# trailing colons and then remove the whole line if VPATH becomes empty
15337# (actually we leave an empty line to preserve line numbers).
15338if test "x$srcdir" = x.; then
15339  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
15340h
15341s///
15342s/^/:/
15343s/[	 ]*$/:/
15344s/:\$(srcdir):/:/g
15345s/:\${srcdir}:/:/g
15346s/:@srcdir@:/:/g
15347s/^:*//
15348s/:*$//
15349x
15350s/\(=[	 ]*\).*/\1/
15351G
15352s/\n//
15353s/^[^=]*=[	 ]*$//
15354}'
15355fi
15356
15357cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15358fi # test -n "$CONFIG_FILES"
15359
15360# Set up the scripts for CONFIG_HEADERS section.
15361# No need to generate them if there are no CONFIG_HEADERS.
15362# This happens for instance with `./config.status Makefile'.
15363if test -n "$CONFIG_HEADERS"; then
15364cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15365BEGIN {
15366_ACEOF
15367
15368# Transform confdefs.h into an awk script `defines.awk', embedded as
15369# here-document in config.status, that substitutes the proper values into
15370# config.h.in to produce config.h.
15371
15372# Create a delimiter string that does not exist in confdefs.h, to ease
15373# handling of long lines.
15374ac_delim='%!_!# '
15375for ac_last_try in false false :; do
15376  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15377  if test -z "$ac_tt"; then
15378    break
15379  elif $ac_last_try; then
15380    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15381  else
15382    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15383  fi
15384done
15385
15386# For the awk script, D is an array of macro values keyed by name,
15387# likewise P contains macro parameters if any.  Preserve backslash
15388# newline sequences.
15389
15390ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15391sed -n '
15392s/.\{148\}/&'"$ac_delim"'/g
15393t rset
15394:rset
15395s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
15396t def
15397d
15398:def
15399s/\\$//
15400t bsnl
15401s/["\\]/\\&/g
15402s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15403D["\1"]=" \3"/p
15404s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
15405d
15406:bsnl
15407s/["\\]/\\&/g
15408s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15409D["\1"]=" \3\\\\\\n"\\/p
15410t cont
15411s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15412t cont
15413d
15414:cont
15415n
15416s/.\{148\}/&'"$ac_delim"'/g
15417t clear
15418:clear
15419s/\\$//
15420t bsnlc
15421s/["\\]/\\&/g; s/^/"/; s/$/"/p
15422d
15423:bsnlc
15424s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15425b cont
15426' <confdefs.h | sed '
15427s/'"$ac_delim"'/"\\\
15428"/g' >>$CONFIG_STATUS || ac_write_fail=1
15429
15430cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15431  for (key in D) D_is_set[key] = 1
15432  FS = ""
15433}
15434/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15435  line = \$ 0
15436  split(line, arg, " ")
15437  if (arg[1] == "#") {
15438    defundef = arg[2]
15439    mac1 = arg[3]
15440  } else {
15441    defundef = substr(arg[1], 2)
15442    mac1 = arg[2]
15443  }
15444  split(mac1, mac2, "(") #)
15445  macro = mac2[1]
15446  prefix = substr(line, 1, index(line, defundef) - 1)
15447  if (D_is_set[macro]) {
15448    # Preserve the white space surrounding the "#".
15449    print prefix "define", macro P[macro] D[macro]
15450    next
15451  } else {
15452    # Replace #undef with comments.  This is necessary, for example,
15453    # in the case of _POSIX_SOURCE, which is predefined and required
15454    # on some systems where configure will not decide to define it.
15455    if (defundef == "undef") {
15456      print "/*", prefix defundef, macro, "*/"
15457      next
15458    }
15459  }
15460}
15461{ print }
15462_ACAWK
15463_ACEOF
15464cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15465  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15466fi # test -n "$CONFIG_HEADERS"
15467
15468
15469eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15470shift
15471for ac_tag
15472do
15473  case $ac_tag in
15474  :[FHLC]) ac_mode=$ac_tag; continue;;
15475  esac
15476  case $ac_mode$ac_tag in
15477  :[FHL]*:*);;
15478  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15479  :[FH]-) ac_tag=-:-;;
15480  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15481  esac
15482  ac_save_IFS=$IFS
15483  IFS=:
15484  set x $ac_tag
15485  IFS=$ac_save_IFS
15486  shift
15487  ac_file=$1
15488  shift
15489
15490  case $ac_mode in
15491  :L) ac_source=$1;;
15492  :[FH])
15493    ac_file_inputs=
15494    for ac_f
15495    do
15496      case $ac_f in
15497      -) ac_f="$ac_tmp/stdin";;
15498      *) # Look for the file first in the build tree, then in the source tree
15499	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
15500	 # because $ac_f cannot contain `:'.
15501	 test -f "$ac_f" ||
15502	   case $ac_f in
15503	   [\\/$]*) false;;
15504	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15505	   esac ||
15506	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15507      esac
15508      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15509      as_fn_append ac_file_inputs " '$ac_f'"
15510    done
15511
15512    # Let's still pretend it is `configure' which instantiates (i.e., don't
15513    # use $as_me), people would be surprised to read:
15514    #    /* config.h.  Generated by config.status.  */
15515    configure_input='Generated from '`
15516	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15517	`' by configure.'
15518    if test x"$ac_file" != x-; then
15519      configure_input="$ac_file.  $configure_input"
15520      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15521$as_echo "$as_me: creating $ac_file" >&6;}
15522    fi
15523    # Neutralize special characters interpreted by sed in replacement strings.
15524    case $configure_input in #(
15525    *\&* | *\|* | *\\* )
15526       ac_sed_conf_input=`$as_echo "$configure_input" |
15527       sed 's/[\\\\&|]/\\\\&/g'`;; #(
15528    *) ac_sed_conf_input=$configure_input;;
15529    esac
15530
15531    case $ac_tag in
15532    *:-:* | *:-) cat >"$ac_tmp/stdin" \
15533      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15534    esac
15535    ;;
15536  esac
15537
15538  ac_dir=`$as_dirname -- "$ac_file" ||
15539$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15540	 X"$ac_file" : 'X\(//\)[^/]' \| \
15541	 X"$ac_file" : 'X\(//\)$' \| \
15542	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15543$as_echo X"$ac_file" |
15544    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15545	    s//\1/
15546	    q
15547	  }
15548	  /^X\(\/\/\)[^/].*/{
15549	    s//\1/
15550	    q
15551	  }
15552	  /^X\(\/\/\)$/{
15553	    s//\1/
15554	    q
15555	  }
15556	  /^X\(\/\).*/{
15557	    s//\1/
15558	    q
15559	  }
15560	  s/.*/./; q'`
15561  as_dir="$ac_dir"; as_fn_mkdir_p
15562  ac_builddir=.
15563
15564case "$ac_dir" in
15565.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15566*)
15567  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15568  # A ".." for each directory in $ac_dir_suffix.
15569  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15570  case $ac_top_builddir_sub in
15571  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15572  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15573  esac ;;
15574esac
15575ac_abs_top_builddir=$ac_pwd
15576ac_abs_builddir=$ac_pwd$ac_dir_suffix
15577# for backward compatibility:
15578ac_top_builddir=$ac_top_build_prefix
15579
15580case $srcdir in
15581  .)  # We are building in place.
15582    ac_srcdir=.
15583    ac_top_srcdir=$ac_top_builddir_sub
15584    ac_abs_top_srcdir=$ac_pwd ;;
15585  [\\/]* | ?:[\\/]* )  # Absolute name.
15586    ac_srcdir=$srcdir$ac_dir_suffix;
15587    ac_top_srcdir=$srcdir
15588    ac_abs_top_srcdir=$srcdir ;;
15589  *) # Relative name.
15590    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15591    ac_top_srcdir=$ac_top_build_prefix$srcdir
15592    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15593esac
15594ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15595
15596
15597  case $ac_mode in
15598  :F)
15599  #
15600  # CONFIG_FILE
15601  #
15602
15603  case $INSTALL in
15604  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15605  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15606  esac
15607  ac_MKDIR_P=$MKDIR_P
15608  case $MKDIR_P in
15609  [\\/$]* | ?:[\\/]* ) ;;
15610  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15611  esac
15612_ACEOF
15613
15614cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15615# If the template does not know about datarootdir, expand it.
15616# FIXME: This hack should be removed a few years after 2.60.
15617ac_datarootdir_hack=; ac_datarootdir_seen=
15618ac_sed_dataroot='
15619/datarootdir/ {
15620  p
15621  q
15622}
15623/@datadir@/p
15624/@docdir@/p
15625/@infodir@/p
15626/@localedir@/p
15627/@mandir@/p'
15628case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15629*datarootdir*) ac_datarootdir_seen=yes;;
15630*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15631  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15632$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15633_ACEOF
15634cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15635  ac_datarootdir_hack='
15636  s&@datadir@&$datadir&g
15637  s&@docdir@&$docdir&g
15638  s&@infodir@&$infodir&g
15639  s&@localedir@&$localedir&g
15640  s&@mandir@&$mandir&g
15641  s&\\\${datarootdir}&$datarootdir&g' ;;
15642esac
15643_ACEOF
15644
15645# Neutralize VPATH when `$srcdir' = `.'.
15646# Shell code in configure.ac might set extrasub.
15647# FIXME: do we really want to maintain this feature?
15648cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15649ac_sed_extra="$ac_vpsub
15650$extrasub
15651_ACEOF
15652cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15653:t
15654/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15655s|@configure_input@|$ac_sed_conf_input|;t t
15656s&@top_builddir@&$ac_top_builddir_sub&;t t
15657s&@top_build_prefix@&$ac_top_build_prefix&;t t
15658s&@srcdir@&$ac_srcdir&;t t
15659s&@abs_srcdir@&$ac_abs_srcdir&;t t
15660s&@top_srcdir@&$ac_top_srcdir&;t t
15661s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15662s&@builddir@&$ac_builddir&;t t
15663s&@abs_builddir@&$ac_abs_builddir&;t t
15664s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15665s&@INSTALL@&$ac_INSTALL&;t t
15666s&@MKDIR_P@&$ac_MKDIR_P&;t t
15667$ac_datarootdir_hack
15668"
15669eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15670  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15671
15672test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15673  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15674  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
15675      "$ac_tmp/out"`; test -z "$ac_out"; } &&
15676  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15677which seems to be undefined.  Please make sure it is defined" >&5
15678$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15679which seems to be undefined.  Please make sure it is defined" >&2;}
15680
15681  rm -f "$ac_tmp/stdin"
15682  case $ac_file in
15683  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15684  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15685  esac \
15686  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15687 ;;
15688  :H)
15689  #
15690  # CONFIG_HEADER
15691  #
15692  if test x"$ac_file" != x-; then
15693    {
15694      $as_echo "/* $configure_input  */" \
15695      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15696    } >"$ac_tmp/config.h" \
15697      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15698    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15699      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15700$as_echo "$as_me: $ac_file is unchanged" >&6;}
15701    else
15702      rm -f "$ac_file"
15703      mv "$ac_tmp/config.h" "$ac_file" \
15704	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
15705    fi
15706  else
15707    $as_echo "/* $configure_input  */" \
15708      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15709      || as_fn_error $? "could not create -" "$LINENO" 5
15710  fi
15711# Compute "$ac_file"'s index in $config_headers.
15712_am_arg="$ac_file"
15713_am_stamp_count=1
15714for _am_header in $config_headers :; do
15715  case $_am_header in
15716    $_am_arg | $_am_arg:* )
15717      break ;;
15718    * )
15719      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15720  esac
15721done
15722echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15723$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15724	 X"$_am_arg" : 'X\(//\)[^/]' \| \
15725	 X"$_am_arg" : 'X\(//\)$' \| \
15726	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15727$as_echo X"$_am_arg" |
15728    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15729	    s//\1/
15730	    q
15731	  }
15732	  /^X\(\/\/\)[^/].*/{
15733	    s//\1/
15734	    q
15735	  }
15736	  /^X\(\/\/\)$/{
15737	    s//\1/
15738	    q
15739	  }
15740	  /^X\(\/\).*/{
15741	    s//\1/
15742	    q
15743	  }
15744	  s/.*/./; q'`/stamp-h$_am_stamp_count
15745 ;;
15746
15747  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15748$as_echo "$as_me: executing $ac_file commands" >&6;}
15749 ;;
15750  esac
15751
15752
15753  case $ac_file$ac_mode in
15754    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15755  # Autoconf 2.62 quotes --file arguments for eval, but not when files
15756  # are listed without --file.  Let's play safe and only enable the eval
15757  # if we detect the quoting.
15758  case $CONFIG_FILES in
15759  *\'*) eval set x "$CONFIG_FILES" ;;
15760  *)   set x $CONFIG_FILES ;;
15761  esac
15762  shift
15763  for mf
15764  do
15765    # Strip MF so we end up with the name of the file.
15766    mf=`echo "$mf" | sed -e 's/:.*$//'`
15767    # Check whether this is an Automake generated Makefile or not.
15768    # We used to match only the files named `Makefile.in', but
15769    # some people rename them; so instead we look at the file content.
15770    # Grep'ing the first line is not enough: some people post-process
15771    # each Makefile.in and add a new line on top of each file to say so.
15772    # Grep'ing the whole file is not good either: AIX grep has a line
15773    # limit of 2048, but all sed's we know have understand at least 4000.
15774    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15775      dirpart=`$as_dirname -- "$mf" ||
15776$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15777	 X"$mf" : 'X\(//\)[^/]' \| \
15778	 X"$mf" : 'X\(//\)$' \| \
15779	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15780$as_echo X"$mf" |
15781    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15782	    s//\1/
15783	    q
15784	  }
15785	  /^X\(\/\/\)[^/].*/{
15786	    s//\1/
15787	    q
15788	  }
15789	  /^X\(\/\/\)$/{
15790	    s//\1/
15791	    q
15792	  }
15793	  /^X\(\/\).*/{
15794	    s//\1/
15795	    q
15796	  }
15797	  s/.*/./; q'`
15798    else
15799      continue
15800    fi
15801    # Extract the definition of DEPDIR, am__include, and am__quote
15802    # from the Makefile without running `make'.
15803    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15804    test -z "$DEPDIR" && continue
15805    am__include=`sed -n 's/^am__include = //p' < "$mf"`
15806    test -z "am__include" && continue
15807    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15808    # When using ansi2knr, U may be empty or an underscore; expand it
15809    U=`sed -n 's/^U = //p' < "$mf"`
15810    # Find all dependency output files, they are included files with
15811    # $(DEPDIR) in their names.  We invoke sed twice because it is the
15812    # simplest approach to changing $(DEPDIR) to its actual value in the
15813    # expansion.
15814    for file in `sed -n "
15815      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15816	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15817      # Make sure the directory exists.
15818      test -f "$dirpart/$file" && continue
15819      fdir=`$as_dirname -- "$file" ||
15820$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15821	 X"$file" : 'X\(//\)[^/]' \| \
15822	 X"$file" : 'X\(//\)$' \| \
15823	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15824$as_echo X"$file" |
15825    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15826	    s//\1/
15827	    q
15828	  }
15829	  /^X\(\/\/\)[^/].*/{
15830	    s//\1/
15831	    q
15832	  }
15833	  /^X\(\/\/\)$/{
15834	    s//\1/
15835	    q
15836	  }
15837	  /^X\(\/\).*/{
15838	    s//\1/
15839	    q
15840	  }
15841	  s/.*/./; q'`
15842      as_dir=$dirpart/$fdir; as_fn_mkdir_p
15843      # echo "creating $dirpart/$file"
15844      echo '# dummy' > "$dirpart/$file"
15845    done
15846  done
15847}
15848 ;;
15849    "libtool":C)
15850
15851    # See if we are running on zsh, and set the options which allow our
15852    # commands through without removal of \ escapes.
15853    if test -n "${ZSH_VERSION+set}" ; then
15854      setopt NO_GLOB_SUBST
15855    fi
15856
15857    cfgfile="${ofile}T"
15858    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15859    $RM "$cfgfile"
15860
15861    cat <<_LT_EOF >> "$cfgfile"
15862#! $SHELL
15863
15864# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15865# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15866# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15867# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15868#
15869#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15870#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
15871#                 Foundation, Inc.
15872#   Written by Gordon Matzigkeit, 1996
15873#
15874#   This file is part of GNU Libtool.
15875#
15876# GNU Libtool is free software; you can redistribute it and/or
15877# modify it under the terms of the GNU General Public License as
15878# published by the Free Software Foundation; either version 2 of
15879# the License, or (at your option) any later version.
15880#
15881# As a special exception to the GNU General Public License,
15882# if you distribute this file as part of a program or library that
15883# is built using GNU Libtool, you may include this file under the
15884# same distribution terms that you use for the rest of that program.
15885#
15886# GNU Libtool is distributed in the hope that it will be useful,
15887# but WITHOUT ANY WARRANTY; without even the implied warranty of
15888# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15889# GNU General Public License for more details.
15890#
15891# You should have received a copy of the GNU General Public License
15892# along with GNU Libtool; see the file COPYING.  If not, a copy
15893# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15894# obtained by writing to the Free Software Foundation, Inc.,
15895# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15896
15897
15898# The names of the tagged configurations supported by this script.
15899available_tags=""
15900
15901# ### BEGIN LIBTOOL CONFIG
15902
15903# Which release of libtool.m4 was used?
15904macro_version=$macro_version
15905macro_revision=$macro_revision
15906
15907# Whether or not to build shared libraries.
15908build_libtool_libs=$enable_shared
15909
15910# Whether or not to build static libraries.
15911build_old_libs=$enable_static
15912
15913# What type of objects to build.
15914pic_mode=$pic_mode
15915
15916# Whether or not to optimize for fast installation.
15917fast_install=$enable_fast_install
15918
15919# Shell to use when invoking shell scripts.
15920SHELL=$lt_SHELL
15921
15922# An echo program that protects backslashes.
15923ECHO=$lt_ECHO
15924
15925# The PATH separator for the build system.
15926PATH_SEPARATOR=$lt_PATH_SEPARATOR
15927
15928# The host system.
15929host_alias=$host_alias
15930host=$host
15931host_os=$host_os
15932
15933# The build system.
15934build_alias=$build_alias
15935build=$build
15936build_os=$build_os
15937
15938# A sed program that does not truncate output.
15939SED=$lt_SED
15940
15941# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15942Xsed="\$SED -e 1s/^X//"
15943
15944# A grep program that handles long lines.
15945GREP=$lt_GREP
15946
15947# An ERE matcher.
15948EGREP=$lt_EGREP
15949
15950# A literal string matcher.
15951FGREP=$lt_FGREP
15952
15953# A BSD- or MS-compatible name lister.
15954NM=$lt_NM
15955
15956# Whether we need soft or hard links.
15957LN_S=$lt_LN_S
15958
15959# What is the maximum length of a command?
15960max_cmd_len=$max_cmd_len
15961
15962# Object file suffix (normally "o").
15963objext=$ac_objext
15964
15965# Executable file suffix (normally "").
15966exeext=$exeext
15967
15968# whether the shell understands "unset".
15969lt_unset=$lt_unset
15970
15971# turn spaces into newlines.
15972SP2NL=$lt_lt_SP2NL
15973
15974# turn newlines into spaces.
15975NL2SP=$lt_lt_NL2SP
15976
15977# convert \$build file names to \$host format.
15978to_host_file_cmd=$lt_cv_to_host_file_cmd
15979
15980# convert \$build files to toolchain format.
15981to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15982
15983# An object symbol dumper.
15984OBJDUMP=$lt_OBJDUMP
15985
15986# Method to check whether dependent libraries are shared objects.
15987deplibs_check_method=$lt_deplibs_check_method
15988
15989# Command to use when deplibs_check_method = "file_magic".
15990file_magic_cmd=$lt_file_magic_cmd
15991
15992# How to find potential files when deplibs_check_method = "file_magic".
15993file_magic_glob=$lt_file_magic_glob
15994
15995# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15996want_nocaseglob=$lt_want_nocaseglob
15997
15998# DLL creation program.
15999DLLTOOL=$lt_DLLTOOL
16000
16001# Command to associate shared and link libraries.
16002sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16003
16004# The archiver.
16005AR=$lt_AR
16006
16007# Flags to create an archive.
16008AR_FLAGS=$lt_AR_FLAGS
16009
16010# How to feed a file listing to the archiver.
16011archiver_list_spec=$lt_archiver_list_spec
16012
16013# A symbol stripping program.
16014STRIP=$lt_STRIP
16015
16016# Commands used to install an old-style archive.
16017RANLIB=$lt_RANLIB
16018old_postinstall_cmds=$lt_old_postinstall_cmds
16019old_postuninstall_cmds=$lt_old_postuninstall_cmds
16020
16021# Whether to use a lock for old archive extraction.
16022lock_old_archive_extraction=$lock_old_archive_extraction
16023
16024# A C compiler.
16025LTCC=$lt_CC
16026
16027# LTCC compiler flags.
16028LTCFLAGS=$lt_CFLAGS
16029
16030# Take the output of nm and produce a listing of raw symbols and C names.
16031global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16032
16033# Transform the output of nm in a proper C declaration.
16034global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16035
16036# Transform the output of nm in a C name address pair.
16037global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16038
16039# Transform the output of nm in a C name address pair when lib prefix is needed.
16040global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16041
16042# Specify filename containing input files for \$NM.
16043nm_file_list_spec=$lt_nm_file_list_spec
16044
16045# The root where to search for dependent libraries,and in which our libraries should be installed.
16046lt_sysroot=$lt_sysroot
16047
16048# The name of the directory that contains temporary libtool files.
16049objdir=$objdir
16050
16051# Used to examine libraries when file_magic_cmd begins with "file".
16052MAGIC_CMD=$MAGIC_CMD
16053
16054# Must we lock files when doing compilation?
16055need_locks=$lt_need_locks
16056
16057# Manifest tool.
16058MANIFEST_TOOL=$lt_MANIFEST_TOOL
16059
16060# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16061DSYMUTIL=$lt_DSYMUTIL
16062
16063# Tool to change global to local symbols on Mac OS X.
16064NMEDIT=$lt_NMEDIT
16065
16066# Tool to manipulate fat objects and archives on Mac OS X.
16067LIPO=$lt_LIPO
16068
16069# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16070OTOOL=$lt_OTOOL
16071
16072# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16073OTOOL64=$lt_OTOOL64
16074
16075# Old archive suffix (normally "a").
16076libext=$libext
16077
16078# Shared library suffix (normally ".so").
16079shrext_cmds=$lt_shrext_cmds
16080
16081# The commands to extract the exported symbol list from a shared archive.
16082extract_expsyms_cmds=$lt_extract_expsyms_cmds
16083
16084# Variables whose values should be saved in libtool wrapper scripts and
16085# restored at link time.
16086variables_saved_for_relink=$lt_variables_saved_for_relink
16087
16088# Do we need the "lib" prefix for modules?
16089need_lib_prefix=$need_lib_prefix
16090
16091# Do we need a version for libraries?
16092need_version=$need_version
16093
16094# Library versioning type.
16095version_type=$version_type
16096
16097# Shared library runtime path variable.
16098runpath_var=$runpath_var
16099
16100# Shared library path variable.
16101shlibpath_var=$shlibpath_var
16102
16103# Is shlibpath searched before the hard-coded library search path?
16104shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16105
16106# Format of library name prefix.
16107libname_spec=$lt_libname_spec
16108
16109# List of archive names.  First name is the real one, the rest are links.
16110# The last name is the one that the linker finds with -lNAME
16111library_names_spec=$lt_library_names_spec
16112
16113# The coded name of the library, if different from the real name.
16114soname_spec=$lt_soname_spec
16115
16116# Permission mode override for installation of shared libraries.
16117install_override_mode=$lt_install_override_mode
16118
16119# Command to use after installation of a shared archive.
16120postinstall_cmds=$lt_postinstall_cmds
16121
16122# Command to use after uninstallation of a shared archive.
16123postuninstall_cmds=$lt_postuninstall_cmds
16124
16125# Commands used to finish a libtool library installation in a directory.
16126finish_cmds=$lt_finish_cmds
16127
16128# As "finish_cmds", except a single script fragment to be evaled but
16129# not shown.
16130finish_eval=$lt_finish_eval
16131
16132# Whether we should hardcode library paths into libraries.
16133hardcode_into_libs=$hardcode_into_libs
16134
16135# Compile-time system search path for libraries.
16136sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16137
16138# Run-time system search path for libraries.
16139sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16140
16141# Whether dlopen is supported.
16142dlopen_support=$enable_dlopen
16143
16144# Whether dlopen of programs is supported.
16145dlopen_self=$enable_dlopen_self
16146
16147# Whether dlopen of statically linked programs is supported.
16148dlopen_self_static=$enable_dlopen_self_static
16149
16150# Commands to strip libraries.
16151old_striplib=$lt_old_striplib
16152striplib=$lt_striplib
16153
16154
16155# The linker used to build libraries.
16156LD=$lt_LD
16157
16158# How to create reloadable object files.
16159reload_flag=$lt_reload_flag
16160reload_cmds=$lt_reload_cmds
16161
16162# Commands used to build an old-style archive.
16163old_archive_cmds=$lt_old_archive_cmds
16164
16165# A language specific compiler.
16166CC=$lt_compiler
16167
16168# Is the compiler the GNU compiler?
16169with_gcc=$GCC
16170
16171# Compiler flag to turn off builtin functions.
16172no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16173
16174# Additional compiler flags for building library objects.
16175pic_flag=$lt_lt_prog_compiler_pic
16176
16177# How to pass a linker flag through the compiler.
16178wl=$lt_lt_prog_compiler_wl
16179
16180# Compiler flag to prevent dynamic linking.
16181link_static_flag=$lt_lt_prog_compiler_static
16182
16183# Does compiler simultaneously support -c and -o options?
16184compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16185
16186# Whether or not to add -lc for building shared libraries.
16187build_libtool_need_lc=$archive_cmds_need_lc
16188
16189# Whether or not to disallow shared libs when runtime libs are static.
16190allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16191
16192# Compiler flag to allow reflexive dlopens.
16193export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16194
16195# Compiler flag to generate shared objects directly from archives.
16196whole_archive_flag_spec=$lt_whole_archive_flag_spec
16197
16198# Whether the compiler copes with passing no objects directly.
16199compiler_needs_object=$lt_compiler_needs_object
16200
16201# Create an old-style archive from a shared archive.
16202old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16203
16204# Create a temporary old-style archive to link instead of a shared archive.
16205old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16206
16207# Commands used to build a shared archive.
16208archive_cmds=$lt_archive_cmds
16209archive_expsym_cmds=$lt_archive_expsym_cmds
16210
16211# Commands used to build a loadable module if different from building
16212# a shared archive.
16213module_cmds=$lt_module_cmds
16214module_expsym_cmds=$lt_module_expsym_cmds
16215
16216# Whether we are building with GNU ld or not.
16217with_gnu_ld=$lt_with_gnu_ld
16218
16219# Flag that allows shared libraries with undefined symbols to be built.
16220allow_undefined_flag=$lt_allow_undefined_flag
16221
16222# Flag that enforces no undefined symbols.
16223no_undefined_flag=$lt_no_undefined_flag
16224
16225# Flag to hardcode \$libdir into a binary during linking.
16226# This must work even if \$libdir does not exist
16227hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16228
16229# Whether we need a single "-rpath" flag with a separated argument.
16230hardcode_libdir_separator=$lt_hardcode_libdir_separator
16231
16232# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16233# DIR into the resulting binary.
16234hardcode_direct=$hardcode_direct
16235
16236# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16237# DIR into the resulting binary and the resulting library dependency is
16238# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16239# library is relocated.
16240hardcode_direct_absolute=$hardcode_direct_absolute
16241
16242# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16243# into the resulting binary.
16244hardcode_minus_L=$hardcode_minus_L
16245
16246# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16247# into the resulting binary.
16248hardcode_shlibpath_var=$hardcode_shlibpath_var
16249
16250# Set to "yes" if building a shared library automatically hardcodes DIR
16251# into the library and all subsequent libraries and executables linked
16252# against it.
16253hardcode_automatic=$hardcode_automatic
16254
16255# Set to yes if linker adds runtime paths of dependent libraries
16256# to runtime path list.
16257inherit_rpath=$inherit_rpath
16258
16259# Whether libtool must link a program against all its dependency libraries.
16260link_all_deplibs=$link_all_deplibs
16261
16262# Set to "yes" if exported symbols are required.
16263always_export_symbols=$always_export_symbols
16264
16265# The commands to list exported symbols.
16266export_symbols_cmds=$lt_export_symbols_cmds
16267
16268# Symbols that should not be listed in the preloaded symbols.
16269exclude_expsyms=$lt_exclude_expsyms
16270
16271# Symbols that must always be exported.
16272include_expsyms=$lt_include_expsyms
16273
16274# Commands necessary for linking programs (against libraries) with templates.
16275prelink_cmds=$lt_prelink_cmds
16276
16277# Commands necessary for finishing linking programs.
16278postlink_cmds=$lt_postlink_cmds
16279
16280# Specify filename containing input files.
16281file_list_spec=$lt_file_list_spec
16282
16283# How to hardcode a shared library path into an executable.
16284hardcode_action=$hardcode_action
16285
16286# ### END LIBTOOL CONFIG
16287
16288_LT_EOF
16289
16290  case $host_os in
16291  aix3*)
16292    cat <<\_LT_EOF >> "$cfgfile"
16293# AIX sometimes has problems with the GCC collect2 program.  For some
16294# reason, if we set the COLLECT_NAMES environment variable, the problems
16295# vanish in a puff of smoke.
16296if test "X${COLLECT_NAMES+set}" != Xset; then
16297  COLLECT_NAMES=
16298  export COLLECT_NAMES
16299fi
16300_LT_EOF
16301    ;;
16302  esac
16303
16304
16305ltmain="$ac_aux_dir/ltmain.sh"
16306
16307
16308  # We use sed instead of cat because bash on DJGPP gets confused if
16309  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16310  # text mode, it properly converts lines to CR/LF.  This bash problem
16311  # is reportedly fixed, but why not run on old versions too?
16312  sed '$q' "$ltmain" >> "$cfgfile" \
16313     || (rm -f "$cfgfile"; exit 1)
16314
16315  if test x"$xsi_shell" = xyes; then
16316  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16317func_dirname ()\
16318{\
16319\    case ${1} in\
16320\      */*) func_dirname_result="${1%/*}${2}" ;;\
16321\      *  ) func_dirname_result="${3}" ;;\
16322\    esac\
16323} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16324  && mv -f "$cfgfile.tmp" "$cfgfile" \
16325    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16326test 0 -eq $? || _lt_function_replace_fail=:
16327
16328
16329  sed -e '/^func_basename ()$/,/^} # func_basename /c\
16330func_basename ()\
16331{\
16332\    func_basename_result="${1##*/}"\
16333} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16334  && mv -f "$cfgfile.tmp" "$cfgfile" \
16335    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16336test 0 -eq $? || _lt_function_replace_fail=:
16337
16338
16339  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16340func_dirname_and_basename ()\
16341{\
16342\    case ${1} in\
16343\      */*) func_dirname_result="${1%/*}${2}" ;;\
16344\      *  ) func_dirname_result="${3}" ;;\
16345\    esac\
16346\    func_basename_result="${1##*/}"\
16347} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16348  && mv -f "$cfgfile.tmp" "$cfgfile" \
16349    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16350test 0 -eq $? || _lt_function_replace_fail=:
16351
16352
16353  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16354func_stripname ()\
16355{\
16356\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16357\    # positional parameters, so assign one to ordinary parameter first.\
16358\    func_stripname_result=${3}\
16359\    func_stripname_result=${func_stripname_result#"${1}"}\
16360\    func_stripname_result=${func_stripname_result%"${2}"}\
16361} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16362  && mv -f "$cfgfile.tmp" "$cfgfile" \
16363    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16364test 0 -eq $? || _lt_function_replace_fail=:
16365
16366
16367  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16368func_split_long_opt ()\
16369{\
16370\    func_split_long_opt_name=${1%%=*}\
16371\    func_split_long_opt_arg=${1#*=}\
16372} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16373  && mv -f "$cfgfile.tmp" "$cfgfile" \
16374    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16375test 0 -eq $? || _lt_function_replace_fail=:
16376
16377
16378  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16379func_split_short_opt ()\
16380{\
16381\    func_split_short_opt_arg=${1#??}\
16382\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16383} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16384  && mv -f "$cfgfile.tmp" "$cfgfile" \
16385    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16386test 0 -eq $? || _lt_function_replace_fail=:
16387
16388
16389  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16390func_lo2o ()\
16391{\
16392\    case ${1} in\
16393\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16394\      *)    func_lo2o_result=${1} ;;\
16395\    esac\
16396} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16397  && mv -f "$cfgfile.tmp" "$cfgfile" \
16398    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16399test 0 -eq $? || _lt_function_replace_fail=:
16400
16401
16402  sed -e '/^func_xform ()$/,/^} # func_xform /c\
16403func_xform ()\
16404{\
16405    func_xform_result=${1%.*}.lo\
16406} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16407  && mv -f "$cfgfile.tmp" "$cfgfile" \
16408    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16409test 0 -eq $? || _lt_function_replace_fail=:
16410
16411
16412  sed -e '/^func_arith ()$/,/^} # func_arith /c\
16413func_arith ()\
16414{\
16415    func_arith_result=$(( $* ))\
16416} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16417  && mv -f "$cfgfile.tmp" "$cfgfile" \
16418    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16419test 0 -eq $? || _lt_function_replace_fail=:
16420
16421
16422  sed -e '/^func_len ()$/,/^} # func_len /c\
16423func_len ()\
16424{\
16425    func_len_result=${#1}\
16426} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16427  && mv -f "$cfgfile.tmp" "$cfgfile" \
16428    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16429test 0 -eq $? || _lt_function_replace_fail=:
16430
16431fi
16432
16433if test x"$lt_shell_append" = xyes; then
16434  sed -e '/^func_append ()$/,/^} # func_append /c\
16435func_append ()\
16436{\
16437    eval "${1}+=\\${2}"\
16438} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16439  && mv -f "$cfgfile.tmp" "$cfgfile" \
16440    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16441test 0 -eq $? || _lt_function_replace_fail=:
16442
16443
16444  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16445func_append_quoted ()\
16446{\
16447\    func_quote_for_eval "${2}"\
16448\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16449} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16450  && mv -f "$cfgfile.tmp" "$cfgfile" \
16451    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16452test 0 -eq $? || _lt_function_replace_fail=:
16453
16454
16455  # Save a `func_append' function call where possible by direct use of '+='
16456  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16457    && mv -f "$cfgfile.tmp" "$cfgfile" \
16458      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16459  test 0 -eq $? || _lt_function_replace_fail=:
16460else
16461  # Save a `func_append' function call even when '+=' is not available
16462  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16463    && mv -f "$cfgfile.tmp" "$cfgfile" \
16464      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16465  test 0 -eq $? || _lt_function_replace_fail=:
16466fi
16467
16468if test x"$_lt_function_replace_fail" = x":"; then
16469  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
16470$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
16471fi
16472
16473
16474   mv -f "$cfgfile" "$ofile" ||
16475    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16476  chmod +x "$ofile"
16477
16478 ;;
16479
16480  esac
16481done # for ac_tag
16482
16483
16484as_fn_exit 0
16485_ACEOF
16486ac_clean_files=$ac_clean_files_save
16487
16488test $ac_write_fail = 0 ||
16489  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16490
16491
16492# configure is writing to config.log, and then calls config.status.
16493# config.status does its own redirection, appending to config.log.
16494# Unfortunately, on DOS this fails, as config.log is still kept open
16495# by configure, so config.status won't be able to write to it; its
16496# output is simply discarded.  So we exec the FD to /dev/null,
16497# effectively closing config.log, so it can be properly (re)opened and
16498# appended to by config.status.  When coming back to configure, we
16499# need to make the FD available again.
16500if test "$no_create" != yes; then
16501  ac_cs_success=:
16502  ac_config_status_args=
16503  test "$silent" = yes &&
16504    ac_config_status_args="$ac_config_status_args --quiet"
16505  exec 5>/dev/null
16506  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16507  exec 5>>config.log
16508  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16509  # would make configure fail if this is the last instruction.
16510  $ac_cs_success || as_fn_exit 1
16511fi
16512
16513#
16514# CONFIG_SUBDIRS section.
16515#
16516if test "$no_recursion" != yes; then
16517
16518  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
16519  # so they do not pile up.
16520  ac_sub_configure_args=
16521  ac_prev=
16522  eval "set x $ac_configure_args"
16523  shift
16524  for ac_arg
16525  do
16526    if test -n "$ac_prev"; then
16527      ac_prev=
16528      continue
16529    fi
16530    case $ac_arg in
16531    -cache-file | --cache-file | --cache-fil | --cache-fi \
16532    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
16533      ac_prev=cache_file ;;
16534    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
16535    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
16536    | --c=*)
16537      ;;
16538    --config-cache | -C)
16539      ;;
16540    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
16541      ac_prev=srcdir ;;
16542    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
16543      ;;
16544    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
16545      ac_prev=prefix ;;
16546    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
16547      ;;
16548    --disable-option-checking)
16549      ;;
16550    *)
16551      case $ac_arg in
16552      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16553      esac
16554      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
16555    esac
16556  done
16557
16558  # Always prepend --prefix to ensure using the same prefix
16559  # in subdir configurations.
16560  ac_arg="--prefix=$prefix"
16561  case $ac_arg in
16562  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16563  esac
16564  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
16565
16566  # Pass --silent
16567  if test "$silent" = yes; then
16568    ac_sub_configure_args="--silent $ac_sub_configure_args"
16569  fi
16570
16571  # Always prepend --disable-option-checking to silence warnings, since
16572  # different subdirs can have different --enable and --with options.
16573  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
16574
16575  ac_popdir=`pwd`
16576  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
16577
16578    # Do not complain, so a configure script can configure whichever
16579    # parts of a large source tree are present.
16580    test -d "$srcdir/$ac_dir" || continue
16581
16582    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
16583    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
16584    $as_echo "$ac_msg" >&6
16585    as_dir="$ac_dir"; as_fn_mkdir_p
16586    ac_builddir=.
16587
16588case "$ac_dir" in
16589.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16590*)
16591  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16592  # A ".." for each directory in $ac_dir_suffix.
16593  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16594  case $ac_top_builddir_sub in
16595  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16596  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16597  esac ;;
16598esac
16599ac_abs_top_builddir=$ac_pwd
16600ac_abs_builddir=$ac_pwd$ac_dir_suffix
16601# for backward compatibility:
16602ac_top_builddir=$ac_top_build_prefix
16603
16604case $srcdir in
16605  .)  # We are building in place.
16606    ac_srcdir=.
16607    ac_top_srcdir=$ac_top_builddir_sub
16608    ac_abs_top_srcdir=$ac_pwd ;;
16609  [\\/]* | ?:[\\/]* )  # Absolute name.
16610    ac_srcdir=$srcdir$ac_dir_suffix;
16611    ac_top_srcdir=$srcdir
16612    ac_abs_top_srcdir=$srcdir ;;
16613  *) # Relative name.
16614    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16615    ac_top_srcdir=$ac_top_build_prefix$srcdir
16616    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16617esac
16618ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16619
16620
16621    cd "$ac_dir"
16622
16623    # Check for guested configure; otherwise get Cygnus style configure.
16624    if test -f "$ac_srcdir/configure.gnu"; then
16625      ac_sub_configure=$ac_srcdir/configure.gnu
16626    elif test -f "$ac_srcdir/configure"; then
16627      ac_sub_configure=$ac_srcdir/configure
16628    elif test -f "$ac_srcdir/configure.in"; then
16629      # This should be Cygnus configure.
16630      ac_sub_configure=$ac_aux_dir/configure
16631    else
16632      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
16633$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
16634      ac_sub_configure=
16635    fi
16636
16637    # The recursion is here.
16638    if test -n "$ac_sub_configure"; then
16639      # Make the cache file name correct relative to the subdirectory.
16640      case $cache_file in
16641      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
16642      *) # Relative name.
16643	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
16644      esac
16645
16646      { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
16647$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
16648      # The eval makes quoting arguments work.
16649      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
16650	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
16651	as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
16652    fi
16653
16654    cd "$ac_popdir"
16655  done
16656fi
16657if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16658  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16659$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16660fi
16661
16662
16663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
16664$as_echo "" >&6; }
16665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Configuration summary:" >&5
16666$as_echo "Configuration summary:" >&6; }
16667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ----------------------" >&5
16668$as_echo "----------------------" >&6; }
16669
16670if test "${use_libcairo}" = yes; then
16671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Support for the Cairo 2D graphic library: yes" >&5
16672$as_echo "Support for the Cairo 2D graphic library: yes" >&6; }
16673else
16674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Support for the Cairo 2D graphic library: no" >&5
16675$as_echo "Support for the Cairo 2D graphic library: no" >&6; }
16676fi
16677