1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for librasterlite2 1.0.0-rc0.
4#
5# Report bugs to <a.furieri@lqt.it>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and a.furieri@lqt.it
278$0: about your system, including any error possibly output
279$0: before this message. Then install a modern shell, or
280$0: manually run the script under such a shell if you do
281$0: have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='librasterlite2'
592PACKAGE_TARNAME='librasterlite2'
593PACKAGE_VERSION='1.0.0-rc0'
594PACKAGE_STRING='librasterlite2 1.0.0-rc0'
595PACKAGE_BUGREPORT='a.furieri@lqt.it'
596PACKAGE_URL=''
597
598# Factoring default headers for most tests.
599ac_includes_default="\
600#include <stdio.h>
601#ifdef HAVE_SYS_TYPES_H
602# include <sys/types.h>
603#endif
604#ifdef HAVE_SYS_STAT_H
605# include <sys/stat.h>
606#endif
607#ifdef STDC_HEADERS
608# include <stdlib.h>
609# include <stddef.h>
610#else
611# ifdef HAVE_STDLIB_H
612#  include <stdlib.h>
613# endif
614#endif
615#ifdef HAVE_STRING_H
616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617#  include <memory.h>
618# endif
619# include <string.h>
620#endif
621#ifdef HAVE_STRINGS_H
622# include <strings.h>
623#endif
624#ifdef HAVE_INTTYPES_H
625# include <inttypes.h>
626#endif
627#ifdef HAVE_STDINT_H
628# include <stdint.h>
629#endif
630#ifdef HAVE_UNISTD_H
631# include <unistd.h>
632#endif"
633
634ac_subst_vars='am__EXEEXT_FALSE
635am__EXEEXT_TRUE
636LTLIBOBJS
637MINGW_FALSE
638MINGW_TRUE
639LIBXML2_LIBS
640LIBXML2_CFLAGS
641LIBCURL_LIBS
642LIBCURL_CFLAGS
643LIBCAIRO_LIBS
644LIBCAIRO_CFLAGS
645LIBSPATIALITE_LIBS
646LIBSPATIALITE_CFLAGS
647LIBLZMA_LIBS
648LIBLZMA_CFLAGS
649LIBWEBP_LIBS
650LIBWEBP_CFLAGS
651LIBPNG_LIBS
652LIBPNG_CFLAGS
653PKG_CONFIG_LIBDIR
654PKG_CONFIG_PATH
655PKG_CONFIG
656LIBOBJS
657CXXCPP
658OTOOL64
659OTOOL
660LIPO
661NMEDIT
662DSYMUTIL
663MANIFEST_TOOL
664RANLIB
665ac_ct_AR
666AR
667NM
668ac_ct_DUMPBIN
669DUMPBIN
670LD
671FGREP
672SED
673LIBTOOL
674OBJDUMP
675DLLTOOL
676AS
677host_os
678host_vendor
679host_cpu
680host
681build_os
682build_vendor
683build_cpu
684build
685LN_S
686am__fastdepCXX_FALSE
687am__fastdepCXX_TRUE
688CXXDEPMODE
689ac_ct_CXX
690CXXFLAGS
691CXX
692EGREP
693GREP
694CPP
695am__fastdepCC_FALSE
696am__fastdepCC_TRUE
697CCDEPMODE
698am__nodep
699AMDEPBACKSLASH
700AMDEP_FALSE
701AMDEP_TRUE
702am__quote
703am__include
704DEPDIR
705OBJEXT
706EXEEXT
707ac_ct_CC
708CPPFLAGS
709LDFLAGS
710CFLAGS
711CC
712MAINT
713MAINTAINER_MODE_FALSE
714MAINTAINER_MODE_TRUE
715AM_BACKSLASH
716AM_DEFAULT_VERBOSITY
717AM_DEFAULT_V
718AM_V
719am__untar
720am__tar
721AMTAR
722am__leading_dot
723SET_MAKE
724AWK
725mkdir_p
726MKDIR_P
727INSTALL_STRIP_PROGRAM
728STRIP
729install_sh
730MAKEINFO
731AUTOHEADER
732AUTOMAKE
733AUTOCONF
734ACLOCAL
735VERSION
736PACKAGE
737CYGPATH_W
738am__isrc
739INSTALL_DATA
740INSTALL_SCRIPT
741INSTALL_PROGRAM
742target_alias
743host_alias
744build_alias
745LIBS
746ECHO_T
747ECHO_N
748ECHO_C
749DEFS
750mandir
751localedir
752libdir
753psdir
754pdfdir
755dvidir
756htmldir
757infodir
758docdir
759oldincludedir
760includedir
761localstatedir
762sharedstatedir
763sysconfdir
764datadir
765datarootdir
766libexecdir
767sbindir
768bindir
769program_transform_name
770prefix
771exec_prefix
772PACKAGE_URL
773PACKAGE_BUGREPORT
774PACKAGE_STRING
775PACKAGE_VERSION
776PACKAGE_TARNAME
777PACKAGE_NAME
778PATH_SEPARATOR
779SHELL'
780ac_subst_files=''
781ac_user_opts='
782enable_option_checking
783enable_silent_rules
784enable_maintainer_mode
785enable_dependency_tracking
786enable_shared
787enable_static
788with_pic
789enable_fast_install
790with_gnu_ld
791with_sysroot
792enable_libtool_lock
793enable_gcov
794'
795      ac_precious_vars='build_alias
796host_alias
797target_alias
798CC
799CFLAGS
800LDFLAGS
801LIBS
802CPPFLAGS
803CPP
804CXX
805CXXFLAGS
806CCC
807CXXCPP
808PKG_CONFIG
809PKG_CONFIG_PATH
810PKG_CONFIG_LIBDIR
811LIBPNG_CFLAGS
812LIBPNG_LIBS
813LIBWEBP_CFLAGS
814LIBWEBP_LIBS
815LIBLZMA_CFLAGS
816LIBLZMA_LIBS
817LIBSPATIALITE_CFLAGS
818LIBSPATIALITE_LIBS
819LIBCAIRO_CFLAGS
820LIBCAIRO_LIBS
821LIBCURL_CFLAGS
822LIBCURL_LIBS
823LIBXML2_CFLAGS
824LIBXML2_LIBS'
825
826
827# Initialize some variables set by options.
828ac_init_help=
829ac_init_version=false
830ac_unrecognized_opts=
831ac_unrecognized_sep=
832# The variables have the same names as the options, with
833# dashes changed to underlines.
834cache_file=/dev/null
835exec_prefix=NONE
836no_create=
837no_recursion=
838prefix=NONE
839program_prefix=NONE
840program_suffix=NONE
841program_transform_name=s,x,x,
842silent=
843site=
844srcdir=
845verbose=
846x_includes=NONE
847x_libraries=NONE
848
849# Installation directory options.
850# These are left unexpanded so users can "make install exec_prefix=/foo"
851# and all the variables that are supposed to be based on exec_prefix
852# by default will actually change.
853# Use braces instead of parens because sh, perl, etc. also accept them.
854# (The list follows the same order as the GNU Coding Standards.)
855bindir='${exec_prefix}/bin'
856sbindir='${exec_prefix}/sbin'
857libexecdir='${exec_prefix}/libexec'
858datarootdir='${prefix}/share'
859datadir='${datarootdir}'
860sysconfdir='${prefix}/etc'
861sharedstatedir='${prefix}/com'
862localstatedir='${prefix}/var'
863includedir='${prefix}/include'
864oldincludedir='/usr/include'
865docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
866infodir='${datarootdir}/info'
867htmldir='${docdir}'
868dvidir='${docdir}'
869pdfdir='${docdir}'
870psdir='${docdir}'
871libdir='${exec_prefix}/lib'
872localedir='${datarootdir}/locale'
873mandir='${datarootdir}/man'
874
875ac_prev=
876ac_dashdash=
877for ac_option
878do
879  # If the previous option needs an argument, assign it.
880  if test -n "$ac_prev"; then
881    eval $ac_prev=\$ac_option
882    ac_prev=
883    continue
884  fi
885
886  case $ac_option in
887  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
888  *=)   ac_optarg= ;;
889  *)    ac_optarg=yes ;;
890  esac
891
892  # Accept the important Cygnus configure options, so we can diagnose typos.
893
894  case $ac_dashdash$ac_option in
895  --)
896    ac_dashdash=yes ;;
897
898  -bindir | --bindir | --bindi | --bind | --bin | --bi)
899    ac_prev=bindir ;;
900  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
901    bindir=$ac_optarg ;;
902
903  -build | --build | --buil | --bui | --bu)
904    ac_prev=build_alias ;;
905  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
906    build_alias=$ac_optarg ;;
907
908  -cache-file | --cache-file | --cache-fil | --cache-fi \
909  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
910    ac_prev=cache_file ;;
911  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
912  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
913    cache_file=$ac_optarg ;;
914
915  --config-cache | -C)
916    cache_file=config.cache ;;
917
918  -datadir | --datadir | --datadi | --datad)
919    ac_prev=datadir ;;
920  -datadir=* | --datadir=* | --datadi=* | --datad=*)
921    datadir=$ac_optarg ;;
922
923  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
924  | --dataroo | --dataro | --datar)
925    ac_prev=datarootdir ;;
926  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
927  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
928    datarootdir=$ac_optarg ;;
929
930  -disable-* | --disable-*)
931    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
932    # Reject names that are not valid shell variable names.
933    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
934      as_fn_error $? "invalid feature name: $ac_useropt"
935    ac_useropt_orig=$ac_useropt
936    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
937    case $ac_user_opts in
938      *"
939"enable_$ac_useropt"
940"*) ;;
941      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
942	 ac_unrecognized_sep=', ';;
943    esac
944    eval enable_$ac_useropt=no ;;
945
946  -docdir | --docdir | --docdi | --doc | --do)
947    ac_prev=docdir ;;
948  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
949    docdir=$ac_optarg ;;
950
951  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
952    ac_prev=dvidir ;;
953  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
954    dvidir=$ac_optarg ;;
955
956  -enable-* | --enable-*)
957    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
958    # Reject names that are not valid shell variable names.
959    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
960      as_fn_error $? "invalid feature name: $ac_useropt"
961    ac_useropt_orig=$ac_useropt
962    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
963    case $ac_user_opts in
964      *"
965"enable_$ac_useropt"
966"*) ;;
967      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
968	 ac_unrecognized_sep=', ';;
969    esac
970    eval enable_$ac_useropt=\$ac_optarg ;;
971
972  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
973  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
974  | --exec | --exe | --ex)
975    ac_prev=exec_prefix ;;
976  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
977  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
978  | --exec=* | --exe=* | --ex=*)
979    exec_prefix=$ac_optarg ;;
980
981  -gas | --gas | --ga | --g)
982    # Obsolete; use --with-gas.
983    with_gas=yes ;;
984
985  -help | --help | --hel | --he | -h)
986    ac_init_help=long ;;
987  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
988    ac_init_help=recursive ;;
989  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
990    ac_init_help=short ;;
991
992  -host | --host | --hos | --ho)
993    ac_prev=host_alias ;;
994  -host=* | --host=* | --hos=* | --ho=*)
995    host_alias=$ac_optarg ;;
996
997  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
998    ac_prev=htmldir ;;
999  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1000  | --ht=*)
1001    htmldir=$ac_optarg ;;
1002
1003  -includedir | --includedir | --includedi | --included | --include \
1004  | --includ | --inclu | --incl | --inc)
1005    ac_prev=includedir ;;
1006  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1007  | --includ=* | --inclu=* | --incl=* | --inc=*)
1008    includedir=$ac_optarg ;;
1009
1010  -infodir | --infodir | --infodi | --infod | --info | --inf)
1011    ac_prev=infodir ;;
1012  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1013    infodir=$ac_optarg ;;
1014
1015  -libdir | --libdir | --libdi | --libd)
1016    ac_prev=libdir ;;
1017  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1018    libdir=$ac_optarg ;;
1019
1020  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1021  | --libexe | --libex | --libe)
1022    ac_prev=libexecdir ;;
1023  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1024  | --libexe=* | --libex=* | --libe=*)
1025    libexecdir=$ac_optarg ;;
1026
1027  -localedir | --localedir | --localedi | --localed | --locale)
1028    ac_prev=localedir ;;
1029  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1030    localedir=$ac_optarg ;;
1031
1032  -localstatedir | --localstatedir | --localstatedi | --localstated \
1033  | --localstate | --localstat | --localsta | --localst | --locals)
1034    ac_prev=localstatedir ;;
1035  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1036  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1037    localstatedir=$ac_optarg ;;
1038
1039  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1040    ac_prev=mandir ;;
1041  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1042    mandir=$ac_optarg ;;
1043
1044  -nfp | --nfp | --nf)
1045    # Obsolete; use --without-fp.
1046    with_fp=no ;;
1047
1048  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1049  | --no-cr | --no-c | -n)
1050    no_create=yes ;;
1051
1052  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1053  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1054    no_recursion=yes ;;
1055
1056  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1057  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1058  | --oldin | --oldi | --old | --ol | --o)
1059    ac_prev=oldincludedir ;;
1060  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1061  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1062  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1063    oldincludedir=$ac_optarg ;;
1064
1065  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1066    ac_prev=prefix ;;
1067  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1068    prefix=$ac_optarg ;;
1069
1070  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1071  | --program-pre | --program-pr | --program-p)
1072    ac_prev=program_prefix ;;
1073  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1074  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1075    program_prefix=$ac_optarg ;;
1076
1077  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1078  | --program-suf | --program-su | --program-s)
1079    ac_prev=program_suffix ;;
1080  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1081  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1082    program_suffix=$ac_optarg ;;
1083
1084  -program-transform-name | --program-transform-name \
1085  | --program-transform-nam | --program-transform-na \
1086  | --program-transform-n | --program-transform- \
1087  | --program-transform | --program-transfor \
1088  | --program-transfo | --program-transf \
1089  | --program-trans | --program-tran \
1090  | --progr-tra | --program-tr | --program-t)
1091    ac_prev=program_transform_name ;;
1092  -program-transform-name=* | --program-transform-name=* \
1093  | --program-transform-nam=* | --program-transform-na=* \
1094  | --program-transform-n=* | --program-transform-=* \
1095  | --program-transform=* | --program-transfor=* \
1096  | --program-transfo=* | --program-transf=* \
1097  | --program-trans=* | --program-tran=* \
1098  | --progr-tra=* | --program-tr=* | --program-t=*)
1099    program_transform_name=$ac_optarg ;;
1100
1101  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1102    ac_prev=pdfdir ;;
1103  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1104    pdfdir=$ac_optarg ;;
1105
1106  -psdir | --psdir | --psdi | --psd | --ps)
1107    ac_prev=psdir ;;
1108  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1109    psdir=$ac_optarg ;;
1110
1111  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1112  | -silent | --silent | --silen | --sile | --sil)
1113    silent=yes ;;
1114
1115  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1116    ac_prev=sbindir ;;
1117  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1118  | --sbi=* | --sb=*)
1119    sbindir=$ac_optarg ;;
1120
1121  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1122  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1123  | --sharedst | --shareds | --shared | --share | --shar \
1124  | --sha | --sh)
1125    ac_prev=sharedstatedir ;;
1126  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1127  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1128  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1129  | --sha=* | --sh=*)
1130    sharedstatedir=$ac_optarg ;;
1131
1132  -site | --site | --sit)
1133    ac_prev=site ;;
1134  -site=* | --site=* | --sit=*)
1135    site=$ac_optarg ;;
1136
1137  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1138    ac_prev=srcdir ;;
1139  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1140    srcdir=$ac_optarg ;;
1141
1142  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1143  | --syscon | --sysco | --sysc | --sys | --sy)
1144    ac_prev=sysconfdir ;;
1145  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1146  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1147    sysconfdir=$ac_optarg ;;
1148
1149  -target | --target | --targe | --targ | --tar | --ta | --t)
1150    ac_prev=target_alias ;;
1151  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1152    target_alias=$ac_optarg ;;
1153
1154  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1155    verbose=yes ;;
1156
1157  -version | --version | --versio | --versi | --vers | -V)
1158    ac_init_version=: ;;
1159
1160  -with-* | --with-*)
1161    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1162    # Reject names that are not valid shell variable names.
1163    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1164      as_fn_error $? "invalid package name: $ac_useropt"
1165    ac_useropt_orig=$ac_useropt
1166    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1167    case $ac_user_opts in
1168      *"
1169"with_$ac_useropt"
1170"*) ;;
1171      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1172	 ac_unrecognized_sep=', ';;
1173    esac
1174    eval with_$ac_useropt=\$ac_optarg ;;
1175
1176  -without-* | --without-*)
1177    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1178    # Reject names that are not valid shell variable names.
1179    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1180      as_fn_error $? "invalid package name: $ac_useropt"
1181    ac_useropt_orig=$ac_useropt
1182    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183    case $ac_user_opts in
1184      *"
1185"with_$ac_useropt"
1186"*) ;;
1187      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1188	 ac_unrecognized_sep=', ';;
1189    esac
1190    eval with_$ac_useropt=no ;;
1191
1192  --x)
1193    # Obsolete; use --with-x.
1194    with_x=yes ;;
1195
1196  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1197  | --x-incl | --x-inc | --x-in | --x-i)
1198    ac_prev=x_includes ;;
1199  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1200  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1201    x_includes=$ac_optarg ;;
1202
1203  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1204  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1205    ac_prev=x_libraries ;;
1206  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1207  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1208    x_libraries=$ac_optarg ;;
1209
1210  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1211Try \`$0 --help' for more information"
1212    ;;
1213
1214  *=*)
1215    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1216    # Reject names that are not valid shell variable names.
1217    case $ac_envvar in #(
1218      '' | [0-9]* | *[!_$as_cr_alnum]* )
1219      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1220    esac
1221    eval $ac_envvar=\$ac_optarg
1222    export $ac_envvar ;;
1223
1224  *)
1225    # FIXME: should be removed in autoconf 3.0.
1226    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1227    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1228      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1229    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1230    ;;
1231
1232  esac
1233done
1234
1235if test -n "$ac_prev"; then
1236  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1237  as_fn_error $? "missing argument to $ac_option"
1238fi
1239
1240if test -n "$ac_unrecognized_opts"; then
1241  case $enable_option_checking in
1242    no) ;;
1243    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1244    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1245  esac
1246fi
1247
1248# Check all directory arguments for consistency.
1249for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1250		datadir sysconfdir sharedstatedir localstatedir includedir \
1251		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1252		libdir localedir mandir
1253do
1254  eval ac_val=\$$ac_var
1255  # Remove trailing slashes.
1256  case $ac_val in
1257    */ )
1258      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1259      eval $ac_var=\$ac_val;;
1260  esac
1261  # Be sure to have absolute directory names.
1262  case $ac_val in
1263    [\\/$]* | ?:[\\/]* )  continue;;
1264    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1265  esac
1266  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1267done
1268
1269# There might be people who depend on the old broken behavior: `$host'
1270# used to hold the argument of --host etc.
1271# FIXME: To remove some day.
1272build=$build_alias
1273host=$host_alias
1274target=$target_alias
1275
1276# FIXME: To remove some day.
1277if test "x$host_alias" != x; then
1278  if test "x$build_alias" = x; then
1279    cross_compiling=maybe
1280  elif test "x$build_alias" != "x$host_alias"; then
1281    cross_compiling=yes
1282  fi
1283fi
1284
1285ac_tool_prefix=
1286test -n "$host_alias" && ac_tool_prefix=$host_alias-
1287
1288test "$silent" = yes && exec 6>/dev/null
1289
1290
1291ac_pwd=`pwd` && test -n "$ac_pwd" &&
1292ac_ls_di=`ls -di .` &&
1293ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1294  as_fn_error $? "working directory cannot be determined"
1295test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1296  as_fn_error $? "pwd does not report name of working directory"
1297
1298
1299# Find the source files, if location was not specified.
1300if test -z "$srcdir"; then
1301  ac_srcdir_defaulted=yes
1302  # Try the directory containing this script, then the parent directory.
1303  ac_confdir=`$as_dirname -- "$as_myself" ||
1304$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1305	 X"$as_myself" : 'X\(//\)[^/]' \| \
1306	 X"$as_myself" : 'X\(//\)$' \| \
1307	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1308$as_echo X"$as_myself" |
1309    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1310	    s//\1/
1311	    q
1312	  }
1313	  /^X\(\/\/\)[^/].*/{
1314	    s//\1/
1315	    q
1316	  }
1317	  /^X\(\/\/\)$/{
1318	    s//\1/
1319	    q
1320	  }
1321	  /^X\(\/\).*/{
1322	    s//\1/
1323	    q
1324	  }
1325	  s/.*/./; q'`
1326  srcdir=$ac_confdir
1327  if test ! -r "$srcdir/$ac_unique_file"; then
1328    srcdir=..
1329  fi
1330else
1331  ac_srcdir_defaulted=no
1332fi
1333if test ! -r "$srcdir/$ac_unique_file"; then
1334  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1335  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1336fi
1337ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1338ac_abs_confdir=`(
1339	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1340	pwd)`
1341# When building in place, set srcdir=.
1342if test "$ac_abs_confdir" = "$ac_pwd"; then
1343  srcdir=.
1344fi
1345# Remove unnecessary trailing slashes from srcdir.
1346# Double slashes in file names in object file debugging info
1347# mess up M-x gdb in Emacs.
1348case $srcdir in
1349*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1350esac
1351for ac_var in $ac_precious_vars; do
1352  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1353  eval ac_env_${ac_var}_value=\$${ac_var}
1354  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1355  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1356done
1357
1358#
1359# Report the --help message.
1360#
1361if test "$ac_init_help" = "long"; then
1362  # Omit some internal or obsolete options to make the list less imposing.
1363  # This message is too long to be a string in the A/UX 3.1 sh.
1364  cat <<_ACEOF
1365\`configure' configures librasterlite2 1.0.0-rc0 to adapt to many kinds of systems.
1366
1367Usage: $0 [OPTION]... [VAR=VALUE]...
1368
1369To assign environment variables (e.g., CC, CFLAGS...), specify them as
1370VAR=VALUE.  See below for descriptions of some of the useful variables.
1371
1372Defaults for the options are specified in brackets.
1373
1374Configuration:
1375  -h, --help              display this help and exit
1376      --help=short        display options specific to this package
1377      --help=recursive    display the short help of all the included packages
1378  -V, --version           display version information and exit
1379  -q, --quiet, --silent   do not print \`checking ...' messages
1380      --cache-file=FILE   cache test results in FILE [disabled]
1381  -C, --config-cache      alias for \`--cache-file=config.cache'
1382  -n, --no-create         do not create output files
1383      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1384
1385Installation directories:
1386  --prefix=PREFIX         install architecture-independent files in PREFIX
1387                          [$ac_default_prefix]
1388  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1389                          [PREFIX]
1390
1391By default, \`make install' will install all the files in
1392\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1393an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1394for instance \`--prefix=\$HOME'.
1395
1396For better control, use the options below.
1397
1398Fine tuning of the installation directories:
1399  --bindir=DIR            user executables [EPREFIX/bin]
1400  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1401  --libexecdir=DIR        program executables [EPREFIX/libexec]
1402  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1403  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1404  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1405  --libdir=DIR            object code libraries [EPREFIX/lib]
1406  --includedir=DIR        C header files [PREFIX/include]
1407  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1408  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1409  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1410  --infodir=DIR           info documentation [DATAROOTDIR/info]
1411  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1412  --mandir=DIR            man documentation [DATAROOTDIR/man]
1413  --docdir=DIR            documentation root [DATAROOTDIR/doc/librasterlite2]
1414  --htmldir=DIR           html documentation [DOCDIR]
1415  --dvidir=DIR            dvi documentation [DOCDIR]
1416  --pdfdir=DIR            pdf documentation [DOCDIR]
1417  --psdir=DIR             ps documentation [DOCDIR]
1418_ACEOF
1419
1420  cat <<\_ACEOF
1421
1422Program names:
1423  --program-prefix=PREFIX            prepend PREFIX to installed program names
1424  --program-suffix=SUFFIX            append SUFFIX to installed program names
1425  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1426
1427System types:
1428  --build=BUILD     configure for building on BUILD [guessed]
1429  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1430_ACEOF
1431fi
1432
1433if test -n "$ac_init_help"; then
1434  case $ac_init_help in
1435     short | recursive ) echo "Configuration of librasterlite2 1.0.0-rc0:";;
1436   esac
1437  cat <<\_ACEOF
1438
1439Optional Features:
1440  --disable-option-checking  ignore unrecognized --enable/--with options
1441  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1442  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1443  --enable-silent-rules   less verbose build output (undo: "make V=1")
1444  --disable-silent-rules  verbose build output (undo: "make V=0")
1445  --enable-maintainer-mode
1446                          enable make rules and dependencies not useful (and
1447                          sometimes confusing) to the casual installer
1448  --enable-dependency-tracking
1449                          do not reject slow dependency extractors
1450  --disable-dependency-tracking
1451                          speeds up one-time build
1452  --enable-shared[=PKGS]  build shared libraries [default=yes]
1453  --enable-static[=PKGS]  build static libraries [default=yes]
1454  --enable-fast-install[=PKGS]
1455                          optimize for fast installation [default=yes]
1456  --disable-libtool-lock  avoid locking (might break parallel builds)
1457  --enable-gcov           turn on code coverage analysis tools
1458
1459Optional Packages:
1460  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1461  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1462  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1463                          both]
1464  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1465  --with-sysroot=DIR Search for dependent libraries within DIR
1466                        (or the compiler's sysroot if not specified).
1467
1468Some influential environment variables:
1469  CC          C compiler command
1470  CFLAGS      C compiler flags
1471  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1472              nonstandard directory <lib dir>
1473  LIBS        libraries to pass to the linker, e.g. -l<library>
1474  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1475              you have headers in a nonstandard directory <include dir>
1476  CPP         C preprocessor
1477  CXX         C++ compiler command
1478  CXXFLAGS    C++ compiler flags
1479  CXXCPP      C++ preprocessor
1480  PKG_CONFIG  path to pkg-config utility
1481  PKG_CONFIG_PATH
1482              directories to add to pkg-config's search path
1483  PKG_CONFIG_LIBDIR
1484              path overriding pkg-config's built-in search path
1485  LIBPNG_CFLAGS
1486              C compiler flags for LIBPNG, overriding pkg-config
1487  LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1488  LIBWEBP_CFLAGS
1489              C compiler flags for LIBWEBP, overriding pkg-config
1490  LIBWEBP_LIBS
1491              linker flags for LIBWEBP, overriding pkg-config
1492  LIBLZMA_CFLAGS
1493              C compiler flags for LIBLZMA, overriding pkg-config
1494  LIBLZMA_LIBS
1495              linker flags for LIBLZMA, overriding pkg-config
1496  LIBSPATIALITE_CFLAGS
1497              C compiler flags for LIBSPATIALITE, overriding pkg-config
1498  LIBSPATIALITE_LIBS
1499              linker flags for LIBSPATIALITE, overriding pkg-config
1500  LIBCAIRO_CFLAGS
1501              C compiler flags for LIBCAIRO, overriding pkg-config
1502  LIBCAIRO_LIBS
1503              linker flags for LIBCAIRO, overriding pkg-config
1504  LIBCURL_CFLAGS
1505              C compiler flags for LIBCURL, overriding pkg-config
1506  LIBCURL_LIBS
1507              linker flags for LIBCURL, overriding pkg-config
1508  LIBXML2_CFLAGS
1509              C compiler flags for LIBXML2, overriding pkg-config
1510  LIBXML2_LIBS
1511              linker flags for LIBXML2, overriding pkg-config
1512
1513Use these variables to override the choices made by `configure' or to help
1514it to find libraries and programs with nonstandard names/locations.
1515
1516Report bugs to <a.furieri@lqt.it>.
1517_ACEOF
1518ac_status=$?
1519fi
1520
1521if test "$ac_init_help" = "recursive"; then
1522  # If there are subdirs, report their specific --help.
1523  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1524    test -d "$ac_dir" ||
1525      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1526      continue
1527    ac_builddir=.
1528
1529case "$ac_dir" in
1530.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1531*)
1532  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1533  # A ".." for each directory in $ac_dir_suffix.
1534  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1535  case $ac_top_builddir_sub in
1536  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1537  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1538  esac ;;
1539esac
1540ac_abs_top_builddir=$ac_pwd
1541ac_abs_builddir=$ac_pwd$ac_dir_suffix
1542# for backward compatibility:
1543ac_top_builddir=$ac_top_build_prefix
1544
1545case $srcdir in
1546  .)  # We are building in place.
1547    ac_srcdir=.
1548    ac_top_srcdir=$ac_top_builddir_sub
1549    ac_abs_top_srcdir=$ac_pwd ;;
1550  [\\/]* | ?:[\\/]* )  # Absolute name.
1551    ac_srcdir=$srcdir$ac_dir_suffix;
1552    ac_top_srcdir=$srcdir
1553    ac_abs_top_srcdir=$srcdir ;;
1554  *) # Relative name.
1555    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1556    ac_top_srcdir=$ac_top_build_prefix$srcdir
1557    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1558esac
1559ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1560
1561    cd "$ac_dir" || { ac_status=$?; continue; }
1562    # Check for guested configure.
1563    if test -f "$ac_srcdir/configure.gnu"; then
1564      echo &&
1565      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1566    elif test -f "$ac_srcdir/configure"; then
1567      echo &&
1568      $SHELL "$ac_srcdir/configure" --help=recursive
1569    else
1570      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1571    fi || ac_status=$?
1572    cd "$ac_pwd" || { ac_status=$?; break; }
1573  done
1574fi
1575
1576test -n "$ac_init_help" && exit $ac_status
1577if $ac_init_version; then
1578  cat <<\_ACEOF
1579librasterlite2 configure 1.0.0-rc0
1580generated by GNU Autoconf 2.69
1581
1582Copyright (C) 2012 Free Software Foundation, Inc.
1583This configure script is free software; the Free Software Foundation
1584gives unlimited permission to copy, distribute and modify it.
1585_ACEOF
1586  exit
1587fi
1588
1589## ------------------------ ##
1590## Autoconf initialization. ##
1591## ------------------------ ##
1592
1593# ac_fn_c_try_compile LINENO
1594# --------------------------
1595# Try to compile conftest.$ac_ext, and return whether this succeeded.
1596ac_fn_c_try_compile ()
1597{
1598  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1599  rm -f conftest.$ac_objext
1600  if { { ac_try="$ac_compile"
1601case "(($ac_try" in
1602  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1603  *) ac_try_echo=$ac_try;;
1604esac
1605eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1606$as_echo "$ac_try_echo"; } >&5
1607  (eval "$ac_compile") 2>conftest.err
1608  ac_status=$?
1609  if test -s conftest.err; then
1610    grep -v '^ *+' conftest.err >conftest.er1
1611    cat conftest.er1 >&5
1612    mv -f conftest.er1 conftest.err
1613  fi
1614  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615  test $ac_status = 0; } && {
1616	 test -z "$ac_c_werror_flag" ||
1617	 test ! -s conftest.err
1618       } && test -s conftest.$ac_objext; then :
1619  ac_retval=0
1620else
1621  $as_echo "$as_me: failed program was:" >&5
1622sed 's/^/| /' conftest.$ac_ext >&5
1623
1624	ac_retval=1
1625fi
1626  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1627  as_fn_set_status $ac_retval
1628
1629} # ac_fn_c_try_compile
1630
1631# ac_fn_c_try_cpp LINENO
1632# ----------------------
1633# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1634ac_fn_c_try_cpp ()
1635{
1636  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637  if { { ac_try="$ac_cpp conftest.$ac_ext"
1638case "(($ac_try" in
1639  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1640  *) ac_try_echo=$ac_try;;
1641esac
1642eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1643$as_echo "$ac_try_echo"; } >&5
1644  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1645  ac_status=$?
1646  if test -s conftest.err; then
1647    grep -v '^ *+' conftest.err >conftest.er1
1648    cat conftest.er1 >&5
1649    mv -f conftest.er1 conftest.err
1650  fi
1651  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1652  test $ac_status = 0; } > conftest.i && {
1653	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1654	 test ! -s conftest.err
1655       }; then :
1656  ac_retval=0
1657else
1658  $as_echo "$as_me: failed program was:" >&5
1659sed 's/^/| /' conftest.$ac_ext >&5
1660
1661    ac_retval=1
1662fi
1663  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1664  as_fn_set_status $ac_retval
1665
1666} # ac_fn_c_try_cpp
1667
1668# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1669# -------------------------------------------------------
1670# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1671# the include files in INCLUDES and setting the cache variable VAR
1672# accordingly.
1673ac_fn_c_check_header_mongrel ()
1674{
1675  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676  if eval \${$3+:} false; then :
1677  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1678$as_echo_n "checking for $2... " >&6; }
1679if eval \${$3+:} false; then :
1680  $as_echo_n "(cached) " >&6
1681fi
1682eval ac_res=\$$3
1683	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1684$as_echo "$ac_res" >&6; }
1685else
1686  # Is the header compilable?
1687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1688$as_echo_n "checking $2 usability... " >&6; }
1689cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1690/* end confdefs.h.  */
1691$4
1692#include <$2>
1693_ACEOF
1694if ac_fn_c_try_compile "$LINENO"; then :
1695  ac_header_compiler=yes
1696else
1697  ac_header_compiler=no
1698fi
1699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1701$as_echo "$ac_header_compiler" >&6; }
1702
1703# Is the header present?
1704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1705$as_echo_n "checking $2 presence... " >&6; }
1706cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1707/* end confdefs.h.  */
1708#include <$2>
1709_ACEOF
1710if ac_fn_c_try_cpp "$LINENO"; then :
1711  ac_header_preproc=yes
1712else
1713  ac_header_preproc=no
1714fi
1715rm -f conftest.err conftest.i conftest.$ac_ext
1716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1717$as_echo "$ac_header_preproc" >&6; }
1718
1719# So?  What about this header?
1720case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1721  yes:no: )
1722    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1723$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1724    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1725$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1726    ;;
1727  no:yes:* )
1728    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1729$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1730    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1731$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1732    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1733$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1734    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1735$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1736    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1737$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1738( $as_echo "## ------------------------------- ##
1739## Report this to a.furieri@lqt.it ##
1740## ------------------------------- ##"
1741     ) | sed "s/^/$as_me: WARNING:     /" >&2
1742    ;;
1743esac
1744  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1745$as_echo_n "checking for $2... " >&6; }
1746if eval \${$3+:} false; then :
1747  $as_echo_n "(cached) " >&6
1748else
1749  eval "$3=\$ac_header_compiler"
1750fi
1751eval ac_res=\$$3
1752	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1753$as_echo "$ac_res" >&6; }
1754fi
1755  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756
1757} # ac_fn_c_check_header_mongrel
1758
1759# ac_fn_c_try_run LINENO
1760# ----------------------
1761# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1762# that executables *can* be run.
1763ac_fn_c_try_run ()
1764{
1765  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766  if { { ac_try="$ac_link"
1767case "(($ac_try" in
1768  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1769  *) ac_try_echo=$ac_try;;
1770esac
1771eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1772$as_echo "$ac_try_echo"; } >&5
1773  (eval "$ac_link") 2>&5
1774  ac_status=$?
1775  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1777  { { case "(($ac_try" in
1778  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779  *) ac_try_echo=$ac_try;;
1780esac
1781eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782$as_echo "$ac_try_echo"; } >&5
1783  (eval "$ac_try") 2>&5
1784  ac_status=$?
1785  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786  test $ac_status = 0; }; }; then :
1787  ac_retval=0
1788else
1789  $as_echo "$as_me: program exited with status $ac_status" >&5
1790       $as_echo "$as_me: failed program was:" >&5
1791sed 's/^/| /' conftest.$ac_ext >&5
1792
1793       ac_retval=$ac_status
1794fi
1795  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1796  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1797  as_fn_set_status $ac_retval
1798
1799} # ac_fn_c_try_run
1800
1801# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1802# -------------------------------------------------------
1803# Tests whether HEADER exists and can be compiled using the include files in
1804# INCLUDES, setting the cache variable VAR accordingly.
1805ac_fn_c_check_header_compile ()
1806{
1807  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1809$as_echo_n "checking for $2... " >&6; }
1810if eval \${$3+:} false; then :
1811  $as_echo_n "(cached) " >&6
1812else
1813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1814/* end confdefs.h.  */
1815$4
1816#include <$2>
1817_ACEOF
1818if ac_fn_c_try_compile "$LINENO"; then :
1819  eval "$3=yes"
1820else
1821  eval "$3=no"
1822fi
1823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1824fi
1825eval ac_res=\$$3
1826	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1827$as_echo "$ac_res" >&6; }
1828  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829
1830} # ac_fn_c_check_header_compile
1831
1832# ac_fn_cxx_try_compile LINENO
1833# ----------------------------
1834# Try to compile conftest.$ac_ext, and return whether this succeeded.
1835ac_fn_cxx_try_compile ()
1836{
1837  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838  rm -f conftest.$ac_objext
1839  if { { ac_try="$ac_compile"
1840case "(($ac_try" in
1841  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842  *) ac_try_echo=$ac_try;;
1843esac
1844eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845$as_echo "$ac_try_echo"; } >&5
1846  (eval "$ac_compile") 2>conftest.err
1847  ac_status=$?
1848  if test -s conftest.err; then
1849    grep -v '^ *+' conftest.err >conftest.er1
1850    cat conftest.er1 >&5
1851    mv -f conftest.er1 conftest.err
1852  fi
1853  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854  test $ac_status = 0; } && {
1855	 test -z "$ac_cxx_werror_flag" ||
1856	 test ! -s conftest.err
1857       } && test -s conftest.$ac_objext; then :
1858  ac_retval=0
1859else
1860  $as_echo "$as_me: failed program was:" >&5
1861sed 's/^/| /' conftest.$ac_ext >&5
1862
1863	ac_retval=1
1864fi
1865  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866  as_fn_set_status $ac_retval
1867
1868} # ac_fn_cxx_try_compile
1869
1870# ac_fn_c_try_link LINENO
1871# -----------------------
1872# Try to link conftest.$ac_ext, and return whether this succeeded.
1873ac_fn_c_try_link ()
1874{
1875  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876  rm -f conftest.$ac_objext conftest$ac_exeext
1877  if { { ac_try="$ac_link"
1878case "(($ac_try" in
1879  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1880  *) ac_try_echo=$ac_try;;
1881esac
1882eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883$as_echo "$ac_try_echo"; } >&5
1884  (eval "$ac_link") 2>conftest.err
1885  ac_status=$?
1886  if test -s conftest.err; then
1887    grep -v '^ *+' conftest.err >conftest.er1
1888    cat conftest.er1 >&5
1889    mv -f conftest.er1 conftest.err
1890  fi
1891  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892  test $ac_status = 0; } && {
1893	 test -z "$ac_c_werror_flag" ||
1894	 test ! -s conftest.err
1895       } && test -s conftest$ac_exeext && {
1896	 test "$cross_compiling" = yes ||
1897	 test -x conftest$ac_exeext
1898       }; then :
1899  ac_retval=0
1900else
1901  $as_echo "$as_me: failed program was:" >&5
1902sed 's/^/| /' conftest.$ac_ext >&5
1903
1904	ac_retval=1
1905fi
1906  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1907  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1908  # interfere with the next link command; also delete a directory that is
1909  # left behind by Apple's compiler.  We do this before executing the actions.
1910  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1911  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1912  as_fn_set_status $ac_retval
1913
1914} # ac_fn_c_try_link
1915
1916# ac_fn_c_check_func LINENO FUNC VAR
1917# ----------------------------------
1918# Tests whether FUNC exists, setting the cache variable VAR accordingly
1919ac_fn_c_check_func ()
1920{
1921  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1923$as_echo_n "checking for $2... " >&6; }
1924if eval \${$3+:} false; then :
1925  $as_echo_n "(cached) " >&6
1926else
1927  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1928/* end confdefs.h.  */
1929/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1930   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1931#define $2 innocuous_$2
1932
1933/* System header to define __stub macros and hopefully few prototypes,
1934    which can conflict with char $2 (); below.
1935    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1936    <limits.h> exists even on freestanding compilers.  */
1937
1938#ifdef __STDC__
1939# include <limits.h>
1940#else
1941# include <assert.h>
1942#endif
1943
1944#undef $2
1945
1946/* Override any GCC internal prototype to avoid an error.
1947   Use char because int might match the return type of a GCC
1948   builtin and then its argument prototype would still apply.  */
1949#ifdef __cplusplus
1950extern "C"
1951#endif
1952char $2 ();
1953/* The GNU C library defines this for functions which it implements
1954    to always fail with ENOSYS.  Some functions are actually named
1955    something starting with __ and the normal name is an alias.  */
1956#if defined __stub_$2 || defined __stub___$2
1957choke me
1958#endif
1959
1960int
1961main ()
1962{
1963return $2 ();
1964  ;
1965  return 0;
1966}
1967_ACEOF
1968if ac_fn_c_try_link "$LINENO"; then :
1969  eval "$3=yes"
1970else
1971  eval "$3=no"
1972fi
1973rm -f core conftest.err conftest.$ac_objext \
1974    conftest$ac_exeext conftest.$ac_ext
1975fi
1976eval ac_res=\$$3
1977	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1978$as_echo "$ac_res" >&6; }
1979  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1980
1981} # ac_fn_c_check_func
1982
1983# ac_fn_cxx_try_cpp LINENO
1984# ------------------------
1985# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1986ac_fn_cxx_try_cpp ()
1987{
1988  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1989  if { { ac_try="$ac_cpp conftest.$ac_ext"
1990case "(($ac_try" in
1991  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1992  *) ac_try_echo=$ac_try;;
1993esac
1994eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1995$as_echo "$ac_try_echo"; } >&5
1996  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1997  ac_status=$?
1998  if test -s conftest.err; then
1999    grep -v '^ *+' conftest.err >conftest.er1
2000    cat conftest.er1 >&5
2001    mv -f conftest.er1 conftest.err
2002  fi
2003  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2004  test $ac_status = 0; } > conftest.i && {
2005	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2006	 test ! -s conftest.err
2007       }; then :
2008  ac_retval=0
2009else
2010  $as_echo "$as_me: failed program was:" >&5
2011sed 's/^/| /' conftest.$ac_ext >&5
2012
2013    ac_retval=1
2014fi
2015  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2016  as_fn_set_status $ac_retval
2017
2018} # ac_fn_cxx_try_cpp
2019
2020# ac_fn_cxx_try_link LINENO
2021# -------------------------
2022# Try to link conftest.$ac_ext, and return whether this succeeded.
2023ac_fn_cxx_try_link ()
2024{
2025  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2026  rm -f conftest.$ac_objext conftest$ac_exeext
2027  if { { ac_try="$ac_link"
2028case "(($ac_try" in
2029  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2030  *) ac_try_echo=$ac_try;;
2031esac
2032eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2033$as_echo "$ac_try_echo"; } >&5
2034  (eval "$ac_link") 2>conftest.err
2035  ac_status=$?
2036  if test -s conftest.err; then
2037    grep -v '^ *+' conftest.err >conftest.er1
2038    cat conftest.er1 >&5
2039    mv -f conftest.er1 conftest.err
2040  fi
2041  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2042  test $ac_status = 0; } && {
2043	 test -z "$ac_cxx_werror_flag" ||
2044	 test ! -s conftest.err
2045       } && test -s conftest$ac_exeext && {
2046	 test "$cross_compiling" = yes ||
2047	 test -x conftest$ac_exeext
2048       }; then :
2049  ac_retval=0
2050else
2051  $as_echo "$as_me: failed program was:" >&5
2052sed 's/^/| /' conftest.$ac_ext >&5
2053
2054	ac_retval=1
2055fi
2056  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2057  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2058  # interfere with the next link command; also delete a directory that is
2059  # left behind by Apple's compiler.  We do this before executing the actions.
2060  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2061  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2062  as_fn_set_status $ac_retval
2063
2064} # ac_fn_cxx_try_link
2065
2066# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2067# -------------------------------------------
2068# Tests whether TYPE exists after having included INCLUDES, setting cache
2069# variable VAR accordingly.
2070ac_fn_c_check_type ()
2071{
2072  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2073  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2074$as_echo_n "checking for $2... " >&6; }
2075if eval \${$3+:} false; then :
2076  $as_echo_n "(cached) " >&6
2077else
2078  eval "$3=no"
2079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080/* end confdefs.h.  */
2081$4
2082int
2083main ()
2084{
2085if (sizeof ($2))
2086	 return 0;
2087  ;
2088  return 0;
2089}
2090_ACEOF
2091if ac_fn_c_try_compile "$LINENO"; then :
2092  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2093/* end confdefs.h.  */
2094$4
2095int
2096main ()
2097{
2098if (sizeof (($2)))
2099	    return 0;
2100  ;
2101  return 0;
2102}
2103_ACEOF
2104if ac_fn_c_try_compile "$LINENO"; then :
2105
2106else
2107  eval "$3=yes"
2108fi
2109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2110fi
2111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2112fi
2113eval ac_res=\$$3
2114	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2115$as_echo "$ac_res" >&6; }
2116  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2117
2118} # ac_fn_c_check_type
2119cat >config.log <<_ACEOF
2120This file contains any messages produced by compilers while
2121running configure, to aid debugging if configure makes a mistake.
2122
2123It was created by librasterlite2 $as_me 1.0.0-rc0, which was
2124generated by GNU Autoconf 2.69.  Invocation command line was
2125
2126  $ $0 $@
2127
2128_ACEOF
2129exec 5>>config.log
2130{
2131cat <<_ASUNAME
2132## --------- ##
2133## Platform. ##
2134## --------- ##
2135
2136hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2137uname -m = `(uname -m) 2>/dev/null || echo unknown`
2138uname -r = `(uname -r) 2>/dev/null || echo unknown`
2139uname -s = `(uname -s) 2>/dev/null || echo unknown`
2140uname -v = `(uname -v) 2>/dev/null || echo unknown`
2141
2142/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2143/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2144
2145/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2146/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2147/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2148/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2149/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2150/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2151/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2152
2153_ASUNAME
2154
2155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2156for as_dir in $PATH
2157do
2158  IFS=$as_save_IFS
2159  test -z "$as_dir" && as_dir=.
2160    $as_echo "PATH: $as_dir"
2161  done
2162IFS=$as_save_IFS
2163
2164} >&5
2165
2166cat >&5 <<_ACEOF
2167
2168
2169## ----------- ##
2170## Core tests. ##
2171## ----------- ##
2172
2173_ACEOF
2174
2175
2176# Keep a trace of the command line.
2177# Strip out --no-create and --no-recursion so they do not pile up.
2178# Strip out --silent because we don't want to record it for future runs.
2179# Also quote any args containing shell meta-characters.
2180# Make two passes to allow for proper duplicate-argument suppression.
2181ac_configure_args=
2182ac_configure_args0=
2183ac_configure_args1=
2184ac_must_keep_next=false
2185for ac_pass in 1 2
2186do
2187  for ac_arg
2188  do
2189    case $ac_arg in
2190    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2191    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2192    | -silent | --silent | --silen | --sile | --sil)
2193      continue ;;
2194    *\'*)
2195      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2196    esac
2197    case $ac_pass in
2198    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2199    2)
2200      as_fn_append ac_configure_args1 " '$ac_arg'"
2201      if test $ac_must_keep_next = true; then
2202	ac_must_keep_next=false # Got value, back to normal.
2203      else
2204	case $ac_arg in
2205	  *=* | --config-cache | -C | -disable-* | --disable-* \
2206	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2207	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2208	  | -with-* | --with-* | -without-* | --without-* | --x)
2209	    case "$ac_configure_args0 " in
2210	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2211	    esac
2212	    ;;
2213	  -* ) ac_must_keep_next=true ;;
2214	esac
2215      fi
2216      as_fn_append ac_configure_args " '$ac_arg'"
2217      ;;
2218    esac
2219  done
2220done
2221{ ac_configure_args0=; unset ac_configure_args0;}
2222{ ac_configure_args1=; unset ac_configure_args1;}
2223
2224# When interrupted or exit'd, cleanup temporary files, and complete
2225# config.log.  We remove comments because anyway the quotes in there
2226# would cause problems or look ugly.
2227# WARNING: Use '\'' to represent an apostrophe within the trap.
2228# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2229trap 'exit_status=$?
2230  # Save into config.log some information that might help in debugging.
2231  {
2232    echo
2233
2234    $as_echo "## ---------------- ##
2235## Cache variables. ##
2236## ---------------- ##"
2237    echo
2238    # The following way of writing the cache mishandles newlines in values,
2239(
2240  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2241    eval ac_val=\$$ac_var
2242    case $ac_val in #(
2243    *${as_nl}*)
2244      case $ac_var in #(
2245      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2246$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2247      esac
2248      case $ac_var in #(
2249      _ | IFS | as_nl) ;; #(
2250      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2251      *) { eval $ac_var=; unset $ac_var;} ;;
2252      esac ;;
2253    esac
2254  done
2255  (set) 2>&1 |
2256    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2257    *${as_nl}ac_space=\ *)
2258      sed -n \
2259	"s/'\''/'\''\\\\'\'''\''/g;
2260	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2261      ;; #(
2262    *)
2263      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2264      ;;
2265    esac |
2266    sort
2267)
2268    echo
2269
2270    $as_echo "## ----------------- ##
2271## Output variables. ##
2272## ----------------- ##"
2273    echo
2274    for ac_var in $ac_subst_vars
2275    do
2276      eval ac_val=\$$ac_var
2277      case $ac_val in
2278      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2279      esac
2280      $as_echo "$ac_var='\''$ac_val'\''"
2281    done | sort
2282    echo
2283
2284    if test -n "$ac_subst_files"; then
2285      $as_echo "## ------------------- ##
2286## File substitutions. ##
2287## ------------------- ##"
2288      echo
2289      for ac_var in $ac_subst_files
2290      do
2291	eval ac_val=\$$ac_var
2292	case $ac_val in
2293	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2294	esac
2295	$as_echo "$ac_var='\''$ac_val'\''"
2296      done | sort
2297      echo
2298    fi
2299
2300    if test -s confdefs.h; then
2301      $as_echo "## ----------- ##
2302## confdefs.h. ##
2303## ----------- ##"
2304      echo
2305      cat confdefs.h
2306      echo
2307    fi
2308    test "$ac_signal" != 0 &&
2309      $as_echo "$as_me: caught signal $ac_signal"
2310    $as_echo "$as_me: exit $exit_status"
2311  } >&5
2312  rm -f core *.core core.conftest.* &&
2313    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2314    exit $exit_status
2315' 0
2316for ac_signal in 1 2 13 15; do
2317  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2318done
2319ac_signal=0
2320
2321# confdefs.h avoids OS command line length limits that DEFS can exceed.
2322rm -f -r conftest* confdefs.h
2323
2324$as_echo "/* confdefs.h */" > confdefs.h
2325
2326# Predefined preprocessor variables.
2327
2328cat >>confdefs.h <<_ACEOF
2329#define PACKAGE_NAME "$PACKAGE_NAME"
2330_ACEOF
2331
2332cat >>confdefs.h <<_ACEOF
2333#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2334_ACEOF
2335
2336cat >>confdefs.h <<_ACEOF
2337#define PACKAGE_VERSION "$PACKAGE_VERSION"
2338_ACEOF
2339
2340cat >>confdefs.h <<_ACEOF
2341#define PACKAGE_STRING "$PACKAGE_STRING"
2342_ACEOF
2343
2344cat >>confdefs.h <<_ACEOF
2345#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2346_ACEOF
2347
2348cat >>confdefs.h <<_ACEOF
2349#define PACKAGE_URL "$PACKAGE_URL"
2350_ACEOF
2351
2352
2353# Let the site file select an alternate cache file if it wants to.
2354# Prefer an explicitly selected file to automatically selected ones.
2355ac_site_file1=NONE
2356ac_site_file2=NONE
2357if test -n "$CONFIG_SITE"; then
2358  # We do not want a PATH search for config.site.
2359  case $CONFIG_SITE in #((
2360    -*)  ac_site_file1=./$CONFIG_SITE;;
2361    */*) ac_site_file1=$CONFIG_SITE;;
2362    *)   ac_site_file1=./$CONFIG_SITE;;
2363  esac
2364elif test "x$prefix" != xNONE; then
2365  ac_site_file1=$prefix/share/config.site
2366  ac_site_file2=$prefix/etc/config.site
2367else
2368  ac_site_file1=$ac_default_prefix/share/config.site
2369  ac_site_file2=$ac_default_prefix/etc/config.site
2370fi
2371for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2372do
2373  test "x$ac_site_file" = xNONE && continue
2374  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2375    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2376$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2377    sed 's/^/| /' "$ac_site_file" >&5
2378    . "$ac_site_file" \
2379      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2380$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2381as_fn_error $? "failed to load site script $ac_site_file
2382See \`config.log' for more details" "$LINENO" 5; }
2383  fi
2384done
2385
2386if test -r "$cache_file"; then
2387  # Some versions of bash will fail to source /dev/null (special files
2388  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2389  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2390    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2391$as_echo "$as_me: loading cache $cache_file" >&6;}
2392    case $cache_file in
2393      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2394      *)                      . "./$cache_file";;
2395    esac
2396  fi
2397else
2398  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2399$as_echo "$as_me: creating cache $cache_file" >&6;}
2400  >$cache_file
2401fi
2402
2403# Check that the precious variables saved in the cache have kept the same
2404# value.
2405ac_cache_corrupted=false
2406for ac_var in $ac_precious_vars; do
2407  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2408  eval ac_new_set=\$ac_env_${ac_var}_set
2409  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2410  eval ac_new_val=\$ac_env_${ac_var}_value
2411  case $ac_old_set,$ac_new_set in
2412    set,)
2413      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2414$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2415      ac_cache_corrupted=: ;;
2416    ,set)
2417      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2418$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2419      ac_cache_corrupted=: ;;
2420    ,);;
2421    *)
2422      if test "x$ac_old_val" != "x$ac_new_val"; then
2423	# differences in whitespace do not lead to failure.
2424	ac_old_val_w=`echo x $ac_old_val`
2425	ac_new_val_w=`echo x $ac_new_val`
2426	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2427	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2428$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2429	  ac_cache_corrupted=:
2430	else
2431	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2432$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2433	  eval $ac_var=\$ac_old_val
2434	fi
2435	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2436$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2437	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2438$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2439      fi;;
2440  esac
2441  # Pass precious variables to config.status.
2442  if test "$ac_new_set" = set; then
2443    case $ac_new_val in
2444    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2445    *) ac_arg=$ac_var=$ac_new_val ;;
2446    esac
2447    case " $ac_configure_args " in
2448      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2449      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2450    esac
2451  fi
2452done
2453if $ac_cache_corrupted; then
2454  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2455$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2456  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2457$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2458  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2459fi
2460## -------------------- ##
2461## Main body of script. ##
2462## -------------------- ##
2463
2464ac_ext=c
2465ac_cpp='$CPP $CPPFLAGS'
2466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2468ac_compiler_gnu=$ac_cv_c_compiler_gnu
2469
2470
2471ac_ext=c
2472ac_cpp='$CPP $CPPFLAGS'
2473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2475ac_compiler_gnu=$ac_cv_c_compiler_gnu
2476
2477ac_aux_dir=
2478for ac_dir in . "$srcdir"/.; do
2479  if test -f "$ac_dir/install-sh"; then
2480    ac_aux_dir=$ac_dir
2481    ac_install_sh="$ac_aux_dir/install-sh -c"
2482    break
2483  elif test -f "$ac_dir/install.sh"; then
2484    ac_aux_dir=$ac_dir
2485    ac_install_sh="$ac_aux_dir/install.sh -c"
2486    break
2487  elif test -f "$ac_dir/shtool"; then
2488    ac_aux_dir=$ac_dir
2489    ac_install_sh="$ac_aux_dir/shtool install -c"
2490    break
2491  fi
2492done
2493if test -z "$ac_aux_dir"; then
2494  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2495fi
2496
2497# These three variables are undocumented and unsupported,
2498# and are intended to be withdrawn in a future Autoconf release.
2499# They can cause serious problems if a builder's source tree is in a directory
2500# whose full name contains unusual characters.
2501ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2502ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2503ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2504
2505
2506
2507
2508am__api_version='1.13'
2509
2510# Find a good install program.  We prefer a C program (faster),
2511# so one script is as good as another.  But avoid the broken or
2512# incompatible versions:
2513# SysV /etc/install, /usr/sbin/install
2514# SunOS /usr/etc/install
2515# IRIX /sbin/install
2516# AIX /bin/install
2517# AmigaOS /C/install, which installs bootblocks on floppy discs
2518# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2519# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2520# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2521# OS/2's system install, which has a completely different semantic
2522# ./install, which can be erroneously created by make from ./install.sh.
2523# Reject install programs that cannot install multiple files.
2524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2525$as_echo_n "checking for a BSD-compatible install... " >&6; }
2526if test -z "$INSTALL"; then
2527if ${ac_cv_path_install+:} false; then :
2528  $as_echo_n "(cached) " >&6
2529else
2530  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531for as_dir in $PATH
2532do
2533  IFS=$as_save_IFS
2534  test -z "$as_dir" && as_dir=.
2535    # Account for people who put trailing slashes in PATH elements.
2536case $as_dir/ in #((
2537  ./ | .// | /[cC]/* | \
2538  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2539  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2540  /usr/ucb/* ) ;;
2541  *)
2542    # OSF1 and SCO ODT 3.0 have their own names for install.
2543    # Don't use installbsd from OSF since it installs stuff as root
2544    # by default.
2545    for ac_prog in ginstall scoinst install; do
2546      for ac_exec_ext in '' $ac_executable_extensions; do
2547	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2548	  if test $ac_prog = install &&
2549	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2550	    # AIX install.  It has an incompatible calling convention.
2551	    :
2552	  elif test $ac_prog = install &&
2553	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2554	    # program-specific install script used by HP pwplus--don't use.
2555	    :
2556	  else
2557	    rm -rf conftest.one conftest.two conftest.dir
2558	    echo one > conftest.one
2559	    echo two > conftest.two
2560	    mkdir conftest.dir
2561	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2562	      test -s conftest.one && test -s conftest.two &&
2563	      test -s conftest.dir/conftest.one &&
2564	      test -s conftest.dir/conftest.two
2565	    then
2566	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2567	      break 3
2568	    fi
2569	  fi
2570	fi
2571      done
2572    done
2573    ;;
2574esac
2575
2576  done
2577IFS=$as_save_IFS
2578
2579rm -rf conftest.one conftest.two conftest.dir
2580
2581fi
2582  if test "${ac_cv_path_install+set}" = set; then
2583    INSTALL=$ac_cv_path_install
2584  else
2585    # As a last resort, use the slow shell script.  Don't cache a
2586    # value for INSTALL within a source directory, because that will
2587    # break other packages using the cache if that directory is
2588    # removed, or if the value is a relative name.
2589    INSTALL=$ac_install_sh
2590  fi
2591fi
2592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2593$as_echo "$INSTALL" >&6; }
2594
2595# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2596# It thinks the first close brace ends the variable substitution.
2597test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2598
2599test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2600
2601test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2602
2603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2604$as_echo_n "checking whether build environment is sane... " >&6; }
2605# Reject unsafe characters in $srcdir or the absolute working directory
2606# name.  Accept space and tab only in the latter.
2607am_lf='
2608'
2609case `pwd` in
2610  *[\\\"\#\$\&\'\`$am_lf]*)
2611    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2612esac
2613case $srcdir in
2614  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2615    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2616esac
2617
2618# Do 'set' in a subshell so we don't clobber the current shell's
2619# arguments.  Must try -L first in case configure is actually a
2620# symlink; some systems play weird games with the mod time of symlinks
2621# (eg FreeBSD returns the mod time of the symlink's containing
2622# directory).
2623if (
2624   am_has_slept=no
2625   for am_try in 1 2; do
2626     echo "timestamp, slept: $am_has_slept" > conftest.file
2627     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2628     if test "$*" = "X"; then
2629	# -L didn't work.
2630	set X `ls -t "$srcdir/configure" conftest.file`
2631     fi
2632     if test "$*" != "X $srcdir/configure conftest.file" \
2633	&& test "$*" != "X conftest.file $srcdir/configure"; then
2634
2635	# If neither matched, then we have a broken ls.  This can happen
2636	# if, for instance, CONFIG_SHELL is bash and it inherits a
2637	# broken ls alias from the environment.  This has actually
2638	# happened.  Such a system could not be considered "sane".
2639	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2640  alias in your environment" "$LINENO" 5
2641     fi
2642     if test "$2" = conftest.file || test $am_try -eq 2; then
2643       break
2644     fi
2645     # Just in case.
2646     sleep 1
2647     am_has_slept=yes
2648   done
2649   test "$2" = conftest.file
2650   )
2651then
2652   # Ok.
2653   :
2654else
2655   as_fn_error $? "newly created file is older than distributed files!
2656Check your system clock" "$LINENO" 5
2657fi
2658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2659$as_echo "yes" >&6; }
2660# If we didn't sleep, we still need to ensure time stamps of config.status and
2661# generated files are strictly newer.
2662am_sleep_pid=
2663if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2664  ( sleep 1 ) &
2665  am_sleep_pid=$!
2666fi
2667
2668rm -f conftest.file
2669
2670test "$program_prefix" != NONE &&
2671  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2672# Use a double $ so make ignores it.
2673test "$program_suffix" != NONE &&
2674  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2675# Double any \ or $.
2676# By default was `s,x,x', remove it if useless.
2677ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2678program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2679
2680# expand $ac_aux_dir to an absolute path
2681am_aux_dir=`cd $ac_aux_dir && pwd`
2682
2683if test x"${MISSING+set}" != xset; then
2684  case $am_aux_dir in
2685  *\ * | *\	*)
2686    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2687  *)
2688    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2689  esac
2690fi
2691# Use eval to expand $SHELL
2692if eval "$MISSING --is-lightweight"; then
2693  am_missing_run="$MISSING "
2694else
2695  am_missing_run=
2696  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2697$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2698fi
2699
2700if test x"${install_sh}" != xset; then
2701  case $am_aux_dir in
2702  *\ * | *\	*)
2703    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2704  *)
2705    install_sh="\${SHELL} $am_aux_dir/install-sh"
2706  esac
2707fi
2708
2709# Installed binaries are usually stripped using 'strip' when the user
2710# run "make install-strip".  However 'strip' might not be the right
2711# tool to use in cross-compilation environments, therefore Automake
2712# will honor the 'STRIP' environment variable to overrule this program.
2713if test "$cross_compiling" != no; then
2714  if test -n "$ac_tool_prefix"; then
2715  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2716set dummy ${ac_tool_prefix}strip; ac_word=$2
2717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2718$as_echo_n "checking for $ac_word... " >&6; }
2719if ${ac_cv_prog_STRIP+:} false; then :
2720  $as_echo_n "(cached) " >&6
2721else
2722  if test -n "$STRIP"; then
2723  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2724else
2725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726for as_dir in $PATH
2727do
2728  IFS=$as_save_IFS
2729  test -z "$as_dir" && as_dir=.
2730    for ac_exec_ext in '' $ac_executable_extensions; do
2731  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2732    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2733    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2734    break 2
2735  fi
2736done
2737  done
2738IFS=$as_save_IFS
2739
2740fi
2741fi
2742STRIP=$ac_cv_prog_STRIP
2743if test -n "$STRIP"; then
2744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2745$as_echo "$STRIP" >&6; }
2746else
2747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2748$as_echo "no" >&6; }
2749fi
2750
2751
2752fi
2753if test -z "$ac_cv_prog_STRIP"; then
2754  ac_ct_STRIP=$STRIP
2755  # Extract the first word of "strip", so it can be a program name with args.
2756set dummy strip; ac_word=$2
2757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2758$as_echo_n "checking for $ac_word... " >&6; }
2759if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2760  $as_echo_n "(cached) " >&6
2761else
2762  if test -n "$ac_ct_STRIP"; then
2763  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2764else
2765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2766for as_dir in $PATH
2767do
2768  IFS=$as_save_IFS
2769  test -z "$as_dir" && as_dir=.
2770    for ac_exec_ext in '' $ac_executable_extensions; do
2771  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2772    ac_cv_prog_ac_ct_STRIP="strip"
2773    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2774    break 2
2775  fi
2776done
2777  done
2778IFS=$as_save_IFS
2779
2780fi
2781fi
2782ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2783if test -n "$ac_ct_STRIP"; then
2784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2785$as_echo "$ac_ct_STRIP" >&6; }
2786else
2787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2788$as_echo "no" >&6; }
2789fi
2790
2791  if test "x$ac_ct_STRIP" = x; then
2792    STRIP=":"
2793  else
2794    case $cross_compiling:$ac_tool_warned in
2795yes:)
2796{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2797$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2798ac_tool_warned=yes ;;
2799esac
2800    STRIP=$ac_ct_STRIP
2801  fi
2802else
2803  STRIP="$ac_cv_prog_STRIP"
2804fi
2805
2806fi
2807INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2808
2809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2810$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2811if test -z "$MKDIR_P"; then
2812  if ${ac_cv_path_mkdir+:} false; then :
2813  $as_echo_n "(cached) " >&6
2814else
2815  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2816for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2817do
2818  IFS=$as_save_IFS
2819  test -z "$as_dir" && as_dir=.
2820    for ac_prog in mkdir gmkdir; do
2821	 for ac_exec_ext in '' $ac_executable_extensions; do
2822	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2823	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2824	     'mkdir (GNU coreutils) '* | \
2825	     'mkdir (coreutils) '* | \
2826	     'mkdir (fileutils) '4.1*)
2827	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2828	       break 3;;
2829	   esac
2830	 done
2831       done
2832  done
2833IFS=$as_save_IFS
2834
2835fi
2836
2837  test -d ./--version && rmdir ./--version
2838  if test "${ac_cv_path_mkdir+set}" = set; then
2839    MKDIR_P="$ac_cv_path_mkdir -p"
2840  else
2841    # As a last resort, use the slow shell script.  Don't cache a
2842    # value for MKDIR_P within a source directory, because that will
2843    # break other packages using the cache if that directory is
2844    # removed, or if the value is a relative name.
2845    MKDIR_P="$ac_install_sh -d"
2846  fi
2847fi
2848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2849$as_echo "$MKDIR_P" >&6; }
2850
2851for ac_prog in gawk mawk nawk awk
2852do
2853  # Extract the first word of "$ac_prog", so it can be a program name with args.
2854set dummy $ac_prog; ac_word=$2
2855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2856$as_echo_n "checking for $ac_word... " >&6; }
2857if ${ac_cv_prog_AWK+:} false; then :
2858  $as_echo_n "(cached) " >&6
2859else
2860  if test -n "$AWK"; then
2861  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2862else
2863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864for as_dir in $PATH
2865do
2866  IFS=$as_save_IFS
2867  test -z "$as_dir" && as_dir=.
2868    for ac_exec_ext in '' $ac_executable_extensions; do
2869  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2870    ac_cv_prog_AWK="$ac_prog"
2871    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2872    break 2
2873  fi
2874done
2875  done
2876IFS=$as_save_IFS
2877
2878fi
2879fi
2880AWK=$ac_cv_prog_AWK
2881if test -n "$AWK"; then
2882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2883$as_echo "$AWK" >&6; }
2884else
2885  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2886$as_echo "no" >&6; }
2887fi
2888
2889
2890  test -n "$AWK" && break
2891done
2892
2893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2894$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2895set x ${MAKE-make}
2896ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2897if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2898  $as_echo_n "(cached) " >&6
2899else
2900  cat >conftest.make <<\_ACEOF
2901SHELL = /bin/sh
2902all:
2903	@echo '@@@%%%=$(MAKE)=@@@%%%'
2904_ACEOF
2905# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2906case `${MAKE-make} -f conftest.make 2>/dev/null` in
2907  *@@@%%%=?*=@@@%%%*)
2908    eval ac_cv_prog_make_${ac_make}_set=yes;;
2909  *)
2910    eval ac_cv_prog_make_${ac_make}_set=no;;
2911esac
2912rm -f conftest.make
2913fi
2914if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2916$as_echo "yes" >&6; }
2917  SET_MAKE=
2918else
2919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2920$as_echo "no" >&6; }
2921  SET_MAKE="MAKE=${MAKE-make}"
2922fi
2923
2924rm -rf .tst 2>/dev/null
2925mkdir .tst 2>/dev/null
2926if test -d .tst; then
2927  am__leading_dot=.
2928else
2929  am__leading_dot=_
2930fi
2931rmdir .tst 2>/dev/null
2932
2933# Check whether --enable-silent-rules was given.
2934if test "${enable_silent_rules+set}" = set; then :
2935  enableval=$enable_silent_rules;
2936fi
2937
2938case $enable_silent_rules in # (((
2939  yes) AM_DEFAULT_VERBOSITY=0;;
2940   no) AM_DEFAULT_VERBOSITY=1;;
2941    *) AM_DEFAULT_VERBOSITY=1;;
2942esac
2943am_make=${MAKE-make}
2944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2945$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2946if ${am_cv_make_support_nested_variables+:} false; then :
2947  $as_echo_n "(cached) " >&6
2948else
2949  if $as_echo 'TRUE=$(BAR$(V))
2950BAR0=false
2951BAR1=true
2952V=1
2953am__doit:
2954	@$(TRUE)
2955.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2956  am_cv_make_support_nested_variables=yes
2957else
2958  am_cv_make_support_nested_variables=no
2959fi
2960fi
2961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2962$as_echo "$am_cv_make_support_nested_variables" >&6; }
2963if test $am_cv_make_support_nested_variables = yes; then
2964    AM_V='$(V)'
2965  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2966else
2967  AM_V=$AM_DEFAULT_VERBOSITY
2968  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2969fi
2970AM_BACKSLASH='\'
2971
2972if test "`cd $srcdir && pwd`" != "`pwd`"; then
2973  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2974  # is not polluted with repeated "-I."
2975  am__isrc=' -I$(srcdir)'
2976  # test to see if srcdir already configured
2977  if test -f $srcdir/config.status; then
2978    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2979  fi
2980fi
2981
2982# test whether we have cygpath
2983if test -z "$CYGPATH_W"; then
2984  if (cygpath --version) >/dev/null 2>/dev/null; then
2985    CYGPATH_W='cygpath -w'
2986  else
2987    CYGPATH_W=echo
2988  fi
2989fi
2990
2991
2992# Define the identity of the package.
2993 PACKAGE='librasterlite2'
2994 VERSION='1.0.0-rc0'
2995
2996
2997cat >>confdefs.h <<_ACEOF
2998#define PACKAGE "$PACKAGE"
2999_ACEOF
3000
3001
3002cat >>confdefs.h <<_ACEOF
3003#define VERSION "$VERSION"
3004_ACEOF
3005
3006# Some tools Automake needs.
3007
3008ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3009
3010
3011AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3012
3013
3014AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3015
3016
3017AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3018
3019
3020MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3021
3022# For better backward compatibility.  To be removed once Automake 1.9.x
3023# dies out for good.  For more background, see:
3024# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3025# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3026mkdir_p='$(MKDIR_P)'
3027
3028# We need awk for the "check" target.  The system "awk" is bad on
3029# some platforms.
3030# Always define AMTAR for backward compatibility.  Yes, it's still used
3031# in the wild :-(  We should find a proper way to deprecate it ...
3032AMTAR='$${TAR-tar}'
3033
3034
3035# We'll loop over all known methods to create a tar archive until one works.
3036_am_tools='gnutar  pax cpio none'
3037
3038am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3039
3040
3041
3042
3043
3044
3045
3046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3047$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3048    # Check whether --enable-maintainer-mode was given.
3049if test "${enable_maintainer_mode+set}" = set; then :
3050  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3051else
3052  USE_MAINTAINER_MODE=no
3053fi
3054
3055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3056$as_echo "$USE_MAINTAINER_MODE" >&6; }
3057   if test $USE_MAINTAINER_MODE = yes; then
3058  MAINTAINER_MODE_TRUE=
3059  MAINTAINER_MODE_FALSE='#'
3060else
3061  MAINTAINER_MODE_TRUE='#'
3062  MAINTAINER_MODE_FALSE=
3063fi
3064
3065  MAINT=$MAINTAINER_MODE_TRUE
3066
3067
3068ac_config_headers="$ac_config_headers config.h"
3069
3070
3071# enabling huge-file support (64 bit file pointers)
3072
3073$as_echo "#define _LARGE_FILE 1" >>confdefs.h
3074
3075
3076$as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
3077
3078
3079$as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h
3080
3081
3082# disablibg debug support
3083
3084$as_echo "#define NDEBUG 1" >>confdefs.h
3085
3086
3087
3088
3089# Checks for header files.
3090DEPDIR="${am__leading_dot}deps"
3091
3092ac_config_commands="$ac_config_commands depfiles"
3093
3094
3095am_make=${MAKE-make}
3096cat > confinc << 'END'
3097am__doit:
3098	@echo this is the am__doit target
3099.PHONY: am__doit
3100END
3101# If we don't find an include directive, just comment out the code.
3102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3103$as_echo_n "checking for style of include used by $am_make... " >&6; }
3104am__include="#"
3105am__quote=
3106_am_result=none
3107# First try GNU make style include.
3108echo "include confinc" > confmf
3109# Ignore all kinds of additional output from 'make'.
3110case `$am_make -s -f confmf 2> /dev/null` in #(
3111*the\ am__doit\ target*)
3112  am__include=include
3113  am__quote=
3114  _am_result=GNU
3115  ;;
3116esac
3117# Now try BSD make style include.
3118if test "$am__include" = "#"; then
3119   echo '.include "confinc"' > confmf
3120   case `$am_make -s -f confmf 2> /dev/null` in #(
3121   *the\ am__doit\ target*)
3122     am__include=.include
3123     am__quote="\""
3124     _am_result=BSD
3125     ;;
3126   esac
3127fi
3128
3129
3130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3131$as_echo "$_am_result" >&6; }
3132rm -f confinc confmf
3133
3134# Check whether --enable-dependency-tracking was given.
3135if test "${enable_dependency_tracking+set}" = set; then :
3136  enableval=$enable_dependency_tracking;
3137fi
3138
3139if test "x$enable_dependency_tracking" != xno; then
3140  am_depcomp="$ac_aux_dir/depcomp"
3141  AMDEPBACKSLASH='\'
3142  am__nodep='_no'
3143fi
3144 if test "x$enable_dependency_tracking" != xno; then
3145  AMDEP_TRUE=
3146  AMDEP_FALSE='#'
3147else
3148  AMDEP_TRUE='#'
3149  AMDEP_FALSE=
3150fi
3151
3152
3153ac_ext=c
3154ac_cpp='$CPP $CPPFLAGS'
3155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3157ac_compiler_gnu=$ac_cv_c_compiler_gnu
3158if test -n "$ac_tool_prefix"; then
3159  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3160set dummy ${ac_tool_prefix}gcc; ac_word=$2
3161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3162$as_echo_n "checking for $ac_word... " >&6; }
3163if ${ac_cv_prog_CC+:} false; then :
3164  $as_echo_n "(cached) " >&6
3165else
3166  if test -n "$CC"; then
3167  ac_cv_prog_CC="$CC" # Let the user override the test.
3168else
3169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170for as_dir in $PATH
3171do
3172  IFS=$as_save_IFS
3173  test -z "$as_dir" && as_dir=.
3174    for ac_exec_ext in '' $ac_executable_extensions; do
3175  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3176    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3177    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3178    break 2
3179  fi
3180done
3181  done
3182IFS=$as_save_IFS
3183
3184fi
3185fi
3186CC=$ac_cv_prog_CC
3187if test -n "$CC"; then
3188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3189$as_echo "$CC" >&6; }
3190else
3191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3192$as_echo "no" >&6; }
3193fi
3194
3195
3196fi
3197if test -z "$ac_cv_prog_CC"; then
3198  ac_ct_CC=$CC
3199  # Extract the first word of "gcc", so it can be a program name with args.
3200set dummy gcc; ac_word=$2
3201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3202$as_echo_n "checking for $ac_word... " >&6; }
3203if ${ac_cv_prog_ac_ct_CC+:} false; then :
3204  $as_echo_n "(cached) " >&6
3205else
3206  if test -n "$ac_ct_CC"; then
3207  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3208else
3209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210for as_dir in $PATH
3211do
3212  IFS=$as_save_IFS
3213  test -z "$as_dir" && as_dir=.
3214    for ac_exec_ext in '' $ac_executable_extensions; do
3215  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3216    ac_cv_prog_ac_ct_CC="gcc"
3217    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3218    break 2
3219  fi
3220done
3221  done
3222IFS=$as_save_IFS
3223
3224fi
3225fi
3226ac_ct_CC=$ac_cv_prog_ac_ct_CC
3227if test -n "$ac_ct_CC"; then
3228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3229$as_echo "$ac_ct_CC" >&6; }
3230else
3231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3232$as_echo "no" >&6; }
3233fi
3234
3235  if test "x$ac_ct_CC" = x; then
3236    CC=""
3237  else
3238    case $cross_compiling:$ac_tool_warned in
3239yes:)
3240{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3241$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3242ac_tool_warned=yes ;;
3243esac
3244    CC=$ac_ct_CC
3245  fi
3246else
3247  CC="$ac_cv_prog_CC"
3248fi
3249
3250if test -z "$CC"; then
3251          if test -n "$ac_tool_prefix"; then
3252    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3253set dummy ${ac_tool_prefix}cc; ac_word=$2
3254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3255$as_echo_n "checking for $ac_word... " >&6; }
3256if ${ac_cv_prog_CC+:} false; then :
3257  $as_echo_n "(cached) " >&6
3258else
3259  if test -n "$CC"; then
3260  ac_cv_prog_CC="$CC" # Let the user override the test.
3261else
3262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3263for as_dir in $PATH
3264do
3265  IFS=$as_save_IFS
3266  test -z "$as_dir" && as_dir=.
3267    for ac_exec_ext in '' $ac_executable_extensions; do
3268  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3269    ac_cv_prog_CC="${ac_tool_prefix}cc"
3270    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3271    break 2
3272  fi
3273done
3274  done
3275IFS=$as_save_IFS
3276
3277fi
3278fi
3279CC=$ac_cv_prog_CC
3280if test -n "$CC"; then
3281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3282$as_echo "$CC" >&6; }
3283else
3284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3285$as_echo "no" >&6; }
3286fi
3287
3288
3289  fi
3290fi
3291if test -z "$CC"; then
3292  # Extract the first word of "cc", so it can be a program name with args.
3293set dummy cc; ac_word=$2
3294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3295$as_echo_n "checking for $ac_word... " >&6; }
3296if ${ac_cv_prog_CC+:} false; then :
3297  $as_echo_n "(cached) " >&6
3298else
3299  if test -n "$CC"; then
3300  ac_cv_prog_CC="$CC" # Let the user override the test.
3301else
3302  ac_prog_rejected=no
3303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3304for as_dir in $PATH
3305do
3306  IFS=$as_save_IFS
3307  test -z "$as_dir" && as_dir=.
3308    for ac_exec_ext in '' $ac_executable_extensions; do
3309  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3310    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3311       ac_prog_rejected=yes
3312       continue
3313     fi
3314    ac_cv_prog_CC="cc"
3315    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3316    break 2
3317  fi
3318done
3319  done
3320IFS=$as_save_IFS
3321
3322if test $ac_prog_rejected = yes; then
3323  # We found a bogon in the path, so make sure we never use it.
3324  set dummy $ac_cv_prog_CC
3325  shift
3326  if test $# != 0; then
3327    # We chose a different compiler from the bogus one.
3328    # However, it has the same basename, so the bogon will be chosen
3329    # first if we set CC to just the basename; use the full file name.
3330    shift
3331    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3332  fi
3333fi
3334fi
3335fi
3336CC=$ac_cv_prog_CC
3337if test -n "$CC"; then
3338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3339$as_echo "$CC" >&6; }
3340else
3341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3342$as_echo "no" >&6; }
3343fi
3344
3345
3346fi
3347if test -z "$CC"; then
3348  if test -n "$ac_tool_prefix"; then
3349  for ac_prog in cl.exe
3350  do
3351    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3352set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3354$as_echo_n "checking for $ac_word... " >&6; }
3355if ${ac_cv_prog_CC+:} false; then :
3356  $as_echo_n "(cached) " >&6
3357else
3358  if test -n "$CC"; then
3359  ac_cv_prog_CC="$CC" # Let the user override the test.
3360else
3361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3362for as_dir in $PATH
3363do
3364  IFS=$as_save_IFS
3365  test -z "$as_dir" && as_dir=.
3366    for ac_exec_ext in '' $ac_executable_extensions; do
3367  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3368    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3369    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3370    break 2
3371  fi
3372done
3373  done
3374IFS=$as_save_IFS
3375
3376fi
3377fi
3378CC=$ac_cv_prog_CC
3379if test -n "$CC"; then
3380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3381$as_echo "$CC" >&6; }
3382else
3383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3384$as_echo "no" >&6; }
3385fi
3386
3387
3388    test -n "$CC" && break
3389  done
3390fi
3391if test -z "$CC"; then
3392  ac_ct_CC=$CC
3393  for ac_prog in cl.exe
3394do
3395  # Extract the first word of "$ac_prog", so it can be a program name with args.
3396set dummy $ac_prog; ac_word=$2
3397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3398$as_echo_n "checking for $ac_word... " >&6; }
3399if ${ac_cv_prog_ac_ct_CC+:} false; then :
3400  $as_echo_n "(cached) " >&6
3401else
3402  if test -n "$ac_ct_CC"; then
3403  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3404else
3405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3406for as_dir in $PATH
3407do
3408  IFS=$as_save_IFS
3409  test -z "$as_dir" && as_dir=.
3410    for ac_exec_ext in '' $ac_executable_extensions; do
3411  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3412    ac_cv_prog_ac_ct_CC="$ac_prog"
3413    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3414    break 2
3415  fi
3416done
3417  done
3418IFS=$as_save_IFS
3419
3420fi
3421fi
3422ac_ct_CC=$ac_cv_prog_ac_ct_CC
3423if test -n "$ac_ct_CC"; then
3424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3425$as_echo "$ac_ct_CC" >&6; }
3426else
3427  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3428$as_echo "no" >&6; }
3429fi
3430
3431
3432  test -n "$ac_ct_CC" && break
3433done
3434
3435  if test "x$ac_ct_CC" = x; then
3436    CC=""
3437  else
3438    case $cross_compiling:$ac_tool_warned in
3439yes:)
3440{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3441$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3442ac_tool_warned=yes ;;
3443esac
3444    CC=$ac_ct_CC
3445  fi
3446fi
3447
3448fi
3449
3450
3451test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3452$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3453as_fn_error $? "no acceptable C compiler found in \$PATH
3454See \`config.log' for more details" "$LINENO" 5; }
3455
3456# Provide some information about the compiler.
3457$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3458set X $ac_compile
3459ac_compiler=$2
3460for ac_option in --version -v -V -qversion; do
3461  { { ac_try="$ac_compiler $ac_option >&5"
3462case "(($ac_try" in
3463  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464  *) ac_try_echo=$ac_try;;
3465esac
3466eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3467$as_echo "$ac_try_echo"; } >&5
3468  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3469  ac_status=$?
3470  if test -s conftest.err; then
3471    sed '10a\
3472... rest of stderr output deleted ...
3473         10q' conftest.err >conftest.er1
3474    cat conftest.er1 >&5
3475  fi
3476  rm -f conftest.er1 conftest.err
3477  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3478  test $ac_status = 0; }
3479done
3480
3481cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3482/* end confdefs.h.  */
3483
3484int
3485main ()
3486{
3487
3488  ;
3489  return 0;
3490}
3491_ACEOF
3492ac_clean_files_save=$ac_clean_files
3493ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3494# Try to create an executable without -o first, disregard a.out.
3495# It will help us diagnose broken compilers, and finding out an intuition
3496# of exeext.
3497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3498$as_echo_n "checking whether the C compiler works... " >&6; }
3499ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3500
3501# The possible output files:
3502ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3503
3504ac_rmfiles=
3505for ac_file in $ac_files
3506do
3507  case $ac_file in
3508    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3509    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3510  esac
3511done
3512rm -f $ac_rmfiles
3513
3514if { { ac_try="$ac_link_default"
3515case "(($ac_try" in
3516  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3517  *) ac_try_echo=$ac_try;;
3518esac
3519eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3520$as_echo "$ac_try_echo"; } >&5
3521  (eval "$ac_link_default") 2>&5
3522  ac_status=$?
3523  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3524  test $ac_status = 0; }; then :
3525  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3526# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3527# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3528# so that the user can short-circuit this test for compilers unknown to
3529# Autoconf.
3530for ac_file in $ac_files ''
3531do
3532  test -f "$ac_file" || continue
3533  case $ac_file in
3534    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3535	;;
3536    [ab].out )
3537	# We found the default executable, but exeext='' is most
3538	# certainly right.
3539	break;;
3540    *.* )
3541	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3542	then :; else
3543	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3544	fi
3545	# We set ac_cv_exeext here because the later test for it is not
3546	# safe: cross compilers may not add the suffix if given an `-o'
3547	# argument, so we may need to know it at that point already.
3548	# Even if this section looks crufty: it has the advantage of
3549	# actually working.
3550	break;;
3551    * )
3552	break;;
3553  esac
3554done
3555test "$ac_cv_exeext" = no && ac_cv_exeext=
3556
3557else
3558  ac_file=''
3559fi
3560if test -z "$ac_file"; then :
3561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3562$as_echo "no" >&6; }
3563$as_echo "$as_me: failed program was:" >&5
3564sed 's/^/| /' conftest.$ac_ext >&5
3565
3566{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3567$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3568as_fn_error 77 "C compiler cannot create executables
3569See \`config.log' for more details" "$LINENO" 5; }
3570else
3571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3572$as_echo "yes" >&6; }
3573fi
3574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3575$as_echo_n "checking for C compiler default output file name... " >&6; }
3576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3577$as_echo "$ac_file" >&6; }
3578ac_exeext=$ac_cv_exeext
3579
3580rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3581ac_clean_files=$ac_clean_files_save
3582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3583$as_echo_n "checking for suffix of executables... " >&6; }
3584if { { ac_try="$ac_link"
3585case "(($ac_try" in
3586  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3587  *) ac_try_echo=$ac_try;;
3588esac
3589eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3590$as_echo "$ac_try_echo"; } >&5
3591  (eval "$ac_link") 2>&5
3592  ac_status=$?
3593  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3594  test $ac_status = 0; }; then :
3595  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3596# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3597# work properly (i.e., refer to `conftest.exe'), while it won't with
3598# `rm'.
3599for ac_file in conftest.exe conftest conftest.*; do
3600  test -f "$ac_file" || continue
3601  case $ac_file in
3602    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3603    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3604	  break;;
3605    * ) break;;
3606  esac
3607done
3608else
3609  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3610$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3611as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3612See \`config.log' for more details" "$LINENO" 5; }
3613fi
3614rm -f conftest conftest$ac_cv_exeext
3615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3616$as_echo "$ac_cv_exeext" >&6; }
3617
3618rm -f conftest.$ac_ext
3619EXEEXT=$ac_cv_exeext
3620ac_exeext=$EXEEXT
3621cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3622/* end confdefs.h.  */
3623#include <stdio.h>
3624int
3625main ()
3626{
3627FILE *f = fopen ("conftest.out", "w");
3628 return ferror (f) || fclose (f) != 0;
3629
3630  ;
3631  return 0;
3632}
3633_ACEOF
3634ac_clean_files="$ac_clean_files conftest.out"
3635# Check that the compiler produces executables we can run.  If not, either
3636# the compiler is broken, or we cross compile.
3637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3638$as_echo_n "checking whether we are cross compiling... " >&6; }
3639if test "$cross_compiling" != yes; then
3640  { { ac_try="$ac_link"
3641case "(($ac_try" in
3642  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3643  *) ac_try_echo=$ac_try;;
3644esac
3645eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3646$as_echo "$ac_try_echo"; } >&5
3647  (eval "$ac_link") 2>&5
3648  ac_status=$?
3649  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3650  test $ac_status = 0; }
3651  if { ac_try='./conftest$ac_cv_exeext'
3652  { { case "(($ac_try" in
3653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3654  *) ac_try_echo=$ac_try;;
3655esac
3656eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3657$as_echo "$ac_try_echo"; } >&5
3658  (eval "$ac_try") 2>&5
3659  ac_status=$?
3660  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3661  test $ac_status = 0; }; }; then
3662    cross_compiling=no
3663  else
3664    if test "$cross_compiling" = maybe; then
3665	cross_compiling=yes
3666    else
3667	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3668$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3669as_fn_error $? "cannot run C compiled programs.
3670If you meant to cross compile, use \`--host'.
3671See \`config.log' for more details" "$LINENO" 5; }
3672    fi
3673  fi
3674fi
3675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3676$as_echo "$cross_compiling" >&6; }
3677
3678rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3679ac_clean_files=$ac_clean_files_save
3680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3681$as_echo_n "checking for suffix of object files... " >&6; }
3682if ${ac_cv_objext+:} false; then :
3683  $as_echo_n "(cached) " >&6
3684else
3685  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3686/* end confdefs.h.  */
3687
3688int
3689main ()
3690{
3691
3692  ;
3693  return 0;
3694}
3695_ACEOF
3696rm -f conftest.o conftest.obj
3697if { { ac_try="$ac_compile"
3698case "(($ac_try" in
3699  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3700  *) ac_try_echo=$ac_try;;
3701esac
3702eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3703$as_echo "$ac_try_echo"; } >&5
3704  (eval "$ac_compile") 2>&5
3705  ac_status=$?
3706  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3707  test $ac_status = 0; }; then :
3708  for ac_file in conftest.o conftest.obj conftest.*; do
3709  test -f "$ac_file" || continue;
3710  case $ac_file in
3711    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3712    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3713       break;;
3714  esac
3715done
3716else
3717  $as_echo "$as_me: failed program was:" >&5
3718sed 's/^/| /' conftest.$ac_ext >&5
3719
3720{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3721$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3722as_fn_error $? "cannot compute suffix of object files: cannot compile
3723See \`config.log' for more details" "$LINENO" 5; }
3724fi
3725rm -f conftest.$ac_cv_objext conftest.$ac_ext
3726fi
3727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3728$as_echo "$ac_cv_objext" >&6; }
3729OBJEXT=$ac_cv_objext
3730ac_objext=$OBJEXT
3731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3732$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3733if ${ac_cv_c_compiler_gnu+:} false; then :
3734  $as_echo_n "(cached) " >&6
3735else
3736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3737/* end confdefs.h.  */
3738
3739int
3740main ()
3741{
3742#ifndef __GNUC__
3743       choke me
3744#endif
3745
3746  ;
3747  return 0;
3748}
3749_ACEOF
3750if ac_fn_c_try_compile "$LINENO"; then :
3751  ac_compiler_gnu=yes
3752else
3753  ac_compiler_gnu=no
3754fi
3755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3756ac_cv_c_compiler_gnu=$ac_compiler_gnu
3757
3758fi
3759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3760$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3761if test $ac_compiler_gnu = yes; then
3762  GCC=yes
3763else
3764  GCC=
3765fi
3766ac_test_CFLAGS=${CFLAGS+set}
3767ac_save_CFLAGS=$CFLAGS
3768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3769$as_echo_n "checking whether $CC accepts -g... " >&6; }
3770if ${ac_cv_prog_cc_g+:} false; then :
3771  $as_echo_n "(cached) " >&6
3772else
3773  ac_save_c_werror_flag=$ac_c_werror_flag
3774   ac_c_werror_flag=yes
3775   ac_cv_prog_cc_g=no
3776   CFLAGS="-g"
3777   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3778/* end confdefs.h.  */
3779
3780int
3781main ()
3782{
3783
3784  ;
3785  return 0;
3786}
3787_ACEOF
3788if ac_fn_c_try_compile "$LINENO"; then :
3789  ac_cv_prog_cc_g=yes
3790else
3791  CFLAGS=""
3792      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3793/* end confdefs.h.  */
3794
3795int
3796main ()
3797{
3798
3799  ;
3800  return 0;
3801}
3802_ACEOF
3803if ac_fn_c_try_compile "$LINENO"; then :
3804
3805else
3806  ac_c_werror_flag=$ac_save_c_werror_flag
3807	 CFLAGS="-g"
3808	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3809/* end confdefs.h.  */
3810
3811int
3812main ()
3813{
3814
3815  ;
3816  return 0;
3817}
3818_ACEOF
3819if ac_fn_c_try_compile "$LINENO"; then :
3820  ac_cv_prog_cc_g=yes
3821fi
3822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3823fi
3824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3825fi
3826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3827   ac_c_werror_flag=$ac_save_c_werror_flag
3828fi
3829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3830$as_echo "$ac_cv_prog_cc_g" >&6; }
3831if test "$ac_test_CFLAGS" = set; then
3832  CFLAGS=$ac_save_CFLAGS
3833elif test $ac_cv_prog_cc_g = yes; then
3834  if test "$GCC" = yes; then
3835    CFLAGS="-g -O2"
3836  else
3837    CFLAGS="-g"
3838  fi
3839else
3840  if test "$GCC" = yes; then
3841    CFLAGS="-O2"
3842  else
3843    CFLAGS=
3844  fi
3845fi
3846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3847$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3848if ${ac_cv_prog_cc_c89+:} false; then :
3849  $as_echo_n "(cached) " >&6
3850else
3851  ac_cv_prog_cc_c89=no
3852ac_save_CC=$CC
3853cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3854/* end confdefs.h.  */
3855#include <stdarg.h>
3856#include <stdio.h>
3857struct stat;
3858/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3859struct buf { int x; };
3860FILE * (*rcsopen) (struct buf *, struct stat *, int);
3861static char *e (p, i)
3862     char **p;
3863     int i;
3864{
3865  return p[i];
3866}
3867static char *f (char * (*g) (char **, int), char **p, ...)
3868{
3869  char *s;
3870  va_list v;
3871  va_start (v,p);
3872  s = g (p, va_arg (v,int));
3873  va_end (v);
3874  return s;
3875}
3876
3877/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3878   function prototypes and stuff, but not '\xHH' hex character constants.
3879   These don't provoke an error unfortunately, instead are silently treated
3880   as 'x'.  The following induces an error, until -std is added to get
3881   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3882   array size at least.  It's necessary to write '\x00'==0 to get something
3883   that's true only with -std.  */
3884int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3885
3886/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3887   inside strings and character constants.  */
3888#define FOO(x) 'x'
3889int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3890
3891int test (int i, double x);
3892struct s1 {int (*f) (int a);};
3893struct s2 {int (*f) (double a);};
3894int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3895int argc;
3896char **argv;
3897int
3898main ()
3899{
3900return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3901  ;
3902  return 0;
3903}
3904_ACEOF
3905for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3906	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3907do
3908  CC="$ac_save_CC $ac_arg"
3909  if ac_fn_c_try_compile "$LINENO"; then :
3910  ac_cv_prog_cc_c89=$ac_arg
3911fi
3912rm -f core conftest.err conftest.$ac_objext
3913  test "x$ac_cv_prog_cc_c89" != "xno" && break
3914done
3915rm -f conftest.$ac_ext
3916CC=$ac_save_CC
3917
3918fi
3919# AC_CACHE_VAL
3920case "x$ac_cv_prog_cc_c89" in
3921  x)
3922    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3923$as_echo "none needed" >&6; } ;;
3924  xno)
3925    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3926$as_echo "unsupported" >&6; } ;;
3927  *)
3928    CC="$CC $ac_cv_prog_cc_c89"
3929    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3930$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3931esac
3932if test "x$ac_cv_prog_cc_c89" != xno; then :
3933
3934fi
3935
3936ac_ext=c
3937ac_cpp='$CPP $CPPFLAGS'
3938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3940ac_compiler_gnu=$ac_cv_c_compiler_gnu
3941
3942depcc="$CC"   am_compiler_list=
3943
3944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3945$as_echo_n "checking dependency style of $depcc... " >&6; }
3946if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3947  $as_echo_n "(cached) " >&6
3948else
3949  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3950  # We make a subdir and do the tests there.  Otherwise we can end up
3951  # making bogus files that we don't know about and never remove.  For
3952  # instance it was reported that on HP-UX the gcc test will end up
3953  # making a dummy file named 'D' -- because '-MD' means "put the output
3954  # in D".
3955  rm -rf conftest.dir
3956  mkdir conftest.dir
3957  # Copy depcomp to subdir because otherwise we won't find it if we're
3958  # using a relative directory.
3959  cp "$am_depcomp" conftest.dir
3960  cd conftest.dir
3961  # We will build objects and dependencies in a subdirectory because
3962  # it helps to detect inapplicable dependency modes.  For instance
3963  # both Tru64's cc and ICC support -MD to output dependencies as a
3964  # side effect of compilation, but ICC will put the dependencies in
3965  # the current directory while Tru64 will put them in the object
3966  # directory.
3967  mkdir sub
3968
3969  am_cv_CC_dependencies_compiler_type=none
3970  if test "$am_compiler_list" = ""; then
3971     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3972  fi
3973  am__universal=false
3974  case " $depcc " in #(
3975     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3976     esac
3977
3978  for depmode in $am_compiler_list; do
3979    # Setup a source with many dependencies, because some compilers
3980    # like to wrap large dependency lists on column 80 (with \), and
3981    # we should not choose a depcomp mode which is confused by this.
3982    #
3983    # We need to recreate these files for each test, as the compiler may
3984    # overwrite some of them when testing with obscure command lines.
3985    # This happens at least with the AIX C compiler.
3986    : > sub/conftest.c
3987    for i in 1 2 3 4 5 6; do
3988      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3989      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3990      # Solaris 10 /bin/sh.
3991      echo '/* dummy */' > sub/conftst$i.h
3992    done
3993    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3994
3995    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3996    # mode.  It turns out that the SunPro C++ compiler does not properly
3997    # handle '-M -o', and we need to detect this.  Also, some Intel
3998    # versions had trouble with output in subdirs.
3999    am__obj=sub/conftest.${OBJEXT-o}
4000    am__minus_obj="-o $am__obj"
4001    case $depmode in
4002    gcc)
4003      # This depmode causes a compiler race in universal mode.
4004      test "$am__universal" = false || continue
4005      ;;
4006    nosideeffect)
4007      # After this tag, mechanisms are not by side-effect, so they'll
4008      # only be used when explicitly requested.
4009      if test "x$enable_dependency_tracking" = xyes; then
4010	continue
4011      else
4012	break
4013      fi
4014      ;;
4015    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4016      # This compiler won't grok '-c -o', but also, the minuso test has
4017      # not run yet.  These depmodes are late enough in the game, and
4018      # so weak that their functioning should not be impacted.
4019      am__obj=conftest.${OBJEXT-o}
4020      am__minus_obj=
4021      ;;
4022    none) break ;;
4023    esac
4024    if depmode=$depmode \
4025       source=sub/conftest.c object=$am__obj \
4026       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4027       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4028         >/dev/null 2>conftest.err &&
4029       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4030       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4031       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4032       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4033      # icc doesn't choke on unknown options, it will just issue warnings
4034      # or remarks (even with -Werror).  So we grep stderr for any message
4035      # that says an option was ignored or not supported.
4036      # When given -MP, icc 7.0 and 7.1 complain thusly:
4037      #   icc: Command line warning: ignoring option '-M'; no argument required
4038      # The diagnosis changed in icc 8.0:
4039      #   icc: Command line remark: option '-MP' not supported
4040      if (grep 'ignoring option' conftest.err ||
4041          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4042        am_cv_CC_dependencies_compiler_type=$depmode
4043        break
4044      fi
4045    fi
4046  done
4047
4048  cd ..
4049  rm -rf conftest.dir
4050else
4051  am_cv_CC_dependencies_compiler_type=none
4052fi
4053
4054fi
4055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4056$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4057CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4058
4059 if
4060  test "x$enable_dependency_tracking" != xno \
4061  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4062  am__fastdepCC_TRUE=
4063  am__fastdepCC_FALSE='#'
4064else
4065  am__fastdepCC_TRUE='#'
4066  am__fastdepCC_FALSE=
4067fi
4068
4069
4070
4071ac_ext=c
4072ac_cpp='$CPP $CPPFLAGS'
4073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4075ac_compiler_gnu=$ac_cv_c_compiler_gnu
4076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4077$as_echo_n "checking how to run the C preprocessor... " >&6; }
4078# On Suns, sometimes $CPP names a directory.
4079if test -n "$CPP" && test -d "$CPP"; then
4080  CPP=
4081fi
4082if test -z "$CPP"; then
4083  if ${ac_cv_prog_CPP+:} false; then :
4084  $as_echo_n "(cached) " >&6
4085else
4086      # Double quotes because CPP needs to be expanded
4087    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4088    do
4089      ac_preproc_ok=false
4090for ac_c_preproc_warn_flag in '' yes
4091do
4092  # Use a header file that comes with gcc, so configuring glibc
4093  # with a fresh cross-compiler works.
4094  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4095  # <limits.h> exists even on freestanding compilers.
4096  # On the NeXT, cc -E runs the code through the compiler's parser,
4097  # not just through cpp. "Syntax error" is here to catch this case.
4098  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4099/* end confdefs.h.  */
4100#ifdef __STDC__
4101# include <limits.h>
4102#else
4103# include <assert.h>
4104#endif
4105		     Syntax error
4106_ACEOF
4107if ac_fn_c_try_cpp "$LINENO"; then :
4108
4109else
4110  # Broken: fails on valid input.
4111continue
4112fi
4113rm -f conftest.err conftest.i conftest.$ac_ext
4114
4115  # OK, works on sane cases.  Now check whether nonexistent headers
4116  # can be detected and how.
4117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118/* end confdefs.h.  */
4119#include <ac_nonexistent.h>
4120_ACEOF
4121if ac_fn_c_try_cpp "$LINENO"; then :
4122  # Broken: success on invalid input.
4123continue
4124else
4125  # Passes both tests.
4126ac_preproc_ok=:
4127break
4128fi
4129rm -f conftest.err conftest.i conftest.$ac_ext
4130
4131done
4132# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4133rm -f conftest.i conftest.err conftest.$ac_ext
4134if $ac_preproc_ok; then :
4135  break
4136fi
4137
4138    done
4139    ac_cv_prog_CPP=$CPP
4140
4141fi
4142  CPP=$ac_cv_prog_CPP
4143else
4144  ac_cv_prog_CPP=$CPP
4145fi
4146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4147$as_echo "$CPP" >&6; }
4148ac_preproc_ok=false
4149for ac_c_preproc_warn_flag in '' yes
4150do
4151  # Use a header file that comes with gcc, so configuring glibc
4152  # with a fresh cross-compiler works.
4153  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4154  # <limits.h> exists even on freestanding compilers.
4155  # On the NeXT, cc -E runs the code through the compiler's parser,
4156  # not just through cpp. "Syntax error" is here to catch this case.
4157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4158/* end confdefs.h.  */
4159#ifdef __STDC__
4160# include <limits.h>
4161#else
4162# include <assert.h>
4163#endif
4164		     Syntax error
4165_ACEOF
4166if ac_fn_c_try_cpp "$LINENO"; then :
4167
4168else
4169  # Broken: fails on valid input.
4170continue
4171fi
4172rm -f conftest.err conftest.i conftest.$ac_ext
4173
4174  # OK, works on sane cases.  Now check whether nonexistent headers
4175  # can be detected and how.
4176  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4177/* end confdefs.h.  */
4178#include <ac_nonexistent.h>
4179_ACEOF
4180if ac_fn_c_try_cpp "$LINENO"; then :
4181  # Broken: success on invalid input.
4182continue
4183else
4184  # Passes both tests.
4185ac_preproc_ok=:
4186break
4187fi
4188rm -f conftest.err conftest.i conftest.$ac_ext
4189
4190done
4191# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4192rm -f conftest.i conftest.err conftest.$ac_ext
4193if $ac_preproc_ok; then :
4194
4195else
4196  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4197$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4198as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4199See \`config.log' for more details" "$LINENO" 5; }
4200fi
4201
4202ac_ext=c
4203ac_cpp='$CPP $CPPFLAGS'
4204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4206ac_compiler_gnu=$ac_cv_c_compiler_gnu
4207
4208
4209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4210$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4211if ${ac_cv_path_GREP+:} false; then :
4212  $as_echo_n "(cached) " >&6
4213else
4214  if test -z "$GREP"; then
4215  ac_path_GREP_found=false
4216  # Loop through the user's path and test for each of PROGNAME-LIST
4217  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4218for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4219do
4220  IFS=$as_save_IFS
4221  test -z "$as_dir" && as_dir=.
4222    for ac_prog in grep ggrep; do
4223    for ac_exec_ext in '' $ac_executable_extensions; do
4224      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4225      as_fn_executable_p "$ac_path_GREP" || continue
4226# Check for GNU ac_path_GREP and select it if it is found.
4227  # Check for GNU $ac_path_GREP
4228case `"$ac_path_GREP" --version 2>&1` in
4229*GNU*)
4230  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4231*)
4232  ac_count=0
4233  $as_echo_n 0123456789 >"conftest.in"
4234  while :
4235  do
4236    cat "conftest.in" "conftest.in" >"conftest.tmp"
4237    mv "conftest.tmp" "conftest.in"
4238    cp "conftest.in" "conftest.nl"
4239    $as_echo 'GREP' >> "conftest.nl"
4240    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4241    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4242    as_fn_arith $ac_count + 1 && ac_count=$as_val
4243    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4244      # Best one so far, save it but keep looking for a better one
4245      ac_cv_path_GREP="$ac_path_GREP"
4246      ac_path_GREP_max=$ac_count
4247    fi
4248    # 10*(2^10) chars as input seems more than enough
4249    test $ac_count -gt 10 && break
4250  done
4251  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4252esac
4253
4254      $ac_path_GREP_found && break 3
4255    done
4256  done
4257  done
4258IFS=$as_save_IFS
4259  if test -z "$ac_cv_path_GREP"; then
4260    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4261  fi
4262else
4263  ac_cv_path_GREP=$GREP
4264fi
4265
4266fi
4267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4268$as_echo "$ac_cv_path_GREP" >&6; }
4269 GREP="$ac_cv_path_GREP"
4270
4271
4272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4273$as_echo_n "checking for egrep... " >&6; }
4274if ${ac_cv_path_EGREP+:} false; then :
4275  $as_echo_n "(cached) " >&6
4276else
4277  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4278   then ac_cv_path_EGREP="$GREP -E"
4279   else
4280     if test -z "$EGREP"; then
4281  ac_path_EGREP_found=false
4282  # Loop through the user's path and test for each of PROGNAME-LIST
4283  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4285do
4286  IFS=$as_save_IFS
4287  test -z "$as_dir" && as_dir=.
4288    for ac_prog in egrep; do
4289    for ac_exec_ext in '' $ac_executable_extensions; do
4290      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4291      as_fn_executable_p "$ac_path_EGREP" || continue
4292# Check for GNU ac_path_EGREP and select it if it is found.
4293  # Check for GNU $ac_path_EGREP
4294case `"$ac_path_EGREP" --version 2>&1` in
4295*GNU*)
4296  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4297*)
4298  ac_count=0
4299  $as_echo_n 0123456789 >"conftest.in"
4300  while :
4301  do
4302    cat "conftest.in" "conftest.in" >"conftest.tmp"
4303    mv "conftest.tmp" "conftest.in"
4304    cp "conftest.in" "conftest.nl"
4305    $as_echo 'EGREP' >> "conftest.nl"
4306    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4307    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4308    as_fn_arith $ac_count + 1 && ac_count=$as_val
4309    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4310      # Best one so far, save it but keep looking for a better one
4311      ac_cv_path_EGREP="$ac_path_EGREP"
4312      ac_path_EGREP_max=$ac_count
4313    fi
4314    # 10*(2^10) chars as input seems more than enough
4315    test $ac_count -gt 10 && break
4316  done
4317  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4318esac
4319
4320      $ac_path_EGREP_found && break 3
4321    done
4322  done
4323  done
4324IFS=$as_save_IFS
4325  if test -z "$ac_cv_path_EGREP"; then
4326    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4327  fi
4328else
4329  ac_cv_path_EGREP=$EGREP
4330fi
4331
4332   fi
4333fi
4334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4335$as_echo "$ac_cv_path_EGREP" >&6; }
4336 EGREP="$ac_cv_path_EGREP"
4337
4338
4339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4340$as_echo_n "checking for ANSI C header files... " >&6; }
4341if ${ac_cv_header_stdc+:} false; then :
4342  $as_echo_n "(cached) " >&6
4343else
4344  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4345/* end confdefs.h.  */
4346#include <stdlib.h>
4347#include <stdarg.h>
4348#include <string.h>
4349#include <float.h>
4350
4351int
4352main ()
4353{
4354
4355  ;
4356  return 0;
4357}
4358_ACEOF
4359if ac_fn_c_try_compile "$LINENO"; then :
4360  ac_cv_header_stdc=yes
4361else
4362  ac_cv_header_stdc=no
4363fi
4364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4365
4366if test $ac_cv_header_stdc = yes; then
4367  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4368  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4369/* end confdefs.h.  */
4370#include <string.h>
4371
4372_ACEOF
4373if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4374  $EGREP "memchr" >/dev/null 2>&1; then :
4375
4376else
4377  ac_cv_header_stdc=no
4378fi
4379rm -f conftest*
4380
4381fi
4382
4383if test $ac_cv_header_stdc = yes; then
4384  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4385  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4386/* end confdefs.h.  */
4387#include <stdlib.h>
4388
4389_ACEOF
4390if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4391  $EGREP "free" >/dev/null 2>&1; then :
4392
4393else
4394  ac_cv_header_stdc=no
4395fi
4396rm -f conftest*
4397
4398fi
4399
4400if test $ac_cv_header_stdc = yes; then
4401  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4402  if test "$cross_compiling" = yes; then :
4403  :
4404else
4405  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4406/* end confdefs.h.  */
4407#include <ctype.h>
4408#include <stdlib.h>
4409#if ((' ' & 0x0FF) == 0x020)
4410# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4411# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4412#else
4413# define ISLOWER(c) \
4414		   (('a' <= (c) && (c) <= 'i') \
4415		     || ('j' <= (c) && (c) <= 'r') \
4416		     || ('s' <= (c) && (c) <= 'z'))
4417# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4418#endif
4419
4420#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4421int
4422main ()
4423{
4424  int i;
4425  for (i = 0; i < 256; i++)
4426    if (XOR (islower (i), ISLOWER (i))
4427	|| toupper (i) != TOUPPER (i))
4428      return 2;
4429  return 0;
4430}
4431_ACEOF
4432if ac_fn_c_try_run "$LINENO"; then :
4433
4434else
4435  ac_cv_header_stdc=no
4436fi
4437rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4438  conftest.$ac_objext conftest.beam conftest.$ac_ext
4439fi
4440
4441fi
4442fi
4443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4444$as_echo "$ac_cv_header_stdc" >&6; }
4445if test $ac_cv_header_stdc = yes; then
4446
4447$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4448
4449fi
4450
4451# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4452for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4453		  inttypes.h stdint.h unistd.h
4454do :
4455  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4456ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4457"
4458if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4459  cat >>confdefs.h <<_ACEOF
4460#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4461_ACEOF
4462
4463fi
4464
4465done
4466
4467
4468for ac_header in stdlib.h
4469do :
4470  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4471if test "x$ac_cv_header_stdlib_h" = xyes; then :
4472  cat >>confdefs.h <<_ACEOF
4473#define HAVE_STDLIB_H 1
4474_ACEOF
4475
4476else
4477  as_fn_error $? "cannot find stdlib.h, bailing out" "$LINENO" 5
4478fi
4479
4480done
4481
4482for ac_header in stdio.h
4483do :
4484  ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
4485if test "x$ac_cv_header_stdio_h" = xyes; then :
4486  cat >>confdefs.h <<_ACEOF
4487#define HAVE_STDIO_H 1
4488_ACEOF
4489
4490else
4491  as_fn_error $? "cannot find stdio.h, bailing out" "$LINENO" 5
4492fi
4493
4494done
4495
4496for ac_header in string.h
4497do :
4498  ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
4499if test "x$ac_cv_header_string_h" = xyes; then :
4500  cat >>confdefs.h <<_ACEOF
4501#define HAVE_STRING_H 1
4502_ACEOF
4503
4504else
4505  as_fn_error $? "cannot find string.h, bailing out" "$LINENO" 5
4506fi
4507
4508done
4509
4510for ac_header in memory.h
4511do :
4512  ac_fn_c_check_header_mongrel "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
4513if test "x$ac_cv_header_memory_h" = xyes; then :
4514  cat >>confdefs.h <<_ACEOF
4515#define HAVE_MEMORY_H 1
4516_ACEOF
4517
4518else
4519  as_fn_error $? "cannot find memory.h, bailing out" "$LINENO" 5
4520fi
4521
4522done
4523
4524for ac_header in math.h
4525do :
4526  ac_fn_c_check_header_mongrel "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
4527if test "x$ac_cv_header_math_h" = xyes; then :
4528  cat >>confdefs.h <<_ACEOF
4529#define HAVE_MATH_H 1
4530_ACEOF
4531
4532else
4533  as_fn_error $? "cannot find math.h, bailing out" "$LINENO" 5
4534fi
4535
4536done
4537
4538for ac_header in float.h
4539do :
4540  ac_fn_c_check_header_mongrel "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
4541if test "x$ac_cv_header_float_h" = xyes; then :
4542  cat >>confdefs.h <<_ACEOF
4543#define HAVE_FLOAT_H 1
4544_ACEOF
4545
4546else
4547  as_fn_error $? "cannot find float.h, bailing out" "$LINENO" 5
4548fi
4549
4550done
4551
4552for ac_header in jpeglib.h
4553do :
4554  ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
4555if test "x$ac_cv_header_jpeglib_h" = xyes; then :
4556  cat >>confdefs.h <<_ACEOF
4557#define HAVE_JPEGLIB_H 1
4558_ACEOF
4559
4560else
4561  as_fn_error $? "cannot find jpeglib.h, bailing out" "$LINENO" 5
4562fi
4563
4564done
4565
4566for ac_header in jerror.h
4567do :
4568  ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
4569if test "x$ac_cv_header_jerror_h" = xyes; then :
4570  cat >>confdefs.h <<_ACEOF
4571#define HAVE_JERROR_H 1
4572_ACEOF
4573
4574else
4575  as_fn_error $? "cannot find jerror.h, bailing out" "$LINENO" 5
4576fi
4577
4578done
4579
4580for ac_header in png.h
4581do :
4582  ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
4583if test "x$ac_cv_header_png_h" = xyes; then :
4584  cat >>confdefs.h <<_ACEOF
4585#define HAVE_PNG_H 1
4586_ACEOF
4587
4588else
4589  as_fn_error $? "cannot find png.h, bailing out" "$LINENO" 5
4590fi
4591
4592done
4593
4594for ac_header in zlib.h
4595do :
4596  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
4597if test "x$ac_cv_header_zlib_h" = xyes; then :
4598  cat >>confdefs.h <<_ACEOF
4599#define HAVE_ZLIB_H 1
4600_ACEOF
4601
4602else
4603  as_fn_error $? "cannot find zlib.h, bailing out" "$LINENO" 5
4604fi
4605
4606done
4607
4608for ac_header in gif_lib.h
4609do :
4610  ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
4611if test "x$ac_cv_header_gif_lib_h" = xyes; then :
4612  cat >>confdefs.h <<_ACEOF
4613#define HAVE_GIF_LIB_H 1
4614_ACEOF
4615
4616else
4617  as_fn_error $? "cannot find gif_lib.h, bailing out" "$LINENO" 5
4618fi
4619
4620done
4621
4622for ac_header in lzma.h
4623do :
4624  ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
4625if test "x$ac_cv_header_lzma_h" = xyes; then :
4626  cat >>confdefs.h <<_ACEOF
4627#define HAVE_LZMA_H 1
4628_ACEOF
4629
4630else
4631  as_fn_error $? "cannot find lzma.h, bailing out" "$LINENO" 5
4632fi
4633
4634done
4635
4636
4637#
4638# testing GeoTiff headers
4639# on some systems they are located on -/include
4640# on other systems they are on -/include/geotiff
4641# or even on -/include/libgeotiff
4642#
4643# this patch was kindly contributed by Brad Hards
4644# 2011-09-02
4645#
4646for ac_header in geotiff/geotiff.h
4647do :
4648  ac_fn_c_check_header_mongrel "$LINENO" "geotiff/geotiff.h" "ac_cv_header_geotiff_geotiff_h" "$ac_includes_default"
4649if test "x$ac_cv_header_geotiff_geotiff_h" = xyes; then :
4650  cat >>confdefs.h <<_ACEOF
4651#define HAVE_GEOTIFF_GEOTIFF_H 1
4652_ACEOF
4653
4654fi
4655
4656done
4657
4658for ac_header in libgeotiff/geotiff.h
4659do :
4660  ac_fn_c_check_header_mongrel "$LINENO" "libgeotiff/geotiff.h" "ac_cv_header_libgeotiff_geotiff_h" "$ac_includes_default"
4661if test "x$ac_cv_header_libgeotiff_geotiff_h" = xyes; then :
4662  cat >>confdefs.h <<_ACEOF
4663#define HAVE_LIBGEOTIFF_GEOTIFF_H 1
4664_ACEOF
4665
4666fi
4667
4668done
4669
4670for ac_header in geotiff.h
4671do :
4672  ac_fn_c_check_header_mongrel "$LINENO" "geotiff.h" "ac_cv_header_geotiff_h" "$ac_includes_default"
4673if test "x$ac_cv_header_geotiff_h" = xyes; then :
4674  cat >>confdefs.h <<_ACEOF
4675#define HAVE_GEOTIFF_H 1
4676_ACEOF
4677
4678fi
4679
4680done
4681
4682if test x"$ac_cv_header_geotiff_geotiff_h" != x"yes" &&
4683    test x"$ac_cv_header_libgeotiff_geotiff_h" != x"yes" &&
4684    test x"$ac_cv_header_geotiff_h" != x"yes";
4685then
4686    as_fn_error $? "'libgeotiff' is required but the header (geotiff.h) doesn't seem to be installed on this system" "$LINENO" 5
4687fi
4688
4689
4690# Checks for programs.
4691ac_ext=cpp
4692ac_cpp='$CXXCPP $CPPFLAGS'
4693ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4694ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4695ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4696if test -z "$CXX"; then
4697  if test -n "$CCC"; then
4698    CXX=$CCC
4699  else
4700    if test -n "$ac_tool_prefix"; then
4701  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4702  do
4703    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4704set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4706$as_echo_n "checking for $ac_word... " >&6; }
4707if ${ac_cv_prog_CXX+:} false; then :
4708  $as_echo_n "(cached) " >&6
4709else
4710  if test -n "$CXX"; then
4711  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4712else
4713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4714for as_dir in $PATH
4715do
4716  IFS=$as_save_IFS
4717  test -z "$as_dir" && as_dir=.
4718    for ac_exec_ext in '' $ac_executable_extensions; do
4719  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4720    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4721    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4722    break 2
4723  fi
4724done
4725  done
4726IFS=$as_save_IFS
4727
4728fi
4729fi
4730CXX=$ac_cv_prog_CXX
4731if test -n "$CXX"; then
4732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4733$as_echo "$CXX" >&6; }
4734else
4735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4736$as_echo "no" >&6; }
4737fi
4738
4739
4740    test -n "$CXX" && break
4741  done
4742fi
4743if test -z "$CXX"; then
4744  ac_ct_CXX=$CXX
4745  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4746do
4747  # Extract the first word of "$ac_prog", so it can be a program name with args.
4748set dummy $ac_prog; ac_word=$2
4749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4750$as_echo_n "checking for $ac_word... " >&6; }
4751if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4752  $as_echo_n "(cached) " >&6
4753else
4754  if test -n "$ac_ct_CXX"; then
4755  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4756else
4757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758for as_dir in $PATH
4759do
4760  IFS=$as_save_IFS
4761  test -z "$as_dir" && as_dir=.
4762    for ac_exec_ext in '' $ac_executable_extensions; do
4763  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4764    ac_cv_prog_ac_ct_CXX="$ac_prog"
4765    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4766    break 2
4767  fi
4768done
4769  done
4770IFS=$as_save_IFS
4771
4772fi
4773fi
4774ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4775if test -n "$ac_ct_CXX"; then
4776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4777$as_echo "$ac_ct_CXX" >&6; }
4778else
4779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4780$as_echo "no" >&6; }
4781fi
4782
4783
4784  test -n "$ac_ct_CXX" && break
4785done
4786
4787  if test "x$ac_ct_CXX" = x; then
4788    CXX="g++"
4789  else
4790    case $cross_compiling:$ac_tool_warned in
4791yes:)
4792{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4793$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4794ac_tool_warned=yes ;;
4795esac
4796    CXX=$ac_ct_CXX
4797  fi
4798fi
4799
4800  fi
4801fi
4802# Provide some information about the compiler.
4803$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4804set X $ac_compile
4805ac_compiler=$2
4806for ac_option in --version -v -V -qversion; do
4807  { { ac_try="$ac_compiler $ac_option >&5"
4808case "(($ac_try" in
4809  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4810  *) ac_try_echo=$ac_try;;
4811esac
4812eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4813$as_echo "$ac_try_echo"; } >&5
4814  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4815  ac_status=$?
4816  if test -s conftest.err; then
4817    sed '10a\
4818... rest of stderr output deleted ...
4819         10q' conftest.err >conftest.er1
4820    cat conftest.er1 >&5
4821  fi
4822  rm -f conftest.er1 conftest.err
4823  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4824  test $ac_status = 0; }
4825done
4826
4827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4828$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4829if ${ac_cv_cxx_compiler_gnu+:} false; then :
4830  $as_echo_n "(cached) " >&6
4831else
4832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4833/* end confdefs.h.  */
4834
4835int
4836main ()
4837{
4838#ifndef __GNUC__
4839       choke me
4840#endif
4841
4842  ;
4843  return 0;
4844}
4845_ACEOF
4846if ac_fn_cxx_try_compile "$LINENO"; then :
4847  ac_compiler_gnu=yes
4848else
4849  ac_compiler_gnu=no
4850fi
4851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4852ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4853
4854fi
4855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4856$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4857if test $ac_compiler_gnu = yes; then
4858  GXX=yes
4859else
4860  GXX=
4861fi
4862ac_test_CXXFLAGS=${CXXFLAGS+set}
4863ac_save_CXXFLAGS=$CXXFLAGS
4864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4865$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4866if ${ac_cv_prog_cxx_g+:} false; then :
4867  $as_echo_n "(cached) " >&6
4868else
4869  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4870   ac_cxx_werror_flag=yes
4871   ac_cv_prog_cxx_g=no
4872   CXXFLAGS="-g"
4873   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4874/* end confdefs.h.  */
4875
4876int
4877main ()
4878{
4879
4880  ;
4881  return 0;
4882}
4883_ACEOF
4884if ac_fn_cxx_try_compile "$LINENO"; then :
4885  ac_cv_prog_cxx_g=yes
4886else
4887  CXXFLAGS=""
4888      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4889/* end confdefs.h.  */
4890
4891int
4892main ()
4893{
4894
4895  ;
4896  return 0;
4897}
4898_ACEOF
4899if ac_fn_cxx_try_compile "$LINENO"; then :
4900
4901else
4902  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4903	 CXXFLAGS="-g"
4904	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4905/* end confdefs.h.  */
4906
4907int
4908main ()
4909{
4910
4911  ;
4912  return 0;
4913}
4914_ACEOF
4915if ac_fn_cxx_try_compile "$LINENO"; then :
4916  ac_cv_prog_cxx_g=yes
4917fi
4918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4919fi
4920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4921fi
4922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4923   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4924fi
4925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4926$as_echo "$ac_cv_prog_cxx_g" >&6; }
4927if test "$ac_test_CXXFLAGS" = set; then
4928  CXXFLAGS=$ac_save_CXXFLAGS
4929elif test $ac_cv_prog_cxx_g = yes; then
4930  if test "$GXX" = yes; then
4931    CXXFLAGS="-g -O2"
4932  else
4933    CXXFLAGS="-g"
4934  fi
4935else
4936  if test "$GXX" = yes; then
4937    CXXFLAGS="-O2"
4938  else
4939    CXXFLAGS=
4940  fi
4941fi
4942ac_ext=c
4943ac_cpp='$CPP $CPPFLAGS'
4944ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4945ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4946ac_compiler_gnu=$ac_cv_c_compiler_gnu
4947
4948depcc="$CXX"  am_compiler_list=
4949
4950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4951$as_echo_n "checking dependency style of $depcc... " >&6; }
4952if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4953  $as_echo_n "(cached) " >&6
4954else
4955  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4956  # We make a subdir and do the tests there.  Otherwise we can end up
4957  # making bogus files that we don't know about and never remove.  For
4958  # instance it was reported that on HP-UX the gcc test will end up
4959  # making a dummy file named 'D' -- because '-MD' means "put the output
4960  # in D".
4961  rm -rf conftest.dir
4962  mkdir conftest.dir
4963  # Copy depcomp to subdir because otherwise we won't find it if we're
4964  # using a relative directory.
4965  cp "$am_depcomp" conftest.dir
4966  cd conftest.dir
4967  # We will build objects and dependencies in a subdirectory because
4968  # it helps to detect inapplicable dependency modes.  For instance
4969  # both Tru64's cc and ICC support -MD to output dependencies as a
4970  # side effect of compilation, but ICC will put the dependencies in
4971  # the current directory while Tru64 will put them in the object
4972  # directory.
4973  mkdir sub
4974
4975  am_cv_CXX_dependencies_compiler_type=none
4976  if test "$am_compiler_list" = ""; then
4977     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4978  fi
4979  am__universal=false
4980  case " $depcc " in #(
4981     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4982     esac
4983
4984  for depmode in $am_compiler_list; do
4985    # Setup a source with many dependencies, because some compilers
4986    # like to wrap large dependency lists on column 80 (with \), and
4987    # we should not choose a depcomp mode which is confused by this.
4988    #
4989    # We need to recreate these files for each test, as the compiler may
4990    # overwrite some of them when testing with obscure command lines.
4991    # This happens at least with the AIX C compiler.
4992    : > sub/conftest.c
4993    for i in 1 2 3 4 5 6; do
4994      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4995      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4996      # Solaris 10 /bin/sh.
4997      echo '/* dummy */' > sub/conftst$i.h
4998    done
4999    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5000
5001    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5002    # mode.  It turns out that the SunPro C++ compiler does not properly
5003    # handle '-M -o', and we need to detect this.  Also, some Intel
5004    # versions had trouble with output in subdirs.
5005    am__obj=sub/conftest.${OBJEXT-o}
5006    am__minus_obj="-o $am__obj"
5007    case $depmode in
5008    gcc)
5009      # This depmode causes a compiler race in universal mode.
5010      test "$am__universal" = false || continue
5011      ;;
5012    nosideeffect)
5013      # After this tag, mechanisms are not by side-effect, so they'll
5014      # only be used when explicitly requested.
5015      if test "x$enable_dependency_tracking" = xyes; then
5016	continue
5017      else
5018	break
5019      fi
5020      ;;
5021    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5022      # This compiler won't grok '-c -o', but also, the minuso test has
5023      # not run yet.  These depmodes are late enough in the game, and
5024      # so weak that their functioning should not be impacted.
5025      am__obj=conftest.${OBJEXT-o}
5026      am__minus_obj=
5027      ;;
5028    none) break ;;
5029    esac
5030    if depmode=$depmode \
5031       source=sub/conftest.c object=$am__obj \
5032       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5033       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5034         >/dev/null 2>conftest.err &&
5035       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5036       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5037       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5038       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5039      # icc doesn't choke on unknown options, it will just issue warnings
5040      # or remarks (even with -Werror).  So we grep stderr for any message
5041      # that says an option was ignored or not supported.
5042      # When given -MP, icc 7.0 and 7.1 complain thusly:
5043      #   icc: Command line warning: ignoring option '-M'; no argument required
5044      # The diagnosis changed in icc 8.0:
5045      #   icc: Command line remark: option '-MP' not supported
5046      if (grep 'ignoring option' conftest.err ||
5047          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5048        am_cv_CXX_dependencies_compiler_type=$depmode
5049        break
5050      fi
5051    fi
5052  done
5053
5054  cd ..
5055  rm -rf conftest.dir
5056else
5057  am_cv_CXX_dependencies_compiler_type=none
5058fi
5059
5060fi
5061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5062$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5063CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5064
5065 if
5066  test "x$enable_dependency_tracking" != xno \
5067  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5068  am__fastdepCXX_TRUE=
5069  am__fastdepCXX_FALSE='#'
5070else
5071  am__fastdepCXX_TRUE='#'
5072  am__fastdepCXX_FALSE=
5073fi
5074
5075
5076ac_ext=c
5077ac_cpp='$CPP $CPPFLAGS'
5078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5080ac_compiler_gnu=$ac_cv_c_compiler_gnu
5081if test -n "$ac_tool_prefix"; then
5082  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5083set dummy ${ac_tool_prefix}gcc; ac_word=$2
5084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5085$as_echo_n "checking for $ac_word... " >&6; }
5086if ${ac_cv_prog_CC+:} false; then :
5087  $as_echo_n "(cached) " >&6
5088else
5089  if test -n "$CC"; then
5090  ac_cv_prog_CC="$CC" # Let the user override the test.
5091else
5092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093for as_dir in $PATH
5094do
5095  IFS=$as_save_IFS
5096  test -z "$as_dir" && as_dir=.
5097    for ac_exec_ext in '' $ac_executable_extensions; do
5098  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5099    ac_cv_prog_CC="${ac_tool_prefix}gcc"
5100    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5101    break 2
5102  fi
5103done
5104  done
5105IFS=$as_save_IFS
5106
5107fi
5108fi
5109CC=$ac_cv_prog_CC
5110if test -n "$CC"; then
5111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5112$as_echo "$CC" >&6; }
5113else
5114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5115$as_echo "no" >&6; }
5116fi
5117
5118
5119fi
5120if test -z "$ac_cv_prog_CC"; then
5121  ac_ct_CC=$CC
5122  # Extract the first word of "gcc", so it can be a program name with args.
5123set dummy gcc; ac_word=$2
5124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5125$as_echo_n "checking for $ac_word... " >&6; }
5126if ${ac_cv_prog_ac_ct_CC+:} false; then :
5127  $as_echo_n "(cached) " >&6
5128else
5129  if test -n "$ac_ct_CC"; then
5130  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5131else
5132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5133for as_dir in $PATH
5134do
5135  IFS=$as_save_IFS
5136  test -z "$as_dir" && as_dir=.
5137    for ac_exec_ext in '' $ac_executable_extensions; do
5138  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5139    ac_cv_prog_ac_ct_CC="gcc"
5140    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5141    break 2
5142  fi
5143done
5144  done
5145IFS=$as_save_IFS
5146
5147fi
5148fi
5149ac_ct_CC=$ac_cv_prog_ac_ct_CC
5150if test -n "$ac_ct_CC"; then
5151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5152$as_echo "$ac_ct_CC" >&6; }
5153else
5154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5155$as_echo "no" >&6; }
5156fi
5157
5158  if test "x$ac_ct_CC" = x; then
5159    CC=""
5160  else
5161    case $cross_compiling:$ac_tool_warned in
5162yes:)
5163{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5164$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5165ac_tool_warned=yes ;;
5166esac
5167    CC=$ac_ct_CC
5168  fi
5169else
5170  CC="$ac_cv_prog_CC"
5171fi
5172
5173if test -z "$CC"; then
5174          if test -n "$ac_tool_prefix"; then
5175    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5176set dummy ${ac_tool_prefix}cc; ac_word=$2
5177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5178$as_echo_n "checking for $ac_word... " >&6; }
5179if ${ac_cv_prog_CC+:} false; then :
5180  $as_echo_n "(cached) " >&6
5181else
5182  if test -n "$CC"; then
5183  ac_cv_prog_CC="$CC" # Let the user override the test.
5184else
5185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186for as_dir in $PATH
5187do
5188  IFS=$as_save_IFS
5189  test -z "$as_dir" && as_dir=.
5190    for ac_exec_ext in '' $ac_executable_extensions; do
5191  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5192    ac_cv_prog_CC="${ac_tool_prefix}cc"
5193    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5194    break 2
5195  fi
5196done
5197  done
5198IFS=$as_save_IFS
5199
5200fi
5201fi
5202CC=$ac_cv_prog_CC
5203if test -n "$CC"; then
5204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5205$as_echo "$CC" >&6; }
5206else
5207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5208$as_echo "no" >&6; }
5209fi
5210
5211
5212  fi
5213fi
5214if test -z "$CC"; then
5215  # Extract the first word of "cc", so it can be a program name with args.
5216set dummy cc; ac_word=$2
5217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5218$as_echo_n "checking for $ac_word... " >&6; }
5219if ${ac_cv_prog_CC+:} false; then :
5220  $as_echo_n "(cached) " >&6
5221else
5222  if test -n "$CC"; then
5223  ac_cv_prog_CC="$CC" # Let the user override the test.
5224else
5225  ac_prog_rejected=no
5226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5227for as_dir in $PATH
5228do
5229  IFS=$as_save_IFS
5230  test -z "$as_dir" && as_dir=.
5231    for ac_exec_ext in '' $ac_executable_extensions; do
5232  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5233    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5234       ac_prog_rejected=yes
5235       continue
5236     fi
5237    ac_cv_prog_CC="cc"
5238    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5239    break 2
5240  fi
5241done
5242  done
5243IFS=$as_save_IFS
5244
5245if test $ac_prog_rejected = yes; then
5246  # We found a bogon in the path, so make sure we never use it.
5247  set dummy $ac_cv_prog_CC
5248  shift
5249  if test $# != 0; then
5250    # We chose a different compiler from the bogus one.
5251    # However, it has the same basename, so the bogon will be chosen
5252    # first if we set CC to just the basename; use the full file name.
5253    shift
5254    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5255  fi
5256fi
5257fi
5258fi
5259CC=$ac_cv_prog_CC
5260if test -n "$CC"; then
5261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5262$as_echo "$CC" >&6; }
5263else
5264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5265$as_echo "no" >&6; }
5266fi
5267
5268
5269fi
5270if test -z "$CC"; then
5271  if test -n "$ac_tool_prefix"; then
5272  for ac_prog in cl.exe
5273  do
5274    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5275set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5277$as_echo_n "checking for $ac_word... " >&6; }
5278if ${ac_cv_prog_CC+:} false; then :
5279  $as_echo_n "(cached) " >&6
5280else
5281  if test -n "$CC"; then
5282  ac_cv_prog_CC="$CC" # Let the user override the test.
5283else
5284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285for as_dir in $PATH
5286do
5287  IFS=$as_save_IFS
5288  test -z "$as_dir" && as_dir=.
5289    for ac_exec_ext in '' $ac_executable_extensions; do
5290  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5291    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5292    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5293    break 2
5294  fi
5295done
5296  done
5297IFS=$as_save_IFS
5298
5299fi
5300fi
5301CC=$ac_cv_prog_CC
5302if test -n "$CC"; then
5303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5304$as_echo "$CC" >&6; }
5305else
5306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5307$as_echo "no" >&6; }
5308fi
5309
5310
5311    test -n "$CC" && break
5312  done
5313fi
5314if test -z "$CC"; then
5315  ac_ct_CC=$CC
5316  for ac_prog in cl.exe
5317do
5318  # Extract the first word of "$ac_prog", so it can be a program name with args.
5319set dummy $ac_prog; ac_word=$2
5320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5321$as_echo_n "checking for $ac_word... " >&6; }
5322if ${ac_cv_prog_ac_ct_CC+:} false; then :
5323  $as_echo_n "(cached) " >&6
5324else
5325  if test -n "$ac_ct_CC"; then
5326  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5327else
5328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5329for as_dir in $PATH
5330do
5331  IFS=$as_save_IFS
5332  test -z "$as_dir" && as_dir=.
5333    for ac_exec_ext in '' $ac_executable_extensions; do
5334  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5335    ac_cv_prog_ac_ct_CC="$ac_prog"
5336    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5337    break 2
5338  fi
5339done
5340  done
5341IFS=$as_save_IFS
5342
5343fi
5344fi
5345ac_ct_CC=$ac_cv_prog_ac_ct_CC
5346if test -n "$ac_ct_CC"; then
5347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5348$as_echo "$ac_ct_CC" >&6; }
5349else
5350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5351$as_echo "no" >&6; }
5352fi
5353
5354
5355  test -n "$ac_ct_CC" && break
5356done
5357
5358  if test "x$ac_ct_CC" = x; then
5359    CC=""
5360  else
5361    case $cross_compiling:$ac_tool_warned in
5362yes:)
5363{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5364$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5365ac_tool_warned=yes ;;
5366esac
5367    CC=$ac_ct_CC
5368  fi
5369fi
5370
5371fi
5372
5373
5374test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5375$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5376as_fn_error $? "no acceptable C compiler found in \$PATH
5377See \`config.log' for more details" "$LINENO" 5; }
5378
5379# Provide some information about the compiler.
5380$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5381set X $ac_compile
5382ac_compiler=$2
5383for ac_option in --version -v -V -qversion; do
5384  { { ac_try="$ac_compiler $ac_option >&5"
5385case "(($ac_try" in
5386  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5387  *) ac_try_echo=$ac_try;;
5388esac
5389eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5390$as_echo "$ac_try_echo"; } >&5
5391  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5392  ac_status=$?
5393  if test -s conftest.err; then
5394    sed '10a\
5395... rest of stderr output deleted ...
5396         10q' conftest.err >conftest.er1
5397    cat conftest.er1 >&5
5398  fi
5399  rm -f conftest.er1 conftest.err
5400  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5401  test $ac_status = 0; }
5402done
5403
5404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5405$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5406if ${ac_cv_c_compiler_gnu+:} false; then :
5407  $as_echo_n "(cached) " >&6
5408else
5409  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5410/* end confdefs.h.  */
5411
5412int
5413main ()
5414{
5415#ifndef __GNUC__
5416       choke me
5417#endif
5418
5419  ;
5420  return 0;
5421}
5422_ACEOF
5423if ac_fn_c_try_compile "$LINENO"; then :
5424  ac_compiler_gnu=yes
5425else
5426  ac_compiler_gnu=no
5427fi
5428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5429ac_cv_c_compiler_gnu=$ac_compiler_gnu
5430
5431fi
5432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5433$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5434if test $ac_compiler_gnu = yes; then
5435  GCC=yes
5436else
5437  GCC=
5438fi
5439ac_test_CFLAGS=${CFLAGS+set}
5440ac_save_CFLAGS=$CFLAGS
5441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5442$as_echo_n "checking whether $CC accepts -g... " >&6; }
5443if ${ac_cv_prog_cc_g+:} false; then :
5444  $as_echo_n "(cached) " >&6
5445else
5446  ac_save_c_werror_flag=$ac_c_werror_flag
5447   ac_c_werror_flag=yes
5448   ac_cv_prog_cc_g=no
5449   CFLAGS="-g"
5450   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451/* end confdefs.h.  */
5452
5453int
5454main ()
5455{
5456
5457  ;
5458  return 0;
5459}
5460_ACEOF
5461if ac_fn_c_try_compile "$LINENO"; then :
5462  ac_cv_prog_cc_g=yes
5463else
5464  CFLAGS=""
5465      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5466/* end confdefs.h.  */
5467
5468int
5469main ()
5470{
5471
5472  ;
5473  return 0;
5474}
5475_ACEOF
5476if ac_fn_c_try_compile "$LINENO"; then :
5477
5478else
5479  ac_c_werror_flag=$ac_save_c_werror_flag
5480	 CFLAGS="-g"
5481	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5482/* end confdefs.h.  */
5483
5484int
5485main ()
5486{
5487
5488  ;
5489  return 0;
5490}
5491_ACEOF
5492if ac_fn_c_try_compile "$LINENO"; then :
5493  ac_cv_prog_cc_g=yes
5494fi
5495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5496fi
5497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5498fi
5499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5500   ac_c_werror_flag=$ac_save_c_werror_flag
5501fi
5502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5503$as_echo "$ac_cv_prog_cc_g" >&6; }
5504if test "$ac_test_CFLAGS" = set; then
5505  CFLAGS=$ac_save_CFLAGS
5506elif test $ac_cv_prog_cc_g = yes; then
5507  if test "$GCC" = yes; then
5508    CFLAGS="-g -O2"
5509  else
5510    CFLAGS="-g"
5511  fi
5512else
5513  if test "$GCC" = yes; then
5514    CFLAGS="-O2"
5515  else
5516    CFLAGS=
5517  fi
5518fi
5519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5520$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5521if ${ac_cv_prog_cc_c89+:} false; then :
5522  $as_echo_n "(cached) " >&6
5523else
5524  ac_cv_prog_cc_c89=no
5525ac_save_CC=$CC
5526cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5527/* end confdefs.h.  */
5528#include <stdarg.h>
5529#include <stdio.h>
5530struct stat;
5531/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5532struct buf { int x; };
5533FILE * (*rcsopen) (struct buf *, struct stat *, int);
5534static char *e (p, i)
5535     char **p;
5536     int i;
5537{
5538  return p[i];
5539}
5540static char *f (char * (*g) (char **, int), char **p, ...)
5541{
5542  char *s;
5543  va_list v;
5544  va_start (v,p);
5545  s = g (p, va_arg (v,int));
5546  va_end (v);
5547  return s;
5548}
5549
5550/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5551   function prototypes and stuff, but not '\xHH' hex character constants.
5552   These don't provoke an error unfortunately, instead are silently treated
5553   as 'x'.  The following induces an error, until -std is added to get
5554   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5555   array size at least.  It's necessary to write '\x00'==0 to get something
5556   that's true only with -std.  */
5557int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5558
5559/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5560   inside strings and character constants.  */
5561#define FOO(x) 'x'
5562int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5563
5564int test (int i, double x);
5565struct s1 {int (*f) (int a);};
5566struct s2 {int (*f) (double a);};
5567int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5568int argc;
5569char **argv;
5570int
5571main ()
5572{
5573return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5574  ;
5575  return 0;
5576}
5577_ACEOF
5578for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5579	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5580do
5581  CC="$ac_save_CC $ac_arg"
5582  if ac_fn_c_try_compile "$LINENO"; then :
5583  ac_cv_prog_cc_c89=$ac_arg
5584fi
5585rm -f core conftest.err conftest.$ac_objext
5586  test "x$ac_cv_prog_cc_c89" != "xno" && break
5587done
5588rm -f conftest.$ac_ext
5589CC=$ac_save_CC
5590
5591fi
5592# AC_CACHE_VAL
5593case "x$ac_cv_prog_cc_c89" in
5594  x)
5595    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5596$as_echo "none needed" >&6; } ;;
5597  xno)
5598    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5599$as_echo "unsupported" >&6; } ;;
5600  *)
5601    CC="$CC $ac_cv_prog_cc_c89"
5602    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5603$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5604esac
5605if test "x$ac_cv_prog_cc_c89" != xno; then :
5606
5607fi
5608
5609ac_ext=c
5610ac_cpp='$CPP $CPPFLAGS'
5611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5613ac_compiler_gnu=$ac_cv_c_compiler_gnu
5614
5615depcc="$CC"   am_compiler_list=
5616
5617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5618$as_echo_n "checking dependency style of $depcc... " >&6; }
5619if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5620  $as_echo_n "(cached) " >&6
5621else
5622  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5623  # We make a subdir and do the tests there.  Otherwise we can end up
5624  # making bogus files that we don't know about and never remove.  For
5625  # instance it was reported that on HP-UX the gcc test will end up
5626  # making a dummy file named 'D' -- because '-MD' means "put the output
5627  # in D".
5628  rm -rf conftest.dir
5629  mkdir conftest.dir
5630  # Copy depcomp to subdir because otherwise we won't find it if we're
5631  # using a relative directory.
5632  cp "$am_depcomp" conftest.dir
5633  cd conftest.dir
5634  # We will build objects and dependencies in a subdirectory because
5635  # it helps to detect inapplicable dependency modes.  For instance
5636  # both Tru64's cc and ICC support -MD to output dependencies as a
5637  # side effect of compilation, but ICC will put the dependencies in
5638  # the current directory while Tru64 will put them in the object
5639  # directory.
5640  mkdir sub
5641
5642  am_cv_CC_dependencies_compiler_type=none
5643  if test "$am_compiler_list" = ""; then
5644     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5645  fi
5646  am__universal=false
5647  case " $depcc " in #(
5648     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5649     esac
5650
5651  for depmode in $am_compiler_list; do
5652    # Setup a source with many dependencies, because some compilers
5653    # like to wrap large dependency lists on column 80 (with \), and
5654    # we should not choose a depcomp mode which is confused by this.
5655    #
5656    # We need to recreate these files for each test, as the compiler may
5657    # overwrite some of them when testing with obscure command lines.
5658    # This happens at least with the AIX C compiler.
5659    : > sub/conftest.c
5660    for i in 1 2 3 4 5 6; do
5661      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5662      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5663      # Solaris 10 /bin/sh.
5664      echo '/* dummy */' > sub/conftst$i.h
5665    done
5666    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5667
5668    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5669    # mode.  It turns out that the SunPro C++ compiler does not properly
5670    # handle '-M -o', and we need to detect this.  Also, some Intel
5671    # versions had trouble with output in subdirs.
5672    am__obj=sub/conftest.${OBJEXT-o}
5673    am__minus_obj="-o $am__obj"
5674    case $depmode in
5675    gcc)
5676      # This depmode causes a compiler race in universal mode.
5677      test "$am__universal" = false || continue
5678      ;;
5679    nosideeffect)
5680      # After this tag, mechanisms are not by side-effect, so they'll
5681      # only be used when explicitly requested.
5682      if test "x$enable_dependency_tracking" = xyes; then
5683	continue
5684      else
5685	break
5686      fi
5687      ;;
5688    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5689      # This compiler won't grok '-c -o', but also, the minuso test has
5690      # not run yet.  These depmodes are late enough in the game, and
5691      # so weak that their functioning should not be impacted.
5692      am__obj=conftest.${OBJEXT-o}
5693      am__minus_obj=
5694      ;;
5695    none) break ;;
5696    esac
5697    if depmode=$depmode \
5698       source=sub/conftest.c object=$am__obj \
5699       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5700       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5701         >/dev/null 2>conftest.err &&
5702       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5703       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5704       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5705       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5706      # icc doesn't choke on unknown options, it will just issue warnings
5707      # or remarks (even with -Werror).  So we grep stderr for any message
5708      # that says an option was ignored or not supported.
5709      # When given -MP, icc 7.0 and 7.1 complain thusly:
5710      #   icc: Command line warning: ignoring option '-M'; no argument required
5711      # The diagnosis changed in icc 8.0:
5712      #   icc: Command line remark: option '-MP' not supported
5713      if (grep 'ignoring option' conftest.err ||
5714          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5715        am_cv_CC_dependencies_compiler_type=$depmode
5716        break
5717      fi
5718    fi
5719  done
5720
5721  cd ..
5722  rm -rf conftest.dir
5723else
5724  am_cv_CC_dependencies_compiler_type=none
5725fi
5726
5727fi
5728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5729$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5730CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5731
5732 if
5733  test "x$enable_dependency_tracking" != xno \
5734  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5735  am__fastdepCC_TRUE=
5736  am__fastdepCC_FALSE='#'
5737else
5738  am__fastdepCC_TRUE='#'
5739  am__fastdepCC_FALSE=
5740fi
5741
5742
5743ac_ext=c
5744ac_cpp='$CPP $CPPFLAGS'
5745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5747ac_compiler_gnu=$ac_cv_c_compiler_gnu
5748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5749$as_echo_n "checking how to run the C preprocessor... " >&6; }
5750# On Suns, sometimes $CPP names a directory.
5751if test -n "$CPP" && test -d "$CPP"; then
5752  CPP=
5753fi
5754if test -z "$CPP"; then
5755  if ${ac_cv_prog_CPP+:} false; then :
5756  $as_echo_n "(cached) " >&6
5757else
5758      # Double quotes because CPP needs to be expanded
5759    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5760    do
5761      ac_preproc_ok=false
5762for ac_c_preproc_warn_flag in '' yes
5763do
5764  # Use a header file that comes with gcc, so configuring glibc
5765  # with a fresh cross-compiler works.
5766  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5767  # <limits.h> exists even on freestanding compilers.
5768  # On the NeXT, cc -E runs the code through the compiler's parser,
5769  # not just through cpp. "Syntax error" is here to catch this case.
5770  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5771/* end confdefs.h.  */
5772#ifdef __STDC__
5773# include <limits.h>
5774#else
5775# include <assert.h>
5776#endif
5777		     Syntax error
5778_ACEOF
5779if ac_fn_c_try_cpp "$LINENO"; then :
5780
5781else
5782  # Broken: fails on valid input.
5783continue
5784fi
5785rm -f conftest.err conftest.i conftest.$ac_ext
5786
5787  # OK, works on sane cases.  Now check whether nonexistent headers
5788  # can be detected and how.
5789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5790/* end confdefs.h.  */
5791#include <ac_nonexistent.h>
5792_ACEOF
5793if ac_fn_c_try_cpp "$LINENO"; then :
5794  # Broken: success on invalid input.
5795continue
5796else
5797  # Passes both tests.
5798ac_preproc_ok=:
5799break
5800fi
5801rm -f conftest.err conftest.i conftest.$ac_ext
5802
5803done
5804# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5805rm -f conftest.i conftest.err conftest.$ac_ext
5806if $ac_preproc_ok; then :
5807  break
5808fi
5809
5810    done
5811    ac_cv_prog_CPP=$CPP
5812
5813fi
5814  CPP=$ac_cv_prog_CPP
5815else
5816  ac_cv_prog_CPP=$CPP
5817fi
5818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5819$as_echo "$CPP" >&6; }
5820ac_preproc_ok=false
5821for ac_c_preproc_warn_flag in '' yes
5822do
5823  # Use a header file that comes with gcc, so configuring glibc
5824  # with a fresh cross-compiler works.
5825  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5826  # <limits.h> exists even on freestanding compilers.
5827  # On the NeXT, cc -E runs the code through the compiler's parser,
5828  # not just through cpp. "Syntax error" is here to catch this case.
5829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5830/* end confdefs.h.  */
5831#ifdef __STDC__
5832# include <limits.h>
5833#else
5834# include <assert.h>
5835#endif
5836		     Syntax error
5837_ACEOF
5838if ac_fn_c_try_cpp "$LINENO"; then :
5839
5840else
5841  # Broken: fails on valid input.
5842continue
5843fi
5844rm -f conftest.err conftest.i conftest.$ac_ext
5845
5846  # OK, works on sane cases.  Now check whether nonexistent headers
5847  # can be detected and how.
5848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5849/* end confdefs.h.  */
5850#include <ac_nonexistent.h>
5851_ACEOF
5852if ac_fn_c_try_cpp "$LINENO"; then :
5853  # Broken: success on invalid input.
5854continue
5855else
5856  # Passes both tests.
5857ac_preproc_ok=:
5858break
5859fi
5860rm -f conftest.err conftest.i conftest.$ac_ext
5861
5862done
5863# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5864rm -f conftest.i conftest.err conftest.$ac_ext
5865if $ac_preproc_ok; then :
5866
5867else
5868  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5869$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5870as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5871See \`config.log' for more details" "$LINENO" 5; }
5872fi
5873
5874ac_ext=c
5875ac_cpp='$CPP $CPPFLAGS'
5876ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5877ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5878ac_compiler_gnu=$ac_cv_c_compiler_gnu
5879
5880
5881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5882$as_echo_n "checking whether ln -s works... " >&6; }
5883LN_S=$as_ln_s
5884if test "$LN_S" = "ln -s"; then
5885  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5886$as_echo "yes" >&6; }
5887else
5888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5889$as_echo "no, using $LN_S" >&6; }
5890fi
5891
5892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5893$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5894set x ${MAKE-make}
5895ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5896if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5897  $as_echo_n "(cached) " >&6
5898else
5899  cat >conftest.make <<\_ACEOF
5900SHELL = /bin/sh
5901all:
5902	@echo '@@@%%%=$(MAKE)=@@@%%%'
5903_ACEOF
5904# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5905case `${MAKE-make} -f conftest.make 2>/dev/null` in
5906  *@@@%%%=?*=@@@%%%*)
5907    eval ac_cv_prog_make_${ac_make}_set=yes;;
5908  *)
5909    eval ac_cv_prog_make_${ac_make}_set=no;;
5910esac
5911rm -f conftest.make
5912fi
5913if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5915$as_echo "yes" >&6; }
5916  SET_MAKE=
5917else
5918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5919$as_echo "no" >&6; }
5920  SET_MAKE="MAKE=${MAKE-make}"
5921fi
5922
5923# Make sure we can run config.sub.
5924$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5925  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5926
5927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5928$as_echo_n "checking build system type... " >&6; }
5929if ${ac_cv_build+:} false; then :
5930  $as_echo_n "(cached) " >&6
5931else
5932  ac_build_alias=$build_alias
5933test "x$ac_build_alias" = x &&
5934  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5935test "x$ac_build_alias" = x &&
5936  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5937ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5938  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5939
5940fi
5941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5942$as_echo "$ac_cv_build" >&6; }
5943case $ac_cv_build in
5944*-*-*) ;;
5945*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5946esac
5947build=$ac_cv_build
5948ac_save_IFS=$IFS; IFS='-'
5949set x $ac_cv_build
5950shift
5951build_cpu=$1
5952build_vendor=$2
5953shift; shift
5954# Remember, the first character of IFS is used to create $*,
5955# except with old shells:
5956build_os=$*
5957IFS=$ac_save_IFS
5958case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5959
5960
5961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5962$as_echo_n "checking host system type... " >&6; }
5963if ${ac_cv_host+:} false; then :
5964  $as_echo_n "(cached) " >&6
5965else
5966  if test "x$host_alias" = x; then
5967  ac_cv_host=$ac_cv_build
5968else
5969  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5970    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5971fi
5972
5973fi
5974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5975$as_echo "$ac_cv_host" >&6; }
5976case $ac_cv_host in
5977*-*-*) ;;
5978*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5979esac
5980host=$ac_cv_host
5981ac_save_IFS=$IFS; IFS='-'
5982set x $ac_cv_host
5983shift
5984host_cpu=$1
5985host_vendor=$2
5986shift; shift
5987# Remember, the first character of IFS is used to create $*,
5988# except with old shells:
5989host_os=$*
5990IFS=$ac_save_IFS
5991case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5992
5993
5994enable_win32_dll=yes
5995
5996case $host in
5997*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
5998  if test -n "$ac_tool_prefix"; then
5999  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6000set dummy ${ac_tool_prefix}as; ac_word=$2
6001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6002$as_echo_n "checking for $ac_word... " >&6; }
6003if ${ac_cv_prog_AS+:} false; then :
6004  $as_echo_n "(cached) " >&6
6005else
6006  if test -n "$AS"; then
6007  ac_cv_prog_AS="$AS" # Let the user override the test.
6008else
6009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010for as_dir in $PATH
6011do
6012  IFS=$as_save_IFS
6013  test -z "$as_dir" && as_dir=.
6014    for ac_exec_ext in '' $ac_executable_extensions; do
6015  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6016    ac_cv_prog_AS="${ac_tool_prefix}as"
6017    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6018    break 2
6019  fi
6020done
6021  done
6022IFS=$as_save_IFS
6023
6024fi
6025fi
6026AS=$ac_cv_prog_AS
6027if test -n "$AS"; then
6028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
6029$as_echo "$AS" >&6; }
6030else
6031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6032$as_echo "no" >&6; }
6033fi
6034
6035
6036fi
6037if test -z "$ac_cv_prog_AS"; then
6038  ac_ct_AS=$AS
6039  # Extract the first word of "as", so it can be a program name with args.
6040set dummy as; ac_word=$2
6041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6042$as_echo_n "checking for $ac_word... " >&6; }
6043if ${ac_cv_prog_ac_ct_AS+:} false; then :
6044  $as_echo_n "(cached) " >&6
6045else
6046  if test -n "$ac_ct_AS"; then
6047  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6048else
6049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6050for as_dir in $PATH
6051do
6052  IFS=$as_save_IFS
6053  test -z "$as_dir" && as_dir=.
6054    for ac_exec_ext in '' $ac_executable_extensions; do
6055  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6056    ac_cv_prog_ac_ct_AS="as"
6057    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6058    break 2
6059  fi
6060done
6061  done
6062IFS=$as_save_IFS
6063
6064fi
6065fi
6066ac_ct_AS=$ac_cv_prog_ac_ct_AS
6067if test -n "$ac_ct_AS"; then
6068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
6069$as_echo "$ac_ct_AS" >&6; }
6070else
6071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6072$as_echo "no" >&6; }
6073fi
6074
6075  if test "x$ac_ct_AS" = x; then
6076    AS="false"
6077  else
6078    case $cross_compiling:$ac_tool_warned in
6079yes:)
6080{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6081$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6082ac_tool_warned=yes ;;
6083esac
6084    AS=$ac_ct_AS
6085  fi
6086else
6087  AS="$ac_cv_prog_AS"
6088fi
6089
6090  if test -n "$ac_tool_prefix"; then
6091  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6092set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6094$as_echo_n "checking for $ac_word... " >&6; }
6095if ${ac_cv_prog_DLLTOOL+:} false; then :
6096  $as_echo_n "(cached) " >&6
6097else
6098  if test -n "$DLLTOOL"; then
6099  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6100else
6101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102for as_dir in $PATH
6103do
6104  IFS=$as_save_IFS
6105  test -z "$as_dir" && as_dir=.
6106    for ac_exec_ext in '' $ac_executable_extensions; do
6107  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6108    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6109    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6110    break 2
6111  fi
6112done
6113  done
6114IFS=$as_save_IFS
6115
6116fi
6117fi
6118DLLTOOL=$ac_cv_prog_DLLTOOL
6119if test -n "$DLLTOOL"; then
6120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6121$as_echo "$DLLTOOL" >&6; }
6122else
6123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6124$as_echo "no" >&6; }
6125fi
6126
6127
6128fi
6129if test -z "$ac_cv_prog_DLLTOOL"; then
6130  ac_ct_DLLTOOL=$DLLTOOL
6131  # Extract the first word of "dlltool", so it can be a program name with args.
6132set dummy dlltool; ac_word=$2
6133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6134$as_echo_n "checking for $ac_word... " >&6; }
6135if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6136  $as_echo_n "(cached) " >&6
6137else
6138  if test -n "$ac_ct_DLLTOOL"; then
6139  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6140else
6141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6142for as_dir in $PATH
6143do
6144  IFS=$as_save_IFS
6145  test -z "$as_dir" && as_dir=.
6146    for ac_exec_ext in '' $ac_executable_extensions; do
6147  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6148    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6149    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6150    break 2
6151  fi
6152done
6153  done
6154IFS=$as_save_IFS
6155
6156fi
6157fi
6158ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6159if test -n "$ac_ct_DLLTOOL"; then
6160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6161$as_echo "$ac_ct_DLLTOOL" >&6; }
6162else
6163  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6164$as_echo "no" >&6; }
6165fi
6166
6167  if test "x$ac_ct_DLLTOOL" = x; then
6168    DLLTOOL="false"
6169  else
6170    case $cross_compiling:$ac_tool_warned in
6171yes:)
6172{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6173$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6174ac_tool_warned=yes ;;
6175esac
6176    DLLTOOL=$ac_ct_DLLTOOL
6177  fi
6178else
6179  DLLTOOL="$ac_cv_prog_DLLTOOL"
6180fi
6181
6182  if test -n "$ac_tool_prefix"; then
6183  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6184set dummy ${ac_tool_prefix}objdump; ac_word=$2
6185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6186$as_echo_n "checking for $ac_word... " >&6; }
6187if ${ac_cv_prog_OBJDUMP+:} false; then :
6188  $as_echo_n "(cached) " >&6
6189else
6190  if test -n "$OBJDUMP"; then
6191  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6192else
6193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6194for as_dir in $PATH
6195do
6196  IFS=$as_save_IFS
6197  test -z "$as_dir" && as_dir=.
6198    for ac_exec_ext in '' $ac_executable_extensions; do
6199  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6200    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6201    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6202    break 2
6203  fi
6204done
6205  done
6206IFS=$as_save_IFS
6207
6208fi
6209fi
6210OBJDUMP=$ac_cv_prog_OBJDUMP
6211if test -n "$OBJDUMP"; then
6212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6213$as_echo "$OBJDUMP" >&6; }
6214else
6215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6216$as_echo "no" >&6; }
6217fi
6218
6219
6220fi
6221if test -z "$ac_cv_prog_OBJDUMP"; then
6222  ac_ct_OBJDUMP=$OBJDUMP
6223  # Extract the first word of "objdump", so it can be a program name with args.
6224set dummy objdump; ac_word=$2
6225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6226$as_echo_n "checking for $ac_word... " >&6; }
6227if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6228  $as_echo_n "(cached) " >&6
6229else
6230  if test -n "$ac_ct_OBJDUMP"; then
6231  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6232else
6233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6234for as_dir in $PATH
6235do
6236  IFS=$as_save_IFS
6237  test -z "$as_dir" && as_dir=.
6238    for ac_exec_ext in '' $ac_executable_extensions; do
6239  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6240    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6241    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6242    break 2
6243  fi
6244done
6245  done
6246IFS=$as_save_IFS
6247
6248fi
6249fi
6250ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6251if test -n "$ac_ct_OBJDUMP"; then
6252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6253$as_echo "$ac_ct_OBJDUMP" >&6; }
6254else
6255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6256$as_echo "no" >&6; }
6257fi
6258
6259  if test "x$ac_ct_OBJDUMP" = x; then
6260    OBJDUMP="false"
6261  else
6262    case $cross_compiling:$ac_tool_warned in
6263yes:)
6264{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6265$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6266ac_tool_warned=yes ;;
6267esac
6268    OBJDUMP=$ac_ct_OBJDUMP
6269  fi
6270else
6271  OBJDUMP="$ac_cv_prog_OBJDUMP"
6272fi
6273
6274  ;;
6275esac
6276
6277test -z "$AS" && AS=as
6278
6279
6280
6281
6282
6283test -z "$DLLTOOL" && DLLTOOL=dlltool
6284
6285
6286
6287
6288
6289test -z "$OBJDUMP" && OBJDUMP=objdump
6290
6291
6292
6293
6294
6295
6296
6297case `pwd` in
6298  *\ * | *\	*)
6299    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6300$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6301esac
6302
6303
6304
6305macro_version='2.4.2'
6306macro_revision='1.3337'
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320ltmain="$ac_aux_dir/ltmain.sh"
6321
6322# Backslashify metacharacters that are still active within
6323# double-quoted strings.
6324sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6325
6326# Same as above, but do not quote variable references.
6327double_quote_subst='s/\(["`\\]\)/\\\1/g'
6328
6329# Sed substitution to delay expansion of an escaped shell variable in a
6330# double_quote_subst'ed string.
6331delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6332
6333# Sed substitution to delay expansion of an escaped single quote.
6334delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6335
6336# Sed substitution to avoid accidental globbing in evaled expressions
6337no_glob_subst='s/\*/\\\*/g'
6338
6339ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6340ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6341ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6342
6343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6344$as_echo_n "checking how to print strings... " >&6; }
6345# Test print first, because it will be a builtin if present.
6346if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6347   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6348  ECHO='print -r --'
6349elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6350  ECHO='printf %s\n'
6351else
6352  # Use this function as a fallback that always works.
6353  func_fallback_echo ()
6354  {
6355    eval 'cat <<_LTECHO_EOF
6356$1
6357_LTECHO_EOF'
6358  }
6359  ECHO='func_fallback_echo'
6360fi
6361
6362# func_echo_all arg...
6363# Invoke $ECHO with all args, space-separated.
6364func_echo_all ()
6365{
6366    $ECHO ""
6367}
6368
6369case "$ECHO" in
6370  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6371$as_echo "printf" >&6; } ;;
6372  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6373$as_echo "print -r" >&6; } ;;
6374  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6375$as_echo "cat" >&6; } ;;
6376esac
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6392$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6393if ${ac_cv_path_SED+:} false; then :
6394  $as_echo_n "(cached) " >&6
6395else
6396            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6397     for ac_i in 1 2 3 4 5 6 7; do
6398       ac_script="$ac_script$as_nl$ac_script"
6399     done
6400     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6401     { ac_script=; unset ac_script;}
6402     if test -z "$SED"; then
6403  ac_path_SED_found=false
6404  # Loop through the user's path and test for each of PROGNAME-LIST
6405  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6406for as_dir in $PATH
6407do
6408  IFS=$as_save_IFS
6409  test -z "$as_dir" && as_dir=.
6410    for ac_prog in sed gsed; do
6411    for ac_exec_ext in '' $ac_executable_extensions; do
6412      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6413      as_fn_executable_p "$ac_path_SED" || continue
6414# Check for GNU ac_path_SED and select it if it is found.
6415  # Check for GNU $ac_path_SED
6416case `"$ac_path_SED" --version 2>&1` in
6417*GNU*)
6418  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6419*)
6420  ac_count=0
6421  $as_echo_n 0123456789 >"conftest.in"
6422  while :
6423  do
6424    cat "conftest.in" "conftest.in" >"conftest.tmp"
6425    mv "conftest.tmp" "conftest.in"
6426    cp "conftest.in" "conftest.nl"
6427    $as_echo '' >> "conftest.nl"
6428    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6429    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6430    as_fn_arith $ac_count + 1 && ac_count=$as_val
6431    if test $ac_count -gt ${ac_path_SED_max-0}; then
6432      # Best one so far, save it but keep looking for a better one
6433      ac_cv_path_SED="$ac_path_SED"
6434      ac_path_SED_max=$ac_count
6435    fi
6436    # 10*(2^10) chars as input seems more than enough
6437    test $ac_count -gt 10 && break
6438  done
6439  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6440esac
6441
6442      $ac_path_SED_found && break 3
6443    done
6444  done
6445  done
6446IFS=$as_save_IFS
6447  if test -z "$ac_cv_path_SED"; then
6448    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6449  fi
6450else
6451  ac_cv_path_SED=$SED
6452fi
6453
6454fi
6455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6456$as_echo "$ac_cv_path_SED" >&6; }
6457 SED="$ac_cv_path_SED"
6458  rm -f conftest.sed
6459
6460test -z "$SED" && SED=sed
6461Xsed="$SED -e 1s/^X//"
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6474$as_echo_n "checking for fgrep... " >&6; }
6475if ${ac_cv_path_FGREP+:} false; then :
6476  $as_echo_n "(cached) " >&6
6477else
6478  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6479   then ac_cv_path_FGREP="$GREP -F"
6480   else
6481     if test -z "$FGREP"; then
6482  ac_path_FGREP_found=false
6483  # Loop through the user's path and test for each of PROGNAME-LIST
6484  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6485for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6486do
6487  IFS=$as_save_IFS
6488  test -z "$as_dir" && as_dir=.
6489    for ac_prog in fgrep; do
6490    for ac_exec_ext in '' $ac_executable_extensions; do
6491      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6492      as_fn_executable_p "$ac_path_FGREP" || continue
6493# Check for GNU ac_path_FGREP and select it if it is found.
6494  # Check for GNU $ac_path_FGREP
6495case `"$ac_path_FGREP" --version 2>&1` in
6496*GNU*)
6497  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6498*)
6499  ac_count=0
6500  $as_echo_n 0123456789 >"conftest.in"
6501  while :
6502  do
6503    cat "conftest.in" "conftest.in" >"conftest.tmp"
6504    mv "conftest.tmp" "conftest.in"
6505    cp "conftest.in" "conftest.nl"
6506    $as_echo 'FGREP' >> "conftest.nl"
6507    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6508    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6509    as_fn_arith $ac_count + 1 && ac_count=$as_val
6510    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6511      # Best one so far, save it but keep looking for a better one
6512      ac_cv_path_FGREP="$ac_path_FGREP"
6513      ac_path_FGREP_max=$ac_count
6514    fi
6515    # 10*(2^10) chars as input seems more than enough
6516    test $ac_count -gt 10 && break
6517  done
6518  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6519esac
6520
6521      $ac_path_FGREP_found && break 3
6522    done
6523  done
6524  done
6525IFS=$as_save_IFS
6526  if test -z "$ac_cv_path_FGREP"; then
6527    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6528  fi
6529else
6530  ac_cv_path_FGREP=$FGREP
6531fi
6532
6533   fi
6534fi
6535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6536$as_echo "$ac_cv_path_FGREP" >&6; }
6537 FGREP="$ac_cv_path_FGREP"
6538
6539
6540test -z "$GREP" && GREP=grep
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560# Check whether --with-gnu-ld was given.
6561if test "${with_gnu_ld+set}" = set; then :
6562  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6563else
6564  with_gnu_ld=no
6565fi
6566
6567ac_prog=ld
6568if test "$GCC" = yes; then
6569  # Check if gcc -print-prog-name=ld gives a path.
6570  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6571$as_echo_n "checking for ld used by $CC... " >&6; }
6572  case $host in
6573  *-*-mingw*)
6574    # gcc leaves a trailing carriage return which upsets mingw
6575    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6576  *)
6577    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6578  esac
6579  case $ac_prog in
6580    # Accept absolute paths.
6581    [\\/]* | ?:[\\/]*)
6582      re_direlt='/[^/][^/]*/\.\./'
6583      # Canonicalize the pathname of ld
6584      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6585      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6586	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6587      done
6588      test -z "$LD" && LD="$ac_prog"
6589      ;;
6590  "")
6591    # If it fails, then pretend we aren't using GCC.
6592    ac_prog=ld
6593    ;;
6594  *)
6595    # If it is relative, then search for the first ld in PATH.
6596    with_gnu_ld=unknown
6597    ;;
6598  esac
6599elif test "$with_gnu_ld" = yes; then
6600  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6601$as_echo_n "checking for GNU ld... " >&6; }
6602else
6603  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6604$as_echo_n "checking for non-GNU ld... " >&6; }
6605fi
6606if ${lt_cv_path_LD+:} false; then :
6607  $as_echo_n "(cached) " >&6
6608else
6609  if test -z "$LD"; then
6610  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6611  for ac_dir in $PATH; do
6612    IFS="$lt_save_ifs"
6613    test -z "$ac_dir" && ac_dir=.
6614    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6615      lt_cv_path_LD="$ac_dir/$ac_prog"
6616      # Check to see if the program is GNU ld.  I'd rather use --version,
6617      # but apparently some variants of GNU ld only accept -v.
6618      # Break only if it was the GNU/non-GNU ld that we prefer.
6619      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6620      *GNU* | *'with BFD'*)
6621	test "$with_gnu_ld" != no && break
6622	;;
6623      *)
6624	test "$with_gnu_ld" != yes && break
6625	;;
6626      esac
6627    fi
6628  done
6629  IFS="$lt_save_ifs"
6630else
6631  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6632fi
6633fi
6634
6635LD="$lt_cv_path_LD"
6636if test -n "$LD"; then
6637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6638$as_echo "$LD" >&6; }
6639else
6640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6641$as_echo "no" >&6; }
6642fi
6643test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6645$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6646if ${lt_cv_prog_gnu_ld+:} false; then :
6647  $as_echo_n "(cached) " >&6
6648else
6649  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6650case `$LD -v 2>&1 </dev/null` in
6651*GNU* | *'with BFD'*)
6652  lt_cv_prog_gnu_ld=yes
6653  ;;
6654*)
6655  lt_cv_prog_gnu_ld=no
6656  ;;
6657esac
6658fi
6659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6660$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6661with_gnu_ld=$lt_cv_prog_gnu_ld
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6672$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6673if ${lt_cv_path_NM+:} false; then :
6674  $as_echo_n "(cached) " >&6
6675else
6676  if test -n "$NM"; then
6677  # Let the user override the test.
6678  lt_cv_path_NM="$NM"
6679else
6680  lt_nm_to_check="${ac_tool_prefix}nm"
6681  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6682    lt_nm_to_check="$lt_nm_to_check nm"
6683  fi
6684  for lt_tmp_nm in $lt_nm_to_check; do
6685    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6686    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6687      IFS="$lt_save_ifs"
6688      test -z "$ac_dir" && ac_dir=.
6689      tmp_nm="$ac_dir/$lt_tmp_nm"
6690      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6691	# Check to see if the nm accepts a BSD-compat flag.
6692	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6693	#   nm: unknown option "B" ignored
6694	# Tru64's nm complains that /dev/null is an invalid object file
6695	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6696	*/dev/null* | *'Invalid file or object type'*)
6697	  lt_cv_path_NM="$tmp_nm -B"
6698	  break
6699	  ;;
6700	*)
6701	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6702	  */dev/null*)
6703	    lt_cv_path_NM="$tmp_nm -p"
6704	    break
6705	    ;;
6706	  *)
6707	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6708	    continue # so that we can try to find one that supports BSD flags
6709	    ;;
6710	  esac
6711	  ;;
6712	esac
6713      fi
6714    done
6715    IFS="$lt_save_ifs"
6716  done
6717  : ${lt_cv_path_NM=no}
6718fi
6719fi
6720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6721$as_echo "$lt_cv_path_NM" >&6; }
6722if test "$lt_cv_path_NM" != "no"; then
6723  NM="$lt_cv_path_NM"
6724else
6725  # Didn't find any BSD compatible name lister, look for dumpbin.
6726  if test -n "$DUMPBIN"; then :
6727    # Let the user override the test.
6728  else
6729    if test -n "$ac_tool_prefix"; then
6730  for ac_prog in dumpbin "link -dump"
6731  do
6732    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6733set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6735$as_echo_n "checking for $ac_word... " >&6; }
6736if ${ac_cv_prog_DUMPBIN+:} false; then :
6737  $as_echo_n "(cached) " >&6
6738else
6739  if test -n "$DUMPBIN"; then
6740  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6741else
6742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743for as_dir in $PATH
6744do
6745  IFS=$as_save_IFS
6746  test -z "$as_dir" && as_dir=.
6747    for ac_exec_ext in '' $ac_executable_extensions; do
6748  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6749    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6750    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6751    break 2
6752  fi
6753done
6754  done
6755IFS=$as_save_IFS
6756
6757fi
6758fi
6759DUMPBIN=$ac_cv_prog_DUMPBIN
6760if test -n "$DUMPBIN"; then
6761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6762$as_echo "$DUMPBIN" >&6; }
6763else
6764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6765$as_echo "no" >&6; }
6766fi
6767
6768
6769    test -n "$DUMPBIN" && break
6770  done
6771fi
6772if test -z "$DUMPBIN"; then
6773  ac_ct_DUMPBIN=$DUMPBIN
6774  for ac_prog in dumpbin "link -dump"
6775do
6776  # Extract the first word of "$ac_prog", so it can be a program name with args.
6777set dummy $ac_prog; ac_word=$2
6778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6779$as_echo_n "checking for $ac_word... " >&6; }
6780if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6781  $as_echo_n "(cached) " >&6
6782else
6783  if test -n "$ac_ct_DUMPBIN"; then
6784  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6785else
6786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787for as_dir in $PATH
6788do
6789  IFS=$as_save_IFS
6790  test -z "$as_dir" && as_dir=.
6791    for ac_exec_ext in '' $ac_executable_extensions; do
6792  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6793    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6794    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6795    break 2
6796  fi
6797done
6798  done
6799IFS=$as_save_IFS
6800
6801fi
6802fi
6803ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6804if test -n "$ac_ct_DUMPBIN"; then
6805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6806$as_echo "$ac_ct_DUMPBIN" >&6; }
6807else
6808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6809$as_echo "no" >&6; }
6810fi
6811
6812
6813  test -n "$ac_ct_DUMPBIN" && break
6814done
6815
6816  if test "x$ac_ct_DUMPBIN" = x; then
6817    DUMPBIN=":"
6818  else
6819    case $cross_compiling:$ac_tool_warned in
6820yes:)
6821{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6822$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6823ac_tool_warned=yes ;;
6824esac
6825    DUMPBIN=$ac_ct_DUMPBIN
6826  fi
6827fi
6828
6829    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6830    *COFF*)
6831      DUMPBIN="$DUMPBIN -symbols"
6832      ;;
6833    *)
6834      DUMPBIN=:
6835      ;;
6836    esac
6837  fi
6838
6839  if test "$DUMPBIN" != ":"; then
6840    NM="$DUMPBIN"
6841  fi
6842fi
6843test -z "$NM" && NM=nm
6844
6845
6846
6847
6848
6849
6850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6851$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6852if ${lt_cv_nm_interface+:} false; then :
6853  $as_echo_n "(cached) " >&6
6854else
6855  lt_cv_nm_interface="BSD nm"
6856  echo "int some_variable = 0;" > conftest.$ac_ext
6857  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6858  (eval "$ac_compile" 2>conftest.err)
6859  cat conftest.err >&5
6860  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6861  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6862  cat conftest.err >&5
6863  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6864  cat conftest.out >&5
6865  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6866    lt_cv_nm_interface="MS dumpbin"
6867  fi
6868  rm -f conftest*
6869fi
6870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6871$as_echo "$lt_cv_nm_interface" >&6; }
6872
6873# find the maximum length of command line arguments
6874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6875$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6876if ${lt_cv_sys_max_cmd_len+:} false; then :
6877  $as_echo_n "(cached) " >&6
6878else
6879    i=0
6880  teststring="ABCD"
6881
6882  case $build_os in
6883  msdosdjgpp*)
6884    # On DJGPP, this test can blow up pretty badly due to problems in libc
6885    # (any single argument exceeding 2000 bytes causes a buffer overrun
6886    # during glob expansion).  Even if it were fixed, the result of this
6887    # check would be larger than it should be.
6888    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6889    ;;
6890
6891  gnu*)
6892    # Under GNU Hurd, this test is not required because there is
6893    # no limit to the length of command line arguments.
6894    # Libtool will interpret -1 as no limit whatsoever
6895    lt_cv_sys_max_cmd_len=-1;
6896    ;;
6897
6898  cygwin* | mingw* | cegcc*)
6899    # On Win9x/ME, this test blows up -- it succeeds, but takes
6900    # about 5 minutes as the teststring grows exponentially.
6901    # Worse, since 9x/ME are not pre-emptively multitasking,
6902    # you end up with a "frozen" computer, even though with patience
6903    # the test eventually succeeds (with a max line length of 256k).
6904    # Instead, let's just punt: use the minimum linelength reported by
6905    # all of the supported platforms: 8192 (on NT/2K/XP).
6906    lt_cv_sys_max_cmd_len=8192;
6907    ;;
6908
6909  mint*)
6910    # On MiNT this can take a long time and run out of memory.
6911    lt_cv_sys_max_cmd_len=8192;
6912    ;;
6913
6914  amigaos*)
6915    # On AmigaOS with pdksh, this test takes hours, literally.
6916    # So we just punt and use a minimum line length of 8192.
6917    lt_cv_sys_max_cmd_len=8192;
6918    ;;
6919
6920  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6921    # This has been around since 386BSD, at least.  Likely further.
6922    if test -x /sbin/sysctl; then
6923      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6924    elif test -x /usr/sbin/sysctl; then
6925      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6926    else
6927      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6928    fi
6929    # And add a safety zone
6930    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6931    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6932    ;;
6933
6934  interix*)
6935    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6936    lt_cv_sys_max_cmd_len=196608
6937    ;;
6938
6939  os2*)
6940    # The test takes a long time on OS/2.
6941    lt_cv_sys_max_cmd_len=8192
6942    ;;
6943
6944  osf*)
6945    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6946    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6947    # nice to cause kernel panics so lets avoid the loop below.
6948    # First set a reasonable default.
6949    lt_cv_sys_max_cmd_len=16384
6950    #
6951    if test -x /sbin/sysconfig; then
6952      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6953        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6954      esac
6955    fi
6956    ;;
6957  sco3.2v5*)
6958    lt_cv_sys_max_cmd_len=102400
6959    ;;
6960  sysv5* | sco5v6* | sysv4.2uw2*)
6961    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6962    if test -n "$kargmax"; then
6963      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6964    else
6965      lt_cv_sys_max_cmd_len=32768
6966    fi
6967    ;;
6968  *)
6969    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6970    if test -n "$lt_cv_sys_max_cmd_len"; then
6971      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6972      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6973    else
6974      # Make teststring a little bigger before we do anything with it.
6975      # a 1K string should be a reasonable start.
6976      for i in 1 2 3 4 5 6 7 8 ; do
6977        teststring=$teststring$teststring
6978      done
6979      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6980      # If test is not a shell built-in, we'll probably end up computing a
6981      # maximum length that is only half of the actual maximum length, but
6982      # we can't tell.
6983      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6984	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6985	      test $i != 17 # 1/2 MB should be enough
6986      do
6987        i=`expr $i + 1`
6988        teststring=$teststring$teststring
6989      done
6990      # Only check the string length outside the loop.
6991      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6992      teststring=
6993      # Add a significant safety factor because C++ compilers can tack on
6994      # massive amounts of additional arguments before passing them to the
6995      # linker.  It appears as though 1/2 is a usable value.
6996      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6997    fi
6998    ;;
6999  esac
7000
7001fi
7002
7003if test -n $lt_cv_sys_max_cmd_len ; then
7004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7005$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7006else
7007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7008$as_echo "none" >&6; }
7009fi
7010max_cmd_len=$lt_cv_sys_max_cmd_len
7011
7012
7013
7014
7015
7016
7017: ${CP="cp -f"}
7018: ${MV="mv -f"}
7019: ${RM="rm -f"}
7020
7021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7022$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7023# Try some XSI features
7024xsi_shell=no
7025( _lt_dummy="a/b/c"
7026  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7027      = c,a/b,b/c, \
7028    && eval 'test $(( 1 + 1 )) -eq 2 \
7029    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7030  && xsi_shell=yes
7031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7032$as_echo "$xsi_shell" >&6; }
7033
7034
7035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7036$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7037lt_shell_append=no
7038( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7039    >/dev/null 2>&1 \
7040  && lt_shell_append=yes
7041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7042$as_echo "$lt_shell_append" >&6; }
7043
7044
7045if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7046  lt_unset=unset
7047else
7048  lt_unset=false
7049fi
7050
7051
7052
7053
7054
7055# test EBCDIC or ASCII
7056case `echo X|tr X '\101'` in
7057 A) # ASCII based system
7058    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7059  lt_SP2NL='tr \040 \012'
7060  lt_NL2SP='tr \015\012 \040\040'
7061  ;;
7062 *) # EBCDIC based system
7063  lt_SP2NL='tr \100 \n'
7064  lt_NL2SP='tr \r\n \100\100'
7065  ;;
7066esac
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7077$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7078if ${lt_cv_to_host_file_cmd+:} false; then :
7079  $as_echo_n "(cached) " >&6
7080else
7081  case $host in
7082  *-*-mingw* )
7083    case $build in
7084      *-*-mingw* ) # actually msys
7085        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7086        ;;
7087      *-*-cygwin* )
7088        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7089        ;;
7090      * ) # otherwise, assume *nix
7091        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7092        ;;
7093    esac
7094    ;;
7095  *-*-cygwin* )
7096    case $build in
7097      *-*-mingw* ) # actually msys
7098        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7099        ;;
7100      *-*-cygwin* )
7101        lt_cv_to_host_file_cmd=func_convert_file_noop
7102        ;;
7103      * ) # otherwise, assume *nix
7104        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7105        ;;
7106    esac
7107    ;;
7108  * ) # unhandled hosts (and "normal" native builds)
7109    lt_cv_to_host_file_cmd=func_convert_file_noop
7110    ;;
7111esac
7112
7113fi
7114
7115to_host_file_cmd=$lt_cv_to_host_file_cmd
7116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7117$as_echo "$lt_cv_to_host_file_cmd" >&6; }
7118
7119
7120
7121
7122
7123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7124$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7125if ${lt_cv_to_tool_file_cmd+:} false; then :
7126  $as_echo_n "(cached) " >&6
7127else
7128  #assume ordinary cross tools, or native build.
7129lt_cv_to_tool_file_cmd=func_convert_file_noop
7130case $host in
7131  *-*-mingw* )
7132    case $build in
7133      *-*-mingw* ) # actually msys
7134        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7135        ;;
7136    esac
7137    ;;
7138esac
7139
7140fi
7141
7142to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7144$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7145
7146
7147
7148
7149
7150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7151$as_echo_n "checking for $LD option to reload object files... " >&6; }
7152if ${lt_cv_ld_reload_flag+:} false; then :
7153  $as_echo_n "(cached) " >&6
7154else
7155  lt_cv_ld_reload_flag='-r'
7156fi
7157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7158$as_echo "$lt_cv_ld_reload_flag" >&6; }
7159reload_flag=$lt_cv_ld_reload_flag
7160case $reload_flag in
7161"" | " "*) ;;
7162*) reload_flag=" $reload_flag" ;;
7163esac
7164reload_cmds='$LD$reload_flag -o $output$reload_objs'
7165case $host_os in
7166  cygwin* | mingw* | pw32* | cegcc*)
7167    if test "$GCC" != yes; then
7168      reload_cmds=false
7169    fi
7170    ;;
7171  darwin*)
7172    if test "$GCC" = yes; then
7173      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7174    else
7175      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7176    fi
7177    ;;
7178esac
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188if test -n "$ac_tool_prefix"; then
7189  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7190set dummy ${ac_tool_prefix}objdump; ac_word=$2
7191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7192$as_echo_n "checking for $ac_word... " >&6; }
7193if ${ac_cv_prog_OBJDUMP+:} false; then :
7194  $as_echo_n "(cached) " >&6
7195else
7196  if test -n "$OBJDUMP"; then
7197  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7198else
7199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200for as_dir in $PATH
7201do
7202  IFS=$as_save_IFS
7203  test -z "$as_dir" && as_dir=.
7204    for ac_exec_ext in '' $ac_executable_extensions; do
7205  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7206    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7207    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7208    break 2
7209  fi
7210done
7211  done
7212IFS=$as_save_IFS
7213
7214fi
7215fi
7216OBJDUMP=$ac_cv_prog_OBJDUMP
7217if test -n "$OBJDUMP"; then
7218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7219$as_echo "$OBJDUMP" >&6; }
7220else
7221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7222$as_echo "no" >&6; }
7223fi
7224
7225
7226fi
7227if test -z "$ac_cv_prog_OBJDUMP"; then
7228  ac_ct_OBJDUMP=$OBJDUMP
7229  # Extract the first word of "objdump", so it can be a program name with args.
7230set dummy objdump; ac_word=$2
7231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7232$as_echo_n "checking for $ac_word... " >&6; }
7233if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7234  $as_echo_n "(cached) " >&6
7235else
7236  if test -n "$ac_ct_OBJDUMP"; then
7237  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7238else
7239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240for as_dir in $PATH
7241do
7242  IFS=$as_save_IFS
7243  test -z "$as_dir" && as_dir=.
7244    for ac_exec_ext in '' $ac_executable_extensions; do
7245  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7246    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7247    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7248    break 2
7249  fi
7250done
7251  done
7252IFS=$as_save_IFS
7253
7254fi
7255fi
7256ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7257if test -n "$ac_ct_OBJDUMP"; then
7258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7259$as_echo "$ac_ct_OBJDUMP" >&6; }
7260else
7261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7262$as_echo "no" >&6; }
7263fi
7264
7265  if test "x$ac_ct_OBJDUMP" = x; then
7266    OBJDUMP="false"
7267  else
7268    case $cross_compiling:$ac_tool_warned in
7269yes:)
7270{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7271$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7272ac_tool_warned=yes ;;
7273esac
7274    OBJDUMP=$ac_ct_OBJDUMP
7275  fi
7276else
7277  OBJDUMP="$ac_cv_prog_OBJDUMP"
7278fi
7279
7280test -z "$OBJDUMP" && OBJDUMP=objdump
7281
7282
7283
7284
7285
7286
7287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7288$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7289if ${lt_cv_deplibs_check_method+:} false; then :
7290  $as_echo_n "(cached) " >&6
7291else
7292  lt_cv_file_magic_cmd='$MAGIC_CMD'
7293lt_cv_file_magic_test_file=
7294lt_cv_deplibs_check_method='unknown'
7295# Need to set the preceding variable on all platforms that support
7296# interlibrary dependencies.
7297# 'none' -- dependencies not supported.
7298# `unknown' -- same as none, but documents that we really don't know.
7299# 'pass_all' -- all dependencies passed with no checks.
7300# 'test_compile' -- check by making test program.
7301# 'file_magic [[regex]]' -- check by looking for files in library path
7302# which responds to the $file_magic_cmd with a given extended regex.
7303# If you have `file' or equivalent on your system and you're not sure
7304# whether `pass_all' will *always* work, you probably want this one.
7305
7306case $host_os in
7307aix[4-9]*)
7308  lt_cv_deplibs_check_method=pass_all
7309  ;;
7310
7311beos*)
7312  lt_cv_deplibs_check_method=pass_all
7313  ;;
7314
7315bsdi[45]*)
7316  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7317  lt_cv_file_magic_cmd='/usr/bin/file -L'
7318  lt_cv_file_magic_test_file=/shlib/libc.so
7319  ;;
7320
7321cygwin*)
7322  # func_win32_libid is a shell function defined in ltmain.sh
7323  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7324  lt_cv_file_magic_cmd='func_win32_libid'
7325  ;;
7326
7327mingw* | pw32*)
7328  # Base MSYS/MinGW do not provide the 'file' command needed by
7329  # func_win32_libid shell function, so use a weaker test based on 'objdump',
7330  # unless we find 'file', for example because we are cross-compiling.
7331  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7332  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7333    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7334    lt_cv_file_magic_cmd='func_win32_libid'
7335  else
7336    # Keep this pattern in sync with the one in func_win32_libid.
7337    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7338    lt_cv_file_magic_cmd='$OBJDUMP -f'
7339  fi
7340  ;;
7341
7342cegcc*)
7343  # use the weaker test based on 'objdump'. See mingw*.
7344  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7345  lt_cv_file_magic_cmd='$OBJDUMP -f'
7346  ;;
7347
7348darwin* | rhapsody*)
7349  lt_cv_deplibs_check_method=pass_all
7350  ;;
7351
7352freebsd* | dragonfly*)
7353  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7354    case $host_cpu in
7355    i*86 )
7356      # Not sure whether the presence of OpenBSD here was a mistake.
7357      # Let's accept both of them until this is cleared up.
7358      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7359      lt_cv_file_magic_cmd=/usr/bin/file
7360      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7361      ;;
7362    esac
7363  else
7364    lt_cv_deplibs_check_method=pass_all
7365  fi
7366  ;;
7367
7368gnu*)
7369  lt_cv_deplibs_check_method=pass_all
7370  ;;
7371
7372haiku*)
7373  lt_cv_deplibs_check_method=pass_all
7374  ;;
7375
7376hpux10.20* | hpux11*)
7377  lt_cv_file_magic_cmd=/usr/bin/file
7378  case $host_cpu in
7379  ia64*)
7380    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7381    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7382    ;;
7383  hppa*64*)
7384    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]'
7385    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7386    ;;
7387  *)
7388    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7389    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7390    ;;
7391  esac
7392  ;;
7393
7394interix[3-9]*)
7395  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7396  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7397  ;;
7398
7399irix5* | irix6* | nonstopux*)
7400  case $LD in
7401  *-32|*"-32 ") libmagic=32-bit;;
7402  *-n32|*"-n32 ") libmagic=N32;;
7403  *-64|*"-64 ") libmagic=64-bit;;
7404  *) libmagic=never-match;;
7405  esac
7406  lt_cv_deplibs_check_method=pass_all
7407  ;;
7408
7409# This must be glibc/ELF.
7410linux* | k*bsd*-gnu | kopensolaris*-gnu)
7411  lt_cv_deplibs_check_method=pass_all
7412  ;;
7413
7414netbsd*)
7415  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7416    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7417  else
7418    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7419  fi
7420  ;;
7421
7422newos6*)
7423  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7424  lt_cv_file_magic_cmd=/usr/bin/file
7425  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7426  ;;
7427
7428*nto* | *qnx*)
7429  lt_cv_deplibs_check_method=pass_all
7430  ;;
7431
7432openbsd*)
7433  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7434    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7435  else
7436    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7437  fi
7438  ;;
7439
7440osf3* | osf4* | osf5*)
7441  lt_cv_deplibs_check_method=pass_all
7442  ;;
7443
7444rdos*)
7445  lt_cv_deplibs_check_method=pass_all
7446  ;;
7447
7448solaris*)
7449  lt_cv_deplibs_check_method=pass_all
7450  ;;
7451
7452sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7453  lt_cv_deplibs_check_method=pass_all
7454  ;;
7455
7456sysv4 | sysv4.3*)
7457  case $host_vendor in
7458  motorola)
7459    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]'
7460    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7461    ;;
7462  ncr)
7463    lt_cv_deplibs_check_method=pass_all
7464    ;;
7465  sequent)
7466    lt_cv_file_magic_cmd='/bin/file'
7467    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7468    ;;
7469  sni)
7470    lt_cv_file_magic_cmd='/bin/file'
7471    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7472    lt_cv_file_magic_test_file=/lib/libc.so
7473    ;;
7474  siemens)
7475    lt_cv_deplibs_check_method=pass_all
7476    ;;
7477  pc)
7478    lt_cv_deplibs_check_method=pass_all
7479    ;;
7480  esac
7481  ;;
7482
7483tpf*)
7484  lt_cv_deplibs_check_method=pass_all
7485  ;;
7486esac
7487
7488fi
7489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7490$as_echo "$lt_cv_deplibs_check_method" >&6; }
7491
7492file_magic_glob=
7493want_nocaseglob=no
7494if test "$build" = "$host"; then
7495  case $host_os in
7496  mingw* | pw32*)
7497    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7498      want_nocaseglob=yes
7499    else
7500      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7501    fi
7502    ;;
7503  esac
7504fi
7505
7506file_magic_cmd=$lt_cv_file_magic_cmd
7507deplibs_check_method=$lt_cv_deplibs_check_method
7508test -z "$deplibs_check_method" && deplibs_check_method=unknown
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531if test -n "$ac_tool_prefix"; then
7532  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7533set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7535$as_echo_n "checking for $ac_word... " >&6; }
7536if ${ac_cv_prog_DLLTOOL+:} false; then :
7537  $as_echo_n "(cached) " >&6
7538else
7539  if test -n "$DLLTOOL"; then
7540  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7541else
7542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7543for as_dir in $PATH
7544do
7545  IFS=$as_save_IFS
7546  test -z "$as_dir" && as_dir=.
7547    for ac_exec_ext in '' $ac_executable_extensions; do
7548  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7549    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7550    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7551    break 2
7552  fi
7553done
7554  done
7555IFS=$as_save_IFS
7556
7557fi
7558fi
7559DLLTOOL=$ac_cv_prog_DLLTOOL
7560if test -n "$DLLTOOL"; then
7561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7562$as_echo "$DLLTOOL" >&6; }
7563else
7564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7565$as_echo "no" >&6; }
7566fi
7567
7568
7569fi
7570if test -z "$ac_cv_prog_DLLTOOL"; then
7571  ac_ct_DLLTOOL=$DLLTOOL
7572  # Extract the first word of "dlltool", so it can be a program name with args.
7573set dummy dlltool; ac_word=$2
7574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7575$as_echo_n "checking for $ac_word... " >&6; }
7576if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7577  $as_echo_n "(cached) " >&6
7578else
7579  if test -n "$ac_ct_DLLTOOL"; then
7580  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7581else
7582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7583for as_dir in $PATH
7584do
7585  IFS=$as_save_IFS
7586  test -z "$as_dir" && as_dir=.
7587    for ac_exec_ext in '' $ac_executable_extensions; do
7588  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7589    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7590    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7591    break 2
7592  fi
7593done
7594  done
7595IFS=$as_save_IFS
7596
7597fi
7598fi
7599ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7600if test -n "$ac_ct_DLLTOOL"; then
7601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7602$as_echo "$ac_ct_DLLTOOL" >&6; }
7603else
7604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7605$as_echo "no" >&6; }
7606fi
7607
7608  if test "x$ac_ct_DLLTOOL" = x; then
7609    DLLTOOL="false"
7610  else
7611    case $cross_compiling:$ac_tool_warned in
7612yes:)
7613{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7614$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7615ac_tool_warned=yes ;;
7616esac
7617    DLLTOOL=$ac_ct_DLLTOOL
7618  fi
7619else
7620  DLLTOOL="$ac_cv_prog_DLLTOOL"
7621fi
7622
7623test -z "$DLLTOOL" && DLLTOOL=dlltool
7624
7625
7626
7627
7628
7629
7630
7631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7632$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7633if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7634  $as_echo_n "(cached) " >&6
7635else
7636  lt_cv_sharedlib_from_linklib_cmd='unknown'
7637
7638case $host_os in
7639cygwin* | mingw* | pw32* | cegcc*)
7640  # two different shell functions defined in ltmain.sh
7641  # decide which to use based on capabilities of $DLLTOOL
7642  case `$DLLTOOL --help 2>&1` in
7643  *--identify-strict*)
7644    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7645    ;;
7646  *)
7647    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7648    ;;
7649  esac
7650  ;;
7651*)
7652  # fallback: assume linklib IS sharedlib
7653  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7654  ;;
7655esac
7656
7657fi
7658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7659$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7660sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7661test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7662
7663
7664
7665
7666
7667
7668
7669if test -n "$ac_tool_prefix"; then
7670  for ac_prog in ar
7671  do
7672    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7673set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7675$as_echo_n "checking for $ac_word... " >&6; }
7676if ${ac_cv_prog_AR+:} false; then :
7677  $as_echo_n "(cached) " >&6
7678else
7679  if test -n "$AR"; then
7680  ac_cv_prog_AR="$AR" # Let the user override the test.
7681else
7682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7683for as_dir in $PATH
7684do
7685  IFS=$as_save_IFS
7686  test -z "$as_dir" && as_dir=.
7687    for ac_exec_ext in '' $ac_executable_extensions; do
7688  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7689    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7690    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7691    break 2
7692  fi
7693done
7694  done
7695IFS=$as_save_IFS
7696
7697fi
7698fi
7699AR=$ac_cv_prog_AR
7700if test -n "$AR"; then
7701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7702$as_echo "$AR" >&6; }
7703else
7704  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7705$as_echo "no" >&6; }
7706fi
7707
7708
7709    test -n "$AR" && break
7710  done
7711fi
7712if test -z "$AR"; then
7713  ac_ct_AR=$AR
7714  for ac_prog in ar
7715do
7716  # Extract the first word of "$ac_prog", so it can be a program name with args.
7717set dummy $ac_prog; ac_word=$2
7718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7719$as_echo_n "checking for $ac_word... " >&6; }
7720if ${ac_cv_prog_ac_ct_AR+:} false; then :
7721  $as_echo_n "(cached) " >&6
7722else
7723  if test -n "$ac_ct_AR"; then
7724  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7725else
7726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7727for as_dir in $PATH
7728do
7729  IFS=$as_save_IFS
7730  test -z "$as_dir" && as_dir=.
7731    for ac_exec_ext in '' $ac_executable_extensions; do
7732  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7733    ac_cv_prog_ac_ct_AR="$ac_prog"
7734    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7735    break 2
7736  fi
7737done
7738  done
7739IFS=$as_save_IFS
7740
7741fi
7742fi
7743ac_ct_AR=$ac_cv_prog_ac_ct_AR
7744if test -n "$ac_ct_AR"; then
7745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7746$as_echo "$ac_ct_AR" >&6; }
7747else
7748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7749$as_echo "no" >&6; }
7750fi
7751
7752
7753  test -n "$ac_ct_AR" && break
7754done
7755
7756  if test "x$ac_ct_AR" = x; then
7757    AR="false"
7758  else
7759    case $cross_compiling:$ac_tool_warned in
7760yes:)
7761{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7762$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7763ac_tool_warned=yes ;;
7764esac
7765    AR=$ac_ct_AR
7766  fi
7767fi
7768
7769: ${AR=ar}
7770: ${AR_FLAGS=cru}
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7783$as_echo_n "checking for archiver @FILE support... " >&6; }
7784if ${lt_cv_ar_at_file+:} false; then :
7785  $as_echo_n "(cached) " >&6
7786else
7787  lt_cv_ar_at_file=no
7788   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7789/* end confdefs.h.  */
7790
7791int
7792main ()
7793{
7794
7795  ;
7796  return 0;
7797}
7798_ACEOF
7799if ac_fn_c_try_compile "$LINENO"; then :
7800  echo conftest.$ac_objext > conftest.lst
7801      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7802      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7803  (eval $lt_ar_try) 2>&5
7804  ac_status=$?
7805  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7806  test $ac_status = 0; }
7807      if test "$ac_status" -eq 0; then
7808	# Ensure the archiver fails upon bogus file names.
7809	rm -f conftest.$ac_objext libconftest.a
7810	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7811  (eval $lt_ar_try) 2>&5
7812  ac_status=$?
7813  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7814  test $ac_status = 0; }
7815	if test "$ac_status" -ne 0; then
7816          lt_cv_ar_at_file=@
7817        fi
7818      fi
7819      rm -f conftest.* libconftest.a
7820
7821fi
7822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7823
7824fi
7825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7826$as_echo "$lt_cv_ar_at_file" >&6; }
7827
7828if test "x$lt_cv_ar_at_file" = xno; then
7829  archiver_list_spec=
7830else
7831  archiver_list_spec=$lt_cv_ar_at_file
7832fi
7833
7834
7835
7836
7837
7838
7839
7840if test -n "$ac_tool_prefix"; then
7841  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7842set dummy ${ac_tool_prefix}strip; ac_word=$2
7843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7844$as_echo_n "checking for $ac_word... " >&6; }
7845if ${ac_cv_prog_STRIP+:} false; then :
7846  $as_echo_n "(cached) " >&6
7847else
7848  if test -n "$STRIP"; then
7849  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7850else
7851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7852for as_dir in $PATH
7853do
7854  IFS=$as_save_IFS
7855  test -z "$as_dir" && as_dir=.
7856    for ac_exec_ext in '' $ac_executable_extensions; do
7857  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7858    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7859    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7860    break 2
7861  fi
7862done
7863  done
7864IFS=$as_save_IFS
7865
7866fi
7867fi
7868STRIP=$ac_cv_prog_STRIP
7869if test -n "$STRIP"; then
7870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7871$as_echo "$STRIP" >&6; }
7872else
7873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7874$as_echo "no" >&6; }
7875fi
7876
7877
7878fi
7879if test -z "$ac_cv_prog_STRIP"; then
7880  ac_ct_STRIP=$STRIP
7881  # Extract the first word of "strip", so it can be a program name with args.
7882set dummy strip; ac_word=$2
7883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7884$as_echo_n "checking for $ac_word... " >&6; }
7885if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7886  $as_echo_n "(cached) " >&6
7887else
7888  if test -n "$ac_ct_STRIP"; then
7889  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7890else
7891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7892for as_dir in $PATH
7893do
7894  IFS=$as_save_IFS
7895  test -z "$as_dir" && as_dir=.
7896    for ac_exec_ext in '' $ac_executable_extensions; do
7897  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7898    ac_cv_prog_ac_ct_STRIP="strip"
7899    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7900    break 2
7901  fi
7902done
7903  done
7904IFS=$as_save_IFS
7905
7906fi
7907fi
7908ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7909if test -n "$ac_ct_STRIP"; then
7910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7911$as_echo "$ac_ct_STRIP" >&6; }
7912else
7913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7914$as_echo "no" >&6; }
7915fi
7916
7917  if test "x$ac_ct_STRIP" = x; then
7918    STRIP=":"
7919  else
7920    case $cross_compiling:$ac_tool_warned in
7921yes:)
7922{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7923$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7924ac_tool_warned=yes ;;
7925esac
7926    STRIP=$ac_ct_STRIP
7927  fi
7928else
7929  STRIP="$ac_cv_prog_STRIP"
7930fi
7931
7932test -z "$STRIP" && STRIP=:
7933
7934
7935
7936
7937
7938
7939if test -n "$ac_tool_prefix"; then
7940  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7941set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7943$as_echo_n "checking for $ac_word... " >&6; }
7944if ${ac_cv_prog_RANLIB+:} false; then :
7945  $as_echo_n "(cached) " >&6
7946else
7947  if test -n "$RANLIB"; then
7948  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7949else
7950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7951for as_dir in $PATH
7952do
7953  IFS=$as_save_IFS
7954  test -z "$as_dir" && as_dir=.
7955    for ac_exec_ext in '' $ac_executable_extensions; do
7956  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7957    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7958    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7959    break 2
7960  fi
7961done
7962  done
7963IFS=$as_save_IFS
7964
7965fi
7966fi
7967RANLIB=$ac_cv_prog_RANLIB
7968if test -n "$RANLIB"; then
7969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7970$as_echo "$RANLIB" >&6; }
7971else
7972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7973$as_echo "no" >&6; }
7974fi
7975
7976
7977fi
7978if test -z "$ac_cv_prog_RANLIB"; then
7979  ac_ct_RANLIB=$RANLIB
7980  # Extract the first word of "ranlib", so it can be a program name with args.
7981set dummy ranlib; ac_word=$2
7982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7983$as_echo_n "checking for $ac_word... " >&6; }
7984if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7985  $as_echo_n "(cached) " >&6
7986else
7987  if test -n "$ac_ct_RANLIB"; then
7988  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7989else
7990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7991for as_dir in $PATH
7992do
7993  IFS=$as_save_IFS
7994  test -z "$as_dir" && as_dir=.
7995    for ac_exec_ext in '' $ac_executable_extensions; do
7996  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7997    ac_cv_prog_ac_ct_RANLIB="ranlib"
7998    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7999    break 2
8000  fi
8001done
8002  done
8003IFS=$as_save_IFS
8004
8005fi
8006fi
8007ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8008if test -n "$ac_ct_RANLIB"; then
8009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8010$as_echo "$ac_ct_RANLIB" >&6; }
8011else
8012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8013$as_echo "no" >&6; }
8014fi
8015
8016  if test "x$ac_ct_RANLIB" = x; then
8017    RANLIB=":"
8018  else
8019    case $cross_compiling:$ac_tool_warned in
8020yes:)
8021{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8022$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8023ac_tool_warned=yes ;;
8024esac
8025    RANLIB=$ac_ct_RANLIB
8026  fi
8027else
8028  RANLIB="$ac_cv_prog_RANLIB"
8029fi
8030
8031test -z "$RANLIB" && RANLIB=:
8032
8033
8034
8035
8036
8037
8038# Determine commands to create old-style static archives.
8039old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8040old_postinstall_cmds='chmod 644 $oldlib'
8041old_postuninstall_cmds=
8042
8043if test -n "$RANLIB"; then
8044  case $host_os in
8045  openbsd*)
8046    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8047    ;;
8048  *)
8049    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8050    ;;
8051  esac
8052  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8053fi
8054
8055case $host_os in
8056  darwin*)
8057    lock_old_archive_extraction=yes ;;
8058  *)
8059    lock_old_archive_extraction=no ;;
8060esac
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100# If no C compiler was specified, use CC.
8101LTCC=${LTCC-"$CC"}
8102
8103# If no C compiler flags were specified, use CFLAGS.
8104LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8105
8106# Allow CC to be a program name with arguments.
8107compiler=$CC
8108
8109
8110# Check for command to grab the raw symbol name followed by C symbol from nm.
8111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8112$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8113if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8114  $as_echo_n "(cached) " >&6
8115else
8116
8117# These are sane defaults that work on at least a few old systems.
8118# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8119
8120# Character class describing NM global symbol codes.
8121symcode='[BCDEGRST]'
8122
8123# Regexp to match symbols that can be accessed directly from C.
8124sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8125
8126# Define system-specific variables.
8127case $host_os in
8128aix*)
8129  symcode='[BCDT]'
8130  ;;
8131cygwin* | mingw* | pw32* | cegcc*)
8132  symcode='[ABCDGISTW]'
8133  ;;
8134hpux*)
8135  if test "$host_cpu" = ia64; then
8136    symcode='[ABCDEGRST]'
8137  fi
8138  ;;
8139irix* | nonstopux*)
8140  symcode='[BCDEGRST]'
8141  ;;
8142osf*)
8143  symcode='[BCDEGQRST]'
8144  ;;
8145solaris*)
8146  symcode='[BDRT]'
8147  ;;
8148sco3.2v5*)
8149  symcode='[DT]'
8150  ;;
8151sysv4.2uw2*)
8152  symcode='[DT]'
8153  ;;
8154sysv5* | sco5v6* | unixware* | OpenUNIX*)
8155  symcode='[ABDT]'
8156  ;;
8157sysv4)
8158  symcode='[DFNSTU]'
8159  ;;
8160esac
8161
8162# If we're using GNU nm, then use its standard symbol codes.
8163case `$NM -V 2>&1` in
8164*GNU* | *'with BFD'*)
8165  symcode='[ABCDGIRSTW]' ;;
8166esac
8167
8168# Transform an extracted symbol line into a proper C declaration.
8169# Some systems (esp. on ia64) link data and code symbols differently,
8170# so use this general approach.
8171lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8172
8173# Transform an extracted symbol line into symbol name and symbol address
8174lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
8175lt_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'"
8176
8177# Handle CRLF in mingw tool chain
8178opt_cr=
8179case $build_os in
8180mingw*)
8181  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8182  ;;
8183esac
8184
8185# Try without a prefix underscore, then with it.
8186for ac_symprfx in "" "_"; do
8187
8188  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8189  symxfrm="\\1 $ac_symprfx\\2 \\2"
8190
8191  # Write the raw and C identifiers.
8192  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8193    # Fake it for dumpbin and say T for any non-static function
8194    # and D for any global variable.
8195    # Also find C++ and __fastcall symbols from MSVC++,
8196    # which start with @ or ?.
8197    lt_cv_sys_global_symbol_pipe="$AWK '"\
8198"     {last_section=section; section=\$ 3};"\
8199"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8200"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8201"     \$ 0!~/External *\|/{next};"\
8202"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8203"     {if(hide[section]) next};"\
8204"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8205"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8206"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
8207"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8208"     ' prfx=^$ac_symprfx"
8209  else
8210    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8211  fi
8212  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8213
8214  # Check to see that the pipe works correctly.
8215  pipe_works=no
8216
8217  rm -f conftest*
8218  cat > conftest.$ac_ext <<_LT_EOF
8219#ifdef __cplusplus
8220extern "C" {
8221#endif
8222char nm_test_var;
8223void nm_test_func(void);
8224void nm_test_func(void){}
8225#ifdef __cplusplus
8226}
8227#endif
8228int main(){nm_test_var='a';nm_test_func();return(0);}
8229_LT_EOF
8230
8231  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8232  (eval $ac_compile) 2>&5
8233  ac_status=$?
8234  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8235  test $ac_status = 0; }; then
8236    # Now try to grab the symbols.
8237    nlist=conftest.nm
8238    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8239  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8240  ac_status=$?
8241  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8242  test $ac_status = 0; } && test -s "$nlist"; then
8243      # Try sorting and uniquifying the output.
8244      if sort "$nlist" | uniq > "$nlist"T; then
8245	mv -f "$nlist"T "$nlist"
8246      else
8247	rm -f "$nlist"T
8248      fi
8249
8250      # Make sure that we snagged all the symbols we need.
8251      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8252	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8253	  cat <<_LT_EOF > conftest.$ac_ext
8254/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8255#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8256/* DATA imports from DLLs on WIN32 con't be const, because runtime
8257   relocations are performed -- see ld's documentation on pseudo-relocs.  */
8258# define LT_DLSYM_CONST
8259#elif defined(__osf__)
8260/* This system does not cope well with relocations in const data.  */
8261# define LT_DLSYM_CONST
8262#else
8263# define LT_DLSYM_CONST const
8264#endif
8265
8266#ifdef __cplusplus
8267extern "C" {
8268#endif
8269
8270_LT_EOF
8271	  # Now generate the symbol file.
8272	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8273
8274	  cat <<_LT_EOF >> conftest.$ac_ext
8275
8276/* The mapping between symbol names and symbols.  */
8277LT_DLSYM_CONST struct {
8278  const char *name;
8279  void       *address;
8280}
8281lt__PROGRAM__LTX_preloaded_symbols[] =
8282{
8283  { "@PROGRAM@", (void *) 0 },
8284_LT_EOF
8285	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8286	  cat <<\_LT_EOF >> conftest.$ac_ext
8287  {0, (void *) 0}
8288};
8289
8290/* This works around a problem in FreeBSD linker */
8291#ifdef FREEBSD_WORKAROUND
8292static const void *lt_preloaded_setup() {
8293  return lt__PROGRAM__LTX_preloaded_symbols;
8294}
8295#endif
8296
8297#ifdef __cplusplus
8298}
8299#endif
8300_LT_EOF
8301	  # Now try linking the two files.
8302	  mv conftest.$ac_objext conftstm.$ac_objext
8303	  lt_globsym_save_LIBS=$LIBS
8304	  lt_globsym_save_CFLAGS=$CFLAGS
8305	  LIBS="conftstm.$ac_objext"
8306	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8307	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8308  (eval $ac_link) 2>&5
8309  ac_status=$?
8310  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8311  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8312	    pipe_works=yes
8313	  fi
8314	  LIBS=$lt_globsym_save_LIBS
8315	  CFLAGS=$lt_globsym_save_CFLAGS
8316	else
8317	  echo "cannot find nm_test_func in $nlist" >&5
8318	fi
8319      else
8320	echo "cannot find nm_test_var in $nlist" >&5
8321      fi
8322    else
8323      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8324    fi
8325  else
8326    echo "$progname: failed program was:" >&5
8327    cat conftest.$ac_ext >&5
8328  fi
8329  rm -rf conftest* conftst*
8330
8331  # Do not use the global_symbol_pipe unless it works.
8332  if test "$pipe_works" = yes; then
8333    break
8334  else
8335    lt_cv_sys_global_symbol_pipe=
8336  fi
8337done
8338
8339fi
8340
8341if test -z "$lt_cv_sys_global_symbol_pipe"; then
8342  lt_cv_sys_global_symbol_to_cdecl=
8343fi
8344if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8346$as_echo "failed" >&6; }
8347else
8348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8349$as_echo "ok" >&6; }
8350fi
8351
8352# Response file support.
8353if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8354  nm_file_list_spec='@'
8355elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8356  nm_file_list_spec='@'
8357fi
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8386$as_echo_n "checking for sysroot... " >&6; }
8387
8388# Check whether --with-sysroot was given.
8389if test "${with_sysroot+set}" = set; then :
8390  withval=$with_sysroot;
8391else
8392  with_sysroot=no
8393fi
8394
8395
8396lt_sysroot=
8397case ${with_sysroot} in #(
8398 yes)
8399   if test "$GCC" = yes; then
8400     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8401   fi
8402   ;; #(
8403 /*)
8404   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8405   ;; #(
8406 no|'')
8407   ;; #(
8408 *)
8409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8410$as_echo "${with_sysroot}" >&6; }
8411   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8412   ;;
8413esac
8414
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8416$as_echo "${lt_sysroot:-no}" >&6; }
8417
8418
8419
8420
8421
8422# Check whether --enable-libtool-lock was given.
8423if test "${enable_libtool_lock+set}" = set; then :
8424  enableval=$enable_libtool_lock;
8425fi
8426
8427test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8428
8429# Some flags need to be propagated to the compiler or linker for good
8430# libtool support.
8431case $host in
8432ia64-*-hpux*)
8433  # Find out which ABI we are using.
8434  echo 'int i;' > conftest.$ac_ext
8435  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8436  (eval $ac_compile) 2>&5
8437  ac_status=$?
8438  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8439  test $ac_status = 0; }; then
8440    case `/usr/bin/file conftest.$ac_objext` in
8441      *ELF-32*)
8442	HPUX_IA64_MODE="32"
8443	;;
8444      *ELF-64*)
8445	HPUX_IA64_MODE="64"
8446	;;
8447    esac
8448  fi
8449  rm -rf conftest*
8450  ;;
8451*-*-irix6*)
8452  # Find out which ABI we are using.
8453  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8454  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8455  (eval $ac_compile) 2>&5
8456  ac_status=$?
8457  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8458  test $ac_status = 0; }; then
8459    if test "$lt_cv_prog_gnu_ld" = yes; then
8460      case `/usr/bin/file conftest.$ac_objext` in
8461	*32-bit*)
8462	  LD="${LD-ld} -melf32bsmip"
8463	  ;;
8464	*N32*)
8465	  LD="${LD-ld} -melf32bmipn32"
8466	  ;;
8467	*64-bit*)
8468	  LD="${LD-ld} -melf64bmip"
8469	;;
8470      esac
8471    else
8472      case `/usr/bin/file conftest.$ac_objext` in
8473	*32-bit*)
8474	  LD="${LD-ld} -32"
8475	  ;;
8476	*N32*)
8477	  LD="${LD-ld} -n32"
8478	  ;;
8479	*64-bit*)
8480	  LD="${LD-ld} -64"
8481	  ;;
8482      esac
8483    fi
8484  fi
8485  rm -rf conftest*
8486  ;;
8487
8488x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8489s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8490  # Find out which ABI we are using.
8491  echo 'int i;' > conftest.$ac_ext
8492  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8493  (eval $ac_compile) 2>&5
8494  ac_status=$?
8495  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8496  test $ac_status = 0; }; then
8497    case `/usr/bin/file conftest.o` in
8498      *32-bit*)
8499	case $host in
8500	  x86_64-*kfreebsd*-gnu)
8501	    LD="${LD-ld} -m elf_i386_fbsd"
8502	    ;;
8503	  x86_64-*linux*)
8504	    LD="${LD-ld} -m elf_i386"
8505	    ;;
8506	  ppc64-*linux*|powerpc64-*linux*)
8507	    LD="${LD-ld} -m elf32ppclinux"
8508	    ;;
8509	  s390x-*linux*)
8510	    LD="${LD-ld} -m elf_s390"
8511	    ;;
8512	  sparc64-*linux*)
8513	    LD="${LD-ld} -m elf32_sparc"
8514	    ;;
8515	esac
8516	;;
8517      *64-bit*)
8518	case $host in
8519	  x86_64-*kfreebsd*-gnu)
8520	    LD="${LD-ld} -m elf_x86_64_fbsd"
8521	    ;;
8522	  x86_64-*linux*)
8523	    LD="${LD-ld} -m elf_x86_64"
8524	    ;;
8525	  ppc*-*linux*|powerpc*-*linux*)
8526	    LD="${LD-ld} -m elf64ppc"
8527	    ;;
8528	  s390*-*linux*|s390*-*tpf*)
8529	    LD="${LD-ld} -m elf64_s390"
8530	    ;;
8531	  sparc*-*linux*)
8532	    LD="${LD-ld} -m elf64_sparc"
8533	    ;;
8534	esac
8535	;;
8536    esac
8537  fi
8538  rm -rf conftest*
8539  ;;
8540
8541*-*-sco3.2v5*)
8542  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8543  SAVE_CFLAGS="$CFLAGS"
8544  CFLAGS="$CFLAGS -belf"
8545  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8546$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8547if ${lt_cv_cc_needs_belf+:} false; then :
8548  $as_echo_n "(cached) " >&6
8549else
8550  ac_ext=c
8551ac_cpp='$CPP $CPPFLAGS'
8552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8554ac_compiler_gnu=$ac_cv_c_compiler_gnu
8555
8556     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8557/* end confdefs.h.  */
8558
8559int
8560main ()
8561{
8562
8563  ;
8564  return 0;
8565}
8566_ACEOF
8567if ac_fn_c_try_link "$LINENO"; then :
8568  lt_cv_cc_needs_belf=yes
8569else
8570  lt_cv_cc_needs_belf=no
8571fi
8572rm -f core conftest.err conftest.$ac_objext \
8573    conftest$ac_exeext conftest.$ac_ext
8574     ac_ext=c
8575ac_cpp='$CPP $CPPFLAGS'
8576ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8577ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8578ac_compiler_gnu=$ac_cv_c_compiler_gnu
8579
8580fi
8581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8582$as_echo "$lt_cv_cc_needs_belf" >&6; }
8583  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8584    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8585    CFLAGS="$SAVE_CFLAGS"
8586  fi
8587  ;;
8588*-*solaris*)
8589  # Find out which ABI we are using.
8590  echo 'int i;' > conftest.$ac_ext
8591  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8592  (eval $ac_compile) 2>&5
8593  ac_status=$?
8594  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8595  test $ac_status = 0; }; then
8596    case `/usr/bin/file conftest.o` in
8597    *64-bit*)
8598      case $lt_cv_prog_gnu_ld in
8599      yes*)
8600        case $host in
8601        i?86-*-solaris*)
8602          LD="${LD-ld} -m elf_x86_64"
8603          ;;
8604        sparc*-*-solaris*)
8605          LD="${LD-ld} -m elf64_sparc"
8606          ;;
8607        esac
8608        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8609        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8610          LD="${LD-ld}_sol2"
8611        fi
8612        ;;
8613      *)
8614	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8615	  LD="${LD-ld} -64"
8616	fi
8617	;;
8618      esac
8619      ;;
8620    esac
8621  fi
8622  rm -rf conftest*
8623  ;;
8624esac
8625
8626need_locks="$enable_libtool_lock"
8627
8628if test -n "$ac_tool_prefix"; then
8629  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8630set dummy ${ac_tool_prefix}mt; ac_word=$2
8631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8632$as_echo_n "checking for $ac_word... " >&6; }
8633if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8634  $as_echo_n "(cached) " >&6
8635else
8636  if test -n "$MANIFEST_TOOL"; then
8637  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8638else
8639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8640for as_dir in $PATH
8641do
8642  IFS=$as_save_IFS
8643  test -z "$as_dir" && as_dir=.
8644    for ac_exec_ext in '' $ac_executable_extensions; do
8645  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8646    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8647    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8648    break 2
8649  fi
8650done
8651  done
8652IFS=$as_save_IFS
8653
8654fi
8655fi
8656MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8657if test -n "$MANIFEST_TOOL"; then
8658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8659$as_echo "$MANIFEST_TOOL" >&6; }
8660else
8661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8662$as_echo "no" >&6; }
8663fi
8664
8665
8666fi
8667if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8668  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8669  # Extract the first word of "mt", so it can be a program name with args.
8670set dummy mt; ac_word=$2
8671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8672$as_echo_n "checking for $ac_word... " >&6; }
8673if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8674  $as_echo_n "(cached) " >&6
8675else
8676  if test -n "$ac_ct_MANIFEST_TOOL"; then
8677  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8678else
8679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8680for as_dir in $PATH
8681do
8682  IFS=$as_save_IFS
8683  test -z "$as_dir" && as_dir=.
8684    for ac_exec_ext in '' $ac_executable_extensions; do
8685  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8686    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8687    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8688    break 2
8689  fi
8690done
8691  done
8692IFS=$as_save_IFS
8693
8694fi
8695fi
8696ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8697if test -n "$ac_ct_MANIFEST_TOOL"; then
8698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8699$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8700else
8701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8702$as_echo "no" >&6; }
8703fi
8704
8705  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8706    MANIFEST_TOOL=":"
8707  else
8708    case $cross_compiling:$ac_tool_warned in
8709yes:)
8710{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8711$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8712ac_tool_warned=yes ;;
8713esac
8714    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8715  fi
8716else
8717  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8718fi
8719
8720test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8722$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8723if ${lt_cv_path_mainfest_tool+:} false; then :
8724  $as_echo_n "(cached) " >&6
8725else
8726  lt_cv_path_mainfest_tool=no
8727  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8728  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8729  cat conftest.err >&5
8730  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8731    lt_cv_path_mainfest_tool=yes
8732  fi
8733  rm -f conftest*
8734fi
8735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8736$as_echo "$lt_cv_path_mainfest_tool" >&6; }
8737if test "x$lt_cv_path_mainfest_tool" != xyes; then
8738  MANIFEST_TOOL=:
8739fi
8740
8741
8742
8743
8744
8745
8746  case $host_os in
8747    rhapsody* | darwin*)
8748    if test -n "$ac_tool_prefix"; then
8749  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8750set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8752$as_echo_n "checking for $ac_word... " >&6; }
8753if ${ac_cv_prog_DSYMUTIL+:} false; then :
8754  $as_echo_n "(cached) " >&6
8755else
8756  if test -n "$DSYMUTIL"; then
8757  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8758else
8759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8760for as_dir in $PATH
8761do
8762  IFS=$as_save_IFS
8763  test -z "$as_dir" && as_dir=.
8764    for ac_exec_ext in '' $ac_executable_extensions; do
8765  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8766    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8767    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8768    break 2
8769  fi
8770done
8771  done
8772IFS=$as_save_IFS
8773
8774fi
8775fi
8776DSYMUTIL=$ac_cv_prog_DSYMUTIL
8777if test -n "$DSYMUTIL"; then
8778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8779$as_echo "$DSYMUTIL" >&6; }
8780else
8781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8782$as_echo "no" >&6; }
8783fi
8784
8785
8786fi
8787if test -z "$ac_cv_prog_DSYMUTIL"; then
8788  ac_ct_DSYMUTIL=$DSYMUTIL
8789  # Extract the first word of "dsymutil", so it can be a program name with args.
8790set dummy dsymutil; ac_word=$2
8791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8792$as_echo_n "checking for $ac_word... " >&6; }
8793if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8794  $as_echo_n "(cached) " >&6
8795else
8796  if test -n "$ac_ct_DSYMUTIL"; then
8797  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8798else
8799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8800for as_dir in $PATH
8801do
8802  IFS=$as_save_IFS
8803  test -z "$as_dir" && as_dir=.
8804    for ac_exec_ext in '' $ac_executable_extensions; do
8805  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8806    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8807    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8808    break 2
8809  fi
8810done
8811  done
8812IFS=$as_save_IFS
8813
8814fi
8815fi
8816ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8817if test -n "$ac_ct_DSYMUTIL"; then
8818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8819$as_echo "$ac_ct_DSYMUTIL" >&6; }
8820else
8821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8822$as_echo "no" >&6; }
8823fi
8824
8825  if test "x$ac_ct_DSYMUTIL" = x; then
8826    DSYMUTIL=":"
8827  else
8828    case $cross_compiling:$ac_tool_warned in
8829yes:)
8830{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8831$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8832ac_tool_warned=yes ;;
8833esac
8834    DSYMUTIL=$ac_ct_DSYMUTIL
8835  fi
8836else
8837  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8838fi
8839
8840    if test -n "$ac_tool_prefix"; then
8841  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8842set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8844$as_echo_n "checking for $ac_word... " >&6; }
8845if ${ac_cv_prog_NMEDIT+:} false; then :
8846  $as_echo_n "(cached) " >&6
8847else
8848  if test -n "$NMEDIT"; then
8849  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8850else
8851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8852for as_dir in $PATH
8853do
8854  IFS=$as_save_IFS
8855  test -z "$as_dir" && as_dir=.
8856    for ac_exec_ext in '' $ac_executable_extensions; do
8857  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8858    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8859    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8860    break 2
8861  fi
8862done
8863  done
8864IFS=$as_save_IFS
8865
8866fi
8867fi
8868NMEDIT=$ac_cv_prog_NMEDIT
8869if test -n "$NMEDIT"; then
8870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8871$as_echo "$NMEDIT" >&6; }
8872else
8873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8874$as_echo "no" >&6; }
8875fi
8876
8877
8878fi
8879if test -z "$ac_cv_prog_NMEDIT"; then
8880  ac_ct_NMEDIT=$NMEDIT
8881  # Extract the first word of "nmedit", so it can be a program name with args.
8882set dummy nmedit; ac_word=$2
8883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8884$as_echo_n "checking for $ac_word... " >&6; }
8885if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8886  $as_echo_n "(cached) " >&6
8887else
8888  if test -n "$ac_ct_NMEDIT"; then
8889  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8890else
8891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8892for as_dir in $PATH
8893do
8894  IFS=$as_save_IFS
8895  test -z "$as_dir" && as_dir=.
8896    for ac_exec_ext in '' $ac_executable_extensions; do
8897  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8898    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8899    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8900    break 2
8901  fi
8902done
8903  done
8904IFS=$as_save_IFS
8905
8906fi
8907fi
8908ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8909if test -n "$ac_ct_NMEDIT"; then
8910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8911$as_echo "$ac_ct_NMEDIT" >&6; }
8912else
8913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8914$as_echo "no" >&6; }
8915fi
8916
8917  if test "x$ac_ct_NMEDIT" = x; then
8918    NMEDIT=":"
8919  else
8920    case $cross_compiling:$ac_tool_warned in
8921yes:)
8922{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8923$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8924ac_tool_warned=yes ;;
8925esac
8926    NMEDIT=$ac_ct_NMEDIT
8927  fi
8928else
8929  NMEDIT="$ac_cv_prog_NMEDIT"
8930fi
8931
8932    if test -n "$ac_tool_prefix"; then
8933  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8934set dummy ${ac_tool_prefix}lipo; ac_word=$2
8935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8936$as_echo_n "checking for $ac_word... " >&6; }
8937if ${ac_cv_prog_LIPO+:} false; then :
8938  $as_echo_n "(cached) " >&6
8939else
8940  if test -n "$LIPO"; then
8941  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8942else
8943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8944for as_dir in $PATH
8945do
8946  IFS=$as_save_IFS
8947  test -z "$as_dir" && as_dir=.
8948    for ac_exec_ext in '' $ac_executable_extensions; do
8949  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8950    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8951    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8952    break 2
8953  fi
8954done
8955  done
8956IFS=$as_save_IFS
8957
8958fi
8959fi
8960LIPO=$ac_cv_prog_LIPO
8961if test -n "$LIPO"; then
8962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8963$as_echo "$LIPO" >&6; }
8964else
8965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8966$as_echo "no" >&6; }
8967fi
8968
8969
8970fi
8971if test -z "$ac_cv_prog_LIPO"; then
8972  ac_ct_LIPO=$LIPO
8973  # Extract the first word of "lipo", so it can be a program name with args.
8974set dummy lipo; ac_word=$2
8975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8976$as_echo_n "checking for $ac_word... " >&6; }
8977if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8978  $as_echo_n "(cached) " >&6
8979else
8980  if test -n "$ac_ct_LIPO"; then
8981  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8982else
8983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8984for as_dir in $PATH
8985do
8986  IFS=$as_save_IFS
8987  test -z "$as_dir" && as_dir=.
8988    for ac_exec_ext in '' $ac_executable_extensions; do
8989  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8990    ac_cv_prog_ac_ct_LIPO="lipo"
8991    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8992    break 2
8993  fi
8994done
8995  done
8996IFS=$as_save_IFS
8997
8998fi
8999fi
9000ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9001if test -n "$ac_ct_LIPO"; then
9002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9003$as_echo "$ac_ct_LIPO" >&6; }
9004else
9005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9006$as_echo "no" >&6; }
9007fi
9008
9009  if test "x$ac_ct_LIPO" = x; then
9010    LIPO=":"
9011  else
9012    case $cross_compiling:$ac_tool_warned in
9013yes:)
9014{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9015$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9016ac_tool_warned=yes ;;
9017esac
9018    LIPO=$ac_ct_LIPO
9019  fi
9020else
9021  LIPO="$ac_cv_prog_LIPO"
9022fi
9023
9024    if test -n "$ac_tool_prefix"; then
9025  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9026set dummy ${ac_tool_prefix}otool; ac_word=$2
9027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9028$as_echo_n "checking for $ac_word... " >&6; }
9029if ${ac_cv_prog_OTOOL+:} false; then :
9030  $as_echo_n "(cached) " >&6
9031else
9032  if test -n "$OTOOL"; then
9033  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9034else
9035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9036for as_dir in $PATH
9037do
9038  IFS=$as_save_IFS
9039  test -z "$as_dir" && as_dir=.
9040    for ac_exec_ext in '' $ac_executable_extensions; do
9041  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9042    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9043    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9044    break 2
9045  fi
9046done
9047  done
9048IFS=$as_save_IFS
9049
9050fi
9051fi
9052OTOOL=$ac_cv_prog_OTOOL
9053if test -n "$OTOOL"; then
9054  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9055$as_echo "$OTOOL" >&6; }
9056else
9057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9058$as_echo "no" >&6; }
9059fi
9060
9061
9062fi
9063if test -z "$ac_cv_prog_OTOOL"; then
9064  ac_ct_OTOOL=$OTOOL
9065  # Extract the first word of "otool", so it can be a program name with args.
9066set dummy otool; ac_word=$2
9067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9068$as_echo_n "checking for $ac_word... " >&6; }
9069if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9070  $as_echo_n "(cached) " >&6
9071else
9072  if test -n "$ac_ct_OTOOL"; then
9073  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9074else
9075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9076for as_dir in $PATH
9077do
9078  IFS=$as_save_IFS
9079  test -z "$as_dir" && as_dir=.
9080    for ac_exec_ext in '' $ac_executable_extensions; do
9081  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9082    ac_cv_prog_ac_ct_OTOOL="otool"
9083    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9084    break 2
9085  fi
9086done
9087  done
9088IFS=$as_save_IFS
9089
9090fi
9091fi
9092ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9093if test -n "$ac_ct_OTOOL"; then
9094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9095$as_echo "$ac_ct_OTOOL" >&6; }
9096else
9097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9098$as_echo "no" >&6; }
9099fi
9100
9101  if test "x$ac_ct_OTOOL" = x; then
9102    OTOOL=":"
9103  else
9104    case $cross_compiling:$ac_tool_warned in
9105yes:)
9106{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9107$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9108ac_tool_warned=yes ;;
9109esac
9110    OTOOL=$ac_ct_OTOOL
9111  fi
9112else
9113  OTOOL="$ac_cv_prog_OTOOL"
9114fi
9115
9116    if test -n "$ac_tool_prefix"; then
9117  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9118set dummy ${ac_tool_prefix}otool64; ac_word=$2
9119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9120$as_echo_n "checking for $ac_word... " >&6; }
9121if ${ac_cv_prog_OTOOL64+:} false; then :
9122  $as_echo_n "(cached) " >&6
9123else
9124  if test -n "$OTOOL64"; then
9125  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9126else
9127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9128for as_dir in $PATH
9129do
9130  IFS=$as_save_IFS
9131  test -z "$as_dir" && as_dir=.
9132    for ac_exec_ext in '' $ac_executable_extensions; do
9133  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9134    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9135    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9136    break 2
9137  fi
9138done
9139  done
9140IFS=$as_save_IFS
9141
9142fi
9143fi
9144OTOOL64=$ac_cv_prog_OTOOL64
9145if test -n "$OTOOL64"; then
9146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9147$as_echo "$OTOOL64" >&6; }
9148else
9149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9150$as_echo "no" >&6; }
9151fi
9152
9153
9154fi
9155if test -z "$ac_cv_prog_OTOOL64"; then
9156  ac_ct_OTOOL64=$OTOOL64
9157  # Extract the first word of "otool64", so it can be a program name with args.
9158set dummy otool64; ac_word=$2
9159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9160$as_echo_n "checking for $ac_word... " >&6; }
9161if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9162  $as_echo_n "(cached) " >&6
9163else
9164  if test -n "$ac_ct_OTOOL64"; then
9165  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9166else
9167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9168for as_dir in $PATH
9169do
9170  IFS=$as_save_IFS
9171  test -z "$as_dir" && as_dir=.
9172    for ac_exec_ext in '' $ac_executable_extensions; do
9173  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9174    ac_cv_prog_ac_ct_OTOOL64="otool64"
9175    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9176    break 2
9177  fi
9178done
9179  done
9180IFS=$as_save_IFS
9181
9182fi
9183fi
9184ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9185if test -n "$ac_ct_OTOOL64"; then
9186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9187$as_echo "$ac_ct_OTOOL64" >&6; }
9188else
9189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9190$as_echo "no" >&6; }
9191fi
9192
9193  if test "x$ac_ct_OTOOL64" = x; then
9194    OTOOL64=":"
9195  else
9196    case $cross_compiling:$ac_tool_warned in
9197yes:)
9198{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9199$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9200ac_tool_warned=yes ;;
9201esac
9202    OTOOL64=$ac_ct_OTOOL64
9203  fi
9204else
9205  OTOOL64="$ac_cv_prog_OTOOL64"
9206fi
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9235$as_echo_n "checking for -single_module linker flag... " >&6; }
9236if ${lt_cv_apple_cc_single_mod+:} false; then :
9237  $as_echo_n "(cached) " >&6
9238else
9239  lt_cv_apple_cc_single_mod=no
9240      if test -z "${LT_MULTI_MODULE}"; then
9241	# By default we will add the -single_module flag. You can override
9242	# by either setting the environment variable LT_MULTI_MODULE
9243	# non-empty at configure time, or by adding -multi_module to the
9244	# link flags.
9245	rm -rf libconftest.dylib*
9246	echo "int foo(void){return 1;}" > conftest.c
9247	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9248-dynamiclib -Wl,-single_module conftest.c" >&5
9249	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9250	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9251        _lt_result=$?
9252	# If there is a non-empty error log, and "single_module"
9253	# appears in it, assume the flag caused a linker warning
9254        if test -s conftest.err && $GREP single_module conftest.err; then
9255	  cat conftest.err >&5
9256	# Otherwise, if the output was created with a 0 exit code from
9257	# the compiler, it worked.
9258	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9259	  lt_cv_apple_cc_single_mod=yes
9260	else
9261	  cat conftest.err >&5
9262	fi
9263	rm -rf libconftest.dylib*
9264	rm -f conftest.*
9265      fi
9266fi
9267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9268$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9269
9270    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9271$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9272if ${lt_cv_ld_exported_symbols_list+:} false; then :
9273  $as_echo_n "(cached) " >&6
9274else
9275  lt_cv_ld_exported_symbols_list=no
9276      save_LDFLAGS=$LDFLAGS
9277      echo "_main" > conftest.sym
9278      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9279      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9280/* end confdefs.h.  */
9281
9282int
9283main ()
9284{
9285
9286  ;
9287  return 0;
9288}
9289_ACEOF
9290if ac_fn_c_try_link "$LINENO"; then :
9291  lt_cv_ld_exported_symbols_list=yes
9292else
9293  lt_cv_ld_exported_symbols_list=no
9294fi
9295rm -f core conftest.err conftest.$ac_objext \
9296    conftest$ac_exeext conftest.$ac_ext
9297	LDFLAGS="$save_LDFLAGS"
9298
9299fi
9300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9301$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9302
9303    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9304$as_echo_n "checking for -force_load linker flag... " >&6; }
9305if ${lt_cv_ld_force_load+:} false; then :
9306  $as_echo_n "(cached) " >&6
9307else
9308  lt_cv_ld_force_load=no
9309      cat > conftest.c << _LT_EOF
9310int forced_loaded() { return 2;}
9311_LT_EOF
9312      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9313      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9314      echo "$AR cru libconftest.a conftest.o" >&5
9315      $AR cru libconftest.a conftest.o 2>&5
9316      echo "$RANLIB libconftest.a" >&5
9317      $RANLIB libconftest.a 2>&5
9318      cat > conftest.c << _LT_EOF
9319int main() { return 0;}
9320_LT_EOF
9321      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9322      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9323      _lt_result=$?
9324      if test -s conftest.err && $GREP force_load conftest.err; then
9325	cat conftest.err >&5
9326      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9327	lt_cv_ld_force_load=yes
9328      else
9329	cat conftest.err >&5
9330      fi
9331        rm -f conftest.err libconftest.a conftest conftest.c
9332        rm -rf conftest.dSYM
9333
9334fi
9335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9336$as_echo "$lt_cv_ld_force_load" >&6; }
9337    case $host_os in
9338    rhapsody* | darwin1.[012])
9339      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9340    darwin1.*)
9341      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9342    darwin*) # darwin 5.x on
9343      # if running on 10.5 or later, the deployment target defaults
9344      # to the OS version, if on x86, and 10.4, the deployment
9345      # target defaults to 10.4. Don't you love it?
9346      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9347	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9348	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9349	10.[012]*)
9350	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9351	10.*)
9352	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9353      esac
9354    ;;
9355  esac
9356    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9357      _lt_dar_single_mod='$single_module'
9358    fi
9359    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9360      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9361    else
9362      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9363    fi
9364    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9365      _lt_dsymutil='~$DSYMUTIL $lib || :'
9366    else
9367      _lt_dsymutil=
9368    fi
9369    ;;
9370  esac
9371
9372for ac_header in dlfcn.h
9373do :
9374  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9375"
9376if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9377  cat >>confdefs.h <<_ACEOF
9378#define HAVE_DLFCN_H 1
9379_ACEOF
9380
9381fi
9382
9383done
9384
9385
9386
9387
9388func_stripname_cnf ()
9389{
9390  case ${2} in
9391  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9392  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9393  esac
9394} # func_stripname_cnf
9395
9396
9397
9398
9399
9400# Set options
9401
9402
9403
9404        enable_dlopen=no
9405
9406
9407
9408            # Check whether --enable-shared was given.
9409if test "${enable_shared+set}" = set; then :
9410  enableval=$enable_shared; p=${PACKAGE-default}
9411    case $enableval in
9412    yes) enable_shared=yes ;;
9413    no) enable_shared=no ;;
9414    *)
9415      enable_shared=no
9416      # Look at the argument we got.  We use all the common list separators.
9417      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9418      for pkg in $enableval; do
9419	IFS="$lt_save_ifs"
9420	if test "X$pkg" = "X$p"; then
9421	  enable_shared=yes
9422	fi
9423      done
9424      IFS="$lt_save_ifs"
9425      ;;
9426    esac
9427else
9428  enable_shared=yes
9429fi
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439  # Check whether --enable-static was given.
9440if test "${enable_static+set}" = set; then :
9441  enableval=$enable_static; p=${PACKAGE-default}
9442    case $enableval in
9443    yes) enable_static=yes ;;
9444    no) enable_static=no ;;
9445    *)
9446     enable_static=no
9447      # Look at the argument we got.  We use all the common list separators.
9448      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9449      for pkg in $enableval; do
9450	IFS="$lt_save_ifs"
9451	if test "X$pkg" = "X$p"; then
9452	  enable_static=yes
9453	fi
9454      done
9455      IFS="$lt_save_ifs"
9456      ;;
9457    esac
9458else
9459  enable_static=yes
9460fi
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471# Check whether --with-pic was given.
9472if test "${with_pic+set}" = set; then :
9473  withval=$with_pic; lt_p=${PACKAGE-default}
9474    case $withval in
9475    yes|no) pic_mode=$withval ;;
9476    *)
9477      pic_mode=default
9478      # Look at the argument we got.  We use all the common list separators.
9479      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9480      for lt_pkg in $withval; do
9481	IFS="$lt_save_ifs"
9482	if test "X$lt_pkg" = "X$lt_p"; then
9483	  pic_mode=yes
9484	fi
9485      done
9486      IFS="$lt_save_ifs"
9487      ;;
9488    esac
9489else
9490  pic_mode=default
9491fi
9492
9493
9494test -z "$pic_mode" && pic_mode=default
9495
9496
9497
9498
9499
9500
9501
9502  # Check whether --enable-fast-install was given.
9503if test "${enable_fast_install+set}" = set; then :
9504  enableval=$enable_fast_install; p=${PACKAGE-default}
9505    case $enableval in
9506    yes) enable_fast_install=yes ;;
9507    no) enable_fast_install=no ;;
9508    *)
9509      enable_fast_install=no
9510      # Look at the argument we got.  We use all the common list separators.
9511      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9512      for pkg in $enableval; do
9513	IFS="$lt_save_ifs"
9514	if test "X$pkg" = "X$p"; then
9515	  enable_fast_install=yes
9516	fi
9517      done
9518      IFS="$lt_save_ifs"
9519      ;;
9520    esac
9521else
9522  enable_fast_install=yes
9523fi
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535# This can be used to rebuild libtool when needed
9536LIBTOOL_DEPS="$ltmain"
9537
9538# Always use our own libtool.
9539LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570test -z "$LN_S" && LN_S="ln -s"
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585if test -n "${ZSH_VERSION+set}" ; then
9586   setopt NO_GLOB_SUBST
9587fi
9588
9589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9590$as_echo_n "checking for objdir... " >&6; }
9591if ${lt_cv_objdir+:} false; then :
9592  $as_echo_n "(cached) " >&6
9593else
9594  rm -f .libs 2>/dev/null
9595mkdir .libs 2>/dev/null
9596if test -d .libs; then
9597  lt_cv_objdir=.libs
9598else
9599  # MS-DOS does not allow filenames that begin with a dot.
9600  lt_cv_objdir=_libs
9601fi
9602rmdir .libs 2>/dev/null
9603fi
9604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9605$as_echo "$lt_cv_objdir" >&6; }
9606objdir=$lt_cv_objdir
9607
9608
9609
9610
9611
9612cat >>confdefs.h <<_ACEOF
9613#define LT_OBJDIR "$lt_cv_objdir/"
9614_ACEOF
9615
9616
9617
9618
9619case $host_os in
9620aix3*)
9621  # AIX sometimes has problems with the GCC collect2 program.  For some
9622  # reason, if we set the COLLECT_NAMES environment variable, the problems
9623  # vanish in a puff of smoke.
9624  if test "X${COLLECT_NAMES+set}" != Xset; then
9625    COLLECT_NAMES=
9626    export COLLECT_NAMES
9627  fi
9628  ;;
9629esac
9630
9631# Global variables:
9632ofile=libtool
9633can_build_shared=yes
9634
9635# All known linkers require a `.a' archive for static linking (except MSVC,
9636# which needs '.lib').
9637libext=a
9638
9639with_gnu_ld="$lt_cv_prog_gnu_ld"
9640
9641old_CC="$CC"
9642old_CFLAGS="$CFLAGS"
9643
9644# Set sane defaults for various variables
9645test -z "$CC" && CC=cc
9646test -z "$LTCC" && LTCC=$CC
9647test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9648test -z "$LD" && LD=ld
9649test -z "$ac_objext" && ac_objext=o
9650
9651for cc_temp in $compiler""; do
9652  case $cc_temp in
9653    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9654    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9655    \-*) ;;
9656    *) break;;
9657  esac
9658done
9659cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9660
9661
9662# Only perform the check for file, if the check method requires it
9663test -z "$MAGIC_CMD" && MAGIC_CMD=file
9664case $deplibs_check_method in
9665file_magic*)
9666  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9667    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9668$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9669if ${lt_cv_path_MAGIC_CMD+:} false; then :
9670  $as_echo_n "(cached) " >&6
9671else
9672  case $MAGIC_CMD in
9673[\\/*] |  ?:[\\/]*)
9674  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9675  ;;
9676*)
9677  lt_save_MAGIC_CMD="$MAGIC_CMD"
9678  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9679  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9680  for ac_dir in $ac_dummy; do
9681    IFS="$lt_save_ifs"
9682    test -z "$ac_dir" && ac_dir=.
9683    if test -f $ac_dir/${ac_tool_prefix}file; then
9684      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9685      if test -n "$file_magic_test_file"; then
9686	case $deplibs_check_method in
9687	"file_magic "*)
9688	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9689	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9690	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9691	    $EGREP "$file_magic_regex" > /dev/null; then
9692	    :
9693	  else
9694	    cat <<_LT_EOF 1>&2
9695
9696*** Warning: the command libtool uses to detect shared libraries,
9697*** $file_magic_cmd, produces output that libtool cannot recognize.
9698*** The result is that libtool may fail to recognize shared libraries
9699*** as such.  This will affect the creation of libtool libraries that
9700*** depend on shared libraries, but programs linked with such libtool
9701*** libraries will work regardless of this problem.  Nevertheless, you
9702*** may want to report the problem to your system manager and/or to
9703*** bug-libtool@gnu.org
9704
9705_LT_EOF
9706	  fi ;;
9707	esac
9708      fi
9709      break
9710    fi
9711  done
9712  IFS="$lt_save_ifs"
9713  MAGIC_CMD="$lt_save_MAGIC_CMD"
9714  ;;
9715esac
9716fi
9717
9718MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9719if test -n "$MAGIC_CMD"; then
9720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9721$as_echo "$MAGIC_CMD" >&6; }
9722else
9723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9724$as_echo "no" >&6; }
9725fi
9726
9727
9728
9729
9730
9731if test -z "$lt_cv_path_MAGIC_CMD"; then
9732  if test -n "$ac_tool_prefix"; then
9733    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9734$as_echo_n "checking for file... " >&6; }
9735if ${lt_cv_path_MAGIC_CMD+:} false; then :
9736  $as_echo_n "(cached) " >&6
9737else
9738  case $MAGIC_CMD in
9739[\\/*] |  ?:[\\/]*)
9740  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9741  ;;
9742*)
9743  lt_save_MAGIC_CMD="$MAGIC_CMD"
9744  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9745  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9746  for ac_dir in $ac_dummy; do
9747    IFS="$lt_save_ifs"
9748    test -z "$ac_dir" && ac_dir=.
9749    if test -f $ac_dir/file; then
9750      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9751      if test -n "$file_magic_test_file"; then
9752	case $deplibs_check_method in
9753	"file_magic "*)
9754	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9755	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9756	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9757	    $EGREP "$file_magic_regex" > /dev/null; then
9758	    :
9759	  else
9760	    cat <<_LT_EOF 1>&2
9761
9762*** Warning: the command libtool uses to detect shared libraries,
9763*** $file_magic_cmd, produces output that libtool cannot recognize.
9764*** The result is that libtool may fail to recognize shared libraries
9765*** as such.  This will affect the creation of libtool libraries that
9766*** depend on shared libraries, but programs linked with such libtool
9767*** libraries will work regardless of this problem.  Nevertheless, you
9768*** may want to report the problem to your system manager and/or to
9769*** bug-libtool@gnu.org
9770
9771_LT_EOF
9772	  fi ;;
9773	esac
9774      fi
9775      break
9776    fi
9777  done
9778  IFS="$lt_save_ifs"
9779  MAGIC_CMD="$lt_save_MAGIC_CMD"
9780  ;;
9781esac
9782fi
9783
9784MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9785if test -n "$MAGIC_CMD"; then
9786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9787$as_echo "$MAGIC_CMD" >&6; }
9788else
9789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9790$as_echo "no" >&6; }
9791fi
9792
9793
9794  else
9795    MAGIC_CMD=:
9796  fi
9797fi
9798
9799  fi
9800  ;;
9801esac
9802
9803# Use C for the default configuration in the libtool script
9804
9805lt_save_CC="$CC"
9806ac_ext=c
9807ac_cpp='$CPP $CPPFLAGS'
9808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9810ac_compiler_gnu=$ac_cv_c_compiler_gnu
9811
9812
9813# Source file extension for C test sources.
9814ac_ext=c
9815
9816# Object file extension for compiled C test sources.
9817objext=o
9818objext=$objext
9819
9820# Code to be used in simple compile tests
9821lt_simple_compile_test_code="int some_variable = 0;"
9822
9823# Code to be used in simple link tests
9824lt_simple_link_test_code='int main(){return(0);}'
9825
9826
9827
9828
9829
9830
9831
9832# If no C compiler was specified, use CC.
9833LTCC=${LTCC-"$CC"}
9834
9835# If no C compiler flags were specified, use CFLAGS.
9836LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9837
9838# Allow CC to be a program name with arguments.
9839compiler=$CC
9840
9841# Save the default compiler, since it gets overwritten when the other
9842# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9843compiler_DEFAULT=$CC
9844
9845# save warnings/boilerplate of simple test code
9846ac_outfile=conftest.$ac_objext
9847echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9848eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9849_lt_compiler_boilerplate=`cat conftest.err`
9850$RM conftest*
9851
9852ac_outfile=conftest.$ac_objext
9853echo "$lt_simple_link_test_code" >conftest.$ac_ext
9854eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9855_lt_linker_boilerplate=`cat conftest.err`
9856$RM -r conftest*
9857
9858
9859## CAVEAT EMPTOR:
9860## There is no encapsulation within the following macros, do not change
9861## the running order or otherwise move them around unless you know exactly
9862## what you are doing...
9863if test -n "$compiler"; then
9864
9865lt_prog_compiler_no_builtin_flag=
9866
9867if test "$GCC" = yes; then
9868  case $cc_basename in
9869  nvcc*)
9870    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9871  *)
9872    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9873  esac
9874
9875  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9876$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9877if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9878  $as_echo_n "(cached) " >&6
9879else
9880  lt_cv_prog_compiler_rtti_exceptions=no
9881   ac_outfile=conftest.$ac_objext
9882   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9883   lt_compiler_flag="-fno-rtti -fno-exceptions"
9884   # Insert the option either (1) after the last *FLAGS variable, or
9885   # (2) before a word containing "conftest.", or (3) at the end.
9886   # Note that $ac_compile itself does not contain backslashes and begins
9887   # with a dollar sign (not a hyphen), so the echo should work correctly.
9888   # The option is referenced via a variable to avoid confusing sed.
9889   lt_compile=`echo "$ac_compile" | $SED \
9890   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9891   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9892   -e 's:$: $lt_compiler_flag:'`
9893   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9894   (eval "$lt_compile" 2>conftest.err)
9895   ac_status=$?
9896   cat conftest.err >&5
9897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898   if (exit $ac_status) && test -s "$ac_outfile"; then
9899     # The compiler can only warn and ignore the option if not recognized
9900     # So say no if there are warnings other than the usual output.
9901     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9902     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9903     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9904       lt_cv_prog_compiler_rtti_exceptions=yes
9905     fi
9906   fi
9907   $RM conftest*
9908
9909fi
9910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9911$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9912
9913if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9914    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9915else
9916    :
9917fi
9918
9919fi
9920
9921
9922
9923
9924
9925
9926  lt_prog_compiler_wl=
9927lt_prog_compiler_pic=
9928lt_prog_compiler_static=
9929
9930
9931  if test "$GCC" = yes; then
9932    lt_prog_compiler_wl='-Wl,'
9933    lt_prog_compiler_static='-static'
9934
9935    case $host_os in
9936      aix*)
9937      # All AIX code is PIC.
9938      if test "$host_cpu" = ia64; then
9939	# AIX 5 now supports IA64 processor
9940	lt_prog_compiler_static='-Bstatic'
9941      fi
9942      ;;
9943
9944    amigaos*)
9945      case $host_cpu in
9946      powerpc)
9947            # see comment about AmigaOS4 .so support
9948            lt_prog_compiler_pic='-fPIC'
9949        ;;
9950      m68k)
9951            # FIXME: we need at least 68020 code to build shared libraries, but
9952            # adding the `-m68020' flag to GCC prevents building anything better,
9953            # like `-m68040'.
9954            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9955        ;;
9956      esac
9957      ;;
9958
9959    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9960      # PIC is the default for these OSes.
9961      ;;
9962
9963    mingw* | cygwin* | pw32* | os2* | cegcc*)
9964      # This hack is so that the source file can tell whether it is being
9965      # built for inclusion in a dll (and should export symbols for example).
9966      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9967      # (--disable-auto-import) libraries
9968      lt_prog_compiler_pic='-DDLL_EXPORT'
9969      ;;
9970
9971    darwin* | rhapsody*)
9972      # PIC is the default on this platform
9973      # Common symbols not allowed in MH_DYLIB files
9974      lt_prog_compiler_pic='-fno-common'
9975      ;;
9976
9977    haiku*)
9978      # PIC is the default for Haiku.
9979      # The "-static" flag exists, but is broken.
9980      lt_prog_compiler_static=
9981      ;;
9982
9983    hpux*)
9984      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9985      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9986      # sets the default TLS model and affects inlining.
9987      case $host_cpu in
9988      hppa*64*)
9989	# +Z the default
9990	;;
9991      *)
9992	lt_prog_compiler_pic='-fPIC'
9993	;;
9994      esac
9995      ;;
9996
9997    interix[3-9]*)
9998      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9999      # Instead, we relocate shared libraries at runtime.
10000      ;;
10001
10002    msdosdjgpp*)
10003      # Just because we use GCC doesn't mean we suddenly get shared libraries
10004      # on systems that don't support them.
10005      lt_prog_compiler_can_build_shared=no
10006      enable_shared=no
10007      ;;
10008
10009    *nto* | *qnx*)
10010      # QNX uses GNU C++, but need to define -shared option too, otherwise
10011      # it will coredump.
10012      lt_prog_compiler_pic='-fPIC -shared'
10013      ;;
10014
10015    sysv4*MP*)
10016      if test -d /usr/nec; then
10017	lt_prog_compiler_pic=-Kconform_pic
10018      fi
10019      ;;
10020
10021    *)
10022      lt_prog_compiler_pic='-fPIC'
10023      ;;
10024    esac
10025
10026    case $cc_basename in
10027    nvcc*) # Cuda Compiler Driver 2.2
10028      lt_prog_compiler_wl='-Xlinker '
10029      if test -n "$lt_prog_compiler_pic"; then
10030        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10031      fi
10032      ;;
10033    esac
10034  else
10035    # PORTME Check for flag to pass linker flags through the system compiler.
10036    case $host_os in
10037    aix*)
10038      lt_prog_compiler_wl='-Wl,'
10039      if test "$host_cpu" = ia64; then
10040	# AIX 5 now supports IA64 processor
10041	lt_prog_compiler_static='-Bstatic'
10042      else
10043	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10044      fi
10045      ;;
10046
10047    mingw* | cygwin* | pw32* | os2* | cegcc*)
10048      # This hack is so that the source file can tell whether it is being
10049      # built for inclusion in a dll (and should export symbols for example).
10050      lt_prog_compiler_pic='-DDLL_EXPORT'
10051      ;;
10052
10053    hpux9* | hpux10* | hpux11*)
10054      lt_prog_compiler_wl='-Wl,'
10055      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10056      # not for PA HP-UX.
10057      case $host_cpu in
10058      hppa*64*|ia64*)
10059	# +Z the default
10060	;;
10061      *)
10062	lt_prog_compiler_pic='+Z'
10063	;;
10064      esac
10065      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10066      lt_prog_compiler_static='${wl}-a ${wl}archive'
10067      ;;
10068
10069    irix5* | irix6* | nonstopux*)
10070      lt_prog_compiler_wl='-Wl,'
10071      # PIC (with -KPIC) is the default.
10072      lt_prog_compiler_static='-non_shared'
10073      ;;
10074
10075    linux* | k*bsd*-gnu | kopensolaris*-gnu)
10076      case $cc_basename in
10077      # old Intel for x86_64 which still supported -KPIC.
10078      ecc*)
10079	lt_prog_compiler_wl='-Wl,'
10080	lt_prog_compiler_pic='-KPIC'
10081	lt_prog_compiler_static='-static'
10082        ;;
10083      # icc used to be incompatible with GCC.
10084      # ICC 10 doesn't accept -KPIC any more.
10085      icc* | ifort*)
10086	lt_prog_compiler_wl='-Wl,'
10087	lt_prog_compiler_pic='-fPIC'
10088	lt_prog_compiler_static='-static'
10089        ;;
10090      # Lahey Fortran 8.1.
10091      lf95*)
10092	lt_prog_compiler_wl='-Wl,'
10093	lt_prog_compiler_pic='--shared'
10094	lt_prog_compiler_static='--static'
10095	;;
10096      nagfor*)
10097	# NAG Fortran compiler
10098	lt_prog_compiler_wl='-Wl,-Wl,,'
10099	lt_prog_compiler_pic='-PIC'
10100	lt_prog_compiler_static='-Bstatic'
10101	;;
10102      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10103        # Portland Group compilers (*not* the Pentium gcc compiler,
10104	# which looks to be a dead project)
10105	lt_prog_compiler_wl='-Wl,'
10106	lt_prog_compiler_pic='-fpic'
10107	lt_prog_compiler_static='-Bstatic'
10108        ;;
10109      ccc*)
10110        lt_prog_compiler_wl='-Wl,'
10111        # All Alpha code is PIC.
10112        lt_prog_compiler_static='-non_shared'
10113        ;;
10114      xl* | bgxl* | bgf* | mpixl*)
10115	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10116	lt_prog_compiler_wl='-Wl,'
10117	lt_prog_compiler_pic='-qpic'
10118	lt_prog_compiler_static='-qstaticlink'
10119	;;
10120      *)
10121	case `$CC -V 2>&1 | sed 5q` in
10122	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10123	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
10124	  lt_prog_compiler_pic='-KPIC'
10125	  lt_prog_compiler_static='-Bstatic'
10126	  lt_prog_compiler_wl=''
10127	  ;;
10128	*Sun\ F* | *Sun*Fortran*)
10129	  lt_prog_compiler_pic='-KPIC'
10130	  lt_prog_compiler_static='-Bstatic'
10131	  lt_prog_compiler_wl='-Qoption ld '
10132	  ;;
10133	*Sun\ C*)
10134	  # Sun C 5.9
10135	  lt_prog_compiler_pic='-KPIC'
10136	  lt_prog_compiler_static='-Bstatic'
10137	  lt_prog_compiler_wl='-Wl,'
10138	  ;;
10139        *Intel*\ [CF]*Compiler*)
10140	  lt_prog_compiler_wl='-Wl,'
10141	  lt_prog_compiler_pic='-fPIC'
10142	  lt_prog_compiler_static='-static'
10143	  ;;
10144	*Portland\ Group*)
10145	  lt_prog_compiler_wl='-Wl,'
10146	  lt_prog_compiler_pic='-fpic'
10147	  lt_prog_compiler_static='-Bstatic'
10148	  ;;
10149	esac
10150	;;
10151      esac
10152      ;;
10153
10154    newsos6)
10155      lt_prog_compiler_pic='-KPIC'
10156      lt_prog_compiler_static='-Bstatic'
10157      ;;
10158
10159    *nto* | *qnx*)
10160      # QNX uses GNU C++, but need to define -shared option too, otherwise
10161      # it will coredump.
10162      lt_prog_compiler_pic='-fPIC -shared'
10163      ;;
10164
10165    osf3* | osf4* | osf5*)
10166      lt_prog_compiler_wl='-Wl,'
10167      # All OSF/1 code is PIC.
10168      lt_prog_compiler_static='-non_shared'
10169      ;;
10170
10171    rdos*)
10172      lt_prog_compiler_static='-non_shared'
10173      ;;
10174
10175    solaris*)
10176      lt_prog_compiler_pic='-KPIC'
10177      lt_prog_compiler_static='-Bstatic'
10178      case $cc_basename in
10179      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10180	lt_prog_compiler_wl='-Qoption ld ';;
10181      *)
10182	lt_prog_compiler_wl='-Wl,';;
10183      esac
10184      ;;
10185
10186    sunos4*)
10187      lt_prog_compiler_wl='-Qoption ld '
10188      lt_prog_compiler_pic='-PIC'
10189      lt_prog_compiler_static='-Bstatic'
10190      ;;
10191
10192    sysv4 | sysv4.2uw2* | sysv4.3*)
10193      lt_prog_compiler_wl='-Wl,'
10194      lt_prog_compiler_pic='-KPIC'
10195      lt_prog_compiler_static='-Bstatic'
10196      ;;
10197
10198    sysv4*MP*)
10199      if test -d /usr/nec ;then
10200	lt_prog_compiler_pic='-Kconform_pic'
10201	lt_prog_compiler_static='-Bstatic'
10202      fi
10203      ;;
10204
10205    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10206      lt_prog_compiler_wl='-Wl,'
10207      lt_prog_compiler_pic='-KPIC'
10208      lt_prog_compiler_static='-Bstatic'
10209      ;;
10210
10211    unicos*)
10212      lt_prog_compiler_wl='-Wl,'
10213      lt_prog_compiler_can_build_shared=no
10214      ;;
10215
10216    uts4*)
10217      lt_prog_compiler_pic='-pic'
10218      lt_prog_compiler_static='-Bstatic'
10219      ;;
10220
10221    *)
10222      lt_prog_compiler_can_build_shared=no
10223      ;;
10224    esac
10225  fi
10226
10227case $host_os in
10228  # For platforms which do not support PIC, -DPIC is meaningless:
10229  *djgpp*)
10230    lt_prog_compiler_pic=
10231    ;;
10232  *)
10233    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10234    ;;
10235esac
10236
10237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10238$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10239if ${lt_cv_prog_compiler_pic+:} false; then :
10240  $as_echo_n "(cached) " >&6
10241else
10242  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10243fi
10244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10245$as_echo "$lt_cv_prog_compiler_pic" >&6; }
10246lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10247
10248#
10249# Check to make sure the PIC flag actually works.
10250#
10251if test -n "$lt_prog_compiler_pic"; then
10252  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10253$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10254if ${lt_cv_prog_compiler_pic_works+:} false; then :
10255  $as_echo_n "(cached) " >&6
10256else
10257  lt_cv_prog_compiler_pic_works=no
10258   ac_outfile=conftest.$ac_objext
10259   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10260   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10261   # Insert the option either (1) after the last *FLAGS variable, or
10262   # (2) before a word containing "conftest.", or (3) at the end.
10263   # Note that $ac_compile itself does not contain backslashes and begins
10264   # with a dollar sign (not a hyphen), so the echo should work correctly.
10265   # The option is referenced via a variable to avoid confusing sed.
10266   lt_compile=`echo "$ac_compile" | $SED \
10267   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10268   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10269   -e 's:$: $lt_compiler_flag:'`
10270   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10271   (eval "$lt_compile" 2>conftest.err)
10272   ac_status=$?
10273   cat conftest.err >&5
10274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275   if (exit $ac_status) && test -s "$ac_outfile"; then
10276     # The compiler can only warn and ignore the option if not recognized
10277     # So say no if there are warnings other than the usual output.
10278     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10279     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10280     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10281       lt_cv_prog_compiler_pic_works=yes
10282     fi
10283   fi
10284   $RM conftest*
10285
10286fi
10287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10288$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10289
10290if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10291    case $lt_prog_compiler_pic in
10292     "" | " "*) ;;
10293     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10294     esac
10295else
10296    lt_prog_compiler_pic=
10297     lt_prog_compiler_can_build_shared=no
10298fi
10299
10300fi
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312#
10313# Check to make sure the static flag actually works.
10314#
10315wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10317$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10318if ${lt_cv_prog_compiler_static_works+:} false; then :
10319  $as_echo_n "(cached) " >&6
10320else
10321  lt_cv_prog_compiler_static_works=no
10322   save_LDFLAGS="$LDFLAGS"
10323   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10324   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10325   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10326     # The linker can only warn and ignore the option if not recognized
10327     # So say no if there are warnings
10328     if test -s conftest.err; then
10329       # Append any errors to the config.log.
10330       cat conftest.err 1>&5
10331       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10332       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10333       if diff conftest.exp conftest.er2 >/dev/null; then
10334         lt_cv_prog_compiler_static_works=yes
10335       fi
10336     else
10337       lt_cv_prog_compiler_static_works=yes
10338     fi
10339   fi
10340   $RM -r conftest*
10341   LDFLAGS="$save_LDFLAGS"
10342
10343fi
10344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10345$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10346
10347if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10348    :
10349else
10350    lt_prog_compiler_static=
10351fi
10352
10353
10354
10355
10356
10357
10358
10359  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10360$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10361if ${lt_cv_prog_compiler_c_o+:} false; then :
10362  $as_echo_n "(cached) " >&6
10363else
10364  lt_cv_prog_compiler_c_o=no
10365   $RM -r conftest 2>/dev/null
10366   mkdir conftest
10367   cd conftest
10368   mkdir out
10369   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10370
10371   lt_compiler_flag="-o out/conftest2.$ac_objext"
10372   # Insert the option either (1) after the last *FLAGS variable, or
10373   # (2) before a word containing "conftest.", or (3) at the end.
10374   # Note that $ac_compile itself does not contain backslashes and begins
10375   # with a dollar sign (not a hyphen), so the echo should work correctly.
10376   lt_compile=`echo "$ac_compile" | $SED \
10377   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10378   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10379   -e 's:$: $lt_compiler_flag:'`
10380   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10381   (eval "$lt_compile" 2>out/conftest.err)
10382   ac_status=$?
10383   cat out/conftest.err >&5
10384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10386   then
10387     # The compiler can only warn and ignore the option if not recognized
10388     # So say no if there are warnings
10389     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10390     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10391     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10392       lt_cv_prog_compiler_c_o=yes
10393     fi
10394   fi
10395   chmod u+w . 2>&5
10396   $RM conftest*
10397   # SGI C++ compiler will create directory out/ii_files/ for
10398   # template instantiation
10399   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10400   $RM out/* && rmdir out
10401   cd ..
10402   $RM -r conftest
10403   $RM conftest*
10404
10405fi
10406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10407$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10408
10409
10410
10411
10412
10413
10414  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10415$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10416if ${lt_cv_prog_compiler_c_o+:} false; then :
10417  $as_echo_n "(cached) " >&6
10418else
10419  lt_cv_prog_compiler_c_o=no
10420   $RM -r conftest 2>/dev/null
10421   mkdir conftest
10422   cd conftest
10423   mkdir out
10424   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10425
10426   lt_compiler_flag="-o out/conftest2.$ac_objext"
10427   # Insert the option either (1) after the last *FLAGS variable, or
10428   # (2) before a word containing "conftest.", or (3) at the end.
10429   # Note that $ac_compile itself does not contain backslashes and begins
10430   # with a dollar sign (not a hyphen), so the echo should work correctly.
10431   lt_compile=`echo "$ac_compile" | $SED \
10432   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10433   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10434   -e 's:$: $lt_compiler_flag:'`
10435   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10436   (eval "$lt_compile" 2>out/conftest.err)
10437   ac_status=$?
10438   cat out/conftest.err >&5
10439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10441   then
10442     # The compiler can only warn and ignore the option if not recognized
10443     # So say no if there are warnings
10444     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10445     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10446     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10447       lt_cv_prog_compiler_c_o=yes
10448     fi
10449   fi
10450   chmod u+w . 2>&5
10451   $RM conftest*
10452   # SGI C++ compiler will create directory out/ii_files/ for
10453   # template instantiation
10454   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10455   $RM out/* && rmdir out
10456   cd ..
10457   $RM -r conftest
10458   $RM conftest*
10459
10460fi
10461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10462$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10463
10464
10465
10466
10467hard_links="nottested"
10468if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10469  # do not overwrite the value of need_locks provided by the user
10470  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10471$as_echo_n "checking if we can lock with hard links... " >&6; }
10472  hard_links=yes
10473  $RM conftest*
10474  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10475  touch conftest.a
10476  ln conftest.a conftest.b 2>&5 || hard_links=no
10477  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10479$as_echo "$hard_links" >&6; }
10480  if test "$hard_links" = no; then
10481    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10482$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10483    need_locks=warn
10484  fi
10485else
10486  need_locks=no
10487fi
10488
10489
10490
10491
10492
10493
10494  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10495$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10496
10497  runpath_var=
10498  allow_undefined_flag=
10499  always_export_symbols=no
10500  archive_cmds=
10501  archive_expsym_cmds=
10502  compiler_needs_object=no
10503  enable_shared_with_static_runtimes=no
10504  export_dynamic_flag_spec=
10505  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10506  hardcode_automatic=no
10507  hardcode_direct=no
10508  hardcode_direct_absolute=no
10509  hardcode_libdir_flag_spec=
10510  hardcode_libdir_separator=
10511  hardcode_minus_L=no
10512  hardcode_shlibpath_var=unsupported
10513  inherit_rpath=no
10514  link_all_deplibs=unknown
10515  module_cmds=
10516  module_expsym_cmds=
10517  old_archive_from_new_cmds=
10518  old_archive_from_expsyms_cmds=
10519  thread_safe_flag_spec=
10520  whole_archive_flag_spec=
10521  # include_expsyms should be a list of space-separated symbols to be *always*
10522  # included in the symbol list
10523  include_expsyms=
10524  # exclude_expsyms can be an extended regexp of symbols to exclude
10525  # it will be wrapped by ` (' and `)$', so one must not match beginning or
10526  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10527  # as well as any symbol that contains `d'.
10528  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10529  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10530  # platforms (ab)use it in PIC code, but their linkers get confused if
10531  # the symbol is explicitly referenced.  Since portable code cannot
10532  # rely on this symbol name, it's probably fine to never include it in
10533  # preloaded symbol tables.
10534  # Exclude shared library initialization/finalization symbols.
10535  extract_expsyms_cmds=
10536
10537  case $host_os in
10538  cygwin* | mingw* | pw32* | cegcc*)
10539    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10540    # When not using gcc, we currently assume that we are using
10541    # Microsoft Visual C++.
10542    if test "$GCC" != yes; then
10543      with_gnu_ld=no
10544    fi
10545    ;;
10546  interix*)
10547    # we just hope/assume this is gcc and not c89 (= MSVC++)
10548    with_gnu_ld=yes
10549    ;;
10550  openbsd*)
10551    with_gnu_ld=no
10552    ;;
10553  esac
10554
10555  ld_shlibs=yes
10556
10557  # On some targets, GNU ld is compatible enough with the native linker
10558  # that we're better off using the native interface for both.
10559  lt_use_gnu_ld_interface=no
10560  if test "$with_gnu_ld" = yes; then
10561    case $host_os in
10562      aix*)
10563	# The AIX port of GNU ld has always aspired to compatibility
10564	# with the native linker.  However, as the warning in the GNU ld
10565	# block says, versions before 2.19.5* couldn't really create working
10566	# shared libraries, regardless of the interface used.
10567	case `$LD -v 2>&1` in
10568	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10569	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10570	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10571	  *)
10572	    lt_use_gnu_ld_interface=yes
10573	    ;;
10574	esac
10575	;;
10576      *)
10577	lt_use_gnu_ld_interface=yes
10578	;;
10579    esac
10580  fi
10581
10582  if test "$lt_use_gnu_ld_interface" = yes; then
10583    # If archive_cmds runs LD, not CC, wlarc should be empty
10584    wlarc='${wl}'
10585
10586    # Set some defaults for GNU ld with shared library support. These
10587    # are reset later if shared libraries are not supported. Putting them
10588    # here allows them to be overridden if necessary.
10589    runpath_var=LD_RUN_PATH
10590    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10591    export_dynamic_flag_spec='${wl}--export-dynamic'
10592    # ancient GNU ld didn't support --whole-archive et. al.
10593    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10594      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10595    else
10596      whole_archive_flag_spec=
10597    fi
10598    supports_anon_versioning=no
10599    case `$LD -v 2>&1` in
10600      *GNU\ gold*) supports_anon_versioning=yes ;;
10601      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10602      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10603      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10604      *\ 2.11.*) ;; # other 2.11 versions
10605      *) supports_anon_versioning=yes ;;
10606    esac
10607
10608    # See if GNU ld supports shared libraries.
10609    case $host_os in
10610    aix[3-9]*)
10611      # On AIX/PPC, the GNU linker is very broken
10612      if test "$host_cpu" != ia64; then
10613	ld_shlibs=no
10614	cat <<_LT_EOF 1>&2
10615
10616*** Warning: the GNU linker, at least up to release 2.19, is reported
10617*** to be unable to reliably create shared libraries on AIX.
10618*** Therefore, libtool is disabling shared libraries support.  If you
10619*** really care for shared libraries, you may want to install binutils
10620*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10621*** You will then need to restart the configuration process.
10622
10623_LT_EOF
10624      fi
10625      ;;
10626
10627    amigaos*)
10628      case $host_cpu in
10629      powerpc)
10630            # see comment about AmigaOS4 .so support
10631            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10632            archive_expsym_cmds=''
10633        ;;
10634      m68k)
10635            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)'
10636            hardcode_libdir_flag_spec='-L$libdir'
10637            hardcode_minus_L=yes
10638        ;;
10639      esac
10640      ;;
10641
10642    beos*)
10643      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10644	allow_undefined_flag=unsupported
10645	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10646	# support --undefined.  This deserves some investigation.  FIXME
10647	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10648      else
10649	ld_shlibs=no
10650      fi
10651      ;;
10652
10653    cygwin* | mingw* | pw32* | cegcc*)
10654      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10655      # as there is no search path for DLLs.
10656      hardcode_libdir_flag_spec='-L$libdir'
10657      export_dynamic_flag_spec='${wl}--export-all-symbols'
10658      allow_undefined_flag=unsupported
10659      always_export_symbols=no
10660      enable_shared_with_static_runtimes=yes
10661      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'
10662      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10663
10664      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10665        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10666	# If the export-symbols file already is a .def file (1st line
10667	# is EXPORTS), use it as is; otherwise, prepend...
10668	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10669	  cp $export_symbols $output_objdir/$soname.def;
10670	else
10671	  echo EXPORTS > $output_objdir/$soname.def;
10672	  cat $export_symbols >> $output_objdir/$soname.def;
10673	fi~
10674	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10675      else
10676	ld_shlibs=no
10677      fi
10678      ;;
10679
10680    haiku*)
10681      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10682      link_all_deplibs=yes
10683      ;;
10684
10685    interix[3-9]*)
10686      hardcode_direct=no
10687      hardcode_shlibpath_var=no
10688      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10689      export_dynamic_flag_spec='${wl}-E'
10690      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10691      # Instead, shared libraries are loaded at an image base (0x10000000 by
10692      # default) and relocated if they conflict, which is a slow very memory
10693      # consuming and fragmenting process.  To avoid this, we pick a random,
10694      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10695      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10696      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10697      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'
10698      ;;
10699
10700    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10701      tmp_diet=no
10702      if test "$host_os" = linux-dietlibc; then
10703	case $cc_basename in
10704	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10705	esac
10706      fi
10707      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10708	 && test "$tmp_diet" = no
10709      then
10710	tmp_addflag=' $pic_flag'
10711	tmp_sharedflag='-shared'
10712	case $cc_basename,$host_cpu in
10713        pgcc*)				# Portland Group C compiler
10714	  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'
10715	  tmp_addflag=' $pic_flag'
10716	  ;;
10717	pgf77* | pgf90* | pgf95* | pgfortran*)
10718					# Portland Group f77 and f90 compilers
10719	  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'
10720	  tmp_addflag=' $pic_flag -Mnomain' ;;
10721	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10722	  tmp_addflag=' -i_dynamic' ;;
10723	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10724	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10725	ifc* | ifort*)			# Intel Fortran compiler
10726	  tmp_addflag=' -nofor_main' ;;
10727	lf95*)				# Lahey Fortran 8.1
10728	  whole_archive_flag_spec=
10729	  tmp_sharedflag='--shared' ;;
10730	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10731	  tmp_sharedflag='-qmkshrobj'
10732	  tmp_addflag= ;;
10733	nvcc*)	# Cuda Compiler Driver 2.2
10734	  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'
10735	  compiler_needs_object=yes
10736	  ;;
10737	esac
10738	case `$CC -V 2>&1 | sed 5q` in
10739	*Sun\ C*)			# Sun C 5.9
10740	  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'
10741	  compiler_needs_object=yes
10742	  tmp_sharedflag='-G' ;;
10743	*Sun\ F*)			# Sun Fortran 8.3
10744	  tmp_sharedflag='-G' ;;
10745	esac
10746	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10747
10748        if test "x$supports_anon_versioning" = xyes; then
10749          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10750	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10751	    echo "local: *; };" >> $output_objdir/$libname.ver~
10752	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10753        fi
10754
10755	case $cc_basename in
10756	xlf* | bgf* | bgxlf* | mpixlf*)
10757	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10758	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10759	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10760	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10761	  if test "x$supports_anon_versioning" = xyes; then
10762	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10763	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10764	      echo "local: *; };" >> $output_objdir/$libname.ver~
10765	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10766	  fi
10767	  ;;
10768	esac
10769      else
10770        ld_shlibs=no
10771      fi
10772      ;;
10773
10774    netbsd*)
10775      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10776	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10777	wlarc=
10778      else
10779	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10780	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10781      fi
10782      ;;
10783
10784    solaris*)
10785      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10786	ld_shlibs=no
10787	cat <<_LT_EOF 1>&2
10788
10789*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10790*** create shared libraries on Solaris systems.  Therefore, libtool
10791*** is disabling shared libraries support.  We urge you to upgrade GNU
10792*** binutils to release 2.9.1 or newer.  Another option is to modify
10793*** your PATH or compiler configuration so that the native linker is
10794*** used, and then restart.
10795
10796_LT_EOF
10797      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10798	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10799	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10800      else
10801	ld_shlibs=no
10802      fi
10803      ;;
10804
10805    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10806      case `$LD -v 2>&1` in
10807        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10808	ld_shlibs=no
10809	cat <<_LT_EOF 1>&2
10810
10811*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10812*** reliably create shared libraries on SCO systems.  Therefore, libtool
10813*** is disabling shared libraries support.  We urge you to upgrade GNU
10814*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10815*** your PATH or compiler configuration so that the native linker is
10816*** used, and then restart.
10817
10818_LT_EOF
10819	;;
10820	*)
10821	  # For security reasons, it is highly recommended that you always
10822	  # use absolute paths for naming shared libraries, and exclude the
10823	  # DT_RUNPATH tag from executables and libraries.  But doing so
10824	  # requires that you compile everything twice, which is a pain.
10825	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10826	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10827	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10828	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10829	  else
10830	    ld_shlibs=no
10831	  fi
10832	;;
10833      esac
10834      ;;
10835
10836    sunos4*)
10837      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10838      wlarc=
10839      hardcode_direct=yes
10840      hardcode_shlibpath_var=no
10841      ;;
10842
10843    *)
10844      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10845	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10846	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10847      else
10848	ld_shlibs=no
10849      fi
10850      ;;
10851    esac
10852
10853    if test "$ld_shlibs" = no; then
10854      runpath_var=
10855      hardcode_libdir_flag_spec=
10856      export_dynamic_flag_spec=
10857      whole_archive_flag_spec=
10858    fi
10859  else
10860    # PORTME fill in a description of your system's linker (not GNU ld)
10861    case $host_os in
10862    aix3*)
10863      allow_undefined_flag=unsupported
10864      always_export_symbols=yes
10865      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'
10866      # Note: this linker hardcodes the directories in LIBPATH if there
10867      # are no directories specified by -L.
10868      hardcode_minus_L=yes
10869      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10870	# Neither direct hardcoding nor static linking is supported with a
10871	# broken collect2.
10872	hardcode_direct=unsupported
10873      fi
10874      ;;
10875
10876    aix[4-9]*)
10877      if test "$host_cpu" = ia64; then
10878	# On IA64, the linker does run time linking by default, so we don't
10879	# have to do anything special.
10880	aix_use_runtimelinking=no
10881	exp_sym_flag='-Bexport'
10882	no_entry_flag=""
10883      else
10884	# If we're using GNU nm, then we don't want the "-C" option.
10885	# -C means demangle to AIX nm, but means don't demangle with GNU nm
10886	# Also, AIX nm treats weak defined symbols like other global
10887	# defined symbols, whereas GNU nm marks them as "W".
10888	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10889	  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'
10890	else
10891	  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'
10892	fi
10893	aix_use_runtimelinking=no
10894
10895	# Test if we are trying to use run time linking or normal
10896	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10897	# need to do runtime linking.
10898	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10899	  for ld_flag in $LDFLAGS; do
10900	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10901	    aix_use_runtimelinking=yes
10902	    break
10903	  fi
10904	  done
10905	  ;;
10906	esac
10907
10908	exp_sym_flag='-bexport'
10909	no_entry_flag='-bnoentry'
10910      fi
10911
10912      # When large executables or shared objects are built, AIX ld can
10913      # have problems creating the table of contents.  If linking a library
10914      # or program results in "error TOC overflow" add -mminimal-toc to
10915      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10916      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10917
10918      archive_cmds=''
10919      hardcode_direct=yes
10920      hardcode_direct_absolute=yes
10921      hardcode_libdir_separator=':'
10922      link_all_deplibs=yes
10923      file_list_spec='${wl}-f,'
10924
10925      if test "$GCC" = yes; then
10926	case $host_os in aix4.[012]|aix4.[012].*)
10927	# We only want to do this on AIX 4.2 and lower, the check
10928	# below for broken collect2 doesn't work under 4.3+
10929	  collect2name=`${CC} -print-prog-name=collect2`
10930	  if test -f "$collect2name" &&
10931	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10932	  then
10933	  # We have reworked collect2
10934	  :
10935	  else
10936	  # We have old collect2
10937	  hardcode_direct=unsupported
10938	  # It fails to find uninstalled libraries when the uninstalled
10939	  # path is not listed in the libpath.  Setting hardcode_minus_L
10940	  # to unsupported forces relinking
10941	  hardcode_minus_L=yes
10942	  hardcode_libdir_flag_spec='-L$libdir'
10943	  hardcode_libdir_separator=
10944	  fi
10945	  ;;
10946	esac
10947	shared_flag='-shared'
10948	if test "$aix_use_runtimelinking" = yes; then
10949	  shared_flag="$shared_flag "'${wl}-G'
10950	fi
10951      else
10952	# not using gcc
10953	if test "$host_cpu" = ia64; then
10954	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10955	# chokes on -Wl,-G. The following line is correct:
10956	  shared_flag='-G'
10957	else
10958	  if test "$aix_use_runtimelinking" = yes; then
10959	    shared_flag='${wl}-G'
10960	  else
10961	    shared_flag='${wl}-bM:SRE'
10962	  fi
10963	fi
10964      fi
10965
10966      export_dynamic_flag_spec='${wl}-bexpall'
10967      # It seems that -bexpall does not export symbols beginning with
10968      # underscore (_), so it is better to generate a list of symbols to export.
10969      always_export_symbols=yes
10970      if test "$aix_use_runtimelinking" = yes; then
10971	# Warning - without using the other runtime loading flags (-brtl),
10972	# -berok will link without error, but may produce a broken library.
10973	allow_undefined_flag='-berok'
10974        # Determine the default libpath from the value encoded in an
10975        # empty executable.
10976        if test "${lt_cv_aix_libpath+set}" = set; then
10977  aix_libpath=$lt_cv_aix_libpath
10978else
10979  if ${lt_cv_aix_libpath_+:} false; then :
10980  $as_echo_n "(cached) " >&6
10981else
10982  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10983/* end confdefs.h.  */
10984
10985int
10986main ()
10987{
10988
10989  ;
10990  return 0;
10991}
10992_ACEOF
10993if ac_fn_c_try_link "$LINENO"; then :
10994
10995  lt_aix_libpath_sed='
10996      /Import File Strings/,/^$/ {
10997	  /^0/ {
10998	      s/^0  *\([^ ]*\) *$/\1/
10999	      p
11000	  }
11001      }'
11002  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11003  # Check for a 64-bit object if we didn't find anything.
11004  if test -z "$lt_cv_aix_libpath_"; then
11005    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11006  fi
11007fi
11008rm -f core conftest.err conftest.$ac_objext \
11009    conftest$ac_exeext conftest.$ac_ext
11010  if test -z "$lt_cv_aix_libpath_"; then
11011    lt_cv_aix_libpath_="/usr/lib:/lib"
11012  fi
11013
11014fi
11015
11016  aix_libpath=$lt_cv_aix_libpath_
11017fi
11018
11019        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11020        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"
11021      else
11022	if test "$host_cpu" = ia64; then
11023	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11024	  allow_undefined_flag="-z nodefs"
11025	  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"
11026	else
11027	 # Determine the default libpath from the value encoded in an
11028	 # empty executable.
11029	 if test "${lt_cv_aix_libpath+set}" = set; then
11030  aix_libpath=$lt_cv_aix_libpath
11031else
11032  if ${lt_cv_aix_libpath_+:} false; then :
11033  $as_echo_n "(cached) " >&6
11034else
11035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11036/* end confdefs.h.  */
11037
11038int
11039main ()
11040{
11041
11042  ;
11043  return 0;
11044}
11045_ACEOF
11046if ac_fn_c_try_link "$LINENO"; then :
11047
11048  lt_aix_libpath_sed='
11049      /Import File Strings/,/^$/ {
11050	  /^0/ {
11051	      s/^0  *\([^ ]*\) *$/\1/
11052	      p
11053	  }
11054      }'
11055  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11056  # Check for a 64-bit object if we didn't find anything.
11057  if test -z "$lt_cv_aix_libpath_"; then
11058    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11059  fi
11060fi
11061rm -f core conftest.err conftest.$ac_objext \
11062    conftest$ac_exeext conftest.$ac_ext
11063  if test -z "$lt_cv_aix_libpath_"; then
11064    lt_cv_aix_libpath_="/usr/lib:/lib"
11065  fi
11066
11067fi
11068
11069  aix_libpath=$lt_cv_aix_libpath_
11070fi
11071
11072	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11073	  # Warning - without using the other run time loading flags,
11074	  # -berok will link without error, but may produce a broken library.
11075	  no_undefined_flag=' ${wl}-bernotok'
11076	  allow_undefined_flag=' ${wl}-berok'
11077	  if test "$with_gnu_ld" = yes; then
11078	    # We only use this code for GNU lds that support --whole-archive.
11079	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11080	  else
11081	    # Exported symbols can be pulled into shared objects from archives
11082	    whole_archive_flag_spec='$convenience'
11083	  fi
11084	  archive_cmds_need_lc=yes
11085	  # This is similar to how AIX traditionally builds its shared libraries.
11086	  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'
11087	fi
11088      fi
11089      ;;
11090
11091    amigaos*)
11092      case $host_cpu in
11093      powerpc)
11094            # see comment about AmigaOS4 .so support
11095            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11096            archive_expsym_cmds=''
11097        ;;
11098      m68k)
11099            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)'
11100            hardcode_libdir_flag_spec='-L$libdir'
11101            hardcode_minus_L=yes
11102        ;;
11103      esac
11104      ;;
11105
11106    bsdi[45]*)
11107      export_dynamic_flag_spec=-rdynamic
11108      ;;
11109
11110    cygwin* | mingw* | pw32* | cegcc*)
11111      # When not using gcc, we currently assume that we are using
11112      # Microsoft Visual C++.
11113      # hardcode_libdir_flag_spec is actually meaningless, as there is
11114      # no search path for DLLs.
11115      case $cc_basename in
11116      cl*)
11117	# Native MSVC
11118	hardcode_libdir_flag_spec=' '
11119	allow_undefined_flag=unsupported
11120	always_export_symbols=yes
11121	file_list_spec='@'
11122	# Tell ltmain to make .lib files, not .a files.
11123	libext=lib
11124	# Tell ltmain to make .dll files, not .so files.
11125	shrext_cmds=".dll"
11126	# FIXME: Setting linknames here is a bad hack.
11127	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11128	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11129	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11130	  else
11131	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11132	  fi~
11133	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11134	  linknames='
11135	# The linker will not automatically build a static lib if we build a DLL.
11136	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11137	enable_shared_with_static_runtimes=yes
11138	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11139	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11140	# Don't use ranlib
11141	old_postinstall_cmds='chmod 644 $oldlib'
11142	postlink_cmds='lt_outputfile="@OUTPUT@"~
11143	  lt_tool_outputfile="@TOOL_OUTPUT@"~
11144	  case $lt_outputfile in
11145	    *.exe|*.EXE) ;;
11146	    *)
11147	      lt_outputfile="$lt_outputfile.exe"
11148	      lt_tool_outputfile="$lt_tool_outputfile.exe"
11149	      ;;
11150	  esac~
11151	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11152	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11153	    $RM "$lt_outputfile.manifest";
11154	  fi'
11155	;;
11156      *)
11157	# Assume MSVC wrapper
11158	hardcode_libdir_flag_spec=' '
11159	allow_undefined_flag=unsupported
11160	# Tell ltmain to make .lib files, not .a files.
11161	libext=lib
11162	# Tell ltmain to make .dll files, not .so files.
11163	shrext_cmds=".dll"
11164	# FIXME: Setting linknames here is a bad hack.
11165	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11166	# The linker will automatically build a .lib file if we build a DLL.
11167	old_archive_from_new_cmds='true'
11168	# FIXME: Should let the user specify the lib program.
11169	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11170	enable_shared_with_static_runtimes=yes
11171	;;
11172      esac
11173      ;;
11174
11175    darwin* | rhapsody*)
11176
11177
11178  archive_cmds_need_lc=no
11179  hardcode_direct=no
11180  hardcode_automatic=yes
11181  hardcode_shlibpath_var=unsupported
11182  if test "$lt_cv_ld_force_load" = "yes"; then
11183    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\"`'
11184
11185  else
11186    whole_archive_flag_spec=''
11187  fi
11188  link_all_deplibs=yes
11189  allow_undefined_flag="$_lt_dar_allow_undefined"
11190  case $cc_basename in
11191     ifort*) _lt_dar_can_shared=yes ;;
11192     *) _lt_dar_can_shared=$GCC ;;
11193  esac
11194  if test "$_lt_dar_can_shared" = "yes"; then
11195    output_verbose_link_cmd=func_echo_all
11196    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11197    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11198    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}"
11199    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}"
11200
11201  else
11202  ld_shlibs=no
11203  fi
11204
11205      ;;
11206
11207    dgux*)
11208      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11209      hardcode_libdir_flag_spec='-L$libdir'
11210      hardcode_shlibpath_var=no
11211      ;;
11212
11213    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11214    # support.  Future versions do this automatically, but an explicit c++rt0.o
11215    # does not break anything, and helps significantly (at the cost of a little
11216    # extra space).
11217    freebsd2.2*)
11218      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11219      hardcode_libdir_flag_spec='-R$libdir'
11220      hardcode_direct=yes
11221      hardcode_shlibpath_var=no
11222      ;;
11223
11224    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11225    freebsd2.*)
11226      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11227      hardcode_direct=yes
11228      hardcode_minus_L=yes
11229      hardcode_shlibpath_var=no
11230      ;;
11231
11232    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11233    freebsd* | dragonfly*)
11234      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11235      hardcode_libdir_flag_spec='-R$libdir'
11236      hardcode_direct=yes
11237      hardcode_shlibpath_var=no
11238      ;;
11239
11240    hpux9*)
11241      if test "$GCC" = yes; then
11242	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'
11243      else
11244	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'
11245      fi
11246      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11247      hardcode_libdir_separator=:
11248      hardcode_direct=yes
11249
11250      # hardcode_minus_L: Not really in the search PATH,
11251      # but as the default location of the library.
11252      hardcode_minus_L=yes
11253      export_dynamic_flag_spec='${wl}-E'
11254      ;;
11255
11256    hpux10*)
11257      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11258	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11259      else
11260	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11261      fi
11262      if test "$with_gnu_ld" = no; then
11263	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11264	hardcode_libdir_separator=:
11265	hardcode_direct=yes
11266	hardcode_direct_absolute=yes
11267	export_dynamic_flag_spec='${wl}-E'
11268	# hardcode_minus_L: Not really in the search PATH,
11269	# but as the default location of the library.
11270	hardcode_minus_L=yes
11271      fi
11272      ;;
11273
11274    hpux11*)
11275      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11276	case $host_cpu in
11277	hppa*64*)
11278	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11279	  ;;
11280	ia64*)
11281	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11282	  ;;
11283	*)
11284	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11285	  ;;
11286	esac
11287      else
11288	case $host_cpu in
11289	hppa*64*)
11290	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11291	  ;;
11292	ia64*)
11293	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11294	  ;;
11295	*)
11296
11297	  # Older versions of the 11.00 compiler do not understand -b yet
11298	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11299	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11300$as_echo_n "checking if $CC understands -b... " >&6; }
11301if ${lt_cv_prog_compiler__b+:} false; then :
11302  $as_echo_n "(cached) " >&6
11303else
11304  lt_cv_prog_compiler__b=no
11305   save_LDFLAGS="$LDFLAGS"
11306   LDFLAGS="$LDFLAGS -b"
11307   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11308   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11309     # The linker can only warn and ignore the option if not recognized
11310     # So say no if there are warnings
11311     if test -s conftest.err; then
11312       # Append any errors to the config.log.
11313       cat conftest.err 1>&5
11314       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11315       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11316       if diff conftest.exp conftest.er2 >/dev/null; then
11317         lt_cv_prog_compiler__b=yes
11318       fi
11319     else
11320       lt_cv_prog_compiler__b=yes
11321     fi
11322   fi
11323   $RM -r conftest*
11324   LDFLAGS="$save_LDFLAGS"
11325
11326fi
11327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11328$as_echo "$lt_cv_prog_compiler__b" >&6; }
11329
11330if test x"$lt_cv_prog_compiler__b" = xyes; then
11331    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11332else
11333    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11334fi
11335
11336	  ;;
11337	esac
11338      fi
11339      if test "$with_gnu_ld" = no; then
11340	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11341	hardcode_libdir_separator=:
11342
11343	case $host_cpu in
11344	hppa*64*|ia64*)
11345	  hardcode_direct=no
11346	  hardcode_shlibpath_var=no
11347	  ;;
11348	*)
11349	  hardcode_direct=yes
11350	  hardcode_direct_absolute=yes
11351	  export_dynamic_flag_spec='${wl}-E'
11352
11353	  # hardcode_minus_L: Not really in the search PATH,
11354	  # but as the default location of the library.
11355	  hardcode_minus_L=yes
11356	  ;;
11357	esac
11358      fi
11359      ;;
11360
11361    irix5* | irix6* | nonstopux*)
11362      if test "$GCC" = yes; then
11363	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'
11364	# Try to use the -exported_symbol ld option, if it does not
11365	# work, assume that -exports_file does not work either and
11366	# implicitly export all symbols.
11367	# This should be the same for all languages, so no per-tag cache variable.
11368	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11369$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11370if ${lt_cv_irix_exported_symbol+:} false; then :
11371  $as_echo_n "(cached) " >&6
11372else
11373  save_LDFLAGS="$LDFLAGS"
11374	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11375	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11376/* end confdefs.h.  */
11377int foo (void) { return 0; }
11378_ACEOF
11379if ac_fn_c_try_link "$LINENO"; then :
11380  lt_cv_irix_exported_symbol=yes
11381else
11382  lt_cv_irix_exported_symbol=no
11383fi
11384rm -f core conftest.err conftest.$ac_objext \
11385    conftest$ac_exeext conftest.$ac_ext
11386           LDFLAGS="$save_LDFLAGS"
11387fi
11388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11389$as_echo "$lt_cv_irix_exported_symbol" >&6; }
11390	if test "$lt_cv_irix_exported_symbol" = yes; then
11391          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'
11392	fi
11393      else
11394	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'
11395	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'
11396      fi
11397      archive_cmds_need_lc='no'
11398      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11399      hardcode_libdir_separator=:
11400      inherit_rpath=yes
11401      link_all_deplibs=yes
11402      ;;
11403
11404    netbsd*)
11405      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11406	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11407      else
11408	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11409      fi
11410      hardcode_libdir_flag_spec='-R$libdir'
11411      hardcode_direct=yes
11412      hardcode_shlibpath_var=no
11413      ;;
11414
11415    newsos6)
11416      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11417      hardcode_direct=yes
11418      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11419      hardcode_libdir_separator=:
11420      hardcode_shlibpath_var=no
11421      ;;
11422
11423    *nto* | *qnx*)
11424      ;;
11425
11426    openbsd*)
11427      if test -f /usr/libexec/ld.so; then
11428	hardcode_direct=yes
11429	hardcode_shlibpath_var=no
11430	hardcode_direct_absolute=yes
11431	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11432	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11433	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11434	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11435	  export_dynamic_flag_spec='${wl}-E'
11436	else
11437	  case $host_os in
11438	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11439	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11440	     hardcode_libdir_flag_spec='-R$libdir'
11441	     ;;
11442	   *)
11443	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11444	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11445	     ;;
11446	  esac
11447	fi
11448      else
11449	ld_shlibs=no
11450      fi
11451      ;;
11452
11453    os2*)
11454      hardcode_libdir_flag_spec='-L$libdir'
11455      hardcode_minus_L=yes
11456      allow_undefined_flag=unsupported
11457      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'
11458      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11459      ;;
11460
11461    osf3*)
11462      if test "$GCC" = yes; then
11463	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11464	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'
11465      else
11466	allow_undefined_flag=' -expect_unresolved \*'
11467	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'
11468      fi
11469      archive_cmds_need_lc='no'
11470      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11471      hardcode_libdir_separator=:
11472      ;;
11473
11474    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11475      if test "$GCC" = yes; then
11476	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11477	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'
11478	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11479      else
11480	allow_undefined_flag=' -expect_unresolved \*'
11481	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'
11482	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~
11483	$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'
11484
11485	# Both c and cxx compiler support -rpath directly
11486	hardcode_libdir_flag_spec='-rpath $libdir'
11487      fi
11488      archive_cmds_need_lc='no'
11489      hardcode_libdir_separator=:
11490      ;;
11491
11492    solaris*)
11493      no_undefined_flag=' -z defs'
11494      if test "$GCC" = yes; then
11495	wlarc='${wl}'
11496	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11497	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11498	  $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'
11499      else
11500	case `$CC -V 2>&1` in
11501	*"Compilers 5.0"*)
11502	  wlarc=''
11503	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11504	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11505	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11506	  ;;
11507	*)
11508	  wlarc='${wl}'
11509	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11510	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11511	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11512	  ;;
11513	esac
11514      fi
11515      hardcode_libdir_flag_spec='-R$libdir'
11516      hardcode_shlibpath_var=no
11517      case $host_os in
11518      solaris2.[0-5] | solaris2.[0-5].*) ;;
11519      *)
11520	# The compiler driver will combine and reorder linker options,
11521	# but understands `-z linker_flag'.  GCC discards it without `$wl',
11522	# but is careful enough not to reorder.
11523	# Supported since Solaris 2.6 (maybe 2.5.1?)
11524	if test "$GCC" = yes; then
11525	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11526	else
11527	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11528	fi
11529	;;
11530      esac
11531      link_all_deplibs=yes
11532      ;;
11533
11534    sunos4*)
11535      if test "x$host_vendor" = xsequent; then
11536	# Use $CC to link under sequent, because it throws in some extra .o
11537	# files that make .init and .fini sections work.
11538	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11539      else
11540	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11541      fi
11542      hardcode_libdir_flag_spec='-L$libdir'
11543      hardcode_direct=yes
11544      hardcode_minus_L=yes
11545      hardcode_shlibpath_var=no
11546      ;;
11547
11548    sysv4)
11549      case $host_vendor in
11550	sni)
11551	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11552	  hardcode_direct=yes # is this really true???
11553	;;
11554	siemens)
11555	  ## LD is ld it makes a PLAMLIB
11556	  ## CC just makes a GrossModule.
11557	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11558	  reload_cmds='$CC -r -o $output$reload_objs'
11559	  hardcode_direct=no
11560        ;;
11561	motorola)
11562	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11563	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11564	;;
11565      esac
11566      runpath_var='LD_RUN_PATH'
11567      hardcode_shlibpath_var=no
11568      ;;
11569
11570    sysv4.3*)
11571      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11572      hardcode_shlibpath_var=no
11573      export_dynamic_flag_spec='-Bexport'
11574      ;;
11575
11576    sysv4*MP*)
11577      if test -d /usr/nec; then
11578	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11579	hardcode_shlibpath_var=no
11580	runpath_var=LD_RUN_PATH
11581	hardcode_runpath_var=yes
11582	ld_shlibs=yes
11583      fi
11584      ;;
11585
11586    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11587      no_undefined_flag='${wl}-z,text'
11588      archive_cmds_need_lc=no
11589      hardcode_shlibpath_var=no
11590      runpath_var='LD_RUN_PATH'
11591
11592      if test "$GCC" = yes; then
11593	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11594	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11595      else
11596	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11597	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11598      fi
11599      ;;
11600
11601    sysv5* | sco3.2v5* | sco5v6*)
11602      # Note: We can NOT use -z defs as we might desire, because we do not
11603      # link with -lc, and that would cause any symbols used from libc to
11604      # always be unresolved, which means just about no library would
11605      # ever link correctly.  If we're not using GNU ld we use -z text
11606      # though, which does catch some bad symbols but isn't as heavy-handed
11607      # as -z defs.
11608      no_undefined_flag='${wl}-z,text'
11609      allow_undefined_flag='${wl}-z,nodefs'
11610      archive_cmds_need_lc=no
11611      hardcode_shlibpath_var=no
11612      hardcode_libdir_flag_spec='${wl}-R,$libdir'
11613      hardcode_libdir_separator=':'
11614      link_all_deplibs=yes
11615      export_dynamic_flag_spec='${wl}-Bexport'
11616      runpath_var='LD_RUN_PATH'
11617
11618      if test "$GCC" = yes; then
11619	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11620	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11621      else
11622	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11623	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11624      fi
11625      ;;
11626
11627    uts4*)
11628      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11629      hardcode_libdir_flag_spec='-L$libdir'
11630      hardcode_shlibpath_var=no
11631      ;;
11632
11633    *)
11634      ld_shlibs=no
11635      ;;
11636    esac
11637
11638    if test x$host_vendor = xsni; then
11639      case $host in
11640      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11641	export_dynamic_flag_spec='${wl}-Blargedynsym'
11642	;;
11643      esac
11644    fi
11645  fi
11646
11647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11648$as_echo "$ld_shlibs" >&6; }
11649test "$ld_shlibs" = no && can_build_shared=no
11650
11651with_gnu_ld=$with_gnu_ld
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667#
11668# Do we need to explicitly link libc?
11669#
11670case "x$archive_cmds_need_lc" in
11671x|xyes)
11672  # Assume -lc should be added
11673  archive_cmds_need_lc=yes
11674
11675  if test "$enable_shared" = yes && test "$GCC" = yes; then
11676    case $archive_cmds in
11677    *'~'*)
11678      # FIXME: we may have to deal with multi-command sequences.
11679      ;;
11680    '$CC '*)
11681      # Test whether the compiler implicitly links with -lc since on some
11682      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11683      # to ld, don't add -lc before -lgcc.
11684      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11685$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11686if ${lt_cv_archive_cmds_need_lc+:} false; then :
11687  $as_echo_n "(cached) " >&6
11688else
11689  $RM conftest*
11690	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11691
11692	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11693  (eval $ac_compile) 2>&5
11694  ac_status=$?
11695  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11696  test $ac_status = 0; } 2>conftest.err; then
11697	  soname=conftest
11698	  lib=conftest
11699	  libobjs=conftest.$ac_objext
11700	  deplibs=
11701	  wl=$lt_prog_compiler_wl
11702	  pic_flag=$lt_prog_compiler_pic
11703	  compiler_flags=-v
11704	  linker_flags=-v
11705	  verstring=
11706	  output_objdir=.
11707	  libname=conftest
11708	  lt_save_allow_undefined_flag=$allow_undefined_flag
11709	  allow_undefined_flag=
11710	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11711  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11712  ac_status=$?
11713  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11714  test $ac_status = 0; }
11715	  then
11716	    lt_cv_archive_cmds_need_lc=no
11717	  else
11718	    lt_cv_archive_cmds_need_lc=yes
11719	  fi
11720	  allow_undefined_flag=$lt_save_allow_undefined_flag
11721	else
11722	  cat conftest.err 1>&5
11723	fi
11724	$RM conftest*
11725
11726fi
11727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11728$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11729      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11730      ;;
11731    esac
11732  fi
11733  ;;
11734esac
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11888$as_echo_n "checking dynamic linker characteristics... " >&6; }
11889
11890if test "$GCC" = yes; then
11891  case $host_os in
11892    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11893    *) lt_awk_arg="/^libraries:/" ;;
11894  esac
11895  case $host_os in
11896    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11897    *) lt_sed_strip_eq="s,=/,/,g" ;;
11898  esac
11899  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11900  case $lt_search_path_spec in
11901  *\;*)
11902    # if the path contains ";" then we assume it to be the separator
11903    # otherwise default to the standard path separator (i.e. ":") - it is
11904    # assumed that no part of a normal pathname contains ";" but that should
11905    # okay in the real world where ";" in dirpaths is itself problematic.
11906    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11907    ;;
11908  *)
11909    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11910    ;;
11911  esac
11912  # Ok, now we have the path, separated by spaces, we can step through it
11913  # and add multilib dir if necessary.
11914  lt_tmp_lt_search_path_spec=
11915  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11916  for lt_sys_path in $lt_search_path_spec; do
11917    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11918      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11919    else
11920      test -d "$lt_sys_path" && \
11921	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11922    fi
11923  done
11924  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11925BEGIN {RS=" "; FS="/|\n";} {
11926  lt_foo="";
11927  lt_count=0;
11928  for (lt_i = NF; lt_i > 0; lt_i--) {
11929    if ($lt_i != "" && $lt_i != ".") {
11930      if ($lt_i == "..") {
11931        lt_count++;
11932      } else {
11933        if (lt_count == 0) {
11934          lt_foo="/" $lt_i lt_foo;
11935        } else {
11936          lt_count--;
11937        }
11938      }
11939    }
11940  }
11941  if (lt_foo != "") { lt_freq[lt_foo]++; }
11942  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11943}'`
11944  # AWK program above erroneously prepends '/' to C:/dos/paths
11945  # for these hosts.
11946  case $host_os in
11947    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11948      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11949  esac
11950  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11951else
11952  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11953fi
11954library_names_spec=
11955libname_spec='lib$name'
11956soname_spec=
11957shrext_cmds=".so"
11958postinstall_cmds=
11959postuninstall_cmds=
11960finish_cmds=
11961finish_eval=
11962shlibpath_var=
11963shlibpath_overrides_runpath=unknown
11964version_type=none
11965dynamic_linker="$host_os ld.so"
11966sys_lib_dlsearch_path_spec="/lib /usr/lib"
11967need_lib_prefix=unknown
11968hardcode_into_libs=no
11969
11970# when you set need_version to no, make sure it does not cause -set_version
11971# flags to be left without arguments
11972need_version=unknown
11973
11974case $host_os in
11975aix3*)
11976  version_type=linux # correct to gnu/linux during the next big refactor
11977  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11978  shlibpath_var=LIBPATH
11979
11980  # AIX 3 has no versioning support, so we append a major version to the name.
11981  soname_spec='${libname}${release}${shared_ext}$major'
11982  ;;
11983
11984aix[4-9]*)
11985  version_type=linux # correct to gnu/linux during the next big refactor
11986  need_lib_prefix=no
11987  need_version=no
11988  hardcode_into_libs=yes
11989  if test "$host_cpu" = ia64; then
11990    # AIX 5 supports IA64
11991    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11992    shlibpath_var=LD_LIBRARY_PATH
11993  else
11994    # With GCC up to 2.95.x, collect2 would create an import file
11995    # for dependence libraries.  The import file would start with
11996    # the line `#! .'.  This would cause the generated library to
11997    # depend on `.', always an invalid library.  This was fixed in
11998    # development snapshots of GCC prior to 3.0.
11999    case $host_os in
12000      aix4 | aix4.[01] | aix4.[01].*)
12001      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12002	   echo ' yes '
12003	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12004	:
12005      else
12006	can_build_shared=no
12007      fi
12008      ;;
12009    esac
12010    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12011    # soname into executable. Probably we can add versioning support to
12012    # collect2, so additional links can be useful in future.
12013    if test "$aix_use_runtimelinking" = yes; then
12014      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12015      # instead of lib<name>.a to let people know that these are not
12016      # typical AIX shared libraries.
12017      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12018    else
12019      # We preserve .a as extension for shared libraries through AIX4.2
12020      # and later when we are not doing run time linking.
12021      library_names_spec='${libname}${release}.a $libname.a'
12022      soname_spec='${libname}${release}${shared_ext}$major'
12023    fi
12024    shlibpath_var=LIBPATH
12025  fi
12026  ;;
12027
12028amigaos*)
12029  case $host_cpu in
12030  powerpc)
12031    # Since July 2007 AmigaOS4 officially supports .so libraries.
12032    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12033    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12034    ;;
12035  m68k)
12036    library_names_spec='$libname.ixlibrary $libname.a'
12037    # Create ${libname}_ixlibrary.a entries in /sys/libs.
12038    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'
12039    ;;
12040  esac
12041  ;;
12042
12043beos*)
12044  library_names_spec='${libname}${shared_ext}'
12045  dynamic_linker="$host_os ld.so"
12046  shlibpath_var=LIBRARY_PATH
12047  ;;
12048
12049bsdi[45]*)
12050  version_type=linux # correct to gnu/linux during the next big refactor
12051  need_version=no
12052  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12053  soname_spec='${libname}${release}${shared_ext}$major'
12054  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12055  shlibpath_var=LD_LIBRARY_PATH
12056  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12057  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12058  # the default ld.so.conf also contains /usr/contrib/lib and
12059  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12060  # libtool to hard-code these into programs
12061  ;;
12062
12063cygwin* | mingw* | pw32* | cegcc*)
12064  version_type=windows
12065  shrext_cmds=".dll"
12066  need_version=no
12067  need_lib_prefix=no
12068
12069  case $GCC,$cc_basename in
12070  yes,*)
12071    # gcc
12072    library_names_spec='$libname.dll.a'
12073    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12074    postinstall_cmds='base_file=`basename \${file}`~
12075      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12076      dldir=$destdir/`dirname \$dlpath`~
12077      test -d \$dldir || mkdir -p \$dldir~
12078      $install_prog $dir/$dlname \$dldir/$dlname~
12079      chmod a+x \$dldir/$dlname~
12080      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12081        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12082      fi'
12083    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12084      dlpath=$dir/\$dldll~
12085       $RM \$dlpath'
12086    shlibpath_overrides_runpath=yes
12087
12088    case $host_os in
12089    cygwin*)
12090      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12091      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12092
12093      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12094      ;;
12095    mingw* | cegcc*)
12096      # MinGW DLLs use traditional 'lib' prefix
12097      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12098      ;;
12099    pw32*)
12100      # pw32 DLLs use 'pw' prefix rather than 'lib'
12101      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12102      ;;
12103    esac
12104    dynamic_linker='Win32 ld.exe'
12105    ;;
12106
12107  *,cl*)
12108    # Native MSVC
12109    libname_spec='$name'
12110    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12111    library_names_spec='${libname}.dll.lib'
12112
12113    case $build_os in
12114    mingw*)
12115      sys_lib_search_path_spec=
12116      lt_save_ifs=$IFS
12117      IFS=';'
12118      for lt_path in $LIB
12119      do
12120        IFS=$lt_save_ifs
12121        # Let DOS variable expansion print the short 8.3 style file name.
12122        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12123        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12124      done
12125      IFS=$lt_save_ifs
12126      # Convert to MSYS style.
12127      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12128      ;;
12129    cygwin*)
12130      # Convert to unix form, then to dos form, then back to unix form
12131      # but this time dos style (no spaces!) so that the unix form looks
12132      # like /cygdrive/c/PROGRA~1:/cygdr...
12133      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12134      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12135      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12136      ;;
12137    *)
12138      sys_lib_search_path_spec="$LIB"
12139      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12140        # It is most probably a Windows format PATH.
12141        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12142      else
12143        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12144      fi
12145      # FIXME: find the short name or the path components, as spaces are
12146      # common. (e.g. "Program Files" -> "PROGRA~1")
12147      ;;
12148    esac
12149
12150    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12151    postinstall_cmds='base_file=`basename \${file}`~
12152      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12153      dldir=$destdir/`dirname \$dlpath`~
12154      test -d \$dldir || mkdir -p \$dldir~
12155      $install_prog $dir/$dlname \$dldir/$dlname'
12156    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12157      dlpath=$dir/\$dldll~
12158       $RM \$dlpath'
12159    shlibpath_overrides_runpath=yes
12160    dynamic_linker='Win32 link.exe'
12161    ;;
12162
12163  *)
12164    # Assume MSVC wrapper
12165    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12166    dynamic_linker='Win32 ld.exe'
12167    ;;
12168  esac
12169  # FIXME: first we should search . and the directory the executable is in
12170  shlibpath_var=PATH
12171  ;;
12172
12173darwin* | rhapsody*)
12174  dynamic_linker="$host_os dyld"
12175  version_type=darwin
12176  need_lib_prefix=no
12177  need_version=no
12178  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12179  soname_spec='${libname}${release}${major}$shared_ext'
12180  shlibpath_overrides_runpath=yes
12181  shlibpath_var=DYLD_LIBRARY_PATH
12182  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12183
12184  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12185  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12186  ;;
12187
12188dgux*)
12189  version_type=linux # correct to gnu/linux during the next big refactor
12190  need_lib_prefix=no
12191  need_version=no
12192  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12193  soname_spec='${libname}${release}${shared_ext}$major'
12194  shlibpath_var=LD_LIBRARY_PATH
12195  ;;
12196
12197freebsd* | dragonfly*)
12198  # DragonFly does not have aout.  When/if they implement a new
12199  # versioning mechanism, adjust this.
12200  if test -x /usr/bin/objformat; then
12201    objformat=`/usr/bin/objformat`
12202  else
12203    case $host_os in
12204    freebsd[23].*) objformat=aout ;;
12205    *) objformat=elf ;;
12206    esac
12207  fi
12208  version_type=freebsd-$objformat
12209  case $version_type in
12210    freebsd-elf*)
12211      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12212      need_version=no
12213      need_lib_prefix=no
12214      ;;
12215    freebsd-*)
12216      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12217      need_version=yes
12218      ;;
12219  esac
12220  shlibpath_var=LD_LIBRARY_PATH
12221  case $host_os in
12222  freebsd2.*)
12223    shlibpath_overrides_runpath=yes
12224    ;;
12225  freebsd3.[01]* | freebsdelf3.[01]*)
12226    shlibpath_overrides_runpath=yes
12227    hardcode_into_libs=yes
12228    ;;
12229  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12230  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12231    shlibpath_overrides_runpath=no
12232    hardcode_into_libs=yes
12233    ;;
12234  *) # from 4.6 on, and DragonFly
12235    shlibpath_overrides_runpath=yes
12236    hardcode_into_libs=yes
12237    ;;
12238  esac
12239  ;;
12240
12241gnu*)
12242  version_type=linux # correct to gnu/linux during the next big refactor
12243  need_lib_prefix=no
12244  need_version=no
12245  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12246  soname_spec='${libname}${release}${shared_ext}$major'
12247  shlibpath_var=LD_LIBRARY_PATH
12248  shlibpath_overrides_runpath=no
12249  hardcode_into_libs=yes
12250  ;;
12251
12252haiku*)
12253  version_type=linux # correct to gnu/linux during the next big refactor
12254  need_lib_prefix=no
12255  need_version=no
12256  dynamic_linker="$host_os runtime_loader"
12257  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12258  soname_spec='${libname}${release}${shared_ext}$major'
12259  shlibpath_var=LIBRARY_PATH
12260  shlibpath_overrides_runpath=yes
12261  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12262  hardcode_into_libs=yes
12263  ;;
12264
12265hpux9* | hpux10* | hpux11*)
12266  # Give a soname corresponding to the major version so that dld.sl refuses to
12267  # link against other versions.
12268  version_type=sunos
12269  need_lib_prefix=no
12270  need_version=no
12271  case $host_cpu in
12272  ia64*)
12273    shrext_cmds='.so'
12274    hardcode_into_libs=yes
12275    dynamic_linker="$host_os dld.so"
12276    shlibpath_var=LD_LIBRARY_PATH
12277    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12278    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12279    soname_spec='${libname}${release}${shared_ext}$major'
12280    if test "X$HPUX_IA64_MODE" = X32; then
12281      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12282    else
12283      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12284    fi
12285    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12286    ;;
12287  hppa*64*)
12288    shrext_cmds='.sl'
12289    hardcode_into_libs=yes
12290    dynamic_linker="$host_os dld.sl"
12291    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12292    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12293    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12294    soname_spec='${libname}${release}${shared_ext}$major'
12295    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12296    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12297    ;;
12298  *)
12299    shrext_cmds='.sl'
12300    dynamic_linker="$host_os dld.sl"
12301    shlibpath_var=SHLIB_PATH
12302    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12303    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12304    soname_spec='${libname}${release}${shared_ext}$major'
12305    ;;
12306  esac
12307  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12308  postinstall_cmds='chmod 555 $lib'
12309  # or fails outright, so override atomically:
12310  install_override_mode=555
12311  ;;
12312
12313interix[3-9]*)
12314  version_type=linux # correct to gnu/linux during the next big refactor
12315  need_lib_prefix=no
12316  need_version=no
12317  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12318  soname_spec='${libname}${release}${shared_ext}$major'
12319  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12320  shlibpath_var=LD_LIBRARY_PATH
12321  shlibpath_overrides_runpath=no
12322  hardcode_into_libs=yes
12323  ;;
12324
12325irix5* | irix6* | nonstopux*)
12326  case $host_os in
12327    nonstopux*) version_type=nonstopux ;;
12328    *)
12329	if test "$lt_cv_prog_gnu_ld" = yes; then
12330		version_type=linux # correct to gnu/linux during the next big refactor
12331	else
12332		version_type=irix
12333	fi ;;
12334  esac
12335  need_lib_prefix=no
12336  need_version=no
12337  soname_spec='${libname}${release}${shared_ext}$major'
12338  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12339  case $host_os in
12340  irix5* | nonstopux*)
12341    libsuff= shlibsuff=
12342    ;;
12343  *)
12344    case $LD in # libtool.m4 will add one of these switches to LD
12345    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12346      libsuff= shlibsuff= libmagic=32-bit;;
12347    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12348      libsuff=32 shlibsuff=N32 libmagic=N32;;
12349    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12350      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12351    *) libsuff= shlibsuff= libmagic=never-match;;
12352    esac
12353    ;;
12354  esac
12355  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12356  shlibpath_overrides_runpath=no
12357  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12358  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12359  hardcode_into_libs=yes
12360  ;;
12361
12362# No shared lib support for Linux oldld, aout, or coff.
12363linux*oldld* | linux*aout* | linux*coff*)
12364  dynamic_linker=no
12365  ;;
12366
12367# This must be glibc/ELF.
12368linux* | k*bsd*-gnu | kopensolaris*-gnu)
12369  version_type=linux # correct to gnu/linux during the next big refactor
12370  need_lib_prefix=no
12371  need_version=no
12372  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12373  soname_spec='${libname}${release}${shared_ext}$major'
12374  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12375  shlibpath_var=LD_LIBRARY_PATH
12376  shlibpath_overrides_runpath=no
12377
12378  # Some binutils ld are patched to set DT_RUNPATH
12379  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12380  $as_echo_n "(cached) " >&6
12381else
12382  lt_cv_shlibpath_overrides_runpath=no
12383    save_LDFLAGS=$LDFLAGS
12384    save_libdir=$libdir
12385    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12386	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12387    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12388/* end confdefs.h.  */
12389
12390int
12391main ()
12392{
12393
12394  ;
12395  return 0;
12396}
12397_ACEOF
12398if ac_fn_c_try_link "$LINENO"; then :
12399  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12400  lt_cv_shlibpath_overrides_runpath=yes
12401fi
12402fi
12403rm -f core conftest.err conftest.$ac_objext \
12404    conftest$ac_exeext conftest.$ac_ext
12405    LDFLAGS=$save_LDFLAGS
12406    libdir=$save_libdir
12407
12408fi
12409
12410  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12411
12412  # This implies no fast_install, which is unacceptable.
12413  # Some rework will be needed to allow for fast_install
12414  # before this can be enabled.
12415  hardcode_into_libs=yes
12416
12417  # Add ABI-specific directories to the system library path.
12418  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12419
12420  # Append ld.so.conf contents to the search path
12421  if test -f /etc/ld.so.conf; then
12422    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' ' '`
12423    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12424
12425  fi
12426
12427  # We used to test for /lib/ld.so.1 and disable shared libraries on
12428  # powerpc, because MkLinux only supported shared libraries with the
12429  # GNU dynamic linker.  Since this was broken with cross compilers,
12430  # most powerpc-linux boxes support dynamic linking these days and
12431  # people can always --disable-shared, the test was removed, and we
12432  # assume the GNU/Linux dynamic linker is in use.
12433  dynamic_linker='GNU/Linux ld.so'
12434  ;;
12435
12436netbsd*)
12437  version_type=sunos
12438  need_lib_prefix=no
12439  need_version=no
12440  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12441    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12442    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12443    dynamic_linker='NetBSD (a.out) ld.so'
12444  else
12445    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12446    soname_spec='${libname}${release}${shared_ext}$major'
12447    dynamic_linker='NetBSD ld.elf_so'
12448  fi
12449  shlibpath_var=LD_LIBRARY_PATH
12450  shlibpath_overrides_runpath=yes
12451  hardcode_into_libs=yes
12452  ;;
12453
12454newsos6)
12455  version_type=linux # correct to gnu/linux during the next big refactor
12456  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12457  shlibpath_var=LD_LIBRARY_PATH
12458  shlibpath_overrides_runpath=yes
12459  ;;
12460
12461*nto* | *qnx*)
12462  version_type=qnx
12463  need_lib_prefix=no
12464  need_version=no
12465  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12466  soname_spec='${libname}${release}${shared_ext}$major'
12467  shlibpath_var=LD_LIBRARY_PATH
12468  shlibpath_overrides_runpath=no
12469  hardcode_into_libs=yes
12470  dynamic_linker='ldqnx.so'
12471  ;;
12472
12473openbsd*)
12474  version_type=sunos
12475  sys_lib_dlsearch_path_spec="/usr/lib"
12476  need_lib_prefix=no
12477  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12478  case $host_os in
12479    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
12480    *)				need_version=no  ;;
12481  esac
12482  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12483  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12484  shlibpath_var=LD_LIBRARY_PATH
12485  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12486    case $host_os in
12487      openbsd2.[89] | openbsd2.[89].*)
12488	shlibpath_overrides_runpath=no
12489	;;
12490      *)
12491	shlibpath_overrides_runpath=yes
12492	;;
12493      esac
12494  else
12495    shlibpath_overrides_runpath=yes
12496  fi
12497  ;;
12498
12499os2*)
12500  libname_spec='$name'
12501  shrext_cmds=".dll"
12502  need_lib_prefix=no
12503  library_names_spec='$libname${shared_ext} $libname.a'
12504  dynamic_linker='OS/2 ld.exe'
12505  shlibpath_var=LIBPATH
12506  ;;
12507
12508osf3* | osf4* | osf5*)
12509  version_type=osf
12510  need_lib_prefix=no
12511  need_version=no
12512  soname_spec='${libname}${release}${shared_ext}$major'
12513  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12514  shlibpath_var=LD_LIBRARY_PATH
12515  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12516  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12517  ;;
12518
12519rdos*)
12520  dynamic_linker=no
12521  ;;
12522
12523solaris*)
12524  version_type=linux # correct to gnu/linux during the next big refactor
12525  need_lib_prefix=no
12526  need_version=no
12527  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12528  soname_spec='${libname}${release}${shared_ext}$major'
12529  shlibpath_var=LD_LIBRARY_PATH
12530  shlibpath_overrides_runpath=yes
12531  hardcode_into_libs=yes
12532  # ldd complains unless libraries are executable
12533  postinstall_cmds='chmod +x $lib'
12534  ;;
12535
12536sunos4*)
12537  version_type=sunos
12538  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12539  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12540  shlibpath_var=LD_LIBRARY_PATH
12541  shlibpath_overrides_runpath=yes
12542  if test "$with_gnu_ld" = yes; then
12543    need_lib_prefix=no
12544  fi
12545  need_version=yes
12546  ;;
12547
12548sysv4 | sysv4.3*)
12549  version_type=linux # correct to gnu/linux during the next big refactor
12550  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12551  soname_spec='${libname}${release}${shared_ext}$major'
12552  shlibpath_var=LD_LIBRARY_PATH
12553  case $host_vendor in
12554    sni)
12555      shlibpath_overrides_runpath=no
12556      need_lib_prefix=no
12557      runpath_var=LD_RUN_PATH
12558      ;;
12559    siemens)
12560      need_lib_prefix=no
12561      ;;
12562    motorola)
12563      need_lib_prefix=no
12564      need_version=no
12565      shlibpath_overrides_runpath=no
12566      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12567      ;;
12568  esac
12569  ;;
12570
12571sysv4*MP*)
12572  if test -d /usr/nec ;then
12573    version_type=linux # correct to gnu/linux during the next big refactor
12574    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12575    soname_spec='$libname${shared_ext}.$major'
12576    shlibpath_var=LD_LIBRARY_PATH
12577  fi
12578  ;;
12579
12580sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12581  version_type=freebsd-elf
12582  need_lib_prefix=no
12583  need_version=no
12584  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12585  soname_spec='${libname}${release}${shared_ext}$major'
12586  shlibpath_var=LD_LIBRARY_PATH
12587  shlibpath_overrides_runpath=yes
12588  hardcode_into_libs=yes
12589  if test "$with_gnu_ld" = yes; then
12590    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12591  else
12592    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12593    case $host_os in
12594      sco3.2v5*)
12595        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12596	;;
12597    esac
12598  fi
12599  sys_lib_dlsearch_path_spec='/usr/lib'
12600  ;;
12601
12602tpf*)
12603  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12604  version_type=linux # correct to gnu/linux during the next big refactor
12605  need_lib_prefix=no
12606  need_version=no
12607  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12608  shlibpath_var=LD_LIBRARY_PATH
12609  shlibpath_overrides_runpath=no
12610  hardcode_into_libs=yes
12611  ;;
12612
12613uts4*)
12614  version_type=linux # correct to gnu/linux during the next big refactor
12615  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12616  soname_spec='${libname}${release}${shared_ext}$major'
12617  shlibpath_var=LD_LIBRARY_PATH
12618  ;;
12619
12620*)
12621  dynamic_linker=no
12622  ;;
12623esac
12624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12625$as_echo "$dynamic_linker" >&6; }
12626test "$dynamic_linker" = no && can_build_shared=no
12627
12628variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12629if test "$GCC" = yes; then
12630  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12631fi
12632
12633if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12634  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12635fi
12636if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12637  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12638fi
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12732$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12733hardcode_action=
12734if test -n "$hardcode_libdir_flag_spec" ||
12735   test -n "$runpath_var" ||
12736   test "X$hardcode_automatic" = "Xyes" ; then
12737
12738  # We can hardcode non-existent directories.
12739  if test "$hardcode_direct" != no &&
12740     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12741     # have to relink, otherwise we might link with an installed library
12742     # when we should be linking with a yet-to-be-installed one
12743     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12744     test "$hardcode_minus_L" != no; then
12745    # Linking always hardcodes the temporary library directory.
12746    hardcode_action=relink
12747  else
12748    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12749    hardcode_action=immediate
12750  fi
12751else
12752  # We cannot hardcode anything, or else we can only hardcode existing
12753  # directories.
12754  hardcode_action=unsupported
12755fi
12756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12757$as_echo "$hardcode_action" >&6; }
12758
12759if test "$hardcode_action" = relink ||
12760   test "$inherit_rpath" = yes; then
12761  # Fast installation is not supported
12762  enable_fast_install=no
12763elif test "$shlibpath_overrides_runpath" = yes ||
12764     test "$enable_shared" = no; then
12765  # Fast installation is not necessary
12766  enable_fast_install=needless
12767fi
12768
12769
12770
12771
12772
12773
12774  if test "x$enable_dlopen" != xyes; then
12775  enable_dlopen=unknown
12776  enable_dlopen_self=unknown
12777  enable_dlopen_self_static=unknown
12778else
12779  lt_cv_dlopen=no
12780  lt_cv_dlopen_libs=
12781
12782  case $host_os in
12783  beos*)
12784    lt_cv_dlopen="load_add_on"
12785    lt_cv_dlopen_libs=
12786    lt_cv_dlopen_self=yes
12787    ;;
12788
12789  mingw* | pw32* | cegcc*)
12790    lt_cv_dlopen="LoadLibrary"
12791    lt_cv_dlopen_libs=
12792    ;;
12793
12794  cygwin*)
12795    lt_cv_dlopen="dlopen"
12796    lt_cv_dlopen_libs=
12797    ;;
12798
12799  darwin*)
12800  # if libdl is installed we need to link against it
12801    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12802$as_echo_n "checking for dlopen in -ldl... " >&6; }
12803if ${ac_cv_lib_dl_dlopen+:} false; then :
12804  $as_echo_n "(cached) " >&6
12805else
12806  ac_check_lib_save_LIBS=$LIBS
12807LIBS="-ldl  $LIBS"
12808cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12809/* end confdefs.h.  */
12810
12811/* Override any GCC internal prototype to avoid an error.
12812   Use char because int might match the return type of a GCC
12813   builtin and then its argument prototype would still apply.  */
12814#ifdef __cplusplus
12815extern "C"
12816#endif
12817char dlopen ();
12818int
12819main ()
12820{
12821return dlopen ();
12822  ;
12823  return 0;
12824}
12825_ACEOF
12826if ac_fn_c_try_link "$LINENO"; then :
12827  ac_cv_lib_dl_dlopen=yes
12828else
12829  ac_cv_lib_dl_dlopen=no
12830fi
12831rm -f core conftest.err conftest.$ac_objext \
12832    conftest$ac_exeext conftest.$ac_ext
12833LIBS=$ac_check_lib_save_LIBS
12834fi
12835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12836$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12837if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12838  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12839else
12840
12841    lt_cv_dlopen="dyld"
12842    lt_cv_dlopen_libs=
12843    lt_cv_dlopen_self=yes
12844
12845fi
12846
12847    ;;
12848
12849  *)
12850    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12851if test "x$ac_cv_func_shl_load" = xyes; then :
12852  lt_cv_dlopen="shl_load"
12853else
12854  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12855$as_echo_n "checking for shl_load in -ldld... " >&6; }
12856if ${ac_cv_lib_dld_shl_load+:} false; then :
12857  $as_echo_n "(cached) " >&6
12858else
12859  ac_check_lib_save_LIBS=$LIBS
12860LIBS="-ldld  $LIBS"
12861cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12862/* end confdefs.h.  */
12863
12864/* Override any GCC internal prototype to avoid an error.
12865   Use char because int might match the return type of a GCC
12866   builtin and then its argument prototype would still apply.  */
12867#ifdef __cplusplus
12868extern "C"
12869#endif
12870char shl_load ();
12871int
12872main ()
12873{
12874return shl_load ();
12875  ;
12876  return 0;
12877}
12878_ACEOF
12879if ac_fn_c_try_link "$LINENO"; then :
12880  ac_cv_lib_dld_shl_load=yes
12881else
12882  ac_cv_lib_dld_shl_load=no
12883fi
12884rm -f core conftest.err conftest.$ac_objext \
12885    conftest$ac_exeext conftest.$ac_ext
12886LIBS=$ac_check_lib_save_LIBS
12887fi
12888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12889$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12890if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12891  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12892else
12893  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12894if test "x$ac_cv_func_dlopen" = xyes; then :
12895  lt_cv_dlopen="dlopen"
12896else
12897  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12898$as_echo_n "checking for dlopen in -ldl... " >&6; }
12899if ${ac_cv_lib_dl_dlopen+:} false; then :
12900  $as_echo_n "(cached) " >&6
12901else
12902  ac_check_lib_save_LIBS=$LIBS
12903LIBS="-ldl  $LIBS"
12904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12905/* end confdefs.h.  */
12906
12907/* Override any GCC internal prototype to avoid an error.
12908   Use char because int might match the return type of a GCC
12909   builtin and then its argument prototype would still apply.  */
12910#ifdef __cplusplus
12911extern "C"
12912#endif
12913char dlopen ();
12914int
12915main ()
12916{
12917return dlopen ();
12918  ;
12919  return 0;
12920}
12921_ACEOF
12922if ac_fn_c_try_link "$LINENO"; then :
12923  ac_cv_lib_dl_dlopen=yes
12924else
12925  ac_cv_lib_dl_dlopen=no
12926fi
12927rm -f core conftest.err conftest.$ac_objext \
12928    conftest$ac_exeext conftest.$ac_ext
12929LIBS=$ac_check_lib_save_LIBS
12930fi
12931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12932$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12933if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12934  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12935else
12936  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12937$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12938if ${ac_cv_lib_svld_dlopen+:} false; then :
12939  $as_echo_n "(cached) " >&6
12940else
12941  ac_check_lib_save_LIBS=$LIBS
12942LIBS="-lsvld  $LIBS"
12943cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12944/* end confdefs.h.  */
12945
12946/* Override any GCC internal prototype to avoid an error.
12947   Use char because int might match the return type of a GCC
12948   builtin and then its argument prototype would still apply.  */
12949#ifdef __cplusplus
12950extern "C"
12951#endif
12952char dlopen ();
12953int
12954main ()
12955{
12956return dlopen ();
12957  ;
12958  return 0;
12959}
12960_ACEOF
12961if ac_fn_c_try_link "$LINENO"; then :
12962  ac_cv_lib_svld_dlopen=yes
12963else
12964  ac_cv_lib_svld_dlopen=no
12965fi
12966rm -f core conftest.err conftest.$ac_objext \
12967    conftest$ac_exeext conftest.$ac_ext
12968LIBS=$ac_check_lib_save_LIBS
12969fi
12970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12971$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12972if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12973  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12974else
12975  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12976$as_echo_n "checking for dld_link in -ldld... " >&6; }
12977if ${ac_cv_lib_dld_dld_link+:} false; then :
12978  $as_echo_n "(cached) " >&6
12979else
12980  ac_check_lib_save_LIBS=$LIBS
12981LIBS="-ldld  $LIBS"
12982cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12983/* end confdefs.h.  */
12984
12985/* Override any GCC internal prototype to avoid an error.
12986   Use char because int might match the return type of a GCC
12987   builtin and then its argument prototype would still apply.  */
12988#ifdef __cplusplus
12989extern "C"
12990#endif
12991char dld_link ();
12992int
12993main ()
12994{
12995return dld_link ();
12996  ;
12997  return 0;
12998}
12999_ACEOF
13000if ac_fn_c_try_link "$LINENO"; then :
13001  ac_cv_lib_dld_dld_link=yes
13002else
13003  ac_cv_lib_dld_dld_link=no
13004fi
13005rm -f core conftest.err conftest.$ac_objext \
13006    conftest$ac_exeext conftest.$ac_ext
13007LIBS=$ac_check_lib_save_LIBS
13008fi
13009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13010$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13011if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13012  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13013fi
13014
13015
13016fi
13017
13018
13019fi
13020
13021
13022fi
13023
13024
13025fi
13026
13027
13028fi
13029
13030    ;;
13031  esac
13032
13033  if test "x$lt_cv_dlopen" != xno; then
13034    enable_dlopen=yes
13035  else
13036    enable_dlopen=no
13037  fi
13038
13039  case $lt_cv_dlopen in
13040  dlopen)
13041    save_CPPFLAGS="$CPPFLAGS"
13042    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13043
13044    save_LDFLAGS="$LDFLAGS"
13045    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13046
13047    save_LIBS="$LIBS"
13048    LIBS="$lt_cv_dlopen_libs $LIBS"
13049
13050    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13051$as_echo_n "checking whether a program can dlopen itself... " >&6; }
13052if ${lt_cv_dlopen_self+:} false; then :
13053  $as_echo_n "(cached) " >&6
13054else
13055  	  if test "$cross_compiling" = yes; then :
13056  lt_cv_dlopen_self=cross
13057else
13058  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13059  lt_status=$lt_dlunknown
13060  cat > conftest.$ac_ext <<_LT_EOF
13061#line $LINENO "configure"
13062#include "confdefs.h"
13063
13064#if HAVE_DLFCN_H
13065#include <dlfcn.h>
13066#endif
13067
13068#include <stdio.h>
13069
13070#ifdef RTLD_GLOBAL
13071#  define LT_DLGLOBAL		RTLD_GLOBAL
13072#else
13073#  ifdef DL_GLOBAL
13074#    define LT_DLGLOBAL		DL_GLOBAL
13075#  else
13076#    define LT_DLGLOBAL		0
13077#  endif
13078#endif
13079
13080/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13081   find out it does not work in some platform. */
13082#ifndef LT_DLLAZY_OR_NOW
13083#  ifdef RTLD_LAZY
13084#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13085#  else
13086#    ifdef DL_LAZY
13087#      define LT_DLLAZY_OR_NOW		DL_LAZY
13088#    else
13089#      ifdef RTLD_NOW
13090#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13091#      else
13092#        ifdef DL_NOW
13093#          define LT_DLLAZY_OR_NOW	DL_NOW
13094#        else
13095#          define LT_DLLAZY_OR_NOW	0
13096#        endif
13097#      endif
13098#    endif
13099#  endif
13100#endif
13101
13102/* When -fvisbility=hidden is used, assume the code has been annotated
13103   correspondingly for the symbols needed.  */
13104#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13105int fnord () __attribute__((visibility("default")));
13106#endif
13107
13108int fnord () { return 42; }
13109int main ()
13110{
13111  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13112  int status = $lt_dlunknown;
13113
13114  if (self)
13115    {
13116      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13117      else
13118        {
13119	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13120          else puts (dlerror ());
13121	}
13122      /* dlclose (self); */
13123    }
13124  else
13125    puts (dlerror ());
13126
13127  return status;
13128}
13129_LT_EOF
13130  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13131  (eval $ac_link) 2>&5
13132  ac_status=$?
13133  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13134  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13135    (./conftest; exit; ) >&5 2>/dev/null
13136    lt_status=$?
13137    case x$lt_status in
13138      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13139      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13140      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13141    esac
13142  else :
13143    # compilation failed
13144    lt_cv_dlopen_self=no
13145  fi
13146fi
13147rm -fr conftest*
13148
13149
13150fi
13151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13152$as_echo "$lt_cv_dlopen_self" >&6; }
13153
13154    if test "x$lt_cv_dlopen_self" = xyes; then
13155      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13156      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13157$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13158if ${lt_cv_dlopen_self_static+:} false; then :
13159  $as_echo_n "(cached) " >&6
13160else
13161  	  if test "$cross_compiling" = yes; then :
13162  lt_cv_dlopen_self_static=cross
13163else
13164  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13165  lt_status=$lt_dlunknown
13166  cat > conftest.$ac_ext <<_LT_EOF
13167#line $LINENO "configure"
13168#include "confdefs.h"
13169
13170#if HAVE_DLFCN_H
13171#include <dlfcn.h>
13172#endif
13173
13174#include <stdio.h>
13175
13176#ifdef RTLD_GLOBAL
13177#  define LT_DLGLOBAL		RTLD_GLOBAL
13178#else
13179#  ifdef DL_GLOBAL
13180#    define LT_DLGLOBAL		DL_GLOBAL
13181#  else
13182#    define LT_DLGLOBAL		0
13183#  endif
13184#endif
13185
13186/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13187   find out it does not work in some platform. */
13188#ifndef LT_DLLAZY_OR_NOW
13189#  ifdef RTLD_LAZY
13190#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13191#  else
13192#    ifdef DL_LAZY
13193#      define LT_DLLAZY_OR_NOW		DL_LAZY
13194#    else
13195#      ifdef RTLD_NOW
13196#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13197#      else
13198#        ifdef DL_NOW
13199#          define LT_DLLAZY_OR_NOW	DL_NOW
13200#        else
13201#          define LT_DLLAZY_OR_NOW	0
13202#        endif
13203#      endif
13204#    endif
13205#  endif
13206#endif
13207
13208/* When -fvisbility=hidden is used, assume the code has been annotated
13209   correspondingly for the symbols needed.  */
13210#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13211int fnord () __attribute__((visibility("default")));
13212#endif
13213
13214int fnord () { return 42; }
13215int main ()
13216{
13217  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13218  int status = $lt_dlunknown;
13219
13220  if (self)
13221    {
13222      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13223      else
13224        {
13225	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13226          else puts (dlerror ());
13227	}
13228      /* dlclose (self); */
13229    }
13230  else
13231    puts (dlerror ());
13232
13233  return status;
13234}
13235_LT_EOF
13236  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13237  (eval $ac_link) 2>&5
13238  ac_status=$?
13239  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13240  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13241    (./conftest; exit; ) >&5 2>/dev/null
13242    lt_status=$?
13243    case x$lt_status in
13244      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13245      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13246      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13247    esac
13248  else :
13249    # compilation failed
13250    lt_cv_dlopen_self_static=no
13251  fi
13252fi
13253rm -fr conftest*
13254
13255
13256fi
13257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13258$as_echo "$lt_cv_dlopen_self_static" >&6; }
13259    fi
13260
13261    CPPFLAGS="$save_CPPFLAGS"
13262    LDFLAGS="$save_LDFLAGS"
13263    LIBS="$save_LIBS"
13264    ;;
13265  esac
13266
13267  case $lt_cv_dlopen_self in
13268  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13269  *) enable_dlopen_self=unknown ;;
13270  esac
13271
13272  case $lt_cv_dlopen_self_static in
13273  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13274  *) enable_dlopen_self_static=unknown ;;
13275  esac
13276fi
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294striplib=
13295old_striplib=
13296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13297$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13298if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13299  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13300  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13302$as_echo "yes" >&6; }
13303else
13304# FIXME - insert some real tests, host_os isn't really good enough
13305  case $host_os in
13306  darwin*)
13307    if test -n "$STRIP" ; then
13308      striplib="$STRIP -x"
13309      old_striplib="$STRIP -S"
13310      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13311$as_echo "yes" >&6; }
13312    else
13313      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13314$as_echo "no" >&6; }
13315    fi
13316    ;;
13317  *)
13318    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13319$as_echo "no" >&6; }
13320    ;;
13321  esac
13322fi
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335  # Report which library types will actually be built
13336  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13337$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13339$as_echo "$can_build_shared" >&6; }
13340
13341  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13342$as_echo_n "checking whether to build shared libraries... " >&6; }
13343  test "$can_build_shared" = "no" && enable_shared=no
13344
13345  # On AIX, shared libraries and static libraries use the same namespace, and
13346  # are all built from PIC.
13347  case $host_os in
13348  aix3*)
13349    test "$enable_shared" = yes && enable_static=no
13350    if test -n "$RANLIB"; then
13351      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13352      postinstall_cmds='$RANLIB $lib'
13353    fi
13354    ;;
13355
13356  aix[4-9]*)
13357    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13358      test "$enable_shared" = yes && enable_static=no
13359    fi
13360    ;;
13361  esac
13362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13363$as_echo "$enable_shared" >&6; }
13364
13365  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13366$as_echo_n "checking whether to build static libraries... " >&6; }
13367  # Make sure either enable_shared or enable_static is yes.
13368  test "$enable_shared" = yes || enable_static=yes
13369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13370$as_echo "$enable_static" >&6; }
13371
13372
13373
13374
13375fi
13376ac_ext=c
13377ac_cpp='$CPP $CPPFLAGS'
13378ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13379ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13380ac_compiler_gnu=$ac_cv_c_compiler_gnu
13381
13382CC="$lt_save_CC"
13383
13384      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13385    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13386    (test "X$CXX" != "Xg++"))) ; then
13387  ac_ext=cpp
13388ac_cpp='$CXXCPP $CPPFLAGS'
13389ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13390ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13391ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13393$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13394if test -z "$CXXCPP"; then
13395  if ${ac_cv_prog_CXXCPP+:} false; then :
13396  $as_echo_n "(cached) " >&6
13397else
13398      # Double quotes because CXXCPP needs to be expanded
13399    for CXXCPP in "$CXX -E" "/lib/cpp"
13400    do
13401      ac_preproc_ok=false
13402for ac_cxx_preproc_warn_flag in '' yes
13403do
13404  # Use a header file that comes with gcc, so configuring glibc
13405  # with a fresh cross-compiler works.
13406  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13407  # <limits.h> exists even on freestanding compilers.
13408  # On the NeXT, cc -E runs the code through the compiler's parser,
13409  # not just through cpp. "Syntax error" is here to catch this case.
13410  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13411/* end confdefs.h.  */
13412#ifdef __STDC__
13413# include <limits.h>
13414#else
13415# include <assert.h>
13416#endif
13417		     Syntax error
13418_ACEOF
13419if ac_fn_cxx_try_cpp "$LINENO"; then :
13420
13421else
13422  # Broken: fails on valid input.
13423continue
13424fi
13425rm -f conftest.err conftest.i conftest.$ac_ext
13426
13427  # OK, works on sane cases.  Now check whether nonexistent headers
13428  # can be detected and how.
13429  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13430/* end confdefs.h.  */
13431#include <ac_nonexistent.h>
13432_ACEOF
13433if ac_fn_cxx_try_cpp "$LINENO"; then :
13434  # Broken: success on invalid input.
13435continue
13436else
13437  # Passes both tests.
13438ac_preproc_ok=:
13439break
13440fi
13441rm -f conftest.err conftest.i conftest.$ac_ext
13442
13443done
13444# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13445rm -f conftest.i conftest.err conftest.$ac_ext
13446if $ac_preproc_ok; then :
13447  break
13448fi
13449
13450    done
13451    ac_cv_prog_CXXCPP=$CXXCPP
13452
13453fi
13454  CXXCPP=$ac_cv_prog_CXXCPP
13455else
13456  ac_cv_prog_CXXCPP=$CXXCPP
13457fi
13458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13459$as_echo "$CXXCPP" >&6; }
13460ac_preproc_ok=false
13461for ac_cxx_preproc_warn_flag in '' yes
13462do
13463  # Use a header file that comes with gcc, so configuring glibc
13464  # with a fresh cross-compiler works.
13465  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13466  # <limits.h> exists even on freestanding compilers.
13467  # On the NeXT, cc -E runs the code through the compiler's parser,
13468  # not just through cpp. "Syntax error" is here to catch this case.
13469  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13470/* end confdefs.h.  */
13471#ifdef __STDC__
13472# include <limits.h>
13473#else
13474# include <assert.h>
13475#endif
13476		     Syntax error
13477_ACEOF
13478if ac_fn_cxx_try_cpp "$LINENO"; then :
13479
13480else
13481  # Broken: fails on valid input.
13482continue
13483fi
13484rm -f conftest.err conftest.i conftest.$ac_ext
13485
13486  # OK, works on sane cases.  Now check whether nonexistent headers
13487  # can be detected and how.
13488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13489/* end confdefs.h.  */
13490#include <ac_nonexistent.h>
13491_ACEOF
13492if ac_fn_cxx_try_cpp "$LINENO"; then :
13493  # Broken: success on invalid input.
13494continue
13495else
13496  # Passes both tests.
13497ac_preproc_ok=:
13498break
13499fi
13500rm -f conftest.err conftest.i conftest.$ac_ext
13501
13502done
13503# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13504rm -f conftest.i conftest.err conftest.$ac_ext
13505if $ac_preproc_ok; then :
13506
13507else
13508  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13509$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13510as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13511See \`config.log' for more details" "$LINENO" 5; }
13512fi
13513
13514ac_ext=c
13515ac_cpp='$CPP $CPPFLAGS'
13516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13518ac_compiler_gnu=$ac_cv_c_compiler_gnu
13519
13520else
13521  _lt_caught_CXX_error=yes
13522fi
13523
13524ac_ext=cpp
13525ac_cpp='$CXXCPP $CPPFLAGS'
13526ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13527ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13528ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13529
13530archive_cmds_need_lc_CXX=no
13531allow_undefined_flag_CXX=
13532always_export_symbols_CXX=no
13533archive_expsym_cmds_CXX=
13534compiler_needs_object_CXX=no
13535export_dynamic_flag_spec_CXX=
13536hardcode_direct_CXX=no
13537hardcode_direct_absolute_CXX=no
13538hardcode_libdir_flag_spec_CXX=
13539hardcode_libdir_separator_CXX=
13540hardcode_minus_L_CXX=no
13541hardcode_shlibpath_var_CXX=unsupported
13542hardcode_automatic_CXX=no
13543inherit_rpath_CXX=no
13544module_cmds_CXX=
13545module_expsym_cmds_CXX=
13546link_all_deplibs_CXX=unknown
13547old_archive_cmds_CXX=$old_archive_cmds
13548reload_flag_CXX=$reload_flag
13549reload_cmds_CXX=$reload_cmds
13550no_undefined_flag_CXX=
13551whole_archive_flag_spec_CXX=
13552enable_shared_with_static_runtimes_CXX=no
13553
13554# Source file extension for C++ test sources.
13555ac_ext=cpp
13556
13557# Object file extension for compiled C++ test sources.
13558objext=o
13559objext_CXX=$objext
13560
13561# No sense in running all these tests if we already determined that
13562# the CXX compiler isn't working.  Some variables (like enable_shared)
13563# are currently assumed to apply to all compilers on this platform,
13564# and will be corrupted by setting them based on a non-working compiler.
13565if test "$_lt_caught_CXX_error" != yes; then
13566  # Code to be used in simple compile tests
13567  lt_simple_compile_test_code="int some_variable = 0;"
13568
13569  # Code to be used in simple link tests
13570  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13571
13572  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13573
13574
13575
13576
13577
13578
13579# If no C compiler was specified, use CC.
13580LTCC=${LTCC-"$CC"}
13581
13582# If no C compiler flags were specified, use CFLAGS.
13583LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13584
13585# Allow CC to be a program name with arguments.
13586compiler=$CC
13587
13588
13589  # save warnings/boilerplate of simple test code
13590  ac_outfile=conftest.$ac_objext
13591echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13592eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13593_lt_compiler_boilerplate=`cat conftest.err`
13594$RM conftest*
13595
13596  ac_outfile=conftest.$ac_objext
13597echo "$lt_simple_link_test_code" >conftest.$ac_ext
13598eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13599_lt_linker_boilerplate=`cat conftest.err`
13600$RM -r conftest*
13601
13602
13603  # Allow CC to be a program name with arguments.
13604  lt_save_CC=$CC
13605  lt_save_CFLAGS=$CFLAGS
13606  lt_save_LD=$LD
13607  lt_save_GCC=$GCC
13608  GCC=$GXX
13609  lt_save_with_gnu_ld=$with_gnu_ld
13610  lt_save_path_LD=$lt_cv_path_LD
13611  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13612    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13613  else
13614    $as_unset lt_cv_prog_gnu_ld
13615  fi
13616  if test -n "${lt_cv_path_LDCXX+set}"; then
13617    lt_cv_path_LD=$lt_cv_path_LDCXX
13618  else
13619    $as_unset lt_cv_path_LD
13620  fi
13621  test -z "${LDCXX+set}" || LD=$LDCXX
13622  CC=${CXX-"c++"}
13623  CFLAGS=$CXXFLAGS
13624  compiler=$CC
13625  compiler_CXX=$CC
13626  for cc_temp in $compiler""; do
13627  case $cc_temp in
13628    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13629    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13630    \-*) ;;
13631    *) break;;
13632  esac
13633done
13634cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13635
13636
13637  if test -n "$compiler"; then
13638    # We don't want -fno-exception when compiling C++ code, so set the
13639    # no_builtin_flag separately
13640    if test "$GXX" = yes; then
13641      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13642    else
13643      lt_prog_compiler_no_builtin_flag_CXX=
13644    fi
13645
13646    if test "$GXX" = yes; then
13647      # Set up default GNU C++ configuration
13648
13649
13650
13651# Check whether --with-gnu-ld was given.
13652if test "${with_gnu_ld+set}" = set; then :
13653  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13654else
13655  with_gnu_ld=no
13656fi
13657
13658ac_prog=ld
13659if test "$GCC" = yes; then
13660  # Check if gcc -print-prog-name=ld gives a path.
13661  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13662$as_echo_n "checking for ld used by $CC... " >&6; }
13663  case $host in
13664  *-*-mingw*)
13665    # gcc leaves a trailing carriage return which upsets mingw
13666    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13667  *)
13668    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13669  esac
13670  case $ac_prog in
13671    # Accept absolute paths.
13672    [\\/]* | ?:[\\/]*)
13673      re_direlt='/[^/][^/]*/\.\./'
13674      # Canonicalize the pathname of ld
13675      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13676      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13677	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13678      done
13679      test -z "$LD" && LD="$ac_prog"
13680      ;;
13681  "")
13682    # If it fails, then pretend we aren't using GCC.
13683    ac_prog=ld
13684    ;;
13685  *)
13686    # If it is relative, then search for the first ld in PATH.
13687    with_gnu_ld=unknown
13688    ;;
13689  esac
13690elif test "$with_gnu_ld" = yes; then
13691  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13692$as_echo_n "checking for GNU ld... " >&6; }
13693else
13694  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13695$as_echo_n "checking for non-GNU ld... " >&6; }
13696fi
13697if ${lt_cv_path_LD+:} false; then :
13698  $as_echo_n "(cached) " >&6
13699else
13700  if test -z "$LD"; then
13701  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13702  for ac_dir in $PATH; do
13703    IFS="$lt_save_ifs"
13704    test -z "$ac_dir" && ac_dir=.
13705    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13706      lt_cv_path_LD="$ac_dir/$ac_prog"
13707      # Check to see if the program is GNU ld.  I'd rather use --version,
13708      # but apparently some variants of GNU ld only accept -v.
13709      # Break only if it was the GNU/non-GNU ld that we prefer.
13710      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13711      *GNU* | *'with BFD'*)
13712	test "$with_gnu_ld" != no && break
13713	;;
13714      *)
13715	test "$with_gnu_ld" != yes && break
13716	;;
13717      esac
13718    fi
13719  done
13720  IFS="$lt_save_ifs"
13721else
13722  lt_cv_path_LD="$LD" # Let the user override the test with a path.
13723fi
13724fi
13725
13726LD="$lt_cv_path_LD"
13727if test -n "$LD"; then
13728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13729$as_echo "$LD" >&6; }
13730else
13731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13732$as_echo "no" >&6; }
13733fi
13734test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13736$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13737if ${lt_cv_prog_gnu_ld+:} false; then :
13738  $as_echo_n "(cached) " >&6
13739else
13740  # I'd rather use --version here, but apparently some GNU lds only accept -v.
13741case `$LD -v 2>&1 </dev/null` in
13742*GNU* | *'with BFD'*)
13743  lt_cv_prog_gnu_ld=yes
13744  ;;
13745*)
13746  lt_cv_prog_gnu_ld=no
13747  ;;
13748esac
13749fi
13750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13751$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13752with_gnu_ld=$lt_cv_prog_gnu_ld
13753
13754
13755
13756
13757
13758
13759
13760      # Check if GNU C++ uses GNU ld as the underlying linker, since the
13761      # archiving commands below assume that GNU ld is being used.
13762      if test "$with_gnu_ld" = yes; then
13763        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13764        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13765
13766        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13767        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13768
13769        # If archive_cmds runs LD, not CC, wlarc should be empty
13770        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13771        #     investigate it a little bit more. (MM)
13772        wlarc='${wl}'
13773
13774        # ancient GNU ld didn't support --whole-archive et. al.
13775        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13776	  $GREP 'no-whole-archive' > /dev/null; then
13777          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13778        else
13779          whole_archive_flag_spec_CXX=
13780        fi
13781      else
13782        with_gnu_ld=no
13783        wlarc=
13784
13785        # A generic and very simple default shared library creation
13786        # command for GNU C++ for the case where it uses the native
13787        # linker, instead of GNU ld.  If possible, this setting should
13788        # overridden to take advantage of the native linker features on
13789        # the platform it is being used on.
13790        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13791      fi
13792
13793      # Commands to make compiler produce verbose output that lists
13794      # what "hidden" libraries, object files and flags are used when
13795      # linking a shared library.
13796      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13797
13798    else
13799      GXX=no
13800      with_gnu_ld=no
13801      wlarc=
13802    fi
13803
13804    # PORTME: fill in a description of your system's C++ link characteristics
13805    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13806$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13807    ld_shlibs_CXX=yes
13808    case $host_os in
13809      aix3*)
13810        # FIXME: insert proper C++ library support
13811        ld_shlibs_CXX=no
13812        ;;
13813      aix[4-9]*)
13814        if test "$host_cpu" = ia64; then
13815          # On IA64, the linker does run time linking by default, so we don't
13816          # have to do anything special.
13817          aix_use_runtimelinking=no
13818          exp_sym_flag='-Bexport'
13819          no_entry_flag=""
13820        else
13821          aix_use_runtimelinking=no
13822
13823          # Test if we are trying to use run time linking or normal
13824          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13825          # need to do runtime linking.
13826          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13827	    for ld_flag in $LDFLAGS; do
13828	      case $ld_flag in
13829	      *-brtl*)
13830	        aix_use_runtimelinking=yes
13831	        break
13832	        ;;
13833	      esac
13834	    done
13835	    ;;
13836          esac
13837
13838          exp_sym_flag='-bexport'
13839          no_entry_flag='-bnoentry'
13840        fi
13841
13842        # When large executables or shared objects are built, AIX ld can
13843        # have problems creating the table of contents.  If linking a library
13844        # or program results in "error TOC overflow" add -mminimal-toc to
13845        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13846        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13847
13848        archive_cmds_CXX=''
13849        hardcode_direct_CXX=yes
13850        hardcode_direct_absolute_CXX=yes
13851        hardcode_libdir_separator_CXX=':'
13852        link_all_deplibs_CXX=yes
13853        file_list_spec_CXX='${wl}-f,'
13854
13855        if test "$GXX" = yes; then
13856          case $host_os in aix4.[012]|aix4.[012].*)
13857          # We only want to do this on AIX 4.2 and lower, the check
13858          # below for broken collect2 doesn't work under 4.3+
13859	  collect2name=`${CC} -print-prog-name=collect2`
13860	  if test -f "$collect2name" &&
13861	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13862	  then
13863	    # We have reworked collect2
13864	    :
13865	  else
13866	    # We have old collect2
13867	    hardcode_direct_CXX=unsupported
13868	    # It fails to find uninstalled libraries when the uninstalled
13869	    # path is not listed in the libpath.  Setting hardcode_minus_L
13870	    # to unsupported forces relinking
13871	    hardcode_minus_L_CXX=yes
13872	    hardcode_libdir_flag_spec_CXX='-L$libdir'
13873	    hardcode_libdir_separator_CXX=
13874	  fi
13875          esac
13876          shared_flag='-shared'
13877	  if test "$aix_use_runtimelinking" = yes; then
13878	    shared_flag="$shared_flag "'${wl}-G'
13879	  fi
13880        else
13881          # not using gcc
13882          if test "$host_cpu" = ia64; then
13883	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13884	  # chokes on -Wl,-G. The following line is correct:
13885	  shared_flag='-G'
13886          else
13887	    if test "$aix_use_runtimelinking" = yes; then
13888	      shared_flag='${wl}-G'
13889	    else
13890	      shared_flag='${wl}-bM:SRE'
13891	    fi
13892          fi
13893        fi
13894
13895        export_dynamic_flag_spec_CXX='${wl}-bexpall'
13896        # It seems that -bexpall does not export symbols beginning with
13897        # underscore (_), so it is better to generate a list of symbols to
13898	# export.
13899        always_export_symbols_CXX=yes
13900        if test "$aix_use_runtimelinking" = yes; then
13901          # Warning - without using the other runtime loading flags (-brtl),
13902          # -berok will link without error, but may produce a broken library.
13903          allow_undefined_flag_CXX='-berok'
13904          # Determine the default libpath from the value encoded in an empty
13905          # executable.
13906          if test "${lt_cv_aix_libpath+set}" = set; then
13907  aix_libpath=$lt_cv_aix_libpath
13908else
13909  if ${lt_cv_aix_libpath__CXX+:} false; then :
13910  $as_echo_n "(cached) " >&6
13911else
13912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13913/* end confdefs.h.  */
13914
13915int
13916main ()
13917{
13918
13919  ;
13920  return 0;
13921}
13922_ACEOF
13923if ac_fn_cxx_try_link "$LINENO"; then :
13924
13925  lt_aix_libpath_sed='
13926      /Import File Strings/,/^$/ {
13927	  /^0/ {
13928	      s/^0  *\([^ ]*\) *$/\1/
13929	      p
13930	  }
13931      }'
13932  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13933  # Check for a 64-bit object if we didn't find anything.
13934  if test -z "$lt_cv_aix_libpath__CXX"; then
13935    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13936  fi
13937fi
13938rm -f core conftest.err conftest.$ac_objext \
13939    conftest$ac_exeext conftest.$ac_ext
13940  if test -z "$lt_cv_aix_libpath__CXX"; then
13941    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13942  fi
13943
13944fi
13945
13946  aix_libpath=$lt_cv_aix_libpath__CXX
13947fi
13948
13949          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13950
13951          archive_expsym_cmds_CXX='$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"
13952        else
13953          if test "$host_cpu" = ia64; then
13954	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13955	    allow_undefined_flag_CXX="-z nodefs"
13956	    archive_expsym_cmds_CXX="\$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"
13957          else
13958	    # Determine the default libpath from the value encoded in an
13959	    # empty executable.
13960	    if test "${lt_cv_aix_libpath+set}" = set; then
13961  aix_libpath=$lt_cv_aix_libpath
13962else
13963  if ${lt_cv_aix_libpath__CXX+:} false; then :
13964  $as_echo_n "(cached) " >&6
13965else
13966  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13967/* end confdefs.h.  */
13968
13969int
13970main ()
13971{
13972
13973  ;
13974  return 0;
13975}
13976_ACEOF
13977if ac_fn_cxx_try_link "$LINENO"; then :
13978
13979  lt_aix_libpath_sed='
13980      /Import File Strings/,/^$/ {
13981	  /^0/ {
13982	      s/^0  *\([^ ]*\) *$/\1/
13983	      p
13984	  }
13985      }'
13986  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13987  # Check for a 64-bit object if we didn't find anything.
13988  if test -z "$lt_cv_aix_libpath__CXX"; then
13989    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13990  fi
13991fi
13992rm -f core conftest.err conftest.$ac_objext \
13993    conftest$ac_exeext conftest.$ac_ext
13994  if test -z "$lt_cv_aix_libpath__CXX"; then
13995    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13996  fi
13997
13998fi
13999
14000  aix_libpath=$lt_cv_aix_libpath__CXX
14001fi
14002
14003	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14004	    # Warning - without using the other run time loading flags,
14005	    # -berok will link without error, but may produce a broken library.
14006	    no_undefined_flag_CXX=' ${wl}-bernotok'
14007	    allow_undefined_flag_CXX=' ${wl}-berok'
14008	    if test "$with_gnu_ld" = yes; then
14009	      # We only use this code for GNU lds that support --whole-archive.
14010	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14011	    else
14012	      # Exported symbols can be pulled into shared objects from archives
14013	      whole_archive_flag_spec_CXX='$convenience'
14014	    fi
14015	    archive_cmds_need_lc_CXX=yes
14016	    # This is similar to how AIX traditionally builds its shared
14017	    # libraries.
14018	    archive_expsym_cmds_CXX="\$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'
14019          fi
14020        fi
14021        ;;
14022
14023      beos*)
14024	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14025	  allow_undefined_flag_CXX=unsupported
14026	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14027	  # support --undefined.  This deserves some investigation.  FIXME
14028	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14029	else
14030	  ld_shlibs_CXX=no
14031	fi
14032	;;
14033
14034      chorus*)
14035        case $cc_basename in
14036          *)
14037	  # FIXME: insert proper C++ library support
14038	  ld_shlibs_CXX=no
14039	  ;;
14040        esac
14041        ;;
14042
14043      cygwin* | mingw* | pw32* | cegcc*)
14044	case $GXX,$cc_basename in
14045	,cl* | no,cl*)
14046	  # Native MSVC
14047	  # hardcode_libdir_flag_spec is actually meaningless, as there is
14048	  # no search path for DLLs.
14049	  hardcode_libdir_flag_spec_CXX=' '
14050	  allow_undefined_flag_CXX=unsupported
14051	  always_export_symbols_CXX=yes
14052	  file_list_spec_CXX='@'
14053	  # Tell ltmain to make .lib files, not .a files.
14054	  libext=lib
14055	  # Tell ltmain to make .dll files, not .so files.
14056	  shrext_cmds=".dll"
14057	  # FIXME: Setting linknames here is a bad hack.
14058	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14059	  archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14060	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14061	    else
14062	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14063	    fi~
14064	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14065	    linknames='
14066	  # The linker will not automatically build a static lib if we build a DLL.
14067	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14068	  enable_shared_with_static_runtimes_CXX=yes
14069	  # Don't use ranlib
14070	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
14071	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14072	    lt_tool_outputfile="@TOOL_OUTPUT@"~
14073	    case $lt_outputfile in
14074	      *.exe|*.EXE) ;;
14075	      *)
14076		lt_outputfile="$lt_outputfile.exe"
14077		lt_tool_outputfile="$lt_tool_outputfile.exe"
14078		;;
14079	    esac~
14080	    func_to_tool_file "$lt_outputfile"~
14081	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14082	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14083	      $RM "$lt_outputfile.manifest";
14084	    fi'
14085	  ;;
14086	*)
14087	  # g++
14088	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14089	  # as there is no search path for DLLs.
14090	  hardcode_libdir_flag_spec_CXX='-L$libdir'
14091	  export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14092	  allow_undefined_flag_CXX=unsupported
14093	  always_export_symbols_CXX=no
14094	  enable_shared_with_static_runtimes_CXX=yes
14095
14096	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14097	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14098	    # If the export-symbols file already is a .def file (1st line
14099	    # is EXPORTS), use it as is; otherwise, prepend...
14100	    archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14101	      cp $export_symbols $output_objdir/$soname.def;
14102	    else
14103	      echo EXPORTS > $output_objdir/$soname.def;
14104	      cat $export_symbols >> $output_objdir/$soname.def;
14105	    fi~
14106	    $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14107	  else
14108	    ld_shlibs_CXX=no
14109	  fi
14110	  ;;
14111	esac
14112	;;
14113      darwin* | rhapsody*)
14114
14115
14116  archive_cmds_need_lc_CXX=no
14117  hardcode_direct_CXX=no
14118  hardcode_automatic_CXX=yes
14119  hardcode_shlibpath_var_CXX=unsupported
14120  if test "$lt_cv_ld_force_load" = "yes"; then
14121    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
14122
14123  else
14124    whole_archive_flag_spec_CXX=''
14125  fi
14126  link_all_deplibs_CXX=yes
14127  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14128  case $cc_basename in
14129     ifort*) _lt_dar_can_shared=yes ;;
14130     *) _lt_dar_can_shared=$GCC ;;
14131  esac
14132  if test "$_lt_dar_can_shared" = "yes"; then
14133    output_verbose_link_cmd=func_echo_all
14134    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14135    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14136    archive_expsym_cmds_CXX="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}"
14137    module_expsym_cmds_CXX="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}"
14138       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14139      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
14140      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
14141    fi
14142
14143  else
14144  ld_shlibs_CXX=no
14145  fi
14146
14147	;;
14148
14149      dgux*)
14150        case $cc_basename in
14151          ec++*)
14152	    # FIXME: insert proper C++ library support
14153	    ld_shlibs_CXX=no
14154	    ;;
14155          ghcx*)
14156	    # Green Hills C++ Compiler
14157	    # FIXME: insert proper C++ library support
14158	    ld_shlibs_CXX=no
14159	    ;;
14160          *)
14161	    # FIXME: insert proper C++ library support
14162	    ld_shlibs_CXX=no
14163	    ;;
14164        esac
14165        ;;
14166
14167      freebsd2.*)
14168        # C++ shared libraries reported to be fairly broken before
14169	# switch to ELF
14170        ld_shlibs_CXX=no
14171        ;;
14172
14173      freebsd-elf*)
14174        archive_cmds_need_lc_CXX=no
14175        ;;
14176
14177      freebsd* | dragonfly*)
14178        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14179        # conventions
14180        ld_shlibs_CXX=yes
14181        ;;
14182
14183      gnu*)
14184        ;;
14185
14186      haiku*)
14187        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14188        link_all_deplibs_CXX=yes
14189        ;;
14190
14191      hpux9*)
14192        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14193        hardcode_libdir_separator_CXX=:
14194        export_dynamic_flag_spec_CXX='${wl}-E'
14195        hardcode_direct_CXX=yes
14196        hardcode_minus_L_CXX=yes # Not in the search PATH,
14197				             # but as the default
14198				             # location of the library.
14199
14200        case $cc_basename in
14201          CC*)
14202            # FIXME: insert proper C++ library support
14203            ld_shlibs_CXX=no
14204            ;;
14205          aCC*)
14206            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14207            # Commands to make compiler produce verbose output that lists
14208            # what "hidden" libraries, object files and flags are used when
14209            # linking a shared library.
14210            #
14211            # There doesn't appear to be a way to prevent this compiler from
14212            # explicitly linking system object files so we need to strip them
14213            # from the output so that they don't get included in the library
14214            # dependencies.
14215            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14216            ;;
14217          *)
14218            if test "$GXX" = yes; then
14219              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14220            else
14221              # FIXME: insert proper C++ library support
14222              ld_shlibs_CXX=no
14223            fi
14224            ;;
14225        esac
14226        ;;
14227
14228      hpux10*|hpux11*)
14229        if test $with_gnu_ld = no; then
14230	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14231	  hardcode_libdir_separator_CXX=:
14232
14233          case $host_cpu in
14234            hppa*64*|ia64*)
14235              ;;
14236            *)
14237	      export_dynamic_flag_spec_CXX='${wl}-E'
14238              ;;
14239          esac
14240        fi
14241        case $host_cpu in
14242          hppa*64*|ia64*)
14243            hardcode_direct_CXX=no
14244            hardcode_shlibpath_var_CXX=no
14245            ;;
14246          *)
14247            hardcode_direct_CXX=yes
14248            hardcode_direct_absolute_CXX=yes
14249            hardcode_minus_L_CXX=yes # Not in the search PATH,
14250					         # but as the default
14251					         # location of the library.
14252            ;;
14253        esac
14254
14255        case $cc_basename in
14256          CC*)
14257	    # FIXME: insert proper C++ library support
14258	    ld_shlibs_CXX=no
14259	    ;;
14260          aCC*)
14261	    case $host_cpu in
14262	      hppa*64*)
14263	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14264	        ;;
14265	      ia64*)
14266	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14267	        ;;
14268	      *)
14269	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14270	        ;;
14271	    esac
14272	    # Commands to make compiler produce verbose output that lists
14273	    # what "hidden" libraries, object files and flags are used when
14274	    # linking a shared library.
14275	    #
14276	    # There doesn't appear to be a way to prevent this compiler from
14277	    # explicitly linking system object files so we need to strip them
14278	    # from the output so that they don't get included in the library
14279	    # dependencies.
14280	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14281	    ;;
14282          *)
14283	    if test "$GXX" = yes; then
14284	      if test $with_gnu_ld = no; then
14285	        case $host_cpu in
14286	          hppa*64*)
14287	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14288	            ;;
14289	          ia64*)
14290	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14291	            ;;
14292	          *)
14293	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14294	            ;;
14295	        esac
14296	      fi
14297	    else
14298	      # FIXME: insert proper C++ library support
14299	      ld_shlibs_CXX=no
14300	    fi
14301	    ;;
14302        esac
14303        ;;
14304
14305      interix[3-9]*)
14306	hardcode_direct_CXX=no
14307	hardcode_shlibpath_var_CXX=no
14308	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14309	export_dynamic_flag_spec_CXX='${wl}-E'
14310	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14311	# Instead, shared libraries are loaded at an image base (0x10000000 by
14312	# default) and relocated if they conflict, which is a slow very memory
14313	# consuming and fragmenting process.  To avoid this, we pick a random,
14314	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14315	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14316	archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14317	archive_expsym_cmds_CXX='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'
14318	;;
14319      irix5* | irix6*)
14320        case $cc_basename in
14321          CC*)
14322	    # SGI C++
14323	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14324
14325	    # Archives containing C++ object files must be created using
14326	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14327	    # necessary to make sure instantiated templates are included
14328	    # in the archive.
14329	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14330	    ;;
14331          *)
14332	    if test "$GXX" = yes; then
14333	      if test "$with_gnu_ld" = no; then
14334	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
14335	      else
14336	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
14337	      fi
14338	    fi
14339	    link_all_deplibs_CXX=yes
14340	    ;;
14341        esac
14342        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14343        hardcode_libdir_separator_CXX=:
14344        inherit_rpath_CXX=yes
14345        ;;
14346
14347      linux* | k*bsd*-gnu | kopensolaris*-gnu)
14348        case $cc_basename in
14349          KCC*)
14350	    # Kuck and Associates, Inc. (KAI) C++ Compiler
14351
14352	    # KCC will only create a shared library if the output file
14353	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
14354	    # to its proper name (with version) after linking.
14355	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14356	    archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
14357	    # Commands to make compiler produce verbose output that lists
14358	    # what "hidden" libraries, object files and flags are used when
14359	    # linking a shared library.
14360	    #
14361	    # There doesn't appear to be a way to prevent this compiler from
14362	    # explicitly linking system object files so we need to strip them
14363	    # from the output so that they don't get included in the library
14364	    # dependencies.
14365	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14366
14367	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14368	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14369
14370	    # Archives containing C++ object files must be created using
14371	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14372	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14373	    ;;
14374	  icpc* | ecpc* )
14375	    # Intel C++
14376	    with_gnu_ld=yes
14377	    # version 8.0 and above of icpc choke on multiply defined symbols
14378	    # if we add $predep_objects and $postdep_objects, however 7.1 and
14379	    # earlier do not add the objects themselves.
14380	    case `$CC -V 2>&1` in
14381	      *"Version 7."*)
14382	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14383		archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14384		;;
14385	      *)  # Version 8.0 or newer
14386	        tmp_idyn=
14387	        case $host_cpu in
14388		  ia64*) tmp_idyn=' -i_dynamic';;
14389		esac
14390	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14391		archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14392		;;
14393	    esac
14394	    archive_cmds_need_lc_CXX=no
14395	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14396	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14397	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14398	    ;;
14399          pgCC* | pgcpp*)
14400            # Portland Group C++ compiler
14401	    case `$CC -V` in
14402	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14403	      prelink_cmds_CXX='tpldir=Template.dir~
14404		rm -rf $tpldir~
14405		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14406		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14407	      old_archive_cmds_CXX='tpldir=Template.dir~
14408		rm -rf $tpldir~
14409		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14410		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14411		$RANLIB $oldlib'
14412	      archive_cmds_CXX='tpldir=Template.dir~
14413		rm -rf $tpldir~
14414		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14415		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14416	      archive_expsym_cmds_CXX='tpldir=Template.dir~
14417		rm -rf $tpldir~
14418		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14419		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14420	      ;;
14421	    *) # Version 6 and above use weak symbols
14422	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14423	      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14424	      ;;
14425	    esac
14426
14427	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14428	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14429	    whole_archive_flag_spec_CXX='${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'
14430            ;;
14431	  cxx*)
14432	    # Compaq C++
14433	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14434	    archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
14435
14436	    runpath_var=LD_RUN_PATH
14437	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14438	    hardcode_libdir_separator_CXX=:
14439
14440	    # Commands to make compiler produce verbose output that lists
14441	    # what "hidden" libraries, object files and flags are used when
14442	    # linking a shared library.
14443	    #
14444	    # There doesn't appear to be a way to prevent this compiler from
14445	    # explicitly linking system object files so we need to strip them
14446	    # from the output so that they don't get included in the library
14447	    # dependencies.
14448	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
14449	    ;;
14450	  xl* | mpixl* | bgxl*)
14451	    # IBM XL 8.0 on PPC, with GNU ld
14452	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14453	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14454	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14455	    if test "x$supports_anon_versioning" = xyes; then
14456	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14457		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14458		echo "local: *; };" >> $output_objdir/$libname.ver~
14459		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14460	    fi
14461	    ;;
14462	  *)
14463	    case `$CC -V 2>&1 | sed 5q` in
14464	    *Sun\ C*)
14465	      # Sun C++ 5.9
14466	      no_undefined_flag_CXX=' -zdefs'
14467	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14468	      archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
14469	      hardcode_libdir_flag_spec_CXX='-R$libdir'
14470	      whole_archive_flag_spec_CXX='${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'
14471	      compiler_needs_object_CXX=yes
14472
14473	      # Not sure whether something based on
14474	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14475	      # would be better.
14476	      output_verbose_link_cmd='func_echo_all'
14477
14478	      # Archives containing C++ object files must be created using
14479	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14480	      # necessary to make sure instantiated templates are included
14481	      # in the archive.
14482	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14483	      ;;
14484	    esac
14485	    ;;
14486	esac
14487	;;
14488
14489      lynxos*)
14490        # FIXME: insert proper C++ library support
14491	ld_shlibs_CXX=no
14492	;;
14493
14494      m88k*)
14495        # FIXME: insert proper C++ library support
14496        ld_shlibs_CXX=no
14497	;;
14498
14499      mvs*)
14500        case $cc_basename in
14501          cxx*)
14502	    # FIXME: insert proper C++ library support
14503	    ld_shlibs_CXX=no
14504	    ;;
14505	  *)
14506	    # FIXME: insert proper C++ library support
14507	    ld_shlibs_CXX=no
14508	    ;;
14509	esac
14510	;;
14511
14512      netbsd*)
14513        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14514	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14515	  wlarc=
14516	  hardcode_libdir_flag_spec_CXX='-R$libdir'
14517	  hardcode_direct_CXX=yes
14518	  hardcode_shlibpath_var_CXX=no
14519	fi
14520	# Workaround some broken pre-1.5 toolchains
14521	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14522	;;
14523
14524      *nto* | *qnx*)
14525        ld_shlibs_CXX=yes
14526	;;
14527
14528      openbsd2*)
14529        # C++ shared libraries are fairly broken
14530	ld_shlibs_CXX=no
14531	;;
14532
14533      openbsd*)
14534	if test -f /usr/libexec/ld.so; then
14535	  hardcode_direct_CXX=yes
14536	  hardcode_shlibpath_var_CXX=no
14537	  hardcode_direct_absolute_CXX=yes
14538	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14539	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14540	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14541	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14542	    export_dynamic_flag_spec_CXX='${wl}-E'
14543	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14544	  fi
14545	  output_verbose_link_cmd=func_echo_all
14546	else
14547	  ld_shlibs_CXX=no
14548	fi
14549	;;
14550
14551      osf3* | osf4* | osf5*)
14552        case $cc_basename in
14553          KCC*)
14554	    # Kuck and Associates, Inc. (KAI) C++ Compiler
14555
14556	    # KCC will only create a shared library if the output file
14557	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
14558	    # to its proper name (with version) after linking.
14559	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14560
14561	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14562	    hardcode_libdir_separator_CXX=:
14563
14564	    # Archives containing C++ object files must be created using
14565	    # the KAI C++ compiler.
14566	    case $host in
14567	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14568	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14569	    esac
14570	    ;;
14571          RCC*)
14572	    # Rational C++ 2.4.1
14573	    # FIXME: insert proper C++ library support
14574	    ld_shlibs_CXX=no
14575	    ;;
14576          cxx*)
14577	    case $host in
14578	      osf3*)
14579	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14580	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14581	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14582		;;
14583	      *)
14584	        allow_undefined_flag_CXX=' -expect_unresolved \*'
14585	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14586	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14587	          echo "-hidden">> $lib.exp~
14588	          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
14589	          $RM $lib.exp'
14590	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14591		;;
14592	    esac
14593
14594	    hardcode_libdir_separator_CXX=:
14595
14596	    # Commands to make compiler produce verbose output that lists
14597	    # what "hidden" libraries, object files and flags are used when
14598	    # linking a shared library.
14599	    #
14600	    # There doesn't appear to be a way to prevent this compiler from
14601	    # explicitly linking system object files so we need to strip them
14602	    # from the output so that they don't get included in the library
14603	    # dependencies.
14604	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14605	    ;;
14606	  *)
14607	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14608	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14609	      case $host in
14610	        osf3*)
14611	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
14612		  ;;
14613	        *)
14614	          archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
14615		  ;;
14616	      esac
14617
14618	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14619	      hardcode_libdir_separator_CXX=:
14620
14621	      # Commands to make compiler produce verbose output that lists
14622	      # what "hidden" libraries, object files and flags are used when
14623	      # linking a shared library.
14624	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14625
14626	    else
14627	      # FIXME: insert proper C++ library support
14628	      ld_shlibs_CXX=no
14629	    fi
14630	    ;;
14631        esac
14632        ;;
14633
14634      psos*)
14635        # FIXME: insert proper C++ library support
14636        ld_shlibs_CXX=no
14637        ;;
14638
14639      sunos4*)
14640        case $cc_basename in
14641          CC*)
14642	    # Sun C++ 4.x
14643	    # FIXME: insert proper C++ library support
14644	    ld_shlibs_CXX=no
14645	    ;;
14646          lcc*)
14647	    # Lucid
14648	    # FIXME: insert proper C++ library support
14649	    ld_shlibs_CXX=no
14650	    ;;
14651          *)
14652	    # FIXME: insert proper C++ library support
14653	    ld_shlibs_CXX=no
14654	    ;;
14655        esac
14656        ;;
14657
14658      solaris*)
14659        case $cc_basename in
14660          CC* | sunCC*)
14661	    # Sun C++ 4.2, 5.x and Centerline C++
14662            archive_cmds_need_lc_CXX=yes
14663	    no_undefined_flag_CXX=' -zdefs'
14664	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14665	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14666	      $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14667
14668	    hardcode_libdir_flag_spec_CXX='-R$libdir'
14669	    hardcode_shlibpath_var_CXX=no
14670	    case $host_os in
14671	      solaris2.[0-5] | solaris2.[0-5].*) ;;
14672	      *)
14673		# The compiler driver will combine and reorder linker options,
14674		# but understands `-z linker_flag'.
14675	        # Supported since Solaris 2.6 (maybe 2.5.1?)
14676		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14677	        ;;
14678	    esac
14679	    link_all_deplibs_CXX=yes
14680
14681	    output_verbose_link_cmd='func_echo_all'
14682
14683	    # Archives containing C++ object files must be created using
14684	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14685	    # necessary to make sure instantiated templates are included
14686	    # in the archive.
14687	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14688	    ;;
14689          gcx*)
14690	    # Green Hills C++ Compiler
14691	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14692
14693	    # The C++ compiler must be used to create the archive.
14694	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14695	    ;;
14696          *)
14697	    # GNU C++ compiler with Solaris linker
14698	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14699	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14700	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14701	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14702	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14703		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14704
14705	        # Commands to make compiler produce verbose output that lists
14706	        # what "hidden" libraries, object files and flags are used when
14707	        # linking a shared library.
14708	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14709	      else
14710	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
14711	        # platform.
14712	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14713	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14714		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14715
14716	        # Commands to make compiler produce verbose output that lists
14717	        # what "hidden" libraries, object files and flags are used when
14718	        # linking a shared library.
14719	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14720	      fi
14721
14722	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14723	      case $host_os in
14724		solaris2.[0-5] | solaris2.[0-5].*) ;;
14725		*)
14726		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14727		  ;;
14728	      esac
14729	    fi
14730	    ;;
14731        esac
14732        ;;
14733
14734    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14735      no_undefined_flag_CXX='${wl}-z,text'
14736      archive_cmds_need_lc_CXX=no
14737      hardcode_shlibpath_var_CXX=no
14738      runpath_var='LD_RUN_PATH'
14739
14740      case $cc_basename in
14741        CC*)
14742	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14743	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14744	  ;;
14745	*)
14746	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14747	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14748	  ;;
14749      esac
14750      ;;
14751
14752      sysv5* | sco3.2v5* | sco5v6*)
14753	# Note: We can NOT use -z defs as we might desire, because we do not
14754	# link with -lc, and that would cause any symbols used from libc to
14755	# always be unresolved, which means just about no library would
14756	# ever link correctly.  If we're not using GNU ld we use -z text
14757	# though, which does catch some bad symbols but isn't as heavy-handed
14758	# as -z defs.
14759	no_undefined_flag_CXX='${wl}-z,text'
14760	allow_undefined_flag_CXX='${wl}-z,nodefs'
14761	archive_cmds_need_lc_CXX=no
14762	hardcode_shlibpath_var_CXX=no
14763	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14764	hardcode_libdir_separator_CXX=':'
14765	link_all_deplibs_CXX=yes
14766	export_dynamic_flag_spec_CXX='${wl}-Bexport'
14767	runpath_var='LD_RUN_PATH'
14768
14769	case $cc_basename in
14770          CC*)
14771	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14772	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14773	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14774	      '"$old_archive_cmds_CXX"
14775	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14776	      '"$reload_cmds_CXX"
14777	    ;;
14778	  *)
14779	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14780	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14781	    ;;
14782	esac
14783      ;;
14784
14785      tandem*)
14786        case $cc_basename in
14787          NCC*)
14788	    # NonStop-UX NCC 3.20
14789	    # FIXME: insert proper C++ library support
14790	    ld_shlibs_CXX=no
14791	    ;;
14792          *)
14793	    # FIXME: insert proper C++ library support
14794	    ld_shlibs_CXX=no
14795	    ;;
14796        esac
14797        ;;
14798
14799      vxworks*)
14800        # FIXME: insert proper C++ library support
14801        ld_shlibs_CXX=no
14802        ;;
14803
14804      *)
14805        # FIXME: insert proper C++ library support
14806        ld_shlibs_CXX=no
14807        ;;
14808    esac
14809
14810    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14811$as_echo "$ld_shlibs_CXX" >&6; }
14812    test "$ld_shlibs_CXX" = no && can_build_shared=no
14813
14814    GCC_CXX="$GXX"
14815    LD_CXX="$LD"
14816
14817    ## CAVEAT EMPTOR:
14818    ## There is no encapsulation within the following macros, do not change
14819    ## the running order or otherwise move them around unless you know exactly
14820    ## what you are doing...
14821    # Dependencies to place before and after the object being linked:
14822predep_objects_CXX=
14823postdep_objects_CXX=
14824predeps_CXX=
14825postdeps_CXX=
14826compiler_lib_search_path_CXX=
14827
14828cat > conftest.$ac_ext <<_LT_EOF
14829class Foo
14830{
14831public:
14832  Foo (void) { a = 0; }
14833private:
14834  int a;
14835};
14836_LT_EOF
14837
14838
14839_lt_libdeps_save_CFLAGS=$CFLAGS
14840case "$CC $CFLAGS " in #(
14841*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14842*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14843*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14844esac
14845
14846if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14847  (eval $ac_compile) 2>&5
14848  ac_status=$?
14849  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14850  test $ac_status = 0; }; then
14851  # Parse the compiler output and extract the necessary
14852  # objects, libraries and library flags.
14853
14854  # Sentinel used to keep track of whether or not we are before
14855  # the conftest object file.
14856  pre_test_object_deps_done=no
14857
14858  for p in `eval "$output_verbose_link_cmd"`; do
14859    case ${prev}${p} in
14860
14861    -L* | -R* | -l*)
14862       # Some compilers place space between "-{L,R}" and the path.
14863       # Remove the space.
14864       if test $p = "-L" ||
14865          test $p = "-R"; then
14866	 prev=$p
14867	 continue
14868       fi
14869
14870       # Expand the sysroot to ease extracting the directories later.
14871       if test -z "$prev"; then
14872         case $p in
14873         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14874         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14875         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14876         esac
14877       fi
14878       case $p in
14879       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14880       esac
14881       if test "$pre_test_object_deps_done" = no; then
14882	 case ${prev} in
14883	 -L | -R)
14884	   # Internal compiler library paths should come after those
14885	   # provided the user.  The postdeps already come after the
14886	   # user supplied libs so there is no need to process them.
14887	   if test -z "$compiler_lib_search_path_CXX"; then
14888	     compiler_lib_search_path_CXX="${prev}${p}"
14889	   else
14890	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14891	   fi
14892	   ;;
14893	 # The "-l" case would never come before the object being
14894	 # linked, so don't bother handling this case.
14895	 esac
14896       else
14897	 if test -z "$postdeps_CXX"; then
14898	   postdeps_CXX="${prev}${p}"
14899	 else
14900	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14901	 fi
14902       fi
14903       prev=
14904       ;;
14905
14906    *.lto.$objext) ;; # Ignore GCC LTO objects
14907    *.$objext)
14908       # This assumes that the test object file only shows up
14909       # once in the compiler output.
14910       if test "$p" = "conftest.$objext"; then
14911	 pre_test_object_deps_done=yes
14912	 continue
14913       fi
14914
14915       if test "$pre_test_object_deps_done" = no; then
14916	 if test -z "$predep_objects_CXX"; then
14917	   predep_objects_CXX="$p"
14918	 else
14919	   predep_objects_CXX="$predep_objects_CXX $p"
14920	 fi
14921       else
14922	 if test -z "$postdep_objects_CXX"; then
14923	   postdep_objects_CXX="$p"
14924	 else
14925	   postdep_objects_CXX="$postdep_objects_CXX $p"
14926	 fi
14927       fi
14928       ;;
14929
14930    *) ;; # Ignore the rest.
14931
14932    esac
14933  done
14934
14935  # Clean up.
14936  rm -f a.out a.exe
14937else
14938  echo "libtool.m4: error: problem compiling CXX test program"
14939fi
14940
14941$RM -f confest.$objext
14942CFLAGS=$_lt_libdeps_save_CFLAGS
14943
14944# PORTME: override above test on systems where it is broken
14945case $host_os in
14946interix[3-9]*)
14947  # Interix 3.5 installs completely hosed .la files for C++, so rather than
14948  # hack all around it, let's just trust "g++" to DTRT.
14949  predep_objects_CXX=
14950  postdep_objects_CXX=
14951  postdeps_CXX=
14952  ;;
14953
14954linux*)
14955  case `$CC -V 2>&1 | sed 5q` in
14956  *Sun\ C*)
14957    # Sun C++ 5.9
14958
14959    # The more standards-conforming stlport4 library is
14960    # incompatible with the Cstd library. Avoid specifying
14961    # it if it's in CXXFLAGS. Ignore libCrun as
14962    # -library=stlport4 depends on it.
14963    case " $CXX $CXXFLAGS " in
14964    *" -library=stlport4 "*)
14965      solaris_use_stlport4=yes
14966      ;;
14967    esac
14968
14969    if test "$solaris_use_stlport4" != yes; then
14970      postdeps_CXX='-library=Cstd -library=Crun'
14971    fi
14972    ;;
14973  esac
14974  ;;
14975
14976solaris*)
14977  case $cc_basename in
14978  CC* | sunCC*)
14979    # The more standards-conforming stlport4 library is
14980    # incompatible with the Cstd library. Avoid specifying
14981    # it if it's in CXXFLAGS. Ignore libCrun as
14982    # -library=stlport4 depends on it.
14983    case " $CXX $CXXFLAGS " in
14984    *" -library=stlport4 "*)
14985      solaris_use_stlport4=yes
14986      ;;
14987    esac
14988
14989    # Adding this requires a known-good setup of shared libraries for
14990    # Sun compiler versions before 5.6, else PIC objects from an old
14991    # archive will be linked into the output, leading to subtle bugs.
14992    if test "$solaris_use_stlport4" != yes; then
14993      postdeps_CXX='-library=Cstd -library=Crun'
14994    fi
14995    ;;
14996  esac
14997  ;;
14998esac
14999
15000
15001case " $postdeps_CXX " in
15002*" -lc "*) archive_cmds_need_lc_CXX=no ;;
15003esac
15004 compiler_lib_search_dirs_CXX=
15005if test -n "${compiler_lib_search_path_CXX}"; then
15006 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15007fi
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039    lt_prog_compiler_wl_CXX=
15040lt_prog_compiler_pic_CXX=
15041lt_prog_compiler_static_CXX=
15042
15043
15044  # C++ specific cases for pic, static, wl, etc.
15045  if test "$GXX" = yes; then
15046    lt_prog_compiler_wl_CXX='-Wl,'
15047    lt_prog_compiler_static_CXX='-static'
15048
15049    case $host_os in
15050    aix*)
15051      # All AIX code is PIC.
15052      if test "$host_cpu" = ia64; then
15053	# AIX 5 now supports IA64 processor
15054	lt_prog_compiler_static_CXX='-Bstatic'
15055      fi
15056      ;;
15057
15058    amigaos*)
15059      case $host_cpu in
15060      powerpc)
15061            # see comment about AmigaOS4 .so support
15062            lt_prog_compiler_pic_CXX='-fPIC'
15063        ;;
15064      m68k)
15065            # FIXME: we need at least 68020 code to build shared libraries, but
15066            # adding the `-m68020' flag to GCC prevents building anything better,
15067            # like `-m68040'.
15068            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15069        ;;
15070      esac
15071      ;;
15072
15073    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15074      # PIC is the default for these OSes.
15075      ;;
15076    mingw* | cygwin* | os2* | pw32* | cegcc*)
15077      # This hack is so that the source file can tell whether it is being
15078      # built for inclusion in a dll (and should export symbols for example).
15079      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15080      # (--disable-auto-import) libraries
15081      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15082      ;;
15083    darwin* | rhapsody*)
15084      # PIC is the default on this platform
15085      # Common symbols not allowed in MH_DYLIB files
15086      lt_prog_compiler_pic_CXX='-fno-common'
15087      ;;
15088    *djgpp*)
15089      # DJGPP does not support shared libraries at all
15090      lt_prog_compiler_pic_CXX=
15091      ;;
15092    haiku*)
15093      # PIC is the default for Haiku.
15094      # The "-static" flag exists, but is broken.
15095      lt_prog_compiler_static_CXX=
15096      ;;
15097    interix[3-9]*)
15098      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15099      # Instead, we relocate shared libraries at runtime.
15100      ;;
15101    sysv4*MP*)
15102      if test -d /usr/nec; then
15103	lt_prog_compiler_pic_CXX=-Kconform_pic
15104      fi
15105      ;;
15106    hpux*)
15107      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15108      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15109      # sets the default TLS model and affects inlining.
15110      case $host_cpu in
15111      hppa*64*)
15112	;;
15113      *)
15114	lt_prog_compiler_pic_CXX='-fPIC'
15115	;;
15116      esac
15117      ;;
15118    *qnx* | *nto*)
15119      # QNX uses GNU C++, but need to define -shared option too, otherwise
15120      # it will coredump.
15121      lt_prog_compiler_pic_CXX='-fPIC -shared'
15122      ;;
15123    *)
15124      lt_prog_compiler_pic_CXX='-fPIC'
15125      ;;
15126    esac
15127  else
15128    case $host_os in
15129      aix[4-9]*)
15130	# All AIX code is PIC.
15131	if test "$host_cpu" = ia64; then
15132	  # AIX 5 now supports IA64 processor
15133	  lt_prog_compiler_static_CXX='-Bstatic'
15134	else
15135	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15136	fi
15137	;;
15138      chorus*)
15139	case $cc_basename in
15140	cxch68*)
15141	  # Green Hills C++ Compiler
15142	  # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
15143	  ;;
15144	esac
15145	;;
15146      mingw* | cygwin* | os2* | pw32* | cegcc*)
15147	# This hack is so that the source file can tell whether it is being
15148	# built for inclusion in a dll (and should export symbols for example).
15149	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15150	;;
15151      dgux*)
15152	case $cc_basename in
15153	  ec++*)
15154	    lt_prog_compiler_pic_CXX='-KPIC'
15155	    ;;
15156	  ghcx*)
15157	    # Green Hills C++ Compiler
15158	    lt_prog_compiler_pic_CXX='-pic'
15159	    ;;
15160	  *)
15161	    ;;
15162	esac
15163	;;
15164      freebsd* | dragonfly*)
15165	# FreeBSD uses GNU C++
15166	;;
15167      hpux9* | hpux10* | hpux11*)
15168	case $cc_basename in
15169	  CC*)
15170	    lt_prog_compiler_wl_CXX='-Wl,'
15171	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15172	    if test "$host_cpu" != ia64; then
15173	      lt_prog_compiler_pic_CXX='+Z'
15174	    fi
15175	    ;;
15176	  aCC*)
15177	    lt_prog_compiler_wl_CXX='-Wl,'
15178	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15179	    case $host_cpu in
15180	    hppa*64*|ia64*)
15181	      # +Z the default
15182	      ;;
15183	    *)
15184	      lt_prog_compiler_pic_CXX='+Z'
15185	      ;;
15186	    esac
15187	    ;;
15188	  *)
15189	    ;;
15190	esac
15191	;;
15192      interix*)
15193	# This is c89, which is MS Visual C++ (no shared libs)
15194	# Anyone wants to do a port?
15195	;;
15196      irix5* | irix6* | nonstopux*)
15197	case $cc_basename in
15198	  CC*)
15199	    lt_prog_compiler_wl_CXX='-Wl,'
15200	    lt_prog_compiler_static_CXX='-non_shared'
15201	    # CC pic flag -KPIC is the default.
15202	    ;;
15203	  *)
15204	    ;;
15205	esac
15206	;;
15207      linux* | k*bsd*-gnu | kopensolaris*-gnu)
15208	case $cc_basename in
15209	  KCC*)
15210	    # KAI C++ Compiler
15211	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15212	    lt_prog_compiler_pic_CXX='-fPIC'
15213	    ;;
15214	  ecpc* )
15215	    # old Intel C++ for x86_64 which still supported -KPIC.
15216	    lt_prog_compiler_wl_CXX='-Wl,'
15217	    lt_prog_compiler_pic_CXX='-KPIC'
15218	    lt_prog_compiler_static_CXX='-static'
15219	    ;;
15220	  icpc* )
15221	    # Intel C++, used to be incompatible with GCC.
15222	    # ICC 10 doesn't accept -KPIC any more.
15223	    lt_prog_compiler_wl_CXX='-Wl,'
15224	    lt_prog_compiler_pic_CXX='-fPIC'
15225	    lt_prog_compiler_static_CXX='-static'
15226	    ;;
15227	  pgCC* | pgcpp*)
15228	    # Portland Group C++ compiler
15229	    lt_prog_compiler_wl_CXX='-Wl,'
15230	    lt_prog_compiler_pic_CXX='-fpic'
15231	    lt_prog_compiler_static_CXX='-Bstatic'
15232	    ;;
15233	  cxx*)
15234	    # Compaq C++
15235	    # Make sure the PIC flag is empty.  It appears that all Alpha
15236	    # Linux and Compaq Tru64 Unix objects are PIC.
15237	    lt_prog_compiler_pic_CXX=
15238	    lt_prog_compiler_static_CXX='-non_shared'
15239	    ;;
15240	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15241	    # IBM XL 8.0, 9.0 on PPC and BlueGene
15242	    lt_prog_compiler_wl_CXX='-Wl,'
15243	    lt_prog_compiler_pic_CXX='-qpic'
15244	    lt_prog_compiler_static_CXX='-qstaticlink'
15245	    ;;
15246	  *)
15247	    case `$CC -V 2>&1 | sed 5q` in
15248	    *Sun\ C*)
15249	      # Sun C++ 5.9
15250	      lt_prog_compiler_pic_CXX='-KPIC'
15251	      lt_prog_compiler_static_CXX='-Bstatic'
15252	      lt_prog_compiler_wl_CXX='-Qoption ld '
15253	      ;;
15254	    esac
15255	    ;;
15256	esac
15257	;;
15258      lynxos*)
15259	;;
15260      m88k*)
15261	;;
15262      mvs*)
15263	case $cc_basename in
15264	  cxx*)
15265	    lt_prog_compiler_pic_CXX='-W c,exportall'
15266	    ;;
15267	  *)
15268	    ;;
15269	esac
15270	;;
15271      netbsd*)
15272	;;
15273      *qnx* | *nto*)
15274        # QNX uses GNU C++, but need to define -shared option too, otherwise
15275        # it will coredump.
15276        lt_prog_compiler_pic_CXX='-fPIC -shared'
15277        ;;
15278      osf3* | osf4* | osf5*)
15279	case $cc_basename in
15280	  KCC*)
15281	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15282	    ;;
15283	  RCC*)
15284	    # Rational C++ 2.4.1
15285	    lt_prog_compiler_pic_CXX='-pic'
15286	    ;;
15287	  cxx*)
15288	    # Digital/Compaq C++
15289	    lt_prog_compiler_wl_CXX='-Wl,'
15290	    # Make sure the PIC flag is empty.  It appears that all Alpha
15291	    # Linux and Compaq Tru64 Unix objects are PIC.
15292	    lt_prog_compiler_pic_CXX=
15293	    lt_prog_compiler_static_CXX='-non_shared'
15294	    ;;
15295	  *)
15296	    ;;
15297	esac
15298	;;
15299      psos*)
15300	;;
15301      solaris*)
15302	case $cc_basename in
15303	  CC* | sunCC*)
15304	    # Sun C++ 4.2, 5.x and Centerline C++
15305	    lt_prog_compiler_pic_CXX='-KPIC'
15306	    lt_prog_compiler_static_CXX='-Bstatic'
15307	    lt_prog_compiler_wl_CXX='-Qoption ld '
15308	    ;;
15309	  gcx*)
15310	    # Green Hills C++ Compiler
15311	    lt_prog_compiler_pic_CXX='-PIC'
15312	    ;;
15313	  *)
15314	    ;;
15315	esac
15316	;;
15317      sunos4*)
15318	case $cc_basename in
15319	  CC*)
15320	    # Sun C++ 4.x
15321	    lt_prog_compiler_pic_CXX='-pic'
15322	    lt_prog_compiler_static_CXX='-Bstatic'
15323	    ;;
15324	  lcc*)
15325	    # Lucid
15326	    lt_prog_compiler_pic_CXX='-pic'
15327	    ;;
15328	  *)
15329	    ;;
15330	esac
15331	;;
15332      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15333	case $cc_basename in
15334	  CC*)
15335	    lt_prog_compiler_wl_CXX='-Wl,'
15336	    lt_prog_compiler_pic_CXX='-KPIC'
15337	    lt_prog_compiler_static_CXX='-Bstatic'
15338	    ;;
15339	esac
15340	;;
15341      tandem*)
15342	case $cc_basename in
15343	  NCC*)
15344	    # NonStop-UX NCC 3.20
15345	    lt_prog_compiler_pic_CXX='-KPIC'
15346	    ;;
15347	  *)
15348	    ;;
15349	esac
15350	;;
15351      vxworks*)
15352	;;
15353      *)
15354	lt_prog_compiler_can_build_shared_CXX=no
15355	;;
15356    esac
15357  fi
15358
15359case $host_os in
15360  # For platforms which do not support PIC, -DPIC is meaningless:
15361  *djgpp*)
15362    lt_prog_compiler_pic_CXX=
15363    ;;
15364  *)
15365    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15366    ;;
15367esac
15368
15369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15370$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15371if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15372  $as_echo_n "(cached) " >&6
15373else
15374  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15375fi
15376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15377$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15378lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15379
15380#
15381# Check to make sure the PIC flag actually works.
15382#
15383if test -n "$lt_prog_compiler_pic_CXX"; then
15384  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15385$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15386if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15387  $as_echo_n "(cached) " >&6
15388else
15389  lt_cv_prog_compiler_pic_works_CXX=no
15390   ac_outfile=conftest.$ac_objext
15391   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15392   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15393   # Insert the option either (1) after the last *FLAGS variable, or
15394   # (2) before a word containing "conftest.", or (3) at the end.
15395   # Note that $ac_compile itself does not contain backslashes and begins
15396   # with a dollar sign (not a hyphen), so the echo should work correctly.
15397   # The option is referenced via a variable to avoid confusing sed.
15398   lt_compile=`echo "$ac_compile" | $SED \
15399   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15400   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15401   -e 's:$: $lt_compiler_flag:'`
15402   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15403   (eval "$lt_compile" 2>conftest.err)
15404   ac_status=$?
15405   cat conftest.err >&5
15406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407   if (exit $ac_status) && test -s "$ac_outfile"; then
15408     # The compiler can only warn and ignore the option if not recognized
15409     # So say no if there are warnings other than the usual output.
15410     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15411     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15412     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15413       lt_cv_prog_compiler_pic_works_CXX=yes
15414     fi
15415   fi
15416   $RM conftest*
15417
15418fi
15419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15420$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15421
15422if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15423    case $lt_prog_compiler_pic_CXX in
15424     "" | " "*) ;;
15425     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15426     esac
15427else
15428    lt_prog_compiler_pic_CXX=
15429     lt_prog_compiler_can_build_shared_CXX=no
15430fi
15431
15432fi
15433
15434
15435
15436
15437
15438#
15439# Check to make sure the static flag actually works.
15440#
15441wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15443$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15444if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15445  $as_echo_n "(cached) " >&6
15446else
15447  lt_cv_prog_compiler_static_works_CXX=no
15448   save_LDFLAGS="$LDFLAGS"
15449   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15450   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15451   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15452     # The linker can only warn and ignore the option if not recognized
15453     # So say no if there are warnings
15454     if test -s conftest.err; then
15455       # Append any errors to the config.log.
15456       cat conftest.err 1>&5
15457       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15458       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15459       if diff conftest.exp conftest.er2 >/dev/null; then
15460         lt_cv_prog_compiler_static_works_CXX=yes
15461       fi
15462     else
15463       lt_cv_prog_compiler_static_works_CXX=yes
15464     fi
15465   fi
15466   $RM -r conftest*
15467   LDFLAGS="$save_LDFLAGS"
15468
15469fi
15470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15471$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15472
15473if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15474    :
15475else
15476    lt_prog_compiler_static_CXX=
15477fi
15478
15479
15480
15481
15482    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15483$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15484if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15485  $as_echo_n "(cached) " >&6
15486else
15487  lt_cv_prog_compiler_c_o_CXX=no
15488   $RM -r conftest 2>/dev/null
15489   mkdir conftest
15490   cd conftest
15491   mkdir out
15492   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15493
15494   lt_compiler_flag="-o out/conftest2.$ac_objext"
15495   # Insert the option either (1) after the last *FLAGS variable, or
15496   # (2) before a word containing "conftest.", or (3) at the end.
15497   # Note that $ac_compile itself does not contain backslashes and begins
15498   # with a dollar sign (not a hyphen), so the echo should work correctly.
15499   lt_compile=`echo "$ac_compile" | $SED \
15500   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15501   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15502   -e 's:$: $lt_compiler_flag:'`
15503   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15504   (eval "$lt_compile" 2>out/conftest.err)
15505   ac_status=$?
15506   cat out/conftest.err >&5
15507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15509   then
15510     # The compiler can only warn and ignore the option if not recognized
15511     # So say no if there are warnings
15512     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15513     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15514     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15515       lt_cv_prog_compiler_c_o_CXX=yes
15516     fi
15517   fi
15518   chmod u+w . 2>&5
15519   $RM conftest*
15520   # SGI C++ compiler will create directory out/ii_files/ for
15521   # template instantiation
15522   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15523   $RM out/* && rmdir out
15524   cd ..
15525   $RM -r conftest
15526   $RM conftest*
15527
15528fi
15529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15530$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15531
15532
15533
15534    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15535$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15536if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15537  $as_echo_n "(cached) " >&6
15538else
15539  lt_cv_prog_compiler_c_o_CXX=no
15540   $RM -r conftest 2>/dev/null
15541   mkdir conftest
15542   cd conftest
15543   mkdir out
15544   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15545
15546   lt_compiler_flag="-o out/conftest2.$ac_objext"
15547   # Insert the option either (1) after the last *FLAGS variable, or
15548   # (2) before a word containing "conftest.", or (3) at the end.
15549   # Note that $ac_compile itself does not contain backslashes and begins
15550   # with a dollar sign (not a hyphen), so the echo should work correctly.
15551   lt_compile=`echo "$ac_compile" | $SED \
15552   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15553   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15554   -e 's:$: $lt_compiler_flag:'`
15555   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15556   (eval "$lt_compile" 2>out/conftest.err)
15557   ac_status=$?
15558   cat out/conftest.err >&5
15559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15561   then
15562     # The compiler can only warn and ignore the option if not recognized
15563     # So say no if there are warnings
15564     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15565     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15566     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15567       lt_cv_prog_compiler_c_o_CXX=yes
15568     fi
15569   fi
15570   chmod u+w . 2>&5
15571   $RM conftest*
15572   # SGI C++ compiler will create directory out/ii_files/ for
15573   # template instantiation
15574   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15575   $RM out/* && rmdir out
15576   cd ..
15577   $RM -r conftest
15578   $RM conftest*
15579
15580fi
15581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15582$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15583
15584
15585
15586
15587hard_links="nottested"
15588if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15589  # do not overwrite the value of need_locks provided by the user
15590  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15591$as_echo_n "checking if we can lock with hard links... " >&6; }
15592  hard_links=yes
15593  $RM conftest*
15594  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15595  touch conftest.a
15596  ln conftest.a conftest.b 2>&5 || hard_links=no
15597  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15599$as_echo "$hard_links" >&6; }
15600  if test "$hard_links" = no; then
15601    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15602$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15603    need_locks=warn
15604  fi
15605else
15606  need_locks=no
15607fi
15608
15609
15610
15611    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15612$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15613
15614  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15615  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15616  case $host_os in
15617  aix[4-9]*)
15618    # If we're using GNU nm, then we don't want the "-C" option.
15619    # -C means demangle to AIX nm, but means don't demangle with GNU nm
15620    # Also, AIX nm treats weak defined symbols like other global defined
15621    # symbols, whereas GNU nm marks them as "W".
15622    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15623      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15624    else
15625      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15626    fi
15627    ;;
15628  pw32*)
15629    export_symbols_cmds_CXX="$ltdll_cmds"
15630    ;;
15631  cygwin* | mingw* | cegcc*)
15632    case $cc_basename in
15633    cl*)
15634      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15635      ;;
15636    *)
15637      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15638      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15639      ;;
15640    esac
15641    ;;
15642  *)
15643    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15644    ;;
15645  esac
15646
15647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15648$as_echo "$ld_shlibs_CXX" >&6; }
15649test "$ld_shlibs_CXX" = no && can_build_shared=no
15650
15651with_gnu_ld_CXX=$with_gnu_ld
15652
15653
15654
15655
15656
15657
15658#
15659# Do we need to explicitly link libc?
15660#
15661case "x$archive_cmds_need_lc_CXX" in
15662x|xyes)
15663  # Assume -lc should be added
15664  archive_cmds_need_lc_CXX=yes
15665
15666  if test "$enable_shared" = yes && test "$GCC" = yes; then
15667    case $archive_cmds_CXX in
15668    *'~'*)
15669      # FIXME: we may have to deal with multi-command sequences.
15670      ;;
15671    '$CC '*)
15672      # Test whether the compiler implicitly links with -lc since on some
15673      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15674      # to ld, don't add -lc before -lgcc.
15675      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15676$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15677if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15678  $as_echo_n "(cached) " >&6
15679else
15680  $RM conftest*
15681	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15682
15683	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15684  (eval $ac_compile) 2>&5
15685  ac_status=$?
15686  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15687  test $ac_status = 0; } 2>conftest.err; then
15688	  soname=conftest
15689	  lib=conftest
15690	  libobjs=conftest.$ac_objext
15691	  deplibs=
15692	  wl=$lt_prog_compiler_wl_CXX
15693	  pic_flag=$lt_prog_compiler_pic_CXX
15694	  compiler_flags=-v
15695	  linker_flags=-v
15696	  verstring=
15697	  output_objdir=.
15698	  libname=conftest
15699	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15700	  allow_undefined_flag_CXX=
15701	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15702  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15703  ac_status=$?
15704  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15705  test $ac_status = 0; }
15706	  then
15707	    lt_cv_archive_cmds_need_lc_CXX=no
15708	  else
15709	    lt_cv_archive_cmds_need_lc_CXX=yes
15710	  fi
15711	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15712	else
15713	  cat conftest.err 1>&5
15714	fi
15715	$RM conftest*
15716
15717fi
15718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15719$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15720      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15721      ;;
15722    esac
15723  fi
15724  ;;
15725esac
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15789$as_echo_n "checking dynamic linker characteristics... " >&6; }
15790
15791library_names_spec=
15792libname_spec='lib$name'
15793soname_spec=
15794shrext_cmds=".so"
15795postinstall_cmds=
15796postuninstall_cmds=
15797finish_cmds=
15798finish_eval=
15799shlibpath_var=
15800shlibpath_overrides_runpath=unknown
15801version_type=none
15802dynamic_linker="$host_os ld.so"
15803sys_lib_dlsearch_path_spec="/lib /usr/lib"
15804need_lib_prefix=unknown
15805hardcode_into_libs=no
15806
15807# when you set need_version to no, make sure it does not cause -set_version
15808# flags to be left without arguments
15809need_version=unknown
15810
15811case $host_os in
15812aix3*)
15813  version_type=linux # correct to gnu/linux during the next big refactor
15814  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15815  shlibpath_var=LIBPATH
15816
15817  # AIX 3 has no versioning support, so we append a major version to the name.
15818  soname_spec='${libname}${release}${shared_ext}$major'
15819  ;;
15820
15821aix[4-9]*)
15822  version_type=linux # correct to gnu/linux during the next big refactor
15823  need_lib_prefix=no
15824  need_version=no
15825  hardcode_into_libs=yes
15826  if test "$host_cpu" = ia64; then
15827    # AIX 5 supports IA64
15828    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15829    shlibpath_var=LD_LIBRARY_PATH
15830  else
15831    # With GCC up to 2.95.x, collect2 would create an import file
15832    # for dependence libraries.  The import file would start with
15833    # the line `#! .'.  This would cause the generated library to
15834    # depend on `.', always an invalid library.  This was fixed in
15835    # development snapshots of GCC prior to 3.0.
15836    case $host_os in
15837      aix4 | aix4.[01] | aix4.[01].*)
15838      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15839	   echo ' yes '
15840	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15841	:
15842      else
15843	can_build_shared=no
15844      fi
15845      ;;
15846    esac
15847    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15848    # soname into executable. Probably we can add versioning support to
15849    # collect2, so additional links can be useful in future.
15850    if test "$aix_use_runtimelinking" = yes; then
15851      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15852      # instead of lib<name>.a to let people know that these are not
15853      # typical AIX shared libraries.
15854      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15855    else
15856      # We preserve .a as extension for shared libraries through AIX4.2
15857      # and later when we are not doing run time linking.
15858      library_names_spec='${libname}${release}.a $libname.a'
15859      soname_spec='${libname}${release}${shared_ext}$major'
15860    fi
15861    shlibpath_var=LIBPATH
15862  fi
15863  ;;
15864
15865amigaos*)
15866  case $host_cpu in
15867  powerpc)
15868    # Since July 2007 AmigaOS4 officially supports .so libraries.
15869    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15870    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15871    ;;
15872  m68k)
15873    library_names_spec='$libname.ixlibrary $libname.a'
15874    # Create ${libname}_ixlibrary.a entries in /sys/libs.
15875    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'
15876    ;;
15877  esac
15878  ;;
15879
15880beos*)
15881  library_names_spec='${libname}${shared_ext}'
15882  dynamic_linker="$host_os ld.so"
15883  shlibpath_var=LIBRARY_PATH
15884  ;;
15885
15886bsdi[45]*)
15887  version_type=linux # correct to gnu/linux during the next big refactor
15888  need_version=no
15889  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15890  soname_spec='${libname}${release}${shared_ext}$major'
15891  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15892  shlibpath_var=LD_LIBRARY_PATH
15893  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15894  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15895  # the default ld.so.conf also contains /usr/contrib/lib and
15896  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15897  # libtool to hard-code these into programs
15898  ;;
15899
15900cygwin* | mingw* | pw32* | cegcc*)
15901  version_type=windows
15902  shrext_cmds=".dll"
15903  need_version=no
15904  need_lib_prefix=no
15905
15906  case $GCC,$cc_basename in
15907  yes,*)
15908    # gcc
15909    library_names_spec='$libname.dll.a'
15910    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15911    postinstall_cmds='base_file=`basename \${file}`~
15912      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15913      dldir=$destdir/`dirname \$dlpath`~
15914      test -d \$dldir || mkdir -p \$dldir~
15915      $install_prog $dir/$dlname \$dldir/$dlname~
15916      chmod a+x \$dldir/$dlname~
15917      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15918        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15919      fi'
15920    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15921      dlpath=$dir/\$dldll~
15922       $RM \$dlpath'
15923    shlibpath_overrides_runpath=yes
15924
15925    case $host_os in
15926    cygwin*)
15927      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15928      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15929
15930      ;;
15931    mingw* | cegcc*)
15932      # MinGW DLLs use traditional 'lib' prefix
15933      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15934      ;;
15935    pw32*)
15936      # pw32 DLLs use 'pw' prefix rather than 'lib'
15937      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15938      ;;
15939    esac
15940    dynamic_linker='Win32 ld.exe'
15941    ;;
15942
15943  *,cl*)
15944    # Native MSVC
15945    libname_spec='$name'
15946    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15947    library_names_spec='${libname}.dll.lib'
15948
15949    case $build_os in
15950    mingw*)
15951      sys_lib_search_path_spec=
15952      lt_save_ifs=$IFS
15953      IFS=';'
15954      for lt_path in $LIB
15955      do
15956        IFS=$lt_save_ifs
15957        # Let DOS variable expansion print the short 8.3 style file name.
15958        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15959        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15960      done
15961      IFS=$lt_save_ifs
15962      # Convert to MSYS style.
15963      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15964      ;;
15965    cygwin*)
15966      # Convert to unix form, then to dos form, then back to unix form
15967      # but this time dos style (no spaces!) so that the unix form looks
15968      # like /cygdrive/c/PROGRA~1:/cygdr...
15969      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15970      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15971      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15972      ;;
15973    *)
15974      sys_lib_search_path_spec="$LIB"
15975      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15976        # It is most probably a Windows format PATH.
15977        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15978      else
15979        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15980      fi
15981      # FIXME: find the short name or the path components, as spaces are
15982      # common. (e.g. "Program Files" -> "PROGRA~1")
15983      ;;
15984    esac
15985
15986    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15987    postinstall_cmds='base_file=`basename \${file}`~
15988      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15989      dldir=$destdir/`dirname \$dlpath`~
15990      test -d \$dldir || mkdir -p \$dldir~
15991      $install_prog $dir/$dlname \$dldir/$dlname'
15992    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15993      dlpath=$dir/\$dldll~
15994       $RM \$dlpath'
15995    shlibpath_overrides_runpath=yes
15996    dynamic_linker='Win32 link.exe'
15997    ;;
15998
15999  *)
16000    # Assume MSVC wrapper
16001    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16002    dynamic_linker='Win32 ld.exe'
16003    ;;
16004  esac
16005  # FIXME: first we should search . and the directory the executable is in
16006  shlibpath_var=PATH
16007  ;;
16008
16009darwin* | rhapsody*)
16010  dynamic_linker="$host_os dyld"
16011  version_type=darwin
16012  need_lib_prefix=no
16013  need_version=no
16014  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16015  soname_spec='${libname}${release}${major}$shared_ext'
16016  shlibpath_overrides_runpath=yes
16017  shlibpath_var=DYLD_LIBRARY_PATH
16018  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16019
16020  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16021  ;;
16022
16023dgux*)
16024  version_type=linux # correct to gnu/linux during the next big refactor
16025  need_lib_prefix=no
16026  need_version=no
16027  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16028  soname_spec='${libname}${release}${shared_ext}$major'
16029  shlibpath_var=LD_LIBRARY_PATH
16030  ;;
16031
16032freebsd* | dragonfly*)
16033  # DragonFly does not have aout.  When/if they implement a new
16034  # versioning mechanism, adjust this.
16035  if test -x /usr/bin/objformat; then
16036    objformat=`/usr/bin/objformat`
16037  else
16038    case $host_os in
16039    freebsd[23].*) objformat=aout ;;
16040    *) objformat=elf ;;
16041    esac
16042  fi
16043  version_type=freebsd-$objformat
16044  case $version_type in
16045    freebsd-elf*)
16046      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16047      need_version=no
16048      need_lib_prefix=no
16049      ;;
16050    freebsd-*)
16051      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16052      need_version=yes
16053      ;;
16054  esac
16055  shlibpath_var=LD_LIBRARY_PATH
16056  case $host_os in
16057  freebsd2.*)
16058    shlibpath_overrides_runpath=yes
16059    ;;
16060  freebsd3.[01]* | freebsdelf3.[01]*)
16061    shlibpath_overrides_runpath=yes
16062    hardcode_into_libs=yes
16063    ;;
16064  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16065  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16066    shlibpath_overrides_runpath=no
16067    hardcode_into_libs=yes
16068    ;;
16069  *) # from 4.6 on, and DragonFly
16070    shlibpath_overrides_runpath=yes
16071    hardcode_into_libs=yes
16072    ;;
16073  esac
16074  ;;
16075
16076gnu*)
16077  version_type=linux # correct to gnu/linux during the next big refactor
16078  need_lib_prefix=no
16079  need_version=no
16080  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16081  soname_spec='${libname}${release}${shared_ext}$major'
16082  shlibpath_var=LD_LIBRARY_PATH
16083  shlibpath_overrides_runpath=no
16084  hardcode_into_libs=yes
16085  ;;
16086
16087haiku*)
16088  version_type=linux # correct to gnu/linux during the next big refactor
16089  need_lib_prefix=no
16090  need_version=no
16091  dynamic_linker="$host_os runtime_loader"
16092  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16093  soname_spec='${libname}${release}${shared_ext}$major'
16094  shlibpath_var=LIBRARY_PATH
16095  shlibpath_overrides_runpath=yes
16096  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16097  hardcode_into_libs=yes
16098  ;;
16099
16100hpux9* | hpux10* | hpux11*)
16101  # Give a soname corresponding to the major version so that dld.sl refuses to
16102  # link against other versions.
16103  version_type=sunos
16104  need_lib_prefix=no
16105  need_version=no
16106  case $host_cpu in
16107  ia64*)
16108    shrext_cmds='.so'
16109    hardcode_into_libs=yes
16110    dynamic_linker="$host_os dld.so"
16111    shlibpath_var=LD_LIBRARY_PATH
16112    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16113    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16114    soname_spec='${libname}${release}${shared_ext}$major'
16115    if test "X$HPUX_IA64_MODE" = X32; then
16116      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16117    else
16118      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16119    fi
16120    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16121    ;;
16122  hppa*64*)
16123    shrext_cmds='.sl'
16124    hardcode_into_libs=yes
16125    dynamic_linker="$host_os dld.sl"
16126    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16127    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16128    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16129    soname_spec='${libname}${release}${shared_ext}$major'
16130    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16131    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16132    ;;
16133  *)
16134    shrext_cmds='.sl'
16135    dynamic_linker="$host_os dld.sl"
16136    shlibpath_var=SHLIB_PATH
16137    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16138    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16139    soname_spec='${libname}${release}${shared_ext}$major'
16140    ;;
16141  esac
16142  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16143  postinstall_cmds='chmod 555 $lib'
16144  # or fails outright, so override atomically:
16145  install_override_mode=555
16146  ;;
16147
16148interix[3-9]*)
16149  version_type=linux # correct to gnu/linux during the next big refactor
16150  need_lib_prefix=no
16151  need_version=no
16152  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16153  soname_spec='${libname}${release}${shared_ext}$major'
16154  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16155  shlibpath_var=LD_LIBRARY_PATH
16156  shlibpath_overrides_runpath=no
16157  hardcode_into_libs=yes
16158  ;;
16159
16160irix5* | irix6* | nonstopux*)
16161  case $host_os in
16162    nonstopux*) version_type=nonstopux ;;
16163    *)
16164	if test "$lt_cv_prog_gnu_ld" = yes; then
16165		version_type=linux # correct to gnu/linux during the next big refactor
16166	else
16167		version_type=irix
16168	fi ;;
16169  esac
16170  need_lib_prefix=no
16171  need_version=no
16172  soname_spec='${libname}${release}${shared_ext}$major'
16173  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16174  case $host_os in
16175  irix5* | nonstopux*)
16176    libsuff= shlibsuff=
16177    ;;
16178  *)
16179    case $LD in # libtool.m4 will add one of these switches to LD
16180    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16181      libsuff= shlibsuff= libmagic=32-bit;;
16182    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16183      libsuff=32 shlibsuff=N32 libmagic=N32;;
16184    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16185      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16186    *) libsuff= shlibsuff= libmagic=never-match;;
16187    esac
16188    ;;
16189  esac
16190  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16191  shlibpath_overrides_runpath=no
16192  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16193  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16194  hardcode_into_libs=yes
16195  ;;
16196
16197# No shared lib support for Linux oldld, aout, or coff.
16198linux*oldld* | linux*aout* | linux*coff*)
16199  dynamic_linker=no
16200  ;;
16201
16202# This must be glibc/ELF.
16203linux* | k*bsd*-gnu | kopensolaris*-gnu)
16204  version_type=linux # correct to gnu/linux during the next big refactor
16205  need_lib_prefix=no
16206  need_version=no
16207  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16208  soname_spec='${libname}${release}${shared_ext}$major'
16209  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16210  shlibpath_var=LD_LIBRARY_PATH
16211  shlibpath_overrides_runpath=no
16212
16213  # Some binutils ld are patched to set DT_RUNPATH
16214  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16215  $as_echo_n "(cached) " >&6
16216else
16217  lt_cv_shlibpath_overrides_runpath=no
16218    save_LDFLAGS=$LDFLAGS
16219    save_libdir=$libdir
16220    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16221	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16222    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16223/* end confdefs.h.  */
16224
16225int
16226main ()
16227{
16228
16229  ;
16230  return 0;
16231}
16232_ACEOF
16233if ac_fn_cxx_try_link "$LINENO"; then :
16234  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16235  lt_cv_shlibpath_overrides_runpath=yes
16236fi
16237fi
16238rm -f core conftest.err conftest.$ac_objext \
16239    conftest$ac_exeext conftest.$ac_ext
16240    LDFLAGS=$save_LDFLAGS
16241    libdir=$save_libdir
16242
16243fi
16244
16245  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16246
16247  # This implies no fast_install, which is unacceptable.
16248  # Some rework will be needed to allow for fast_install
16249  # before this can be enabled.
16250  hardcode_into_libs=yes
16251
16252  # Add ABI-specific directories to the system library path.
16253  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16254
16255  # Append ld.so.conf contents to the search path
16256  if test -f /etc/ld.so.conf; then
16257    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' ' '`
16258    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16259
16260  fi
16261
16262  # We used to test for /lib/ld.so.1 and disable shared libraries on
16263  # powerpc, because MkLinux only supported shared libraries with the
16264  # GNU dynamic linker.  Since this was broken with cross compilers,
16265  # most powerpc-linux boxes support dynamic linking these days and
16266  # people can always --disable-shared, the test was removed, and we
16267  # assume the GNU/Linux dynamic linker is in use.
16268  dynamic_linker='GNU/Linux ld.so'
16269  ;;
16270
16271netbsd*)
16272  version_type=sunos
16273  need_lib_prefix=no
16274  need_version=no
16275  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16276    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16277    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16278    dynamic_linker='NetBSD (a.out) ld.so'
16279  else
16280    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16281    soname_spec='${libname}${release}${shared_ext}$major'
16282    dynamic_linker='NetBSD ld.elf_so'
16283  fi
16284  shlibpath_var=LD_LIBRARY_PATH
16285  shlibpath_overrides_runpath=yes
16286  hardcode_into_libs=yes
16287  ;;
16288
16289newsos6)
16290  version_type=linux # correct to gnu/linux during the next big refactor
16291  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16292  shlibpath_var=LD_LIBRARY_PATH
16293  shlibpath_overrides_runpath=yes
16294  ;;
16295
16296*nto* | *qnx*)
16297  version_type=qnx
16298  need_lib_prefix=no
16299  need_version=no
16300  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16301  soname_spec='${libname}${release}${shared_ext}$major'
16302  shlibpath_var=LD_LIBRARY_PATH
16303  shlibpath_overrides_runpath=no
16304  hardcode_into_libs=yes
16305  dynamic_linker='ldqnx.so'
16306  ;;
16307
16308openbsd*)
16309  version_type=sunos
16310  sys_lib_dlsearch_path_spec="/usr/lib"
16311  need_lib_prefix=no
16312  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16313  case $host_os in
16314    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
16315    *)				need_version=no  ;;
16316  esac
16317  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16318  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16319  shlibpath_var=LD_LIBRARY_PATH
16320  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16321    case $host_os in
16322      openbsd2.[89] | openbsd2.[89].*)
16323	shlibpath_overrides_runpath=no
16324	;;
16325      *)
16326	shlibpath_overrides_runpath=yes
16327	;;
16328      esac
16329  else
16330    shlibpath_overrides_runpath=yes
16331  fi
16332  ;;
16333
16334os2*)
16335  libname_spec='$name'
16336  shrext_cmds=".dll"
16337  need_lib_prefix=no
16338  library_names_spec='$libname${shared_ext} $libname.a'
16339  dynamic_linker='OS/2 ld.exe'
16340  shlibpath_var=LIBPATH
16341  ;;
16342
16343osf3* | osf4* | osf5*)
16344  version_type=osf
16345  need_lib_prefix=no
16346  need_version=no
16347  soname_spec='${libname}${release}${shared_ext}$major'
16348  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16349  shlibpath_var=LD_LIBRARY_PATH
16350  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16351  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16352  ;;
16353
16354rdos*)
16355  dynamic_linker=no
16356  ;;
16357
16358solaris*)
16359  version_type=linux # correct to gnu/linux during the next big refactor
16360  need_lib_prefix=no
16361  need_version=no
16362  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16363  soname_spec='${libname}${release}${shared_ext}$major'
16364  shlibpath_var=LD_LIBRARY_PATH
16365  shlibpath_overrides_runpath=yes
16366  hardcode_into_libs=yes
16367  # ldd complains unless libraries are executable
16368  postinstall_cmds='chmod +x $lib'
16369  ;;
16370
16371sunos4*)
16372  version_type=sunos
16373  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16374  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16375  shlibpath_var=LD_LIBRARY_PATH
16376  shlibpath_overrides_runpath=yes
16377  if test "$with_gnu_ld" = yes; then
16378    need_lib_prefix=no
16379  fi
16380  need_version=yes
16381  ;;
16382
16383sysv4 | sysv4.3*)
16384  version_type=linux # correct to gnu/linux during the next big refactor
16385  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16386  soname_spec='${libname}${release}${shared_ext}$major'
16387  shlibpath_var=LD_LIBRARY_PATH
16388  case $host_vendor in
16389    sni)
16390      shlibpath_overrides_runpath=no
16391      need_lib_prefix=no
16392      runpath_var=LD_RUN_PATH
16393      ;;
16394    siemens)
16395      need_lib_prefix=no
16396      ;;
16397    motorola)
16398      need_lib_prefix=no
16399      need_version=no
16400      shlibpath_overrides_runpath=no
16401      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16402      ;;
16403  esac
16404  ;;
16405
16406sysv4*MP*)
16407  if test -d /usr/nec ;then
16408    version_type=linux # correct to gnu/linux during the next big refactor
16409    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16410    soname_spec='$libname${shared_ext}.$major'
16411    shlibpath_var=LD_LIBRARY_PATH
16412  fi
16413  ;;
16414
16415sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16416  version_type=freebsd-elf
16417  need_lib_prefix=no
16418  need_version=no
16419  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16420  soname_spec='${libname}${release}${shared_ext}$major'
16421  shlibpath_var=LD_LIBRARY_PATH
16422  shlibpath_overrides_runpath=yes
16423  hardcode_into_libs=yes
16424  if test "$with_gnu_ld" = yes; then
16425    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16426  else
16427    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16428    case $host_os in
16429      sco3.2v5*)
16430        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16431	;;
16432    esac
16433  fi
16434  sys_lib_dlsearch_path_spec='/usr/lib'
16435  ;;
16436
16437tpf*)
16438  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16439  version_type=linux # correct to gnu/linux during the next big refactor
16440  need_lib_prefix=no
16441  need_version=no
16442  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16443  shlibpath_var=LD_LIBRARY_PATH
16444  shlibpath_overrides_runpath=no
16445  hardcode_into_libs=yes
16446  ;;
16447
16448uts4*)
16449  version_type=linux # correct to gnu/linux during the next big refactor
16450  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16451  soname_spec='${libname}${release}${shared_ext}$major'
16452  shlibpath_var=LD_LIBRARY_PATH
16453  ;;
16454
16455*)
16456  dynamic_linker=no
16457  ;;
16458esac
16459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16460$as_echo "$dynamic_linker" >&6; }
16461test "$dynamic_linker" = no && can_build_shared=no
16462
16463variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16464if test "$GCC" = yes; then
16465  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16466fi
16467
16468if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16469  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16470fi
16471if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16472  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16473fi
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16513$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16514hardcode_action_CXX=
16515if test -n "$hardcode_libdir_flag_spec_CXX" ||
16516   test -n "$runpath_var_CXX" ||
16517   test "X$hardcode_automatic_CXX" = "Xyes" ; then
16518
16519  # We can hardcode non-existent directories.
16520  if test "$hardcode_direct_CXX" != no &&
16521     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16522     # have to relink, otherwise we might link with an installed library
16523     # when we should be linking with a yet-to-be-installed one
16524     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16525     test "$hardcode_minus_L_CXX" != no; then
16526    # Linking always hardcodes the temporary library directory.
16527    hardcode_action_CXX=relink
16528  else
16529    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16530    hardcode_action_CXX=immediate
16531  fi
16532else
16533  # We cannot hardcode anything, or else we can only hardcode existing
16534  # directories.
16535  hardcode_action_CXX=unsupported
16536fi
16537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16538$as_echo "$hardcode_action_CXX" >&6; }
16539
16540if test "$hardcode_action_CXX" = relink ||
16541   test "$inherit_rpath_CXX" = yes; then
16542  # Fast installation is not supported
16543  enable_fast_install=no
16544elif test "$shlibpath_overrides_runpath" = yes ||
16545     test "$enable_shared" = no; then
16546  # Fast installation is not necessary
16547  enable_fast_install=needless
16548fi
16549
16550
16551
16552
16553
16554
16555
16556  fi # test -n "$compiler"
16557
16558  CC=$lt_save_CC
16559  CFLAGS=$lt_save_CFLAGS
16560  LDCXX=$LD
16561  LD=$lt_save_LD
16562  GCC=$lt_save_GCC
16563  with_gnu_ld=$lt_save_with_gnu_ld
16564  lt_cv_path_LDCXX=$lt_cv_path_LD
16565  lt_cv_path_LD=$lt_save_path_LD
16566  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16567  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16568fi # test "$_lt_caught_CXX_error" != yes
16569
16570ac_ext=c
16571ac_cpp='$CPP $CPPFLAGS'
16572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16574ac_compiler_gnu=$ac_cv_c_compiler_gnu
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590        ac_config_commands="$ac_config_commands libtool"
16591
16592
16593
16594
16595# Only expand once:
16596
16597
16598
16599# Checks for typedefs, structures, and compiler characteristics.
16600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16601$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16602if ${ac_cv_c_const+:} false; then :
16603  $as_echo_n "(cached) " >&6
16604else
16605  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16606/* end confdefs.h.  */
16607
16608int
16609main ()
16610{
16611
16612#ifndef __cplusplus
16613  /* Ultrix mips cc rejects this sort of thing.  */
16614  typedef int charset[2];
16615  const charset cs = { 0, 0 };
16616  /* SunOS 4.1.1 cc rejects this.  */
16617  char const *const *pcpcc;
16618  char **ppc;
16619  /* NEC SVR4.0.2 mips cc rejects this.  */
16620  struct point {int x, y;};
16621  static struct point const zero = {0,0};
16622  /* AIX XL C 1.02.0.0 rejects this.
16623     It does not let you subtract one const X* pointer from another in
16624     an arm of an if-expression whose if-part is not a constant
16625     expression */
16626  const char *g = "string";
16627  pcpcc = &g + (g ? g-g : 0);
16628  /* HPUX 7.0 cc rejects these. */
16629  ++pcpcc;
16630  ppc = (char**) pcpcc;
16631  pcpcc = (char const *const *) ppc;
16632  { /* SCO 3.2v4 cc rejects this sort of thing.  */
16633    char tx;
16634    char *t = &tx;
16635    char const *s = 0 ? (char *) 0 : (char const *) 0;
16636
16637    *t++ = 0;
16638    if (s) return 0;
16639  }
16640  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
16641    int x[] = {25, 17};
16642    const int *foo = &x[0];
16643    ++foo;
16644  }
16645  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16646    typedef const int *iptr;
16647    iptr p = 0;
16648    ++p;
16649  }
16650  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
16651       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16652    struct s { int j; const int *ap[3]; } bx;
16653    struct s *b = &bx; b->j = 5;
16654  }
16655  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16656    const int foo = 10;
16657    if (!foo) return 0;
16658  }
16659  return !cs[0] && !zero.x;
16660#endif
16661
16662  ;
16663  return 0;
16664}
16665_ACEOF
16666if ac_fn_c_try_compile "$LINENO"; then :
16667  ac_cv_c_const=yes
16668else
16669  ac_cv_c_const=no
16670fi
16671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16672fi
16673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16674$as_echo "$ac_cv_c_const" >&6; }
16675if test $ac_cv_c_const = no; then
16676
16677$as_echo "#define const /**/" >>confdefs.h
16678
16679fi
16680
16681ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
16682if test "x$ac_cv_type_off_t" = xyes; then :
16683
16684else
16685
16686cat >>confdefs.h <<_ACEOF
16687#define off_t long int
16688_ACEOF
16689
16690fi
16691
16692ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16693if test "x$ac_cv_type_size_t" = xyes; then :
16694
16695else
16696
16697cat >>confdefs.h <<_ACEOF
16698#define size_t unsigned int
16699_ACEOF
16700
16701fi
16702
16703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
16704$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
16705if ${ac_cv_header_time+:} false; then :
16706  $as_echo_n "(cached) " >&6
16707else
16708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16709/* end confdefs.h.  */
16710#include <sys/types.h>
16711#include <sys/time.h>
16712#include <time.h>
16713
16714int
16715main ()
16716{
16717if ((struct tm *) 0)
16718return 0;
16719  ;
16720  return 0;
16721}
16722_ACEOF
16723if ac_fn_c_try_compile "$LINENO"; then :
16724  ac_cv_header_time=yes
16725else
16726  ac_cv_header_time=no
16727fi
16728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16729fi
16730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
16731$as_echo "$ac_cv_header_time" >&6; }
16732if test $ac_cv_header_time = yes; then
16733
16734$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
16735
16736fi
16737
16738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
16739$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
16740if ${ac_cv_struct_tm+:} false; then :
16741  $as_echo_n "(cached) " >&6
16742else
16743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16744/* end confdefs.h.  */
16745#include <sys/types.h>
16746#include <time.h>
16747
16748int
16749main ()
16750{
16751struct tm tm;
16752				     int *p = &tm.tm_sec;
16753				     return !p;
16754  ;
16755  return 0;
16756}
16757_ACEOF
16758if ac_fn_c_try_compile "$LINENO"; then :
16759  ac_cv_struct_tm=time.h
16760else
16761  ac_cv_struct_tm=sys/time.h
16762fi
16763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16764fi
16765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
16766$as_echo "$ac_cv_struct_tm" >&6; }
16767if test $ac_cv_struct_tm = sys/time.h; then
16768
16769$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
16770
16771fi
16772
16773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
16774$as_echo_n "checking for working volatile... " >&6; }
16775if ${ac_cv_c_volatile+:} false; then :
16776  $as_echo_n "(cached) " >&6
16777else
16778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16779/* end confdefs.h.  */
16780
16781int
16782main ()
16783{
16784
16785volatile int x;
16786int * volatile y = (int *) 0;
16787return !x && !y;
16788  ;
16789  return 0;
16790}
16791_ACEOF
16792if ac_fn_c_try_compile "$LINENO"; then :
16793  ac_cv_c_volatile=yes
16794else
16795  ac_cv_c_volatile=no
16796fi
16797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16798fi
16799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
16800$as_echo "$ac_cv_c_volatile" >&6; }
16801if test $ac_cv_c_volatile = no; then
16802
16803$as_echo "#define volatile /**/" >>confdefs.h
16804
16805fi
16806
16807
16808# Checks for library functions.
16809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
16810$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
16811if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
16812  $as_echo_n "(cached) " >&6
16813else
16814  rm -f conftest.sym conftest.file
16815echo >conftest.file
16816if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
16817  if test "$cross_compiling" = yes; then :
16818  ac_cv_func_lstat_dereferences_slashed_symlink=no
16819else
16820  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16821/* end confdefs.h.  */
16822$ac_includes_default
16823int
16824main ()
16825{
16826struct stat sbuf;
16827     /* Linux will dereference the symlink and fail, as required by POSIX.
16828	That is better in the sense that it means we will not
16829	have to compile and use the lstat wrapper.  */
16830     return lstat ("conftest.sym/", &sbuf) == 0;
16831  ;
16832  return 0;
16833}
16834_ACEOF
16835if ac_fn_c_try_run "$LINENO"; then :
16836  ac_cv_func_lstat_dereferences_slashed_symlink=yes
16837else
16838  ac_cv_func_lstat_dereferences_slashed_symlink=no
16839fi
16840rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16841  conftest.$ac_objext conftest.beam conftest.$ac_ext
16842fi
16843
16844else
16845  # If the `ln -s' command failed, then we probably don't even
16846  # have an lstat function.
16847  ac_cv_func_lstat_dereferences_slashed_symlink=no
16848fi
16849rm -f conftest.sym conftest.file
16850
16851fi
16852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
16853$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
16854
16855test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
16856
16857cat >>confdefs.h <<_ACEOF
16858#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
16859_ACEOF
16860
16861
16862if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
16863  case " $LIBOBJS " in
16864  *" lstat.$ac_objext "* ) ;;
16865  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
16866 ;;
16867esac
16868
16869fi
16870
16871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
16872$as_echo_n "checking whether lstat accepts an empty string... " >&6; }
16873if ${ac_cv_func_lstat_empty_string_bug+:} false; then :
16874  $as_echo_n "(cached) " >&6
16875else
16876  if test "$cross_compiling" = yes; then :
16877  ac_cv_func_lstat_empty_string_bug=yes
16878else
16879  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16880/* end confdefs.h.  */
16881$ac_includes_default
16882int
16883main ()
16884{
16885struct stat sbuf;
16886  return lstat ("", &sbuf) == 0;
16887  ;
16888  return 0;
16889}
16890_ACEOF
16891if ac_fn_c_try_run "$LINENO"; then :
16892  ac_cv_func_lstat_empty_string_bug=no
16893else
16894  ac_cv_func_lstat_empty_string_bug=yes
16895fi
16896rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16897  conftest.$ac_objext conftest.beam conftest.$ac_ext
16898fi
16899
16900fi
16901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
16902$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
16903if test $ac_cv_func_lstat_empty_string_bug = yes; then
16904  case " $LIBOBJS " in
16905  *" lstat.$ac_objext "* ) ;;
16906  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
16907 ;;
16908esac
16909
16910
16911cat >>confdefs.h <<_ACEOF
16912#define HAVE_LSTAT_EMPTY_STRING_BUG 1
16913_ACEOF
16914
16915fi
16916
16917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
16918$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
16919if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
16920  $as_echo_n "(cached) " >&6
16921else
16922  rm -f conftest.sym conftest.file
16923echo >conftest.file
16924if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
16925  if test "$cross_compiling" = yes; then :
16926  ac_cv_func_lstat_dereferences_slashed_symlink=no
16927else
16928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16929/* end confdefs.h.  */
16930$ac_includes_default
16931int
16932main ()
16933{
16934struct stat sbuf;
16935     /* Linux will dereference the symlink and fail, as required by POSIX.
16936	That is better in the sense that it means we will not
16937	have to compile and use the lstat wrapper.  */
16938     return lstat ("conftest.sym/", &sbuf) == 0;
16939  ;
16940  return 0;
16941}
16942_ACEOF
16943if ac_fn_c_try_run "$LINENO"; then :
16944  ac_cv_func_lstat_dereferences_slashed_symlink=yes
16945else
16946  ac_cv_func_lstat_dereferences_slashed_symlink=no
16947fi
16948rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16949  conftest.$ac_objext conftest.beam conftest.$ac_ext
16950fi
16951
16952else
16953  # If the `ln -s' command failed, then we probably don't even
16954  # have an lstat function.
16955  ac_cv_func_lstat_dereferences_slashed_symlink=no
16956fi
16957rm -f conftest.sym conftest.file
16958
16959fi
16960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
16961$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
16962
16963test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
16964
16965cat >>confdefs.h <<_ACEOF
16966#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
16967_ACEOF
16968
16969
16970if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
16971  case " $LIBOBJS " in
16972  *" lstat.$ac_objext "* ) ;;
16973  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
16974 ;;
16975esac
16976
16977fi
16978
16979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
16980$as_echo_n "checking for working memcmp... " >&6; }
16981if ${ac_cv_func_memcmp_working+:} false; then :
16982  $as_echo_n "(cached) " >&6
16983else
16984  if test "$cross_compiling" = yes; then :
16985  ac_cv_func_memcmp_working=no
16986else
16987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16988/* end confdefs.h.  */
16989$ac_includes_default
16990int
16991main ()
16992{
16993
16994  /* Some versions of memcmp are not 8-bit clean.  */
16995  char c0 = '\100', c1 = '\200', c2 = '\201';
16996  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
16997    return 1;
16998
16999  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
17000     or more and with at least one buffer not starting on a 4-byte boundary.
17001     William Lewis provided this test program.   */
17002  {
17003    char foo[21];
17004    char bar[21];
17005    int i;
17006    for (i = 0; i < 4; i++)
17007      {
17008	char *a = foo + i;
17009	char *b = bar + i;
17010	strcpy (a, "--------01111111");
17011	strcpy (b, "--------10000000");
17012	if (memcmp (a, b, 16) >= 0)
17013	  return 1;
17014      }
17015    return 0;
17016  }
17017
17018  ;
17019  return 0;
17020}
17021_ACEOF
17022if ac_fn_c_try_run "$LINENO"; then :
17023  ac_cv_func_memcmp_working=yes
17024else
17025  ac_cv_func_memcmp_working=no
17026fi
17027rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17028  conftest.$ac_objext conftest.beam conftest.$ac_ext
17029fi
17030
17031fi
17032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
17033$as_echo "$ac_cv_func_memcmp_working" >&6; }
17034test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
17035  *" memcmp.$ac_objext "* ) ;;
17036  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
17037 ;;
17038esac
17039
17040
17041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
17042$as_echo_n "checking whether stat accepts an empty string... " >&6; }
17043if ${ac_cv_func_stat_empty_string_bug+:} false; then :
17044  $as_echo_n "(cached) " >&6
17045else
17046  if test "$cross_compiling" = yes; then :
17047  ac_cv_func_stat_empty_string_bug=yes
17048else
17049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17050/* end confdefs.h.  */
17051$ac_includes_default
17052int
17053main ()
17054{
17055struct stat sbuf;
17056  return stat ("", &sbuf) == 0;
17057  ;
17058  return 0;
17059}
17060_ACEOF
17061if ac_fn_c_try_run "$LINENO"; then :
17062  ac_cv_func_stat_empty_string_bug=no
17063else
17064  ac_cv_func_stat_empty_string_bug=yes
17065fi
17066rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17067  conftest.$ac_objext conftest.beam conftest.$ac_ext
17068fi
17069
17070fi
17071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
17072$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
17073if test $ac_cv_func_stat_empty_string_bug = yes; then
17074  case " $LIBOBJS " in
17075  *" stat.$ac_objext "* ) ;;
17076  *) LIBOBJS="$LIBOBJS stat.$ac_objext"
17077 ;;
17078esac
17079
17080
17081cat >>confdefs.h <<_ACEOF
17082#define HAVE_STAT_EMPTY_STRING_BUG 1
17083_ACEOF
17084
17085fi
17086
17087for ac_func in strftime
17088do :
17089  ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
17090if test "x$ac_cv_func_strftime" = xyes; then :
17091  cat >>confdefs.h <<_ACEOF
17092#define HAVE_STRFTIME 1
17093_ACEOF
17094
17095else
17096  # strftime is in -lintl on SCO UNIX.
17097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
17098$as_echo_n "checking for strftime in -lintl... " >&6; }
17099if ${ac_cv_lib_intl_strftime+:} false; then :
17100  $as_echo_n "(cached) " >&6
17101else
17102  ac_check_lib_save_LIBS=$LIBS
17103LIBS="-lintl  $LIBS"
17104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17105/* end confdefs.h.  */
17106
17107/* Override any GCC internal prototype to avoid an error.
17108   Use char because int might match the return type of a GCC
17109   builtin and then its argument prototype would still apply.  */
17110#ifdef __cplusplus
17111extern "C"
17112#endif
17113char strftime ();
17114int
17115main ()
17116{
17117return strftime ();
17118  ;
17119  return 0;
17120}
17121_ACEOF
17122if ac_fn_c_try_link "$LINENO"; then :
17123  ac_cv_lib_intl_strftime=yes
17124else
17125  ac_cv_lib_intl_strftime=no
17126fi
17127rm -f core conftest.err conftest.$ac_objext \
17128    conftest$ac_exeext conftest.$ac_ext
17129LIBS=$ac_check_lib_save_LIBS
17130fi
17131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
17132$as_echo "$ac_cv_lib_intl_strftime" >&6; }
17133if test "x$ac_cv_lib_intl_strftime" = xyes; then :
17134  $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
17135
17136LIBS="-lintl $LIBS"
17137fi
17138
17139fi
17140done
17141
17142for ac_func in sqrt strcasecmp strerror strncasecmp strstr strerror
17143do :
17144  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17145ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17146if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17147  cat >>confdefs.h <<_ACEOF
17148#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17149_ACEOF
17150
17151fi
17152done
17153
17154
17155# gcov support
17156# Check whether --enable-gcov was given.
17157if test "${enable_gcov+set}" = set; then :
17158  enableval=$enable_gcov;
17159fi
17160
17161if test "x$enable_gcov" = "xyes"; then
17162        CFLAGS=$CFLAGS" -fprofile-arcs -ftest-coverage -g"
17163    GCOV_FLAGS="-lgcov"
17164fi
17165
17166ac_config_files="$ac_config_files Makefile headers/Makefile src/Makefile test/Makefile test/sql_stmt_tests/Makefile test/sql_stmt_security_tests/Makefile tools/Makefile examples/Makefile Doxyfile rasterlite2.pc"
17167
17168
17169# exporting the TARGET_CPU string
17170rl2_cpu=`$CC -dumpmachine`
17171cat >>confdefs.h <<_ACEOF
17172#define TARGET_CPU "$rl2_cpu"
17173_ACEOF
17174
17175
17176# Checks for installed libraries
17177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateInit_ in -lz" >&5
17178$as_echo_n "checking for inflateInit_ in -lz... " >&6; }
17179if ${ac_cv_lib_z_inflateInit_+:} false; then :
17180  $as_echo_n "(cached) " >&6
17181else
17182  ac_check_lib_save_LIBS=$LIBS
17183LIBS="-lz -lm $LIBS"
17184cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17185/* end confdefs.h.  */
17186
17187/* Override any GCC internal prototype to avoid an error.
17188   Use char because int might match the return type of a GCC
17189   builtin and then its argument prototype would still apply.  */
17190#ifdef __cplusplus
17191extern "C"
17192#endif
17193char inflateInit_ ();
17194int
17195main ()
17196{
17197return inflateInit_ ();
17198  ;
17199  return 0;
17200}
17201_ACEOF
17202if ac_fn_c_try_link "$LINENO"; then :
17203  ac_cv_lib_z_inflateInit_=yes
17204else
17205  ac_cv_lib_z_inflateInit_=no
17206fi
17207rm -f core conftest.err conftest.$ac_objext \
17208    conftest$ac_exeext conftest.$ac_ext
17209LIBS=$ac_check_lib_save_LIBS
17210fi
17211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateInit_" >&5
17212$as_echo "$ac_cv_lib_z_inflateInit_" >&6; }
17213if test "x$ac_cv_lib_z_inflateInit_" = xyes; then :
17214  cat >>confdefs.h <<_ACEOF
17215#define HAVE_LIBZ 1
17216_ACEOF
17217
17218  LIBS="-lz $LIBS"
17219
17220else
17221  as_fn_error $? "'libz' is required but it doesn't seems to be installed on this system." "$LINENO" 5
17222fi
17223
17224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_start_compress in -ljpeg" >&5
17225$as_echo_n "checking for jpeg_start_compress in -ljpeg... " >&6; }
17226if ${ac_cv_lib_jpeg_jpeg_start_compress+:} false; then :
17227  $as_echo_n "(cached) " >&6
17228else
17229  ac_check_lib_save_LIBS=$LIBS
17230LIBS="-ljpeg -lm $LIBS"
17231cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17232/* end confdefs.h.  */
17233
17234/* Override any GCC internal prototype to avoid an error.
17235   Use char because int might match the return type of a GCC
17236   builtin and then its argument prototype would still apply.  */
17237#ifdef __cplusplus
17238extern "C"
17239#endif
17240char jpeg_start_compress ();
17241int
17242main ()
17243{
17244return jpeg_start_compress ();
17245  ;
17246  return 0;
17247}
17248_ACEOF
17249if ac_fn_c_try_link "$LINENO"; then :
17250  ac_cv_lib_jpeg_jpeg_start_compress=yes
17251else
17252  ac_cv_lib_jpeg_jpeg_start_compress=no
17253fi
17254rm -f core conftest.err conftest.$ac_objext \
17255    conftest$ac_exeext conftest.$ac_ext
17256LIBS=$ac_check_lib_save_LIBS
17257fi
17258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_start_compress" >&5
17259$as_echo "$ac_cv_lib_jpeg_jpeg_start_compress" >&6; }
17260if test "x$ac_cv_lib_jpeg_jpeg_start_compress" = xyes; then :
17261  cat >>confdefs.h <<_ACEOF
17262#define HAVE_LIBJPEG 1
17263_ACEOF
17264
17265  LIBS="-ljpeg $LIBS"
17266
17267else
17268  as_fn_error $? "'libjpeg' is required but it doesn't seems to be installed on this system." "$LINENO" 5
17269fi
17270
17271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifSlurp in -lgif" >&5
17272$as_echo_n "checking for DGifSlurp in -lgif... " >&6; }
17273if ${ac_cv_lib_gif_DGifSlurp+:} false; then :
17274  $as_echo_n "(cached) " >&6
17275else
17276  ac_check_lib_save_LIBS=$LIBS
17277LIBS="-lgif -lm $LIBS"
17278cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17279/* end confdefs.h.  */
17280
17281/* Override any GCC internal prototype to avoid an error.
17282   Use char because int might match the return type of a GCC
17283   builtin and then its argument prototype would still apply.  */
17284#ifdef __cplusplus
17285extern "C"
17286#endif
17287char DGifSlurp ();
17288int
17289main ()
17290{
17291return DGifSlurp ();
17292  ;
17293  return 0;
17294}
17295_ACEOF
17296if ac_fn_c_try_link "$LINENO"; then :
17297  ac_cv_lib_gif_DGifSlurp=yes
17298else
17299  ac_cv_lib_gif_DGifSlurp=no
17300fi
17301rm -f core conftest.err conftest.$ac_objext \
17302    conftest$ac_exeext conftest.$ac_ext
17303LIBS=$ac_check_lib_save_LIBS
17304fi
17305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifSlurp" >&5
17306$as_echo "$ac_cv_lib_gif_DGifSlurp" >&6; }
17307if test "x$ac_cv_lib_gif_DGifSlurp" = xyes; then :
17308  cat >>confdefs.h <<_ACEOF
17309#define HAVE_LIBGIF 1
17310_ACEOF
17311
17312  LIBS="-lgif $LIBS"
17313
17314else
17315  as_fn_error $? "'libpng' is required but it doesn't seems to be installed on this system." "$LINENO" 5
17316fi
17317
17318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
17319$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
17320if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
17321  $as_echo_n "(cached) " >&6
17322else
17323  ac_check_lib_save_LIBS=$LIBS
17324LIBS="-ltiff -lm $LIBS"
17325cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17326/* end confdefs.h.  */
17327
17328/* Override any GCC internal prototype to avoid an error.
17329   Use char because int might match the return type of a GCC
17330   builtin and then its argument prototype would still apply.  */
17331#ifdef __cplusplus
17332extern "C"
17333#endif
17334char TIFFClientOpen ();
17335int
17336main ()
17337{
17338return TIFFClientOpen ();
17339  ;
17340  return 0;
17341}
17342_ACEOF
17343if ac_fn_c_try_link "$LINENO"; then :
17344  ac_cv_lib_tiff_TIFFClientOpen=yes
17345else
17346  ac_cv_lib_tiff_TIFFClientOpen=no
17347fi
17348rm -f core conftest.err conftest.$ac_objext \
17349    conftest$ac_exeext conftest.$ac_ext
17350LIBS=$ac_check_lib_save_LIBS
17351fi
17352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
17353$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
17354if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
17355  cat >>confdefs.h <<_ACEOF
17356#define HAVE_LIBTIFF 1
17357_ACEOF
17358
17359  LIBS="-ltiff $LIBS"
17360
17361else
17362  as_fn_error $? "'libtiff' is required but it doesn't seems to be installed on this system." "$LINENO" 5
17363fi
17364
17365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTIFSetFromProj4 in -lgeotiff" >&5
17366$as_echo_n "checking for GTIFSetFromProj4 in -lgeotiff... " >&6; }
17367if ${ac_cv_lib_geotiff_GTIFSetFromProj4+:} false; then :
17368  $as_echo_n "(cached) " >&6
17369else
17370  ac_check_lib_save_LIBS=$LIBS
17371LIBS="-lgeotiff -lm $LIBS"
17372cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17373/* end confdefs.h.  */
17374
17375/* Override any GCC internal prototype to avoid an error.
17376   Use char because int might match the return type of a GCC
17377   builtin and then its argument prototype would still apply.  */
17378#ifdef __cplusplus
17379extern "C"
17380#endif
17381char GTIFSetFromProj4 ();
17382int
17383main ()
17384{
17385return GTIFSetFromProj4 ();
17386  ;
17387  return 0;
17388}
17389_ACEOF
17390if ac_fn_c_try_link "$LINENO"; then :
17391  ac_cv_lib_geotiff_GTIFSetFromProj4=yes
17392else
17393  ac_cv_lib_geotiff_GTIFSetFromProj4=no
17394fi
17395rm -f core conftest.err conftest.$ac_objext \
17396    conftest$ac_exeext conftest.$ac_ext
17397LIBS=$ac_check_lib_save_LIBS
17398fi
17399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_geotiff_GTIFSetFromProj4" >&5
17400$as_echo "$ac_cv_lib_geotiff_GTIFSetFromProj4" >&6; }
17401if test "x$ac_cv_lib_geotiff_GTIFSetFromProj4" = xyes; then :
17402  cat >>confdefs.h <<_ACEOF
17403#define HAVE_LIBGEOTIFF 1
17404_ACEOF
17405
17406  LIBS="-lgeotiff $LIBS"
17407
17408else
17409  as_fn_error $? "'libgeotiff' >= v.1.2.5 is required but it doesn't seems to be installed on this system." "$LINENO" 5
17410fi
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
17421	if test -n "$ac_tool_prefix"; then
17422  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17423set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
17424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17425$as_echo_n "checking for $ac_word... " >&6; }
17426if ${ac_cv_path_PKG_CONFIG+:} false; then :
17427  $as_echo_n "(cached) " >&6
17428else
17429  case $PKG_CONFIG in
17430  [\\/]* | ?:[\\/]*)
17431  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17432  ;;
17433  *)
17434  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17435for as_dir in $PATH
17436do
17437  IFS=$as_save_IFS
17438  test -z "$as_dir" && as_dir=.
17439    for ac_exec_ext in '' $ac_executable_extensions; do
17440  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17441    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17442    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17443    break 2
17444  fi
17445done
17446  done
17447IFS=$as_save_IFS
17448
17449  ;;
17450esac
17451fi
17452PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17453if test -n "$PKG_CONFIG"; then
17454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17455$as_echo "$PKG_CONFIG" >&6; }
17456else
17457  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17458$as_echo "no" >&6; }
17459fi
17460
17461
17462fi
17463if test -z "$ac_cv_path_PKG_CONFIG"; then
17464  ac_pt_PKG_CONFIG=$PKG_CONFIG
17465  # Extract the first word of "pkg-config", so it can be a program name with args.
17466set dummy pkg-config; ac_word=$2
17467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17468$as_echo_n "checking for $ac_word... " >&6; }
17469if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
17470  $as_echo_n "(cached) " >&6
17471else
17472  case $ac_pt_PKG_CONFIG in
17473  [\\/]* | ?:[\\/]*)
17474  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
17475  ;;
17476  *)
17477  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17478for as_dir in $PATH
17479do
17480  IFS=$as_save_IFS
17481  test -z "$as_dir" && as_dir=.
17482    for ac_exec_ext in '' $ac_executable_extensions; do
17483  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17484    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17485    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17486    break 2
17487  fi
17488done
17489  done
17490IFS=$as_save_IFS
17491
17492  ;;
17493esac
17494fi
17495ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
17496if test -n "$ac_pt_PKG_CONFIG"; then
17497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
17498$as_echo "$ac_pt_PKG_CONFIG" >&6; }
17499else
17500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17501$as_echo "no" >&6; }
17502fi
17503
17504  if test "x$ac_pt_PKG_CONFIG" = x; then
17505    PKG_CONFIG=""
17506  else
17507    case $cross_compiling:$ac_tool_warned in
17508yes:)
17509{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17510$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17511ac_tool_warned=yes ;;
17512esac
17513    PKG_CONFIG=$ac_pt_PKG_CONFIG
17514  fi
17515else
17516  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
17517fi
17518
17519fi
17520if test -n "$PKG_CONFIG"; then
17521	_pkg_min_version=0.9.0
17522	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
17523$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
17524	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
17525		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17526$as_echo "yes" >&6; }
17527	else
17528		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17529$as_echo "no" >&6; }
17530		PKG_CONFIG=""
17531	fi
17532fi
17533
17534pkg_failed=no
17535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG" >&5
17536$as_echo_n "checking for LIBPNG... " >&6; }
17537
17538if test -n "$LIBPNG_CFLAGS"; then
17539    pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
17540 elif test -n "$PKG_CONFIG"; then
17541    if test -n "$PKG_CONFIG" && \
17542    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5
17543  ($PKG_CONFIG --exists --print-errors "libpng") 2>&5
17544  ac_status=$?
17545  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17546  test $ac_status = 0; }; then
17547  pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null`
17548		      test "x$?" != "x0" && pkg_failed=yes
17549else
17550  pkg_failed=yes
17551fi
17552 else
17553    pkg_failed=untried
17554fi
17555if test -n "$LIBPNG_LIBS"; then
17556    pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
17557 elif test -n "$PKG_CONFIG"; then
17558    if test -n "$PKG_CONFIG" && \
17559    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5
17560  ($PKG_CONFIG --exists --print-errors "libpng") 2>&5
17561  ac_status=$?
17562  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17563  test $ac_status = 0; }; then
17564  pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null`
17565		      test "x$?" != "x0" && pkg_failed=yes
17566else
17567  pkg_failed=yes
17568fi
17569 else
17570    pkg_failed=untried
17571fi
17572
17573
17574
17575if test $pkg_failed = yes; then
17576   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17577$as_echo "no" >&6; }
17578
17579if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17580        _pkg_short_errors_supported=yes
17581else
17582        _pkg_short_errors_supported=no
17583fi
17584        if test $_pkg_short_errors_supported = yes; then
17585	        LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpng" 2>&1`
17586        else
17587	        LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpng" 2>&1`
17588        fi
17589	# Put the nasty error message in config.log where it belongs
17590	echo "$LIBPNG_PKG_ERRORS" >&5
17591
17592	as_fn_error $? "'libpng' is required but it doesn't seems to be installed on this system." "$LINENO" 5
17593elif test $pkg_failed = untried; then
17594     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17595$as_echo "no" >&6; }
17596	as_fn_error $? "'libpng' is required but it doesn't seems to be installed on this system." "$LINENO" 5
17597else
17598	LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
17599	LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
17600        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17601$as_echo "yes" >&6; }
17602
17603fi
17604
17605
17606
17607
17608pkg_failed=no
17609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBWEBP" >&5
17610$as_echo_n "checking for LIBWEBP... " >&6; }
17611
17612if test -n "$LIBWEBP_CFLAGS"; then
17613    pkg_cv_LIBWEBP_CFLAGS="$LIBWEBP_CFLAGS"
17614 elif test -n "$PKG_CONFIG"; then
17615    if test -n "$PKG_CONFIG" && \
17616    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwebp\""; } >&5
17617  ($PKG_CONFIG --exists --print-errors "libwebp") 2>&5
17618  ac_status=$?
17619  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17620  test $ac_status = 0; }; then
17621  pkg_cv_LIBWEBP_CFLAGS=`$PKG_CONFIG --cflags "libwebp" 2>/dev/null`
17622		      test "x$?" != "x0" && pkg_failed=yes
17623else
17624  pkg_failed=yes
17625fi
17626 else
17627    pkg_failed=untried
17628fi
17629if test -n "$LIBWEBP_LIBS"; then
17630    pkg_cv_LIBWEBP_LIBS="$LIBWEBP_LIBS"
17631 elif test -n "$PKG_CONFIG"; then
17632    if test -n "$PKG_CONFIG" && \
17633    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwebp\""; } >&5
17634  ($PKG_CONFIG --exists --print-errors "libwebp") 2>&5
17635  ac_status=$?
17636  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17637  test $ac_status = 0; }; then
17638  pkg_cv_LIBWEBP_LIBS=`$PKG_CONFIG --libs "libwebp" 2>/dev/null`
17639		      test "x$?" != "x0" && pkg_failed=yes
17640else
17641  pkg_failed=yes
17642fi
17643 else
17644    pkg_failed=untried
17645fi
17646
17647
17648
17649if test $pkg_failed = yes; then
17650   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17651$as_echo "no" >&6; }
17652
17653if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17654        _pkg_short_errors_supported=yes
17655else
17656        _pkg_short_errors_supported=no
17657fi
17658        if test $_pkg_short_errors_supported = yes; then
17659	        LIBWEBP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libwebp" 2>&1`
17660        else
17661	        LIBWEBP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libwebp" 2>&1`
17662        fi
17663	# Put the nasty error message in config.log where it belongs
17664	echo "$LIBWEBP_PKG_ERRORS" >&5
17665
17666	as_fn_error $? "'libwebp' is required but it doesn't seems to be installed on this system." "$LINENO" 5
17667elif test $pkg_failed = untried; then
17668     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17669$as_echo "no" >&6; }
17670	as_fn_error $? "'libwebp' is required but it doesn't seems to be installed on this system." "$LINENO" 5
17671else
17672	LIBWEBP_CFLAGS=$pkg_cv_LIBWEBP_CFLAGS
17673	LIBWEBP_LIBS=$pkg_cv_LIBWEBP_LIBS
17674        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17675$as_echo "yes" >&6; }
17676
17677fi
17678
17679
17680
17681
17682pkg_failed=no
17683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBLZMA" >&5
17684$as_echo_n "checking for LIBLZMA... " >&6; }
17685
17686if test -n "$LIBLZMA_CFLAGS"; then
17687    pkg_cv_LIBLZMA_CFLAGS="$LIBLZMA_CFLAGS"
17688 elif test -n "$PKG_CONFIG"; then
17689    if test -n "$PKG_CONFIG" && \
17690    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma\""; } >&5
17691  ($PKG_CONFIG --exists --print-errors "liblzma") 2>&5
17692  ac_status=$?
17693  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17694  test $ac_status = 0; }; then
17695  pkg_cv_LIBLZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma" 2>/dev/null`
17696		      test "x$?" != "x0" && pkg_failed=yes
17697else
17698  pkg_failed=yes
17699fi
17700 else
17701    pkg_failed=untried
17702fi
17703if test -n "$LIBLZMA_LIBS"; then
17704    pkg_cv_LIBLZMA_LIBS="$LIBLZMA_LIBS"
17705 elif test -n "$PKG_CONFIG"; then
17706    if test -n "$PKG_CONFIG" && \
17707    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma\""; } >&5
17708  ($PKG_CONFIG --exists --print-errors "liblzma") 2>&5
17709  ac_status=$?
17710  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17711  test $ac_status = 0; }; then
17712  pkg_cv_LIBLZMA_LIBS=`$PKG_CONFIG --libs "liblzma" 2>/dev/null`
17713		      test "x$?" != "x0" && pkg_failed=yes
17714else
17715  pkg_failed=yes
17716fi
17717 else
17718    pkg_failed=untried
17719fi
17720
17721
17722
17723if test $pkg_failed = yes; then
17724   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17725$as_echo "no" >&6; }
17726
17727if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17728        _pkg_short_errors_supported=yes
17729else
17730        _pkg_short_errors_supported=no
17731fi
17732        if test $_pkg_short_errors_supported = yes; then
17733	        LIBLZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblzma" 2>&1`
17734        else
17735	        LIBLZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liblzma" 2>&1`
17736        fi
17737	# Put the nasty error message in config.log where it belongs
17738	echo "$LIBLZMA_PKG_ERRORS" >&5
17739
17740	as_fn_error $? "'liblzma' is required but it doesn't seems to be installed on this system." "$LINENO" 5
17741elif test $pkg_failed = untried; then
17742     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17743$as_echo "no" >&6; }
17744	as_fn_error $? "'liblzma' is required but it doesn't seems to be installed on this system." "$LINENO" 5
17745else
17746	LIBLZMA_CFLAGS=$pkg_cv_LIBLZMA_CFLAGS
17747	LIBLZMA_LIBS=$pkg_cv_LIBLZMA_LIBS
17748        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17749$as_echo "yes" >&6; }
17750
17751fi
17752
17753
17754
17755
17756pkg_failed=no
17757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSPATIALITE" >&5
17758$as_echo_n "checking for LIBSPATIALITE... " >&6; }
17759
17760if test -n "$LIBSPATIALITE_CFLAGS"; then
17761    pkg_cv_LIBSPATIALITE_CFLAGS="$LIBSPATIALITE_CFLAGS"
17762 elif test -n "$PKG_CONFIG"; then
17763    if test -n "$PKG_CONFIG" && \
17764    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"spatialite\""; } >&5
17765  ($PKG_CONFIG --exists --print-errors "spatialite") 2>&5
17766  ac_status=$?
17767  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17768  test $ac_status = 0; }; then
17769  pkg_cv_LIBSPATIALITE_CFLAGS=`$PKG_CONFIG --cflags "spatialite" 2>/dev/null`
17770		      test "x$?" != "x0" && pkg_failed=yes
17771else
17772  pkg_failed=yes
17773fi
17774 else
17775    pkg_failed=untried
17776fi
17777if test -n "$LIBSPATIALITE_LIBS"; then
17778    pkg_cv_LIBSPATIALITE_LIBS="$LIBSPATIALITE_LIBS"
17779 elif test -n "$PKG_CONFIG"; then
17780    if test -n "$PKG_CONFIG" && \
17781    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"spatialite\""; } >&5
17782  ($PKG_CONFIG --exists --print-errors "spatialite") 2>&5
17783  ac_status=$?
17784  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17785  test $ac_status = 0; }; then
17786  pkg_cv_LIBSPATIALITE_LIBS=`$PKG_CONFIG --libs "spatialite" 2>/dev/null`
17787		      test "x$?" != "x0" && pkg_failed=yes
17788else
17789  pkg_failed=yes
17790fi
17791 else
17792    pkg_failed=untried
17793fi
17794
17795
17796
17797if test $pkg_failed = yes; then
17798   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17799$as_echo "no" >&6; }
17800
17801if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17802        _pkg_short_errors_supported=yes
17803else
17804        _pkg_short_errors_supported=no
17805fi
17806        if test $_pkg_short_errors_supported = yes; then
17807	        LIBSPATIALITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "spatialite" 2>&1`
17808        else
17809	        LIBSPATIALITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "spatialite" 2>&1`
17810        fi
17811	# Put the nasty error message in config.log where it belongs
17812	echo "$LIBSPATIALITE_PKG_ERRORS" >&5
17813
17814	as_fn_error $? "'libspatialite' is required but it doesn't seem to be installed on this system." "$LINENO" 5
17815elif test $pkg_failed = untried; then
17816     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17817$as_echo "no" >&6; }
17818	as_fn_error $? "'libspatialite' is required but it doesn't seem to be installed on this system." "$LINENO" 5
17819else
17820	LIBSPATIALITE_CFLAGS=$pkg_cv_LIBSPATIALITE_CFLAGS
17821	LIBSPATIALITE_LIBS=$pkg_cv_LIBSPATIALITE_LIBS
17822        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17823$as_echo "yes" >&6; }
17824
17825fi
17826
17827
17828
17829
17830pkg_failed=no
17831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBCAIRO" >&5
17832$as_echo_n "checking for LIBCAIRO... " >&6; }
17833
17834if test -n "$LIBCAIRO_CFLAGS"; then
17835    pkg_cv_LIBCAIRO_CFLAGS="$LIBCAIRO_CFLAGS"
17836 elif test -n "$PKG_CONFIG"; then
17837    if test -n "$PKG_CONFIG" && \
17838    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo\""; } >&5
17839  ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
17840  ac_status=$?
17841  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17842  test $ac_status = 0; }; then
17843  pkg_cv_LIBCAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
17844		      test "x$?" != "x0" && pkg_failed=yes
17845else
17846  pkg_failed=yes
17847fi
17848 else
17849    pkg_failed=untried
17850fi
17851if test -n "$LIBCAIRO_LIBS"; then
17852    pkg_cv_LIBCAIRO_LIBS="$LIBCAIRO_LIBS"
17853 elif test -n "$PKG_CONFIG"; then
17854    if test -n "$PKG_CONFIG" && \
17855    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo\""; } >&5
17856  ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
17857  ac_status=$?
17858  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17859  test $ac_status = 0; }; then
17860  pkg_cv_LIBCAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
17861		      test "x$?" != "x0" && pkg_failed=yes
17862else
17863  pkg_failed=yes
17864fi
17865 else
17866    pkg_failed=untried
17867fi
17868
17869
17870
17871if test $pkg_failed = yes; then
17872   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17873$as_echo "no" >&6; }
17874
17875if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17876        _pkg_short_errors_supported=yes
17877else
17878        _pkg_short_errors_supported=no
17879fi
17880        if test $_pkg_short_errors_supported = yes; then
17881	        LIBCAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo" 2>&1`
17882        else
17883	        LIBCAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo" 2>&1`
17884        fi
17885	# Put the nasty error message in config.log where it belongs
17886	echo "$LIBCAIRO_PKG_ERRORS" >&5
17887
17888	as_fn_error $? "'libcairo' is required but it doesn't seems to be installed on this system." "$LINENO" 5
17889elif test $pkg_failed = untried; then
17890     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17891$as_echo "no" >&6; }
17892	as_fn_error $? "'libcairo' is required but it doesn't seems to be installed on this system." "$LINENO" 5
17893else
17894	LIBCAIRO_CFLAGS=$pkg_cv_LIBCAIRO_CFLAGS
17895	LIBCAIRO_LIBS=$pkg_cv_LIBCAIRO_LIBS
17896        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17897$as_echo "yes" >&6; }
17898
17899fi
17900
17901
17902
17903
17904pkg_failed=no
17905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBCURL" >&5
17906$as_echo_n "checking for LIBCURL... " >&6; }
17907
17908if test -n "$LIBCURL_CFLAGS"; then
17909    pkg_cv_LIBCURL_CFLAGS="$LIBCURL_CFLAGS"
17910 elif test -n "$PKG_CONFIG"; then
17911    if test -n "$PKG_CONFIG" && \
17912    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
17913  ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
17914  ac_status=$?
17915  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17916  test $ac_status = 0; }; then
17917  pkg_cv_LIBCURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null`
17918		      test "x$?" != "x0" && pkg_failed=yes
17919else
17920  pkg_failed=yes
17921fi
17922 else
17923    pkg_failed=untried
17924fi
17925if test -n "$LIBCURL_LIBS"; then
17926    pkg_cv_LIBCURL_LIBS="$LIBCURL_LIBS"
17927 elif test -n "$PKG_CONFIG"; then
17928    if test -n "$PKG_CONFIG" && \
17929    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
17930  ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
17931  ac_status=$?
17932  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17933  test $ac_status = 0; }; then
17934  pkg_cv_LIBCURL_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null`
17935		      test "x$?" != "x0" && pkg_failed=yes
17936else
17937  pkg_failed=yes
17938fi
17939 else
17940    pkg_failed=untried
17941fi
17942
17943
17944
17945if test $pkg_failed = yes; then
17946   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17947$as_echo "no" >&6; }
17948
17949if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17950        _pkg_short_errors_supported=yes
17951else
17952        _pkg_short_errors_supported=no
17953fi
17954        if test $_pkg_short_errors_supported = yes; then
17955	        LIBCURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl" 2>&1`
17956        else
17957	        LIBCURL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl" 2>&1`
17958        fi
17959	# Put the nasty error message in config.log where it belongs
17960	echo "$LIBCURL_PKG_ERRORS" >&5
17961
17962	as_fn_error $? "'libcurl' is required but it doesn't seem to be installed on this system." "$LINENO" 5
17963elif test $pkg_failed = untried; then
17964     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17965$as_echo "no" >&6; }
17966	as_fn_error $? "'libcurl' is required but it doesn't seem to be installed on this system." "$LINENO" 5
17967else
17968	LIBCURL_CFLAGS=$pkg_cv_LIBCURL_CFLAGS
17969	LIBCURL_LIBS=$pkg_cv_LIBCURL_LIBS
17970        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17971$as_echo "yes" >&6; }
17972
17973fi
17974
17975
17976
17977
17978pkg_failed=no
17979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBXML2" >&5
17980$as_echo_n "checking for LIBXML2... " >&6; }
17981
17982if test -n "$LIBXML2_CFLAGS"; then
17983    pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS"
17984 elif test -n "$PKG_CONFIG"; then
17985    if test -n "$PKG_CONFIG" && \
17986    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
17987  ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
17988  ac_status=$?
17989  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17990  test $ac_status = 0; }; then
17991  pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
17992		      test "x$?" != "x0" && pkg_failed=yes
17993else
17994  pkg_failed=yes
17995fi
17996 else
17997    pkg_failed=untried
17998fi
17999if test -n "$LIBXML2_LIBS"; then
18000    pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS"
18001 elif test -n "$PKG_CONFIG"; then
18002    if test -n "$PKG_CONFIG" && \
18003    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
18004  ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
18005  ac_status=$?
18006  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18007  test $ac_status = 0; }; then
18008  pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
18009		      test "x$?" != "x0" && pkg_failed=yes
18010else
18011  pkg_failed=yes
18012fi
18013 else
18014    pkg_failed=untried
18015fi
18016
18017
18018
18019if test $pkg_failed = yes; then
18020   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18021$as_echo "no" >&6; }
18022
18023if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18024        _pkg_short_errors_supported=yes
18025else
18026        _pkg_short_errors_supported=no
18027fi
18028        if test $_pkg_short_errors_supported = yes; then
18029	        LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0" 2>&1`
18030        else
18031	        LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0" 2>&1`
18032        fi
18033	# Put the nasty error message in config.log where it belongs
18034	echo "$LIBXML2_PKG_ERRORS" >&5
18035
18036	as_fn_error $? "'libxml2' is required but it doesn't seem to be installed on this system." "$LINENO" 5
18037elif test $pkg_failed = untried; then
18038     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18039$as_echo "no" >&6; }
18040	as_fn_error $? "'libxml2' is required but it doesn't seem to be installed on this system." "$LINENO" 5
18041else
18042	LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS
18043	LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS
18044        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18045$as_echo "yes" >&6; }
18046
18047fi
18048
18049
18050
18051# Checking for MinGW
18052 if test "$target_alias" = "mingw32"; then
18053  MINGW_TRUE=
18054  MINGW_FALSE='#'
18055else
18056  MINGW_TRUE='#'
18057  MINGW_FALSE=
18058fi
18059
18060
18061cat >confcache <<\_ACEOF
18062# This file is a shell script that caches the results of configure
18063# tests run on this system so they can be shared between configure
18064# scripts and configure runs, see configure's option --config-cache.
18065# It is not useful on other systems.  If it contains results you don't
18066# want to keep, you may remove or edit it.
18067#
18068# config.status only pays attention to the cache file if you give it
18069# the --recheck option to rerun configure.
18070#
18071# `ac_cv_env_foo' variables (set or unset) will be overridden when
18072# loading this file, other *unset* `ac_cv_foo' will be assigned the
18073# following values.
18074
18075_ACEOF
18076
18077# The following way of writing the cache mishandles newlines in values,
18078# but we know of no workaround that is simple, portable, and efficient.
18079# So, we kill variables containing newlines.
18080# Ultrix sh set writes to stderr and can't be redirected directly,
18081# and sets the high bit in the cache file unless we assign to the vars.
18082(
18083  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18084    eval ac_val=\$$ac_var
18085    case $ac_val in #(
18086    *${as_nl}*)
18087      case $ac_var in #(
18088      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18089$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18090      esac
18091      case $ac_var in #(
18092      _ | IFS | as_nl) ;; #(
18093      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18094      *) { eval $ac_var=; unset $ac_var;} ;;
18095      esac ;;
18096    esac
18097  done
18098
18099  (set) 2>&1 |
18100    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18101    *${as_nl}ac_space=\ *)
18102      # `set' does not quote correctly, so add quotes: double-quote
18103      # substitution turns \\\\ into \\, and sed turns \\ into \.
18104      sed -n \
18105	"s/'/'\\\\''/g;
18106	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18107      ;; #(
18108    *)
18109      # `set' quotes correctly as required by POSIX, so do not add quotes.
18110      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18111      ;;
18112    esac |
18113    sort
18114) |
18115  sed '
18116     /^ac_cv_env_/b end
18117     t clear
18118     :clear
18119     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18120     t end
18121     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18122     :end' >>confcache
18123if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18124  if test -w "$cache_file"; then
18125    if test "x$cache_file" != "x/dev/null"; then
18126      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18127$as_echo "$as_me: updating cache $cache_file" >&6;}
18128      if test ! -f "$cache_file" || test -h "$cache_file"; then
18129	cat confcache >"$cache_file"
18130      else
18131        case $cache_file in #(
18132        */* | ?:*)
18133	  mv -f confcache "$cache_file"$$ &&
18134	  mv -f "$cache_file"$$ "$cache_file" ;; #(
18135        *)
18136	  mv -f confcache "$cache_file" ;;
18137	esac
18138      fi
18139    fi
18140  else
18141    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18142$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18143  fi
18144fi
18145rm -f confcache
18146
18147test "x$prefix" = xNONE && prefix=$ac_default_prefix
18148# Let make expand exec_prefix.
18149test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18150
18151DEFS=-DHAVE_CONFIG_H
18152
18153ac_libobjs=
18154ac_ltlibobjs=
18155for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18156  # 1. Remove the extension, and $U if already installed.
18157  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18158  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18159  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18160  #    will be set to the directory where LIBOBJS objects are built.
18161  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18162  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18163done
18164LIBOBJS=$ac_libobjs
18165
18166LTLIBOBJS=$ac_ltlibobjs
18167
18168
18169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18170$as_echo_n "checking that generated files are newer than configure... " >&6; }
18171   if test -n "$am_sleep_pid"; then
18172     # Hide warnings about reused PIDs.
18173     wait $am_sleep_pid 2>/dev/null
18174   fi
18175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18176$as_echo "done" >&6; }
18177 if test -n "$EXEEXT"; then
18178  am__EXEEXT_TRUE=
18179  am__EXEEXT_FALSE='#'
18180else
18181  am__EXEEXT_TRUE='#'
18182  am__EXEEXT_FALSE=
18183fi
18184
18185if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18186  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18187Usually this means the macro was only invoked conditionally." "$LINENO" 5
18188fi
18189if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18190  as_fn_error $? "conditional \"AMDEP\" was never defined.
18191Usually this means the macro was only invoked conditionally." "$LINENO" 5
18192fi
18193if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18194  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18195Usually this means the macro was only invoked conditionally." "$LINENO" 5
18196fi
18197if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18198  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18199Usually this means the macro was only invoked conditionally." "$LINENO" 5
18200fi
18201if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18202  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18203Usually this means the macro was only invoked conditionally." "$LINENO" 5
18204fi
18205if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
18206  as_fn_error $? "conditional \"MINGW\" was never defined.
18207Usually this means the macro was only invoked conditionally." "$LINENO" 5
18208fi
18209
18210: "${CONFIG_STATUS=./config.status}"
18211ac_write_fail=0
18212ac_clean_files_save=$ac_clean_files
18213ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18214{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18215$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18216as_write_fail=0
18217cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18218#! $SHELL
18219# Generated by $as_me.
18220# Run this file to recreate the current configuration.
18221# Compiler output produced by configure, useful for debugging
18222# configure, is in config.log if it exists.
18223
18224debug=false
18225ac_cs_recheck=false
18226ac_cs_silent=false
18227
18228SHELL=\${CONFIG_SHELL-$SHELL}
18229export SHELL
18230_ASEOF
18231cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18232## -------------------- ##
18233## M4sh Initialization. ##
18234## -------------------- ##
18235
18236# Be more Bourne compatible
18237DUALCASE=1; export DUALCASE # for MKS sh
18238if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18239  emulate sh
18240  NULLCMD=:
18241  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18242  # is contrary to our usage.  Disable this feature.
18243  alias -g '${1+"$@"}'='"$@"'
18244  setopt NO_GLOB_SUBST
18245else
18246  case `(set -o) 2>/dev/null` in #(
18247  *posix*) :
18248    set -o posix ;; #(
18249  *) :
18250     ;;
18251esac
18252fi
18253
18254
18255as_nl='
18256'
18257export as_nl
18258# Printing a long string crashes Solaris 7 /usr/bin/printf.
18259as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18260as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18261as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18262# Prefer a ksh shell builtin over an external printf program on Solaris,
18263# but without wasting forks for bash or zsh.
18264if test -z "$BASH_VERSION$ZSH_VERSION" \
18265    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18266  as_echo='print -r --'
18267  as_echo_n='print -rn --'
18268elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18269  as_echo='printf %s\n'
18270  as_echo_n='printf %s'
18271else
18272  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18273    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18274    as_echo_n='/usr/ucb/echo -n'
18275  else
18276    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18277    as_echo_n_body='eval
18278      arg=$1;
18279      case $arg in #(
18280      *"$as_nl"*)
18281	expr "X$arg" : "X\\(.*\\)$as_nl";
18282	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18283      esac;
18284      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18285    '
18286    export as_echo_n_body
18287    as_echo_n='sh -c $as_echo_n_body as_echo'
18288  fi
18289  export as_echo_body
18290  as_echo='sh -c $as_echo_body as_echo'
18291fi
18292
18293# The user is always right.
18294if test "${PATH_SEPARATOR+set}" != set; then
18295  PATH_SEPARATOR=:
18296  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18297    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18298      PATH_SEPARATOR=';'
18299  }
18300fi
18301
18302
18303# IFS
18304# We need space, tab and new line, in precisely that order.  Quoting is
18305# there to prevent editors from complaining about space-tab.
18306# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18307# splitting by setting IFS to empty value.)
18308IFS=" ""	$as_nl"
18309
18310# Find who we are.  Look in the path if we contain no directory separator.
18311as_myself=
18312case $0 in #((
18313  *[\\/]* ) as_myself=$0 ;;
18314  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18315for as_dir in $PATH
18316do
18317  IFS=$as_save_IFS
18318  test -z "$as_dir" && as_dir=.
18319    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18320  done
18321IFS=$as_save_IFS
18322
18323     ;;
18324esac
18325# We did not find ourselves, most probably we were run as `sh COMMAND'
18326# in which case we are not to be found in the path.
18327if test "x$as_myself" = x; then
18328  as_myself=$0
18329fi
18330if test ! -f "$as_myself"; then
18331  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18332  exit 1
18333fi
18334
18335# Unset variables that we do not need and which cause bugs (e.g. in
18336# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18337# suppresses any "Segmentation fault" message there.  '((' could
18338# trigger a bug in pdksh 5.2.14.
18339for as_var in BASH_ENV ENV MAIL MAILPATH
18340do eval test x\${$as_var+set} = xset \
18341  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18342done
18343PS1='$ '
18344PS2='> '
18345PS4='+ '
18346
18347# NLS nuisances.
18348LC_ALL=C
18349export LC_ALL
18350LANGUAGE=C
18351export LANGUAGE
18352
18353# CDPATH.
18354(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18355
18356
18357# as_fn_error STATUS ERROR [LINENO LOG_FD]
18358# ----------------------------------------
18359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18361# script with STATUS, using 1 if that was 0.
18362as_fn_error ()
18363{
18364  as_status=$1; test $as_status -eq 0 && as_status=1
18365  if test "$4"; then
18366    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18367    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18368  fi
18369  $as_echo "$as_me: error: $2" >&2
18370  as_fn_exit $as_status
18371} # as_fn_error
18372
18373
18374# as_fn_set_status STATUS
18375# -----------------------
18376# Set $? to STATUS, without forking.
18377as_fn_set_status ()
18378{
18379  return $1
18380} # as_fn_set_status
18381
18382# as_fn_exit STATUS
18383# -----------------
18384# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18385as_fn_exit ()
18386{
18387  set +e
18388  as_fn_set_status $1
18389  exit $1
18390} # as_fn_exit
18391
18392# as_fn_unset VAR
18393# ---------------
18394# Portably unset VAR.
18395as_fn_unset ()
18396{
18397  { eval $1=; unset $1;}
18398}
18399as_unset=as_fn_unset
18400# as_fn_append VAR VALUE
18401# ----------------------
18402# Append the text in VALUE to the end of the definition contained in VAR. Take
18403# advantage of any shell optimizations that allow amortized linear growth over
18404# repeated appends, instead of the typical quadratic growth present in naive
18405# implementations.
18406if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18407  eval 'as_fn_append ()
18408  {
18409    eval $1+=\$2
18410  }'
18411else
18412  as_fn_append ()
18413  {
18414    eval $1=\$$1\$2
18415  }
18416fi # as_fn_append
18417
18418# as_fn_arith ARG...
18419# ------------------
18420# Perform arithmetic evaluation on the ARGs, and store the result in the
18421# global $as_val. Take advantage of shells that can avoid forks. The arguments
18422# must be portable across $(()) and expr.
18423if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18424  eval 'as_fn_arith ()
18425  {
18426    as_val=$(( $* ))
18427  }'
18428else
18429  as_fn_arith ()
18430  {
18431    as_val=`expr "$@" || test $? -eq 1`
18432  }
18433fi # as_fn_arith
18434
18435
18436if expr a : '\(a\)' >/dev/null 2>&1 &&
18437   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18438  as_expr=expr
18439else
18440  as_expr=false
18441fi
18442
18443if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18444  as_basename=basename
18445else
18446  as_basename=false
18447fi
18448
18449if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18450  as_dirname=dirname
18451else
18452  as_dirname=false
18453fi
18454
18455as_me=`$as_basename -- "$0" ||
18456$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18457	 X"$0" : 'X\(//\)$' \| \
18458	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18459$as_echo X/"$0" |
18460    sed '/^.*\/\([^/][^/]*\)\/*$/{
18461	    s//\1/
18462	    q
18463	  }
18464	  /^X\/\(\/\/\)$/{
18465	    s//\1/
18466	    q
18467	  }
18468	  /^X\/\(\/\).*/{
18469	    s//\1/
18470	    q
18471	  }
18472	  s/.*/./; q'`
18473
18474# Avoid depending upon Character Ranges.
18475as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18476as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18477as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18478as_cr_digits='0123456789'
18479as_cr_alnum=$as_cr_Letters$as_cr_digits
18480
18481ECHO_C= ECHO_N= ECHO_T=
18482case `echo -n x` in #(((((
18483-n*)
18484  case `echo 'xy\c'` in
18485  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
18486  xy)  ECHO_C='\c';;
18487  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18488       ECHO_T='	';;
18489  esac;;
18490*)
18491  ECHO_N='-n';;
18492esac
18493
18494rm -f conf$$ conf$$.exe conf$$.file
18495if test -d conf$$.dir; then
18496  rm -f conf$$.dir/conf$$.file
18497else
18498  rm -f conf$$.dir
18499  mkdir conf$$.dir 2>/dev/null
18500fi
18501if (echo >conf$$.file) 2>/dev/null; then
18502  if ln -s conf$$.file conf$$ 2>/dev/null; then
18503    as_ln_s='ln -s'
18504    # ... but there are two gotchas:
18505    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18506    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18507    # In both cases, we have to default to `cp -pR'.
18508    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18509      as_ln_s='cp -pR'
18510  elif ln conf$$.file conf$$ 2>/dev/null; then
18511    as_ln_s=ln
18512  else
18513    as_ln_s='cp -pR'
18514  fi
18515else
18516  as_ln_s='cp -pR'
18517fi
18518rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18519rmdir conf$$.dir 2>/dev/null
18520
18521
18522# as_fn_mkdir_p
18523# -------------
18524# Create "$as_dir" as a directory, including parents if necessary.
18525as_fn_mkdir_p ()
18526{
18527
18528  case $as_dir in #(
18529  -*) as_dir=./$as_dir;;
18530  esac
18531  test -d "$as_dir" || eval $as_mkdir_p || {
18532    as_dirs=
18533    while :; do
18534      case $as_dir in #(
18535      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18536      *) as_qdir=$as_dir;;
18537      esac
18538      as_dirs="'$as_qdir' $as_dirs"
18539      as_dir=`$as_dirname -- "$as_dir" ||
18540$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18541	 X"$as_dir" : 'X\(//\)[^/]' \| \
18542	 X"$as_dir" : 'X\(//\)$' \| \
18543	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18544$as_echo X"$as_dir" |
18545    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18546	    s//\1/
18547	    q
18548	  }
18549	  /^X\(\/\/\)[^/].*/{
18550	    s//\1/
18551	    q
18552	  }
18553	  /^X\(\/\/\)$/{
18554	    s//\1/
18555	    q
18556	  }
18557	  /^X\(\/\).*/{
18558	    s//\1/
18559	    q
18560	  }
18561	  s/.*/./; q'`
18562      test -d "$as_dir" && break
18563    done
18564    test -z "$as_dirs" || eval "mkdir $as_dirs"
18565  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18566
18567
18568} # as_fn_mkdir_p
18569if mkdir -p . 2>/dev/null; then
18570  as_mkdir_p='mkdir -p "$as_dir"'
18571else
18572  test -d ./-p && rmdir ./-p
18573  as_mkdir_p=false
18574fi
18575
18576
18577# as_fn_executable_p FILE
18578# -----------------------
18579# Test if FILE is an executable regular file.
18580as_fn_executable_p ()
18581{
18582  test -f "$1" && test -x "$1"
18583} # as_fn_executable_p
18584as_test_x='test -x'
18585as_executable_p=as_fn_executable_p
18586
18587# Sed expression to map a string onto a valid CPP name.
18588as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18589
18590# Sed expression to map a string onto a valid variable name.
18591as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18592
18593
18594exec 6>&1
18595## ----------------------------------- ##
18596## Main body of $CONFIG_STATUS script. ##
18597## ----------------------------------- ##
18598_ASEOF
18599test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18600
18601cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18602# Save the log message, to keep $0 and so on meaningful, and to
18603# report actual input values of CONFIG_FILES etc. instead of their
18604# values after options handling.
18605ac_log="
18606This file was extended by librasterlite2 $as_me 1.0.0-rc0, which was
18607generated by GNU Autoconf 2.69.  Invocation command line was
18608
18609  CONFIG_FILES    = $CONFIG_FILES
18610  CONFIG_HEADERS  = $CONFIG_HEADERS
18611  CONFIG_LINKS    = $CONFIG_LINKS
18612  CONFIG_COMMANDS = $CONFIG_COMMANDS
18613  $ $0 $@
18614
18615on `(hostname || uname -n) 2>/dev/null | sed 1q`
18616"
18617
18618_ACEOF
18619
18620case $ac_config_files in *"
18621"*) set x $ac_config_files; shift; ac_config_files=$*;;
18622esac
18623
18624case $ac_config_headers in *"
18625"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18626esac
18627
18628
18629cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18630# Files that config.status was made for.
18631config_files="$ac_config_files"
18632config_headers="$ac_config_headers"
18633config_commands="$ac_config_commands"
18634
18635_ACEOF
18636
18637cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18638ac_cs_usage="\
18639\`$as_me' instantiates files and other configuration actions
18640from templates according to the current configuration.  Unless the files
18641and actions are specified as TAGs, all are instantiated by default.
18642
18643Usage: $0 [OPTION]... [TAG]...
18644
18645  -h, --help       print this help, then exit
18646  -V, --version    print version number and configuration settings, then exit
18647      --config     print configuration, then exit
18648  -q, --quiet, --silent
18649                   do not print progress messages
18650  -d, --debug      don't remove temporary files
18651      --recheck    update $as_me by reconfiguring in the same conditions
18652      --file=FILE[:TEMPLATE]
18653                   instantiate the configuration file FILE
18654      --header=FILE[:TEMPLATE]
18655                   instantiate the configuration header FILE
18656
18657Configuration files:
18658$config_files
18659
18660Configuration headers:
18661$config_headers
18662
18663Configuration commands:
18664$config_commands
18665
18666Report bugs to <a.furieri@lqt.it>."
18667
18668_ACEOF
18669cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18670ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18671ac_cs_version="\\
18672librasterlite2 config.status 1.0.0-rc0
18673configured by $0, generated by GNU Autoconf 2.69,
18674  with options \\"\$ac_cs_config\\"
18675
18676Copyright (C) 2012 Free Software Foundation, Inc.
18677This config.status script is free software; the Free Software Foundation
18678gives unlimited permission to copy, distribute and modify it."
18679
18680ac_pwd='$ac_pwd'
18681srcdir='$srcdir'
18682INSTALL='$INSTALL'
18683MKDIR_P='$MKDIR_P'
18684AWK='$AWK'
18685test -n "\$AWK" || AWK=awk
18686_ACEOF
18687
18688cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18689# The default lists apply if the user does not specify any file.
18690ac_need_defaults=:
18691while test $# != 0
18692do
18693  case $1 in
18694  --*=?*)
18695    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18696    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18697    ac_shift=:
18698    ;;
18699  --*=)
18700    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18701    ac_optarg=
18702    ac_shift=:
18703    ;;
18704  *)
18705    ac_option=$1
18706    ac_optarg=$2
18707    ac_shift=shift
18708    ;;
18709  esac
18710
18711  case $ac_option in
18712  # Handling of the options.
18713  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18714    ac_cs_recheck=: ;;
18715  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18716    $as_echo "$ac_cs_version"; exit ;;
18717  --config | --confi | --conf | --con | --co | --c )
18718    $as_echo "$ac_cs_config"; exit ;;
18719  --debug | --debu | --deb | --de | --d | -d )
18720    debug=: ;;
18721  --file | --fil | --fi | --f )
18722    $ac_shift
18723    case $ac_optarg in
18724    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18725    '') as_fn_error $? "missing file argument" ;;
18726    esac
18727    as_fn_append CONFIG_FILES " '$ac_optarg'"
18728    ac_need_defaults=false;;
18729  --header | --heade | --head | --hea )
18730    $ac_shift
18731    case $ac_optarg in
18732    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18733    esac
18734    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18735    ac_need_defaults=false;;
18736  --he | --h)
18737    # Conflict between --help and --header
18738    as_fn_error $? "ambiguous option: \`$1'
18739Try \`$0 --help' for more information.";;
18740  --help | --hel | -h )
18741    $as_echo "$ac_cs_usage"; exit ;;
18742  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18743  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18744    ac_cs_silent=: ;;
18745
18746  # This is an error.
18747  -*) as_fn_error $? "unrecognized option: \`$1'
18748Try \`$0 --help' for more information." ;;
18749
18750  *) as_fn_append ac_config_targets " $1"
18751     ac_need_defaults=false ;;
18752
18753  esac
18754  shift
18755done
18756
18757ac_configure_extra_args=
18758
18759if $ac_cs_silent; then
18760  exec 6>/dev/null
18761  ac_configure_extra_args="$ac_configure_extra_args --silent"
18762fi
18763
18764_ACEOF
18765cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18766if \$ac_cs_recheck; then
18767  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18768  shift
18769  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18770  CONFIG_SHELL='$SHELL'
18771  export CONFIG_SHELL
18772  exec "\$@"
18773fi
18774
18775_ACEOF
18776cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18777exec 5>>config.log
18778{
18779  echo
18780  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18781## Running $as_me. ##
18782_ASBOX
18783  $as_echo "$ac_log"
18784} >&5
18785
18786_ACEOF
18787cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18788#
18789# INIT-COMMANDS
18790#
18791AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18792
18793
18794# The HP-UX ksh and POSIX shell print the target directory to stdout
18795# if CDPATH is set.
18796(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18797
18798sed_quote_subst='$sed_quote_subst'
18799double_quote_subst='$double_quote_subst'
18800delay_variable_subst='$delay_variable_subst'
18801AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
18802DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18803OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18804macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18805macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18806enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18807enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18808pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18809enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18810SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18811ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18812PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18813host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18814host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18815host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18816build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18817build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18818build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18819SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18820Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18821GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18822EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18823FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18824LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18825NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18826LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18827max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18828ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18829exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18830lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18831lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18832lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18833lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18834lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18835reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18836reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18837deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18838file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18839file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18840want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18841sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18842AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18843AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18844archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18845STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18846RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18847old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18848old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18849old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18850lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18851CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18852CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18853compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18854GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18855lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18856lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18857lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18858lt_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"`'
18859nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18860lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18861objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18862MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18863lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18864lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18865lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18866lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18867lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18868need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18869MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18870DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18871NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18872LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18873OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18874OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18875libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18876shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18877extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18878archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18879enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18880export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18881whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18882compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18883old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18884old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18885archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18886archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18887module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18888module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18889with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18890allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18891no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18892hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18893hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18894hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18895hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18896hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18897hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18898hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18899inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18900link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18901always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18902export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18903exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18904include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18905prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18906postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18907file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18908variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18909need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18910need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18911version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18912runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18913shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18914shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18915libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18916library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18917soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18918install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18919postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18920postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18921finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18922finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18923hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18924sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18925sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18926hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18927enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18928enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18929enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18930old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18931striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18932compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18933predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18934postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18935predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18936postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18937compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18938LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18939reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18940reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18941old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18942compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18943GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18944lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18945lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18946lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18947lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18948lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18949archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18950enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18951export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18952whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18953compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18954old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18955old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18956archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18957archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18958module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18959module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18960with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18961allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18962no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18963hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18964hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18965hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18966hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18967hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18968hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18969hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18970inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18971link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18972always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18973export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18974exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18975include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18976prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18977postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18978file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18979hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18980compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18981predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18982postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18983predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18984postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18985compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18986
18987LTCC='$LTCC'
18988LTCFLAGS='$LTCFLAGS'
18989compiler='$compiler_DEFAULT'
18990
18991# A function that is used when there is no print builtin or printf.
18992func_fallback_echo ()
18993{
18994  eval 'cat <<_LTECHO_EOF
18995\$1
18996_LTECHO_EOF'
18997}
18998
18999# Quote evaled strings.
19000for var in AS \
19001DLLTOOL \
19002OBJDUMP \
19003SHELL \
19004ECHO \
19005PATH_SEPARATOR \
19006SED \
19007GREP \
19008EGREP \
19009FGREP \
19010LD \
19011NM \
19012LN_S \
19013lt_SP2NL \
19014lt_NL2SP \
19015reload_flag \
19016deplibs_check_method \
19017file_magic_cmd \
19018file_magic_glob \
19019want_nocaseglob \
19020sharedlib_from_linklib_cmd \
19021AR \
19022AR_FLAGS \
19023archiver_list_spec \
19024STRIP \
19025RANLIB \
19026CC \
19027CFLAGS \
19028compiler \
19029lt_cv_sys_global_symbol_pipe \
19030lt_cv_sys_global_symbol_to_cdecl \
19031lt_cv_sys_global_symbol_to_c_name_address \
19032lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19033nm_file_list_spec \
19034lt_prog_compiler_no_builtin_flag \
19035lt_prog_compiler_pic \
19036lt_prog_compiler_wl \
19037lt_prog_compiler_static \
19038lt_cv_prog_compiler_c_o \
19039need_locks \
19040MANIFEST_TOOL \
19041DSYMUTIL \
19042NMEDIT \
19043LIPO \
19044OTOOL \
19045OTOOL64 \
19046shrext_cmds \
19047export_dynamic_flag_spec \
19048whole_archive_flag_spec \
19049compiler_needs_object \
19050with_gnu_ld \
19051allow_undefined_flag \
19052no_undefined_flag \
19053hardcode_libdir_flag_spec \
19054hardcode_libdir_separator \
19055exclude_expsyms \
19056include_expsyms \
19057file_list_spec \
19058variables_saved_for_relink \
19059libname_spec \
19060library_names_spec \
19061soname_spec \
19062install_override_mode \
19063finish_eval \
19064old_striplib \
19065striplib \
19066compiler_lib_search_dirs \
19067predep_objects \
19068postdep_objects \
19069predeps \
19070postdeps \
19071compiler_lib_search_path \
19072LD_CXX \
19073reload_flag_CXX \
19074compiler_CXX \
19075lt_prog_compiler_no_builtin_flag_CXX \
19076lt_prog_compiler_pic_CXX \
19077lt_prog_compiler_wl_CXX \
19078lt_prog_compiler_static_CXX \
19079lt_cv_prog_compiler_c_o_CXX \
19080export_dynamic_flag_spec_CXX \
19081whole_archive_flag_spec_CXX \
19082compiler_needs_object_CXX \
19083with_gnu_ld_CXX \
19084allow_undefined_flag_CXX \
19085no_undefined_flag_CXX \
19086hardcode_libdir_flag_spec_CXX \
19087hardcode_libdir_separator_CXX \
19088exclude_expsyms_CXX \
19089include_expsyms_CXX \
19090file_list_spec_CXX \
19091compiler_lib_search_dirs_CXX \
19092predep_objects_CXX \
19093postdep_objects_CXX \
19094predeps_CXX \
19095postdeps_CXX \
19096compiler_lib_search_path_CXX; do
19097    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19098    *[\\\\\\\`\\"\\\$]*)
19099      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19100      ;;
19101    *)
19102      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19103      ;;
19104    esac
19105done
19106
19107# Double-quote double-evaled strings.
19108for var in reload_cmds \
19109old_postinstall_cmds \
19110old_postuninstall_cmds \
19111old_archive_cmds \
19112extract_expsyms_cmds \
19113old_archive_from_new_cmds \
19114old_archive_from_expsyms_cmds \
19115archive_cmds \
19116archive_expsym_cmds \
19117module_cmds \
19118module_expsym_cmds \
19119export_symbols_cmds \
19120prelink_cmds \
19121postlink_cmds \
19122postinstall_cmds \
19123postuninstall_cmds \
19124finish_cmds \
19125sys_lib_search_path_spec \
19126sys_lib_dlsearch_path_spec \
19127reload_cmds_CXX \
19128old_archive_cmds_CXX \
19129old_archive_from_new_cmds_CXX \
19130old_archive_from_expsyms_cmds_CXX \
19131archive_cmds_CXX \
19132archive_expsym_cmds_CXX \
19133module_cmds_CXX \
19134module_expsym_cmds_CXX \
19135export_symbols_cmds_CXX \
19136prelink_cmds_CXX \
19137postlink_cmds_CXX; do
19138    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19139    *[\\\\\\\`\\"\\\$]*)
19140      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19141      ;;
19142    *)
19143      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19144      ;;
19145    esac
19146done
19147
19148ac_aux_dir='$ac_aux_dir'
19149xsi_shell='$xsi_shell'
19150lt_shell_append='$lt_shell_append'
19151
19152# See if we are running on zsh, and set the options which allow our
19153# commands through without removal of \ escapes INIT.
19154if test -n "\${ZSH_VERSION+set}" ; then
19155   setopt NO_GLOB_SUBST
19156fi
19157
19158
19159    PACKAGE='$PACKAGE'
19160    VERSION='$VERSION'
19161    TIMESTAMP='$TIMESTAMP'
19162    RM='$RM'
19163    ofile='$ofile'
19164
19165
19166
19167
19168
19169
19170_ACEOF
19171
19172cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19173
19174# Handling of arguments.
19175for ac_config_target in $ac_config_targets
19176do
19177  case $ac_config_target in
19178    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19179    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19180    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19181    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19182    "headers/Makefile") CONFIG_FILES="$CONFIG_FILES headers/Makefile" ;;
19183    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19184    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
19185    "test/sql_stmt_tests/Makefile") CONFIG_FILES="$CONFIG_FILES test/sql_stmt_tests/Makefile" ;;
19186    "test/sql_stmt_security_tests/Makefile") CONFIG_FILES="$CONFIG_FILES test/sql_stmt_security_tests/Makefile" ;;
19187    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
19188    "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
19189    "Doxyfile") CONFIG_FILES="$CONFIG_FILES Doxyfile" ;;
19190    "rasterlite2.pc") CONFIG_FILES="$CONFIG_FILES rasterlite2.pc" ;;
19191
19192  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19193  esac
19194done
19195
19196
19197# If the user did not use the arguments to specify the items to instantiate,
19198# then the envvar interface is used.  Set only those that are not.
19199# We use the long form for the default assignment because of an extremely
19200# bizarre bug on SunOS 4.1.3.
19201if $ac_need_defaults; then
19202  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19203  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19204  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19205fi
19206
19207# Have a temporary directory for convenience.  Make it in the build tree
19208# simply because there is no reason against having it here, and in addition,
19209# creating and moving files from /tmp can sometimes cause problems.
19210# Hook for its removal unless debugging.
19211# Note that there is a small window in which the directory will not be cleaned:
19212# after its creation but before its name has been assigned to `$tmp'.
19213$debug ||
19214{
19215  tmp= ac_tmp=
19216  trap 'exit_status=$?
19217  : "${ac_tmp:=$tmp}"
19218  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19219' 0
19220  trap 'as_fn_exit 1' 1 2 13 15
19221}
19222# Create a (secure) tmp directory for tmp files.
19223
19224{
19225  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19226  test -d "$tmp"
19227}  ||
19228{
19229  tmp=./conf$$-$RANDOM
19230  (umask 077 && mkdir "$tmp")
19231} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19232ac_tmp=$tmp
19233
19234# Set up the scripts for CONFIG_FILES section.
19235# No need to generate them if there are no CONFIG_FILES.
19236# This happens for instance with `./config.status config.h'.
19237if test -n "$CONFIG_FILES"; then
19238
19239
19240ac_cr=`echo X | tr X '\015'`
19241# On cygwin, bash can eat \r inside `` if the user requested igncr.
19242# But we know of no other shell where ac_cr would be empty at this
19243# point, so we can use a bashism as a fallback.
19244if test "x$ac_cr" = x; then
19245  eval ac_cr=\$\'\\r\'
19246fi
19247ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19248if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19249  ac_cs_awk_cr='\\r'
19250else
19251  ac_cs_awk_cr=$ac_cr
19252fi
19253
19254echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19255_ACEOF
19256
19257
19258{
19259  echo "cat >conf$$subs.awk <<_ACEOF" &&
19260  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19261  echo "_ACEOF"
19262} >conf$$subs.sh ||
19263  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19264ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19265ac_delim='%!_!# '
19266for ac_last_try in false false false false false :; do
19267  . ./conf$$subs.sh ||
19268    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19269
19270  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19271  if test $ac_delim_n = $ac_delim_num; then
19272    break
19273  elif $ac_last_try; then
19274    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19275  else
19276    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19277  fi
19278done
19279rm -f conf$$subs.sh
19280
19281cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19282cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19283_ACEOF
19284sed -n '
19285h
19286s/^/S["/; s/!.*/"]=/
19287p
19288g
19289s/^[^!]*!//
19290:repl
19291t repl
19292s/'"$ac_delim"'$//
19293t delim
19294:nl
19295h
19296s/\(.\{148\}\)..*/\1/
19297t more1
19298s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19299p
19300n
19301b repl
19302:more1
19303s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19304p
19305g
19306s/.\{148\}//
19307t nl
19308:delim
19309h
19310s/\(.\{148\}\)..*/\1/
19311t more2
19312s/["\\]/\\&/g; s/^/"/; s/$/"/
19313p
19314b
19315:more2
19316s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19317p
19318g
19319s/.\{148\}//
19320t delim
19321' <conf$$subs.awk | sed '
19322/^[^""]/{
19323  N
19324  s/\n//
19325}
19326' >>$CONFIG_STATUS || ac_write_fail=1
19327rm -f conf$$subs.awk
19328cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19329_ACAWK
19330cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19331  for (key in S) S_is_set[key] = 1
19332  FS = ""
19333
19334}
19335{
19336  line = $ 0
19337  nfields = split(line, field, "@")
19338  substed = 0
19339  len = length(field[1])
19340  for (i = 2; i < nfields; i++) {
19341    key = field[i]
19342    keylen = length(key)
19343    if (S_is_set[key]) {
19344      value = S[key]
19345      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19346      len += length(value) + length(field[++i])
19347      substed = 1
19348    } else
19349      len += 1 + keylen
19350  }
19351
19352  print line
19353}
19354
19355_ACAWK
19356_ACEOF
19357cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19358if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19359  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19360else
19361  cat
19362fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19363  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19364_ACEOF
19365
19366# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19367# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19368# trailing colons and then remove the whole line if VPATH becomes empty
19369# (actually we leave an empty line to preserve line numbers).
19370if test "x$srcdir" = x.; then
19371  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
19372h
19373s///
19374s/^/:/
19375s/[	 ]*$/:/
19376s/:\$(srcdir):/:/g
19377s/:\${srcdir}:/:/g
19378s/:@srcdir@:/:/g
19379s/^:*//
19380s/:*$//
19381x
19382s/\(=[	 ]*\).*/\1/
19383G
19384s/\n//
19385s/^[^=]*=[	 ]*$//
19386}'
19387fi
19388
19389cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19390fi # test -n "$CONFIG_FILES"
19391
19392# Set up the scripts for CONFIG_HEADERS section.
19393# No need to generate them if there are no CONFIG_HEADERS.
19394# This happens for instance with `./config.status Makefile'.
19395if test -n "$CONFIG_HEADERS"; then
19396cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19397BEGIN {
19398_ACEOF
19399
19400# Transform confdefs.h into an awk script `defines.awk', embedded as
19401# here-document in config.status, that substitutes the proper values into
19402# config.h.in to produce config.h.
19403
19404# Create a delimiter string that does not exist in confdefs.h, to ease
19405# handling of long lines.
19406ac_delim='%!_!# '
19407for ac_last_try in false false :; do
19408  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19409  if test -z "$ac_tt"; then
19410    break
19411  elif $ac_last_try; then
19412    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19413  else
19414    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19415  fi
19416done
19417
19418# For the awk script, D is an array of macro values keyed by name,
19419# likewise P contains macro parameters if any.  Preserve backslash
19420# newline sequences.
19421
19422ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19423sed -n '
19424s/.\{148\}/&'"$ac_delim"'/g
19425t rset
19426:rset
19427s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19428t def
19429d
19430:def
19431s/\\$//
19432t bsnl
19433s/["\\]/\\&/g
19434s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19435D["\1"]=" \3"/p
19436s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19437d
19438:bsnl
19439s/["\\]/\\&/g
19440s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19441D["\1"]=" \3\\\\\\n"\\/p
19442t cont
19443s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19444t cont
19445d
19446:cont
19447n
19448s/.\{148\}/&'"$ac_delim"'/g
19449t clear
19450:clear
19451s/\\$//
19452t bsnlc
19453s/["\\]/\\&/g; s/^/"/; s/$/"/p
19454d
19455:bsnlc
19456s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19457b cont
19458' <confdefs.h | sed '
19459s/'"$ac_delim"'/"\\\
19460"/g' >>$CONFIG_STATUS || ac_write_fail=1
19461
19462cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19463  for (key in D) D_is_set[key] = 1
19464  FS = ""
19465}
19466/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19467  line = \$ 0
19468  split(line, arg, " ")
19469  if (arg[1] == "#") {
19470    defundef = arg[2]
19471    mac1 = arg[3]
19472  } else {
19473    defundef = substr(arg[1], 2)
19474    mac1 = arg[2]
19475  }
19476  split(mac1, mac2, "(") #)
19477  macro = mac2[1]
19478  prefix = substr(line, 1, index(line, defundef) - 1)
19479  if (D_is_set[macro]) {
19480    # Preserve the white space surrounding the "#".
19481    print prefix "define", macro P[macro] D[macro]
19482    next
19483  } else {
19484    # Replace #undef with comments.  This is necessary, for example,
19485    # in the case of _POSIX_SOURCE, which is predefined and required
19486    # on some systems where configure will not decide to define it.
19487    if (defundef == "undef") {
19488      print "/*", prefix defundef, macro, "*/"
19489      next
19490    }
19491  }
19492}
19493{ print }
19494_ACAWK
19495_ACEOF
19496cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19497  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19498fi # test -n "$CONFIG_HEADERS"
19499
19500
19501eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19502shift
19503for ac_tag
19504do
19505  case $ac_tag in
19506  :[FHLC]) ac_mode=$ac_tag; continue;;
19507  esac
19508  case $ac_mode$ac_tag in
19509  :[FHL]*:*);;
19510  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19511  :[FH]-) ac_tag=-:-;;
19512  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19513  esac
19514  ac_save_IFS=$IFS
19515  IFS=:
19516  set x $ac_tag
19517  IFS=$ac_save_IFS
19518  shift
19519  ac_file=$1
19520  shift
19521
19522  case $ac_mode in
19523  :L) ac_source=$1;;
19524  :[FH])
19525    ac_file_inputs=
19526    for ac_f
19527    do
19528      case $ac_f in
19529      -) ac_f="$ac_tmp/stdin";;
19530      *) # Look for the file first in the build tree, then in the source tree
19531	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
19532	 # because $ac_f cannot contain `:'.
19533	 test -f "$ac_f" ||
19534	   case $ac_f in
19535	   [\\/$]*) false;;
19536	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19537	   esac ||
19538	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19539      esac
19540      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19541      as_fn_append ac_file_inputs " '$ac_f'"
19542    done
19543
19544    # Let's still pretend it is `configure' which instantiates (i.e., don't
19545    # use $as_me), people would be surprised to read:
19546    #    /* config.h.  Generated by config.status.  */
19547    configure_input='Generated from '`
19548	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19549	`' by configure.'
19550    if test x"$ac_file" != x-; then
19551      configure_input="$ac_file.  $configure_input"
19552      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19553$as_echo "$as_me: creating $ac_file" >&6;}
19554    fi
19555    # Neutralize special characters interpreted by sed in replacement strings.
19556    case $configure_input in #(
19557    *\&* | *\|* | *\\* )
19558       ac_sed_conf_input=`$as_echo "$configure_input" |
19559       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19560    *) ac_sed_conf_input=$configure_input;;
19561    esac
19562
19563    case $ac_tag in
19564    *:-:* | *:-) cat >"$ac_tmp/stdin" \
19565      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19566    esac
19567    ;;
19568  esac
19569
19570  ac_dir=`$as_dirname -- "$ac_file" ||
19571$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19572	 X"$ac_file" : 'X\(//\)[^/]' \| \
19573	 X"$ac_file" : 'X\(//\)$' \| \
19574	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19575$as_echo X"$ac_file" |
19576    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19577	    s//\1/
19578	    q
19579	  }
19580	  /^X\(\/\/\)[^/].*/{
19581	    s//\1/
19582	    q
19583	  }
19584	  /^X\(\/\/\)$/{
19585	    s//\1/
19586	    q
19587	  }
19588	  /^X\(\/\).*/{
19589	    s//\1/
19590	    q
19591	  }
19592	  s/.*/./; q'`
19593  as_dir="$ac_dir"; as_fn_mkdir_p
19594  ac_builddir=.
19595
19596case "$ac_dir" in
19597.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19598*)
19599  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19600  # A ".." for each directory in $ac_dir_suffix.
19601  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19602  case $ac_top_builddir_sub in
19603  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19604  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19605  esac ;;
19606esac
19607ac_abs_top_builddir=$ac_pwd
19608ac_abs_builddir=$ac_pwd$ac_dir_suffix
19609# for backward compatibility:
19610ac_top_builddir=$ac_top_build_prefix
19611
19612case $srcdir in
19613  .)  # We are building in place.
19614    ac_srcdir=.
19615    ac_top_srcdir=$ac_top_builddir_sub
19616    ac_abs_top_srcdir=$ac_pwd ;;
19617  [\\/]* | ?:[\\/]* )  # Absolute name.
19618    ac_srcdir=$srcdir$ac_dir_suffix;
19619    ac_top_srcdir=$srcdir
19620    ac_abs_top_srcdir=$srcdir ;;
19621  *) # Relative name.
19622    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19623    ac_top_srcdir=$ac_top_build_prefix$srcdir
19624    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19625esac
19626ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19627
19628
19629  case $ac_mode in
19630  :F)
19631  #
19632  # CONFIG_FILE
19633  #
19634
19635  case $INSTALL in
19636  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19637  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19638  esac
19639  ac_MKDIR_P=$MKDIR_P
19640  case $MKDIR_P in
19641  [\\/$]* | ?:[\\/]* ) ;;
19642  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19643  esac
19644_ACEOF
19645
19646cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19647# If the template does not know about datarootdir, expand it.
19648# FIXME: This hack should be removed a few years after 2.60.
19649ac_datarootdir_hack=; ac_datarootdir_seen=
19650ac_sed_dataroot='
19651/datarootdir/ {
19652  p
19653  q
19654}
19655/@datadir@/p
19656/@docdir@/p
19657/@infodir@/p
19658/@localedir@/p
19659/@mandir@/p'
19660case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19661*datarootdir*) ac_datarootdir_seen=yes;;
19662*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19663  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19664$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19665_ACEOF
19666cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19667  ac_datarootdir_hack='
19668  s&@datadir@&$datadir&g
19669  s&@docdir@&$docdir&g
19670  s&@infodir@&$infodir&g
19671  s&@localedir@&$localedir&g
19672  s&@mandir@&$mandir&g
19673  s&\\\${datarootdir}&$datarootdir&g' ;;
19674esac
19675_ACEOF
19676
19677# Neutralize VPATH when `$srcdir' = `.'.
19678# Shell code in configure.ac might set extrasub.
19679# FIXME: do we really want to maintain this feature?
19680cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19681ac_sed_extra="$ac_vpsub
19682$extrasub
19683_ACEOF
19684cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19685:t
19686/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19687s|@configure_input@|$ac_sed_conf_input|;t t
19688s&@top_builddir@&$ac_top_builddir_sub&;t t
19689s&@top_build_prefix@&$ac_top_build_prefix&;t t
19690s&@srcdir@&$ac_srcdir&;t t
19691s&@abs_srcdir@&$ac_abs_srcdir&;t t
19692s&@top_srcdir@&$ac_top_srcdir&;t t
19693s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19694s&@builddir@&$ac_builddir&;t t
19695s&@abs_builddir@&$ac_abs_builddir&;t t
19696s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19697s&@INSTALL@&$ac_INSTALL&;t t
19698s&@MKDIR_P@&$ac_MKDIR_P&;t t
19699$ac_datarootdir_hack
19700"
19701eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19702  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19703
19704test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19705  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19706  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
19707      "$ac_tmp/out"`; test -z "$ac_out"; } &&
19708  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19709which seems to be undefined.  Please make sure it is defined" >&5
19710$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19711which seems to be undefined.  Please make sure it is defined" >&2;}
19712
19713  rm -f "$ac_tmp/stdin"
19714  case $ac_file in
19715  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19716  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19717  esac \
19718  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19719 ;;
19720  :H)
19721  #
19722  # CONFIG_HEADER
19723  #
19724  if test x"$ac_file" != x-; then
19725    {
19726      $as_echo "/* $configure_input  */" \
19727      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19728    } >"$ac_tmp/config.h" \
19729      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19730    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19731      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19732$as_echo "$as_me: $ac_file is unchanged" >&6;}
19733    else
19734      rm -f "$ac_file"
19735      mv "$ac_tmp/config.h" "$ac_file" \
19736	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
19737    fi
19738  else
19739    $as_echo "/* $configure_input  */" \
19740      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19741      || as_fn_error $? "could not create -" "$LINENO" 5
19742  fi
19743# Compute "$ac_file"'s index in $config_headers.
19744_am_arg="$ac_file"
19745_am_stamp_count=1
19746for _am_header in $config_headers :; do
19747  case $_am_header in
19748    $_am_arg | $_am_arg:* )
19749      break ;;
19750    * )
19751      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19752  esac
19753done
19754echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19755$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19756	 X"$_am_arg" : 'X\(//\)[^/]' \| \
19757	 X"$_am_arg" : 'X\(//\)$' \| \
19758	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19759$as_echo X"$_am_arg" |
19760    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19761	    s//\1/
19762	    q
19763	  }
19764	  /^X\(\/\/\)[^/].*/{
19765	    s//\1/
19766	    q
19767	  }
19768	  /^X\(\/\/\)$/{
19769	    s//\1/
19770	    q
19771	  }
19772	  /^X\(\/\).*/{
19773	    s//\1/
19774	    q
19775	  }
19776	  s/.*/./; q'`/stamp-h$_am_stamp_count
19777 ;;
19778
19779  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19780$as_echo "$as_me: executing $ac_file commands" >&6;}
19781 ;;
19782  esac
19783
19784
19785  case $ac_file$ac_mode in
19786    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19787  # Older Autoconf quotes --file arguments for eval, but not when files
19788  # are listed without --file.  Let's play safe and only enable the eval
19789  # if we detect the quoting.
19790  case $CONFIG_FILES in
19791  *\'*) eval set x "$CONFIG_FILES" ;;
19792  *)   set x $CONFIG_FILES ;;
19793  esac
19794  shift
19795  for mf
19796  do
19797    # Strip MF so we end up with the name of the file.
19798    mf=`echo "$mf" | sed -e 's/:.*$//'`
19799    # Check whether this is an Automake generated Makefile or not.
19800    # We used to match only the files named 'Makefile.in', but
19801    # some people rename them; so instead we look at the file content.
19802    # Grep'ing the first line is not enough: some people post-process
19803    # each Makefile.in and add a new line on top of each file to say so.
19804    # Grep'ing the whole file is not good either: AIX grep has a line
19805    # limit of 2048, but all sed's we know have understand at least 4000.
19806    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19807      dirpart=`$as_dirname -- "$mf" ||
19808$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19809	 X"$mf" : 'X\(//\)[^/]' \| \
19810	 X"$mf" : 'X\(//\)$' \| \
19811	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19812$as_echo X"$mf" |
19813    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19814	    s//\1/
19815	    q
19816	  }
19817	  /^X\(\/\/\)[^/].*/{
19818	    s//\1/
19819	    q
19820	  }
19821	  /^X\(\/\/\)$/{
19822	    s//\1/
19823	    q
19824	  }
19825	  /^X\(\/\).*/{
19826	    s//\1/
19827	    q
19828	  }
19829	  s/.*/./; q'`
19830    else
19831      continue
19832    fi
19833    # Extract the definition of DEPDIR, am__include, and am__quote
19834    # from the Makefile without running 'make'.
19835    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19836    test -z "$DEPDIR" && continue
19837    am__include=`sed -n 's/^am__include = //p' < "$mf"`
19838    test -z "$am__include" && continue
19839    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19840    # Find all dependency output files, they are included files with
19841    # $(DEPDIR) in their names.  We invoke sed twice because it is the
19842    # simplest approach to changing $(DEPDIR) to its actual value in the
19843    # expansion.
19844    for file in `sed -n "
19845      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19846	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19847      # Make sure the directory exists.
19848      test -f "$dirpart/$file" && continue
19849      fdir=`$as_dirname -- "$file" ||
19850$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19851	 X"$file" : 'X\(//\)[^/]' \| \
19852	 X"$file" : 'X\(//\)$' \| \
19853	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19854$as_echo X"$file" |
19855    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19856	    s//\1/
19857	    q
19858	  }
19859	  /^X\(\/\/\)[^/].*/{
19860	    s//\1/
19861	    q
19862	  }
19863	  /^X\(\/\/\)$/{
19864	    s//\1/
19865	    q
19866	  }
19867	  /^X\(\/\).*/{
19868	    s//\1/
19869	    q
19870	  }
19871	  s/.*/./; q'`
19872      as_dir=$dirpart/$fdir; as_fn_mkdir_p
19873      # echo "creating $dirpart/$file"
19874      echo '# dummy' > "$dirpart/$file"
19875    done
19876  done
19877}
19878 ;;
19879    "libtool":C)
19880
19881    # See if we are running on zsh, and set the options which allow our
19882    # commands through without removal of \ escapes.
19883    if test -n "${ZSH_VERSION+set}" ; then
19884      setopt NO_GLOB_SUBST
19885    fi
19886
19887    cfgfile="${ofile}T"
19888    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19889    $RM "$cfgfile"
19890
19891    cat <<_LT_EOF >> "$cfgfile"
19892#! $SHELL
19893
19894# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19895# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19896# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19897# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19898#
19899#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19900#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19901#                 Foundation, Inc.
19902#   Written by Gordon Matzigkeit, 1996
19903#
19904#   This file is part of GNU Libtool.
19905#
19906# GNU Libtool is free software; you can redistribute it and/or
19907# modify it under the terms of the GNU General Public License as
19908# published by the Free Software Foundation; either version 2 of
19909# the License, or (at your option) any later version.
19910#
19911# As a special exception to the GNU General Public License,
19912# if you distribute this file as part of a program or library that
19913# is built using GNU Libtool, you may include this file under the
19914# same distribution terms that you use for the rest of that program.
19915#
19916# GNU Libtool is distributed in the hope that it will be useful,
19917# but WITHOUT ANY WARRANTY; without even the implied warranty of
19918# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19919# GNU General Public License for more details.
19920#
19921# You should have received a copy of the GNU General Public License
19922# along with GNU Libtool; see the file COPYING.  If not, a copy
19923# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19924# obtained by writing to the Free Software Foundation, Inc.,
19925# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19926
19927
19928# The names of the tagged configurations supported by this script.
19929available_tags="CXX "
19930
19931# ### BEGIN LIBTOOL CONFIG
19932
19933# Assembler program.
19934AS=$lt_AS
19935
19936# DLL creation program.
19937DLLTOOL=$lt_DLLTOOL
19938
19939# Object dumper program.
19940OBJDUMP=$lt_OBJDUMP
19941
19942# Which release of libtool.m4 was used?
19943macro_version=$macro_version
19944macro_revision=$macro_revision
19945
19946# Whether or not to build shared libraries.
19947build_libtool_libs=$enable_shared
19948
19949# Whether or not to build static libraries.
19950build_old_libs=$enable_static
19951
19952# What type of objects to build.
19953pic_mode=$pic_mode
19954
19955# Whether or not to optimize for fast installation.
19956fast_install=$enable_fast_install
19957
19958# Shell to use when invoking shell scripts.
19959SHELL=$lt_SHELL
19960
19961# An echo program that protects backslashes.
19962ECHO=$lt_ECHO
19963
19964# The PATH separator for the build system.
19965PATH_SEPARATOR=$lt_PATH_SEPARATOR
19966
19967# The host system.
19968host_alias=$host_alias
19969host=$host
19970host_os=$host_os
19971
19972# The build system.
19973build_alias=$build_alias
19974build=$build
19975build_os=$build_os
19976
19977# A sed program that does not truncate output.
19978SED=$lt_SED
19979
19980# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19981Xsed="\$SED -e 1s/^X//"
19982
19983# A grep program that handles long lines.
19984GREP=$lt_GREP
19985
19986# An ERE matcher.
19987EGREP=$lt_EGREP
19988
19989# A literal string matcher.
19990FGREP=$lt_FGREP
19991
19992# A BSD- or MS-compatible name lister.
19993NM=$lt_NM
19994
19995# Whether we need soft or hard links.
19996LN_S=$lt_LN_S
19997
19998# What is the maximum length of a command?
19999max_cmd_len=$max_cmd_len
20000
20001# Object file suffix (normally "o").
20002objext=$ac_objext
20003
20004# Executable file suffix (normally "").
20005exeext=$exeext
20006
20007# whether the shell understands "unset".
20008lt_unset=$lt_unset
20009
20010# turn spaces into newlines.
20011SP2NL=$lt_lt_SP2NL
20012
20013# turn newlines into spaces.
20014NL2SP=$lt_lt_NL2SP
20015
20016# convert \$build file names to \$host format.
20017to_host_file_cmd=$lt_cv_to_host_file_cmd
20018
20019# convert \$build files to toolchain format.
20020to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20021
20022# Method to check whether dependent libraries are shared objects.
20023deplibs_check_method=$lt_deplibs_check_method
20024
20025# Command to use when deplibs_check_method = "file_magic".
20026file_magic_cmd=$lt_file_magic_cmd
20027
20028# How to find potential files when deplibs_check_method = "file_magic".
20029file_magic_glob=$lt_file_magic_glob
20030
20031# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20032want_nocaseglob=$lt_want_nocaseglob
20033
20034# Command to associate shared and link libraries.
20035sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20036
20037# The archiver.
20038AR=$lt_AR
20039
20040# Flags to create an archive.
20041AR_FLAGS=$lt_AR_FLAGS
20042
20043# How to feed a file listing to the archiver.
20044archiver_list_spec=$lt_archiver_list_spec
20045
20046# A symbol stripping program.
20047STRIP=$lt_STRIP
20048
20049# Commands used to install an old-style archive.
20050RANLIB=$lt_RANLIB
20051old_postinstall_cmds=$lt_old_postinstall_cmds
20052old_postuninstall_cmds=$lt_old_postuninstall_cmds
20053
20054# Whether to use a lock for old archive extraction.
20055lock_old_archive_extraction=$lock_old_archive_extraction
20056
20057# A C compiler.
20058LTCC=$lt_CC
20059
20060# LTCC compiler flags.
20061LTCFLAGS=$lt_CFLAGS
20062
20063# Take the output of nm and produce a listing of raw symbols and C names.
20064global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20065
20066# Transform the output of nm in a proper C declaration.
20067global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20068
20069# Transform the output of nm in a C name address pair.
20070global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20071
20072# Transform the output of nm in a C name address pair when lib prefix is needed.
20073global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20074
20075# Specify filename containing input files for \$NM.
20076nm_file_list_spec=$lt_nm_file_list_spec
20077
20078# The root where to search for dependent libraries,and in which our libraries should be installed.
20079lt_sysroot=$lt_sysroot
20080
20081# The name of the directory that contains temporary libtool files.
20082objdir=$objdir
20083
20084# Used to examine libraries when file_magic_cmd begins with "file".
20085MAGIC_CMD=$MAGIC_CMD
20086
20087# Must we lock files when doing compilation?
20088need_locks=$lt_need_locks
20089
20090# Manifest tool.
20091MANIFEST_TOOL=$lt_MANIFEST_TOOL
20092
20093# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20094DSYMUTIL=$lt_DSYMUTIL
20095
20096# Tool to change global to local symbols on Mac OS X.
20097NMEDIT=$lt_NMEDIT
20098
20099# Tool to manipulate fat objects and archives on Mac OS X.
20100LIPO=$lt_LIPO
20101
20102# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20103OTOOL=$lt_OTOOL
20104
20105# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20106OTOOL64=$lt_OTOOL64
20107
20108# Old archive suffix (normally "a").
20109libext=$libext
20110
20111# Shared library suffix (normally ".so").
20112shrext_cmds=$lt_shrext_cmds
20113
20114# The commands to extract the exported symbol list from a shared archive.
20115extract_expsyms_cmds=$lt_extract_expsyms_cmds
20116
20117# Variables whose values should be saved in libtool wrapper scripts and
20118# restored at link time.
20119variables_saved_for_relink=$lt_variables_saved_for_relink
20120
20121# Do we need the "lib" prefix for modules?
20122need_lib_prefix=$need_lib_prefix
20123
20124# Do we need a version for libraries?
20125need_version=$need_version
20126
20127# Library versioning type.
20128version_type=$version_type
20129
20130# Shared library runtime path variable.
20131runpath_var=$runpath_var
20132
20133# Shared library path variable.
20134shlibpath_var=$shlibpath_var
20135
20136# Is shlibpath searched before the hard-coded library search path?
20137shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20138
20139# Format of library name prefix.
20140libname_spec=$lt_libname_spec
20141
20142# List of archive names.  First name is the real one, the rest are links.
20143# The last name is the one that the linker finds with -lNAME
20144library_names_spec=$lt_library_names_spec
20145
20146# The coded name of the library, if different from the real name.
20147soname_spec=$lt_soname_spec
20148
20149# Permission mode override for installation of shared libraries.
20150install_override_mode=$lt_install_override_mode
20151
20152# Command to use after installation of a shared archive.
20153postinstall_cmds=$lt_postinstall_cmds
20154
20155# Command to use after uninstallation of a shared archive.
20156postuninstall_cmds=$lt_postuninstall_cmds
20157
20158# Commands used to finish a libtool library installation in a directory.
20159finish_cmds=$lt_finish_cmds
20160
20161# As "finish_cmds", except a single script fragment to be evaled but
20162# not shown.
20163finish_eval=$lt_finish_eval
20164
20165# Whether we should hardcode library paths into libraries.
20166hardcode_into_libs=$hardcode_into_libs
20167
20168# Compile-time system search path for libraries.
20169sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20170
20171# Run-time system search path for libraries.
20172sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20173
20174# Whether dlopen is supported.
20175dlopen_support=$enable_dlopen
20176
20177# Whether dlopen of programs is supported.
20178dlopen_self=$enable_dlopen_self
20179
20180# Whether dlopen of statically linked programs is supported.
20181dlopen_self_static=$enable_dlopen_self_static
20182
20183# Commands to strip libraries.
20184old_striplib=$lt_old_striplib
20185striplib=$lt_striplib
20186
20187
20188# The linker used to build libraries.
20189LD=$lt_LD
20190
20191# How to create reloadable object files.
20192reload_flag=$lt_reload_flag
20193reload_cmds=$lt_reload_cmds
20194
20195# Commands used to build an old-style archive.
20196old_archive_cmds=$lt_old_archive_cmds
20197
20198# A language specific compiler.
20199CC=$lt_compiler
20200
20201# Is the compiler the GNU compiler?
20202with_gcc=$GCC
20203
20204# Compiler flag to turn off builtin functions.
20205no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20206
20207# Additional compiler flags for building library objects.
20208pic_flag=$lt_lt_prog_compiler_pic
20209
20210# How to pass a linker flag through the compiler.
20211wl=$lt_lt_prog_compiler_wl
20212
20213# Compiler flag to prevent dynamic linking.
20214link_static_flag=$lt_lt_prog_compiler_static
20215
20216# Does compiler simultaneously support -c and -o options?
20217compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20218
20219# Whether or not to add -lc for building shared libraries.
20220build_libtool_need_lc=$archive_cmds_need_lc
20221
20222# Whether or not to disallow shared libs when runtime libs are static.
20223allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20224
20225# Compiler flag to allow reflexive dlopens.
20226export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20227
20228# Compiler flag to generate shared objects directly from archives.
20229whole_archive_flag_spec=$lt_whole_archive_flag_spec
20230
20231# Whether the compiler copes with passing no objects directly.
20232compiler_needs_object=$lt_compiler_needs_object
20233
20234# Create an old-style archive from a shared archive.
20235old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20236
20237# Create a temporary old-style archive to link instead of a shared archive.
20238old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20239
20240# Commands used to build a shared archive.
20241archive_cmds=$lt_archive_cmds
20242archive_expsym_cmds=$lt_archive_expsym_cmds
20243
20244# Commands used to build a loadable module if different from building
20245# a shared archive.
20246module_cmds=$lt_module_cmds
20247module_expsym_cmds=$lt_module_expsym_cmds
20248
20249# Whether we are building with GNU ld or not.
20250with_gnu_ld=$lt_with_gnu_ld
20251
20252# Flag that allows shared libraries with undefined symbols to be built.
20253allow_undefined_flag=$lt_allow_undefined_flag
20254
20255# Flag that enforces no undefined symbols.
20256no_undefined_flag=$lt_no_undefined_flag
20257
20258# Flag to hardcode \$libdir into a binary during linking.
20259# This must work even if \$libdir does not exist
20260hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20261
20262# Whether we need a single "-rpath" flag with a separated argument.
20263hardcode_libdir_separator=$lt_hardcode_libdir_separator
20264
20265# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20266# DIR into the resulting binary.
20267hardcode_direct=$hardcode_direct
20268
20269# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20270# DIR into the resulting binary and the resulting library dependency is
20271# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20272# library is relocated.
20273hardcode_direct_absolute=$hardcode_direct_absolute
20274
20275# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20276# into the resulting binary.
20277hardcode_minus_L=$hardcode_minus_L
20278
20279# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20280# into the resulting binary.
20281hardcode_shlibpath_var=$hardcode_shlibpath_var
20282
20283# Set to "yes" if building a shared library automatically hardcodes DIR
20284# into the library and all subsequent libraries and executables linked
20285# against it.
20286hardcode_automatic=$hardcode_automatic
20287
20288# Set to yes if linker adds runtime paths of dependent libraries
20289# to runtime path list.
20290inherit_rpath=$inherit_rpath
20291
20292# Whether libtool must link a program against all its dependency libraries.
20293link_all_deplibs=$link_all_deplibs
20294
20295# Set to "yes" if exported symbols are required.
20296always_export_symbols=$always_export_symbols
20297
20298# The commands to list exported symbols.
20299export_symbols_cmds=$lt_export_symbols_cmds
20300
20301# Symbols that should not be listed in the preloaded symbols.
20302exclude_expsyms=$lt_exclude_expsyms
20303
20304# Symbols that must always be exported.
20305include_expsyms=$lt_include_expsyms
20306
20307# Commands necessary for linking programs (against libraries) with templates.
20308prelink_cmds=$lt_prelink_cmds
20309
20310# Commands necessary for finishing linking programs.
20311postlink_cmds=$lt_postlink_cmds
20312
20313# Specify filename containing input files.
20314file_list_spec=$lt_file_list_spec
20315
20316# How to hardcode a shared library path into an executable.
20317hardcode_action=$hardcode_action
20318
20319# The directories searched by this compiler when creating a shared library.
20320compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20321
20322# Dependencies to place before and after the objects being linked to
20323# create a shared library.
20324predep_objects=$lt_predep_objects
20325postdep_objects=$lt_postdep_objects
20326predeps=$lt_predeps
20327postdeps=$lt_postdeps
20328
20329# The library search path used internally by the compiler when linking
20330# a shared library.
20331compiler_lib_search_path=$lt_compiler_lib_search_path
20332
20333# ### END LIBTOOL CONFIG
20334
20335_LT_EOF
20336
20337  case $host_os in
20338  aix3*)
20339    cat <<\_LT_EOF >> "$cfgfile"
20340# AIX sometimes has problems with the GCC collect2 program.  For some
20341# reason, if we set the COLLECT_NAMES environment variable, the problems
20342# vanish in a puff of smoke.
20343if test "X${COLLECT_NAMES+set}" != Xset; then
20344  COLLECT_NAMES=
20345  export COLLECT_NAMES
20346fi
20347_LT_EOF
20348    ;;
20349  esac
20350
20351
20352ltmain="$ac_aux_dir/ltmain.sh"
20353
20354
20355  # We use sed instead of cat because bash on DJGPP gets confused if
20356  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20357  # text mode, it properly converts lines to CR/LF.  This bash problem
20358  # is reportedly fixed, but why not run on old versions too?
20359  sed '$q' "$ltmain" >> "$cfgfile" \
20360     || (rm -f "$cfgfile"; exit 1)
20361
20362  if test x"$xsi_shell" = xyes; then
20363  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20364func_dirname ()\
20365{\
20366\    case ${1} in\
20367\      */*) func_dirname_result="${1%/*}${2}" ;;\
20368\      *  ) func_dirname_result="${3}" ;;\
20369\    esac\
20370} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20371  && mv -f "$cfgfile.tmp" "$cfgfile" \
20372    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20373test 0 -eq $? || _lt_function_replace_fail=:
20374
20375
20376  sed -e '/^func_basename ()$/,/^} # func_basename /c\
20377func_basename ()\
20378{\
20379\    func_basename_result="${1##*/}"\
20380} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20381  && mv -f "$cfgfile.tmp" "$cfgfile" \
20382    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20383test 0 -eq $? || _lt_function_replace_fail=:
20384
20385
20386  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20387func_dirname_and_basename ()\
20388{\
20389\    case ${1} in\
20390\      */*) func_dirname_result="${1%/*}${2}" ;;\
20391\      *  ) func_dirname_result="${3}" ;;\
20392\    esac\
20393\    func_basename_result="${1##*/}"\
20394} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20395  && mv -f "$cfgfile.tmp" "$cfgfile" \
20396    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20397test 0 -eq $? || _lt_function_replace_fail=:
20398
20399
20400  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20401func_stripname ()\
20402{\
20403\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20404\    # positional parameters, so assign one to ordinary parameter first.\
20405\    func_stripname_result=${3}\
20406\    func_stripname_result=${func_stripname_result#"${1}"}\
20407\    func_stripname_result=${func_stripname_result%"${2}"}\
20408} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20409  && mv -f "$cfgfile.tmp" "$cfgfile" \
20410    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20411test 0 -eq $? || _lt_function_replace_fail=:
20412
20413
20414  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20415func_split_long_opt ()\
20416{\
20417\    func_split_long_opt_name=${1%%=*}\
20418\    func_split_long_opt_arg=${1#*=}\
20419} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20420  && mv -f "$cfgfile.tmp" "$cfgfile" \
20421    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20422test 0 -eq $? || _lt_function_replace_fail=:
20423
20424
20425  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20426func_split_short_opt ()\
20427{\
20428\    func_split_short_opt_arg=${1#??}\
20429\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20430} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20431  && mv -f "$cfgfile.tmp" "$cfgfile" \
20432    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20433test 0 -eq $? || _lt_function_replace_fail=:
20434
20435
20436  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20437func_lo2o ()\
20438{\
20439\    case ${1} in\
20440\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20441\      *)    func_lo2o_result=${1} ;;\
20442\    esac\
20443} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20444  && mv -f "$cfgfile.tmp" "$cfgfile" \
20445    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20446test 0 -eq $? || _lt_function_replace_fail=:
20447
20448
20449  sed -e '/^func_xform ()$/,/^} # func_xform /c\
20450func_xform ()\
20451{\
20452    func_xform_result=${1%.*}.lo\
20453} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20454  && mv -f "$cfgfile.tmp" "$cfgfile" \
20455    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20456test 0 -eq $? || _lt_function_replace_fail=:
20457
20458
20459  sed -e '/^func_arith ()$/,/^} # func_arith /c\
20460func_arith ()\
20461{\
20462    func_arith_result=$(( $* ))\
20463} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20464  && mv -f "$cfgfile.tmp" "$cfgfile" \
20465    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20466test 0 -eq $? || _lt_function_replace_fail=:
20467
20468
20469  sed -e '/^func_len ()$/,/^} # func_len /c\
20470func_len ()\
20471{\
20472    func_len_result=${#1}\
20473} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20474  && mv -f "$cfgfile.tmp" "$cfgfile" \
20475    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20476test 0 -eq $? || _lt_function_replace_fail=:
20477
20478fi
20479
20480if test x"$lt_shell_append" = xyes; then
20481  sed -e '/^func_append ()$/,/^} # func_append /c\
20482func_append ()\
20483{\
20484    eval "${1}+=\\${2}"\
20485} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20486  && mv -f "$cfgfile.tmp" "$cfgfile" \
20487    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20488test 0 -eq $? || _lt_function_replace_fail=:
20489
20490
20491  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20492func_append_quoted ()\
20493{\
20494\    func_quote_for_eval "${2}"\
20495\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20496} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20497  && mv -f "$cfgfile.tmp" "$cfgfile" \
20498    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20499test 0 -eq $? || _lt_function_replace_fail=:
20500
20501
20502  # Save a `func_append' function call where possible by direct use of '+='
20503  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20504    && mv -f "$cfgfile.tmp" "$cfgfile" \
20505      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20506  test 0 -eq $? || _lt_function_replace_fail=:
20507else
20508  # Save a `func_append' function call even when '+=' is not available
20509  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20510    && mv -f "$cfgfile.tmp" "$cfgfile" \
20511      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20512  test 0 -eq $? || _lt_function_replace_fail=:
20513fi
20514
20515if test x"$_lt_function_replace_fail" = x":"; then
20516  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20517$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20518fi
20519
20520
20521   mv -f "$cfgfile" "$ofile" ||
20522    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20523  chmod +x "$ofile"
20524
20525
20526    cat <<_LT_EOF >> "$ofile"
20527
20528# ### BEGIN LIBTOOL TAG CONFIG: CXX
20529
20530# The linker used to build libraries.
20531LD=$lt_LD_CXX
20532
20533# How to create reloadable object files.
20534reload_flag=$lt_reload_flag_CXX
20535reload_cmds=$lt_reload_cmds_CXX
20536
20537# Commands used to build an old-style archive.
20538old_archive_cmds=$lt_old_archive_cmds_CXX
20539
20540# A language specific compiler.
20541CC=$lt_compiler_CXX
20542
20543# Is the compiler the GNU compiler?
20544with_gcc=$GCC_CXX
20545
20546# Compiler flag to turn off builtin functions.
20547no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20548
20549# Additional compiler flags for building library objects.
20550pic_flag=$lt_lt_prog_compiler_pic_CXX
20551
20552# How to pass a linker flag through the compiler.
20553wl=$lt_lt_prog_compiler_wl_CXX
20554
20555# Compiler flag to prevent dynamic linking.
20556link_static_flag=$lt_lt_prog_compiler_static_CXX
20557
20558# Does compiler simultaneously support -c and -o options?
20559compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20560
20561# Whether or not to add -lc for building shared libraries.
20562build_libtool_need_lc=$archive_cmds_need_lc_CXX
20563
20564# Whether or not to disallow shared libs when runtime libs are static.
20565allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20566
20567# Compiler flag to allow reflexive dlopens.
20568export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20569
20570# Compiler flag to generate shared objects directly from archives.
20571whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20572
20573# Whether the compiler copes with passing no objects directly.
20574compiler_needs_object=$lt_compiler_needs_object_CXX
20575
20576# Create an old-style archive from a shared archive.
20577old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20578
20579# Create a temporary old-style archive to link instead of a shared archive.
20580old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20581
20582# Commands used to build a shared archive.
20583archive_cmds=$lt_archive_cmds_CXX
20584archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20585
20586# Commands used to build a loadable module if different from building
20587# a shared archive.
20588module_cmds=$lt_module_cmds_CXX
20589module_expsym_cmds=$lt_module_expsym_cmds_CXX
20590
20591# Whether we are building with GNU ld or not.
20592with_gnu_ld=$lt_with_gnu_ld_CXX
20593
20594# Flag that allows shared libraries with undefined symbols to be built.
20595allow_undefined_flag=$lt_allow_undefined_flag_CXX
20596
20597# Flag that enforces no undefined symbols.
20598no_undefined_flag=$lt_no_undefined_flag_CXX
20599
20600# Flag to hardcode \$libdir into a binary during linking.
20601# This must work even if \$libdir does not exist
20602hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20603
20604# Whether we need a single "-rpath" flag with a separated argument.
20605hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20606
20607# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20608# DIR into the resulting binary.
20609hardcode_direct=$hardcode_direct_CXX
20610
20611# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20612# DIR into the resulting binary and the resulting library dependency is
20613# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20614# library is relocated.
20615hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20616
20617# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20618# into the resulting binary.
20619hardcode_minus_L=$hardcode_minus_L_CXX
20620
20621# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20622# into the resulting binary.
20623hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20624
20625# Set to "yes" if building a shared library automatically hardcodes DIR
20626# into the library and all subsequent libraries and executables linked
20627# against it.
20628hardcode_automatic=$hardcode_automatic_CXX
20629
20630# Set to yes if linker adds runtime paths of dependent libraries
20631# to runtime path list.
20632inherit_rpath=$inherit_rpath_CXX
20633
20634# Whether libtool must link a program against all its dependency libraries.
20635link_all_deplibs=$link_all_deplibs_CXX
20636
20637# Set to "yes" if exported symbols are required.
20638always_export_symbols=$always_export_symbols_CXX
20639
20640# The commands to list exported symbols.
20641export_symbols_cmds=$lt_export_symbols_cmds_CXX
20642
20643# Symbols that should not be listed in the preloaded symbols.
20644exclude_expsyms=$lt_exclude_expsyms_CXX
20645
20646# Symbols that must always be exported.
20647include_expsyms=$lt_include_expsyms_CXX
20648
20649# Commands necessary for linking programs (against libraries) with templates.
20650prelink_cmds=$lt_prelink_cmds_CXX
20651
20652# Commands necessary for finishing linking programs.
20653postlink_cmds=$lt_postlink_cmds_CXX
20654
20655# Specify filename containing input files.
20656file_list_spec=$lt_file_list_spec_CXX
20657
20658# How to hardcode a shared library path into an executable.
20659hardcode_action=$hardcode_action_CXX
20660
20661# The directories searched by this compiler when creating a shared library.
20662compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20663
20664# Dependencies to place before and after the objects being linked to
20665# create a shared library.
20666predep_objects=$lt_predep_objects_CXX
20667postdep_objects=$lt_postdep_objects_CXX
20668predeps=$lt_predeps_CXX
20669postdeps=$lt_postdeps_CXX
20670
20671# The library search path used internally by the compiler when linking
20672# a shared library.
20673compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20674
20675# ### END LIBTOOL TAG CONFIG: CXX
20676_LT_EOF
20677
20678 ;;
20679
20680  esac
20681done # for ac_tag
20682
20683
20684as_fn_exit 0
20685_ACEOF
20686ac_clean_files=$ac_clean_files_save
20687
20688test $ac_write_fail = 0 ||
20689  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20690
20691
20692# configure is writing to config.log, and then calls config.status.
20693# config.status does its own redirection, appending to config.log.
20694# Unfortunately, on DOS this fails, as config.log is still kept open
20695# by configure, so config.status won't be able to write to it; its
20696# output is simply discarded.  So we exec the FD to /dev/null,
20697# effectively closing config.log, so it can be properly (re)opened and
20698# appended to by config.status.  When coming back to configure, we
20699# need to make the FD available again.
20700if test "$no_create" != yes; then
20701  ac_cs_success=:
20702  ac_config_status_args=
20703  test "$silent" = yes &&
20704    ac_config_status_args="$ac_config_status_args --quiet"
20705  exec 5>/dev/null
20706  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20707  exec 5>>config.log
20708  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20709  # would make configure fail if this is the last instruction.
20710  $ac_cs_success || as_fn_exit 1
20711fi
20712if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20713  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20714$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20715fi
20716
20717